Debian Codegraph @

texk/afm2pl/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 afm2pl (TeX Live) 0.7.1.
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='afm2pl (TeX Live)'
616 PACKAGE_TARNAME='afm2pl--tex-live-'
617 PACKAGE_VERSION='0.7.1'
618 PACKAGE_STRING='afm2pl (TeX Live) 0.7.1'
619 PACKAGE_BUGREPORT='[email protected]'
620 PACKAGE_URL=''
621
622 ac_unique_file="afm2pl.c"
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 enable_year2038=no
656 ac_subst_vars='am__EXEEXT_FALSE
657 am__EXEEXT_TRUE
658 LTLIBOBJS
659 LIBOBJS
660 KPATHSEA_RULE
661 KPATHSEA_DEPEND
662 KPATHSEA_LIBS
663 KPATHSEA_INCLUDES
664 PKG_CONFIG
665 LT_SYS_LIBRARY_PATH
666 OTOOL64
667 OTOOL
668 LIPO
669 NMEDIT
670 DSYMUTIL
671 MANIFEST_TOOL
672 RANLIB
673 FILECMD
674 LN_S
675 NM
676 ac_ct_DUMPBIN
677 DUMPBIN
678 LD
679 FGREP
680 EGREP
681 GREP
682 SED
683 host_os
684 host_vendor
685 host_cpu
686 host
687 build_os
688 build_vendor
689 build_cpu
690 build
691 LIBTOOL
692 OBJDUMP
693 DLLTOOL
694 AS
695 ac_ct_AR
696 AR
697 WARNING_CFLAGS
698 am__fastdepCC_FALSE
699 am__fastdepCC_TRUE
700 CCDEPMODE
701 am__nodep
702 AMDEPBACKSLASH
703 AMDEP_FALSE
704 AMDEP_TRUE
705 am__include
706 DEPDIR
707 OBJEXT
708 EXEEXT
709 ac_ct_CC
710 CPPFLAGS
711 LDFLAGS
712 CFLAGS
713 CC
714 MAINT
715 MAINTAINER_MODE_FALSE
716 MAINTAINER_MODE_TRUE
717 am__xargs_n
718 am__rm_f_notfound
719 AM_BACKSLASH
720 AM_DEFAULT_VERBOSITY
721 AM_DEFAULT_V
722 AM_V
723 CSCOPE
724 ETAGS
725 CTAGS
726 am__untar
727 am__tar
728 AMTAR
729 am__leading_dot
730 SET_MAKE
731 AWK
732 mkdir_p
733 MKDIR_P
734 INSTALL_STRIP_PROGRAM
735 STRIP
736 install_sh
737 MAKEINFO
738 AUTOHEADER
739 AUTOMAKE
740 AUTOCONF
741 ACLOCAL
742 VERSION
743 PACKAGE
744 CYGPATH_W
745 am__isrc
746 INSTALL_DATA
747 INSTALL_SCRIPT
748 INSTALL_PROGRAM
749 target_alias
750 host_alias
751 build_alias
752 LIBS
753 ECHO_T
754 ECHO_N
755 ECHO_C
756 DEFS
757 mandir
758 localedir
759 libdir
760 psdir
761 pdfdir
762 dvidir
763 htmldir
764 infodir
765 docdir
766 oldincludedir
767 includedir
768 runstatedir
769 localstatedir
770 sharedstatedir
771 sysconfdir
772 datadir
773 datarootdir
774 libexecdir
775 sbindir
776 bindir
777 program_transform_name
778 prefix
779 exec_prefix
780 PACKAGE_URL
781 PACKAGE_BUGREPORT
782 PACKAGE_STRING
783 PACKAGE_VERSION
784 PACKAGE_TARNAME
785 PACKAGE_NAME
786 PATH_SEPARATOR
787 SHELL
788 am__quote'
789 ac_subst_files=''
790 ac_user_opts='
791 enable_option_checking
792 enable_silent_rules
793 enable_maintainer_mode
794 enable_dependency_tracking
795 enable_compiler_warnings
796 enable_shared
797 enable_static
798 enable_pic
799 with_pic
800 enable_fast_install
801 enable_aix_soname
802 with_aix_soname
803 with_gnu_ld
804 with_sysroot
805 enable_libtool_lock
806 enable_largefile
807 with_system_kpathsea
808 enable_year2038
809 '
810 ac_precious_vars='build_alias
811 host_alias
812 target_alias
813 CC
814 CFLAGS
815 LDFLAGS
816 LIBS
817 CPPFLAGS
818 LT_SYS_LIBRARY_PATH'
819
820
821 # Initialize some variables set by options.
822 ac_init_help=
823 ac_init_version=false
824 ac_unrecognized_opts=
825 ac_unrecognized_sep=
826 # The variables have the same names as the options, with
827 # dashes changed to underlines.
828 cache_file=/dev/null
829 exec_prefix=NONE
830 no_create=
831 no_recursion=
832 prefix=NONE
833 program_prefix=NONE
834 program_suffix=NONE
835 program_transform_name=s,x,x,
836 silent=
837 site=
838 srcdir=
839 verbose=
840 x_includes=NONE
841 x_libraries=NONE
842
843 # Installation directory options.
844 # These are left unexpanded so users can "make install exec_prefix=/foo"
845 # and all the variables that are supposed to be based on exec_prefix
846 # by default will actually change.
847 # Use braces instead of parens because sh, perl, etc. also accept them.
848 # (The list follows the same order as the GNU Coding Standards.)
849 bindir='${exec_prefix}/bin'
850 sbindir='${exec_prefix}/sbin'
851 libexecdir='${exec_prefix}/libexec'
852 datarootdir='${prefix}/share'
853 datadir='${datarootdir}'
854 sysconfdir='${prefix}/etc'
855 sharedstatedir='${prefix}/com'
856 localstatedir='${prefix}/var'
857 runstatedir='${localstatedir}/run'
858 includedir='${prefix}/include'
859 oldincludedir='/usr/include'
860 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
861 infodir='${datarootdir}/info'
862 htmldir='${docdir}'
863 dvidir='${docdir}'
864 pdfdir='${docdir}'
865 psdir='${docdir}'
866 libdir='${exec_prefix}/lib'
867 localedir='${datarootdir}/locale'
868 mandir='${datarootdir}/man'
869
870 ac_prev=
871 ac_dashdash=
872 for ac_option
873 do
874 # If the previous option needs an argument, assign it.
875 if test -n "$ac_prev"; then
876 eval $ac_prev=\$ac_option
877 ac_prev=
878 continue
879 fi
880
881 case $ac_option in
882 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
883 *=) ac_optarg= ;;
884 *) ac_optarg=yes ;;
885 esac
886
887 case $ac_dashdash$ac_option in
888 --)
889 ac_dashdash=yes ;;
890
891 -bindir | --bindir | --bindi | --bind | --bin | --bi)
892 ac_prev=bindir ;;
893 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
894 bindir=$ac_optarg ;;
895
896 -build | --build | --buil | --bui | --bu)
897 ac_prev=build_alias ;;
898 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
899 build_alias=$ac_optarg ;;
900
901 -cache-file | --cache-file | --cache-fil | --cache-fi \
902 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
903 ac_prev=cache_file ;;
904 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
905 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
906 cache_file=$ac_optarg ;;
907
908 --config-cache | -C)
909 cache_file=config.cache ;;
910
911 -datadir | --datadir | --datadi | --datad)
912 ac_prev=datadir ;;
913 -datadir=* | --datadir=* | --datadi=* | --datad=*)
914 datadir=$ac_optarg ;;
915
916 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
917 | --dataroo | --dataro | --datar)
918 ac_prev=datarootdir ;;
919 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
920 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
921 datarootdir=$ac_optarg ;;
922
923 -disable-* | --disable-*)
924 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
925 # Reject names that are not valid shell variable names.
926 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
927 as_fn_error $? "invalid feature name: '$ac_useropt'"
928 ac_useropt_orig=$ac_useropt
929 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
930 case $ac_user_opts in
931 *"
932 "enable_$ac_useropt"
933 "*) ;;
934 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
935 ac_unrecognized_sep=', ';;
936 esac
937 eval enable_$ac_useropt=no ;;
938
939 -docdir | --docdir | --docdi | --doc | --do)
940 ac_prev=docdir ;;
941 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
942 docdir=$ac_optarg ;;
943
944 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
945 ac_prev=dvidir ;;
946 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
947 dvidir=$ac_optarg ;;
948
949 -enable-* | --enable-*)
950 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
951 # Reject names that are not valid shell variable names.
952 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
953 as_fn_error $? "invalid feature name: '$ac_useropt'"
954 ac_useropt_orig=$ac_useropt
955 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
956 case $ac_user_opts in
957 *"
958 "enable_$ac_useropt"
959 "*) ;;
960 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
961 ac_unrecognized_sep=', ';;
962 esac
963 eval enable_$ac_useropt=\$ac_optarg ;;
964
965 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
966 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
967 | --exec | --exe | --ex)
968 ac_prev=exec_prefix ;;
969 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
970 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
971 | --exec=* | --exe=* | --ex=*)
972 exec_prefix=$ac_optarg ;;
973
974 -gas | --gas | --ga | --g)
975 # Obsolete; use --with-gas.
976 with_gas=yes ;;
977
978 -help | --help | --hel | --he | -h)
979 ac_init_help=long ;;
980 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
981 ac_init_help=recursive ;;
982 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
983 ac_init_help=short ;;
984
985 -host | --host | --hos | --ho)
986 ac_prev=host_alias ;;
987 -host=* | --host=* | --hos=* | --ho=*)
988 host_alias=$ac_optarg ;;
989
990 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
991 ac_prev=htmldir ;;
992 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
993 | --ht=*)
994 htmldir=$ac_optarg ;;
995
996 -includedir | --includedir | --includedi | --included | --include \
997 | --includ | --inclu | --incl | --inc)
998 ac_prev=includedir ;;
999 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1000 | --includ=* | --inclu=* | --incl=* | --inc=*)
1001 includedir=$ac_optarg ;;
1002
1003 -infodir | --infodir | --infodi | --infod | --info | --inf)
1004 ac_prev=infodir ;;
1005 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1006 infodir=$ac_optarg ;;
1007
1008 -libdir | --libdir | --libdi | --libd)
1009 ac_prev=libdir ;;
1010 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1011 libdir=$ac_optarg ;;
1012
1013 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1014 | --libexe | --libex | --libe)
1015 ac_prev=libexecdir ;;
1016 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1017 | --libexe=* | --libex=* | --libe=*)
1018 libexecdir=$ac_optarg ;;
1019
1020 -localedir | --localedir | --localedi | --localed | --locale)
1021 ac_prev=localedir ;;
1022 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1023 localedir=$ac_optarg ;;
1024
1025 -localstatedir | --localstatedir | --localstatedi | --localstated \
1026 | --localstate | --localstat | --localsta | --localst | --locals)
1027 ac_prev=localstatedir ;;
1028 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1029 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1030 localstatedir=$ac_optarg ;;
1031
1032 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1033 ac_prev=mandir ;;
1034 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1035 mandir=$ac_optarg ;;
1036
1037 -nfp | --nfp | --nf)
1038 # Obsolete; use --without-fp.
1039 with_fp=no ;;
1040
1041 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1042 | --no-cr | --no-c | -n)
1043 no_create=yes ;;
1044
1045 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1046 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1047 no_recursion=yes ;;
1048
1049 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1050 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1051 | --oldin | --oldi | --old | --ol | --o)
1052 ac_prev=oldincludedir ;;
1053 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1054 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1055 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1056 oldincludedir=$ac_optarg ;;
1057
1058 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1059 ac_prev=prefix ;;
1060 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1061 prefix=$ac_optarg ;;
1062
1063 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1064 | --program-pre | --program-pr | --program-p)
1065 ac_prev=program_prefix ;;
1066 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1067 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1068 program_prefix=$ac_optarg ;;
1069
1070 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1071 | --program-suf | --program-su | --program-s)
1072 ac_prev=program_suffix ;;
1073 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1074 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1075 program_suffix=$ac_optarg ;;
1076
1077 -program-transform-name | --program-transform-name \
1078 | --program-transform-nam | --program-transform-na \
1079 | --program-transform-n | --program-transform- \
1080 | --program-transform | --program-transfor \
1081 | --program-transfo | --program-transf \
1082 | --program-trans | --program-tran \
1083 | --progr-tra | --program-tr | --program-t)
1084 ac_prev=program_transform_name ;;
1085 -program-transform-name=* | --program-transform-name=* \
1086 | --program-transform-nam=* | --program-transform-na=* \
1087 | --program-transform-n=* | --program-transform-=* \
1088 | --program-transform=* | --program-transfor=* \
1089 | --program-transfo=* | --program-transf=* \
1090 | --program-trans=* | --program-tran=* \
1091 | --progr-tra=* | --program-tr=* | --program-t=*)
1092 program_transform_name=$ac_optarg ;;
1093
1094 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1095 ac_prev=pdfdir ;;
1096 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1097 pdfdir=$ac_optarg ;;
1098
1099 -psdir | --psdir | --psdi | --psd | --ps)
1100 ac_prev=psdir ;;
1101 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1102 psdir=$ac_optarg ;;
1103
1104 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1105 | -silent | --silent | --silen | --sile | --sil)
1106 silent=yes ;;
1107
1108 -runstatedir | --runstatedir | --runstatedi | --runstated \
1109 | --runstate | --runstat | --runsta | --runst | --runs \
1110 | --run | --ru | --r)
1111 ac_prev=runstatedir ;;
1112 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1113 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1114 | --run=* | --ru=* | --r=*)
1115 runstatedir=$ac_optarg ;;
1116
1117 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1118 ac_prev=sbindir ;;
1119 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1120 | --sbi=* | --sb=*)
1121 sbindir=$ac_optarg ;;
1122
1123 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1124 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1125 | --sharedst | --shareds | --shared | --share | --shar \
1126 | --sha | --sh)
1127 ac_prev=sharedstatedir ;;
1128 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1129 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1130 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1131 | --sha=* | --sh=*)
1132 sharedstatedir=$ac_optarg ;;
1133
1134 -site | --site | --sit)
1135 ac_prev=site ;;
1136 -site=* | --site=* | --sit=*)
1137 site=$ac_optarg ;;
1138
1139 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1140 ac_prev=srcdir ;;
1141 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1142 srcdir=$ac_optarg ;;
1143
1144 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1145 | --syscon | --sysco | --sysc | --sys | --sy)
1146 ac_prev=sysconfdir ;;
1147 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1148 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1149 sysconfdir=$ac_optarg ;;
1150
1151 -target | --target | --targe | --targ | --tar | --ta | --t)
1152 ac_prev=target_alias ;;
1153 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1154 target_alias=$ac_optarg ;;
1155
1156 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1157 verbose=yes ;;
1158
1159 -version | --version | --versio | --versi | --vers | -V)
1160 ac_init_version=: ;;
1161
1162 -with-* | --with-*)
1163 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1164 # Reject names that are not valid shell variable names.
1165 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1166 as_fn_error $? "invalid package name: '$ac_useropt'"
1167 ac_useropt_orig=$ac_useropt
1168 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1169 case $ac_user_opts in
1170 *"
1171 "with_$ac_useropt"
1172 "*) ;;
1173 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1174 ac_unrecognized_sep=', ';;
1175 esac
1176 eval with_$ac_useropt=\$ac_optarg ;;
1177
1178 -without-* | --without-*)
1179 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1180 # Reject names that are not valid shell variable names.
1181 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1182 as_fn_error $? "invalid package name: '$ac_useropt'"
1183 ac_useropt_orig=$ac_useropt
1184 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1185 case $ac_user_opts in
1186 *"
1187 "with_$ac_useropt"
1188 "*) ;;
1189 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1190 ac_unrecognized_sep=', ';;
1191 esac
1192 eval with_$ac_useropt=no ;;
1193
1194 --x)
1195 # Obsolete; use --with-x.
1196 with_x=yes ;;
1197
1198 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1199 | --x-incl | --x-inc | --x-in | --x-i)
1200 ac_prev=x_includes ;;
1201 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1202 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1203 x_includes=$ac_optarg ;;
1204
1205 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1206 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1207 ac_prev=x_libraries ;;
1208 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1209 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1210 x_libraries=$ac_optarg ;;
1211
1212 -*) as_fn_error $? "unrecognized option: '$ac_option'
1213 Try '$0 --help' for more information"
1214 ;;
1215
1216 *=*)
1217 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1218 # Reject names that are not valid shell variable names.
1219 case $ac_envvar in #(
1220 '' | [0-9]* | *[!_$as_cr_alnum]* )
1221 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1222 esac
1223 eval $ac_envvar=\$ac_optarg
1224 export $ac_envvar ;;
1225
1226 *)
1227 # FIXME: should be removed in autoconf 3.0.
1228 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1229 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1230 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1231 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1232 ;;
1233
1234 esac
1235 done
1236
1237 if test -n "$ac_prev"; then
1238 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1239 as_fn_error $? "missing argument to $ac_option"
1240 fi
1241
1242 if test -n "$ac_unrecognized_opts"; then
1243 case $enable_option_checking in
1244 no) ;;
1245 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1246 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1247 esac
1248 fi
1249
1250 # Check all directory arguments for consistency.
1251 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1252 datadir sysconfdir sharedstatedir localstatedir includedir \
1253 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1254 libdir localedir mandir runstatedir
1255 do
1256 eval ac_val=\$$ac_var
1257 # Remove trailing slashes.
1258 case $ac_val in
1259 */ )
1260 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1261 eval $ac_var=\$ac_val;;
1262 esac
1263 # Be sure to have absolute directory names.
1264 case $ac_val in
1265 [\\/$]* | ?:[\\/]* ) continue;;
1266 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1267 esac
1268 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1269 done
1270
1271 # There might be people who depend on the old broken behavior: '$host'
1272 # used to hold the argument of --host etc.
1273 # FIXME: To remove some day.
1274 build=$build_alias
1275 host=$host_alias
1276 target=$target_alias
1277
1278 # FIXME: To remove some day.
1279 if test "x$host_alias" != x; then
1280 if test "x$build_alias" = x; then
1281 cross_compiling=maybe
1282 elif test "x$build_alias" != "x$host_alias"; then
1283 cross_compiling=yes
1284 fi
1285 fi
1286
1287 ac_tool_prefix=
1288 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1289
1290 test "$silent" = yes && exec 6>/dev/null
1291
1292
1293 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1294 ac_ls_di=`ls -di .` &&
1295 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1296 as_fn_error $? "working directory cannot be determined"
1297 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1298 as_fn_error $? "pwd does not report name of working directory"
1299
1300
1301 # Find the source files, if location was not specified.
1302 if test -z "$srcdir"; then
1303 ac_srcdir_defaulted=yes
1304 # Try the directory containing this script, then the parent directory.
1305 ac_confdir=`$as_dirname -- "$as_myself" ||
1306 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1307 X"$as_myself" : 'X\(//\)[^/]' \| \
1308 X"$as_myself" : 'X\(//\)$' \| \
1309 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1310 printf "%s\n" X"$as_myself" |
1311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1312 s//\1/
1313 q
1314 }
1315 /^X\(\/\/\)[^/].*/{
1316 s//\1/
1317 q
1318 }
1319 /^X\(\/\/\)$/{
1320 s//\1/
1321 q
1322 }
1323 /^X\(\/\).*/{
1324 s//\1/
1325 q
1326 }
1327 s/.*/./; q'`
1328 srcdir=$ac_confdir
1329 if test ! -r "$srcdir/$ac_unique_file"; then
1330 srcdir=..
1331 fi
1332 else
1333 ac_srcdir_defaulted=no
1334 fi
1335 if test ! -r "$srcdir/$ac_unique_file"; then
1336 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1337 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1338 fi
1339 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1340 ac_abs_confdir=`(
1341 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1342 pwd)`
1343 # When building in place, set srcdir=.
1344 if test "$ac_abs_confdir" = "$ac_pwd"; then
1345 srcdir=.
1346 fi
1347 # Remove unnecessary trailing slashes from srcdir.
1348 # Double slashes in file names in object file debugging info
1349 # mess up M-x gdb in Emacs.
1350 case $srcdir in
1351 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1352 esac
1353 for ac_var in $ac_precious_vars; do
1354 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1355 eval ac_env_${ac_var}_value=\$${ac_var}
1356 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1357 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1358 done
1359
1360 #
1361 # Report the --help message.
1362 #
1363 if test "$ac_init_help" = "long"; then
1364 # Omit some internal or obsolete options to make the list less imposing.
1365 # This message is too long to be a string in the A/UX 3.1 sh.
1366 cat <<_ACEOF
1367 'configure' configures afm2pl (TeX Live) 0.7.1 to adapt to many kinds of systems.
1368
1369 Usage: $0 [OPTION]... [VAR=VALUE]...
1370
1371 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1372 VAR=VALUE. See below for descriptions of some of the useful variables.
1373
1374 Defaults for the options are specified in brackets.
1375
1376 Configuration:
1377 -h, --help display this help and exit
1378 --help=short display options specific to this package
1379 --help=recursive display the short help of all the included packages
1380 -V, --version display version information and exit
1381 -q, --quiet, --silent do not print 'checking ...' messages
1382 --cache-file=FILE cache test results in FILE [disabled]
1383 -C, --config-cache alias for '--cache-file=config.cache'
1384 -n, --no-create do not create output files
1385 --srcdir=DIR find the sources in DIR [configure dir or '..']
1386
1387 Installation directories:
1388 --prefix=PREFIX install architecture-independent files in PREFIX
1389 [$ac_default_prefix]
1390 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1391 [PREFIX]
1392
1393 By default, 'make install' will install all the files in
1394 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1395 an installation prefix other than '$ac_default_prefix' using '--prefix',
1396 for instance '--prefix=\$HOME'.
1397
1398 For better control, use the options below.
1399
1400 Fine tuning of the installation directories:
1401 --bindir=DIR user executables [EPREFIX/bin]
1402 --sbindir=DIR system admin executables [EPREFIX/sbin]
1403 --libexecdir=DIR program executables [EPREFIX/libexec]
1404 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1405 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1406 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1407 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1408 --libdir=DIR object code libraries [EPREFIX/lib]
1409 --includedir=DIR C header files [PREFIX/include]
1410 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1411 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1412 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1413 --infodir=DIR info documentation [DATAROOTDIR/info]
1414 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1415 --mandir=DIR man documentation [DATAROOTDIR/man]
1416 --docdir=DIR documentation root
1417 [DATAROOTDIR/doc/afm2pl--tex-live-]
1418 --htmldir=DIR html documentation [DOCDIR]
1419 --dvidir=DIR dvi documentation [DOCDIR]
1420 --pdfdir=DIR pdf documentation [DOCDIR]
1421 --psdir=DIR ps documentation [DOCDIR]
1422 _ACEOF
1423
1424 cat <<\_ACEOF
1425
1426 Program names:
1427 --program-prefix=PREFIX prepend PREFIX to installed program names
1428 --program-suffix=SUFFIX append SUFFIX to installed program names
1429 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1430
1431 System types:
1432 --build=BUILD configure for building on BUILD [guessed]
1433 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1434 _ACEOF
1435 fi
1436
1437 if test -n "$ac_init_help"; then
1438 case $ac_init_help in
1439 short | recursive ) echo "Configuration of afm2pl (TeX Live) 0.7.1:";;
1440 esac
1441 cat <<\_ACEOF
1442
1443 Optional Features:
1444 --disable-option-checking ignore unrecognized --enable/--with options
1445 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1446 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1447 --enable-silent-rules less verbose build output (undo: "make V=1")
1448 --disable-silent-rules verbose build output (undo: "make V=0")
1449 --enable-maintainer-mode
1450 enable make rules and dependencies not useful (and
1451 sometimes confusing) to the casual installer
1452 --enable-dependency-tracking
1453 do not reject slow dependency extractors
1454 --disable-dependency-tracking
1455 speeds up one-time build
1456 --enable-compiler-warnings=[no|min|yes|max|all]
1457 Turn on compiler warnings [default: yes if
1458 maintainer-mode, min otherwise]
1459 --enable-shared[=PKGS] build shared libraries [default=yes]
1460 --enable-static[=PKGS] build static libraries [default=yes]
1461 --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1462 both]
1463 --enable-fast-install[=PKGS]
1464 optimize for fast installation [default=yes]
1465 --enable-aix-soname=aix|svr4|both
1466 shared library versioning (aka "SONAME") variant to
1467 provide on AIX, [default=aix].
1468 --disable-libtool-lock avoid locking (might break parallel builds)
1469 --disable-largefile omit support for large files
1470 --enable-year2038 support timestamps after 2038
1471
1472 Optional Packages:
1473 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1474 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1475 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1476 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1477 compiler's sysroot if not specified).
1478 --with-system-kpathsea use installed kpathsea headers and library (requires
1479 pkg-config)
1480
1481 Some influential environment variables:
1482 CC C compiler command
1483 CFLAGS C compiler flags
1484 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1485 nonstandard directory <lib dir>
1486 LIBS libraries to pass to the linker, e.g. -l<library>
1487 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1488 you have headers in a nonstandard directory <include dir>
1489 LT_SYS_LIBRARY_PATH
1490 User-defined run-time library search path.
1491
1492 Use these variables to override the choices made by 'configure' or to help
1493 it to find libraries and programs with nonstandard names/locations.
1494
1495 Report bugs to <[email protected]>.
1496 _ACEOF
1497 ac_status=$?
1498 fi
1499
1500 if test "$ac_init_help" = "recursive"; then
1501 # If there are subdirs, report their specific --help.
1502 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1503 test -d "$ac_dir" ||
1504 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1505 continue
1506 ac_builddir=.
1507
1508 case "$ac_dir" in
1509 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1510 *)
1511 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1512 # A ".." for each directory in $ac_dir_suffix.
1513 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1514 case $ac_top_builddir_sub in
1515 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1516 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1517 esac ;;
1518 esac
1519 ac_abs_top_builddir=$ac_pwd
1520 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1521 # for backward compatibility:
1522 ac_top_builddir=$ac_top_build_prefix
1523
1524 case $srcdir in
1525 .) # We are building in place.
1526 ac_srcdir=.
1527 ac_top_srcdir=$ac_top_builddir_sub
1528 ac_abs_top_srcdir=$ac_pwd ;;
1529 [\\/]* | ?:[\\/]* ) # Absolute name.
1530 ac_srcdir=$srcdir$ac_dir_suffix;
1531 ac_top_srcdir=$srcdir
1532 ac_abs_top_srcdir=$srcdir ;;
1533 *) # Relative name.
1534 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1535 ac_top_srcdir=$ac_top_build_prefix$srcdir
1536 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1537 esac
1538 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1539
1540 cd "$ac_dir" || { ac_status=$?; continue; }
1541 # Check for configure.gnu first; this name is used for a wrapper for
1542 # Metaconfig's "Configure" on case-insensitive file systems.
1543 if test -f "$ac_srcdir/configure.gnu"; then
1544 echo &&
1545 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1546 elif test -f "$ac_srcdir/configure"; then
1547 echo &&
1548 $SHELL "$ac_srcdir/configure" --help=recursive
1549 else
1550 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1551 fi || ac_status=$?
1552 cd "$ac_pwd" || { ac_status=$?; break; }
1553 done
1554 fi
1555
1556 test -n "$ac_init_help" && exit $ac_status
1557 if $ac_init_version; then
1558 cat <<\_ACEOF
1559 afm2pl (TeX Live) configure 0.7.1
1560 generated by GNU Autoconf 2.72
1561
1562 Copyright (C) 2023 Free Software Foundation, Inc.
1563 This configure script is free software; the Free Software Foundation
1564 gives unlimited permission to copy, distribute and modify it.
1565 _ACEOF
1566 exit
1567 fi
1568
1569 ## ------------------------ ##
1570 ## Autoconf initialization. ##
1571 ## ------------------------ ##
1572
1573 # ac_fn_c_try_compile LINENO
1574 # --------------------------
1575 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1576 ac_fn_c_try_compile ()
1577 {
1578 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1579 rm -f conftest.$ac_objext conftest.beam
1580 if { { ac_try="$ac_compile"
1581 case "(($ac_try" in
1582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1583 *) ac_try_echo=$ac_try;;
1584 esac
1585 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1586 printf "%s\n" "$ac_try_echo"; } >&5
1587 (eval "$ac_compile") 2>conftest.err
1588 ac_status=$?
1589 if test -s conftest.err; then
1590 grep -v '^ *+' conftest.err >conftest.er1
1591 cat conftest.er1 >&5
1592 mv -f conftest.er1 conftest.err
1593 fi
1594 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1595 test $ac_status = 0; } && {
1596 test -z "$ac_c_werror_flag" ||
1597 test ! -s conftest.err
1598 } && test -s conftest.$ac_objext
1599 then :
1600 ac_retval=0
1601 else case e in #(
1602 e) printf "%s\n" "$as_me: failed program was:" >&5
1603 sed 's/^/| /' conftest.$ac_ext >&5
1604
1605 ac_retval=1 ;;
1606 esac
1607 fi
1608 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1609 as_fn_set_status $ac_retval
1610
1611 } # ac_fn_c_try_compile
1612
1613 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1614 # -------------------------------------------------------
1615 # Tests whether HEADER exists and can be compiled using the include files in
1616 # INCLUDES, setting the cache variable VAR accordingly.
1617 ac_fn_c_check_header_compile ()
1618 {
1619 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1621 printf %s "checking for $2... " >&6; }
1622 if eval test \${$3+y}
1623 then :
1624 printf %s "(cached) " >&6
1625 else case e in #(
1626 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1627 /* end confdefs.h. */
1628 $4
1629 #include <$2>
1630 _ACEOF
1631 if ac_fn_c_try_compile "$LINENO"
1632 then :
1633 eval "$3=yes"
1634 else case e in #(
1635 e) eval "$3=no" ;;
1636 esac
1637 fi
1638 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1639 esac
1640 fi
1641 eval ac_res=\$$3
1642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1643 printf "%s\n" "$ac_res" >&6; }
1644 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1645
1646 } # ac_fn_c_check_header_compile
1647
1648 # ac_fn_c_try_link LINENO
1649 # -----------------------
1650 # Try to link conftest.$ac_ext, and return whether this succeeded.
1651 ac_fn_c_try_link ()
1652 {
1653 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1654 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1655 if { { ac_try="$ac_link"
1656 case "(($ac_try" in
1657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1658 *) ac_try_echo=$ac_try;;
1659 esac
1660 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1661 printf "%s\n" "$ac_try_echo"; } >&5
1662 (eval "$ac_link") 2>conftest.err
1663 ac_status=$?
1664 if test -s conftest.err; then
1665 grep -v '^ *+' conftest.err >conftest.er1
1666 cat conftest.er1 >&5
1667 mv -f conftest.er1 conftest.err
1668 fi
1669 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1670 test $ac_status = 0; } && {
1671 test -z "$ac_c_werror_flag" ||
1672 test ! -s conftest.err
1673 } && test -s conftest$ac_exeext && {
1674 test "$cross_compiling" = yes ||
1675 test -x conftest$ac_exeext
1676 }
1677 then :
1678 ac_retval=0
1679 else case e in #(
1680 e) printf "%s\n" "$as_me: failed program was:" >&5
1681 sed 's/^/| /' conftest.$ac_ext >&5
1682
1683 ac_retval=1 ;;
1684 esac
1685 fi
1686 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1687 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1688 # interfere with the next link command; also delete a directory that is
1689 # left behind by Apple's compiler. We do this before executing the actions.
1690 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1691 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1692 as_fn_set_status $ac_retval
1693
1694 } # ac_fn_c_try_link
1695
1696 # ac_fn_c_check_func LINENO FUNC VAR
1697 # ----------------------------------
1698 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1699 ac_fn_c_check_func ()
1700 {
1701 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1703 printf %s "checking for $2... " >&6; }
1704 if eval test \${$3+y}
1705 then :
1706 printf %s "(cached) " >&6
1707 else case e in #(
1708 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1709 /* end confdefs.h. */
1710 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1711 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1712 #define $2 innocuous_$2
1713
1714 /* System header to define __stub macros and hopefully few prototypes,
1715 which can conflict with char $2 (void); below. */
1716
1717 #include <limits.h>
1718 #undef $2
1719
1720 /* Override any GCC internal prototype to avoid an error.
1721 Use char because int might match the return type of a GCC
1722 builtin and then its argument prototype would still apply. */
1723 #ifdef __cplusplus
1724 extern "C"
1725 #endif
1726 char $2 (void);
1727 /* The GNU C library defines this for functions which it implements
1728 to always fail with ENOSYS. Some functions are actually named
1729 something starting with __ and the normal name is an alias. */
1730 #if defined __stub_$2 || defined __stub___$2
1731 choke me
1732 #endif
1733
1734 int
1735 main (void)
1736 {
1737 return $2 ();
1738 ;
1739 return 0;
1740 }
1741 _ACEOF
1742 if ac_fn_c_try_link "$LINENO"
1743 then :
1744 eval "$3=yes"
1745 else case e in #(
1746 e) eval "$3=no" ;;
1747 esac
1748 fi
1749 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1750 conftest$ac_exeext conftest.$ac_ext ;;
1751 esac
1752 fi
1753 eval ac_res=\$$3
1754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1755 printf "%s\n" "$ac_res" >&6; }
1756 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1757
1758 } # ac_fn_c_check_func
1759
1760 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1761 # -------------------------------------------
1762 # Tests whether TYPE exists after having included INCLUDES, setting cache
1763 # variable VAR accordingly.
1764 ac_fn_c_check_type ()
1765 {
1766 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1768 printf %s "checking for $2... " >&6; }
1769 if eval test \${$3+y}
1770 then :
1771 printf %s "(cached) " >&6
1772 else case e in #(
1773 e) eval "$3=no"
1774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1775 /* end confdefs.h. */
1776 $4
1777 int
1778 main (void)
1779 {
1780 if (sizeof ($2))
1781 return 0;
1782 ;
1783 return 0;
1784 }
1785 _ACEOF
1786 if ac_fn_c_try_compile "$LINENO"
1787 then :
1788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1789 /* end confdefs.h. */
1790 $4
1791 int
1792 main (void)
1793 {
1794 if (sizeof (($2)))
1795 return 0;
1796 ;
1797 return 0;
1798 }
1799 _ACEOF
1800 if ac_fn_c_try_compile "$LINENO"
1801 then :
1802
1803 else case e in #(
1804 e) eval "$3=yes" ;;
1805 esac
1806 fi
1807 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1808 fi
1809 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1810 esac
1811 fi
1812 eval ac_res=\$$3
1813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1814 printf "%s\n" "$ac_res" >&6; }
1815 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1816
1817 } # ac_fn_c_check_type
1818
1819 # ac_fn_c_find_intX_t LINENO BITS VAR
1820 # -----------------------------------
1821 # Finds a signed integer type with width BITS, setting cache variable VAR
1822 # accordingly.
1823 ac_fn_c_find_intX_t ()
1824 {
1825 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1827 printf %s "checking for int$2_t... " >&6; }
1828 if eval test \${$3+y}
1829 then :
1830 printf %s "(cached) " >&6
1831 else case e in #(
1832 e) eval "$3=no"
1833 # Order is important - never check a type that is potentially smaller
1834 # than half of the expected target width.
1835 for ac_type in int$2_t 'int' 'long int' \
1836 'long long int' 'short int' 'signed char'; do
1837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1838 /* end confdefs.h. */
1839 $ac_includes_default
1840 enum { N = $2 / 2 - 1 };
1841 int
1842 main (void)
1843 {
1844 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
1845 test_array [0] = 0;
1846 return test_array [0];
1847
1848 ;
1849 return 0;
1850 }
1851 _ACEOF
1852 if ac_fn_c_try_compile "$LINENO"
1853 then :
1854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1855 /* end confdefs.h. */
1856 $ac_includes_default
1857 enum { N = $2 / 2 - 1 };
1858 int
1859 main (void)
1860 {
1861 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
1862 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
1863 test_array [0] = 0;
1864 return test_array [0];
1865
1866 ;
1867 return 0;
1868 }
1869 _ACEOF
1870 if ac_fn_c_try_compile "$LINENO"
1871 then :
1872
1873 else case e in #(
1874 e) case $ac_type in #(
1875 int$2_t) :
1876 eval "$3=yes" ;; #(
1877 *) :
1878 eval "$3=\$ac_type" ;;
1879 esac ;;
1880 esac
1881 fi
1882 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1883 fi
1884 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1885 if eval test \"x\$"$3"\" = x"no"
1886 then :
1887
1888 else case e in #(
1889 e) break ;;
1890 esac
1891 fi
1892 done ;;
1893 esac
1894 fi
1895 eval ac_res=\$$3
1896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1897 printf "%s\n" "$ac_res" >&6; }
1898 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1899
1900 } # ac_fn_c_find_intX_t
1901
1902 # ac_fn_c_find_uintX_t LINENO BITS VAR
1903 # ------------------------------------
1904 # Finds an unsigned integer type with width BITS, setting cache variable VAR
1905 # accordingly.
1906 ac_fn_c_find_uintX_t ()
1907 {
1908 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1910 printf %s "checking for uint$2_t... " >&6; }
1911 if eval test \${$3+y}
1912 then :
1913 printf %s "(cached) " >&6
1914 else case e in #(
1915 e) eval "$3=no"
1916 # Order is important - never check a type that is potentially smaller
1917 # than half of the expected target width.
1918 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1919 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1921 /* end confdefs.h. */
1922 $ac_includes_default
1923 int
1924 main (void)
1925 {
1926 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1927 test_array [0] = 0;
1928 return test_array [0];
1929
1930 ;
1931 return 0;
1932 }
1933 _ACEOF
1934 if ac_fn_c_try_compile "$LINENO"
1935 then :
1936 case $ac_type in #(
1937 uint$2_t) :
1938 eval "$3=yes" ;; #(
1939 *) :
1940 eval "$3=\$ac_type" ;;
1941 esac
1942 fi
1943 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1944 if eval test \"x\$"$3"\" = x"no"
1945 then :
1946
1947 else case e in #(
1948 e) break ;;
1949 esac
1950 fi
1951 done ;;
1952 esac
1953 fi
1954 eval ac_res=\$$3
1955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1956 printf "%s\n" "$ac_res" >&6; }
1957 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1958
1959 } # ac_fn_c_find_uintX_t
1960
1961 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1962 # ------------------------------------------------------------------
1963 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1964 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1965 ac_fn_check_decl ()
1966 {
1967 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1968 as_decl_name=`echo $2|sed 's/ *(.*//'`
1969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1970 printf %s "checking whether $as_decl_name is declared... " >&6; }
1971 if eval test \${$3+y}
1972 then :
1973 printf %s "(cached) " >&6
1974 else case e in #(
1975 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1976 eval ac_save_FLAGS=\$$6
1977 as_fn_append $6 " $5"
1978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1979 /* end confdefs.h. */
1980 $4
1981 int
1982 main (void)
1983 {
1984 #ifndef $as_decl_name
1985 #ifdef __cplusplus
1986 (void) $as_decl_use;
1987 #else
1988 (void) $as_decl_name;
1989 #endif
1990 #endif
1991
1992 ;
1993 return 0;
1994 }
1995 _ACEOF
1996 if ac_fn_c_try_compile "$LINENO"
1997 then :
1998 eval "$3=yes"
1999 else case e in #(
2000 e) eval "$3=no" ;;
2001 esac
2002 fi
2003 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2004 eval $6=\$ac_save_FLAGS
2005 ;;
2006 esac
2007 fi
2008 eval ac_res=\$$3
2009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2010 printf "%s\n" "$ac_res" >&6; }
2011 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2012
2013 } # ac_fn_check_decl
2014
2015 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2016 # ----------------------------------------------------
2017 # Tries to find if the field MEMBER exists in type AGGR, after including
2018 # INCLUDES, setting cache variable VAR accordingly.
2019 ac_fn_c_check_member ()
2020 {
2021 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2023 printf %s "checking for $2.$3... " >&6; }
2024 if eval test \${$4+y}
2025 then :
2026 printf %s "(cached) " >&6
2027 else case e in #(
2028 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2029 /* end confdefs.h. */
2030 $5
2031 int
2032 main (void)
2033 {
2034 static $2 ac_aggr;
2035 if (ac_aggr.$3)
2036 return 0;
2037 ;
2038 return 0;
2039 }
2040 _ACEOF
2041 if ac_fn_c_try_compile "$LINENO"
2042 then :
2043 eval "$4=yes"
2044 else case e in #(
2045 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2046 /* end confdefs.h. */
2047 $5
2048 int
2049 main (void)
2050 {
2051 static $2 ac_aggr;
2052 if (sizeof ac_aggr.$3)
2053 return 0;
2054 ;
2055 return 0;
2056 }
2057 _ACEOF
2058 if ac_fn_c_try_compile "$LINENO"
2059 then :
2060 eval "$4=yes"
2061 else case e in #(
2062 e) eval "$4=no" ;;
2063 esac
2064 fi
2065 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2066 esac
2067 fi
2068 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2069 esac
2070 fi
2071 eval ac_res=\$$4
2072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2073 printf "%s\n" "$ac_res" >&6; }
2074 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2075
2076 } # ac_fn_c_check_member
2077 ac_configure_args_raw=
2078 for ac_arg
2079 do
2080 case $ac_arg in
2081 *\'*)
2082 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2083 esac
2084 as_fn_append ac_configure_args_raw " '$ac_arg'"
2085 done
2086
2087 case $ac_configure_args_raw in
2088 *$as_nl*)
2089 ac_safe_unquote= ;;
2090 *)
2091 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2092 ac_unsafe_a="$ac_unsafe_z#~"
2093 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2094 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2095 esac
2096
2097 cat >config.log <<_ACEOF
2098 This file contains any messages produced by compilers while
2099 running configure, to aid debugging if configure makes a mistake.
2100
2101 It was created by afm2pl (TeX Live) $as_me 0.7.1, which was
2102 generated by GNU Autoconf 2.72. Invocation command line was
2103
2104 $ $0$ac_configure_args_raw
2105
2106 _ACEOF
2107 exec 5>>config.log
2108 {
2109 cat <<_ASUNAME
2110 ## --------- ##
2111 ## Platform. ##
2112 ## --------- ##
2113
2114 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2115 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2116 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2117 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2118 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2119
2120 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2121 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2122
2123 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2124 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2125 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2126 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2127 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2128 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2129 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2130
2131 _ASUNAME
2132
2133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2134 for as_dir in $PATH
2135 do
2136 IFS=$as_save_IFS
2137 case $as_dir in #(((
2138 '') as_dir=./ ;;
2139 */) ;;
2140 *) as_dir=$as_dir/ ;;
2141 esac
2142 printf "%s\n" "PATH: $as_dir"
2143 done
2144 IFS=$as_save_IFS
2145
2146 } >&5
2147
2148 cat >&5 <<_ACEOF
2149
2150
2151 ## ----------- ##
2152 ## Core tests. ##
2153 ## ----------- ##
2154
2155 _ACEOF
2156
2157
2158 # Keep a trace of the command line.
2159 # Strip out --no-create and --no-recursion so they do not pile up.
2160 # Strip out --silent because we don't want to record it for future runs.
2161 # Also quote any args containing shell meta-characters.
2162 # Make two passes to allow for proper duplicate-argument suppression.
2163 ac_configure_args=
2164 ac_configure_args0=
2165 ac_configure_args1=
2166 ac_must_keep_next=false
2167 for ac_pass in 1 2
2168 do
2169 for ac_arg
2170 do
2171 case $ac_arg in
2172 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2173 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2174 | -silent | --silent | --silen | --sile | --sil)
2175 continue ;;
2176 *\'*)
2177 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2178 esac
2179 case $ac_pass in
2180 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2181 2)
2182 as_fn_append ac_configure_args1 " '$ac_arg'"
2183 if test $ac_must_keep_next = true; then
2184 ac_must_keep_next=false # Got value, back to normal.
2185 else
2186 case $ac_arg in
2187 *=* | --config-cache | -C | -disable-* | --disable-* \
2188 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2189 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2190 | -with-* | --with-* | -without-* | --without-* | --x)
2191 case "$ac_configure_args0 " in
2192 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2193 esac
2194 ;;
2195 -* ) ac_must_keep_next=true ;;
2196 esac
2197 fi
2198 as_fn_append ac_configure_args " '$ac_arg'"
2199 ;;
2200 esac
2201 done
2202 done
2203 { ac_configure_args0=; unset ac_configure_args0;}
2204 { ac_configure_args1=; unset ac_configure_args1;}
2205
2206 # When interrupted or exit'd, cleanup temporary files, and complete
2207 # config.log. We remove comments because anyway the quotes in there
2208 # would cause problems or look ugly.
2209 # WARNING: Use '\'' to represent an apostrophe within the trap.
2210 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2211 trap 'exit_status=$?
2212 # Sanitize IFS.
2213 IFS=" "" $as_nl"
2214 # Save into config.log some information that might help in debugging.
2215 {
2216 echo
2217
2218 printf "%s\n" "## ---------------- ##
2219 ## Cache variables. ##
2220 ## ---------------- ##"
2221 echo
2222 # The following way of writing the cache mishandles newlines in values,
2223 (
2224 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2225 eval ac_val=\$$ac_var
2226 case $ac_val in #(
2227 *${as_nl}*)
2228 case $ac_var in #(
2229 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2230 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2231 esac
2232 case $ac_var in #(
2233 _ | IFS | as_nl) ;; #(
2234 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2235 *) { eval $ac_var=; unset $ac_var;} ;;
2236 esac ;;
2237 esac
2238 done
2239 (set) 2>&1 |
2240 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2241 *${as_nl}ac_space=\ *)
2242 sed -n \
2243 "s/'\''/'\''\\\\'\'''\''/g;
2244 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2245 ;; #(
2246 *)
2247 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2248 ;;
2249 esac |
2250 sort
2251 )
2252 echo
2253
2254 printf "%s\n" "## ----------------- ##
2255 ## Output variables. ##
2256 ## ----------------- ##"
2257 echo
2258 for ac_var in $ac_subst_vars
2259 do
2260 eval ac_val=\$$ac_var
2261 case $ac_val in
2262 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2263 esac
2264 printf "%s\n" "$ac_var='\''$ac_val'\''"
2265 done | sort
2266 echo
2267
2268 if test -n "$ac_subst_files"; then
2269 printf "%s\n" "## ------------------- ##
2270 ## File substitutions. ##
2271 ## ------------------- ##"
2272 echo
2273 for ac_var in $ac_subst_files
2274 do
2275 eval ac_val=\$$ac_var
2276 case $ac_val in
2277 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2278 esac
2279 printf "%s\n" "$ac_var='\''$ac_val'\''"
2280 done | sort
2281 echo
2282 fi
2283
2284 if test -s confdefs.h; then
2285 printf "%s\n" "## ----------- ##
2286 ## confdefs.h. ##
2287 ## ----------- ##"
2288 echo
2289 cat confdefs.h
2290 echo
2291 fi
2292 test "$ac_signal" != 0 &&
2293 printf "%s\n" "$as_me: caught signal $ac_signal"
2294 printf "%s\n" "$as_me: exit $exit_status"
2295 } >&5
2296 rm -f core *.core core.conftest.* &&
2297 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2298 exit $exit_status
2299 ' 0
2300 for ac_signal in 1 2 13 15; do
2301 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2302 done
2303 ac_signal=0
2304
2305 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2306 rm -f -r conftest* confdefs.h
2307
2308 printf "%s\n" "/* confdefs.h */" > confdefs.h
2309
2310 # Predefined preprocessor variables.
2311
2312 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2313
2314 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2315
2316 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2317
2318 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2319
2320 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2321
2322 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2323
2324
2325 # Let the site file select an alternate cache file if it wants to.
2326 # Prefer an explicitly selected file to automatically selected ones.
2327 if test -n "$CONFIG_SITE"; then
2328 ac_site_files="$CONFIG_SITE"
2329 elif test "x$prefix" != xNONE; then
2330 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2331 else
2332 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2333 fi
2334
2335 for ac_site_file in $ac_site_files
2336 do
2337 case $ac_site_file in #(
2338 */*) :
2339 ;; #(
2340 *) :
2341 ac_site_file=./$ac_site_file ;;
2342 esac
2343 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2345 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2346 sed 's/^/| /' "$ac_site_file" >&5
2347 . "$ac_site_file" \
2348 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2349 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2350 as_fn_error $? "failed to load site script $ac_site_file
2351 See 'config.log' for more details" "$LINENO" 5; }
2352 fi
2353 done
2354
2355 if test -r "$cache_file"; then
2356 # Some versions of bash will fail to source /dev/null (special files
2357 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2358 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2360 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2361 case $cache_file in
2362 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2363 *) . "./$cache_file";;
2364 esac
2365 fi
2366 else
2367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2368 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2369 >$cache_file
2370 fi
2371
2372 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2373 # Test code for whether the C compiler supports C89 (global declarations)
2374 ac_c_conftest_c89_globals='
2375 /* Does the compiler advertise C89 conformance?
2376 Do not test the value of __STDC__, because some compilers set it to 0
2377 while being otherwise adequately conformant. */
2378 #if !defined __STDC__
2379 # error "Compiler does not advertise C89 conformance"
2380 #endif
2381
2382 #include <stddef.h>
2383 #include <stdarg.h>
2384 struct stat;
2385 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2386 struct buf { int x; };
2387 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2388 static char *e (char **p, int i)
2389 {
2390 return p[i];
2391 }
2392 static char *f (char * (*g) (char **, int), char **p, ...)
2393 {
2394 char *s;
2395 va_list v;
2396 va_start (v,p);
2397 s = g (p, va_arg (v,int));
2398 va_end (v);
2399 return s;
2400 }
2401
2402 /* C89 style stringification. */
2403 #define noexpand_stringify(a) #a
2404 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2405
2406 /* C89 style token pasting. Exercises some of the corner cases that
2407 e.g. old MSVC gets wrong, but not very hard. */
2408 #define noexpand_concat(a,b) a##b
2409 #define expand_concat(a,b) noexpand_concat(a,b)
2410 extern int vA;
2411 extern int vbee;
2412 #define aye A
2413 #define bee B
2414 int *pvA = &expand_concat(v,aye);
2415 int *pvbee = &noexpand_concat(v,bee);
2416
2417 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2418 function prototypes and stuff, but not \xHH hex character constants.
2419 These do not provoke an error unfortunately, instead are silently treated
2420 as an "x". The following induces an error, until -std is added to get
2421 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2422 array size at least. It is necessary to write \x00 == 0 to get something
2423 that is true only with -std. */
2424 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2425
2426 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2427 inside strings and character constants. */
2428 #define FOO(x) '\''x'\''
2429 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2430
2431 int test (int i, double x);
2432 struct s1 {int (*f) (int a);};
2433 struct s2 {int (*f) (double a);};
2434 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2435 int, int);'
2436
2437 # Test code for whether the C compiler supports C89 (body of main).
2438 ac_c_conftest_c89_main='
2439 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2440 '
2441
2442 # Test code for whether the C compiler supports C99 (global declarations)
2443 ac_c_conftest_c99_globals='
2444 /* Does the compiler advertise C99 conformance? */
2445 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2446 # error "Compiler does not advertise C99 conformance"
2447 #endif
2448
2449 // See if C++-style comments work.
2450
2451 #include <stdbool.h>
2452 extern int puts (const char *);
2453 extern int printf (const char *, ...);
2454 extern int dprintf (int, const char *, ...);
2455 extern void *malloc (size_t);
2456 extern void free (void *);
2457
2458 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2459 // dprintf is used instead of fprintf to avoid needing to declare
2460 // FILE and stderr.
2461 #define debug(...) dprintf (2, __VA_ARGS__)
2462 #define showlist(...) puts (#__VA_ARGS__)
2463 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2464 static void
2465 test_varargs_macros (void)
2466 {
2467 int x = 1234;
2468 int y = 5678;
2469 debug ("Flag");
2470 debug ("X = %d\n", x);
2471 showlist (The first, second, and third items.);
2472 report (x>y, "x is %d but y is %d", x, y);
2473 }
2474
2475 // Check long long types.
2476 #define BIG64 18446744073709551615ull
2477 #define BIG32 4294967295ul
2478 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2479 #if !BIG_OK
2480 #error "your preprocessor is broken"
2481 #endif
2482 #if BIG_OK
2483 #else
2484 #error "your preprocessor is broken"
2485 #endif
2486 static long long int bignum = -9223372036854775807LL;
2487 static unsigned long long int ubignum = BIG64;
2488
2489 struct incomplete_array
2490 {
2491 int datasize;
2492 double data[];
2493 };
2494
2495 struct named_init {
2496 int number;
2497 const wchar_t *name;
2498 double average;
2499 };
2500
2501 typedef const char *ccp;
2502
2503 static inline int
2504 test_restrict (ccp restrict text)
2505 {
2506 // Iterate through items via the restricted pointer.
2507 // Also check for declarations in for loops.
2508 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2509 continue;
2510 return 0;
2511 }
2512
2513 // Check varargs and va_copy.
2514 static bool
2515 test_varargs (const char *format, ...)
2516 {
2517 va_list args;
2518 va_start (args, format);
2519 va_list args_copy;
2520 va_copy (args_copy, args);
2521
2522 const char *str = "";
2523 int number = 0;
2524 float fnumber = 0;
2525
2526 while (*format)
2527 {
2528 switch (*format++)
2529 {
2530 case '\''s'\'': // string
2531 str = va_arg (args_copy, const char *);
2532 break;
2533 case '\''d'\'': // int
2534 number = va_arg (args_copy, int);
2535 break;
2536 case '\''f'\'': // float
2537 fnumber = va_arg (args_copy, double);
2538 break;
2539 default:
2540 break;
2541 }
2542 }
2543 va_end (args_copy);
2544 va_end (args);
2545
2546 return *str && number && fnumber;
2547 }
2548 '
2549
2550 # Test code for whether the C compiler supports C99 (body of main).
2551 ac_c_conftest_c99_main='
2552 // Check bool.
2553 _Bool success = false;
2554 success |= (argc != 0);
2555
2556 // Check restrict.
2557 if (test_restrict ("String literal") == 0)
2558 success = true;
2559 char *restrict newvar = "Another string";
2560
2561 // Check varargs.
2562 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2563 test_varargs_macros ();
2564
2565 // Check flexible array members.
2566 struct incomplete_array *ia =
2567 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2568 ia->datasize = 10;
2569 for (int i = 0; i < ia->datasize; ++i)
2570 ia->data[i] = i * 1.234;
2571 // Work around memory leak warnings.
2572 free (ia);
2573
2574 // Check named initializers.
2575 struct named_init ni = {
2576 .number = 34,
2577 .name = L"Test wide string",
2578 .average = 543.34343,
2579 };
2580
2581 ni.number = 58;
2582
2583 int dynamic_array[ni.number];
2584 dynamic_array[0] = argv[0][0];
2585 dynamic_array[ni.number - 1] = 543;
2586
2587 // work around unused variable warnings
2588 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2589 || dynamic_array[ni.number - 1] != 543);
2590 '
2591
2592 # Test code for whether the C compiler supports C11 (global declarations)
2593 ac_c_conftest_c11_globals='
2594 /* Does the compiler advertise C11 conformance? */
2595 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2596 # error "Compiler does not advertise C11 conformance"
2597 #endif
2598
2599 // Check _Alignas.
2600 char _Alignas (double) aligned_as_double;
2601 char _Alignas (0) no_special_alignment;
2602 extern char aligned_as_int;
2603 char _Alignas (0) _Alignas (int) aligned_as_int;
2604
2605 // Check _Alignof.
2606 enum
2607 {
2608 int_alignment = _Alignof (int),
2609 int_array_alignment = _Alignof (int[100]),
2610 char_alignment = _Alignof (char)
2611 };
2612 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2613
2614 // Check _Noreturn.
2615 int _Noreturn does_not_return (void) { for (;;) continue; }
2616
2617 // Check _Static_assert.
2618 struct test_static_assert
2619 {
2620 int x;
2621 _Static_assert (sizeof (int) <= sizeof (long int),
2622 "_Static_assert does not work in struct");
2623 long int y;
2624 };
2625
2626 // Check UTF-8 literals.
2627 #define u8 syntax error!
2628 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2629
2630 // Check duplicate typedefs.
2631 typedef long *long_ptr;
2632 typedef long int *long_ptr;
2633 typedef long_ptr long_ptr;
2634
2635 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2636 struct anonymous
2637 {
2638 union {
2639 struct { int i; int j; };
2640 struct { int k; long int l; } w;
2641 };
2642 int m;
2643 } v1;
2644 '
2645
2646 # Test code for whether the C compiler supports C11 (body of main).
2647 ac_c_conftest_c11_main='
2648 _Static_assert ((offsetof (struct anonymous, i)
2649 == offsetof (struct anonymous, w.k)),
2650 "Anonymous union alignment botch");
2651 v1.i = 2;
2652 v1.w.k = 5;
2653 ok |= v1.i != 5;
2654 '
2655
2656 # Test code for whether the C compiler supports C11 (complete).
2657 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2658 ${ac_c_conftest_c99_globals}
2659 ${ac_c_conftest_c11_globals}
2660
2661 int
2662 main (int argc, char **argv)
2663 {
2664 int ok = 0;
2665 ${ac_c_conftest_c89_main}
2666 ${ac_c_conftest_c99_main}
2667 ${ac_c_conftest_c11_main}
2668 return ok;
2669 }
2670 "
2671
2672 # Test code for whether the C compiler supports C99 (complete).
2673 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2674 ${ac_c_conftest_c99_globals}
2675
2676 int
2677 main (int argc, char **argv)
2678 {
2679 int ok = 0;
2680 ${ac_c_conftest_c89_main}
2681 ${ac_c_conftest_c99_main}
2682 return ok;
2683 }
2684 "
2685
2686 # Test code for whether the C compiler supports C89 (complete).
2687 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2688
2689 int
2690 main (int argc, char **argv)
2691 {
2692 int ok = 0;
2693 ${ac_c_conftest_c89_main}
2694 return ok;
2695 }
2696 "
2697
2698 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2699 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2700 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2701 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2702 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2703 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2704 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2705 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2706 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2707 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2708
2709 # Auxiliary files required by this configure script.
2710 ac_aux_files="config.guess config.sub ltmain.sh ar-lib compile missing install-sh"
2711
2712 # Locations in which to look for auxiliary files.
2713 ac_aux_dir_candidates="${srcdir}/../../build-aux"
2714
2715 # Search for a directory containing all of the required auxiliary files,
2716 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2717 # If we don't find one directory that contains all the files we need,
2718 # we report the set of missing files from the *first* directory in
2719 # $ac_aux_dir_candidates and give up.
2720 ac_missing_aux_files=""
2721 ac_first_candidate=:
2722 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2724 as_found=false
2725 for as_dir in $ac_aux_dir_candidates
2726 do
2727 IFS=$as_save_IFS
2728 case $as_dir in #(((
2729 '') as_dir=./ ;;
2730 */) ;;
2731 *) as_dir=$as_dir/ ;;
2732 esac
2733 as_found=:
2734
2735 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2736 ac_aux_dir_found=yes
2737 ac_install_sh=
2738 for ac_aux in $ac_aux_files
2739 do
2740 # As a special case, if "install-sh" is required, that requirement
2741 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2742 # and $ac_install_sh is set appropriately for whichever one is found.
2743 if test x"$ac_aux" = x"install-sh"
2744 then
2745 if test -f "${as_dir}install-sh"; then
2746 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2747 ac_install_sh="${as_dir}install-sh -c"
2748 elif test -f "${as_dir}install.sh"; then
2749 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2750 ac_install_sh="${as_dir}install.sh -c"
2751 elif test -f "${as_dir}shtool"; then
2752 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2753 ac_install_sh="${as_dir}shtool install -c"
2754 else
2755 ac_aux_dir_found=no
2756 if $ac_first_candidate; then
2757 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2758 else
2759 break
2760 fi
2761 fi
2762 else
2763 if test -f "${as_dir}${ac_aux}"; then
2764 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2765 else
2766 ac_aux_dir_found=no
2767 if $ac_first_candidate; then
2768 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2769 else
2770 break
2771 fi
2772 fi
2773 fi
2774 done
2775 if test "$ac_aux_dir_found" = yes; then
2776 ac_aux_dir="$as_dir"
2777 break
2778 fi
2779 ac_first_candidate=false
2780
2781 as_found=false
2782 done
2783 IFS=$as_save_IFS
2784 if $as_found
2785 then :
2786
2787 else case e in #(
2788 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2789 esac
2790 fi
2791
2792
2793 # These three variables are undocumented and unsupported,
2794 # and are intended to be withdrawn in a future Autoconf release.
2795 # They can cause serious problems if a builder's source tree is in a directory
2796 # whose full name contains unusual characters.
2797 if test -f "${ac_aux_dir}config.guess"; then
2798 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2799 fi
2800 if test -f "${ac_aux_dir}config.sub"; then
2801 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2802 fi
2803 if test -f "$ac_aux_dir/configure"; then
2804 ac_configure="$SHELL ${ac_aux_dir}configure"
2805 fi
2806
2807 # Check that the precious variables saved in the cache have kept the same
2808 # value.
2809 ac_cache_corrupted=false
2810 for ac_var in $ac_precious_vars; do
2811 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2812 eval ac_new_set=\$ac_env_${ac_var}_set
2813 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2814 eval ac_new_val=\$ac_env_${ac_var}_value
2815 case $ac_old_set,$ac_new_set in
2816 set,)
2817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2818 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2819 ac_cache_corrupted=: ;;
2820 ,set)
2821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2822 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2823 ac_cache_corrupted=: ;;
2824 ,);;
2825 *)
2826 if test "x$ac_old_val" != "x$ac_new_val"; then
2827 # differences in whitespace do not lead to failure.
2828 ac_old_val_w=`echo x $ac_old_val`
2829 ac_new_val_w=`echo x $ac_new_val`
2830 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2832 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2833 ac_cache_corrupted=:
2834 else
2835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2836 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2837 eval $ac_var=\$ac_old_val
2838 fi
2839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2840 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2842 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2843 fi;;
2844 esac
2845 # Pass precious variables to config.status.
2846 if test "$ac_new_set" = set; then
2847 case $ac_new_val in
2848 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2849 *) ac_arg=$ac_var=$ac_new_val ;;
2850 esac
2851 case " $ac_configure_args " in
2852 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2853 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2854 esac
2855 fi
2856 done
2857 if $ac_cache_corrupted; then
2858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2859 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2861 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2862 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2863 and start over" "$LINENO" 5
2864 fi
2865 ## -------------------- ##
2866 ## Main body of script. ##
2867 ## -------------------- ##
2868
2869 ac_ext=c
2870 ac_cpp='$CPP $CPPFLAGS'
2871 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2872 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2873 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2874
2875
2876
2877
2878
2879
2880
2881 am__api_version='1.18'
2882
2883
2884
2885 # Find a good install program. We prefer a C program (faster),
2886 # so one script is as good as another. But avoid the broken or
2887 # incompatible versions:
2888 # SysV /etc/install, /usr/sbin/install
2889 # SunOS /usr/etc/install
2890 # IRIX /sbin/install
2891 # AIX /bin/install
2892 # AmigaOS /C/install, which installs bootblocks on floppy discs
2893 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2894 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2895 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2896 # OS/2's system install, which has a completely different semantic
2897 # ./install, which can be erroneously created by make from ./install.sh.
2898 # Reject install programs that cannot install multiple files.
2899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2900 printf %s "checking for a BSD-compatible install... " >&6; }
2901 if test -z "$INSTALL"; then
2902 if test ${ac_cv_path_install+y}
2903 then :
2904 printf %s "(cached) " >&6
2905 else case e in #(
2906 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2907 for as_dir in $PATH
2908 do
2909 IFS=$as_save_IFS
2910 case $as_dir in #(((
2911 '') as_dir=./ ;;
2912 */) ;;
2913 *) as_dir=$as_dir/ ;;
2914 esac
2915 # Account for fact that we put trailing slashes in our PATH walk.
2916 case $as_dir in #((
2917 ./ | /[cC]/* | \
2918 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2919 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2920 /usr/ucb/* ) ;;
2921 *)
2922 # OSF1 and SCO ODT 3.0 have their own names for install.
2923 # Don't use installbsd from OSF since it installs stuff as root
2924 # by default.
2925 for ac_prog in ginstall scoinst install; do
2926 for ac_exec_ext in '' $ac_executable_extensions; do
2927 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2928 if test $ac_prog = install &&
2929 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2930 # AIX install. It has an incompatible calling convention.
2931 :
2932 elif test $ac_prog = install &&
2933 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2934 # program-specific install script used by HP pwplus--don't use.
2935 :
2936 else
2937 rm -rf conftest.one conftest.two conftest.dir
2938 echo one > conftest.one
2939 echo two > conftest.two
2940 mkdir conftest.dir
2941 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2942 test -s conftest.one && test -s conftest.two &&
2943 test -s conftest.dir/conftest.one &&
2944 test -s conftest.dir/conftest.two
2945 then
2946 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2947 break 3
2948 fi
2949 fi
2950 fi
2951 done
2952 done
2953 ;;
2954 esac
2955
2956 done
2957 IFS=$as_save_IFS
2958
2959 rm -rf conftest.one conftest.two conftest.dir
2960 ;;
2961 esac
2962 fi
2963 if test ${ac_cv_path_install+y}; then
2964 INSTALL=$ac_cv_path_install
2965 else
2966 # As a last resort, use the slow shell script. Don't cache a
2967 # value for INSTALL within a source directory, because that will
2968 # break other packages using the cache if that directory is
2969 # removed, or if the value is a relative name.
2970 INSTALL=$ac_install_sh
2971 fi
2972 fi
2973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2974 printf "%s\n" "$INSTALL" >&6; }
2975
2976 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2977 # It thinks the first close brace ends the variable substitution.
2978 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2979
2980 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2981
2982 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2983
2984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
2985 printf %s "checking whether sleep supports fractional seconds... " >&6; }
2986 if test ${am_cv_sleep_fractional_seconds+y}
2987 then :
2988 printf %s "(cached) " >&6
2989 else case e in #(
2990 e) if sleep 0.001 2>/dev/null
2991 then :
2992 am_cv_sleep_fractional_seconds=yes
2993 else case e in #(
2994 e) am_cv_sleep_fractional_seconds=no ;;
2995 esac
2996 fi
2997 ;;
2998 esac
2999 fi
3000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
3001 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
3002
3003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
3004 printf %s "checking filesystem timestamp resolution... " >&6; }
3005 if test ${am_cv_filesystem_timestamp_resolution+y}
3006 then :
3007 printf %s "(cached) " >&6
3008 else case e in #(
3009 e) # Default to the worst case.
3010 am_cv_filesystem_timestamp_resolution=2
3011
3012 # Only try to go finer than 1 sec if sleep can do it.
3013 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
3014 # - 1 sec is not much of a win compared to 2 sec, and
3015 # - it takes 2 seconds to perform the test whether 1 sec works.
3016 #
3017 # Instead, just use the default 2s on platforms that have 1s resolution,
3018 # accept the extra 1s delay when using $sleep in the Automake tests, in
3019 # exchange for not incurring the 2s delay for running the test for all
3020 # packages.
3021 #
3022 am_try_resolutions=
3023 if test "$am_cv_sleep_fractional_seconds" = yes; then
3024 # Even a millisecond often causes a bunch of false positives,
3025 # so just try a hundredth of a second. The time saved between .001 and
3026 # .01 is not terribly consequential.
3027 am_try_resolutions="0.01 0.1 $am_try_resolutions"
3028 fi
3029
3030 # In order to catch current-generation FAT out, we must *modify* files
3031 # that already exist; the *creation* timestamp is finer. Use names
3032 # that make ls -t sort them differently when they have equal
3033 # timestamps than when they have distinct timestamps, keeping
3034 # in mind that ls -t prints the *newest* file first.
3035 rm -f conftest.ts?
3036 : > conftest.ts1
3037 : > conftest.ts2
3038 : > conftest.ts3
3039
3040 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
3041 # clobber the current shell's arguments. (Outer-level square brackets
3042 # are removed by m4; they're present so that m4 does not expand
3043 # <dollar><star>; be careful, easy to get confused.)
3044 if (
3045 set X `ls -t conftest.ts[12]` &&
3046 {
3047 test "$*" != "X conftest.ts1 conftest.ts2" ||
3048 test "$*" != "X conftest.ts2 conftest.ts1";
3049 }
3050 ); then :; else
3051 # If neither matched, then we have a broken ls. This can happen
3052 # if, for instance, CONFIG_SHELL is bash and it inherits a
3053 # broken ls alias from the environment. This has actually
3054 # happened. Such a system could not be considered "sane".
3055 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
3056 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3057 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3058 as_fn_error $? "ls -t produces unexpected output.
3059 Make sure there is not a broken ls alias in your environment.
3060 See 'config.log' for more details" "$LINENO" 5; }
3061 fi
3062
3063 for am_try_res in $am_try_resolutions; do
3064 # Any one fine-grained sleep might happen to cross the boundary
3065 # between two values of a coarser actual resolution, but if we do
3066 # two fine-grained sleeps in a row, at least one of them will fall
3067 # entirely within a coarse interval.
3068 echo alpha > conftest.ts1
3069 sleep $am_try_res
3070 echo beta > conftest.ts2
3071 sleep $am_try_res
3072 echo gamma > conftest.ts3
3073
3074 # We assume that 'ls -t' will make use of high-resolution
3075 # timestamps if the operating system supports them at all.
3076 if (set X `ls -t conftest.ts?` &&
3077 test "$2" = conftest.ts3 &&
3078 test "$3" = conftest.ts2 &&
3079 test "$4" = conftest.ts1); then
3080 #
3081 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
3082 # because we don't need to test make.
3083 make_ok=true
3084 if test $am_try_res != 1; then
3085 # But if we've succeeded so far with a subsecond resolution, we
3086 # have one more thing to check: make. It can happen that
3087 # everything else supports the subsecond mtimes, but make doesn't;
3088 # notably on macOS, which ships make 3.81 from 2006 (the last one
3089 # released under GPLv2). https://bugs.gnu.org/68808
3090 #
3091 # We test $MAKE if it is defined in the environment, else "make".
3092 # It might get overridden later, but our hope is that in practice
3093 # it does not matter: it is the system "make" which is (by far)
3094 # the most likely to be broken, whereas if the user overrides it,
3095 # probably they did so with a better, or at least not worse, make.
3096 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
3097 #
3098 # Create a Makefile (real tab character here):
3099 rm -f conftest.mk
3100 echo 'conftest.ts1: conftest.ts2' >conftest.mk
3101 echo ' touch conftest.ts2' >>conftest.mk
3102 #
3103 # Now, running
3104 # touch conftest.ts1; touch conftest.ts2; make
3105 # should touch ts1 because ts2 is newer. This could happen by luck,
3106 # but most often, it will fail if make's support is insufficient. So
3107 # test for several consecutive successes.
3108 #
3109 # (We reuse conftest.ts[12] because we still want to modify existing
3110 # files, not create new ones, per above.)
3111 n=0
3112 make=${MAKE-make}
3113 until test $n -eq 3; do
3114 echo one > conftest.ts1
3115 sleep $am_try_res
3116 echo two > conftest.ts2 # ts2 should now be newer than ts1
3117 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
3118 make_ok=false
3119 break # out of $n loop
3120 fi
3121 n=`expr $n + 1`
3122 done
3123 fi
3124 #
3125 if $make_ok; then
3126 # Everything we know to check worked out, so call this resolution good.
3127 am_cv_filesystem_timestamp_resolution=$am_try_res
3128 break # out of $am_try_res loop
3129 fi
3130 # Otherwise, we'll go on to check the next resolution.
3131 fi
3132 done
3133 rm -f conftest.ts?
3134 # (end _am_filesystem_timestamp_resolution)
3135 ;;
3136 esac
3137 fi
3138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
3139 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
3140
3141 # This check should not be cached, as it may vary across builds of
3142 # different projects.
3143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3144 printf %s "checking whether build environment is sane... " >&6; }
3145 # Reject unsafe characters in $srcdir or the absolute working directory
3146 # name. Accept space and tab only in the latter.
3147 am_lf='
3148 '
3149 case `pwd` in
3150 *[\\\"\#\$\&\'\`$am_lf]*)
3151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3152 printf "%s\n" "no" >&6; }
3153 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3154 esac
3155 case $srcdir in
3156 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3158 printf "%s\n" "no" >&6; }
3159 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3160 esac
3161
3162 # Do 'set' in a subshell so we don't clobber the current shell's
3163 # arguments. Must try -L first in case configure is actually a
3164 # symlink; some systems play weird games with the mod time of symlinks
3165 # (eg FreeBSD returns the mod time of the symlink's containing
3166 # directory).
3167 am_build_env_is_sane=no
3168 am_has_slept=no
3169 rm -f conftest.file
3170 for am_try in 1 2; do
3171 echo "timestamp, slept: $am_has_slept" > conftest.file
3172 if (
3173 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3174 if test "$*" = "X"; then
3175 # -L didn't work.
3176 set X `ls -t "$srcdir/configure" conftest.file`
3177 fi
3178 test "$2" = conftest.file
3179 ); then
3180 am_build_env_is_sane=yes
3181 break
3182 fi
3183 # Just in case.
3184 sleep "$am_cv_filesystem_timestamp_resolution"
3185 am_has_slept=yes
3186 done
3187
3188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
3189 printf "%s\n" "$am_build_env_is_sane" >&6; }
3190 if test "$am_build_env_is_sane" = no; then
3191 as_fn_error $? "newly created file is older than distributed files!
3192 Check your system clock" "$LINENO" 5
3193 fi
3194
3195 # If we didn't sleep, we still need to ensure time stamps of config.status and
3196 # generated files are strictly newer.
3197 am_sleep_pid=
3198 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
3199 then :
3200
3201 else case e in #(
3202 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
3203 am_sleep_pid=$!
3204 ;;
3205 esac
3206 fi
3207
3208 rm -f conftest.file
3209
3210 test "$program_prefix" != NONE &&
3211 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3212 # Use a double $ so make ignores it.
3213 test "$program_suffix" != NONE &&
3214 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3215 # Double any \ or $.
3216 # By default was 's,x,x', remove it if useless.
3217 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3218 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3219
3220
3221 # Expand $ac_aux_dir to an absolute path.
3222 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3223
3224
3225 if test x"${MISSING+set}" != xset; then
3226 MISSING="\${SHELL} '$am_aux_dir/missing'"
3227 fi
3228 # Use eval to expand $SHELL
3229 if eval "$MISSING --is-lightweight"; then
3230 am_missing_run="$MISSING "
3231 else
3232 am_missing_run=
3233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3234 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3235 fi
3236
3237 if test x"${install_sh+set}" != xset; then
3238 case $am_aux_dir in
3239 *\ * | *\ *)
3240 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3241 *)
3242 install_sh="\${SHELL} $am_aux_dir/install-sh"
3243 esac
3244 fi
3245
3246 # Installed binaries are usually stripped using 'strip' when the user
3247 # run "make install-strip". However 'strip' might not be the right
3248 # tool to use in cross-compilation environments, therefore Automake
3249 # will honor the 'STRIP' environment variable to overrule this program.
3250 if test "$cross_compiling" != no; then
3251 if test -n "$ac_tool_prefix"; then
3252 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3253 set dummy ${ac_tool_prefix}strip; ac_word=$2
3254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3255 printf %s "checking for $ac_word... " >&6; }
3256 if test ${ac_cv_prog_STRIP+y}
3257 then :
3258 printf %s "(cached) " >&6
3259 else case e in #(
3260 e) if test -n "$STRIP"; then
3261 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3262 else
3263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3264 for as_dir in $PATH
3265 do
3266 IFS=$as_save_IFS
3267 case $as_dir in #(((
3268 '') as_dir=./ ;;
3269 */) ;;
3270 *) as_dir=$as_dir/ ;;
3271 esac
3272 for ac_exec_ext in '' $ac_executable_extensions; do
3273 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3274 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3275 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3276 break 2
3277 fi
3278 done
3279 done
3280 IFS=$as_save_IFS
3281
3282 fi ;;
3283 esac
3284 fi
3285 STRIP=$ac_cv_prog_STRIP
3286 if test -n "$STRIP"; then
3287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3288 printf "%s\n" "$STRIP" >&6; }
3289 else
3290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3291 printf "%s\n" "no" >&6; }
3292 fi
3293
3294
3295 fi
3296 if test -z "$ac_cv_prog_STRIP"; then
3297 ac_ct_STRIP=$STRIP
3298 # Extract the first word of "strip", so it can be a program name with args.
3299 set dummy strip; ac_word=$2
3300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3301 printf %s "checking for $ac_word... " >&6; }
3302 if test ${ac_cv_prog_ac_ct_STRIP+y}
3303 then :
3304 printf %s "(cached) " >&6
3305 else case e in #(
3306 e) if test -n "$ac_ct_STRIP"; then
3307 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3308 else
3309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3310 for as_dir in $PATH
3311 do
3312 IFS=$as_save_IFS
3313 case $as_dir in #(((
3314 '') as_dir=./ ;;
3315 */) ;;
3316 *) as_dir=$as_dir/ ;;
3317 esac
3318 for ac_exec_ext in '' $ac_executable_extensions; do
3319 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3320 ac_cv_prog_ac_ct_STRIP="strip"
3321 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3322 break 2
3323 fi
3324 done
3325 done
3326 IFS=$as_save_IFS
3327
3328 fi ;;
3329 esac
3330 fi
3331 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3332 if test -n "$ac_ct_STRIP"; then
3333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3334 printf "%s\n" "$ac_ct_STRIP" >&6; }
3335 else
3336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3337 printf "%s\n" "no" >&6; }
3338 fi
3339
3340 if test "x$ac_ct_STRIP" = x; then
3341 STRIP=":"
3342 else
3343 case $cross_compiling:$ac_tool_warned in
3344 yes:)
3345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3346 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3347 ac_tool_warned=yes ;;
3348 esac
3349 STRIP=$ac_ct_STRIP
3350 fi
3351 else
3352 STRIP="$ac_cv_prog_STRIP"
3353 fi
3354
3355 fi
3356 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3357
3358
3359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3360 printf %s "checking for a race-free mkdir -p... " >&6; }
3361 if test -z "$MKDIR_P"; then
3362 if test ${ac_cv_path_mkdir+y}
3363 then :
3364 printf %s "(cached) " >&6
3365 else case e in #(
3366 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3367 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3368 do
3369 IFS=$as_save_IFS
3370 case $as_dir in #(((
3371 '') as_dir=./ ;;
3372 */) ;;
3373 *) as_dir=$as_dir/ ;;
3374 esac
3375 for ac_prog in mkdir gmkdir; do
3376 for ac_exec_ext in '' $ac_executable_extensions; do
3377 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3378 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3379 'mkdir ('*'coreutils) '* | \
3380 *'BusyBox '* | \
3381 'mkdir (fileutils) '4.1*)
3382 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3383 break 3;;
3384 esac
3385 done
3386 done
3387 done
3388 IFS=$as_save_IFS
3389 ;;
3390 esac
3391 fi
3392
3393 test -d ./--version && rmdir ./--version
3394 if test ${ac_cv_path_mkdir+y}; then
3395 MKDIR_P="$ac_cv_path_mkdir -p"
3396 else
3397 # As a last resort, use plain mkdir -p,
3398 # in the hope it doesn't have the bugs of ancient mkdir.
3399 MKDIR_P='mkdir -p'
3400 fi
3401 fi
3402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3403 printf "%s\n" "$MKDIR_P" >&6; }
3404
3405 for ac_prog in gawk mawk nawk awk
3406 do
3407 # Extract the first word of "$ac_prog", so it can be a program name with args.
3408 set dummy $ac_prog; ac_word=$2
3409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3410 printf %s "checking for $ac_word... " >&6; }
3411 if test ${ac_cv_prog_AWK+y}
3412 then :
3413 printf %s "(cached) " >&6
3414 else case e in #(
3415 e) if test -n "$AWK"; then
3416 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3417 else
3418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3419 for as_dir in $PATH
3420 do
3421 IFS=$as_save_IFS
3422 case $as_dir in #(((
3423 '') as_dir=./ ;;
3424 */) ;;
3425 *) as_dir=$as_dir/ ;;
3426 esac
3427 for ac_exec_ext in '' $ac_executable_extensions; do
3428 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3429 ac_cv_prog_AWK="$ac_prog"
3430 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3431 break 2
3432 fi
3433 done
3434 done
3435 IFS=$as_save_IFS
3436
3437 fi ;;
3438 esac
3439 fi
3440 AWK=$ac_cv_prog_AWK
3441 if test -n "$AWK"; then
3442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3443 printf "%s\n" "$AWK" >&6; }
3444 else
3445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3446 printf "%s\n" "no" >&6; }
3447 fi
3448
3449
3450 test -n "$AWK" && break
3451 done
3452
3453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3454 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3455 set x ${MAKE-make}
3456 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3457 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3458 then :
3459 printf %s "(cached) " >&6
3460 else case e in #(
3461 e) cat >conftest.make <<\_ACEOF
3462 SHELL = /bin/sh
3463 all:
3464 @echo '@@@%%%=$(MAKE)=@@@%%%'
3465 _ACEOF
3466 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3467 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3468 *@@@%%%=?*=@@@%%%*)
3469 eval ac_cv_prog_make_${ac_make}_set=yes;;
3470 *)
3471 eval ac_cv_prog_make_${ac_make}_set=no;;
3472 esac
3473 rm -f conftest.make ;;
3474 esac
3475 fi
3476 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3478 printf "%s\n" "yes" >&6; }
3479 SET_MAKE=
3480 else
3481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3482 printf "%s\n" "no" >&6; }
3483 SET_MAKE="MAKE=${MAKE-make}"
3484 fi
3485
3486 rm -rf .tst 2>/dev/null
3487 mkdir .tst 2>/dev/null
3488 if test -d .tst; then
3489 am__leading_dot=.
3490 else
3491 am__leading_dot=_
3492 fi
3493 rmdir .tst 2>/dev/null
3494
3495 AM_DEFAULT_VERBOSITY=1
3496 # Check whether --enable-silent-rules was given.
3497 if test ${enable_silent_rules+y}
3498 then :
3499 enableval=$enable_silent_rules;
3500 fi
3501
3502 am_make=${MAKE-make}
3503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3504 printf %s "checking whether $am_make supports nested variables... " >&6; }
3505 if test ${am_cv_make_support_nested_variables+y}
3506 then :
3507 printf %s "(cached) " >&6
3508 else case e in #(
3509 e) if printf "%s\n" 'TRUE=$(BAR$(V))
3510 BAR0=false
3511 BAR1=true
3512 V=1
3513 am__doit:
3514 @$(TRUE)
3515 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3516 am_cv_make_support_nested_variables=yes
3517 else
3518 am_cv_make_support_nested_variables=no
3519 fi ;;
3520 esac
3521 fi
3522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3523 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3524 AM_BACKSLASH='\'
3525
3526 am__rm_f_notfound=
3527 if (rm -f && rm -fr && rm -rf) 2>/dev/null
3528 then :
3529
3530 else case e in #(
3531 e) am__rm_f_notfound='""' ;;
3532 esac
3533 fi
3534
3535
3536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
3537 printf %s "checking xargs -n works... " >&6; }
3538 if test ${am_cv_xargs_n_works+y}
3539 then :
3540 printf %s "(cached) " >&6
3541 else case e in #(
3542 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
3543 3"
3544 then :
3545 am_cv_xargs_n_works=yes
3546 else case e in #(
3547 e) am_cv_xargs_n_works=no ;;
3548 esac
3549 fi ;;
3550 esac
3551 fi
3552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
3553 printf "%s\n" "$am_cv_xargs_n_works" >&6; }
3554 if test "$am_cv_xargs_n_works" = yes
3555 then :
3556 am__xargs_n='xargs -n'
3557 else case e in #(
3558 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
3559 ;;
3560 esac
3561 fi
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572 DEPDIR="${am__leading_dot}deps"
3573
3574 ac_config_commands="$ac_config_commands depfiles"
3575
3576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3577 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3578 cat > confinc.mk << 'END'
3579 am__doit:
3580 @echo this is the am__doit target >confinc.out
3581 .PHONY: am__doit
3582 END
3583 am__include="#"
3584 am__quote=
3585 # BSD make does it like this.
3586 echo '.include "confinc.mk" # ignored' > confmf.BSD
3587 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3588 echo 'include confinc.mk # ignored' > confmf.GNU
3589 _am_result=no
3590 for s in GNU BSD; do
3591 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3592 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3593 ac_status=$?
3594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595 (exit $ac_status); }
3596 case $?:`cat confinc.out 2>/dev/null` in #(
3597 '0:this is the am__doit target') :
3598 case $s in #(
3599 BSD) :
3600 am__include='.include' am__quote='"' ;; #(
3601 *) :
3602 am__include='include' am__quote='' ;;
3603 esac ;; #(
3604 *) :
3605 ;;
3606 esac
3607 if test "$am__include" != "#"; then
3608 _am_result="yes ($s style)"
3609 break
3610 fi
3611 done
3612 rm -f confinc.* confmf.*
3613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3614 printf "%s\n" "${_am_result}" >&6; }
3615
3616 # Check whether --enable-dependency-tracking was given.
3617 if test ${enable_dependency_tracking+y}
3618 then :
3619 enableval=$enable_dependency_tracking;
3620 fi
3621
3622 if test "x$enable_dependency_tracking" != xno; then
3623 am_depcomp="$ac_aux_dir/depcomp"
3624 AMDEPBACKSLASH='\'
3625 am__nodep='_no'
3626 fi
3627 if test "x$enable_dependency_tracking" != xno; then
3628 AMDEP_TRUE=
3629 AMDEP_FALSE='#'
3630 else
3631 AMDEP_TRUE='#'
3632 AMDEP_FALSE=
3633 fi
3634
3635
3636 ac_ext=c
3637 ac_cpp='$CPP $CPPFLAGS'
3638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3641 if test -n "$ac_tool_prefix"; then
3642 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3643 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3645 printf %s "checking for $ac_word... " >&6; }
3646 if test ${ac_cv_prog_CC+y}
3647 then :
3648 printf %s "(cached) " >&6
3649 else case e in #(
3650 e) if test -n "$CC"; then
3651 ac_cv_prog_CC="$CC" # Let the user override the test.
3652 else
3653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3654 for as_dir in $PATH
3655 do
3656 IFS=$as_save_IFS
3657 case $as_dir in #(((
3658 '') as_dir=./ ;;
3659 */) ;;
3660 *) as_dir=$as_dir/ ;;
3661 esac
3662 for ac_exec_ext in '' $ac_executable_extensions; do
3663 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3664 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3665 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3666 break 2
3667 fi
3668 done
3669 done
3670 IFS=$as_save_IFS
3671
3672 fi ;;
3673 esac
3674 fi
3675 CC=$ac_cv_prog_CC
3676 if test -n "$CC"; then
3677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3678 printf "%s\n" "$CC" >&6; }
3679 else
3680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3681 printf "%s\n" "no" >&6; }
3682 fi
3683
3684
3685 fi
3686 if test -z "$ac_cv_prog_CC"; then
3687 ac_ct_CC=$CC
3688 # Extract the first word of "gcc", so it can be a program name with args.
3689 set dummy gcc; ac_word=$2
3690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3691 printf %s "checking for $ac_word... " >&6; }
3692 if test ${ac_cv_prog_ac_ct_CC+y}
3693 then :
3694 printf %s "(cached) " >&6
3695 else case e in #(
3696 e) if test -n "$ac_ct_CC"; then
3697 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3698 else
3699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3700 for as_dir in $PATH
3701 do
3702 IFS=$as_save_IFS
3703 case $as_dir in #(((
3704 '') as_dir=./ ;;
3705 */) ;;
3706 *) as_dir=$as_dir/ ;;
3707 esac
3708 for ac_exec_ext in '' $ac_executable_extensions; do
3709 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3710 ac_cv_prog_ac_ct_CC="gcc"
3711 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3712 break 2
3713 fi
3714 done
3715 done
3716 IFS=$as_save_IFS
3717
3718 fi ;;
3719 esac
3720 fi
3721 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3722 if test -n "$ac_ct_CC"; then
3723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3724 printf "%s\n" "$ac_ct_CC" >&6; }
3725 else
3726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3727 printf "%s\n" "no" >&6; }
3728 fi
3729
3730 if test "x$ac_ct_CC" = x; then
3731 CC=""
3732 else
3733 case $cross_compiling:$ac_tool_warned in
3734 yes:)
3735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3736 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3737 ac_tool_warned=yes ;;
3738 esac
3739 CC=$ac_ct_CC
3740 fi
3741 else
3742 CC="$ac_cv_prog_CC"
3743 fi
3744
3745 if test -z "$CC"; then
3746 if test -n "$ac_tool_prefix"; then
3747 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3748 set dummy ${ac_tool_prefix}cc; ac_word=$2
3749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3750 printf %s "checking for $ac_word... " >&6; }
3751 if test ${ac_cv_prog_CC+y}
3752 then :
3753 printf %s "(cached) " >&6
3754 else case e in #(
3755 e) if test -n "$CC"; then
3756 ac_cv_prog_CC="$CC" # Let the user override the test.
3757 else
3758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3759 for as_dir in $PATH
3760 do
3761 IFS=$as_save_IFS
3762 case $as_dir in #(((
3763 '') as_dir=./ ;;
3764 */) ;;
3765 *) as_dir=$as_dir/ ;;
3766 esac
3767 for ac_exec_ext in '' $ac_executable_extensions; do
3768 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3769 ac_cv_prog_CC="${ac_tool_prefix}cc"
3770 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3771 break 2
3772 fi
3773 done
3774 done
3775 IFS=$as_save_IFS
3776
3777 fi ;;
3778 esac
3779 fi
3780 CC=$ac_cv_prog_CC
3781 if test -n "$CC"; then
3782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3783 printf "%s\n" "$CC" >&6; }
3784 else
3785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3786 printf "%s\n" "no" >&6; }
3787 fi
3788
3789
3790 fi
3791 fi
3792 if test -z "$CC"; then
3793 # Extract the first word of "cc", so it can be a program name with args.
3794 set dummy cc; ac_word=$2
3795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3796 printf %s "checking for $ac_word... " >&6; }
3797 if test ${ac_cv_prog_CC+y}
3798 then :
3799 printf %s "(cached) " >&6
3800 else case e in #(
3801 e) if test -n "$CC"; then
3802 ac_cv_prog_CC="$CC" # Let the user override the test.
3803 else
3804 ac_prog_rejected=no
3805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3806 for as_dir in $PATH
3807 do
3808 IFS=$as_save_IFS
3809 case $as_dir in #(((
3810 '') as_dir=./ ;;
3811 */) ;;
3812 *) as_dir=$as_dir/ ;;
3813 esac
3814 for ac_exec_ext in '' $ac_executable_extensions; do
3815 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3816 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3817 ac_prog_rejected=yes
3818 continue
3819 fi
3820 ac_cv_prog_CC="cc"
3821 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3822 break 2
3823 fi
3824 done
3825 done
3826 IFS=$as_save_IFS
3827
3828 if test $ac_prog_rejected = yes; then
3829 # We found a bogon in the path, so make sure we never use it.
3830 set dummy $ac_cv_prog_CC
3831 shift
3832 if test $# != 0; then
3833 # We chose a different compiler from the bogus one.
3834 # However, it has the same basename, so the bogon will be chosen
3835 # first if we set CC to just the basename; use the full file name.
3836 shift
3837 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3838 fi
3839 fi
3840 fi ;;
3841 esac
3842 fi
3843 CC=$ac_cv_prog_CC
3844 if test -n "$CC"; then
3845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3846 printf "%s\n" "$CC" >&6; }
3847 else
3848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3849 printf "%s\n" "no" >&6; }
3850 fi
3851
3852
3853 fi
3854 if test -z "$CC"; then
3855 if test -n "$ac_tool_prefix"; then
3856 for ac_prog in cl.exe
3857 do
3858 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3859 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3861 printf %s "checking for $ac_word... " >&6; }
3862 if test ${ac_cv_prog_CC+y}
3863 then :
3864 printf %s "(cached) " >&6
3865 else case e in #(
3866 e) if test -n "$CC"; then
3867 ac_cv_prog_CC="$CC" # Let the user override the test.
3868 else
3869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3870 for as_dir in $PATH
3871 do
3872 IFS=$as_save_IFS
3873 case $as_dir in #(((
3874 '') as_dir=./ ;;
3875 */) ;;
3876 *) as_dir=$as_dir/ ;;
3877 esac
3878 for ac_exec_ext in '' $ac_executable_extensions; do
3879 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3880 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3881 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3882 break 2
3883 fi
3884 done
3885 done
3886 IFS=$as_save_IFS
3887
3888 fi ;;
3889 esac
3890 fi
3891 CC=$ac_cv_prog_CC
3892 if test -n "$CC"; then
3893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3894 printf "%s\n" "$CC" >&6; }
3895 else
3896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3897 printf "%s\n" "no" >&6; }
3898 fi
3899
3900
3901 test -n "$CC" && break
3902 done
3903 fi
3904 if test -z "$CC"; then
3905 ac_ct_CC=$CC
3906 for ac_prog in cl.exe
3907 do
3908 # Extract the first word of "$ac_prog", so it can be a program name with args.
3909 set dummy $ac_prog; ac_word=$2
3910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3911 printf %s "checking for $ac_word... " >&6; }
3912 if test ${ac_cv_prog_ac_ct_CC+y}
3913 then :
3914 printf %s "(cached) " >&6
3915 else case e in #(
3916 e) if test -n "$ac_ct_CC"; then
3917 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3918 else
3919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3920 for as_dir in $PATH
3921 do
3922 IFS=$as_save_IFS
3923 case $as_dir in #(((
3924 '') as_dir=./ ;;
3925 */) ;;
3926 *) as_dir=$as_dir/ ;;
3927 esac
3928 for ac_exec_ext in '' $ac_executable_extensions; do
3929 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3930 ac_cv_prog_ac_ct_CC="$ac_prog"
3931 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3932 break 2
3933 fi
3934 done
3935 done
3936 IFS=$as_save_IFS
3937
3938 fi ;;
3939 esac
3940 fi
3941 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3942 if test -n "$ac_ct_CC"; then
3943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3944 printf "%s\n" "$ac_ct_CC" >&6; }
3945 else
3946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3947 printf "%s\n" "no" >&6; }
3948 fi
3949
3950
3951 test -n "$ac_ct_CC" && break
3952 done
3953
3954 if test "x$ac_ct_CC" = x; then
3955 CC=""
3956 else
3957 case $cross_compiling:$ac_tool_warned in
3958 yes:)
3959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3960 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3961 ac_tool_warned=yes ;;
3962 esac
3963 CC=$ac_ct_CC
3964 fi
3965 fi
3966
3967 fi
3968 if test -z "$CC"; then
3969 if test -n "$ac_tool_prefix"; then
3970 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3971 set dummy ${ac_tool_prefix}clang; ac_word=$2
3972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3973 printf %s "checking for $ac_word... " >&6; }
3974 if test ${ac_cv_prog_CC+y}
3975 then :
3976 printf %s "(cached) " >&6
3977 else case e in #(
3978 e) if test -n "$CC"; then
3979 ac_cv_prog_CC="$CC" # Let the user override the test.
3980 else
3981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3982 for as_dir in $PATH
3983 do
3984 IFS=$as_save_IFS
3985 case $as_dir in #(((
3986 '') as_dir=./ ;;
3987 */) ;;
3988 *) as_dir=$as_dir/ ;;
3989 esac
3990 for ac_exec_ext in '' $ac_executable_extensions; do
3991 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3992 ac_cv_prog_CC="${ac_tool_prefix}clang"
3993 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3994 break 2
3995 fi
3996 done
3997 done
3998 IFS=$as_save_IFS
3999
4000 fi ;;
4001 esac
4002 fi
4003 CC=$ac_cv_prog_CC
4004 if test -n "$CC"; then
4005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4006 printf "%s\n" "$CC" >&6; }
4007 else
4008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4009 printf "%s\n" "no" >&6; }
4010 fi
4011
4012
4013 fi
4014 if test -z "$ac_cv_prog_CC"; then
4015 ac_ct_CC=$CC
4016 # Extract the first word of "clang", so it can be a program name with args.
4017 set dummy clang; ac_word=$2
4018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4019 printf %s "checking for $ac_word... " >&6; }
4020 if test ${ac_cv_prog_ac_ct_CC+y}
4021 then :
4022 printf %s "(cached) " >&6
4023 else case e in #(
4024 e) if test -n "$ac_ct_CC"; then
4025 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4026 else
4027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4028 for as_dir in $PATH
4029 do
4030 IFS=$as_save_IFS
4031 case $as_dir in #(((
4032 '') as_dir=./ ;;
4033 */) ;;
4034 *) as_dir=$as_dir/ ;;
4035 esac
4036 for ac_exec_ext in '' $ac_executable_extensions; do
4037 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4038 ac_cv_prog_ac_ct_CC="clang"
4039 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4040 break 2
4041 fi
4042 done
4043 done
4044 IFS=$as_save_IFS
4045
4046 fi ;;
4047 esac
4048 fi
4049 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4050 if test -n "$ac_ct_CC"; then
4051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4052 printf "%s\n" "$ac_ct_CC" >&6; }
4053 else
4054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4055 printf "%s\n" "no" >&6; }
4056 fi
4057
4058 if test "x$ac_ct_CC" = x; then
4059 CC=""
4060 else
4061 case $cross_compiling:$ac_tool_warned in
4062 yes:)
4063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4064 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4065 ac_tool_warned=yes ;;
4066 esac
4067 CC=$ac_ct_CC
4068 fi
4069 else
4070 CC="$ac_cv_prog_CC"
4071 fi
4072
4073 fi
4074
4075
4076 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4077 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4078 as_fn_error $? "no acceptable C compiler found in \$PATH
4079 See 'config.log' for more details" "$LINENO" 5; }
4080
4081 # Provide some information about the compiler.
4082 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4083 set X $ac_compile
4084 ac_compiler=$2
4085 for ac_option in --version -v -V -qversion -version; do
4086 { { ac_try="$ac_compiler $ac_option >&5"
4087 case "(($ac_try" in
4088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4089 *) ac_try_echo=$ac_try;;
4090 esac
4091 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4092 printf "%s\n" "$ac_try_echo"; } >&5
4093 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4094 ac_status=$?
4095 if test -s conftest.err; then
4096 sed '10a\
4097 ... rest of stderr output deleted ...
4098 10q' conftest.err >conftest.er1
4099 cat conftest.er1 >&5
4100 fi
4101 rm -f conftest.er1 conftest.err
4102 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4103 test $ac_status = 0; }
4104 done
4105
4106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4107 /* end confdefs.h. */
4108
4109 int
4110 main (void)
4111 {
4112
4113 ;
4114 return 0;
4115 }
4116 _ACEOF
4117 ac_clean_files_save=$ac_clean_files
4118 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4119 # Try to create an executable without -o first, disregard a.out.
4120 # It will help us diagnose broken compilers, and finding out an intuition
4121 # of exeext.
4122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4123 printf %s "checking whether the C compiler works... " >&6; }
4124 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4125
4126 # The possible output files:
4127 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4128
4129 ac_rmfiles=
4130 for ac_file in $ac_files
4131 do
4132 case $ac_file in
4133 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4134 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4135 esac
4136 done
4137 rm -f $ac_rmfiles
4138
4139 if { { ac_try="$ac_link_default"
4140 case "(($ac_try" in
4141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4142 *) ac_try_echo=$ac_try;;
4143 esac
4144 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4145 printf "%s\n" "$ac_try_echo"; } >&5
4146 (eval "$ac_link_default") 2>&5
4147 ac_status=$?
4148 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4149 test $ac_status = 0; }
4150 then :
4151 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
4152 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
4153 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4154 # so that the user can short-circuit this test for compilers unknown to
4155 # Autoconf.
4156 for ac_file in $ac_files ''
4157 do
4158 test -f "$ac_file" || continue
4159 case $ac_file in
4160 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4161 ;;
4162 [ab].out )
4163 # We found the default executable, but exeext='' is most
4164 # certainly right.
4165 break;;
4166 *.* )
4167 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4168 then :; else
4169 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4170 fi
4171 # We set ac_cv_exeext here because the later test for it is not
4172 # safe: cross compilers may not add the suffix if given an '-o'
4173 # argument, so we may need to know it at that point already.
4174 # Even if this section looks crufty: it has the advantage of
4175 # actually working.
4176 break;;
4177 * )
4178 break;;
4179 esac
4180 done
4181 test "$ac_cv_exeext" = no && ac_cv_exeext=
4182
4183 else case e in #(
4184 e) ac_file='' ;;
4185 esac
4186 fi
4187 if test -z "$ac_file"
4188 then :
4189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4190 printf "%s\n" "no" >&6; }
4191 printf "%s\n" "$as_me: failed program was:" >&5
4192 sed 's/^/| /' conftest.$ac_ext >&5
4193
4194 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4195 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4196 as_fn_error 77 "C compiler cannot create executables
4197 See 'config.log' for more details" "$LINENO" 5; }
4198 else case e in #(
4199 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4200 printf "%s\n" "yes" >&6; } ;;
4201 esac
4202 fi
4203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4204 printf %s "checking for C compiler default output file name... " >&6; }
4205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4206 printf "%s\n" "$ac_file" >&6; }
4207 ac_exeext=$ac_cv_exeext
4208
4209 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4210 ac_clean_files=$ac_clean_files_save
4211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4212 printf %s "checking for suffix of executables... " >&6; }
4213 if { { ac_try="$ac_link"
4214 case "(($ac_try" in
4215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4216 *) ac_try_echo=$ac_try;;
4217 esac
4218 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4219 printf "%s\n" "$ac_try_echo"; } >&5
4220 (eval "$ac_link") 2>&5
4221 ac_status=$?
4222 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4223 test $ac_status = 0; }
4224 then :
4225 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
4226 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
4227 # work properly (i.e., refer to 'conftest.exe'), while it won't with
4228 # 'rm'.
4229 for ac_file in conftest.exe conftest conftest.*; do
4230 test -f "$ac_file" || continue
4231 case $ac_file in
4232 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4233 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4234 break;;
4235 * ) break;;
4236 esac
4237 done
4238 else case e in #(
4239 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4240 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4241 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4242 See 'config.log' for more details" "$LINENO" 5; } ;;
4243 esac
4244 fi
4245 rm -f conftest conftest$ac_cv_exeext
4246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4247 printf "%s\n" "$ac_cv_exeext" >&6; }
4248
4249 rm -f conftest.$ac_ext
4250 EXEEXT=$ac_cv_exeext
4251 ac_exeext=$EXEEXT
4252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4253 /* end confdefs.h. */
4254 #include <stdio.h>
4255 int
4256 main (void)
4257 {
4258 FILE *f = fopen ("conftest.out", "w");
4259 if (!f)
4260 return 1;
4261 return ferror (f) || fclose (f) != 0;
4262
4263 ;
4264 return 0;
4265 }
4266 _ACEOF
4267 ac_clean_files="$ac_clean_files conftest.out"
4268 # Check that the compiler produces executables we can run. If not, either
4269 # the compiler is broken, or we cross compile.
4270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4271 printf %s "checking whether we are cross compiling... " >&6; }
4272 if test "$cross_compiling" != yes; then
4273 { { ac_try="$ac_link"
4274 case "(($ac_try" in
4275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4276 *) ac_try_echo=$ac_try;;
4277 esac
4278 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4279 printf "%s\n" "$ac_try_echo"; } >&5
4280 (eval "$ac_link") 2>&5
4281 ac_status=$?
4282 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4283 test $ac_status = 0; }
4284 if { ac_try='./conftest$ac_cv_exeext'
4285 { { case "(($ac_try" in
4286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4287 *) ac_try_echo=$ac_try;;
4288 esac
4289 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4290 printf "%s\n" "$ac_try_echo"; } >&5
4291 (eval "$ac_try") 2>&5
4292 ac_status=$?
4293 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4294 test $ac_status = 0; }; }; then
4295 cross_compiling=no
4296 else
4297 if test "$cross_compiling" = maybe; then
4298 cross_compiling=yes
4299 else
4300 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4301 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4302 as_fn_error 77 "cannot run C compiled programs.
4303 If you meant to cross compile, use '--host'.
4304 See 'config.log' for more details" "$LINENO" 5; }
4305 fi
4306 fi
4307 fi
4308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4309 printf "%s\n" "$cross_compiling" >&6; }
4310
4311 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4312 conftest.o conftest.obj conftest.out
4313 ac_clean_files=$ac_clean_files_save
4314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4315 printf %s "checking for suffix of object files... " >&6; }
4316 if test ${ac_cv_objext+y}
4317 then :
4318 printf %s "(cached) " >&6
4319 else case e in #(
4320 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4321 /* end confdefs.h. */
4322
4323 int
4324 main (void)
4325 {
4326
4327 ;
4328 return 0;
4329 }
4330 _ACEOF
4331 rm -f conftest.o conftest.obj
4332 if { { ac_try="$ac_compile"
4333 case "(($ac_try" in
4334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4335 *) ac_try_echo=$ac_try;;
4336 esac
4337 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4338 printf "%s\n" "$ac_try_echo"; } >&5
4339 (eval "$ac_compile") 2>&5
4340 ac_status=$?
4341 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4342 test $ac_status = 0; }
4343 then :
4344 for ac_file in conftest.o conftest.obj conftest.*; do
4345 test -f "$ac_file" || continue;
4346 case $ac_file in
4347 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4348 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4349 break;;
4350 esac
4351 done
4352 else case e in #(
4353 e) printf "%s\n" "$as_me: failed program was:" >&5
4354 sed 's/^/| /' conftest.$ac_ext >&5
4355
4356 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4357 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4358 as_fn_error $? "cannot compute suffix of object files: cannot compile
4359 See 'config.log' for more details" "$LINENO" 5; } ;;
4360 esac
4361 fi
4362 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4363 esac
4364 fi
4365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4366 printf "%s\n" "$ac_cv_objext" >&6; }
4367 OBJEXT=$ac_cv_objext
4368 ac_objext=$OBJEXT
4369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4370 printf %s "checking whether the compiler supports GNU C... " >&6; }
4371 if test ${ac_cv_c_compiler_gnu+y}
4372 then :
4373 printf %s "(cached) " >&6
4374 else case e in #(
4375 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4376 /* end confdefs.h. */
4377
4378 int
4379 main (void)
4380 {
4381 #ifndef __GNUC__
4382 choke me
4383 #endif
4384
4385 ;
4386 return 0;
4387 }
4388 _ACEOF
4389 if ac_fn_c_try_compile "$LINENO"
4390 then :
4391 ac_compiler_gnu=yes
4392 else case e in #(
4393 e) ac_compiler_gnu=no ;;
4394 esac
4395 fi
4396 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4397 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4398 ;;
4399 esac
4400 fi
4401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4402 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4404
4405 if test $ac_compiler_gnu = yes; then
4406 GCC=yes
4407 else
4408 GCC=
4409 fi
4410 ac_test_CFLAGS=${CFLAGS+y}
4411 ac_save_CFLAGS=$CFLAGS
4412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4413 printf %s "checking whether $CC accepts -g... " >&6; }
4414 if test ${ac_cv_prog_cc_g+y}
4415 then :
4416 printf %s "(cached) " >&6
4417 else case e in #(
4418 e) ac_save_c_werror_flag=$ac_c_werror_flag
4419 ac_c_werror_flag=yes
4420 ac_cv_prog_cc_g=no
4421 CFLAGS="-g"
4422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4423 /* end confdefs.h. */
4424
4425 int
4426 main (void)
4427 {
4428
4429 ;
4430 return 0;
4431 }
4432 _ACEOF
4433 if ac_fn_c_try_compile "$LINENO"
4434 then :
4435 ac_cv_prog_cc_g=yes
4436 else case e in #(
4437 e) CFLAGS=""
4438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4439 /* end confdefs.h. */
4440
4441 int
4442 main (void)
4443 {
4444
4445 ;
4446 return 0;
4447 }
4448 _ACEOF
4449 if ac_fn_c_try_compile "$LINENO"
4450 then :
4451
4452 else case e in #(
4453 e) ac_c_werror_flag=$ac_save_c_werror_flag
4454 CFLAGS="-g"
4455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4456 /* end confdefs.h. */
4457
4458 int
4459 main (void)
4460 {
4461
4462 ;
4463 return 0;
4464 }
4465 _ACEOF
4466 if ac_fn_c_try_compile "$LINENO"
4467 then :
4468 ac_cv_prog_cc_g=yes
4469 fi
4470 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4471 esac
4472 fi
4473 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4474 esac
4475 fi
4476 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4477 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4478 esac
4479 fi
4480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4481 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4482 if test $ac_test_CFLAGS; then
4483 CFLAGS=$ac_save_CFLAGS
4484 elif test $ac_cv_prog_cc_g = yes; then
4485 if test "$GCC" = yes; then
4486 CFLAGS="-g -O2"
4487 else
4488 CFLAGS="-g"
4489 fi
4490 else
4491 if test "$GCC" = yes; then
4492 CFLAGS="-O2"
4493 else
4494 CFLAGS=
4495 fi
4496 fi
4497 ac_prog_cc_stdc=no
4498 if test x$ac_prog_cc_stdc = xno
4499 then :
4500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4501 printf %s "checking for $CC option to enable C11 features... " >&6; }
4502 if test ${ac_cv_prog_cc_c11+y}
4503 then :
4504 printf %s "(cached) " >&6
4505 else case e in #(
4506 e) ac_cv_prog_cc_c11=no
4507 ac_save_CC=$CC
4508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4509 /* end confdefs.h. */
4510 $ac_c_conftest_c11_program
4511 _ACEOF
4512 for ac_arg in '' -std=gnu11
4513 do
4514 CC="$ac_save_CC $ac_arg"
4515 if ac_fn_c_try_compile "$LINENO"
4516 then :
4517 ac_cv_prog_cc_c11=$ac_arg
4518 fi
4519 rm -f core conftest.err conftest.$ac_objext conftest.beam
4520 test "x$ac_cv_prog_cc_c11" != "xno" && break
4521 done
4522 rm -f conftest.$ac_ext
4523 CC=$ac_save_CC ;;
4524 esac
4525 fi
4526
4527 if test "x$ac_cv_prog_cc_c11" = xno
4528 then :
4529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4530 printf "%s\n" "unsupported" >&6; }
4531 else case e in #(
4532 e) if test "x$ac_cv_prog_cc_c11" = x
4533 then :
4534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4535 printf "%s\n" "none needed" >&6; }
4536 else case e in #(
4537 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4538 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4539 CC="$CC $ac_cv_prog_cc_c11" ;;
4540 esac
4541 fi
4542 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4543 ac_prog_cc_stdc=c11 ;;
4544 esac
4545 fi
4546 fi
4547 if test x$ac_prog_cc_stdc = xno
4548 then :
4549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4550 printf %s "checking for $CC option to enable C99 features... " >&6; }
4551 if test ${ac_cv_prog_cc_c99+y}
4552 then :
4553 printf %s "(cached) " >&6
4554 else case e in #(
4555 e) ac_cv_prog_cc_c99=no
4556 ac_save_CC=$CC
4557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4558 /* end confdefs.h. */
4559 $ac_c_conftest_c99_program
4560 _ACEOF
4561 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4562 do
4563 CC="$ac_save_CC $ac_arg"
4564 if ac_fn_c_try_compile "$LINENO"
4565 then :
4566 ac_cv_prog_cc_c99=$ac_arg
4567 fi
4568 rm -f core conftest.err conftest.$ac_objext conftest.beam
4569 test "x$ac_cv_prog_cc_c99" != "xno" && break
4570 done
4571 rm -f conftest.$ac_ext
4572 CC=$ac_save_CC ;;
4573 esac
4574 fi
4575
4576 if test "x$ac_cv_prog_cc_c99" = xno
4577 then :
4578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4579 printf "%s\n" "unsupported" >&6; }
4580 else case e in #(
4581 e) if test "x$ac_cv_prog_cc_c99" = x
4582 then :
4583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4584 printf "%s\n" "none needed" >&6; }
4585 else case e in #(
4586 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4587 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4588 CC="$CC $ac_cv_prog_cc_c99" ;;
4589 esac
4590 fi
4591 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4592 ac_prog_cc_stdc=c99 ;;
4593 esac
4594 fi
4595 fi
4596 if test x$ac_prog_cc_stdc = xno
4597 then :
4598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4599 printf %s "checking for $CC option to enable C89 features... " >&6; }
4600 if test ${ac_cv_prog_cc_c89+y}
4601 then :
4602 printf %s "(cached) " >&6
4603 else case e in #(
4604 e) ac_cv_prog_cc_c89=no
4605 ac_save_CC=$CC
4606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4607 /* end confdefs.h. */
4608 $ac_c_conftest_c89_program
4609 _ACEOF
4610 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4611 do
4612 CC="$ac_save_CC $ac_arg"
4613 if ac_fn_c_try_compile "$LINENO"
4614 then :
4615 ac_cv_prog_cc_c89=$ac_arg
4616 fi
4617 rm -f core conftest.err conftest.$ac_objext conftest.beam
4618 test "x$ac_cv_prog_cc_c89" != "xno" && break
4619 done
4620 rm -f conftest.$ac_ext
4621 CC=$ac_save_CC ;;
4622 esac
4623 fi
4624
4625 if test "x$ac_cv_prog_cc_c89" = xno
4626 then :
4627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4628 printf "%s\n" "unsupported" >&6; }
4629 else case e in #(
4630 e) if test "x$ac_cv_prog_cc_c89" = x
4631 then :
4632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4633 printf "%s\n" "none needed" >&6; }
4634 else case e in #(
4635 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4636 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4637 CC="$CC $ac_cv_prog_cc_c89" ;;
4638 esac
4639 fi
4640 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4641 ac_prog_cc_stdc=c89 ;;
4642 esac
4643 fi
4644 fi
4645
4646 ac_ext=c
4647 ac_cpp='$CPP $CPPFLAGS'
4648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4651
4652
4653 ac_ext=c
4654 ac_cpp='$CPP $CPPFLAGS'
4655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4659 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4660 if test ${am_cv_prog_cc_c_o+y}
4661 then :
4662 printf %s "(cached) " >&6
4663 else case e in #(
4664 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4665 /* end confdefs.h. */
4666
4667 int
4668 main (void)
4669 {
4670
4671 ;
4672 return 0;
4673 }
4674 _ACEOF
4675 # Make sure it works both with $CC and with simple cc.
4676 # Following AC_PROG_CC_C_O, we do the test twice because some
4677 # compilers refuse to overwrite an existing .o file with -o,
4678 # though they will create one.
4679 am_cv_prog_cc_c_o=yes
4680 for am_i in 1 2; do
4681 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4682 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4683 ac_status=$?
4684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685 (exit $ac_status); } \
4686 && test -f conftest2.$ac_objext; then
4687 : OK
4688 else
4689 am_cv_prog_cc_c_o=no
4690 break
4691 fi
4692 done
4693 # aligned with autoconf, so not including core; see bug#72225.
4694 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \
4695 conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \
4696 conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM
4697 unset am_i ;;
4698 esac
4699 fi
4700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4701 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4702 if test "$am_cv_prog_cc_c_o" != yes; then
4703 # Losing compiler, so override with the script.
4704 # FIXME: It is wrong to rewrite CC.
4705 # But if we don't then we get into trouble of one sort or another.
4706 # A longer-term fix would be to have automake use am__CC in this case,
4707 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4708 CC="$am_aux_dir/compile $CC"
4709 fi
4710 ac_ext=c
4711 ac_cpp='$CPP $CPPFLAGS'
4712 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4713 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4714 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4715
4716
4717 depcc="$CC" am_compiler_list=
4718
4719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4720 printf %s "checking dependency style of $depcc... " >&6; }
4721 if test ${am_cv_CC_dependencies_compiler_type+y}
4722 then :
4723 printf %s "(cached) " >&6
4724 else case e in #(
4725 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4726 # We make a subdir and do the tests there. Otherwise we can end up
4727 # making bogus files that we don't know about and never remove. For
4728 # instance it was reported that on HP-UX the gcc test will end up
4729 # making a dummy file named 'D' -- because '-MD' means "put the output
4730 # in D".
4731 rm -rf conftest.dir
4732 mkdir conftest.dir
4733 # Copy depcomp to subdir because otherwise we won't find it if we're
4734 # using a relative directory.
4735 cp "$am_depcomp" conftest.dir
4736 cd conftest.dir
4737 # We will build objects and dependencies in a subdirectory because
4738 # it helps to detect inapplicable dependency modes. For instance
4739 # both Tru64's cc and ICC support -MD to output dependencies as a
4740 # side effect of compilation, but ICC will put the dependencies in
4741 # the current directory while Tru64 will put them in the object
4742 # directory.
4743 mkdir sub
4744
4745 am_cv_CC_dependencies_compiler_type=none
4746 if test "$am_compiler_list" = ""; then
4747 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4748 fi
4749 am__universal=false
4750 case " $depcc " in #(
4751 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4752 esac
4753
4754 for depmode in $am_compiler_list; do
4755 # Setup a source with many dependencies, because some compilers
4756 # like to wrap large dependency lists on column 80 (with \), and
4757 # we should not choose a depcomp mode which is confused by this.
4758 #
4759 # We need to recreate these files for each test, as the compiler may
4760 # overwrite some of them when testing with obscure command lines.
4761 # This happens at least with the AIX C compiler.
4762 : > sub/conftest.c
4763 for i in 1 2 3 4 5 6; do
4764 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4765 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4766 # Solaris 10 /bin/sh.
4767 echo '/* dummy */' > sub/conftst$i.h
4768 done
4769 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4770
4771 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4772 # mode. It turns out that the SunPro C++ compiler does not properly
4773 # handle '-M -o', and we need to detect this. Also, some Intel
4774 # versions had trouble with output in subdirs.
4775 am__obj=sub/conftest.${OBJEXT-o}
4776 am__minus_obj="-o $am__obj"
4777 case $depmode in
4778 gcc)
4779 # This depmode causes a compiler race in universal mode.
4780 test "$am__universal" = false || continue
4781 ;;
4782 nosideeffect)
4783 # After this tag, mechanisms are not by side-effect, so they'll
4784 # only be used when explicitly requested.
4785 if test "x$enable_dependency_tracking" = xyes; then
4786 continue
4787 else
4788 break
4789 fi
4790 ;;
4791 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4792 # This compiler won't grok '-c -o', but also, the minuso test has
4793 # not run yet. These depmodes are late enough in the game, and
4794 # so weak that their functioning should not be impacted.
4795 am__obj=conftest.${OBJEXT-o}
4796 am__minus_obj=
4797 ;;
4798 none) break ;;
4799 esac
4800 if depmode=$depmode \
4801 source=sub/conftest.c object=$am__obj \
4802 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4803 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4804 >/dev/null 2>conftest.err &&
4805 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4806 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4807 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4808 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4809 # icc doesn't choke on unknown options, it will just issue warnings
4810 # or remarks (even with -Werror). So we grep stderr for any message
4811 # that says an option was ignored or not supported.
4812 # When given -MP, icc 7.0 and 7.1 complain thus:
4813 # icc: Command line warning: ignoring option '-M'; no argument required
4814 # The diagnosis changed in icc 8.0:
4815 # icc: Command line remark: option '-MP' not supported
4816 if (grep 'ignoring option' conftest.err ||
4817 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4818 am_cv_CC_dependencies_compiler_type=$depmode
4819 break
4820 fi
4821 fi
4822 done
4823
4824 cd ..
4825 rm -rf conftest.dir
4826 else
4827 am_cv_CC_dependencies_compiler_type=none
4828 fi
4829 ;;
4830 esac
4831 fi
4832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4833 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4834 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4835
4836 if
4837 test "x$enable_dependency_tracking" != xno \
4838 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4839 am__fastdepCC_TRUE=
4840 am__fastdepCC_FALSE='#'
4841 else
4842 am__fastdepCC_TRUE='#'
4843 am__fastdepCC_FALSE=
4844 fi
4845
4846
4847
4848 ac_header= ac_cache=
4849 for ac_item in $ac_header_c_list
4850 do
4851 if test $ac_cache; then
4852 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4853 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4854 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4855 fi
4856 ac_header= ac_cache=
4857 elif test $ac_header; then
4858 ac_cache=$ac_item
4859 else
4860 ac_header=$ac_item
4861 fi
4862 done
4863
4864
4865
4866
4867
4868
4869
4870
4871 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4872 then :
4873
4874 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4875
4876 fi
4877
4878
4879
4880
4881
4882
4883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4884 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4885 if test ${ac_cv_safe_to_define___extensions__+y}
4886 then :
4887 printf %s "(cached) " >&6
4888 else case e in #(
4889 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4890 /* end confdefs.h. */
4891
4892 # define __EXTENSIONS__ 1
4893 $ac_includes_default
4894 int
4895 main (void)
4896 {
4897
4898 ;
4899 return 0;
4900 }
4901 _ACEOF
4902 if ac_fn_c_try_compile "$LINENO"
4903 then :
4904 ac_cv_safe_to_define___extensions__=yes
4905 else case e in #(
4906 e) ac_cv_safe_to_define___extensions__=no ;;
4907 esac
4908 fi
4909 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4910 esac
4911 fi
4912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4913 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
4914
4915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4916 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4917 if test ${ac_cv_should_define__xopen_source+y}
4918 then :
4919 printf %s "(cached) " >&6
4920 else case e in #(
4921 e) ac_cv_should_define__xopen_source=no
4922 if test $ac_cv_header_wchar_h = yes
4923 then :
4924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4925 /* end confdefs.h. */
4926
4927 #include <wchar.h>
4928 mbstate_t x;
4929 int
4930 main (void)
4931 {
4932
4933 ;
4934 return 0;
4935 }
4936 _ACEOF
4937 if ac_fn_c_try_compile "$LINENO"
4938 then :
4939
4940 else case e in #(
4941 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4942 /* end confdefs.h. */
4943
4944 #define _XOPEN_SOURCE 500
4945 #include <wchar.h>
4946 mbstate_t x;
4947 int
4948 main (void)
4949 {
4950
4951 ;
4952 return 0;
4953 }
4954 _ACEOF
4955 if ac_fn_c_try_compile "$LINENO"
4956 then :
4957 ac_cv_should_define__xopen_source=yes
4958 fi
4959 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4960 esac
4961 fi
4962 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4963 fi ;;
4964 esac
4965 fi
4966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4967 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
4968
4969 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
4970
4971 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4972
4973 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
4974
4975 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
4976
4977 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
4978
4979 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
4980
4981 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4982
4983 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4984
4985 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4986
4987 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4988
4989 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
4990
4991 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4992
4993 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4994
4995 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4996
4997 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
4998
4999 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
5000
5001 if test $ac_cv_header_minix_config_h = yes
5002 then :
5003 MINIX=yes
5004 printf "%s\n" "#define _MINIX 1" >>confdefs.h
5005
5006 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
5007
5008 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
5009
5010 else case e in #(
5011 e) MINIX= ;;
5012 esac
5013 fi
5014 if test $ac_cv_safe_to_define___extensions__ = yes
5015 then :
5016 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
5017
5018 fi
5019 if test $ac_cv_should_define__xopen_source = yes
5020 then :
5021 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
5022
5023 fi
5024
5025 # Check whether --enable-compiler-warnings was given.
5026 if test ${enable_compiler_warnings+y}
5027 then :
5028 enableval=$enable_compiler_warnings;
5029 fi
5030 case $enable_compiler_warnings in #(
5031 no | min | yes | max | all) :
5032 ;; #(
5033 *) :
5034 if test "x$enable_maintainer_mode" = xyes
5035 then :
5036 enable_compiler_warnings=yes
5037 else case e in #(
5038 e) enable_compiler_warnings=min ;;
5039 esac
5040 fi ;;
5041 esac
5042
5043 case `pwd` in
5044 *\ * | *\ *)
5045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5046 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5047 esac
5048
5049
5050
5051 macro_version='2.5.4'
5052 macro_revision='2.5.4'
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067 ltmain=$ac_aux_dir/ltmain.sh
5068
5069
5070
5071 # Make sure we can run config.sub.
5072 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
5073 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
5074
5075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5076 printf %s "checking build system type... " >&6; }
5077 if test ${ac_cv_build+y}
5078 then :
5079 printf %s "(cached) " >&6
5080 else case e in #(
5081 e) ac_build_alias=$build_alias
5082 test "x$ac_build_alias" = x &&
5083 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
5084 test "x$ac_build_alias" = x &&
5085 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5086 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
5087 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
5088 ;;
5089 esac
5090 fi
5091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5092 printf "%s\n" "$ac_cv_build" >&6; }
5093 case $ac_cv_build in
5094 *-*-*) ;;
5095 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5096 esac
5097 build=$ac_cv_build
5098 ac_save_IFS=$IFS; IFS='-'
5099 set x $ac_cv_build
5100 shift
5101 build_cpu=$1
5102 build_vendor=$2
5103 shift; shift
5104 # Remember, the first character of IFS is used to create $*,
5105 # except with old shells:
5106 build_os=$*
5107 IFS=$ac_save_IFS
5108 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5109
5110
5111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5112 printf %s "checking host system type... " >&6; }
5113 if test ${ac_cv_host+y}
5114 then :
5115 printf %s "(cached) " >&6
5116 else case e in #(
5117 e) if test "x$host_alias" = x; then
5118 ac_cv_host=$ac_cv_build
5119 else
5120 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
5121 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
5122 fi
5123 ;;
5124 esac
5125 fi
5126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5127 printf "%s\n" "$ac_cv_host" >&6; }
5128 case $ac_cv_host in
5129 *-*-*) ;;
5130 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5131 esac
5132 host=$ac_cv_host
5133 ac_save_IFS=$IFS; IFS='-'
5134 set x $ac_cv_host
5135 shift
5136 host_cpu=$1
5137 host_vendor=$2
5138 shift; shift
5139 # Remember, the first character of IFS is used to create $*,
5140 # except with old shells:
5141 host_os=$*
5142 IFS=$ac_save_IFS
5143 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5144
5145
5146 # Backslashify metacharacters that are still active within
5147 # double-quoted strings.
5148 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5149
5150 # Same as above, but do not quote variable references.
5151 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5152
5153 # Sed substitution to delay expansion of an escaped shell variable in a
5154 # double_quote_subst'ed string.
5155 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5156
5157 # Sed substitution to delay expansion of an escaped single quote.
5158 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5159
5160 # Sed substitution to avoid accidental globbing in evaled expressions
5161 no_glob_subst='s/\*/\\\*/g'
5162
5163 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5164 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5165 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5166
5167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5168 printf %s "checking how to print strings... " >&6; }
5169 # Test print first, because it will be a builtin if present.
5170 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5171 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5172 ECHO='print -r --'
5173 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5174 ECHO='printf %s\n'
5175 else
5176 # Use this function as a fallback that always works.
5177 func_fallback_echo ()
5178 {
5179 eval 'cat <<_LTECHO_EOF
5180 $1
5181 _LTECHO_EOF'
5182 }
5183 ECHO='func_fallback_echo'
5184 fi
5185
5186 # func_echo_all arg...
5187 # Invoke $ECHO with all args, space-separated.
5188 func_echo_all ()
5189 {
5190 $ECHO ""
5191 }
5192
5193 case $ECHO in
5194 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5195 printf "%s\n" "printf" >&6; } ;;
5196 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5197 printf "%s\n" "print -r" >&6; } ;;
5198 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5199 printf "%s\n" "cat" >&6; } ;;
5200 esac
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5216 printf %s "checking for a sed that does not truncate output... " >&6; }
5217 if test ${ac_cv_path_SED+y}
5218 then :
5219 printf %s "(cached) " >&6
5220 else case e in #(
5221 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5222 for ac_i in 1 2 3 4 5 6 7; do
5223 ac_script="$ac_script$as_nl$ac_script"
5224 done
5225 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5226 { ac_script=; unset ac_script;}
5227 if test -z "$SED"; then
5228 ac_path_SED_found=false
5229 # Loop through the user's path and test for each of PROGNAME-LIST
5230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5231 for as_dir in $PATH
5232 do
5233 IFS=$as_save_IFS
5234 case $as_dir in #(((
5235 '') as_dir=./ ;;
5236 */) ;;
5237 *) as_dir=$as_dir/ ;;
5238 esac
5239 for ac_prog in sed gsed
5240 do
5241 for ac_exec_ext in '' $ac_executable_extensions; do
5242 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5243 as_fn_executable_p "$ac_path_SED" || continue
5244 # Check for GNU ac_path_SED and select it if it is found.
5245 # Check for GNU $ac_path_SED
5246 case `"$ac_path_SED" --version 2>&1` in #(
5247 *GNU*)
5248 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5249 #(
5250 *)
5251 ac_count=0
5252 printf %s 0123456789 >"conftest.in"
5253 while :
5254 do
5255 cat "conftest.in" "conftest.in" >"conftest.tmp"
5256 mv "conftest.tmp" "conftest.in"
5257 cp "conftest.in" "conftest.nl"
5258 printf "%s\n" '' >> "conftest.nl"
5259 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5260 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5261 as_fn_arith $ac_count + 1 && ac_count=$as_val
5262 if test $ac_count -gt ${ac_path_SED_max-0}; then
5263 # Best one so far, save it but keep looking for a better one
5264 ac_cv_path_SED="$ac_path_SED"
5265 ac_path_SED_max=$ac_count
5266 fi
5267 # 10*(2^10) chars as input seems more than enough
5268 test $ac_count -gt 10 && break
5269 done
5270 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5271 esac
5272
5273 $ac_path_SED_found && break 3
5274 done
5275 done
5276 done
5277 IFS=$as_save_IFS
5278 if test -z "$ac_cv_path_SED"; then
5279 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5280 fi
5281 else
5282 ac_cv_path_SED=$SED
5283 fi
5284 ;;
5285 esac
5286 fi
5287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5288 printf "%s\n" "$ac_cv_path_SED" >&6; }
5289 SED="$ac_cv_path_SED"
5290 rm -f conftest.sed
5291
5292 test -z "$SED" && SED=sed
5293 Xsed="$SED -e 1s/^X//"
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5306 printf %s "checking for grep that handles long lines and -e... " >&6; }
5307 if test ${ac_cv_path_GREP+y}
5308 then :
5309 printf %s "(cached) " >&6
5310 else case e in #(
5311 e) if test -z "$GREP"; then
5312 ac_path_GREP_found=false
5313 # Loop through the user's path and test for each of PROGNAME-LIST
5314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5315 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5316 do
5317 IFS=$as_save_IFS
5318 case $as_dir in #(((
5319 '') as_dir=./ ;;
5320 */) ;;
5321 *) as_dir=$as_dir/ ;;
5322 esac
5323 for ac_prog in grep ggrep
5324 do
5325 for ac_exec_ext in '' $ac_executable_extensions; do
5326 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5327 as_fn_executable_p "$ac_path_GREP" || continue
5328 # Check for GNU ac_path_GREP and select it if it is found.
5329 # Check for GNU $ac_path_GREP
5330 case `"$ac_path_GREP" --version 2>&1` in #(
5331 *GNU*)
5332 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5333 #(
5334 *)
5335 ac_count=0
5336 printf %s 0123456789 >"conftest.in"
5337 while :
5338 do
5339 cat "conftest.in" "conftest.in" >"conftest.tmp"
5340 mv "conftest.tmp" "conftest.in"
5341 cp "conftest.in" "conftest.nl"
5342 printf "%s\n" 'GREP' >> "conftest.nl"
5343 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5344 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5345 as_fn_arith $ac_count + 1 && ac_count=$as_val
5346 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5347 # Best one so far, save it but keep looking for a better one
5348 ac_cv_path_GREP="$ac_path_GREP"
5349 ac_path_GREP_max=$ac_count
5350 fi
5351 # 10*(2^10) chars as input seems more than enough
5352 test $ac_count -gt 10 && break
5353 done
5354 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5355 esac
5356
5357 $ac_path_GREP_found && break 3
5358 done
5359 done
5360 done
5361 IFS=$as_save_IFS
5362 if test -z "$ac_cv_path_GREP"; then
5363 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5364 fi
5365 else
5366 ac_cv_path_GREP=$GREP
5367 fi
5368 ;;
5369 esac
5370 fi
5371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5372 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5373 GREP="$ac_cv_path_GREP"
5374
5375
5376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5377 printf %s "checking for egrep... " >&6; }
5378 if test ${ac_cv_path_EGREP+y}
5379 then :
5380 printf %s "(cached) " >&6
5381 else case e in #(
5382 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5383 then ac_cv_path_EGREP="$GREP -E"
5384 else
5385 if test -z "$EGREP"; then
5386 ac_path_EGREP_found=false
5387 # Loop through the user's path and test for each of PROGNAME-LIST
5388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5389 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5390 do
5391 IFS=$as_save_IFS
5392 case $as_dir in #(((
5393 '') as_dir=./ ;;
5394 */) ;;
5395 *) as_dir=$as_dir/ ;;
5396 esac
5397 for ac_prog in egrep
5398 do
5399 for ac_exec_ext in '' $ac_executable_extensions; do
5400 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5401 as_fn_executable_p "$ac_path_EGREP" || continue
5402 # Check for GNU ac_path_EGREP and select it if it is found.
5403 # Check for GNU $ac_path_EGREP
5404 case `"$ac_path_EGREP" --version 2>&1` in #(
5405 *GNU*)
5406 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5407 #(
5408 *)
5409 ac_count=0
5410 printf %s 0123456789 >"conftest.in"
5411 while :
5412 do
5413 cat "conftest.in" "conftest.in" >"conftest.tmp"
5414 mv "conftest.tmp" "conftest.in"
5415 cp "conftest.in" "conftest.nl"
5416 printf "%s\n" 'EGREP' >> "conftest.nl"
5417 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5418 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5419 as_fn_arith $ac_count + 1 && ac_count=$as_val
5420 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5421 # Best one so far, save it but keep looking for a better one
5422 ac_cv_path_EGREP="$ac_path_EGREP"
5423 ac_path_EGREP_max=$ac_count
5424 fi
5425 # 10*(2^10) chars as input seems more than enough
5426 test $ac_count -gt 10 && break
5427 done
5428 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5429 esac
5430
5431 $ac_path_EGREP_found && break 3
5432 done
5433 done
5434 done
5435 IFS=$as_save_IFS
5436 if test -z "$ac_cv_path_EGREP"; then
5437 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5438 fi
5439 else
5440 ac_cv_path_EGREP=$EGREP
5441 fi
5442
5443 fi ;;
5444 esac
5445 fi
5446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5447 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5448 EGREP="$ac_cv_path_EGREP"
5449
5450 EGREP_TRADITIONAL=$EGREP
5451 ac_cv_path_EGREP_TRADITIONAL=$EGREP
5452
5453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5454 printf %s "checking for fgrep... " >&6; }
5455 if test ${ac_cv_path_FGREP+y}
5456 then :
5457 printf %s "(cached) " >&6
5458 else case e in #(
5459 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5460 then ac_cv_path_FGREP="$GREP -F"
5461 else
5462 if test -z "$FGREP"; then
5463 ac_path_FGREP_found=false
5464 # Loop through the user's path and test for each of PROGNAME-LIST
5465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5466 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5467 do
5468 IFS=$as_save_IFS
5469 case $as_dir in #(((
5470 '') as_dir=./ ;;
5471 */) ;;
5472 *) as_dir=$as_dir/ ;;
5473 esac
5474 for ac_prog in fgrep
5475 do
5476 for ac_exec_ext in '' $ac_executable_extensions; do
5477 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5478 as_fn_executable_p "$ac_path_FGREP" || continue
5479 # Check for GNU ac_path_FGREP and select it if it is found.
5480 # Check for GNU $ac_path_FGREP
5481 case `"$ac_path_FGREP" --version 2>&1` in #(
5482 *GNU*)
5483 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5484 #(
5485 *)
5486 ac_count=0
5487 printf %s 0123456789 >"conftest.in"
5488 while :
5489 do
5490 cat "conftest.in" "conftest.in" >"conftest.tmp"
5491 mv "conftest.tmp" "conftest.in"
5492 cp "conftest.in" "conftest.nl"
5493 printf "%s\n" 'FGREP' >> "conftest.nl"
5494 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5495 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5496 as_fn_arith $ac_count + 1 && ac_count=$as_val
5497 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5498 # Best one so far, save it but keep looking for a better one
5499 ac_cv_path_FGREP="$ac_path_FGREP"
5500 ac_path_FGREP_max=$ac_count
5501 fi
5502 # 10*(2^10) chars as input seems more than enough
5503 test $ac_count -gt 10 && break
5504 done
5505 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5506 esac
5507
5508 $ac_path_FGREP_found && break 3
5509 done
5510 done
5511 done
5512 IFS=$as_save_IFS
5513 if test -z "$ac_cv_path_FGREP"; then
5514 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5515 fi
5516 else
5517 ac_cv_path_FGREP=$FGREP
5518 fi
5519
5520 fi ;;
5521 esac
5522 fi
5523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5524 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5525 FGREP="$ac_cv_path_FGREP"
5526
5527
5528 test -z "$GREP" && GREP=grep
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548 # Check whether --with-gnu-ld was given.
5549 if test ${with_gnu_ld+y}
5550 then :
5551 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5552 else case e in #(
5553 e) with_gnu_ld=no ;;
5554 esac
5555 fi
5556
5557 ac_prog=ld
5558 if test yes = "$GCC"; then
5559 # Check if gcc -print-prog-name=ld gives a path.
5560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5561 printf %s "checking for ld used by $CC... " >&6; }
5562 case $host in
5563 *-*-mingw* | *-*-windows*)
5564 # gcc leaves a trailing carriage return, which upsets mingw
5565 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5566 *)
5567 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5568 esac
5569 case $ac_prog in
5570 # Accept absolute paths.
5571 [\\/]* | ?:[\\/]*)
5572 re_direlt='/[^/][^/]*/\.\./'
5573 # Canonicalize the pathname of ld
5574 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5575 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5576 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5577 done
5578 test -z "$LD" && LD=$ac_prog
5579 ;;
5580 "")
5581 # If it fails, then pretend we aren't using GCC.
5582 ac_prog=ld
5583 ;;
5584 *)
5585 # If it is relative, then search for the first ld in PATH.
5586 with_gnu_ld=unknown
5587 ;;
5588 esac
5589 elif test yes = "$with_gnu_ld"; then
5590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5591 printf %s "checking for GNU ld... " >&6; }
5592 else
5593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5594 printf %s "checking for non-GNU ld... " >&6; }
5595 fi
5596 if test ${lt_cv_path_LD+y}
5597 then :
5598 printf %s "(cached) " >&6
5599 else case e in #(
5600 e) if test -z "$LD"; then
5601 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5602 for ac_dir in $PATH; do
5603 IFS=$lt_save_ifs
5604 test -z "$ac_dir" && ac_dir=.
5605 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5606 lt_cv_path_LD=$ac_dir/$ac_prog
5607 # Check to see if the program is GNU ld. I'd rather use --version,
5608 # but apparently some variants of GNU ld only accept -v.
5609 # Break only if it was the GNU/non-GNU ld that we prefer.
5610 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5611 *GNU* | *'with BFD'*)
5612 test no != "$with_gnu_ld" && break
5613 ;;
5614 *)
5615 test yes != "$with_gnu_ld" && break
5616 ;;
5617 esac
5618 fi
5619 done
5620 IFS=$lt_save_ifs
5621 else
5622 lt_cv_path_LD=$LD # Let the user override the test with a path.
5623 fi ;;
5624 esac
5625 fi
5626
5627 LD=$lt_cv_path_LD
5628 if test -n "$LD"; then
5629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5630 printf "%s\n" "$LD" >&6; }
5631 else
5632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5633 printf "%s\n" "no" >&6; }
5634 fi
5635 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5637 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5638 if test ${lt_cv_prog_gnu_ld+y}
5639 then :
5640 printf %s "(cached) " >&6
5641 else case e in #(
5642 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
5643 case `$LD -v 2>&1 </dev/null` in
5644 *GNU* | *'with BFD'*)
5645 lt_cv_prog_gnu_ld=yes
5646 ;;
5647 *)
5648 lt_cv_prog_gnu_ld=no
5649 ;;
5650 esac ;;
5651 esac
5652 fi
5653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5654 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5655 with_gnu_ld=$lt_cv_prog_gnu_ld
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5666 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5667 if test ${lt_cv_path_NM+y}
5668 then :
5669 printf %s "(cached) " >&6
5670 else case e in #(
5671 e) if test -n "$NM"; then
5672 # Let the user override the test.
5673 lt_cv_path_NM=$NM
5674 else
5675 lt_nm_to_check=${ac_tool_prefix}nm
5676 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5677 lt_nm_to_check="$lt_nm_to_check nm"
5678 fi
5679 for lt_tmp_nm in $lt_nm_to_check; do
5680 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5681 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5682 IFS=$lt_save_ifs
5683 test -z "$ac_dir" && ac_dir=.
5684 tmp_nm=$ac_dir/$lt_tmp_nm
5685 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5686 # Check to see if the nm accepts a BSD-compat flag.
5687 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5688 # nm: unknown option "B" ignored
5689 # Tru64's nm complains that /dev/null is an invalid object file
5690 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5691 case $build_os in
5692 mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
5693 *) lt_bad_file=/dev/null ;;
5694 esac
5695 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5696 *$lt_bad_file* | *'Invalid file or object type'*)
5697 lt_cv_path_NM="$tmp_nm -B"
5698 break 2
5699 ;;
5700 *)
5701 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5702 */dev/null*)
5703 lt_cv_path_NM="$tmp_nm -p"
5704 break 2
5705 ;;
5706 *)
5707 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5708 continue # so that we can try to find one that supports BSD flags
5709 ;;
5710 esac
5711 ;;
5712 esac
5713 fi
5714 done
5715 IFS=$lt_save_ifs
5716 done
5717 : ${lt_cv_path_NM=no}
5718 fi ;;
5719 esac
5720 fi
5721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5722 printf "%s\n" "$lt_cv_path_NM" >&6; }
5723 if test no != "$lt_cv_path_NM"; then
5724 NM=$lt_cv_path_NM
5725 else
5726 # Didn't find any BSD compatible name lister, look for dumpbin.
5727 if test -n "$DUMPBIN"; then :
5728 # Let the user override the test.
5729 else
5730 if test -n "$ac_tool_prefix"; then
5731 for ac_prog in dumpbin "link -dump"
5732 do
5733 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5734 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5736 printf %s "checking for $ac_word... " >&6; }
5737 if test ${ac_cv_prog_DUMPBIN+y}
5738 then :
5739 printf %s "(cached) " >&6
5740 else case e in #(
5741 e) if test -n "$DUMPBIN"; then
5742 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5743 else
5744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5745 for as_dir in $PATH
5746 do
5747 IFS=$as_save_IFS
5748 case $as_dir in #(((
5749 '') as_dir=./ ;;
5750 */) ;;
5751 *) as_dir=$as_dir/ ;;
5752 esac
5753 for ac_exec_ext in '' $ac_executable_extensions; do
5754 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5755 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5756 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5757 break 2
5758 fi
5759 done
5760 done
5761 IFS=$as_save_IFS
5762
5763 fi ;;
5764 esac
5765 fi
5766 DUMPBIN=$ac_cv_prog_DUMPBIN
5767 if test -n "$DUMPBIN"; then
5768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5769 printf "%s\n" "$DUMPBIN" >&6; }
5770 else
5771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5772 printf "%s\n" "no" >&6; }
5773 fi
5774
5775
5776 test -n "$DUMPBIN" && break
5777 done
5778 fi
5779 if test -z "$DUMPBIN"; then
5780 ac_ct_DUMPBIN=$DUMPBIN
5781 for ac_prog in dumpbin "link -dump"
5782 do
5783 # Extract the first word of "$ac_prog", so it can be a program name with args.
5784 set dummy $ac_prog; ac_word=$2
5785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5786 printf %s "checking for $ac_word... " >&6; }
5787 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5788 then :
5789 printf %s "(cached) " >&6
5790 else case e in #(
5791 e) if test -n "$ac_ct_DUMPBIN"; then
5792 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5793 else
5794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5795 for as_dir in $PATH
5796 do
5797 IFS=$as_save_IFS
5798 case $as_dir in #(((
5799 '') as_dir=./ ;;
5800 */) ;;
5801 *) as_dir=$as_dir/ ;;
5802 esac
5803 for ac_exec_ext in '' $ac_executable_extensions; do
5804 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5805 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5806 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5807 break 2
5808 fi
5809 done
5810 done
5811 IFS=$as_save_IFS
5812
5813 fi ;;
5814 esac
5815 fi
5816 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5817 if test -n "$ac_ct_DUMPBIN"; then
5818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5819 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5820 else
5821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5822 printf "%s\n" "no" >&6; }
5823 fi
5824
5825
5826 test -n "$ac_ct_DUMPBIN" && break
5827 done
5828
5829 if test "x$ac_ct_DUMPBIN" = x; then
5830 DUMPBIN=":"
5831 else
5832 case $cross_compiling:$ac_tool_warned in
5833 yes:)
5834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5835 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5836 ac_tool_warned=yes ;;
5837 esac
5838 DUMPBIN=$ac_ct_DUMPBIN
5839 fi
5840 fi
5841
5842 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5843 *COFF*)
5844 DUMPBIN="$DUMPBIN -symbols -headers"
5845 ;;
5846 *)
5847 DUMPBIN=:
5848 ;;
5849 esac
5850 fi
5851
5852 if test : != "$DUMPBIN"; then
5853 NM=$DUMPBIN
5854 fi
5855 fi
5856 test -z "$NM" && NM=nm
5857
5858
5859
5860
5861
5862
5863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5864 printf %s "checking the name lister ($NM) interface... " >&6; }
5865 if test ${lt_cv_nm_interface+y}
5866 then :
5867 printf %s "(cached) " >&6
5868 else case e in #(
5869 e) lt_cv_nm_interface="BSD nm"
5870 echo "int some_variable = 0;" > conftest.$ac_ext
5871 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5872 (eval "$ac_compile" 2>conftest.err)
5873 cat conftest.err >&5
5874 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5875 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5876 cat conftest.err >&5
5877 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5878 cat conftest.out >&5
5879 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5880 lt_cv_nm_interface="MS dumpbin"
5881 fi
5882 rm -f conftest* ;;
5883 esac
5884 fi
5885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5886 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5887
5888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5889 printf %s "checking whether ln -s works... " >&6; }
5890 LN_S=$as_ln_s
5891 if test "$LN_S" = "ln -s"; then
5892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5893 printf "%s\n" "yes" >&6; }
5894 else
5895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5896 printf "%s\n" "no, using $LN_S" >&6; }
5897 fi
5898
5899 # find the maximum length of command line arguments
5900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5901 printf %s "checking the maximum length of command line arguments... " >&6; }
5902 if test ${lt_cv_sys_max_cmd_len+y}
5903 then :
5904 printf %s "(cached) " >&6
5905 else case e in #(
5906 e) i=0
5907 teststring=ABCD
5908
5909 case $build_os in
5910 msdosdjgpp*)
5911 # On DJGPP, this test can blow up pretty badly due to problems in libc
5912 # (any single argument exceeding 2000 bytes causes a buffer overrun
5913 # during glob expansion). Even if it were fixed, the result of this
5914 # check would be larger than it should be.
5915 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5916 ;;
5917
5918 gnu* | ironclad*)
5919 # Under GNU Hurd and Ironclad, this test is not required because there
5920 # is no limit to the length of command line arguments.
5921 # Libtool will interpret -1 as no limit whatsoever
5922 lt_cv_sys_max_cmd_len=-1;
5923 ;;
5924
5925 cygwin* | mingw* | windows* | cegcc*)
5926 # On Win9x/ME, this test blows up -- it succeeds, but takes
5927 # about 5 minutes as the teststring grows exponentially.
5928 # Worse, since 9x/ME are not pre-emptively multitasking,
5929 # you end up with a "frozen" computer, even though with patience
5930 # the test eventually succeeds (with a max line length of 256k).
5931 # Instead, let's just punt: use the minimum linelength reported by
5932 # all of the supported platforms: 8192 (on NT/2K/XP).
5933 lt_cv_sys_max_cmd_len=8192;
5934 ;;
5935
5936 mint*)
5937 # On MiNT this can take a long time and run out of memory.
5938 lt_cv_sys_max_cmd_len=8192;
5939 ;;
5940
5941 amigaos*)
5942 # On AmigaOS with pdksh, this test takes hours, literally.
5943 # So we just punt and use a minimum line length of 8192.
5944 lt_cv_sys_max_cmd_len=8192;
5945 ;;
5946
5947 darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5948 # This has been around since 386BSD, at least. Likely further.
5949 if test -x /sbin/sysctl; then
5950 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5951 elif test -x /usr/sbin/sysctl; then
5952 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5953 else
5954 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5955 fi
5956 # And add a safety zone
5957 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5958 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5959 ;;
5960
5961 interix*)
5962 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5963 lt_cv_sys_max_cmd_len=196608
5964 ;;
5965
5966 os2*)
5967 # The test takes a long time on OS/2.
5968 lt_cv_sys_max_cmd_len=8192
5969 ;;
5970
5971 osf*)
5972 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5973 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5974 # nice to cause kernel panics so lets avoid the loop below.
5975 # First set a reasonable default.
5976 lt_cv_sys_max_cmd_len=16384
5977 #
5978 if test -x /sbin/sysconfig; then
5979 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5980 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5981 esac
5982 fi
5983 ;;
5984 sco3.2v5*)
5985 lt_cv_sys_max_cmd_len=102400
5986 ;;
5987 sysv5* | sco5v6* | sysv4.2uw2*)
5988 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5989 if test -n "$kargmax"; then
5990 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
5991 else
5992 lt_cv_sys_max_cmd_len=32768
5993 fi
5994 ;;
5995 *)
5996 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5997 if test -n "$lt_cv_sys_max_cmd_len" && \
5998 test undefined != "$lt_cv_sys_max_cmd_len"; then
5999 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6000 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6001 else
6002 # Make teststring a little bigger before we do anything with it.
6003 # a 1K string should be a reasonable start.
6004 for i in 1 2 3 4 5 6 7 8; do
6005 teststring=$teststring$teststring
6006 done
6007 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6008 # If test is not a shell built-in, we'll probably end up computing a
6009 # maximum length that is only half of the actual maximum length, but
6010 # we can't tell.
6011 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6012 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6013 test 17 != "$i" # 1/2 MB should be enough
6014 do
6015 i=`expr $i + 1`
6016 teststring=$teststring$teststring
6017 done
6018 # Only check the string length outside the loop.
6019 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6020 teststring=
6021 # Add a significant safety factor because C++ compilers can tack on
6022 # massive amounts of additional arguments before passing them to the
6023 # linker. It appears as though 1/2 is a usable value.
6024 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6025 fi
6026 ;;
6027 esac
6028 ;;
6029 esac
6030 fi
6031
6032 if test -n "$lt_cv_sys_max_cmd_len"; then
6033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6034 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6035 else
6036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6037 printf "%s\n" "none" >&6; }
6038 fi
6039 max_cmd_len=$lt_cv_sys_max_cmd_len
6040
6041
6042
6043
6044
6045
6046 : ${CP="cp -f"}
6047 : ${MV="mv -f"}
6048 : ${RM="rm -f"}
6049
6050 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6051 lt_unset=unset
6052 else
6053 lt_unset=false
6054 fi
6055
6056
6057
6058
6059
6060 # test EBCDIC or ASCII
6061 case `echo X|tr X '\101'` in
6062 A) # ASCII based system
6063 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6064 lt_SP2NL='tr \040 \012'
6065 lt_NL2SP='tr \015\012 \040\040'
6066 ;;
6067 *) # EBCDIC based system
6068 lt_SP2NL='tr \100 \n'
6069 lt_NL2SP='tr \r\n \100\100'
6070 ;;
6071 esac
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6082 printf %s "checking how to convert $build file names to $host format... " >&6; }
6083 if test ${lt_cv_to_host_file_cmd+y}
6084 then :
6085 printf %s "(cached) " >&6
6086 else case e in #(
6087 e) case $host in
6088 *-*-mingw* )
6089 case $build in
6090 *-*-mingw* | *-*-windows* ) # actually msys
6091 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6092 ;;
6093 *-*-cygwin* )
6094 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6095 ;;
6096 * ) # otherwise, assume *nix
6097 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6098 ;;
6099 esac
6100 ;;
6101 *-*-cygwin* )
6102 case $build in
6103 *-*-mingw* | *-*-windows* ) # actually msys
6104 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6105 ;;
6106 *-*-cygwin* )
6107 lt_cv_to_host_file_cmd=func_convert_file_noop
6108 ;;
6109 * ) # otherwise, assume *nix
6110 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6111 ;;
6112 esac
6113 ;;
6114 * ) # unhandled hosts (and "normal" native builds)
6115 lt_cv_to_host_file_cmd=func_convert_file_noop
6116 ;;
6117 esac
6118 ;;
6119 esac
6120 fi
6121
6122 to_host_file_cmd=$lt_cv_to_host_file_cmd
6123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6124 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6125
6126
6127
6128
6129
6130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6131 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6132 if test ${lt_cv_to_tool_file_cmd+y}
6133 then :
6134 printf %s "(cached) " >&6
6135 else case e in #(
6136 e) #assume ordinary cross tools, or native build.
6137 lt_cv_to_tool_file_cmd=func_convert_file_noop
6138 case $host in
6139 *-*-mingw* | *-*-windows* )
6140 case $build in
6141 *-*-mingw* | *-*-windows* ) # actually msys
6142 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6143 ;;
6144 esac
6145 ;;
6146 esac
6147 ;;
6148 esac
6149 fi
6150
6151 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6153 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6154
6155
6156
6157
6158
6159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6160 printf %s "checking for $LD option to reload object files... " >&6; }
6161 if test ${lt_cv_ld_reload_flag+y}
6162 then :
6163 printf %s "(cached) " >&6
6164 else case e in #(
6165 e) lt_cv_ld_reload_flag='-r' ;;
6166 esac
6167 fi
6168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6169 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6170 reload_flag=$lt_cv_ld_reload_flag
6171 case $reload_flag in
6172 "" | " "*) ;;
6173 *) reload_flag=" $reload_flag" ;;
6174 esac
6175 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6176 case $host_os in
6177 cygwin* | mingw* | windows* | pw32* | cegcc*)
6178 if test yes != "$GCC"; then
6179 reload_cmds=false
6180 fi
6181 ;;
6182 darwin*)
6183 if test yes = "$GCC"; then
6184 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6185 else
6186 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6187 fi
6188 ;;
6189 esac
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199 # Extract the first word of "file", so it can be a program name with args.
6200 set dummy file; ac_word=$2
6201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6202 printf %s "checking for $ac_word... " >&6; }
6203 if test ${ac_cv_prog_FILECMD+y}
6204 then :
6205 printf %s "(cached) " >&6
6206 else case e in #(
6207 e) if test -n "$FILECMD"; then
6208 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
6209 else
6210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6211 for as_dir in $PATH
6212 do
6213 IFS=$as_save_IFS
6214 case $as_dir in #(((
6215 '') as_dir=./ ;;
6216 */) ;;
6217 *) as_dir=$as_dir/ ;;
6218 esac
6219 for ac_exec_ext in '' $ac_executable_extensions; do
6220 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6221 ac_cv_prog_FILECMD="file"
6222 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6223 break 2
6224 fi
6225 done
6226 done
6227 IFS=$as_save_IFS
6228
6229 test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":"
6230 fi ;;
6231 esac
6232 fi
6233 FILECMD=$ac_cv_prog_FILECMD
6234 if test -n "$FILECMD"; then
6235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6236 printf "%s\n" "$FILECMD" >&6; }
6237 else
6238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6239 printf "%s\n" "no" >&6; }
6240 fi
6241
6242
6243
6244
6245
6246
6247
6248
6249 if test -n "$ac_tool_prefix"; then
6250 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6251 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6253 printf %s "checking for $ac_word... " >&6; }
6254 if test ${ac_cv_prog_OBJDUMP+y}
6255 then :
6256 printf %s "(cached) " >&6
6257 else case e in #(
6258 e) if test -n "$OBJDUMP"; then
6259 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6260 else
6261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6262 for as_dir in $PATH
6263 do
6264 IFS=$as_save_IFS
6265 case $as_dir in #(((
6266 '') as_dir=./ ;;
6267 */) ;;
6268 *) as_dir=$as_dir/ ;;
6269 esac
6270 for ac_exec_ext in '' $ac_executable_extensions; do
6271 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6272 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6273 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6274 break 2
6275 fi
6276 done
6277 done
6278 IFS=$as_save_IFS
6279
6280 fi ;;
6281 esac
6282 fi
6283 OBJDUMP=$ac_cv_prog_OBJDUMP
6284 if test -n "$OBJDUMP"; then
6285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6286 printf "%s\n" "$OBJDUMP" >&6; }
6287 else
6288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6289 printf "%s\n" "no" >&6; }
6290 fi
6291
6292
6293 fi
6294 if test -z "$ac_cv_prog_OBJDUMP"; then
6295 ac_ct_OBJDUMP=$OBJDUMP
6296 # Extract the first word of "objdump", so it can be a program name with args.
6297 set dummy objdump; ac_word=$2
6298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6299 printf %s "checking for $ac_word... " >&6; }
6300 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6301 then :
6302 printf %s "(cached) " >&6
6303 else case e in #(
6304 e) if test -n "$ac_ct_OBJDUMP"; then
6305 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6306 else
6307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6308 for as_dir in $PATH
6309 do
6310 IFS=$as_save_IFS
6311 case $as_dir in #(((
6312 '') as_dir=./ ;;
6313 */) ;;
6314 *) as_dir=$as_dir/ ;;
6315 esac
6316 for ac_exec_ext in '' $ac_executable_extensions; do
6317 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6318 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6319 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6320 break 2
6321 fi
6322 done
6323 done
6324 IFS=$as_save_IFS
6325
6326 fi ;;
6327 esac
6328 fi
6329 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6330 if test -n "$ac_ct_OBJDUMP"; then
6331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6332 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6333 else
6334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6335 printf "%s\n" "no" >&6; }
6336 fi
6337
6338 if test "x$ac_ct_OBJDUMP" = x; then
6339 OBJDUMP="false"
6340 else
6341 case $cross_compiling:$ac_tool_warned in
6342 yes:)
6343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6344 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6345 ac_tool_warned=yes ;;
6346 esac
6347 OBJDUMP=$ac_ct_OBJDUMP
6348 fi
6349 else
6350 OBJDUMP="$ac_cv_prog_OBJDUMP"
6351 fi
6352
6353 test -z "$OBJDUMP" && OBJDUMP=objdump
6354
6355
6356
6357
6358
6359
6360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6361 printf %s "checking how to recognize dependent libraries... " >&6; }
6362 if test ${lt_cv_deplibs_check_method+y}
6363 then :
6364 printf %s "(cached) " >&6
6365 else case e in #(
6366 e) lt_cv_file_magic_cmd='$MAGIC_CMD'
6367 lt_cv_file_magic_test_file=
6368 lt_cv_deplibs_check_method='unknown'
6369 # Need to set the preceding variable on all platforms that support
6370 # interlibrary dependencies.
6371 # 'none' -- dependencies not supported.
6372 # 'unknown' -- same as none, but documents that we really don't know.
6373 # 'pass_all' -- all dependencies passed with no checks.
6374 # 'file_magic [[regex]]' -- check by looking for files in library path
6375 # that responds to the $file_magic_cmd with a given extended regex.
6376 # If you have 'file' or equivalent on your system and you're not sure
6377 # whether 'pass_all' will *always* work, you probably want this one.
6378
6379 case $host_os in
6380 aix[4-9]*)
6381 lt_cv_deplibs_check_method=pass_all
6382 ;;
6383
6384 beos*)
6385 lt_cv_deplibs_check_method=pass_all
6386 ;;
6387
6388 bsdi[45]*)
6389 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6390 lt_cv_file_magic_cmd='$FILECMD -L'
6391 lt_cv_file_magic_test_file=/shlib/libc.so
6392 ;;
6393
6394 cygwin*)
6395 # func_win32_libid is a shell function defined in ltmain.sh
6396 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6397 lt_cv_file_magic_cmd='func_win32_libid'
6398 ;;
6399
6400 mingw* | windows* | pw32*)
6401 # Base MSYS/MinGW do not provide the 'file' command needed by
6402 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6403 # unless we find 'file', for example because we are cross-compiling.
6404 if ( file / ) >/dev/null 2>&1; then
6405 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6406 lt_cv_file_magic_cmd='func_win32_libid'
6407 else
6408 # Keep this pattern in sync with the one in func_win32_libid.
6409 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
6410 lt_cv_file_magic_cmd='$OBJDUMP -f'
6411 fi
6412 ;;
6413
6414 cegcc*)
6415 # use the weaker test based on 'objdump'. See mingw*.
6416 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6417 lt_cv_file_magic_cmd='$OBJDUMP -f'
6418 ;;
6419
6420 darwin* | rhapsody*)
6421 lt_cv_deplibs_check_method=pass_all
6422 ;;
6423
6424 freebsd* | dragonfly* | midnightbsd*)
6425 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6426 case $host_cpu in
6427 i*86 )
6428 # Not sure whether the presence of OpenBSD here was a mistake.
6429 # Let's accept both of them until this is cleared up.
6430 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6431 lt_cv_file_magic_cmd=$FILECMD
6432 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6433 ;;
6434 esac
6435 else
6436 lt_cv_deplibs_check_method=pass_all
6437 fi
6438 ;;
6439
6440 haiku*)
6441 lt_cv_deplibs_check_method=pass_all
6442 ;;
6443
6444 hpux10.20* | hpux11*)
6445 lt_cv_file_magic_cmd=$FILECMD
6446 case $host_cpu in
6447 ia64*)
6448 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6449 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6450 ;;
6451 hppa*64*)
6452 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]'
6453 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6454 ;;
6455 *)
6456 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6457 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6458 ;;
6459 esac
6460 ;;
6461
6462 interix[3-9]*)
6463 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6464 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6465 ;;
6466
6467 irix5* | irix6* | nonstopux*)
6468 case $LD in
6469 *-32|*"-32 ") libmagic=32-bit;;
6470 *-n32|*"-n32 ") libmagic=N32;;
6471 *-64|*"-64 ") libmagic=64-bit;;
6472 *) libmagic=never-match;;
6473 esac
6474 lt_cv_deplibs_check_method=pass_all
6475 ;;
6476
6477 # This must be glibc/ELF.
6478 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6479 lt_cv_deplibs_check_method=pass_all
6480 ;;
6481
6482 *-mlibc)
6483 lt_cv_deplibs_check_method=pass_all
6484 ;;
6485
6486 netbsd* | netbsdelf*-gnu)
6487 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6488 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6489 else
6490 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6491 fi
6492 ;;
6493
6494 newos6*)
6495 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6496 lt_cv_file_magic_cmd=$FILECMD
6497 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6498 ;;
6499
6500 *nto* | *qnx*)
6501 lt_cv_deplibs_check_method=pass_all
6502 ;;
6503
6504 openbsd*)
6505 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6506 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6507 else
6508 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6509 fi
6510 ;;
6511
6512 osf3* | osf4* | osf5*)
6513 lt_cv_deplibs_check_method=pass_all
6514 ;;
6515
6516 rdos*)
6517 lt_cv_deplibs_check_method=pass_all
6518 ;;
6519
6520 serenity*)
6521 lt_cv_deplibs_check_method=pass_all
6522 ;;
6523
6524 solaris*)
6525 lt_cv_deplibs_check_method=pass_all
6526 ;;
6527
6528 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6529 lt_cv_deplibs_check_method=pass_all
6530 ;;
6531
6532 sysv4 | sysv4.3*)
6533 case $host_vendor in
6534 motorola)
6535 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]'
6536 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6537 ;;
6538 ncr)
6539 lt_cv_deplibs_check_method=pass_all
6540 ;;
6541 sequent)
6542 lt_cv_file_magic_cmd='/bin/file'
6543 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6544 ;;
6545 sni)
6546 lt_cv_file_magic_cmd='/bin/file'
6547 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6548 lt_cv_file_magic_test_file=/lib/libc.so
6549 ;;
6550 siemens)
6551 lt_cv_deplibs_check_method=pass_all
6552 ;;
6553 pc)
6554 lt_cv_deplibs_check_method=pass_all
6555 ;;
6556 esac
6557 ;;
6558
6559 tpf*)
6560 lt_cv_deplibs_check_method=pass_all
6561 ;;
6562 os2*)
6563 lt_cv_deplibs_check_method=pass_all
6564 ;;
6565 esac
6566 ;;
6567 esac
6568 fi
6569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6570 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6571
6572 file_magic_glob=
6573 want_nocaseglob=no
6574 if test "$build" = "$host"; then
6575 case $host_os in
6576 mingw* | windows* | pw32*)
6577 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6578 want_nocaseglob=yes
6579 else
6580 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6581 fi
6582 ;;
6583 esac
6584 fi
6585
6586 file_magic_cmd=$lt_cv_file_magic_cmd
6587 deplibs_check_method=$lt_cv_deplibs_check_method
6588 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611 if test -n "$ac_tool_prefix"; then
6612 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6613 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6615 printf %s "checking for $ac_word... " >&6; }
6616 if test ${ac_cv_prog_DLLTOOL+y}
6617 then :
6618 printf %s "(cached) " >&6
6619 else case e in #(
6620 e) if test -n "$DLLTOOL"; then
6621 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6622 else
6623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6624 for as_dir in $PATH
6625 do
6626 IFS=$as_save_IFS
6627 case $as_dir in #(((
6628 '') as_dir=./ ;;
6629 */) ;;
6630 *) as_dir=$as_dir/ ;;
6631 esac
6632 for ac_exec_ext in '' $ac_executable_extensions; do
6633 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6634 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6635 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6636 break 2
6637 fi
6638 done
6639 done
6640 IFS=$as_save_IFS
6641
6642 fi ;;
6643 esac
6644 fi
6645 DLLTOOL=$ac_cv_prog_DLLTOOL
6646 if test -n "$DLLTOOL"; then
6647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6648 printf "%s\n" "$DLLTOOL" >&6; }
6649 else
6650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6651 printf "%s\n" "no" >&6; }
6652 fi
6653
6654
6655 fi
6656 if test -z "$ac_cv_prog_DLLTOOL"; then
6657 ac_ct_DLLTOOL=$DLLTOOL
6658 # Extract the first word of "dlltool", so it can be a program name with args.
6659 set dummy dlltool; ac_word=$2
6660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6661 printf %s "checking for $ac_word... " >&6; }
6662 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6663 then :
6664 printf %s "(cached) " >&6
6665 else case e in #(
6666 e) if test -n "$ac_ct_DLLTOOL"; then
6667 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6668 else
6669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6670 for as_dir in $PATH
6671 do
6672 IFS=$as_save_IFS
6673 case $as_dir in #(((
6674 '') as_dir=./ ;;
6675 */) ;;
6676 *) as_dir=$as_dir/ ;;
6677 esac
6678 for ac_exec_ext in '' $ac_executable_extensions; do
6679 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6680 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6681 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6682 break 2
6683 fi
6684 done
6685 done
6686 IFS=$as_save_IFS
6687
6688 fi ;;
6689 esac
6690 fi
6691 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6692 if test -n "$ac_ct_DLLTOOL"; then
6693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6694 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6695 else
6696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6697 printf "%s\n" "no" >&6; }
6698 fi
6699
6700 if test "x$ac_ct_DLLTOOL" = x; then
6701 DLLTOOL="false"
6702 else
6703 case $cross_compiling:$ac_tool_warned in
6704 yes:)
6705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6706 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6707 ac_tool_warned=yes ;;
6708 esac
6709 DLLTOOL=$ac_ct_DLLTOOL
6710 fi
6711 else
6712 DLLTOOL="$ac_cv_prog_DLLTOOL"
6713 fi
6714
6715 test -z "$DLLTOOL" && DLLTOOL=dlltool
6716
6717
6718
6719
6720
6721
6722
6723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6724 printf %s "checking how to associate runtime and link libraries... " >&6; }
6725 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6726 then :
6727 printf %s "(cached) " >&6
6728 else case e in #(
6729 e) lt_cv_sharedlib_from_linklib_cmd='unknown'
6730
6731 case $host_os in
6732 cygwin* | mingw* | windows* | pw32* | cegcc*)
6733 # two different shell functions defined in ltmain.sh;
6734 # decide which one to use based on capabilities of $DLLTOOL
6735 case `$DLLTOOL --help 2>&1` in
6736 *--identify-strict*)
6737 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6738 ;;
6739 *)
6740 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6741 ;;
6742 esac
6743 ;;
6744 *)
6745 # fallback: assume linklib IS sharedlib
6746 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6747 ;;
6748 esac
6749 ;;
6750 esac
6751 fi
6752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6753 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6754 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6755 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6756
6757
6758
6759
6760
6761
6762
6763 if test -n "$ac_tool_prefix"; then
6764 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6765 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6767 printf %s "checking for $ac_word... " >&6; }
6768 if test ${ac_cv_prog_RANLIB+y}
6769 then :
6770 printf %s "(cached) " >&6
6771 else case e in #(
6772 e) if test -n "$RANLIB"; then
6773 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6774 else
6775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6776 for as_dir in $PATH
6777 do
6778 IFS=$as_save_IFS
6779 case $as_dir in #(((
6780 '') as_dir=./ ;;
6781 */) ;;
6782 *) as_dir=$as_dir/ ;;
6783 esac
6784 for ac_exec_ext in '' $ac_executable_extensions; do
6785 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6786 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6787 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6788 break 2
6789 fi
6790 done
6791 done
6792 IFS=$as_save_IFS
6793
6794 fi ;;
6795 esac
6796 fi
6797 RANLIB=$ac_cv_prog_RANLIB
6798 if test -n "$RANLIB"; then
6799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6800 printf "%s\n" "$RANLIB" >&6; }
6801 else
6802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6803 printf "%s\n" "no" >&6; }
6804 fi
6805
6806
6807 fi
6808 if test -z "$ac_cv_prog_RANLIB"; then
6809 ac_ct_RANLIB=$RANLIB
6810 # Extract the first word of "ranlib", so it can be a program name with args.
6811 set dummy ranlib; ac_word=$2
6812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6813 printf %s "checking for $ac_word... " >&6; }
6814 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6815 then :
6816 printf %s "(cached) " >&6
6817 else case e in #(
6818 e) if test -n "$ac_ct_RANLIB"; then
6819 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6820 else
6821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6822 for as_dir in $PATH
6823 do
6824 IFS=$as_save_IFS
6825 case $as_dir in #(((
6826 '') as_dir=./ ;;
6827 */) ;;
6828 *) as_dir=$as_dir/ ;;
6829 esac
6830 for ac_exec_ext in '' $ac_executable_extensions; do
6831 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6832 ac_cv_prog_ac_ct_RANLIB="ranlib"
6833 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6834 break 2
6835 fi
6836 done
6837 done
6838 IFS=$as_save_IFS
6839
6840 fi ;;
6841 esac
6842 fi
6843 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6844 if test -n "$ac_ct_RANLIB"; then
6845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6846 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6847 else
6848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6849 printf "%s\n" "no" >&6; }
6850 fi
6851
6852 if test "x$ac_ct_RANLIB" = x; then
6853 RANLIB=":"
6854 else
6855 case $cross_compiling:$ac_tool_warned in
6856 yes:)
6857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6858 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6859 ac_tool_warned=yes ;;
6860 esac
6861 RANLIB=$ac_ct_RANLIB
6862 fi
6863 else
6864 RANLIB="$ac_cv_prog_RANLIB"
6865 fi
6866
6867 if test -n "$ac_tool_prefix"; then
6868 for ac_prog in ar
6869 do
6870 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6871 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6873 printf %s "checking for $ac_word... " >&6; }
6874 if test ${ac_cv_prog_AR+y}
6875 then :
6876 printf %s "(cached) " >&6
6877 else case e in #(
6878 e) if test -n "$AR"; then
6879 ac_cv_prog_AR="$AR" # Let the user override the test.
6880 else
6881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6882 for as_dir in $PATH
6883 do
6884 IFS=$as_save_IFS
6885 case $as_dir in #(((
6886 '') as_dir=./ ;;
6887 */) ;;
6888 *) as_dir=$as_dir/ ;;
6889 esac
6890 for ac_exec_ext in '' $ac_executable_extensions; do
6891 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6892 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6893 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6894 break 2
6895 fi
6896 done
6897 done
6898 IFS=$as_save_IFS
6899
6900 fi ;;
6901 esac
6902 fi
6903 AR=$ac_cv_prog_AR
6904 if test -n "$AR"; then
6905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6906 printf "%s\n" "$AR" >&6; }
6907 else
6908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6909 printf "%s\n" "no" >&6; }
6910 fi
6911
6912
6913 test -n "$AR" && break
6914 done
6915 fi
6916 if test -z "$AR"; then
6917 ac_ct_AR=$AR
6918 for ac_prog in ar
6919 do
6920 # Extract the first word of "$ac_prog", so it can be a program name with args.
6921 set dummy $ac_prog; ac_word=$2
6922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6923 printf %s "checking for $ac_word... " >&6; }
6924 if test ${ac_cv_prog_ac_ct_AR+y}
6925 then :
6926 printf %s "(cached) " >&6
6927 else case e in #(
6928 e) if test -n "$ac_ct_AR"; then
6929 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6930 else
6931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6932 for as_dir in $PATH
6933 do
6934 IFS=$as_save_IFS
6935 case $as_dir in #(((
6936 '') as_dir=./ ;;
6937 */) ;;
6938 *) as_dir=$as_dir/ ;;
6939 esac
6940 for ac_exec_ext in '' $ac_executable_extensions; do
6941 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6942 ac_cv_prog_ac_ct_AR="$ac_prog"
6943 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6944 break 2
6945 fi
6946 done
6947 done
6948 IFS=$as_save_IFS
6949
6950 fi ;;
6951 esac
6952 fi
6953 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6954 if test -n "$ac_ct_AR"; then
6955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6956 printf "%s\n" "$ac_ct_AR" >&6; }
6957 else
6958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6959 printf "%s\n" "no" >&6; }
6960 fi
6961
6962
6963 test -n "$ac_ct_AR" && break
6964 done
6965
6966 if test "x$ac_ct_AR" = x; then
6967 AR="false"
6968 else
6969 case $cross_compiling:$ac_tool_warned in
6970 yes:)
6971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6972 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6973 ac_tool_warned=yes ;;
6974 esac
6975 AR=$ac_ct_AR
6976 fi
6977 fi
6978
6979 : ${AR=ar}
6980
6981
6982
6983
6984
6985
6986 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
6987 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6988 # higher priority because that's what people were doing historically (setting
6989 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
6990 # variable obsoleted/removed.
6991
6992 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6993 lt_ar_flags=$AR_FLAGS
6994
6995
6996
6997
6998
6999
7000 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
7001 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
7002
7003
7004
7005
7006
7007
7008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7009 printf %s "checking for archiver @FILE support... " >&6; }
7010 if test ${lt_cv_ar_at_file+y}
7011 then :
7012 printf %s "(cached) " >&6
7013 else case e in #(
7014 e) lt_cv_ar_at_file=no
7015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7016 /* end confdefs.h. */
7017
7018 int
7019 main (void)
7020 {
7021
7022 ;
7023 return 0;
7024 }
7025 _ACEOF
7026 if ac_fn_c_try_compile "$LINENO"
7027 then :
7028 echo conftest.$ac_objext > conftest.lst
7029 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7030 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7031 (eval $lt_ar_try) 2>&5
7032 ac_status=$?
7033 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7034 test $ac_status = 0; }
7035 if test 0 -eq "$ac_status"; then
7036 # Ensure the archiver fails upon bogus file names.
7037 rm -f conftest.$ac_objext libconftest.a
7038 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7039 (eval $lt_ar_try) 2>&5
7040 ac_status=$?
7041 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7042 test $ac_status = 0; }
7043 if test 0 -ne "$ac_status"; then
7044 lt_cv_ar_at_file=@
7045 fi
7046 fi
7047 rm -f conftest.* libconftest.a
7048
7049 fi
7050 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7051 ;;
7052 esac
7053 fi
7054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7055 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
7056
7057 if test no = "$lt_cv_ar_at_file"; then
7058 archiver_list_spec=
7059 else
7060 archiver_list_spec=$lt_cv_ar_at_file
7061 fi
7062
7063
7064
7065
7066
7067
7068
7069 if test -n "$ac_tool_prefix"; then
7070 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7071 set dummy ${ac_tool_prefix}strip; ac_word=$2
7072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7073 printf %s "checking for $ac_word... " >&6; }
7074 if test ${ac_cv_prog_STRIP+y}
7075 then :
7076 printf %s "(cached) " >&6
7077 else case e in #(
7078 e) if test -n "$STRIP"; then
7079 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7080 else
7081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7082 for as_dir in $PATH
7083 do
7084 IFS=$as_save_IFS
7085 case $as_dir in #(((
7086 '') as_dir=./ ;;
7087 */) ;;
7088 *) as_dir=$as_dir/ ;;
7089 esac
7090 for ac_exec_ext in '' $ac_executable_extensions; do
7091 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7092 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7093 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7094 break 2
7095 fi
7096 done
7097 done
7098 IFS=$as_save_IFS
7099
7100 fi ;;
7101 esac
7102 fi
7103 STRIP=$ac_cv_prog_STRIP
7104 if test -n "$STRIP"; then
7105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7106 printf "%s\n" "$STRIP" >&6; }
7107 else
7108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7109 printf "%s\n" "no" >&6; }
7110 fi
7111
7112
7113 fi
7114 if test -z "$ac_cv_prog_STRIP"; then
7115 ac_ct_STRIP=$STRIP
7116 # Extract the first word of "strip", so it can be a program name with args.
7117 set dummy strip; ac_word=$2
7118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7119 printf %s "checking for $ac_word... " >&6; }
7120 if test ${ac_cv_prog_ac_ct_STRIP+y}
7121 then :
7122 printf %s "(cached) " >&6
7123 else case e in #(
7124 e) if test -n "$ac_ct_STRIP"; then
7125 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7126 else
7127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7128 for as_dir in $PATH
7129 do
7130 IFS=$as_save_IFS
7131 case $as_dir in #(((
7132 '') as_dir=./ ;;
7133 */) ;;
7134 *) as_dir=$as_dir/ ;;
7135 esac
7136 for ac_exec_ext in '' $ac_executable_extensions; do
7137 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7138 ac_cv_prog_ac_ct_STRIP="strip"
7139 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7140 break 2
7141 fi
7142 done
7143 done
7144 IFS=$as_save_IFS
7145
7146 fi ;;
7147 esac
7148 fi
7149 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7150 if test -n "$ac_ct_STRIP"; then
7151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7152 printf "%s\n" "$ac_ct_STRIP" >&6; }
7153 else
7154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7155 printf "%s\n" "no" >&6; }
7156 fi
7157
7158 if test "x$ac_ct_STRIP" = x; then
7159 STRIP=":"
7160 else
7161 case $cross_compiling:$ac_tool_warned in
7162 yes:)
7163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7164 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7165 ac_tool_warned=yes ;;
7166 esac
7167 STRIP=$ac_ct_STRIP
7168 fi
7169 else
7170 STRIP="$ac_cv_prog_STRIP"
7171 fi
7172
7173 test -z "$STRIP" && STRIP=:
7174
7175
7176
7177
7178
7179
7180
7181 test -z "$RANLIB" && RANLIB=:
7182
7183
7184
7185
7186
7187
7188 # Determine commands to create old-style static archives.
7189 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7190 old_postinstall_cmds='chmod 644 $oldlib'
7191 old_postuninstall_cmds=
7192
7193 if test -n "$RANLIB"; then
7194 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7195 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7196 fi
7197
7198 case $host_os in
7199 darwin*)
7200 lock_old_archive_extraction=yes ;;
7201 *)
7202 lock_old_archive_extraction=no ;;
7203 esac
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243 # If no C compiler was specified, use CC.
7244 LTCC=${LTCC-"$CC"}
7245
7246 # If no C compiler flags were specified, use CFLAGS.
7247 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7248
7249 # Allow CC to be a program name with arguments.
7250 compiler=$CC
7251
7252
7253 # Check for command to grab the raw symbol name followed by C symbol from nm.
7254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7255 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7256 if test ${lt_cv_sys_global_symbol_pipe+y}
7257 then :
7258 printf %s "(cached) " >&6
7259 else case e in #(
7260 e)
7261 # These are sane defaults that work on at least a few old systems.
7262 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7263
7264 # Character class describing NM global symbol codes.
7265 symcode='[BCDEGRST]'
7266
7267 # Regexp to match symbols that can be accessed directly from C.
7268 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7269
7270 # Define system-specific variables.
7271 case $host_os in
7272 aix*)
7273 symcode='[BCDT]'
7274 ;;
7275 cygwin* | mingw* | windows* | pw32* | cegcc*)
7276 symcode='[ABCDGISTW]'
7277 ;;
7278 hpux*)
7279 if test ia64 = "$host_cpu"; then
7280 symcode='[ABCDEGRST]'
7281 fi
7282 ;;
7283 irix* | nonstopux*)
7284 symcode='[BCDEGRST]'
7285 ;;
7286 osf*)
7287 symcode='[BCDEGQRST]'
7288 ;;
7289 solaris*)
7290 symcode='[BCDRT]'
7291 ;;
7292 sco3.2v5*)
7293 symcode='[DT]'
7294 ;;
7295 sysv4.2uw2*)
7296 symcode='[DT]'
7297 ;;
7298 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7299 symcode='[ABDT]'
7300 ;;
7301 sysv4)
7302 symcode='[DFNSTU]'
7303 ;;
7304 esac
7305
7306 # If we're using GNU nm, then use its standard symbol codes.
7307 case `$NM -V 2>&1` in
7308 *GNU* | *'with BFD'*)
7309 symcode='[ABCDGIRSTW]' ;;
7310 esac
7311
7312 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7313 # Gets list of data symbols to import.
7314 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7315 # Adjust the below global symbol transforms to fixup imported variables.
7316 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7317 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7318 lt_c_name_lib_hook="\
7319 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7320 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7321 else
7322 # Disable hooks by default.
7323 lt_cv_sys_global_symbol_to_import=
7324 lt_cdecl_hook=
7325 lt_c_name_hook=
7326 lt_c_name_lib_hook=
7327 fi
7328
7329 # Transform an extracted symbol line into a proper C declaration.
7330 # Some systems (esp. on ia64) link data and code symbols differently,
7331 # so use this general approach.
7332 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7333 $lt_cdecl_hook\
7334 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7335 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7336
7337 # Transform an extracted symbol line into symbol name and symbol address
7338 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7339 $lt_c_name_hook\
7340 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7341 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7342
7343 # Transform an extracted symbol line into symbol name with lib prefix and
7344 # symbol address.
7345 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7346 $lt_c_name_lib_hook\
7347 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7348 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7349 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7350
7351 # Handle CRLF in mingw tool chain
7352 opt_cr=
7353 case $build_os in
7354 mingw* | windows*)
7355 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7356 ;;
7357 esac
7358
7359 # Try without a prefix underscore, then with it.
7360 for ac_symprfx in "" "_"; do
7361
7362 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7363 symxfrm="\\1 $ac_symprfx\\2 \\2"
7364
7365 # Write the raw and C identifiers.
7366 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7367 # Fake it for dumpbin and say T for any non-static function,
7368 # D for any global variable and I for any imported variable.
7369 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7370 # which start with @ or ?.
7371 lt_cv_sys_global_symbol_pipe="$AWK '"\
7372 " {last_section=section; section=\$ 3};"\
7373 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7374 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7375 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7376 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7377 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7378 " \$ 0!~/External *\|/{next};"\
7379 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7380 " {if(hide[section]) next};"\
7381 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7382 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7383 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7384 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7385 " ' prfx=^$ac_symprfx"
7386 else
7387 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7388 fi
7389 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7390
7391 # Check to see that the pipe works correctly.
7392 pipe_works=no
7393
7394 rm -f conftest*
7395 cat > conftest.$ac_ext <<_LT_EOF
7396 #ifdef __cplusplus
7397 extern "C" {
7398 #endif
7399 char nm_test_var;
7400 void nm_test_func(void);
7401 void nm_test_func(void){}
7402 #ifdef __cplusplus
7403 }
7404 #endif
7405 int main(void){nm_test_var='a';nm_test_func();return(0);}
7406 _LT_EOF
7407
7408 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7409 (eval $ac_compile) 2>&5
7410 ac_status=$?
7411 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7412 test $ac_status = 0; }; then
7413 # Now try to grab the symbols.
7414 nlist=conftest.nm
7415 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7416 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7417 # Try sorting and uniquifying the output.
7418 if sort "$nlist" | uniq > "$nlist"T; then
7419 mv -f "$nlist"T "$nlist"
7420 else
7421 rm -f "$nlist"T
7422 fi
7423
7424 # Make sure that we snagged all the symbols we need.
7425 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7426 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7427 cat <<_LT_EOF > conftest.$ac_ext
7428 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7429 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7430 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7431 relocations are performed -- see ld's documentation on pseudo-relocs. */
7432 # define LT_DLSYM_CONST
7433 #elif defined __osf__
7434 /* This system does not cope well with relocations in const data. */
7435 # define LT_DLSYM_CONST
7436 #else
7437 # define LT_DLSYM_CONST const
7438 #endif
7439
7440 #ifdef __cplusplus
7441 extern "C" {
7442 #endif
7443
7444 _LT_EOF
7445 # Now generate the symbol file.
7446 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7447
7448 cat <<_LT_EOF >> conftest.$ac_ext
7449
7450 /* The mapping between symbol names and symbols. */
7451 LT_DLSYM_CONST struct {
7452 const char *name;
7453 void *address;
7454 }
7455 lt__PROGRAM__LTX_preloaded_symbols[] =
7456 {
7457 { "@PROGRAM@", (void *) 0 },
7458 _LT_EOF
7459 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7460 cat <<\_LT_EOF >> conftest.$ac_ext
7461 {0, (void *) 0}
7462 };
7463
7464 /* This works around a problem in FreeBSD linker */
7465 #ifdef FREEBSD_WORKAROUND
7466 static const void *lt_preloaded_setup() {
7467 return lt__PROGRAM__LTX_preloaded_symbols;
7468 }
7469 #endif
7470
7471 #ifdef __cplusplus
7472 }
7473 #endif
7474 _LT_EOF
7475 # Now try linking the two files.
7476 mv conftest.$ac_objext conftstm.$ac_objext
7477 lt_globsym_save_LIBS=$LIBS
7478 lt_globsym_save_CFLAGS=$CFLAGS
7479 LIBS=conftstm.$ac_objext
7480 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7481 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7482 (eval $ac_link) 2>&5
7483 ac_status=$?
7484 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7485 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7486 pipe_works=yes
7487 fi
7488 LIBS=$lt_globsym_save_LIBS
7489 CFLAGS=$lt_globsym_save_CFLAGS
7490 else
7491 echo "cannot find nm_test_func in $nlist" >&5
7492 fi
7493 else
7494 echo "cannot find nm_test_var in $nlist" >&5
7495 fi
7496 else
7497 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7498 fi
7499 else
7500 echo "$progname: failed program was:" >&5
7501 cat conftest.$ac_ext >&5
7502 fi
7503 rm -rf conftest* conftst*
7504
7505 # Do not use the global_symbol_pipe unless it works.
7506 if test yes = "$pipe_works"; then
7507 break
7508 else
7509 lt_cv_sys_global_symbol_pipe=
7510 fi
7511 done
7512 ;;
7513 esac
7514 fi
7515
7516 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7517 lt_cv_sys_global_symbol_to_cdecl=
7518 fi
7519 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7521 printf "%s\n" "failed" >&6; }
7522 else
7523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7524 printf "%s\n" "ok" >&6; }
7525 fi
7526
7527 # Response file support.
7528 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7529 nm_file_list_spec='@'
7530 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7531 nm_file_list_spec='@'
7532 fi
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7571 printf %s "checking for sysroot... " >&6; }
7572
7573 # Check whether --with-sysroot was given.
7574 if test ${with_sysroot+y}
7575 then :
7576 withval=$with_sysroot;
7577 else case e in #(
7578 e) with_sysroot=no ;;
7579 esac
7580 fi
7581
7582
7583 lt_sysroot=
7584 case $with_sysroot in #(
7585 yes)
7586 if test yes = "$GCC"; then
7587 # Trim trailing / since we'll always append absolute paths and we want
7588 # to avoid //, if only for less confusing output for the user.
7589 lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`
7590 fi
7591 ;; #(
7592 /*)
7593 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7594 ;; #(
7595 no|'')
7596 ;; #(
7597 *)
7598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7599 printf "%s\n" "$with_sysroot" >&6; }
7600 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7601 ;;
7602 esac
7603
7604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7605 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7606
7607
7608
7609
7610
7611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7612 printf %s "checking for a working dd... " >&6; }
7613 if test ${ac_cv_path_lt_DD+y}
7614 then :
7615 printf %s "(cached) " >&6
7616 else case e in #(
7617 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7618 cat conftest.i conftest.i >conftest2.i
7619 : ${lt_DD:=$DD}
7620 if test -z "$lt_DD"; then
7621 ac_path_lt_DD_found=false
7622 # Loop through the user's path and test for each of PROGNAME-LIST
7623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7624 for as_dir in $PATH
7625 do
7626 IFS=$as_save_IFS
7627 case $as_dir in #(((
7628 '') as_dir=./ ;;
7629 */) ;;
7630 *) as_dir=$as_dir/ ;;
7631 esac
7632 for ac_prog in dd
7633 do
7634 for ac_exec_ext in '' $ac_executable_extensions; do
7635 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7636 as_fn_executable_p "$ac_path_lt_DD" || continue
7637 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7638 cmp -s conftest.i conftest.out \
7639 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7640 fi
7641 $ac_path_lt_DD_found && break 3
7642 done
7643 done
7644 done
7645 IFS=$as_save_IFS
7646 if test -z "$ac_cv_path_lt_DD"; then
7647 :
7648 fi
7649 else
7650 ac_cv_path_lt_DD=$lt_DD
7651 fi
7652
7653 rm -f conftest.i conftest2.i conftest.out ;;
7654 esac
7655 fi
7656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7657 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7658
7659
7660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7661 printf %s "checking how to truncate binary pipes... " >&6; }
7662 if test ${lt_cv_truncate_bin+y}
7663 then :
7664 printf %s "(cached) " >&6
7665 else case e in #(
7666 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7667 cat conftest.i conftest.i >conftest2.i
7668 lt_cv_truncate_bin=
7669 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7670 cmp -s conftest.i conftest.out \
7671 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7672 fi
7673 rm -f conftest.i conftest2.i conftest.out
7674 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
7675 esac
7676 fi
7677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7678 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7679
7680
7681
7682
7683
7684
7685
7686 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7687 func_cc_basename ()
7688 {
7689 for cc_temp in $*""; do
7690 case $cc_temp in
7691 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7692 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7693 \-*) ;;
7694 *) break;;
7695 esac
7696 done
7697 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7698 }
7699
7700 # Check whether --enable-libtool-lock was given.
7701 if test ${enable_libtool_lock+y}
7702 then :
7703 enableval=$enable_libtool_lock;
7704 fi
7705
7706 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7707
7708 # Some flags need to be propagated to the compiler or linker for good
7709 # libtool support.
7710 case $host in
7711 ia64-*-hpux*)
7712 # Find out what ABI is being produced by ac_compile, and set mode
7713 # options accordingly.
7714 echo 'int i;' > conftest.$ac_ext
7715 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7716 (eval $ac_compile) 2>&5
7717 ac_status=$?
7718 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7719 test $ac_status = 0; }; then
7720 case `$FILECMD conftest.$ac_objext` in
7721 *ELF-32*)
7722 HPUX_IA64_MODE=32
7723 ;;
7724 *ELF-64*)
7725 HPUX_IA64_MODE=64
7726 ;;
7727 esac
7728 fi
7729 rm -rf conftest*
7730 ;;
7731 *-*-irix6*)
7732 # Find out what ABI is being produced by ac_compile, and set linker
7733 # options accordingly.
7734 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7735 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7736 (eval $ac_compile) 2>&5
7737 ac_status=$?
7738 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7739 test $ac_status = 0; }; then
7740 if test yes = "$lt_cv_prog_gnu_ld"; then
7741 case `$FILECMD conftest.$ac_objext` in
7742 *32-bit*)
7743 LD="${LD-ld} -melf32bsmip"
7744 ;;
7745 *N32*)
7746 LD="${LD-ld} -melf32bmipn32"
7747 ;;
7748 *64-bit*)
7749 LD="${LD-ld} -melf64bmip"
7750 ;;
7751 esac
7752 else
7753 case `$FILECMD conftest.$ac_objext` in
7754 *32-bit*)
7755 LD="${LD-ld} -32"
7756 ;;
7757 *N32*)
7758 LD="${LD-ld} -n32"
7759 ;;
7760 *64-bit*)
7761 LD="${LD-ld} -64"
7762 ;;
7763 esac
7764 fi
7765 fi
7766 rm -rf conftest*
7767 ;;
7768
7769 mips64*-*linux*)
7770 # Find out what ABI is being produced by ac_compile, and set linker
7771 # options accordingly.
7772 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7773 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7774 (eval $ac_compile) 2>&5
7775 ac_status=$?
7776 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7777 test $ac_status = 0; }; then
7778 emul=elf
7779 case `$FILECMD conftest.$ac_objext` in
7780 *32-bit*)
7781 emul="${emul}32"
7782 ;;
7783 *64-bit*)
7784 emul="${emul}64"
7785 ;;
7786 esac
7787 case `$FILECMD conftest.$ac_objext` in
7788 *MSB*)
7789 emul="${emul}btsmip"
7790 ;;
7791 *LSB*)
7792 emul="${emul}ltsmip"
7793 ;;
7794 esac
7795 case `$FILECMD conftest.$ac_objext` in
7796 *N32*)
7797 emul="${emul}n32"
7798 ;;
7799 esac
7800 LD="${LD-ld} -m $emul"
7801 fi
7802 rm -rf conftest*
7803 ;;
7804
7805 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7806 s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
7807 # Find out what ABI is being produced by ac_compile, and set linker
7808 # options accordingly. Note that the listed cases only cover the
7809 # situations where additional linker options are needed (such as when
7810 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7811 # vice versa); the common cases where no linker options are needed do
7812 # not appear in the list.
7813 echo 'int i;' > conftest.$ac_ext
7814 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7815 (eval $ac_compile) 2>&5
7816 ac_status=$?
7817 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7818 test $ac_status = 0; }; then
7819 case `$FILECMD conftest.o` in
7820 *32-bit*)
7821 case $host in
7822 x86_64-*kfreebsd*-gnu)
7823 LD="${LD-ld} -m elf_i386_fbsd"
7824 ;;
7825 x86_64-*linux*|x86_64-gnu*)
7826 case `$FILECMD conftest.o` in
7827 *x86-64*)
7828 LD="${LD-ld} -m elf32_x86_64"
7829 ;;
7830 *)
7831 LD="${LD-ld} -m elf_i386"
7832 ;;
7833 esac
7834 ;;
7835 powerpc64le-*linux*)
7836 LD="${LD-ld} -m elf32lppclinux"
7837 ;;
7838 powerpc64-*linux*)
7839 LD="${LD-ld} -m elf32ppclinux"
7840 ;;
7841 s390x-*linux*)
7842 LD="${LD-ld} -m elf_s390"
7843 ;;
7844 sparc64-*linux*)
7845 LD="${LD-ld} -m elf32_sparc"
7846 ;;
7847 esac
7848 ;;
7849 *64-bit*)
7850 case $host in
7851 x86_64-*kfreebsd*-gnu)
7852 LD="${LD-ld} -m elf_x86_64_fbsd"
7853 ;;
7854 x86_64-*linux*|x86_64-gnu*)
7855 LD="${LD-ld} -m elf_x86_64"
7856 ;;
7857 powerpcle-*linux*)
7858 LD="${LD-ld} -m elf64lppc"
7859 ;;
7860 powerpc-*linux*)
7861 LD="${LD-ld} -m elf64ppc"
7862 ;;
7863 s390*-*linux*|s390*-*tpf*)
7864 LD="${LD-ld} -m elf64_s390"
7865 ;;
7866 sparc*-*linux*)
7867 LD="${LD-ld} -m elf64_sparc"
7868 ;;
7869 esac
7870 ;;
7871 esac
7872 fi
7873 rm -rf conftest*
7874 ;;
7875
7876 *-*-sco3.2v5*)
7877 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7878 SAVE_CFLAGS=$CFLAGS
7879 CFLAGS="$CFLAGS -belf"
7880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7881 printf %s "checking whether the C compiler needs -belf... " >&6; }
7882 if test ${lt_cv_cc_needs_belf+y}
7883 then :
7884 printf %s "(cached) " >&6
7885 else case e in #(
7886 e) ac_ext=c
7887 ac_cpp='$CPP $CPPFLAGS'
7888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7891
7892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7893 /* end confdefs.h. */
7894
7895 int
7896 main (void)
7897 {
7898
7899 ;
7900 return 0;
7901 }
7902 _ACEOF
7903 if ac_fn_c_try_link "$LINENO"
7904 then :
7905 lt_cv_cc_needs_belf=yes
7906 else case e in #(
7907 e) lt_cv_cc_needs_belf=no ;;
7908 esac
7909 fi
7910 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7911 conftest$ac_exeext conftest.$ac_ext
7912 ac_ext=c
7913 ac_cpp='$CPP $CPPFLAGS'
7914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7917 ;;
7918 esac
7919 fi
7920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7921 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7922 if test yes != "$lt_cv_cc_needs_belf"; then
7923 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7924 CFLAGS=$SAVE_CFLAGS
7925 fi
7926 ;;
7927 *-*solaris*)
7928 # Find out what ABI is being produced by ac_compile, and set linker
7929 # options accordingly.
7930 echo 'int i;' > conftest.$ac_ext
7931 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7932 (eval $ac_compile) 2>&5
7933 ac_status=$?
7934 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7935 test $ac_status = 0; }; then
7936 case `$FILECMD conftest.o` in
7937 *64-bit*)
7938 case $lt_cv_prog_gnu_ld in
7939 yes*)
7940 case $host in
7941 i?86-*-solaris*|x86_64-*-solaris*)
7942 LD="${LD-ld} -m elf_x86_64"
7943 ;;
7944 sparc*-*-solaris*)
7945 LD="${LD-ld} -m elf64_sparc"
7946 ;;
7947 esac
7948 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7949 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7950 LD=${LD-ld}_sol2
7951 fi
7952 ;;
7953 *)
7954 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7955 LD="${LD-ld} -64"
7956 fi
7957 ;;
7958 esac
7959 ;;
7960 esac
7961 fi
7962 rm -rf conftest*
7963 ;;
7964 esac
7965
7966 need_locks=$enable_libtool_lock
7967
7968 if test -n "$ac_tool_prefix"; then
7969 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7970 set dummy ${ac_tool_prefix}mt; ac_word=$2
7971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7972 printf %s "checking for $ac_word... " >&6; }
7973 if test ${ac_cv_prog_MANIFEST_TOOL+y}
7974 then :
7975 printf %s "(cached) " >&6
7976 else case e in #(
7977 e) if test -n "$MANIFEST_TOOL"; then
7978 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7979 else
7980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7981 for as_dir in $PATH
7982 do
7983 IFS=$as_save_IFS
7984 case $as_dir in #(((
7985 '') as_dir=./ ;;
7986 */) ;;
7987 *) as_dir=$as_dir/ ;;
7988 esac
7989 for ac_exec_ext in '' $ac_executable_extensions; do
7990 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7991 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7992 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7993 break 2
7994 fi
7995 done
7996 done
7997 IFS=$as_save_IFS
7998
7999 fi ;;
8000 esac
8001 fi
8002 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8003 if test -n "$MANIFEST_TOOL"; then
8004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8005 printf "%s\n" "$MANIFEST_TOOL" >&6; }
8006 else
8007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8008 printf "%s\n" "no" >&6; }
8009 fi
8010
8011
8012 fi
8013 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8014 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8015 # Extract the first word of "mt", so it can be a program name with args.
8016 set dummy mt; ac_word=$2
8017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8018 printf %s "checking for $ac_word... " >&6; }
8019 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8020 then :
8021 printf %s "(cached) " >&6
8022 else case e in #(
8023 e) if test -n "$ac_ct_MANIFEST_TOOL"; then
8024 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8025 else
8026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8027 for as_dir in $PATH
8028 do
8029 IFS=$as_save_IFS
8030 case $as_dir in #(((
8031 '') as_dir=./ ;;
8032 */) ;;
8033 *) as_dir=$as_dir/ ;;
8034 esac
8035 for ac_exec_ext in '' $ac_executable_extensions; do
8036 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8037 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8038 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8039 break 2
8040 fi
8041 done
8042 done
8043 IFS=$as_save_IFS
8044
8045 fi ;;
8046 esac
8047 fi
8048 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8049 if test -n "$ac_ct_MANIFEST_TOOL"; then
8050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8051 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
8052 else
8053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8054 printf "%s\n" "no" >&6; }
8055 fi
8056
8057 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8058 MANIFEST_TOOL=":"
8059 else
8060 case $cross_compiling:$ac_tool_warned in
8061 yes:)
8062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8063 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8064 ac_tool_warned=yes ;;
8065 esac
8066 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8067 fi
8068 else
8069 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8070 fi
8071
8072 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8074 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8075 if test ${lt_cv_path_manifest_tool+y}
8076 then :
8077 printf %s "(cached) " >&6
8078 else case e in #(
8079 e) lt_cv_path_manifest_tool=no
8080 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8081 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8082 cat conftest.err >&5
8083 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8084 lt_cv_path_manifest_tool=yes
8085 fi
8086 rm -f conftest* ;;
8087 esac
8088 fi
8089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5
8090 printf "%s\n" "$lt_cv_path_manifest_tool" >&6; }
8091 if test yes != "$lt_cv_path_manifest_tool"; then
8092 MANIFEST_TOOL=:
8093 fi
8094
8095
8096
8097
8098
8099
8100 case $host_os in
8101 rhapsody* | darwin*)
8102 if test -n "$ac_tool_prefix"; then
8103 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8104 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8106 printf %s "checking for $ac_word... " >&6; }
8107 if test ${ac_cv_prog_DSYMUTIL+y}
8108 then :
8109 printf %s "(cached) " >&6
8110 else case e in #(
8111 e) if test -n "$DSYMUTIL"; then
8112 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8113 else
8114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8115 for as_dir in $PATH
8116 do
8117 IFS=$as_save_IFS
8118 case $as_dir in #(((
8119 '') as_dir=./ ;;
8120 */) ;;
8121 *) as_dir=$as_dir/ ;;
8122 esac
8123 for ac_exec_ext in '' $ac_executable_extensions; do
8124 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8125 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8126 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8127 break 2
8128 fi
8129 done
8130 done
8131 IFS=$as_save_IFS
8132
8133 fi ;;
8134 esac
8135 fi
8136 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8137 if test -n "$DSYMUTIL"; then
8138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8139 printf "%s\n" "$DSYMUTIL" >&6; }
8140 else
8141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8142 printf "%s\n" "no" >&6; }
8143 fi
8144
8145
8146 fi
8147 if test -z "$ac_cv_prog_DSYMUTIL"; then
8148 ac_ct_DSYMUTIL=$DSYMUTIL
8149 # Extract the first word of "dsymutil", so it can be a program name with args.
8150 set dummy dsymutil; ac_word=$2
8151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8152 printf %s "checking for $ac_word... " >&6; }
8153 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8154 then :
8155 printf %s "(cached) " >&6
8156 else case e in #(
8157 e) if test -n "$ac_ct_DSYMUTIL"; then
8158 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8159 else
8160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8161 for as_dir in $PATH
8162 do
8163 IFS=$as_save_IFS
8164 case $as_dir in #(((
8165 '') as_dir=./ ;;
8166 */) ;;
8167 *) as_dir=$as_dir/ ;;
8168 esac
8169 for ac_exec_ext in '' $ac_executable_extensions; do
8170 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8171 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8172 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8173 break 2
8174 fi
8175 done
8176 done
8177 IFS=$as_save_IFS
8178
8179 fi ;;
8180 esac
8181 fi
8182 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8183 if test -n "$ac_ct_DSYMUTIL"; then
8184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8185 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8186 else
8187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8188 printf "%s\n" "no" >&6; }
8189 fi
8190
8191 if test "x$ac_ct_DSYMUTIL" = x; then
8192 DSYMUTIL=":"
8193 else
8194 case $cross_compiling:$ac_tool_warned in
8195 yes:)
8196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8197 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8198 ac_tool_warned=yes ;;
8199 esac
8200 DSYMUTIL=$ac_ct_DSYMUTIL
8201 fi
8202 else
8203 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8204 fi
8205
8206 if test -n "$ac_tool_prefix"; then
8207 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8208 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8210 printf %s "checking for $ac_word... " >&6; }
8211 if test ${ac_cv_prog_NMEDIT+y}
8212 then :
8213 printf %s "(cached) " >&6
8214 else case e in #(
8215 e) if test -n "$NMEDIT"; then
8216 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8217 else
8218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8219 for as_dir in $PATH
8220 do
8221 IFS=$as_save_IFS
8222 case $as_dir in #(((
8223 '') as_dir=./ ;;
8224 */) ;;
8225 *) as_dir=$as_dir/ ;;
8226 esac
8227 for ac_exec_ext in '' $ac_executable_extensions; do
8228 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8229 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8230 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8231 break 2
8232 fi
8233 done
8234 done
8235 IFS=$as_save_IFS
8236
8237 fi ;;
8238 esac
8239 fi
8240 NMEDIT=$ac_cv_prog_NMEDIT
8241 if test -n "$NMEDIT"; then
8242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8243 printf "%s\n" "$NMEDIT" >&6; }
8244 else
8245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8246 printf "%s\n" "no" >&6; }
8247 fi
8248
8249
8250 fi
8251 if test -z "$ac_cv_prog_NMEDIT"; then
8252 ac_ct_NMEDIT=$NMEDIT
8253 # Extract the first word of "nmedit", so it can be a program name with args.
8254 set dummy nmedit; ac_word=$2
8255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8256 printf %s "checking for $ac_word... " >&6; }
8257 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8258 then :
8259 printf %s "(cached) " >&6
8260 else case e in #(
8261 e) if test -n "$ac_ct_NMEDIT"; then
8262 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8263 else
8264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8265 for as_dir in $PATH
8266 do
8267 IFS=$as_save_IFS
8268 case $as_dir in #(((
8269 '') as_dir=./ ;;
8270 */) ;;
8271 *) as_dir=$as_dir/ ;;
8272 esac
8273 for ac_exec_ext in '' $ac_executable_extensions; do
8274 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8275 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8276 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8277 break 2
8278 fi
8279 done
8280 done
8281 IFS=$as_save_IFS
8282
8283 fi ;;
8284 esac
8285 fi
8286 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8287 if test -n "$ac_ct_NMEDIT"; then
8288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8289 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8290 else
8291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8292 printf "%s\n" "no" >&6; }
8293 fi
8294
8295 if test "x$ac_ct_NMEDIT" = x; then
8296 NMEDIT=":"
8297 else
8298 case $cross_compiling:$ac_tool_warned in
8299 yes:)
8300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8301 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8302 ac_tool_warned=yes ;;
8303 esac
8304 NMEDIT=$ac_ct_NMEDIT
8305 fi
8306 else
8307 NMEDIT="$ac_cv_prog_NMEDIT"
8308 fi
8309
8310 if test -n "$ac_tool_prefix"; then
8311 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8312 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8314 printf %s "checking for $ac_word... " >&6; }
8315 if test ${ac_cv_prog_LIPO+y}
8316 then :
8317 printf %s "(cached) " >&6
8318 else case e in #(
8319 e) if test -n "$LIPO"; then
8320 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8321 else
8322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8323 for as_dir in $PATH
8324 do
8325 IFS=$as_save_IFS
8326 case $as_dir in #(((
8327 '') as_dir=./ ;;
8328 */) ;;
8329 *) as_dir=$as_dir/ ;;
8330 esac
8331 for ac_exec_ext in '' $ac_executable_extensions; do
8332 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8333 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8334 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8335 break 2
8336 fi
8337 done
8338 done
8339 IFS=$as_save_IFS
8340
8341 fi ;;
8342 esac
8343 fi
8344 LIPO=$ac_cv_prog_LIPO
8345 if test -n "$LIPO"; then
8346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8347 printf "%s\n" "$LIPO" >&6; }
8348 else
8349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8350 printf "%s\n" "no" >&6; }
8351 fi
8352
8353
8354 fi
8355 if test -z "$ac_cv_prog_LIPO"; then
8356 ac_ct_LIPO=$LIPO
8357 # Extract the first word of "lipo", so it can be a program name with args.
8358 set dummy lipo; ac_word=$2
8359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8360 printf %s "checking for $ac_word... " >&6; }
8361 if test ${ac_cv_prog_ac_ct_LIPO+y}
8362 then :
8363 printf %s "(cached) " >&6
8364 else case e in #(
8365 e) if test -n "$ac_ct_LIPO"; then
8366 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8367 else
8368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8369 for as_dir in $PATH
8370 do
8371 IFS=$as_save_IFS
8372 case $as_dir in #(((
8373 '') as_dir=./ ;;
8374 */) ;;
8375 *) as_dir=$as_dir/ ;;
8376 esac
8377 for ac_exec_ext in '' $ac_executable_extensions; do
8378 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8379 ac_cv_prog_ac_ct_LIPO="lipo"
8380 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8381 break 2
8382 fi
8383 done
8384 done
8385 IFS=$as_save_IFS
8386
8387 fi ;;
8388 esac
8389 fi
8390 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8391 if test -n "$ac_ct_LIPO"; then
8392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8393 printf "%s\n" "$ac_ct_LIPO" >&6; }
8394 else
8395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8396 printf "%s\n" "no" >&6; }
8397 fi
8398
8399 if test "x$ac_ct_LIPO" = x; then
8400 LIPO=":"
8401 else
8402 case $cross_compiling:$ac_tool_warned in
8403 yes:)
8404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8405 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8406 ac_tool_warned=yes ;;
8407 esac
8408 LIPO=$ac_ct_LIPO
8409 fi
8410 else
8411 LIPO="$ac_cv_prog_LIPO"
8412 fi
8413
8414 if test -n "$ac_tool_prefix"; then
8415 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8416 set dummy ${ac_tool_prefix}otool; ac_word=$2
8417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8418 printf %s "checking for $ac_word... " >&6; }
8419 if test ${ac_cv_prog_OTOOL+y}
8420 then :
8421 printf %s "(cached) " >&6
8422 else case e in #(
8423 e) if test -n "$OTOOL"; then
8424 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8425 else
8426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8427 for as_dir in $PATH
8428 do
8429 IFS=$as_save_IFS
8430 case $as_dir in #(((
8431 '') as_dir=./ ;;
8432 */) ;;
8433 *) as_dir=$as_dir/ ;;
8434 esac
8435 for ac_exec_ext in '' $ac_executable_extensions; do
8436 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8437 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8438 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8439 break 2
8440 fi
8441 done
8442 done
8443 IFS=$as_save_IFS
8444
8445 fi ;;
8446 esac
8447 fi
8448 OTOOL=$ac_cv_prog_OTOOL
8449 if test -n "$OTOOL"; then
8450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8451 printf "%s\n" "$OTOOL" >&6; }
8452 else
8453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8454 printf "%s\n" "no" >&6; }
8455 fi
8456
8457
8458 fi
8459 if test -z "$ac_cv_prog_OTOOL"; then
8460 ac_ct_OTOOL=$OTOOL
8461 # Extract the first word of "otool", so it can be a program name with args.
8462 set dummy otool; ac_word=$2
8463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8464 printf %s "checking for $ac_word... " >&6; }
8465 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8466 then :
8467 printf %s "(cached) " >&6
8468 else case e in #(
8469 e) if test -n "$ac_ct_OTOOL"; then
8470 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8471 else
8472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8473 for as_dir in $PATH
8474 do
8475 IFS=$as_save_IFS
8476 case $as_dir in #(((
8477 '') as_dir=./ ;;
8478 */) ;;
8479 *) as_dir=$as_dir/ ;;
8480 esac
8481 for ac_exec_ext in '' $ac_executable_extensions; do
8482 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8483 ac_cv_prog_ac_ct_OTOOL="otool"
8484 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8485 break 2
8486 fi
8487 done
8488 done
8489 IFS=$as_save_IFS
8490
8491 fi ;;
8492 esac
8493 fi
8494 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8495 if test -n "$ac_ct_OTOOL"; then
8496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8497 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8498 else
8499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8500 printf "%s\n" "no" >&6; }
8501 fi
8502
8503 if test "x$ac_ct_OTOOL" = x; then
8504 OTOOL=":"
8505 else
8506 case $cross_compiling:$ac_tool_warned in
8507 yes:)
8508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8509 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8510 ac_tool_warned=yes ;;
8511 esac
8512 OTOOL=$ac_ct_OTOOL
8513 fi
8514 else
8515 OTOOL="$ac_cv_prog_OTOOL"
8516 fi
8517
8518 if test -n "$ac_tool_prefix"; then
8519 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8520 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8522 printf %s "checking for $ac_word... " >&6; }
8523 if test ${ac_cv_prog_OTOOL64+y}
8524 then :
8525 printf %s "(cached) " >&6
8526 else case e in #(
8527 e) if test -n "$OTOOL64"; then
8528 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8529 else
8530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8531 for as_dir in $PATH
8532 do
8533 IFS=$as_save_IFS
8534 case $as_dir in #(((
8535 '') as_dir=./ ;;
8536 */) ;;
8537 *) as_dir=$as_dir/ ;;
8538 esac
8539 for ac_exec_ext in '' $ac_executable_extensions; do
8540 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8541 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8542 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8543 break 2
8544 fi
8545 done
8546 done
8547 IFS=$as_save_IFS
8548
8549 fi ;;
8550 esac
8551 fi
8552 OTOOL64=$ac_cv_prog_OTOOL64
8553 if test -n "$OTOOL64"; then
8554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8555 printf "%s\n" "$OTOOL64" >&6; }
8556 else
8557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8558 printf "%s\n" "no" >&6; }
8559 fi
8560
8561
8562 fi
8563 if test -z "$ac_cv_prog_OTOOL64"; then
8564 ac_ct_OTOOL64=$OTOOL64
8565 # Extract the first word of "otool64", so it can be a program name with args.
8566 set dummy otool64; ac_word=$2
8567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8568 printf %s "checking for $ac_word... " >&6; }
8569 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8570 then :
8571 printf %s "(cached) " >&6
8572 else case e in #(
8573 e) if test -n "$ac_ct_OTOOL64"; then
8574 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8575 else
8576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8577 for as_dir in $PATH
8578 do
8579 IFS=$as_save_IFS
8580 case $as_dir in #(((
8581 '') as_dir=./ ;;
8582 */) ;;
8583 *) as_dir=$as_dir/ ;;
8584 esac
8585 for ac_exec_ext in '' $ac_executable_extensions; do
8586 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8587 ac_cv_prog_ac_ct_OTOOL64="otool64"
8588 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8589 break 2
8590 fi
8591 done
8592 done
8593 IFS=$as_save_IFS
8594
8595 fi ;;
8596 esac
8597 fi
8598 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8599 if test -n "$ac_ct_OTOOL64"; then
8600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8601 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8602 else
8603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8604 printf "%s\n" "no" >&6; }
8605 fi
8606
8607 if test "x$ac_ct_OTOOL64" = x; then
8608 OTOOL64=":"
8609 else
8610 case $cross_compiling:$ac_tool_warned in
8611 yes:)
8612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8613 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8614 ac_tool_warned=yes ;;
8615 esac
8616 OTOOL64=$ac_ct_OTOOL64
8617 fi
8618 else
8619 OTOOL64="$ac_cv_prog_OTOOL64"
8620 fi
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8649 printf %s "checking for -single_module linker flag... " >&6; }
8650 if test ${lt_cv_apple_cc_single_mod+y}
8651 then :
8652 printf %s "(cached) " >&6
8653 else case e in #(
8654 e) lt_cv_apple_cc_single_mod=no
8655 if test -z "$LT_MULTI_MODULE"; then
8656 # By default we will add the -single_module flag. You can override
8657 # by either setting the environment variable LT_MULTI_MODULE
8658 # non-empty at configure time, or by adding -multi_module to the
8659 # link flags.
8660 rm -rf libconftest.dylib*
8661 echo "int foo(void){return 1;}" > conftest.c
8662 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8663 -dynamiclib -Wl,-single_module conftest.c" >&5
8664 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8665 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8666 _lt_result=$?
8667 # If there is a non-empty error log, and "single_module"
8668 # appears in it, assume the flag caused a linker warning
8669 if test -s conftest.err && $GREP single_module conftest.err; then
8670 cat conftest.err >&5
8671 # Otherwise, if the output was created with a 0 exit code from
8672 # the compiler, it worked.
8673 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8674 lt_cv_apple_cc_single_mod=yes
8675 else
8676 cat conftest.err >&5
8677 fi
8678 rm -rf libconftest.dylib*
8679 rm -f conftest.*
8680 fi ;;
8681 esac
8682 fi
8683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8684 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8685
8686 # Feature test to disable chained fixups since it is not
8687 # compatible with '-undefined dynamic_lookup'
8688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
8689 printf %s "checking for -no_fixup_chains linker flag... " >&6; }
8690 if test ${lt_cv_support_no_fixup_chains+y}
8691 then :
8692 printf %s "(cached) " >&6
8693 else case e in #(
8694 e) save_LDFLAGS=$LDFLAGS
8695 LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
8696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8697 /* end confdefs.h. */
8698
8699 int
8700 main (void)
8701 {
8702
8703 ;
8704 return 0;
8705 }
8706 _ACEOF
8707 if ac_fn_c_try_link "$LINENO"
8708 then :
8709 lt_cv_support_no_fixup_chains=yes
8710 else case e in #(
8711 e) lt_cv_support_no_fixup_chains=no
8712 ;;
8713 esac
8714 fi
8715 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8716 conftest$ac_exeext conftest.$ac_ext
8717 LDFLAGS=$save_LDFLAGS
8718
8719 ;;
8720 esac
8721 fi
8722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
8723 printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; }
8724
8725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8726 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8727 if test ${lt_cv_ld_exported_symbols_list+y}
8728 then :
8729 printf %s "(cached) " >&6
8730 else case e in #(
8731 e) lt_cv_ld_exported_symbols_list=no
8732 save_LDFLAGS=$LDFLAGS
8733 echo "_main" > conftest.sym
8734 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8736 /* end confdefs.h. */
8737
8738 int
8739 main (void)
8740 {
8741
8742 ;
8743 return 0;
8744 }
8745 _ACEOF
8746 if ac_fn_c_try_link "$LINENO"
8747 then :
8748 lt_cv_ld_exported_symbols_list=yes
8749 else case e in #(
8750 e) lt_cv_ld_exported_symbols_list=no ;;
8751 esac
8752 fi
8753 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8754 conftest$ac_exeext conftest.$ac_ext
8755 LDFLAGS=$save_LDFLAGS
8756 ;;
8757 esac
8758 fi
8759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8760 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8761
8762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8763 printf %s "checking for -force_load linker flag... " >&6; }
8764 if test ${lt_cv_ld_force_load+y}
8765 then :
8766 printf %s "(cached) " >&6
8767 else case e in #(
8768 e) lt_cv_ld_force_load=no
8769 cat > conftest.c << _LT_EOF
8770 int forced_loaded() { return 2;}
8771 _LT_EOF
8772 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8773 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8774 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8775 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8776 echo "$RANLIB libconftest.a" >&5
8777 $RANLIB libconftest.a 2>&5
8778 cat > conftest.c << _LT_EOF
8779 int main(void) { return 0;}
8780 _LT_EOF
8781 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8782 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8783 _lt_result=$?
8784 if test -s conftest.err && $GREP force_load conftest.err; then
8785 cat conftest.err >&5
8786 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8787 lt_cv_ld_force_load=yes
8788 else
8789 cat conftest.err >&5
8790 fi
8791 rm -f conftest.err libconftest.a conftest conftest.c
8792 rm -rf conftest.dSYM
8793 ;;
8794 esac
8795 fi
8796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8797 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8798 case $host_os in
8799 rhapsody* | darwin1.[012])
8800 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8801 darwin1.*)
8802 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8803 darwin*)
8804 case $MACOSX_DEPLOYMENT_TARGET,$host in
8805 10.[012],*|,*powerpc*-darwin[5-8]*)
8806 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8807 *)
8808 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
8809 if test yes = "$lt_cv_support_no_fixup_chains"; then
8810 as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'
8811 fi
8812 ;;
8813 esac
8814 ;;
8815 esac
8816 if test yes = "$lt_cv_apple_cc_single_mod"; then
8817 _lt_dar_single_mod='$single_module'
8818 fi
8819 _lt_dar_needs_single_mod=no
8820 case $host_os in
8821 rhapsody* | darwin1.*)
8822 _lt_dar_needs_single_mod=yes ;;
8823 darwin*)
8824 # When targeting Mac OS X 10.4 (darwin 8) or later,
8825 # -single_module is the default and -multi_module is unsupported.
8826 # The toolchain on macOS 10.14 (darwin 18) and later cannot
8827 # target any OS version that needs -single_module.
8828 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8829 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*)
8830 _lt_dar_needs_single_mod=yes ;;
8831 esac
8832 ;;
8833 esac
8834 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8835 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8836 else
8837 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8838 fi
8839 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8840 _lt_dsymutil='~$DSYMUTIL $lib || :'
8841 else
8842 _lt_dsymutil=
8843 fi
8844 ;;
8845 esac
8846
8847 # func_munge_path_list VARIABLE PATH
8848 # -----------------------------------
8849 # VARIABLE is name of variable containing _space_ separated list of
8850 # directories to be munged by the contents of PATH, which is string
8851 # having a format:
8852 # "DIR[:DIR]:"
8853 # string "DIR[ DIR]" will be prepended to VARIABLE
8854 # ":DIR[:DIR]"
8855 # string "DIR[ DIR]" will be appended to VARIABLE
8856 # "DIRP[:DIRP]::[DIRA:]DIRA"
8857 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8858 # "DIRA[ DIRA]" will be appended to VARIABLE
8859 # "DIR[:DIR]"
8860 # VARIABLE will be replaced by "DIR[ DIR]"
8861 func_munge_path_list ()
8862 {
8863 case x$2 in
8864 x)
8865 ;;
8866 *:)
8867 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8868 ;;
8869 x:*)
8870 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8871 ;;
8872 *::*)
8873 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8874 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8875 ;;
8876 *)
8877 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8878 ;;
8879 esac
8880 }
8881
8882 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8883 "
8884 if test "x$ac_cv_header_dlfcn_h" = xyes
8885 then :
8886 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8887
8888 fi
8889
8890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
8891 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
8892 if test ${ac_cv_c_undeclared_builtin_options+y}
8893 then :
8894 printf %s "(cached) " >&6
8895 else case e in #(
8896 e) ac_save_CFLAGS=$CFLAGS
8897 ac_cv_c_undeclared_builtin_options='cannot detect'
8898 for ac_arg in '' -fno-builtin; do
8899 CFLAGS="$ac_save_CFLAGS $ac_arg"
8900 # This test program should *not* compile successfully.
8901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8902 /* end confdefs.h. */
8903
8904 int
8905 main (void)
8906 {
8907 (void) strchr;
8908 ;
8909 return 0;
8910 }
8911 _ACEOF
8912 if ac_fn_c_try_compile "$LINENO"
8913 then :
8914
8915 else case e in #(
8916 e) # This test program should compile successfully.
8917 # No library function is consistently available on
8918 # freestanding implementations, so test against a dummy
8919 # declaration. Include always-available headers on the
8920 # off chance that they somehow elicit warnings.
8921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8922 /* end confdefs.h. */
8923 #include <float.h>
8924 #include <limits.h>
8925 #include <stdarg.h>
8926 #include <stddef.h>
8927 extern void ac_decl (int, char *);
8928
8929 int
8930 main (void)
8931 {
8932 (void) ac_decl (0, (char *) 0);
8933 (void) ac_decl;
8934
8935 ;
8936 return 0;
8937 }
8938 _ACEOF
8939 if ac_fn_c_try_compile "$LINENO"
8940 then :
8941 if test x"$ac_arg" = x
8942 then :
8943 ac_cv_c_undeclared_builtin_options='none needed'
8944 else case e in #(
8945 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
8946 esac
8947 fi
8948 break
8949 fi
8950 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8951 esac
8952 fi
8953 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8954 done
8955 CFLAGS=$ac_save_CFLAGS
8956 ;;
8957 esac
8958 fi
8959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
8960 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
8961 case $ac_cv_c_undeclared_builtin_options in #(
8962 'cannot detect') :
8963 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
8964 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
8965 as_fn_error $? "cannot make $CC report undeclared builtins
8966 See 'config.log' for more details" "$LINENO" 5; } ;; #(
8967 'none needed') :
8968 ac_c_undeclared_builtin_options='' ;; #(
8969 *) :
8970 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
8971 esac
8972
8973 echo 'tldbg:KPSE_COMMON called (pkg=afm2pl, amopt=)' >&5
8974 echo 'tldbg:KPSE_BASIC called (pkg=afm2pl, amopt=)' >&5
8975
8976 #
8977 # am_init_automake
8978 if test "`cd $srcdir && pwd`" != "`pwd`"; then
8979 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
8980 # is not polluted with repeated "-I."
8981 am__isrc=' -I$(srcdir)'
8982 # test to see if srcdir already configured
8983 if test -f $srcdir/config.status; then
8984 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
8985 fi
8986 fi
8987
8988 # test whether we have cygpath
8989 if test -z "$CYGPATH_W"; then
8990 if (cygpath --version) >/dev/null 2>/dev/null; then
8991 CYGPATH_W='cygpath -w'
8992 else
8993 CYGPATH_W=echo
8994 fi
8995 fi
8996
8997
8998 # Define the identity of the package.
8999 PACKAGE='afm2pl--tex-live-'
9000 VERSION='0.7.1'
9001
9002
9003 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
9004
9005
9006 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
9007
9008 # Some tools Automake needs.
9009
9010 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
9011
9012
9013 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
9014
9015
9016 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
9017
9018
9019 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
9020
9021
9022 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
9023
9024 # For better backward compatibility. To be removed once Automake 1.9.x
9025 # dies out for good. For more background, see:
9026 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
9027 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
9028 mkdir_p='$(MKDIR_P)'
9029
9030 # We need awk for the "check" target (and possibly the TAP driver). The
9031 # system "awk" is bad on some platforms.
9032 # Always define AMTAR for backward compatibility. Yes, it's still used
9033 # in the wild :-( We should find a proper way to deprecate it ...
9034 AMTAR='$${TAR-tar}'
9035
9036
9037 # We'll loop over all known methods to create a tar archive until one works.
9038 _am_tools='gnutar plaintar pax cpio none'
9039
9040 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
9041 # There is notably a 21 bits limit for the UID and the GID. In fact,
9042 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
9043 # and bug#13588).
9044 am_max_uid=2097151 # 2^21 - 1
9045 am_max_gid=$am_max_uid
9046 # The $UID and $GID variables are not portable, so we need to resort
9047 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
9048 # below are definitely unexpected, so allow the users to see them
9049 # (that is, avoid stderr redirection).
9050 am_uid=`id -u || echo unknown`
9051 am_gid=`id -g || echo unknown`
9052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
9053 printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
9054 if test x$am_uid = xunknown; then
9055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&5
9056 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&2;}
9057 elif test $am_uid -le $am_max_uid; then
9058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9059 printf "%s\n" "yes" >&6; }
9060 else
9061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9062 printf "%s\n" "no" >&6; }
9063 _am_tools=none
9064 fi
9065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
9066 printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
9067 if test x$gm_gid = xunknown; then
9068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&5
9069 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&2;}
9070 elif test $am_gid -le $am_max_gid; then
9071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9072 printf "%s\n" "yes" >&6; }
9073 else
9074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9075 printf "%s\n" "no" >&6; }
9076 _am_tools=none
9077 fi
9078
9079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
9080 printf %s "checking how to create a ustar tar archive... " >&6; }
9081
9082 # Go ahead even if we have the value already cached. We do so because we
9083 # need to set the values for the 'am__tar' and 'am__untar' variables.
9084 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
9085
9086 for _am_tool in $_am_tools; do
9087 case $_am_tool in
9088 gnutar)
9089 for _am_tar in tar gnutar gtar; do
9090 { echo "$as_me:$LINENO: $_am_tar --version" >&5
9091 ($_am_tar --version) >&5 2>&5
9092 ac_status=$?
9093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9094 (exit $ac_status); } && break
9095 done
9096 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
9097 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
9098 am__untar="$_am_tar -xf -"
9099 ;;
9100 plaintar)
9101 # Must skip GNU tar: if it does not support --format= it doesn't create
9102 # ustar tarball either.
9103 (tar --version) >/dev/null 2>&1 && continue
9104 am__tar='tar chf - "$$tardir"'
9105 am__tar_='tar chf - "$tardir"'
9106 am__untar='tar xf -'
9107 ;;
9108 pax)
9109 am__tar='pax -L -x ustar -w "$$tardir"'
9110 am__tar_='pax -L -x ustar -w "$tardir"'
9111 am__untar='pax -r'
9112 ;;
9113 cpio)
9114 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
9115 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
9116 am__untar='cpio -i -H ustar -d'
9117 ;;
9118 none)
9119 am__tar=false
9120 am__tar_=false
9121 am__untar=false
9122 ;;
9123 esac
9124
9125 # If the value was cached, stop now. We just wanted to have am__tar
9126 # and am__untar set.
9127 test -n "${am_cv_prog_tar_ustar}" && break
9128
9129 # tar/untar a dummy directory, and stop if the command works.
9130 rm -rf conftest.dir
9131 mkdir conftest.dir
9132 echo GrepMe > conftest.dir/file
9133 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
9134 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
9135 ac_status=$?
9136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9137 (exit $ac_status); }
9138 rm -rf conftest.dir
9139 if test -s conftest.tar; then
9140 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
9141 ($am__untar <conftest.tar) >&5 2>&5
9142 ac_status=$?
9143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9144 (exit $ac_status); }
9145 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
9146 (cat conftest.dir/file) >&5 2>&5
9147 ac_status=$?
9148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9149 (exit $ac_status); }
9150 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
9151 fi
9152 done
9153 rm -rf conftest.dir
9154
9155 if test ${am_cv_prog_tar_ustar+y}
9156 then :
9157 printf %s "(cached) " >&6
9158 else case e in #(
9159 e) am_cv_prog_tar_ustar=$_am_tool ;;
9160 esac
9161 fi
9162
9163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
9164 printf "%s\n" "$am_cv_prog_tar_ustar" >&6; }
9165
9166
9167
9168
9169
9170 # Variables for tags utilities; see am/tags.am
9171 if test -z "$CTAGS"; then
9172 CTAGS=ctags
9173 fi
9174
9175 if test -z "$ETAGS"; then
9176 ETAGS=etags
9177 fi
9178
9179 if test -z "$CSCOPE"; then
9180 CSCOPE=cscope
9181 fi
9182
9183
9184
9185
9186
9187
9188
9189
9190 # am_maintainer_mode
9191
9192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
9193 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
9194 # Check whether --enable-maintainer-mode was given.
9195 if test ${enable_maintainer_mode+y}
9196 then :
9197 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
9198 else case e in #(
9199 e) USE_MAINTAINER_MODE=no ;;
9200 esac
9201 fi
9202
9203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
9204 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
9205 if test $USE_MAINTAINER_MODE = yes; then
9206 MAINTAINER_MODE_TRUE=
9207 MAINTAINER_MODE_FALSE='#'
9208 else
9209 MAINTAINER_MODE_TRUE='#'
9210 MAINTAINER_MODE_FALSE=
9211 fi
9212
9213 MAINT=$MAINTAINER_MODE_TRUE
9214
9215
9216
9217 # See comments in kpse-setup.m4 about system extensions.
9218
9219
9220 # Check whether prototypes work.
9221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts prototypes" >&5
9222 printf %s "checking whether the compiler accepts prototypes... " >&6; }
9223 if test ${kb_cv_c_prototypes+y}
9224 then :
9225 printf %s "(cached) " >&6
9226 else case e in #(
9227 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9228 /* end confdefs.h. */
9229 #include <stdarg.h>
9230 int
9231 main (void)
9232 {
9233 extern void foo(int i,...);
9234 ;
9235 return 0;
9236 }
9237 _ACEOF
9238 if ac_fn_c_try_link "$LINENO"
9239 then :
9240 kb_cv_c_prototypes=yes
9241 else case e in #(
9242 e) kb_cv_c_prototypes=no ;;
9243 esac
9244 fi
9245 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9246 conftest$ac_exeext conftest.$ac_ext ;;
9247 esac
9248 fi
9249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kb_cv_c_prototypes" >&5
9250 printf "%s\n" "$kb_cv_c_prototypes" >&6; }
9251 if test "x$kb_cv_c_prototypes" = xno; then
9252 as_fn_error $? "Sorry, your compiler does not understand prototypes." "$LINENO" 5
9253 fi
9254
9255 # kpse_compiler_warnings options.
9256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking what warning flags to pass to the C compiler" >&5
9257 printf %s "checking what warning flags to pass to the C compiler... " >&6; }
9258 if test ${kpse_cv_warning_cflags+y}
9259 then :
9260 printf %s "(cached) " >&6
9261 else case e in #(
9262 e) if test "x$GCC" = xyes; then
9263 kpse_cv_warning_cflags=
9264 if test "x$enable_compiler_warnings" != xno; then
9265 kpse_cv_warning_cflags="-Wimplicit -Wreturn-type"
9266 case `$CC -dumpversion` in #(
9267 3.4.* | 4.* | 5.*) :
9268 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wdeclaration-after-statement" ;; #(
9269 *) :
9270 ;;
9271 esac
9272 case `$CC -dumpversion` in #(
9273 3.[234].* | 4.* | 5.*) :
9274 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wno-unknown-pragmas" ;; #(
9275 *) :
9276 ;;
9277 esac
9278 if test "x$enable_compiler_warnings" != xmin; then
9279 kpse_cv_warning_cflags="-Wall -Wunused $kpse_cv_warning_cflags"
9280 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wmissing-prototypes -Wmissing-declarations"
9281 if test "x$enable_compiler_warnings" != xyes; then
9282 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wparentheses -Wswitch -Wtrigraphs -Wpointer-arith"
9283 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wcast-qual -Wcast-align -Wwrite-strings"
9284 case `$CC -dumpversion` in #(
9285 3.4.* | 4.* | 5.*) :
9286 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wold-style-definition" ;; #(
9287 *) :
9288 ;;
9289 esac
9290 if test "x$enable_compiler_warnings" != xmax; then
9291 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wshadow"
9292 fi
9293 fi
9294 fi
9295 fi
9296 elif test "x$enable_compiler_warnings" = xno; then
9297 kpse_cv_warning_cflags=
9298 else
9299 kpse_cv_warning_cflags= # FIXME: warning flags for non-GNU C compilers
9300 fi ;;
9301 esac
9302 fi
9303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_warning_cflags" >&5
9304 printf "%s\n" "$kpse_cv_warning_cflags" >&6; }
9305 WARNING_CFLAGS=$kpse_cv_warning_cflags
9306
9307
9308
9309
9310
9311
9312
9313 # end of kpse_basic macro.
9314 echo 'tldbg:KPSE_BASIC done (pkg=afm2pl, amopt=)' >&5
9315
9316 # am_prog_ar must be called before lt_init.
9317
9318 if test -n "$ac_tool_prefix"; then
9319 for ac_prog in ar lib "link -lib"
9320 do
9321 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9322 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9324 printf %s "checking for $ac_word... " >&6; }
9325 if test ${ac_cv_prog_AR+y}
9326 then :
9327 printf %s "(cached) " >&6
9328 else case e in #(
9329 e) if test -n "$AR"; then
9330 ac_cv_prog_AR="$AR" # Let the user override the test.
9331 else
9332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9333 for as_dir in $PATH
9334 do
9335 IFS=$as_save_IFS
9336 case $as_dir in #(((
9337 '') as_dir=./ ;;
9338 */) ;;
9339 *) as_dir=$as_dir/ ;;
9340 esac
9341 for ac_exec_ext in '' $ac_executable_extensions; do
9342 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9343 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
9344 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9345 break 2
9346 fi
9347 done
9348 done
9349 IFS=$as_save_IFS
9350
9351 fi ;;
9352 esac
9353 fi
9354 AR=$ac_cv_prog_AR
9355 if test -n "$AR"; then
9356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9357 printf "%s\n" "$AR" >&6; }
9358 else
9359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9360 printf "%s\n" "no" >&6; }
9361 fi
9362
9363
9364 test -n "$AR" && break
9365 done
9366 fi
9367 if test -z "$AR"; then
9368 ac_ct_AR=$AR
9369 for ac_prog in ar lib "link -lib"
9370 do
9371 # Extract the first word of "$ac_prog", so it can be a program name with args.
9372 set dummy $ac_prog; ac_word=$2
9373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9374 printf %s "checking for $ac_word... " >&6; }
9375 if test ${ac_cv_prog_ac_ct_AR+y}
9376 then :
9377 printf %s "(cached) " >&6
9378 else case e in #(
9379 e) if test -n "$ac_ct_AR"; then
9380 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9381 else
9382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9383 for as_dir in $PATH
9384 do
9385 IFS=$as_save_IFS
9386 case $as_dir in #(((
9387 '') as_dir=./ ;;
9388 */) ;;
9389 *) as_dir=$as_dir/ ;;
9390 esac
9391 for ac_exec_ext in '' $ac_executable_extensions; do
9392 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9393 ac_cv_prog_ac_ct_AR="$ac_prog"
9394 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9395 break 2
9396 fi
9397 done
9398 done
9399 IFS=$as_save_IFS
9400
9401 fi ;;
9402 esac
9403 fi
9404 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9405 if test -n "$ac_ct_AR"; then
9406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9407 printf "%s\n" "$ac_ct_AR" >&6; }
9408 else
9409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9410 printf "%s\n" "no" >&6; }
9411 fi
9412
9413
9414 test -n "$ac_ct_AR" && break
9415 done
9416
9417 if test "x$ac_ct_AR" = x; then
9418 AR="false"
9419 else
9420 case $cross_compiling:$ac_tool_warned in
9421 yes:)
9422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9423 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9424 ac_tool_warned=yes ;;
9425 esac
9426 AR=$ac_ct_AR
9427 fi
9428 fi
9429
9430 : ${AR=ar}
9431 : ${ARFLAGS=cr}
9432
9433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
9434 printf %s "checking the archiver ($AR) interface... " >&6; }
9435 if test ${am_cv_ar_interface+y}
9436 then :
9437 printf %s "(cached) " >&6
9438 else case e in #(
9439 e) ac_ext=c
9440 ac_cpp='$CPP $CPPFLAGS'
9441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9444
9445 am_cv_ar_interface=ar
9446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9447 /* end confdefs.h. */
9448 int some_variable = 0;
9449 _ACEOF
9450 if ac_fn_c_try_compile "$LINENO"
9451 then :
9452 am_ar_try='$AR $ARFLAGS libconftest.a conftest.$ac_objext >&5'
9453 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
9454 (eval $am_ar_try) 2>&5
9455 ac_status=$?
9456 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9457 test $ac_status = 0; }
9458 if test "$ac_status" -eq 0; then
9459 am_cv_ar_interface=ar
9460 else
9461 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
9462 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
9463 (eval $am_ar_try) 2>&5
9464 ac_status=$?
9465 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9466 test $ac_status = 0; }
9467 if test "$ac_status" -eq 0; then
9468 am_cv_ar_interface=lib
9469 else
9470 am_cv_ar_interface=unknown
9471 fi
9472 fi
9473 rm -f conftest.lib libconftest.a
9474
9475 fi
9476 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9477 ac_ext=c
9478 ac_cpp='$CPP $CPPFLAGS'
9479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9482 ;;
9483 esac
9484 fi
9485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
9486 printf "%s\n" "$am_cv_ar_interface" >&6; }
9487
9488 case $am_cv_ar_interface in
9489 ar)
9490 ;;
9491 lib)
9492 # Microsoft lib, so override with the ar-lib wrapper script.
9493 # FIXME: It is wrong to rewrite AR.
9494 # But if we don't then we get into trouble of one sort or another.
9495 # A longer-term fix would be to have automake use am__AR in this case,
9496 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
9497 # similar.
9498 AR="$am_aux_dir/ar-lib $AR"
9499 ;;
9500 unknown)
9501 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
9502 ;;
9503 esac
9504
9505 # (end am_prog_ar)
9506 # starting lt_prereq + lt_init.
9507
9508
9509
9510
9511
9512 # Set options
9513 enable_win32_dll=yes
9514
9515 case $host in
9516 *-*-cygwin* | *-*-mingw* | *-*-windows* | *-*-pw32* | *-*-cegcc*)
9517 if test -n "$ac_tool_prefix"; then
9518 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
9519 set dummy ${ac_tool_prefix}as; ac_word=$2
9520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9521 printf %s "checking for $ac_word... " >&6; }
9522 if test ${ac_cv_prog_AS+y}
9523 then :
9524 printf %s "(cached) " >&6
9525 else case e in #(
9526 e) if test -n "$AS"; then
9527 ac_cv_prog_AS="$AS" # Let the user override the test.
9528 else
9529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9530 for as_dir in $PATH
9531 do
9532 IFS=$as_save_IFS
9533 case $as_dir in #(((
9534 '') as_dir=./ ;;
9535 */) ;;
9536 *) as_dir=$as_dir/ ;;
9537 esac
9538 for ac_exec_ext in '' $ac_executable_extensions; do
9539 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9540 ac_cv_prog_AS="${ac_tool_prefix}as"
9541 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9542 break 2
9543 fi
9544 done
9545 done
9546 IFS=$as_save_IFS
9547
9548 fi ;;
9549 esac
9550 fi
9551 AS=$ac_cv_prog_AS
9552 if test -n "$AS"; then
9553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
9554 printf "%s\n" "$AS" >&6; }
9555 else
9556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9557 printf "%s\n" "no" >&6; }
9558 fi
9559
9560
9561 fi
9562 if test -z "$ac_cv_prog_AS"; then
9563 ac_ct_AS=$AS
9564 # Extract the first word of "as", so it can be a program name with args.
9565 set dummy as; ac_word=$2
9566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9567 printf %s "checking for $ac_word... " >&6; }
9568 if test ${ac_cv_prog_ac_ct_AS+y}
9569 then :
9570 printf %s "(cached) " >&6
9571 else case e in #(
9572 e) if test -n "$ac_ct_AS"; then
9573 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
9574 else
9575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9576 for as_dir in $PATH
9577 do
9578 IFS=$as_save_IFS
9579 case $as_dir in #(((
9580 '') as_dir=./ ;;
9581 */) ;;
9582 *) as_dir=$as_dir/ ;;
9583 esac
9584 for ac_exec_ext in '' $ac_executable_extensions; do
9585 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9586 ac_cv_prog_ac_ct_AS="as"
9587 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9588 break 2
9589 fi
9590 done
9591 done
9592 IFS=$as_save_IFS
9593
9594 fi ;;
9595 esac
9596 fi
9597 ac_ct_AS=$ac_cv_prog_ac_ct_AS
9598 if test -n "$ac_ct_AS"; then
9599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
9600 printf "%s\n" "$ac_ct_AS" >&6; }
9601 else
9602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9603 printf "%s\n" "no" >&6; }
9604 fi
9605
9606 if test "x$ac_ct_AS" = x; then
9607 AS="false"
9608 else
9609 case $cross_compiling:$ac_tool_warned in
9610 yes:)
9611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9612 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9613 ac_tool_warned=yes ;;
9614 esac
9615 AS=$ac_ct_AS
9616 fi
9617 else
9618 AS="$ac_cv_prog_AS"
9619 fi
9620
9621 if test -n "$ac_tool_prefix"; then
9622 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9623 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9625 printf %s "checking for $ac_word... " >&6; }
9626 if test ${ac_cv_prog_DLLTOOL+y}
9627 then :
9628 printf %s "(cached) " >&6
9629 else case e in #(
9630 e) if test -n "$DLLTOOL"; then
9631 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9632 else
9633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9634 for as_dir in $PATH
9635 do
9636 IFS=$as_save_IFS
9637 case $as_dir in #(((
9638 '') as_dir=./ ;;
9639 */) ;;
9640 *) as_dir=$as_dir/ ;;
9641 esac
9642 for ac_exec_ext in '' $ac_executable_extensions; do
9643 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9644 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9645 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9646 break 2
9647 fi
9648 done
9649 done
9650 IFS=$as_save_IFS
9651
9652 fi ;;
9653 esac
9654 fi
9655 DLLTOOL=$ac_cv_prog_DLLTOOL
9656 if test -n "$DLLTOOL"; then
9657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9658 printf "%s\n" "$DLLTOOL" >&6; }
9659 else
9660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9661 printf "%s\n" "no" >&6; }
9662 fi
9663
9664
9665 fi
9666 if test -z "$ac_cv_prog_DLLTOOL"; then
9667 ac_ct_DLLTOOL=$DLLTOOL
9668 # Extract the first word of "dlltool", so it can be a program name with args.
9669 set dummy dlltool; ac_word=$2
9670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9671 printf %s "checking for $ac_word... " >&6; }
9672 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
9673 then :
9674 printf %s "(cached) " >&6
9675 else case e in #(
9676 e) if test -n "$ac_ct_DLLTOOL"; then
9677 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9678 else
9679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9680 for as_dir in $PATH
9681 do
9682 IFS=$as_save_IFS
9683 case $as_dir in #(((
9684 '') as_dir=./ ;;
9685 */) ;;
9686 *) as_dir=$as_dir/ ;;
9687 esac
9688 for ac_exec_ext in '' $ac_executable_extensions; do
9689 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9690 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9691 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9692 break 2
9693 fi
9694 done
9695 done
9696 IFS=$as_save_IFS
9697
9698 fi ;;
9699 esac
9700 fi
9701 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9702 if test -n "$ac_ct_DLLTOOL"; then
9703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9704 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
9705 else
9706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9707 printf "%s\n" "no" >&6; }
9708 fi
9709
9710 if test "x$ac_ct_DLLTOOL" = x; then
9711 DLLTOOL="false"
9712 else
9713 case $cross_compiling:$ac_tool_warned in
9714 yes:)
9715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9716 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9717 ac_tool_warned=yes ;;
9718 esac
9719 DLLTOOL=$ac_ct_DLLTOOL
9720 fi
9721 else
9722 DLLTOOL="$ac_cv_prog_DLLTOOL"
9723 fi
9724
9725 if test -n "$ac_tool_prefix"; then
9726 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9727 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9729 printf %s "checking for $ac_word... " >&6; }
9730 if test ${ac_cv_prog_OBJDUMP+y}
9731 then :
9732 printf %s "(cached) " >&6
9733 else case e in #(
9734 e) if test -n "$OBJDUMP"; then
9735 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9736 else
9737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9738 for as_dir in $PATH
9739 do
9740 IFS=$as_save_IFS
9741 case $as_dir in #(((
9742 '') as_dir=./ ;;
9743 */) ;;
9744 *) as_dir=$as_dir/ ;;
9745 esac
9746 for ac_exec_ext in '' $ac_executable_extensions; do
9747 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9748 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9749 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9750 break 2
9751 fi
9752 done
9753 done
9754 IFS=$as_save_IFS
9755
9756 fi ;;
9757 esac
9758 fi
9759 OBJDUMP=$ac_cv_prog_OBJDUMP
9760 if test -n "$OBJDUMP"; then
9761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9762 printf "%s\n" "$OBJDUMP" >&6; }
9763 else
9764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9765 printf "%s\n" "no" >&6; }
9766 fi
9767
9768
9769 fi
9770 if test -z "$ac_cv_prog_OBJDUMP"; then
9771 ac_ct_OBJDUMP=$OBJDUMP
9772 # Extract the first word of "objdump", so it can be a program name with args.
9773 set dummy objdump; ac_word=$2
9774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9775 printf %s "checking for $ac_word... " >&6; }
9776 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
9777 then :
9778 printf %s "(cached) " >&6
9779 else case e in #(
9780 e) if test -n "$ac_ct_OBJDUMP"; then
9781 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9782 else
9783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9784 for as_dir in $PATH
9785 do
9786 IFS=$as_save_IFS
9787 case $as_dir in #(((
9788 '') as_dir=./ ;;
9789 */) ;;
9790 *) as_dir=$as_dir/ ;;
9791 esac
9792 for ac_exec_ext in '' $ac_executable_extensions; do
9793 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9794 ac_cv_prog_ac_ct_OBJDUMP="objdump"
9795 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9796 break 2
9797 fi
9798 done
9799 done
9800 IFS=$as_save_IFS
9801
9802 fi ;;
9803 esac
9804 fi
9805 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9806 if test -n "$ac_ct_OBJDUMP"; then
9807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9808 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
9809 else
9810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9811 printf "%s\n" "no" >&6; }
9812 fi
9813
9814 if test "x$ac_ct_OBJDUMP" = x; then
9815 OBJDUMP="false"
9816 else
9817 case $cross_compiling:$ac_tool_warned in
9818 yes:)
9819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9820 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9821 ac_tool_warned=yes ;;
9822 esac
9823 OBJDUMP=$ac_ct_OBJDUMP
9824 fi
9825 else
9826 OBJDUMP="$ac_cv_prog_OBJDUMP"
9827 fi
9828
9829 ;;
9830 esac
9831
9832 test -z "$AS" && AS=as
9833
9834
9835
9836
9837
9838 test -z "$DLLTOOL" && DLLTOOL=dlltool
9839
9840
9841
9842
9843
9844 test -z "$OBJDUMP" && OBJDUMP=objdump
9845
9846
9847
9848
9849
9850
9851
9852 enable_dlopen=no
9853
9854
9855
9856 # Check whether --enable-shared was given.
9857 if test ${enable_shared+y}
9858 then :
9859 enableval=$enable_shared; p=${PACKAGE-default}
9860 case $enableval in
9861 yes) enable_shared=yes ;;
9862 no) enable_shared=no ;;
9863 *)
9864 enable_shared=no
9865 # Look at the argument we got. We use all the common list separators.
9866 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9867 for pkg in $enableval; do
9868 IFS=$lt_save_ifs
9869 if test "X$pkg" = "X$p"; then
9870 enable_shared=yes
9871 fi
9872 done
9873 IFS=$lt_save_ifs
9874 ;;
9875 esac
9876 else case e in #(
9877 e) enable_shared=yes ;;
9878 esac
9879 fi
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889 # Check whether --enable-static was given.
9890 if test ${enable_static+y}
9891 then :
9892 enableval=$enable_static; p=${PACKAGE-default}
9893 case $enableval in
9894 yes) enable_static=yes ;;
9895 no) enable_static=no ;;
9896 *)
9897 enable_static=no
9898 # Look at the argument we got. We use all the common list separators.
9899 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9900 for pkg in $enableval; do
9901 IFS=$lt_save_ifs
9902 if test "X$pkg" = "X$p"; then
9903 enable_static=yes
9904 fi
9905 done
9906 IFS=$lt_save_ifs
9907 ;;
9908 esac
9909 else case e in #(
9910 e) enable_static=yes ;;
9911 esac
9912 fi
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922 # Check whether --enable-pic was given.
9923 if test ${enable_pic+y}
9924 then :
9925 enableval=$enable_pic; lt_p=${PACKAGE-default}
9926 case $enableval in
9927 yes|no) pic_mode=$enableval ;;
9928 *)
9929 pic_mode=default
9930 # Look at the argument we got. We use all the common list separators.
9931 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9932 for lt_pkg in $enableval; do
9933 IFS=$lt_save_ifs
9934 if test "X$lt_pkg" = "X$lt_p"; then
9935 pic_mode=yes
9936 fi
9937 done
9938 IFS=$lt_save_ifs
9939 ;;
9940 esac
9941 else case e in #(
9942 e) # Check whether --with-pic was given.
9943 if test ${with_pic+y}
9944 then :
9945 withval=$with_pic; lt_p=${PACKAGE-default}
9946 case $withval in
9947 yes|no) pic_mode=$withval ;;
9948 *)
9949 pic_mode=default
9950 # Look at the argument we got. We use all the common list separators.
9951 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9952 for lt_pkg in $withval; do
9953 IFS=$lt_save_ifs
9954 if test "X$lt_pkg" = "X$lt_p"; then
9955 pic_mode=yes
9956 fi
9957 done
9958 IFS=$lt_save_ifs
9959 ;;
9960 esac
9961 else case e in #(
9962 e) pic_mode=default ;;
9963 esac
9964 fi
9965
9966 ;;
9967 esac
9968 fi
9969
9970
9971
9972
9973
9974
9975
9976
9977 # Check whether --enable-fast-install was given.
9978 if test ${enable_fast_install+y}
9979 then :
9980 enableval=$enable_fast_install; p=${PACKAGE-default}
9981 case $enableval in
9982 yes) enable_fast_install=yes ;;
9983 no) enable_fast_install=no ;;
9984 *)
9985 enable_fast_install=no
9986 # Look at the argument we got. We use all the common list separators.
9987 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9988 for pkg in $enableval; do
9989 IFS=$lt_save_ifs
9990 if test "X$pkg" = "X$p"; then
9991 enable_fast_install=yes
9992 fi
9993 done
9994 IFS=$lt_save_ifs
9995 ;;
9996 esac
9997 else case e in #(
9998 e) enable_fast_install=yes ;;
9999 esac
10000 fi
10001
10002
10003
10004
10005
10006
10007
10008
10009 shared_archive_member_spec=
10010 case $host,$enable_shared in
10011 power*-*-aix[5-9]*,yes)
10012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
10013 printf %s "checking which variant of shared library versioning to provide... " >&6; }
10014 # Check whether --enable-aix-soname was given.
10015 if test ${enable_aix_soname+y}
10016 then :
10017 enableval=$enable_aix_soname; case $enableval in
10018 aix|svr4|both)
10019 ;;
10020 *)
10021 as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5
10022 ;;
10023 esac
10024 lt_cv_with_aix_soname=$enable_aix_soname
10025 else case e in #(
10026 e) # Check whether --with-aix-soname was given.
10027 if test ${with_aix_soname+y}
10028 then :
10029 withval=$with_aix_soname; case $withval in
10030 aix|svr4|both)
10031 ;;
10032 *)
10033 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
10034 ;;
10035 esac
10036 lt_cv_with_aix_soname=$with_aix_soname
10037 else case e in #(
10038 e) if test ${lt_cv_with_aix_soname+y}
10039 then :
10040 printf %s "(cached) " >&6
10041 else case e in #(
10042 e) lt_cv_with_aix_soname=aix ;;
10043 esac
10044 fi
10045 ;;
10046 esac
10047 fi
10048
10049 enable_aix_soname=$lt_cv_with_aix_soname ;;
10050 esac
10051 fi
10052
10053 with_aix_soname=$enable_aix_soname
10054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
10055 printf "%s\n" "$with_aix_soname" >&6; }
10056 if test aix != "$with_aix_soname"; then
10057 # For the AIX way of multilib, we name the shared archive member
10058 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10059 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10060 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10061 # the AIX toolchain works better with OBJECT_MODE set (default 32).
10062 if test 64 = "${OBJECT_MODE-32}"; then
10063 shared_archive_member_spec=shr_64
10064 else
10065 shared_archive_member_spec=shr
10066 fi
10067 fi
10068 ;;
10069 *)
10070 with_aix_soname=aix
10071 ;;
10072 esac
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083 # This can be used to rebuild libtool when needed
10084 LIBTOOL_DEPS=$ltmain
10085
10086 # Always use our own libtool.
10087 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118 test -z "$LN_S" && LN_S="ln -s"
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133 if test -n "${ZSH_VERSION+set}"; then
10134 setopt NO_GLOB_SUBST
10135 fi
10136
10137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10138 printf %s "checking for objdir... " >&6; }
10139 if test ${lt_cv_objdir+y}
10140 then :
10141 printf %s "(cached) " >&6
10142 else case e in #(
10143 e) rm -f .libs 2>/dev/null
10144 mkdir .libs 2>/dev/null
10145 if test -d .libs; then
10146 lt_cv_objdir=.libs
10147 else
10148 # MS-DOS does not allow filenames that begin with a dot.
10149 lt_cv_objdir=_libs
10150 fi
10151 rmdir .libs 2>/dev/null ;;
10152 esac
10153 fi
10154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10155 printf "%s\n" "$lt_cv_objdir" >&6; }
10156 objdir=$lt_cv_objdir
10157
10158
10159
10160
10161
10162 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
10163
10164
10165
10166
10167 case $host_os in
10168 aix3*)
10169 # AIX sometimes has problems with the GCC collect2 program. For some
10170 # reason, if we set the COLLECT_NAMES environment variable, the problems
10171 # vanish in a puff of smoke.
10172 if test set != "${COLLECT_NAMES+set}"; then
10173 COLLECT_NAMES=
10174 export COLLECT_NAMES
10175 fi
10176 ;;
10177 esac
10178
10179 # Global variables:
10180 ofile=libtool
10181 can_build_shared=yes
10182
10183 # All known linkers require a '.a' archive for static linking (except MSVC and
10184 # ICC, which need '.lib').
10185 libext=a
10186
10187 with_gnu_ld=$lt_cv_prog_gnu_ld
10188
10189 old_CC=$CC
10190 old_CFLAGS=$CFLAGS
10191
10192 # Set sane defaults for various variables
10193 test -z "$CC" && CC=cc
10194 test -z "$LTCC" && LTCC=$CC
10195 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10196 test -z "$LD" && LD=ld
10197 test -z "$ac_objext" && ac_objext=o
10198
10199 func_cc_basename $compiler
10200 cc_basename=$func_cc_basename_result
10201
10202
10203 # Only perform the check for file, if the check method requires it
10204 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10205 case $deplibs_check_method in
10206 file_magic*)
10207 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10209 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
10210 if test ${lt_cv_path_MAGIC_CMD+y}
10211 then :
10212 printf %s "(cached) " >&6
10213 else case e in #(
10214 e) case $MAGIC_CMD in
10215 [\\/*] | ?:[\\/]*)
10216 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10217 ;;
10218 *)
10219 lt_save_MAGIC_CMD=$MAGIC_CMD
10220 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10221 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10222 for ac_dir in $ac_dummy; do
10223 IFS=$lt_save_ifs
10224 test -z "$ac_dir" && ac_dir=.
10225 if test -f "$ac_dir/${ac_tool_prefix}file"; then
10226 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10227 if test -n "$file_magic_test_file"; then
10228 case $deplibs_check_method in
10229 "file_magic "*)
10230 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10231 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10232 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10233 $EGREP "$file_magic_regex" > /dev/null; then
10234 :
10235 else
10236 cat <<_LT_EOF 1>&2
10237
10238 *** Warning: the command libtool uses to detect shared libraries,
10239 *** $file_magic_cmd, produces output that libtool cannot recognize.
10240 *** The result is that libtool may fail to recognize shared libraries
10241 *** as such. This will affect the creation of libtool libraries that
10242 *** depend on shared libraries, but programs linked with such libtool
10243 *** libraries will work regardless of this problem. Nevertheless, you
10244 *** may want to report the problem to your system manager and/or to
10245 *** [email protected]
10246
10247 _LT_EOF
10248 fi ;;
10249 esac
10250 fi
10251 break
10252 fi
10253 done
10254 IFS=$lt_save_ifs
10255 MAGIC_CMD=$lt_save_MAGIC_CMD
10256 ;;
10257 esac ;;
10258 esac
10259 fi
10260
10261 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10262 if test -n "$MAGIC_CMD"; then
10263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10264 printf "%s\n" "$MAGIC_CMD" >&6; }
10265 else
10266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10267 printf "%s\n" "no" >&6; }
10268 fi
10269
10270
10271
10272
10273
10274 if test -z "$lt_cv_path_MAGIC_CMD"; then
10275 if test -n "$ac_tool_prefix"; then
10276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10277 printf %s "checking for file... " >&6; }
10278 if test ${lt_cv_path_MAGIC_CMD+y}
10279 then :
10280 printf %s "(cached) " >&6
10281 else case e in #(
10282 e) case $MAGIC_CMD in
10283 [\\/*] | ?:[\\/]*)
10284 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10285 ;;
10286 *)
10287 lt_save_MAGIC_CMD=$MAGIC_CMD
10288 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10289 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10290 for ac_dir in $ac_dummy; do
10291 IFS=$lt_save_ifs
10292 test -z "$ac_dir" && ac_dir=.
10293 if test -f "$ac_dir/file"; then
10294 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10295 if test -n "$file_magic_test_file"; then
10296 case $deplibs_check_method in
10297 "file_magic "*)
10298 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10299 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10300 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10301 $EGREP "$file_magic_regex" > /dev/null; then
10302 :
10303 else
10304 cat <<_LT_EOF 1>&2
10305
10306 *** Warning: the command libtool uses to detect shared libraries,
10307 *** $file_magic_cmd, produces output that libtool cannot recognize.
10308 *** The result is that libtool may fail to recognize shared libraries
10309 *** as such. This will affect the creation of libtool libraries that
10310 *** depend on shared libraries, but programs linked with such libtool
10311 *** libraries will work regardless of this problem. Nevertheless, you
10312 *** may want to report the problem to your system manager and/or to
10313 *** [email protected]
10314
10315 _LT_EOF
10316 fi ;;
10317 esac
10318 fi
10319 break
10320 fi
10321 done
10322 IFS=$lt_save_ifs
10323 MAGIC_CMD=$lt_save_MAGIC_CMD
10324 ;;
10325 esac ;;
10326 esac
10327 fi
10328
10329 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10330 if test -n "$MAGIC_CMD"; then
10331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10332 printf "%s\n" "$MAGIC_CMD" >&6; }
10333 else
10334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10335 printf "%s\n" "no" >&6; }
10336 fi
10337
10338
10339 else
10340 MAGIC_CMD=:
10341 fi
10342 fi
10343
10344 fi
10345 ;;
10346 esac
10347
10348 # Use C for the default configuration in the libtool script
10349
10350 lt_save_CC=$CC
10351 ac_ext=c
10352 ac_cpp='$CPP $CPPFLAGS'
10353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10356
10357
10358 # Source file extension for C test sources.
10359 ac_ext=c
10360
10361 # Object file extension for compiled C test sources.
10362 objext=o
10363 objext=$objext
10364
10365 # Code to be used in simple compile tests
10366 lt_simple_compile_test_code="int some_variable = 0;"
10367
10368 # Code to be used in simple link tests
10369 lt_simple_link_test_code='int main(void){return(0);}'
10370
10371
10372
10373
10374
10375
10376
10377 # If no C compiler was specified, use CC.
10378 LTCC=${LTCC-"$CC"}
10379
10380 # If no C compiler flags were specified, use CFLAGS.
10381 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10382
10383 # Allow CC to be a program name with arguments.
10384 compiler=$CC
10385
10386 # Save the default compiler, since it gets overwritten when the other
10387 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10388 compiler_DEFAULT=$CC
10389
10390 # save warnings/boilerplate of simple test code
10391 ac_outfile=conftest.$ac_objext
10392 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10393 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10394 _lt_compiler_boilerplate=`cat conftest.err`
10395 $RM conftest*
10396
10397 ac_outfile=conftest.$ac_objext
10398 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10399 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10400 _lt_linker_boilerplate=`cat conftest.err`
10401 $RM -r conftest*
10402
10403
10404 ## CAVEAT EMPTOR:
10405 ## There is no encapsulation within the following macros, do not change
10406 ## the running order or otherwise move them around unless you know exactly
10407 ## what you are doing...
10408 if test -n "$compiler"; then
10409
10410 lt_prog_compiler_no_builtin_flag=
10411
10412 if test yes = "$GCC"; then
10413 case $cc_basename in
10414 nvcc*)
10415 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10416 *)
10417 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10418 esac
10419
10420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10421 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10422 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
10423 then :
10424 printf %s "(cached) " >&6
10425 else case e in #(
10426 e) lt_cv_prog_compiler_rtti_exceptions=no
10427 ac_outfile=conftest.$ac_objext
10428 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10429 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
10430 # Insert the option either (1) after the last *FLAGS variable, or
10431 # (2) before a word containing "conftest.", or (3) at the end.
10432 # Note that $ac_compile itself does not contain backslashes and begins
10433 # with a dollar sign (not a hyphen), so the echo should work correctly.
10434 # The option is referenced via a variable to avoid confusing sed.
10435 lt_compile=`echo "$ac_compile" | $SED \
10436 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10437 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10438 -e 's:$: $lt_compiler_flag:'`
10439 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10440 (eval "$lt_compile" 2>conftest.err)
10441 ac_status=$?
10442 cat conftest.err >&5
10443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10444 if (exit $ac_status) && test -s "$ac_outfile"; then
10445 # The compiler can only warn and ignore the option if not recognized
10446 # So say no if there are warnings other than the usual output.
10447 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10448 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10449 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10450 lt_cv_prog_compiler_rtti_exceptions=yes
10451 fi
10452 fi
10453 $RM conftest*
10454 ;;
10455 esac
10456 fi
10457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10458 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10459
10460 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10461 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10462 else
10463 :
10464 fi
10465
10466 fi
10467
10468
10469
10470
10471
10472
10473 lt_prog_compiler_wl=
10474 lt_prog_compiler_pic=
10475 lt_prog_compiler_static=
10476
10477
10478 if test yes = "$GCC"; then
10479 lt_prog_compiler_wl='-Wl,'
10480 lt_prog_compiler_static='-static'
10481
10482 case $host_os in
10483 aix*)
10484 # All AIX code is PIC.
10485 if test ia64 = "$host_cpu"; then
10486 # AIX 5 now supports IA64 processor
10487 lt_prog_compiler_static='-Bstatic'
10488 fi
10489 lt_prog_compiler_pic='-fPIC'
10490 ;;
10491
10492 amigaos*)
10493 case $host_cpu in
10494 powerpc)
10495 # see comment about AmigaOS4 .so support
10496 lt_prog_compiler_pic='-fPIC'
10497 ;;
10498 m68k)
10499 # FIXME: we need at least 68020 code to build shared libraries, but
10500 # adding the '-m68020' flag to GCC prevents building anything better,
10501 # like '-m68040'.
10502 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10503 ;;
10504 esac
10505 ;;
10506
10507 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10508 # PIC is the default for these OSes.
10509 ;;
10510
10511 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
10512 # This hack is so that the source file can tell whether it is being
10513 # built for inclusion in a dll (and should export symbols for example).
10514 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10515 # (--disable-auto-import) libraries
10516 lt_prog_compiler_pic='-DDLL_EXPORT'
10517 case $host_os in
10518 os2*)
10519 lt_prog_compiler_static='$wl-static'
10520 ;;
10521 esac
10522 ;;
10523
10524 darwin* | rhapsody*)
10525 # PIC is the default on this platform
10526 # Common symbols not allowed in MH_DYLIB files
10527 lt_prog_compiler_pic='-fno-common'
10528 ;;
10529
10530 haiku*)
10531 # PIC is the default for Haiku.
10532 # The "-static" flag exists, but is broken.
10533 lt_prog_compiler_static=
10534 ;;
10535
10536 hpux*)
10537 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10538 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10539 # sets the default TLS model and affects inlining.
10540 case $host_cpu in
10541 hppa*64*)
10542 # +Z the default
10543 ;;
10544 *)
10545 lt_prog_compiler_pic='-fPIC'
10546 ;;
10547 esac
10548 ;;
10549
10550 interix[3-9]*)
10551 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10552 # Instead, we relocate shared libraries at runtime.
10553 ;;
10554
10555 msdosdjgpp*)
10556 # Just because we use GCC doesn't mean we suddenly get shared libraries
10557 # on systems that don't support them.
10558 lt_prog_compiler_can_build_shared=no
10559 enable_shared=no
10560 ;;
10561
10562 *nto* | *qnx*)
10563 # QNX uses GNU C++, but need to define -shared option too, otherwise
10564 # it will coredump.
10565 lt_prog_compiler_pic='-fPIC -shared'
10566 ;;
10567
10568 sysv4*MP*)
10569 if test -d /usr/nec; then
10570 lt_prog_compiler_pic=-Kconform_pic
10571 fi
10572 ;;
10573
10574 *)
10575 lt_prog_compiler_pic='-fPIC'
10576 ;;
10577 esac
10578
10579 case $cc_basename in
10580 nvcc*) # Cuda Compiler Driver 2.2
10581 lt_prog_compiler_wl='-Xlinker '
10582 if test -n "$lt_prog_compiler_pic"; then
10583 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10584 fi
10585 ;;
10586 esac
10587 else
10588 # PORTME Check for flag to pass linker flags through the system compiler.
10589 case $host_os in
10590 aix*)
10591 lt_prog_compiler_wl='-Wl,'
10592 if test ia64 = "$host_cpu"; then
10593 # AIX 5 now supports IA64 processor
10594 lt_prog_compiler_static='-Bstatic'
10595 else
10596 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10597 fi
10598 ;;
10599
10600 darwin* | rhapsody*)
10601 # PIC is the default on this platform
10602 # Common symbols not allowed in MH_DYLIB files
10603 lt_prog_compiler_pic='-fno-common'
10604 case $cc_basename in
10605 nagfor*)
10606 # NAG Fortran compiler
10607 lt_prog_compiler_wl='-Wl,-Wl,,'
10608 lt_prog_compiler_pic='-PIC'
10609 lt_prog_compiler_static='-Bstatic'
10610 ;;
10611 esac
10612 ;;
10613
10614 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
10615 # This hack is so that the source file can tell whether it is being
10616 # built for inclusion in a dll (and should export symbols for example).
10617 lt_prog_compiler_pic='-DDLL_EXPORT'
10618 case $host_os in
10619 os2*)
10620 lt_prog_compiler_static='$wl-static'
10621 ;;
10622 esac
10623 ;;
10624
10625 hpux9* | hpux10* | hpux11*)
10626 lt_prog_compiler_wl='-Wl,'
10627 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10628 # not for PA HP-UX.
10629 case $host_cpu in
10630 hppa*64*|ia64*)
10631 # +Z the default
10632 ;;
10633 *)
10634 lt_prog_compiler_pic='+Z'
10635 ;;
10636 esac
10637 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10638 lt_prog_compiler_static='$wl-a ${wl}archive'
10639 ;;
10640
10641 irix5* | irix6* | nonstopux*)
10642 lt_prog_compiler_wl='-Wl,'
10643 # PIC (with -KPIC) is the default.
10644 lt_prog_compiler_static='-non_shared'
10645 ;;
10646
10647 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10648 case $cc_basename in
10649 # old Intel for x86_64, which still supported -KPIC.
10650 ecc*)
10651 lt_prog_compiler_wl='-Wl,'
10652 lt_prog_compiler_pic='-KPIC'
10653 lt_prog_compiler_static='-static'
10654 ;;
10655 *flang* | ftn | f18* | f95*)
10656 # Flang compiler.
10657 lt_prog_compiler_wl='-Wl,'
10658 lt_prog_compiler_pic='-fPIC'
10659 lt_prog_compiler_static='-static'
10660 ;;
10661 # icc used to be incompatible with GCC.
10662 # ICC 10 doesn't accept -KPIC any more.
10663 icc* | ifort*)
10664 lt_prog_compiler_wl='-Wl,'
10665 lt_prog_compiler_pic='-fPIC'
10666 lt_prog_compiler_static='-static'
10667 ;;
10668 # Lahey Fortran 8.1.
10669 lf95*)
10670 lt_prog_compiler_wl='-Wl,'
10671 lt_prog_compiler_pic='--shared'
10672 lt_prog_compiler_static='--static'
10673 ;;
10674 nagfor*)
10675 # NAG Fortran compiler
10676 lt_prog_compiler_wl='-Wl,-Wl,,'
10677 lt_prog_compiler_pic='-PIC'
10678 lt_prog_compiler_static='-Bstatic'
10679 ;;
10680 tcc*)
10681 # Fabrice Bellard et al's Tiny C Compiler
10682 lt_prog_compiler_wl='-Wl,'
10683 lt_prog_compiler_pic='-fPIC'
10684 lt_prog_compiler_static='-static'
10685 ;;
10686 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10687 # Portland Group compilers (*not* the Pentium gcc compiler,
10688 # which looks to be a dead project)
10689 lt_prog_compiler_wl='-Wl,'
10690 lt_prog_compiler_pic='-fpic'
10691 lt_prog_compiler_static='-Bstatic'
10692 ;;
10693 ccc*)
10694 lt_prog_compiler_wl='-Wl,'
10695 # All Alpha code is PIC.
10696 lt_prog_compiler_static='-non_shared'
10697 ;;
10698 xl* | bgxl* | bgf* | mpixl*)
10699 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10700 lt_prog_compiler_wl='-Wl,'
10701 lt_prog_compiler_pic='-qpic'
10702 lt_prog_compiler_static='-qstaticlink'
10703 ;;
10704 *)
10705 case `$CC -V 2>&1 | $SED 5q` in
10706 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10707 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10708 lt_prog_compiler_pic='-KPIC'
10709 lt_prog_compiler_static='-Bstatic'
10710 lt_prog_compiler_wl=''
10711 ;;
10712 *Sun\ F* | *Sun*Fortran*)
10713 lt_prog_compiler_pic='-KPIC'
10714 lt_prog_compiler_static='-Bstatic'
10715 lt_prog_compiler_wl='-Qoption ld '
10716 ;;
10717 *Sun\ C*)
10718 # Sun C 5.9
10719 lt_prog_compiler_pic='-KPIC'
10720 lt_prog_compiler_static='-Bstatic'
10721 lt_prog_compiler_wl='-Wl,'
10722 ;;
10723 *Intel*\ [CF]*Compiler*)
10724 lt_prog_compiler_wl='-Wl,'
10725 lt_prog_compiler_pic='-fPIC'
10726 lt_prog_compiler_static='-static'
10727 ;;
10728 *Portland\ Group*)
10729 lt_prog_compiler_wl='-Wl,'
10730 lt_prog_compiler_pic='-fpic'
10731 lt_prog_compiler_static='-Bstatic'
10732 ;;
10733 esac
10734 ;;
10735 esac
10736 ;;
10737
10738 newsos6)
10739 lt_prog_compiler_pic='-KPIC'
10740 lt_prog_compiler_static='-Bstatic'
10741 ;;
10742
10743 *-mlibc)
10744 lt_prog_compiler_wl='-Wl,'
10745 lt_prog_compiler_pic='-fPIC'
10746 lt_prog_compiler_static='-static'
10747 ;;
10748
10749 *nto* | *qnx*)
10750 # QNX uses GNU C++, but need to define -shared option too, otherwise
10751 # it will coredump.
10752 lt_prog_compiler_pic='-fPIC -shared'
10753 ;;
10754
10755 osf3* | osf4* | osf5*)
10756 lt_prog_compiler_wl='-Wl,'
10757 # All OSF/1 code is PIC.
10758 lt_prog_compiler_static='-non_shared'
10759 ;;
10760
10761 rdos*)
10762 lt_prog_compiler_static='-non_shared'
10763 ;;
10764
10765 serenity*)
10766 ;;
10767
10768 solaris*)
10769 lt_prog_compiler_pic='-KPIC'
10770 lt_prog_compiler_static='-Bstatic'
10771 case $cc_basename in
10772 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10773 lt_prog_compiler_wl='-Qoption ld ';;
10774 *)
10775 lt_prog_compiler_wl='-Wl,';;
10776 esac
10777 ;;
10778
10779 sunos4*)
10780 lt_prog_compiler_wl='-Qoption ld '
10781 lt_prog_compiler_pic='-PIC'
10782 lt_prog_compiler_static='-Bstatic'
10783 ;;
10784
10785 sysv4 | sysv4.2uw2* | sysv4.3*)
10786 lt_prog_compiler_wl='-Wl,'
10787 lt_prog_compiler_pic='-KPIC'
10788 lt_prog_compiler_static='-Bstatic'
10789 ;;
10790
10791 sysv4*MP*)
10792 if test -d /usr/nec; then
10793 lt_prog_compiler_pic='-Kconform_pic'
10794 lt_prog_compiler_static='-Bstatic'
10795 fi
10796 ;;
10797
10798 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10799 lt_prog_compiler_wl='-Wl,'
10800 lt_prog_compiler_pic='-KPIC'
10801 lt_prog_compiler_static='-Bstatic'
10802 ;;
10803
10804 unicos*)
10805 lt_prog_compiler_wl='-Wl,'
10806 lt_prog_compiler_can_build_shared=no
10807 ;;
10808
10809 uts4*)
10810 lt_prog_compiler_pic='-pic'
10811 lt_prog_compiler_static='-Bstatic'
10812 ;;
10813
10814 *)
10815 lt_prog_compiler_can_build_shared=no
10816 ;;
10817 esac
10818 fi
10819
10820 case $host_os in
10821 # For platforms that do not support PIC, -DPIC is meaningless:
10822 *djgpp*)
10823 lt_prog_compiler_pic=
10824 ;;
10825 *)
10826 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10827 ;;
10828 esac
10829
10830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10831 printf %s "checking for $compiler option to produce PIC... " >&6; }
10832 if test ${lt_cv_prog_compiler_pic+y}
10833 then :
10834 printf %s "(cached) " >&6
10835 else case e in #(
10836 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
10837 esac
10838 fi
10839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10840 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
10841 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10842
10843 #
10844 # Check to make sure the PIC flag actually works.
10845 #
10846 if test -n "$lt_prog_compiler_pic"; then
10847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10848 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10849 if test ${lt_cv_prog_compiler_pic_works+y}
10850 then :
10851 printf %s "(cached) " >&6
10852 else case e in #(
10853 e) lt_cv_prog_compiler_pic_works=no
10854 ac_outfile=conftest.$ac_objext
10855 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10856 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10857 # Insert the option either (1) after the last *FLAGS variable, or
10858 # (2) before a word containing "conftest.", or (3) at the end.
10859 # Note that $ac_compile itself does not contain backslashes and begins
10860 # with a dollar sign (not a hyphen), so the echo should work correctly.
10861 # The option is referenced via a variable to avoid confusing sed.
10862 lt_compile=`echo "$ac_compile" | $SED \
10863 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10864 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10865 -e 's:$: $lt_compiler_flag:'`
10866 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10867 (eval "$lt_compile" 2>conftest.err)
10868 ac_status=$?
10869 cat conftest.err >&5
10870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10871 if (exit $ac_status) && test -s "$ac_outfile"; then
10872 # The compiler can only warn and ignore the option if not recognized
10873 # So say no if there are warnings other than the usual output.
10874 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10875 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10876 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10877 lt_cv_prog_compiler_pic_works=yes
10878 fi
10879 fi
10880 $RM conftest*
10881 ;;
10882 esac
10883 fi
10884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10885 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
10886
10887 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10888 case $lt_prog_compiler_pic in
10889 "" | " "*) ;;
10890 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10891 esac
10892 else
10893 lt_prog_compiler_pic=
10894 lt_prog_compiler_can_build_shared=no
10895 fi
10896
10897 fi
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909 #
10910 # Check to make sure the static flag actually works.
10911 #
10912 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10914 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10915 if test ${lt_cv_prog_compiler_static_works+y}
10916 then :
10917 printf %s "(cached) " >&6
10918 else case e in #(
10919 e) lt_cv_prog_compiler_static_works=no
10920 save_LDFLAGS=$LDFLAGS
10921 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10922 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10923 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10924 # The linker can only warn and ignore the option if not recognized
10925 # So say no if there are warnings
10926 if test -s conftest.err; then
10927 # Append any errors to the config.log.
10928 cat conftest.err 1>&5
10929 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10930 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10931 if diff conftest.exp conftest.er2 >/dev/null; then
10932 lt_cv_prog_compiler_static_works=yes
10933 fi
10934 else
10935 lt_cv_prog_compiler_static_works=yes
10936 fi
10937 fi
10938 $RM -r conftest*
10939 LDFLAGS=$save_LDFLAGS
10940 ;;
10941 esac
10942 fi
10943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10944 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
10945
10946 if test yes = "$lt_cv_prog_compiler_static_works"; then
10947 :
10948 else
10949 lt_prog_compiler_static=
10950 fi
10951
10952
10953
10954
10955
10956
10957
10958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10959 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10960 if test ${lt_cv_prog_compiler_c_o+y}
10961 then :
10962 printf %s "(cached) " >&6
10963 else case e in #(
10964 e) lt_cv_prog_compiler_c_o=no
10965 $RM -r conftest 2>/dev/null
10966 mkdir conftest
10967 cd conftest
10968 mkdir out
10969 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10970
10971 lt_compiler_flag="-o out/conftest2.$ac_objext"
10972 # Insert the option either (1) after the last *FLAGS variable, or
10973 # (2) before a word containing "conftest.", or (3) at the end.
10974 # Note that $ac_compile itself does not contain backslashes and begins
10975 # with a dollar sign (not a hyphen), so the echo should work correctly.
10976 lt_compile=`echo "$ac_compile" | $SED \
10977 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10978 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10979 -e 's:$: $lt_compiler_flag:'`
10980 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10981 (eval "$lt_compile" 2>out/conftest.err)
10982 ac_status=$?
10983 cat out/conftest.err >&5
10984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10985 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10986 then
10987 # The compiler can only warn and ignore the option if not recognized
10988 # So say no if there are warnings
10989 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10990 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10991 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10992 lt_cv_prog_compiler_c_o=yes
10993 fi
10994 fi
10995 chmod u+w . 2>&5
10996 $RM conftest*
10997 # SGI C++ compiler will create directory out/ii_files/ for
10998 # template instantiation
10999 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11000 $RM out/* && rmdir out
11001 cd ..
11002 $RM -r conftest
11003 $RM conftest*
11004 ;;
11005 esac
11006 fi
11007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11008 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
11009
11010
11011
11012
11013
11014
11015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11016 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11017 if test ${lt_cv_prog_compiler_c_o+y}
11018 then :
11019 printf %s "(cached) " >&6
11020 else case e in #(
11021 e) lt_cv_prog_compiler_c_o=no
11022 $RM -r conftest 2>/dev/null
11023 mkdir conftest
11024 cd conftest
11025 mkdir out
11026 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11027
11028 lt_compiler_flag="-o out/conftest2.$ac_objext"
11029 # Insert the option either (1) after the last *FLAGS variable, or
11030 # (2) before a word containing "conftest.", or (3) at the end.
11031 # Note that $ac_compile itself does not contain backslashes and begins
11032 # with a dollar sign (not a hyphen), so the echo should work correctly.
11033 lt_compile=`echo "$ac_compile" | $SED \
11034 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11035 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11036 -e 's:$: $lt_compiler_flag:'`
11037 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11038 (eval "$lt_compile" 2>out/conftest.err)
11039 ac_status=$?
11040 cat out/conftest.err >&5
11041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11042 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11043 then
11044 # The compiler can only warn and ignore the option if not recognized
11045 # So say no if there are warnings
11046 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11047 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11048 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11049 lt_cv_prog_compiler_c_o=yes
11050 fi
11051 fi
11052 chmod u+w . 2>&5
11053 $RM conftest*
11054 # SGI C++ compiler will create directory out/ii_files/ for
11055 # template instantiation
11056 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11057 $RM out/* && rmdir out
11058 cd ..
11059 $RM -r conftest
11060 $RM conftest*
11061 ;;
11062 esac
11063 fi
11064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11065 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
11066
11067
11068
11069
11070 hard_links=nottested
11071 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
11072 # do not overwrite the value of need_locks provided by the user
11073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11074 printf %s "checking if we can lock with hard links... " >&6; }
11075 hard_links=yes
11076 $RM conftest*
11077 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11078 touch conftest.a
11079 ln conftest.a conftest.b 2>&5 || hard_links=no
11080 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11082 printf "%s\n" "$hard_links" >&6; }
11083 if test no = "$hard_links"; then
11084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11085 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
11086 need_locks=warn
11087 fi
11088 else
11089 need_locks=no
11090 fi
11091
11092
11093
11094
11095
11096
11097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11098 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11099
11100 runpath_var=
11101 allow_undefined_flag=
11102 always_export_symbols=no
11103 archive_cmds=
11104 archive_expsym_cmds=
11105 compiler_needs_object=no
11106 enable_shared_with_static_runtimes=no
11107 export_dynamic_flag_spec=
11108 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11109 hardcode_automatic=no
11110 hardcode_direct=no
11111 hardcode_direct_absolute=no
11112 hardcode_libdir_flag_spec=
11113 hardcode_libdir_separator=
11114 hardcode_minus_L=no
11115 hardcode_shlibpath_var=unsupported
11116 inherit_rpath=no
11117 link_all_deplibs=unknown
11118 module_cmds=
11119 module_expsym_cmds=
11120 old_archive_from_new_cmds=
11121 old_archive_from_expsyms_cmds=
11122 thread_safe_flag_spec=
11123 whole_archive_flag_spec=
11124 # include_expsyms should be a list of space-separated symbols to be *always*
11125 # included in the symbol list
11126 include_expsyms=
11127 # exclude_expsyms can be an extended regexp of symbols to exclude
11128 # it will be wrapped by ' (' and ')$', so one must not match beginning or
11129 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11130 # as well as any symbol that contains 'd'.
11131 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11132 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11133 # platforms (ab)use it in PIC code, but their linkers get confused if
11134 # the symbol is explicitly referenced. Since portable code cannot
11135 # rely on this symbol name, it's probably fine to never include it in
11136 # preloaded symbol tables.
11137 # Exclude shared library initialization/finalization symbols.
11138 extract_expsyms_cmds=
11139
11140 case $host_os in
11141 cygwin* | mingw* | windows* | pw32* | cegcc*)
11142 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
11143 # When not using gcc, we currently assume that we are using
11144 # Microsoft Visual C++ or Intel C++ Compiler.
11145 if test yes != "$GCC"; then
11146 with_gnu_ld=no
11147 fi
11148 ;;
11149 interix*)
11150 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
11151 with_gnu_ld=yes
11152 ;;
11153 esac
11154
11155 ld_shlibs=yes
11156
11157 # On some targets, GNU ld is compatible enough with the native linker
11158 # that we're better off using the native interface for both.
11159 lt_use_gnu_ld_interface=no
11160 if test yes = "$with_gnu_ld"; then
11161 case $host_os in
11162 aix*)
11163 # The AIX port of GNU ld has always aspired to compatibility
11164 # with the native linker. However, as the warning in the GNU ld
11165 # block says, versions before 2.19.5* couldn't really create working
11166 # shared libraries, regardless of the interface used.
11167 case `$LD -v 2>&1` in
11168 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11169 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11170 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11171 *)
11172 lt_use_gnu_ld_interface=yes
11173 ;;
11174 esac
11175 ;;
11176 *)
11177 lt_use_gnu_ld_interface=yes
11178 ;;
11179 esac
11180 fi
11181
11182 if test yes = "$lt_use_gnu_ld_interface"; then
11183 # If archive_cmds runs LD, not CC, wlarc should be empty
11184 wlarc='$wl'
11185
11186 # Set some defaults for GNU ld with shared library support. These
11187 # are reset later if shared libraries are not supported. Putting them
11188 # here allows them to be overridden if necessary.
11189 runpath_var=LD_RUN_PATH
11190 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11191 export_dynamic_flag_spec='$wl--export-dynamic'
11192 # ancient GNU ld didn't support --whole-archive et. al.
11193 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11194 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11195 else
11196 whole_archive_flag_spec=
11197 fi
11198 supports_anon_versioning=no
11199 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
11200 *GNU\ gold*) supports_anon_versioning=yes ;;
11201 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11202 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11203 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11204 *\ 2.11.*) ;; # other 2.11 versions
11205 *) supports_anon_versioning=yes ;;
11206 esac
11207
11208 # See if GNU ld supports shared libraries.
11209 case $host_os in
11210 aix[3-9]*)
11211 # On AIX/PPC, the GNU linker is very broken
11212 if test ia64 != "$host_cpu"; then
11213 ld_shlibs=no
11214 cat <<_LT_EOF 1>&2
11215
11216 *** Warning: the GNU linker, at least up to release 2.19, is reported
11217 *** to be unable to reliably create shared libraries on AIX.
11218 *** Therefore, libtool is disabling shared libraries support. If you
11219 *** really care for shared libraries, you may want to install binutils
11220 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11221 *** You will then need to restart the configuration process.
11222
11223 _LT_EOF
11224 fi
11225 ;;
11226
11227 amigaos*)
11228 case $host_cpu in
11229 powerpc)
11230 # see comment about AmigaOS4 .so support
11231 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11232 archive_expsym_cmds=''
11233 ;;
11234 m68k)
11235 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)'
11236 hardcode_libdir_flag_spec='-L$libdir'
11237 hardcode_minus_L=yes
11238 ;;
11239 esac
11240 ;;
11241
11242 beos*)
11243 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11244 allow_undefined_flag=unsupported
11245 # Joseph Beckenbach <[email protected]> says some releases of gcc
11246 # support --undefined. This deserves some investigation. FIXME
11247 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11248 else
11249 ld_shlibs=no
11250 fi
11251 ;;
11252
11253 cygwin* | mingw* | windows* | pw32* | cegcc*)
11254 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11255 # as there is no search path for DLLs.
11256 hardcode_libdir_flag_spec='-L$libdir'
11257 export_dynamic_flag_spec='$wl--export-all-symbols'
11258 allow_undefined_flag=unsupported
11259 always_export_symbols=no
11260 enable_shared_with_static_runtimes=yes
11261 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'
11262 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11263 file_list_spec='@'
11264
11265 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11266 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11267 # If the export-symbols file already is a .def file, use it as
11268 # is; otherwise, prepend EXPORTS...
11269 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11270 cp $export_symbols $output_objdir/$soname.def;
11271 else
11272 echo EXPORTS > $output_objdir/$soname.def;
11273 cat $export_symbols >> $output_objdir/$soname.def;
11274 fi~
11275 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11276 else
11277 ld_shlibs=no
11278 fi
11279 ;;
11280
11281 haiku*)
11282 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11283 link_all_deplibs=no
11284 ;;
11285
11286 os2*)
11287 hardcode_libdir_flag_spec='-L$libdir'
11288 hardcode_minus_L=yes
11289 allow_undefined_flag=unsupported
11290 shrext_cmds=.dll
11291 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11292 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11293 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11294 $ECHO EXPORTS >> $output_objdir/$libname.def~
11295 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11296 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11297 emximp -o $lib $output_objdir/$libname.def'
11298 archive_expsym_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 prefix_cmds="$SED"~
11303 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11304 prefix_cmds="$prefix_cmds -e 1d";
11305 fi~
11306 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11307 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11308 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11309 emximp -o $lib $output_objdir/$libname.def'
11310 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11311 enable_shared_with_static_runtimes=yes
11312 file_list_spec='@'
11313 ;;
11314
11315 interix[3-9]*)
11316 hardcode_direct=no
11317 hardcode_shlibpath_var=no
11318 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11319 export_dynamic_flag_spec='$wl-E'
11320 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11321 # Instead, shared libraries are loaded at an image base (0x10000000 by
11322 # default) and relocated if they conflict, which is a slow very memory
11323 # consuming and fragmenting process. To avoid this, we pick a random,
11324 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11325 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11326 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11327 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'
11328 ;;
11329
11330 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11331 tmp_diet=no
11332 if test linux-dietlibc = "$host_os"; then
11333 case $cc_basename in
11334 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11335 esac
11336 fi
11337 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11338 && test no = "$tmp_diet"
11339 then
11340 tmp_addflag=' $pic_flag'
11341 tmp_sharedflag='-shared'
11342 case $cc_basename,$host_cpu in
11343 pgcc*) # Portland Group C compiler
11344 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'
11345 tmp_addflag=' $pic_flag'
11346 ;;
11347 pgf77* | pgf90* | pgf95* | pgfortran*)
11348 # Portland Group f77 and f90 compilers
11349 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'
11350 tmp_addflag=' $pic_flag -Mnomain' ;;
11351 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11352 tmp_addflag=' -i_dynamic' ;;
11353 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11354 tmp_addflag=' -i_dynamic -nofor_main' ;;
11355 ifc* | ifort*) # Intel Fortran compiler
11356 tmp_addflag=' -nofor_main' ;;
11357 lf95*) # Lahey Fortran 8.1
11358 whole_archive_flag_spec=
11359 tmp_sharedflag='--shared' ;;
11360 nagfor*) # NAGFOR 5.3
11361 tmp_sharedflag='-Wl,-shared' ;;
11362 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11363 tmp_sharedflag='-qmkshrobj'
11364 tmp_addflag= ;;
11365 nvcc*) # Cuda Compiler Driver 2.2
11366 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'
11367 compiler_needs_object=yes
11368 ;;
11369 esac
11370 case `$CC -V 2>&1 | $SED 5q` in
11371 *Sun\ C*) # Sun C 5.9
11372 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'
11373 compiler_needs_object=yes
11374 tmp_sharedflag='-G' ;;
11375 *Sun\ F*) # Sun Fortran 8.3
11376 tmp_sharedflag='-G' ;;
11377 esac
11378 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11379
11380 if test yes = "$supports_anon_versioning"; then
11381 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11382 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11383 echo "local: *; };" >> $output_objdir/$libname.ver~
11384 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11385 fi
11386
11387 case $cc_basename in
11388 tcc*)
11389 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11390 export_dynamic_flag_spec='-rdynamic'
11391 ;;
11392 xlf* | bgf* | bgxlf* | mpixlf*)
11393 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11394 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11395 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11396 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11397 if test yes = "$supports_anon_versioning"; then
11398 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11399 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11400 echo "local: *; };" >> $output_objdir/$libname.ver~
11401 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11402 fi
11403 ;;
11404 esac
11405 else
11406 ld_shlibs=no
11407 fi
11408 ;;
11409
11410 *-mlibc)
11411 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11412 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11413 ;;
11414
11415 netbsd* | netbsdelf*-gnu)
11416 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11417 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11418 wlarc=
11419 else
11420 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11421 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11422 fi
11423 ;;
11424
11425 solaris*)
11426 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11427 ld_shlibs=no
11428 cat <<_LT_EOF 1>&2
11429
11430 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11431 *** create shared libraries on Solaris systems. Therefore, libtool
11432 *** is disabling shared libraries support. We urge you to upgrade GNU
11433 *** binutils to release 2.9.1 or newer. Another option is to modify
11434 *** your PATH or compiler configuration so that the native linker is
11435 *** used, and then restart.
11436
11437 _LT_EOF
11438 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11439 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11440 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11441 else
11442 ld_shlibs=no
11443 fi
11444 ;;
11445
11446 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11447 case `$LD -v 2>&1` in
11448 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11449 ld_shlibs=no
11450 cat <<_LT_EOF 1>&2
11451
11452 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11453 *** reliably create shared libraries on SCO systems. Therefore, libtool
11454 *** is disabling shared libraries support. We urge you to upgrade GNU
11455 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11456 *** your PATH or compiler configuration so that the native linker is
11457 *** used, and then restart.
11458
11459 _LT_EOF
11460 ;;
11461 *)
11462 # For security reasons, it is highly recommended that you always
11463 # use absolute paths for naming shared libraries, and exclude the
11464 # DT_RUNPATH tag from executables and libraries. But doing so
11465 # requires that you compile everything twice, which is a pain.
11466 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11467 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11468 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11469 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11470 else
11471 ld_shlibs=no
11472 fi
11473 ;;
11474 esac
11475 ;;
11476
11477 sunos4*)
11478 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11479 wlarc=
11480 hardcode_direct=yes
11481 hardcode_shlibpath_var=no
11482 ;;
11483
11484 *)
11485 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11486 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11487 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11488 else
11489 ld_shlibs=no
11490 fi
11491 ;;
11492 esac
11493
11494 if test no = "$ld_shlibs"; then
11495 runpath_var=
11496 hardcode_libdir_flag_spec=
11497 export_dynamic_flag_spec=
11498 whole_archive_flag_spec=
11499 fi
11500 else
11501 # PORTME fill in a description of your system's linker (not GNU ld)
11502 case $host_os in
11503 aix3*)
11504 allow_undefined_flag=unsupported
11505 always_export_symbols=yes
11506 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'
11507 # Note: this linker hardcodes the directories in LIBPATH if there
11508 # are no directories specified by -L.
11509 hardcode_minus_L=yes
11510 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11511 # Neither direct hardcoding nor static linking is supported with a
11512 # broken collect2.
11513 hardcode_direct=unsupported
11514 fi
11515 ;;
11516
11517 aix[4-9]*)
11518 if test ia64 = "$host_cpu"; then
11519 # On IA64, the linker does run time linking by default, so we don't
11520 # have to do anything special.
11521 aix_use_runtimelinking=no
11522 exp_sym_flag='-Bexport'
11523 no_entry_flag=
11524 else
11525 # If we're using GNU nm, then we don't want the "-C" option.
11526 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
11527 # Without the "-l" option, or with the "-B" option, AIX nm treats
11528 # weak defined symbols like other global defined symbols, whereas
11529 # GNU nm marks them as "W".
11530 # While the 'weak' keyword is ignored in the Export File, we need
11531 # it in the Import File for the 'aix-soname' feature, so we have
11532 # to replace the "-B" option with "-P" for AIX nm.
11533 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11534 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'
11535 else
11536 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'
11537 fi
11538 aix_use_runtimelinking=no
11539
11540 # Test if we are trying to use run time linking or normal
11541 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11542 # have runtime linking enabled, and use it for executables.
11543 # For shared libraries, we enable/disable runtime linking
11544 # depending on the kind of the shared library created -
11545 # when "with_aix_soname,aix_use_runtimelinking" is:
11546 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
11547 # "aix,yes" lib.so shared, rtl:yes, for executables
11548 # lib.a static archive
11549 # "both,no" lib.so.V(shr.o) shared, rtl:yes
11550 # lib.a(lib.so.V) shared, rtl:no, for executables
11551 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11552 # lib.a(lib.so.V) shared, rtl:no
11553 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
11554 # lib.a static archive
11555 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11556 for ld_flag in $LDFLAGS; do
11557 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11558 aix_use_runtimelinking=yes
11559 break
11560 fi
11561 done
11562 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11563 # With aix-soname=svr4, we create the lib.so.V shared archives only,
11564 # so we don't have lib.a shared libs to link our executables.
11565 # We have to force runtime linking in this case.
11566 aix_use_runtimelinking=yes
11567 LDFLAGS="$LDFLAGS -Wl,-brtl"
11568 fi
11569 ;;
11570 esac
11571
11572 exp_sym_flag='-bexport'
11573 no_entry_flag='-bnoentry'
11574 fi
11575
11576 # When large executables or shared objects are built, AIX ld can
11577 # have problems creating the table of contents. If linking a library
11578 # or program results in "error TOC overflow" add -mminimal-toc to
11579 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11580 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11581
11582 archive_cmds=''
11583 hardcode_direct=yes
11584 hardcode_direct_absolute=yes
11585 hardcode_libdir_separator=':'
11586 link_all_deplibs=yes
11587 file_list_spec='$wl-f,'
11588 case $with_aix_soname,$aix_use_runtimelinking in
11589 aix,*) ;; # traditional, no import file
11590 svr4,* | *,yes) # use import file
11591 # The Import File defines what to hardcode.
11592 hardcode_direct=no
11593 hardcode_direct_absolute=no
11594 ;;
11595 esac
11596
11597 if test yes = "$GCC"; then
11598 case $host_os in aix4.[012]|aix4.[012].*)
11599 # We only want to do this on AIX 4.2 and lower, the check
11600 # below for broken collect2 doesn't work under 4.3+
11601 collect2name=`$CC -print-prog-name=collect2`
11602 if test -f "$collect2name" &&
11603 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11604 then
11605 # We have reworked collect2
11606 :
11607 else
11608 # We have old collect2
11609 hardcode_direct=unsupported
11610 # It fails to find uninstalled libraries when the uninstalled
11611 # path is not listed in the libpath. Setting hardcode_minus_L
11612 # to unsupported forces relinking
11613 hardcode_minus_L=yes
11614 hardcode_libdir_flag_spec='-L$libdir'
11615 hardcode_libdir_separator=
11616 fi
11617 ;;
11618 esac
11619 shared_flag='-shared'
11620 if test yes = "$aix_use_runtimelinking"; then
11621 shared_flag="$shared_flag "'$wl-G'
11622 fi
11623 # Need to ensure runtime linking is disabled for the traditional
11624 # shared library, or the linker may eventually find shared libraries
11625 # /with/ Import File - we do not want to mix them.
11626 shared_flag_aix='-shared'
11627 shared_flag_svr4='-shared $wl-G'
11628 else
11629 # not using gcc
11630 if test ia64 = "$host_cpu"; then
11631 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11632 # chokes on -Wl,-G. The following line is correct:
11633 shared_flag='-G'
11634 else
11635 if test yes = "$aix_use_runtimelinking"; then
11636 shared_flag='$wl-G'
11637 else
11638 shared_flag='$wl-bM:SRE'
11639 fi
11640 shared_flag_aix='$wl-bM:SRE'
11641 shared_flag_svr4='$wl-G'
11642 fi
11643 fi
11644
11645 export_dynamic_flag_spec='$wl-bexpall'
11646 # It seems that -bexpall does not export symbols beginning with
11647 # underscore (_), so it is better to generate a list of symbols to export.
11648 always_export_symbols=yes
11649 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11650 # Warning - without using the other runtime loading flags (-brtl),
11651 # -berok will link without error, but may produce a broken library.
11652 allow_undefined_flag='-berok'
11653 # Determine the default libpath from the value encoded in an
11654 # empty executable.
11655 if test set = "${lt_cv_aix_libpath+set}"; then
11656 aix_libpath=$lt_cv_aix_libpath
11657 else
11658 if test ${lt_cv_aix_libpath_+y}
11659 then :
11660 printf %s "(cached) " >&6
11661 else case e in #(
11662 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11663 /* end confdefs.h. */
11664
11665 int
11666 main (void)
11667 {
11668
11669 ;
11670 return 0;
11671 }
11672 _ACEOF
11673 if ac_fn_c_try_link "$LINENO"
11674 then :
11675
11676 lt_aix_libpath_sed='
11677 /Import File Strings/,/^$/ {
11678 /^0/ {
11679 s/^0 *\([^ ]*\) *$/\1/
11680 p
11681 }
11682 }'
11683 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11684 # Check for a 64-bit object if we didn't find anything.
11685 if test -z "$lt_cv_aix_libpath_"; then
11686 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11687 fi
11688 fi
11689 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11690 conftest$ac_exeext conftest.$ac_ext
11691 if test -z "$lt_cv_aix_libpath_"; then
11692 lt_cv_aix_libpath_=/usr/lib:/lib
11693 fi
11694 ;;
11695 esac
11696 fi
11697
11698 aix_libpath=$lt_cv_aix_libpath_
11699 fi
11700
11701 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11702 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
11703 else
11704 if test ia64 = "$host_cpu"; then
11705 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11706 allow_undefined_flag="-z nodefs"
11707 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"
11708 else
11709 # Determine the default libpath from the value encoded in an
11710 # empty executable.
11711 if test set = "${lt_cv_aix_libpath+set}"; then
11712 aix_libpath=$lt_cv_aix_libpath
11713 else
11714 if test ${lt_cv_aix_libpath_+y}
11715 then :
11716 printf %s "(cached) " >&6
11717 else case e in #(
11718 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11719 /* end confdefs.h. */
11720
11721 int
11722 main (void)
11723 {
11724
11725 ;
11726 return 0;
11727 }
11728 _ACEOF
11729 if ac_fn_c_try_link "$LINENO"
11730 then :
11731
11732 lt_aix_libpath_sed='
11733 /Import File Strings/,/^$/ {
11734 /^0/ {
11735 s/^0 *\([^ ]*\) *$/\1/
11736 p
11737 }
11738 }'
11739 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11740 # Check for a 64-bit object if we didn't find anything.
11741 if test -z "$lt_cv_aix_libpath_"; then
11742 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11743 fi
11744 fi
11745 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11746 conftest$ac_exeext conftest.$ac_ext
11747 if test -z "$lt_cv_aix_libpath_"; then
11748 lt_cv_aix_libpath_=/usr/lib:/lib
11749 fi
11750 ;;
11751 esac
11752 fi
11753
11754 aix_libpath=$lt_cv_aix_libpath_
11755 fi
11756
11757 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11758 # Warning - without using the other run time loading flags,
11759 # -berok will link without error, but may produce a broken library.
11760 no_undefined_flag=' $wl-bernotok'
11761 allow_undefined_flag=' $wl-berok'
11762 if test yes = "$with_gnu_ld"; then
11763 # We only use this code for GNU lds that support --whole-archive.
11764 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11765 else
11766 # Exported symbols can be pulled into shared objects from archives
11767 whole_archive_flag_spec='$convenience'
11768 fi
11769 archive_cmds_need_lc=yes
11770 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11771 # -brtl affects multiple linker settings, -berok does not and is overridden later
11772 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11773 if test svr4 != "$with_aix_soname"; then
11774 # This is similar to how AIX traditionally builds its shared libraries.
11775 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'
11776 fi
11777 if test aix != "$with_aix_soname"; then
11778 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'
11779 else
11780 # used by -dlpreopen to get the symbols
11781 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
11782 fi
11783 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11784 fi
11785 fi
11786 ;;
11787
11788 amigaos*)
11789 case $host_cpu in
11790 powerpc)
11791 # see comment about AmigaOS4 .so support
11792 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11793 archive_expsym_cmds=''
11794 ;;
11795 m68k)
11796 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)'
11797 hardcode_libdir_flag_spec='-L$libdir'
11798 hardcode_minus_L=yes
11799 ;;
11800 esac
11801 ;;
11802
11803 bsdi[45]*)
11804 export_dynamic_flag_spec=-rdynamic
11805 ;;
11806
11807 cygwin* | mingw* | windows* | pw32* | cegcc*)
11808 # When not using gcc, we currently assume that we are using
11809 # Microsoft Visual C++ or Intel C++ Compiler.
11810 # hardcode_libdir_flag_spec is actually meaningless, as there is
11811 # no search path for DLLs.
11812 case $cc_basename in
11813 cl* | icl*)
11814 # Native MSVC or ICC
11815 hardcode_libdir_flag_spec=' '
11816 allow_undefined_flag=unsupported
11817 always_export_symbols=yes
11818 file_list_spec='@'
11819 # Tell ltmain to make .lib files, not .a files.
11820 libext=lib
11821 # Tell ltmain to make .dll files, not .so files.
11822 shrext_cmds=.dll
11823 # FIXME: Setting linknames here is a bad hack.
11824 archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11825 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11826 cp "$export_symbols" "$output_objdir/$soname.def";
11827 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11828 else
11829 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11830 fi~
11831 $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11832 linknames='
11833 # The linker will not automatically build a static lib if we build a DLL.
11834 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11835 enable_shared_with_static_runtimes=yes
11836 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11837 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11838 # Don't use ranlib
11839 old_postinstall_cmds='chmod 644 $oldlib'
11840 postlink_cmds='lt_outputfile="@OUTPUT@"~
11841 lt_tool_outputfile="@TOOL_OUTPUT@"~
11842 case $lt_outputfile in
11843 *.exe|*.EXE) ;;
11844 *)
11845 lt_outputfile=$lt_outputfile.exe
11846 lt_tool_outputfile=$lt_tool_outputfile.exe
11847 ;;
11848 esac~
11849 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11850 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11851 $RM "$lt_outputfile.manifest";
11852 fi'
11853 ;;
11854 *)
11855 # Assume MSVC and ICC wrapper
11856 hardcode_libdir_flag_spec=' '
11857 allow_undefined_flag=unsupported
11858 # Tell ltmain to make .lib files, not .a files.
11859 libext=lib
11860 # Tell ltmain to make .dll files, not .so files.
11861 shrext_cmds=.dll
11862 # FIXME: Setting linknames here is a bad hack.
11863 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11864 # The linker will automatically build a .lib file if we build a DLL.
11865 old_archive_from_new_cmds='true'
11866 # FIXME: Should let the user specify the lib program.
11867 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11868 enable_shared_with_static_runtimes=yes
11869 ;;
11870 esac
11871 ;;
11872
11873 darwin* | rhapsody*)
11874
11875
11876 archive_cmds_need_lc=no
11877 hardcode_direct=no
11878 hardcode_automatic=yes
11879 hardcode_shlibpath_var=unsupported
11880 if test yes = "$lt_cv_ld_force_load"; then
11881 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\"`'
11882
11883 else
11884 whole_archive_flag_spec=''
11885 fi
11886 link_all_deplibs=yes
11887 allow_undefined_flag=$_lt_dar_allow_undefined
11888 case $cc_basename in
11889 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11890 *) _lt_dar_can_shared=$GCC ;;
11891 esac
11892 if test yes = "$_lt_dar_can_shared"; then
11893 output_verbose_link_cmd=func_echo_all
11894 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11895 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11896 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"
11897 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"
11898
11899 else
11900 ld_shlibs=no
11901 fi
11902
11903 ;;
11904
11905 dgux*)
11906 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11907 hardcode_libdir_flag_spec='-L$libdir'
11908 hardcode_shlibpath_var=no
11909 ;;
11910
11911 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11912 # support. Future versions do this automatically, but an explicit c++rt0.o
11913 # does not break anything, and helps significantly (at the cost of a little
11914 # extra space).
11915 freebsd2.2*)
11916 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11917 hardcode_libdir_flag_spec='-R$libdir'
11918 hardcode_direct=yes
11919 hardcode_shlibpath_var=no
11920 ;;
11921
11922 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11923 freebsd2.*)
11924 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11925 hardcode_direct=yes
11926 hardcode_minus_L=yes
11927 hardcode_shlibpath_var=no
11928 ;;
11929
11930 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11931 freebsd* | dragonfly* | midnightbsd*)
11932 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11933 hardcode_libdir_flag_spec='-R$libdir'
11934 hardcode_direct=yes
11935 hardcode_shlibpath_var=no
11936 ;;
11937
11938 hpux9*)
11939 if test yes = "$GCC"; then
11940 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'
11941 else
11942 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'
11943 fi
11944 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11945 hardcode_libdir_separator=:
11946 hardcode_direct=yes
11947
11948 # hardcode_minus_L: Not really in the search PATH,
11949 # but as the default location of the library.
11950 hardcode_minus_L=yes
11951 export_dynamic_flag_spec='$wl-E'
11952 ;;
11953
11954 hpux10*)
11955 if test yes,no = "$GCC,$with_gnu_ld"; then
11956 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11957 else
11958 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11959 fi
11960 if test no = "$with_gnu_ld"; then
11961 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11962 hardcode_libdir_separator=:
11963 hardcode_direct=yes
11964 hardcode_direct_absolute=yes
11965 export_dynamic_flag_spec='$wl-E'
11966 # hardcode_minus_L: Not really in the search PATH,
11967 # but as the default location of the library.
11968 hardcode_minus_L=yes
11969 fi
11970 ;;
11971
11972 hpux11*)
11973 if test yes,no = "$GCC,$with_gnu_ld"; then
11974 case $host_cpu in
11975 hppa*64*)
11976 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11977 ;;
11978 ia64*)
11979 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11980 ;;
11981 *)
11982 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11983 ;;
11984 esac
11985 else
11986 case $host_cpu in
11987 hppa*64*)
11988 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11989 ;;
11990 ia64*)
11991 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11992 ;;
11993 *)
11994
11995 # Older versions of the 11.00 compiler do not understand -b yet
11996 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11998 printf %s "checking if $CC understands -b... " >&6; }
11999 if test ${lt_cv_prog_compiler__b+y}
12000 then :
12001 printf %s "(cached) " >&6
12002 else case e in #(
12003 e) lt_cv_prog_compiler__b=no
12004 save_LDFLAGS=$LDFLAGS
12005 LDFLAGS="$LDFLAGS -b"
12006 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12007 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12008 # The linker can only warn and ignore the option if not recognized
12009 # So say no if there are warnings
12010 if test -s conftest.err; then
12011 # Append any errors to the config.log.
12012 cat conftest.err 1>&5
12013 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12014 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12015 if diff conftest.exp conftest.er2 >/dev/null; then
12016 lt_cv_prog_compiler__b=yes
12017 fi
12018 else
12019 lt_cv_prog_compiler__b=yes
12020 fi
12021 fi
12022 $RM -r conftest*
12023 LDFLAGS=$save_LDFLAGS
12024 ;;
12025 esac
12026 fi
12027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12028 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
12029
12030 if test yes = "$lt_cv_prog_compiler__b"; then
12031 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12032 else
12033 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12034 fi
12035
12036 ;;
12037 esac
12038 fi
12039 if test no = "$with_gnu_ld"; then
12040 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12041 hardcode_libdir_separator=:
12042
12043 case $host_cpu in
12044 hppa*64*|ia64*)
12045 hardcode_direct=no
12046 hardcode_shlibpath_var=no
12047 ;;
12048 *)
12049 hardcode_direct=yes
12050 hardcode_direct_absolute=yes
12051 export_dynamic_flag_spec='$wl-E'
12052
12053 # hardcode_minus_L: Not really in the search PATH,
12054 # but as the default location of the library.
12055 hardcode_minus_L=yes
12056 ;;
12057 esac
12058 fi
12059 ;;
12060
12061 irix5* | irix6* | nonstopux*)
12062 if test yes = "$GCC"; then
12063 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'
12064 # Try to use the -exported_symbol ld option, if it does not
12065 # work, assume that -exports_file does not work either and
12066 # implicitly export all symbols.
12067 # This should be the same for all languages, so no per-tag cache variable.
12068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12069 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12070 if test ${lt_cv_irix_exported_symbol+y}
12071 then :
12072 printf %s "(cached) " >&6
12073 else case e in #(
12074 e) save_LDFLAGS=$LDFLAGS
12075 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
12076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12077 /* end confdefs.h. */
12078 int foo (void) { return 0; }
12079 _ACEOF
12080 if ac_fn_c_try_link "$LINENO"
12081 then :
12082 lt_cv_irix_exported_symbol=yes
12083 else case e in #(
12084 e) lt_cv_irix_exported_symbol=no ;;
12085 esac
12086 fi
12087 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12088 conftest$ac_exeext conftest.$ac_ext
12089 LDFLAGS=$save_LDFLAGS ;;
12090 esac
12091 fi
12092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12093 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
12094 if test yes = "$lt_cv_irix_exported_symbol"; then
12095 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'
12096 fi
12097 else
12098 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'
12099 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'
12100 fi
12101 archive_cmds_need_lc='no'
12102 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12103 hardcode_libdir_separator=:
12104 inherit_rpath=yes
12105 link_all_deplibs=yes
12106 ;;
12107
12108 linux*)
12109 case $cc_basename in
12110 tcc*)
12111 # Fabrice Bellard et al's Tiny C Compiler
12112 ld_shlibs=yes
12113 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12114 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12115 ;;
12116 esac
12117 ;;
12118
12119 *-mlibc)
12120 ;;
12121
12122 netbsd* | netbsdelf*-gnu)
12123 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12124 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12125 else
12126 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12127 fi
12128 hardcode_libdir_flag_spec='-R$libdir'
12129 hardcode_direct=yes
12130 hardcode_shlibpath_var=no
12131 ;;
12132
12133 newsos6)
12134 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12135 hardcode_direct=yes
12136 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12137 hardcode_libdir_separator=:
12138 hardcode_shlibpath_var=no
12139 ;;
12140
12141 *nto* | *qnx*)
12142 ;;
12143
12144 openbsd*)
12145 if test -f /usr/libexec/ld.so; then
12146 hardcode_direct=yes
12147 hardcode_shlibpath_var=no
12148 hardcode_direct_absolute=yes
12149 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12150 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12151 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12152 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12153 export_dynamic_flag_spec='$wl-E'
12154 else
12155 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12156 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12157 fi
12158 else
12159 ld_shlibs=no
12160 fi
12161 ;;
12162
12163 os2*)
12164 hardcode_libdir_flag_spec='-L$libdir'
12165 hardcode_minus_L=yes
12166 allow_undefined_flag=unsupported
12167 shrext_cmds=.dll
12168 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12169 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12170 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12171 $ECHO EXPORTS >> $output_objdir/$libname.def~
12172 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12173 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12174 emximp -o $lib $output_objdir/$libname.def'
12175 archive_expsym_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 prefix_cmds="$SED"~
12180 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12181 prefix_cmds="$prefix_cmds -e 1d";
12182 fi~
12183 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12184 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12185 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12186 emximp -o $lib $output_objdir/$libname.def'
12187 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12188 enable_shared_with_static_runtimes=yes
12189 file_list_spec='@'
12190 ;;
12191
12192 osf3*)
12193 if test yes = "$GCC"; then
12194 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12195 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'
12196 else
12197 allow_undefined_flag=' -expect_unresolved \*'
12198 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'
12199 fi
12200 archive_cmds_need_lc='no'
12201 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12202 hardcode_libdir_separator=:
12203 ;;
12204
12205 osf4* | osf5*) # as osf3* with the addition of -msym flag
12206 if test yes = "$GCC"; then
12207 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12208 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'
12209 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12210 else
12211 allow_undefined_flag=' -expect_unresolved \*'
12212 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'
12213 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~
12214 $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'
12215
12216 # Both c and cxx compiler support -rpath directly
12217 hardcode_libdir_flag_spec='-rpath $libdir'
12218 fi
12219 archive_cmds_need_lc='no'
12220 hardcode_libdir_separator=:
12221 ;;
12222
12223 serenity*)
12224 ;;
12225
12226 solaris*)
12227 no_undefined_flag=' -z defs'
12228 if test yes = "$GCC"; then
12229 wlarc='$wl'
12230 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12231 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12232 $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'
12233 else
12234 case `$CC -V 2>&1` in
12235 *"Compilers 5.0"*)
12236 wlarc=''
12237 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12238 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12239 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12240 ;;
12241 *)
12242 wlarc='$wl'
12243 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12244 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12245 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12246 ;;
12247 esac
12248 fi
12249 hardcode_libdir_flag_spec='-R$libdir'
12250 hardcode_shlibpath_var=no
12251 case $host_os in
12252 solaris2.[0-5] | solaris2.[0-5].*) ;;
12253 *)
12254 # The compiler driver will combine and reorder linker options,
12255 # but understands '-z linker_flag'. GCC discards it without '$wl',
12256 # but is careful enough not to reorder.
12257 # Supported since Solaris 2.6 (maybe 2.5.1?)
12258 if test yes = "$GCC"; then
12259 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12260 else
12261 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12262 fi
12263 ;;
12264 esac
12265 link_all_deplibs=yes
12266 ;;
12267
12268 sunos4*)
12269 if test sequent = "$host_vendor"; then
12270 # Use $CC to link under sequent, because it throws in some extra .o
12271 # files that make .init and .fini sections work.
12272 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12273 else
12274 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12275 fi
12276 hardcode_libdir_flag_spec='-L$libdir'
12277 hardcode_direct=yes
12278 hardcode_minus_L=yes
12279 hardcode_shlibpath_var=no
12280 ;;
12281
12282 sysv4)
12283 case $host_vendor in
12284 sni)
12285 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12286 hardcode_direct=yes # is this really true???
12287 ;;
12288 siemens)
12289 ## LD is ld it makes a PLAMLIB
12290 ## CC just makes a GrossModule.
12291 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12292 reload_cmds='$CC -r -o $output$reload_objs'
12293 hardcode_direct=no
12294 ;;
12295 motorola)
12296 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12297 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12298 ;;
12299 esac
12300 runpath_var='LD_RUN_PATH'
12301 hardcode_shlibpath_var=no
12302 ;;
12303
12304 sysv4.3*)
12305 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12306 hardcode_shlibpath_var=no
12307 export_dynamic_flag_spec='-Bexport'
12308 ;;
12309
12310 sysv4*MP*)
12311 if test -d /usr/nec; then
12312 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12313 hardcode_shlibpath_var=no
12314 runpath_var=LD_RUN_PATH
12315 hardcode_runpath_var=yes
12316 ld_shlibs=yes
12317 fi
12318 ;;
12319
12320 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12321 no_undefined_flag='$wl-z,text'
12322 archive_cmds_need_lc=no
12323 hardcode_shlibpath_var=no
12324 runpath_var='LD_RUN_PATH'
12325
12326 if test yes = "$GCC"; then
12327 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12328 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12329 else
12330 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12331 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12332 fi
12333 ;;
12334
12335 sysv5* | sco3.2v5* | sco5v6*)
12336 # Note: We CANNOT use -z defs as we might desire, because we do not
12337 # link with -lc, and that would cause any symbols used from libc to
12338 # always be unresolved, which means just about no library would
12339 # ever link correctly. If we're not using GNU ld we use -z text
12340 # though, which does catch some bad symbols but isn't as heavy-handed
12341 # as -z defs.
12342 no_undefined_flag='$wl-z,text'
12343 allow_undefined_flag='$wl-z,nodefs'
12344 archive_cmds_need_lc=no
12345 hardcode_shlibpath_var=no
12346 hardcode_libdir_flag_spec='$wl-R,$libdir'
12347 hardcode_libdir_separator=':'
12348 link_all_deplibs=yes
12349 export_dynamic_flag_spec='$wl-Bexport'
12350 runpath_var='LD_RUN_PATH'
12351
12352 if test yes = "$GCC"; then
12353 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12354 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12355 else
12356 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12357 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12358 fi
12359 ;;
12360
12361 uts4*)
12362 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12363 hardcode_libdir_flag_spec='-L$libdir'
12364 hardcode_shlibpath_var=no
12365 ;;
12366
12367 *)
12368 ld_shlibs=no
12369 ;;
12370 esac
12371
12372 if test sni = "$host_vendor"; then
12373 case $host in
12374 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12375 export_dynamic_flag_spec='$wl-Blargedynsym'
12376 ;;
12377 esac
12378 fi
12379 fi
12380
12381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12382 printf "%s\n" "$ld_shlibs" >&6; }
12383 test no = "$ld_shlibs" && can_build_shared=no
12384
12385 with_gnu_ld=$with_gnu_ld
12386
12387
12388
12389
12390
12391
12392
12393
12394
12395
12396
12397
12398
12399
12400
12401 #
12402 # Do we need to explicitly link libc?
12403 #
12404 case "x$archive_cmds_need_lc" in
12405 x|xyes)
12406 # Assume -lc should be added
12407 archive_cmds_need_lc=yes
12408
12409 if test yes,yes = "$GCC,$enable_shared"; then
12410 case $archive_cmds in
12411 *'~'*)
12412 # FIXME: we may have to deal with multi-command sequences.
12413 ;;
12414 '$CC '*)
12415 # Test whether the compiler implicitly links with -lc since on some
12416 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12417 # to ld, don't add -lc before -lgcc.
12418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12419 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
12420 if test ${lt_cv_archive_cmds_need_lc+y}
12421 then :
12422 printf %s "(cached) " >&6
12423 else case e in #(
12424 e) $RM conftest*
12425 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12426
12427 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12428 (eval $ac_compile) 2>&5
12429 ac_status=$?
12430 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12431 test $ac_status = 0; } 2>conftest.err; then
12432 soname=conftest
12433 lib=conftest
12434 libobjs=conftest.$ac_objext
12435 deplibs=
12436 wl=$lt_prog_compiler_wl
12437 pic_flag=$lt_prog_compiler_pic
12438 compiler_flags=-v
12439 linker_flags=-v
12440 verstring=
12441 output_objdir=.
12442 libname=conftest
12443 lt_save_allow_undefined_flag=$allow_undefined_flag
12444 allow_undefined_flag=
12445 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12446 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12447 ac_status=$?
12448 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12449 test $ac_status = 0; }
12450 then
12451 lt_cv_archive_cmds_need_lc=no
12452 else
12453 lt_cv_archive_cmds_need_lc=yes
12454 fi
12455 allow_undefined_flag=$lt_save_allow_undefined_flag
12456 else
12457 cat conftest.err 1>&5
12458 fi
12459 $RM conftest*
12460 ;;
12461 esac
12462 fi
12463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12464 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
12465 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12466 ;;
12467 esac
12468 fi
12469 ;;
12470 esac
12471
12472
12473
12474
12475
12476
12477
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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12624 printf %s "checking dynamic linker characteristics... " >&6; }
12625
12626 if test yes = "$GCC"; then
12627 case $host_os in
12628 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12629 *) lt_awk_arg='/^libraries:/' ;;
12630 esac
12631 case $host_os in
12632 mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12633 *) lt_sed_strip_eq='s|=/|/|g' ;;
12634 esac
12635 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12636 case $lt_search_path_spec in
12637 *\;*)
12638 # if the path contains ";" then we assume it to be the separator
12639 # otherwise default to the standard path separator (i.e. ":") - it is
12640 # assumed that no part of a normal pathname contains ";" but that should
12641 # okay in the real world where ";" in dirpaths is itself problematic.
12642 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12643 ;;
12644 *)
12645 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12646 ;;
12647 esac
12648 # Ok, now we have the path, separated by spaces, we can step through it
12649 # and add multilib dir if necessary...
12650 lt_tmp_lt_search_path_spec=
12651 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12652 # ...but if some path component already ends with the multilib dir we assume
12653 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12654 case "$lt_multi_os_dir; $lt_search_path_spec " in
12655 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12656 lt_multi_os_dir=
12657 ;;
12658 esac
12659 for lt_sys_path in $lt_search_path_spec; do
12660 if test -d "$lt_sys_path$lt_multi_os_dir"; then
12661 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12662 elif test -n "$lt_multi_os_dir"; then
12663 test -d "$lt_sys_path" && \
12664 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12665 fi
12666 done
12667 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12668 BEGIN {RS = " "; FS = "/|\n";} {
12669 lt_foo = "";
12670 lt_count = 0;
12671 for (lt_i = NF; lt_i > 0; lt_i--) {
12672 if ($lt_i != "" && $lt_i != ".") {
12673 if ($lt_i == "..") {
12674 lt_count++;
12675 } else {
12676 if (lt_count == 0) {
12677 lt_foo = "/" $lt_i lt_foo;
12678 } else {
12679 lt_count--;
12680 }
12681 }
12682 }
12683 }
12684 if (lt_foo != "") { lt_freq[lt_foo]++; }
12685 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12686 }'`
12687 # AWK program above erroneously prepends '/' to C:/dos/paths
12688 # for these hosts.
12689 case $host_os in
12690 mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12691 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12692 esac
12693 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12694 else
12695 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12696 fi
12697 library_names_spec=
12698 libname_spec='lib$name'
12699 soname_spec=
12700 shrext_cmds=.so
12701 postinstall_cmds=
12702 postuninstall_cmds=
12703 finish_cmds=
12704 finish_eval=
12705 shlibpath_var=
12706 shlibpath_overrides_runpath=unknown
12707 version_type=none
12708 dynamic_linker="$host_os ld.so"
12709 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12710 need_lib_prefix=unknown
12711 hardcode_into_libs=no
12712
12713 # when you set need_version to no, make sure it does not cause -set_version
12714 # flags to be left without arguments
12715 need_version=unknown
12716
12717
12718
12719 case $host_os in
12720 aix3*)
12721 version_type=linux # correct to gnu/linux during the next big refactor
12722 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12723 shlibpath_var=LIBPATH
12724
12725 # AIX 3 has no versioning support, so we append a major version to the name.
12726 soname_spec='$libname$release$shared_ext$major'
12727 ;;
12728
12729 aix[4-9]*)
12730 version_type=linux # correct to gnu/linux during the next big refactor
12731 need_lib_prefix=no
12732 need_version=no
12733 hardcode_into_libs=yes
12734 if test ia64 = "$host_cpu"; then
12735 # AIX 5 supports IA64
12736 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12737 shlibpath_var=LD_LIBRARY_PATH
12738 else
12739 # With GCC up to 2.95.x, collect2 would create an import file
12740 # for dependence libraries. The import file would start with
12741 # the line '#! .'. This would cause the generated library to
12742 # depend on '.', always an invalid library. This was fixed in
12743 # development snapshots of GCC prior to 3.0.
12744 case $host_os in
12745 aix4 | aix4.[01] | aix4.[01].*)
12746 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12747 echo ' yes '
12748 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12749 :
12750 else
12751 can_build_shared=no
12752 fi
12753 ;;
12754 esac
12755 # Using Import Files as archive members, it is possible to support
12756 # filename-based versioning of shared library archives on AIX. While
12757 # this would work for both with and without runtime linking, it will
12758 # prevent static linking of such archives. So we do filename-based
12759 # shared library versioning with .so extension only, which is used
12760 # when both runtime linking and shared linking is enabled.
12761 # Unfortunately, runtime linking may impact performance, so we do
12762 # not want this to be the default eventually. Also, we use the
12763 # versioned .so libs for executables only if there is the -brtl
12764 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
12765 # To allow for filename-based versioning support, we need to create
12766 # libNAME.so.V as an archive file, containing:
12767 # *) an Import File, referring to the versioned filename of the
12768 # archive as well as the shared archive member, telling the
12769 # bitwidth (32 or 64) of that shared object, and providing the
12770 # list of exported symbols of that shared object, eventually
12771 # decorated with the 'weak' keyword
12772 # *) the shared object with the F_LOADONLY flag set, to really avoid
12773 # it being seen by the linker.
12774 # At run time we better use the real file rather than another symlink,
12775 # but for link time we create the symlink libNAME.so -> libNAME.so.V
12776
12777 case $with_aix_soname,$aix_use_runtimelinking in
12778 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12779 # soname into executable. Probably we can add versioning support to
12780 # collect2, so additional links can be useful in future.
12781 aix,yes) # traditional libtool
12782 dynamic_linker='AIX unversionable lib.so'
12783 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12784 # instead of lib<name>.a to let people know that these are not
12785 # typical AIX shared libraries.
12786 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12787 ;;
12788 aix,no) # traditional AIX only
12789 dynamic_linker='AIX lib.a(lib.so.V)'
12790 # We preserve .a as extension for shared libraries through AIX4.2
12791 # and later when we are not doing run time linking.
12792 library_names_spec='$libname$release.a $libname.a'
12793 soname_spec='$libname$release$shared_ext$major'
12794 ;;
12795 svr4,*) # full svr4 only
12796 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12797 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12798 # We do not specify a path in Import Files, so LIBPATH fires.
12799 shlibpath_overrides_runpath=yes
12800 ;;
12801 *,yes) # both, prefer svr4
12802 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12803 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12804 # unpreferred sharedlib libNAME.a needs extra handling
12805 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"'
12806 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"'
12807 # We do not specify a path in Import Files, so LIBPATH fires.
12808 shlibpath_overrides_runpath=yes
12809 ;;
12810 *,no) # both, prefer aix
12811 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12812 library_names_spec='$libname$release.a $libname.a'
12813 soname_spec='$libname$release$shared_ext$major'
12814 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12815 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)'
12816 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"'
12817 ;;
12818 esac
12819 shlibpath_var=LIBPATH
12820 fi
12821 ;;
12822
12823 amigaos*)
12824 case $host_cpu in
12825 powerpc)
12826 # Since July 2007 AmigaOS4 officially supports .so libraries.
12827 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12828 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12829 ;;
12830 m68k)
12831 library_names_spec='$libname.ixlibrary $libname.a'
12832 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12833 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'
12834 ;;
12835 esac
12836 ;;
12837
12838 beos*)
12839 library_names_spec='$libname$shared_ext'
12840 dynamic_linker="$host_os ld.so"
12841 shlibpath_var=LIBRARY_PATH
12842 ;;
12843
12844 bsdi[45]*)
12845 version_type=linux # correct to gnu/linux during the next big refactor
12846 need_version=no
12847 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12848 soname_spec='$libname$release$shared_ext$major'
12849 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12850 shlibpath_var=LD_LIBRARY_PATH
12851 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12852 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12853 # the default ld.so.conf also contains /usr/contrib/lib and
12854 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12855 # libtool to hard-code these into programs
12856 ;;
12857
12858 cygwin* | mingw* | windows* | pw32* | cegcc*)
12859 version_type=windows
12860 shrext_cmds=.dll
12861 need_version=no
12862 need_lib_prefix=no
12863
12864 case $GCC,$cc_basename in
12865 yes,*)
12866 # gcc
12867 library_names_spec='$libname.dll.a'
12868 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12869 # If user builds GCC with multilib enabled,
12870 # it should just install on $(libdir)
12871 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
12872 if test xyes = x"$multilib"; then
12873 postinstall_cmds='base_file=`basename \$file`~
12874 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12875 dldir=$destdir/`dirname \$dlpath`~
12876 $install_prog $dir/$dlname $destdir/$dlname~
12877 chmod a+x $destdir/$dlname~
12878 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12879 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
12880 fi'
12881 else
12882 postinstall_cmds='base_file=`basename \$file`~
12883 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12884 dldir=$destdir/`dirname \$dlpath`~
12885 test -d \$dldir || mkdir -p \$dldir~
12886 $install_prog $dir/$dlname \$dldir/$dlname~
12887 chmod a+x \$dldir/$dlname~
12888 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12889 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12890 fi'
12891 fi
12892 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12893 dlpath=$dir/\$dldll~
12894 $RM \$dlpath'
12895 shlibpath_overrides_runpath=yes
12896
12897 case $host_os in
12898 cygwin*)
12899 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12900 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12901
12902 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12903 ;;
12904 mingw* | windows* | cegcc*)
12905 # MinGW DLLs use traditional 'lib' prefix
12906 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12907 ;;
12908 pw32*)
12909 # pw32 DLLs use 'pw' prefix rather than 'lib'
12910 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12911 ;;
12912 esac
12913 dynamic_linker='Win32 ld.exe'
12914 ;;
12915
12916 *,cl* | *,icl*)
12917 # Native MSVC or ICC
12918 libname_spec='$name'
12919 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12920 library_names_spec='$libname.dll.lib'
12921
12922 case $build_os in
12923 mingw* | windows*)
12924 sys_lib_search_path_spec=
12925 lt_save_ifs=$IFS
12926 IFS=';'
12927 for lt_path in $LIB
12928 do
12929 IFS=$lt_save_ifs
12930 # Let DOS variable expansion print the short 8.3 style file name.
12931 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12932 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12933 done
12934 IFS=$lt_save_ifs
12935 # Convert to MSYS style.
12936 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12937 ;;
12938 cygwin*)
12939 # Convert to unix form, then to dos form, then back to unix form
12940 # but this time dos style (no spaces!) so that the unix form looks
12941 # like /cygdrive/c/PROGRA~1:/cygdr...
12942 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12943 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12944 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12945 ;;
12946 *)
12947 sys_lib_search_path_spec=$LIB
12948 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12949 # It is most probably a Windows format PATH.
12950 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12951 else
12952 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12953 fi
12954 # FIXME: find the short name or the path components, as spaces are
12955 # common. (e.g. "Program Files" -> "PROGRA~1")
12956 ;;
12957 esac
12958
12959 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12960 postinstall_cmds='base_file=`basename \$file`~
12961 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12962 dldir=$destdir/`dirname \$dlpath`~
12963 test -d \$dldir || mkdir -p \$dldir~
12964 $install_prog $dir/$dlname \$dldir/$dlname'
12965 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12966 dlpath=$dir/\$dldll~
12967 $RM \$dlpath'
12968 shlibpath_overrides_runpath=yes
12969 dynamic_linker='Win32 link.exe'
12970 ;;
12971
12972 *)
12973 # Assume MSVC and ICC wrapper
12974 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12975 dynamic_linker='Win32 ld.exe'
12976 ;;
12977 esac
12978 # FIXME: first we should search . and the directory the executable is in
12979 shlibpath_var=PATH
12980 ;;
12981
12982 darwin* | rhapsody*)
12983 dynamic_linker="$host_os dyld"
12984 version_type=darwin
12985 need_lib_prefix=no
12986 need_version=no
12987 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12988 soname_spec='$libname$release$major$shared_ext'
12989 shlibpath_overrides_runpath=yes
12990 shlibpath_var=DYLD_LIBRARY_PATH
12991 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12992
12993 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12994 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12995 ;;
12996
12997 dgux*)
12998 version_type=linux # correct to gnu/linux during the next big refactor
12999 need_lib_prefix=no
13000 need_version=no
13001 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13002 soname_spec='$libname$release$shared_ext$major'
13003 shlibpath_var=LD_LIBRARY_PATH
13004 ;;
13005
13006 freebsd* | dragonfly* | midnightbsd*)
13007 # DragonFly does not have aout. When/if they implement a new
13008 # versioning mechanism, adjust this.
13009 if test -x /usr/bin/objformat; then
13010 objformat=`/usr/bin/objformat`
13011 else
13012 case $host_os in
13013 freebsd[23].*) objformat=aout ;;
13014 *) objformat=elf ;;
13015 esac
13016 fi
13017 version_type=freebsd-$objformat
13018 case $version_type in
13019 freebsd-elf*)
13020 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13021 soname_spec='$libname$release$shared_ext$major'
13022 need_version=no
13023 need_lib_prefix=no
13024 ;;
13025 freebsd-*)
13026 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13027 need_version=yes
13028 ;;
13029 esac
13030 case $host_cpu in
13031 powerpc64)
13032 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
13033 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
13034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13035 /* end confdefs.h. */
13036 int test_pointer_size[sizeof (void *) - 5];
13037
13038 _ACEOF
13039 if ac_fn_c_try_compile "$LINENO"
13040 then :
13041 shlibpath_var=LD_LIBRARY_PATH
13042 else case e in #(
13043 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
13044 esac
13045 fi
13046 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13047 ;;
13048 *)
13049 shlibpath_var=LD_LIBRARY_PATH
13050 ;;
13051 esac
13052 case $host_os in
13053 freebsd2.*)
13054 shlibpath_overrides_runpath=yes
13055 ;;
13056 freebsd3.[01]* | freebsdelf3.[01]*)
13057 shlibpath_overrides_runpath=yes
13058 hardcode_into_libs=yes
13059 ;;
13060 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13061 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13062 shlibpath_overrides_runpath=no
13063 hardcode_into_libs=yes
13064 ;;
13065 *) # from 4.6 on, and DragonFly
13066 shlibpath_overrides_runpath=yes
13067 hardcode_into_libs=yes
13068 ;;
13069 esac
13070 ;;
13071
13072 haiku*)
13073 version_type=linux # correct to gnu/linux during the next big refactor
13074 need_lib_prefix=no
13075 need_version=no
13076 dynamic_linker="$host_os runtime_loader"
13077 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13078 soname_spec='$libname$release$shared_ext$major'
13079 shlibpath_var=LIBRARY_PATH
13080 shlibpath_overrides_runpath=no
13081 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
13082 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
13083 hardcode_into_libs=no
13084 ;;
13085
13086 hpux9* | hpux10* | hpux11*)
13087 # Give a soname corresponding to the major version so that dld.sl refuses to
13088 # link against other versions.
13089 version_type=sunos
13090 need_lib_prefix=no
13091 need_version=no
13092 case $host_cpu in
13093 ia64*)
13094 shrext_cmds='.so'
13095 hardcode_into_libs=yes
13096 dynamic_linker="$host_os dld.so"
13097 shlibpath_var=LD_LIBRARY_PATH
13098 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13099 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13100 soname_spec='$libname$release$shared_ext$major'
13101 if test 32 = "$HPUX_IA64_MODE"; then
13102 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13103 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
13104 else
13105 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13106 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
13107 fi
13108 ;;
13109 hppa*64*)
13110 shrext_cmds='.sl'
13111 hardcode_into_libs=yes
13112 dynamic_linker="$host_os dld.sl"
13113 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13114 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13115 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13116 soname_spec='$libname$release$shared_ext$major'
13117 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13118 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13119 ;;
13120 *)
13121 shrext_cmds='.sl'
13122 dynamic_linker="$host_os dld.sl"
13123 shlibpath_var=SHLIB_PATH
13124 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13125 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13126 soname_spec='$libname$release$shared_ext$major'
13127 ;;
13128 esac
13129 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13130 postinstall_cmds='chmod 555 $lib'
13131 # or fails outright, so override atomically:
13132 install_override_mode=555
13133 ;;
13134
13135 interix[3-9]*)
13136 version_type=linux # correct to gnu/linux during the next big refactor
13137 need_lib_prefix=no
13138 need_version=no
13139 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13140 soname_spec='$libname$release$shared_ext$major'
13141 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13142 shlibpath_var=LD_LIBRARY_PATH
13143 shlibpath_overrides_runpath=no
13144 hardcode_into_libs=yes
13145 ;;
13146
13147 irix5* | irix6* | nonstopux*)
13148 case $host_os in
13149 nonstopux*) version_type=nonstopux ;;
13150 *)
13151 if test yes = "$lt_cv_prog_gnu_ld"; then
13152 version_type=linux # correct to gnu/linux during the next big refactor
13153 else
13154 version_type=irix
13155 fi ;;
13156 esac
13157 need_lib_prefix=no
13158 need_version=no
13159 soname_spec='$libname$release$shared_ext$major'
13160 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
13161 case $host_os in
13162 irix5* | nonstopux*)
13163 libsuff= shlibsuff=
13164 ;;
13165 *)
13166 case $LD in # libtool.m4 will add one of these switches to LD
13167 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13168 libsuff= shlibsuff= libmagic=32-bit;;
13169 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13170 libsuff=32 shlibsuff=N32 libmagic=N32;;
13171 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13172 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13173 *) libsuff= shlibsuff= libmagic=never-match;;
13174 esac
13175 ;;
13176 esac
13177 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13178 shlibpath_overrides_runpath=no
13179 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13180 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
13181 hardcode_into_libs=yes
13182 ;;
13183
13184 # No shared lib support for Linux oldld, aout, or coff.
13185 linux*oldld* | linux*aout* | linux*coff*)
13186 dynamic_linker=no
13187 ;;
13188
13189 linux*android*)
13190 version_type=none # Android doesn't support versioned libraries.
13191 need_lib_prefix=no
13192 need_version=no
13193 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
13194 soname_spec='$libname$release$shared_ext'
13195 finish_cmds=
13196 shlibpath_var=LD_LIBRARY_PATH
13197 shlibpath_overrides_runpath=yes
13198
13199 # This implies no fast_install, which is unacceptable.
13200 # Some rework will be needed to allow for fast_install
13201 # before this can be enabled.
13202 hardcode_into_libs=yes
13203
13204 dynamic_linker='Android linker'
13205 # -rpath works at least for libraries that are not overridden by
13206 # libraries installed in system locations.
13207 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13208 ;;
13209
13210 # This must be glibc/ELF.
13211 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13212 version_type=linux # correct to gnu/linux during the next big refactor
13213 need_lib_prefix=no
13214 need_version=no
13215 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13216 soname_spec='$libname$release$shared_ext$major'
13217 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13218 shlibpath_var=LD_LIBRARY_PATH
13219 shlibpath_overrides_runpath=no
13220
13221 # Some binutils ld are patched to set DT_RUNPATH
13222 if test ${lt_cv_shlibpath_overrides_runpath+y}
13223 then :
13224 printf %s "(cached) " >&6
13225 else case e in #(
13226 e) lt_cv_shlibpath_overrides_runpath=no
13227 save_LDFLAGS=$LDFLAGS
13228 save_libdir=$libdir
13229 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13230 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13232 /* end confdefs.h. */
13233
13234 int
13235 main (void)
13236 {
13237
13238 ;
13239 return 0;
13240 }
13241 _ACEOF
13242 if ac_fn_c_try_link "$LINENO"
13243 then :
13244 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
13245 then :
13246 lt_cv_shlibpath_overrides_runpath=yes
13247 fi
13248 fi
13249 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13250 conftest$ac_exeext conftest.$ac_ext
13251 LDFLAGS=$save_LDFLAGS
13252 libdir=$save_libdir
13253 ;;
13254 esac
13255 fi
13256
13257 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13258
13259 # This implies no fast_install, which is unacceptable.
13260 # Some rework will be needed to allow for fast_install
13261 # before this can be enabled.
13262 hardcode_into_libs=yes
13263
13264 # Ideally, we could use ldconfig to report *all* directories which are
13265 # searched for libraries, however this is still not possible. Aside from not
13266 # being certain /sbin/ldconfig is available, command
13267 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13268 # even though it is searched at run-time. Try to do the best guess by
13269 # appending ld.so.conf contents (and includes) to the search path.
13270 if test -f /etc/ld.so.conf; then
13271 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' ' '`
13272 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13273 fi
13274
13275 # We used to test for /lib/ld.so.1 and disable shared libraries on
13276 # powerpc, because MkLinux only supported shared libraries with the
13277 # GNU dynamic linker. Since this was broken with cross compilers,
13278 # most powerpc-linux boxes support dynamic linking these days and
13279 # people can always --disable-shared, the test was removed, and we
13280 # assume the GNU/Linux dynamic linker is in use.
13281 dynamic_linker='GNU/Linux ld.so'
13282 ;;
13283
13284 netbsdelf*-gnu)
13285 version_type=linux
13286 need_lib_prefix=no
13287 need_version=no
13288 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13289 soname_spec='$libname$release$shared_ext$major'
13290 shlibpath_var=LD_LIBRARY_PATH
13291 shlibpath_overrides_runpath=no
13292 hardcode_into_libs=yes
13293 dynamic_linker='NetBSD ld.elf_so'
13294 ;;
13295
13296 netbsd*)
13297 version_type=sunos
13298 need_lib_prefix=no
13299 need_version=no
13300 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13301 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13302 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13303 dynamic_linker='NetBSD (a.out) ld.so'
13304 else
13305 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13306 soname_spec='$libname$release$shared_ext$major'
13307 dynamic_linker='NetBSD ld.elf_so'
13308 fi
13309 shlibpath_var=LD_LIBRARY_PATH
13310 shlibpath_overrides_runpath=yes
13311 hardcode_into_libs=yes
13312 ;;
13313
13314 *-mlibc)
13315 version_type=linux # correct to gnu/linux during the next big refactor
13316 need_lib_prefix=no
13317 need_version=no
13318 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13319 soname_spec='$libname$release$shared_ext$major'
13320 dynamic_linker='mlibc ld.so'
13321 shlibpath_var=LD_LIBRARY_PATH
13322 shlibpath_overrides_runpath=no
13323 hardcode_into_libs=yes
13324 ;;
13325
13326 newsos6)
13327 version_type=linux # correct to gnu/linux during the next big refactor
13328 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13329 shlibpath_var=LD_LIBRARY_PATH
13330 shlibpath_overrides_runpath=yes
13331 ;;
13332
13333 *nto* | *qnx*)
13334 version_type=qnx
13335 need_lib_prefix=no
13336 need_version=no
13337 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13338 soname_spec='$libname$release$shared_ext$major'
13339 shlibpath_var=LD_LIBRARY_PATH
13340 shlibpath_overrides_runpath=no
13341 hardcode_into_libs=yes
13342 dynamic_linker='ldqnx.so'
13343 ;;
13344
13345 openbsd*)
13346 version_type=sunos
13347 sys_lib_dlsearch_path_spec=/usr/lib
13348 need_lib_prefix=no
13349 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13350 need_version=no
13351 else
13352 need_version=yes
13353 fi
13354 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13355 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13356 shlibpath_var=LD_LIBRARY_PATH
13357 shlibpath_overrides_runpath=yes
13358 ;;
13359
13360 os2*)
13361 libname_spec='$name'
13362 version_type=windows
13363 shrext_cmds=.dll
13364 need_version=no
13365 need_lib_prefix=no
13366 # OS/2 can only load a DLL with a base name of 8 characters or less.
13367 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13368 v=$($ECHO $release$versuffix | tr -d .-);
13369 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13370 $ECHO $n$v`$shared_ext'
13371 library_names_spec='${libname}_dll.$libext'
13372 dynamic_linker='OS/2 ld.exe'
13373 shlibpath_var=BEGINLIBPATH
13374 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13375 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13376 postinstall_cmds='base_file=`basename \$file`~
13377 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13378 dldir=$destdir/`dirname \$dlpath`~
13379 test -d \$dldir || mkdir -p \$dldir~
13380 $install_prog $dir/$dlname \$dldir/$dlname~
13381 chmod a+x \$dldir/$dlname~
13382 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13383 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13384 fi'
13385 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13386 dlpath=$dir/\$dldll~
13387 $RM \$dlpath'
13388 ;;
13389
13390 osf3* | osf4* | osf5*)
13391 version_type=osf
13392 need_lib_prefix=no
13393 need_version=no
13394 soname_spec='$libname$release$shared_ext$major'
13395 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13396 shlibpath_var=LD_LIBRARY_PATH
13397 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13398 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13399 ;;
13400
13401 rdos*)
13402 dynamic_linker=no
13403 ;;
13404
13405 serenity*)
13406 version_type=linux # correct to gnu/linux during the next big refactor
13407 need_lib_prefix=no
13408 need_version=no
13409 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13410 soname_spec='$libname$release$shared_ext$major'
13411 shlibpath_var=LD_LIBRARY_PATH
13412 shlibpath_overrides_runpath=no
13413 dynamic_linker='SerenityOS LibELF'
13414 ;;
13415
13416 solaris*)
13417 version_type=linux # correct to gnu/linux during the next big refactor
13418 need_lib_prefix=no
13419 need_version=no
13420 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13421 soname_spec='$libname$release$shared_ext$major'
13422 shlibpath_var=LD_LIBRARY_PATH
13423 shlibpath_overrides_runpath=yes
13424 hardcode_into_libs=yes
13425 # ldd complains unless libraries are executable
13426 postinstall_cmds='chmod +x $lib'
13427 ;;
13428
13429 sunos4*)
13430 version_type=sunos
13431 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13432 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13433 shlibpath_var=LD_LIBRARY_PATH
13434 shlibpath_overrides_runpath=yes
13435 if test yes = "$with_gnu_ld"; then
13436 need_lib_prefix=no
13437 fi
13438 need_version=yes
13439 ;;
13440
13441 sysv4 | sysv4.3*)
13442 version_type=linux # correct to gnu/linux during the next big refactor
13443 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13444 soname_spec='$libname$release$shared_ext$major'
13445 shlibpath_var=LD_LIBRARY_PATH
13446 case $host_vendor in
13447 sni)
13448 shlibpath_overrides_runpath=no
13449 need_lib_prefix=no
13450 runpath_var=LD_RUN_PATH
13451 ;;
13452 siemens)
13453 need_lib_prefix=no
13454 ;;
13455 motorola)
13456 need_lib_prefix=no
13457 need_version=no
13458 shlibpath_overrides_runpath=no
13459 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13460 ;;
13461 esac
13462 ;;
13463
13464 sysv4*MP*)
13465 if test -d /usr/nec; then
13466 version_type=linux # correct to gnu/linux during the next big refactor
13467 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13468 soname_spec='$libname$shared_ext.$major'
13469 shlibpath_var=LD_LIBRARY_PATH
13470 fi
13471 ;;
13472
13473 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13474 version_type=sco
13475 need_lib_prefix=no
13476 need_version=no
13477 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13478 soname_spec='$libname$release$shared_ext$major'
13479 shlibpath_var=LD_LIBRARY_PATH
13480 shlibpath_overrides_runpath=yes
13481 hardcode_into_libs=yes
13482 if test yes = "$with_gnu_ld"; then
13483 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13484 else
13485 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13486 case $host_os in
13487 sco3.2v5*)
13488 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13489 ;;
13490 esac
13491 fi
13492 sys_lib_dlsearch_path_spec='/usr/lib'
13493 ;;
13494
13495 tpf*)
13496 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13497 version_type=linux # correct to gnu/linux during the next big refactor
13498 need_lib_prefix=no
13499 need_version=no
13500 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13501 shlibpath_var=LD_LIBRARY_PATH
13502 shlibpath_overrides_runpath=no
13503 hardcode_into_libs=yes
13504 ;;
13505
13506 uts4*)
13507 version_type=linux # correct to gnu/linux during the next big refactor
13508 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13509 soname_spec='$libname$release$shared_ext$major'
13510 shlibpath_var=LD_LIBRARY_PATH
13511 ;;
13512
13513 emscripten*)
13514 version_type=none
13515 need_lib_prefix=no
13516 need_version=no
13517 library_names_spec='$libname$release$shared_ext'
13518 soname_spec='$libname$release$shared_ext'
13519 finish_cmds=
13520 dynamic_linker="Emscripten linker"
13521 lt_prog_compiler_wl=
13522 lt_prog_compiler_pic=
13523 lt_prog_compiler_static=
13524
13525
13526 if test yes = "$GCC"; then
13527 lt_prog_compiler_wl='-Wl,'
13528 lt_prog_compiler_static='-static'
13529
13530 case $host_os in
13531 aix*)
13532 # All AIX code is PIC.
13533 if test ia64 = "$host_cpu"; then
13534 # AIX 5 now supports IA64 processor
13535 lt_prog_compiler_static='-Bstatic'
13536 fi
13537 lt_prog_compiler_pic='-fPIC'
13538 ;;
13539
13540 amigaos*)
13541 case $host_cpu in
13542 powerpc)
13543 # see comment about AmigaOS4 .so support
13544 lt_prog_compiler_pic='-fPIC'
13545 ;;
13546 m68k)
13547 # FIXME: we need at least 68020 code to build shared libraries, but
13548 # adding the '-m68020' flag to GCC prevents building anything better,
13549 # like '-m68040'.
13550 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13551 ;;
13552 esac
13553 ;;
13554
13555 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13556 # PIC is the default for these OSes.
13557 ;;
13558
13559 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
13560 # This hack is so that the source file can tell whether it is being
13561 # built for inclusion in a dll (and should export symbols for example).
13562 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13563 # (--disable-auto-import) libraries
13564 lt_prog_compiler_pic='-DDLL_EXPORT'
13565 case $host_os in
13566 os2*)
13567 lt_prog_compiler_static='$wl-static'
13568 ;;
13569 esac
13570 ;;
13571
13572 darwin* | rhapsody*)
13573 # PIC is the default on this platform
13574 # Common symbols not allowed in MH_DYLIB files
13575 lt_prog_compiler_pic='-fno-common'
13576 ;;
13577
13578 haiku*)
13579 # PIC is the default for Haiku.
13580 # The "-static" flag exists, but is broken.
13581 lt_prog_compiler_static=
13582 ;;
13583
13584 hpux*)
13585 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13586 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13587 # sets the default TLS model and affects inlining.
13588 case $host_cpu in
13589 hppa*64*)
13590 # +Z the default
13591 ;;
13592 *)
13593 lt_prog_compiler_pic='-fPIC'
13594 ;;
13595 esac
13596 ;;
13597
13598 interix[3-9]*)
13599 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13600 # Instead, we relocate shared libraries at runtime.
13601 ;;
13602
13603 msdosdjgpp*)
13604 # Just because we use GCC doesn't mean we suddenly get shared libraries
13605 # on systems that don't support them.
13606 lt_prog_compiler_can_build_shared=no
13607 enable_shared=no
13608 ;;
13609
13610 *nto* | *qnx*)
13611 # QNX uses GNU C++, but need to define -shared option too, otherwise
13612 # it will coredump.
13613 lt_prog_compiler_pic='-fPIC -shared'
13614 ;;
13615
13616 sysv4*MP*)
13617 if test -d /usr/nec; then
13618 lt_prog_compiler_pic=-Kconform_pic
13619 fi
13620 ;;
13621
13622 *)
13623 lt_prog_compiler_pic='-fPIC'
13624 ;;
13625 esac
13626
13627 case $cc_basename in
13628 nvcc*) # Cuda Compiler Driver 2.2
13629 lt_prog_compiler_wl='-Xlinker '
13630 if test -n "$lt_prog_compiler_pic"; then
13631 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
13632 fi
13633 ;;
13634 esac
13635 else
13636 # PORTME Check for flag to pass linker flags through the system compiler.
13637 case $host_os in
13638 aix*)
13639 lt_prog_compiler_wl='-Wl,'
13640 if test ia64 = "$host_cpu"; then
13641 # AIX 5 now supports IA64 processor
13642 lt_prog_compiler_static='-Bstatic'
13643 else
13644 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13645 fi
13646 ;;
13647
13648 darwin* | rhapsody*)
13649 # PIC is the default on this platform
13650 # Common symbols not allowed in MH_DYLIB files
13651 lt_prog_compiler_pic='-fno-common'
13652 case $cc_basename in
13653 nagfor*)
13654 # NAG Fortran compiler
13655 lt_prog_compiler_wl='-Wl,-Wl,,'
13656 lt_prog_compiler_pic='-PIC'
13657 lt_prog_compiler_static='-Bstatic'
13658 ;;
13659 esac
13660 ;;
13661
13662 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
13663 # This hack is so that the source file can tell whether it is being
13664 # built for inclusion in a dll (and should export symbols for example).
13665 lt_prog_compiler_pic='-DDLL_EXPORT'
13666 case $host_os in
13667 os2*)
13668 lt_prog_compiler_static='$wl-static'
13669 ;;
13670 esac
13671 ;;
13672
13673 hpux9* | hpux10* | hpux11*)
13674 lt_prog_compiler_wl='-Wl,'
13675 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13676 # not for PA HP-UX.
13677 case $host_cpu in
13678 hppa*64*|ia64*)
13679 # +Z the default
13680 ;;
13681 *)
13682 lt_prog_compiler_pic='+Z'
13683 ;;
13684 esac
13685 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13686 lt_prog_compiler_static='$wl-a ${wl}archive'
13687 ;;
13688
13689 irix5* | irix6* | nonstopux*)
13690 lt_prog_compiler_wl='-Wl,'
13691 # PIC (with -KPIC) is the default.
13692 lt_prog_compiler_static='-non_shared'
13693 ;;
13694
13695 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13696 case $cc_basename in
13697 # old Intel for x86_64, which still supported -KPIC.
13698 ecc*)
13699 lt_prog_compiler_wl='-Wl,'
13700 lt_prog_compiler_pic='-KPIC'
13701 lt_prog_compiler_static='-static'
13702 ;;
13703 *flang* | ftn | f18* | f95*)
13704 # Flang compiler.
13705 lt_prog_compiler_wl='-Wl,'
13706 lt_prog_compiler_pic='-fPIC'
13707 lt_prog_compiler_static='-static'
13708 ;;
13709 # icc used to be incompatible with GCC.
13710 # ICC 10 doesn't accept -KPIC any more.
13711 icc* | ifort*)
13712 lt_prog_compiler_wl='-Wl,'
13713 lt_prog_compiler_pic='-fPIC'
13714 lt_prog_compiler_static='-static'
13715 ;;
13716 # Lahey Fortran 8.1.
13717 lf95*)
13718 lt_prog_compiler_wl='-Wl,'
13719 lt_prog_compiler_pic='--shared'
13720 lt_prog_compiler_static='--static'
13721 ;;
13722 nagfor*)
13723 # NAG Fortran compiler
13724 lt_prog_compiler_wl='-Wl,-Wl,,'
13725 lt_prog_compiler_pic='-PIC'
13726 lt_prog_compiler_static='-Bstatic'
13727 ;;
13728 tcc*)
13729 # Fabrice Bellard et al's Tiny C Compiler
13730 lt_prog_compiler_wl='-Wl,'
13731 lt_prog_compiler_pic='-fPIC'
13732 lt_prog_compiler_static='-static'
13733 ;;
13734 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
13735 # Portland Group compilers (*not* the Pentium gcc compiler,
13736 # which looks to be a dead project)
13737 lt_prog_compiler_wl='-Wl,'
13738 lt_prog_compiler_pic='-fpic'
13739 lt_prog_compiler_static='-Bstatic'
13740 ;;
13741 ccc*)
13742 lt_prog_compiler_wl='-Wl,'
13743 # All Alpha code is PIC.
13744 lt_prog_compiler_static='-non_shared'
13745 ;;
13746 xl* | bgxl* | bgf* | mpixl*)
13747 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
13748 lt_prog_compiler_wl='-Wl,'
13749 lt_prog_compiler_pic='-qpic'
13750 lt_prog_compiler_static='-qstaticlink'
13751 ;;
13752 *)
13753 case `$CC -V 2>&1 | $SED 5q` in
13754 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
13755 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13756 lt_prog_compiler_pic='-KPIC'
13757 lt_prog_compiler_static='-Bstatic'
13758 lt_prog_compiler_wl=''
13759 ;;
13760 *Sun\ F* | *Sun*Fortran*)
13761 lt_prog_compiler_pic='-KPIC'
13762 lt_prog_compiler_static='-Bstatic'
13763 lt_prog_compiler_wl='-Qoption ld '
13764 ;;
13765 *Sun\ C*)
13766 # Sun C 5.9
13767 lt_prog_compiler_pic='-KPIC'
13768 lt_prog_compiler_static='-Bstatic'
13769 lt_prog_compiler_wl='-Wl,'
13770 ;;
13771 *Intel*\ [CF]*Compiler*)
13772 lt_prog_compiler_wl='-Wl,'
13773 lt_prog_compiler_pic='-fPIC'
13774 lt_prog_compiler_static='-static'
13775 ;;
13776 *Portland\ Group*)
13777 lt_prog_compiler_wl='-Wl,'
13778 lt_prog_compiler_pic='-fpic'
13779 lt_prog_compiler_static='-Bstatic'
13780 ;;
13781 esac
13782 ;;
13783 esac
13784 ;;
13785
13786 newsos6)
13787 lt_prog_compiler_pic='-KPIC'
13788 lt_prog_compiler_static='-Bstatic'
13789 ;;
13790
13791 *-mlibc)
13792 lt_prog_compiler_wl='-Wl,'
13793 lt_prog_compiler_pic='-fPIC'
13794 lt_prog_compiler_static='-static'
13795 ;;
13796
13797 *nto* | *qnx*)
13798 # QNX uses GNU C++, but need to define -shared option too, otherwise
13799 # it will coredump.
13800 lt_prog_compiler_pic='-fPIC -shared'
13801 ;;
13802
13803 osf3* | osf4* | osf5*)
13804 lt_prog_compiler_wl='-Wl,'
13805 # All OSF/1 code is PIC.
13806 lt_prog_compiler_static='-non_shared'
13807 ;;
13808
13809 rdos*)
13810 lt_prog_compiler_static='-non_shared'
13811 ;;
13812
13813 serenity*)
13814 ;;
13815
13816 solaris*)
13817 lt_prog_compiler_pic='-KPIC'
13818 lt_prog_compiler_static='-Bstatic'
13819 case $cc_basename in
13820 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
13821 lt_prog_compiler_wl='-Qoption ld ';;
13822 *)
13823 lt_prog_compiler_wl='-Wl,';;
13824 esac
13825 ;;
13826
13827 sunos4*)
13828 lt_prog_compiler_wl='-Qoption ld '
13829 lt_prog_compiler_pic='-PIC'
13830 lt_prog_compiler_static='-Bstatic'
13831 ;;
13832
13833 sysv4 | sysv4.2uw2* | sysv4.3*)
13834 lt_prog_compiler_wl='-Wl,'
13835 lt_prog_compiler_pic='-KPIC'
13836 lt_prog_compiler_static='-Bstatic'
13837 ;;
13838
13839 sysv4*MP*)
13840 if test -d /usr/nec; then
13841 lt_prog_compiler_pic='-Kconform_pic'
13842 lt_prog_compiler_static='-Bstatic'
13843 fi
13844 ;;
13845
13846 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13847 lt_prog_compiler_wl='-Wl,'
13848 lt_prog_compiler_pic='-KPIC'
13849 lt_prog_compiler_static='-Bstatic'
13850 ;;
13851
13852 unicos*)
13853 lt_prog_compiler_wl='-Wl,'
13854 lt_prog_compiler_can_build_shared=no
13855 ;;
13856
13857 uts4*)
13858 lt_prog_compiler_pic='-pic'
13859 lt_prog_compiler_static='-Bstatic'
13860 ;;
13861
13862 *)
13863 lt_prog_compiler_can_build_shared=no
13864 ;;
13865 esac
13866 fi
13867
13868 case $host_os in
13869 # For platforms that do not support PIC, -DPIC is meaningless:
13870 *djgpp*)
13871 lt_prog_compiler_pic=
13872 ;;
13873 *)
13874 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13875 ;;
13876 esac
13877
13878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13879 printf %s "checking for $compiler option to produce PIC... " >&6; }
13880 if test ${lt_cv_prog_compiler_pic+y}
13881 then :
13882 printf %s "(cached) " >&6
13883 else case e in #(
13884 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
13885 esac
13886 fi
13887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13888 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
13889 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
13890
13891 #
13892 # Check to make sure the PIC flag actually works.
13893 #
13894 if test -n "$lt_prog_compiler_pic"; then
13895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13896 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
13897 if test ${lt_cv_prog_compiler_pic_works+y}
13898 then :
13899 printf %s "(cached) " >&6
13900 else case e in #(
13901 e) lt_cv_prog_compiler_pic_works=no
13902 ac_outfile=conftest.$ac_objext
13903 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13904 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
13905 # Insert the option either (1) after the last *FLAGS variable, or
13906 # (2) before a word containing "conftest.", or (3) at the end.
13907 # Note that $ac_compile itself does not contain backslashes and begins
13908 # with a dollar sign (not a hyphen), so the echo should work correctly.
13909 # The option is referenced via a variable to avoid confusing sed.
13910 lt_compile=`echo "$ac_compile" | $SED \
13911 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13912 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13913 -e 's:$: $lt_compiler_flag:'`
13914 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13915 (eval "$lt_compile" 2>conftest.err)
13916 ac_status=$?
13917 cat conftest.err >&5
13918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13919 if (exit $ac_status) && test -s "$ac_outfile"; then
13920 # The compiler can only warn and ignore the option if not recognized
13921 # So say no if there are warnings other than the usual output.
13922 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13923 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13924 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13925 lt_cv_prog_compiler_pic_works=yes
13926 fi
13927 fi
13928 $RM conftest*
13929 ;;
13930 esac
13931 fi
13932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13933 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
13934
13935 if test yes = "$lt_cv_prog_compiler_pic_works"; then
13936 case $lt_prog_compiler_pic in
13937 "" | " "*) ;;
13938 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13939 esac
13940 else
13941 lt_prog_compiler_pic=
13942 lt_prog_compiler_can_build_shared=no
13943 fi
13944
13945 fi
13946
13947
13948
13949
13950
13951 #
13952 # Check to make sure the static flag actually works.
13953 #
13954 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13956 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13957 if test ${lt_cv_prog_compiler_static_works+y}
13958 then :
13959 printf %s "(cached) " >&6
13960 else case e in #(
13961 e) lt_cv_prog_compiler_static_works=no
13962 save_LDFLAGS=$LDFLAGS
13963 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13964 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13965 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13966 # The linker can only warn and ignore the option if not recognized
13967 # So say no if there are warnings
13968 if test -s conftest.err; then
13969 # Append any errors to the config.log.
13970 cat conftest.err 1>&5
13971 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13972 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13973 if diff conftest.exp conftest.er2 >/dev/null; then
13974 lt_cv_prog_compiler_static_works=yes
13975 fi
13976 else
13977 lt_cv_prog_compiler_static_works=yes
13978 fi
13979 fi
13980 $RM -r conftest*
13981 LDFLAGS=$save_LDFLAGS
13982 ;;
13983 esac
13984 fi
13985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13986 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
13987
13988 if test yes = "$lt_cv_prog_compiler_static_works"; then
13989 :
13990 else
13991 lt_prog_compiler_static=
13992 fi
13993
13994
13995
13996 ='-fPIC'
13997 archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
13998 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'
13999 archive_cmds_need_lc=no
14000 no_undefined_flag=
14001 ;;
14002
14003 *)
14004 dynamic_linker=no
14005 ;;
14006 esac
14007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14008 printf "%s\n" "$dynamic_linker" >&6; }
14009 test no = "$dynamic_linker" && can_build_shared=no
14010
14011 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14012 if test yes = "$GCC"; then
14013 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14014 fi
14015
14016 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14017 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
14018 fi
14019
14020 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14021 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
14022 fi
14023
14024 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14025 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14026
14027 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14028 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14029
14030 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14031 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
14032
14033
14034
14035
14036
14037
14038
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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14130 printf %s "checking how to hardcode library paths into programs... " >&6; }
14131 hardcode_action=
14132 if test -n "$hardcode_libdir_flag_spec" ||
14133 test -n "$runpath_var" ||
14134 test yes = "$hardcode_automatic"; then
14135
14136 # We can hardcode non-existent directories.
14137 if test no != "$hardcode_direct" &&
14138 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14139 # have to relink, otherwise we might link with an installed library
14140 # when we should be linking with a yet-to-be-installed one
14141 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
14142 test no != "$hardcode_minus_L"; then
14143 # Linking always hardcodes the temporary library directory.
14144 hardcode_action=relink
14145 else
14146 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14147 hardcode_action=immediate
14148 fi
14149 else
14150 # We cannot hardcode anything, or else we can only hardcode existing
14151 # directories.
14152 hardcode_action=unsupported
14153 fi
14154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14155 printf "%s\n" "$hardcode_action" >&6; }
14156
14157 if test relink = "$hardcode_action" ||
14158 test yes = "$inherit_rpath"; then
14159 # Fast installation is not supported
14160 enable_fast_install=no
14161 elif test yes = "$shlibpath_overrides_runpath" ||
14162 test no = "$enable_shared"; then
14163 # Fast installation is not necessary
14164 enable_fast_install=needless
14165 fi
14166
14167
14168
14169
14170
14171
14172 if test yes != "$enable_dlopen"; then
14173 enable_dlopen=unknown
14174 enable_dlopen_self=unknown
14175 enable_dlopen_self_static=unknown
14176 else
14177 lt_cv_dlopen=no
14178 lt_cv_dlopen_libs=
14179
14180 case $host_os in
14181 beos*)
14182 lt_cv_dlopen=load_add_on
14183 lt_cv_dlopen_libs=
14184 lt_cv_dlopen_self=yes
14185 ;;
14186
14187 mingw* | windows* | pw32* | cegcc*)
14188 lt_cv_dlopen=LoadLibrary
14189 lt_cv_dlopen_libs=
14190 ;;
14191
14192 cygwin*)
14193 lt_cv_dlopen=dlopen
14194 lt_cv_dlopen_libs=
14195 ;;
14196
14197 darwin*)
14198 # if libdl is installed we need to link against it
14199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14200 printf %s "checking for dlopen in -ldl... " >&6; }
14201 if test ${ac_cv_lib_dl_dlopen+y}
14202 then :
14203 printf %s "(cached) " >&6
14204 else case e in #(
14205 e) ac_check_lib_save_LIBS=$LIBS
14206 LIBS="-ldl $LIBS"
14207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14208 /* end confdefs.h. */
14209
14210 /* Override any GCC internal prototype to avoid an error.
14211 Use char because int might match the return type of a GCC
14212 builtin and then its argument prototype would still apply.
14213 The 'extern "C"' is for builds by C++ compilers;
14214 although this is not generally supported in C code supporting it here
14215 has little cost and some practical benefit (sr 110532). */
14216 #ifdef __cplusplus
14217 extern "C"
14218 #endif
14219 char dlopen (void);
14220 int
14221 main (void)
14222 {
14223 return dlopen ();
14224 ;
14225 return 0;
14226 }
14227 _ACEOF
14228 if ac_fn_c_try_link "$LINENO"
14229 then :
14230 ac_cv_lib_dl_dlopen=yes
14231 else case e in #(
14232 e) ac_cv_lib_dl_dlopen=no ;;
14233 esac
14234 fi
14235 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14236 conftest$ac_exeext conftest.$ac_ext
14237 LIBS=$ac_check_lib_save_LIBS ;;
14238 esac
14239 fi
14240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14241 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
14242 if test "x$ac_cv_lib_dl_dlopen" = xyes
14243 then :
14244 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14245 else case e in #(
14246 e)
14247 lt_cv_dlopen=dyld
14248 lt_cv_dlopen_libs=
14249 lt_cv_dlopen_self=yes
14250 ;;
14251 esac
14252 fi
14253
14254 ;;
14255
14256 tpf*)
14257 # Don't try to run any link tests for TPF. We know it's impossible
14258 # because TPF is a cross-compiler, and we know how we open DSOs.
14259 lt_cv_dlopen=dlopen
14260 lt_cv_dlopen_libs=
14261 lt_cv_dlopen_self=no
14262 ;;
14263
14264 *)
14265 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14266 if test "x$ac_cv_func_shl_load" = xyes
14267 then :
14268 lt_cv_dlopen=shl_load
14269 else case e in #(
14270 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14271 printf %s "checking for shl_load in -ldld... " >&6; }
14272 if test ${ac_cv_lib_dld_shl_load+y}
14273 then :
14274 printf %s "(cached) " >&6
14275 else case e in #(
14276 e) ac_check_lib_save_LIBS=$LIBS
14277 LIBS="-ldld $LIBS"
14278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14279 /* end confdefs.h. */
14280
14281 /* Override any GCC internal prototype to avoid an error.
14282 Use char because int might match the return type of a GCC
14283 builtin and then its argument prototype would still apply.
14284 The 'extern "C"' is for builds by C++ compilers;
14285 although this is not generally supported in C code supporting it here
14286 has little cost and some practical benefit (sr 110532). */
14287 #ifdef __cplusplus
14288 extern "C"
14289 #endif
14290 char shl_load (void);
14291 int
14292 main (void)
14293 {
14294 return shl_load ();
14295 ;
14296 return 0;
14297 }
14298 _ACEOF
14299 if ac_fn_c_try_link "$LINENO"
14300 then :
14301 ac_cv_lib_dld_shl_load=yes
14302 else case e in #(
14303 e) ac_cv_lib_dld_shl_load=no ;;
14304 esac
14305 fi
14306 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14307 conftest$ac_exeext conftest.$ac_ext
14308 LIBS=$ac_check_lib_save_LIBS ;;
14309 esac
14310 fi
14311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14312 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
14313 if test "x$ac_cv_lib_dld_shl_load" = xyes
14314 then :
14315 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
14316 else case e in #(
14317 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14318 if test "x$ac_cv_func_dlopen" = xyes
14319 then :
14320 lt_cv_dlopen=dlopen
14321 else case e in #(
14322 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14323 printf %s "checking for dlopen in -ldl... " >&6; }
14324 if test ${ac_cv_lib_dl_dlopen+y}
14325 then :
14326 printf %s "(cached) " >&6
14327 else case e in #(
14328 e) ac_check_lib_save_LIBS=$LIBS
14329 LIBS="-ldl $LIBS"
14330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14331 /* end confdefs.h. */
14332
14333 /* Override any GCC internal prototype to avoid an error.
14334 Use char because int might match the return type of a GCC
14335 builtin and then its argument prototype would still apply.
14336 The 'extern "C"' is for builds by C++ compilers;
14337 although this is not generally supported in C code supporting it here
14338 has little cost and some practical benefit (sr 110532). */
14339 #ifdef __cplusplus
14340 extern "C"
14341 #endif
14342 char dlopen (void);
14343 int
14344 main (void)
14345 {
14346 return dlopen ();
14347 ;
14348 return 0;
14349 }
14350 _ACEOF
14351 if ac_fn_c_try_link "$LINENO"
14352 then :
14353 ac_cv_lib_dl_dlopen=yes
14354 else case e in #(
14355 e) ac_cv_lib_dl_dlopen=no ;;
14356 esac
14357 fi
14358 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14359 conftest$ac_exeext conftest.$ac_ext
14360 LIBS=$ac_check_lib_save_LIBS ;;
14361 esac
14362 fi
14363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14364 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
14365 if test "x$ac_cv_lib_dl_dlopen" = xyes
14366 then :
14367 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14368 else case e in #(
14369 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14370 printf %s "checking for dlopen in -lsvld... " >&6; }
14371 if test ${ac_cv_lib_svld_dlopen+y}
14372 then :
14373 printf %s "(cached) " >&6
14374 else case e in #(
14375 e) ac_check_lib_save_LIBS=$LIBS
14376 LIBS="-lsvld $LIBS"
14377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14378 /* end confdefs.h. */
14379
14380 /* Override any GCC internal prototype to avoid an error.
14381 Use char because int might match the return type of a GCC
14382 builtin and then its argument prototype would still apply.
14383 The 'extern "C"' is for builds by C++ compilers;
14384 although this is not generally supported in C code supporting it here
14385 has little cost and some practical benefit (sr 110532). */
14386 #ifdef __cplusplus
14387 extern "C"
14388 #endif
14389 char dlopen (void);
14390 int
14391 main (void)
14392 {
14393 return dlopen ();
14394 ;
14395 return 0;
14396 }
14397 _ACEOF
14398 if ac_fn_c_try_link "$LINENO"
14399 then :
14400 ac_cv_lib_svld_dlopen=yes
14401 else case e in #(
14402 e) ac_cv_lib_svld_dlopen=no ;;
14403 esac
14404 fi
14405 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14406 conftest$ac_exeext conftest.$ac_ext
14407 LIBS=$ac_check_lib_save_LIBS ;;
14408 esac
14409 fi
14410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14411 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
14412 if test "x$ac_cv_lib_svld_dlopen" = xyes
14413 then :
14414 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
14415 else case e in #(
14416 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14417 printf %s "checking for dld_link in -ldld... " >&6; }
14418 if test ${ac_cv_lib_dld_dld_link+y}
14419 then :
14420 printf %s "(cached) " >&6
14421 else case e in #(
14422 e) ac_check_lib_save_LIBS=$LIBS
14423 LIBS="-ldld $LIBS"
14424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14425 /* end confdefs.h. */
14426
14427 /* Override any GCC internal prototype to avoid an error.
14428 Use char because int might match the return type of a GCC
14429 builtin and then its argument prototype would still apply.
14430 The 'extern "C"' is for builds by C++ compilers;
14431 although this is not generally supported in C code supporting it here
14432 has little cost and some practical benefit (sr 110532). */
14433 #ifdef __cplusplus
14434 extern "C"
14435 #endif
14436 char dld_link (void);
14437 int
14438 main (void)
14439 {
14440 return dld_link ();
14441 ;
14442 return 0;
14443 }
14444 _ACEOF
14445 if ac_fn_c_try_link "$LINENO"
14446 then :
14447 ac_cv_lib_dld_dld_link=yes
14448 else case e in #(
14449 e) ac_cv_lib_dld_dld_link=no ;;
14450 esac
14451 fi
14452 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14453 conftest$ac_exeext conftest.$ac_ext
14454 LIBS=$ac_check_lib_save_LIBS ;;
14455 esac
14456 fi
14457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14458 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
14459 if test "x$ac_cv_lib_dld_dld_link" = xyes
14460 then :
14461 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
14462 fi
14463
14464 ;;
14465 esac
14466 fi
14467
14468 ;;
14469 esac
14470 fi
14471
14472 ;;
14473 esac
14474 fi
14475
14476 ;;
14477 esac
14478 fi
14479
14480 ;;
14481 esac
14482 fi
14483
14484 ;;
14485 esac
14486
14487 if test no = "$lt_cv_dlopen"; then
14488 enable_dlopen=no
14489 else
14490 enable_dlopen=yes
14491 fi
14492
14493 case $lt_cv_dlopen in
14494 dlopen)
14495 save_CPPFLAGS=$CPPFLAGS
14496 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14497
14498 save_LDFLAGS=$LDFLAGS
14499 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14500
14501 save_LIBS=$LIBS
14502 LIBS="$lt_cv_dlopen_libs $LIBS"
14503
14504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14505 printf %s "checking whether a program can dlopen itself... " >&6; }
14506 if test ${lt_cv_dlopen_self+y}
14507 then :
14508 printf %s "(cached) " >&6
14509 else case e in #(
14510 e) if test yes = "$cross_compiling"; then :
14511 lt_cv_dlopen_self=cross
14512 else
14513 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14514 lt_status=$lt_dlunknown
14515 cat > conftest.$ac_ext <<_LT_EOF
14516 #line $LINENO "configure"
14517 #include "confdefs.h"
14518
14519 #if HAVE_DLFCN_H
14520 #include <dlfcn.h>
14521 #endif
14522
14523 #include <stdio.h>
14524
14525 #ifdef RTLD_GLOBAL
14526 # define LT_DLGLOBAL RTLD_GLOBAL
14527 #else
14528 # ifdef DL_GLOBAL
14529 # define LT_DLGLOBAL DL_GLOBAL
14530 # else
14531 # define LT_DLGLOBAL 0
14532 # endif
14533 #endif
14534
14535 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14536 find out it does not work in some platform. */
14537 #ifndef LT_DLLAZY_OR_NOW
14538 # ifdef RTLD_LAZY
14539 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14540 # else
14541 # ifdef DL_LAZY
14542 # define LT_DLLAZY_OR_NOW DL_LAZY
14543 # else
14544 # ifdef RTLD_NOW
14545 # define LT_DLLAZY_OR_NOW RTLD_NOW
14546 # else
14547 # ifdef DL_NOW
14548 # define LT_DLLAZY_OR_NOW DL_NOW
14549 # else
14550 # define LT_DLLAZY_OR_NOW 0
14551 # endif
14552 # endif
14553 # endif
14554 # endif
14555 #endif
14556
14557 /* When -fvisibility=hidden is used, assume the code has been annotated
14558 correspondingly for the symbols needed. */
14559 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14560 int fnord (void) __attribute__((visibility("default")));
14561 #endif
14562
14563 int fnord (void) { return 42; }
14564 int main (void)
14565 {
14566 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14567 int status = $lt_dlunknown;
14568
14569 if (self)
14570 {
14571 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14572 else
14573 {
14574 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14575 else puts (dlerror ());
14576 }
14577 /* dlclose (self); */
14578 }
14579 else
14580 puts (dlerror ());
14581
14582 return status;
14583 }
14584 _LT_EOF
14585 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14586 (eval $ac_link) 2>&5
14587 ac_status=$?
14588 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14589 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14590 (./conftest; exit; ) >&5 2>/dev/null
14591 lt_status=$?
14592 case x$lt_status in
14593 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14594 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14595 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14596 esac
14597 else :
14598 # compilation failed
14599 lt_cv_dlopen_self=no
14600 fi
14601 fi
14602 rm -fr conftest*
14603
14604 ;;
14605 esac
14606 fi
14607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14608 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
14609
14610 if test yes = "$lt_cv_dlopen_self"; then
14611 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14613 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
14614 if test ${lt_cv_dlopen_self_static+y}
14615 then :
14616 printf %s "(cached) " >&6
14617 else case e in #(
14618 e) if test yes = "$cross_compiling"; then :
14619 lt_cv_dlopen_self_static=cross
14620 else
14621 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14622 lt_status=$lt_dlunknown
14623 cat > conftest.$ac_ext <<_LT_EOF
14624 #line $LINENO "configure"
14625 #include "confdefs.h"
14626
14627 #if HAVE_DLFCN_H
14628 #include <dlfcn.h>
14629 #endif
14630
14631 #include <stdio.h>
14632
14633 #ifdef RTLD_GLOBAL
14634 # define LT_DLGLOBAL RTLD_GLOBAL
14635 #else
14636 # ifdef DL_GLOBAL
14637 # define LT_DLGLOBAL DL_GLOBAL
14638 # else
14639 # define LT_DLGLOBAL 0
14640 # endif
14641 #endif
14642
14643 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14644 find out it does not work in some platform. */
14645 #ifndef LT_DLLAZY_OR_NOW
14646 # ifdef RTLD_LAZY
14647 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14648 # else
14649 # ifdef DL_LAZY
14650 # define LT_DLLAZY_OR_NOW DL_LAZY
14651 # else
14652 # ifdef RTLD_NOW
14653 # define LT_DLLAZY_OR_NOW RTLD_NOW
14654 # else
14655 # ifdef DL_NOW
14656 # define LT_DLLAZY_OR_NOW DL_NOW
14657 # else
14658 # define LT_DLLAZY_OR_NOW 0
14659 # endif
14660 # endif
14661 # endif
14662 # endif
14663 #endif
14664
14665 /* When -fvisibility=hidden is used, assume the code has been annotated
14666 correspondingly for the symbols needed. */
14667 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14668 int fnord (void) __attribute__((visibility("default")));
14669 #endif
14670
14671 int fnord (void) { return 42; }
14672 int main (void)
14673 {
14674 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14675 int status = $lt_dlunknown;
14676
14677 if (self)
14678 {
14679 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14680 else
14681 {
14682 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14683 else puts (dlerror ());
14684 }
14685 /* dlclose (self); */
14686 }
14687 else
14688 puts (dlerror ());
14689
14690 return status;
14691 }
14692 _LT_EOF
14693 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14694 (eval $ac_link) 2>&5
14695 ac_status=$?
14696 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14697 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14698 (./conftest; exit; ) >&5 2>/dev/null
14699 lt_status=$?
14700 case x$lt_status in
14701 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14702 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14703 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14704 esac
14705 else :
14706 # compilation failed
14707 lt_cv_dlopen_self_static=no
14708 fi
14709 fi
14710 rm -fr conftest*
14711
14712 ;;
14713 esac
14714 fi
14715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14716 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
14717 fi
14718
14719 CPPFLAGS=$save_CPPFLAGS
14720 LDFLAGS=$save_LDFLAGS
14721 LIBS=$save_LIBS
14722 ;;
14723 esac
14724
14725 case $lt_cv_dlopen_self in
14726 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14727 *) enable_dlopen_self=unknown ;;
14728 esac
14729
14730 case $lt_cv_dlopen_self_static in
14731 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14732 *) enable_dlopen_self_static=unknown ;;
14733 esac
14734 fi
14735
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745
14746
14747
14748
14749
14750
14751
14752 striplib=
14753 old_striplib=
14754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14755 printf %s "checking whether stripping libraries is possible... " >&6; }
14756 if test -z "$STRIP"; then
14757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14758 printf "%s\n" "no" >&6; }
14759 else
14760 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14761 old_striplib="$STRIP --strip-debug"
14762 striplib="$STRIP --strip-unneeded"
14763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14764 printf "%s\n" "yes" >&6; }
14765 else
14766 case $host_os in
14767 darwin*)
14768 # FIXME - insert some real tests, host_os isn't really good enough
14769 striplib="$STRIP -x"
14770 old_striplib="$STRIP -S"
14771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14772 printf "%s\n" "yes" >&6; }
14773 ;;
14774 freebsd*)
14775 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
14776 old_striplib="$STRIP --strip-debug"
14777 striplib="$STRIP --strip-unneeded"
14778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14779 printf "%s\n" "yes" >&6; }
14780 else
14781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14782 printf "%s\n" "no" >&6; }
14783 fi
14784 ;;
14785 *)
14786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14787 printf "%s\n" "no" >&6; }
14788 ;;
14789 esac
14790 fi
14791 fi
14792
14793
14794
14795
14796
14797
14798
14799
14800
14801
14802
14803
14804 # Report what library types will actually be built
14805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14806 printf %s "checking if libtool supports shared libraries... " >&6; }
14807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14808 printf "%s\n" "$can_build_shared" >&6; }
14809
14810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14811 printf %s "checking whether to build shared libraries... " >&6; }
14812 test no = "$can_build_shared" && enable_shared=no
14813
14814 # On AIX, shared libraries and static libraries use the same namespace, and
14815 # are all built from PIC.
14816 case $host_os in
14817 aix3*)
14818 test yes = "$enable_shared" && enable_static=no
14819 if test -n "$RANLIB"; then
14820 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14821 postinstall_cmds='$RANLIB $lib'
14822 fi
14823 ;;
14824
14825 aix[4-9]*)
14826 if test ia64 != "$host_cpu"; then
14827 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14828 yes,aix,yes) ;; # shared object as lib.so file only
14829 yes,svr4,*) ;; # shared object as lib.so archive member only
14830 yes,*) enable_static=no ;; # shared object in lib.a archive as well
14831 esac
14832 fi
14833 ;;
14834 esac
14835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14836 printf "%s\n" "$enable_shared" >&6; }
14837
14838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14839 printf %s "checking whether to build static libraries... " >&6; }
14840 # Make sure either enable_shared or enable_static is yes.
14841 test yes = "$enable_shared" || enable_static=yes
14842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14843 printf "%s\n" "$enable_static" >&6; }
14844
14845
14846
14847
14848 fi
14849 ac_ext=c
14850 ac_cpp='$CPP $CPPFLAGS'
14851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14854
14855 CC=$lt_save_CC
14856
14857
14858
14859
14860
14861
14862
14863
14864
14865
14866
14867
14868
14869
14870
14871 ac_config_commands="$ac_config_commands libtool"
14872
14873
14874
14875
14876 # Only expand once:
14877
14878
14879 # (end lt_init)
14880 # Check whether --enable-largefile was given.
14881 if test ${enable_largefile+y}
14882 then :
14883 enableval=$enable_largefile;
14884 fi
14885 if test "$enable_largefile,$enable_year2038" != no,no
14886 then :
14887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5
14888 printf %s "checking for $CC option to enable large file support... " >&6; }
14889 if test ${ac_cv_sys_largefile_opts+y}
14890 then :
14891 printf %s "(cached) " >&6
14892 else case e in #(
14893 e) ac_save_CC="$CC"
14894 ac_opt_found=no
14895 for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do
14896 if test x"$ac_opt" != x"none needed"
14897 then :
14898 CC="$ac_save_CC $ac_opt"
14899 fi
14900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14901 /* end confdefs.h. */
14902 #include <sys/types.h>
14903 #ifndef FTYPE
14904 # define FTYPE off_t
14905 #endif
14906 /* Check that FTYPE can represent 2**63 - 1 correctly.
14907 We can't simply define LARGE_FTYPE to be 9223372036854775807,
14908 since some C++ compilers masquerading as C compilers
14909 incorrectly reject 9223372036854775807. */
14910 #define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31))
14911 int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721
14912 && LARGE_FTYPE % 2147483647 == 1)
14913 ? 1 : -1];
14914 int
14915 main (void)
14916 {
14917
14918 ;
14919 return 0;
14920 }
14921 _ACEOF
14922 if ac_fn_c_try_compile "$LINENO"
14923 then :
14924 if test x"$ac_opt" = x"none needed"
14925 then :
14926 # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t.
14927 CC="$CC -DFTYPE=ino_t"
14928 if ac_fn_c_try_compile "$LINENO"
14929 then :
14930
14931 else case e in #(
14932 e) CC="$CC -D_FILE_OFFSET_BITS=64"
14933 if ac_fn_c_try_compile "$LINENO"
14934 then :
14935 ac_opt='-D_FILE_OFFSET_BITS=64'
14936 fi
14937 rm -f core conftest.err conftest.$ac_objext conftest.beam ;;
14938 esac
14939 fi
14940 rm -f core conftest.err conftest.$ac_objext conftest.beam
14941 fi
14942 ac_cv_sys_largefile_opts=$ac_opt
14943 ac_opt_found=yes
14944 fi
14945 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14946 test $ac_opt_found = no || break
14947 done
14948 CC="$ac_save_CC"
14949
14950 test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;;
14951 esac
14952 fi
14953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5
14954 printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; }
14955
14956 ac_have_largefile=yes
14957 case $ac_cv_sys_largefile_opts in #(
14958 "none needed") :
14959 ;; #(
14960 "supported through gnulib") :
14961 ;; #(
14962 "support not detected") :
14963 ac_have_largefile=no ;; #(
14964 "-D_FILE_OFFSET_BITS=64") :
14965
14966 printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
14967 ;; #(
14968 "-D_LARGE_FILES=1") :
14969
14970 printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h
14971 ;; #(
14972 "-n32") :
14973 CC="$CC -n32" ;; #(
14974 *) :
14975 as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;;
14976 esac
14977
14978 if test "$enable_year2038" != no
14979 then :
14980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option for timestamps after 2038" >&5
14981 printf %s "checking for $CC option for timestamps after 2038... " >&6; }
14982 if test ${ac_cv_sys_year2038_opts+y}
14983 then :
14984 printf %s "(cached) " >&6
14985 else case e in #(
14986 e) ac_save_CPPFLAGS="$CPPFLAGS"
14987 ac_opt_found=no
14988 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
14989 if test x"$ac_opt" != x"none needed"
14990 then :
14991 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
14992 fi
14993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14994 /* end confdefs.h. */
14995
14996 #include <time.h>
14997 /* Check that time_t can represent 2**32 - 1 correctly. */
14998 #define LARGE_TIME_T \\
14999 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
15000 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
15001 && LARGE_TIME_T % 65537 == 0)
15002 ? 1 : -1];
15003
15004 int
15005 main (void)
15006 {
15007
15008 ;
15009 return 0;
15010 }
15011 _ACEOF
15012 if ac_fn_c_try_compile "$LINENO"
15013 then :
15014 ac_cv_sys_year2038_opts="$ac_opt"
15015 ac_opt_found=yes
15016 fi
15017 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15018 test $ac_opt_found = no || break
15019 done
15020 CPPFLAGS="$ac_save_CPPFLAGS"
15021 test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;;
15022 esac
15023 fi
15024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5
15025 printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; }
15026
15027 ac_have_year2038=yes
15028 case $ac_cv_sys_year2038_opts in #(
15029 "none needed") :
15030 ;; #(
15031 "support not detected") :
15032 ac_have_year2038=no ;; #(
15033 "-D_TIME_BITS=64") :
15034
15035 printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h
15036 ;; #(
15037 "-D__MINGW_USE_VC2005_COMPAT") :
15038
15039 printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h
15040 ;; #(
15041 "-U_USE_32_BIT_TIME_T"*) :
15042 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
15043 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
15044 as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It
15045 will stop working after mid-January 2038. Remove
15046 _USE_32BIT_TIME_T from the compiler flags.
15047 See 'config.log' for more details" "$LINENO" 5; } ;; #(
15048 *) :
15049 as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;;
15050 esac
15051
15052 fi
15053
15054 fi
15055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for declarations of fseeko and ftello" >&5
15056 printf %s "checking for declarations of fseeko and ftello... " >&6; }
15057 if test ${ac_cv_func_fseeko_ftello+y}
15058 then :
15059 printf %s "(cached) " >&6
15060 else case e in #(
15061 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15062 /* end confdefs.h. */
15063
15064 #if defined __hpux && !defined _LARGEFILE_SOURCE
15065 # include <limits.h>
15066 # if LONG_MAX >> 31 == 0
15067 # error "32-bit HP-UX 11/ia64 needs _LARGEFILE_SOURCE for fseeko in C++"
15068 # endif
15069 #endif
15070 #include <sys/types.h> /* for off_t */
15071 #include <stdio.h>
15072
15073 int
15074 main (void)
15075 {
15076
15077 int (*fp1) (FILE *, off_t, int) = fseeko;
15078 off_t (*fp2) (FILE *) = ftello;
15079 return fseeko (stdin, 0, 0)
15080 && fp1 (stdin, 0, 0)
15081 && ftello (stdin) >= 0
15082 && fp2 (stdin) >= 0;
15083
15084 ;
15085 return 0;
15086 }
15087 _ACEOF
15088 if ac_fn_c_try_compile "$LINENO"
15089 then :
15090 ac_cv_func_fseeko_ftello=yes
15091 else case e in #(
15092 e) ac_save_CPPFLAGS="$CPPFLAGS"
15093 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE=1"
15094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15095 /* end confdefs.h. */
15096
15097 #if defined __hpux && !defined _LARGEFILE_SOURCE
15098 # include <limits.h>
15099 # if LONG_MAX >> 31 == 0
15100 # error "32-bit HP-UX 11/ia64 needs _LARGEFILE_SOURCE for fseeko in C++"
15101 # endif
15102 #endif
15103 #include <sys/types.h> /* for off_t */
15104 #include <stdio.h>
15105
15106 int
15107 main (void)
15108 {
15109
15110 int (*fp1) (FILE *, off_t, int) = fseeko;
15111 off_t (*fp2) (FILE *) = ftello;
15112 return fseeko (stdin, 0, 0)
15113 && fp1 (stdin, 0, 0)
15114 && ftello (stdin) >= 0
15115 && fp2 (stdin) >= 0;
15116
15117 ;
15118 return 0;
15119 }
15120 _ACEOF
15121 if ac_fn_c_try_compile "$LINENO"
15122 then :
15123 ac_cv_func_fseeko_ftello="need _LARGEFILE_SOURCE"
15124 else case e in #(
15125 e) ac_cv_func_fseeko_ftello=no ;;
15126 esac
15127 fi
15128 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15129 esac
15130 fi
15131 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15132 esac
15133 fi
15134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fseeko_ftello" >&5
15135 printf "%s\n" "$ac_cv_func_fseeko_ftello" >&6; }
15136 if test "$ac_cv_func_fseeko_ftello" != no
15137 then :
15138
15139 printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h
15140
15141 fi
15142 if test "$ac_cv_func_fseeko_ftello" = "need _LARGEFILE_SOURCE"
15143 then :
15144
15145 printf "%s\n" "#define _LARGEFILE_SOURCE 1" >>confdefs.h
15146
15147 fi
15148
15149 ac_header_dirent=no
15150 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15151 as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | sed "$as_sed_sh"`
15152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
15153 printf %s "checking for $ac_hdr that defines DIR... " >&6; }
15154 if eval test \${$as_ac_Header+y}
15155 then :
15156 printf %s "(cached) " >&6
15157 else case e in #(
15158 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15159 /* end confdefs.h. */
15160 #include <sys/types.h>
15161 #include <$ac_hdr>
15162
15163 int
15164 main (void)
15165 {
15166 if ((DIR *) 0)
15167 return 0;
15168 ;
15169 return 0;
15170 }
15171 _ACEOF
15172 if ac_fn_c_try_compile "$LINENO"
15173 then :
15174 eval "$as_ac_Header=yes"
15175 else case e in #(
15176 e) eval "$as_ac_Header=no" ;;
15177 esac
15178 fi
15179 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15180 esac
15181 fi
15182 eval ac_res=\$$as_ac_Header
15183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15184 printf "%s\n" "$ac_res" >&6; }
15185 if eval test \"x\$"$as_ac_Header"\" = x"yes"
15186 then :
15187 cat >>confdefs.h <<_ACEOF
15188 #define `printf "%s\n" "HAVE_$ac_hdr" | sed "$as_sed_cpp"` 1
15189 _ACEOF
15190
15191 ac_header_dirent=$ac_hdr; break
15192 fi
15193
15194 done
15195 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15196 if test $ac_header_dirent = dirent.h; then
15197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
15198 printf %s "checking for library containing opendir... " >&6; }
15199 if test ${ac_cv_search_opendir+y}
15200 then :
15201 printf %s "(cached) " >&6
15202 else case e in #(
15203 e) ac_func_search_save_LIBS=$LIBS
15204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15205 /* end confdefs.h. */
15206
15207 /* Override any GCC internal prototype to avoid an error.
15208 Use char because int might match the return type of a GCC
15209 builtin and then its argument prototype would still apply.
15210 The 'extern "C"' is for builds by C++ compilers;
15211 although this is not generally supported in C code supporting it here
15212 has little cost and some practical benefit (sr 110532). */
15213 #ifdef __cplusplus
15214 extern "C"
15215 #endif
15216 char opendir (void);
15217 int
15218 main (void)
15219 {
15220 return opendir ();
15221 ;
15222 return 0;
15223 }
15224 _ACEOF
15225 for ac_lib in '' dir
15226 do
15227 if test -z "$ac_lib"; then
15228 ac_res="none required"
15229 else
15230 ac_res=-l$ac_lib
15231 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15232 fi
15233 if ac_fn_c_try_link "$LINENO"
15234 then :
15235 ac_cv_search_opendir=$ac_res
15236 fi
15237 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15238 conftest$ac_exeext
15239 if test ${ac_cv_search_opendir+y}
15240 then :
15241 break
15242 fi
15243 done
15244 if test ${ac_cv_search_opendir+y}
15245 then :
15246
15247 else case e in #(
15248 e) ac_cv_search_opendir=no ;;
15249 esac
15250 fi
15251 rm conftest.$ac_ext
15252 LIBS=$ac_func_search_save_LIBS ;;
15253 esac
15254 fi
15255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15256 printf "%s\n" "$ac_cv_search_opendir" >&6; }
15257 ac_res=$ac_cv_search_opendir
15258 if test "$ac_res" != no
15259 then :
15260 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15261
15262 fi
15263
15264 else
15265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
15266 printf %s "checking for library containing opendir... " >&6; }
15267 if test ${ac_cv_search_opendir+y}
15268 then :
15269 printf %s "(cached) " >&6
15270 else case e in #(
15271 e) ac_func_search_save_LIBS=$LIBS
15272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15273 /* end confdefs.h. */
15274
15275 /* Override any GCC internal prototype to avoid an error.
15276 Use char because int might match the return type of a GCC
15277 builtin and then its argument prototype would still apply.
15278 The 'extern "C"' is for builds by C++ compilers;
15279 although this is not generally supported in C code supporting it here
15280 has little cost and some practical benefit (sr 110532). */
15281 #ifdef __cplusplus
15282 extern "C"
15283 #endif
15284 char opendir (void);
15285 int
15286 main (void)
15287 {
15288 return opendir ();
15289 ;
15290 return 0;
15291 }
15292 _ACEOF
15293 for ac_lib in '' x
15294 do
15295 if test -z "$ac_lib"; then
15296 ac_res="none required"
15297 else
15298 ac_res=-l$ac_lib
15299 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15300 fi
15301 if ac_fn_c_try_link "$LINENO"
15302 then :
15303 ac_cv_search_opendir=$ac_res
15304 fi
15305 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15306 conftest$ac_exeext
15307 if test ${ac_cv_search_opendir+y}
15308 then :
15309 break
15310 fi
15311 done
15312 if test ${ac_cv_search_opendir+y}
15313 then :
15314
15315 else case e in #(
15316 e) ac_cv_search_opendir=no ;;
15317 esac
15318 fi
15319 rm conftest.$ac_ext
15320 LIBS=$ac_func_search_save_LIBS ;;
15321 esac
15322 fi
15323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15324 printf "%s\n" "$ac_cv_search_opendir" >&6; }
15325 ac_res=$ac_cv_search_opendir
15326 if test "$ac_res" != no
15327 then :
15328 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15329
15330 fi
15331
15332 fi
15333
15334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
15335 printf %s "checking whether closedir returns void... " >&6; }
15336 if test ${ac_cv_func_closedir_void+y}
15337 then :
15338 printf %s "(cached) " >&6
15339 else case e in #(
15340 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15341 /* end confdefs.h. */
15342
15343 #include <$ac_header_dirent>
15344
15345 int
15346 main (void)
15347 {
15348
15349 return closedir(0);
15350
15351 ;
15352 return 0;
15353 }
15354 _ACEOF
15355 if ac_fn_c_try_compile "$LINENO"
15356 then :
15357 ac_cv_func_closedir_void=no
15358 else case e in #(
15359 e) ac_cv_func_closedir_void=yes ;;
15360 esac
15361 fi
15362 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15363 esac
15364 fi
15365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
15366 printf "%s\n" "$ac_cv_func_closedir_void" >&6; }
15367 if test $ac_cv_func_closedir_void = yes; then
15368
15369 printf "%s\n" "#define CLOSEDIR_VOID 1" >>confdefs.h
15370
15371 fi
15372
15373 ac_fn_c_check_header_compile "$LINENO" "assert.h" "ac_cv_header_assert_h" "$ac_includes_default"
15374 if test "x$ac_cv_header_assert_h" = xyes
15375 then :
15376 printf "%s\n" "#define HAVE_ASSERT_H 1" >>confdefs.h
15377
15378 fi
15379 ac_fn_c_check_header_compile "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
15380 if test "x$ac_cv_header_float_h" = xyes
15381 then :
15382 printf "%s\n" "#define HAVE_FLOAT_H 1" >>confdefs.h
15383
15384 fi
15385 ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
15386 if test "x$ac_cv_header_limits_h" = xyes
15387 then :
15388 printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
15389
15390 fi
15391 ac_fn_c_check_header_compile "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default"
15392 if test "x$ac_cv_header_pwd_h" = xyes
15393 then :
15394 printf "%s\n" "#define HAVE_PWD_H 1" >>confdefs.h
15395
15396 fi
15397 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
15398 if test "x$ac_cv_header_stdlib_h" = xyes
15399 then :
15400 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
15401
15402 fi
15403 ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
15404 if test "x$ac_cv_header_sys_param_h" = xyes
15405 then :
15406 printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
15407
15408 fi
15409
15410 ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
15411 if test "x$ac_cv_func_putenv" = xyes
15412 then :
15413 printf "%s\n" "#define HAVE_PUTENV 1" >>confdefs.h
15414
15415 fi
15416
15417 ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
15418 if test "x$ac_cv_func_getcwd" = xyes
15419 then :
15420 printf "%s\n" "#define HAVE_GETCWD 1" >>confdefs.h
15421
15422 fi
15423 ac_fn_c_check_func "$LINENO" "memcmp" "ac_cv_func_memcmp"
15424 if test "x$ac_cv_func_memcmp" = xyes
15425 then :
15426 printf "%s\n" "#define HAVE_MEMCMP 1" >>confdefs.h
15427
15428 fi
15429 ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
15430 if test "x$ac_cv_func_memcpy" = xyes
15431 then :
15432 printf "%s\n" "#define HAVE_MEMCPY 1" >>confdefs.h
15433
15434 fi
15435 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
15436 if test "x$ac_cv_func_mkstemp" = xyes
15437 then :
15438 printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h
15439
15440 fi
15441 ac_fn_c_check_func "$LINENO" "mktemp" "ac_cv_func_mktemp"
15442 if test "x$ac_cv_func_mktemp" = xyes
15443 then :
15444 printf "%s\n" "#define HAVE_MKTEMP 1" >>confdefs.h
15445
15446 fi
15447 ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
15448 if test "x$ac_cv_func_strchr" = xyes
15449 then :
15450 printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
15451
15452 fi
15453 ac_fn_c_check_func "$LINENO" "strrchr" "ac_cv_func_strrchr"
15454 if test "x$ac_cv_func_strrchr" = xyes
15455 then :
15456 printf "%s\n" "#define HAVE_STRRCHR 1" >>confdefs.h
15457
15458 fi
15459
15460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
15461 printf %s "checking for an ANSI C-conforming const... " >&6; }
15462 if test ${ac_cv_c_const+y}
15463 then :
15464 printf %s "(cached) " >&6
15465 else case e in #(
15466 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15467 /* end confdefs.h. */
15468
15469 int
15470 main (void)
15471 {
15472
15473 #ifndef __cplusplus
15474 /* Ultrix mips cc rejects this sort of thing. */
15475 typedef int charset[2];
15476 const charset cs = { 0, 0 };
15477 /* SunOS 4.1.1 cc rejects this. */
15478 char const *const *pcpcc;
15479 char **ppc;
15480 /* NEC SVR4.0.2 mips cc rejects this. */
15481 struct point {int x, y;};
15482 static struct point const zero = {0,0};
15483 /* IBM XL C 1.02.0.0 rejects this.
15484 It does not let you subtract one const X* pointer from another in
15485 an arm of an if-expression whose if-part is not a constant
15486 expression */
15487 const char *g = "string";
15488 pcpcc = &g + (g ? g-g : 0);
15489 /* HPUX 7.0 cc rejects these. */
15490 ++pcpcc;
15491 ppc = (char**) pcpcc;
15492 pcpcc = (char const *const *) ppc;
15493 { /* SCO 3.2v4 cc rejects this sort of thing. */
15494 char tx;
15495 char *t = &tx;
15496 char const *s = 0 ? (char *) 0 : (char const *) 0;
15497
15498 *t++ = 0;
15499 if (s) return 0;
15500 }
15501 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15502 int x[] = {25, 17};
15503 const int *foo = &x[0];
15504 ++foo;
15505 }
15506 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15507 typedef const int *iptr;
15508 iptr p = 0;
15509 ++p;
15510 }
15511 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
15512 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15513 struct s { int j; const int *ap[3]; } bx;
15514 struct s *b = &bx; b->j = 5;
15515 }
15516 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15517 const int foo = 10;
15518 if (!foo) return 0;
15519 }
15520 return !cs[0] && !zero.x;
15521 #endif
15522
15523 ;
15524 return 0;
15525 }
15526 _ACEOF
15527 if ac_fn_c_try_compile "$LINENO"
15528 then :
15529 ac_cv_c_const=yes
15530 else case e in #(
15531 e) ac_cv_c_const=no ;;
15532 esac
15533 fi
15534 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15535 esac
15536 fi
15537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
15538 printf "%s\n" "$ac_cv_c_const" >&6; }
15539 if test $ac_cv_c_const = no; then
15540
15541 printf "%s\n" "#define const /**/" >>confdefs.h
15542
15543 fi
15544
15545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15546 printf %s "checking for inline... " >&6; }
15547 if test ${ac_cv_c_inline+y}
15548 then :
15549 printf %s "(cached) " >&6
15550 else case e in #(
15551 e) ac_cv_c_inline=no
15552 for ac_kw in inline __inline__ __inline; do
15553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15554 /* end confdefs.h. */
15555 #ifndef __cplusplus
15556 typedef int foo_t;
15557 static $ac_kw foo_t static_foo (void) {return 0; }
15558 $ac_kw foo_t foo (void) {return 0; }
15559 #endif
15560
15561 _ACEOF
15562 if ac_fn_c_try_compile "$LINENO"
15563 then :
15564 ac_cv_c_inline=$ac_kw
15565 fi
15566 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15567 test "$ac_cv_c_inline" != no && break
15568 done
15569 ;;
15570 esac
15571 fi
15572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15573 printf "%s\n" "$ac_cv_c_inline" >&6; }
15574
15575 case $ac_cv_c_inline in
15576 inline | yes) ;;
15577 *)
15578 case $ac_cv_c_inline in
15579 no) ac_val=;;
15580 *) ac_val=$ac_cv_c_inline;;
15581 esac
15582 cat >>confdefs.h <<_ACEOF
15583 #ifndef __cplusplus
15584 #define inline $ac_val
15585 #endif
15586 _ACEOF
15587 ;;
15588 esac
15589
15590 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15591 if test "x$ac_cv_type_size_t" = xyes
15592 then :
15593
15594 else case e in #(
15595 e)
15596 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
15597 ;;
15598 esac
15599 fi
15600
15601 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
15602 case $ac_cv_c_int64_t in #(
15603 no|yes) ;; #(
15604 *)
15605
15606 printf "%s\n" "#define int64_t $ac_cv_c_int64_t" >>confdefs.h
15607 ;;
15608 esac
15609
15610 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
15611 case $ac_cv_c_uint64_t in #(
15612 no|yes) ;; #(
15613 *)
15614
15615 printf "%s\n" "#define _UINT64_T 1" >>confdefs.h
15616
15617
15618 printf "%s\n" "#define uint64_t $ac_cv_c_uint64_t" >>confdefs.h
15619 ;;
15620 esac
15621
15622 case :$ac_cv_c_int64_t:$ac_cv_c_int64_t: in #(
15623 *':no:'*) :
15624 as_fn_error $? "Sorry, your compiler does not support 64-bit integer types." "$LINENO" 5 ;; #(
15625 *) :
15626 ;;
15627 esac
15628 ac_fn_check_decl "$LINENO" "isascii" "ac_cv_have_decl_isascii" "#include <ctype.h>
15629 " "$ac_c_undeclared_builtin_options" "CFLAGS"
15630 if test "x$ac_cv_have_decl_isascii" = xyes
15631 then :
15632 ac_have_decl=1
15633 else case e in #(
15634 e) ac_have_decl=0 ;;
15635 esac
15636 fi
15637 printf "%s\n" "#define HAVE_DECL_ISASCII $ac_have_decl" >>confdefs.h
15638
15639 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
15640 if test "x$ac_cv_member_struct_stat_st_mtim" = xyes
15641 then :
15642
15643 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_MTIM 1" >>confdefs.h
15644
15645
15646 fi
15647
15648
15649
15650 ac_config_headers="$ac_config_headers c-auto.h:c-auto.in"
15651
15652
15653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing floor" >&5
15654 printf %s "checking for library containing floor... " >&6; }
15655 if test ${ac_cv_search_floor+y}
15656 then :
15657 printf %s "(cached) " >&6
15658 else case e in #(
15659 e) ac_func_search_save_LIBS=$LIBS
15660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15661 /* end confdefs.h. */
15662
15663 /* Override any GCC internal prototype to avoid an error.
15664 Use char because int might match the return type of a GCC
15665 builtin and then its argument prototype would still apply.
15666 The 'extern "C"' is for builds by C++ compilers;
15667 although this is not generally supported in C code supporting it here
15668 has little cost and some practical benefit (sr 110532). */
15669 #ifdef __cplusplus
15670 extern "C"
15671 #endif
15672 char floor (void);
15673 int
15674 main (void)
15675 {
15676 return floor ();
15677 ;
15678 return 0;
15679 }
15680 _ACEOF
15681 for ac_lib in '' m
15682 do
15683 if test -z "$ac_lib"; then
15684 ac_res="none required"
15685 else
15686 ac_res=-l$ac_lib
15687 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15688 fi
15689 if ac_fn_c_try_link "$LINENO"
15690 then :
15691 ac_cv_search_floor=$ac_res
15692 fi
15693 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15694 conftest$ac_exeext
15695 if test ${ac_cv_search_floor+y}
15696 then :
15697 break
15698 fi
15699 done
15700 if test ${ac_cv_search_floor+y}
15701 then :
15702
15703 else case e in #(
15704 e) ac_cv_search_floor=no ;;
15705 esac
15706 fi
15707 rm conftest.$ac_ext
15708 LIBS=$ac_func_search_save_LIBS ;;
15709 esac
15710 fi
15711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_floor" >&5
15712 printf "%s\n" "$ac_cv_search_floor" >&6; }
15713 ac_res=$ac_cv_search_floor
15714 if test "$ac_res" != no
15715 then :
15716 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15717
15718 fi
15719
15720
15721 kpse_save_CPPFLAGS=$CPPFLAGS
15722 kpse_save_LIBS=$LIBS
15723
15724 ##tldbg _KPSE_INIT: Initialize TL infrastructure.
15725 kpse_BLD=`(cd "./../../." && pwd)`
15726 kpse_SRC=`(cd "$srcdir/../../." && pwd)`
15727
15728 echo 'tldbg:_KPSE_USE_LIBTOOL called, libtool package version: 2.5.4' >&5
15729 : ${CONFIG_LT=./config.lt}
15730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_LT" >&5
15731 printf "%s\n" "$as_me: creating $CONFIG_LT" >&6;}
15732 as_write_fail=0
15733 cat >"$CONFIG_LT" <<_ASEOF || as_write_fail=1
15734 #! $SHELL
15735 # Generated by $as_me.
15736 # Run this file to recreate a libtool stub with the current configuration.
15737 SHELL=\${CONFIG_SHELL-$SHELL}
15738 export SHELL
15739 _ASEOF
15740 cat >>"$CONFIG_LT" <<\_ASEOF || as_write_fail=1
15741 ## -------------------- ##
15742 ## M4sh Initialization. ##
15743 ## -------------------- ##
15744
15745 # Be more Bourne compatible
15746 DUALCASE=1; export DUALCASE # for MKS sh
15747 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
15748 then :
15749 emulate sh
15750 NULLCMD=:
15751 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15752 # is contrary to our usage. Disable this feature.
15753 alias -g '${1+"$@"}'='"$@"'
15754 setopt NO_GLOB_SUBST
15755 else case e in #(
15756 e) case `(set -o) 2>/dev/null` in #(
15757 *posix*) :
15758 set -o posix ;; #(
15759 *) :
15760 ;;
15761 esac ;;
15762 esac
15763 fi
15764
15765
15766
15767 # Reset variables that may have inherited troublesome values from
15768 # the environment.
15769
15770 # IFS needs to be set, to space, tab, and newline, in precisely that order.
15771 # (If _AS_PATH_WALK were called with IFS unset, it would have the
15772 # side effect of setting IFS to empty, thus disabling word splitting.)
15773 # Quoting is to prevent editors from complaining about space-tab.
15774 as_nl='
15775 '
15776 export as_nl
15777 IFS=" "" $as_nl"
15778
15779 PS1='$ '
15780 PS2='> '
15781 PS4='+ '
15782
15783 # Ensure predictable behavior from utilities with locale-dependent output.
15784 LC_ALL=C
15785 export LC_ALL
15786 LANGUAGE=C
15787 export LANGUAGE
15788
15789 # We cannot yet rely on "unset" to work, but we need these variables
15790 # to be unset--not just set to an empty or harmless value--now, to
15791 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
15792 # also avoids known problems related to "unset" and subshell syntax
15793 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
15794 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
15795 do eval test \${$as_var+y} \
15796 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15797 done
15798
15799 # Ensure that fds 0, 1, and 2 are open.
15800 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
15801 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
15802 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
15803
15804 # The user is always right.
15805 if ${PATH_SEPARATOR+false} :; then
15806 PATH_SEPARATOR=:
15807 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15808 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15809 PATH_SEPARATOR=';'
15810 }
15811 fi
15812
15813
15814 # Find who we are. Look in the path if we contain no directory separator.
15815 as_myself=
15816 case $0 in #((
15817 *[\\/]* ) as_myself=$0 ;;
15818 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15819 for as_dir in $PATH
15820 do
15821 IFS=$as_save_IFS
15822 case $as_dir in #(((
15823 '') as_dir=./ ;;
15824 */) ;;
15825 *) as_dir=$as_dir/ ;;
15826 esac
15827 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
15828 done
15829 IFS=$as_save_IFS
15830
15831 ;;
15832 esac
15833 # We did not find ourselves, most probably we were run as 'sh COMMAND'
15834 # in which case we are not to be found in the path.
15835 if test "x$as_myself" = x; then
15836 as_myself=$0
15837 fi
15838 if test ! -f "$as_myself"; then
15839 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15840 exit 1
15841 fi
15842
15843
15844
15845 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15846 # ----------------------------------------
15847 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15848 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15849 # script with STATUS, using 1 if that was 0.
15850 as_fn_error ()
15851 {
15852 as_status=$1; test $as_status -eq 0 && as_status=1
15853 if test "$4"; then
15854 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15855 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15856 fi
15857 printf "%s\n" "$as_me: error: $2" >&2
15858 as_fn_exit $as_status
15859 } # as_fn_error
15860
15861
15862 # as_fn_set_status STATUS
15863 # -----------------------
15864 # Set $? to STATUS, without forking.
15865 as_fn_set_status ()
15866 {
15867 return $1
15868 } # as_fn_set_status
15869
15870 # as_fn_exit STATUS
15871 # -----------------
15872 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15873 as_fn_exit ()
15874 {
15875 set +e
15876 as_fn_set_status $1
15877 exit $1
15878 } # as_fn_exit
15879
15880 # as_fn_unset VAR
15881 # ---------------
15882 # Portably unset VAR.
15883 as_fn_unset ()
15884 {
15885 { eval $1=; unset $1;}
15886 }
15887 as_unset=as_fn_unset
15888
15889 # as_fn_append VAR VALUE
15890 # ----------------------
15891 # Append the text in VALUE to the end of the definition contained in VAR. Take
15892 # advantage of any shell optimizations that allow amortized linear growth over
15893 # repeated appends, instead of the typical quadratic growth present in naive
15894 # implementations.
15895 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
15896 then :
15897 eval 'as_fn_append ()
15898 {
15899 eval $1+=\$2
15900 }'
15901 else case e in #(
15902 e) as_fn_append ()
15903 {
15904 eval $1=\$$1\$2
15905 } ;;
15906 esac
15907 fi # as_fn_append
15908
15909 # as_fn_arith ARG...
15910 # ------------------
15911 # Perform arithmetic evaluation on the ARGs, and store the result in the
15912 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15913 # must be portable across $(()) and expr.
15914 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
15915 then :
15916 eval 'as_fn_arith ()
15917 {
15918 as_val=$(( $* ))
15919 }'
15920 else case e in #(
15921 e) as_fn_arith ()
15922 {
15923 as_val=`expr "$@" || test $? -eq 1`
15924 } ;;
15925 esac
15926 fi # as_fn_arith
15927
15928
15929 if expr a : '\(a\)' >/dev/null 2>&1 &&
15930 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15931 as_expr=expr
15932 else
15933 as_expr=false
15934 fi
15935
15936 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15937 as_basename=basename
15938 else
15939 as_basename=false
15940 fi
15941
15942 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15943 as_dirname=dirname
15944 else
15945 as_dirname=false
15946 fi
15947
15948 as_me=`$as_basename -- "$0" ||
15949 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15950 X"$0" : 'X\(//\)$' \| \
15951 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15952 printf "%s\n" X/"$0" |
15953 sed '/^.*\/\([^/][^/]*\)\/*$/{
15954 s//\1/
15955 q
15956 }
15957 /^X\/\(\/\/\)$/{
15958 s//\1/
15959 q
15960 }
15961 /^X\/\(\/\).*/{
15962 s//\1/
15963 q
15964 }
15965 s/.*/./; q'`
15966
15967 # Avoid depending upon Character Ranges.
15968 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15969 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15970 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15971 as_cr_digits='0123456789'
15972 as_cr_alnum=$as_cr_Letters$as_cr_digits
15973
15974
15975 # Determine whether it's possible to make 'echo' print without a newline.
15976 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
15977 # for compatibility with existing Makefiles.
15978 ECHO_C= ECHO_N= ECHO_T=
15979 case `echo -n x` in #(((((
15980 -n*)
15981 case `echo 'xy\c'` in
15982 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15983 xy) ECHO_C='\c';;
15984 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15985 ECHO_T=' ';;
15986 esac;;
15987 *)
15988 ECHO_N='-n';;
15989 esac
15990
15991 # For backward compatibility with old third-party macros, we provide
15992 # the shell variables $as_echo and $as_echo_n. New code should use
15993 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
15994 as_echo='printf %s\n'
15995 as_echo_n='printf %s'
15996
15997 rm -f conf$$ conf$$.exe conf$$.file
15998 if test -d conf$$.dir; then
15999 rm -f conf$$.dir/conf$$.file
16000 else
16001 rm -f conf$$.dir
16002 mkdir conf$$.dir 2>/dev/null
16003 fi
16004 if (echo >conf$$.file) 2>/dev/null; then
16005 if ln -s conf$$.file conf$$ 2>/dev/null; then
16006 as_ln_s='ln -s'
16007 # ... but there are two gotchas:
16008 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
16009 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
16010 # In both cases, we have to default to 'cp -pR'.
16011 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16012 as_ln_s='cp -pR'
16013 elif ln conf$$.file conf$$ 2>/dev/null; then
16014 as_ln_s=ln
16015 else
16016 as_ln_s='cp -pR'
16017 fi
16018 else
16019 as_ln_s='cp -pR'
16020 fi
16021 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16022 rmdir conf$$.dir 2>/dev/null
16023
16024
16025 # as_fn_mkdir_p
16026 # -------------
16027 # Create "$as_dir" as a directory, including parents if necessary.
16028 as_fn_mkdir_p ()
16029 {
16030
16031 case $as_dir in #(
16032 -*) as_dir=./$as_dir;;
16033 esac
16034 test -d "$as_dir" || eval $as_mkdir_p || {
16035 as_dirs=
16036 while :; do
16037 case $as_dir in #(
16038 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16039 *) as_qdir=$as_dir;;
16040 esac
16041 as_dirs="'$as_qdir' $as_dirs"
16042 as_dir=`$as_dirname -- "$as_dir" ||
16043 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16044 X"$as_dir" : 'X\(//\)[^/]' \| \
16045 X"$as_dir" : 'X\(//\)$' \| \
16046 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16047 printf "%s\n" X"$as_dir" |
16048 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16049 s//\1/
16050 q
16051 }
16052 /^X\(\/\/\)[^/].*/{
16053 s//\1/
16054 q
16055 }
16056 /^X\(\/\/\)$/{
16057 s//\1/
16058 q
16059 }
16060 /^X\(\/\).*/{
16061 s//\1/
16062 q
16063 }
16064 s/.*/./; q'`
16065 test -d "$as_dir" && break
16066 done
16067 test -z "$as_dirs" || eval "mkdir $as_dirs"
16068 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16069
16070
16071 } # as_fn_mkdir_p
16072 if mkdir -p . 2>/dev/null; then
16073 as_mkdir_p='mkdir -p "$as_dir"'
16074 else
16075 test -d ./-p && rmdir ./-p
16076 as_mkdir_p=false
16077 fi
16078
16079
16080 # as_fn_executable_p FILE
16081 # -----------------------
16082 # Test if FILE is an executable regular file.
16083 as_fn_executable_p ()
16084 {
16085 test -f "$1" && test -x "$1"
16086 } # as_fn_executable_p
16087 as_test_x='test -x'
16088 as_executable_p=as_fn_executable_p
16089
16090 # Sed expression to map a string onto a valid CPP name.
16091 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
16092 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
16093
16094 # Sed expression to map a string onto a valid variable name.
16095 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
16096 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
16097
16098
16099 exec 6>&1
16100 ## --------------------------------- ##
16101 ## Main body of "$CONFIG_LT" script. ##
16102 ## --------------------------------- ##
16103 _ASEOF
16104 test $as_write_fail = 0 && chmod +x "$CONFIG_LT"
16105
16106 cat >>"$CONFIG_LT" <<\_LTEOF
16107 lt_cl_silent=false
16108 exec 5>>config.log
16109 {
16110 echo
16111 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16112 ## Running $as_me. ##
16113 _ASBOX
16114 } >&5
16115
16116 lt_cl_help="\
16117 '$as_me' creates a local libtool stub from the current configuration,
16118 for use in further configure time tests before the real libtool is
16119 generated.
16120
16121 Usage: $0 [OPTIONS]
16122
16123 -h, --help print this help, then exit
16124 -V, --version print version number, then exit
16125 -q, --quiet do not print progress messages
16126 -d, --debug don't remove temporary files
16127
16128 Report bugs to <[email protected]>."
16129
16130 lt_cl_version="\
16131 afm2pl (TeX Live) config.lt 0.7.1
16132 configured by $0, generated by GNU Autoconf 2.72.
16133
16134 Copyright (C) 2024 Free Software Foundation, Inc.
16135 This config.lt script is free software; the Free Software Foundation
16136 gives unlimited permission to copy, distribute and modify it."
16137
16138 while test 0 != $#
16139 do
16140 case $1 in
16141 --version | --v* | -V )
16142 echo "$lt_cl_version"; exit 0 ;;
16143 --help | --h* | -h )
16144 echo "$lt_cl_help"; exit 0 ;;
16145 --debug | --d* | -d )
16146 debug=: ;;
16147 --quiet | --q* | --silent | --s* | -q )
16148 lt_cl_silent=: ;;
16149
16150 -*) as_fn_error $? "unrecognized option: $1
16151 Try '$0 --help' for more information." "$LINENO" 5 ;;
16152
16153 *) as_fn_error $? "unrecognized argument: $1
16154 Try '$0 --help' for more information." "$LINENO" 5 ;;
16155 esac
16156 shift
16157 done
16158
16159 if $lt_cl_silent; then
16160 exec 6>/dev/null
16161 fi
16162 _LTEOF
16163
16164 cat >>"$CONFIG_LT" <<_LTEOF
16165
16166
16167 # The HP-UX ksh and POSIX shell print the target directory to stdout
16168 # if CDPATH is set.
16169 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16170
16171 sed_quote_subst='$sed_quote_subst'
16172 double_quote_subst='$double_quote_subst'
16173 delay_variable_subst='$delay_variable_subst'
16174 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16175 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16176 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
16177 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16178 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16179 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16180 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16181 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16182 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16183 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
16184 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16185 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16186 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16187 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16188 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16189 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16190 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16191 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16192 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16193 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16194 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16195 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16196 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16197 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16198 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16199 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16200 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16201 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16202 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16203 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16204 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16205 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16206 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16207 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16208 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16209 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16210 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16211 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
16212 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16213 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16214 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16215 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16216 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16217 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16218 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
16219 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16220 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16221 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16222 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16223 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16224 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16225 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16226 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16227 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16228 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16229 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16230 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16231 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16232 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16233 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
16234 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16235 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"`'
16236 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
16237 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16238 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16239 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
16240 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16241 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16242 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16243 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16244 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16245 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16246 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16247 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16248 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16249 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16250 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16251 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16252 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16253 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16254 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16255 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16256 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16257 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16258 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16259 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16260 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16261 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16262 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16263 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16264 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16265 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16266 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16267 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16268 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16269 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16270 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16271 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16272 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16273 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16274 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16275 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16276 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16277 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16278 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16279 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16280 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16281 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16282 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16283 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16284 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16285 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16286 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16287 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16288 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16289 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16290 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16291 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16292 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16293 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16294 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16295 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16296 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16297 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16298 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16299 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16300 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16301 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16302 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16303 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16304 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
16305 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
16306 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16307 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16308 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16309 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16310 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16311 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16312
16313 LTCC='$LTCC'
16314 LTCFLAGS='$LTCFLAGS'
16315 compiler='$compiler_DEFAULT'
16316
16317 # A function that is used when there is no print builtin or printf.
16318 func_fallback_echo ()
16319 {
16320 eval 'cat <<_LTECHO_EOF
16321 \$1
16322 _LTECHO_EOF'
16323 }
16324
16325 # Quote evaled strings.
16326 for var in AS \
16327 DLLTOOL \
16328 OBJDUMP \
16329 SHELL \
16330 ECHO \
16331 PATH_SEPARATOR \
16332 SED \
16333 GREP \
16334 EGREP \
16335 FGREP \
16336 LD \
16337 NM \
16338 LN_S \
16339 lt_SP2NL \
16340 lt_NL2SP \
16341 reload_flag \
16342 FILECMD \
16343 deplibs_check_method \
16344 file_magic_cmd \
16345 file_magic_glob \
16346 want_nocaseglob \
16347 sharedlib_from_linklib_cmd \
16348 AR \
16349 archiver_list_spec \
16350 STRIP \
16351 RANLIB \
16352 CC \
16353 CFLAGS \
16354 compiler \
16355 lt_cv_sys_global_symbol_pipe \
16356 lt_cv_sys_global_symbol_to_cdecl \
16357 lt_cv_sys_global_symbol_to_import \
16358 lt_cv_sys_global_symbol_to_c_name_address \
16359 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16360 lt_cv_nm_interface \
16361 nm_file_list_spec \
16362 lt_cv_truncate_bin \
16363 lt_prog_compiler_no_builtin_flag \
16364 lt_prog_compiler_pic \
16365 lt_prog_compiler_wl \
16366 lt_prog_compiler_static \
16367 lt_cv_prog_compiler_c_o \
16368 need_locks \
16369 MANIFEST_TOOL \
16370 DSYMUTIL \
16371 NMEDIT \
16372 LIPO \
16373 OTOOL \
16374 OTOOL64 \
16375 shrext_cmds \
16376 export_dynamic_flag_spec \
16377 whole_archive_flag_spec \
16378 compiler_needs_object \
16379 with_gnu_ld \
16380 allow_undefined_flag \
16381 no_undefined_flag \
16382 hardcode_libdir_flag_spec \
16383 hardcode_libdir_separator \
16384 exclude_expsyms \
16385 include_expsyms \
16386 file_list_spec \
16387 variables_saved_for_relink \
16388 libname_spec \
16389 library_names_spec \
16390 soname_spec \
16391 install_override_mode \
16392 finish_eval \
16393 old_striplib \
16394 striplib; do
16395 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16396 *[\\\\\\\`\\"\\\$]*)
16397 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16398 ;;
16399 *)
16400 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16401 ;;
16402 esac
16403 done
16404
16405 # Double-quote double-evaled strings.
16406 for var in reload_cmds \
16407 old_postinstall_cmds \
16408 old_postuninstall_cmds \
16409 old_archive_cmds \
16410 extract_expsyms_cmds \
16411 old_archive_from_new_cmds \
16412 old_archive_from_expsyms_cmds \
16413 archive_cmds \
16414 archive_expsym_cmds \
16415 module_cmds \
16416 module_expsym_cmds \
16417 export_symbols_cmds \
16418 prelink_cmds \
16419 postlink_cmds \
16420 postinstall_cmds \
16421 postuninstall_cmds \
16422 finish_cmds \
16423 sys_lib_search_path_spec \
16424 configure_time_dlsearch_path \
16425 configure_time_lt_sys_library_path; do
16426 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16427 *[\\\\\\\`\\"\\\$]*)
16428 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16429 ;;
16430 *)
16431 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16432 ;;
16433 esac
16434 done
16435
16436 ac_aux_dir='$ac_aux_dir'
16437
16438 # See if we are running on zsh, and set the options that allow our
16439 # commands through without removal of \ escapes INIT.
16440 if test -n "\${ZSH_VERSION+set}"; then
16441 setopt NO_GLOB_SUBST
16442 fi
16443
16444
16445 PACKAGE='$PACKAGE'
16446 VERSION='$VERSION'
16447 RM='$RM'
16448 ofile='$ofile'
16449
16450
16451
16452 _LTEOF
16453
16454 cat >>"$CONFIG_LT" <<\_LTEOF
16455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
16456 printf "%s\n" "$as_me: creating $ofile" >&6;}
16457
16458
16459 # See if we are running on zsh, and set the options that allow our
16460 # commands through without removal of \ escapes.
16461 if test -n "${ZSH_VERSION+set}"; then
16462 setopt NO_GLOB_SUBST
16463 fi
16464
16465 cfgfile=${ofile}T
16466 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16467 $RM "$cfgfile"
16468
16469 cat <<_LT_EOF >> "$cfgfile"
16470 #! $SHELL
16471 # Generated automatically by $as_me ($PACKAGE) $VERSION
16472 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16473
16474 # Provide generalized library-building support services.
16475 # Written by Gordon Matzigkeit, 1996
16476
16477 # Copyright (C) 2024 Free Software Foundation, Inc.
16478 # This is free software; see the source for copying conditions. There is NO
16479 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16480
16481 # GNU Libtool is free software; you can redistribute it and/or modify
16482 # it under the terms of the GNU General Public License as published by
16483 # the Free Software Foundation; either version 2 of the License, or
16484 # (at your option) any later version.
16485 #
16486 # As a special exception to the GNU General Public License, if you
16487 # distribute this file as part of a program or library that is built
16488 # using GNU Libtool, you may include this file under the same
16489 # distribution terms that you use for the rest of that program.
16490 #
16491 # GNU Libtool is distributed in the hope that it will be useful, but
16492 # WITHOUT ANY WARRANTY; without even the implied warranty of
16493 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16494 # GNU General Public License for more details.
16495 #
16496 # You should have received a copy of the GNU General Public License
16497 # along with this program. If not, see <http://www.gnu.org/licenses/>.
16498
16499
16500 # The names of the tagged configurations supported by this script.
16501 available_tags=''
16502
16503 # Configured defaults for sys_lib_dlsearch_path munging.
16504 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
16505
16506 # ### BEGIN LIBTOOL CONFIG
16507
16508 # Which release of libtool.m4 was used?
16509 macro_version=$macro_version
16510 macro_revision=$macro_revision
16511
16512 # Assembler program.
16513 AS=$lt_AS
16514
16515 # DLL creation program.
16516 DLLTOOL=$lt_DLLTOOL
16517
16518 # Object dumper program.
16519 OBJDUMP=$lt_OBJDUMP
16520
16521 # Whether or not to build shared libraries.
16522 build_libtool_libs=$enable_shared
16523
16524 # Whether or not to build static libraries.
16525 build_old_libs=$enable_static
16526
16527 # What type of objects to build.
16528 pic_mode=$pic_mode
16529
16530 # Whether or not to optimize for fast installation.
16531 fast_install=$enable_fast_install
16532
16533 # Shared archive member basename,for filename based shared library versioning on AIX.
16534 shared_archive_member_spec=$shared_archive_member_spec
16535
16536 # Shell to use when invoking shell scripts.
16537 SHELL=$lt_SHELL
16538
16539 # An echo program that protects backslashes.
16540 ECHO=$lt_ECHO
16541
16542 # The PATH separator for the build system.
16543 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16544
16545 # The host system.
16546 host_alias=$host_alias
16547 host=$host
16548 host_os=$host_os
16549
16550 # The build system.
16551 build_alias=$build_alias
16552 build=$build
16553 build_os=$build_os
16554
16555 # A sed program that does not truncate output.
16556 SED=$lt_SED
16557
16558 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16559 Xsed="\$SED -e 1s/^X//"
16560
16561 # A grep program that handles long lines.
16562 GREP=$lt_GREP
16563
16564 # An ERE matcher.
16565 EGREP=$lt_EGREP
16566
16567 # A literal string matcher.
16568 FGREP=$lt_FGREP
16569
16570 # A BSD- or MS-compatible name lister.
16571 NM=$lt_NM
16572
16573 # Whether we need soft or hard links.
16574 LN_S=$lt_LN_S
16575
16576 # What is the maximum length of a command?
16577 max_cmd_len=$max_cmd_len
16578
16579 # Object file suffix (normally "o").
16580 objext=$ac_objext
16581
16582 # Executable file suffix (normally "").
16583 exeext=$exeext
16584
16585 # whether the shell understands "unset".
16586 lt_unset=$lt_unset
16587
16588 # turn spaces into newlines.
16589 SP2NL=$lt_lt_SP2NL
16590
16591 # turn newlines into spaces.
16592 NL2SP=$lt_lt_NL2SP
16593
16594 # convert \$build file names to \$host format.
16595 to_host_file_cmd=$lt_cv_to_host_file_cmd
16596
16597 # convert \$build files to toolchain format.
16598 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16599
16600 # A file(cmd) program that detects file types.
16601 FILECMD=$lt_FILECMD
16602
16603 # Method to check whether dependent libraries are shared objects.
16604 deplibs_check_method=$lt_deplibs_check_method
16605
16606 # Command to use when deplibs_check_method = "file_magic".
16607 file_magic_cmd=$lt_file_magic_cmd
16608
16609 # How to find potential files when deplibs_check_method = "file_magic".
16610 file_magic_glob=$lt_file_magic_glob
16611
16612 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16613 want_nocaseglob=$lt_want_nocaseglob
16614
16615 # Command to associate shared and link libraries.
16616 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16617
16618 # The archiver.
16619 AR=$lt_AR
16620
16621 # Flags to create an archive (by configure).
16622 lt_ar_flags=$lt_ar_flags
16623
16624 # Flags to create an archive.
16625 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
16626
16627 # How to feed a file listing to the archiver.
16628 archiver_list_spec=$lt_archiver_list_spec
16629
16630 # A symbol stripping program.
16631 STRIP=$lt_STRIP
16632
16633 # Commands used to install an old-style archive.
16634 RANLIB=$lt_RANLIB
16635 old_postinstall_cmds=$lt_old_postinstall_cmds
16636 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16637
16638 # Whether to use a lock for old archive extraction.
16639 lock_old_archive_extraction=$lock_old_archive_extraction
16640
16641 # A C compiler.
16642 LTCC=$lt_CC
16643
16644 # LTCC compiler flags.
16645 LTCFLAGS=$lt_CFLAGS
16646
16647 # Take the output of nm and produce a listing of raw symbols and C names.
16648 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16649
16650 # Transform the output of nm in a proper C declaration.
16651 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16652
16653 # Transform the output of nm into a list of symbols to manually relocate.
16654 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
16655
16656 # Transform the output of nm in a C name address pair.
16657 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16658
16659 # Transform the output of nm in a C name address pair when lib prefix is needed.
16660 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16661
16662 # The name lister interface.
16663 nm_interface=$lt_lt_cv_nm_interface
16664
16665 # Specify filename containing input files for \$NM.
16666 nm_file_list_spec=$lt_nm_file_list_spec
16667
16668 # The root where to search for dependent libraries,and where our libraries should be installed.
16669 lt_sysroot=$lt_sysroot
16670
16671 # Command to truncate a binary pipe.
16672 lt_truncate_bin=$lt_lt_cv_truncate_bin
16673
16674 # The name of the directory that contains temporary libtool files.
16675 objdir=$objdir
16676
16677 # Used to examine libraries when file_magic_cmd begins with "file".
16678 MAGIC_CMD=$MAGIC_CMD
16679
16680 # Must we lock files when doing compilation?
16681 need_locks=$lt_need_locks
16682
16683 # Manifest tool.
16684 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16685
16686 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16687 DSYMUTIL=$lt_DSYMUTIL
16688
16689 # Tool to change global to local symbols on Mac OS X.
16690 NMEDIT=$lt_NMEDIT
16691
16692 # Tool to manipulate fat objects and archives on Mac OS X.
16693 LIPO=$lt_LIPO
16694
16695 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16696 OTOOL=$lt_OTOOL
16697
16698 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16699 OTOOL64=$lt_OTOOL64
16700
16701 # Old archive suffix (normally "a").
16702 libext=$libext
16703
16704 # Shared library suffix (normally ".so").
16705 shrext_cmds=$lt_shrext_cmds
16706
16707 # The commands to extract the exported symbol list from a shared archive.
16708 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16709
16710 # Variables whose values should be saved in libtool wrapper scripts and
16711 # restored at link time.
16712 variables_saved_for_relink=$lt_variables_saved_for_relink
16713
16714 # Do we need the "lib" prefix for modules?
16715 need_lib_prefix=$need_lib_prefix
16716
16717 # Do we need a version for libraries?
16718 need_version=$need_version
16719
16720 # Library versioning type.
16721 version_type=$version_type
16722
16723 # Shared library runtime path variable.
16724 runpath_var=$runpath_var
16725
16726 # Shared library path variable.
16727 shlibpath_var=$shlibpath_var
16728
16729 # Is shlibpath searched before the hard-coded library search path?
16730 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16731
16732 # Format of library name prefix.
16733 libname_spec=$lt_libname_spec
16734
16735 # List of archive names. First name is the real one, the rest are links.
16736 # The last name is the one that the linker finds with -lNAME
16737 library_names_spec=$lt_library_names_spec
16738
16739 # The coded name of the library, if different from the real name.
16740 soname_spec=$lt_soname_spec
16741
16742 # Permission mode override for installation of shared libraries.
16743 install_override_mode=$lt_install_override_mode
16744
16745 # Command to use after installation of a shared archive.
16746 postinstall_cmds=$lt_postinstall_cmds
16747
16748 # Command to use after uninstallation of a shared archive.
16749 postuninstall_cmds=$lt_postuninstall_cmds
16750
16751 # Commands used to finish a libtool library installation in a directory.
16752 finish_cmds=$lt_finish_cmds
16753
16754 # As "finish_cmds", except a single script fragment to be evaled but
16755 # not shown.
16756 finish_eval=$lt_finish_eval
16757
16758 # Whether we should hardcode library paths into libraries.
16759 hardcode_into_libs=$hardcode_into_libs
16760
16761 # Compile-time system search path for libraries.
16762 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16763
16764 # Detected run-time system search path for libraries.
16765 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
16766
16767 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
16768 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
16769
16770 # Whether dlopen is supported.
16771 dlopen_support=$enable_dlopen
16772
16773 # Whether dlopen of programs is supported.
16774 dlopen_self=$enable_dlopen_self
16775
16776 # Whether dlopen of statically linked programs is supported.
16777 dlopen_self_static=$enable_dlopen_self_static
16778
16779 # Commands to strip libraries.
16780 old_striplib=$lt_old_striplib
16781 striplib=$lt_striplib
16782
16783
16784 # The linker used to build libraries.
16785 LD=$lt_LD
16786
16787 # How to create reloadable object files.
16788 reload_flag=$lt_reload_flag
16789 reload_cmds=$lt_reload_cmds
16790
16791 # Commands used to build an old-style archive.
16792 old_archive_cmds=$lt_old_archive_cmds
16793
16794 # A language specific compiler.
16795 CC=$lt_compiler
16796
16797 # Is the compiler the GNU compiler?
16798 with_gcc=$GCC
16799
16800 # Compiler flag to turn off builtin functions.
16801 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16802
16803 # Additional compiler flags for building library objects.
16804 pic_flag=$lt_lt_prog_compiler_pic
16805
16806 # How to pass a linker flag through the compiler.
16807 wl=$lt_lt_prog_compiler_wl
16808
16809 # Compiler flag to prevent dynamic linking.
16810 link_static_flag=$lt_lt_prog_compiler_static
16811
16812 # Does compiler simultaneously support -c and -o options?
16813 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16814
16815 # Whether or not to add -lc for building shared libraries.
16816 build_libtool_need_lc=$archive_cmds_need_lc
16817
16818 # Whether or not to disallow shared libs when runtime libs are static.
16819 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16820
16821 # Compiler flag to allow reflexive dlopens.
16822 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16823
16824 # Compiler flag to generate shared objects directly from archives.
16825 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16826
16827 # Whether the compiler copes with passing no objects directly.
16828 compiler_needs_object=$lt_compiler_needs_object
16829
16830 # Create an old-style archive from a shared archive.
16831 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16832
16833 # Create a temporary old-style archive to link instead of a shared archive.
16834 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16835
16836 # Commands used to build a shared archive.
16837 archive_cmds=$lt_archive_cmds
16838 archive_expsym_cmds=$lt_archive_expsym_cmds
16839
16840 # Commands used to build a loadable module if different from building
16841 # a shared archive.
16842 module_cmds=$lt_module_cmds
16843 module_expsym_cmds=$lt_module_expsym_cmds
16844
16845 # Whether we are building with GNU ld or not.
16846 with_gnu_ld=$lt_with_gnu_ld
16847
16848 # Flag that allows shared libraries with undefined symbols to be built.
16849 allow_undefined_flag=$lt_allow_undefined_flag
16850
16851 # Flag that enforces no undefined symbols.
16852 no_undefined_flag=$lt_no_undefined_flag
16853
16854 # Flag to hardcode \$libdir into a binary during linking.
16855 # This must work even if \$libdir does not exist
16856 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16857
16858 # Whether we need a single "-rpath" flag with a separated argument.
16859 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16860
16861 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16862 # DIR into the resulting binary.
16863 hardcode_direct=$hardcode_direct
16864
16865 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16866 # DIR into the resulting binary and the resulting library dependency is
16867 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
16868 # library is relocated.
16869 hardcode_direct_absolute=$hardcode_direct_absolute
16870
16871 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16872 # into the resulting binary.
16873 hardcode_minus_L=$hardcode_minus_L
16874
16875 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16876 # into the resulting binary.
16877 hardcode_shlibpath_var=$hardcode_shlibpath_var
16878
16879 # Set to "yes" if building a shared library automatically hardcodes DIR
16880 # into the library and all subsequent libraries and executables linked
16881 # against it.
16882 hardcode_automatic=$hardcode_automatic
16883
16884 # Set to yes if linker adds runtime paths of dependent libraries
16885 # to runtime path list.
16886 inherit_rpath=$inherit_rpath
16887
16888 # Whether libtool must link a program against all its dependency libraries.
16889 link_all_deplibs=$link_all_deplibs
16890
16891 # Set to "yes" if exported symbols are required.
16892 always_export_symbols=$always_export_symbols
16893
16894 # The commands to list exported symbols.
16895 export_symbols_cmds=$lt_export_symbols_cmds
16896
16897 # Symbols that should not be listed in the preloaded symbols.
16898 exclude_expsyms=$lt_exclude_expsyms
16899
16900 # Symbols that must always be exported.
16901 include_expsyms=$lt_include_expsyms
16902
16903 # Commands necessary for linking programs (against libraries) with templates.
16904 prelink_cmds=$lt_prelink_cmds
16905
16906 # Commands necessary for finishing linking programs.
16907 postlink_cmds=$lt_postlink_cmds
16908
16909 # Specify filename containing input files.
16910 file_list_spec=$lt_file_list_spec
16911
16912 # How to hardcode a shared library path into an executable.
16913 hardcode_action=$hardcode_action
16914
16915 # ### END LIBTOOL CONFIG
16916
16917 _LT_EOF
16918
16919 cat <<'_LT_EOF' >> "$cfgfile"
16920
16921 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
16922
16923 # func_munge_path_list VARIABLE PATH
16924 # -----------------------------------
16925 # VARIABLE is name of variable containing _space_ separated list of
16926 # directories to be munged by the contents of PATH, which is string
16927 # having a format:
16928 # "DIR[:DIR]:"
16929 # string "DIR[ DIR]" will be prepended to VARIABLE
16930 # ":DIR[:DIR]"
16931 # string "DIR[ DIR]" will be appended to VARIABLE
16932 # "DIRP[:DIRP]::[DIRA:]DIRA"
16933 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
16934 # "DIRA[ DIRA]" will be appended to VARIABLE
16935 # "DIR[:DIR]"
16936 # VARIABLE will be replaced by "DIR[ DIR]"
16937 func_munge_path_list ()
16938 {
16939 case x$2 in
16940 x)
16941 ;;
16942 *:)
16943 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
16944 ;;
16945 x:*)
16946 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
16947 ;;
16948 *::*)
16949 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
16950 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
16951 ;;
16952 *)
16953 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
16954 ;;
16955 esac
16956 }
16957
16958
16959 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
16960 func_cc_basename ()
16961 {
16962 for cc_temp in $*""; do
16963 case $cc_temp in
16964 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16965 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16966 \-*) ;;
16967 *) break;;
16968 esac
16969 done
16970 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16971 }
16972
16973
16974 # ### END FUNCTIONS SHARED WITH CONFIGURE
16975
16976 _LT_EOF
16977
16978 case $host_os in
16979 aix3*)
16980 cat <<\_LT_EOF >> "$cfgfile"
16981 # AIX sometimes has problems with the GCC collect2 program. For some
16982 # reason, if we set the COLLECT_NAMES environment variable, the problems
16983 # vanish in a puff of smoke.
16984 if test set != "${COLLECT_NAMES+set}"; then
16985 COLLECT_NAMES=
16986 export COLLECT_NAMES
16987 fi
16988 _LT_EOF
16989 ;;
16990 esac
16991
16992
16993
16994 ltmain=$ac_aux_dir/ltmain.sh
16995
16996
16997 # We use sed instead of cat because bash on DJGPP gets confused if
16998 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16999 # text mode, it properly converts lines to CR/LF. This bash problem
17000 # is reportedly fixed, but why not run on old versions too?
17001 $SED '$q' "$ltmain" >> "$cfgfile" \
17002 || (rm -f "$cfgfile"; exit 1)
17003
17004 mv -f "$cfgfile" "$ofile" ||
17005 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17006 chmod +x "$ofile"
17007
17008
17009 as_fn_exit 0
17010 _LTEOF
17011 chmod +x "$CONFIG_LT"
17012
17013 # configure is writing to config.log, but config.lt does its own redirection,
17014 # appending to config.log, which fails on DOS, as config.log is still kept
17015 # open by configure. Here we exec the FD to /dev/null, effectively closing
17016 # config.log, so it can be properly (re)opened and appended to by config.lt.
17017 lt_cl_success=:
17018 test yes = "$silent" &&
17019 lt_config_lt_args="$lt_config_lt_args --quiet"
17020 exec 5>/dev/null
17021 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
17022 exec 5>>config.log
17023 $lt_cl_success || as_fn_exit 1
17024
17025 #
17026 #
17027 ac_ext=c
17028 ac_cpp='$CPP $CPPFLAGS'
17029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17032 ac_link="./libtool --mode=link --tag=CC $ac_link"
17033
17034 if test -n "$ac_tool_prefix"; then
17035 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
17036 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
17037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17038 printf %s "checking for $ac_word... " >&6; }
17039 if test ${ac_cv_prog_PKG_CONFIG+y}
17040 then :
17041 printf %s "(cached) " >&6
17042 else case e in #(
17043 e) if test -n "$PKG_CONFIG"; then
17044 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
17045 else
17046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17047 for as_dir in $PATH
17048 do
17049 IFS=$as_save_IFS
17050 case $as_dir in #(((
17051 '') as_dir=./ ;;
17052 */) ;;
17053 *) as_dir=$as_dir/ ;;
17054 esac
17055 for ac_exec_ext in '' $ac_executable_extensions; do
17056 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17057 ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
17058 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17059 break 2
17060 fi
17061 done
17062 done
17063 IFS=$as_save_IFS
17064
17065 fi ;;
17066 esac
17067 fi
17068 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
17069 if test -n "$PKG_CONFIG"; then
17070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
17071 printf "%s\n" "$PKG_CONFIG" >&6; }
17072 else
17073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17074 printf "%s\n" "no" >&6; }
17075 fi
17076
17077
17078 fi
17079 if test -z "$ac_cv_prog_PKG_CONFIG"; then
17080 ac_ct_PKG_CONFIG=$PKG_CONFIG
17081 # Extract the first word of "pkg-config", so it can be a program name with args.
17082 set dummy pkg-config; ac_word=$2
17083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17084 printf %s "checking for $ac_word... " >&6; }
17085 if test ${ac_cv_prog_ac_ct_PKG_CONFIG+y}
17086 then :
17087 printf %s "(cached) " >&6
17088 else case e in #(
17089 e) if test -n "$ac_ct_PKG_CONFIG"; then
17090 ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
17091 else
17092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17093 for as_dir in $PATH
17094 do
17095 IFS=$as_save_IFS
17096 case $as_dir in #(((
17097 '') as_dir=./ ;;
17098 */) ;;
17099 *) as_dir=$as_dir/ ;;
17100 esac
17101 for ac_exec_ext in '' $ac_executable_extensions; do
17102 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17103 ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
17104 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17105 break 2
17106 fi
17107 done
17108 done
17109 IFS=$as_save_IFS
17110
17111 fi ;;
17112 esac
17113 fi
17114 ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
17115 if test -n "$ac_ct_PKG_CONFIG"; then
17116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PKG_CONFIG" >&5
17117 printf "%s\n" "$ac_ct_PKG_CONFIG" >&6; }
17118 else
17119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17120 printf "%s\n" "no" >&6; }
17121 fi
17122
17123 if test "x$ac_ct_PKG_CONFIG" = x; then
17124 PKG_CONFIG="false"
17125 else
17126 case $cross_compiling:$ac_tool_warned in
17127 yes:)
17128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17129 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17130 ac_tool_warned=yes ;;
17131 esac
17132 PKG_CONFIG=$ac_ct_PKG_CONFIG
17133 fi
17134 else
17135 PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
17136 fi
17137
17138 ##tldbg _KPSE_LIB_FLAGS: Setup kpathsea (-lkpathsea) flags.
17139 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
17140 ##tldbg _KPSE_LIB_FLAGS_TL: kpathsea (kpathsea) lt.
17141
17142 # Check whether --with-system-kpathsea was given.
17143 if test ${with_system_kpathsea+y}
17144 then :
17145 withval=$with_system_kpathsea;
17146 fi
17147 if test "x$with_system_kpathsea" = xyes; then
17148 if $PKG_CONFIG kpathsea; then
17149 KPATHSEA_INCLUDES=`$PKG_CONFIG kpathsea --cflags`
17150 KPATHSEA_LIBS=`$PKG_CONFIG kpathsea --libs`
17151 elif test "x$need_kpathsea:$with_system_kpathsea" = xyes:yes; then
17152 as_fn_error $? "did not find kpathsea" "$LINENO" 5
17153 fi
17154 else
17155 KPATHSEA_INCLUDES="-I$kpse_BLD/texk -I$kpse_SRC/texk"
17156 KPATHSEA_LIBS="$kpse_BLD/texk/kpathsea/libkpathsea.la"
17157 KPATHSEA_DEPEND='${top_builddir}/../kpathsea/libkpathsea.la'
17158 KPATHSEA_RULE='# Rebuild libkpathsea
17159 $(KPATHSEA_DEPEND): ${top_srcdir}/../kpathsea/*.[ch] ${top_builddir}/../kpathsea/paths.h
17160 cd ${top_builddir}/../kpathsea && $(MAKE) $(AM_MAKEFLAGS) rebuild
17161 ${top_builddir}/../kpathsea/paths.h:
17162 cd ${top_builddir}/../kpathsea && $(MAKE) $(AM_MAKEFLAGS) rebuild'
17163 fi
17164
17165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libkpathsea supports debugging" >&5
17166 printf %s "checking if libkpathsea supports debugging... " >&6; }
17167 if test ${kpse_cv_kpse_debug+y}
17168 then :
17169 printf %s "(cached) " >&6
17170 else case e in #(
17171 e) eval CPPFLAGS=\"$KPATHSEA_INCLUDES \$CPPFLAGS\"
17172 eval LIBS=\"$KPATHSEA_LIBS \$LIBS\"
17173
17174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17175 /* end confdefs.h. */
17176 #include <kpathsea/kpathsea.h>
17177 int
17178 main (void)
17179 {
17180 FILE *f = fopen("f", "r")
17181 ;
17182 return 0;
17183 }
17184 _ACEOF
17185 if ac_fn_c_try_link "$LINENO"
17186 then :
17187 kpse_cv_kpse_debug=yes
17188 else case e in #(
17189 e) kpse_cv_kpse_debug=no ;;
17190 esac
17191 fi
17192 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17193 conftest$ac_exeext conftest.$ac_ext
17194 CPPFLAGS=$kpse_save_CPPFLAGS
17195 LIBS=$kpse_save_LIBS
17196 ;;
17197 esac
17198 fi
17199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_kpse_debug" >&5
17200 printf "%s\n" "$kpse_cv_kpse_debug" >&6; }
17201 if test "x$kpse_cv_kpse_debug" != xyes
17202 then :
17203 KPATHSEA_INCLUDES="$KPATHSEA_INCLUDES -DNO_DEBUG"
17204 fi
17205
17206
17207 if test "x$enable_build" != xno || test -f config.force; then
17208
17209 eval CPPFLAGS=\"$KPATHSEA_INCLUDES \$CPPFLAGS\"
17210 eval LIBS=\"$KPATHSEA_LIBS \$LIBS\"
17211
17212 ac_fn_c_check_header_compile "$LINENO" "kpathsea/version.h" "ac_cv_header_kpathsea_version_h" "$ac_includes_default"
17213 if test "x$ac_cv_header_kpathsea_version_h" = xyes
17214 then :
17215
17216 else case e in #(
17217 e) as_fn_error $? "Sorry, kpathsea too old" "$LINENO" 5 ;;
17218 esac
17219 fi
17220
17221 CPPFLAGS=$kpse_save_CPPFLAGS
17222 LIBS=$kpse_save_LIBS
17223
17224
17225 echo timestamp >config.force
17226 fi
17227
17228 ac_config_files="$ac_config_files Makefile"
17229
17230
17231 cat >confcache <<\_ACEOF
17232 # This file is a shell script that caches the results of configure
17233 # tests run on this system so they can be shared between configure
17234 # scripts and configure runs, see configure's option --config-cache.
17235 # It is not useful on other systems. If it contains results you don't
17236 # want to keep, you may remove or edit it.
17237 #
17238 # config.status only pays attention to the cache file if you give it
17239 # the --recheck option to rerun configure.
17240 #
17241 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
17242 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
17243 # following values.
17244
17245 _ACEOF
17246
17247 # The following way of writing the cache mishandles newlines in values,
17248 # but we know of no workaround that is simple, portable, and efficient.
17249 # So, we kill variables containing newlines.
17250 # Ultrix sh set writes to stderr and can't be redirected directly,
17251 # and sets the high bit in the cache file unless we assign to the vars.
17252 (
17253 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17254 eval ac_val=\$$ac_var
17255 case $ac_val in #(
17256 *${as_nl}*)
17257 case $ac_var in #(
17258 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17259 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17260 esac
17261 case $ac_var in #(
17262 _ | IFS | as_nl) ;; #(
17263 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17264 *) { eval $ac_var=; unset $ac_var;} ;;
17265 esac ;;
17266 esac
17267 done
17268
17269 (set) 2>&1 |
17270 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17271 *${as_nl}ac_space=\ *)
17272 # 'set' does not quote correctly, so add quotes: double-quote
17273 # substitution turns \\\\ into \\, and sed turns \\ into \.
17274 sed -n \
17275 "s/'/'\\\\''/g;
17276 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17277 ;; #(
17278 *)
17279 # 'set' quotes correctly as required by POSIX, so do not add quotes.
17280 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17281 ;;
17282 esac |
17283 sort
17284 ) |
17285 sed '
17286 /^ac_cv_env_/b end
17287 t clear
17288 :clear
17289 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
17290 t end
17291 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17292 :end' >>confcache
17293 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17294 if test -w "$cache_file"; then
17295 if test "x$cache_file" != "x/dev/null"; then
17296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17297 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
17298 if test ! -f "$cache_file" || test -h "$cache_file"; then
17299 cat confcache >"$cache_file"
17300 else
17301 case $cache_file in #(
17302 */* | ?:*)
17303 mv -f confcache "$cache_file"$$ &&
17304 mv -f "$cache_file"$$ "$cache_file" ;; #(
17305 *)
17306 mv -f confcache "$cache_file" ;;
17307 esac
17308 fi
17309 fi
17310 else
17311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17312 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
17313 fi
17314 fi
17315 rm -f confcache
17316
17317 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17318 # Let make expand exec_prefix.
17319 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17320
17321 DEFS=-DHAVE_CONFIG_H
17322
17323 ac_libobjs=
17324 ac_ltlibobjs=
17325 U=
17326 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17327 # 1. Remove the extension, and $U if already installed.
17328 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17329 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
17330 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17331 # will be set to the directory where LIBOBJS objects are built.
17332 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17333 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17334 done
17335 LIBOBJS=$ac_libobjs
17336
17337 LTLIBOBJS=$ac_ltlibobjs
17338
17339
17340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17341 printf %s "checking that generated files are newer than configure... " >&6; }
17342 if test -n "$am_sleep_pid"; then
17343 # Hide warnings about reused PIDs.
17344 wait $am_sleep_pid 2>/dev/null
17345 fi
17346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
17347 printf "%s\n" "done" >&6; }
17348 case $enable_silent_rules in # (((
17349 yes) AM_DEFAULT_VERBOSITY=0;;
17350 no) AM_DEFAULT_VERBOSITY=1;;
17351 esac
17352 if test $am_cv_make_support_nested_variables = yes; then
17353 AM_V='$(V)'
17354 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
17355 else
17356 AM_V=$AM_DEFAULT_VERBOSITY
17357 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
17358 fi
17359
17360 if test -n "$EXEEXT"; then
17361 am__EXEEXT_TRUE=
17362 am__EXEEXT_FALSE='#'
17363 else
17364 am__EXEEXT_TRUE='#'
17365 am__EXEEXT_FALSE=
17366 fi
17367
17368 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17369 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17370 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17371 fi
17372 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17373 as_fn_error $? "conditional \"AMDEP\" was never defined.
17374 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17375 fi
17376 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17377 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17378 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17379 fi
17380 # Check whether --enable-year2038 was given.
17381 if test ${enable_year2038+y}
17382 then :
17383 enableval=$enable_year2038;
17384 fi
17385
17386
17387 : "${CONFIG_STATUS=./config.status}"
17388 ac_write_fail=0
17389 ac_clean_files_save=$ac_clean_files
17390 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17392 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
17393 as_write_fail=0
17394 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17395 #! $SHELL
17396 # Generated by $as_me.
17397 # Run this file to recreate the current configuration.
17398 # Compiler output produced by configure, useful for debugging
17399 # configure, is in config.log if it exists.
17400
17401 debug=false
17402 ac_cs_recheck=false
17403 ac_cs_silent=false
17404
17405 SHELL=\${CONFIG_SHELL-$SHELL}
17406 export SHELL
17407 _ASEOF
17408 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17409 ## -------------------- ##
17410 ## M4sh Initialization. ##
17411 ## -------------------- ##
17412
17413 # Be more Bourne compatible
17414 DUALCASE=1; export DUALCASE # for MKS sh
17415 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
17416 then :
17417 emulate sh
17418 NULLCMD=:
17419 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17420 # is contrary to our usage. Disable this feature.
17421 alias -g '${1+"$@"}'='"$@"'
17422 setopt NO_GLOB_SUBST
17423 else case e in #(
17424 e) case `(set -o) 2>/dev/null` in #(
17425 *posix*) :
17426 set -o posix ;; #(
17427 *) :
17428 ;;
17429 esac ;;
17430 esac
17431 fi
17432
17433
17434
17435 # Reset variables that may have inherited troublesome values from
17436 # the environment.
17437
17438 # IFS needs to be set, to space, tab, and newline, in precisely that order.
17439 # (If _AS_PATH_WALK were called with IFS unset, it would have the
17440 # side effect of setting IFS to empty, thus disabling word splitting.)
17441 # Quoting is to prevent editors from complaining about space-tab.
17442 as_nl='
17443 '
17444 export as_nl
17445 IFS=" "" $as_nl"
17446
17447 PS1='$ '
17448 PS2='> '
17449 PS4='+ '
17450
17451 # Ensure predictable behavior from utilities with locale-dependent output.
17452 LC_ALL=C
17453 export LC_ALL
17454 LANGUAGE=C
17455 export LANGUAGE
17456
17457 # We cannot yet rely on "unset" to work, but we need these variables
17458 # to be unset--not just set to an empty or harmless value--now, to
17459 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
17460 # also avoids known problems related to "unset" and subshell syntax
17461 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
17462 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
17463 do eval test \${$as_var+y} \
17464 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17465 done
17466
17467 # Ensure that fds 0, 1, and 2 are open.
17468 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
17469 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
17470 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
17471
17472 # The user is always right.
17473 if ${PATH_SEPARATOR+false} :; then
17474 PATH_SEPARATOR=:
17475 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17476 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17477 PATH_SEPARATOR=';'
17478 }
17479 fi
17480
17481
17482 # Find who we are. Look in the path if we contain no directory separator.
17483 as_myself=
17484 case $0 in #((
17485 *[\\/]* ) as_myself=$0 ;;
17486 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17487 for as_dir in $PATH
17488 do
17489 IFS=$as_save_IFS
17490 case $as_dir in #(((
17491 '') as_dir=./ ;;
17492 */) ;;
17493 *) as_dir=$as_dir/ ;;
17494 esac
17495 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
17496 done
17497 IFS=$as_save_IFS
17498
17499 ;;
17500 esac
17501 # We did not find ourselves, most probably we were run as 'sh COMMAND'
17502 # in which case we are not to be found in the path.
17503 if test "x$as_myself" = x; then
17504 as_myself=$0
17505 fi
17506 if test ! -f "$as_myself"; then
17507 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17508 exit 1
17509 fi
17510
17511
17512
17513 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17514 # ----------------------------------------
17515 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17516 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17517 # script with STATUS, using 1 if that was 0.
17518 as_fn_error ()
17519 {
17520 as_status=$1; test $as_status -eq 0 && as_status=1
17521 if test "$4"; then
17522 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17523 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17524 fi
17525 printf "%s\n" "$as_me: error: $2" >&2
17526 as_fn_exit $as_status
17527 } # as_fn_error
17528
17529
17530 # as_fn_set_status STATUS
17531 # -----------------------
17532 # Set $? to STATUS, without forking.
17533 as_fn_set_status ()
17534 {
17535 return $1
17536 } # as_fn_set_status
17537
17538 # as_fn_exit STATUS
17539 # -----------------
17540 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17541 as_fn_exit ()
17542 {
17543 set +e
17544 as_fn_set_status $1
17545 exit $1
17546 } # as_fn_exit
17547
17548 # as_fn_unset VAR
17549 # ---------------
17550 # Portably unset VAR.
17551 as_fn_unset ()
17552 {
17553 { eval $1=; unset $1;}
17554 }
17555 as_unset=as_fn_unset
17556
17557 # as_fn_append VAR VALUE
17558 # ----------------------
17559 # Append the text in VALUE to the end of the definition contained in VAR. Take
17560 # advantage of any shell optimizations that allow amortized linear growth over
17561 # repeated appends, instead of the typical quadratic growth present in naive
17562 # implementations.
17563 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
17564 then :
17565 eval 'as_fn_append ()
17566 {
17567 eval $1+=\$2
17568 }'
17569 else case e in #(
17570 e) as_fn_append ()
17571 {
17572 eval $1=\$$1\$2
17573 } ;;
17574 esac
17575 fi # as_fn_append
17576
17577 # as_fn_arith ARG...
17578 # ------------------
17579 # Perform arithmetic evaluation on the ARGs, and store the result in the
17580 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17581 # must be portable across $(()) and expr.
17582 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
17583 then :
17584 eval 'as_fn_arith ()
17585 {
17586 as_val=$(( $* ))
17587 }'
17588 else case e in #(
17589 e) as_fn_arith ()
17590 {
17591 as_val=`expr "$@" || test $? -eq 1`
17592 } ;;
17593 esac
17594 fi # as_fn_arith
17595
17596
17597 if expr a : '\(a\)' >/dev/null 2>&1 &&
17598 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17599 as_expr=expr
17600 else
17601 as_expr=false
17602 fi
17603
17604 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17605 as_basename=basename
17606 else
17607 as_basename=false
17608 fi
17609
17610 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17611 as_dirname=dirname
17612 else
17613 as_dirname=false
17614 fi
17615
17616 as_me=`$as_basename -- "$0" ||
17617 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17618 X"$0" : 'X\(//\)$' \| \
17619 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17620 printf "%s\n" X/"$0" |
17621 sed '/^.*\/\([^/][^/]*\)\/*$/{
17622 s//\1/
17623 q
17624 }
17625 /^X\/\(\/\/\)$/{
17626 s//\1/
17627 q
17628 }
17629 /^X\/\(\/\).*/{
17630 s//\1/
17631 q
17632 }
17633 s/.*/./; q'`
17634
17635 # Avoid depending upon Character Ranges.
17636 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17637 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17638 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17639 as_cr_digits='0123456789'
17640 as_cr_alnum=$as_cr_Letters$as_cr_digits
17641
17642
17643 # Determine whether it's possible to make 'echo' print without a newline.
17644 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
17645 # for compatibility with existing Makefiles.
17646 ECHO_C= ECHO_N= ECHO_T=
17647 case `echo -n x` in #(((((
17648 -n*)
17649 case `echo 'xy\c'` in
17650 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17651 xy) ECHO_C='\c';;
17652 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17653 ECHO_T=' ';;
17654 esac;;
17655 *)
17656 ECHO_N='-n';;
17657 esac
17658
17659 # For backward compatibility with old third-party macros, we provide
17660 # the shell variables $as_echo and $as_echo_n. New code should use
17661 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
17662 as_echo='printf %s\n'
17663 as_echo_n='printf %s'
17664
17665 rm -f conf$$ conf$$.exe conf$$.file
17666 if test -d conf$$.dir; then
17667 rm -f conf$$.dir/conf$$.file
17668 else
17669 rm -f conf$$.dir
17670 mkdir conf$$.dir 2>/dev/null
17671 fi
17672 if (echo >conf$$.file) 2>/dev/null; then
17673 if ln -s conf$$.file conf$$ 2>/dev/null; then
17674 as_ln_s='ln -s'
17675 # ... but there are two gotchas:
17676 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
17677 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
17678 # In both cases, we have to default to 'cp -pR'.
17679 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17680 as_ln_s='cp -pR'
17681 elif ln conf$$.file conf$$ 2>/dev/null; then
17682 as_ln_s=ln
17683 else
17684 as_ln_s='cp -pR'
17685 fi
17686 else
17687 as_ln_s='cp -pR'
17688 fi
17689 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17690 rmdir conf$$.dir 2>/dev/null
17691
17692
17693 # as_fn_mkdir_p
17694 # -------------
17695 # Create "$as_dir" as a directory, including parents if necessary.
17696 as_fn_mkdir_p ()
17697 {
17698
17699 case $as_dir in #(
17700 -*) as_dir=./$as_dir;;
17701 esac
17702 test -d "$as_dir" || eval $as_mkdir_p || {
17703 as_dirs=
17704 while :; do
17705 case $as_dir in #(
17706 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17707 *) as_qdir=$as_dir;;
17708 esac
17709 as_dirs="'$as_qdir' $as_dirs"
17710 as_dir=`$as_dirname -- "$as_dir" ||
17711 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17712 X"$as_dir" : 'X\(//\)[^/]' \| \
17713 X"$as_dir" : 'X\(//\)$' \| \
17714 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17715 printf "%s\n" X"$as_dir" |
17716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17717 s//\1/
17718 q
17719 }
17720 /^X\(\/\/\)[^/].*/{
17721 s//\1/
17722 q
17723 }
17724 /^X\(\/\/\)$/{
17725 s//\1/
17726 q
17727 }
17728 /^X\(\/\).*/{
17729 s//\1/
17730 q
17731 }
17732 s/.*/./; q'`
17733 test -d "$as_dir" && break
17734 done
17735 test -z "$as_dirs" || eval "mkdir $as_dirs"
17736 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17737
17738
17739 } # as_fn_mkdir_p
17740 if mkdir -p . 2>/dev/null; then
17741 as_mkdir_p='mkdir -p "$as_dir"'
17742 else
17743 test -d ./-p && rmdir ./-p
17744 as_mkdir_p=false
17745 fi
17746
17747
17748 # as_fn_executable_p FILE
17749 # -----------------------
17750 # Test if FILE is an executable regular file.
17751 as_fn_executable_p ()
17752 {
17753 test -f "$1" && test -x "$1"
17754 } # as_fn_executable_p
17755 as_test_x='test -x'
17756 as_executable_p=as_fn_executable_p
17757
17758 # Sed expression to map a string onto a valid CPP name.
17759 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
17760 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
17761
17762 # Sed expression to map a string onto a valid variable name.
17763 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
17764 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
17765
17766
17767 exec 6>&1
17768 ## ----------------------------------- ##
17769 ## Main body of $CONFIG_STATUS script. ##
17770 ## ----------------------------------- ##
17771 _ASEOF
17772 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17773
17774 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17775 # Save the log message, to keep $0 and so on meaningful, and to
17776 # report actual input values of CONFIG_FILES etc. instead of their
17777 # values after options handling.
17778 ac_log="
17779 This file was extended by afm2pl (TeX Live) $as_me 0.7.1, which was
17780 generated by GNU Autoconf 2.72. Invocation command line was
17781
17782 CONFIG_FILES = $CONFIG_FILES
17783 CONFIG_HEADERS = $CONFIG_HEADERS
17784 CONFIG_LINKS = $CONFIG_LINKS
17785 CONFIG_COMMANDS = $CONFIG_COMMANDS
17786 $ $0 $@
17787
17788 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17789 "
17790
17791 _ACEOF
17792
17793 case $ac_config_files in *"
17794 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17795 esac
17796
17797 case $ac_config_headers in *"
17798 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17799 esac
17800
17801
17802 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17803 # Files that config.status was made for.
17804 config_files="$ac_config_files"
17805 config_headers="$ac_config_headers"
17806 config_commands="$ac_config_commands"
17807
17808 _ACEOF
17809
17810 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17811 ac_cs_usage="\
17812 '$as_me' instantiates files and other configuration actions
17813 from templates according to the current configuration. Unless the files
17814 and actions are specified as TAGs, all are instantiated by default.
17815
17816 Usage: $0 [OPTION]... [TAG]...
17817
17818 -h, --help print this help, then exit
17819 -V, --version print version number and configuration settings, then exit
17820 --config print configuration, then exit
17821 -q, --quiet, --silent
17822 do not print progress messages
17823 -d, --debug don't remove temporary files
17824 --recheck update $as_me by reconfiguring in the same conditions
17825 --file=FILE[:TEMPLATE]
17826 instantiate the configuration file FILE
17827 --header=FILE[:TEMPLATE]
17828 instantiate the configuration header FILE
17829
17830 Configuration files:
17831 $config_files
17832
17833 Configuration headers:
17834 $config_headers
17835
17836 Configuration commands:
17837 $config_commands
17838
17839 Report bugs to <[email protected]>."
17840
17841 _ACEOF
17842 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
17843 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
17844 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17845 ac_cs_config='$ac_cs_config_escaped'
17846 ac_cs_version="\\
17847 afm2pl (TeX Live) config.status 0.7.1
17848 configured by $0, generated by GNU Autoconf 2.72,
17849 with options \\"\$ac_cs_config\\"
17850
17851 Copyright (C) 2023 Free Software Foundation, Inc.
17852 This config.status script is free software; the Free Software Foundation
17853 gives unlimited permission to copy, distribute and modify it."
17854
17855 ac_pwd='$ac_pwd'
17856 srcdir='$srcdir'
17857 INSTALL='$INSTALL'
17858 MKDIR_P='$MKDIR_P'
17859 AWK='$AWK'
17860 test -n "\$AWK" || AWK=awk
17861 _ACEOF
17862
17863 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17864 # The default lists apply if the user does not specify any file.
17865 ac_need_defaults=:
17866 while test $# != 0
17867 do
17868 case $1 in
17869 --*=?*)
17870 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17871 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17872 ac_shift=:
17873 ;;
17874 --*=)
17875 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17876 ac_optarg=
17877 ac_shift=:
17878 ;;
17879 *)
17880 ac_option=$1
17881 ac_optarg=$2
17882 ac_shift=shift
17883 ;;
17884 esac
17885
17886 case $ac_option in
17887 # Handling of the options.
17888 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17889 ac_cs_recheck=: ;;
17890 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17891 printf "%s\n" "$ac_cs_version"; exit ;;
17892 --config | --confi | --conf | --con | --co | --c )
17893 printf "%s\n" "$ac_cs_config"; exit ;;
17894 --debug | --debu | --deb | --de | --d | -d )
17895 debug=: ;;
17896 --file | --fil | --fi | --f )
17897 $ac_shift
17898 case $ac_optarg in
17899 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17900 '') as_fn_error $? "missing file argument" ;;
17901 esac
17902 as_fn_append CONFIG_FILES " '$ac_optarg'"
17903 ac_need_defaults=false;;
17904 --header | --heade | --head | --hea )
17905 $ac_shift
17906 case $ac_optarg in
17907 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17908 esac
17909 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17910 ac_need_defaults=false;;
17911 --he | --h)
17912 # Conflict between --help and --header
17913 as_fn_error $? "ambiguous option: '$1'
17914 Try '$0 --help' for more information.";;
17915 --help | --hel | -h )
17916 printf "%s\n" "$ac_cs_usage"; exit ;;
17917 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17918 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17919 ac_cs_silent=: ;;
17920
17921 # This is an error.
17922 -*) as_fn_error $? "unrecognized option: '$1'
17923 Try '$0 --help' for more information." ;;
17924
17925 *) as_fn_append ac_config_targets " $1"
17926 ac_need_defaults=false ;;
17927
17928 esac
17929 shift
17930 done
17931
17932 ac_configure_extra_args=
17933
17934 if $ac_cs_silent; then
17935 exec 6>/dev/null
17936 ac_configure_extra_args="$ac_configure_extra_args --silent"
17937 fi
17938
17939 _ACEOF
17940 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17941 if \$ac_cs_recheck; then
17942 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17943 shift
17944 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
17945 CONFIG_SHELL='$SHELL'
17946 export CONFIG_SHELL
17947 exec "\$@"
17948 fi
17949
17950 _ACEOF
17951 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17952 exec 5>>config.log
17953 {
17954 echo
17955 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17956 ## Running $as_me. ##
17957 _ASBOX
17958 printf "%s\n" "$ac_log"
17959 } >&5
17960
17961 _ACEOF
17962 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17963 #
17964 # INIT-COMMANDS
17965 #
17966 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
17967
17968
17969 # The HP-UX ksh and POSIX shell print the target directory to stdout
17970 # if CDPATH is set.
17971 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17972
17973 sed_quote_subst='$sed_quote_subst'
17974 double_quote_subst='$double_quote_subst'
17975 delay_variable_subst='$delay_variable_subst'
17976 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17977 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17978 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
17979 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17980 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17981 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17982 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17983 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17984 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17985 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
17986 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17987 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17988 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17989 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17990 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17991 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17992 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17993 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17994 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17995 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17996 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17997 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17998 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17999 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18000 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18001 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18002 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18003 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18004 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18005 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18006 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18007 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18008 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18009 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18010 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18011 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18012 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18013 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
18014 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18015 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18016 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18017 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18018 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18019 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18020 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
18021 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18022 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18023 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18024 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18025 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18026 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18027 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18028 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18029 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18030 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18031 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18032 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18033 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18034 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18035 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
18036 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18037 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"`'
18038 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
18039 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18040 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18041 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
18042 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18043 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18044 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18045 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18046 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18047 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18048 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18049 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18050 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18051 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18052 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18053 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18054 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18055 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18056 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18057 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18058 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18059 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18060 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18061 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18062 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18063 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18064 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18065 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18066 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18067 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18068 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18069 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18070 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18071 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18072 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18073 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18074 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18075 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18076 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18077 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18078 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18079 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18080 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18081 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18082 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18083 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18084 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18085 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18086 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18087 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18088 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18089 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18090 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18091 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18092 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18093 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18094 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18095 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18096 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18097 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18098 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18099 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18100 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18101 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18102 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18103 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18104 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18105 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18106 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
18107 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
18108 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18109 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18110 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18111 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18112 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18113 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18114
18115 LTCC='$LTCC'
18116 LTCFLAGS='$LTCFLAGS'
18117 compiler='$compiler_DEFAULT'
18118
18119 # A function that is used when there is no print builtin or printf.
18120 func_fallback_echo ()
18121 {
18122 eval 'cat <<_LTECHO_EOF
18123 \$1
18124 _LTECHO_EOF'
18125 }
18126
18127 # Quote evaled strings.
18128 for var in AS \
18129 DLLTOOL \
18130 OBJDUMP \
18131 SHELL \
18132 ECHO \
18133 PATH_SEPARATOR \
18134 SED \
18135 GREP \
18136 EGREP \
18137 FGREP \
18138 LD \
18139 NM \
18140 LN_S \
18141 lt_SP2NL \
18142 lt_NL2SP \
18143 reload_flag \
18144 FILECMD \
18145 deplibs_check_method \
18146 file_magic_cmd \
18147 file_magic_glob \
18148 want_nocaseglob \
18149 sharedlib_from_linklib_cmd \
18150 AR \
18151 archiver_list_spec \
18152 STRIP \
18153 RANLIB \
18154 CC \
18155 CFLAGS \
18156 compiler \
18157 lt_cv_sys_global_symbol_pipe \
18158 lt_cv_sys_global_symbol_to_cdecl \
18159 lt_cv_sys_global_symbol_to_import \
18160 lt_cv_sys_global_symbol_to_c_name_address \
18161 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18162 lt_cv_nm_interface \
18163 nm_file_list_spec \
18164 lt_cv_truncate_bin \
18165 lt_prog_compiler_no_builtin_flag \
18166 lt_prog_compiler_pic \
18167 lt_prog_compiler_wl \
18168 lt_prog_compiler_static \
18169 lt_cv_prog_compiler_c_o \
18170 need_locks \
18171 MANIFEST_TOOL \
18172 DSYMUTIL \
18173 NMEDIT \
18174 LIPO \
18175 OTOOL \
18176 OTOOL64 \
18177 shrext_cmds \
18178 export_dynamic_flag_spec \
18179 whole_archive_flag_spec \
18180 compiler_needs_object \
18181 with_gnu_ld \
18182 allow_undefined_flag \
18183 no_undefined_flag \
18184 hardcode_libdir_flag_spec \
18185 hardcode_libdir_separator \
18186 exclude_expsyms \
18187 include_expsyms \
18188 file_list_spec \
18189 variables_saved_for_relink \
18190 libname_spec \
18191 library_names_spec \
18192 soname_spec \
18193 install_override_mode \
18194 finish_eval \
18195 old_striplib \
18196 striplib; do
18197 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18198 *[\\\\\\\`\\"\\\$]*)
18199 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18200 ;;
18201 *)
18202 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18203 ;;
18204 esac
18205 done
18206
18207 # Double-quote double-evaled strings.
18208 for var in reload_cmds \
18209 old_postinstall_cmds \
18210 old_postuninstall_cmds \
18211 old_archive_cmds \
18212 extract_expsyms_cmds \
18213 old_archive_from_new_cmds \
18214 old_archive_from_expsyms_cmds \
18215 archive_cmds \
18216 archive_expsym_cmds \
18217 module_cmds \
18218 module_expsym_cmds \
18219 export_symbols_cmds \
18220 prelink_cmds \
18221 postlink_cmds \
18222 postinstall_cmds \
18223 postuninstall_cmds \
18224 finish_cmds \
18225 sys_lib_search_path_spec \
18226 configure_time_dlsearch_path \
18227 configure_time_lt_sys_library_path; do
18228 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18229 *[\\\\\\\`\\"\\\$]*)
18230 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18231 ;;
18232 *)
18233 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18234 ;;
18235 esac
18236 done
18237
18238 ac_aux_dir='$ac_aux_dir'
18239
18240 # See if we are running on zsh, and set the options that allow our
18241 # commands through without removal of \ escapes INIT.
18242 if test -n "\${ZSH_VERSION+set}"; then
18243 setopt NO_GLOB_SUBST
18244 fi
18245
18246
18247 PACKAGE='$PACKAGE'
18248 VERSION='$VERSION'
18249 RM='$RM'
18250 ofile='$ofile'
18251
18252 ac_aux_dir='$ac_aux_dir'
18253
18254
18255
18256 _ACEOF
18257
18258 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18259
18260 # Handling of arguments.
18261 for ac_config_target in $ac_config_targets
18262 do
18263 case $ac_config_target in
18264 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18265 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18266 "c-auto.h") CONFIG_HEADERS="$CONFIG_HEADERS c-auto.h:c-auto.in" ;;
18267 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18268
18269 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
18270 esac
18271 done
18272
18273
18274 # If the user did not use the arguments to specify the items to instantiate,
18275 # then the envvar interface is used. Set only those that are not.
18276 # We use the long form for the default assignment because of an extremely
18277 # bizarre bug on SunOS 4.1.3.
18278 if $ac_need_defaults; then
18279 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
18280 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
18281 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
18282 fi
18283
18284 # Have a temporary directory for convenience. Make it in the build tree
18285 # simply because there is no reason against having it here, and in addition,
18286 # creating and moving files from /tmp can sometimes cause problems.
18287 # Hook for its removal unless debugging.
18288 # Note that there is a small window in which the directory will not be cleaned:
18289 # after its creation but before its name has been assigned to '$tmp'.
18290 $debug ||
18291 {
18292 tmp= ac_tmp=
18293 trap 'exit_status=$?
18294 : "${ac_tmp:=$tmp}"
18295 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18296 ' 0
18297 trap 'as_fn_exit 1' 1 2 13 15
18298 }
18299 # Create a (secure) tmp directory for tmp files.
18300
18301 {
18302 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18303 test -d "$tmp"
18304 } ||
18305 {
18306 tmp=./conf$$-$RANDOM
18307 (umask 077 && mkdir "$tmp")
18308 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18309 ac_tmp=$tmp
18310
18311 # Set up the scripts for CONFIG_FILES section.
18312 # No need to generate them if there are no CONFIG_FILES.
18313 # This happens for instance with './config.status config.h'.
18314 if test -n "$CONFIG_FILES"; then
18315
18316
18317 ac_cr=`echo X | tr X '\015'`
18318 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18319 # But we know of no other shell where ac_cr would be empty at this
18320 # point, so we can use a bashism as a fallback.
18321 if test "x$ac_cr" = x; then
18322 eval ac_cr=\$\'\\r\'
18323 fi
18324 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18325 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18326 ac_cs_awk_cr='\\r'
18327 else
18328 ac_cs_awk_cr=$ac_cr
18329 fi
18330
18331 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18332 _ACEOF
18333
18334
18335 {
18336 echo "cat >conf$$subs.awk <<_ACEOF" &&
18337 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18338 echo "_ACEOF"
18339 } >conf$$subs.sh ||
18340 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18341 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18342 ac_delim='%!_!# '
18343 for ac_last_try in false false false false false :; do
18344 . ./conf$$subs.sh ||
18345 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18346
18347 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18348 if test $ac_delim_n = $ac_delim_num; then
18349 break
18350 elif $ac_last_try; then
18351 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18352 else
18353 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18354 fi
18355 done
18356 rm -f conf$$subs.sh
18357
18358 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18359 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18360 _ACEOF
18361 sed -n '
18362 h
18363 s/^/S["/; s/!.*/"]=/
18364 p
18365 g
18366 s/^[^!]*!//
18367 :repl
18368 t repl
18369 s/'"$ac_delim"'$//
18370 t delim
18371 :nl
18372 h
18373 s/\(.\{148\}\)..*/\1/
18374 t more1
18375 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18376 p
18377 n
18378 b repl
18379 :more1
18380 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18381 p
18382 g
18383 s/.\{148\}//
18384 t nl
18385 :delim
18386 h
18387 s/\(.\{148\}\)..*/\1/
18388 t more2
18389 s/["\\]/\\&/g; s/^/"/; s/$/"/
18390 p
18391 b
18392 :more2
18393 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18394 p
18395 g
18396 s/.\{148\}//
18397 t delim
18398 ' <conf$$subs.awk | sed '
18399 /^[^""]/{
18400 N
18401 s/\n//
18402 }
18403 ' >>$CONFIG_STATUS || ac_write_fail=1
18404 rm -f conf$$subs.awk
18405 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18406 _ACAWK
18407 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18408 for (key in S) S_is_set[key] = 1
18409 FS = ""
18410
18411 }
18412 {
18413 line = $ 0
18414 nfields = split(line, field, "@")
18415 substed = 0
18416 len = length(field[1])
18417 for (i = 2; i < nfields; i++) {
18418 key = field[i]
18419 keylen = length(key)
18420 if (S_is_set[key]) {
18421 value = S[key]
18422 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18423 len += length(value) + length(field[++i])
18424 substed = 1
18425 } else
18426 len += 1 + keylen
18427 }
18428
18429 print line
18430 }
18431
18432 _ACAWK
18433 _ACEOF
18434 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18435 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18436 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18437 else
18438 cat
18439 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18440 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18441 _ACEOF
18442
18443 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18444 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18445 # trailing colons and then remove the whole line if VPATH becomes empty
18446 # (actually we leave an empty line to preserve line numbers).
18447 if test "x$srcdir" = x.; then
18448 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18449 h
18450 s///
18451 s/^/:/
18452 s/[ ]*$/:/
18453 s/:\$(srcdir):/:/g
18454 s/:\${srcdir}:/:/g
18455 s/:@srcdir@:/:/g
18456 s/^:*//
18457 s/:*$//
18458 x
18459 s/\(=[ ]*\).*/\1/
18460 G
18461 s/\n//
18462 s/^[^=]*=[ ]*$//
18463 }'
18464 fi
18465
18466 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18467 fi # test -n "$CONFIG_FILES"
18468
18469 # Set up the scripts for CONFIG_HEADERS section.
18470 # No need to generate them if there are no CONFIG_HEADERS.
18471 # This happens for instance with './config.status Makefile'.
18472 if test -n "$CONFIG_HEADERS"; then
18473 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18474 BEGIN {
18475 _ACEOF
18476
18477 # Transform confdefs.h into an awk script 'defines.awk', embedded as
18478 # here-document in config.status, that substitutes the proper values into
18479 # config.h.in to produce config.h.
18480
18481 # Create a delimiter string that does not exist in confdefs.h, to ease
18482 # handling of long lines.
18483 ac_delim='%!_!# '
18484 for ac_last_try in false false :; do
18485 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18486 if test -z "$ac_tt"; then
18487 break
18488 elif $ac_last_try; then
18489 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18490 else
18491 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18492 fi
18493 done
18494
18495 # For the awk script, D is an array of macro values keyed by name,
18496 # likewise P contains macro parameters if any. Preserve backslash
18497 # newline sequences.
18498
18499 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18500 sed -n '
18501 s/.\{148\}/&'"$ac_delim"'/g
18502 t rset
18503 :rset
18504 s/^[ ]*#[ ]*define[ ][ ]*/ /
18505 t def
18506 d
18507 :def
18508 s/\\$//
18509 t bsnl
18510 s/["\\]/\\&/g
18511 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18512 D["\1"]=" \3"/p
18513 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18514 d
18515 :bsnl
18516 s/["\\]/\\&/g
18517 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18518 D["\1"]=" \3\\\\\\n"\\/p
18519 t cont
18520 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18521 t cont
18522 d
18523 :cont
18524 n
18525 s/.\{148\}/&'"$ac_delim"'/g
18526 t clear
18527 :clear
18528 s/\\$//
18529 t bsnlc
18530 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18531 d
18532 :bsnlc
18533 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18534 b cont
18535 ' <confdefs.h | sed '
18536 s/'"$ac_delim"'/"\\\
18537 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18538
18539 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18540 for (key in D) D_is_set[key] = 1
18541 FS = ""
18542 }
18543 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18544 line = \$ 0
18545 split(line, arg, " ")
18546 if (arg[1] == "#") {
18547 defundef = arg[2]
18548 mac1 = arg[3]
18549 } else {
18550 defundef = substr(arg[1], 2)
18551 mac1 = arg[2]
18552 }
18553 split(mac1, mac2, "(") #)
18554 macro = mac2[1]
18555 prefix = substr(line, 1, index(line, defundef) - 1)
18556 if (D_is_set[macro]) {
18557 # Preserve the white space surrounding the "#".
18558 print prefix "define", macro P[macro] D[macro]
18559 next
18560 } else {
18561 # Replace #undef with comments. This is necessary, for example,
18562 # in the case of _POSIX_SOURCE, which is predefined and required
18563 # on some systems where configure will not decide to define it.
18564 if (defundef == "undef") {
18565 print "/*", prefix defundef, macro, "*/"
18566 next
18567 }
18568 }
18569 }
18570 { print }
18571 _ACAWK
18572 _ACEOF
18573 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18574 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18575 fi # test -n "$CONFIG_HEADERS"
18576
18577
18578 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18579 shift
18580 for ac_tag
18581 do
18582 case $ac_tag in
18583 :[FHLC]) ac_mode=$ac_tag; continue;;
18584 esac
18585 case $ac_mode$ac_tag in
18586 :[FHL]*:*);;
18587 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
18588 :[FH]-) ac_tag=-:-;;
18589 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18590 esac
18591 ac_save_IFS=$IFS
18592 IFS=:
18593 set x $ac_tag
18594 IFS=$ac_save_IFS
18595 shift
18596 ac_file=$1
18597 shift
18598
18599 case $ac_mode in
18600 :L) ac_source=$1;;
18601 :[FH])
18602 ac_file_inputs=
18603 for ac_f
18604 do
18605 case $ac_f in
18606 -) ac_f="$ac_tmp/stdin";;
18607 *) # Look for the file first in the build tree, then in the source tree
18608 # (if the path is not absolute). The absolute path cannot be DOS-style,
18609 # because $ac_f cannot contain ':'.
18610 test -f "$ac_f" ||
18611 case $ac_f in
18612 [\\/$]*) false;;
18613 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18614 esac ||
18615 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
18616 esac
18617 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18618 as_fn_append ac_file_inputs " '$ac_f'"
18619 done
18620
18621 # Let's still pretend it is 'configure' which instantiates (i.e., don't
18622 # use $as_me), people would be surprised to read:
18623 # /* config.h. Generated by config.status. */
18624 configure_input='Generated from '`
18625 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18626 `' by configure.'
18627 if test x"$ac_file" != x-; then
18628 configure_input="$ac_file. $configure_input"
18629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18630 printf "%s\n" "$as_me: creating $ac_file" >&6;}
18631 fi
18632 # Neutralize special characters interpreted by sed in replacement strings.
18633 case $configure_input in #(
18634 *\&* | *\|* | *\\* )
18635 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
18636 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18637 *) ac_sed_conf_input=$configure_input;;
18638 esac
18639
18640 case $ac_tag in
18641 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18642 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18643 esac
18644 ;;
18645 esac
18646
18647 ac_dir=`$as_dirname -- "$ac_file" ||
18648 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18649 X"$ac_file" : 'X\(//\)[^/]' \| \
18650 X"$ac_file" : 'X\(//\)$' \| \
18651 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18652 printf "%s\n" X"$ac_file" |
18653 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18654 s//\1/
18655 q
18656 }
18657 /^X\(\/\/\)[^/].*/{
18658 s//\1/
18659 q
18660 }
18661 /^X\(\/\/\)$/{
18662 s//\1/
18663 q
18664 }
18665 /^X\(\/\).*/{
18666 s//\1/
18667 q
18668 }
18669 s/.*/./; q'`
18670 as_dir="$ac_dir"; as_fn_mkdir_p
18671 ac_builddir=.
18672
18673 case "$ac_dir" in
18674 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18675 *)
18676 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
18677 # A ".." for each directory in $ac_dir_suffix.
18678 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18679 case $ac_top_builddir_sub in
18680 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18681 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18682 esac ;;
18683 esac
18684 ac_abs_top_builddir=$ac_pwd
18685 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18686 # for backward compatibility:
18687 ac_top_builddir=$ac_top_build_prefix
18688
18689 case $srcdir in
18690 .) # We are building in place.
18691 ac_srcdir=.
18692 ac_top_srcdir=$ac_top_builddir_sub
18693 ac_abs_top_srcdir=$ac_pwd ;;
18694 [\\/]* | ?:[\\/]* ) # Absolute name.
18695 ac_srcdir=$srcdir$ac_dir_suffix;
18696 ac_top_srcdir=$srcdir
18697 ac_abs_top_srcdir=$srcdir ;;
18698 *) # Relative name.
18699 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18700 ac_top_srcdir=$ac_top_build_prefix$srcdir
18701 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18702 esac
18703 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18704
18705
18706 case $ac_mode in
18707 :F)
18708 #
18709 # CONFIG_FILE
18710 #
18711
18712 case $INSTALL in
18713 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18714 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18715 esac
18716 ac_MKDIR_P=$MKDIR_P
18717 case $MKDIR_P in
18718 [\\/$]* | ?:[\\/]* ) ;;
18719 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18720 esac
18721 _ACEOF
18722
18723 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18724 # If the template does not know about datarootdir, expand it.
18725 # FIXME: This hack should be removed a few years after 2.60.
18726 ac_datarootdir_hack=; ac_datarootdir_seen=
18727 ac_sed_dataroot='
18728 /datarootdir/ {
18729 p
18730 q
18731 }
18732 /@datadir@/p
18733 /@docdir@/p
18734 /@infodir@/p
18735 /@localedir@/p
18736 /@mandir@/p'
18737 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18738 *datarootdir*) ac_datarootdir_seen=yes;;
18739 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18741 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18742 _ACEOF
18743 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18744 ac_datarootdir_hack='
18745 s&@datadir@&$datadir&g
18746 s&@docdir@&$docdir&g
18747 s&@infodir@&$infodir&g
18748 s&@localedir@&$localedir&g
18749 s&@mandir@&$mandir&g
18750 s&\\\${datarootdir}&$datarootdir&g' ;;
18751 esac
18752 _ACEOF
18753
18754 # Neutralize VPATH when '$srcdir' = '.'.
18755 # Shell code in configure.ac might set extrasub.
18756 # FIXME: do we really want to maintain this feature?
18757 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18758 ac_sed_extra="$ac_vpsub
18759 $extrasub
18760 _ACEOF
18761 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18762 :t
18763 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18764 s|@configure_input@|$ac_sed_conf_input|;t t
18765 s&@top_builddir@&$ac_top_builddir_sub&;t t
18766 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18767 s&@srcdir@&$ac_srcdir&;t t
18768 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18769 s&@top_srcdir@&$ac_top_srcdir&;t t
18770 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18771 s&@builddir@&$ac_builddir&;t t
18772 s&@abs_builddir@&$ac_abs_builddir&;t t
18773 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18774 s&@INSTALL@&$ac_INSTALL&;t t
18775 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18776 $ac_datarootdir_hack
18777 "
18778 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18779 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18780
18781 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18782 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18783 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18784 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
18786 which seems to be undefined. Please make sure it is defined" >&5
18787 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
18788 which seems to be undefined. Please make sure it is defined" >&2;}
18789
18790 rm -f "$ac_tmp/stdin"
18791 case $ac_file in
18792 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18793 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18794 esac \
18795 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18796 ;;
18797 :H)
18798 #
18799 # CONFIG_HEADER
18800 #
18801 if test x"$ac_file" != x-; then
18802 {
18803 printf "%s\n" "/* $configure_input */" >&1 \
18804 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18805 } >"$ac_tmp/config.h" \
18806 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18807 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18809 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
18810 else
18811 rm -f "$ac_file"
18812 mv "$ac_tmp/config.h" "$ac_file" \
18813 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18814 fi
18815 else
18816 printf "%s\n" "/* $configure_input */" >&1 \
18817 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18818 || as_fn_error $? "could not create -" "$LINENO" 5
18819 fi
18820 # Compute "$ac_file"'s index in $config_headers.
18821 _am_arg="$ac_file"
18822 _am_stamp_count=1
18823 for _am_header in $config_headers :; do
18824 case $_am_header in
18825 $_am_arg | $_am_arg:* )
18826 break ;;
18827 * )
18828 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18829 esac
18830 done
18831 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18832 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18833 X"$_am_arg" : 'X\(//\)[^/]' \| \
18834 X"$_am_arg" : 'X\(//\)$' \| \
18835 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18836 printf "%s\n" X"$_am_arg" |
18837 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18838 s//\1/
18839 q
18840 }
18841 /^X\(\/\/\)[^/].*/{
18842 s//\1/
18843 q
18844 }
18845 /^X\(\/\/\)$/{
18846 s//\1/
18847 q
18848 }
18849 /^X\(\/\).*/{
18850 s//\1/
18851 q
18852 }
18853 s/.*/./; q'`/stamp-h$_am_stamp_count
18854 ;;
18855
18856 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18857 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
18858 ;;
18859 esac
18860
18861
18862 case $ac_file$ac_mode in
18863 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18864 # Older Autoconf quotes --file arguments for eval, but not when files
18865 # are listed without --file. Let's play safe and only enable the eval
18866 # if we detect the quoting.
18867 # TODO: see whether this extra hack can be removed once we start
18868 # requiring Autoconf 2.70 or later.
18869 case $CONFIG_FILES in #(
18870 *\'*) :
18871 eval set x "$CONFIG_FILES" ;; #(
18872 *) :
18873 set x $CONFIG_FILES ;; #(
18874 *) :
18875 ;;
18876 esac
18877 shift
18878 # Used to flag and report bootstrapping failures.
18879 am_rc=0
18880 for am_mf
18881 do
18882 # Strip MF so we end up with the name of the file.
18883 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
18884 # Check whether this is an Automake generated Makefile which includes
18885 # dependency-tracking related rules and includes.
18886 # Grep'ing the whole file directly is not great: AIX grep has a line
18887 # limit of 2048, but all sed's we know have understand at least 4000.
18888 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
18889 || continue
18890 am_dirpart=`$as_dirname -- "$am_mf" ||
18891 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18892 X"$am_mf" : 'X\(//\)[^/]' \| \
18893 X"$am_mf" : 'X\(//\)$' \| \
18894 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
18895 printf "%s\n" X"$am_mf" |
18896 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18897 s//\1/
18898 q
18899 }
18900 /^X\(\/\/\)[^/].*/{
18901 s//\1/
18902 q
18903 }
18904 /^X\(\/\/\)$/{
18905 s//\1/
18906 q
18907 }
18908 /^X\(\/\).*/{
18909 s//\1/
18910 q
18911 }
18912 s/.*/./; q'`
18913 am_filepart=`$as_basename -- "$am_mf" ||
18914 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
18915 X"$am_mf" : 'X\(//\)$' \| \
18916 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
18917 printf "%s\n" X/"$am_mf" |
18918 sed '/^.*\/\([^/][^/]*\)\/*$/{
18919 s//\1/
18920 q
18921 }
18922 /^X\/\(\/\/\)$/{
18923 s//\1/
18924 q
18925 }
18926 /^X\/\(\/\).*/{
18927 s//\1/
18928 q
18929 }
18930 s/.*/./; q'`
18931 { echo "$as_me:$LINENO: cd "$am_dirpart" \
18932 && sed -e '/# am--include-marker/d' "$am_filepart" \
18933 | $MAKE -f - am--depfiles" >&5
18934 (cd "$am_dirpart" \
18935 && sed -e '/# am--include-marker/d' "$am_filepart" \
18936 | $MAKE -f - am--depfiles) >&5 2>&5
18937 ac_status=$?
18938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18939 (exit $ac_status); } || am_rc=$?
18940 done
18941 if test $am_rc -ne 0; then
18942 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
18943 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
18944 as_fn_error $? "Something went wrong bootstrapping makefile fragments
18945 for automatic dependency tracking. If GNU make was not used, consider
18946 re-running the configure script with MAKE=\"gmake\" (or whatever is
18947 necessary). You can also try re-running configure with the
18948 '--disable-dependency-tracking' option to at least be able to build
18949 the package (albeit without support for automatic dependency tracking).
18950 See 'config.log' for more details" "$LINENO" 5; }
18951 fi
18952 { am_dirpart=; unset am_dirpart;}
18953 { am_filepart=; unset am_filepart;}
18954 { am_mf=; unset am_mf;}
18955 { am_rc=; unset am_rc;}
18956 rm -f conftest-deps.mk
18957 }
18958 ;;
18959 "libtool":C)
18960
18961 # See if we are running on zsh, and set the options that allow our
18962 # commands through without removal of \ escapes.
18963 if test -n "${ZSH_VERSION+set}"; then
18964 setopt NO_GLOB_SUBST
18965 fi
18966
18967 cfgfile=${ofile}T
18968 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18969 $RM "$cfgfile"
18970
18971 cat <<_LT_EOF >> "$cfgfile"
18972 #! $SHELL
18973 # Generated automatically by $as_me ($PACKAGE) $VERSION
18974 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18975
18976 # Provide generalized library-building support services.
18977 # Written by Gordon Matzigkeit, 1996
18978
18979 # Copyright (C) 2024 Free Software Foundation, Inc.
18980 # This is free software; see the source for copying conditions. There is NO
18981 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18982
18983 # GNU Libtool is free software; you can redistribute it and/or modify
18984 # it under the terms of the GNU General Public License as published by
18985 # the Free Software Foundation; either version 2 of the License, or
18986 # (at your option) any later version.
18987 #
18988 # As a special exception to the GNU General Public License, if you
18989 # distribute this file as part of a program or library that is built
18990 # using GNU Libtool, you may include this file under the same
18991 # distribution terms that you use for the rest of that program.
18992 #
18993 # GNU Libtool is distributed in the hope that it will be useful, but
18994 # WITHOUT ANY WARRANTY; without even the implied warranty of
18995 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18996 # GNU General Public License for more details.
18997 #
18998 # You should have received a copy of the GNU General Public License
18999 # along with this program. If not, see <http://www.gnu.org/licenses/>.
19000
19001
19002 # The names of the tagged configurations supported by this script.
19003 available_tags=''
19004
19005 # Configured defaults for sys_lib_dlsearch_path munging.
19006 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
19007
19008 # ### BEGIN LIBTOOL CONFIG
19009
19010 # Which release of libtool.m4 was used?
19011 macro_version=$macro_version
19012 macro_revision=$macro_revision
19013
19014 # Assembler program.
19015 AS=$lt_AS
19016
19017 # DLL creation program.
19018 DLLTOOL=$lt_DLLTOOL
19019
19020 # Object dumper program.
19021 OBJDUMP=$lt_OBJDUMP
19022
19023 # Whether or not to build shared libraries.
19024 build_libtool_libs=$enable_shared
19025
19026 # Whether or not to build static libraries.
19027 build_old_libs=$enable_static
19028
19029 # What type of objects to build.
19030 pic_mode=$pic_mode
19031
19032 # Whether or not to optimize for fast installation.
19033 fast_install=$enable_fast_install
19034
19035 # Shared archive member basename,for filename based shared library versioning on AIX.
19036 shared_archive_member_spec=$shared_archive_member_spec
19037
19038 # Shell to use when invoking shell scripts.
19039 SHELL=$lt_SHELL
19040
19041 # An echo program that protects backslashes.
19042 ECHO=$lt_ECHO
19043
19044 # The PATH separator for the build system.
19045 PATH_SEPARATOR=$lt_PATH_SEPARATOR
19046
19047 # The host system.
19048 host_alias=$host_alias
19049 host=$host
19050 host_os=$host_os
19051
19052 # The build system.
19053 build_alias=$build_alias
19054 build=$build
19055 build_os=$build_os
19056
19057 # A sed program that does not truncate output.
19058 SED=$lt_SED
19059
19060 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19061 Xsed="\$SED -e 1s/^X//"
19062
19063 # A grep program that handles long lines.
19064 GREP=$lt_GREP
19065
19066 # An ERE matcher.
19067 EGREP=$lt_EGREP
19068
19069 # A literal string matcher.
19070 FGREP=$lt_FGREP
19071
19072 # A BSD- or MS-compatible name lister.
19073 NM=$lt_NM
19074
19075 # Whether we need soft or hard links.
19076 LN_S=$lt_LN_S
19077
19078 # What is the maximum length of a command?
19079 max_cmd_len=$max_cmd_len
19080
19081 # Object file suffix (normally "o").
19082 objext=$ac_objext
19083
19084 # Executable file suffix (normally "").
19085 exeext=$exeext
19086
19087 # whether the shell understands "unset".
19088 lt_unset=$lt_unset
19089
19090 # turn spaces into newlines.
19091 SP2NL=$lt_lt_SP2NL
19092
19093 # turn newlines into spaces.
19094 NL2SP=$lt_lt_NL2SP
19095
19096 # convert \$build file names to \$host format.
19097 to_host_file_cmd=$lt_cv_to_host_file_cmd
19098
19099 # convert \$build files to toolchain format.
19100 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19101
19102 # A file(cmd) program that detects file types.
19103 FILECMD=$lt_FILECMD
19104
19105 # Method to check whether dependent libraries are shared objects.
19106 deplibs_check_method=$lt_deplibs_check_method
19107
19108 # Command to use when deplibs_check_method = "file_magic".
19109 file_magic_cmd=$lt_file_magic_cmd
19110
19111 # How to find potential files when deplibs_check_method = "file_magic".
19112 file_magic_glob=$lt_file_magic_glob
19113
19114 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19115 want_nocaseglob=$lt_want_nocaseglob
19116
19117 # Command to associate shared and link libraries.
19118 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19119
19120 # The archiver.
19121 AR=$lt_AR
19122
19123 # Flags to create an archive (by configure).
19124 lt_ar_flags=$lt_ar_flags
19125
19126 # Flags to create an archive.
19127 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
19128
19129 # How to feed a file listing to the archiver.
19130 archiver_list_spec=$lt_archiver_list_spec
19131
19132 # A symbol stripping program.
19133 STRIP=$lt_STRIP
19134
19135 # Commands used to install an old-style archive.
19136 RANLIB=$lt_RANLIB
19137 old_postinstall_cmds=$lt_old_postinstall_cmds
19138 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19139
19140 # Whether to use a lock for old archive extraction.
19141 lock_old_archive_extraction=$lock_old_archive_extraction
19142
19143 # A C compiler.
19144 LTCC=$lt_CC
19145
19146 # LTCC compiler flags.
19147 LTCFLAGS=$lt_CFLAGS
19148
19149 # Take the output of nm and produce a listing of raw symbols and C names.
19150 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19151
19152 # Transform the output of nm in a proper C declaration.
19153 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19154
19155 # Transform the output of nm into a list of symbols to manually relocate.
19156 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
19157
19158 # Transform the output of nm in a C name address pair.
19159 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19160
19161 # Transform the output of nm in a C name address pair when lib prefix is needed.
19162 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19163
19164 # The name lister interface.
19165 nm_interface=$lt_lt_cv_nm_interface
19166
19167 # Specify filename containing input files for \$NM.
19168 nm_file_list_spec=$lt_nm_file_list_spec
19169
19170 # The root where to search for dependent libraries,and where our libraries should be installed.
19171 lt_sysroot=$lt_sysroot
19172
19173 # Command to truncate a binary pipe.
19174 lt_truncate_bin=$lt_lt_cv_truncate_bin
19175
19176 # The name of the directory that contains temporary libtool files.
19177 objdir=$objdir
19178
19179 # Used to examine libraries when file_magic_cmd begins with "file".
19180 MAGIC_CMD=$MAGIC_CMD
19181
19182 # Must we lock files when doing compilation?
19183 need_locks=$lt_need_locks
19184
19185 # Manifest tool.
19186 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19187
19188 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19189 DSYMUTIL=$lt_DSYMUTIL
19190
19191 # Tool to change global to local symbols on Mac OS X.
19192 NMEDIT=$lt_NMEDIT
19193
19194 # Tool to manipulate fat objects and archives on Mac OS X.
19195 LIPO=$lt_LIPO
19196
19197 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19198 OTOOL=$lt_OTOOL
19199
19200 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19201 OTOOL64=$lt_OTOOL64
19202
19203 # Old archive suffix (normally "a").
19204 libext=$libext
19205
19206 # Shared library suffix (normally ".so").
19207 shrext_cmds=$lt_shrext_cmds
19208
19209 # The commands to extract the exported symbol list from a shared archive.
19210 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19211
19212 # Variables whose values should be saved in libtool wrapper scripts and
19213 # restored at link time.
19214 variables_saved_for_relink=$lt_variables_saved_for_relink
19215
19216 # Do we need the "lib" prefix for modules?
19217 need_lib_prefix=$need_lib_prefix
19218
19219 # Do we need a version for libraries?
19220 need_version=$need_version
19221
19222 # Library versioning type.
19223 version_type=$version_type
19224
19225 # Shared library runtime path variable.
19226 runpath_var=$runpath_var
19227
19228 # Shared library path variable.
19229 shlibpath_var=$shlibpath_var
19230
19231 # Is shlibpath searched before the hard-coded library search path?
19232 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19233
19234 # Format of library name prefix.
19235 libname_spec=$lt_libname_spec
19236
19237 # List of archive names. First name is the real one, the rest are links.
19238 # The last name is the one that the linker finds with -lNAME
19239 library_names_spec=$lt_library_names_spec
19240
19241 # The coded name of the library, if different from the real name.
19242 soname_spec=$lt_soname_spec
19243
19244 # Permission mode override for installation of shared libraries.
19245 install_override_mode=$lt_install_override_mode
19246
19247 # Command to use after installation of a shared archive.
19248 postinstall_cmds=$lt_postinstall_cmds
19249
19250 # Command to use after uninstallation of a shared archive.
19251 postuninstall_cmds=$lt_postuninstall_cmds
19252
19253 # Commands used to finish a libtool library installation in a directory.
19254 finish_cmds=$lt_finish_cmds
19255
19256 # As "finish_cmds", except a single script fragment to be evaled but
19257 # not shown.
19258 finish_eval=$lt_finish_eval
19259
19260 # Whether we should hardcode library paths into libraries.
19261 hardcode_into_libs=$hardcode_into_libs
19262
19263 # Compile-time system search path for libraries.
19264 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19265
19266 # Detected run-time system search path for libraries.
19267 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
19268
19269 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
19270 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
19271
19272 # Whether dlopen is supported.
19273 dlopen_support=$enable_dlopen
19274
19275 # Whether dlopen of programs is supported.
19276 dlopen_self=$enable_dlopen_self
19277
19278 # Whether dlopen of statically linked programs is supported.
19279 dlopen_self_static=$enable_dlopen_self_static
19280
19281 # Commands to strip libraries.
19282 old_striplib=$lt_old_striplib
19283 striplib=$lt_striplib
19284
19285
19286 # The linker used to build libraries.
19287 LD=$lt_LD
19288
19289 # How to create reloadable object files.
19290 reload_flag=$lt_reload_flag
19291 reload_cmds=$lt_reload_cmds
19292
19293 # Commands used to build an old-style archive.
19294 old_archive_cmds=$lt_old_archive_cmds
19295
19296 # A language specific compiler.
19297 CC=$lt_compiler
19298
19299 # Is the compiler the GNU compiler?
19300 with_gcc=$GCC
19301
19302 # Compiler flag to turn off builtin functions.
19303 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19304
19305 # Additional compiler flags for building library objects.
19306 pic_flag=$lt_lt_prog_compiler_pic
19307
19308 # How to pass a linker flag through the compiler.
19309 wl=$lt_lt_prog_compiler_wl
19310
19311 # Compiler flag to prevent dynamic linking.
19312 link_static_flag=$lt_lt_prog_compiler_static
19313
19314 # Does compiler simultaneously support -c and -o options?
19315 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19316
19317 # Whether or not to add -lc for building shared libraries.
19318 build_libtool_need_lc=$archive_cmds_need_lc
19319
19320 # Whether or not to disallow shared libs when runtime libs are static.
19321 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19322
19323 # Compiler flag to allow reflexive dlopens.
19324 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19325
19326 # Compiler flag to generate shared objects directly from archives.
19327 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19328
19329 # Whether the compiler copes with passing no objects directly.
19330 compiler_needs_object=$lt_compiler_needs_object
19331
19332 # Create an old-style archive from a shared archive.
19333 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19334
19335 # Create a temporary old-style archive to link instead of a shared archive.
19336 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19337
19338 # Commands used to build a shared archive.
19339 archive_cmds=$lt_archive_cmds
19340 archive_expsym_cmds=$lt_archive_expsym_cmds
19341
19342 # Commands used to build a loadable module if different from building
19343 # a shared archive.
19344 module_cmds=$lt_module_cmds
19345 module_expsym_cmds=$lt_module_expsym_cmds
19346
19347 # Whether we are building with GNU ld or not.
19348 with_gnu_ld=$lt_with_gnu_ld
19349
19350 # Flag that allows shared libraries with undefined symbols to be built.
19351 allow_undefined_flag=$lt_allow_undefined_flag
19352
19353 # Flag that enforces no undefined symbols.
19354 no_undefined_flag=$lt_no_undefined_flag
19355
19356 # Flag to hardcode \$libdir into a binary during linking.
19357 # This must work even if \$libdir does not exist
19358 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19359
19360 # Whether we need a single "-rpath" flag with a separated argument.
19361 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19362
19363 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19364 # DIR into the resulting binary.
19365 hardcode_direct=$hardcode_direct
19366
19367 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19368 # DIR into the resulting binary and the resulting library dependency is
19369 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
19370 # library is relocated.
19371 hardcode_direct_absolute=$hardcode_direct_absolute
19372
19373 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19374 # into the resulting binary.
19375 hardcode_minus_L=$hardcode_minus_L
19376
19377 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19378 # into the resulting binary.
19379 hardcode_shlibpath_var=$hardcode_shlibpath_var
19380
19381 # Set to "yes" if building a shared library automatically hardcodes DIR
19382 # into the library and all subsequent libraries and executables linked
19383 # against it.
19384 hardcode_automatic=$hardcode_automatic
19385
19386 # Set to yes if linker adds runtime paths of dependent libraries
19387 # to runtime path list.
19388 inherit_rpath=$inherit_rpath
19389
19390 # Whether libtool must link a program against all its dependency libraries.
19391 link_all_deplibs=$link_all_deplibs
19392
19393 # Set to "yes" if exported symbols are required.
19394 always_export_symbols=$always_export_symbols
19395
19396 # The commands to list exported symbols.
19397 export_symbols_cmds=$lt_export_symbols_cmds
19398
19399 # Symbols that should not be listed in the preloaded symbols.
19400 exclude_expsyms=$lt_exclude_expsyms
19401
19402 # Symbols that must always be exported.
19403 include_expsyms=$lt_include_expsyms
19404
19405 # Commands necessary for linking programs (against libraries) with templates.
19406 prelink_cmds=$lt_prelink_cmds
19407
19408 # Commands necessary for finishing linking programs.
19409 postlink_cmds=$lt_postlink_cmds
19410
19411 # Specify filename containing input files.
19412 file_list_spec=$lt_file_list_spec
19413
19414 # How to hardcode a shared library path into an executable.
19415 hardcode_action=$hardcode_action
19416
19417 # ### END LIBTOOL CONFIG
19418
19419 _LT_EOF
19420
19421 cat <<'_LT_EOF' >> "$cfgfile"
19422
19423 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
19424
19425 # func_munge_path_list VARIABLE PATH
19426 # -----------------------------------
19427 # VARIABLE is name of variable containing _space_ separated list of
19428 # directories to be munged by the contents of PATH, which is string
19429 # having a format:
19430 # "DIR[:DIR]:"
19431 # string "DIR[ DIR]" will be prepended to VARIABLE
19432 # ":DIR[:DIR]"
19433 # string "DIR[ DIR]" will be appended to VARIABLE
19434 # "DIRP[:DIRP]::[DIRA:]DIRA"
19435 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
19436 # "DIRA[ DIRA]" will be appended to VARIABLE
19437 # "DIR[:DIR]"
19438 # VARIABLE will be replaced by "DIR[ DIR]"
19439 func_munge_path_list ()
19440 {
19441 case x$2 in
19442 x)
19443 ;;
19444 *:)
19445 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
19446 ;;
19447 x:*)
19448 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
19449 ;;
19450 *::*)
19451 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
19452 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
19453 ;;
19454 *)
19455 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
19456 ;;
19457 esac
19458 }
19459
19460
19461 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
19462 func_cc_basename ()
19463 {
19464 for cc_temp in $*""; do
19465 case $cc_temp in
19466 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19467 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19468 \-*) ;;
19469 *) break;;
19470 esac
19471 done
19472 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19473 }
19474
19475
19476 # ### END FUNCTIONS SHARED WITH CONFIGURE
19477
19478 _LT_EOF
19479
19480 case $host_os in
19481 aix3*)
19482 cat <<\_LT_EOF >> "$cfgfile"
19483 # AIX sometimes has problems with the GCC collect2 program. For some
19484 # reason, if we set the COLLECT_NAMES environment variable, the problems
19485 # vanish in a puff of smoke.
19486 if test set != "${COLLECT_NAMES+set}"; then
19487 COLLECT_NAMES=
19488 export COLLECT_NAMES
19489 fi
19490 _LT_EOF
19491 ;;
19492 esac
19493
19494
19495
19496 ltmain=$ac_aux_dir/ltmain.sh
19497
19498
19499 # We use sed instead of cat because bash on DJGPP gets confused if
19500 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19501 # text mode, it properly converts lines to CR/LF. This bash problem
19502 # is reportedly fixed, but why not run on old versions too?
19503 $SED '$q' "$ltmain" >> "$cfgfile" \
19504 || (rm -f "$cfgfile"; exit 1)
19505
19506 mv -f "$cfgfile" "$ofile" ||
19507 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19508 chmod +x "$ofile"
19509
19510 ;;
19511
19512 esac
19513 done # for ac_tag
19514
19515
19516 as_fn_exit 0
19517 _ACEOF
19518 ac_clean_files=$ac_clean_files_save
19519
19520 test $ac_write_fail = 0 ||
19521 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19522
19523
19524 # configure is writing to config.log, and then calls config.status.
19525 # config.status does its own redirection, appending to config.log.
19526 # Unfortunately, on DOS this fails, as config.log is still kept open
19527 # by configure, so config.status won't be able to write to it; its
19528 # output is simply discarded. So we exec the FD to /dev/null,
19529 # effectively closing config.log, so it can be properly (re)opened and
19530 # appended to by config.status. When coming back to configure, we
19531 # need to make the FD available again.
19532 if test "$no_create" != yes; then
19533 ac_cs_success=:
19534 ac_config_status_args=
19535 test "$silent" = yes &&
19536 ac_config_status_args="$ac_config_status_args --quiet"
19537 exec 5>/dev/null
19538 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19539 exec 5>>config.log
19540 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19541 # would make configure fail if this is the last instruction.
19542 $ac_cs_success || as_fn_exit 1
19543 fi
19544 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19546 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19547 fi
19548
19549