Debian Codegraph @

texk/dviout-util/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 dviout-util (TeX Live) 20240427.
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='dviout-util (TeX Live)'
616 PACKAGE_TARNAME='dviout-util--tex-live-'
617 PACKAGE_VERSION='20240427'
618 PACKAGE_STRING='dviout-util (TeX Live) 20240427'
619 PACKAGE_BUGREPORT='[email protected]'
620 PACKAGE_URL=''
621
622 ac_unique_file="dvispc.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 PTEXENC_RULE
661 PTEXENC_DEPEND
662 PTEXENC_LIBS
663 PTEXENC_INCLUDES
664 KPATHSEA_RULE
665 KPATHSEA_DEPEND
666 KPATHSEA_LIBS
667 KPATHSEA_INCLUDES
668 PKG_CONFIG
669 LT_SYS_LIBRARY_PATH
670 OTOOL64
671 OTOOL
672 LIPO
673 NMEDIT
674 DSYMUTIL
675 MANIFEST_TOOL
676 RANLIB
677 FILECMD
678 LN_S
679 NM
680 ac_ct_DUMPBIN
681 DUMPBIN
682 LD
683 FGREP
684 EGREP
685 GREP
686 SED
687 host_os
688 host_vendor
689 host_cpu
690 host
691 build_os
692 build_vendor
693 build_cpu
694 build
695 LIBTOOL
696 OBJDUMP
697 DLLTOOL
698 AS
699 ac_ct_AR
700 AR
701 WARNING_CFLAGS
702 am__fastdepCC_FALSE
703 am__fastdepCC_TRUE
704 CCDEPMODE
705 am__nodep
706 AMDEPBACKSLASH
707 AMDEP_FALSE
708 AMDEP_TRUE
709 am__include
710 DEPDIR
711 OBJEXT
712 EXEEXT
713 ac_ct_CC
714 CPPFLAGS
715 LDFLAGS
716 CFLAGS
717 CC
718 MAINT
719 MAINTAINER_MODE_FALSE
720 MAINTAINER_MODE_TRUE
721 am__xargs_n
722 am__rm_f_notfound
723 AM_BACKSLASH
724 AM_DEFAULT_VERBOSITY
725 AM_DEFAULT_V
726 AM_V
727 CSCOPE
728 ETAGS
729 CTAGS
730 am__untar
731 am__tar
732 AMTAR
733 am__leading_dot
734 SET_MAKE
735 AWK
736 mkdir_p
737 MKDIR_P
738 INSTALL_STRIP_PROGRAM
739 STRIP
740 install_sh
741 MAKEINFO
742 AUTOHEADER
743 AUTOMAKE
744 AUTOCONF
745 ACLOCAL
746 VERSION
747 PACKAGE
748 CYGPATH_W
749 am__isrc
750 INSTALL_DATA
751 INSTALL_SCRIPT
752 INSTALL_PROGRAM
753 target_alias
754 host_alias
755 build_alias
756 LIBS
757 ECHO_T
758 ECHO_N
759 ECHO_C
760 DEFS
761 mandir
762 localedir
763 libdir
764 psdir
765 pdfdir
766 dvidir
767 htmldir
768 infodir
769 docdir
770 oldincludedir
771 includedir
772 runstatedir
773 localstatedir
774 sharedstatedir
775 sysconfdir
776 datadir
777 datarootdir
778 libexecdir
779 sbindir
780 bindir
781 program_transform_name
782 prefix
783 exec_prefix
784 PACKAGE_URL
785 PACKAGE_BUGREPORT
786 PACKAGE_STRING
787 PACKAGE_VERSION
788 PACKAGE_TARNAME
789 PACKAGE_NAME
790 PATH_SEPARATOR
791 SHELL
792 am__quote'
793 ac_subst_files=''
794 ac_user_opts='
795 enable_option_checking
796 enable_silent_rules
797 enable_maintainer_mode
798 enable_dependency_tracking
799 enable_compiler_warnings
800 enable_shared
801 enable_static
802 enable_pic
803 with_pic
804 enable_fast_install
805 enable_aix_soname
806 with_aix_soname
807 with_gnu_ld
808 with_sysroot
809 enable_libtool_lock
810 enable_largefile
811 with_system_kpathsea
812 with_system_ptexenc
813 enable_year2038
814 '
815 ac_precious_vars='build_alias
816 host_alias
817 target_alias
818 CC
819 CFLAGS
820 LDFLAGS
821 LIBS
822 CPPFLAGS
823 LT_SYS_LIBRARY_PATH'
824
825
826 # Initialize some variables set by options.
827 ac_init_help=
828 ac_init_version=false
829 ac_unrecognized_opts=
830 ac_unrecognized_sep=
831 # The variables have the same names as the options, with
832 # dashes changed to underlines.
833 cache_file=/dev/null
834 exec_prefix=NONE
835 no_create=
836 no_recursion=
837 prefix=NONE
838 program_prefix=NONE
839 program_suffix=NONE
840 program_transform_name=s,x,x,
841 silent=
842 site=
843 srcdir=
844 verbose=
845 x_includes=NONE
846 x_libraries=NONE
847
848 # Installation directory options.
849 # These are left unexpanded so users can "make install exec_prefix=/foo"
850 # and all the variables that are supposed to be based on exec_prefix
851 # by default will actually change.
852 # Use braces instead of parens because sh, perl, etc. also accept them.
853 # (The list follows the same order as the GNU Coding Standards.)
854 bindir='${exec_prefix}/bin'
855 sbindir='${exec_prefix}/sbin'
856 libexecdir='${exec_prefix}/libexec'
857 datarootdir='${prefix}/share'
858 datadir='${datarootdir}'
859 sysconfdir='${prefix}/etc'
860 sharedstatedir='${prefix}/com'
861 localstatedir='${prefix}/var'
862 runstatedir='${localstatedir}/run'
863 includedir='${prefix}/include'
864 oldincludedir='/usr/include'
865 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
866 infodir='${datarootdir}/info'
867 htmldir='${docdir}'
868 dvidir='${docdir}'
869 pdfdir='${docdir}'
870 psdir='${docdir}'
871 libdir='${exec_prefix}/lib'
872 localedir='${datarootdir}/locale'
873 mandir='${datarootdir}/man'
874
875 ac_prev=
876 ac_dashdash=
877 for ac_option
878 do
879 # If the previous option needs an argument, assign it.
880 if test -n "$ac_prev"; then
881 eval $ac_prev=\$ac_option
882 ac_prev=
883 continue
884 fi
885
886 case $ac_option in
887 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
888 *=) ac_optarg= ;;
889 *) ac_optarg=yes ;;
890 esac
891
892 case $ac_dashdash$ac_option in
893 --)
894 ac_dashdash=yes ;;
895
896 -bindir | --bindir | --bindi | --bind | --bin | --bi)
897 ac_prev=bindir ;;
898 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
899 bindir=$ac_optarg ;;
900
901 -build | --build | --buil | --bui | --bu)
902 ac_prev=build_alias ;;
903 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
904 build_alias=$ac_optarg ;;
905
906 -cache-file | --cache-file | --cache-fil | --cache-fi \
907 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
908 ac_prev=cache_file ;;
909 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
910 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
911 cache_file=$ac_optarg ;;
912
913 --config-cache | -C)
914 cache_file=config.cache ;;
915
916 -datadir | --datadir | --datadi | --datad)
917 ac_prev=datadir ;;
918 -datadir=* | --datadir=* | --datadi=* | --datad=*)
919 datadir=$ac_optarg ;;
920
921 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
922 | --dataroo | --dataro | --datar)
923 ac_prev=datarootdir ;;
924 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
925 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
926 datarootdir=$ac_optarg ;;
927
928 -disable-* | --disable-*)
929 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
930 # Reject names that are not valid shell variable names.
931 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
932 as_fn_error $? "invalid feature name: '$ac_useropt'"
933 ac_useropt_orig=$ac_useropt
934 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
935 case $ac_user_opts in
936 *"
937 "enable_$ac_useropt"
938 "*) ;;
939 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
940 ac_unrecognized_sep=', ';;
941 esac
942 eval enable_$ac_useropt=no ;;
943
944 -docdir | --docdir | --docdi | --doc | --do)
945 ac_prev=docdir ;;
946 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
947 docdir=$ac_optarg ;;
948
949 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
950 ac_prev=dvidir ;;
951 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
952 dvidir=$ac_optarg ;;
953
954 -enable-* | --enable-*)
955 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
956 # Reject names that are not valid shell variable names.
957 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
958 as_fn_error $? "invalid feature name: '$ac_useropt'"
959 ac_useropt_orig=$ac_useropt
960 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
961 case $ac_user_opts in
962 *"
963 "enable_$ac_useropt"
964 "*) ;;
965 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
966 ac_unrecognized_sep=', ';;
967 esac
968 eval enable_$ac_useropt=\$ac_optarg ;;
969
970 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
971 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
972 | --exec | --exe | --ex)
973 ac_prev=exec_prefix ;;
974 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
975 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
976 | --exec=* | --exe=* | --ex=*)
977 exec_prefix=$ac_optarg ;;
978
979 -gas | --gas | --ga | --g)
980 # Obsolete; use --with-gas.
981 with_gas=yes ;;
982
983 -help | --help | --hel | --he | -h)
984 ac_init_help=long ;;
985 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
986 ac_init_help=recursive ;;
987 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
988 ac_init_help=short ;;
989
990 -host | --host | --hos | --ho)
991 ac_prev=host_alias ;;
992 -host=* | --host=* | --hos=* | --ho=*)
993 host_alias=$ac_optarg ;;
994
995 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
996 ac_prev=htmldir ;;
997 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
998 | --ht=*)
999 htmldir=$ac_optarg ;;
1000
1001 -includedir | --includedir | --includedi | --included | --include \
1002 | --includ | --inclu | --incl | --inc)
1003 ac_prev=includedir ;;
1004 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1005 | --includ=* | --inclu=* | --incl=* | --inc=*)
1006 includedir=$ac_optarg ;;
1007
1008 -infodir | --infodir | --infodi | --infod | --info | --inf)
1009 ac_prev=infodir ;;
1010 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1011 infodir=$ac_optarg ;;
1012
1013 -libdir | --libdir | --libdi | --libd)
1014 ac_prev=libdir ;;
1015 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1016 libdir=$ac_optarg ;;
1017
1018 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1019 | --libexe | --libex | --libe)
1020 ac_prev=libexecdir ;;
1021 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1022 | --libexe=* | --libex=* | --libe=*)
1023 libexecdir=$ac_optarg ;;
1024
1025 -localedir | --localedir | --localedi | --localed | --locale)
1026 ac_prev=localedir ;;
1027 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1028 localedir=$ac_optarg ;;
1029
1030 -localstatedir | --localstatedir | --localstatedi | --localstated \
1031 | --localstate | --localstat | --localsta | --localst | --locals)
1032 ac_prev=localstatedir ;;
1033 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1034 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1035 localstatedir=$ac_optarg ;;
1036
1037 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1038 ac_prev=mandir ;;
1039 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1040 mandir=$ac_optarg ;;
1041
1042 -nfp | --nfp | --nf)
1043 # Obsolete; use --without-fp.
1044 with_fp=no ;;
1045
1046 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1047 | --no-cr | --no-c | -n)
1048 no_create=yes ;;
1049
1050 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1051 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1052 no_recursion=yes ;;
1053
1054 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1055 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1056 | --oldin | --oldi | --old | --ol | --o)
1057 ac_prev=oldincludedir ;;
1058 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1059 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1060 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1061 oldincludedir=$ac_optarg ;;
1062
1063 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1064 ac_prev=prefix ;;
1065 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1066 prefix=$ac_optarg ;;
1067
1068 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1069 | --program-pre | --program-pr | --program-p)
1070 ac_prev=program_prefix ;;
1071 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1072 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1073 program_prefix=$ac_optarg ;;
1074
1075 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1076 | --program-suf | --program-su | --program-s)
1077 ac_prev=program_suffix ;;
1078 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1079 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1080 program_suffix=$ac_optarg ;;
1081
1082 -program-transform-name | --program-transform-name \
1083 | --program-transform-nam | --program-transform-na \
1084 | --program-transform-n | --program-transform- \
1085 | --program-transform | --program-transfor \
1086 | --program-transfo | --program-transf \
1087 | --program-trans | --program-tran \
1088 | --progr-tra | --program-tr | --program-t)
1089 ac_prev=program_transform_name ;;
1090 -program-transform-name=* | --program-transform-name=* \
1091 | --program-transform-nam=* | --program-transform-na=* \
1092 | --program-transform-n=* | --program-transform-=* \
1093 | --program-transform=* | --program-transfor=* \
1094 | --program-transfo=* | --program-transf=* \
1095 | --program-trans=* | --program-tran=* \
1096 | --progr-tra=* | --program-tr=* | --program-t=*)
1097 program_transform_name=$ac_optarg ;;
1098
1099 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1100 ac_prev=pdfdir ;;
1101 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1102 pdfdir=$ac_optarg ;;
1103
1104 -psdir | --psdir | --psdi | --psd | --ps)
1105 ac_prev=psdir ;;
1106 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1107 psdir=$ac_optarg ;;
1108
1109 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1110 | -silent | --silent | --silen | --sile | --sil)
1111 silent=yes ;;
1112
1113 -runstatedir | --runstatedir | --runstatedi | --runstated \
1114 | --runstate | --runstat | --runsta | --runst | --runs \
1115 | --run | --ru | --r)
1116 ac_prev=runstatedir ;;
1117 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1118 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1119 | --run=* | --ru=* | --r=*)
1120 runstatedir=$ac_optarg ;;
1121
1122 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1123 ac_prev=sbindir ;;
1124 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1125 | --sbi=* | --sb=*)
1126 sbindir=$ac_optarg ;;
1127
1128 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1129 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1130 | --sharedst | --shareds | --shared | --share | --shar \
1131 | --sha | --sh)
1132 ac_prev=sharedstatedir ;;
1133 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1134 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1135 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1136 | --sha=* | --sh=*)
1137 sharedstatedir=$ac_optarg ;;
1138
1139 -site | --site | --sit)
1140 ac_prev=site ;;
1141 -site=* | --site=* | --sit=*)
1142 site=$ac_optarg ;;
1143
1144 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1145 ac_prev=srcdir ;;
1146 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1147 srcdir=$ac_optarg ;;
1148
1149 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1150 | --syscon | --sysco | --sysc | --sys | --sy)
1151 ac_prev=sysconfdir ;;
1152 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1153 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1154 sysconfdir=$ac_optarg ;;
1155
1156 -target | --target | --targe | --targ | --tar | --ta | --t)
1157 ac_prev=target_alias ;;
1158 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1159 target_alias=$ac_optarg ;;
1160
1161 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1162 verbose=yes ;;
1163
1164 -version | --version | --versio | --versi | --vers | -V)
1165 ac_init_version=: ;;
1166
1167 -with-* | --with-*)
1168 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1169 # Reject names that are not valid shell variable names.
1170 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1171 as_fn_error $? "invalid package name: '$ac_useropt'"
1172 ac_useropt_orig=$ac_useropt
1173 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1174 case $ac_user_opts in
1175 *"
1176 "with_$ac_useropt"
1177 "*) ;;
1178 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1179 ac_unrecognized_sep=', ';;
1180 esac
1181 eval with_$ac_useropt=\$ac_optarg ;;
1182
1183 -without-* | --without-*)
1184 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1185 # Reject names that are not valid shell variable names.
1186 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1187 as_fn_error $? "invalid package name: '$ac_useropt'"
1188 ac_useropt_orig=$ac_useropt
1189 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1190 case $ac_user_opts in
1191 *"
1192 "with_$ac_useropt"
1193 "*) ;;
1194 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1195 ac_unrecognized_sep=', ';;
1196 esac
1197 eval with_$ac_useropt=no ;;
1198
1199 --x)
1200 # Obsolete; use --with-x.
1201 with_x=yes ;;
1202
1203 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1204 | --x-incl | --x-inc | --x-in | --x-i)
1205 ac_prev=x_includes ;;
1206 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1207 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1208 x_includes=$ac_optarg ;;
1209
1210 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1211 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1212 ac_prev=x_libraries ;;
1213 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1214 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1215 x_libraries=$ac_optarg ;;
1216
1217 -*) as_fn_error $? "unrecognized option: '$ac_option'
1218 Try '$0 --help' for more information"
1219 ;;
1220
1221 *=*)
1222 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1223 # Reject names that are not valid shell variable names.
1224 case $ac_envvar in #(
1225 '' | [0-9]* | *[!_$as_cr_alnum]* )
1226 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1227 esac
1228 eval $ac_envvar=\$ac_optarg
1229 export $ac_envvar ;;
1230
1231 *)
1232 # FIXME: should be removed in autoconf 3.0.
1233 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1234 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1235 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1236 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1237 ;;
1238
1239 esac
1240 done
1241
1242 if test -n "$ac_prev"; then
1243 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1244 as_fn_error $? "missing argument to $ac_option"
1245 fi
1246
1247 if test -n "$ac_unrecognized_opts"; then
1248 case $enable_option_checking in
1249 no) ;;
1250 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1251 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1252 esac
1253 fi
1254
1255 # Check all directory arguments for consistency.
1256 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1257 datadir sysconfdir sharedstatedir localstatedir includedir \
1258 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1259 libdir localedir mandir runstatedir
1260 do
1261 eval ac_val=\$$ac_var
1262 # Remove trailing slashes.
1263 case $ac_val in
1264 */ )
1265 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1266 eval $ac_var=\$ac_val;;
1267 esac
1268 # Be sure to have absolute directory names.
1269 case $ac_val in
1270 [\\/$]* | ?:[\\/]* ) continue;;
1271 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1272 esac
1273 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1274 done
1275
1276 # There might be people who depend on the old broken behavior: '$host'
1277 # used to hold the argument of --host etc.
1278 # FIXME: To remove some day.
1279 build=$build_alias
1280 host=$host_alias
1281 target=$target_alias
1282
1283 # FIXME: To remove some day.
1284 if test "x$host_alias" != x; then
1285 if test "x$build_alias" = x; then
1286 cross_compiling=maybe
1287 elif test "x$build_alias" != "x$host_alias"; then
1288 cross_compiling=yes
1289 fi
1290 fi
1291
1292 ac_tool_prefix=
1293 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1294
1295 test "$silent" = yes && exec 6>/dev/null
1296
1297
1298 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1299 ac_ls_di=`ls -di .` &&
1300 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1301 as_fn_error $? "working directory cannot be determined"
1302 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1303 as_fn_error $? "pwd does not report name of working directory"
1304
1305
1306 # Find the source files, if location was not specified.
1307 if test -z "$srcdir"; then
1308 ac_srcdir_defaulted=yes
1309 # Try the directory containing this script, then the parent directory.
1310 ac_confdir=`$as_dirname -- "$as_myself" ||
1311 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1312 X"$as_myself" : 'X\(//\)[^/]' \| \
1313 X"$as_myself" : 'X\(//\)$' \| \
1314 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1315 printf "%s\n" X"$as_myself" |
1316 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1317 s//\1/
1318 q
1319 }
1320 /^X\(\/\/\)[^/].*/{
1321 s//\1/
1322 q
1323 }
1324 /^X\(\/\/\)$/{
1325 s//\1/
1326 q
1327 }
1328 /^X\(\/\).*/{
1329 s//\1/
1330 q
1331 }
1332 s/.*/./; q'`
1333 srcdir=$ac_confdir
1334 if test ! -r "$srcdir/$ac_unique_file"; then
1335 srcdir=..
1336 fi
1337 else
1338 ac_srcdir_defaulted=no
1339 fi
1340 if test ! -r "$srcdir/$ac_unique_file"; then
1341 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1342 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1343 fi
1344 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1345 ac_abs_confdir=`(
1346 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1347 pwd)`
1348 # When building in place, set srcdir=.
1349 if test "$ac_abs_confdir" = "$ac_pwd"; then
1350 srcdir=.
1351 fi
1352 # Remove unnecessary trailing slashes from srcdir.
1353 # Double slashes in file names in object file debugging info
1354 # mess up M-x gdb in Emacs.
1355 case $srcdir in
1356 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1357 esac
1358 for ac_var in $ac_precious_vars; do
1359 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1360 eval ac_env_${ac_var}_value=\$${ac_var}
1361 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1362 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1363 done
1364
1365 #
1366 # Report the --help message.
1367 #
1368 if test "$ac_init_help" = "long"; then
1369 # Omit some internal or obsolete options to make the list less imposing.
1370 # This message is too long to be a string in the A/UX 3.1 sh.
1371 cat <<_ACEOF
1372 'configure' configures dviout-util (TeX Live) 20240427 to adapt to many kinds of systems.
1373
1374 Usage: $0 [OPTION]... [VAR=VALUE]...
1375
1376 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1377 VAR=VALUE. See below for descriptions of some of the useful variables.
1378
1379 Defaults for the options are specified in brackets.
1380
1381 Configuration:
1382 -h, --help display this help and exit
1383 --help=short display options specific to this package
1384 --help=recursive display the short help of all the included packages
1385 -V, --version display version information and exit
1386 -q, --quiet, --silent do not print 'checking ...' messages
1387 --cache-file=FILE cache test results in FILE [disabled]
1388 -C, --config-cache alias for '--cache-file=config.cache'
1389 -n, --no-create do not create output files
1390 --srcdir=DIR find the sources in DIR [configure dir or '..']
1391
1392 Installation directories:
1393 --prefix=PREFIX install architecture-independent files in PREFIX
1394 [$ac_default_prefix]
1395 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1396 [PREFIX]
1397
1398 By default, 'make install' will install all the files in
1399 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1400 an installation prefix other than '$ac_default_prefix' using '--prefix',
1401 for instance '--prefix=\$HOME'.
1402
1403 For better control, use the options below.
1404
1405 Fine tuning of the installation directories:
1406 --bindir=DIR user executables [EPREFIX/bin]
1407 --sbindir=DIR system admin executables [EPREFIX/sbin]
1408 --libexecdir=DIR program executables [EPREFIX/libexec]
1409 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1410 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1411 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1412 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1413 --libdir=DIR object code libraries [EPREFIX/lib]
1414 --includedir=DIR C header files [PREFIX/include]
1415 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1416 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1417 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1418 --infodir=DIR info documentation [DATAROOTDIR/info]
1419 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1420 --mandir=DIR man documentation [DATAROOTDIR/man]
1421 --docdir=DIR documentation root
1422 [DATAROOTDIR/doc/dviout-util--tex-live-]
1423 --htmldir=DIR html documentation [DOCDIR]
1424 --dvidir=DIR dvi documentation [DOCDIR]
1425 --pdfdir=DIR pdf documentation [DOCDIR]
1426 --psdir=DIR ps documentation [DOCDIR]
1427 _ACEOF
1428
1429 cat <<\_ACEOF
1430
1431 Program names:
1432 --program-prefix=PREFIX prepend PREFIX to installed program names
1433 --program-suffix=SUFFIX append SUFFIX to installed program names
1434 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1435
1436 System types:
1437 --build=BUILD configure for building on BUILD [guessed]
1438 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1439 _ACEOF
1440 fi
1441
1442 if test -n "$ac_init_help"; then
1443 case $ac_init_help in
1444 short | recursive ) echo "Configuration of dviout-util (TeX Live) 20240427:";;
1445 esac
1446 cat <<\_ACEOF
1447
1448 Optional Features:
1449 --disable-option-checking ignore unrecognized --enable/--with options
1450 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1451 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1452 --enable-silent-rules less verbose build output (undo: "make V=1")
1453 --disable-silent-rules verbose build output (undo: "make V=0")
1454 --enable-maintainer-mode
1455 enable make rules and dependencies not useful (and
1456 sometimes confusing) to the casual installer
1457 --enable-dependency-tracking
1458 do not reject slow dependency extractors
1459 --disable-dependency-tracking
1460 speeds up one-time build
1461 --enable-compiler-warnings=[no|min|yes|max|all]
1462 Turn on compiler warnings [default: yes if
1463 maintainer-mode, min otherwise]
1464 --enable-shared[=PKGS] build shared libraries [default=yes]
1465 --enable-static[=PKGS] build static libraries [default=yes]
1466 --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1467 both]
1468 --enable-fast-install[=PKGS]
1469 optimize for fast installation [default=yes]
1470 --enable-aix-soname=aix|svr4|both
1471 shared library versioning (aka "SONAME") variant to
1472 provide on AIX, [default=aix].
1473 --disable-libtool-lock avoid locking (might break parallel builds)
1474 --disable-largefile omit support for large files
1475 --enable-year2038 support timestamps after 2038
1476
1477 Optional Packages:
1478 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1479 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1480 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1481 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1482 compiler's sysroot if not specified).
1483 --with-system-kpathsea use installed kpathsea headers and library (requires
1484 pkg-config)
1485 --with-system-ptexenc use installed ptexenc headers and library (requires
1486 pkg-config)
1487
1488 Some influential environment variables:
1489 CC C compiler command
1490 CFLAGS C compiler flags
1491 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1492 nonstandard directory <lib dir>
1493 LIBS libraries to pass to the linker, e.g. -l<library>
1494 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1495 you have headers in a nonstandard directory <include dir>
1496 LT_SYS_LIBRARY_PATH
1497 User-defined run-time library search path.
1498
1499 Use these variables to override the choices made by 'configure' or to help
1500 it to find libraries and programs with nonstandard names/locations.
1501
1502 Report bugs to <[email protected]>.
1503 _ACEOF
1504 ac_status=$?
1505 fi
1506
1507 if test "$ac_init_help" = "recursive"; then
1508 # If there are subdirs, report their specific --help.
1509 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1510 test -d "$ac_dir" ||
1511 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1512 continue
1513 ac_builddir=.
1514
1515 case "$ac_dir" in
1516 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1517 *)
1518 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1519 # A ".." for each directory in $ac_dir_suffix.
1520 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1521 case $ac_top_builddir_sub in
1522 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1523 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1524 esac ;;
1525 esac
1526 ac_abs_top_builddir=$ac_pwd
1527 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1528 # for backward compatibility:
1529 ac_top_builddir=$ac_top_build_prefix
1530
1531 case $srcdir in
1532 .) # We are building in place.
1533 ac_srcdir=.
1534 ac_top_srcdir=$ac_top_builddir_sub
1535 ac_abs_top_srcdir=$ac_pwd ;;
1536 [\\/]* | ?:[\\/]* ) # Absolute name.
1537 ac_srcdir=$srcdir$ac_dir_suffix;
1538 ac_top_srcdir=$srcdir
1539 ac_abs_top_srcdir=$srcdir ;;
1540 *) # Relative name.
1541 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1542 ac_top_srcdir=$ac_top_build_prefix$srcdir
1543 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1544 esac
1545 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1546
1547 cd "$ac_dir" || { ac_status=$?; continue; }
1548 # Check for configure.gnu first; this name is used for a wrapper for
1549 # Metaconfig's "Configure" on case-insensitive file systems.
1550 if test -f "$ac_srcdir/configure.gnu"; then
1551 echo &&
1552 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1553 elif test -f "$ac_srcdir/configure"; then
1554 echo &&
1555 $SHELL "$ac_srcdir/configure" --help=recursive
1556 else
1557 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1558 fi || ac_status=$?
1559 cd "$ac_pwd" || { ac_status=$?; break; }
1560 done
1561 fi
1562
1563 test -n "$ac_init_help" && exit $ac_status
1564 if $ac_init_version; then
1565 cat <<\_ACEOF
1566 dviout-util (TeX Live) configure 20240427
1567 generated by GNU Autoconf 2.72
1568
1569 Copyright (C) 2023 Free Software Foundation, Inc.
1570 This configure script is free software; the Free Software Foundation
1571 gives unlimited permission to copy, distribute and modify it.
1572 _ACEOF
1573 exit
1574 fi
1575
1576 ## ------------------------ ##
1577 ## Autoconf initialization. ##
1578 ## ------------------------ ##
1579
1580 # ac_fn_c_try_compile LINENO
1581 # --------------------------
1582 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1583 ac_fn_c_try_compile ()
1584 {
1585 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1586 rm -f conftest.$ac_objext conftest.beam
1587 if { { ac_try="$ac_compile"
1588 case "(($ac_try" in
1589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1590 *) ac_try_echo=$ac_try;;
1591 esac
1592 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1593 printf "%s\n" "$ac_try_echo"; } >&5
1594 (eval "$ac_compile") 2>conftest.err
1595 ac_status=$?
1596 if test -s conftest.err; then
1597 grep -v '^ *+' conftest.err >conftest.er1
1598 cat conftest.er1 >&5
1599 mv -f conftest.er1 conftest.err
1600 fi
1601 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1602 test $ac_status = 0; } && {
1603 test -z "$ac_c_werror_flag" ||
1604 test ! -s conftest.err
1605 } && test -s conftest.$ac_objext
1606 then :
1607 ac_retval=0
1608 else case e in #(
1609 e) printf "%s\n" "$as_me: failed program was:" >&5
1610 sed 's/^/| /' conftest.$ac_ext >&5
1611
1612 ac_retval=1 ;;
1613 esac
1614 fi
1615 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1616 as_fn_set_status $ac_retval
1617
1618 } # ac_fn_c_try_compile
1619
1620 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1621 # -------------------------------------------------------
1622 # Tests whether HEADER exists and can be compiled using the include files in
1623 # INCLUDES, setting the cache variable VAR accordingly.
1624 ac_fn_c_check_header_compile ()
1625 {
1626 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1628 printf %s "checking for $2... " >&6; }
1629 if eval test \${$3+y}
1630 then :
1631 printf %s "(cached) " >&6
1632 else case e in #(
1633 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1634 /* end confdefs.h. */
1635 $4
1636 #include <$2>
1637 _ACEOF
1638 if ac_fn_c_try_compile "$LINENO"
1639 then :
1640 eval "$3=yes"
1641 else case e in #(
1642 e) eval "$3=no" ;;
1643 esac
1644 fi
1645 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1646 esac
1647 fi
1648 eval ac_res=\$$3
1649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1650 printf "%s\n" "$ac_res" >&6; }
1651 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1652
1653 } # ac_fn_c_check_header_compile
1654
1655 # ac_fn_c_try_link LINENO
1656 # -----------------------
1657 # Try to link conftest.$ac_ext, and return whether this succeeded.
1658 ac_fn_c_try_link ()
1659 {
1660 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1661 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1662 if { { ac_try="$ac_link"
1663 case "(($ac_try" in
1664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1665 *) ac_try_echo=$ac_try;;
1666 esac
1667 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1668 printf "%s\n" "$ac_try_echo"; } >&5
1669 (eval "$ac_link") 2>conftest.err
1670 ac_status=$?
1671 if test -s conftest.err; then
1672 grep -v '^ *+' conftest.err >conftest.er1
1673 cat conftest.er1 >&5
1674 mv -f conftest.er1 conftest.err
1675 fi
1676 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1677 test $ac_status = 0; } && {
1678 test -z "$ac_c_werror_flag" ||
1679 test ! -s conftest.err
1680 } && test -s conftest$ac_exeext && {
1681 test "$cross_compiling" = yes ||
1682 test -x conftest$ac_exeext
1683 }
1684 then :
1685 ac_retval=0
1686 else case e in #(
1687 e) printf "%s\n" "$as_me: failed program was:" >&5
1688 sed 's/^/| /' conftest.$ac_ext >&5
1689
1690 ac_retval=1 ;;
1691 esac
1692 fi
1693 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1694 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1695 # interfere with the next link command; also delete a directory that is
1696 # left behind by Apple's compiler. We do this before executing the actions.
1697 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1698 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1699 as_fn_set_status $ac_retval
1700
1701 } # ac_fn_c_try_link
1702
1703 # ac_fn_c_check_func LINENO FUNC VAR
1704 # ----------------------------------
1705 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1706 ac_fn_c_check_func ()
1707 {
1708 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1710 printf %s "checking for $2... " >&6; }
1711 if eval test \${$3+y}
1712 then :
1713 printf %s "(cached) " >&6
1714 else case e in #(
1715 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1716 /* end confdefs.h. */
1717 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1718 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1719 #define $2 innocuous_$2
1720
1721 /* System header to define __stub macros and hopefully few prototypes,
1722 which can conflict with char $2 (void); below. */
1723
1724 #include <limits.h>
1725 #undef $2
1726
1727 /* Override any GCC internal prototype to avoid an error.
1728 Use char because int might match the return type of a GCC
1729 builtin and then its argument prototype would still apply. */
1730 #ifdef __cplusplus
1731 extern "C"
1732 #endif
1733 char $2 (void);
1734 /* The GNU C library defines this for functions which it implements
1735 to always fail with ENOSYS. Some functions are actually named
1736 something starting with __ and the normal name is an alias. */
1737 #if defined __stub_$2 || defined __stub___$2
1738 choke me
1739 #endif
1740
1741 int
1742 main (void)
1743 {
1744 return $2 ();
1745 ;
1746 return 0;
1747 }
1748 _ACEOF
1749 if ac_fn_c_try_link "$LINENO"
1750 then :
1751 eval "$3=yes"
1752 else case e in #(
1753 e) eval "$3=no" ;;
1754 esac
1755 fi
1756 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1757 conftest$ac_exeext conftest.$ac_ext ;;
1758 esac
1759 fi
1760 eval ac_res=\$$3
1761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1762 printf "%s\n" "$ac_res" >&6; }
1763 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1764
1765 } # ac_fn_c_check_func
1766
1767 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1768 # -------------------------------------------
1769 # Tests whether TYPE exists after having included INCLUDES, setting cache
1770 # variable VAR accordingly.
1771 ac_fn_c_check_type ()
1772 {
1773 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1775 printf %s "checking for $2... " >&6; }
1776 if eval test \${$3+y}
1777 then :
1778 printf %s "(cached) " >&6
1779 else case e in #(
1780 e) eval "$3=no"
1781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1782 /* end confdefs.h. */
1783 $4
1784 int
1785 main (void)
1786 {
1787 if (sizeof ($2))
1788 return 0;
1789 ;
1790 return 0;
1791 }
1792 _ACEOF
1793 if ac_fn_c_try_compile "$LINENO"
1794 then :
1795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1796 /* end confdefs.h. */
1797 $4
1798 int
1799 main (void)
1800 {
1801 if (sizeof (($2)))
1802 return 0;
1803 ;
1804 return 0;
1805 }
1806 _ACEOF
1807 if ac_fn_c_try_compile "$LINENO"
1808 then :
1809
1810 else case e in #(
1811 e) eval "$3=yes" ;;
1812 esac
1813 fi
1814 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1815 fi
1816 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1817 esac
1818 fi
1819 eval ac_res=\$$3
1820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1821 printf "%s\n" "$ac_res" >&6; }
1822 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1823
1824 } # ac_fn_c_check_type
1825
1826 # ac_fn_c_find_intX_t LINENO BITS VAR
1827 # -----------------------------------
1828 # Finds a signed integer type with width BITS, setting cache variable VAR
1829 # accordingly.
1830 ac_fn_c_find_intX_t ()
1831 {
1832 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1834 printf %s "checking for int$2_t... " >&6; }
1835 if eval test \${$3+y}
1836 then :
1837 printf %s "(cached) " >&6
1838 else case e in #(
1839 e) eval "$3=no"
1840 # Order is important - never check a type that is potentially smaller
1841 # than half of the expected target width.
1842 for ac_type in int$2_t 'int' 'long int' \
1843 'long long int' 'short int' 'signed char'; do
1844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1845 /* end confdefs.h. */
1846 $ac_includes_default
1847 enum { N = $2 / 2 - 1 };
1848 int
1849 main (void)
1850 {
1851 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
1852 test_array [0] = 0;
1853 return test_array [0];
1854
1855 ;
1856 return 0;
1857 }
1858 _ACEOF
1859 if ac_fn_c_try_compile "$LINENO"
1860 then :
1861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1862 /* end confdefs.h. */
1863 $ac_includes_default
1864 enum { N = $2 / 2 - 1 };
1865 int
1866 main (void)
1867 {
1868 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
1869 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
1870 test_array [0] = 0;
1871 return test_array [0];
1872
1873 ;
1874 return 0;
1875 }
1876 _ACEOF
1877 if ac_fn_c_try_compile "$LINENO"
1878 then :
1879
1880 else case e in #(
1881 e) case $ac_type in #(
1882 int$2_t) :
1883 eval "$3=yes" ;; #(
1884 *) :
1885 eval "$3=\$ac_type" ;;
1886 esac ;;
1887 esac
1888 fi
1889 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1890 fi
1891 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1892 if eval test \"x\$"$3"\" = x"no"
1893 then :
1894
1895 else case e in #(
1896 e) break ;;
1897 esac
1898 fi
1899 done ;;
1900 esac
1901 fi
1902 eval ac_res=\$$3
1903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1904 printf "%s\n" "$ac_res" >&6; }
1905 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1906
1907 } # ac_fn_c_find_intX_t
1908
1909 # ac_fn_c_find_uintX_t LINENO BITS VAR
1910 # ------------------------------------
1911 # Finds an unsigned integer type with width BITS, setting cache variable VAR
1912 # accordingly.
1913 ac_fn_c_find_uintX_t ()
1914 {
1915 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1917 printf %s "checking for uint$2_t... " >&6; }
1918 if eval test \${$3+y}
1919 then :
1920 printf %s "(cached) " >&6
1921 else case e in #(
1922 e) eval "$3=no"
1923 # Order is important - never check a type that is potentially smaller
1924 # than half of the expected target width.
1925 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1926 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1928 /* end confdefs.h. */
1929 $ac_includes_default
1930 int
1931 main (void)
1932 {
1933 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1934 test_array [0] = 0;
1935 return test_array [0];
1936
1937 ;
1938 return 0;
1939 }
1940 _ACEOF
1941 if ac_fn_c_try_compile "$LINENO"
1942 then :
1943 case $ac_type in #(
1944 uint$2_t) :
1945 eval "$3=yes" ;; #(
1946 *) :
1947 eval "$3=\$ac_type" ;;
1948 esac
1949 fi
1950 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1951 if eval test \"x\$"$3"\" = x"no"
1952 then :
1953
1954 else case e in #(
1955 e) break ;;
1956 esac
1957 fi
1958 done ;;
1959 esac
1960 fi
1961 eval ac_res=\$$3
1962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1963 printf "%s\n" "$ac_res" >&6; }
1964 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1965
1966 } # ac_fn_c_find_uintX_t
1967
1968 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1969 # ------------------------------------------------------------------
1970 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1971 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1972 ac_fn_check_decl ()
1973 {
1974 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1975 as_decl_name=`echo $2|sed 's/ *(.*//'`
1976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1977 printf %s "checking whether $as_decl_name is declared... " >&6; }
1978 if eval test \${$3+y}
1979 then :
1980 printf %s "(cached) " >&6
1981 else case e in #(
1982 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1983 eval ac_save_FLAGS=\$$6
1984 as_fn_append $6 " $5"
1985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1986 /* end confdefs.h. */
1987 $4
1988 int
1989 main (void)
1990 {
1991 #ifndef $as_decl_name
1992 #ifdef __cplusplus
1993 (void) $as_decl_use;
1994 #else
1995 (void) $as_decl_name;
1996 #endif
1997 #endif
1998
1999 ;
2000 return 0;
2001 }
2002 _ACEOF
2003 if ac_fn_c_try_compile "$LINENO"
2004 then :
2005 eval "$3=yes"
2006 else case e in #(
2007 e) eval "$3=no" ;;
2008 esac
2009 fi
2010 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2011 eval $6=\$ac_save_FLAGS
2012 ;;
2013 esac
2014 fi
2015 eval ac_res=\$$3
2016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2017 printf "%s\n" "$ac_res" >&6; }
2018 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2019
2020 } # ac_fn_check_decl
2021
2022 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2023 # ----------------------------------------------------
2024 # Tries to find if the field MEMBER exists in type AGGR, after including
2025 # INCLUDES, setting cache variable VAR accordingly.
2026 ac_fn_c_check_member ()
2027 {
2028 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2030 printf %s "checking for $2.$3... " >&6; }
2031 if eval test \${$4+y}
2032 then :
2033 printf %s "(cached) " >&6
2034 else case e in #(
2035 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2036 /* end confdefs.h. */
2037 $5
2038 int
2039 main (void)
2040 {
2041 static $2 ac_aggr;
2042 if (ac_aggr.$3)
2043 return 0;
2044 ;
2045 return 0;
2046 }
2047 _ACEOF
2048 if ac_fn_c_try_compile "$LINENO"
2049 then :
2050 eval "$4=yes"
2051 else case e in #(
2052 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2053 /* end confdefs.h. */
2054 $5
2055 int
2056 main (void)
2057 {
2058 static $2 ac_aggr;
2059 if (sizeof ac_aggr.$3)
2060 return 0;
2061 ;
2062 return 0;
2063 }
2064 _ACEOF
2065 if ac_fn_c_try_compile "$LINENO"
2066 then :
2067 eval "$4=yes"
2068 else case e in #(
2069 e) eval "$4=no" ;;
2070 esac
2071 fi
2072 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2073 esac
2074 fi
2075 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2076 esac
2077 fi
2078 eval ac_res=\$$4
2079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2080 printf "%s\n" "$ac_res" >&6; }
2081 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2082
2083 } # ac_fn_c_check_member
2084 ac_configure_args_raw=
2085 for ac_arg
2086 do
2087 case $ac_arg in
2088 *\'*)
2089 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2090 esac
2091 as_fn_append ac_configure_args_raw " '$ac_arg'"
2092 done
2093
2094 case $ac_configure_args_raw in
2095 *$as_nl*)
2096 ac_safe_unquote= ;;
2097 *)
2098 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2099 ac_unsafe_a="$ac_unsafe_z#~"
2100 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2101 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2102 esac
2103
2104 cat >config.log <<_ACEOF
2105 This file contains any messages produced by compilers while
2106 running configure, to aid debugging if configure makes a mistake.
2107
2108 It was created by dviout-util (TeX Live) $as_me 20240427, which was
2109 generated by GNU Autoconf 2.72. Invocation command line was
2110
2111 $ $0$ac_configure_args_raw
2112
2113 _ACEOF
2114 exec 5>>config.log
2115 {
2116 cat <<_ASUNAME
2117 ## --------- ##
2118 ## Platform. ##
2119 ## --------- ##
2120
2121 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2122 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2123 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2124 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2125 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2126
2127 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2128 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2129
2130 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2131 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2132 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2133 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2134 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2135 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2136 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2137
2138 _ASUNAME
2139
2140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2141 for as_dir in $PATH
2142 do
2143 IFS=$as_save_IFS
2144 case $as_dir in #(((
2145 '') as_dir=./ ;;
2146 */) ;;
2147 *) as_dir=$as_dir/ ;;
2148 esac
2149 printf "%s\n" "PATH: $as_dir"
2150 done
2151 IFS=$as_save_IFS
2152
2153 } >&5
2154
2155 cat >&5 <<_ACEOF
2156
2157
2158 ## ----------- ##
2159 ## Core tests. ##
2160 ## ----------- ##
2161
2162 _ACEOF
2163
2164
2165 # Keep a trace of the command line.
2166 # Strip out --no-create and --no-recursion so they do not pile up.
2167 # Strip out --silent because we don't want to record it for future runs.
2168 # Also quote any args containing shell meta-characters.
2169 # Make two passes to allow for proper duplicate-argument suppression.
2170 ac_configure_args=
2171 ac_configure_args0=
2172 ac_configure_args1=
2173 ac_must_keep_next=false
2174 for ac_pass in 1 2
2175 do
2176 for ac_arg
2177 do
2178 case $ac_arg in
2179 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2180 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2181 | -silent | --silent | --silen | --sile | --sil)
2182 continue ;;
2183 *\'*)
2184 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2185 esac
2186 case $ac_pass in
2187 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2188 2)
2189 as_fn_append ac_configure_args1 " '$ac_arg'"
2190 if test $ac_must_keep_next = true; then
2191 ac_must_keep_next=false # Got value, back to normal.
2192 else
2193 case $ac_arg in
2194 *=* | --config-cache | -C | -disable-* | --disable-* \
2195 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2196 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2197 | -with-* | --with-* | -without-* | --without-* | --x)
2198 case "$ac_configure_args0 " in
2199 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2200 esac
2201 ;;
2202 -* ) ac_must_keep_next=true ;;
2203 esac
2204 fi
2205 as_fn_append ac_configure_args " '$ac_arg'"
2206 ;;
2207 esac
2208 done
2209 done
2210 { ac_configure_args0=; unset ac_configure_args0;}
2211 { ac_configure_args1=; unset ac_configure_args1;}
2212
2213 # When interrupted or exit'd, cleanup temporary files, and complete
2214 # config.log. We remove comments because anyway the quotes in there
2215 # would cause problems or look ugly.
2216 # WARNING: Use '\'' to represent an apostrophe within the trap.
2217 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2218 trap 'exit_status=$?
2219 # Sanitize IFS.
2220 IFS=" "" $as_nl"
2221 # Save into config.log some information that might help in debugging.
2222 {
2223 echo
2224
2225 printf "%s\n" "## ---------------- ##
2226 ## Cache variables. ##
2227 ## ---------------- ##"
2228 echo
2229 # The following way of writing the cache mishandles newlines in values,
2230 (
2231 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2232 eval ac_val=\$$ac_var
2233 case $ac_val in #(
2234 *${as_nl}*)
2235 case $ac_var in #(
2236 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2237 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2238 esac
2239 case $ac_var in #(
2240 _ | IFS | as_nl) ;; #(
2241 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2242 *) { eval $ac_var=; unset $ac_var;} ;;
2243 esac ;;
2244 esac
2245 done
2246 (set) 2>&1 |
2247 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2248 *${as_nl}ac_space=\ *)
2249 sed -n \
2250 "s/'\''/'\''\\\\'\'''\''/g;
2251 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2252 ;; #(
2253 *)
2254 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2255 ;;
2256 esac |
2257 sort
2258 )
2259 echo
2260
2261 printf "%s\n" "## ----------------- ##
2262 ## Output variables. ##
2263 ## ----------------- ##"
2264 echo
2265 for ac_var in $ac_subst_vars
2266 do
2267 eval ac_val=\$$ac_var
2268 case $ac_val in
2269 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2270 esac
2271 printf "%s\n" "$ac_var='\''$ac_val'\''"
2272 done | sort
2273 echo
2274
2275 if test -n "$ac_subst_files"; then
2276 printf "%s\n" "## ------------------- ##
2277 ## File substitutions. ##
2278 ## ------------------- ##"
2279 echo
2280 for ac_var in $ac_subst_files
2281 do
2282 eval ac_val=\$$ac_var
2283 case $ac_val in
2284 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2285 esac
2286 printf "%s\n" "$ac_var='\''$ac_val'\''"
2287 done | sort
2288 echo
2289 fi
2290
2291 if test -s confdefs.h; then
2292 printf "%s\n" "## ----------- ##
2293 ## confdefs.h. ##
2294 ## ----------- ##"
2295 echo
2296 cat confdefs.h
2297 echo
2298 fi
2299 test "$ac_signal" != 0 &&
2300 printf "%s\n" "$as_me: caught signal $ac_signal"
2301 printf "%s\n" "$as_me: exit $exit_status"
2302 } >&5
2303 rm -f core *.core core.conftest.* &&
2304 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2305 exit $exit_status
2306 ' 0
2307 for ac_signal in 1 2 13 15; do
2308 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2309 done
2310 ac_signal=0
2311
2312 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2313 rm -f -r conftest* confdefs.h
2314
2315 printf "%s\n" "/* confdefs.h */" > confdefs.h
2316
2317 # Predefined preprocessor variables.
2318
2319 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2320
2321 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2322
2323 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2324
2325 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2326
2327 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2328
2329 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2330
2331
2332 # Let the site file select an alternate cache file if it wants to.
2333 # Prefer an explicitly selected file to automatically selected ones.
2334 if test -n "$CONFIG_SITE"; then
2335 ac_site_files="$CONFIG_SITE"
2336 elif test "x$prefix" != xNONE; then
2337 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2338 else
2339 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2340 fi
2341
2342 for ac_site_file in $ac_site_files
2343 do
2344 case $ac_site_file in #(
2345 */*) :
2346 ;; #(
2347 *) :
2348 ac_site_file=./$ac_site_file ;;
2349 esac
2350 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2352 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2353 sed 's/^/| /' "$ac_site_file" >&5
2354 . "$ac_site_file" \
2355 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2356 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2357 as_fn_error $? "failed to load site script $ac_site_file
2358 See 'config.log' for more details" "$LINENO" 5; }
2359 fi
2360 done
2361
2362 if test -r "$cache_file"; then
2363 # Some versions of bash will fail to source /dev/null (special files
2364 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2365 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2367 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2368 case $cache_file in
2369 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2370 *) . "./$cache_file";;
2371 esac
2372 fi
2373 else
2374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2375 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2376 >$cache_file
2377 fi
2378
2379 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2380 # Test code for whether the C compiler supports C89 (global declarations)
2381 ac_c_conftest_c89_globals='
2382 /* Does the compiler advertise C89 conformance?
2383 Do not test the value of __STDC__, because some compilers set it to 0
2384 while being otherwise adequately conformant. */
2385 #if !defined __STDC__
2386 # error "Compiler does not advertise C89 conformance"
2387 #endif
2388
2389 #include <stddef.h>
2390 #include <stdarg.h>
2391 struct stat;
2392 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2393 struct buf { int x; };
2394 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2395 static char *e (char **p, int i)
2396 {
2397 return p[i];
2398 }
2399 static char *f (char * (*g) (char **, int), char **p, ...)
2400 {
2401 char *s;
2402 va_list v;
2403 va_start (v,p);
2404 s = g (p, va_arg (v,int));
2405 va_end (v);
2406 return s;
2407 }
2408
2409 /* C89 style stringification. */
2410 #define noexpand_stringify(a) #a
2411 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2412
2413 /* C89 style token pasting. Exercises some of the corner cases that
2414 e.g. old MSVC gets wrong, but not very hard. */
2415 #define noexpand_concat(a,b) a##b
2416 #define expand_concat(a,b) noexpand_concat(a,b)
2417 extern int vA;
2418 extern int vbee;
2419 #define aye A
2420 #define bee B
2421 int *pvA = &expand_concat(v,aye);
2422 int *pvbee = &noexpand_concat(v,bee);
2423
2424 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2425 function prototypes and stuff, but not \xHH hex character constants.
2426 These do not provoke an error unfortunately, instead are silently treated
2427 as an "x". The following induces an error, until -std is added to get
2428 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2429 array size at least. It is necessary to write \x00 == 0 to get something
2430 that is true only with -std. */
2431 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2432
2433 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2434 inside strings and character constants. */
2435 #define FOO(x) '\''x'\''
2436 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2437
2438 int test (int i, double x);
2439 struct s1 {int (*f) (int a);};
2440 struct s2 {int (*f) (double a);};
2441 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2442 int, int);'
2443
2444 # Test code for whether the C compiler supports C89 (body of main).
2445 ac_c_conftest_c89_main='
2446 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2447 '
2448
2449 # Test code for whether the C compiler supports C99 (global declarations)
2450 ac_c_conftest_c99_globals='
2451 /* Does the compiler advertise C99 conformance? */
2452 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2453 # error "Compiler does not advertise C99 conformance"
2454 #endif
2455
2456 // See if C++-style comments work.
2457
2458 #include <stdbool.h>
2459 extern int puts (const char *);
2460 extern int printf (const char *, ...);
2461 extern int dprintf (int, const char *, ...);
2462 extern void *malloc (size_t);
2463 extern void free (void *);
2464
2465 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2466 // dprintf is used instead of fprintf to avoid needing to declare
2467 // FILE and stderr.
2468 #define debug(...) dprintf (2, __VA_ARGS__)
2469 #define showlist(...) puts (#__VA_ARGS__)
2470 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2471 static void
2472 test_varargs_macros (void)
2473 {
2474 int x = 1234;
2475 int y = 5678;
2476 debug ("Flag");
2477 debug ("X = %d\n", x);
2478 showlist (The first, second, and third items.);
2479 report (x>y, "x is %d but y is %d", x, y);
2480 }
2481
2482 // Check long long types.
2483 #define BIG64 18446744073709551615ull
2484 #define BIG32 4294967295ul
2485 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2486 #if !BIG_OK
2487 #error "your preprocessor is broken"
2488 #endif
2489 #if BIG_OK
2490 #else
2491 #error "your preprocessor is broken"
2492 #endif
2493 static long long int bignum = -9223372036854775807LL;
2494 static unsigned long long int ubignum = BIG64;
2495
2496 struct incomplete_array
2497 {
2498 int datasize;
2499 double data[];
2500 };
2501
2502 struct named_init {
2503 int number;
2504 const wchar_t *name;
2505 double average;
2506 };
2507
2508 typedef const char *ccp;
2509
2510 static inline int
2511 test_restrict (ccp restrict text)
2512 {
2513 // Iterate through items via the restricted pointer.
2514 // Also check for declarations in for loops.
2515 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2516 continue;
2517 return 0;
2518 }
2519
2520 // Check varargs and va_copy.
2521 static bool
2522 test_varargs (const char *format, ...)
2523 {
2524 va_list args;
2525 va_start (args, format);
2526 va_list args_copy;
2527 va_copy (args_copy, args);
2528
2529 const char *str = "";
2530 int number = 0;
2531 float fnumber = 0;
2532
2533 while (*format)
2534 {
2535 switch (*format++)
2536 {
2537 case '\''s'\'': // string
2538 str = va_arg (args_copy, const char *);
2539 break;
2540 case '\''d'\'': // int
2541 number = va_arg (args_copy, int);
2542 break;
2543 case '\''f'\'': // float
2544 fnumber = va_arg (args_copy, double);
2545 break;
2546 default:
2547 break;
2548 }
2549 }
2550 va_end (args_copy);
2551 va_end (args);
2552
2553 return *str && number && fnumber;
2554 }
2555 '
2556
2557 # Test code for whether the C compiler supports C99 (body of main).
2558 ac_c_conftest_c99_main='
2559 // Check bool.
2560 _Bool success = false;
2561 success |= (argc != 0);
2562
2563 // Check restrict.
2564 if (test_restrict ("String literal") == 0)
2565 success = true;
2566 char *restrict newvar = "Another string";
2567
2568 // Check varargs.
2569 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2570 test_varargs_macros ();
2571
2572 // Check flexible array members.
2573 struct incomplete_array *ia =
2574 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2575 ia->datasize = 10;
2576 for (int i = 0; i < ia->datasize; ++i)
2577 ia->data[i] = i * 1.234;
2578 // Work around memory leak warnings.
2579 free (ia);
2580
2581 // Check named initializers.
2582 struct named_init ni = {
2583 .number = 34,
2584 .name = L"Test wide string",
2585 .average = 543.34343,
2586 };
2587
2588 ni.number = 58;
2589
2590 int dynamic_array[ni.number];
2591 dynamic_array[0] = argv[0][0];
2592 dynamic_array[ni.number - 1] = 543;
2593
2594 // work around unused variable warnings
2595 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2596 || dynamic_array[ni.number - 1] != 543);
2597 '
2598
2599 # Test code for whether the C compiler supports C11 (global declarations)
2600 ac_c_conftest_c11_globals='
2601 /* Does the compiler advertise C11 conformance? */
2602 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2603 # error "Compiler does not advertise C11 conformance"
2604 #endif
2605
2606 // Check _Alignas.
2607 char _Alignas (double) aligned_as_double;
2608 char _Alignas (0) no_special_alignment;
2609 extern char aligned_as_int;
2610 char _Alignas (0) _Alignas (int) aligned_as_int;
2611
2612 // Check _Alignof.
2613 enum
2614 {
2615 int_alignment = _Alignof (int),
2616 int_array_alignment = _Alignof (int[100]),
2617 char_alignment = _Alignof (char)
2618 };
2619 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2620
2621 // Check _Noreturn.
2622 int _Noreturn does_not_return (void) { for (;;) continue; }
2623
2624 // Check _Static_assert.
2625 struct test_static_assert
2626 {
2627 int x;
2628 _Static_assert (sizeof (int) <= sizeof (long int),
2629 "_Static_assert does not work in struct");
2630 long int y;
2631 };
2632
2633 // Check UTF-8 literals.
2634 #define u8 syntax error!
2635 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2636
2637 // Check duplicate typedefs.
2638 typedef long *long_ptr;
2639 typedef long int *long_ptr;
2640 typedef long_ptr long_ptr;
2641
2642 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2643 struct anonymous
2644 {
2645 union {
2646 struct { int i; int j; };
2647 struct { int k; long int l; } w;
2648 };
2649 int m;
2650 } v1;
2651 '
2652
2653 # Test code for whether the C compiler supports C11 (body of main).
2654 ac_c_conftest_c11_main='
2655 _Static_assert ((offsetof (struct anonymous, i)
2656 == offsetof (struct anonymous, w.k)),
2657 "Anonymous union alignment botch");
2658 v1.i = 2;
2659 v1.w.k = 5;
2660 ok |= v1.i != 5;
2661 '
2662
2663 # Test code for whether the C compiler supports C11 (complete).
2664 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2665 ${ac_c_conftest_c99_globals}
2666 ${ac_c_conftest_c11_globals}
2667
2668 int
2669 main (int argc, char **argv)
2670 {
2671 int ok = 0;
2672 ${ac_c_conftest_c89_main}
2673 ${ac_c_conftest_c99_main}
2674 ${ac_c_conftest_c11_main}
2675 return ok;
2676 }
2677 "
2678
2679 # Test code for whether the C compiler supports C99 (complete).
2680 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2681 ${ac_c_conftest_c99_globals}
2682
2683 int
2684 main (int argc, char **argv)
2685 {
2686 int ok = 0;
2687 ${ac_c_conftest_c89_main}
2688 ${ac_c_conftest_c99_main}
2689 return ok;
2690 }
2691 "
2692
2693 # Test code for whether the C compiler supports C89 (complete).
2694 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2695
2696 int
2697 main (int argc, char **argv)
2698 {
2699 int ok = 0;
2700 ${ac_c_conftest_c89_main}
2701 return ok;
2702 }
2703 "
2704
2705 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2706 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2707 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2708 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2709 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2710 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2711 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2712 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2713 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2714 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2715
2716 # Auxiliary files required by this configure script.
2717 ac_aux_files="config.guess config.sub ltmain.sh ar-lib compile missing install-sh"
2718
2719 # Locations in which to look for auxiliary files.
2720 ac_aux_dir_candidates="${srcdir}/../../build-aux"
2721
2722 # Search for a directory containing all of the required auxiliary files,
2723 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2724 # If we don't find one directory that contains all the files we need,
2725 # we report the set of missing files from the *first* directory in
2726 # $ac_aux_dir_candidates and give up.
2727 ac_missing_aux_files=""
2728 ac_first_candidate=:
2729 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2731 as_found=false
2732 for as_dir in $ac_aux_dir_candidates
2733 do
2734 IFS=$as_save_IFS
2735 case $as_dir in #(((
2736 '') as_dir=./ ;;
2737 */) ;;
2738 *) as_dir=$as_dir/ ;;
2739 esac
2740 as_found=:
2741
2742 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2743 ac_aux_dir_found=yes
2744 ac_install_sh=
2745 for ac_aux in $ac_aux_files
2746 do
2747 # As a special case, if "install-sh" is required, that requirement
2748 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2749 # and $ac_install_sh is set appropriately for whichever one is found.
2750 if test x"$ac_aux" = x"install-sh"
2751 then
2752 if test -f "${as_dir}install-sh"; then
2753 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2754 ac_install_sh="${as_dir}install-sh -c"
2755 elif test -f "${as_dir}install.sh"; then
2756 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2757 ac_install_sh="${as_dir}install.sh -c"
2758 elif test -f "${as_dir}shtool"; then
2759 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2760 ac_install_sh="${as_dir}shtool install -c"
2761 else
2762 ac_aux_dir_found=no
2763 if $ac_first_candidate; then
2764 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2765 else
2766 break
2767 fi
2768 fi
2769 else
2770 if test -f "${as_dir}${ac_aux}"; then
2771 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2772 else
2773 ac_aux_dir_found=no
2774 if $ac_first_candidate; then
2775 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2776 else
2777 break
2778 fi
2779 fi
2780 fi
2781 done
2782 if test "$ac_aux_dir_found" = yes; then
2783 ac_aux_dir="$as_dir"
2784 break
2785 fi
2786 ac_first_candidate=false
2787
2788 as_found=false
2789 done
2790 IFS=$as_save_IFS
2791 if $as_found
2792 then :
2793
2794 else case e in #(
2795 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2796 esac
2797 fi
2798
2799
2800 # These three variables are undocumented and unsupported,
2801 # and are intended to be withdrawn in a future Autoconf release.
2802 # They can cause serious problems if a builder's source tree is in a directory
2803 # whose full name contains unusual characters.
2804 if test -f "${ac_aux_dir}config.guess"; then
2805 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2806 fi
2807 if test -f "${ac_aux_dir}config.sub"; then
2808 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2809 fi
2810 if test -f "$ac_aux_dir/configure"; then
2811 ac_configure="$SHELL ${ac_aux_dir}configure"
2812 fi
2813
2814 # Check that the precious variables saved in the cache have kept the same
2815 # value.
2816 ac_cache_corrupted=false
2817 for ac_var in $ac_precious_vars; do
2818 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2819 eval ac_new_set=\$ac_env_${ac_var}_set
2820 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2821 eval ac_new_val=\$ac_env_${ac_var}_value
2822 case $ac_old_set,$ac_new_set in
2823 set,)
2824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2825 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2826 ac_cache_corrupted=: ;;
2827 ,set)
2828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2829 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2830 ac_cache_corrupted=: ;;
2831 ,);;
2832 *)
2833 if test "x$ac_old_val" != "x$ac_new_val"; then
2834 # differences in whitespace do not lead to failure.
2835 ac_old_val_w=`echo x $ac_old_val`
2836 ac_new_val_w=`echo x $ac_new_val`
2837 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2839 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2840 ac_cache_corrupted=:
2841 else
2842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2843 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2844 eval $ac_var=\$ac_old_val
2845 fi
2846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2847 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2849 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2850 fi;;
2851 esac
2852 # Pass precious variables to config.status.
2853 if test "$ac_new_set" = set; then
2854 case $ac_new_val in
2855 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2856 *) ac_arg=$ac_var=$ac_new_val ;;
2857 esac
2858 case " $ac_configure_args " in
2859 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2860 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2861 esac
2862 fi
2863 done
2864 if $ac_cache_corrupted; then
2865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2866 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2868 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2869 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2870 and start over" "$LINENO" 5
2871 fi
2872 ## -------------------- ##
2873 ## Main body of script. ##
2874 ## -------------------- ##
2875
2876 ac_ext=c
2877 ac_cpp='$CPP $CPPFLAGS'
2878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2881
2882
2883
2884
2885
2886
2887
2888 am__api_version='1.18'
2889
2890
2891
2892 # Find a good install program. We prefer a C program (faster),
2893 # so one script is as good as another. But avoid the broken or
2894 # incompatible versions:
2895 # SysV /etc/install, /usr/sbin/install
2896 # SunOS /usr/etc/install
2897 # IRIX /sbin/install
2898 # AIX /bin/install
2899 # AmigaOS /C/install, which installs bootblocks on floppy discs
2900 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2901 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2902 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2903 # OS/2's system install, which has a completely different semantic
2904 # ./install, which can be erroneously created by make from ./install.sh.
2905 # Reject install programs that cannot install multiple files.
2906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2907 printf %s "checking for a BSD-compatible install... " >&6; }
2908 if test -z "$INSTALL"; then
2909 if test ${ac_cv_path_install+y}
2910 then :
2911 printf %s "(cached) " >&6
2912 else case e in #(
2913 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2914 for as_dir in $PATH
2915 do
2916 IFS=$as_save_IFS
2917 case $as_dir in #(((
2918 '') as_dir=./ ;;
2919 */) ;;
2920 *) as_dir=$as_dir/ ;;
2921 esac
2922 # Account for fact that we put trailing slashes in our PATH walk.
2923 case $as_dir in #((
2924 ./ | /[cC]/* | \
2925 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2926 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2927 /usr/ucb/* ) ;;
2928 *)
2929 # OSF1 and SCO ODT 3.0 have their own names for install.
2930 # Don't use installbsd from OSF since it installs stuff as root
2931 # by default.
2932 for ac_prog in ginstall scoinst install; do
2933 for ac_exec_ext in '' $ac_executable_extensions; do
2934 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2935 if test $ac_prog = install &&
2936 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2937 # AIX install. It has an incompatible calling convention.
2938 :
2939 elif test $ac_prog = install &&
2940 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2941 # program-specific install script used by HP pwplus--don't use.
2942 :
2943 else
2944 rm -rf conftest.one conftest.two conftest.dir
2945 echo one > conftest.one
2946 echo two > conftest.two
2947 mkdir conftest.dir
2948 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2949 test -s conftest.one && test -s conftest.two &&
2950 test -s conftest.dir/conftest.one &&
2951 test -s conftest.dir/conftest.two
2952 then
2953 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2954 break 3
2955 fi
2956 fi
2957 fi
2958 done
2959 done
2960 ;;
2961 esac
2962
2963 done
2964 IFS=$as_save_IFS
2965
2966 rm -rf conftest.one conftest.two conftest.dir
2967 ;;
2968 esac
2969 fi
2970 if test ${ac_cv_path_install+y}; then
2971 INSTALL=$ac_cv_path_install
2972 else
2973 # As a last resort, use the slow shell script. Don't cache a
2974 # value for INSTALL within a source directory, because that will
2975 # break other packages using the cache if that directory is
2976 # removed, or if the value is a relative name.
2977 INSTALL=$ac_install_sh
2978 fi
2979 fi
2980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2981 printf "%s\n" "$INSTALL" >&6; }
2982
2983 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2984 # It thinks the first close brace ends the variable substitution.
2985 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2986
2987 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2988
2989 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2990
2991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
2992 printf %s "checking whether sleep supports fractional seconds... " >&6; }
2993 if test ${am_cv_sleep_fractional_seconds+y}
2994 then :
2995 printf %s "(cached) " >&6
2996 else case e in #(
2997 e) if sleep 0.001 2>/dev/null
2998 then :
2999 am_cv_sleep_fractional_seconds=yes
3000 else case e in #(
3001 e) am_cv_sleep_fractional_seconds=no ;;
3002 esac
3003 fi
3004 ;;
3005 esac
3006 fi
3007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
3008 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
3009
3010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
3011 printf %s "checking filesystem timestamp resolution... " >&6; }
3012 if test ${am_cv_filesystem_timestamp_resolution+y}
3013 then :
3014 printf %s "(cached) " >&6
3015 else case e in #(
3016 e) # Default to the worst case.
3017 am_cv_filesystem_timestamp_resolution=2
3018
3019 # Only try to go finer than 1 sec if sleep can do it.
3020 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
3021 # - 1 sec is not much of a win compared to 2 sec, and
3022 # - it takes 2 seconds to perform the test whether 1 sec works.
3023 #
3024 # Instead, just use the default 2s on platforms that have 1s resolution,
3025 # accept the extra 1s delay when using $sleep in the Automake tests, in
3026 # exchange for not incurring the 2s delay for running the test for all
3027 # packages.
3028 #
3029 am_try_resolutions=
3030 if test "$am_cv_sleep_fractional_seconds" = yes; then
3031 # Even a millisecond often causes a bunch of false positives,
3032 # so just try a hundredth of a second. The time saved between .001 and
3033 # .01 is not terribly consequential.
3034 am_try_resolutions="0.01 0.1 $am_try_resolutions"
3035 fi
3036
3037 # In order to catch current-generation FAT out, we must *modify* files
3038 # that already exist; the *creation* timestamp is finer. Use names
3039 # that make ls -t sort them differently when they have equal
3040 # timestamps than when they have distinct timestamps, keeping
3041 # in mind that ls -t prints the *newest* file first.
3042 rm -f conftest.ts?
3043 : > conftest.ts1
3044 : > conftest.ts2
3045 : > conftest.ts3
3046
3047 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
3048 # clobber the current shell's arguments. (Outer-level square brackets
3049 # are removed by m4; they're present so that m4 does not expand
3050 # <dollar><star>; be careful, easy to get confused.)
3051 if (
3052 set X `ls -t conftest.ts[12]` &&
3053 {
3054 test "$*" != "X conftest.ts1 conftest.ts2" ||
3055 test "$*" != "X conftest.ts2 conftest.ts1";
3056 }
3057 ); then :; else
3058 # If neither matched, then we have a broken ls. This can happen
3059 # if, for instance, CONFIG_SHELL is bash and it inherits a
3060 # broken ls alias from the environment. This has actually
3061 # happened. Such a system could not be considered "sane".
3062 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
3063 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3064 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3065 as_fn_error $? "ls -t produces unexpected output.
3066 Make sure there is not a broken ls alias in your environment.
3067 See 'config.log' for more details" "$LINENO" 5; }
3068 fi
3069
3070 for am_try_res in $am_try_resolutions; do
3071 # Any one fine-grained sleep might happen to cross the boundary
3072 # between two values of a coarser actual resolution, but if we do
3073 # two fine-grained sleeps in a row, at least one of them will fall
3074 # entirely within a coarse interval.
3075 echo alpha > conftest.ts1
3076 sleep $am_try_res
3077 echo beta > conftest.ts2
3078 sleep $am_try_res
3079 echo gamma > conftest.ts3
3080
3081 # We assume that 'ls -t' will make use of high-resolution
3082 # timestamps if the operating system supports them at all.
3083 if (set X `ls -t conftest.ts?` &&
3084 test "$2" = conftest.ts3 &&
3085 test "$3" = conftest.ts2 &&
3086 test "$4" = conftest.ts1); then
3087 #
3088 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
3089 # because we don't need to test make.
3090 make_ok=true
3091 if test $am_try_res != 1; then
3092 # But if we've succeeded so far with a subsecond resolution, we
3093 # have one more thing to check: make. It can happen that
3094 # everything else supports the subsecond mtimes, but make doesn't;
3095 # notably on macOS, which ships make 3.81 from 2006 (the last one
3096 # released under GPLv2). https://bugs.gnu.org/68808
3097 #
3098 # We test $MAKE if it is defined in the environment, else "make".
3099 # It might get overridden later, but our hope is that in practice
3100 # it does not matter: it is the system "make" which is (by far)
3101 # the most likely to be broken, whereas if the user overrides it,
3102 # probably they did so with a better, or at least not worse, make.
3103 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
3104 #
3105 # Create a Makefile (real tab character here):
3106 rm -f conftest.mk
3107 echo 'conftest.ts1: conftest.ts2' >conftest.mk
3108 echo ' touch conftest.ts2' >>conftest.mk
3109 #
3110 # Now, running
3111 # touch conftest.ts1; touch conftest.ts2; make
3112 # should touch ts1 because ts2 is newer. This could happen by luck,
3113 # but most often, it will fail if make's support is insufficient. So
3114 # test for several consecutive successes.
3115 #
3116 # (We reuse conftest.ts[12] because we still want to modify existing
3117 # files, not create new ones, per above.)
3118 n=0
3119 make=${MAKE-make}
3120 until test $n -eq 3; do
3121 echo one > conftest.ts1
3122 sleep $am_try_res
3123 echo two > conftest.ts2 # ts2 should now be newer than ts1
3124 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
3125 make_ok=false
3126 break # out of $n loop
3127 fi
3128 n=`expr $n + 1`
3129 done
3130 fi
3131 #
3132 if $make_ok; then
3133 # Everything we know to check worked out, so call this resolution good.
3134 am_cv_filesystem_timestamp_resolution=$am_try_res
3135 break # out of $am_try_res loop
3136 fi
3137 # Otherwise, we'll go on to check the next resolution.
3138 fi
3139 done
3140 rm -f conftest.ts?
3141 # (end _am_filesystem_timestamp_resolution)
3142 ;;
3143 esac
3144 fi
3145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
3146 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
3147
3148 # This check should not be cached, as it may vary across builds of
3149 # different projects.
3150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3151 printf %s "checking whether build environment is sane... " >&6; }
3152 # Reject unsafe characters in $srcdir or the absolute working directory
3153 # name. Accept space and tab only in the latter.
3154 am_lf='
3155 '
3156 case `pwd` in
3157 *[\\\"\#\$\&\'\`$am_lf]*)
3158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3159 printf "%s\n" "no" >&6; }
3160 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3161 esac
3162 case $srcdir in
3163 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3165 printf "%s\n" "no" >&6; }
3166 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3167 esac
3168
3169 # Do 'set' in a subshell so we don't clobber the current shell's
3170 # arguments. Must try -L first in case configure is actually a
3171 # symlink; some systems play weird games with the mod time of symlinks
3172 # (eg FreeBSD returns the mod time of the symlink's containing
3173 # directory).
3174 am_build_env_is_sane=no
3175 am_has_slept=no
3176 rm -f conftest.file
3177 for am_try in 1 2; do
3178 echo "timestamp, slept: $am_has_slept" > conftest.file
3179 if (
3180 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3181 if test "$*" = "X"; then
3182 # -L didn't work.
3183 set X `ls -t "$srcdir/configure" conftest.file`
3184 fi
3185 test "$2" = conftest.file
3186 ); then
3187 am_build_env_is_sane=yes
3188 break
3189 fi
3190 # Just in case.
3191 sleep "$am_cv_filesystem_timestamp_resolution"
3192 am_has_slept=yes
3193 done
3194
3195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
3196 printf "%s\n" "$am_build_env_is_sane" >&6; }
3197 if test "$am_build_env_is_sane" = no; then
3198 as_fn_error $? "newly created file is older than distributed files!
3199 Check your system clock" "$LINENO" 5
3200 fi
3201
3202 # If we didn't sleep, we still need to ensure time stamps of config.status and
3203 # generated files are strictly newer.
3204 am_sleep_pid=
3205 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
3206 then :
3207
3208 else case e in #(
3209 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
3210 am_sleep_pid=$!
3211 ;;
3212 esac
3213 fi
3214
3215 rm -f conftest.file
3216
3217 test "$program_prefix" != NONE &&
3218 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3219 # Use a double $ so make ignores it.
3220 test "$program_suffix" != NONE &&
3221 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3222 # Double any \ or $.
3223 # By default was 's,x,x', remove it if useless.
3224 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3225 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3226
3227
3228 # Expand $ac_aux_dir to an absolute path.
3229 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3230
3231
3232 if test x"${MISSING+set}" != xset; then
3233 MISSING="\${SHELL} '$am_aux_dir/missing'"
3234 fi
3235 # Use eval to expand $SHELL
3236 if eval "$MISSING --is-lightweight"; then
3237 am_missing_run="$MISSING "
3238 else
3239 am_missing_run=
3240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3241 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3242 fi
3243
3244 if test x"${install_sh+set}" != xset; then
3245 case $am_aux_dir in
3246 *\ * | *\ *)
3247 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3248 *)
3249 install_sh="\${SHELL} $am_aux_dir/install-sh"
3250 esac
3251 fi
3252
3253 # Installed binaries are usually stripped using 'strip' when the user
3254 # run "make install-strip". However 'strip' might not be the right
3255 # tool to use in cross-compilation environments, therefore Automake
3256 # will honor the 'STRIP' environment variable to overrule this program.
3257 if test "$cross_compiling" != no; then
3258 if test -n "$ac_tool_prefix"; then
3259 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3260 set dummy ${ac_tool_prefix}strip; ac_word=$2
3261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3262 printf %s "checking for $ac_word... " >&6; }
3263 if test ${ac_cv_prog_STRIP+y}
3264 then :
3265 printf %s "(cached) " >&6
3266 else case e in #(
3267 e) if test -n "$STRIP"; then
3268 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3269 else
3270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3271 for as_dir in $PATH
3272 do
3273 IFS=$as_save_IFS
3274 case $as_dir in #(((
3275 '') as_dir=./ ;;
3276 */) ;;
3277 *) as_dir=$as_dir/ ;;
3278 esac
3279 for ac_exec_ext in '' $ac_executable_extensions; do
3280 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3281 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3282 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3283 break 2
3284 fi
3285 done
3286 done
3287 IFS=$as_save_IFS
3288
3289 fi ;;
3290 esac
3291 fi
3292 STRIP=$ac_cv_prog_STRIP
3293 if test -n "$STRIP"; then
3294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3295 printf "%s\n" "$STRIP" >&6; }
3296 else
3297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3298 printf "%s\n" "no" >&6; }
3299 fi
3300
3301
3302 fi
3303 if test -z "$ac_cv_prog_STRIP"; then
3304 ac_ct_STRIP=$STRIP
3305 # Extract the first word of "strip", so it can be a program name with args.
3306 set dummy strip; ac_word=$2
3307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3308 printf %s "checking for $ac_word... " >&6; }
3309 if test ${ac_cv_prog_ac_ct_STRIP+y}
3310 then :
3311 printf %s "(cached) " >&6
3312 else case e in #(
3313 e) if test -n "$ac_ct_STRIP"; then
3314 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3315 else
3316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3317 for as_dir in $PATH
3318 do
3319 IFS=$as_save_IFS
3320 case $as_dir in #(((
3321 '') as_dir=./ ;;
3322 */) ;;
3323 *) as_dir=$as_dir/ ;;
3324 esac
3325 for ac_exec_ext in '' $ac_executable_extensions; do
3326 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3327 ac_cv_prog_ac_ct_STRIP="strip"
3328 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3329 break 2
3330 fi
3331 done
3332 done
3333 IFS=$as_save_IFS
3334
3335 fi ;;
3336 esac
3337 fi
3338 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3339 if test -n "$ac_ct_STRIP"; then
3340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3341 printf "%s\n" "$ac_ct_STRIP" >&6; }
3342 else
3343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3344 printf "%s\n" "no" >&6; }
3345 fi
3346
3347 if test "x$ac_ct_STRIP" = x; then
3348 STRIP=":"
3349 else
3350 case $cross_compiling:$ac_tool_warned in
3351 yes:)
3352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3353 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3354 ac_tool_warned=yes ;;
3355 esac
3356 STRIP=$ac_ct_STRIP
3357 fi
3358 else
3359 STRIP="$ac_cv_prog_STRIP"
3360 fi
3361
3362 fi
3363 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3364
3365
3366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3367 printf %s "checking for a race-free mkdir -p... " >&6; }
3368 if test -z "$MKDIR_P"; then
3369 if test ${ac_cv_path_mkdir+y}
3370 then :
3371 printf %s "(cached) " >&6
3372 else case e in #(
3373 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3374 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3375 do
3376 IFS=$as_save_IFS
3377 case $as_dir in #(((
3378 '') as_dir=./ ;;
3379 */) ;;
3380 *) as_dir=$as_dir/ ;;
3381 esac
3382 for ac_prog in mkdir gmkdir; do
3383 for ac_exec_ext in '' $ac_executable_extensions; do
3384 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3385 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3386 'mkdir ('*'coreutils) '* | \
3387 *'BusyBox '* | \
3388 'mkdir (fileutils) '4.1*)
3389 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3390 break 3;;
3391 esac
3392 done
3393 done
3394 done
3395 IFS=$as_save_IFS
3396 ;;
3397 esac
3398 fi
3399
3400 test -d ./--version && rmdir ./--version
3401 if test ${ac_cv_path_mkdir+y}; then
3402 MKDIR_P="$ac_cv_path_mkdir -p"
3403 else
3404 # As a last resort, use plain mkdir -p,
3405 # in the hope it doesn't have the bugs of ancient mkdir.
3406 MKDIR_P='mkdir -p'
3407 fi
3408 fi
3409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3410 printf "%s\n" "$MKDIR_P" >&6; }
3411
3412 for ac_prog in gawk mawk nawk awk
3413 do
3414 # Extract the first word of "$ac_prog", so it can be a program name with args.
3415 set dummy $ac_prog; ac_word=$2
3416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3417 printf %s "checking for $ac_word... " >&6; }
3418 if test ${ac_cv_prog_AWK+y}
3419 then :
3420 printf %s "(cached) " >&6
3421 else case e in #(
3422 e) if test -n "$AWK"; then
3423 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3424 else
3425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3426 for as_dir in $PATH
3427 do
3428 IFS=$as_save_IFS
3429 case $as_dir in #(((
3430 '') as_dir=./ ;;
3431 */) ;;
3432 *) as_dir=$as_dir/ ;;
3433 esac
3434 for ac_exec_ext in '' $ac_executable_extensions; do
3435 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3436 ac_cv_prog_AWK="$ac_prog"
3437 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3438 break 2
3439 fi
3440 done
3441 done
3442 IFS=$as_save_IFS
3443
3444 fi ;;
3445 esac
3446 fi
3447 AWK=$ac_cv_prog_AWK
3448 if test -n "$AWK"; then
3449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3450 printf "%s\n" "$AWK" >&6; }
3451 else
3452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3453 printf "%s\n" "no" >&6; }
3454 fi
3455
3456
3457 test -n "$AWK" && break
3458 done
3459
3460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3461 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3462 set x ${MAKE-make}
3463 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3464 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3465 then :
3466 printf %s "(cached) " >&6
3467 else case e in #(
3468 e) cat >conftest.make <<\_ACEOF
3469 SHELL = /bin/sh
3470 all:
3471 @echo '@@@%%%=$(MAKE)=@@@%%%'
3472 _ACEOF
3473 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3474 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3475 *@@@%%%=?*=@@@%%%*)
3476 eval ac_cv_prog_make_${ac_make}_set=yes;;
3477 *)
3478 eval ac_cv_prog_make_${ac_make}_set=no;;
3479 esac
3480 rm -f conftest.make ;;
3481 esac
3482 fi
3483 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3485 printf "%s\n" "yes" >&6; }
3486 SET_MAKE=
3487 else
3488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3489 printf "%s\n" "no" >&6; }
3490 SET_MAKE="MAKE=${MAKE-make}"
3491 fi
3492
3493 rm -rf .tst 2>/dev/null
3494 mkdir .tst 2>/dev/null
3495 if test -d .tst; then
3496 am__leading_dot=.
3497 else
3498 am__leading_dot=_
3499 fi
3500 rmdir .tst 2>/dev/null
3501
3502 AM_DEFAULT_VERBOSITY=1
3503 # Check whether --enable-silent-rules was given.
3504 if test ${enable_silent_rules+y}
3505 then :
3506 enableval=$enable_silent_rules;
3507 fi
3508
3509 am_make=${MAKE-make}
3510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3511 printf %s "checking whether $am_make supports nested variables... " >&6; }
3512 if test ${am_cv_make_support_nested_variables+y}
3513 then :
3514 printf %s "(cached) " >&6
3515 else case e in #(
3516 e) if printf "%s\n" 'TRUE=$(BAR$(V))
3517 BAR0=false
3518 BAR1=true
3519 V=1
3520 am__doit:
3521 @$(TRUE)
3522 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3523 am_cv_make_support_nested_variables=yes
3524 else
3525 am_cv_make_support_nested_variables=no
3526 fi ;;
3527 esac
3528 fi
3529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3530 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3531 AM_BACKSLASH='\'
3532
3533 am__rm_f_notfound=
3534 if (rm -f && rm -fr && rm -rf) 2>/dev/null
3535 then :
3536
3537 else case e in #(
3538 e) am__rm_f_notfound='""' ;;
3539 esac
3540 fi
3541
3542
3543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
3544 printf %s "checking xargs -n works... " >&6; }
3545 if test ${am_cv_xargs_n_works+y}
3546 then :
3547 printf %s "(cached) " >&6
3548 else case e in #(
3549 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
3550 3"
3551 then :
3552 am_cv_xargs_n_works=yes
3553 else case e in #(
3554 e) am_cv_xargs_n_works=no ;;
3555 esac
3556 fi ;;
3557 esac
3558 fi
3559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
3560 printf "%s\n" "$am_cv_xargs_n_works" >&6; }
3561 if test "$am_cv_xargs_n_works" = yes
3562 then :
3563 am__xargs_n='xargs -n'
3564 else case e in #(
3565 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
3566 ;;
3567 esac
3568 fi
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579 DEPDIR="${am__leading_dot}deps"
3580
3581 ac_config_commands="$ac_config_commands depfiles"
3582
3583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3584 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3585 cat > confinc.mk << 'END'
3586 am__doit:
3587 @echo this is the am__doit target >confinc.out
3588 .PHONY: am__doit
3589 END
3590 am__include="#"
3591 am__quote=
3592 # BSD make does it like this.
3593 echo '.include "confinc.mk" # ignored' > confmf.BSD
3594 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3595 echo 'include confinc.mk # ignored' > confmf.GNU
3596 _am_result=no
3597 for s in GNU BSD; do
3598 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3599 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3600 ac_status=$?
3601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602 (exit $ac_status); }
3603 case $?:`cat confinc.out 2>/dev/null` in #(
3604 '0:this is the am__doit target') :
3605 case $s in #(
3606 BSD) :
3607 am__include='.include' am__quote='"' ;; #(
3608 *) :
3609 am__include='include' am__quote='' ;;
3610 esac ;; #(
3611 *) :
3612 ;;
3613 esac
3614 if test "$am__include" != "#"; then
3615 _am_result="yes ($s style)"
3616 break
3617 fi
3618 done
3619 rm -f confinc.* confmf.*
3620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3621 printf "%s\n" "${_am_result}" >&6; }
3622
3623 # Check whether --enable-dependency-tracking was given.
3624 if test ${enable_dependency_tracking+y}
3625 then :
3626 enableval=$enable_dependency_tracking;
3627 fi
3628
3629 if test "x$enable_dependency_tracking" != xno; then
3630 am_depcomp="$ac_aux_dir/depcomp"
3631 AMDEPBACKSLASH='\'
3632 am__nodep='_no'
3633 fi
3634 if test "x$enable_dependency_tracking" != xno; then
3635 AMDEP_TRUE=
3636 AMDEP_FALSE='#'
3637 else
3638 AMDEP_TRUE='#'
3639 AMDEP_FALSE=
3640 fi
3641
3642
3643 ac_ext=c
3644 ac_cpp='$CPP $CPPFLAGS'
3645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3648 if test -n "$ac_tool_prefix"; then
3649 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3650 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3652 printf %s "checking for $ac_word... " >&6; }
3653 if test ${ac_cv_prog_CC+y}
3654 then :
3655 printf %s "(cached) " >&6
3656 else case e in #(
3657 e) if test -n "$CC"; then
3658 ac_cv_prog_CC="$CC" # Let the user override the test.
3659 else
3660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3661 for as_dir in $PATH
3662 do
3663 IFS=$as_save_IFS
3664 case $as_dir in #(((
3665 '') as_dir=./ ;;
3666 */) ;;
3667 *) as_dir=$as_dir/ ;;
3668 esac
3669 for ac_exec_ext in '' $ac_executable_extensions; do
3670 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3671 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3672 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3673 break 2
3674 fi
3675 done
3676 done
3677 IFS=$as_save_IFS
3678
3679 fi ;;
3680 esac
3681 fi
3682 CC=$ac_cv_prog_CC
3683 if test -n "$CC"; then
3684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3685 printf "%s\n" "$CC" >&6; }
3686 else
3687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3688 printf "%s\n" "no" >&6; }
3689 fi
3690
3691
3692 fi
3693 if test -z "$ac_cv_prog_CC"; then
3694 ac_ct_CC=$CC
3695 # Extract the first word of "gcc", so it can be a program name with args.
3696 set dummy gcc; ac_word=$2
3697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3698 printf %s "checking for $ac_word... " >&6; }
3699 if test ${ac_cv_prog_ac_ct_CC+y}
3700 then :
3701 printf %s "(cached) " >&6
3702 else case e in #(
3703 e) if test -n "$ac_ct_CC"; then
3704 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3705 else
3706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3707 for as_dir in $PATH
3708 do
3709 IFS=$as_save_IFS
3710 case $as_dir in #(((
3711 '') as_dir=./ ;;
3712 */) ;;
3713 *) as_dir=$as_dir/ ;;
3714 esac
3715 for ac_exec_ext in '' $ac_executable_extensions; do
3716 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3717 ac_cv_prog_ac_ct_CC="gcc"
3718 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3719 break 2
3720 fi
3721 done
3722 done
3723 IFS=$as_save_IFS
3724
3725 fi ;;
3726 esac
3727 fi
3728 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3729 if test -n "$ac_ct_CC"; then
3730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3731 printf "%s\n" "$ac_ct_CC" >&6; }
3732 else
3733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3734 printf "%s\n" "no" >&6; }
3735 fi
3736
3737 if test "x$ac_ct_CC" = x; then
3738 CC=""
3739 else
3740 case $cross_compiling:$ac_tool_warned in
3741 yes:)
3742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3743 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3744 ac_tool_warned=yes ;;
3745 esac
3746 CC=$ac_ct_CC
3747 fi
3748 else
3749 CC="$ac_cv_prog_CC"
3750 fi
3751
3752 if test -z "$CC"; then
3753 if test -n "$ac_tool_prefix"; then
3754 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3755 set dummy ${ac_tool_prefix}cc; ac_word=$2
3756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3757 printf %s "checking for $ac_word... " >&6; }
3758 if test ${ac_cv_prog_CC+y}
3759 then :
3760 printf %s "(cached) " >&6
3761 else case e in #(
3762 e) if test -n "$CC"; then
3763 ac_cv_prog_CC="$CC" # Let the user override the test.
3764 else
3765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3766 for as_dir in $PATH
3767 do
3768 IFS=$as_save_IFS
3769 case $as_dir in #(((
3770 '') as_dir=./ ;;
3771 */) ;;
3772 *) as_dir=$as_dir/ ;;
3773 esac
3774 for ac_exec_ext in '' $ac_executable_extensions; do
3775 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3776 ac_cv_prog_CC="${ac_tool_prefix}cc"
3777 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3778 break 2
3779 fi
3780 done
3781 done
3782 IFS=$as_save_IFS
3783
3784 fi ;;
3785 esac
3786 fi
3787 CC=$ac_cv_prog_CC
3788 if test -n "$CC"; then
3789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3790 printf "%s\n" "$CC" >&6; }
3791 else
3792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3793 printf "%s\n" "no" >&6; }
3794 fi
3795
3796
3797 fi
3798 fi
3799 if test -z "$CC"; then
3800 # Extract the first word of "cc", so it can be a program name with args.
3801 set dummy cc; ac_word=$2
3802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3803 printf %s "checking for $ac_word... " >&6; }
3804 if test ${ac_cv_prog_CC+y}
3805 then :
3806 printf %s "(cached) " >&6
3807 else case e in #(
3808 e) if test -n "$CC"; then
3809 ac_cv_prog_CC="$CC" # Let the user override the test.
3810 else
3811 ac_prog_rejected=no
3812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3813 for as_dir in $PATH
3814 do
3815 IFS=$as_save_IFS
3816 case $as_dir in #(((
3817 '') as_dir=./ ;;
3818 */) ;;
3819 *) as_dir=$as_dir/ ;;
3820 esac
3821 for ac_exec_ext in '' $ac_executable_extensions; do
3822 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3823 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3824 ac_prog_rejected=yes
3825 continue
3826 fi
3827 ac_cv_prog_CC="cc"
3828 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3829 break 2
3830 fi
3831 done
3832 done
3833 IFS=$as_save_IFS
3834
3835 if test $ac_prog_rejected = yes; then
3836 # We found a bogon in the path, so make sure we never use it.
3837 set dummy $ac_cv_prog_CC
3838 shift
3839 if test $# != 0; then
3840 # We chose a different compiler from the bogus one.
3841 # However, it has the same basename, so the bogon will be chosen
3842 # first if we set CC to just the basename; use the full file name.
3843 shift
3844 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3845 fi
3846 fi
3847 fi ;;
3848 esac
3849 fi
3850 CC=$ac_cv_prog_CC
3851 if test -n "$CC"; then
3852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3853 printf "%s\n" "$CC" >&6; }
3854 else
3855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3856 printf "%s\n" "no" >&6; }
3857 fi
3858
3859
3860 fi
3861 if test -z "$CC"; then
3862 if test -n "$ac_tool_prefix"; then
3863 for ac_prog in cl.exe
3864 do
3865 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3866 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3868 printf %s "checking for $ac_word... " >&6; }
3869 if test ${ac_cv_prog_CC+y}
3870 then :
3871 printf %s "(cached) " >&6
3872 else case e in #(
3873 e) if test -n "$CC"; then
3874 ac_cv_prog_CC="$CC" # Let the user override the test.
3875 else
3876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3877 for as_dir in $PATH
3878 do
3879 IFS=$as_save_IFS
3880 case $as_dir in #(((
3881 '') as_dir=./ ;;
3882 */) ;;
3883 *) as_dir=$as_dir/ ;;
3884 esac
3885 for ac_exec_ext in '' $ac_executable_extensions; do
3886 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3887 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3888 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3889 break 2
3890 fi
3891 done
3892 done
3893 IFS=$as_save_IFS
3894
3895 fi ;;
3896 esac
3897 fi
3898 CC=$ac_cv_prog_CC
3899 if test -n "$CC"; then
3900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3901 printf "%s\n" "$CC" >&6; }
3902 else
3903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3904 printf "%s\n" "no" >&6; }
3905 fi
3906
3907
3908 test -n "$CC" && break
3909 done
3910 fi
3911 if test -z "$CC"; then
3912 ac_ct_CC=$CC
3913 for ac_prog in cl.exe
3914 do
3915 # Extract the first word of "$ac_prog", so it can be a program name with args.
3916 set dummy $ac_prog; ac_word=$2
3917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3918 printf %s "checking for $ac_word... " >&6; }
3919 if test ${ac_cv_prog_ac_ct_CC+y}
3920 then :
3921 printf %s "(cached) " >&6
3922 else case e in #(
3923 e) if test -n "$ac_ct_CC"; then
3924 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3925 else
3926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3927 for as_dir in $PATH
3928 do
3929 IFS=$as_save_IFS
3930 case $as_dir in #(((
3931 '') as_dir=./ ;;
3932 */) ;;
3933 *) as_dir=$as_dir/ ;;
3934 esac
3935 for ac_exec_ext in '' $ac_executable_extensions; do
3936 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3937 ac_cv_prog_ac_ct_CC="$ac_prog"
3938 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3939 break 2
3940 fi
3941 done
3942 done
3943 IFS=$as_save_IFS
3944
3945 fi ;;
3946 esac
3947 fi
3948 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3949 if test -n "$ac_ct_CC"; then
3950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3951 printf "%s\n" "$ac_ct_CC" >&6; }
3952 else
3953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3954 printf "%s\n" "no" >&6; }
3955 fi
3956
3957
3958 test -n "$ac_ct_CC" && break
3959 done
3960
3961 if test "x$ac_ct_CC" = x; then
3962 CC=""
3963 else
3964 case $cross_compiling:$ac_tool_warned in
3965 yes:)
3966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3967 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3968 ac_tool_warned=yes ;;
3969 esac
3970 CC=$ac_ct_CC
3971 fi
3972 fi
3973
3974 fi
3975 if test -z "$CC"; then
3976 if test -n "$ac_tool_prefix"; then
3977 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3978 set dummy ${ac_tool_prefix}clang; ac_word=$2
3979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3980 printf %s "checking for $ac_word... " >&6; }
3981 if test ${ac_cv_prog_CC+y}
3982 then :
3983 printf %s "(cached) " >&6
3984 else case e in #(
3985 e) if test -n "$CC"; then
3986 ac_cv_prog_CC="$CC" # Let the user override the test.
3987 else
3988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3989 for as_dir in $PATH
3990 do
3991 IFS=$as_save_IFS
3992 case $as_dir in #(((
3993 '') as_dir=./ ;;
3994 */) ;;
3995 *) as_dir=$as_dir/ ;;
3996 esac
3997 for ac_exec_ext in '' $ac_executable_extensions; do
3998 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3999 ac_cv_prog_CC="${ac_tool_prefix}clang"
4000 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4001 break 2
4002 fi
4003 done
4004 done
4005 IFS=$as_save_IFS
4006
4007 fi ;;
4008 esac
4009 fi
4010 CC=$ac_cv_prog_CC
4011 if test -n "$CC"; then
4012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4013 printf "%s\n" "$CC" >&6; }
4014 else
4015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4016 printf "%s\n" "no" >&6; }
4017 fi
4018
4019
4020 fi
4021 if test -z "$ac_cv_prog_CC"; then
4022 ac_ct_CC=$CC
4023 # Extract the first word of "clang", so it can be a program name with args.
4024 set dummy clang; ac_word=$2
4025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4026 printf %s "checking for $ac_word... " >&6; }
4027 if test ${ac_cv_prog_ac_ct_CC+y}
4028 then :
4029 printf %s "(cached) " >&6
4030 else case e in #(
4031 e) if test -n "$ac_ct_CC"; then
4032 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4033 else
4034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4035 for as_dir in $PATH
4036 do
4037 IFS=$as_save_IFS
4038 case $as_dir in #(((
4039 '') as_dir=./ ;;
4040 */) ;;
4041 *) as_dir=$as_dir/ ;;
4042 esac
4043 for ac_exec_ext in '' $ac_executable_extensions; do
4044 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4045 ac_cv_prog_ac_ct_CC="clang"
4046 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4047 break 2
4048 fi
4049 done
4050 done
4051 IFS=$as_save_IFS
4052
4053 fi ;;
4054 esac
4055 fi
4056 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4057 if test -n "$ac_ct_CC"; then
4058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4059 printf "%s\n" "$ac_ct_CC" >&6; }
4060 else
4061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4062 printf "%s\n" "no" >&6; }
4063 fi
4064
4065 if test "x$ac_ct_CC" = x; then
4066 CC=""
4067 else
4068 case $cross_compiling:$ac_tool_warned in
4069 yes:)
4070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4071 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4072 ac_tool_warned=yes ;;
4073 esac
4074 CC=$ac_ct_CC
4075 fi
4076 else
4077 CC="$ac_cv_prog_CC"
4078 fi
4079
4080 fi
4081
4082
4083 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4084 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4085 as_fn_error $? "no acceptable C compiler found in \$PATH
4086 See 'config.log' for more details" "$LINENO" 5; }
4087
4088 # Provide some information about the compiler.
4089 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4090 set X $ac_compile
4091 ac_compiler=$2
4092 for ac_option in --version -v -V -qversion -version; do
4093 { { ac_try="$ac_compiler $ac_option >&5"
4094 case "(($ac_try" in
4095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4096 *) ac_try_echo=$ac_try;;
4097 esac
4098 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4099 printf "%s\n" "$ac_try_echo"; } >&5
4100 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4101 ac_status=$?
4102 if test -s conftest.err; then
4103 sed '10a\
4104 ... rest of stderr output deleted ...
4105 10q' conftest.err >conftest.er1
4106 cat conftest.er1 >&5
4107 fi
4108 rm -f conftest.er1 conftest.err
4109 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4110 test $ac_status = 0; }
4111 done
4112
4113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4114 /* end confdefs.h. */
4115
4116 int
4117 main (void)
4118 {
4119
4120 ;
4121 return 0;
4122 }
4123 _ACEOF
4124 ac_clean_files_save=$ac_clean_files
4125 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4126 # Try to create an executable without -o first, disregard a.out.
4127 # It will help us diagnose broken compilers, and finding out an intuition
4128 # of exeext.
4129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4130 printf %s "checking whether the C compiler works... " >&6; }
4131 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4132
4133 # The possible output files:
4134 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4135
4136 ac_rmfiles=
4137 for ac_file in $ac_files
4138 do
4139 case $ac_file in
4140 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4141 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4142 esac
4143 done
4144 rm -f $ac_rmfiles
4145
4146 if { { ac_try="$ac_link_default"
4147 case "(($ac_try" in
4148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4149 *) ac_try_echo=$ac_try;;
4150 esac
4151 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4152 printf "%s\n" "$ac_try_echo"; } >&5
4153 (eval "$ac_link_default") 2>&5
4154 ac_status=$?
4155 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4156 test $ac_status = 0; }
4157 then :
4158 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
4159 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
4160 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4161 # so that the user can short-circuit this test for compilers unknown to
4162 # Autoconf.
4163 for ac_file in $ac_files ''
4164 do
4165 test -f "$ac_file" || continue
4166 case $ac_file in
4167 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4168 ;;
4169 [ab].out )
4170 # We found the default executable, but exeext='' is most
4171 # certainly right.
4172 break;;
4173 *.* )
4174 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4175 then :; else
4176 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4177 fi
4178 # We set ac_cv_exeext here because the later test for it is not
4179 # safe: cross compilers may not add the suffix if given an '-o'
4180 # argument, so we may need to know it at that point already.
4181 # Even if this section looks crufty: it has the advantage of
4182 # actually working.
4183 break;;
4184 * )
4185 break;;
4186 esac
4187 done
4188 test "$ac_cv_exeext" = no && ac_cv_exeext=
4189
4190 else case e in #(
4191 e) ac_file='' ;;
4192 esac
4193 fi
4194 if test -z "$ac_file"
4195 then :
4196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4197 printf "%s\n" "no" >&6; }
4198 printf "%s\n" "$as_me: failed program was:" >&5
4199 sed 's/^/| /' conftest.$ac_ext >&5
4200
4201 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4202 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4203 as_fn_error 77 "C compiler cannot create executables
4204 See 'config.log' for more details" "$LINENO" 5; }
4205 else case e in #(
4206 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4207 printf "%s\n" "yes" >&6; } ;;
4208 esac
4209 fi
4210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4211 printf %s "checking for C compiler default output file name... " >&6; }
4212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4213 printf "%s\n" "$ac_file" >&6; }
4214 ac_exeext=$ac_cv_exeext
4215
4216 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4217 ac_clean_files=$ac_clean_files_save
4218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4219 printf %s "checking for suffix of executables... " >&6; }
4220 if { { ac_try="$ac_link"
4221 case "(($ac_try" in
4222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4223 *) ac_try_echo=$ac_try;;
4224 esac
4225 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4226 printf "%s\n" "$ac_try_echo"; } >&5
4227 (eval "$ac_link") 2>&5
4228 ac_status=$?
4229 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4230 test $ac_status = 0; }
4231 then :
4232 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
4233 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
4234 # work properly (i.e., refer to 'conftest.exe'), while it won't with
4235 # 'rm'.
4236 for ac_file in conftest.exe conftest conftest.*; do
4237 test -f "$ac_file" || continue
4238 case $ac_file in
4239 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4240 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4241 break;;
4242 * ) break;;
4243 esac
4244 done
4245 else case e in #(
4246 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4247 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4248 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4249 See 'config.log' for more details" "$LINENO" 5; } ;;
4250 esac
4251 fi
4252 rm -f conftest conftest$ac_cv_exeext
4253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4254 printf "%s\n" "$ac_cv_exeext" >&6; }
4255
4256 rm -f conftest.$ac_ext
4257 EXEEXT=$ac_cv_exeext
4258 ac_exeext=$EXEEXT
4259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4260 /* end confdefs.h. */
4261 #include <stdio.h>
4262 int
4263 main (void)
4264 {
4265 FILE *f = fopen ("conftest.out", "w");
4266 if (!f)
4267 return 1;
4268 return ferror (f) || fclose (f) != 0;
4269
4270 ;
4271 return 0;
4272 }
4273 _ACEOF
4274 ac_clean_files="$ac_clean_files conftest.out"
4275 # Check that the compiler produces executables we can run. If not, either
4276 # the compiler is broken, or we cross compile.
4277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4278 printf %s "checking whether we are cross compiling... " >&6; }
4279 if test "$cross_compiling" != yes; then
4280 { { ac_try="$ac_link"
4281 case "(($ac_try" in
4282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4283 *) ac_try_echo=$ac_try;;
4284 esac
4285 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4286 printf "%s\n" "$ac_try_echo"; } >&5
4287 (eval "$ac_link") 2>&5
4288 ac_status=$?
4289 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4290 test $ac_status = 0; }
4291 if { ac_try='./conftest$ac_cv_exeext'
4292 { { case "(($ac_try" in
4293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4294 *) ac_try_echo=$ac_try;;
4295 esac
4296 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4297 printf "%s\n" "$ac_try_echo"; } >&5
4298 (eval "$ac_try") 2>&5
4299 ac_status=$?
4300 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4301 test $ac_status = 0; }; }; then
4302 cross_compiling=no
4303 else
4304 if test "$cross_compiling" = maybe; then
4305 cross_compiling=yes
4306 else
4307 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4308 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4309 as_fn_error 77 "cannot run C compiled programs.
4310 If you meant to cross compile, use '--host'.
4311 See 'config.log' for more details" "$LINENO" 5; }
4312 fi
4313 fi
4314 fi
4315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4316 printf "%s\n" "$cross_compiling" >&6; }
4317
4318 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4319 conftest.o conftest.obj conftest.out
4320 ac_clean_files=$ac_clean_files_save
4321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4322 printf %s "checking for suffix of object files... " >&6; }
4323 if test ${ac_cv_objext+y}
4324 then :
4325 printf %s "(cached) " >&6
4326 else case e in #(
4327 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4328 /* end confdefs.h. */
4329
4330 int
4331 main (void)
4332 {
4333
4334 ;
4335 return 0;
4336 }
4337 _ACEOF
4338 rm -f conftest.o conftest.obj
4339 if { { ac_try="$ac_compile"
4340 case "(($ac_try" in
4341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4342 *) ac_try_echo=$ac_try;;
4343 esac
4344 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4345 printf "%s\n" "$ac_try_echo"; } >&5
4346 (eval "$ac_compile") 2>&5
4347 ac_status=$?
4348 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4349 test $ac_status = 0; }
4350 then :
4351 for ac_file in conftest.o conftest.obj conftest.*; do
4352 test -f "$ac_file" || continue;
4353 case $ac_file in
4354 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4355 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4356 break;;
4357 esac
4358 done
4359 else case e in #(
4360 e) printf "%s\n" "$as_me: failed program was:" >&5
4361 sed 's/^/| /' conftest.$ac_ext >&5
4362
4363 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4364 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4365 as_fn_error $? "cannot compute suffix of object files: cannot compile
4366 See 'config.log' for more details" "$LINENO" 5; } ;;
4367 esac
4368 fi
4369 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4370 esac
4371 fi
4372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4373 printf "%s\n" "$ac_cv_objext" >&6; }
4374 OBJEXT=$ac_cv_objext
4375 ac_objext=$OBJEXT
4376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4377 printf %s "checking whether the compiler supports GNU C... " >&6; }
4378 if test ${ac_cv_c_compiler_gnu+y}
4379 then :
4380 printf %s "(cached) " >&6
4381 else case e in #(
4382 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4383 /* end confdefs.h. */
4384
4385 int
4386 main (void)
4387 {
4388 #ifndef __GNUC__
4389 choke me
4390 #endif
4391
4392 ;
4393 return 0;
4394 }
4395 _ACEOF
4396 if ac_fn_c_try_compile "$LINENO"
4397 then :
4398 ac_compiler_gnu=yes
4399 else case e in #(
4400 e) ac_compiler_gnu=no ;;
4401 esac
4402 fi
4403 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4404 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4405 ;;
4406 esac
4407 fi
4408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4409 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4411
4412 if test $ac_compiler_gnu = yes; then
4413 GCC=yes
4414 else
4415 GCC=
4416 fi
4417 ac_test_CFLAGS=${CFLAGS+y}
4418 ac_save_CFLAGS=$CFLAGS
4419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4420 printf %s "checking whether $CC accepts -g... " >&6; }
4421 if test ${ac_cv_prog_cc_g+y}
4422 then :
4423 printf %s "(cached) " >&6
4424 else case e in #(
4425 e) ac_save_c_werror_flag=$ac_c_werror_flag
4426 ac_c_werror_flag=yes
4427 ac_cv_prog_cc_g=no
4428 CFLAGS="-g"
4429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4430 /* end confdefs.h. */
4431
4432 int
4433 main (void)
4434 {
4435
4436 ;
4437 return 0;
4438 }
4439 _ACEOF
4440 if ac_fn_c_try_compile "$LINENO"
4441 then :
4442 ac_cv_prog_cc_g=yes
4443 else case e in #(
4444 e) CFLAGS=""
4445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4446 /* end confdefs.h. */
4447
4448 int
4449 main (void)
4450 {
4451
4452 ;
4453 return 0;
4454 }
4455 _ACEOF
4456 if ac_fn_c_try_compile "$LINENO"
4457 then :
4458
4459 else case e in #(
4460 e) ac_c_werror_flag=$ac_save_c_werror_flag
4461 CFLAGS="-g"
4462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4463 /* end confdefs.h. */
4464
4465 int
4466 main (void)
4467 {
4468
4469 ;
4470 return 0;
4471 }
4472 _ACEOF
4473 if ac_fn_c_try_compile "$LINENO"
4474 then :
4475 ac_cv_prog_cc_g=yes
4476 fi
4477 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4478 esac
4479 fi
4480 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4481 esac
4482 fi
4483 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4484 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4485 esac
4486 fi
4487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4488 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4489 if test $ac_test_CFLAGS; then
4490 CFLAGS=$ac_save_CFLAGS
4491 elif test $ac_cv_prog_cc_g = yes; then
4492 if test "$GCC" = yes; then
4493 CFLAGS="-g -O2"
4494 else
4495 CFLAGS="-g"
4496 fi
4497 else
4498 if test "$GCC" = yes; then
4499 CFLAGS="-O2"
4500 else
4501 CFLAGS=
4502 fi
4503 fi
4504 ac_prog_cc_stdc=no
4505 if test x$ac_prog_cc_stdc = xno
4506 then :
4507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4508 printf %s "checking for $CC option to enable C11 features... " >&6; }
4509 if test ${ac_cv_prog_cc_c11+y}
4510 then :
4511 printf %s "(cached) " >&6
4512 else case e in #(
4513 e) ac_cv_prog_cc_c11=no
4514 ac_save_CC=$CC
4515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4516 /* end confdefs.h. */
4517 $ac_c_conftest_c11_program
4518 _ACEOF
4519 for ac_arg in '' -std=gnu11
4520 do
4521 CC="$ac_save_CC $ac_arg"
4522 if ac_fn_c_try_compile "$LINENO"
4523 then :
4524 ac_cv_prog_cc_c11=$ac_arg
4525 fi
4526 rm -f core conftest.err conftest.$ac_objext conftest.beam
4527 test "x$ac_cv_prog_cc_c11" != "xno" && break
4528 done
4529 rm -f conftest.$ac_ext
4530 CC=$ac_save_CC ;;
4531 esac
4532 fi
4533
4534 if test "x$ac_cv_prog_cc_c11" = xno
4535 then :
4536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4537 printf "%s\n" "unsupported" >&6; }
4538 else case e in #(
4539 e) if test "x$ac_cv_prog_cc_c11" = x
4540 then :
4541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4542 printf "%s\n" "none needed" >&6; }
4543 else case e in #(
4544 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4545 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4546 CC="$CC $ac_cv_prog_cc_c11" ;;
4547 esac
4548 fi
4549 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4550 ac_prog_cc_stdc=c11 ;;
4551 esac
4552 fi
4553 fi
4554 if test x$ac_prog_cc_stdc = xno
4555 then :
4556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4557 printf %s "checking for $CC option to enable C99 features... " >&6; }
4558 if test ${ac_cv_prog_cc_c99+y}
4559 then :
4560 printf %s "(cached) " >&6
4561 else case e in #(
4562 e) ac_cv_prog_cc_c99=no
4563 ac_save_CC=$CC
4564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4565 /* end confdefs.h. */
4566 $ac_c_conftest_c99_program
4567 _ACEOF
4568 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4569 do
4570 CC="$ac_save_CC $ac_arg"
4571 if ac_fn_c_try_compile "$LINENO"
4572 then :
4573 ac_cv_prog_cc_c99=$ac_arg
4574 fi
4575 rm -f core conftest.err conftest.$ac_objext conftest.beam
4576 test "x$ac_cv_prog_cc_c99" != "xno" && break
4577 done
4578 rm -f conftest.$ac_ext
4579 CC=$ac_save_CC ;;
4580 esac
4581 fi
4582
4583 if test "x$ac_cv_prog_cc_c99" = xno
4584 then :
4585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4586 printf "%s\n" "unsupported" >&6; }
4587 else case e in #(
4588 e) if test "x$ac_cv_prog_cc_c99" = x
4589 then :
4590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4591 printf "%s\n" "none needed" >&6; }
4592 else case e in #(
4593 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4594 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4595 CC="$CC $ac_cv_prog_cc_c99" ;;
4596 esac
4597 fi
4598 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4599 ac_prog_cc_stdc=c99 ;;
4600 esac
4601 fi
4602 fi
4603 if test x$ac_prog_cc_stdc = xno
4604 then :
4605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4606 printf %s "checking for $CC option to enable C89 features... " >&6; }
4607 if test ${ac_cv_prog_cc_c89+y}
4608 then :
4609 printf %s "(cached) " >&6
4610 else case e in #(
4611 e) ac_cv_prog_cc_c89=no
4612 ac_save_CC=$CC
4613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4614 /* end confdefs.h. */
4615 $ac_c_conftest_c89_program
4616 _ACEOF
4617 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4618 do
4619 CC="$ac_save_CC $ac_arg"
4620 if ac_fn_c_try_compile "$LINENO"
4621 then :
4622 ac_cv_prog_cc_c89=$ac_arg
4623 fi
4624 rm -f core conftest.err conftest.$ac_objext conftest.beam
4625 test "x$ac_cv_prog_cc_c89" != "xno" && break
4626 done
4627 rm -f conftest.$ac_ext
4628 CC=$ac_save_CC ;;
4629 esac
4630 fi
4631
4632 if test "x$ac_cv_prog_cc_c89" = xno
4633 then :
4634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4635 printf "%s\n" "unsupported" >&6; }
4636 else case e in #(
4637 e) if test "x$ac_cv_prog_cc_c89" = x
4638 then :
4639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4640 printf "%s\n" "none needed" >&6; }
4641 else case e in #(
4642 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4643 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4644 CC="$CC $ac_cv_prog_cc_c89" ;;
4645 esac
4646 fi
4647 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4648 ac_prog_cc_stdc=c89 ;;
4649 esac
4650 fi
4651 fi
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
4659
4660 ac_ext=c
4661 ac_cpp='$CPP $CPPFLAGS'
4662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4666 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4667 if test ${am_cv_prog_cc_c_o+y}
4668 then :
4669 printf %s "(cached) " >&6
4670 else case e in #(
4671 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4672 /* end confdefs.h. */
4673
4674 int
4675 main (void)
4676 {
4677
4678 ;
4679 return 0;
4680 }
4681 _ACEOF
4682 # Make sure it works both with $CC and with simple cc.
4683 # Following AC_PROG_CC_C_O, we do the test twice because some
4684 # compilers refuse to overwrite an existing .o file with -o,
4685 # though they will create one.
4686 am_cv_prog_cc_c_o=yes
4687 for am_i in 1 2; do
4688 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4689 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4690 ac_status=$?
4691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4692 (exit $ac_status); } \
4693 && test -f conftest2.$ac_objext; then
4694 : OK
4695 else
4696 am_cv_prog_cc_c_o=no
4697 break
4698 fi
4699 done
4700 # aligned with autoconf, so not including core; see bug#72225.
4701 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \
4702 conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \
4703 conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM
4704 unset am_i ;;
4705 esac
4706 fi
4707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4708 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4709 if test "$am_cv_prog_cc_c_o" != yes; then
4710 # Losing compiler, so override with the script.
4711 # FIXME: It is wrong to rewrite CC.
4712 # But if we don't then we get into trouble of one sort or another.
4713 # A longer-term fix would be to have automake use am__CC in this case,
4714 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4715 CC="$am_aux_dir/compile $CC"
4716 fi
4717 ac_ext=c
4718 ac_cpp='$CPP $CPPFLAGS'
4719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4722
4723
4724 depcc="$CC" am_compiler_list=
4725
4726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4727 printf %s "checking dependency style of $depcc... " >&6; }
4728 if test ${am_cv_CC_dependencies_compiler_type+y}
4729 then :
4730 printf %s "(cached) " >&6
4731 else case e in #(
4732 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4733 # We make a subdir and do the tests there. Otherwise we can end up
4734 # making bogus files that we don't know about and never remove. For
4735 # instance it was reported that on HP-UX the gcc test will end up
4736 # making a dummy file named 'D' -- because '-MD' means "put the output
4737 # in D".
4738 rm -rf conftest.dir
4739 mkdir conftest.dir
4740 # Copy depcomp to subdir because otherwise we won't find it if we're
4741 # using a relative directory.
4742 cp "$am_depcomp" conftest.dir
4743 cd conftest.dir
4744 # We will build objects and dependencies in a subdirectory because
4745 # it helps to detect inapplicable dependency modes. For instance
4746 # both Tru64's cc and ICC support -MD to output dependencies as a
4747 # side effect of compilation, but ICC will put the dependencies in
4748 # the current directory while Tru64 will put them in the object
4749 # directory.
4750 mkdir sub
4751
4752 am_cv_CC_dependencies_compiler_type=none
4753 if test "$am_compiler_list" = ""; then
4754 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4755 fi
4756 am__universal=false
4757 case " $depcc " in #(
4758 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4759 esac
4760
4761 for depmode in $am_compiler_list; do
4762 # Setup a source with many dependencies, because some compilers
4763 # like to wrap large dependency lists on column 80 (with \), and
4764 # we should not choose a depcomp mode which is confused by this.
4765 #
4766 # We need to recreate these files for each test, as the compiler may
4767 # overwrite some of them when testing with obscure command lines.
4768 # This happens at least with the AIX C compiler.
4769 : > sub/conftest.c
4770 for i in 1 2 3 4 5 6; do
4771 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4772 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4773 # Solaris 10 /bin/sh.
4774 echo '/* dummy */' > sub/conftst$i.h
4775 done
4776 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4777
4778 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4779 # mode. It turns out that the SunPro C++ compiler does not properly
4780 # handle '-M -o', and we need to detect this. Also, some Intel
4781 # versions had trouble with output in subdirs.
4782 am__obj=sub/conftest.${OBJEXT-o}
4783 am__minus_obj="-o $am__obj"
4784 case $depmode in
4785 gcc)
4786 # This depmode causes a compiler race in universal mode.
4787 test "$am__universal" = false || continue
4788 ;;
4789 nosideeffect)
4790 # After this tag, mechanisms are not by side-effect, so they'll
4791 # only be used when explicitly requested.
4792 if test "x$enable_dependency_tracking" = xyes; then
4793 continue
4794 else
4795 break
4796 fi
4797 ;;
4798 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4799 # This compiler won't grok '-c -o', but also, the minuso test has
4800 # not run yet. These depmodes are late enough in the game, and
4801 # so weak that their functioning should not be impacted.
4802 am__obj=conftest.${OBJEXT-o}
4803 am__minus_obj=
4804 ;;
4805 none) break ;;
4806 esac
4807 if depmode=$depmode \
4808 source=sub/conftest.c object=$am__obj \
4809 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4810 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4811 >/dev/null 2>conftest.err &&
4812 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4813 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4814 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4815 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4816 # icc doesn't choke on unknown options, it will just issue warnings
4817 # or remarks (even with -Werror). So we grep stderr for any message
4818 # that says an option was ignored or not supported.
4819 # When given -MP, icc 7.0 and 7.1 complain thus:
4820 # icc: Command line warning: ignoring option '-M'; no argument required
4821 # The diagnosis changed in icc 8.0:
4822 # icc: Command line remark: option '-MP' not supported
4823 if (grep 'ignoring option' conftest.err ||
4824 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4825 am_cv_CC_dependencies_compiler_type=$depmode
4826 break
4827 fi
4828 fi
4829 done
4830
4831 cd ..
4832 rm -rf conftest.dir
4833 else
4834 am_cv_CC_dependencies_compiler_type=none
4835 fi
4836 ;;
4837 esac
4838 fi
4839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4840 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4841 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4842
4843 if
4844 test "x$enable_dependency_tracking" != xno \
4845 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4846 am__fastdepCC_TRUE=
4847 am__fastdepCC_FALSE='#'
4848 else
4849 am__fastdepCC_TRUE='#'
4850 am__fastdepCC_FALSE=
4851 fi
4852
4853
4854
4855 ac_header= ac_cache=
4856 for ac_item in $ac_header_c_list
4857 do
4858 if test $ac_cache; then
4859 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4860 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4861 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4862 fi
4863 ac_header= ac_cache=
4864 elif test $ac_header; then
4865 ac_cache=$ac_item
4866 else
4867 ac_header=$ac_item
4868 fi
4869 done
4870
4871
4872
4873
4874
4875
4876
4877
4878 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4879 then :
4880
4881 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4882
4883 fi
4884
4885
4886
4887
4888
4889
4890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4891 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4892 if test ${ac_cv_safe_to_define___extensions__+y}
4893 then :
4894 printf %s "(cached) " >&6
4895 else case e in #(
4896 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4897 /* end confdefs.h. */
4898
4899 # define __EXTENSIONS__ 1
4900 $ac_includes_default
4901 int
4902 main (void)
4903 {
4904
4905 ;
4906 return 0;
4907 }
4908 _ACEOF
4909 if ac_fn_c_try_compile "$LINENO"
4910 then :
4911 ac_cv_safe_to_define___extensions__=yes
4912 else case e in #(
4913 e) ac_cv_safe_to_define___extensions__=no ;;
4914 esac
4915 fi
4916 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4917 esac
4918 fi
4919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4920 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
4921
4922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4923 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4924 if test ${ac_cv_should_define__xopen_source+y}
4925 then :
4926 printf %s "(cached) " >&6
4927 else case e in #(
4928 e) ac_cv_should_define__xopen_source=no
4929 if test $ac_cv_header_wchar_h = yes
4930 then :
4931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4932 /* end confdefs.h. */
4933
4934 #include <wchar.h>
4935 mbstate_t x;
4936 int
4937 main (void)
4938 {
4939
4940 ;
4941 return 0;
4942 }
4943 _ACEOF
4944 if ac_fn_c_try_compile "$LINENO"
4945 then :
4946
4947 else case e in #(
4948 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4949 /* end confdefs.h. */
4950
4951 #define _XOPEN_SOURCE 500
4952 #include <wchar.h>
4953 mbstate_t x;
4954 int
4955 main (void)
4956 {
4957
4958 ;
4959 return 0;
4960 }
4961 _ACEOF
4962 if ac_fn_c_try_compile "$LINENO"
4963 then :
4964 ac_cv_should_define__xopen_source=yes
4965 fi
4966 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4967 esac
4968 fi
4969 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4970 fi ;;
4971 esac
4972 fi
4973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4974 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
4975
4976 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
4977
4978 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4979
4980 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
4981
4982 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
4983
4984 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
4985
4986 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
4987
4988 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4989
4990 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4991
4992 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4993
4994 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4995
4996 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
4997
4998 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4999
5000 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
5001
5002 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
5003
5004 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
5005
5006 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
5007
5008 if test $ac_cv_header_minix_config_h = yes
5009 then :
5010 MINIX=yes
5011 printf "%s\n" "#define _MINIX 1" >>confdefs.h
5012
5013 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
5014
5015 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
5016
5017 else case e in #(
5018 e) MINIX= ;;
5019 esac
5020 fi
5021 if test $ac_cv_safe_to_define___extensions__ = yes
5022 then :
5023 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
5024
5025 fi
5026 if test $ac_cv_should_define__xopen_source = yes
5027 then :
5028 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
5029
5030 fi
5031
5032 # Check whether --enable-compiler-warnings was given.
5033 if test ${enable_compiler_warnings+y}
5034 then :
5035 enableval=$enable_compiler_warnings;
5036 fi
5037 case $enable_compiler_warnings in #(
5038 no | min | yes | max | all) :
5039 ;; #(
5040 *) :
5041 if test "x$enable_maintainer_mode" = xyes
5042 then :
5043 enable_compiler_warnings=yes
5044 else case e in #(
5045 e) enable_compiler_warnings=min ;;
5046 esac
5047 fi ;;
5048 esac
5049
5050 case `pwd` in
5051 *\ * | *\ *)
5052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5053 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5054 esac
5055
5056
5057
5058 macro_version='2.5.4'
5059 macro_revision='2.5.4'
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074 ltmain=$ac_aux_dir/ltmain.sh
5075
5076
5077
5078 # Make sure we can run config.sub.
5079 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
5080 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
5081
5082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5083 printf %s "checking build system type... " >&6; }
5084 if test ${ac_cv_build+y}
5085 then :
5086 printf %s "(cached) " >&6
5087 else case e in #(
5088 e) ac_build_alias=$build_alias
5089 test "x$ac_build_alias" = x &&
5090 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
5091 test "x$ac_build_alias" = x &&
5092 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5093 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
5094 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
5095 ;;
5096 esac
5097 fi
5098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5099 printf "%s\n" "$ac_cv_build" >&6; }
5100 case $ac_cv_build in
5101 *-*-*) ;;
5102 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5103 esac
5104 build=$ac_cv_build
5105 ac_save_IFS=$IFS; IFS='-'
5106 set x $ac_cv_build
5107 shift
5108 build_cpu=$1
5109 build_vendor=$2
5110 shift; shift
5111 # Remember, the first character of IFS is used to create $*,
5112 # except with old shells:
5113 build_os=$*
5114 IFS=$ac_save_IFS
5115 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5116
5117
5118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5119 printf %s "checking host system type... " >&6; }
5120 if test ${ac_cv_host+y}
5121 then :
5122 printf %s "(cached) " >&6
5123 else case e in #(
5124 e) if test "x$host_alias" = x; then
5125 ac_cv_host=$ac_cv_build
5126 else
5127 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
5128 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
5129 fi
5130 ;;
5131 esac
5132 fi
5133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5134 printf "%s\n" "$ac_cv_host" >&6; }
5135 case $ac_cv_host in
5136 *-*-*) ;;
5137 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5138 esac
5139 host=$ac_cv_host
5140 ac_save_IFS=$IFS; IFS='-'
5141 set x $ac_cv_host
5142 shift
5143 host_cpu=$1
5144 host_vendor=$2
5145 shift; shift
5146 # Remember, the first character of IFS is used to create $*,
5147 # except with old shells:
5148 host_os=$*
5149 IFS=$ac_save_IFS
5150 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5151
5152
5153 # Backslashify metacharacters that are still active within
5154 # double-quoted strings.
5155 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5156
5157 # Same as above, but do not quote variable references.
5158 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5159
5160 # Sed substitution to delay expansion of an escaped shell variable in a
5161 # double_quote_subst'ed string.
5162 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5163
5164 # Sed substitution to delay expansion of an escaped single quote.
5165 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5166
5167 # Sed substitution to avoid accidental globbing in evaled expressions
5168 no_glob_subst='s/\*/\\\*/g'
5169
5170 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5171 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5172 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5173
5174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5175 printf %s "checking how to print strings... " >&6; }
5176 # Test print first, because it will be a builtin if present.
5177 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5178 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5179 ECHO='print -r --'
5180 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5181 ECHO='printf %s\n'
5182 else
5183 # Use this function as a fallback that always works.
5184 func_fallback_echo ()
5185 {
5186 eval 'cat <<_LTECHO_EOF
5187 $1
5188 _LTECHO_EOF'
5189 }
5190 ECHO='func_fallback_echo'
5191 fi
5192
5193 # func_echo_all arg...
5194 # Invoke $ECHO with all args, space-separated.
5195 func_echo_all ()
5196 {
5197 $ECHO ""
5198 }
5199
5200 case $ECHO in
5201 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5202 printf "%s\n" "printf" >&6; } ;;
5203 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5204 printf "%s\n" "print -r" >&6; } ;;
5205 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5206 printf "%s\n" "cat" >&6; } ;;
5207 esac
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5223 printf %s "checking for a sed that does not truncate output... " >&6; }
5224 if test ${ac_cv_path_SED+y}
5225 then :
5226 printf %s "(cached) " >&6
5227 else case e in #(
5228 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5229 for ac_i in 1 2 3 4 5 6 7; do
5230 ac_script="$ac_script$as_nl$ac_script"
5231 done
5232 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5233 { ac_script=; unset ac_script;}
5234 if test -z "$SED"; then
5235 ac_path_SED_found=false
5236 # Loop through the user's path and test for each of PROGNAME-LIST
5237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5238 for as_dir in $PATH
5239 do
5240 IFS=$as_save_IFS
5241 case $as_dir in #(((
5242 '') as_dir=./ ;;
5243 */) ;;
5244 *) as_dir=$as_dir/ ;;
5245 esac
5246 for ac_prog in sed gsed
5247 do
5248 for ac_exec_ext in '' $ac_executable_extensions; do
5249 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5250 as_fn_executable_p "$ac_path_SED" || continue
5251 # Check for GNU ac_path_SED and select it if it is found.
5252 # Check for GNU $ac_path_SED
5253 case `"$ac_path_SED" --version 2>&1` in #(
5254 *GNU*)
5255 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5256 #(
5257 *)
5258 ac_count=0
5259 printf %s 0123456789 >"conftest.in"
5260 while :
5261 do
5262 cat "conftest.in" "conftest.in" >"conftest.tmp"
5263 mv "conftest.tmp" "conftest.in"
5264 cp "conftest.in" "conftest.nl"
5265 printf "%s\n" '' >> "conftest.nl"
5266 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5267 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5268 as_fn_arith $ac_count + 1 && ac_count=$as_val
5269 if test $ac_count -gt ${ac_path_SED_max-0}; then
5270 # Best one so far, save it but keep looking for a better one
5271 ac_cv_path_SED="$ac_path_SED"
5272 ac_path_SED_max=$ac_count
5273 fi
5274 # 10*(2^10) chars as input seems more than enough
5275 test $ac_count -gt 10 && break
5276 done
5277 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5278 esac
5279
5280 $ac_path_SED_found && break 3
5281 done
5282 done
5283 done
5284 IFS=$as_save_IFS
5285 if test -z "$ac_cv_path_SED"; then
5286 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5287 fi
5288 else
5289 ac_cv_path_SED=$SED
5290 fi
5291 ;;
5292 esac
5293 fi
5294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5295 printf "%s\n" "$ac_cv_path_SED" >&6; }
5296 SED="$ac_cv_path_SED"
5297 rm -f conftest.sed
5298
5299 test -z "$SED" && SED=sed
5300 Xsed="$SED -e 1s/^X//"
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5313 printf %s "checking for grep that handles long lines and -e... " >&6; }
5314 if test ${ac_cv_path_GREP+y}
5315 then :
5316 printf %s "(cached) " >&6
5317 else case e in #(
5318 e) if test -z "$GREP"; then
5319 ac_path_GREP_found=false
5320 # Loop through the user's path and test for each of PROGNAME-LIST
5321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5322 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5323 do
5324 IFS=$as_save_IFS
5325 case $as_dir in #(((
5326 '') as_dir=./ ;;
5327 */) ;;
5328 *) as_dir=$as_dir/ ;;
5329 esac
5330 for ac_prog in grep ggrep
5331 do
5332 for ac_exec_ext in '' $ac_executable_extensions; do
5333 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5334 as_fn_executable_p "$ac_path_GREP" || continue
5335 # Check for GNU ac_path_GREP and select it if it is found.
5336 # Check for GNU $ac_path_GREP
5337 case `"$ac_path_GREP" --version 2>&1` in #(
5338 *GNU*)
5339 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5340 #(
5341 *)
5342 ac_count=0
5343 printf %s 0123456789 >"conftest.in"
5344 while :
5345 do
5346 cat "conftest.in" "conftest.in" >"conftest.tmp"
5347 mv "conftest.tmp" "conftest.in"
5348 cp "conftest.in" "conftest.nl"
5349 printf "%s\n" 'GREP' >> "conftest.nl"
5350 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5351 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5352 as_fn_arith $ac_count + 1 && ac_count=$as_val
5353 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5354 # Best one so far, save it but keep looking for a better one
5355 ac_cv_path_GREP="$ac_path_GREP"
5356 ac_path_GREP_max=$ac_count
5357 fi
5358 # 10*(2^10) chars as input seems more than enough
5359 test $ac_count -gt 10 && break
5360 done
5361 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5362 esac
5363
5364 $ac_path_GREP_found && break 3
5365 done
5366 done
5367 done
5368 IFS=$as_save_IFS
5369 if test -z "$ac_cv_path_GREP"; then
5370 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5371 fi
5372 else
5373 ac_cv_path_GREP=$GREP
5374 fi
5375 ;;
5376 esac
5377 fi
5378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5379 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5380 GREP="$ac_cv_path_GREP"
5381
5382
5383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5384 printf %s "checking for egrep... " >&6; }
5385 if test ${ac_cv_path_EGREP+y}
5386 then :
5387 printf %s "(cached) " >&6
5388 else case e in #(
5389 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5390 then ac_cv_path_EGREP="$GREP -E"
5391 else
5392 if test -z "$EGREP"; then
5393 ac_path_EGREP_found=false
5394 # Loop through the user's path and test for each of PROGNAME-LIST
5395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5396 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5397 do
5398 IFS=$as_save_IFS
5399 case $as_dir in #(((
5400 '') as_dir=./ ;;
5401 */) ;;
5402 *) as_dir=$as_dir/ ;;
5403 esac
5404 for ac_prog in egrep
5405 do
5406 for ac_exec_ext in '' $ac_executable_extensions; do
5407 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5408 as_fn_executable_p "$ac_path_EGREP" || continue
5409 # Check for GNU ac_path_EGREP and select it if it is found.
5410 # Check for GNU $ac_path_EGREP
5411 case `"$ac_path_EGREP" --version 2>&1` in #(
5412 *GNU*)
5413 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5414 #(
5415 *)
5416 ac_count=0
5417 printf %s 0123456789 >"conftest.in"
5418 while :
5419 do
5420 cat "conftest.in" "conftest.in" >"conftest.tmp"
5421 mv "conftest.tmp" "conftest.in"
5422 cp "conftest.in" "conftest.nl"
5423 printf "%s\n" 'EGREP' >> "conftest.nl"
5424 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5425 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5426 as_fn_arith $ac_count + 1 && ac_count=$as_val
5427 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5428 # Best one so far, save it but keep looking for a better one
5429 ac_cv_path_EGREP="$ac_path_EGREP"
5430 ac_path_EGREP_max=$ac_count
5431 fi
5432 # 10*(2^10) chars as input seems more than enough
5433 test $ac_count -gt 10 && break
5434 done
5435 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5436 esac
5437
5438 $ac_path_EGREP_found && break 3
5439 done
5440 done
5441 done
5442 IFS=$as_save_IFS
5443 if test -z "$ac_cv_path_EGREP"; then
5444 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5445 fi
5446 else
5447 ac_cv_path_EGREP=$EGREP
5448 fi
5449
5450 fi ;;
5451 esac
5452 fi
5453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5454 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5455 EGREP="$ac_cv_path_EGREP"
5456
5457 EGREP_TRADITIONAL=$EGREP
5458 ac_cv_path_EGREP_TRADITIONAL=$EGREP
5459
5460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5461 printf %s "checking for fgrep... " >&6; }
5462 if test ${ac_cv_path_FGREP+y}
5463 then :
5464 printf %s "(cached) " >&6
5465 else case e in #(
5466 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5467 then ac_cv_path_FGREP="$GREP -F"
5468 else
5469 if test -z "$FGREP"; then
5470 ac_path_FGREP_found=false
5471 # Loop through the user's path and test for each of PROGNAME-LIST
5472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5473 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5474 do
5475 IFS=$as_save_IFS
5476 case $as_dir in #(((
5477 '') as_dir=./ ;;
5478 */) ;;
5479 *) as_dir=$as_dir/ ;;
5480 esac
5481 for ac_prog in fgrep
5482 do
5483 for ac_exec_ext in '' $ac_executable_extensions; do
5484 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5485 as_fn_executable_p "$ac_path_FGREP" || continue
5486 # Check for GNU ac_path_FGREP and select it if it is found.
5487 # Check for GNU $ac_path_FGREP
5488 case `"$ac_path_FGREP" --version 2>&1` in #(
5489 *GNU*)
5490 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5491 #(
5492 *)
5493 ac_count=0
5494 printf %s 0123456789 >"conftest.in"
5495 while :
5496 do
5497 cat "conftest.in" "conftest.in" >"conftest.tmp"
5498 mv "conftest.tmp" "conftest.in"
5499 cp "conftest.in" "conftest.nl"
5500 printf "%s\n" 'FGREP' >> "conftest.nl"
5501 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5502 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5503 as_fn_arith $ac_count + 1 && ac_count=$as_val
5504 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5505 # Best one so far, save it but keep looking for a better one
5506 ac_cv_path_FGREP="$ac_path_FGREP"
5507 ac_path_FGREP_max=$ac_count
5508 fi
5509 # 10*(2^10) chars as input seems more than enough
5510 test $ac_count -gt 10 && break
5511 done
5512 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5513 esac
5514
5515 $ac_path_FGREP_found && break 3
5516 done
5517 done
5518 done
5519 IFS=$as_save_IFS
5520 if test -z "$ac_cv_path_FGREP"; then
5521 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5522 fi
5523 else
5524 ac_cv_path_FGREP=$FGREP
5525 fi
5526
5527 fi ;;
5528 esac
5529 fi
5530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5531 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5532 FGREP="$ac_cv_path_FGREP"
5533
5534
5535 test -z "$GREP" && GREP=grep
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555 # Check whether --with-gnu-ld was given.
5556 if test ${with_gnu_ld+y}
5557 then :
5558 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5559 else case e in #(
5560 e) with_gnu_ld=no ;;
5561 esac
5562 fi
5563
5564 ac_prog=ld
5565 if test yes = "$GCC"; then
5566 # Check if gcc -print-prog-name=ld gives a path.
5567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5568 printf %s "checking for ld used by $CC... " >&6; }
5569 case $host in
5570 *-*-mingw* | *-*-windows*)
5571 # gcc leaves a trailing carriage return, which upsets mingw
5572 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5573 *)
5574 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5575 esac
5576 case $ac_prog in
5577 # Accept absolute paths.
5578 [\\/]* | ?:[\\/]*)
5579 re_direlt='/[^/][^/]*/\.\./'
5580 # Canonicalize the pathname of ld
5581 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5582 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5583 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5584 done
5585 test -z "$LD" && LD=$ac_prog
5586 ;;
5587 "")
5588 # If it fails, then pretend we aren't using GCC.
5589 ac_prog=ld
5590 ;;
5591 *)
5592 # If it is relative, then search for the first ld in PATH.
5593 with_gnu_ld=unknown
5594 ;;
5595 esac
5596 elif test yes = "$with_gnu_ld"; then
5597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5598 printf %s "checking for GNU ld... " >&6; }
5599 else
5600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5601 printf %s "checking for non-GNU ld... " >&6; }
5602 fi
5603 if test ${lt_cv_path_LD+y}
5604 then :
5605 printf %s "(cached) " >&6
5606 else case e in #(
5607 e) if test -z "$LD"; then
5608 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5609 for ac_dir in $PATH; do
5610 IFS=$lt_save_ifs
5611 test -z "$ac_dir" && ac_dir=.
5612 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5613 lt_cv_path_LD=$ac_dir/$ac_prog
5614 # Check to see if the program is GNU ld. I'd rather use --version,
5615 # but apparently some variants of GNU ld only accept -v.
5616 # Break only if it was the GNU/non-GNU ld that we prefer.
5617 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5618 *GNU* | *'with BFD'*)
5619 test no != "$with_gnu_ld" && break
5620 ;;
5621 *)
5622 test yes != "$with_gnu_ld" && break
5623 ;;
5624 esac
5625 fi
5626 done
5627 IFS=$lt_save_ifs
5628 else
5629 lt_cv_path_LD=$LD # Let the user override the test with a path.
5630 fi ;;
5631 esac
5632 fi
5633
5634 LD=$lt_cv_path_LD
5635 if test -n "$LD"; then
5636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5637 printf "%s\n" "$LD" >&6; }
5638 else
5639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5640 printf "%s\n" "no" >&6; }
5641 fi
5642 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5644 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5645 if test ${lt_cv_prog_gnu_ld+y}
5646 then :
5647 printf %s "(cached) " >&6
5648 else case e in #(
5649 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
5650 case `$LD -v 2>&1 </dev/null` in
5651 *GNU* | *'with BFD'*)
5652 lt_cv_prog_gnu_ld=yes
5653 ;;
5654 *)
5655 lt_cv_prog_gnu_ld=no
5656 ;;
5657 esac ;;
5658 esac
5659 fi
5660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5661 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5662 with_gnu_ld=$lt_cv_prog_gnu_ld
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5673 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5674 if test ${lt_cv_path_NM+y}
5675 then :
5676 printf %s "(cached) " >&6
5677 else case e in #(
5678 e) if test -n "$NM"; then
5679 # Let the user override the test.
5680 lt_cv_path_NM=$NM
5681 else
5682 lt_nm_to_check=${ac_tool_prefix}nm
5683 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5684 lt_nm_to_check="$lt_nm_to_check nm"
5685 fi
5686 for lt_tmp_nm in $lt_nm_to_check; do
5687 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5688 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5689 IFS=$lt_save_ifs
5690 test -z "$ac_dir" && ac_dir=.
5691 tmp_nm=$ac_dir/$lt_tmp_nm
5692 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5693 # Check to see if the nm accepts a BSD-compat flag.
5694 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5695 # nm: unknown option "B" ignored
5696 # Tru64's nm complains that /dev/null is an invalid object file
5697 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5698 case $build_os in
5699 mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
5700 *) lt_bad_file=/dev/null ;;
5701 esac
5702 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5703 *$lt_bad_file* | *'Invalid file or object type'*)
5704 lt_cv_path_NM="$tmp_nm -B"
5705 break 2
5706 ;;
5707 *)
5708 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5709 */dev/null*)
5710 lt_cv_path_NM="$tmp_nm -p"
5711 break 2
5712 ;;
5713 *)
5714 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5715 continue # so that we can try to find one that supports BSD flags
5716 ;;
5717 esac
5718 ;;
5719 esac
5720 fi
5721 done
5722 IFS=$lt_save_ifs
5723 done
5724 : ${lt_cv_path_NM=no}
5725 fi ;;
5726 esac
5727 fi
5728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5729 printf "%s\n" "$lt_cv_path_NM" >&6; }
5730 if test no != "$lt_cv_path_NM"; then
5731 NM=$lt_cv_path_NM
5732 else
5733 # Didn't find any BSD compatible name lister, look for dumpbin.
5734 if test -n "$DUMPBIN"; then :
5735 # Let the user override the test.
5736 else
5737 if test -n "$ac_tool_prefix"; then
5738 for ac_prog in dumpbin "link -dump"
5739 do
5740 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5741 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5743 printf %s "checking for $ac_word... " >&6; }
5744 if test ${ac_cv_prog_DUMPBIN+y}
5745 then :
5746 printf %s "(cached) " >&6
5747 else case e in #(
5748 e) if test -n "$DUMPBIN"; then
5749 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5750 else
5751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5752 for as_dir in $PATH
5753 do
5754 IFS=$as_save_IFS
5755 case $as_dir in #(((
5756 '') as_dir=./ ;;
5757 */) ;;
5758 *) as_dir=$as_dir/ ;;
5759 esac
5760 for ac_exec_ext in '' $ac_executable_extensions; do
5761 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5762 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5763 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5764 break 2
5765 fi
5766 done
5767 done
5768 IFS=$as_save_IFS
5769
5770 fi ;;
5771 esac
5772 fi
5773 DUMPBIN=$ac_cv_prog_DUMPBIN
5774 if test -n "$DUMPBIN"; then
5775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5776 printf "%s\n" "$DUMPBIN" >&6; }
5777 else
5778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5779 printf "%s\n" "no" >&6; }
5780 fi
5781
5782
5783 test -n "$DUMPBIN" && break
5784 done
5785 fi
5786 if test -z "$DUMPBIN"; then
5787 ac_ct_DUMPBIN=$DUMPBIN
5788 for ac_prog in dumpbin "link -dump"
5789 do
5790 # Extract the first word of "$ac_prog", so it can be a program name with args.
5791 set dummy $ac_prog; ac_word=$2
5792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5793 printf %s "checking for $ac_word... " >&6; }
5794 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5795 then :
5796 printf %s "(cached) " >&6
5797 else case e in #(
5798 e) if test -n "$ac_ct_DUMPBIN"; then
5799 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5800 else
5801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5802 for as_dir in $PATH
5803 do
5804 IFS=$as_save_IFS
5805 case $as_dir in #(((
5806 '') as_dir=./ ;;
5807 */) ;;
5808 *) as_dir=$as_dir/ ;;
5809 esac
5810 for ac_exec_ext in '' $ac_executable_extensions; do
5811 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5812 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5813 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5814 break 2
5815 fi
5816 done
5817 done
5818 IFS=$as_save_IFS
5819
5820 fi ;;
5821 esac
5822 fi
5823 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5824 if test -n "$ac_ct_DUMPBIN"; then
5825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5826 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5827 else
5828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5829 printf "%s\n" "no" >&6; }
5830 fi
5831
5832
5833 test -n "$ac_ct_DUMPBIN" && break
5834 done
5835
5836 if test "x$ac_ct_DUMPBIN" = x; then
5837 DUMPBIN=":"
5838 else
5839 case $cross_compiling:$ac_tool_warned in
5840 yes:)
5841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5842 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5843 ac_tool_warned=yes ;;
5844 esac
5845 DUMPBIN=$ac_ct_DUMPBIN
5846 fi
5847 fi
5848
5849 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5850 *COFF*)
5851 DUMPBIN="$DUMPBIN -symbols -headers"
5852 ;;
5853 *)
5854 DUMPBIN=:
5855 ;;
5856 esac
5857 fi
5858
5859 if test : != "$DUMPBIN"; then
5860 NM=$DUMPBIN
5861 fi
5862 fi
5863 test -z "$NM" && NM=nm
5864
5865
5866
5867
5868
5869
5870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5871 printf %s "checking the name lister ($NM) interface... " >&6; }
5872 if test ${lt_cv_nm_interface+y}
5873 then :
5874 printf %s "(cached) " >&6
5875 else case e in #(
5876 e) lt_cv_nm_interface="BSD nm"
5877 echo "int some_variable = 0;" > conftest.$ac_ext
5878 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5879 (eval "$ac_compile" 2>conftest.err)
5880 cat conftest.err >&5
5881 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5882 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5883 cat conftest.err >&5
5884 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5885 cat conftest.out >&5
5886 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5887 lt_cv_nm_interface="MS dumpbin"
5888 fi
5889 rm -f conftest* ;;
5890 esac
5891 fi
5892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5893 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5894
5895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5896 printf %s "checking whether ln -s works... " >&6; }
5897 LN_S=$as_ln_s
5898 if test "$LN_S" = "ln -s"; then
5899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5900 printf "%s\n" "yes" >&6; }
5901 else
5902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5903 printf "%s\n" "no, using $LN_S" >&6; }
5904 fi
5905
5906 # find the maximum length of command line arguments
5907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5908 printf %s "checking the maximum length of command line arguments... " >&6; }
5909 if test ${lt_cv_sys_max_cmd_len+y}
5910 then :
5911 printf %s "(cached) " >&6
5912 else case e in #(
5913 e) i=0
5914 teststring=ABCD
5915
5916 case $build_os in
5917 msdosdjgpp*)
5918 # On DJGPP, this test can blow up pretty badly due to problems in libc
5919 # (any single argument exceeding 2000 bytes causes a buffer overrun
5920 # during glob expansion). Even if it were fixed, the result of this
5921 # check would be larger than it should be.
5922 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5923 ;;
5924
5925 gnu* | ironclad*)
5926 # Under GNU Hurd and Ironclad, this test is not required because there
5927 # is no limit to the length of command line arguments.
5928 # Libtool will interpret -1 as no limit whatsoever
5929 lt_cv_sys_max_cmd_len=-1;
5930 ;;
5931
5932 cygwin* | mingw* | windows* | cegcc*)
5933 # On Win9x/ME, this test blows up -- it succeeds, but takes
5934 # about 5 minutes as the teststring grows exponentially.
5935 # Worse, since 9x/ME are not pre-emptively multitasking,
5936 # you end up with a "frozen" computer, even though with patience
5937 # the test eventually succeeds (with a max line length of 256k).
5938 # Instead, let's just punt: use the minimum linelength reported by
5939 # all of the supported platforms: 8192 (on NT/2K/XP).
5940 lt_cv_sys_max_cmd_len=8192;
5941 ;;
5942
5943 mint*)
5944 # On MiNT this can take a long time and run out of memory.
5945 lt_cv_sys_max_cmd_len=8192;
5946 ;;
5947
5948 amigaos*)
5949 # On AmigaOS with pdksh, this test takes hours, literally.
5950 # So we just punt and use a minimum line length of 8192.
5951 lt_cv_sys_max_cmd_len=8192;
5952 ;;
5953
5954 darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5955 # This has been around since 386BSD, at least. Likely further.
5956 if test -x /sbin/sysctl; then
5957 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5958 elif test -x /usr/sbin/sysctl; then
5959 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5960 else
5961 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5962 fi
5963 # And add a safety zone
5964 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5965 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5966 ;;
5967
5968 interix*)
5969 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5970 lt_cv_sys_max_cmd_len=196608
5971 ;;
5972
5973 os2*)
5974 # The test takes a long time on OS/2.
5975 lt_cv_sys_max_cmd_len=8192
5976 ;;
5977
5978 osf*)
5979 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5980 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5981 # nice to cause kernel panics so lets avoid the loop below.
5982 # First set a reasonable default.
5983 lt_cv_sys_max_cmd_len=16384
5984 #
5985 if test -x /sbin/sysconfig; then
5986 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5987 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5988 esac
5989 fi
5990 ;;
5991 sco3.2v5*)
5992 lt_cv_sys_max_cmd_len=102400
5993 ;;
5994 sysv5* | sco5v6* | sysv4.2uw2*)
5995 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5996 if test -n "$kargmax"; then
5997 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
5998 else
5999 lt_cv_sys_max_cmd_len=32768
6000 fi
6001 ;;
6002 *)
6003 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6004 if test -n "$lt_cv_sys_max_cmd_len" && \
6005 test undefined != "$lt_cv_sys_max_cmd_len"; then
6006 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6007 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6008 else
6009 # Make teststring a little bigger before we do anything with it.
6010 # a 1K string should be a reasonable start.
6011 for i in 1 2 3 4 5 6 7 8; do
6012 teststring=$teststring$teststring
6013 done
6014 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6015 # If test is not a shell built-in, we'll probably end up computing a
6016 # maximum length that is only half of the actual maximum length, but
6017 # we can't tell.
6018 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6019 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6020 test 17 != "$i" # 1/2 MB should be enough
6021 do
6022 i=`expr $i + 1`
6023 teststring=$teststring$teststring
6024 done
6025 # Only check the string length outside the loop.
6026 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6027 teststring=
6028 # Add a significant safety factor because C++ compilers can tack on
6029 # massive amounts of additional arguments before passing them to the
6030 # linker. It appears as though 1/2 is a usable value.
6031 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6032 fi
6033 ;;
6034 esac
6035 ;;
6036 esac
6037 fi
6038
6039 if test -n "$lt_cv_sys_max_cmd_len"; then
6040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6041 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6042 else
6043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6044 printf "%s\n" "none" >&6; }
6045 fi
6046 max_cmd_len=$lt_cv_sys_max_cmd_len
6047
6048
6049
6050
6051
6052
6053 : ${CP="cp -f"}
6054 : ${MV="mv -f"}
6055 : ${RM="rm -f"}
6056
6057 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6058 lt_unset=unset
6059 else
6060 lt_unset=false
6061 fi
6062
6063
6064
6065
6066
6067 # test EBCDIC or ASCII
6068 case `echo X|tr X '\101'` in
6069 A) # ASCII based system
6070 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6071 lt_SP2NL='tr \040 \012'
6072 lt_NL2SP='tr \015\012 \040\040'
6073 ;;
6074 *) # EBCDIC based system
6075 lt_SP2NL='tr \100 \n'
6076 lt_NL2SP='tr \r\n \100\100'
6077 ;;
6078 esac
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6089 printf %s "checking how to convert $build file names to $host format... " >&6; }
6090 if test ${lt_cv_to_host_file_cmd+y}
6091 then :
6092 printf %s "(cached) " >&6
6093 else case e in #(
6094 e) case $host in
6095 *-*-mingw* )
6096 case $build in
6097 *-*-mingw* | *-*-windows* ) # actually msys
6098 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6099 ;;
6100 *-*-cygwin* )
6101 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6102 ;;
6103 * ) # otherwise, assume *nix
6104 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6105 ;;
6106 esac
6107 ;;
6108 *-*-cygwin* )
6109 case $build in
6110 *-*-mingw* | *-*-windows* ) # actually msys
6111 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6112 ;;
6113 *-*-cygwin* )
6114 lt_cv_to_host_file_cmd=func_convert_file_noop
6115 ;;
6116 * ) # otherwise, assume *nix
6117 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6118 ;;
6119 esac
6120 ;;
6121 * ) # unhandled hosts (and "normal" native builds)
6122 lt_cv_to_host_file_cmd=func_convert_file_noop
6123 ;;
6124 esac
6125 ;;
6126 esac
6127 fi
6128
6129 to_host_file_cmd=$lt_cv_to_host_file_cmd
6130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6131 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6132
6133
6134
6135
6136
6137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6138 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6139 if test ${lt_cv_to_tool_file_cmd+y}
6140 then :
6141 printf %s "(cached) " >&6
6142 else case e in #(
6143 e) #assume ordinary cross tools, or native build.
6144 lt_cv_to_tool_file_cmd=func_convert_file_noop
6145 case $host in
6146 *-*-mingw* | *-*-windows* )
6147 case $build in
6148 *-*-mingw* | *-*-windows* ) # actually msys
6149 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6150 ;;
6151 esac
6152 ;;
6153 esac
6154 ;;
6155 esac
6156 fi
6157
6158 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6160 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6161
6162
6163
6164
6165
6166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6167 printf %s "checking for $LD option to reload object files... " >&6; }
6168 if test ${lt_cv_ld_reload_flag+y}
6169 then :
6170 printf %s "(cached) " >&6
6171 else case e in #(
6172 e) lt_cv_ld_reload_flag='-r' ;;
6173 esac
6174 fi
6175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6176 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6177 reload_flag=$lt_cv_ld_reload_flag
6178 case $reload_flag in
6179 "" | " "*) ;;
6180 *) reload_flag=" $reload_flag" ;;
6181 esac
6182 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6183 case $host_os in
6184 cygwin* | mingw* | windows* | pw32* | cegcc*)
6185 if test yes != "$GCC"; then
6186 reload_cmds=false
6187 fi
6188 ;;
6189 darwin*)
6190 if test yes = "$GCC"; then
6191 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6192 else
6193 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6194 fi
6195 ;;
6196 esac
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206 # Extract the first word of "file", so it can be a program name with args.
6207 set dummy file; ac_word=$2
6208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6209 printf %s "checking for $ac_word... " >&6; }
6210 if test ${ac_cv_prog_FILECMD+y}
6211 then :
6212 printf %s "(cached) " >&6
6213 else case e in #(
6214 e) if test -n "$FILECMD"; then
6215 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
6216 else
6217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6218 for as_dir in $PATH
6219 do
6220 IFS=$as_save_IFS
6221 case $as_dir in #(((
6222 '') as_dir=./ ;;
6223 */) ;;
6224 *) as_dir=$as_dir/ ;;
6225 esac
6226 for ac_exec_ext in '' $ac_executable_extensions; do
6227 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6228 ac_cv_prog_FILECMD="file"
6229 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6230 break 2
6231 fi
6232 done
6233 done
6234 IFS=$as_save_IFS
6235
6236 test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":"
6237 fi ;;
6238 esac
6239 fi
6240 FILECMD=$ac_cv_prog_FILECMD
6241 if test -n "$FILECMD"; then
6242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6243 printf "%s\n" "$FILECMD" >&6; }
6244 else
6245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6246 printf "%s\n" "no" >&6; }
6247 fi
6248
6249
6250
6251
6252
6253
6254
6255
6256 if test -n "$ac_tool_prefix"; then
6257 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6258 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6260 printf %s "checking for $ac_word... " >&6; }
6261 if test ${ac_cv_prog_OBJDUMP+y}
6262 then :
6263 printf %s "(cached) " >&6
6264 else case e in #(
6265 e) if test -n "$OBJDUMP"; then
6266 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6267 else
6268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6269 for as_dir in $PATH
6270 do
6271 IFS=$as_save_IFS
6272 case $as_dir in #(((
6273 '') as_dir=./ ;;
6274 */) ;;
6275 *) as_dir=$as_dir/ ;;
6276 esac
6277 for ac_exec_ext in '' $ac_executable_extensions; do
6278 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6279 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6280 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6281 break 2
6282 fi
6283 done
6284 done
6285 IFS=$as_save_IFS
6286
6287 fi ;;
6288 esac
6289 fi
6290 OBJDUMP=$ac_cv_prog_OBJDUMP
6291 if test -n "$OBJDUMP"; then
6292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6293 printf "%s\n" "$OBJDUMP" >&6; }
6294 else
6295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6296 printf "%s\n" "no" >&6; }
6297 fi
6298
6299
6300 fi
6301 if test -z "$ac_cv_prog_OBJDUMP"; then
6302 ac_ct_OBJDUMP=$OBJDUMP
6303 # Extract the first word of "objdump", so it can be a program name with args.
6304 set dummy objdump; ac_word=$2
6305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6306 printf %s "checking for $ac_word... " >&6; }
6307 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6308 then :
6309 printf %s "(cached) " >&6
6310 else case e in #(
6311 e) if test -n "$ac_ct_OBJDUMP"; then
6312 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6313 else
6314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6315 for as_dir in $PATH
6316 do
6317 IFS=$as_save_IFS
6318 case $as_dir in #(((
6319 '') as_dir=./ ;;
6320 */) ;;
6321 *) as_dir=$as_dir/ ;;
6322 esac
6323 for ac_exec_ext in '' $ac_executable_extensions; do
6324 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6325 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6326 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6327 break 2
6328 fi
6329 done
6330 done
6331 IFS=$as_save_IFS
6332
6333 fi ;;
6334 esac
6335 fi
6336 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6337 if test -n "$ac_ct_OBJDUMP"; then
6338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6339 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6340 else
6341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6342 printf "%s\n" "no" >&6; }
6343 fi
6344
6345 if test "x$ac_ct_OBJDUMP" = x; then
6346 OBJDUMP="false"
6347 else
6348 case $cross_compiling:$ac_tool_warned in
6349 yes:)
6350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6351 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6352 ac_tool_warned=yes ;;
6353 esac
6354 OBJDUMP=$ac_ct_OBJDUMP
6355 fi
6356 else
6357 OBJDUMP="$ac_cv_prog_OBJDUMP"
6358 fi
6359
6360 test -z "$OBJDUMP" && OBJDUMP=objdump
6361
6362
6363
6364
6365
6366
6367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6368 printf %s "checking how to recognize dependent libraries... " >&6; }
6369 if test ${lt_cv_deplibs_check_method+y}
6370 then :
6371 printf %s "(cached) " >&6
6372 else case e in #(
6373 e) lt_cv_file_magic_cmd='$MAGIC_CMD'
6374 lt_cv_file_magic_test_file=
6375 lt_cv_deplibs_check_method='unknown'
6376 # Need to set the preceding variable on all platforms that support
6377 # interlibrary dependencies.
6378 # 'none' -- dependencies not supported.
6379 # 'unknown' -- same as none, but documents that we really don't know.
6380 # 'pass_all' -- all dependencies passed with no checks.
6381 # 'file_magic [[regex]]' -- check by looking for files in library path
6382 # that responds to the $file_magic_cmd with a given extended regex.
6383 # If you have 'file' or equivalent on your system and you're not sure
6384 # whether 'pass_all' will *always* work, you probably want this one.
6385
6386 case $host_os in
6387 aix[4-9]*)
6388 lt_cv_deplibs_check_method=pass_all
6389 ;;
6390
6391 beos*)
6392 lt_cv_deplibs_check_method=pass_all
6393 ;;
6394
6395 bsdi[45]*)
6396 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6397 lt_cv_file_magic_cmd='$FILECMD -L'
6398 lt_cv_file_magic_test_file=/shlib/libc.so
6399 ;;
6400
6401 cygwin*)
6402 # func_win32_libid is a shell function defined in ltmain.sh
6403 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6404 lt_cv_file_magic_cmd='func_win32_libid'
6405 ;;
6406
6407 mingw* | windows* | pw32*)
6408 # Base MSYS/MinGW do not provide the 'file' command needed by
6409 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6410 # unless we find 'file', for example because we are cross-compiling.
6411 if ( file / ) >/dev/null 2>&1; then
6412 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6413 lt_cv_file_magic_cmd='func_win32_libid'
6414 else
6415 # Keep this pattern in sync with the one in func_win32_libid.
6416 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
6417 lt_cv_file_magic_cmd='$OBJDUMP -f'
6418 fi
6419 ;;
6420
6421 cegcc*)
6422 # use the weaker test based on 'objdump'. See mingw*.
6423 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6424 lt_cv_file_magic_cmd='$OBJDUMP -f'
6425 ;;
6426
6427 darwin* | rhapsody*)
6428 lt_cv_deplibs_check_method=pass_all
6429 ;;
6430
6431 freebsd* | dragonfly* | midnightbsd*)
6432 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6433 case $host_cpu in
6434 i*86 )
6435 # Not sure whether the presence of OpenBSD here was a mistake.
6436 # Let's accept both of them until this is cleared up.
6437 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6438 lt_cv_file_magic_cmd=$FILECMD
6439 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6440 ;;
6441 esac
6442 else
6443 lt_cv_deplibs_check_method=pass_all
6444 fi
6445 ;;
6446
6447 haiku*)
6448 lt_cv_deplibs_check_method=pass_all
6449 ;;
6450
6451 hpux10.20* | hpux11*)
6452 lt_cv_file_magic_cmd=$FILECMD
6453 case $host_cpu in
6454 ia64*)
6455 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6456 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6457 ;;
6458 hppa*64*)
6459 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]'
6460 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6461 ;;
6462 *)
6463 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6464 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6465 ;;
6466 esac
6467 ;;
6468
6469 interix[3-9]*)
6470 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6471 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6472 ;;
6473
6474 irix5* | irix6* | nonstopux*)
6475 case $LD in
6476 *-32|*"-32 ") libmagic=32-bit;;
6477 *-n32|*"-n32 ") libmagic=N32;;
6478 *-64|*"-64 ") libmagic=64-bit;;
6479 *) libmagic=never-match;;
6480 esac
6481 lt_cv_deplibs_check_method=pass_all
6482 ;;
6483
6484 # This must be glibc/ELF.
6485 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6486 lt_cv_deplibs_check_method=pass_all
6487 ;;
6488
6489 *-mlibc)
6490 lt_cv_deplibs_check_method=pass_all
6491 ;;
6492
6493 netbsd* | netbsdelf*-gnu)
6494 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6495 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6496 else
6497 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6498 fi
6499 ;;
6500
6501 newos6*)
6502 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6503 lt_cv_file_magic_cmd=$FILECMD
6504 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6505 ;;
6506
6507 *nto* | *qnx*)
6508 lt_cv_deplibs_check_method=pass_all
6509 ;;
6510
6511 openbsd*)
6512 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6513 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6514 else
6515 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6516 fi
6517 ;;
6518
6519 osf3* | osf4* | osf5*)
6520 lt_cv_deplibs_check_method=pass_all
6521 ;;
6522
6523 rdos*)
6524 lt_cv_deplibs_check_method=pass_all
6525 ;;
6526
6527 serenity*)
6528 lt_cv_deplibs_check_method=pass_all
6529 ;;
6530
6531 solaris*)
6532 lt_cv_deplibs_check_method=pass_all
6533 ;;
6534
6535 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6536 lt_cv_deplibs_check_method=pass_all
6537 ;;
6538
6539 sysv4 | sysv4.3*)
6540 case $host_vendor in
6541 motorola)
6542 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]'
6543 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6544 ;;
6545 ncr)
6546 lt_cv_deplibs_check_method=pass_all
6547 ;;
6548 sequent)
6549 lt_cv_file_magic_cmd='/bin/file'
6550 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6551 ;;
6552 sni)
6553 lt_cv_file_magic_cmd='/bin/file'
6554 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6555 lt_cv_file_magic_test_file=/lib/libc.so
6556 ;;
6557 siemens)
6558 lt_cv_deplibs_check_method=pass_all
6559 ;;
6560 pc)
6561 lt_cv_deplibs_check_method=pass_all
6562 ;;
6563 esac
6564 ;;
6565
6566 tpf*)
6567 lt_cv_deplibs_check_method=pass_all
6568 ;;
6569 os2*)
6570 lt_cv_deplibs_check_method=pass_all
6571 ;;
6572 esac
6573 ;;
6574 esac
6575 fi
6576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6577 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6578
6579 file_magic_glob=
6580 want_nocaseglob=no
6581 if test "$build" = "$host"; then
6582 case $host_os in
6583 mingw* | windows* | pw32*)
6584 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6585 want_nocaseglob=yes
6586 else
6587 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6588 fi
6589 ;;
6590 esac
6591 fi
6592
6593 file_magic_cmd=$lt_cv_file_magic_cmd
6594 deplibs_check_method=$lt_cv_deplibs_check_method
6595 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618 if test -n "$ac_tool_prefix"; then
6619 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6620 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6622 printf %s "checking for $ac_word... " >&6; }
6623 if test ${ac_cv_prog_DLLTOOL+y}
6624 then :
6625 printf %s "(cached) " >&6
6626 else case e in #(
6627 e) if test -n "$DLLTOOL"; then
6628 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6629 else
6630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6631 for as_dir in $PATH
6632 do
6633 IFS=$as_save_IFS
6634 case $as_dir in #(((
6635 '') as_dir=./ ;;
6636 */) ;;
6637 *) as_dir=$as_dir/ ;;
6638 esac
6639 for ac_exec_ext in '' $ac_executable_extensions; do
6640 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6641 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6642 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6643 break 2
6644 fi
6645 done
6646 done
6647 IFS=$as_save_IFS
6648
6649 fi ;;
6650 esac
6651 fi
6652 DLLTOOL=$ac_cv_prog_DLLTOOL
6653 if test -n "$DLLTOOL"; then
6654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6655 printf "%s\n" "$DLLTOOL" >&6; }
6656 else
6657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6658 printf "%s\n" "no" >&6; }
6659 fi
6660
6661
6662 fi
6663 if test -z "$ac_cv_prog_DLLTOOL"; then
6664 ac_ct_DLLTOOL=$DLLTOOL
6665 # Extract the first word of "dlltool", so it can be a program name with args.
6666 set dummy dlltool; ac_word=$2
6667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6668 printf %s "checking for $ac_word... " >&6; }
6669 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6670 then :
6671 printf %s "(cached) " >&6
6672 else case e in #(
6673 e) if test -n "$ac_ct_DLLTOOL"; then
6674 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6675 else
6676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6677 for as_dir in $PATH
6678 do
6679 IFS=$as_save_IFS
6680 case $as_dir in #(((
6681 '') as_dir=./ ;;
6682 */) ;;
6683 *) as_dir=$as_dir/ ;;
6684 esac
6685 for ac_exec_ext in '' $ac_executable_extensions; do
6686 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6687 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6688 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6689 break 2
6690 fi
6691 done
6692 done
6693 IFS=$as_save_IFS
6694
6695 fi ;;
6696 esac
6697 fi
6698 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6699 if test -n "$ac_ct_DLLTOOL"; then
6700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6701 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6702 else
6703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6704 printf "%s\n" "no" >&6; }
6705 fi
6706
6707 if test "x$ac_ct_DLLTOOL" = x; then
6708 DLLTOOL="false"
6709 else
6710 case $cross_compiling:$ac_tool_warned in
6711 yes:)
6712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6713 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6714 ac_tool_warned=yes ;;
6715 esac
6716 DLLTOOL=$ac_ct_DLLTOOL
6717 fi
6718 else
6719 DLLTOOL="$ac_cv_prog_DLLTOOL"
6720 fi
6721
6722 test -z "$DLLTOOL" && DLLTOOL=dlltool
6723
6724
6725
6726
6727
6728
6729
6730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6731 printf %s "checking how to associate runtime and link libraries... " >&6; }
6732 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6733 then :
6734 printf %s "(cached) " >&6
6735 else case e in #(
6736 e) lt_cv_sharedlib_from_linklib_cmd='unknown'
6737
6738 case $host_os in
6739 cygwin* | mingw* | windows* | pw32* | cegcc*)
6740 # two different shell functions defined in ltmain.sh;
6741 # decide which one to use based on capabilities of $DLLTOOL
6742 case `$DLLTOOL --help 2>&1` in
6743 *--identify-strict*)
6744 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6745 ;;
6746 *)
6747 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6748 ;;
6749 esac
6750 ;;
6751 *)
6752 # fallback: assume linklib IS sharedlib
6753 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6754 ;;
6755 esac
6756 ;;
6757 esac
6758 fi
6759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6760 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6761 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6762 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6763
6764
6765
6766
6767
6768
6769
6770 if test -n "$ac_tool_prefix"; then
6771 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6772 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6774 printf %s "checking for $ac_word... " >&6; }
6775 if test ${ac_cv_prog_RANLIB+y}
6776 then :
6777 printf %s "(cached) " >&6
6778 else case e in #(
6779 e) if test -n "$RANLIB"; then
6780 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6781 else
6782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6783 for as_dir in $PATH
6784 do
6785 IFS=$as_save_IFS
6786 case $as_dir in #(((
6787 '') as_dir=./ ;;
6788 */) ;;
6789 *) as_dir=$as_dir/ ;;
6790 esac
6791 for ac_exec_ext in '' $ac_executable_extensions; do
6792 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6793 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6794 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6795 break 2
6796 fi
6797 done
6798 done
6799 IFS=$as_save_IFS
6800
6801 fi ;;
6802 esac
6803 fi
6804 RANLIB=$ac_cv_prog_RANLIB
6805 if test -n "$RANLIB"; then
6806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6807 printf "%s\n" "$RANLIB" >&6; }
6808 else
6809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6810 printf "%s\n" "no" >&6; }
6811 fi
6812
6813
6814 fi
6815 if test -z "$ac_cv_prog_RANLIB"; then
6816 ac_ct_RANLIB=$RANLIB
6817 # Extract the first word of "ranlib", so it can be a program name with args.
6818 set dummy ranlib; ac_word=$2
6819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6820 printf %s "checking for $ac_word... " >&6; }
6821 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6822 then :
6823 printf %s "(cached) " >&6
6824 else case e in #(
6825 e) if test -n "$ac_ct_RANLIB"; then
6826 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6827 else
6828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6829 for as_dir in $PATH
6830 do
6831 IFS=$as_save_IFS
6832 case $as_dir in #(((
6833 '') as_dir=./ ;;
6834 */) ;;
6835 *) as_dir=$as_dir/ ;;
6836 esac
6837 for ac_exec_ext in '' $ac_executable_extensions; do
6838 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6839 ac_cv_prog_ac_ct_RANLIB="ranlib"
6840 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6841 break 2
6842 fi
6843 done
6844 done
6845 IFS=$as_save_IFS
6846
6847 fi ;;
6848 esac
6849 fi
6850 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6851 if test -n "$ac_ct_RANLIB"; then
6852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6853 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6854 else
6855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6856 printf "%s\n" "no" >&6; }
6857 fi
6858
6859 if test "x$ac_ct_RANLIB" = x; then
6860 RANLIB=":"
6861 else
6862 case $cross_compiling:$ac_tool_warned in
6863 yes:)
6864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6865 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6866 ac_tool_warned=yes ;;
6867 esac
6868 RANLIB=$ac_ct_RANLIB
6869 fi
6870 else
6871 RANLIB="$ac_cv_prog_RANLIB"
6872 fi
6873
6874 if test -n "$ac_tool_prefix"; then
6875 for ac_prog in ar
6876 do
6877 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6878 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6880 printf %s "checking for $ac_word... " >&6; }
6881 if test ${ac_cv_prog_AR+y}
6882 then :
6883 printf %s "(cached) " >&6
6884 else case e in #(
6885 e) if test -n "$AR"; then
6886 ac_cv_prog_AR="$AR" # Let the user override the test.
6887 else
6888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6889 for as_dir in $PATH
6890 do
6891 IFS=$as_save_IFS
6892 case $as_dir in #(((
6893 '') as_dir=./ ;;
6894 */) ;;
6895 *) as_dir=$as_dir/ ;;
6896 esac
6897 for ac_exec_ext in '' $ac_executable_extensions; do
6898 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6899 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6900 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6901 break 2
6902 fi
6903 done
6904 done
6905 IFS=$as_save_IFS
6906
6907 fi ;;
6908 esac
6909 fi
6910 AR=$ac_cv_prog_AR
6911 if test -n "$AR"; then
6912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6913 printf "%s\n" "$AR" >&6; }
6914 else
6915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6916 printf "%s\n" "no" >&6; }
6917 fi
6918
6919
6920 test -n "$AR" && break
6921 done
6922 fi
6923 if test -z "$AR"; then
6924 ac_ct_AR=$AR
6925 for ac_prog in ar
6926 do
6927 # Extract the first word of "$ac_prog", so it can be a program name with args.
6928 set dummy $ac_prog; ac_word=$2
6929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6930 printf %s "checking for $ac_word... " >&6; }
6931 if test ${ac_cv_prog_ac_ct_AR+y}
6932 then :
6933 printf %s "(cached) " >&6
6934 else case e in #(
6935 e) if test -n "$ac_ct_AR"; then
6936 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6937 else
6938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6939 for as_dir in $PATH
6940 do
6941 IFS=$as_save_IFS
6942 case $as_dir in #(((
6943 '') as_dir=./ ;;
6944 */) ;;
6945 *) as_dir=$as_dir/ ;;
6946 esac
6947 for ac_exec_ext in '' $ac_executable_extensions; do
6948 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6949 ac_cv_prog_ac_ct_AR="$ac_prog"
6950 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6951 break 2
6952 fi
6953 done
6954 done
6955 IFS=$as_save_IFS
6956
6957 fi ;;
6958 esac
6959 fi
6960 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6961 if test -n "$ac_ct_AR"; then
6962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6963 printf "%s\n" "$ac_ct_AR" >&6; }
6964 else
6965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6966 printf "%s\n" "no" >&6; }
6967 fi
6968
6969
6970 test -n "$ac_ct_AR" && break
6971 done
6972
6973 if test "x$ac_ct_AR" = x; then
6974 AR="false"
6975 else
6976 case $cross_compiling:$ac_tool_warned in
6977 yes:)
6978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6979 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6980 ac_tool_warned=yes ;;
6981 esac
6982 AR=$ac_ct_AR
6983 fi
6984 fi
6985
6986 : ${AR=ar}
6987
6988
6989
6990
6991
6992
6993 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
6994 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6995 # higher priority because that's what people were doing historically (setting
6996 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
6997 # variable obsoleted/removed.
6998
6999 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
7000 lt_ar_flags=$AR_FLAGS
7001
7002
7003
7004
7005
7006
7007 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
7008 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
7009
7010
7011
7012
7013
7014
7015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7016 printf %s "checking for archiver @FILE support... " >&6; }
7017 if test ${lt_cv_ar_at_file+y}
7018 then :
7019 printf %s "(cached) " >&6
7020 else case e in #(
7021 e) lt_cv_ar_at_file=no
7022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7023 /* end confdefs.h. */
7024
7025 int
7026 main (void)
7027 {
7028
7029 ;
7030 return 0;
7031 }
7032 _ACEOF
7033 if ac_fn_c_try_compile "$LINENO"
7034 then :
7035 echo conftest.$ac_objext > conftest.lst
7036 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7037 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7038 (eval $lt_ar_try) 2>&5
7039 ac_status=$?
7040 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7041 test $ac_status = 0; }
7042 if test 0 -eq "$ac_status"; then
7043 # Ensure the archiver fails upon bogus file names.
7044 rm -f conftest.$ac_objext libconftest.a
7045 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7046 (eval $lt_ar_try) 2>&5
7047 ac_status=$?
7048 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7049 test $ac_status = 0; }
7050 if test 0 -ne "$ac_status"; then
7051 lt_cv_ar_at_file=@
7052 fi
7053 fi
7054 rm -f conftest.* libconftest.a
7055
7056 fi
7057 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7058 ;;
7059 esac
7060 fi
7061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7062 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
7063
7064 if test no = "$lt_cv_ar_at_file"; then
7065 archiver_list_spec=
7066 else
7067 archiver_list_spec=$lt_cv_ar_at_file
7068 fi
7069
7070
7071
7072
7073
7074
7075
7076 if test -n "$ac_tool_prefix"; then
7077 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7078 set dummy ${ac_tool_prefix}strip; ac_word=$2
7079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7080 printf %s "checking for $ac_word... " >&6; }
7081 if test ${ac_cv_prog_STRIP+y}
7082 then :
7083 printf %s "(cached) " >&6
7084 else case e in #(
7085 e) if test -n "$STRIP"; then
7086 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7087 else
7088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7089 for as_dir in $PATH
7090 do
7091 IFS=$as_save_IFS
7092 case $as_dir in #(((
7093 '') as_dir=./ ;;
7094 */) ;;
7095 *) as_dir=$as_dir/ ;;
7096 esac
7097 for ac_exec_ext in '' $ac_executable_extensions; do
7098 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7099 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7100 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7101 break 2
7102 fi
7103 done
7104 done
7105 IFS=$as_save_IFS
7106
7107 fi ;;
7108 esac
7109 fi
7110 STRIP=$ac_cv_prog_STRIP
7111 if test -n "$STRIP"; then
7112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7113 printf "%s\n" "$STRIP" >&6; }
7114 else
7115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7116 printf "%s\n" "no" >&6; }
7117 fi
7118
7119
7120 fi
7121 if test -z "$ac_cv_prog_STRIP"; then
7122 ac_ct_STRIP=$STRIP
7123 # Extract the first word of "strip", so it can be a program name with args.
7124 set dummy strip; ac_word=$2
7125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7126 printf %s "checking for $ac_word... " >&6; }
7127 if test ${ac_cv_prog_ac_ct_STRIP+y}
7128 then :
7129 printf %s "(cached) " >&6
7130 else case e in #(
7131 e) if test -n "$ac_ct_STRIP"; then
7132 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7133 else
7134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7135 for as_dir in $PATH
7136 do
7137 IFS=$as_save_IFS
7138 case $as_dir in #(((
7139 '') as_dir=./ ;;
7140 */) ;;
7141 *) as_dir=$as_dir/ ;;
7142 esac
7143 for ac_exec_ext in '' $ac_executable_extensions; do
7144 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7145 ac_cv_prog_ac_ct_STRIP="strip"
7146 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7147 break 2
7148 fi
7149 done
7150 done
7151 IFS=$as_save_IFS
7152
7153 fi ;;
7154 esac
7155 fi
7156 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7157 if test -n "$ac_ct_STRIP"; then
7158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7159 printf "%s\n" "$ac_ct_STRIP" >&6; }
7160 else
7161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7162 printf "%s\n" "no" >&6; }
7163 fi
7164
7165 if test "x$ac_ct_STRIP" = x; then
7166 STRIP=":"
7167 else
7168 case $cross_compiling:$ac_tool_warned in
7169 yes:)
7170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7171 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7172 ac_tool_warned=yes ;;
7173 esac
7174 STRIP=$ac_ct_STRIP
7175 fi
7176 else
7177 STRIP="$ac_cv_prog_STRIP"
7178 fi
7179
7180 test -z "$STRIP" && STRIP=:
7181
7182
7183
7184
7185
7186
7187
7188 test -z "$RANLIB" && RANLIB=:
7189
7190
7191
7192
7193
7194
7195 # Determine commands to create old-style static archives.
7196 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7197 old_postinstall_cmds='chmod 644 $oldlib'
7198 old_postuninstall_cmds=
7199
7200 if test -n "$RANLIB"; then
7201 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7202 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7203 fi
7204
7205 case $host_os in
7206 darwin*)
7207 lock_old_archive_extraction=yes ;;
7208 *)
7209 lock_old_archive_extraction=no ;;
7210 esac
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
7244
7245
7246
7247
7248
7249
7250 # If no C compiler was specified, use CC.
7251 LTCC=${LTCC-"$CC"}
7252
7253 # If no C compiler flags were specified, use CFLAGS.
7254 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7255
7256 # Allow CC to be a program name with arguments.
7257 compiler=$CC
7258
7259
7260 # Check for command to grab the raw symbol name followed by C symbol from nm.
7261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7262 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7263 if test ${lt_cv_sys_global_symbol_pipe+y}
7264 then :
7265 printf %s "(cached) " >&6
7266 else case e in #(
7267 e)
7268 # These are sane defaults that work on at least a few old systems.
7269 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7270
7271 # Character class describing NM global symbol codes.
7272 symcode='[BCDEGRST]'
7273
7274 # Regexp to match symbols that can be accessed directly from C.
7275 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7276
7277 # Define system-specific variables.
7278 case $host_os in
7279 aix*)
7280 symcode='[BCDT]'
7281 ;;
7282 cygwin* | mingw* | windows* | pw32* | cegcc*)
7283 symcode='[ABCDGISTW]'
7284 ;;
7285 hpux*)
7286 if test ia64 = "$host_cpu"; then
7287 symcode='[ABCDEGRST]'
7288 fi
7289 ;;
7290 irix* | nonstopux*)
7291 symcode='[BCDEGRST]'
7292 ;;
7293 osf*)
7294 symcode='[BCDEGQRST]'
7295 ;;
7296 solaris*)
7297 symcode='[BCDRT]'
7298 ;;
7299 sco3.2v5*)
7300 symcode='[DT]'
7301 ;;
7302 sysv4.2uw2*)
7303 symcode='[DT]'
7304 ;;
7305 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7306 symcode='[ABDT]'
7307 ;;
7308 sysv4)
7309 symcode='[DFNSTU]'
7310 ;;
7311 esac
7312
7313 # If we're using GNU nm, then use its standard symbol codes.
7314 case `$NM -V 2>&1` in
7315 *GNU* | *'with BFD'*)
7316 symcode='[ABCDGIRSTW]' ;;
7317 esac
7318
7319 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7320 # Gets list of data symbols to import.
7321 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7322 # Adjust the below global symbol transforms to fixup imported variables.
7323 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7324 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7325 lt_c_name_lib_hook="\
7326 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7327 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7328 else
7329 # Disable hooks by default.
7330 lt_cv_sys_global_symbol_to_import=
7331 lt_cdecl_hook=
7332 lt_c_name_hook=
7333 lt_c_name_lib_hook=
7334 fi
7335
7336 # Transform an extracted symbol line into a proper C declaration.
7337 # Some systems (esp. on ia64) link data and code symbols differently,
7338 # so use this general approach.
7339 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7340 $lt_cdecl_hook\
7341 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7342 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7343
7344 # Transform an extracted symbol line into symbol name and symbol address
7345 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7346 $lt_c_name_hook\
7347 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7348 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7349
7350 # Transform an extracted symbol line into symbol name with lib prefix and
7351 # symbol address.
7352 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7353 $lt_c_name_lib_hook\
7354 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7355 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7356 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7357
7358 # Handle CRLF in mingw tool chain
7359 opt_cr=
7360 case $build_os in
7361 mingw* | windows*)
7362 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7363 ;;
7364 esac
7365
7366 # Try without a prefix underscore, then with it.
7367 for ac_symprfx in "" "_"; do
7368
7369 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7370 symxfrm="\\1 $ac_symprfx\\2 \\2"
7371
7372 # Write the raw and C identifiers.
7373 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7374 # Fake it for dumpbin and say T for any non-static function,
7375 # D for any global variable and I for any imported variable.
7376 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7377 # which start with @ or ?.
7378 lt_cv_sys_global_symbol_pipe="$AWK '"\
7379 " {last_section=section; section=\$ 3};"\
7380 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7381 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7382 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7383 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7384 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7385 " \$ 0!~/External *\|/{next};"\
7386 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7387 " {if(hide[section]) next};"\
7388 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7389 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7390 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7391 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7392 " ' prfx=^$ac_symprfx"
7393 else
7394 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7395 fi
7396 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7397
7398 # Check to see that the pipe works correctly.
7399 pipe_works=no
7400
7401 rm -f conftest*
7402 cat > conftest.$ac_ext <<_LT_EOF
7403 #ifdef __cplusplus
7404 extern "C" {
7405 #endif
7406 char nm_test_var;
7407 void nm_test_func(void);
7408 void nm_test_func(void){}
7409 #ifdef __cplusplus
7410 }
7411 #endif
7412 int main(void){nm_test_var='a';nm_test_func();return(0);}
7413 _LT_EOF
7414
7415 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7416 (eval $ac_compile) 2>&5
7417 ac_status=$?
7418 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7419 test $ac_status = 0; }; then
7420 # Now try to grab the symbols.
7421 nlist=conftest.nm
7422 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7423 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7424 # Try sorting and uniquifying the output.
7425 if sort "$nlist" | uniq > "$nlist"T; then
7426 mv -f "$nlist"T "$nlist"
7427 else
7428 rm -f "$nlist"T
7429 fi
7430
7431 # Make sure that we snagged all the symbols we need.
7432 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7433 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7434 cat <<_LT_EOF > conftest.$ac_ext
7435 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7436 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7437 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7438 relocations are performed -- see ld's documentation on pseudo-relocs. */
7439 # define LT_DLSYM_CONST
7440 #elif defined __osf__
7441 /* This system does not cope well with relocations in const data. */
7442 # define LT_DLSYM_CONST
7443 #else
7444 # define LT_DLSYM_CONST const
7445 #endif
7446
7447 #ifdef __cplusplus
7448 extern "C" {
7449 #endif
7450
7451 _LT_EOF
7452 # Now generate the symbol file.
7453 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7454
7455 cat <<_LT_EOF >> conftest.$ac_ext
7456
7457 /* The mapping between symbol names and symbols. */
7458 LT_DLSYM_CONST struct {
7459 const char *name;
7460 void *address;
7461 }
7462 lt__PROGRAM__LTX_preloaded_symbols[] =
7463 {
7464 { "@PROGRAM@", (void *) 0 },
7465 _LT_EOF
7466 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7467 cat <<\_LT_EOF >> conftest.$ac_ext
7468 {0, (void *) 0}
7469 };
7470
7471 /* This works around a problem in FreeBSD linker */
7472 #ifdef FREEBSD_WORKAROUND
7473 static const void *lt_preloaded_setup() {
7474 return lt__PROGRAM__LTX_preloaded_symbols;
7475 }
7476 #endif
7477
7478 #ifdef __cplusplus
7479 }
7480 #endif
7481 _LT_EOF
7482 # Now try linking the two files.
7483 mv conftest.$ac_objext conftstm.$ac_objext
7484 lt_globsym_save_LIBS=$LIBS
7485 lt_globsym_save_CFLAGS=$CFLAGS
7486 LIBS=conftstm.$ac_objext
7487 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7488 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7489 (eval $ac_link) 2>&5
7490 ac_status=$?
7491 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7492 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7493 pipe_works=yes
7494 fi
7495 LIBS=$lt_globsym_save_LIBS
7496 CFLAGS=$lt_globsym_save_CFLAGS
7497 else
7498 echo "cannot find nm_test_func in $nlist" >&5
7499 fi
7500 else
7501 echo "cannot find nm_test_var in $nlist" >&5
7502 fi
7503 else
7504 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7505 fi
7506 else
7507 echo "$progname: failed program was:" >&5
7508 cat conftest.$ac_ext >&5
7509 fi
7510 rm -rf conftest* conftst*
7511
7512 # Do not use the global_symbol_pipe unless it works.
7513 if test yes = "$pipe_works"; then
7514 break
7515 else
7516 lt_cv_sys_global_symbol_pipe=
7517 fi
7518 done
7519 ;;
7520 esac
7521 fi
7522
7523 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7524 lt_cv_sys_global_symbol_to_cdecl=
7525 fi
7526 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7528 printf "%s\n" "failed" >&6; }
7529 else
7530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7531 printf "%s\n" "ok" >&6; }
7532 fi
7533
7534 # Response file support.
7535 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7536 nm_file_list_spec='@'
7537 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7538 nm_file_list_spec='@'
7539 fi
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
7571
7572
7573
7574
7575
7576
7577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7578 printf %s "checking for sysroot... " >&6; }
7579
7580 # Check whether --with-sysroot was given.
7581 if test ${with_sysroot+y}
7582 then :
7583 withval=$with_sysroot;
7584 else case e in #(
7585 e) with_sysroot=no ;;
7586 esac
7587 fi
7588
7589
7590 lt_sysroot=
7591 case $with_sysroot in #(
7592 yes)
7593 if test yes = "$GCC"; then
7594 # Trim trailing / since we'll always append absolute paths and we want
7595 # to avoid //, if only for less confusing output for the user.
7596 lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`
7597 fi
7598 ;; #(
7599 /*)
7600 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7601 ;; #(
7602 no|'')
7603 ;; #(
7604 *)
7605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7606 printf "%s\n" "$with_sysroot" >&6; }
7607 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7608 ;;
7609 esac
7610
7611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7612 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7613
7614
7615
7616
7617
7618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7619 printf %s "checking for a working dd... " >&6; }
7620 if test ${ac_cv_path_lt_DD+y}
7621 then :
7622 printf %s "(cached) " >&6
7623 else case e in #(
7624 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7625 cat conftest.i conftest.i >conftest2.i
7626 : ${lt_DD:=$DD}
7627 if test -z "$lt_DD"; then
7628 ac_path_lt_DD_found=false
7629 # Loop through the user's path and test for each of PROGNAME-LIST
7630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7631 for as_dir in $PATH
7632 do
7633 IFS=$as_save_IFS
7634 case $as_dir in #(((
7635 '') as_dir=./ ;;
7636 */) ;;
7637 *) as_dir=$as_dir/ ;;
7638 esac
7639 for ac_prog in dd
7640 do
7641 for ac_exec_ext in '' $ac_executable_extensions; do
7642 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7643 as_fn_executable_p "$ac_path_lt_DD" || continue
7644 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7645 cmp -s conftest.i conftest.out \
7646 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7647 fi
7648 $ac_path_lt_DD_found && break 3
7649 done
7650 done
7651 done
7652 IFS=$as_save_IFS
7653 if test -z "$ac_cv_path_lt_DD"; then
7654 :
7655 fi
7656 else
7657 ac_cv_path_lt_DD=$lt_DD
7658 fi
7659
7660 rm -f conftest.i conftest2.i conftest.out ;;
7661 esac
7662 fi
7663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7664 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7665
7666
7667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7668 printf %s "checking how to truncate binary pipes... " >&6; }
7669 if test ${lt_cv_truncate_bin+y}
7670 then :
7671 printf %s "(cached) " >&6
7672 else case e in #(
7673 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7674 cat conftest.i conftest.i >conftest2.i
7675 lt_cv_truncate_bin=
7676 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7677 cmp -s conftest.i conftest.out \
7678 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7679 fi
7680 rm -f conftest.i conftest2.i conftest.out
7681 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
7682 esac
7683 fi
7684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7685 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7686
7687
7688
7689
7690
7691
7692
7693 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7694 func_cc_basename ()
7695 {
7696 for cc_temp in $*""; do
7697 case $cc_temp in
7698 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7699 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7700 \-*) ;;
7701 *) break;;
7702 esac
7703 done
7704 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7705 }
7706
7707 # Check whether --enable-libtool-lock was given.
7708 if test ${enable_libtool_lock+y}
7709 then :
7710 enableval=$enable_libtool_lock;
7711 fi
7712
7713 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7714
7715 # Some flags need to be propagated to the compiler or linker for good
7716 # libtool support.
7717 case $host in
7718 ia64-*-hpux*)
7719 # Find out what ABI is being produced by ac_compile, and set mode
7720 # options accordingly.
7721 echo 'int i;' > conftest.$ac_ext
7722 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7723 (eval $ac_compile) 2>&5
7724 ac_status=$?
7725 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7726 test $ac_status = 0; }; then
7727 case `$FILECMD conftest.$ac_objext` in
7728 *ELF-32*)
7729 HPUX_IA64_MODE=32
7730 ;;
7731 *ELF-64*)
7732 HPUX_IA64_MODE=64
7733 ;;
7734 esac
7735 fi
7736 rm -rf conftest*
7737 ;;
7738 *-*-irix6*)
7739 # Find out what ABI is being produced by ac_compile, and set linker
7740 # options accordingly.
7741 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7742 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7743 (eval $ac_compile) 2>&5
7744 ac_status=$?
7745 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7746 test $ac_status = 0; }; then
7747 if test yes = "$lt_cv_prog_gnu_ld"; then
7748 case `$FILECMD conftest.$ac_objext` in
7749 *32-bit*)
7750 LD="${LD-ld} -melf32bsmip"
7751 ;;
7752 *N32*)
7753 LD="${LD-ld} -melf32bmipn32"
7754 ;;
7755 *64-bit*)
7756 LD="${LD-ld} -melf64bmip"
7757 ;;
7758 esac
7759 else
7760 case `$FILECMD conftest.$ac_objext` in
7761 *32-bit*)
7762 LD="${LD-ld} -32"
7763 ;;
7764 *N32*)
7765 LD="${LD-ld} -n32"
7766 ;;
7767 *64-bit*)
7768 LD="${LD-ld} -64"
7769 ;;
7770 esac
7771 fi
7772 fi
7773 rm -rf conftest*
7774 ;;
7775
7776 mips64*-*linux*)
7777 # Find out what ABI is being produced by ac_compile, and set linker
7778 # options accordingly.
7779 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7780 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7781 (eval $ac_compile) 2>&5
7782 ac_status=$?
7783 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7784 test $ac_status = 0; }; then
7785 emul=elf
7786 case `$FILECMD conftest.$ac_objext` in
7787 *32-bit*)
7788 emul="${emul}32"
7789 ;;
7790 *64-bit*)
7791 emul="${emul}64"
7792 ;;
7793 esac
7794 case `$FILECMD conftest.$ac_objext` in
7795 *MSB*)
7796 emul="${emul}btsmip"
7797 ;;
7798 *LSB*)
7799 emul="${emul}ltsmip"
7800 ;;
7801 esac
7802 case `$FILECMD conftest.$ac_objext` in
7803 *N32*)
7804 emul="${emul}n32"
7805 ;;
7806 esac
7807 LD="${LD-ld} -m $emul"
7808 fi
7809 rm -rf conftest*
7810 ;;
7811
7812 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7813 s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
7814 # Find out what ABI is being produced by ac_compile, and set linker
7815 # options accordingly. Note that the listed cases only cover the
7816 # situations where additional linker options are needed (such as when
7817 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7818 # vice versa); the common cases where no linker options are needed do
7819 # not appear in the list.
7820 echo 'int i;' > conftest.$ac_ext
7821 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7822 (eval $ac_compile) 2>&5
7823 ac_status=$?
7824 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7825 test $ac_status = 0; }; then
7826 case `$FILECMD conftest.o` in
7827 *32-bit*)
7828 case $host in
7829 x86_64-*kfreebsd*-gnu)
7830 LD="${LD-ld} -m elf_i386_fbsd"
7831 ;;
7832 x86_64-*linux*|x86_64-gnu*)
7833 case `$FILECMD conftest.o` in
7834 *x86-64*)
7835 LD="${LD-ld} -m elf32_x86_64"
7836 ;;
7837 *)
7838 LD="${LD-ld} -m elf_i386"
7839 ;;
7840 esac
7841 ;;
7842 powerpc64le-*linux*)
7843 LD="${LD-ld} -m elf32lppclinux"
7844 ;;
7845 powerpc64-*linux*)
7846 LD="${LD-ld} -m elf32ppclinux"
7847 ;;
7848 s390x-*linux*)
7849 LD="${LD-ld} -m elf_s390"
7850 ;;
7851 sparc64-*linux*)
7852 LD="${LD-ld} -m elf32_sparc"
7853 ;;
7854 esac
7855 ;;
7856 *64-bit*)
7857 case $host in
7858 x86_64-*kfreebsd*-gnu)
7859 LD="${LD-ld} -m elf_x86_64_fbsd"
7860 ;;
7861 x86_64-*linux*|x86_64-gnu*)
7862 LD="${LD-ld} -m elf_x86_64"
7863 ;;
7864 powerpcle-*linux*)
7865 LD="${LD-ld} -m elf64lppc"
7866 ;;
7867 powerpc-*linux*)
7868 LD="${LD-ld} -m elf64ppc"
7869 ;;
7870 s390*-*linux*|s390*-*tpf*)
7871 LD="${LD-ld} -m elf64_s390"
7872 ;;
7873 sparc*-*linux*)
7874 LD="${LD-ld} -m elf64_sparc"
7875 ;;
7876 esac
7877 ;;
7878 esac
7879 fi
7880 rm -rf conftest*
7881 ;;
7882
7883 *-*-sco3.2v5*)
7884 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7885 SAVE_CFLAGS=$CFLAGS
7886 CFLAGS="$CFLAGS -belf"
7887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7888 printf %s "checking whether the C compiler needs -belf... " >&6; }
7889 if test ${lt_cv_cc_needs_belf+y}
7890 then :
7891 printf %s "(cached) " >&6
7892 else case e in #(
7893 e) ac_ext=c
7894 ac_cpp='$CPP $CPPFLAGS'
7895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7898
7899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7900 /* end confdefs.h. */
7901
7902 int
7903 main (void)
7904 {
7905
7906 ;
7907 return 0;
7908 }
7909 _ACEOF
7910 if ac_fn_c_try_link "$LINENO"
7911 then :
7912 lt_cv_cc_needs_belf=yes
7913 else case e in #(
7914 e) lt_cv_cc_needs_belf=no ;;
7915 esac
7916 fi
7917 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7918 conftest$ac_exeext conftest.$ac_ext
7919 ac_ext=c
7920 ac_cpp='$CPP $CPPFLAGS'
7921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7924 ;;
7925 esac
7926 fi
7927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7928 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7929 if test yes != "$lt_cv_cc_needs_belf"; then
7930 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7931 CFLAGS=$SAVE_CFLAGS
7932 fi
7933 ;;
7934 *-*solaris*)
7935 # Find out what ABI is being produced by ac_compile, and set linker
7936 # options accordingly.
7937 echo 'int i;' > conftest.$ac_ext
7938 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7939 (eval $ac_compile) 2>&5
7940 ac_status=$?
7941 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7942 test $ac_status = 0; }; then
7943 case `$FILECMD conftest.o` in
7944 *64-bit*)
7945 case $lt_cv_prog_gnu_ld in
7946 yes*)
7947 case $host in
7948 i?86-*-solaris*|x86_64-*-solaris*)
7949 LD="${LD-ld} -m elf_x86_64"
7950 ;;
7951 sparc*-*-solaris*)
7952 LD="${LD-ld} -m elf64_sparc"
7953 ;;
7954 esac
7955 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7956 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7957 LD=${LD-ld}_sol2
7958 fi
7959 ;;
7960 *)
7961 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7962 LD="${LD-ld} -64"
7963 fi
7964 ;;
7965 esac
7966 ;;
7967 esac
7968 fi
7969 rm -rf conftest*
7970 ;;
7971 esac
7972
7973 need_locks=$enable_libtool_lock
7974
7975 if test -n "$ac_tool_prefix"; then
7976 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7977 set dummy ${ac_tool_prefix}mt; ac_word=$2
7978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7979 printf %s "checking for $ac_word... " >&6; }
7980 if test ${ac_cv_prog_MANIFEST_TOOL+y}
7981 then :
7982 printf %s "(cached) " >&6
7983 else case e in #(
7984 e) if test -n "$MANIFEST_TOOL"; then
7985 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7986 else
7987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7988 for as_dir in $PATH
7989 do
7990 IFS=$as_save_IFS
7991 case $as_dir in #(((
7992 '') as_dir=./ ;;
7993 */) ;;
7994 *) as_dir=$as_dir/ ;;
7995 esac
7996 for ac_exec_ext in '' $ac_executable_extensions; do
7997 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7998 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7999 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8000 break 2
8001 fi
8002 done
8003 done
8004 IFS=$as_save_IFS
8005
8006 fi ;;
8007 esac
8008 fi
8009 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8010 if test -n "$MANIFEST_TOOL"; then
8011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8012 printf "%s\n" "$MANIFEST_TOOL" >&6; }
8013 else
8014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8015 printf "%s\n" "no" >&6; }
8016 fi
8017
8018
8019 fi
8020 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8021 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8022 # Extract the first word of "mt", so it can be a program name with args.
8023 set dummy mt; ac_word=$2
8024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8025 printf %s "checking for $ac_word... " >&6; }
8026 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8027 then :
8028 printf %s "(cached) " >&6
8029 else case e in #(
8030 e) if test -n "$ac_ct_MANIFEST_TOOL"; then
8031 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8032 else
8033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8034 for as_dir in $PATH
8035 do
8036 IFS=$as_save_IFS
8037 case $as_dir in #(((
8038 '') as_dir=./ ;;
8039 */) ;;
8040 *) as_dir=$as_dir/ ;;
8041 esac
8042 for ac_exec_ext in '' $ac_executable_extensions; do
8043 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8044 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8045 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8046 break 2
8047 fi
8048 done
8049 done
8050 IFS=$as_save_IFS
8051
8052 fi ;;
8053 esac
8054 fi
8055 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8056 if test -n "$ac_ct_MANIFEST_TOOL"; then
8057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8058 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
8059 else
8060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8061 printf "%s\n" "no" >&6; }
8062 fi
8063
8064 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8065 MANIFEST_TOOL=":"
8066 else
8067 case $cross_compiling:$ac_tool_warned in
8068 yes:)
8069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8070 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8071 ac_tool_warned=yes ;;
8072 esac
8073 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8074 fi
8075 else
8076 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8077 fi
8078
8079 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8081 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8082 if test ${lt_cv_path_manifest_tool+y}
8083 then :
8084 printf %s "(cached) " >&6
8085 else case e in #(
8086 e) lt_cv_path_manifest_tool=no
8087 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8088 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8089 cat conftest.err >&5
8090 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8091 lt_cv_path_manifest_tool=yes
8092 fi
8093 rm -f conftest* ;;
8094 esac
8095 fi
8096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5
8097 printf "%s\n" "$lt_cv_path_manifest_tool" >&6; }
8098 if test yes != "$lt_cv_path_manifest_tool"; then
8099 MANIFEST_TOOL=:
8100 fi
8101
8102
8103
8104
8105
8106
8107 case $host_os in
8108 rhapsody* | darwin*)
8109 if test -n "$ac_tool_prefix"; then
8110 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8111 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8113 printf %s "checking for $ac_word... " >&6; }
8114 if test ${ac_cv_prog_DSYMUTIL+y}
8115 then :
8116 printf %s "(cached) " >&6
8117 else case e in #(
8118 e) if test -n "$DSYMUTIL"; then
8119 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8120 else
8121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8122 for as_dir in $PATH
8123 do
8124 IFS=$as_save_IFS
8125 case $as_dir in #(((
8126 '') as_dir=./ ;;
8127 */) ;;
8128 *) as_dir=$as_dir/ ;;
8129 esac
8130 for ac_exec_ext in '' $ac_executable_extensions; do
8131 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8132 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8133 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8134 break 2
8135 fi
8136 done
8137 done
8138 IFS=$as_save_IFS
8139
8140 fi ;;
8141 esac
8142 fi
8143 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8144 if test -n "$DSYMUTIL"; then
8145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8146 printf "%s\n" "$DSYMUTIL" >&6; }
8147 else
8148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8149 printf "%s\n" "no" >&6; }
8150 fi
8151
8152
8153 fi
8154 if test -z "$ac_cv_prog_DSYMUTIL"; then
8155 ac_ct_DSYMUTIL=$DSYMUTIL
8156 # Extract the first word of "dsymutil", so it can be a program name with args.
8157 set dummy dsymutil; ac_word=$2
8158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8159 printf %s "checking for $ac_word... " >&6; }
8160 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8161 then :
8162 printf %s "(cached) " >&6
8163 else case e in #(
8164 e) if test -n "$ac_ct_DSYMUTIL"; then
8165 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8166 else
8167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8168 for as_dir in $PATH
8169 do
8170 IFS=$as_save_IFS
8171 case $as_dir in #(((
8172 '') as_dir=./ ;;
8173 */) ;;
8174 *) as_dir=$as_dir/ ;;
8175 esac
8176 for ac_exec_ext in '' $ac_executable_extensions; do
8177 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8178 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8179 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8180 break 2
8181 fi
8182 done
8183 done
8184 IFS=$as_save_IFS
8185
8186 fi ;;
8187 esac
8188 fi
8189 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8190 if test -n "$ac_ct_DSYMUTIL"; then
8191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8192 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8193 else
8194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8195 printf "%s\n" "no" >&6; }
8196 fi
8197
8198 if test "x$ac_ct_DSYMUTIL" = x; then
8199 DSYMUTIL=":"
8200 else
8201 case $cross_compiling:$ac_tool_warned in
8202 yes:)
8203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8204 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8205 ac_tool_warned=yes ;;
8206 esac
8207 DSYMUTIL=$ac_ct_DSYMUTIL
8208 fi
8209 else
8210 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8211 fi
8212
8213 if test -n "$ac_tool_prefix"; then
8214 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8215 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8217 printf %s "checking for $ac_word... " >&6; }
8218 if test ${ac_cv_prog_NMEDIT+y}
8219 then :
8220 printf %s "(cached) " >&6
8221 else case e in #(
8222 e) if test -n "$NMEDIT"; then
8223 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8224 else
8225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8226 for as_dir in $PATH
8227 do
8228 IFS=$as_save_IFS
8229 case $as_dir in #(((
8230 '') as_dir=./ ;;
8231 */) ;;
8232 *) as_dir=$as_dir/ ;;
8233 esac
8234 for ac_exec_ext in '' $ac_executable_extensions; do
8235 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8236 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8237 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8238 break 2
8239 fi
8240 done
8241 done
8242 IFS=$as_save_IFS
8243
8244 fi ;;
8245 esac
8246 fi
8247 NMEDIT=$ac_cv_prog_NMEDIT
8248 if test -n "$NMEDIT"; then
8249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8250 printf "%s\n" "$NMEDIT" >&6; }
8251 else
8252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8253 printf "%s\n" "no" >&6; }
8254 fi
8255
8256
8257 fi
8258 if test -z "$ac_cv_prog_NMEDIT"; then
8259 ac_ct_NMEDIT=$NMEDIT
8260 # Extract the first word of "nmedit", so it can be a program name with args.
8261 set dummy nmedit; ac_word=$2
8262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8263 printf %s "checking for $ac_word... " >&6; }
8264 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8265 then :
8266 printf %s "(cached) " >&6
8267 else case e in #(
8268 e) if test -n "$ac_ct_NMEDIT"; then
8269 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8270 else
8271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8272 for as_dir in $PATH
8273 do
8274 IFS=$as_save_IFS
8275 case $as_dir in #(((
8276 '') as_dir=./ ;;
8277 */) ;;
8278 *) as_dir=$as_dir/ ;;
8279 esac
8280 for ac_exec_ext in '' $ac_executable_extensions; do
8281 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8282 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8283 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8284 break 2
8285 fi
8286 done
8287 done
8288 IFS=$as_save_IFS
8289
8290 fi ;;
8291 esac
8292 fi
8293 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8294 if test -n "$ac_ct_NMEDIT"; then
8295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8296 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8297 else
8298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8299 printf "%s\n" "no" >&6; }
8300 fi
8301
8302 if test "x$ac_ct_NMEDIT" = x; then
8303 NMEDIT=":"
8304 else
8305 case $cross_compiling:$ac_tool_warned in
8306 yes:)
8307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8308 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8309 ac_tool_warned=yes ;;
8310 esac
8311 NMEDIT=$ac_ct_NMEDIT
8312 fi
8313 else
8314 NMEDIT="$ac_cv_prog_NMEDIT"
8315 fi
8316
8317 if test -n "$ac_tool_prefix"; then
8318 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8319 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8321 printf %s "checking for $ac_word... " >&6; }
8322 if test ${ac_cv_prog_LIPO+y}
8323 then :
8324 printf %s "(cached) " >&6
8325 else case e in #(
8326 e) if test -n "$LIPO"; then
8327 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8328 else
8329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8330 for as_dir in $PATH
8331 do
8332 IFS=$as_save_IFS
8333 case $as_dir in #(((
8334 '') as_dir=./ ;;
8335 */) ;;
8336 *) as_dir=$as_dir/ ;;
8337 esac
8338 for ac_exec_ext in '' $ac_executable_extensions; do
8339 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8340 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8341 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8342 break 2
8343 fi
8344 done
8345 done
8346 IFS=$as_save_IFS
8347
8348 fi ;;
8349 esac
8350 fi
8351 LIPO=$ac_cv_prog_LIPO
8352 if test -n "$LIPO"; then
8353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8354 printf "%s\n" "$LIPO" >&6; }
8355 else
8356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8357 printf "%s\n" "no" >&6; }
8358 fi
8359
8360
8361 fi
8362 if test -z "$ac_cv_prog_LIPO"; then
8363 ac_ct_LIPO=$LIPO
8364 # Extract the first word of "lipo", so it can be a program name with args.
8365 set dummy lipo; ac_word=$2
8366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8367 printf %s "checking for $ac_word... " >&6; }
8368 if test ${ac_cv_prog_ac_ct_LIPO+y}
8369 then :
8370 printf %s "(cached) " >&6
8371 else case e in #(
8372 e) if test -n "$ac_ct_LIPO"; then
8373 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8374 else
8375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8376 for as_dir in $PATH
8377 do
8378 IFS=$as_save_IFS
8379 case $as_dir in #(((
8380 '') as_dir=./ ;;
8381 */) ;;
8382 *) as_dir=$as_dir/ ;;
8383 esac
8384 for ac_exec_ext in '' $ac_executable_extensions; do
8385 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8386 ac_cv_prog_ac_ct_LIPO="lipo"
8387 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8388 break 2
8389 fi
8390 done
8391 done
8392 IFS=$as_save_IFS
8393
8394 fi ;;
8395 esac
8396 fi
8397 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8398 if test -n "$ac_ct_LIPO"; then
8399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8400 printf "%s\n" "$ac_ct_LIPO" >&6; }
8401 else
8402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8403 printf "%s\n" "no" >&6; }
8404 fi
8405
8406 if test "x$ac_ct_LIPO" = x; then
8407 LIPO=":"
8408 else
8409 case $cross_compiling:$ac_tool_warned in
8410 yes:)
8411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8412 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8413 ac_tool_warned=yes ;;
8414 esac
8415 LIPO=$ac_ct_LIPO
8416 fi
8417 else
8418 LIPO="$ac_cv_prog_LIPO"
8419 fi
8420
8421 if test -n "$ac_tool_prefix"; then
8422 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8423 set dummy ${ac_tool_prefix}otool; ac_word=$2
8424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8425 printf %s "checking for $ac_word... " >&6; }
8426 if test ${ac_cv_prog_OTOOL+y}
8427 then :
8428 printf %s "(cached) " >&6
8429 else case e in #(
8430 e) if test -n "$OTOOL"; then
8431 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8432 else
8433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8434 for as_dir in $PATH
8435 do
8436 IFS=$as_save_IFS
8437 case $as_dir in #(((
8438 '') as_dir=./ ;;
8439 */) ;;
8440 *) as_dir=$as_dir/ ;;
8441 esac
8442 for ac_exec_ext in '' $ac_executable_extensions; do
8443 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8444 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8445 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8446 break 2
8447 fi
8448 done
8449 done
8450 IFS=$as_save_IFS
8451
8452 fi ;;
8453 esac
8454 fi
8455 OTOOL=$ac_cv_prog_OTOOL
8456 if test -n "$OTOOL"; then
8457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8458 printf "%s\n" "$OTOOL" >&6; }
8459 else
8460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8461 printf "%s\n" "no" >&6; }
8462 fi
8463
8464
8465 fi
8466 if test -z "$ac_cv_prog_OTOOL"; then
8467 ac_ct_OTOOL=$OTOOL
8468 # Extract the first word of "otool", so it can be a program name with args.
8469 set dummy otool; ac_word=$2
8470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8471 printf %s "checking for $ac_word... " >&6; }
8472 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8473 then :
8474 printf %s "(cached) " >&6
8475 else case e in #(
8476 e) if test -n "$ac_ct_OTOOL"; then
8477 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8478 else
8479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8480 for as_dir in $PATH
8481 do
8482 IFS=$as_save_IFS
8483 case $as_dir in #(((
8484 '') as_dir=./ ;;
8485 */) ;;
8486 *) as_dir=$as_dir/ ;;
8487 esac
8488 for ac_exec_ext in '' $ac_executable_extensions; do
8489 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8490 ac_cv_prog_ac_ct_OTOOL="otool"
8491 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8492 break 2
8493 fi
8494 done
8495 done
8496 IFS=$as_save_IFS
8497
8498 fi ;;
8499 esac
8500 fi
8501 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8502 if test -n "$ac_ct_OTOOL"; then
8503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8504 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8505 else
8506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8507 printf "%s\n" "no" >&6; }
8508 fi
8509
8510 if test "x$ac_ct_OTOOL" = x; then
8511 OTOOL=":"
8512 else
8513 case $cross_compiling:$ac_tool_warned in
8514 yes:)
8515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8516 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8517 ac_tool_warned=yes ;;
8518 esac
8519 OTOOL=$ac_ct_OTOOL
8520 fi
8521 else
8522 OTOOL="$ac_cv_prog_OTOOL"
8523 fi
8524
8525 if test -n "$ac_tool_prefix"; then
8526 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8527 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8529 printf %s "checking for $ac_word... " >&6; }
8530 if test ${ac_cv_prog_OTOOL64+y}
8531 then :
8532 printf %s "(cached) " >&6
8533 else case e in #(
8534 e) if test -n "$OTOOL64"; then
8535 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8536 else
8537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8538 for as_dir in $PATH
8539 do
8540 IFS=$as_save_IFS
8541 case $as_dir in #(((
8542 '') as_dir=./ ;;
8543 */) ;;
8544 *) as_dir=$as_dir/ ;;
8545 esac
8546 for ac_exec_ext in '' $ac_executable_extensions; do
8547 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8548 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8549 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8550 break 2
8551 fi
8552 done
8553 done
8554 IFS=$as_save_IFS
8555
8556 fi ;;
8557 esac
8558 fi
8559 OTOOL64=$ac_cv_prog_OTOOL64
8560 if test -n "$OTOOL64"; then
8561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8562 printf "%s\n" "$OTOOL64" >&6; }
8563 else
8564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8565 printf "%s\n" "no" >&6; }
8566 fi
8567
8568
8569 fi
8570 if test -z "$ac_cv_prog_OTOOL64"; then
8571 ac_ct_OTOOL64=$OTOOL64
8572 # Extract the first word of "otool64", so it can be a program name with args.
8573 set dummy otool64; ac_word=$2
8574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8575 printf %s "checking for $ac_word... " >&6; }
8576 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8577 then :
8578 printf %s "(cached) " >&6
8579 else case e in #(
8580 e) if test -n "$ac_ct_OTOOL64"; then
8581 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8582 else
8583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8584 for as_dir in $PATH
8585 do
8586 IFS=$as_save_IFS
8587 case $as_dir in #(((
8588 '') as_dir=./ ;;
8589 */) ;;
8590 *) as_dir=$as_dir/ ;;
8591 esac
8592 for ac_exec_ext in '' $ac_executable_extensions; do
8593 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8594 ac_cv_prog_ac_ct_OTOOL64="otool64"
8595 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8596 break 2
8597 fi
8598 done
8599 done
8600 IFS=$as_save_IFS
8601
8602 fi ;;
8603 esac
8604 fi
8605 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8606 if test -n "$ac_ct_OTOOL64"; then
8607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8608 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8609 else
8610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8611 printf "%s\n" "no" >&6; }
8612 fi
8613
8614 if test "x$ac_ct_OTOOL64" = x; then
8615 OTOOL64=":"
8616 else
8617 case $cross_compiling:$ac_tool_warned in
8618 yes:)
8619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8620 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8621 ac_tool_warned=yes ;;
8622 esac
8623 OTOOL64=$ac_ct_OTOOL64
8624 fi
8625 else
8626 OTOOL64="$ac_cv_prog_OTOOL64"
8627 fi
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8656 printf %s "checking for -single_module linker flag... " >&6; }
8657 if test ${lt_cv_apple_cc_single_mod+y}
8658 then :
8659 printf %s "(cached) " >&6
8660 else case e in #(
8661 e) lt_cv_apple_cc_single_mod=no
8662 if test -z "$LT_MULTI_MODULE"; then
8663 # By default we will add the -single_module flag. You can override
8664 # by either setting the environment variable LT_MULTI_MODULE
8665 # non-empty at configure time, or by adding -multi_module to the
8666 # link flags.
8667 rm -rf libconftest.dylib*
8668 echo "int foo(void){return 1;}" > conftest.c
8669 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8670 -dynamiclib -Wl,-single_module conftest.c" >&5
8671 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8672 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8673 _lt_result=$?
8674 # If there is a non-empty error log, and "single_module"
8675 # appears in it, assume the flag caused a linker warning
8676 if test -s conftest.err && $GREP single_module conftest.err; then
8677 cat conftest.err >&5
8678 # Otherwise, if the output was created with a 0 exit code from
8679 # the compiler, it worked.
8680 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8681 lt_cv_apple_cc_single_mod=yes
8682 else
8683 cat conftest.err >&5
8684 fi
8685 rm -rf libconftest.dylib*
8686 rm -f conftest.*
8687 fi ;;
8688 esac
8689 fi
8690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8691 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8692
8693 # Feature test to disable chained fixups since it is not
8694 # compatible with '-undefined dynamic_lookup'
8695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
8696 printf %s "checking for -no_fixup_chains linker flag... " >&6; }
8697 if test ${lt_cv_support_no_fixup_chains+y}
8698 then :
8699 printf %s "(cached) " >&6
8700 else case e in #(
8701 e) save_LDFLAGS=$LDFLAGS
8702 LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
8703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8704 /* end confdefs.h. */
8705
8706 int
8707 main (void)
8708 {
8709
8710 ;
8711 return 0;
8712 }
8713 _ACEOF
8714 if ac_fn_c_try_link "$LINENO"
8715 then :
8716 lt_cv_support_no_fixup_chains=yes
8717 else case e in #(
8718 e) lt_cv_support_no_fixup_chains=no
8719 ;;
8720 esac
8721 fi
8722 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8723 conftest$ac_exeext conftest.$ac_ext
8724 LDFLAGS=$save_LDFLAGS
8725
8726 ;;
8727 esac
8728 fi
8729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
8730 printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; }
8731
8732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8733 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8734 if test ${lt_cv_ld_exported_symbols_list+y}
8735 then :
8736 printf %s "(cached) " >&6
8737 else case e in #(
8738 e) lt_cv_ld_exported_symbols_list=no
8739 save_LDFLAGS=$LDFLAGS
8740 echo "_main" > conftest.sym
8741 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8743 /* end confdefs.h. */
8744
8745 int
8746 main (void)
8747 {
8748
8749 ;
8750 return 0;
8751 }
8752 _ACEOF
8753 if ac_fn_c_try_link "$LINENO"
8754 then :
8755 lt_cv_ld_exported_symbols_list=yes
8756 else case e in #(
8757 e) lt_cv_ld_exported_symbols_list=no ;;
8758 esac
8759 fi
8760 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8761 conftest$ac_exeext conftest.$ac_ext
8762 LDFLAGS=$save_LDFLAGS
8763 ;;
8764 esac
8765 fi
8766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8767 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8768
8769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8770 printf %s "checking for -force_load linker flag... " >&6; }
8771 if test ${lt_cv_ld_force_load+y}
8772 then :
8773 printf %s "(cached) " >&6
8774 else case e in #(
8775 e) lt_cv_ld_force_load=no
8776 cat > conftest.c << _LT_EOF
8777 int forced_loaded() { return 2;}
8778 _LT_EOF
8779 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8780 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8781 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8782 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8783 echo "$RANLIB libconftest.a" >&5
8784 $RANLIB libconftest.a 2>&5
8785 cat > conftest.c << _LT_EOF
8786 int main(void) { return 0;}
8787 _LT_EOF
8788 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8789 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8790 _lt_result=$?
8791 if test -s conftest.err && $GREP force_load conftest.err; then
8792 cat conftest.err >&5
8793 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8794 lt_cv_ld_force_load=yes
8795 else
8796 cat conftest.err >&5
8797 fi
8798 rm -f conftest.err libconftest.a conftest conftest.c
8799 rm -rf conftest.dSYM
8800 ;;
8801 esac
8802 fi
8803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8804 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8805 case $host_os in
8806 rhapsody* | darwin1.[012])
8807 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8808 darwin1.*)
8809 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8810 darwin*)
8811 case $MACOSX_DEPLOYMENT_TARGET,$host in
8812 10.[012],*|,*powerpc*-darwin[5-8]*)
8813 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8814 *)
8815 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
8816 if test yes = "$lt_cv_support_no_fixup_chains"; then
8817 as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'
8818 fi
8819 ;;
8820 esac
8821 ;;
8822 esac
8823 if test yes = "$lt_cv_apple_cc_single_mod"; then
8824 _lt_dar_single_mod='$single_module'
8825 fi
8826 _lt_dar_needs_single_mod=no
8827 case $host_os in
8828 rhapsody* | darwin1.*)
8829 _lt_dar_needs_single_mod=yes ;;
8830 darwin*)
8831 # When targeting Mac OS X 10.4 (darwin 8) or later,
8832 # -single_module is the default and -multi_module is unsupported.
8833 # The toolchain on macOS 10.14 (darwin 18) and later cannot
8834 # target any OS version that needs -single_module.
8835 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8836 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*)
8837 _lt_dar_needs_single_mod=yes ;;
8838 esac
8839 ;;
8840 esac
8841 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8842 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8843 else
8844 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8845 fi
8846 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8847 _lt_dsymutil='~$DSYMUTIL $lib || :'
8848 else
8849 _lt_dsymutil=
8850 fi
8851 ;;
8852 esac
8853
8854 # func_munge_path_list VARIABLE PATH
8855 # -----------------------------------
8856 # VARIABLE is name of variable containing _space_ separated list of
8857 # directories to be munged by the contents of PATH, which is string
8858 # having a format:
8859 # "DIR[:DIR]:"
8860 # string "DIR[ DIR]" will be prepended to VARIABLE
8861 # ":DIR[:DIR]"
8862 # string "DIR[ DIR]" will be appended to VARIABLE
8863 # "DIRP[:DIRP]::[DIRA:]DIRA"
8864 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8865 # "DIRA[ DIRA]" will be appended to VARIABLE
8866 # "DIR[:DIR]"
8867 # VARIABLE will be replaced by "DIR[ DIR]"
8868 func_munge_path_list ()
8869 {
8870 case x$2 in
8871 x)
8872 ;;
8873 *:)
8874 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8875 ;;
8876 x:*)
8877 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8878 ;;
8879 *::*)
8880 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8881 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8882 ;;
8883 *)
8884 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8885 ;;
8886 esac
8887 }
8888
8889 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8890 "
8891 if test "x$ac_cv_header_dlfcn_h" = xyes
8892 then :
8893 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8894
8895 fi
8896
8897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
8898 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
8899 if test ${ac_cv_c_undeclared_builtin_options+y}
8900 then :
8901 printf %s "(cached) " >&6
8902 else case e in #(
8903 e) ac_save_CFLAGS=$CFLAGS
8904 ac_cv_c_undeclared_builtin_options='cannot detect'
8905 for ac_arg in '' -fno-builtin; do
8906 CFLAGS="$ac_save_CFLAGS $ac_arg"
8907 # This test program should *not* compile successfully.
8908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8909 /* end confdefs.h. */
8910
8911 int
8912 main (void)
8913 {
8914 (void) strchr;
8915 ;
8916 return 0;
8917 }
8918 _ACEOF
8919 if ac_fn_c_try_compile "$LINENO"
8920 then :
8921
8922 else case e in #(
8923 e) # This test program should compile successfully.
8924 # No library function is consistently available on
8925 # freestanding implementations, so test against a dummy
8926 # declaration. Include always-available headers on the
8927 # off chance that they somehow elicit warnings.
8928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8929 /* end confdefs.h. */
8930 #include <float.h>
8931 #include <limits.h>
8932 #include <stdarg.h>
8933 #include <stddef.h>
8934 extern void ac_decl (int, char *);
8935
8936 int
8937 main (void)
8938 {
8939 (void) ac_decl (0, (char *) 0);
8940 (void) ac_decl;
8941
8942 ;
8943 return 0;
8944 }
8945 _ACEOF
8946 if ac_fn_c_try_compile "$LINENO"
8947 then :
8948 if test x"$ac_arg" = x
8949 then :
8950 ac_cv_c_undeclared_builtin_options='none needed'
8951 else case e in #(
8952 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
8953 esac
8954 fi
8955 break
8956 fi
8957 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8958 esac
8959 fi
8960 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8961 done
8962 CFLAGS=$ac_save_CFLAGS
8963 ;;
8964 esac
8965 fi
8966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
8967 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
8968 case $ac_cv_c_undeclared_builtin_options in #(
8969 'cannot detect') :
8970 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
8971 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
8972 as_fn_error $? "cannot make $CC report undeclared builtins
8973 See 'config.log' for more details" "$LINENO" 5; } ;; #(
8974 'none needed') :
8975 ac_c_undeclared_builtin_options='' ;; #(
8976 *) :
8977 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
8978 esac
8979
8980 echo 'tldbg:KPSE_COMMON called (pkg=dviout-util, amopt=)' >&5
8981 echo 'tldbg:KPSE_BASIC called (pkg=dviout-util, amopt=)' >&5
8982
8983 #
8984 # am_init_automake
8985 if test "`cd $srcdir && pwd`" != "`pwd`"; then
8986 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
8987 # is not polluted with repeated "-I."
8988 am__isrc=' -I$(srcdir)'
8989 # test to see if srcdir already configured
8990 if test -f $srcdir/config.status; then
8991 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
8992 fi
8993 fi
8994
8995 # test whether we have cygpath
8996 if test -z "$CYGPATH_W"; then
8997 if (cygpath --version) >/dev/null 2>/dev/null; then
8998 CYGPATH_W='cygpath -w'
8999 else
9000 CYGPATH_W=echo
9001 fi
9002 fi
9003
9004
9005 # Define the identity of the package.
9006 PACKAGE='dviout-util--tex-live-'
9007 VERSION='20240427'
9008
9009
9010 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
9011
9012
9013 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
9014
9015 # Some tools Automake needs.
9016
9017 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
9018
9019
9020 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
9021
9022
9023 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
9024
9025
9026 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
9027
9028
9029 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
9030
9031 # For better backward compatibility. To be removed once Automake 1.9.x
9032 # dies out for good. For more background, see:
9033 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
9034 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
9035 mkdir_p='$(MKDIR_P)'
9036
9037 # We need awk for the "check" target (and possibly the TAP driver). The
9038 # system "awk" is bad on some platforms.
9039 # Always define AMTAR for backward compatibility. Yes, it's still used
9040 # in the wild :-( We should find a proper way to deprecate it ...
9041 AMTAR='$${TAR-tar}'
9042
9043
9044 # We'll loop over all known methods to create a tar archive until one works.
9045 _am_tools='gnutar plaintar pax cpio none'
9046
9047 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
9048 # There is notably a 21 bits limit for the UID and the GID. In fact,
9049 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
9050 # and bug#13588).
9051 am_max_uid=2097151 # 2^21 - 1
9052 am_max_gid=$am_max_uid
9053 # The $UID and $GID variables are not portable, so we need to resort
9054 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
9055 # below are definitely unexpected, so allow the users to see them
9056 # (that is, avoid stderr redirection).
9057 am_uid=`id -u || echo unknown`
9058 am_gid=`id -g || echo unknown`
9059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
9060 printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
9061 if test x$am_uid = xunknown; then
9062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&5
9063 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&2;}
9064 elif test $am_uid -le $am_max_uid; then
9065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9066 printf "%s\n" "yes" >&6; }
9067 else
9068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9069 printf "%s\n" "no" >&6; }
9070 _am_tools=none
9071 fi
9072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
9073 printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
9074 if test x$gm_gid = xunknown; then
9075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&5
9076 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&2;}
9077 elif test $am_gid -le $am_max_gid; then
9078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9079 printf "%s\n" "yes" >&6; }
9080 else
9081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9082 printf "%s\n" "no" >&6; }
9083 _am_tools=none
9084 fi
9085
9086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
9087 printf %s "checking how to create a ustar tar archive... " >&6; }
9088
9089 # Go ahead even if we have the value already cached. We do so because we
9090 # need to set the values for the 'am__tar' and 'am__untar' variables.
9091 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
9092
9093 for _am_tool in $_am_tools; do
9094 case $_am_tool in
9095 gnutar)
9096 for _am_tar in tar gnutar gtar; do
9097 { echo "$as_me:$LINENO: $_am_tar --version" >&5
9098 ($_am_tar --version) >&5 2>&5
9099 ac_status=$?
9100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9101 (exit $ac_status); } && break
9102 done
9103 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
9104 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
9105 am__untar="$_am_tar -xf -"
9106 ;;
9107 plaintar)
9108 # Must skip GNU tar: if it does not support --format= it doesn't create
9109 # ustar tarball either.
9110 (tar --version) >/dev/null 2>&1 && continue
9111 am__tar='tar chf - "$$tardir"'
9112 am__tar_='tar chf - "$tardir"'
9113 am__untar='tar xf -'
9114 ;;
9115 pax)
9116 am__tar='pax -L -x ustar -w "$$tardir"'
9117 am__tar_='pax -L -x ustar -w "$tardir"'
9118 am__untar='pax -r'
9119 ;;
9120 cpio)
9121 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
9122 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
9123 am__untar='cpio -i -H ustar -d'
9124 ;;
9125 none)
9126 am__tar=false
9127 am__tar_=false
9128 am__untar=false
9129 ;;
9130 esac
9131
9132 # If the value was cached, stop now. We just wanted to have am__tar
9133 # and am__untar set.
9134 test -n "${am_cv_prog_tar_ustar}" && break
9135
9136 # tar/untar a dummy directory, and stop if the command works.
9137 rm -rf conftest.dir
9138 mkdir conftest.dir
9139 echo GrepMe > conftest.dir/file
9140 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
9141 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
9142 ac_status=$?
9143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9144 (exit $ac_status); }
9145 rm -rf conftest.dir
9146 if test -s conftest.tar; then
9147 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
9148 ($am__untar <conftest.tar) >&5 2>&5
9149 ac_status=$?
9150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9151 (exit $ac_status); }
9152 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
9153 (cat conftest.dir/file) >&5 2>&5
9154 ac_status=$?
9155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9156 (exit $ac_status); }
9157 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
9158 fi
9159 done
9160 rm -rf conftest.dir
9161
9162 if test ${am_cv_prog_tar_ustar+y}
9163 then :
9164 printf %s "(cached) " >&6
9165 else case e in #(
9166 e) am_cv_prog_tar_ustar=$_am_tool ;;
9167 esac
9168 fi
9169
9170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
9171 printf "%s\n" "$am_cv_prog_tar_ustar" >&6; }
9172
9173
9174
9175
9176
9177 # Variables for tags utilities; see am/tags.am
9178 if test -z "$CTAGS"; then
9179 CTAGS=ctags
9180 fi
9181
9182 if test -z "$ETAGS"; then
9183 ETAGS=etags
9184 fi
9185
9186 if test -z "$CSCOPE"; then
9187 CSCOPE=cscope
9188 fi
9189
9190
9191
9192
9193
9194
9195
9196
9197 # am_maintainer_mode
9198
9199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
9200 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
9201 # Check whether --enable-maintainer-mode was given.
9202 if test ${enable_maintainer_mode+y}
9203 then :
9204 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
9205 else case e in #(
9206 e) USE_MAINTAINER_MODE=no ;;
9207 esac
9208 fi
9209
9210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
9211 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
9212 if test $USE_MAINTAINER_MODE = yes; then
9213 MAINTAINER_MODE_TRUE=
9214 MAINTAINER_MODE_FALSE='#'
9215 else
9216 MAINTAINER_MODE_TRUE='#'
9217 MAINTAINER_MODE_FALSE=
9218 fi
9219
9220 MAINT=$MAINTAINER_MODE_TRUE
9221
9222
9223
9224 # See comments in kpse-setup.m4 about system extensions.
9225
9226
9227 # Check whether prototypes work.
9228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts prototypes" >&5
9229 printf %s "checking whether the compiler accepts prototypes... " >&6; }
9230 if test ${kb_cv_c_prototypes+y}
9231 then :
9232 printf %s "(cached) " >&6
9233 else case e in #(
9234 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9235 /* end confdefs.h. */
9236 #include <stdarg.h>
9237 int
9238 main (void)
9239 {
9240 extern void foo(int i,...);
9241 ;
9242 return 0;
9243 }
9244 _ACEOF
9245 if ac_fn_c_try_link "$LINENO"
9246 then :
9247 kb_cv_c_prototypes=yes
9248 else case e in #(
9249 e) kb_cv_c_prototypes=no ;;
9250 esac
9251 fi
9252 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9253 conftest$ac_exeext conftest.$ac_ext ;;
9254 esac
9255 fi
9256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kb_cv_c_prototypes" >&5
9257 printf "%s\n" "$kb_cv_c_prototypes" >&6; }
9258 if test "x$kb_cv_c_prototypes" = xno; then
9259 as_fn_error $? "Sorry, your compiler does not understand prototypes." "$LINENO" 5
9260 fi
9261
9262 # kpse_compiler_warnings options.
9263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking what warning flags to pass to the C compiler" >&5
9264 printf %s "checking what warning flags to pass to the C compiler... " >&6; }
9265 if test ${kpse_cv_warning_cflags+y}
9266 then :
9267 printf %s "(cached) " >&6
9268 else case e in #(
9269 e) if test "x$GCC" = xyes; then
9270 kpse_cv_warning_cflags=
9271 if test "x$enable_compiler_warnings" != xno; then
9272 kpse_cv_warning_cflags="-Wimplicit -Wreturn-type"
9273 case `$CC -dumpversion` in #(
9274 3.4.* | 4.* | 5.*) :
9275 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wdeclaration-after-statement" ;; #(
9276 *) :
9277 ;;
9278 esac
9279 case `$CC -dumpversion` in #(
9280 3.[234].* | 4.* | 5.*) :
9281 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wno-unknown-pragmas" ;; #(
9282 *) :
9283 ;;
9284 esac
9285 if test "x$enable_compiler_warnings" != xmin; then
9286 kpse_cv_warning_cflags="-Wall -Wunused $kpse_cv_warning_cflags"
9287 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wmissing-prototypes -Wmissing-declarations"
9288 if test "x$enable_compiler_warnings" != xyes; then
9289 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wparentheses -Wswitch -Wtrigraphs -Wpointer-arith"
9290 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wcast-qual -Wcast-align -Wwrite-strings"
9291 case `$CC -dumpversion` in #(
9292 3.4.* | 4.* | 5.*) :
9293 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wold-style-definition" ;; #(
9294 *) :
9295 ;;
9296 esac
9297 if test "x$enable_compiler_warnings" != xmax; then
9298 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wshadow"
9299 fi
9300 fi
9301 fi
9302 fi
9303 elif test "x$enable_compiler_warnings" = xno; then
9304 kpse_cv_warning_cflags=
9305 else
9306 kpse_cv_warning_cflags= # FIXME: warning flags for non-GNU C compilers
9307 fi ;;
9308 esac
9309 fi
9310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_warning_cflags" >&5
9311 printf "%s\n" "$kpse_cv_warning_cflags" >&6; }
9312 WARNING_CFLAGS=$kpse_cv_warning_cflags
9313
9314
9315
9316
9317
9318
9319
9320 # end of kpse_basic macro.
9321 echo 'tldbg:KPSE_BASIC done (pkg=dviout-util, amopt=)' >&5
9322
9323 # am_prog_ar must be called before lt_init.
9324
9325 if test -n "$ac_tool_prefix"; then
9326 for ac_prog in ar lib "link -lib"
9327 do
9328 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9329 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9331 printf %s "checking for $ac_word... " >&6; }
9332 if test ${ac_cv_prog_AR+y}
9333 then :
9334 printf %s "(cached) " >&6
9335 else case e in #(
9336 e) if test -n "$AR"; then
9337 ac_cv_prog_AR="$AR" # Let the user override the test.
9338 else
9339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9340 for as_dir in $PATH
9341 do
9342 IFS=$as_save_IFS
9343 case $as_dir in #(((
9344 '') as_dir=./ ;;
9345 */) ;;
9346 *) as_dir=$as_dir/ ;;
9347 esac
9348 for ac_exec_ext in '' $ac_executable_extensions; do
9349 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9350 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
9351 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9352 break 2
9353 fi
9354 done
9355 done
9356 IFS=$as_save_IFS
9357
9358 fi ;;
9359 esac
9360 fi
9361 AR=$ac_cv_prog_AR
9362 if test -n "$AR"; then
9363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9364 printf "%s\n" "$AR" >&6; }
9365 else
9366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9367 printf "%s\n" "no" >&6; }
9368 fi
9369
9370
9371 test -n "$AR" && break
9372 done
9373 fi
9374 if test -z "$AR"; then
9375 ac_ct_AR=$AR
9376 for ac_prog in ar lib "link -lib"
9377 do
9378 # Extract the first word of "$ac_prog", so it can be a program name with args.
9379 set dummy $ac_prog; ac_word=$2
9380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9381 printf %s "checking for $ac_word... " >&6; }
9382 if test ${ac_cv_prog_ac_ct_AR+y}
9383 then :
9384 printf %s "(cached) " >&6
9385 else case e in #(
9386 e) if test -n "$ac_ct_AR"; then
9387 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9388 else
9389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9390 for as_dir in $PATH
9391 do
9392 IFS=$as_save_IFS
9393 case $as_dir in #(((
9394 '') as_dir=./ ;;
9395 */) ;;
9396 *) as_dir=$as_dir/ ;;
9397 esac
9398 for ac_exec_ext in '' $ac_executable_extensions; do
9399 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9400 ac_cv_prog_ac_ct_AR="$ac_prog"
9401 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9402 break 2
9403 fi
9404 done
9405 done
9406 IFS=$as_save_IFS
9407
9408 fi ;;
9409 esac
9410 fi
9411 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9412 if test -n "$ac_ct_AR"; then
9413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9414 printf "%s\n" "$ac_ct_AR" >&6; }
9415 else
9416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9417 printf "%s\n" "no" >&6; }
9418 fi
9419
9420
9421 test -n "$ac_ct_AR" && break
9422 done
9423
9424 if test "x$ac_ct_AR" = x; then
9425 AR="false"
9426 else
9427 case $cross_compiling:$ac_tool_warned in
9428 yes:)
9429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9430 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9431 ac_tool_warned=yes ;;
9432 esac
9433 AR=$ac_ct_AR
9434 fi
9435 fi
9436
9437 : ${AR=ar}
9438 : ${ARFLAGS=cr}
9439
9440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
9441 printf %s "checking the archiver ($AR) interface... " >&6; }
9442 if test ${am_cv_ar_interface+y}
9443 then :
9444 printf %s "(cached) " >&6
9445 else case e in #(
9446 e) ac_ext=c
9447 ac_cpp='$CPP $CPPFLAGS'
9448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9451
9452 am_cv_ar_interface=ar
9453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9454 /* end confdefs.h. */
9455 int some_variable = 0;
9456 _ACEOF
9457 if ac_fn_c_try_compile "$LINENO"
9458 then :
9459 am_ar_try='$AR $ARFLAGS libconftest.a conftest.$ac_objext >&5'
9460 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
9461 (eval $am_ar_try) 2>&5
9462 ac_status=$?
9463 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9464 test $ac_status = 0; }
9465 if test "$ac_status" -eq 0; then
9466 am_cv_ar_interface=ar
9467 else
9468 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
9469 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
9470 (eval $am_ar_try) 2>&5
9471 ac_status=$?
9472 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9473 test $ac_status = 0; }
9474 if test "$ac_status" -eq 0; then
9475 am_cv_ar_interface=lib
9476 else
9477 am_cv_ar_interface=unknown
9478 fi
9479 fi
9480 rm -f conftest.lib libconftest.a
9481
9482 fi
9483 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9484 ac_ext=c
9485 ac_cpp='$CPP $CPPFLAGS'
9486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9489 ;;
9490 esac
9491 fi
9492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
9493 printf "%s\n" "$am_cv_ar_interface" >&6; }
9494
9495 case $am_cv_ar_interface in
9496 ar)
9497 ;;
9498 lib)
9499 # Microsoft lib, so override with the ar-lib wrapper script.
9500 # FIXME: It is wrong to rewrite AR.
9501 # But if we don't then we get into trouble of one sort or another.
9502 # A longer-term fix would be to have automake use am__AR in this case,
9503 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
9504 # similar.
9505 AR="$am_aux_dir/ar-lib $AR"
9506 ;;
9507 unknown)
9508 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
9509 ;;
9510 esac
9511
9512 # (end am_prog_ar)
9513 # starting lt_prereq + lt_init.
9514
9515
9516
9517
9518
9519 # Set options
9520 enable_win32_dll=yes
9521
9522 case $host in
9523 *-*-cygwin* | *-*-mingw* | *-*-windows* | *-*-pw32* | *-*-cegcc*)
9524 if test -n "$ac_tool_prefix"; then
9525 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
9526 set dummy ${ac_tool_prefix}as; ac_word=$2
9527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9528 printf %s "checking for $ac_word... " >&6; }
9529 if test ${ac_cv_prog_AS+y}
9530 then :
9531 printf %s "(cached) " >&6
9532 else case e in #(
9533 e) if test -n "$AS"; then
9534 ac_cv_prog_AS="$AS" # Let the user override the test.
9535 else
9536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9537 for as_dir in $PATH
9538 do
9539 IFS=$as_save_IFS
9540 case $as_dir in #(((
9541 '') as_dir=./ ;;
9542 */) ;;
9543 *) as_dir=$as_dir/ ;;
9544 esac
9545 for ac_exec_ext in '' $ac_executable_extensions; do
9546 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9547 ac_cv_prog_AS="${ac_tool_prefix}as"
9548 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9549 break 2
9550 fi
9551 done
9552 done
9553 IFS=$as_save_IFS
9554
9555 fi ;;
9556 esac
9557 fi
9558 AS=$ac_cv_prog_AS
9559 if test -n "$AS"; then
9560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
9561 printf "%s\n" "$AS" >&6; }
9562 else
9563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9564 printf "%s\n" "no" >&6; }
9565 fi
9566
9567
9568 fi
9569 if test -z "$ac_cv_prog_AS"; then
9570 ac_ct_AS=$AS
9571 # Extract the first word of "as", so it can be a program name with args.
9572 set dummy as; ac_word=$2
9573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9574 printf %s "checking for $ac_word... " >&6; }
9575 if test ${ac_cv_prog_ac_ct_AS+y}
9576 then :
9577 printf %s "(cached) " >&6
9578 else case e in #(
9579 e) if test -n "$ac_ct_AS"; then
9580 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
9581 else
9582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9583 for as_dir in $PATH
9584 do
9585 IFS=$as_save_IFS
9586 case $as_dir in #(((
9587 '') as_dir=./ ;;
9588 */) ;;
9589 *) as_dir=$as_dir/ ;;
9590 esac
9591 for ac_exec_ext in '' $ac_executable_extensions; do
9592 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9593 ac_cv_prog_ac_ct_AS="as"
9594 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9595 break 2
9596 fi
9597 done
9598 done
9599 IFS=$as_save_IFS
9600
9601 fi ;;
9602 esac
9603 fi
9604 ac_ct_AS=$ac_cv_prog_ac_ct_AS
9605 if test -n "$ac_ct_AS"; then
9606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
9607 printf "%s\n" "$ac_ct_AS" >&6; }
9608 else
9609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9610 printf "%s\n" "no" >&6; }
9611 fi
9612
9613 if test "x$ac_ct_AS" = x; then
9614 AS="false"
9615 else
9616 case $cross_compiling:$ac_tool_warned in
9617 yes:)
9618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9619 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9620 ac_tool_warned=yes ;;
9621 esac
9622 AS=$ac_ct_AS
9623 fi
9624 else
9625 AS="$ac_cv_prog_AS"
9626 fi
9627
9628 if test -n "$ac_tool_prefix"; then
9629 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9630 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9632 printf %s "checking for $ac_word... " >&6; }
9633 if test ${ac_cv_prog_DLLTOOL+y}
9634 then :
9635 printf %s "(cached) " >&6
9636 else case e in #(
9637 e) if test -n "$DLLTOOL"; then
9638 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9639 else
9640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9641 for as_dir in $PATH
9642 do
9643 IFS=$as_save_IFS
9644 case $as_dir in #(((
9645 '') as_dir=./ ;;
9646 */) ;;
9647 *) as_dir=$as_dir/ ;;
9648 esac
9649 for ac_exec_ext in '' $ac_executable_extensions; do
9650 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9651 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9652 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9653 break 2
9654 fi
9655 done
9656 done
9657 IFS=$as_save_IFS
9658
9659 fi ;;
9660 esac
9661 fi
9662 DLLTOOL=$ac_cv_prog_DLLTOOL
9663 if test -n "$DLLTOOL"; then
9664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9665 printf "%s\n" "$DLLTOOL" >&6; }
9666 else
9667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9668 printf "%s\n" "no" >&6; }
9669 fi
9670
9671
9672 fi
9673 if test -z "$ac_cv_prog_DLLTOOL"; then
9674 ac_ct_DLLTOOL=$DLLTOOL
9675 # Extract the first word of "dlltool", so it can be a program name with args.
9676 set dummy dlltool; ac_word=$2
9677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9678 printf %s "checking for $ac_word... " >&6; }
9679 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
9680 then :
9681 printf %s "(cached) " >&6
9682 else case e in #(
9683 e) if test -n "$ac_ct_DLLTOOL"; then
9684 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9685 else
9686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9687 for as_dir in $PATH
9688 do
9689 IFS=$as_save_IFS
9690 case $as_dir in #(((
9691 '') as_dir=./ ;;
9692 */) ;;
9693 *) as_dir=$as_dir/ ;;
9694 esac
9695 for ac_exec_ext in '' $ac_executable_extensions; do
9696 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9697 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9698 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9699 break 2
9700 fi
9701 done
9702 done
9703 IFS=$as_save_IFS
9704
9705 fi ;;
9706 esac
9707 fi
9708 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9709 if test -n "$ac_ct_DLLTOOL"; then
9710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9711 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
9712 else
9713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9714 printf "%s\n" "no" >&6; }
9715 fi
9716
9717 if test "x$ac_ct_DLLTOOL" = x; then
9718 DLLTOOL="false"
9719 else
9720 case $cross_compiling:$ac_tool_warned in
9721 yes:)
9722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9723 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9724 ac_tool_warned=yes ;;
9725 esac
9726 DLLTOOL=$ac_ct_DLLTOOL
9727 fi
9728 else
9729 DLLTOOL="$ac_cv_prog_DLLTOOL"
9730 fi
9731
9732 if test -n "$ac_tool_prefix"; then
9733 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9734 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9736 printf %s "checking for $ac_word... " >&6; }
9737 if test ${ac_cv_prog_OBJDUMP+y}
9738 then :
9739 printf %s "(cached) " >&6
9740 else case e in #(
9741 e) if test -n "$OBJDUMP"; then
9742 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9743 else
9744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9745 for as_dir in $PATH
9746 do
9747 IFS=$as_save_IFS
9748 case $as_dir in #(((
9749 '') as_dir=./ ;;
9750 */) ;;
9751 *) as_dir=$as_dir/ ;;
9752 esac
9753 for ac_exec_ext in '' $ac_executable_extensions; do
9754 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9755 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9756 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9757 break 2
9758 fi
9759 done
9760 done
9761 IFS=$as_save_IFS
9762
9763 fi ;;
9764 esac
9765 fi
9766 OBJDUMP=$ac_cv_prog_OBJDUMP
9767 if test -n "$OBJDUMP"; then
9768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9769 printf "%s\n" "$OBJDUMP" >&6; }
9770 else
9771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9772 printf "%s\n" "no" >&6; }
9773 fi
9774
9775
9776 fi
9777 if test -z "$ac_cv_prog_OBJDUMP"; then
9778 ac_ct_OBJDUMP=$OBJDUMP
9779 # Extract the first word of "objdump", so it can be a program name with args.
9780 set dummy objdump; ac_word=$2
9781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9782 printf %s "checking for $ac_word... " >&6; }
9783 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
9784 then :
9785 printf %s "(cached) " >&6
9786 else case e in #(
9787 e) if test -n "$ac_ct_OBJDUMP"; then
9788 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9789 else
9790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9791 for as_dir in $PATH
9792 do
9793 IFS=$as_save_IFS
9794 case $as_dir in #(((
9795 '') as_dir=./ ;;
9796 */) ;;
9797 *) as_dir=$as_dir/ ;;
9798 esac
9799 for ac_exec_ext in '' $ac_executable_extensions; do
9800 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9801 ac_cv_prog_ac_ct_OBJDUMP="objdump"
9802 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9803 break 2
9804 fi
9805 done
9806 done
9807 IFS=$as_save_IFS
9808
9809 fi ;;
9810 esac
9811 fi
9812 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9813 if test -n "$ac_ct_OBJDUMP"; then
9814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9815 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
9816 else
9817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9818 printf "%s\n" "no" >&6; }
9819 fi
9820
9821 if test "x$ac_ct_OBJDUMP" = x; then
9822 OBJDUMP="false"
9823 else
9824 case $cross_compiling:$ac_tool_warned in
9825 yes:)
9826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9827 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9828 ac_tool_warned=yes ;;
9829 esac
9830 OBJDUMP=$ac_ct_OBJDUMP
9831 fi
9832 else
9833 OBJDUMP="$ac_cv_prog_OBJDUMP"
9834 fi
9835
9836 ;;
9837 esac
9838
9839 test -z "$AS" && AS=as
9840
9841
9842
9843
9844
9845 test -z "$DLLTOOL" && DLLTOOL=dlltool
9846
9847
9848
9849
9850
9851 test -z "$OBJDUMP" && OBJDUMP=objdump
9852
9853
9854
9855
9856
9857
9858
9859 enable_dlopen=no
9860
9861
9862
9863 # Check whether --enable-shared was given.
9864 if test ${enable_shared+y}
9865 then :
9866 enableval=$enable_shared; p=${PACKAGE-default}
9867 case $enableval in
9868 yes) enable_shared=yes ;;
9869 no) enable_shared=no ;;
9870 *)
9871 enable_shared=no
9872 # Look at the argument we got. We use all the common list separators.
9873 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9874 for pkg in $enableval; do
9875 IFS=$lt_save_ifs
9876 if test "X$pkg" = "X$p"; then
9877 enable_shared=yes
9878 fi
9879 done
9880 IFS=$lt_save_ifs
9881 ;;
9882 esac
9883 else case e in #(
9884 e) enable_shared=yes ;;
9885 esac
9886 fi
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896 # Check whether --enable-static was given.
9897 if test ${enable_static+y}
9898 then :
9899 enableval=$enable_static; p=${PACKAGE-default}
9900 case $enableval in
9901 yes) enable_static=yes ;;
9902 no) enable_static=no ;;
9903 *)
9904 enable_static=no
9905 # Look at the argument we got. We use all the common list separators.
9906 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9907 for pkg in $enableval; do
9908 IFS=$lt_save_ifs
9909 if test "X$pkg" = "X$p"; then
9910 enable_static=yes
9911 fi
9912 done
9913 IFS=$lt_save_ifs
9914 ;;
9915 esac
9916 else case e in #(
9917 e) enable_static=yes ;;
9918 esac
9919 fi
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929 # Check whether --enable-pic was given.
9930 if test ${enable_pic+y}
9931 then :
9932 enableval=$enable_pic; lt_p=${PACKAGE-default}
9933 case $enableval in
9934 yes|no) pic_mode=$enableval ;;
9935 *)
9936 pic_mode=default
9937 # Look at the argument we got. We use all the common list separators.
9938 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9939 for lt_pkg in $enableval; do
9940 IFS=$lt_save_ifs
9941 if test "X$lt_pkg" = "X$lt_p"; then
9942 pic_mode=yes
9943 fi
9944 done
9945 IFS=$lt_save_ifs
9946 ;;
9947 esac
9948 else case e in #(
9949 e) # Check whether --with-pic was given.
9950 if test ${with_pic+y}
9951 then :
9952 withval=$with_pic; lt_p=${PACKAGE-default}
9953 case $withval in
9954 yes|no) pic_mode=$withval ;;
9955 *)
9956 pic_mode=default
9957 # Look at the argument we got. We use all the common list separators.
9958 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9959 for lt_pkg in $withval; do
9960 IFS=$lt_save_ifs
9961 if test "X$lt_pkg" = "X$lt_p"; then
9962 pic_mode=yes
9963 fi
9964 done
9965 IFS=$lt_save_ifs
9966 ;;
9967 esac
9968 else case e in #(
9969 e) pic_mode=default ;;
9970 esac
9971 fi
9972
9973 ;;
9974 esac
9975 fi
9976
9977
9978
9979
9980
9981
9982
9983
9984 # Check whether --enable-fast-install was given.
9985 if test ${enable_fast_install+y}
9986 then :
9987 enableval=$enable_fast_install; p=${PACKAGE-default}
9988 case $enableval in
9989 yes) enable_fast_install=yes ;;
9990 no) enable_fast_install=no ;;
9991 *)
9992 enable_fast_install=no
9993 # Look at the argument we got. We use all the common list separators.
9994 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9995 for pkg in $enableval; do
9996 IFS=$lt_save_ifs
9997 if test "X$pkg" = "X$p"; then
9998 enable_fast_install=yes
9999 fi
10000 done
10001 IFS=$lt_save_ifs
10002 ;;
10003 esac
10004 else case e in #(
10005 e) enable_fast_install=yes ;;
10006 esac
10007 fi
10008
10009
10010
10011
10012
10013
10014
10015
10016 shared_archive_member_spec=
10017 case $host,$enable_shared in
10018 power*-*-aix[5-9]*,yes)
10019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
10020 printf %s "checking which variant of shared library versioning to provide... " >&6; }
10021 # Check whether --enable-aix-soname was given.
10022 if test ${enable_aix_soname+y}
10023 then :
10024 enableval=$enable_aix_soname; case $enableval in
10025 aix|svr4|both)
10026 ;;
10027 *)
10028 as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5
10029 ;;
10030 esac
10031 lt_cv_with_aix_soname=$enable_aix_soname
10032 else case e in #(
10033 e) # Check whether --with-aix-soname was given.
10034 if test ${with_aix_soname+y}
10035 then :
10036 withval=$with_aix_soname; case $withval in
10037 aix|svr4|both)
10038 ;;
10039 *)
10040 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
10041 ;;
10042 esac
10043 lt_cv_with_aix_soname=$with_aix_soname
10044 else case e in #(
10045 e) if test ${lt_cv_with_aix_soname+y}
10046 then :
10047 printf %s "(cached) " >&6
10048 else case e in #(
10049 e) lt_cv_with_aix_soname=aix ;;
10050 esac
10051 fi
10052 ;;
10053 esac
10054 fi
10055
10056 enable_aix_soname=$lt_cv_with_aix_soname ;;
10057 esac
10058 fi
10059
10060 with_aix_soname=$enable_aix_soname
10061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
10062 printf "%s\n" "$with_aix_soname" >&6; }
10063 if test aix != "$with_aix_soname"; then
10064 # For the AIX way of multilib, we name the shared archive member
10065 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10066 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10067 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10068 # the AIX toolchain works better with OBJECT_MODE set (default 32).
10069 if test 64 = "${OBJECT_MODE-32}"; then
10070 shared_archive_member_spec=shr_64
10071 else
10072 shared_archive_member_spec=shr
10073 fi
10074 fi
10075 ;;
10076 *)
10077 with_aix_soname=aix
10078 ;;
10079 esac
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090 # This can be used to rebuild libtool when needed
10091 LIBTOOL_DEPS=$ltmain
10092
10093 # Always use our own libtool.
10094 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125 test -z "$LN_S" && LN_S="ln -s"
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140 if test -n "${ZSH_VERSION+set}"; then
10141 setopt NO_GLOB_SUBST
10142 fi
10143
10144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10145 printf %s "checking for objdir... " >&6; }
10146 if test ${lt_cv_objdir+y}
10147 then :
10148 printf %s "(cached) " >&6
10149 else case e in #(
10150 e) rm -f .libs 2>/dev/null
10151 mkdir .libs 2>/dev/null
10152 if test -d .libs; then
10153 lt_cv_objdir=.libs
10154 else
10155 # MS-DOS does not allow filenames that begin with a dot.
10156 lt_cv_objdir=_libs
10157 fi
10158 rmdir .libs 2>/dev/null ;;
10159 esac
10160 fi
10161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10162 printf "%s\n" "$lt_cv_objdir" >&6; }
10163 objdir=$lt_cv_objdir
10164
10165
10166
10167
10168
10169 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
10170
10171
10172
10173
10174 case $host_os in
10175 aix3*)
10176 # AIX sometimes has problems with the GCC collect2 program. For some
10177 # reason, if we set the COLLECT_NAMES environment variable, the problems
10178 # vanish in a puff of smoke.
10179 if test set != "${COLLECT_NAMES+set}"; then
10180 COLLECT_NAMES=
10181 export COLLECT_NAMES
10182 fi
10183 ;;
10184 esac
10185
10186 # Global variables:
10187 ofile=libtool
10188 can_build_shared=yes
10189
10190 # All known linkers require a '.a' archive for static linking (except MSVC and
10191 # ICC, which need '.lib').
10192 libext=a
10193
10194 with_gnu_ld=$lt_cv_prog_gnu_ld
10195
10196 old_CC=$CC
10197 old_CFLAGS=$CFLAGS
10198
10199 # Set sane defaults for various variables
10200 test -z "$CC" && CC=cc
10201 test -z "$LTCC" && LTCC=$CC
10202 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10203 test -z "$LD" && LD=ld
10204 test -z "$ac_objext" && ac_objext=o
10205
10206 func_cc_basename $compiler
10207 cc_basename=$func_cc_basename_result
10208
10209
10210 # Only perform the check for file, if the check method requires it
10211 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10212 case $deplibs_check_method in
10213 file_magic*)
10214 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10216 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
10217 if test ${lt_cv_path_MAGIC_CMD+y}
10218 then :
10219 printf %s "(cached) " >&6
10220 else case e in #(
10221 e) case $MAGIC_CMD in
10222 [\\/*] | ?:[\\/]*)
10223 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10224 ;;
10225 *)
10226 lt_save_MAGIC_CMD=$MAGIC_CMD
10227 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10228 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10229 for ac_dir in $ac_dummy; do
10230 IFS=$lt_save_ifs
10231 test -z "$ac_dir" && ac_dir=.
10232 if test -f "$ac_dir/${ac_tool_prefix}file"; then
10233 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10234 if test -n "$file_magic_test_file"; then
10235 case $deplibs_check_method in
10236 "file_magic "*)
10237 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10238 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10239 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10240 $EGREP "$file_magic_regex" > /dev/null; then
10241 :
10242 else
10243 cat <<_LT_EOF 1>&2
10244
10245 *** Warning: the command libtool uses to detect shared libraries,
10246 *** $file_magic_cmd, produces output that libtool cannot recognize.
10247 *** The result is that libtool may fail to recognize shared libraries
10248 *** as such. This will affect the creation of libtool libraries that
10249 *** depend on shared libraries, but programs linked with such libtool
10250 *** libraries will work regardless of this problem. Nevertheless, you
10251 *** may want to report the problem to your system manager and/or to
10252 *** [email protected]
10253
10254 _LT_EOF
10255 fi ;;
10256 esac
10257 fi
10258 break
10259 fi
10260 done
10261 IFS=$lt_save_ifs
10262 MAGIC_CMD=$lt_save_MAGIC_CMD
10263 ;;
10264 esac ;;
10265 esac
10266 fi
10267
10268 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10269 if test -n "$MAGIC_CMD"; then
10270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10271 printf "%s\n" "$MAGIC_CMD" >&6; }
10272 else
10273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10274 printf "%s\n" "no" >&6; }
10275 fi
10276
10277
10278
10279
10280
10281 if test -z "$lt_cv_path_MAGIC_CMD"; then
10282 if test -n "$ac_tool_prefix"; then
10283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10284 printf %s "checking for file... " >&6; }
10285 if test ${lt_cv_path_MAGIC_CMD+y}
10286 then :
10287 printf %s "(cached) " >&6
10288 else case e in #(
10289 e) case $MAGIC_CMD in
10290 [\\/*] | ?:[\\/]*)
10291 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10292 ;;
10293 *)
10294 lt_save_MAGIC_CMD=$MAGIC_CMD
10295 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10296 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10297 for ac_dir in $ac_dummy; do
10298 IFS=$lt_save_ifs
10299 test -z "$ac_dir" && ac_dir=.
10300 if test -f "$ac_dir/file"; then
10301 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10302 if test -n "$file_magic_test_file"; then
10303 case $deplibs_check_method in
10304 "file_magic "*)
10305 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10306 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10307 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10308 $EGREP "$file_magic_regex" > /dev/null; then
10309 :
10310 else
10311 cat <<_LT_EOF 1>&2
10312
10313 *** Warning: the command libtool uses to detect shared libraries,
10314 *** $file_magic_cmd, produces output that libtool cannot recognize.
10315 *** The result is that libtool may fail to recognize shared libraries
10316 *** as such. This will affect the creation of libtool libraries that
10317 *** depend on shared libraries, but programs linked with such libtool
10318 *** libraries will work regardless of this problem. Nevertheless, you
10319 *** may want to report the problem to your system manager and/or to
10320 *** [email protected]
10321
10322 _LT_EOF
10323 fi ;;
10324 esac
10325 fi
10326 break
10327 fi
10328 done
10329 IFS=$lt_save_ifs
10330 MAGIC_CMD=$lt_save_MAGIC_CMD
10331 ;;
10332 esac ;;
10333 esac
10334 fi
10335
10336 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10337 if test -n "$MAGIC_CMD"; then
10338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10339 printf "%s\n" "$MAGIC_CMD" >&6; }
10340 else
10341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10342 printf "%s\n" "no" >&6; }
10343 fi
10344
10345
10346 else
10347 MAGIC_CMD=:
10348 fi
10349 fi
10350
10351 fi
10352 ;;
10353 esac
10354
10355 # Use C for the default configuration in the libtool script
10356
10357 lt_save_CC=$CC
10358 ac_ext=c
10359 ac_cpp='$CPP $CPPFLAGS'
10360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10363
10364
10365 # Source file extension for C test sources.
10366 ac_ext=c
10367
10368 # Object file extension for compiled C test sources.
10369 objext=o
10370 objext=$objext
10371
10372 # Code to be used in simple compile tests
10373 lt_simple_compile_test_code="int some_variable = 0;"
10374
10375 # Code to be used in simple link tests
10376 lt_simple_link_test_code='int main(void){return(0);}'
10377
10378
10379
10380
10381
10382
10383
10384 # If no C compiler was specified, use CC.
10385 LTCC=${LTCC-"$CC"}
10386
10387 # If no C compiler flags were specified, use CFLAGS.
10388 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10389
10390 # Allow CC to be a program name with arguments.
10391 compiler=$CC
10392
10393 # Save the default compiler, since it gets overwritten when the other
10394 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10395 compiler_DEFAULT=$CC
10396
10397 # save warnings/boilerplate of simple test code
10398 ac_outfile=conftest.$ac_objext
10399 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10400 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10401 _lt_compiler_boilerplate=`cat conftest.err`
10402 $RM conftest*
10403
10404 ac_outfile=conftest.$ac_objext
10405 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10406 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10407 _lt_linker_boilerplate=`cat conftest.err`
10408 $RM -r conftest*
10409
10410
10411 ## CAVEAT EMPTOR:
10412 ## There is no encapsulation within the following macros, do not change
10413 ## the running order or otherwise move them around unless you know exactly
10414 ## what you are doing...
10415 if test -n "$compiler"; then
10416
10417 lt_prog_compiler_no_builtin_flag=
10418
10419 if test yes = "$GCC"; then
10420 case $cc_basename in
10421 nvcc*)
10422 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10423 *)
10424 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10425 esac
10426
10427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10428 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10429 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
10430 then :
10431 printf %s "(cached) " >&6
10432 else case e in #(
10433 e) lt_cv_prog_compiler_rtti_exceptions=no
10434 ac_outfile=conftest.$ac_objext
10435 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10436 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
10437 # Insert the option either (1) after the last *FLAGS variable, or
10438 # (2) before a word containing "conftest.", or (3) at the end.
10439 # Note that $ac_compile itself does not contain backslashes and begins
10440 # with a dollar sign (not a hyphen), so the echo should work correctly.
10441 # The option is referenced via a variable to avoid confusing sed.
10442 lt_compile=`echo "$ac_compile" | $SED \
10443 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10444 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10445 -e 's:$: $lt_compiler_flag:'`
10446 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10447 (eval "$lt_compile" 2>conftest.err)
10448 ac_status=$?
10449 cat conftest.err >&5
10450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10451 if (exit $ac_status) && test -s "$ac_outfile"; then
10452 # The compiler can only warn and ignore the option if not recognized
10453 # So say no if there are warnings other than the usual output.
10454 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10455 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10456 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10457 lt_cv_prog_compiler_rtti_exceptions=yes
10458 fi
10459 fi
10460 $RM conftest*
10461 ;;
10462 esac
10463 fi
10464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10465 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10466
10467 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10468 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10469 else
10470 :
10471 fi
10472
10473 fi
10474
10475
10476
10477
10478
10479
10480 lt_prog_compiler_wl=
10481 lt_prog_compiler_pic=
10482 lt_prog_compiler_static=
10483
10484
10485 if test yes = "$GCC"; then
10486 lt_prog_compiler_wl='-Wl,'
10487 lt_prog_compiler_static='-static'
10488
10489 case $host_os in
10490 aix*)
10491 # All AIX code is PIC.
10492 if test ia64 = "$host_cpu"; then
10493 # AIX 5 now supports IA64 processor
10494 lt_prog_compiler_static='-Bstatic'
10495 fi
10496 lt_prog_compiler_pic='-fPIC'
10497 ;;
10498
10499 amigaos*)
10500 case $host_cpu in
10501 powerpc)
10502 # see comment about AmigaOS4 .so support
10503 lt_prog_compiler_pic='-fPIC'
10504 ;;
10505 m68k)
10506 # FIXME: we need at least 68020 code to build shared libraries, but
10507 # adding the '-m68020' flag to GCC prevents building anything better,
10508 # like '-m68040'.
10509 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10510 ;;
10511 esac
10512 ;;
10513
10514 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10515 # PIC is the default for these OSes.
10516 ;;
10517
10518 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
10519 # This hack is so that the source file can tell whether it is being
10520 # built for inclusion in a dll (and should export symbols for example).
10521 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10522 # (--disable-auto-import) libraries
10523 lt_prog_compiler_pic='-DDLL_EXPORT'
10524 case $host_os in
10525 os2*)
10526 lt_prog_compiler_static='$wl-static'
10527 ;;
10528 esac
10529 ;;
10530
10531 darwin* | rhapsody*)
10532 # PIC is the default on this platform
10533 # Common symbols not allowed in MH_DYLIB files
10534 lt_prog_compiler_pic='-fno-common'
10535 ;;
10536
10537 haiku*)
10538 # PIC is the default for Haiku.
10539 # The "-static" flag exists, but is broken.
10540 lt_prog_compiler_static=
10541 ;;
10542
10543 hpux*)
10544 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10545 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10546 # sets the default TLS model and affects inlining.
10547 case $host_cpu in
10548 hppa*64*)
10549 # +Z the default
10550 ;;
10551 *)
10552 lt_prog_compiler_pic='-fPIC'
10553 ;;
10554 esac
10555 ;;
10556
10557 interix[3-9]*)
10558 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10559 # Instead, we relocate shared libraries at runtime.
10560 ;;
10561
10562 msdosdjgpp*)
10563 # Just because we use GCC doesn't mean we suddenly get shared libraries
10564 # on systems that don't support them.
10565 lt_prog_compiler_can_build_shared=no
10566 enable_shared=no
10567 ;;
10568
10569 *nto* | *qnx*)
10570 # QNX uses GNU C++, but need to define -shared option too, otherwise
10571 # it will coredump.
10572 lt_prog_compiler_pic='-fPIC -shared'
10573 ;;
10574
10575 sysv4*MP*)
10576 if test -d /usr/nec; then
10577 lt_prog_compiler_pic=-Kconform_pic
10578 fi
10579 ;;
10580
10581 *)
10582 lt_prog_compiler_pic='-fPIC'
10583 ;;
10584 esac
10585
10586 case $cc_basename in
10587 nvcc*) # Cuda Compiler Driver 2.2
10588 lt_prog_compiler_wl='-Xlinker '
10589 if test -n "$lt_prog_compiler_pic"; then
10590 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10591 fi
10592 ;;
10593 esac
10594 else
10595 # PORTME Check for flag to pass linker flags through the system compiler.
10596 case $host_os in
10597 aix*)
10598 lt_prog_compiler_wl='-Wl,'
10599 if test ia64 = "$host_cpu"; then
10600 # AIX 5 now supports IA64 processor
10601 lt_prog_compiler_static='-Bstatic'
10602 else
10603 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10604 fi
10605 ;;
10606
10607 darwin* | rhapsody*)
10608 # PIC is the default on this platform
10609 # Common symbols not allowed in MH_DYLIB files
10610 lt_prog_compiler_pic='-fno-common'
10611 case $cc_basename in
10612 nagfor*)
10613 # NAG Fortran compiler
10614 lt_prog_compiler_wl='-Wl,-Wl,,'
10615 lt_prog_compiler_pic='-PIC'
10616 lt_prog_compiler_static='-Bstatic'
10617 ;;
10618 esac
10619 ;;
10620
10621 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
10622 # This hack is so that the source file can tell whether it is being
10623 # built for inclusion in a dll (and should export symbols for example).
10624 lt_prog_compiler_pic='-DDLL_EXPORT'
10625 case $host_os in
10626 os2*)
10627 lt_prog_compiler_static='$wl-static'
10628 ;;
10629 esac
10630 ;;
10631
10632 hpux9* | hpux10* | hpux11*)
10633 lt_prog_compiler_wl='-Wl,'
10634 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10635 # not for PA HP-UX.
10636 case $host_cpu in
10637 hppa*64*|ia64*)
10638 # +Z the default
10639 ;;
10640 *)
10641 lt_prog_compiler_pic='+Z'
10642 ;;
10643 esac
10644 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10645 lt_prog_compiler_static='$wl-a ${wl}archive'
10646 ;;
10647
10648 irix5* | irix6* | nonstopux*)
10649 lt_prog_compiler_wl='-Wl,'
10650 # PIC (with -KPIC) is the default.
10651 lt_prog_compiler_static='-non_shared'
10652 ;;
10653
10654 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10655 case $cc_basename in
10656 # old Intel for x86_64, which still supported -KPIC.
10657 ecc*)
10658 lt_prog_compiler_wl='-Wl,'
10659 lt_prog_compiler_pic='-KPIC'
10660 lt_prog_compiler_static='-static'
10661 ;;
10662 *flang* | ftn | f18* | f95*)
10663 # Flang compiler.
10664 lt_prog_compiler_wl='-Wl,'
10665 lt_prog_compiler_pic='-fPIC'
10666 lt_prog_compiler_static='-static'
10667 ;;
10668 # icc used to be incompatible with GCC.
10669 # ICC 10 doesn't accept -KPIC any more.
10670 icc* | ifort*)
10671 lt_prog_compiler_wl='-Wl,'
10672 lt_prog_compiler_pic='-fPIC'
10673 lt_prog_compiler_static='-static'
10674 ;;
10675 # Lahey Fortran 8.1.
10676 lf95*)
10677 lt_prog_compiler_wl='-Wl,'
10678 lt_prog_compiler_pic='--shared'
10679 lt_prog_compiler_static='--static'
10680 ;;
10681 nagfor*)
10682 # NAG Fortran compiler
10683 lt_prog_compiler_wl='-Wl,-Wl,,'
10684 lt_prog_compiler_pic='-PIC'
10685 lt_prog_compiler_static='-Bstatic'
10686 ;;
10687 tcc*)
10688 # Fabrice Bellard et al's Tiny C Compiler
10689 lt_prog_compiler_wl='-Wl,'
10690 lt_prog_compiler_pic='-fPIC'
10691 lt_prog_compiler_static='-static'
10692 ;;
10693 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10694 # Portland Group compilers (*not* the Pentium gcc compiler,
10695 # which looks to be a dead project)
10696 lt_prog_compiler_wl='-Wl,'
10697 lt_prog_compiler_pic='-fpic'
10698 lt_prog_compiler_static='-Bstatic'
10699 ;;
10700 ccc*)
10701 lt_prog_compiler_wl='-Wl,'
10702 # All Alpha code is PIC.
10703 lt_prog_compiler_static='-non_shared'
10704 ;;
10705 xl* | bgxl* | bgf* | mpixl*)
10706 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10707 lt_prog_compiler_wl='-Wl,'
10708 lt_prog_compiler_pic='-qpic'
10709 lt_prog_compiler_static='-qstaticlink'
10710 ;;
10711 *)
10712 case `$CC -V 2>&1 | $SED 5q` in
10713 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10714 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10715 lt_prog_compiler_pic='-KPIC'
10716 lt_prog_compiler_static='-Bstatic'
10717 lt_prog_compiler_wl=''
10718 ;;
10719 *Sun\ F* | *Sun*Fortran*)
10720 lt_prog_compiler_pic='-KPIC'
10721 lt_prog_compiler_static='-Bstatic'
10722 lt_prog_compiler_wl='-Qoption ld '
10723 ;;
10724 *Sun\ C*)
10725 # Sun C 5.9
10726 lt_prog_compiler_pic='-KPIC'
10727 lt_prog_compiler_static='-Bstatic'
10728 lt_prog_compiler_wl='-Wl,'
10729 ;;
10730 *Intel*\ [CF]*Compiler*)
10731 lt_prog_compiler_wl='-Wl,'
10732 lt_prog_compiler_pic='-fPIC'
10733 lt_prog_compiler_static='-static'
10734 ;;
10735 *Portland\ Group*)
10736 lt_prog_compiler_wl='-Wl,'
10737 lt_prog_compiler_pic='-fpic'
10738 lt_prog_compiler_static='-Bstatic'
10739 ;;
10740 esac
10741 ;;
10742 esac
10743 ;;
10744
10745 newsos6)
10746 lt_prog_compiler_pic='-KPIC'
10747 lt_prog_compiler_static='-Bstatic'
10748 ;;
10749
10750 *-mlibc)
10751 lt_prog_compiler_wl='-Wl,'
10752 lt_prog_compiler_pic='-fPIC'
10753 lt_prog_compiler_static='-static'
10754 ;;
10755
10756 *nto* | *qnx*)
10757 # QNX uses GNU C++, but need to define -shared option too, otherwise
10758 # it will coredump.
10759 lt_prog_compiler_pic='-fPIC -shared'
10760 ;;
10761
10762 osf3* | osf4* | osf5*)
10763 lt_prog_compiler_wl='-Wl,'
10764 # All OSF/1 code is PIC.
10765 lt_prog_compiler_static='-non_shared'
10766 ;;
10767
10768 rdos*)
10769 lt_prog_compiler_static='-non_shared'
10770 ;;
10771
10772 serenity*)
10773 ;;
10774
10775 solaris*)
10776 lt_prog_compiler_pic='-KPIC'
10777 lt_prog_compiler_static='-Bstatic'
10778 case $cc_basename in
10779 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10780 lt_prog_compiler_wl='-Qoption ld ';;
10781 *)
10782 lt_prog_compiler_wl='-Wl,';;
10783 esac
10784 ;;
10785
10786 sunos4*)
10787 lt_prog_compiler_wl='-Qoption ld '
10788 lt_prog_compiler_pic='-PIC'
10789 lt_prog_compiler_static='-Bstatic'
10790 ;;
10791
10792 sysv4 | sysv4.2uw2* | sysv4.3*)
10793 lt_prog_compiler_wl='-Wl,'
10794 lt_prog_compiler_pic='-KPIC'
10795 lt_prog_compiler_static='-Bstatic'
10796 ;;
10797
10798 sysv4*MP*)
10799 if test -d /usr/nec; then
10800 lt_prog_compiler_pic='-Kconform_pic'
10801 lt_prog_compiler_static='-Bstatic'
10802 fi
10803 ;;
10804
10805 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10806 lt_prog_compiler_wl='-Wl,'
10807 lt_prog_compiler_pic='-KPIC'
10808 lt_prog_compiler_static='-Bstatic'
10809 ;;
10810
10811 unicos*)
10812 lt_prog_compiler_wl='-Wl,'
10813 lt_prog_compiler_can_build_shared=no
10814 ;;
10815
10816 uts4*)
10817 lt_prog_compiler_pic='-pic'
10818 lt_prog_compiler_static='-Bstatic'
10819 ;;
10820
10821 *)
10822 lt_prog_compiler_can_build_shared=no
10823 ;;
10824 esac
10825 fi
10826
10827 case $host_os in
10828 # For platforms that do not support PIC, -DPIC is meaningless:
10829 *djgpp*)
10830 lt_prog_compiler_pic=
10831 ;;
10832 *)
10833 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10834 ;;
10835 esac
10836
10837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10838 printf %s "checking for $compiler option to produce PIC... " >&6; }
10839 if test ${lt_cv_prog_compiler_pic+y}
10840 then :
10841 printf %s "(cached) " >&6
10842 else case e in #(
10843 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
10844 esac
10845 fi
10846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10847 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
10848 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10849
10850 #
10851 # Check to make sure the PIC flag actually works.
10852 #
10853 if test -n "$lt_prog_compiler_pic"; then
10854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10855 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10856 if test ${lt_cv_prog_compiler_pic_works+y}
10857 then :
10858 printf %s "(cached) " >&6
10859 else case e in #(
10860 e) lt_cv_prog_compiler_pic_works=no
10861 ac_outfile=conftest.$ac_objext
10862 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10863 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10864 # Insert the option either (1) after the last *FLAGS variable, or
10865 # (2) before a word containing "conftest.", or (3) at the end.
10866 # Note that $ac_compile itself does not contain backslashes and begins
10867 # with a dollar sign (not a hyphen), so the echo should work correctly.
10868 # The option is referenced via a variable to avoid confusing sed.
10869 lt_compile=`echo "$ac_compile" | $SED \
10870 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10871 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10872 -e 's:$: $lt_compiler_flag:'`
10873 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10874 (eval "$lt_compile" 2>conftest.err)
10875 ac_status=$?
10876 cat conftest.err >&5
10877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10878 if (exit $ac_status) && test -s "$ac_outfile"; then
10879 # The compiler can only warn and ignore the option if not recognized
10880 # So say no if there are warnings other than the usual output.
10881 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10882 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10883 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10884 lt_cv_prog_compiler_pic_works=yes
10885 fi
10886 fi
10887 $RM conftest*
10888 ;;
10889 esac
10890 fi
10891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10892 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
10893
10894 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10895 case $lt_prog_compiler_pic in
10896 "" | " "*) ;;
10897 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10898 esac
10899 else
10900 lt_prog_compiler_pic=
10901 lt_prog_compiler_can_build_shared=no
10902 fi
10903
10904 fi
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916 #
10917 # Check to make sure the static flag actually works.
10918 #
10919 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10921 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10922 if test ${lt_cv_prog_compiler_static_works+y}
10923 then :
10924 printf %s "(cached) " >&6
10925 else case e in #(
10926 e) lt_cv_prog_compiler_static_works=no
10927 save_LDFLAGS=$LDFLAGS
10928 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10929 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10930 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10931 # The linker can only warn and ignore the option if not recognized
10932 # So say no if there are warnings
10933 if test -s conftest.err; then
10934 # Append any errors to the config.log.
10935 cat conftest.err 1>&5
10936 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10937 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10938 if diff conftest.exp conftest.er2 >/dev/null; then
10939 lt_cv_prog_compiler_static_works=yes
10940 fi
10941 else
10942 lt_cv_prog_compiler_static_works=yes
10943 fi
10944 fi
10945 $RM -r conftest*
10946 LDFLAGS=$save_LDFLAGS
10947 ;;
10948 esac
10949 fi
10950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10951 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
10952
10953 if test yes = "$lt_cv_prog_compiler_static_works"; then
10954 :
10955 else
10956 lt_prog_compiler_static=
10957 fi
10958
10959
10960
10961
10962
10963
10964
10965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10966 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10967 if test ${lt_cv_prog_compiler_c_o+y}
10968 then :
10969 printf %s "(cached) " >&6
10970 else case e in #(
10971 e) lt_cv_prog_compiler_c_o=no
10972 $RM -r conftest 2>/dev/null
10973 mkdir conftest
10974 cd conftest
10975 mkdir out
10976 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10977
10978 lt_compiler_flag="-o out/conftest2.$ac_objext"
10979 # Insert the option either (1) after the last *FLAGS variable, or
10980 # (2) before a word containing "conftest.", or (3) at the end.
10981 # Note that $ac_compile itself does not contain backslashes and begins
10982 # with a dollar sign (not a hyphen), so the echo should work correctly.
10983 lt_compile=`echo "$ac_compile" | $SED \
10984 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10985 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10986 -e 's:$: $lt_compiler_flag:'`
10987 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10988 (eval "$lt_compile" 2>out/conftest.err)
10989 ac_status=$?
10990 cat out/conftest.err >&5
10991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10992 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10993 then
10994 # The compiler can only warn and ignore the option if not recognized
10995 # So say no if there are warnings
10996 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10997 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10998 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10999 lt_cv_prog_compiler_c_o=yes
11000 fi
11001 fi
11002 chmod u+w . 2>&5
11003 $RM conftest*
11004 # SGI C++ compiler will create directory out/ii_files/ for
11005 # template instantiation
11006 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11007 $RM out/* && rmdir out
11008 cd ..
11009 $RM -r conftest
11010 $RM conftest*
11011 ;;
11012 esac
11013 fi
11014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11015 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
11016
11017
11018
11019
11020
11021
11022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11023 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11024 if test ${lt_cv_prog_compiler_c_o+y}
11025 then :
11026 printf %s "(cached) " >&6
11027 else case e in #(
11028 e) lt_cv_prog_compiler_c_o=no
11029 $RM -r conftest 2>/dev/null
11030 mkdir conftest
11031 cd conftest
11032 mkdir out
11033 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11034
11035 lt_compiler_flag="-o out/conftest2.$ac_objext"
11036 # Insert the option either (1) after the last *FLAGS variable, or
11037 # (2) before a word containing "conftest.", or (3) at the end.
11038 # Note that $ac_compile itself does not contain backslashes and begins
11039 # with a dollar sign (not a hyphen), so the echo should work correctly.
11040 lt_compile=`echo "$ac_compile" | $SED \
11041 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11042 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11043 -e 's:$: $lt_compiler_flag:'`
11044 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11045 (eval "$lt_compile" 2>out/conftest.err)
11046 ac_status=$?
11047 cat out/conftest.err >&5
11048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11050 then
11051 # The compiler can only warn and ignore the option if not recognized
11052 # So say no if there are warnings
11053 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11054 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11055 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11056 lt_cv_prog_compiler_c_o=yes
11057 fi
11058 fi
11059 chmod u+w . 2>&5
11060 $RM conftest*
11061 # SGI C++ compiler will create directory out/ii_files/ for
11062 # template instantiation
11063 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11064 $RM out/* && rmdir out
11065 cd ..
11066 $RM -r conftest
11067 $RM conftest*
11068 ;;
11069 esac
11070 fi
11071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11072 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
11073
11074
11075
11076
11077 hard_links=nottested
11078 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
11079 # do not overwrite the value of need_locks provided by the user
11080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11081 printf %s "checking if we can lock with hard links... " >&6; }
11082 hard_links=yes
11083 $RM conftest*
11084 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11085 touch conftest.a
11086 ln conftest.a conftest.b 2>&5 || hard_links=no
11087 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11089 printf "%s\n" "$hard_links" >&6; }
11090 if test no = "$hard_links"; then
11091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11092 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
11093 need_locks=warn
11094 fi
11095 else
11096 need_locks=no
11097 fi
11098
11099
11100
11101
11102
11103
11104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11105 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11106
11107 runpath_var=
11108 allow_undefined_flag=
11109 always_export_symbols=no
11110 archive_cmds=
11111 archive_expsym_cmds=
11112 compiler_needs_object=no
11113 enable_shared_with_static_runtimes=no
11114 export_dynamic_flag_spec=
11115 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11116 hardcode_automatic=no
11117 hardcode_direct=no
11118 hardcode_direct_absolute=no
11119 hardcode_libdir_flag_spec=
11120 hardcode_libdir_separator=
11121 hardcode_minus_L=no
11122 hardcode_shlibpath_var=unsupported
11123 inherit_rpath=no
11124 link_all_deplibs=unknown
11125 module_cmds=
11126 module_expsym_cmds=
11127 old_archive_from_new_cmds=
11128 old_archive_from_expsyms_cmds=
11129 thread_safe_flag_spec=
11130 whole_archive_flag_spec=
11131 # include_expsyms should be a list of space-separated symbols to be *always*
11132 # included in the symbol list
11133 include_expsyms=
11134 # exclude_expsyms can be an extended regexp of symbols to exclude
11135 # it will be wrapped by ' (' and ')$', so one must not match beginning or
11136 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11137 # as well as any symbol that contains 'd'.
11138 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11139 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11140 # platforms (ab)use it in PIC code, but their linkers get confused if
11141 # the symbol is explicitly referenced. Since portable code cannot
11142 # rely on this symbol name, it's probably fine to never include it in
11143 # preloaded symbol tables.
11144 # Exclude shared library initialization/finalization symbols.
11145 extract_expsyms_cmds=
11146
11147 case $host_os in
11148 cygwin* | mingw* | windows* | pw32* | cegcc*)
11149 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
11150 # When not using gcc, we currently assume that we are using
11151 # Microsoft Visual C++ or Intel C++ Compiler.
11152 if test yes != "$GCC"; then
11153 with_gnu_ld=no
11154 fi
11155 ;;
11156 interix*)
11157 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
11158 with_gnu_ld=yes
11159 ;;
11160 esac
11161
11162 ld_shlibs=yes
11163
11164 # On some targets, GNU ld is compatible enough with the native linker
11165 # that we're better off using the native interface for both.
11166 lt_use_gnu_ld_interface=no
11167 if test yes = "$with_gnu_ld"; then
11168 case $host_os in
11169 aix*)
11170 # The AIX port of GNU ld has always aspired to compatibility
11171 # with the native linker. However, as the warning in the GNU ld
11172 # block says, versions before 2.19.5* couldn't really create working
11173 # shared libraries, regardless of the interface used.
11174 case `$LD -v 2>&1` in
11175 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11176 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11177 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11178 *)
11179 lt_use_gnu_ld_interface=yes
11180 ;;
11181 esac
11182 ;;
11183 *)
11184 lt_use_gnu_ld_interface=yes
11185 ;;
11186 esac
11187 fi
11188
11189 if test yes = "$lt_use_gnu_ld_interface"; then
11190 # If archive_cmds runs LD, not CC, wlarc should be empty
11191 wlarc='$wl'
11192
11193 # Set some defaults for GNU ld with shared library support. These
11194 # are reset later if shared libraries are not supported. Putting them
11195 # here allows them to be overridden if necessary.
11196 runpath_var=LD_RUN_PATH
11197 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11198 export_dynamic_flag_spec='$wl--export-dynamic'
11199 # ancient GNU ld didn't support --whole-archive et. al.
11200 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11201 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11202 else
11203 whole_archive_flag_spec=
11204 fi
11205 supports_anon_versioning=no
11206 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
11207 *GNU\ gold*) supports_anon_versioning=yes ;;
11208 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11209 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11210 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11211 *\ 2.11.*) ;; # other 2.11 versions
11212 *) supports_anon_versioning=yes ;;
11213 esac
11214
11215 # See if GNU ld supports shared libraries.
11216 case $host_os in
11217 aix[3-9]*)
11218 # On AIX/PPC, the GNU linker is very broken
11219 if test ia64 != "$host_cpu"; then
11220 ld_shlibs=no
11221 cat <<_LT_EOF 1>&2
11222
11223 *** Warning: the GNU linker, at least up to release 2.19, is reported
11224 *** to be unable to reliably create shared libraries on AIX.
11225 *** Therefore, libtool is disabling shared libraries support. If you
11226 *** really care for shared libraries, you may want to install binutils
11227 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11228 *** You will then need to restart the configuration process.
11229
11230 _LT_EOF
11231 fi
11232 ;;
11233
11234 amigaos*)
11235 case $host_cpu in
11236 powerpc)
11237 # see comment about AmigaOS4 .so support
11238 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11239 archive_expsym_cmds=''
11240 ;;
11241 m68k)
11242 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
11243 hardcode_libdir_flag_spec='-L$libdir'
11244 hardcode_minus_L=yes
11245 ;;
11246 esac
11247 ;;
11248
11249 beos*)
11250 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11251 allow_undefined_flag=unsupported
11252 # Joseph Beckenbach <[email protected]> says some releases of gcc
11253 # support --undefined. This deserves some investigation. FIXME
11254 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11255 else
11256 ld_shlibs=no
11257 fi
11258 ;;
11259
11260 cygwin* | mingw* | windows* | pw32* | cegcc*)
11261 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11262 # as there is no search path for DLLs.
11263 hardcode_libdir_flag_spec='-L$libdir'
11264 export_dynamic_flag_spec='$wl--export-all-symbols'
11265 allow_undefined_flag=unsupported
11266 always_export_symbols=no
11267 enable_shared_with_static_runtimes=yes
11268 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
11269 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11270 file_list_spec='@'
11271
11272 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11273 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11274 # If the export-symbols file already is a .def file, use it as
11275 # is; otherwise, prepend EXPORTS...
11276 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11277 cp $export_symbols $output_objdir/$soname.def;
11278 else
11279 echo EXPORTS > $output_objdir/$soname.def;
11280 cat $export_symbols >> $output_objdir/$soname.def;
11281 fi~
11282 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11283 else
11284 ld_shlibs=no
11285 fi
11286 ;;
11287
11288 haiku*)
11289 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11290 link_all_deplibs=no
11291 ;;
11292
11293 os2*)
11294 hardcode_libdir_flag_spec='-L$libdir'
11295 hardcode_minus_L=yes
11296 allow_undefined_flag=unsupported
11297 shrext_cmds=.dll
11298 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11299 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11300 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11301 $ECHO EXPORTS >> $output_objdir/$libname.def~
11302 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11303 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11304 emximp -o $lib $output_objdir/$libname.def'
11305 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11306 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11307 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11308 $ECHO EXPORTS >> $output_objdir/$libname.def~
11309 prefix_cmds="$SED"~
11310 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11311 prefix_cmds="$prefix_cmds -e 1d";
11312 fi~
11313 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11314 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11315 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11316 emximp -o $lib $output_objdir/$libname.def'
11317 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11318 enable_shared_with_static_runtimes=yes
11319 file_list_spec='@'
11320 ;;
11321
11322 interix[3-9]*)
11323 hardcode_direct=no
11324 hardcode_shlibpath_var=no
11325 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11326 export_dynamic_flag_spec='$wl-E'
11327 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11328 # Instead, shared libraries are loaded at an image base (0x10000000 by
11329 # default) and relocated if they conflict, which is a slow very memory
11330 # consuming and fragmenting process. To avoid this, we pick a random,
11331 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11332 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11333 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11334 archive_expsym_cmds='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11335 ;;
11336
11337 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11338 tmp_diet=no
11339 if test linux-dietlibc = "$host_os"; then
11340 case $cc_basename in
11341 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11342 esac
11343 fi
11344 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11345 && test no = "$tmp_diet"
11346 then
11347 tmp_addflag=' $pic_flag'
11348 tmp_sharedflag='-shared'
11349 case $cc_basename,$host_cpu in
11350 pgcc*) # Portland Group C compiler
11351 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
11352 tmp_addflag=' $pic_flag'
11353 ;;
11354 pgf77* | pgf90* | pgf95* | pgfortran*)
11355 # Portland Group f77 and f90 compilers
11356 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
11357 tmp_addflag=' $pic_flag -Mnomain' ;;
11358 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11359 tmp_addflag=' -i_dynamic' ;;
11360 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11361 tmp_addflag=' -i_dynamic -nofor_main' ;;
11362 ifc* | ifort*) # Intel Fortran compiler
11363 tmp_addflag=' -nofor_main' ;;
11364 lf95*) # Lahey Fortran 8.1
11365 whole_archive_flag_spec=
11366 tmp_sharedflag='--shared' ;;
11367 nagfor*) # NAGFOR 5.3
11368 tmp_sharedflag='-Wl,-shared' ;;
11369 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11370 tmp_sharedflag='-qmkshrobj'
11371 tmp_addflag= ;;
11372 nvcc*) # Cuda Compiler Driver 2.2
11373 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
11374 compiler_needs_object=yes
11375 ;;
11376 esac
11377 case `$CC -V 2>&1 | $SED 5q` in
11378 *Sun\ C*) # Sun C 5.9
11379 whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
11380 compiler_needs_object=yes
11381 tmp_sharedflag='-G' ;;
11382 *Sun\ F*) # Sun Fortran 8.3
11383 tmp_sharedflag='-G' ;;
11384 esac
11385 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11386
11387 if test yes = "$supports_anon_versioning"; then
11388 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11389 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11390 echo "local: *; };" >> $output_objdir/$libname.ver~
11391 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11392 fi
11393
11394 case $cc_basename in
11395 tcc*)
11396 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11397 export_dynamic_flag_spec='-rdynamic'
11398 ;;
11399 xlf* | bgf* | bgxlf* | mpixlf*)
11400 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11401 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11402 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11403 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11404 if test yes = "$supports_anon_versioning"; then
11405 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11406 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11407 echo "local: *; };" >> $output_objdir/$libname.ver~
11408 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11409 fi
11410 ;;
11411 esac
11412 else
11413 ld_shlibs=no
11414 fi
11415 ;;
11416
11417 *-mlibc)
11418 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11419 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11420 ;;
11421
11422 netbsd* | netbsdelf*-gnu)
11423 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11424 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11425 wlarc=
11426 else
11427 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11428 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11429 fi
11430 ;;
11431
11432 solaris*)
11433 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11434 ld_shlibs=no
11435 cat <<_LT_EOF 1>&2
11436
11437 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11438 *** create shared libraries on Solaris systems. Therefore, libtool
11439 *** is disabling shared libraries support. We urge you to upgrade GNU
11440 *** binutils to release 2.9.1 or newer. Another option is to modify
11441 *** your PATH or compiler configuration so that the native linker is
11442 *** used, and then restart.
11443
11444 _LT_EOF
11445 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11446 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11447 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11448 else
11449 ld_shlibs=no
11450 fi
11451 ;;
11452
11453 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11454 case `$LD -v 2>&1` in
11455 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11456 ld_shlibs=no
11457 cat <<_LT_EOF 1>&2
11458
11459 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11460 *** reliably create shared libraries on SCO systems. Therefore, libtool
11461 *** is disabling shared libraries support. We urge you to upgrade GNU
11462 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11463 *** your PATH or compiler configuration so that the native linker is
11464 *** used, and then restart.
11465
11466 _LT_EOF
11467 ;;
11468 *)
11469 # For security reasons, it is highly recommended that you always
11470 # use absolute paths for naming shared libraries, and exclude the
11471 # DT_RUNPATH tag from executables and libraries. But doing so
11472 # requires that you compile everything twice, which is a pain.
11473 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11474 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11475 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11476 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11477 else
11478 ld_shlibs=no
11479 fi
11480 ;;
11481 esac
11482 ;;
11483
11484 sunos4*)
11485 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11486 wlarc=
11487 hardcode_direct=yes
11488 hardcode_shlibpath_var=no
11489 ;;
11490
11491 *)
11492 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11493 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11494 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11495 else
11496 ld_shlibs=no
11497 fi
11498 ;;
11499 esac
11500
11501 if test no = "$ld_shlibs"; then
11502 runpath_var=
11503 hardcode_libdir_flag_spec=
11504 export_dynamic_flag_spec=
11505 whole_archive_flag_spec=
11506 fi
11507 else
11508 # PORTME fill in a description of your system's linker (not GNU ld)
11509 case $host_os in
11510 aix3*)
11511 allow_undefined_flag=unsupported
11512 always_export_symbols=yes
11513 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
11514 # Note: this linker hardcodes the directories in LIBPATH if there
11515 # are no directories specified by -L.
11516 hardcode_minus_L=yes
11517 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11518 # Neither direct hardcoding nor static linking is supported with a
11519 # broken collect2.
11520 hardcode_direct=unsupported
11521 fi
11522 ;;
11523
11524 aix[4-9]*)
11525 if test ia64 = "$host_cpu"; then
11526 # On IA64, the linker does run time linking by default, so we don't
11527 # have to do anything special.
11528 aix_use_runtimelinking=no
11529 exp_sym_flag='-Bexport'
11530 no_entry_flag=
11531 else
11532 # If we're using GNU nm, then we don't want the "-C" option.
11533 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
11534 # Without the "-l" option, or with the "-B" option, AIX nm treats
11535 # weak defined symbols like other global defined symbols, whereas
11536 # GNU nm marks them as "W".
11537 # While the 'weak' keyword is ignored in the Export File, we need
11538 # it in the Import File for the 'aix-soname' feature, so we have
11539 # to replace the "-B" option with "-P" for AIX nm.
11540 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11541 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
11542 else
11543 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
11544 fi
11545 aix_use_runtimelinking=no
11546
11547 # Test if we are trying to use run time linking or normal
11548 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11549 # have runtime linking enabled, and use it for executables.
11550 # For shared libraries, we enable/disable runtime linking
11551 # depending on the kind of the shared library created -
11552 # when "with_aix_soname,aix_use_runtimelinking" is:
11553 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
11554 # "aix,yes" lib.so shared, rtl:yes, for executables
11555 # lib.a static archive
11556 # "both,no" lib.so.V(shr.o) shared, rtl:yes
11557 # lib.a(lib.so.V) shared, rtl:no, for executables
11558 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11559 # lib.a(lib.so.V) shared, rtl:no
11560 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
11561 # lib.a static archive
11562 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11563 for ld_flag in $LDFLAGS; do
11564 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11565 aix_use_runtimelinking=yes
11566 break
11567 fi
11568 done
11569 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11570 # With aix-soname=svr4, we create the lib.so.V shared archives only,
11571 # so we don't have lib.a shared libs to link our executables.
11572 # We have to force runtime linking in this case.
11573 aix_use_runtimelinking=yes
11574 LDFLAGS="$LDFLAGS -Wl,-brtl"
11575 fi
11576 ;;
11577 esac
11578
11579 exp_sym_flag='-bexport'
11580 no_entry_flag='-bnoentry'
11581 fi
11582
11583 # When large executables or shared objects are built, AIX ld can
11584 # have problems creating the table of contents. If linking a library
11585 # or program results in "error TOC overflow" add -mminimal-toc to
11586 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11587 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11588
11589 archive_cmds=''
11590 hardcode_direct=yes
11591 hardcode_direct_absolute=yes
11592 hardcode_libdir_separator=':'
11593 link_all_deplibs=yes
11594 file_list_spec='$wl-f,'
11595 case $with_aix_soname,$aix_use_runtimelinking in
11596 aix,*) ;; # traditional, no import file
11597 svr4,* | *,yes) # use import file
11598 # The Import File defines what to hardcode.
11599 hardcode_direct=no
11600 hardcode_direct_absolute=no
11601 ;;
11602 esac
11603
11604 if test yes = "$GCC"; then
11605 case $host_os in aix4.[012]|aix4.[012].*)
11606 # We only want to do this on AIX 4.2 and lower, the check
11607 # below for broken collect2 doesn't work under 4.3+
11608 collect2name=`$CC -print-prog-name=collect2`
11609 if test -f "$collect2name" &&
11610 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11611 then
11612 # We have reworked collect2
11613 :
11614 else
11615 # We have old collect2
11616 hardcode_direct=unsupported
11617 # It fails to find uninstalled libraries when the uninstalled
11618 # path is not listed in the libpath. Setting hardcode_minus_L
11619 # to unsupported forces relinking
11620 hardcode_minus_L=yes
11621 hardcode_libdir_flag_spec='-L$libdir'
11622 hardcode_libdir_separator=
11623 fi
11624 ;;
11625 esac
11626 shared_flag='-shared'
11627 if test yes = "$aix_use_runtimelinking"; then
11628 shared_flag="$shared_flag "'$wl-G'
11629 fi
11630 # Need to ensure runtime linking is disabled for the traditional
11631 # shared library, or the linker may eventually find shared libraries
11632 # /with/ Import File - we do not want to mix them.
11633 shared_flag_aix='-shared'
11634 shared_flag_svr4='-shared $wl-G'
11635 else
11636 # not using gcc
11637 if test ia64 = "$host_cpu"; then
11638 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11639 # chokes on -Wl,-G. The following line is correct:
11640 shared_flag='-G'
11641 else
11642 if test yes = "$aix_use_runtimelinking"; then
11643 shared_flag='$wl-G'
11644 else
11645 shared_flag='$wl-bM:SRE'
11646 fi
11647 shared_flag_aix='$wl-bM:SRE'
11648 shared_flag_svr4='$wl-G'
11649 fi
11650 fi
11651
11652 export_dynamic_flag_spec='$wl-bexpall'
11653 # It seems that -bexpall does not export symbols beginning with
11654 # underscore (_), so it is better to generate a list of symbols to export.
11655 always_export_symbols=yes
11656 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11657 # Warning - without using the other runtime loading flags (-brtl),
11658 # -berok will link without error, but may produce a broken library.
11659 allow_undefined_flag='-berok'
11660 # Determine the default libpath from the value encoded in an
11661 # empty executable.
11662 if test set = "${lt_cv_aix_libpath+set}"; then
11663 aix_libpath=$lt_cv_aix_libpath
11664 else
11665 if test ${lt_cv_aix_libpath_+y}
11666 then :
11667 printf %s "(cached) " >&6
11668 else case e in #(
11669 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11670 /* end confdefs.h. */
11671
11672 int
11673 main (void)
11674 {
11675
11676 ;
11677 return 0;
11678 }
11679 _ACEOF
11680 if ac_fn_c_try_link "$LINENO"
11681 then :
11682
11683 lt_aix_libpath_sed='
11684 /Import File Strings/,/^$/ {
11685 /^0/ {
11686 s/^0 *\([^ ]*\) *$/\1/
11687 p
11688 }
11689 }'
11690 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11691 # Check for a 64-bit object if we didn't find anything.
11692 if test -z "$lt_cv_aix_libpath_"; then
11693 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11694 fi
11695 fi
11696 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11697 conftest$ac_exeext conftest.$ac_ext
11698 if test -z "$lt_cv_aix_libpath_"; then
11699 lt_cv_aix_libpath_=/usr/lib:/lib
11700 fi
11701 ;;
11702 esac
11703 fi
11704
11705 aix_libpath=$lt_cv_aix_libpath_
11706 fi
11707
11708 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11709 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
11710 else
11711 if test ia64 = "$host_cpu"; then
11712 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11713 allow_undefined_flag="-z nodefs"
11714 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
11715 else
11716 # Determine the default libpath from the value encoded in an
11717 # empty executable.
11718 if test set = "${lt_cv_aix_libpath+set}"; then
11719 aix_libpath=$lt_cv_aix_libpath
11720 else
11721 if test ${lt_cv_aix_libpath_+y}
11722 then :
11723 printf %s "(cached) " >&6
11724 else case e in #(
11725 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11726 /* end confdefs.h. */
11727
11728 int
11729 main (void)
11730 {
11731
11732 ;
11733 return 0;
11734 }
11735 _ACEOF
11736 if ac_fn_c_try_link "$LINENO"
11737 then :
11738
11739 lt_aix_libpath_sed='
11740 /Import File Strings/,/^$/ {
11741 /^0/ {
11742 s/^0 *\([^ ]*\) *$/\1/
11743 p
11744 }
11745 }'
11746 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11747 # Check for a 64-bit object if we didn't find anything.
11748 if test -z "$lt_cv_aix_libpath_"; then
11749 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11750 fi
11751 fi
11752 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11753 conftest$ac_exeext conftest.$ac_ext
11754 if test -z "$lt_cv_aix_libpath_"; then
11755 lt_cv_aix_libpath_=/usr/lib:/lib
11756 fi
11757 ;;
11758 esac
11759 fi
11760
11761 aix_libpath=$lt_cv_aix_libpath_
11762 fi
11763
11764 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11765 # Warning - without using the other run time loading flags,
11766 # -berok will link without error, but may produce a broken library.
11767 no_undefined_flag=' $wl-bernotok'
11768 allow_undefined_flag=' $wl-berok'
11769 if test yes = "$with_gnu_ld"; then
11770 # We only use this code for GNU lds that support --whole-archive.
11771 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11772 else
11773 # Exported symbols can be pulled into shared objects from archives
11774 whole_archive_flag_spec='$convenience'
11775 fi
11776 archive_cmds_need_lc=yes
11777 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11778 # -brtl affects multiple linker settings, -berok does not and is overridden later
11779 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11780 if test svr4 != "$with_aix_soname"; then
11781 # This is similar to how AIX traditionally builds its shared libraries.
11782 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
11783 fi
11784 if test aix != "$with_aix_soname"; then
11785 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
11786 else
11787 # used by -dlpreopen to get the symbols
11788 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
11789 fi
11790 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11791 fi
11792 fi
11793 ;;
11794
11795 amigaos*)
11796 case $host_cpu in
11797 powerpc)
11798 # see comment about AmigaOS4 .so support
11799 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11800 archive_expsym_cmds=''
11801 ;;
11802 m68k)
11803 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
11804 hardcode_libdir_flag_spec='-L$libdir'
11805 hardcode_minus_L=yes
11806 ;;
11807 esac
11808 ;;
11809
11810 bsdi[45]*)
11811 export_dynamic_flag_spec=-rdynamic
11812 ;;
11813
11814 cygwin* | mingw* | windows* | pw32* | cegcc*)
11815 # When not using gcc, we currently assume that we are using
11816 # Microsoft Visual C++ or Intel C++ Compiler.
11817 # hardcode_libdir_flag_spec is actually meaningless, as there is
11818 # no search path for DLLs.
11819 case $cc_basename in
11820 cl* | icl*)
11821 # Native MSVC or ICC
11822 hardcode_libdir_flag_spec=' '
11823 allow_undefined_flag=unsupported
11824 always_export_symbols=yes
11825 file_list_spec='@'
11826 # Tell ltmain to make .lib files, not .a files.
11827 libext=lib
11828 # Tell ltmain to make .dll files, not .so files.
11829 shrext_cmds=.dll
11830 # FIXME: Setting linknames here is a bad hack.
11831 archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11832 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11833 cp "$export_symbols" "$output_objdir/$soname.def";
11834 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11835 else
11836 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11837 fi~
11838 $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11839 linknames='
11840 # The linker will not automatically build a static lib if we build a DLL.
11841 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11842 enable_shared_with_static_runtimes=yes
11843 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11844 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11845 # Don't use ranlib
11846 old_postinstall_cmds='chmod 644 $oldlib'
11847 postlink_cmds='lt_outputfile="@OUTPUT@"~
11848 lt_tool_outputfile="@TOOL_OUTPUT@"~
11849 case $lt_outputfile in
11850 *.exe|*.EXE) ;;
11851 *)
11852 lt_outputfile=$lt_outputfile.exe
11853 lt_tool_outputfile=$lt_tool_outputfile.exe
11854 ;;
11855 esac~
11856 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11857 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11858 $RM "$lt_outputfile.manifest";
11859 fi'
11860 ;;
11861 *)
11862 # Assume MSVC and ICC wrapper
11863 hardcode_libdir_flag_spec=' '
11864 allow_undefined_flag=unsupported
11865 # Tell ltmain to make .lib files, not .a files.
11866 libext=lib
11867 # Tell ltmain to make .dll files, not .so files.
11868 shrext_cmds=.dll
11869 # FIXME: Setting linknames here is a bad hack.
11870 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11871 # The linker will automatically build a .lib file if we build a DLL.
11872 old_archive_from_new_cmds='true'
11873 # FIXME: Should let the user specify the lib program.
11874 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11875 enable_shared_with_static_runtimes=yes
11876 ;;
11877 esac
11878 ;;
11879
11880 darwin* | rhapsody*)
11881
11882
11883 archive_cmds_need_lc=no
11884 hardcode_direct=no
11885 hardcode_automatic=yes
11886 hardcode_shlibpath_var=unsupported
11887 if test yes = "$lt_cv_ld_force_load"; then
11888 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
11889
11890 else
11891 whole_archive_flag_spec=''
11892 fi
11893 link_all_deplibs=yes
11894 allow_undefined_flag=$_lt_dar_allow_undefined
11895 case $cc_basename in
11896 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11897 *) _lt_dar_can_shared=$GCC ;;
11898 esac
11899 if test yes = "$_lt_dar_can_shared"; then
11900 output_verbose_link_cmd=func_echo_all
11901 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11902 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11903 archive_expsym_cmds="$SED 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
11904 module_expsym_cmds="$SED -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
11905
11906 else
11907 ld_shlibs=no
11908 fi
11909
11910 ;;
11911
11912 dgux*)
11913 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11914 hardcode_libdir_flag_spec='-L$libdir'
11915 hardcode_shlibpath_var=no
11916 ;;
11917
11918 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11919 # support. Future versions do this automatically, but an explicit c++rt0.o
11920 # does not break anything, and helps significantly (at the cost of a little
11921 # extra space).
11922 freebsd2.2*)
11923 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11924 hardcode_libdir_flag_spec='-R$libdir'
11925 hardcode_direct=yes
11926 hardcode_shlibpath_var=no
11927 ;;
11928
11929 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11930 freebsd2.*)
11931 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11932 hardcode_direct=yes
11933 hardcode_minus_L=yes
11934 hardcode_shlibpath_var=no
11935 ;;
11936
11937 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11938 freebsd* | dragonfly* | midnightbsd*)
11939 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11940 hardcode_libdir_flag_spec='-R$libdir'
11941 hardcode_direct=yes
11942 hardcode_shlibpath_var=no
11943 ;;
11944
11945 hpux9*)
11946 if test yes = "$GCC"; then
11947 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11948 else
11949 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11950 fi
11951 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11952 hardcode_libdir_separator=:
11953 hardcode_direct=yes
11954
11955 # hardcode_minus_L: Not really in the search PATH,
11956 # but as the default location of the library.
11957 hardcode_minus_L=yes
11958 export_dynamic_flag_spec='$wl-E'
11959 ;;
11960
11961 hpux10*)
11962 if test yes,no = "$GCC,$with_gnu_ld"; then
11963 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11964 else
11965 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11966 fi
11967 if test no = "$with_gnu_ld"; then
11968 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11969 hardcode_libdir_separator=:
11970 hardcode_direct=yes
11971 hardcode_direct_absolute=yes
11972 export_dynamic_flag_spec='$wl-E'
11973 # hardcode_minus_L: Not really in the search PATH,
11974 # but as the default location of the library.
11975 hardcode_minus_L=yes
11976 fi
11977 ;;
11978
11979 hpux11*)
11980 if test yes,no = "$GCC,$with_gnu_ld"; then
11981 case $host_cpu in
11982 hppa*64*)
11983 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11984 ;;
11985 ia64*)
11986 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11987 ;;
11988 *)
11989 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11990 ;;
11991 esac
11992 else
11993 case $host_cpu in
11994 hppa*64*)
11995 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11996 ;;
11997 ia64*)
11998 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11999 ;;
12000 *)
12001
12002 # Older versions of the 11.00 compiler do not understand -b yet
12003 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12005 printf %s "checking if $CC understands -b... " >&6; }
12006 if test ${lt_cv_prog_compiler__b+y}
12007 then :
12008 printf %s "(cached) " >&6
12009 else case e in #(
12010 e) lt_cv_prog_compiler__b=no
12011 save_LDFLAGS=$LDFLAGS
12012 LDFLAGS="$LDFLAGS -b"
12013 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12014 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12015 # The linker can only warn and ignore the option if not recognized
12016 # So say no if there are warnings
12017 if test -s conftest.err; then
12018 # Append any errors to the config.log.
12019 cat conftest.err 1>&5
12020 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12021 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12022 if diff conftest.exp conftest.er2 >/dev/null; then
12023 lt_cv_prog_compiler__b=yes
12024 fi
12025 else
12026 lt_cv_prog_compiler__b=yes
12027 fi
12028 fi
12029 $RM -r conftest*
12030 LDFLAGS=$save_LDFLAGS
12031 ;;
12032 esac
12033 fi
12034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12035 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
12036
12037 if test yes = "$lt_cv_prog_compiler__b"; then
12038 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12039 else
12040 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12041 fi
12042
12043 ;;
12044 esac
12045 fi
12046 if test no = "$with_gnu_ld"; then
12047 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12048 hardcode_libdir_separator=:
12049
12050 case $host_cpu in
12051 hppa*64*|ia64*)
12052 hardcode_direct=no
12053 hardcode_shlibpath_var=no
12054 ;;
12055 *)
12056 hardcode_direct=yes
12057 hardcode_direct_absolute=yes
12058 export_dynamic_flag_spec='$wl-E'
12059
12060 # hardcode_minus_L: Not really in the search PATH,
12061 # but as the default location of the library.
12062 hardcode_minus_L=yes
12063 ;;
12064 esac
12065 fi
12066 ;;
12067
12068 irix5* | irix6* | nonstopux*)
12069 if test yes = "$GCC"; then
12070 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
12071 # Try to use the -exported_symbol ld option, if it does not
12072 # work, assume that -exports_file does not work either and
12073 # implicitly export all symbols.
12074 # This should be the same for all languages, so no per-tag cache variable.
12075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12076 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12077 if test ${lt_cv_irix_exported_symbol+y}
12078 then :
12079 printf %s "(cached) " >&6
12080 else case e in #(
12081 e) save_LDFLAGS=$LDFLAGS
12082 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
12083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12084 /* end confdefs.h. */
12085 int foo (void) { return 0; }
12086 _ACEOF
12087 if ac_fn_c_try_link "$LINENO"
12088 then :
12089 lt_cv_irix_exported_symbol=yes
12090 else case e in #(
12091 e) lt_cv_irix_exported_symbol=no ;;
12092 esac
12093 fi
12094 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12095 conftest$ac_exeext conftest.$ac_ext
12096 LDFLAGS=$save_LDFLAGS ;;
12097 esac
12098 fi
12099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12100 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
12101 if test yes = "$lt_cv_irix_exported_symbol"; then
12102 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
12103 fi
12104 else
12105 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
12106 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
12107 fi
12108 archive_cmds_need_lc='no'
12109 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12110 hardcode_libdir_separator=:
12111 inherit_rpath=yes
12112 link_all_deplibs=yes
12113 ;;
12114
12115 linux*)
12116 case $cc_basename in
12117 tcc*)
12118 # Fabrice Bellard et al's Tiny C Compiler
12119 ld_shlibs=yes
12120 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12121 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12122 ;;
12123 esac
12124 ;;
12125
12126 *-mlibc)
12127 ;;
12128
12129 netbsd* | netbsdelf*-gnu)
12130 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12131 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12132 else
12133 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12134 fi
12135 hardcode_libdir_flag_spec='-R$libdir'
12136 hardcode_direct=yes
12137 hardcode_shlibpath_var=no
12138 ;;
12139
12140 newsos6)
12141 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12142 hardcode_direct=yes
12143 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12144 hardcode_libdir_separator=:
12145 hardcode_shlibpath_var=no
12146 ;;
12147
12148 *nto* | *qnx*)
12149 ;;
12150
12151 openbsd*)
12152 if test -f /usr/libexec/ld.so; then
12153 hardcode_direct=yes
12154 hardcode_shlibpath_var=no
12155 hardcode_direct_absolute=yes
12156 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12157 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12158 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12159 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12160 export_dynamic_flag_spec='$wl-E'
12161 else
12162 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12163 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12164 fi
12165 else
12166 ld_shlibs=no
12167 fi
12168 ;;
12169
12170 os2*)
12171 hardcode_libdir_flag_spec='-L$libdir'
12172 hardcode_minus_L=yes
12173 allow_undefined_flag=unsupported
12174 shrext_cmds=.dll
12175 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12176 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12177 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12178 $ECHO EXPORTS >> $output_objdir/$libname.def~
12179 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12180 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12181 emximp -o $lib $output_objdir/$libname.def'
12182 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12183 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12184 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12185 $ECHO EXPORTS >> $output_objdir/$libname.def~
12186 prefix_cmds="$SED"~
12187 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12188 prefix_cmds="$prefix_cmds -e 1d";
12189 fi~
12190 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12191 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12192 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12193 emximp -o $lib $output_objdir/$libname.def'
12194 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12195 enable_shared_with_static_runtimes=yes
12196 file_list_spec='@'
12197 ;;
12198
12199 osf3*)
12200 if test yes = "$GCC"; then
12201 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12202 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
12203 else
12204 allow_undefined_flag=' -expect_unresolved \*'
12205 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
12206 fi
12207 archive_cmds_need_lc='no'
12208 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12209 hardcode_libdir_separator=:
12210 ;;
12211
12212 osf4* | osf5*) # as osf3* with the addition of -msym flag
12213 if test yes = "$GCC"; then
12214 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12215 archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
12216 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12217 else
12218 allow_undefined_flag=' -expect_unresolved \*'
12219 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
12220 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
12221 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
12222
12223 # Both c and cxx compiler support -rpath directly
12224 hardcode_libdir_flag_spec='-rpath $libdir'
12225 fi
12226 archive_cmds_need_lc='no'
12227 hardcode_libdir_separator=:
12228 ;;
12229
12230 serenity*)
12231 ;;
12232
12233 solaris*)
12234 no_undefined_flag=' -z defs'
12235 if test yes = "$GCC"; then
12236 wlarc='$wl'
12237 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12238 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12239 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12240 else
12241 case `$CC -V 2>&1` in
12242 *"Compilers 5.0"*)
12243 wlarc=''
12244 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12245 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12246 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12247 ;;
12248 *)
12249 wlarc='$wl'
12250 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12251 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12252 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12253 ;;
12254 esac
12255 fi
12256 hardcode_libdir_flag_spec='-R$libdir'
12257 hardcode_shlibpath_var=no
12258 case $host_os in
12259 solaris2.[0-5] | solaris2.[0-5].*) ;;
12260 *)
12261 # The compiler driver will combine and reorder linker options,
12262 # but understands '-z linker_flag'. GCC discards it without '$wl',
12263 # but is careful enough not to reorder.
12264 # Supported since Solaris 2.6 (maybe 2.5.1?)
12265 if test yes = "$GCC"; then
12266 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12267 else
12268 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12269 fi
12270 ;;
12271 esac
12272 link_all_deplibs=yes
12273 ;;
12274
12275 sunos4*)
12276 if test sequent = "$host_vendor"; then
12277 # Use $CC to link under sequent, because it throws in some extra .o
12278 # files that make .init and .fini sections work.
12279 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12280 else
12281 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12282 fi
12283 hardcode_libdir_flag_spec='-L$libdir'
12284 hardcode_direct=yes
12285 hardcode_minus_L=yes
12286 hardcode_shlibpath_var=no
12287 ;;
12288
12289 sysv4)
12290 case $host_vendor in
12291 sni)
12292 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12293 hardcode_direct=yes # is this really true???
12294 ;;
12295 siemens)
12296 ## LD is ld it makes a PLAMLIB
12297 ## CC just makes a GrossModule.
12298 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12299 reload_cmds='$CC -r -o $output$reload_objs'
12300 hardcode_direct=no
12301 ;;
12302 motorola)
12303 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12304 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12305 ;;
12306 esac
12307 runpath_var='LD_RUN_PATH'
12308 hardcode_shlibpath_var=no
12309 ;;
12310
12311 sysv4.3*)
12312 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12313 hardcode_shlibpath_var=no
12314 export_dynamic_flag_spec='-Bexport'
12315 ;;
12316
12317 sysv4*MP*)
12318 if test -d /usr/nec; then
12319 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12320 hardcode_shlibpath_var=no
12321 runpath_var=LD_RUN_PATH
12322 hardcode_runpath_var=yes
12323 ld_shlibs=yes
12324 fi
12325 ;;
12326
12327 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12328 no_undefined_flag='$wl-z,text'
12329 archive_cmds_need_lc=no
12330 hardcode_shlibpath_var=no
12331 runpath_var='LD_RUN_PATH'
12332
12333 if test yes = "$GCC"; then
12334 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12335 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12336 else
12337 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12338 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12339 fi
12340 ;;
12341
12342 sysv5* | sco3.2v5* | sco5v6*)
12343 # Note: We CANNOT use -z defs as we might desire, because we do not
12344 # link with -lc, and that would cause any symbols used from libc to
12345 # always be unresolved, which means just about no library would
12346 # ever link correctly. If we're not using GNU ld we use -z text
12347 # though, which does catch some bad symbols but isn't as heavy-handed
12348 # as -z defs.
12349 no_undefined_flag='$wl-z,text'
12350 allow_undefined_flag='$wl-z,nodefs'
12351 archive_cmds_need_lc=no
12352 hardcode_shlibpath_var=no
12353 hardcode_libdir_flag_spec='$wl-R,$libdir'
12354 hardcode_libdir_separator=':'
12355 link_all_deplibs=yes
12356 export_dynamic_flag_spec='$wl-Bexport'
12357 runpath_var='LD_RUN_PATH'
12358
12359 if test yes = "$GCC"; then
12360 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12361 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12362 else
12363 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12364 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12365 fi
12366 ;;
12367
12368 uts4*)
12369 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12370 hardcode_libdir_flag_spec='-L$libdir'
12371 hardcode_shlibpath_var=no
12372 ;;
12373
12374 *)
12375 ld_shlibs=no
12376 ;;
12377 esac
12378
12379 if test sni = "$host_vendor"; then
12380 case $host in
12381 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12382 export_dynamic_flag_spec='$wl-Blargedynsym'
12383 ;;
12384 esac
12385 fi
12386 fi
12387
12388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12389 printf "%s\n" "$ld_shlibs" >&6; }
12390 test no = "$ld_shlibs" && can_build_shared=no
12391
12392 with_gnu_ld=$with_gnu_ld
12393
12394
12395
12396
12397
12398
12399
12400
12401
12402
12403
12404
12405
12406
12407
12408 #
12409 # Do we need to explicitly link libc?
12410 #
12411 case "x$archive_cmds_need_lc" in
12412 x|xyes)
12413 # Assume -lc should be added
12414 archive_cmds_need_lc=yes
12415
12416 if test yes,yes = "$GCC,$enable_shared"; then
12417 case $archive_cmds in
12418 *'~'*)
12419 # FIXME: we may have to deal with multi-command sequences.
12420 ;;
12421 '$CC '*)
12422 # Test whether the compiler implicitly links with -lc since on some
12423 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12424 # to ld, don't add -lc before -lgcc.
12425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12426 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
12427 if test ${lt_cv_archive_cmds_need_lc+y}
12428 then :
12429 printf %s "(cached) " >&6
12430 else case e in #(
12431 e) $RM conftest*
12432 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12433
12434 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12435 (eval $ac_compile) 2>&5
12436 ac_status=$?
12437 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12438 test $ac_status = 0; } 2>conftest.err; then
12439 soname=conftest
12440 lib=conftest
12441 libobjs=conftest.$ac_objext
12442 deplibs=
12443 wl=$lt_prog_compiler_wl
12444 pic_flag=$lt_prog_compiler_pic
12445 compiler_flags=-v
12446 linker_flags=-v
12447 verstring=
12448 output_objdir=.
12449 libname=conftest
12450 lt_save_allow_undefined_flag=$allow_undefined_flag
12451 allow_undefined_flag=
12452 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12453 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12454 ac_status=$?
12455 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12456 test $ac_status = 0; }
12457 then
12458 lt_cv_archive_cmds_need_lc=no
12459 else
12460 lt_cv_archive_cmds_need_lc=yes
12461 fi
12462 allow_undefined_flag=$lt_save_allow_undefined_flag
12463 else
12464 cat conftest.err 1>&5
12465 fi
12466 $RM conftest*
12467 ;;
12468 esac
12469 fi
12470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12471 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
12472 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12473 ;;
12474 esac
12475 fi
12476 ;;
12477 esac
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616
12617
12618
12619
12620
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12631 printf %s "checking dynamic linker characteristics... " >&6; }
12632
12633 if test yes = "$GCC"; then
12634 case $host_os in
12635 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12636 *) lt_awk_arg='/^libraries:/' ;;
12637 esac
12638 case $host_os in
12639 mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12640 *) lt_sed_strip_eq='s|=/|/|g' ;;
12641 esac
12642 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12643 case $lt_search_path_spec in
12644 *\;*)
12645 # if the path contains ";" then we assume it to be the separator
12646 # otherwise default to the standard path separator (i.e. ":") - it is
12647 # assumed that no part of a normal pathname contains ";" but that should
12648 # okay in the real world where ";" in dirpaths is itself problematic.
12649 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12650 ;;
12651 *)
12652 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12653 ;;
12654 esac
12655 # Ok, now we have the path, separated by spaces, we can step through it
12656 # and add multilib dir if necessary...
12657 lt_tmp_lt_search_path_spec=
12658 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12659 # ...but if some path component already ends with the multilib dir we assume
12660 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12661 case "$lt_multi_os_dir; $lt_search_path_spec " in
12662 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12663 lt_multi_os_dir=
12664 ;;
12665 esac
12666 for lt_sys_path in $lt_search_path_spec; do
12667 if test -d "$lt_sys_path$lt_multi_os_dir"; then
12668 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12669 elif test -n "$lt_multi_os_dir"; then
12670 test -d "$lt_sys_path" && \
12671 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12672 fi
12673 done
12674 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12675 BEGIN {RS = " "; FS = "/|\n";} {
12676 lt_foo = "";
12677 lt_count = 0;
12678 for (lt_i = NF; lt_i > 0; lt_i--) {
12679 if ($lt_i != "" && $lt_i != ".") {
12680 if ($lt_i == "..") {
12681 lt_count++;
12682 } else {
12683 if (lt_count == 0) {
12684 lt_foo = "/" $lt_i lt_foo;
12685 } else {
12686 lt_count--;
12687 }
12688 }
12689 }
12690 }
12691 if (lt_foo != "") { lt_freq[lt_foo]++; }
12692 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12693 }'`
12694 # AWK program above erroneously prepends '/' to C:/dos/paths
12695 # for these hosts.
12696 case $host_os in
12697 mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12698 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12699 esac
12700 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12701 else
12702 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12703 fi
12704 library_names_spec=
12705 libname_spec='lib$name'
12706 soname_spec=
12707 shrext_cmds=.so
12708 postinstall_cmds=
12709 postuninstall_cmds=
12710 finish_cmds=
12711 finish_eval=
12712 shlibpath_var=
12713 shlibpath_overrides_runpath=unknown
12714 version_type=none
12715 dynamic_linker="$host_os ld.so"
12716 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12717 need_lib_prefix=unknown
12718 hardcode_into_libs=no
12719
12720 # when you set need_version to no, make sure it does not cause -set_version
12721 # flags to be left without arguments
12722 need_version=unknown
12723
12724
12725
12726 case $host_os in
12727 aix3*)
12728 version_type=linux # correct to gnu/linux during the next big refactor
12729 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12730 shlibpath_var=LIBPATH
12731
12732 # AIX 3 has no versioning support, so we append a major version to the name.
12733 soname_spec='$libname$release$shared_ext$major'
12734 ;;
12735
12736 aix[4-9]*)
12737 version_type=linux # correct to gnu/linux during the next big refactor
12738 need_lib_prefix=no
12739 need_version=no
12740 hardcode_into_libs=yes
12741 if test ia64 = "$host_cpu"; then
12742 # AIX 5 supports IA64
12743 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12744 shlibpath_var=LD_LIBRARY_PATH
12745 else
12746 # With GCC up to 2.95.x, collect2 would create an import file
12747 # for dependence libraries. The import file would start with
12748 # the line '#! .'. This would cause the generated library to
12749 # depend on '.', always an invalid library. This was fixed in
12750 # development snapshots of GCC prior to 3.0.
12751 case $host_os in
12752 aix4 | aix4.[01] | aix4.[01].*)
12753 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12754 echo ' yes '
12755 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12756 :
12757 else
12758 can_build_shared=no
12759 fi
12760 ;;
12761 esac
12762 # Using Import Files as archive members, it is possible to support
12763 # filename-based versioning of shared library archives on AIX. While
12764 # this would work for both with and without runtime linking, it will
12765 # prevent static linking of such archives. So we do filename-based
12766 # shared library versioning with .so extension only, which is used
12767 # when both runtime linking and shared linking is enabled.
12768 # Unfortunately, runtime linking may impact performance, so we do
12769 # not want this to be the default eventually. Also, we use the
12770 # versioned .so libs for executables only if there is the -brtl
12771 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
12772 # To allow for filename-based versioning support, we need to create
12773 # libNAME.so.V as an archive file, containing:
12774 # *) an Import File, referring to the versioned filename of the
12775 # archive as well as the shared archive member, telling the
12776 # bitwidth (32 or 64) of that shared object, and providing the
12777 # list of exported symbols of that shared object, eventually
12778 # decorated with the 'weak' keyword
12779 # *) the shared object with the F_LOADONLY flag set, to really avoid
12780 # it being seen by the linker.
12781 # At run time we better use the real file rather than another symlink,
12782 # but for link time we create the symlink libNAME.so -> libNAME.so.V
12783
12784 case $with_aix_soname,$aix_use_runtimelinking in
12785 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12786 # soname into executable. Probably we can add versioning support to
12787 # collect2, so additional links can be useful in future.
12788 aix,yes) # traditional libtool
12789 dynamic_linker='AIX unversionable lib.so'
12790 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12791 # instead of lib<name>.a to let people know that these are not
12792 # typical AIX shared libraries.
12793 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12794 ;;
12795 aix,no) # traditional AIX only
12796 dynamic_linker='AIX lib.a(lib.so.V)'
12797 # We preserve .a as extension for shared libraries through AIX4.2
12798 # and later when we are not doing run time linking.
12799 library_names_spec='$libname$release.a $libname.a'
12800 soname_spec='$libname$release$shared_ext$major'
12801 ;;
12802 svr4,*) # full svr4 only
12803 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12804 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12805 # We do not specify a path in Import Files, so LIBPATH fires.
12806 shlibpath_overrides_runpath=yes
12807 ;;
12808 *,yes) # both, prefer svr4
12809 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12810 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12811 # unpreferred sharedlib libNAME.a needs extra handling
12812 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
12813 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
12814 # We do not specify a path in Import Files, so LIBPATH fires.
12815 shlibpath_overrides_runpath=yes
12816 ;;
12817 *,no) # both, prefer aix
12818 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12819 library_names_spec='$libname$release.a $libname.a'
12820 soname_spec='$libname$release$shared_ext$major'
12821 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12822 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
12823 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
12824 ;;
12825 esac
12826 shlibpath_var=LIBPATH
12827 fi
12828 ;;
12829
12830 amigaos*)
12831 case $host_cpu in
12832 powerpc)
12833 # Since July 2007 AmigaOS4 officially supports .so libraries.
12834 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12835 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12836 ;;
12837 m68k)
12838 library_names_spec='$libname.ixlibrary $libname.a'
12839 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12840 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
12841 ;;
12842 esac
12843 ;;
12844
12845 beos*)
12846 library_names_spec='$libname$shared_ext'
12847 dynamic_linker="$host_os ld.so"
12848 shlibpath_var=LIBRARY_PATH
12849 ;;
12850
12851 bsdi[45]*)
12852 version_type=linux # correct to gnu/linux during the next big refactor
12853 need_version=no
12854 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12855 soname_spec='$libname$release$shared_ext$major'
12856 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12857 shlibpath_var=LD_LIBRARY_PATH
12858 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12859 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12860 # the default ld.so.conf also contains /usr/contrib/lib and
12861 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12862 # libtool to hard-code these into programs
12863 ;;
12864
12865 cygwin* | mingw* | windows* | pw32* | cegcc*)
12866 version_type=windows
12867 shrext_cmds=.dll
12868 need_version=no
12869 need_lib_prefix=no
12870
12871 case $GCC,$cc_basename in
12872 yes,*)
12873 # gcc
12874 library_names_spec='$libname.dll.a'
12875 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12876 # If user builds GCC with multilib enabled,
12877 # it should just install on $(libdir)
12878 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
12879 if test xyes = x"$multilib"; then
12880 postinstall_cmds='base_file=`basename \$file`~
12881 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12882 dldir=$destdir/`dirname \$dlpath`~
12883 $install_prog $dir/$dlname $destdir/$dlname~
12884 chmod a+x $destdir/$dlname~
12885 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12886 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
12887 fi'
12888 else
12889 postinstall_cmds='base_file=`basename \$file`~
12890 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12891 dldir=$destdir/`dirname \$dlpath`~
12892 test -d \$dldir || mkdir -p \$dldir~
12893 $install_prog $dir/$dlname \$dldir/$dlname~
12894 chmod a+x \$dldir/$dlname~
12895 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12896 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12897 fi'
12898 fi
12899 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12900 dlpath=$dir/\$dldll~
12901 $RM \$dlpath'
12902 shlibpath_overrides_runpath=yes
12903
12904 case $host_os in
12905 cygwin*)
12906 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12907 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12908
12909 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12910 ;;
12911 mingw* | windows* | cegcc*)
12912 # MinGW DLLs use traditional 'lib' prefix
12913 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12914 ;;
12915 pw32*)
12916 # pw32 DLLs use 'pw' prefix rather than 'lib'
12917 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12918 ;;
12919 esac
12920 dynamic_linker='Win32 ld.exe'
12921 ;;
12922
12923 *,cl* | *,icl*)
12924 # Native MSVC or ICC
12925 libname_spec='$name'
12926 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12927 library_names_spec='$libname.dll.lib'
12928
12929 case $build_os in
12930 mingw* | windows*)
12931 sys_lib_search_path_spec=
12932 lt_save_ifs=$IFS
12933 IFS=';'
12934 for lt_path in $LIB
12935 do
12936 IFS=$lt_save_ifs
12937 # Let DOS variable expansion print the short 8.3 style file name.
12938 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12939 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12940 done
12941 IFS=$lt_save_ifs
12942 # Convert to MSYS style.
12943 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12944 ;;
12945 cygwin*)
12946 # Convert to unix form, then to dos form, then back to unix form
12947 # but this time dos style (no spaces!) so that the unix form looks
12948 # like /cygdrive/c/PROGRA~1:/cygdr...
12949 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12950 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12951 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12952 ;;
12953 *)
12954 sys_lib_search_path_spec=$LIB
12955 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12956 # It is most probably a Windows format PATH.
12957 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12958 else
12959 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12960 fi
12961 # FIXME: find the short name or the path components, as spaces are
12962 # common. (e.g. "Program Files" -> "PROGRA~1")
12963 ;;
12964 esac
12965
12966 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12967 postinstall_cmds='base_file=`basename \$file`~
12968 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12969 dldir=$destdir/`dirname \$dlpath`~
12970 test -d \$dldir || mkdir -p \$dldir~
12971 $install_prog $dir/$dlname \$dldir/$dlname'
12972 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12973 dlpath=$dir/\$dldll~
12974 $RM \$dlpath'
12975 shlibpath_overrides_runpath=yes
12976 dynamic_linker='Win32 link.exe'
12977 ;;
12978
12979 *)
12980 # Assume MSVC and ICC wrapper
12981 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12982 dynamic_linker='Win32 ld.exe'
12983 ;;
12984 esac
12985 # FIXME: first we should search . and the directory the executable is in
12986 shlibpath_var=PATH
12987 ;;
12988
12989 darwin* | rhapsody*)
12990 dynamic_linker="$host_os dyld"
12991 version_type=darwin
12992 need_lib_prefix=no
12993 need_version=no
12994 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12995 soname_spec='$libname$release$major$shared_ext'
12996 shlibpath_overrides_runpath=yes
12997 shlibpath_var=DYLD_LIBRARY_PATH
12998 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12999
13000 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13001 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13002 ;;
13003
13004 dgux*)
13005 version_type=linux # correct to gnu/linux during the next big refactor
13006 need_lib_prefix=no
13007 need_version=no
13008 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13009 soname_spec='$libname$release$shared_ext$major'
13010 shlibpath_var=LD_LIBRARY_PATH
13011 ;;
13012
13013 freebsd* | dragonfly* | midnightbsd*)
13014 # DragonFly does not have aout. When/if they implement a new
13015 # versioning mechanism, adjust this.
13016 if test -x /usr/bin/objformat; then
13017 objformat=`/usr/bin/objformat`
13018 else
13019 case $host_os in
13020 freebsd[23].*) objformat=aout ;;
13021 *) objformat=elf ;;
13022 esac
13023 fi
13024 version_type=freebsd-$objformat
13025 case $version_type in
13026 freebsd-elf*)
13027 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13028 soname_spec='$libname$release$shared_ext$major'
13029 need_version=no
13030 need_lib_prefix=no
13031 ;;
13032 freebsd-*)
13033 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13034 need_version=yes
13035 ;;
13036 esac
13037 case $host_cpu in
13038 powerpc64)
13039 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
13040 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
13041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13042 /* end confdefs.h. */
13043 int test_pointer_size[sizeof (void *) - 5];
13044
13045 _ACEOF
13046 if ac_fn_c_try_compile "$LINENO"
13047 then :
13048 shlibpath_var=LD_LIBRARY_PATH
13049 else case e in #(
13050 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
13051 esac
13052 fi
13053 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13054 ;;
13055 *)
13056 shlibpath_var=LD_LIBRARY_PATH
13057 ;;
13058 esac
13059 case $host_os in
13060 freebsd2.*)
13061 shlibpath_overrides_runpath=yes
13062 ;;
13063 freebsd3.[01]* | freebsdelf3.[01]*)
13064 shlibpath_overrides_runpath=yes
13065 hardcode_into_libs=yes
13066 ;;
13067 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13068 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13069 shlibpath_overrides_runpath=no
13070 hardcode_into_libs=yes
13071 ;;
13072 *) # from 4.6 on, and DragonFly
13073 shlibpath_overrides_runpath=yes
13074 hardcode_into_libs=yes
13075 ;;
13076 esac
13077 ;;
13078
13079 haiku*)
13080 version_type=linux # correct to gnu/linux during the next big refactor
13081 need_lib_prefix=no
13082 need_version=no
13083 dynamic_linker="$host_os runtime_loader"
13084 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13085 soname_spec='$libname$release$shared_ext$major'
13086 shlibpath_var=LIBRARY_PATH
13087 shlibpath_overrides_runpath=no
13088 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
13089 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
13090 hardcode_into_libs=no
13091 ;;
13092
13093 hpux9* | hpux10* | hpux11*)
13094 # Give a soname corresponding to the major version so that dld.sl refuses to
13095 # link against other versions.
13096 version_type=sunos
13097 need_lib_prefix=no
13098 need_version=no
13099 case $host_cpu in
13100 ia64*)
13101 shrext_cmds='.so'
13102 hardcode_into_libs=yes
13103 dynamic_linker="$host_os dld.so"
13104 shlibpath_var=LD_LIBRARY_PATH
13105 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13106 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13107 soname_spec='$libname$release$shared_ext$major'
13108 if test 32 = "$HPUX_IA64_MODE"; then
13109 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13110 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
13111 else
13112 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13113 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
13114 fi
13115 ;;
13116 hppa*64*)
13117 shrext_cmds='.sl'
13118 hardcode_into_libs=yes
13119 dynamic_linker="$host_os dld.sl"
13120 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13121 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13122 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13123 soname_spec='$libname$release$shared_ext$major'
13124 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13125 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13126 ;;
13127 *)
13128 shrext_cmds='.sl'
13129 dynamic_linker="$host_os dld.sl"
13130 shlibpath_var=SHLIB_PATH
13131 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13132 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13133 soname_spec='$libname$release$shared_ext$major'
13134 ;;
13135 esac
13136 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13137 postinstall_cmds='chmod 555 $lib'
13138 # or fails outright, so override atomically:
13139 install_override_mode=555
13140 ;;
13141
13142 interix[3-9]*)
13143 version_type=linux # correct to gnu/linux during the next big refactor
13144 need_lib_prefix=no
13145 need_version=no
13146 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13147 soname_spec='$libname$release$shared_ext$major'
13148 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13149 shlibpath_var=LD_LIBRARY_PATH
13150 shlibpath_overrides_runpath=no
13151 hardcode_into_libs=yes
13152 ;;
13153
13154 irix5* | irix6* | nonstopux*)
13155 case $host_os in
13156 nonstopux*) version_type=nonstopux ;;
13157 *)
13158 if test yes = "$lt_cv_prog_gnu_ld"; then
13159 version_type=linux # correct to gnu/linux during the next big refactor
13160 else
13161 version_type=irix
13162 fi ;;
13163 esac
13164 need_lib_prefix=no
13165 need_version=no
13166 soname_spec='$libname$release$shared_ext$major'
13167 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
13168 case $host_os in
13169 irix5* | nonstopux*)
13170 libsuff= shlibsuff=
13171 ;;
13172 *)
13173 case $LD in # libtool.m4 will add one of these switches to LD
13174 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13175 libsuff= shlibsuff= libmagic=32-bit;;
13176 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13177 libsuff=32 shlibsuff=N32 libmagic=N32;;
13178 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13179 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13180 *) libsuff= shlibsuff= libmagic=never-match;;
13181 esac
13182 ;;
13183 esac
13184 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13185 shlibpath_overrides_runpath=no
13186 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13187 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
13188 hardcode_into_libs=yes
13189 ;;
13190
13191 # No shared lib support for Linux oldld, aout, or coff.
13192 linux*oldld* | linux*aout* | linux*coff*)
13193 dynamic_linker=no
13194 ;;
13195
13196 linux*android*)
13197 version_type=none # Android doesn't support versioned libraries.
13198 need_lib_prefix=no
13199 need_version=no
13200 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
13201 soname_spec='$libname$release$shared_ext'
13202 finish_cmds=
13203 shlibpath_var=LD_LIBRARY_PATH
13204 shlibpath_overrides_runpath=yes
13205
13206 # This implies no fast_install, which is unacceptable.
13207 # Some rework will be needed to allow for fast_install
13208 # before this can be enabled.
13209 hardcode_into_libs=yes
13210
13211 dynamic_linker='Android linker'
13212 # -rpath works at least for libraries that are not overridden by
13213 # libraries installed in system locations.
13214 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13215 ;;
13216
13217 # This must be glibc/ELF.
13218 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13219 version_type=linux # correct to gnu/linux during the next big refactor
13220 need_lib_prefix=no
13221 need_version=no
13222 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13223 soname_spec='$libname$release$shared_ext$major'
13224 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13225 shlibpath_var=LD_LIBRARY_PATH
13226 shlibpath_overrides_runpath=no
13227
13228 # Some binutils ld are patched to set DT_RUNPATH
13229 if test ${lt_cv_shlibpath_overrides_runpath+y}
13230 then :
13231 printf %s "(cached) " >&6
13232 else case e in #(
13233 e) lt_cv_shlibpath_overrides_runpath=no
13234 save_LDFLAGS=$LDFLAGS
13235 save_libdir=$libdir
13236 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13237 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13239 /* end confdefs.h. */
13240
13241 int
13242 main (void)
13243 {
13244
13245 ;
13246 return 0;
13247 }
13248 _ACEOF
13249 if ac_fn_c_try_link "$LINENO"
13250 then :
13251 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
13252 then :
13253 lt_cv_shlibpath_overrides_runpath=yes
13254 fi
13255 fi
13256 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13257 conftest$ac_exeext conftest.$ac_ext
13258 LDFLAGS=$save_LDFLAGS
13259 libdir=$save_libdir
13260 ;;
13261 esac
13262 fi
13263
13264 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13265
13266 # This implies no fast_install, which is unacceptable.
13267 # Some rework will be needed to allow for fast_install
13268 # before this can be enabled.
13269 hardcode_into_libs=yes
13270
13271 # Ideally, we could use ldconfig to report *all* directories which are
13272 # searched for libraries, however this is still not possible. Aside from not
13273 # being certain /sbin/ldconfig is available, command
13274 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13275 # even though it is searched at run-time. Try to do the best guess by
13276 # appending ld.so.conf contents (and includes) to the search path.
13277 if test -f /etc/ld.so.conf; then
13278 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
13279 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13280 fi
13281
13282 # We used to test for /lib/ld.so.1 and disable shared libraries on
13283 # powerpc, because MkLinux only supported shared libraries with the
13284 # GNU dynamic linker. Since this was broken with cross compilers,
13285 # most powerpc-linux boxes support dynamic linking these days and
13286 # people can always --disable-shared, the test was removed, and we
13287 # assume the GNU/Linux dynamic linker is in use.
13288 dynamic_linker='GNU/Linux ld.so'
13289 ;;
13290
13291 netbsdelf*-gnu)
13292 version_type=linux
13293 need_lib_prefix=no
13294 need_version=no
13295 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13296 soname_spec='$libname$release$shared_ext$major'
13297 shlibpath_var=LD_LIBRARY_PATH
13298 shlibpath_overrides_runpath=no
13299 hardcode_into_libs=yes
13300 dynamic_linker='NetBSD ld.elf_so'
13301 ;;
13302
13303 netbsd*)
13304 version_type=sunos
13305 need_lib_prefix=no
13306 need_version=no
13307 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13308 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13309 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13310 dynamic_linker='NetBSD (a.out) ld.so'
13311 else
13312 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13313 soname_spec='$libname$release$shared_ext$major'
13314 dynamic_linker='NetBSD ld.elf_so'
13315 fi
13316 shlibpath_var=LD_LIBRARY_PATH
13317 shlibpath_overrides_runpath=yes
13318 hardcode_into_libs=yes
13319 ;;
13320
13321 *-mlibc)
13322 version_type=linux # correct to gnu/linux during the next big refactor
13323 need_lib_prefix=no
13324 need_version=no
13325 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13326 soname_spec='$libname$release$shared_ext$major'
13327 dynamic_linker='mlibc ld.so'
13328 shlibpath_var=LD_LIBRARY_PATH
13329 shlibpath_overrides_runpath=no
13330 hardcode_into_libs=yes
13331 ;;
13332
13333 newsos6)
13334 version_type=linux # correct to gnu/linux during the next big refactor
13335 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13336 shlibpath_var=LD_LIBRARY_PATH
13337 shlibpath_overrides_runpath=yes
13338 ;;
13339
13340 *nto* | *qnx*)
13341 version_type=qnx
13342 need_lib_prefix=no
13343 need_version=no
13344 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13345 soname_spec='$libname$release$shared_ext$major'
13346 shlibpath_var=LD_LIBRARY_PATH
13347 shlibpath_overrides_runpath=no
13348 hardcode_into_libs=yes
13349 dynamic_linker='ldqnx.so'
13350 ;;
13351
13352 openbsd*)
13353 version_type=sunos
13354 sys_lib_dlsearch_path_spec=/usr/lib
13355 need_lib_prefix=no
13356 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13357 need_version=no
13358 else
13359 need_version=yes
13360 fi
13361 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13362 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13363 shlibpath_var=LD_LIBRARY_PATH
13364 shlibpath_overrides_runpath=yes
13365 ;;
13366
13367 os2*)
13368 libname_spec='$name'
13369 version_type=windows
13370 shrext_cmds=.dll
13371 need_version=no
13372 need_lib_prefix=no
13373 # OS/2 can only load a DLL with a base name of 8 characters or less.
13374 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13375 v=$($ECHO $release$versuffix | tr -d .-);
13376 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13377 $ECHO $n$v`$shared_ext'
13378 library_names_spec='${libname}_dll.$libext'
13379 dynamic_linker='OS/2 ld.exe'
13380 shlibpath_var=BEGINLIBPATH
13381 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13382 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13383 postinstall_cmds='base_file=`basename \$file`~
13384 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13385 dldir=$destdir/`dirname \$dlpath`~
13386 test -d \$dldir || mkdir -p \$dldir~
13387 $install_prog $dir/$dlname \$dldir/$dlname~
13388 chmod a+x \$dldir/$dlname~
13389 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13390 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13391 fi'
13392 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13393 dlpath=$dir/\$dldll~
13394 $RM \$dlpath'
13395 ;;
13396
13397 osf3* | osf4* | osf5*)
13398 version_type=osf
13399 need_lib_prefix=no
13400 need_version=no
13401 soname_spec='$libname$release$shared_ext$major'
13402 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13403 shlibpath_var=LD_LIBRARY_PATH
13404 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13405 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13406 ;;
13407
13408 rdos*)
13409 dynamic_linker=no
13410 ;;
13411
13412 serenity*)
13413 version_type=linux # correct to gnu/linux during the next big refactor
13414 need_lib_prefix=no
13415 need_version=no
13416 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13417 soname_spec='$libname$release$shared_ext$major'
13418 shlibpath_var=LD_LIBRARY_PATH
13419 shlibpath_overrides_runpath=no
13420 dynamic_linker='SerenityOS LibELF'
13421 ;;
13422
13423 solaris*)
13424 version_type=linux # correct to gnu/linux during the next big refactor
13425 need_lib_prefix=no
13426 need_version=no
13427 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13428 soname_spec='$libname$release$shared_ext$major'
13429 shlibpath_var=LD_LIBRARY_PATH
13430 shlibpath_overrides_runpath=yes
13431 hardcode_into_libs=yes
13432 # ldd complains unless libraries are executable
13433 postinstall_cmds='chmod +x $lib'
13434 ;;
13435
13436 sunos4*)
13437 version_type=sunos
13438 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13439 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13440 shlibpath_var=LD_LIBRARY_PATH
13441 shlibpath_overrides_runpath=yes
13442 if test yes = "$with_gnu_ld"; then
13443 need_lib_prefix=no
13444 fi
13445 need_version=yes
13446 ;;
13447
13448 sysv4 | sysv4.3*)
13449 version_type=linux # correct to gnu/linux during the next big refactor
13450 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13451 soname_spec='$libname$release$shared_ext$major'
13452 shlibpath_var=LD_LIBRARY_PATH
13453 case $host_vendor in
13454 sni)
13455 shlibpath_overrides_runpath=no
13456 need_lib_prefix=no
13457 runpath_var=LD_RUN_PATH
13458 ;;
13459 siemens)
13460 need_lib_prefix=no
13461 ;;
13462 motorola)
13463 need_lib_prefix=no
13464 need_version=no
13465 shlibpath_overrides_runpath=no
13466 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13467 ;;
13468 esac
13469 ;;
13470
13471 sysv4*MP*)
13472 if test -d /usr/nec; then
13473 version_type=linux # correct to gnu/linux during the next big refactor
13474 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13475 soname_spec='$libname$shared_ext.$major'
13476 shlibpath_var=LD_LIBRARY_PATH
13477 fi
13478 ;;
13479
13480 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13481 version_type=sco
13482 need_lib_prefix=no
13483 need_version=no
13484 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13485 soname_spec='$libname$release$shared_ext$major'
13486 shlibpath_var=LD_LIBRARY_PATH
13487 shlibpath_overrides_runpath=yes
13488 hardcode_into_libs=yes
13489 if test yes = "$with_gnu_ld"; then
13490 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13491 else
13492 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13493 case $host_os in
13494 sco3.2v5*)
13495 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13496 ;;
13497 esac
13498 fi
13499 sys_lib_dlsearch_path_spec='/usr/lib'
13500 ;;
13501
13502 tpf*)
13503 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13504 version_type=linux # correct to gnu/linux during the next big refactor
13505 need_lib_prefix=no
13506 need_version=no
13507 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13508 shlibpath_var=LD_LIBRARY_PATH
13509 shlibpath_overrides_runpath=no
13510 hardcode_into_libs=yes
13511 ;;
13512
13513 uts4*)
13514 version_type=linux # correct to gnu/linux during the next big refactor
13515 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13516 soname_spec='$libname$release$shared_ext$major'
13517 shlibpath_var=LD_LIBRARY_PATH
13518 ;;
13519
13520 emscripten*)
13521 version_type=none
13522 need_lib_prefix=no
13523 need_version=no
13524 library_names_spec='$libname$release$shared_ext'
13525 soname_spec='$libname$release$shared_ext'
13526 finish_cmds=
13527 dynamic_linker="Emscripten linker"
13528 lt_prog_compiler_wl=
13529 lt_prog_compiler_pic=
13530 lt_prog_compiler_static=
13531
13532
13533 if test yes = "$GCC"; then
13534 lt_prog_compiler_wl='-Wl,'
13535 lt_prog_compiler_static='-static'
13536
13537 case $host_os in
13538 aix*)
13539 # All AIX code is PIC.
13540 if test ia64 = "$host_cpu"; then
13541 # AIX 5 now supports IA64 processor
13542 lt_prog_compiler_static='-Bstatic'
13543 fi
13544 lt_prog_compiler_pic='-fPIC'
13545 ;;
13546
13547 amigaos*)
13548 case $host_cpu in
13549 powerpc)
13550 # see comment about AmigaOS4 .so support
13551 lt_prog_compiler_pic='-fPIC'
13552 ;;
13553 m68k)
13554 # FIXME: we need at least 68020 code to build shared libraries, but
13555 # adding the '-m68020' flag to GCC prevents building anything better,
13556 # like '-m68040'.
13557 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13558 ;;
13559 esac
13560 ;;
13561
13562 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13563 # PIC is the default for these OSes.
13564 ;;
13565
13566 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
13567 # This hack is so that the source file can tell whether it is being
13568 # built for inclusion in a dll (and should export symbols for example).
13569 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13570 # (--disable-auto-import) libraries
13571 lt_prog_compiler_pic='-DDLL_EXPORT'
13572 case $host_os in
13573 os2*)
13574 lt_prog_compiler_static='$wl-static'
13575 ;;
13576 esac
13577 ;;
13578
13579 darwin* | rhapsody*)
13580 # PIC is the default on this platform
13581 # Common symbols not allowed in MH_DYLIB files
13582 lt_prog_compiler_pic='-fno-common'
13583 ;;
13584
13585 haiku*)
13586 # PIC is the default for Haiku.
13587 # The "-static" flag exists, but is broken.
13588 lt_prog_compiler_static=
13589 ;;
13590
13591 hpux*)
13592 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13593 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13594 # sets the default TLS model and affects inlining.
13595 case $host_cpu in
13596 hppa*64*)
13597 # +Z the default
13598 ;;
13599 *)
13600 lt_prog_compiler_pic='-fPIC'
13601 ;;
13602 esac
13603 ;;
13604
13605 interix[3-9]*)
13606 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13607 # Instead, we relocate shared libraries at runtime.
13608 ;;
13609
13610 msdosdjgpp*)
13611 # Just because we use GCC doesn't mean we suddenly get shared libraries
13612 # on systems that don't support them.
13613 lt_prog_compiler_can_build_shared=no
13614 enable_shared=no
13615 ;;
13616
13617 *nto* | *qnx*)
13618 # QNX uses GNU C++, but need to define -shared option too, otherwise
13619 # it will coredump.
13620 lt_prog_compiler_pic='-fPIC -shared'
13621 ;;
13622
13623 sysv4*MP*)
13624 if test -d /usr/nec; then
13625 lt_prog_compiler_pic=-Kconform_pic
13626 fi
13627 ;;
13628
13629 *)
13630 lt_prog_compiler_pic='-fPIC'
13631 ;;
13632 esac
13633
13634 case $cc_basename in
13635 nvcc*) # Cuda Compiler Driver 2.2
13636 lt_prog_compiler_wl='-Xlinker '
13637 if test -n "$lt_prog_compiler_pic"; then
13638 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
13639 fi
13640 ;;
13641 esac
13642 else
13643 # PORTME Check for flag to pass linker flags through the system compiler.
13644 case $host_os in
13645 aix*)
13646 lt_prog_compiler_wl='-Wl,'
13647 if test ia64 = "$host_cpu"; then
13648 # AIX 5 now supports IA64 processor
13649 lt_prog_compiler_static='-Bstatic'
13650 else
13651 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13652 fi
13653 ;;
13654
13655 darwin* | rhapsody*)
13656 # PIC is the default on this platform
13657 # Common symbols not allowed in MH_DYLIB files
13658 lt_prog_compiler_pic='-fno-common'
13659 case $cc_basename in
13660 nagfor*)
13661 # NAG Fortran compiler
13662 lt_prog_compiler_wl='-Wl,-Wl,,'
13663 lt_prog_compiler_pic='-PIC'
13664 lt_prog_compiler_static='-Bstatic'
13665 ;;
13666 esac
13667 ;;
13668
13669 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
13670 # This hack is so that the source file can tell whether it is being
13671 # built for inclusion in a dll (and should export symbols for example).
13672 lt_prog_compiler_pic='-DDLL_EXPORT'
13673 case $host_os in
13674 os2*)
13675 lt_prog_compiler_static='$wl-static'
13676 ;;
13677 esac
13678 ;;
13679
13680 hpux9* | hpux10* | hpux11*)
13681 lt_prog_compiler_wl='-Wl,'
13682 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13683 # not for PA HP-UX.
13684 case $host_cpu in
13685 hppa*64*|ia64*)
13686 # +Z the default
13687 ;;
13688 *)
13689 lt_prog_compiler_pic='+Z'
13690 ;;
13691 esac
13692 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13693 lt_prog_compiler_static='$wl-a ${wl}archive'
13694 ;;
13695
13696 irix5* | irix6* | nonstopux*)
13697 lt_prog_compiler_wl='-Wl,'
13698 # PIC (with -KPIC) is the default.
13699 lt_prog_compiler_static='-non_shared'
13700 ;;
13701
13702 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13703 case $cc_basename in
13704 # old Intel for x86_64, which still supported -KPIC.
13705 ecc*)
13706 lt_prog_compiler_wl='-Wl,'
13707 lt_prog_compiler_pic='-KPIC'
13708 lt_prog_compiler_static='-static'
13709 ;;
13710 *flang* | ftn | f18* | f95*)
13711 # Flang compiler.
13712 lt_prog_compiler_wl='-Wl,'
13713 lt_prog_compiler_pic='-fPIC'
13714 lt_prog_compiler_static='-static'
13715 ;;
13716 # icc used to be incompatible with GCC.
13717 # ICC 10 doesn't accept -KPIC any more.
13718 icc* | ifort*)
13719 lt_prog_compiler_wl='-Wl,'
13720 lt_prog_compiler_pic='-fPIC'
13721 lt_prog_compiler_static='-static'
13722 ;;
13723 # Lahey Fortran 8.1.
13724 lf95*)
13725 lt_prog_compiler_wl='-Wl,'
13726 lt_prog_compiler_pic='--shared'
13727 lt_prog_compiler_static='--static'
13728 ;;
13729 nagfor*)
13730 # NAG Fortran compiler
13731 lt_prog_compiler_wl='-Wl,-Wl,,'
13732 lt_prog_compiler_pic='-PIC'
13733 lt_prog_compiler_static='-Bstatic'
13734 ;;
13735 tcc*)
13736 # Fabrice Bellard et al's Tiny C Compiler
13737 lt_prog_compiler_wl='-Wl,'
13738 lt_prog_compiler_pic='-fPIC'
13739 lt_prog_compiler_static='-static'
13740 ;;
13741 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
13742 # Portland Group compilers (*not* the Pentium gcc compiler,
13743 # which looks to be a dead project)
13744 lt_prog_compiler_wl='-Wl,'
13745 lt_prog_compiler_pic='-fpic'
13746 lt_prog_compiler_static='-Bstatic'
13747 ;;
13748 ccc*)
13749 lt_prog_compiler_wl='-Wl,'
13750 # All Alpha code is PIC.
13751 lt_prog_compiler_static='-non_shared'
13752 ;;
13753 xl* | bgxl* | bgf* | mpixl*)
13754 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
13755 lt_prog_compiler_wl='-Wl,'
13756 lt_prog_compiler_pic='-qpic'
13757 lt_prog_compiler_static='-qstaticlink'
13758 ;;
13759 *)
13760 case `$CC -V 2>&1 | $SED 5q` in
13761 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
13762 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13763 lt_prog_compiler_pic='-KPIC'
13764 lt_prog_compiler_static='-Bstatic'
13765 lt_prog_compiler_wl=''
13766 ;;
13767 *Sun\ F* | *Sun*Fortran*)
13768 lt_prog_compiler_pic='-KPIC'
13769 lt_prog_compiler_static='-Bstatic'
13770 lt_prog_compiler_wl='-Qoption ld '
13771 ;;
13772 *Sun\ C*)
13773 # Sun C 5.9
13774 lt_prog_compiler_pic='-KPIC'
13775 lt_prog_compiler_static='-Bstatic'
13776 lt_prog_compiler_wl='-Wl,'
13777 ;;
13778 *Intel*\ [CF]*Compiler*)
13779 lt_prog_compiler_wl='-Wl,'
13780 lt_prog_compiler_pic='-fPIC'
13781 lt_prog_compiler_static='-static'
13782 ;;
13783 *Portland\ Group*)
13784 lt_prog_compiler_wl='-Wl,'
13785 lt_prog_compiler_pic='-fpic'
13786 lt_prog_compiler_static='-Bstatic'
13787 ;;
13788 esac
13789 ;;
13790 esac
13791 ;;
13792
13793 newsos6)
13794 lt_prog_compiler_pic='-KPIC'
13795 lt_prog_compiler_static='-Bstatic'
13796 ;;
13797
13798 *-mlibc)
13799 lt_prog_compiler_wl='-Wl,'
13800 lt_prog_compiler_pic='-fPIC'
13801 lt_prog_compiler_static='-static'
13802 ;;
13803
13804 *nto* | *qnx*)
13805 # QNX uses GNU C++, but need to define -shared option too, otherwise
13806 # it will coredump.
13807 lt_prog_compiler_pic='-fPIC -shared'
13808 ;;
13809
13810 osf3* | osf4* | osf5*)
13811 lt_prog_compiler_wl='-Wl,'
13812 # All OSF/1 code is PIC.
13813 lt_prog_compiler_static='-non_shared'
13814 ;;
13815
13816 rdos*)
13817 lt_prog_compiler_static='-non_shared'
13818 ;;
13819
13820 serenity*)
13821 ;;
13822
13823 solaris*)
13824 lt_prog_compiler_pic='-KPIC'
13825 lt_prog_compiler_static='-Bstatic'
13826 case $cc_basename in
13827 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
13828 lt_prog_compiler_wl='-Qoption ld ';;
13829 *)
13830 lt_prog_compiler_wl='-Wl,';;
13831 esac
13832 ;;
13833
13834 sunos4*)
13835 lt_prog_compiler_wl='-Qoption ld '
13836 lt_prog_compiler_pic='-PIC'
13837 lt_prog_compiler_static='-Bstatic'
13838 ;;
13839
13840 sysv4 | sysv4.2uw2* | sysv4.3*)
13841 lt_prog_compiler_wl='-Wl,'
13842 lt_prog_compiler_pic='-KPIC'
13843 lt_prog_compiler_static='-Bstatic'
13844 ;;
13845
13846 sysv4*MP*)
13847 if test -d /usr/nec; then
13848 lt_prog_compiler_pic='-Kconform_pic'
13849 lt_prog_compiler_static='-Bstatic'
13850 fi
13851 ;;
13852
13853 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13854 lt_prog_compiler_wl='-Wl,'
13855 lt_prog_compiler_pic='-KPIC'
13856 lt_prog_compiler_static='-Bstatic'
13857 ;;
13858
13859 unicos*)
13860 lt_prog_compiler_wl='-Wl,'
13861 lt_prog_compiler_can_build_shared=no
13862 ;;
13863
13864 uts4*)
13865 lt_prog_compiler_pic='-pic'
13866 lt_prog_compiler_static='-Bstatic'
13867 ;;
13868
13869 *)
13870 lt_prog_compiler_can_build_shared=no
13871 ;;
13872 esac
13873 fi
13874
13875 case $host_os in
13876 # For platforms that do not support PIC, -DPIC is meaningless:
13877 *djgpp*)
13878 lt_prog_compiler_pic=
13879 ;;
13880 *)
13881 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13882 ;;
13883 esac
13884
13885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13886 printf %s "checking for $compiler option to produce PIC... " >&6; }
13887 if test ${lt_cv_prog_compiler_pic+y}
13888 then :
13889 printf %s "(cached) " >&6
13890 else case e in #(
13891 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
13892 esac
13893 fi
13894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13895 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
13896 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
13897
13898 #
13899 # Check to make sure the PIC flag actually works.
13900 #
13901 if test -n "$lt_prog_compiler_pic"; then
13902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13903 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
13904 if test ${lt_cv_prog_compiler_pic_works+y}
13905 then :
13906 printf %s "(cached) " >&6
13907 else case e in #(
13908 e) lt_cv_prog_compiler_pic_works=no
13909 ac_outfile=conftest.$ac_objext
13910 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13911 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
13912 # Insert the option either (1) after the last *FLAGS variable, or
13913 # (2) before a word containing "conftest.", or (3) at the end.
13914 # Note that $ac_compile itself does not contain backslashes and begins
13915 # with a dollar sign (not a hyphen), so the echo should work correctly.
13916 # The option is referenced via a variable to avoid confusing sed.
13917 lt_compile=`echo "$ac_compile" | $SED \
13918 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13919 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13920 -e 's:$: $lt_compiler_flag:'`
13921 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13922 (eval "$lt_compile" 2>conftest.err)
13923 ac_status=$?
13924 cat conftest.err >&5
13925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13926 if (exit $ac_status) && test -s "$ac_outfile"; then
13927 # The compiler can only warn and ignore the option if not recognized
13928 # So say no if there are warnings other than the usual output.
13929 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13930 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13931 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13932 lt_cv_prog_compiler_pic_works=yes
13933 fi
13934 fi
13935 $RM conftest*
13936 ;;
13937 esac
13938 fi
13939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13940 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
13941
13942 if test yes = "$lt_cv_prog_compiler_pic_works"; then
13943 case $lt_prog_compiler_pic in
13944 "" | " "*) ;;
13945 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13946 esac
13947 else
13948 lt_prog_compiler_pic=
13949 lt_prog_compiler_can_build_shared=no
13950 fi
13951
13952 fi
13953
13954
13955
13956
13957
13958 #
13959 # Check to make sure the static flag actually works.
13960 #
13961 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13963 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13964 if test ${lt_cv_prog_compiler_static_works+y}
13965 then :
13966 printf %s "(cached) " >&6
13967 else case e in #(
13968 e) lt_cv_prog_compiler_static_works=no
13969 save_LDFLAGS=$LDFLAGS
13970 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13971 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13972 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13973 # The linker can only warn and ignore the option if not recognized
13974 # So say no if there are warnings
13975 if test -s conftest.err; then
13976 # Append any errors to the config.log.
13977 cat conftest.err 1>&5
13978 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13979 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13980 if diff conftest.exp conftest.er2 >/dev/null; then
13981 lt_cv_prog_compiler_static_works=yes
13982 fi
13983 else
13984 lt_cv_prog_compiler_static_works=yes
13985 fi
13986 fi
13987 $RM -r conftest*
13988 LDFLAGS=$save_LDFLAGS
13989 ;;
13990 esac
13991 fi
13992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13993 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
13994
13995 if test yes = "$lt_cv_prog_compiler_static_works"; then
13996 :
13997 else
13998 lt_prog_compiler_static=
13999 fi
14000
14001
14002
14003 ='-fPIC'
14004 archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
14005 archive_expsym_cmds='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib -s EXPORTED_FUNCTIONS=@$output_objdir/$soname.expsym'
14006 archive_cmds_need_lc=no
14007 no_undefined_flag=
14008 ;;
14009
14010 *)
14011 dynamic_linker=no
14012 ;;
14013 esac
14014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14015 printf "%s\n" "$dynamic_linker" >&6; }
14016 test no = "$dynamic_linker" && can_build_shared=no
14017
14018 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14019 if test yes = "$GCC"; then
14020 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14021 fi
14022
14023 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14024 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
14025 fi
14026
14027 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14028 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
14029 fi
14030
14031 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14032 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14033
14034 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14035 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14036
14037 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14038 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
14039
14040
14041
14042
14043
14044
14045
14046
14047
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108
14109
14110
14111
14112
14113
14114
14115
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131
14132
14133
14134
14135
14136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14137 printf %s "checking how to hardcode library paths into programs... " >&6; }
14138 hardcode_action=
14139 if test -n "$hardcode_libdir_flag_spec" ||
14140 test -n "$runpath_var" ||
14141 test yes = "$hardcode_automatic"; then
14142
14143 # We can hardcode non-existent directories.
14144 if test no != "$hardcode_direct" &&
14145 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14146 # have to relink, otherwise we might link with an installed library
14147 # when we should be linking with a yet-to-be-installed one
14148 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
14149 test no != "$hardcode_minus_L"; then
14150 # Linking always hardcodes the temporary library directory.
14151 hardcode_action=relink
14152 else
14153 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14154 hardcode_action=immediate
14155 fi
14156 else
14157 # We cannot hardcode anything, or else we can only hardcode existing
14158 # directories.
14159 hardcode_action=unsupported
14160 fi
14161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14162 printf "%s\n" "$hardcode_action" >&6; }
14163
14164 if test relink = "$hardcode_action" ||
14165 test yes = "$inherit_rpath"; then
14166 # Fast installation is not supported
14167 enable_fast_install=no
14168 elif test yes = "$shlibpath_overrides_runpath" ||
14169 test no = "$enable_shared"; then
14170 # Fast installation is not necessary
14171 enable_fast_install=needless
14172 fi
14173
14174
14175
14176
14177
14178
14179 if test yes != "$enable_dlopen"; then
14180 enable_dlopen=unknown
14181 enable_dlopen_self=unknown
14182 enable_dlopen_self_static=unknown
14183 else
14184 lt_cv_dlopen=no
14185 lt_cv_dlopen_libs=
14186
14187 case $host_os in
14188 beos*)
14189 lt_cv_dlopen=load_add_on
14190 lt_cv_dlopen_libs=
14191 lt_cv_dlopen_self=yes
14192 ;;
14193
14194 mingw* | windows* | pw32* | cegcc*)
14195 lt_cv_dlopen=LoadLibrary
14196 lt_cv_dlopen_libs=
14197 ;;
14198
14199 cygwin*)
14200 lt_cv_dlopen=dlopen
14201 lt_cv_dlopen_libs=
14202 ;;
14203
14204 darwin*)
14205 # if libdl is installed we need to link against it
14206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14207 printf %s "checking for dlopen in -ldl... " >&6; }
14208 if test ${ac_cv_lib_dl_dlopen+y}
14209 then :
14210 printf %s "(cached) " >&6
14211 else case e in #(
14212 e) ac_check_lib_save_LIBS=$LIBS
14213 LIBS="-ldl $LIBS"
14214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14215 /* end confdefs.h. */
14216
14217 /* Override any GCC internal prototype to avoid an error.
14218 Use char because int might match the return type of a GCC
14219 builtin and then its argument prototype would still apply.
14220 The 'extern "C"' is for builds by C++ compilers;
14221 although this is not generally supported in C code supporting it here
14222 has little cost and some practical benefit (sr 110532). */
14223 #ifdef __cplusplus
14224 extern "C"
14225 #endif
14226 char dlopen (void);
14227 int
14228 main (void)
14229 {
14230 return dlopen ();
14231 ;
14232 return 0;
14233 }
14234 _ACEOF
14235 if ac_fn_c_try_link "$LINENO"
14236 then :
14237 ac_cv_lib_dl_dlopen=yes
14238 else case e in #(
14239 e) ac_cv_lib_dl_dlopen=no ;;
14240 esac
14241 fi
14242 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14243 conftest$ac_exeext conftest.$ac_ext
14244 LIBS=$ac_check_lib_save_LIBS ;;
14245 esac
14246 fi
14247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14248 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
14249 if test "x$ac_cv_lib_dl_dlopen" = xyes
14250 then :
14251 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14252 else case e in #(
14253 e)
14254 lt_cv_dlopen=dyld
14255 lt_cv_dlopen_libs=
14256 lt_cv_dlopen_self=yes
14257 ;;
14258 esac
14259 fi
14260
14261 ;;
14262
14263 tpf*)
14264 # Don't try to run any link tests for TPF. We know it's impossible
14265 # because TPF is a cross-compiler, and we know how we open DSOs.
14266 lt_cv_dlopen=dlopen
14267 lt_cv_dlopen_libs=
14268 lt_cv_dlopen_self=no
14269 ;;
14270
14271 *)
14272 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14273 if test "x$ac_cv_func_shl_load" = xyes
14274 then :
14275 lt_cv_dlopen=shl_load
14276 else case e in #(
14277 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14278 printf %s "checking for shl_load in -ldld... " >&6; }
14279 if test ${ac_cv_lib_dld_shl_load+y}
14280 then :
14281 printf %s "(cached) " >&6
14282 else case e in #(
14283 e) ac_check_lib_save_LIBS=$LIBS
14284 LIBS="-ldld $LIBS"
14285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14286 /* end confdefs.h. */
14287
14288 /* Override any GCC internal prototype to avoid an error.
14289 Use char because int might match the return type of a GCC
14290 builtin and then its argument prototype would still apply.
14291 The 'extern "C"' is for builds by C++ compilers;
14292 although this is not generally supported in C code supporting it here
14293 has little cost and some practical benefit (sr 110532). */
14294 #ifdef __cplusplus
14295 extern "C"
14296 #endif
14297 char shl_load (void);
14298 int
14299 main (void)
14300 {
14301 return shl_load ();
14302 ;
14303 return 0;
14304 }
14305 _ACEOF
14306 if ac_fn_c_try_link "$LINENO"
14307 then :
14308 ac_cv_lib_dld_shl_load=yes
14309 else case e in #(
14310 e) ac_cv_lib_dld_shl_load=no ;;
14311 esac
14312 fi
14313 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14314 conftest$ac_exeext conftest.$ac_ext
14315 LIBS=$ac_check_lib_save_LIBS ;;
14316 esac
14317 fi
14318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14319 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
14320 if test "x$ac_cv_lib_dld_shl_load" = xyes
14321 then :
14322 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
14323 else case e in #(
14324 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14325 if test "x$ac_cv_func_dlopen" = xyes
14326 then :
14327 lt_cv_dlopen=dlopen
14328 else case e in #(
14329 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14330 printf %s "checking for dlopen in -ldl... " >&6; }
14331 if test ${ac_cv_lib_dl_dlopen+y}
14332 then :
14333 printf %s "(cached) " >&6
14334 else case e in #(
14335 e) ac_check_lib_save_LIBS=$LIBS
14336 LIBS="-ldl $LIBS"
14337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14338 /* end confdefs.h. */
14339
14340 /* Override any GCC internal prototype to avoid an error.
14341 Use char because int might match the return type of a GCC
14342 builtin and then its argument prototype would still apply.
14343 The 'extern "C"' is for builds by C++ compilers;
14344 although this is not generally supported in C code supporting it here
14345 has little cost and some practical benefit (sr 110532). */
14346 #ifdef __cplusplus
14347 extern "C"
14348 #endif
14349 char dlopen (void);
14350 int
14351 main (void)
14352 {
14353 return dlopen ();
14354 ;
14355 return 0;
14356 }
14357 _ACEOF
14358 if ac_fn_c_try_link "$LINENO"
14359 then :
14360 ac_cv_lib_dl_dlopen=yes
14361 else case e in #(
14362 e) ac_cv_lib_dl_dlopen=no ;;
14363 esac
14364 fi
14365 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14366 conftest$ac_exeext conftest.$ac_ext
14367 LIBS=$ac_check_lib_save_LIBS ;;
14368 esac
14369 fi
14370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14371 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
14372 if test "x$ac_cv_lib_dl_dlopen" = xyes
14373 then :
14374 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14375 else case e in #(
14376 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14377 printf %s "checking for dlopen in -lsvld... " >&6; }
14378 if test ${ac_cv_lib_svld_dlopen+y}
14379 then :
14380 printf %s "(cached) " >&6
14381 else case e in #(
14382 e) ac_check_lib_save_LIBS=$LIBS
14383 LIBS="-lsvld $LIBS"
14384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14385 /* end confdefs.h. */
14386
14387 /* Override any GCC internal prototype to avoid an error.
14388 Use char because int might match the return type of a GCC
14389 builtin and then its argument prototype would still apply.
14390 The 'extern "C"' is for builds by C++ compilers;
14391 although this is not generally supported in C code supporting it here
14392 has little cost and some practical benefit (sr 110532). */
14393 #ifdef __cplusplus
14394 extern "C"
14395 #endif
14396 char dlopen (void);
14397 int
14398 main (void)
14399 {
14400 return dlopen ();
14401 ;
14402 return 0;
14403 }
14404 _ACEOF
14405 if ac_fn_c_try_link "$LINENO"
14406 then :
14407 ac_cv_lib_svld_dlopen=yes
14408 else case e in #(
14409 e) ac_cv_lib_svld_dlopen=no ;;
14410 esac
14411 fi
14412 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14413 conftest$ac_exeext conftest.$ac_ext
14414 LIBS=$ac_check_lib_save_LIBS ;;
14415 esac
14416 fi
14417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14418 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
14419 if test "x$ac_cv_lib_svld_dlopen" = xyes
14420 then :
14421 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
14422 else case e in #(
14423 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14424 printf %s "checking for dld_link in -ldld... " >&6; }
14425 if test ${ac_cv_lib_dld_dld_link+y}
14426 then :
14427 printf %s "(cached) " >&6
14428 else case e in #(
14429 e) ac_check_lib_save_LIBS=$LIBS
14430 LIBS="-ldld $LIBS"
14431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14432 /* end confdefs.h. */
14433
14434 /* Override any GCC internal prototype to avoid an error.
14435 Use char because int might match the return type of a GCC
14436 builtin and then its argument prototype would still apply.
14437 The 'extern "C"' is for builds by C++ compilers;
14438 although this is not generally supported in C code supporting it here
14439 has little cost and some practical benefit (sr 110532). */
14440 #ifdef __cplusplus
14441 extern "C"
14442 #endif
14443 char dld_link (void);
14444 int
14445 main (void)
14446 {
14447 return dld_link ();
14448 ;
14449 return 0;
14450 }
14451 _ACEOF
14452 if ac_fn_c_try_link "$LINENO"
14453 then :
14454 ac_cv_lib_dld_dld_link=yes
14455 else case e in #(
14456 e) ac_cv_lib_dld_dld_link=no ;;
14457 esac
14458 fi
14459 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14460 conftest$ac_exeext conftest.$ac_ext
14461 LIBS=$ac_check_lib_save_LIBS ;;
14462 esac
14463 fi
14464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14465 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
14466 if test "x$ac_cv_lib_dld_dld_link" = xyes
14467 then :
14468 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
14469 fi
14470
14471 ;;
14472 esac
14473 fi
14474
14475 ;;
14476 esac
14477 fi
14478
14479 ;;
14480 esac
14481 fi
14482
14483 ;;
14484 esac
14485 fi
14486
14487 ;;
14488 esac
14489 fi
14490
14491 ;;
14492 esac
14493
14494 if test no = "$lt_cv_dlopen"; then
14495 enable_dlopen=no
14496 else
14497 enable_dlopen=yes
14498 fi
14499
14500 case $lt_cv_dlopen in
14501 dlopen)
14502 save_CPPFLAGS=$CPPFLAGS
14503 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14504
14505 save_LDFLAGS=$LDFLAGS
14506 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14507
14508 save_LIBS=$LIBS
14509 LIBS="$lt_cv_dlopen_libs $LIBS"
14510
14511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14512 printf %s "checking whether a program can dlopen itself... " >&6; }
14513 if test ${lt_cv_dlopen_self+y}
14514 then :
14515 printf %s "(cached) " >&6
14516 else case e in #(
14517 e) if test yes = "$cross_compiling"; then :
14518 lt_cv_dlopen_self=cross
14519 else
14520 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14521 lt_status=$lt_dlunknown
14522 cat > conftest.$ac_ext <<_LT_EOF
14523 #line $LINENO "configure"
14524 #include "confdefs.h"
14525
14526 #if HAVE_DLFCN_H
14527 #include <dlfcn.h>
14528 #endif
14529
14530 #include <stdio.h>
14531
14532 #ifdef RTLD_GLOBAL
14533 # define LT_DLGLOBAL RTLD_GLOBAL
14534 #else
14535 # ifdef DL_GLOBAL
14536 # define LT_DLGLOBAL DL_GLOBAL
14537 # else
14538 # define LT_DLGLOBAL 0
14539 # endif
14540 #endif
14541
14542 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14543 find out it does not work in some platform. */
14544 #ifndef LT_DLLAZY_OR_NOW
14545 # ifdef RTLD_LAZY
14546 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14547 # else
14548 # ifdef DL_LAZY
14549 # define LT_DLLAZY_OR_NOW DL_LAZY
14550 # else
14551 # ifdef RTLD_NOW
14552 # define LT_DLLAZY_OR_NOW RTLD_NOW
14553 # else
14554 # ifdef DL_NOW
14555 # define LT_DLLAZY_OR_NOW DL_NOW
14556 # else
14557 # define LT_DLLAZY_OR_NOW 0
14558 # endif
14559 # endif
14560 # endif
14561 # endif
14562 #endif
14563
14564 /* When -fvisibility=hidden is used, assume the code has been annotated
14565 correspondingly for the symbols needed. */
14566 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14567 int fnord (void) __attribute__((visibility("default")));
14568 #endif
14569
14570 int fnord (void) { return 42; }
14571 int main (void)
14572 {
14573 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14574 int status = $lt_dlunknown;
14575
14576 if (self)
14577 {
14578 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14579 else
14580 {
14581 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14582 else puts (dlerror ());
14583 }
14584 /* dlclose (self); */
14585 }
14586 else
14587 puts (dlerror ());
14588
14589 return status;
14590 }
14591 _LT_EOF
14592 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14593 (eval $ac_link) 2>&5
14594 ac_status=$?
14595 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14596 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14597 (./conftest; exit; ) >&5 2>/dev/null
14598 lt_status=$?
14599 case x$lt_status in
14600 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14601 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14602 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14603 esac
14604 else :
14605 # compilation failed
14606 lt_cv_dlopen_self=no
14607 fi
14608 fi
14609 rm -fr conftest*
14610
14611 ;;
14612 esac
14613 fi
14614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14615 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
14616
14617 if test yes = "$lt_cv_dlopen_self"; then
14618 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14620 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
14621 if test ${lt_cv_dlopen_self_static+y}
14622 then :
14623 printf %s "(cached) " >&6
14624 else case e in #(
14625 e) if test yes = "$cross_compiling"; then :
14626 lt_cv_dlopen_self_static=cross
14627 else
14628 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14629 lt_status=$lt_dlunknown
14630 cat > conftest.$ac_ext <<_LT_EOF
14631 #line $LINENO "configure"
14632 #include "confdefs.h"
14633
14634 #if HAVE_DLFCN_H
14635 #include <dlfcn.h>
14636 #endif
14637
14638 #include <stdio.h>
14639
14640 #ifdef RTLD_GLOBAL
14641 # define LT_DLGLOBAL RTLD_GLOBAL
14642 #else
14643 # ifdef DL_GLOBAL
14644 # define LT_DLGLOBAL DL_GLOBAL
14645 # else
14646 # define LT_DLGLOBAL 0
14647 # endif
14648 #endif
14649
14650 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14651 find out it does not work in some platform. */
14652 #ifndef LT_DLLAZY_OR_NOW
14653 # ifdef RTLD_LAZY
14654 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14655 # else
14656 # ifdef DL_LAZY
14657 # define LT_DLLAZY_OR_NOW DL_LAZY
14658 # else
14659 # ifdef RTLD_NOW
14660 # define LT_DLLAZY_OR_NOW RTLD_NOW
14661 # else
14662 # ifdef DL_NOW
14663 # define LT_DLLAZY_OR_NOW DL_NOW
14664 # else
14665 # define LT_DLLAZY_OR_NOW 0
14666 # endif
14667 # endif
14668 # endif
14669 # endif
14670 #endif
14671
14672 /* When -fvisibility=hidden is used, assume the code has been annotated
14673 correspondingly for the symbols needed. */
14674 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14675 int fnord (void) __attribute__((visibility("default")));
14676 #endif
14677
14678 int fnord (void) { return 42; }
14679 int main (void)
14680 {
14681 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14682 int status = $lt_dlunknown;
14683
14684 if (self)
14685 {
14686 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14687 else
14688 {
14689 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14690 else puts (dlerror ());
14691 }
14692 /* dlclose (self); */
14693 }
14694 else
14695 puts (dlerror ());
14696
14697 return status;
14698 }
14699 _LT_EOF
14700 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14701 (eval $ac_link) 2>&5
14702 ac_status=$?
14703 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14704 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14705 (./conftest; exit; ) >&5 2>/dev/null
14706 lt_status=$?
14707 case x$lt_status in
14708 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14709 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14710 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14711 esac
14712 else :
14713 # compilation failed
14714 lt_cv_dlopen_self_static=no
14715 fi
14716 fi
14717 rm -fr conftest*
14718
14719 ;;
14720 esac
14721 fi
14722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14723 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
14724 fi
14725
14726 CPPFLAGS=$save_CPPFLAGS
14727 LDFLAGS=$save_LDFLAGS
14728 LIBS=$save_LIBS
14729 ;;
14730 esac
14731
14732 case $lt_cv_dlopen_self in
14733 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14734 *) enable_dlopen_self=unknown ;;
14735 esac
14736
14737 case $lt_cv_dlopen_self_static in
14738 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14739 *) enable_dlopen_self_static=unknown ;;
14740 esac
14741 fi
14742
14743
14744
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759 striplib=
14760 old_striplib=
14761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14762 printf %s "checking whether stripping libraries is possible... " >&6; }
14763 if test -z "$STRIP"; then
14764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14765 printf "%s\n" "no" >&6; }
14766 else
14767 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14768 old_striplib="$STRIP --strip-debug"
14769 striplib="$STRIP --strip-unneeded"
14770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14771 printf "%s\n" "yes" >&6; }
14772 else
14773 case $host_os in
14774 darwin*)
14775 # FIXME - insert some real tests, host_os isn't really good enough
14776 striplib="$STRIP -x"
14777 old_striplib="$STRIP -S"
14778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14779 printf "%s\n" "yes" >&6; }
14780 ;;
14781 freebsd*)
14782 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
14783 old_striplib="$STRIP --strip-debug"
14784 striplib="$STRIP --strip-unneeded"
14785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14786 printf "%s\n" "yes" >&6; }
14787 else
14788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14789 printf "%s\n" "no" >&6; }
14790 fi
14791 ;;
14792 *)
14793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14794 printf "%s\n" "no" >&6; }
14795 ;;
14796 esac
14797 fi
14798 fi
14799
14800
14801
14802
14803
14804
14805
14806
14807
14808
14809
14810
14811 # Report what library types will actually be built
14812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14813 printf %s "checking if libtool supports shared libraries... " >&6; }
14814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14815 printf "%s\n" "$can_build_shared" >&6; }
14816
14817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14818 printf %s "checking whether to build shared libraries... " >&6; }
14819 test no = "$can_build_shared" && enable_shared=no
14820
14821 # On AIX, shared libraries and static libraries use the same namespace, and
14822 # are all built from PIC.
14823 case $host_os in
14824 aix3*)
14825 test yes = "$enable_shared" && enable_static=no
14826 if test -n "$RANLIB"; then
14827 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14828 postinstall_cmds='$RANLIB $lib'
14829 fi
14830 ;;
14831
14832 aix[4-9]*)
14833 if test ia64 != "$host_cpu"; then
14834 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14835 yes,aix,yes) ;; # shared object as lib.so file only
14836 yes,svr4,*) ;; # shared object as lib.so archive member only
14837 yes,*) enable_static=no ;; # shared object in lib.a archive as well
14838 esac
14839 fi
14840 ;;
14841 esac
14842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14843 printf "%s\n" "$enable_shared" >&6; }
14844
14845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14846 printf %s "checking whether to build static libraries... " >&6; }
14847 # Make sure either enable_shared or enable_static is yes.
14848 test yes = "$enable_shared" || enable_static=yes
14849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14850 printf "%s\n" "$enable_static" >&6; }
14851
14852
14853
14854
14855 fi
14856 ac_ext=c
14857 ac_cpp='$CPP $CPPFLAGS'
14858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14861
14862 CC=$lt_save_CC
14863
14864
14865
14866
14867
14868
14869
14870
14871
14872
14873
14874
14875
14876
14877
14878 ac_config_commands="$ac_config_commands libtool"
14879
14880
14881
14882
14883 # Only expand once:
14884
14885
14886 # (end lt_init)
14887 # Check whether --enable-largefile was given.
14888 if test ${enable_largefile+y}
14889 then :
14890 enableval=$enable_largefile;
14891 fi
14892 if test "$enable_largefile,$enable_year2038" != no,no
14893 then :
14894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5
14895 printf %s "checking for $CC option to enable large file support... " >&6; }
14896 if test ${ac_cv_sys_largefile_opts+y}
14897 then :
14898 printf %s "(cached) " >&6
14899 else case e in #(
14900 e) ac_save_CC="$CC"
14901 ac_opt_found=no
14902 for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do
14903 if test x"$ac_opt" != x"none needed"
14904 then :
14905 CC="$ac_save_CC $ac_opt"
14906 fi
14907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14908 /* end confdefs.h. */
14909 #include <sys/types.h>
14910 #ifndef FTYPE
14911 # define FTYPE off_t
14912 #endif
14913 /* Check that FTYPE can represent 2**63 - 1 correctly.
14914 We can't simply define LARGE_FTYPE to be 9223372036854775807,
14915 since some C++ compilers masquerading as C compilers
14916 incorrectly reject 9223372036854775807. */
14917 #define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31))
14918 int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721
14919 && LARGE_FTYPE % 2147483647 == 1)
14920 ? 1 : -1];
14921 int
14922 main (void)
14923 {
14924
14925 ;
14926 return 0;
14927 }
14928 _ACEOF
14929 if ac_fn_c_try_compile "$LINENO"
14930 then :
14931 if test x"$ac_opt" = x"none needed"
14932 then :
14933 # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t.
14934 CC="$CC -DFTYPE=ino_t"
14935 if ac_fn_c_try_compile "$LINENO"
14936 then :
14937
14938 else case e in #(
14939 e) CC="$CC -D_FILE_OFFSET_BITS=64"
14940 if ac_fn_c_try_compile "$LINENO"
14941 then :
14942 ac_opt='-D_FILE_OFFSET_BITS=64'
14943 fi
14944 rm -f core conftest.err conftest.$ac_objext conftest.beam ;;
14945 esac
14946 fi
14947 rm -f core conftest.err conftest.$ac_objext conftest.beam
14948 fi
14949 ac_cv_sys_largefile_opts=$ac_opt
14950 ac_opt_found=yes
14951 fi
14952 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14953 test $ac_opt_found = no || break
14954 done
14955 CC="$ac_save_CC"
14956
14957 test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;;
14958 esac
14959 fi
14960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5
14961 printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; }
14962
14963 ac_have_largefile=yes
14964 case $ac_cv_sys_largefile_opts in #(
14965 "none needed") :
14966 ;; #(
14967 "supported through gnulib") :
14968 ;; #(
14969 "support not detected") :
14970 ac_have_largefile=no ;; #(
14971 "-D_FILE_OFFSET_BITS=64") :
14972
14973 printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
14974 ;; #(
14975 "-D_LARGE_FILES=1") :
14976
14977 printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h
14978 ;; #(
14979 "-n32") :
14980 CC="$CC -n32" ;; #(
14981 *) :
14982 as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;;
14983 esac
14984
14985 if test "$enable_year2038" != no
14986 then :
14987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option for timestamps after 2038" >&5
14988 printf %s "checking for $CC option for timestamps after 2038... " >&6; }
14989 if test ${ac_cv_sys_year2038_opts+y}
14990 then :
14991 printf %s "(cached) " >&6
14992 else case e in #(
14993 e) ac_save_CPPFLAGS="$CPPFLAGS"
14994 ac_opt_found=no
14995 for ac_opt in "none needed" "-D_TIME_BITS=64" "-D__MINGW_USE_VC2005_COMPAT" "-U_USE_32_BIT_TIME_T -D__MINGW_USE_VC2005_COMPAT"; do
14996 if test x"$ac_opt" != x"none needed"
14997 then :
14998 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
14999 fi
15000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15001 /* end confdefs.h. */
15002
15003 #include <time.h>
15004 /* Check that time_t can represent 2**32 - 1 correctly. */
15005 #define LARGE_TIME_T \\
15006 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
15007 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
15008 && LARGE_TIME_T % 65537 == 0)
15009 ? 1 : -1];
15010
15011 int
15012 main (void)
15013 {
15014
15015 ;
15016 return 0;
15017 }
15018 _ACEOF
15019 if ac_fn_c_try_compile "$LINENO"
15020 then :
15021 ac_cv_sys_year2038_opts="$ac_opt"
15022 ac_opt_found=yes
15023 fi
15024 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15025 test $ac_opt_found = no || break
15026 done
15027 CPPFLAGS="$ac_save_CPPFLAGS"
15028 test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;;
15029 esac
15030 fi
15031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5
15032 printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; }
15033
15034 ac_have_year2038=yes
15035 case $ac_cv_sys_year2038_opts in #(
15036 "none needed") :
15037 ;; #(
15038 "support not detected") :
15039 ac_have_year2038=no ;; #(
15040 "-D_TIME_BITS=64") :
15041
15042 printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h
15043 ;; #(
15044 "-D__MINGW_USE_VC2005_COMPAT") :
15045
15046 printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h
15047 ;; #(
15048 "-U_USE_32_BIT_TIME_T"*) :
15049 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
15050 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
15051 as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It
15052 will stop working after mid-January 2038. Remove
15053 _USE_32BIT_TIME_T from the compiler flags.
15054 See 'config.log' for more details" "$LINENO" 5; } ;; #(
15055 *) :
15056 as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;;
15057 esac
15058
15059 fi
15060
15061 fi
15062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for declarations of fseeko and ftello" >&5
15063 printf %s "checking for declarations of fseeko and ftello... " >&6; }
15064 if test ${ac_cv_func_fseeko_ftello+y}
15065 then :
15066 printf %s "(cached) " >&6
15067 else case e in #(
15068 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15069 /* end confdefs.h. */
15070
15071 #if defined __hpux && !defined _LARGEFILE_SOURCE
15072 # include <limits.h>
15073 # if LONG_MAX >> 31 == 0
15074 # error "32-bit HP-UX 11/ia64 needs _LARGEFILE_SOURCE for fseeko in C++"
15075 # endif
15076 #endif
15077 #include <sys/types.h> /* for off_t */
15078 #include <stdio.h>
15079
15080 int
15081 main (void)
15082 {
15083
15084 int (*fp1) (FILE *, off_t, int) = fseeko;
15085 off_t (*fp2) (FILE *) = ftello;
15086 return fseeko (stdin, 0, 0)
15087 && fp1 (stdin, 0, 0)
15088 && ftello (stdin) >= 0
15089 && fp2 (stdin) >= 0;
15090
15091 ;
15092 return 0;
15093 }
15094 _ACEOF
15095 if ac_fn_c_try_compile "$LINENO"
15096 then :
15097 ac_cv_func_fseeko_ftello=yes
15098 else case e in #(
15099 e) ac_save_CPPFLAGS="$CPPFLAGS"
15100 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE=1"
15101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15102 /* end confdefs.h. */
15103
15104 #if defined __hpux && !defined _LARGEFILE_SOURCE
15105 # include <limits.h>
15106 # if LONG_MAX >> 31 == 0
15107 # error "32-bit HP-UX 11/ia64 needs _LARGEFILE_SOURCE for fseeko in C++"
15108 # endif
15109 #endif
15110 #include <sys/types.h> /* for off_t */
15111 #include <stdio.h>
15112
15113 int
15114 main (void)
15115 {
15116
15117 int (*fp1) (FILE *, off_t, int) = fseeko;
15118 off_t (*fp2) (FILE *) = ftello;
15119 return fseeko (stdin, 0, 0)
15120 && fp1 (stdin, 0, 0)
15121 && ftello (stdin) >= 0
15122 && fp2 (stdin) >= 0;
15123
15124 ;
15125 return 0;
15126 }
15127 _ACEOF
15128 if ac_fn_c_try_compile "$LINENO"
15129 then :
15130 ac_cv_func_fseeko_ftello="need _LARGEFILE_SOURCE"
15131 else case e in #(
15132 e) ac_cv_func_fseeko_ftello=no ;;
15133 esac
15134 fi
15135 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15136 esac
15137 fi
15138 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15139 esac
15140 fi
15141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fseeko_ftello" >&5
15142 printf "%s\n" "$ac_cv_func_fseeko_ftello" >&6; }
15143 if test "$ac_cv_func_fseeko_ftello" != no
15144 then :
15145
15146 printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h
15147
15148 fi
15149 if test "$ac_cv_func_fseeko_ftello" = "need _LARGEFILE_SOURCE"
15150 then :
15151
15152 printf "%s\n" "#define _LARGEFILE_SOURCE 1" >>confdefs.h
15153
15154 fi
15155
15156 ac_header_dirent=no
15157 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15158 as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | sed "$as_sed_sh"`
15159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
15160 printf %s "checking for $ac_hdr that defines DIR... " >&6; }
15161 if eval test \${$as_ac_Header+y}
15162 then :
15163 printf %s "(cached) " >&6
15164 else case e in #(
15165 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15166 /* end confdefs.h. */
15167 #include <sys/types.h>
15168 #include <$ac_hdr>
15169
15170 int
15171 main (void)
15172 {
15173 if ((DIR *) 0)
15174 return 0;
15175 ;
15176 return 0;
15177 }
15178 _ACEOF
15179 if ac_fn_c_try_compile "$LINENO"
15180 then :
15181 eval "$as_ac_Header=yes"
15182 else case e in #(
15183 e) eval "$as_ac_Header=no" ;;
15184 esac
15185 fi
15186 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15187 esac
15188 fi
15189 eval ac_res=\$$as_ac_Header
15190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15191 printf "%s\n" "$ac_res" >&6; }
15192 if eval test \"x\$"$as_ac_Header"\" = x"yes"
15193 then :
15194 cat >>confdefs.h <<_ACEOF
15195 #define `printf "%s\n" "HAVE_$ac_hdr" | sed "$as_sed_cpp"` 1
15196 _ACEOF
15197
15198 ac_header_dirent=$ac_hdr; break
15199 fi
15200
15201 done
15202 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15203 if test $ac_header_dirent = dirent.h; then
15204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
15205 printf %s "checking for library containing opendir... " >&6; }
15206 if test ${ac_cv_search_opendir+y}
15207 then :
15208 printf %s "(cached) " >&6
15209 else case e in #(
15210 e) ac_func_search_save_LIBS=$LIBS
15211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15212 /* end confdefs.h. */
15213
15214 /* Override any GCC internal prototype to avoid an error.
15215 Use char because int might match the return type of a GCC
15216 builtin and then its argument prototype would still apply.
15217 The 'extern "C"' is for builds by C++ compilers;
15218 although this is not generally supported in C code supporting it here
15219 has little cost and some practical benefit (sr 110532). */
15220 #ifdef __cplusplus
15221 extern "C"
15222 #endif
15223 char opendir (void);
15224 int
15225 main (void)
15226 {
15227 return opendir ();
15228 ;
15229 return 0;
15230 }
15231 _ACEOF
15232 for ac_lib in '' dir
15233 do
15234 if test -z "$ac_lib"; then
15235 ac_res="none required"
15236 else
15237 ac_res=-l$ac_lib
15238 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15239 fi
15240 if ac_fn_c_try_link "$LINENO"
15241 then :
15242 ac_cv_search_opendir=$ac_res
15243 fi
15244 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15245 conftest$ac_exeext
15246 if test ${ac_cv_search_opendir+y}
15247 then :
15248 break
15249 fi
15250 done
15251 if test ${ac_cv_search_opendir+y}
15252 then :
15253
15254 else case e in #(
15255 e) ac_cv_search_opendir=no ;;
15256 esac
15257 fi
15258 rm conftest.$ac_ext
15259 LIBS=$ac_func_search_save_LIBS ;;
15260 esac
15261 fi
15262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15263 printf "%s\n" "$ac_cv_search_opendir" >&6; }
15264 ac_res=$ac_cv_search_opendir
15265 if test "$ac_res" != no
15266 then :
15267 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15268
15269 fi
15270
15271 else
15272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
15273 printf %s "checking for library containing opendir... " >&6; }
15274 if test ${ac_cv_search_opendir+y}
15275 then :
15276 printf %s "(cached) " >&6
15277 else case e in #(
15278 e) ac_func_search_save_LIBS=$LIBS
15279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15280 /* end confdefs.h. */
15281
15282 /* Override any GCC internal prototype to avoid an error.
15283 Use char because int might match the return type of a GCC
15284 builtin and then its argument prototype would still apply.
15285 The 'extern "C"' is for builds by C++ compilers;
15286 although this is not generally supported in C code supporting it here
15287 has little cost and some practical benefit (sr 110532). */
15288 #ifdef __cplusplus
15289 extern "C"
15290 #endif
15291 char opendir (void);
15292 int
15293 main (void)
15294 {
15295 return opendir ();
15296 ;
15297 return 0;
15298 }
15299 _ACEOF
15300 for ac_lib in '' x
15301 do
15302 if test -z "$ac_lib"; then
15303 ac_res="none required"
15304 else
15305 ac_res=-l$ac_lib
15306 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15307 fi
15308 if ac_fn_c_try_link "$LINENO"
15309 then :
15310 ac_cv_search_opendir=$ac_res
15311 fi
15312 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15313 conftest$ac_exeext
15314 if test ${ac_cv_search_opendir+y}
15315 then :
15316 break
15317 fi
15318 done
15319 if test ${ac_cv_search_opendir+y}
15320 then :
15321
15322 else case e in #(
15323 e) ac_cv_search_opendir=no ;;
15324 esac
15325 fi
15326 rm conftest.$ac_ext
15327 LIBS=$ac_func_search_save_LIBS ;;
15328 esac
15329 fi
15330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15331 printf "%s\n" "$ac_cv_search_opendir" >&6; }
15332 ac_res=$ac_cv_search_opendir
15333 if test "$ac_res" != no
15334 then :
15335 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15336
15337 fi
15338
15339 fi
15340
15341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
15342 printf %s "checking whether closedir returns void... " >&6; }
15343 if test ${ac_cv_func_closedir_void+y}
15344 then :
15345 printf %s "(cached) " >&6
15346 else case e in #(
15347 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15348 /* end confdefs.h. */
15349
15350 #include <$ac_header_dirent>
15351
15352 int
15353 main (void)
15354 {
15355
15356 return closedir(0);
15357
15358 ;
15359 return 0;
15360 }
15361 _ACEOF
15362 if ac_fn_c_try_compile "$LINENO"
15363 then :
15364 ac_cv_func_closedir_void=no
15365 else case e in #(
15366 e) ac_cv_func_closedir_void=yes ;;
15367 esac
15368 fi
15369 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15370 esac
15371 fi
15372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
15373 printf "%s\n" "$ac_cv_func_closedir_void" >&6; }
15374 if test $ac_cv_func_closedir_void = yes; then
15375
15376 printf "%s\n" "#define CLOSEDIR_VOID 1" >>confdefs.h
15377
15378 fi
15379
15380 ac_fn_c_check_header_compile "$LINENO" "assert.h" "ac_cv_header_assert_h" "$ac_includes_default"
15381 if test "x$ac_cv_header_assert_h" = xyes
15382 then :
15383 printf "%s\n" "#define HAVE_ASSERT_H 1" >>confdefs.h
15384
15385 fi
15386 ac_fn_c_check_header_compile "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
15387 if test "x$ac_cv_header_float_h" = xyes
15388 then :
15389 printf "%s\n" "#define HAVE_FLOAT_H 1" >>confdefs.h
15390
15391 fi
15392 ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
15393 if test "x$ac_cv_header_limits_h" = xyes
15394 then :
15395 printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
15396
15397 fi
15398 ac_fn_c_check_header_compile "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default"
15399 if test "x$ac_cv_header_pwd_h" = xyes
15400 then :
15401 printf "%s\n" "#define HAVE_PWD_H 1" >>confdefs.h
15402
15403 fi
15404 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
15405 if test "x$ac_cv_header_stdlib_h" = xyes
15406 then :
15407 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
15408
15409 fi
15410 ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
15411 if test "x$ac_cv_header_sys_param_h" = xyes
15412 then :
15413 printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
15414
15415 fi
15416
15417 ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
15418 if test "x$ac_cv_func_putenv" = xyes
15419 then :
15420 printf "%s\n" "#define HAVE_PUTENV 1" >>confdefs.h
15421
15422 fi
15423
15424 ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
15425 if test "x$ac_cv_func_getcwd" = xyes
15426 then :
15427 printf "%s\n" "#define HAVE_GETCWD 1" >>confdefs.h
15428
15429 fi
15430 ac_fn_c_check_func "$LINENO" "memcmp" "ac_cv_func_memcmp"
15431 if test "x$ac_cv_func_memcmp" = xyes
15432 then :
15433 printf "%s\n" "#define HAVE_MEMCMP 1" >>confdefs.h
15434
15435 fi
15436 ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
15437 if test "x$ac_cv_func_memcpy" = xyes
15438 then :
15439 printf "%s\n" "#define HAVE_MEMCPY 1" >>confdefs.h
15440
15441 fi
15442 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
15443 if test "x$ac_cv_func_mkstemp" = xyes
15444 then :
15445 printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h
15446
15447 fi
15448 ac_fn_c_check_func "$LINENO" "mktemp" "ac_cv_func_mktemp"
15449 if test "x$ac_cv_func_mktemp" = xyes
15450 then :
15451 printf "%s\n" "#define HAVE_MKTEMP 1" >>confdefs.h
15452
15453 fi
15454 ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
15455 if test "x$ac_cv_func_strchr" = xyes
15456 then :
15457 printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
15458
15459 fi
15460 ac_fn_c_check_func "$LINENO" "strrchr" "ac_cv_func_strrchr"
15461 if test "x$ac_cv_func_strrchr" = xyes
15462 then :
15463 printf "%s\n" "#define HAVE_STRRCHR 1" >>confdefs.h
15464
15465 fi
15466
15467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
15468 printf %s "checking for an ANSI C-conforming const... " >&6; }
15469 if test ${ac_cv_c_const+y}
15470 then :
15471 printf %s "(cached) " >&6
15472 else case e in #(
15473 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15474 /* end confdefs.h. */
15475
15476 int
15477 main (void)
15478 {
15479
15480 #ifndef __cplusplus
15481 /* Ultrix mips cc rejects this sort of thing. */
15482 typedef int charset[2];
15483 const charset cs = { 0, 0 };
15484 /* SunOS 4.1.1 cc rejects this. */
15485 char const *const *pcpcc;
15486 char **ppc;
15487 /* NEC SVR4.0.2 mips cc rejects this. */
15488 struct point {int x, y;};
15489 static struct point const zero = {0,0};
15490 /* IBM XL C 1.02.0.0 rejects this.
15491 It does not let you subtract one const X* pointer from another in
15492 an arm of an if-expression whose if-part is not a constant
15493 expression */
15494 const char *g = "string";
15495 pcpcc = &g + (g ? g-g : 0);
15496 /* HPUX 7.0 cc rejects these. */
15497 ++pcpcc;
15498 ppc = (char**) pcpcc;
15499 pcpcc = (char const *const *) ppc;
15500 { /* SCO 3.2v4 cc rejects this sort of thing. */
15501 char tx;
15502 char *t = &tx;
15503 char const *s = 0 ? (char *) 0 : (char const *) 0;
15504
15505 *t++ = 0;
15506 if (s) return 0;
15507 }
15508 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15509 int x[] = {25, 17};
15510 const int *foo = &x[0];
15511 ++foo;
15512 }
15513 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15514 typedef const int *iptr;
15515 iptr p = 0;
15516 ++p;
15517 }
15518 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
15519 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15520 struct s { int j; const int *ap[3]; } bx;
15521 struct s *b = &bx; b->j = 5;
15522 }
15523 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15524 const int foo = 10;
15525 if (!foo) return 0;
15526 }
15527 return !cs[0] && !zero.x;
15528 #endif
15529
15530 ;
15531 return 0;
15532 }
15533 _ACEOF
15534 if ac_fn_c_try_compile "$LINENO"
15535 then :
15536 ac_cv_c_const=yes
15537 else case e in #(
15538 e) ac_cv_c_const=no ;;
15539 esac
15540 fi
15541 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15542 esac
15543 fi
15544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
15545 printf "%s\n" "$ac_cv_c_const" >&6; }
15546 if test $ac_cv_c_const = no; then
15547
15548 printf "%s\n" "#define const /**/" >>confdefs.h
15549
15550 fi
15551
15552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15553 printf %s "checking for inline... " >&6; }
15554 if test ${ac_cv_c_inline+y}
15555 then :
15556 printf %s "(cached) " >&6
15557 else case e in #(
15558 e) ac_cv_c_inline=no
15559 for ac_kw in inline __inline__ __inline; do
15560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15561 /* end confdefs.h. */
15562 #ifndef __cplusplus
15563 typedef int foo_t;
15564 static $ac_kw foo_t static_foo (void) {return 0; }
15565 $ac_kw foo_t foo (void) {return 0; }
15566 #endif
15567
15568 _ACEOF
15569 if ac_fn_c_try_compile "$LINENO"
15570 then :
15571 ac_cv_c_inline=$ac_kw
15572 fi
15573 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15574 test "$ac_cv_c_inline" != no && break
15575 done
15576 ;;
15577 esac
15578 fi
15579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15580 printf "%s\n" "$ac_cv_c_inline" >&6; }
15581
15582 case $ac_cv_c_inline in
15583 inline | yes) ;;
15584 *)
15585 case $ac_cv_c_inline in
15586 no) ac_val=;;
15587 *) ac_val=$ac_cv_c_inline;;
15588 esac
15589 cat >>confdefs.h <<_ACEOF
15590 #ifndef __cplusplus
15591 #define inline $ac_val
15592 #endif
15593 _ACEOF
15594 ;;
15595 esac
15596
15597 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15598 if test "x$ac_cv_type_size_t" = xyes
15599 then :
15600
15601 else case e in #(
15602 e)
15603 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
15604 ;;
15605 esac
15606 fi
15607
15608 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
15609 case $ac_cv_c_int64_t in #(
15610 no|yes) ;; #(
15611 *)
15612
15613 printf "%s\n" "#define int64_t $ac_cv_c_int64_t" >>confdefs.h
15614 ;;
15615 esac
15616
15617 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
15618 case $ac_cv_c_uint64_t in #(
15619 no|yes) ;; #(
15620 *)
15621
15622 printf "%s\n" "#define _UINT64_T 1" >>confdefs.h
15623
15624
15625 printf "%s\n" "#define uint64_t $ac_cv_c_uint64_t" >>confdefs.h
15626 ;;
15627 esac
15628
15629 case :$ac_cv_c_int64_t:$ac_cv_c_int64_t: in #(
15630 *':no:'*) :
15631 as_fn_error $? "Sorry, your compiler does not support 64-bit integer types." "$LINENO" 5 ;; #(
15632 *) :
15633 ;;
15634 esac
15635 ac_fn_check_decl "$LINENO" "isascii" "ac_cv_have_decl_isascii" "#include <ctype.h>
15636 " "$ac_c_undeclared_builtin_options" "CFLAGS"
15637 if test "x$ac_cv_have_decl_isascii" = xyes
15638 then :
15639 ac_have_decl=1
15640 else case e in #(
15641 e) ac_have_decl=0 ;;
15642 esac
15643 fi
15644 printf "%s\n" "#define HAVE_DECL_ISASCII $ac_have_decl" >>confdefs.h
15645
15646 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
15647 if test "x$ac_cv_member_struct_stat_st_mtim" = xyes
15648 then :
15649
15650 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_MTIM 1" >>confdefs.h
15651
15652
15653 fi
15654
15655
15656
15657 ac_config_headers="$ac_config_headers config.h"
15658
15659
15660
15661
15662 printf "%s\n" "#define TL_VERSION \"TeX Live 2026\"" >>confdefs.h
15663
15664
15665 kpse_save_CPPFLAGS=$CPPFLAGS
15666 kpse_save_LIBS=$LIBS
15667
15668 ##tldbg _KPSE_INIT: Initialize TL infrastructure.
15669 kpse_BLD=`(cd "./../../." && pwd)`
15670 kpse_SRC=`(cd "$srcdir/../../." && pwd)`
15671
15672 echo 'tldbg:_KPSE_USE_LIBTOOL called, libtool package version: 2.5.4' >&5
15673 : ${CONFIG_LT=./config.lt}
15674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_LT" >&5
15675 printf "%s\n" "$as_me: creating $CONFIG_LT" >&6;}
15676 as_write_fail=0
15677 cat >"$CONFIG_LT" <<_ASEOF || as_write_fail=1
15678 #! $SHELL
15679 # Generated by $as_me.
15680 # Run this file to recreate a libtool stub with the current configuration.
15681 SHELL=\${CONFIG_SHELL-$SHELL}
15682 export SHELL
15683 _ASEOF
15684 cat >>"$CONFIG_LT" <<\_ASEOF || as_write_fail=1
15685 ## -------------------- ##
15686 ## M4sh Initialization. ##
15687 ## -------------------- ##
15688
15689 # Be more Bourne compatible
15690 DUALCASE=1; export DUALCASE # for MKS sh
15691 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
15692 then :
15693 emulate sh
15694 NULLCMD=:
15695 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15696 # is contrary to our usage. Disable this feature.
15697 alias -g '${1+"$@"}'='"$@"'
15698 setopt NO_GLOB_SUBST
15699 else case e in #(
15700 e) case `(set -o) 2>/dev/null` in #(
15701 *posix*) :
15702 set -o posix ;; #(
15703 *) :
15704 ;;
15705 esac ;;
15706 esac
15707 fi
15708
15709
15710
15711 # Reset variables that may have inherited troublesome values from
15712 # the environment.
15713
15714 # IFS needs to be set, to space, tab, and newline, in precisely that order.
15715 # (If _AS_PATH_WALK were called with IFS unset, it would have the
15716 # side effect of setting IFS to empty, thus disabling word splitting.)
15717 # Quoting is to prevent editors from complaining about space-tab.
15718 as_nl='
15719 '
15720 export as_nl
15721 IFS=" "" $as_nl"
15722
15723 PS1='$ '
15724 PS2='> '
15725 PS4='+ '
15726
15727 # Ensure predictable behavior from utilities with locale-dependent output.
15728 LC_ALL=C
15729 export LC_ALL
15730 LANGUAGE=C
15731 export LANGUAGE
15732
15733 # We cannot yet rely on "unset" to work, but we need these variables
15734 # to be unset--not just set to an empty or harmless value--now, to
15735 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
15736 # also avoids known problems related to "unset" and subshell syntax
15737 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
15738 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
15739 do eval test \${$as_var+y} \
15740 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15741 done
15742
15743 # Ensure that fds 0, 1, and 2 are open.
15744 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
15745 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
15746 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
15747
15748 # The user is always right.
15749 if ${PATH_SEPARATOR+false} :; then
15750 PATH_SEPARATOR=:
15751 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15752 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15753 PATH_SEPARATOR=';'
15754 }
15755 fi
15756
15757
15758 # Find who we are. Look in the path if we contain no directory separator.
15759 as_myself=
15760 case $0 in #((
15761 *[\\/]* ) as_myself=$0 ;;
15762 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15763 for as_dir in $PATH
15764 do
15765 IFS=$as_save_IFS
15766 case $as_dir in #(((
15767 '') as_dir=./ ;;
15768 */) ;;
15769 *) as_dir=$as_dir/ ;;
15770 esac
15771 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
15772 done
15773 IFS=$as_save_IFS
15774
15775 ;;
15776 esac
15777 # We did not find ourselves, most probably we were run as 'sh COMMAND'
15778 # in which case we are not to be found in the path.
15779 if test "x$as_myself" = x; then
15780 as_myself=$0
15781 fi
15782 if test ! -f "$as_myself"; then
15783 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15784 exit 1
15785 fi
15786
15787
15788
15789 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15790 # ----------------------------------------
15791 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15792 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15793 # script with STATUS, using 1 if that was 0.
15794 as_fn_error ()
15795 {
15796 as_status=$1; test $as_status -eq 0 && as_status=1
15797 if test "$4"; then
15798 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15799 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15800 fi
15801 printf "%s\n" "$as_me: error: $2" >&2
15802 as_fn_exit $as_status
15803 } # as_fn_error
15804
15805
15806 # as_fn_set_status STATUS
15807 # -----------------------
15808 # Set $? to STATUS, without forking.
15809 as_fn_set_status ()
15810 {
15811 return $1
15812 } # as_fn_set_status
15813
15814 # as_fn_exit STATUS
15815 # -----------------
15816 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15817 as_fn_exit ()
15818 {
15819 set +e
15820 as_fn_set_status $1
15821 exit $1
15822 } # as_fn_exit
15823
15824 # as_fn_unset VAR
15825 # ---------------
15826 # Portably unset VAR.
15827 as_fn_unset ()
15828 {
15829 { eval $1=; unset $1;}
15830 }
15831 as_unset=as_fn_unset
15832
15833 # as_fn_append VAR VALUE
15834 # ----------------------
15835 # Append the text in VALUE to the end of the definition contained in VAR. Take
15836 # advantage of any shell optimizations that allow amortized linear growth over
15837 # repeated appends, instead of the typical quadratic growth present in naive
15838 # implementations.
15839 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
15840 then :
15841 eval 'as_fn_append ()
15842 {
15843 eval $1+=\$2
15844 }'
15845 else case e in #(
15846 e) as_fn_append ()
15847 {
15848 eval $1=\$$1\$2
15849 } ;;
15850 esac
15851 fi # as_fn_append
15852
15853 # as_fn_arith ARG...
15854 # ------------------
15855 # Perform arithmetic evaluation on the ARGs, and store the result in the
15856 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15857 # must be portable across $(()) and expr.
15858 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
15859 then :
15860 eval 'as_fn_arith ()
15861 {
15862 as_val=$(( $* ))
15863 }'
15864 else case e in #(
15865 e) as_fn_arith ()
15866 {
15867 as_val=`expr "$@" || test $? -eq 1`
15868 } ;;
15869 esac
15870 fi # as_fn_arith
15871
15872
15873 if expr a : '\(a\)' >/dev/null 2>&1 &&
15874 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15875 as_expr=expr
15876 else
15877 as_expr=false
15878 fi
15879
15880 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15881 as_basename=basename
15882 else
15883 as_basename=false
15884 fi
15885
15886 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15887 as_dirname=dirname
15888 else
15889 as_dirname=false
15890 fi
15891
15892 as_me=`$as_basename -- "$0" ||
15893 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15894 X"$0" : 'X\(//\)$' \| \
15895 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15896 printf "%s\n" X/"$0" |
15897 sed '/^.*\/\([^/][^/]*\)\/*$/{
15898 s//\1/
15899 q
15900 }
15901 /^X\/\(\/\/\)$/{
15902 s//\1/
15903 q
15904 }
15905 /^X\/\(\/\).*/{
15906 s//\1/
15907 q
15908 }
15909 s/.*/./; q'`
15910
15911 # Avoid depending upon Character Ranges.
15912 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15913 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15914 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15915 as_cr_digits='0123456789'
15916 as_cr_alnum=$as_cr_Letters$as_cr_digits
15917
15918
15919 # Determine whether it's possible to make 'echo' print without a newline.
15920 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
15921 # for compatibility with existing Makefiles.
15922 ECHO_C= ECHO_N= ECHO_T=
15923 case `echo -n x` in #(((((
15924 -n*)
15925 case `echo 'xy\c'` in
15926 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15927 xy) ECHO_C='\c';;
15928 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15929 ECHO_T=' ';;
15930 esac;;
15931 *)
15932 ECHO_N='-n';;
15933 esac
15934
15935 # For backward compatibility with old third-party macros, we provide
15936 # the shell variables $as_echo and $as_echo_n. New code should use
15937 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
15938 as_echo='printf %s\n'
15939 as_echo_n='printf %s'
15940
15941 rm -f conf$$ conf$$.exe conf$$.file
15942 if test -d conf$$.dir; then
15943 rm -f conf$$.dir/conf$$.file
15944 else
15945 rm -f conf$$.dir
15946 mkdir conf$$.dir 2>/dev/null
15947 fi
15948 if (echo >conf$$.file) 2>/dev/null; then
15949 if ln -s conf$$.file conf$$ 2>/dev/null; then
15950 as_ln_s='ln -s'
15951 # ... but there are two gotchas:
15952 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
15953 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
15954 # In both cases, we have to default to 'cp -pR'.
15955 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15956 as_ln_s='cp -pR'
15957 elif ln conf$$.file conf$$ 2>/dev/null; then
15958 as_ln_s=ln
15959 else
15960 as_ln_s='cp -pR'
15961 fi
15962 else
15963 as_ln_s='cp -pR'
15964 fi
15965 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15966 rmdir conf$$.dir 2>/dev/null
15967
15968
15969 # as_fn_mkdir_p
15970 # -------------
15971 # Create "$as_dir" as a directory, including parents if necessary.
15972 as_fn_mkdir_p ()
15973 {
15974
15975 case $as_dir in #(
15976 -*) as_dir=./$as_dir;;
15977 esac
15978 test -d "$as_dir" || eval $as_mkdir_p || {
15979 as_dirs=
15980 while :; do
15981 case $as_dir in #(
15982 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15983 *) as_qdir=$as_dir;;
15984 esac
15985 as_dirs="'$as_qdir' $as_dirs"
15986 as_dir=`$as_dirname -- "$as_dir" ||
15987 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15988 X"$as_dir" : 'X\(//\)[^/]' \| \
15989 X"$as_dir" : 'X\(//\)$' \| \
15990 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15991 printf "%s\n" X"$as_dir" |
15992 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15993 s//\1/
15994 q
15995 }
15996 /^X\(\/\/\)[^/].*/{
15997 s//\1/
15998 q
15999 }
16000 /^X\(\/\/\)$/{
16001 s//\1/
16002 q
16003 }
16004 /^X\(\/\).*/{
16005 s//\1/
16006 q
16007 }
16008 s/.*/./; q'`
16009 test -d "$as_dir" && break
16010 done
16011 test -z "$as_dirs" || eval "mkdir $as_dirs"
16012 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16013
16014
16015 } # as_fn_mkdir_p
16016 if mkdir -p . 2>/dev/null; then
16017 as_mkdir_p='mkdir -p "$as_dir"'
16018 else
16019 test -d ./-p && rmdir ./-p
16020 as_mkdir_p=false
16021 fi
16022
16023
16024 # as_fn_executable_p FILE
16025 # -----------------------
16026 # Test if FILE is an executable regular file.
16027 as_fn_executable_p ()
16028 {
16029 test -f "$1" && test -x "$1"
16030 } # as_fn_executable_p
16031 as_test_x='test -x'
16032 as_executable_p=as_fn_executable_p
16033
16034 # Sed expression to map a string onto a valid CPP name.
16035 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
16036 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
16037
16038 # Sed expression to map a string onto a valid variable name.
16039 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
16040 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
16041
16042
16043 exec 6>&1
16044 ## --------------------------------- ##
16045 ## Main body of "$CONFIG_LT" script. ##
16046 ## --------------------------------- ##
16047 _ASEOF
16048 test $as_write_fail = 0 && chmod +x "$CONFIG_LT"
16049
16050 cat >>"$CONFIG_LT" <<\_LTEOF
16051 lt_cl_silent=false
16052 exec 5>>config.log
16053 {
16054 echo
16055 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16056 ## Running $as_me. ##
16057 _ASBOX
16058 } >&5
16059
16060 lt_cl_help="\
16061 '$as_me' creates a local libtool stub from the current configuration,
16062 for use in further configure time tests before the real libtool is
16063 generated.
16064
16065 Usage: $0 [OPTIONS]
16066
16067 -h, --help print this help, then exit
16068 -V, --version print version number, then exit
16069 -q, --quiet do not print progress messages
16070 -d, --debug don't remove temporary files
16071
16072 Report bugs to <[email protected]>."
16073
16074 lt_cl_version="\
16075 dviout-util (TeX Live) config.lt 20240427
16076 configured by $0, generated by GNU Autoconf 2.72.
16077
16078 Copyright (C) 2024 Free Software Foundation, Inc.
16079 This config.lt script is free software; the Free Software Foundation
16080 gives unlimited permission to copy, distribute and modify it."
16081
16082 while test 0 != $#
16083 do
16084 case $1 in
16085 --version | --v* | -V )
16086 echo "$lt_cl_version"; exit 0 ;;
16087 --help | --h* | -h )
16088 echo "$lt_cl_help"; exit 0 ;;
16089 --debug | --d* | -d )
16090 debug=: ;;
16091 --quiet | --q* | --silent | --s* | -q )
16092 lt_cl_silent=: ;;
16093
16094 -*) as_fn_error $? "unrecognized option: $1
16095 Try '$0 --help' for more information." "$LINENO" 5 ;;
16096
16097 *) as_fn_error $? "unrecognized argument: $1
16098 Try '$0 --help' for more information." "$LINENO" 5 ;;
16099 esac
16100 shift
16101 done
16102
16103 if $lt_cl_silent; then
16104 exec 6>/dev/null
16105 fi
16106 _LTEOF
16107
16108 cat >>"$CONFIG_LT" <<_LTEOF
16109
16110
16111 # The HP-UX ksh and POSIX shell print the target directory to stdout
16112 # if CDPATH is set.
16113 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16114
16115 sed_quote_subst='$sed_quote_subst'
16116 double_quote_subst='$double_quote_subst'
16117 delay_variable_subst='$delay_variable_subst'
16118 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16119 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16120 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
16121 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16122 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16123 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16124 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16125 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16126 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16127 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
16128 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16129 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16130 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16131 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16132 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16133 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16134 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16135 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16136 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16137 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16138 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16139 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16140 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16141 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16142 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16143 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16144 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16145 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16146 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16147 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16148 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16149 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16150 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16151 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16152 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16153 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16154 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16155 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
16156 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16157 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16158 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16159 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16160 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16161 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16162 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
16163 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16164 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16165 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16166 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16167 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16168 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16169 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16170 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16171 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16172 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16173 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16174 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16175 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16176 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16177 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
16178 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16179 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"`'
16180 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
16181 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16182 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16183 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
16184 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16185 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16186 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16187 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16188 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16189 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16190 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16191 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16192 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16193 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16194 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16195 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16196 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16197 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16198 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16199 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16200 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16201 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16202 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16203 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16204 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16205 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16206 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16207 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16208 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16209 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16210 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16211 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16212 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16213 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16214 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16215 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16216 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16217 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16218 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16219 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16220 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16221 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16222 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16223 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16224 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16225 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16226 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16227 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16228 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16229 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16230 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16231 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16232 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16233 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16234 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16235 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16236 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16237 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16238 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16239 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16240 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16241 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16242 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16243 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16244 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16245 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16246 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16247 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16248 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
16249 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
16250 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16251 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16252 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16253 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16254 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16255 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16256
16257 LTCC='$LTCC'
16258 LTCFLAGS='$LTCFLAGS'
16259 compiler='$compiler_DEFAULT'
16260
16261 # A function that is used when there is no print builtin or printf.
16262 func_fallback_echo ()
16263 {
16264 eval 'cat <<_LTECHO_EOF
16265 \$1
16266 _LTECHO_EOF'
16267 }
16268
16269 # Quote evaled strings.
16270 for var in AS \
16271 DLLTOOL \
16272 OBJDUMP \
16273 SHELL \
16274 ECHO \
16275 PATH_SEPARATOR \
16276 SED \
16277 GREP \
16278 EGREP \
16279 FGREP \
16280 LD \
16281 NM \
16282 LN_S \
16283 lt_SP2NL \
16284 lt_NL2SP \
16285 reload_flag \
16286 FILECMD \
16287 deplibs_check_method \
16288 file_magic_cmd \
16289 file_magic_glob \
16290 want_nocaseglob \
16291 sharedlib_from_linklib_cmd \
16292 AR \
16293 archiver_list_spec \
16294 STRIP \
16295 RANLIB \
16296 CC \
16297 CFLAGS \
16298 compiler \
16299 lt_cv_sys_global_symbol_pipe \
16300 lt_cv_sys_global_symbol_to_cdecl \
16301 lt_cv_sys_global_symbol_to_import \
16302 lt_cv_sys_global_symbol_to_c_name_address \
16303 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16304 lt_cv_nm_interface \
16305 nm_file_list_spec \
16306 lt_cv_truncate_bin \
16307 lt_prog_compiler_no_builtin_flag \
16308 lt_prog_compiler_pic \
16309 lt_prog_compiler_wl \
16310 lt_prog_compiler_static \
16311 lt_cv_prog_compiler_c_o \
16312 need_locks \
16313 MANIFEST_TOOL \
16314 DSYMUTIL \
16315 NMEDIT \
16316 LIPO \
16317 OTOOL \
16318 OTOOL64 \
16319 shrext_cmds \
16320 export_dynamic_flag_spec \
16321 whole_archive_flag_spec \
16322 compiler_needs_object \
16323 with_gnu_ld \
16324 allow_undefined_flag \
16325 no_undefined_flag \
16326 hardcode_libdir_flag_spec \
16327 hardcode_libdir_separator \
16328 exclude_expsyms \
16329 include_expsyms \
16330 file_list_spec \
16331 variables_saved_for_relink \
16332 libname_spec \
16333 library_names_spec \
16334 soname_spec \
16335 install_override_mode \
16336 finish_eval \
16337 old_striplib \
16338 striplib; do
16339 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16340 *[\\\\\\\`\\"\\\$]*)
16341 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16342 ;;
16343 *)
16344 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16345 ;;
16346 esac
16347 done
16348
16349 # Double-quote double-evaled strings.
16350 for var in reload_cmds \
16351 old_postinstall_cmds \
16352 old_postuninstall_cmds \
16353 old_archive_cmds \
16354 extract_expsyms_cmds \
16355 old_archive_from_new_cmds \
16356 old_archive_from_expsyms_cmds \
16357 archive_cmds \
16358 archive_expsym_cmds \
16359 module_cmds \
16360 module_expsym_cmds \
16361 export_symbols_cmds \
16362 prelink_cmds \
16363 postlink_cmds \
16364 postinstall_cmds \
16365 postuninstall_cmds \
16366 finish_cmds \
16367 sys_lib_search_path_spec \
16368 configure_time_dlsearch_path \
16369 configure_time_lt_sys_library_path; do
16370 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16371 *[\\\\\\\`\\"\\\$]*)
16372 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16373 ;;
16374 *)
16375 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16376 ;;
16377 esac
16378 done
16379
16380 ac_aux_dir='$ac_aux_dir'
16381
16382 # See if we are running on zsh, and set the options that allow our
16383 # commands through without removal of \ escapes INIT.
16384 if test -n "\${ZSH_VERSION+set}"; then
16385 setopt NO_GLOB_SUBST
16386 fi
16387
16388
16389 PACKAGE='$PACKAGE'
16390 VERSION='$VERSION'
16391 RM='$RM'
16392 ofile='$ofile'
16393
16394
16395
16396 _LTEOF
16397
16398 cat >>"$CONFIG_LT" <<\_LTEOF
16399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
16400 printf "%s\n" "$as_me: creating $ofile" >&6;}
16401
16402
16403 # See if we are running on zsh, and set the options that allow our
16404 # commands through without removal of \ escapes.
16405 if test -n "${ZSH_VERSION+set}"; then
16406 setopt NO_GLOB_SUBST
16407 fi
16408
16409 cfgfile=${ofile}T
16410 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16411 $RM "$cfgfile"
16412
16413 cat <<_LT_EOF >> "$cfgfile"
16414 #! $SHELL
16415 # Generated automatically by $as_me ($PACKAGE) $VERSION
16416 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16417
16418 # Provide generalized library-building support services.
16419 # Written by Gordon Matzigkeit, 1996
16420
16421 # Copyright (C) 2024 Free Software Foundation, Inc.
16422 # This is free software; see the source for copying conditions. There is NO
16423 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16424
16425 # GNU Libtool is free software; you can redistribute it and/or modify
16426 # it under the terms of the GNU General Public License as published by
16427 # the Free Software Foundation; either version 2 of the License, or
16428 # (at your option) any later version.
16429 #
16430 # As a special exception to the GNU General Public License, if you
16431 # distribute this file as part of a program or library that is built
16432 # using GNU Libtool, you may include this file under the same
16433 # distribution terms that you use for the rest of that program.
16434 #
16435 # GNU Libtool is distributed in the hope that it will be useful, but
16436 # WITHOUT ANY WARRANTY; without even the implied warranty of
16437 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16438 # GNU General Public License for more details.
16439 #
16440 # You should have received a copy of the GNU General Public License
16441 # along with this program. If not, see <http://www.gnu.org/licenses/>.
16442
16443
16444 # The names of the tagged configurations supported by this script.
16445 available_tags=''
16446
16447 # Configured defaults for sys_lib_dlsearch_path munging.
16448 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
16449
16450 # ### BEGIN LIBTOOL CONFIG
16451
16452 # Which release of libtool.m4 was used?
16453 macro_version=$macro_version
16454 macro_revision=$macro_revision
16455
16456 # Assembler program.
16457 AS=$lt_AS
16458
16459 # DLL creation program.
16460 DLLTOOL=$lt_DLLTOOL
16461
16462 # Object dumper program.
16463 OBJDUMP=$lt_OBJDUMP
16464
16465 # Whether or not to build shared libraries.
16466 build_libtool_libs=$enable_shared
16467
16468 # Whether or not to build static libraries.
16469 build_old_libs=$enable_static
16470
16471 # What type of objects to build.
16472 pic_mode=$pic_mode
16473
16474 # Whether or not to optimize for fast installation.
16475 fast_install=$enable_fast_install
16476
16477 # Shared archive member basename,for filename based shared library versioning on AIX.
16478 shared_archive_member_spec=$shared_archive_member_spec
16479
16480 # Shell to use when invoking shell scripts.
16481 SHELL=$lt_SHELL
16482
16483 # An echo program that protects backslashes.
16484 ECHO=$lt_ECHO
16485
16486 # The PATH separator for the build system.
16487 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16488
16489 # The host system.
16490 host_alias=$host_alias
16491 host=$host
16492 host_os=$host_os
16493
16494 # The build system.
16495 build_alias=$build_alias
16496 build=$build
16497 build_os=$build_os
16498
16499 # A sed program that does not truncate output.
16500 SED=$lt_SED
16501
16502 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16503 Xsed="\$SED -e 1s/^X//"
16504
16505 # A grep program that handles long lines.
16506 GREP=$lt_GREP
16507
16508 # An ERE matcher.
16509 EGREP=$lt_EGREP
16510
16511 # A literal string matcher.
16512 FGREP=$lt_FGREP
16513
16514 # A BSD- or MS-compatible name lister.
16515 NM=$lt_NM
16516
16517 # Whether we need soft or hard links.
16518 LN_S=$lt_LN_S
16519
16520 # What is the maximum length of a command?
16521 max_cmd_len=$max_cmd_len
16522
16523 # Object file suffix (normally "o").
16524 objext=$ac_objext
16525
16526 # Executable file suffix (normally "").
16527 exeext=$exeext
16528
16529 # whether the shell understands "unset".
16530 lt_unset=$lt_unset
16531
16532 # turn spaces into newlines.
16533 SP2NL=$lt_lt_SP2NL
16534
16535 # turn newlines into spaces.
16536 NL2SP=$lt_lt_NL2SP
16537
16538 # convert \$build file names to \$host format.
16539 to_host_file_cmd=$lt_cv_to_host_file_cmd
16540
16541 # convert \$build files to toolchain format.
16542 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16543
16544 # A file(cmd) program that detects file types.
16545 FILECMD=$lt_FILECMD
16546
16547 # Method to check whether dependent libraries are shared objects.
16548 deplibs_check_method=$lt_deplibs_check_method
16549
16550 # Command to use when deplibs_check_method = "file_magic".
16551 file_magic_cmd=$lt_file_magic_cmd
16552
16553 # How to find potential files when deplibs_check_method = "file_magic".
16554 file_magic_glob=$lt_file_magic_glob
16555
16556 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16557 want_nocaseglob=$lt_want_nocaseglob
16558
16559 # Command to associate shared and link libraries.
16560 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16561
16562 # The archiver.
16563 AR=$lt_AR
16564
16565 # Flags to create an archive (by configure).
16566 lt_ar_flags=$lt_ar_flags
16567
16568 # Flags to create an archive.
16569 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
16570
16571 # How to feed a file listing to the archiver.
16572 archiver_list_spec=$lt_archiver_list_spec
16573
16574 # A symbol stripping program.
16575 STRIP=$lt_STRIP
16576
16577 # Commands used to install an old-style archive.
16578 RANLIB=$lt_RANLIB
16579 old_postinstall_cmds=$lt_old_postinstall_cmds
16580 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16581
16582 # Whether to use a lock for old archive extraction.
16583 lock_old_archive_extraction=$lock_old_archive_extraction
16584
16585 # A C compiler.
16586 LTCC=$lt_CC
16587
16588 # LTCC compiler flags.
16589 LTCFLAGS=$lt_CFLAGS
16590
16591 # Take the output of nm and produce a listing of raw symbols and C names.
16592 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16593
16594 # Transform the output of nm in a proper C declaration.
16595 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16596
16597 # Transform the output of nm into a list of symbols to manually relocate.
16598 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
16599
16600 # Transform the output of nm in a C name address pair.
16601 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16602
16603 # Transform the output of nm in a C name address pair when lib prefix is needed.
16604 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16605
16606 # The name lister interface.
16607 nm_interface=$lt_lt_cv_nm_interface
16608
16609 # Specify filename containing input files for \$NM.
16610 nm_file_list_spec=$lt_nm_file_list_spec
16611
16612 # The root where to search for dependent libraries,and where our libraries should be installed.
16613 lt_sysroot=$lt_sysroot
16614
16615 # Command to truncate a binary pipe.
16616 lt_truncate_bin=$lt_lt_cv_truncate_bin
16617
16618 # The name of the directory that contains temporary libtool files.
16619 objdir=$objdir
16620
16621 # Used to examine libraries when file_magic_cmd begins with "file".
16622 MAGIC_CMD=$MAGIC_CMD
16623
16624 # Must we lock files when doing compilation?
16625 need_locks=$lt_need_locks
16626
16627 # Manifest tool.
16628 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16629
16630 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16631 DSYMUTIL=$lt_DSYMUTIL
16632
16633 # Tool to change global to local symbols on Mac OS X.
16634 NMEDIT=$lt_NMEDIT
16635
16636 # Tool to manipulate fat objects and archives on Mac OS X.
16637 LIPO=$lt_LIPO
16638
16639 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16640 OTOOL=$lt_OTOOL
16641
16642 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16643 OTOOL64=$lt_OTOOL64
16644
16645 # Old archive suffix (normally "a").
16646 libext=$libext
16647
16648 # Shared library suffix (normally ".so").
16649 shrext_cmds=$lt_shrext_cmds
16650
16651 # The commands to extract the exported symbol list from a shared archive.
16652 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16653
16654 # Variables whose values should be saved in libtool wrapper scripts and
16655 # restored at link time.
16656 variables_saved_for_relink=$lt_variables_saved_for_relink
16657
16658 # Do we need the "lib" prefix for modules?
16659 need_lib_prefix=$need_lib_prefix
16660
16661 # Do we need a version for libraries?
16662 need_version=$need_version
16663
16664 # Library versioning type.
16665 version_type=$version_type
16666
16667 # Shared library runtime path variable.
16668 runpath_var=$runpath_var
16669
16670 # Shared library path variable.
16671 shlibpath_var=$shlibpath_var
16672
16673 # Is shlibpath searched before the hard-coded library search path?
16674 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16675
16676 # Format of library name prefix.
16677 libname_spec=$lt_libname_spec
16678
16679 # List of archive names. First name is the real one, the rest are links.
16680 # The last name is the one that the linker finds with -lNAME
16681 library_names_spec=$lt_library_names_spec
16682
16683 # The coded name of the library, if different from the real name.
16684 soname_spec=$lt_soname_spec
16685
16686 # Permission mode override for installation of shared libraries.
16687 install_override_mode=$lt_install_override_mode
16688
16689 # Command to use after installation of a shared archive.
16690 postinstall_cmds=$lt_postinstall_cmds
16691
16692 # Command to use after uninstallation of a shared archive.
16693 postuninstall_cmds=$lt_postuninstall_cmds
16694
16695 # Commands used to finish a libtool library installation in a directory.
16696 finish_cmds=$lt_finish_cmds
16697
16698 # As "finish_cmds", except a single script fragment to be evaled but
16699 # not shown.
16700 finish_eval=$lt_finish_eval
16701
16702 # Whether we should hardcode library paths into libraries.
16703 hardcode_into_libs=$hardcode_into_libs
16704
16705 # Compile-time system search path for libraries.
16706 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16707
16708 # Detected run-time system search path for libraries.
16709 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
16710
16711 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
16712 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
16713
16714 # Whether dlopen is supported.
16715 dlopen_support=$enable_dlopen
16716
16717 # Whether dlopen of programs is supported.
16718 dlopen_self=$enable_dlopen_self
16719
16720 # Whether dlopen of statically linked programs is supported.
16721 dlopen_self_static=$enable_dlopen_self_static
16722
16723 # Commands to strip libraries.
16724 old_striplib=$lt_old_striplib
16725 striplib=$lt_striplib
16726
16727
16728 # The linker used to build libraries.
16729 LD=$lt_LD
16730
16731 # How to create reloadable object files.
16732 reload_flag=$lt_reload_flag
16733 reload_cmds=$lt_reload_cmds
16734
16735 # Commands used to build an old-style archive.
16736 old_archive_cmds=$lt_old_archive_cmds
16737
16738 # A language specific compiler.
16739 CC=$lt_compiler
16740
16741 # Is the compiler the GNU compiler?
16742 with_gcc=$GCC
16743
16744 # Compiler flag to turn off builtin functions.
16745 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16746
16747 # Additional compiler flags for building library objects.
16748 pic_flag=$lt_lt_prog_compiler_pic
16749
16750 # How to pass a linker flag through the compiler.
16751 wl=$lt_lt_prog_compiler_wl
16752
16753 # Compiler flag to prevent dynamic linking.
16754 link_static_flag=$lt_lt_prog_compiler_static
16755
16756 # Does compiler simultaneously support -c and -o options?
16757 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16758
16759 # Whether or not to add -lc for building shared libraries.
16760 build_libtool_need_lc=$archive_cmds_need_lc
16761
16762 # Whether or not to disallow shared libs when runtime libs are static.
16763 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16764
16765 # Compiler flag to allow reflexive dlopens.
16766 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16767
16768 # Compiler flag to generate shared objects directly from archives.
16769 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16770
16771 # Whether the compiler copes with passing no objects directly.
16772 compiler_needs_object=$lt_compiler_needs_object
16773
16774 # Create an old-style archive from a shared archive.
16775 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16776
16777 # Create a temporary old-style archive to link instead of a shared archive.
16778 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16779
16780 # Commands used to build a shared archive.
16781 archive_cmds=$lt_archive_cmds
16782 archive_expsym_cmds=$lt_archive_expsym_cmds
16783
16784 # Commands used to build a loadable module if different from building
16785 # a shared archive.
16786 module_cmds=$lt_module_cmds
16787 module_expsym_cmds=$lt_module_expsym_cmds
16788
16789 # Whether we are building with GNU ld or not.
16790 with_gnu_ld=$lt_with_gnu_ld
16791
16792 # Flag that allows shared libraries with undefined symbols to be built.
16793 allow_undefined_flag=$lt_allow_undefined_flag
16794
16795 # Flag that enforces no undefined symbols.
16796 no_undefined_flag=$lt_no_undefined_flag
16797
16798 # Flag to hardcode \$libdir into a binary during linking.
16799 # This must work even if \$libdir does not exist
16800 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16801
16802 # Whether we need a single "-rpath" flag with a separated argument.
16803 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16804
16805 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16806 # DIR into the resulting binary.
16807 hardcode_direct=$hardcode_direct
16808
16809 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16810 # DIR into the resulting binary and the resulting library dependency is
16811 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
16812 # library is relocated.
16813 hardcode_direct_absolute=$hardcode_direct_absolute
16814
16815 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16816 # into the resulting binary.
16817 hardcode_minus_L=$hardcode_minus_L
16818
16819 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16820 # into the resulting binary.
16821 hardcode_shlibpath_var=$hardcode_shlibpath_var
16822
16823 # Set to "yes" if building a shared library automatically hardcodes DIR
16824 # into the library and all subsequent libraries and executables linked
16825 # against it.
16826 hardcode_automatic=$hardcode_automatic
16827
16828 # Set to yes if linker adds runtime paths of dependent libraries
16829 # to runtime path list.
16830 inherit_rpath=$inherit_rpath
16831
16832 # Whether libtool must link a program against all its dependency libraries.
16833 link_all_deplibs=$link_all_deplibs
16834
16835 # Set to "yes" if exported symbols are required.
16836 always_export_symbols=$always_export_symbols
16837
16838 # The commands to list exported symbols.
16839 export_symbols_cmds=$lt_export_symbols_cmds
16840
16841 # Symbols that should not be listed in the preloaded symbols.
16842 exclude_expsyms=$lt_exclude_expsyms
16843
16844 # Symbols that must always be exported.
16845 include_expsyms=$lt_include_expsyms
16846
16847 # Commands necessary for linking programs (against libraries) with templates.
16848 prelink_cmds=$lt_prelink_cmds
16849
16850 # Commands necessary for finishing linking programs.
16851 postlink_cmds=$lt_postlink_cmds
16852
16853 # Specify filename containing input files.
16854 file_list_spec=$lt_file_list_spec
16855
16856 # How to hardcode a shared library path into an executable.
16857 hardcode_action=$hardcode_action
16858
16859 # ### END LIBTOOL CONFIG
16860
16861 _LT_EOF
16862
16863 cat <<'_LT_EOF' >> "$cfgfile"
16864
16865 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
16866
16867 # func_munge_path_list VARIABLE PATH
16868 # -----------------------------------
16869 # VARIABLE is name of variable containing _space_ separated list of
16870 # directories to be munged by the contents of PATH, which is string
16871 # having a format:
16872 # "DIR[:DIR]:"
16873 # string "DIR[ DIR]" will be prepended to VARIABLE
16874 # ":DIR[:DIR]"
16875 # string "DIR[ DIR]" will be appended to VARIABLE
16876 # "DIRP[:DIRP]::[DIRA:]DIRA"
16877 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
16878 # "DIRA[ DIRA]" will be appended to VARIABLE
16879 # "DIR[:DIR]"
16880 # VARIABLE will be replaced by "DIR[ DIR]"
16881 func_munge_path_list ()
16882 {
16883 case x$2 in
16884 x)
16885 ;;
16886 *:)
16887 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
16888 ;;
16889 x:*)
16890 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
16891 ;;
16892 *::*)
16893 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
16894 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
16895 ;;
16896 *)
16897 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
16898 ;;
16899 esac
16900 }
16901
16902
16903 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
16904 func_cc_basename ()
16905 {
16906 for cc_temp in $*""; do
16907 case $cc_temp in
16908 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16909 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16910 \-*) ;;
16911 *) break;;
16912 esac
16913 done
16914 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16915 }
16916
16917
16918 # ### END FUNCTIONS SHARED WITH CONFIGURE
16919
16920 _LT_EOF
16921
16922 case $host_os in
16923 aix3*)
16924 cat <<\_LT_EOF >> "$cfgfile"
16925 # AIX sometimes has problems with the GCC collect2 program. For some
16926 # reason, if we set the COLLECT_NAMES environment variable, the problems
16927 # vanish in a puff of smoke.
16928 if test set != "${COLLECT_NAMES+set}"; then
16929 COLLECT_NAMES=
16930 export COLLECT_NAMES
16931 fi
16932 _LT_EOF
16933 ;;
16934 esac
16935
16936
16937
16938 ltmain=$ac_aux_dir/ltmain.sh
16939
16940
16941 # We use sed instead of cat because bash on DJGPP gets confused if
16942 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16943 # text mode, it properly converts lines to CR/LF. This bash problem
16944 # is reportedly fixed, but why not run on old versions too?
16945 $SED '$q' "$ltmain" >> "$cfgfile" \
16946 || (rm -f "$cfgfile"; exit 1)
16947
16948 mv -f "$cfgfile" "$ofile" ||
16949 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16950 chmod +x "$ofile"
16951
16952
16953 as_fn_exit 0
16954 _LTEOF
16955 chmod +x "$CONFIG_LT"
16956
16957 # configure is writing to config.log, but config.lt does its own redirection,
16958 # appending to config.log, which fails on DOS, as config.log is still kept
16959 # open by configure. Here we exec the FD to /dev/null, effectively closing
16960 # config.log, so it can be properly (re)opened and appended to by config.lt.
16961 lt_cl_success=:
16962 test yes = "$silent" &&
16963 lt_config_lt_args="$lt_config_lt_args --quiet"
16964 exec 5>/dev/null
16965 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
16966 exec 5>>config.log
16967 $lt_cl_success || as_fn_exit 1
16968
16969 #
16970 #
16971 ac_ext=c
16972 ac_cpp='$CPP $CPPFLAGS'
16973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16976 ac_link="./libtool --mode=link --tag=CC $ac_link"
16977
16978 if test -n "$ac_tool_prefix"; then
16979 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
16980 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
16981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16982 printf %s "checking for $ac_word... " >&6; }
16983 if test ${ac_cv_prog_PKG_CONFIG+y}
16984 then :
16985 printf %s "(cached) " >&6
16986 else case e in #(
16987 e) if test -n "$PKG_CONFIG"; then
16988 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
16989 else
16990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16991 for as_dir in $PATH
16992 do
16993 IFS=$as_save_IFS
16994 case $as_dir in #(((
16995 '') as_dir=./ ;;
16996 */) ;;
16997 *) as_dir=$as_dir/ ;;
16998 esac
16999 for ac_exec_ext in '' $ac_executable_extensions; do
17000 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17001 ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
17002 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17003 break 2
17004 fi
17005 done
17006 done
17007 IFS=$as_save_IFS
17008
17009 fi ;;
17010 esac
17011 fi
17012 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
17013 if test -n "$PKG_CONFIG"; then
17014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
17015 printf "%s\n" "$PKG_CONFIG" >&6; }
17016 else
17017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17018 printf "%s\n" "no" >&6; }
17019 fi
17020
17021
17022 fi
17023 if test -z "$ac_cv_prog_PKG_CONFIG"; then
17024 ac_ct_PKG_CONFIG=$PKG_CONFIG
17025 # Extract the first word of "pkg-config", so it can be a program name with args.
17026 set dummy pkg-config; ac_word=$2
17027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17028 printf %s "checking for $ac_word... " >&6; }
17029 if test ${ac_cv_prog_ac_ct_PKG_CONFIG+y}
17030 then :
17031 printf %s "(cached) " >&6
17032 else case e in #(
17033 e) if test -n "$ac_ct_PKG_CONFIG"; then
17034 ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
17035 else
17036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17037 for as_dir in $PATH
17038 do
17039 IFS=$as_save_IFS
17040 case $as_dir in #(((
17041 '') as_dir=./ ;;
17042 */) ;;
17043 *) as_dir=$as_dir/ ;;
17044 esac
17045 for ac_exec_ext in '' $ac_executable_extensions; do
17046 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17047 ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
17048 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17049 break 2
17050 fi
17051 done
17052 done
17053 IFS=$as_save_IFS
17054
17055 fi ;;
17056 esac
17057 fi
17058 ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
17059 if test -n "$ac_ct_PKG_CONFIG"; then
17060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PKG_CONFIG" >&5
17061 printf "%s\n" "$ac_ct_PKG_CONFIG" >&6; }
17062 else
17063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17064 printf "%s\n" "no" >&6; }
17065 fi
17066
17067 if test "x$ac_ct_PKG_CONFIG" = x; then
17068 PKG_CONFIG="false"
17069 else
17070 case $cross_compiling:$ac_tool_warned in
17071 yes:)
17072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17073 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17074 ac_tool_warned=yes ;;
17075 esac
17076 PKG_CONFIG=$ac_ct_PKG_CONFIG
17077 fi
17078 else
17079 PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
17080 fi
17081
17082 ##tldbg _KPSE_LIB_FLAGS: Setup kpathsea (-lkpathsea) flags.
17083 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
17084 ##tldbg _KPSE_LIB_FLAGS_TL: kpathsea (kpathsea) lt.
17085
17086 # Check whether --with-system-kpathsea was given.
17087 if test ${with_system_kpathsea+y}
17088 then :
17089 withval=$with_system_kpathsea;
17090 fi
17091 if test "x$with_system_kpathsea" = xyes; then
17092 if $PKG_CONFIG kpathsea; then
17093 KPATHSEA_INCLUDES=`$PKG_CONFIG kpathsea --cflags`
17094 KPATHSEA_LIBS=`$PKG_CONFIG kpathsea --libs`
17095 elif test "x$need_kpathsea:$with_system_kpathsea" = xyes:yes; then
17096 as_fn_error $? "did not find kpathsea" "$LINENO" 5
17097 fi
17098 else
17099 KPATHSEA_INCLUDES="-I$kpse_BLD/texk -I$kpse_SRC/texk"
17100 KPATHSEA_LIBS="$kpse_BLD/texk/kpathsea/libkpathsea.la"
17101 KPATHSEA_DEPEND='${top_builddir}/../kpathsea/libkpathsea.la'
17102 KPATHSEA_RULE='# Rebuild libkpathsea
17103 $(KPATHSEA_DEPEND): ${top_srcdir}/../kpathsea/*.[ch] ${top_builddir}/../kpathsea/paths.h
17104 cd ${top_builddir}/../kpathsea && $(MAKE) $(AM_MAKEFLAGS) rebuild
17105 ${top_builddir}/../kpathsea/paths.h:
17106 cd ${top_builddir}/../kpathsea && $(MAKE) $(AM_MAKEFLAGS) rebuild'
17107 fi
17108
17109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libkpathsea supports debugging" >&5
17110 printf %s "checking if libkpathsea supports debugging... " >&6; }
17111 if test ${kpse_cv_kpse_debug+y}
17112 then :
17113 printf %s "(cached) " >&6
17114 else case e in #(
17115 e) eval CPPFLAGS=\"$KPATHSEA_INCLUDES \$CPPFLAGS\"
17116 eval LIBS=\"$KPATHSEA_LIBS \$LIBS\"
17117
17118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17119 /* end confdefs.h. */
17120 #include <kpathsea/kpathsea.h>
17121 int
17122 main (void)
17123 {
17124 FILE *f = fopen("f", "r")
17125 ;
17126 return 0;
17127 }
17128 _ACEOF
17129 if ac_fn_c_try_link "$LINENO"
17130 then :
17131 kpse_cv_kpse_debug=yes
17132 else case e in #(
17133 e) kpse_cv_kpse_debug=no ;;
17134 esac
17135 fi
17136 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17137 conftest$ac_exeext conftest.$ac_ext
17138 CPPFLAGS=$kpse_save_CPPFLAGS
17139 LIBS=$kpse_save_LIBS
17140 ;;
17141 esac
17142 fi
17143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_kpse_debug" >&5
17144 printf "%s\n" "$kpse_cv_kpse_debug" >&6; }
17145 if test "x$kpse_cv_kpse_debug" != xyes
17146 then :
17147 KPATHSEA_INCLUDES="$KPATHSEA_INCLUDES -DNO_DEBUG"
17148 fi
17149
17150 ##tldbg _KPSE_LIB_FLAGS: Setup ptexenc (-lptexenc) flags.
17151 echo 'tldbg:_KPSE_LIB_FLAGS called: libdir=ptexenc, libname=ptexenc, options=lt, tlincl=-IBLD/texk/ptexenc -ISRC/texk/ptexenc, tllib=BLD/texk/ptexenc/libptexenc.la, tlextra=, rebuildsrcdeps=${top_srcdir}/../ptexenc/*.c ${top_srcdir}/../ptexenc/ptexenc/*.h, rebuildblddeps=.' >&5
17152 ##tldbg _KPSE_LIB_FLAGS_TL: ptexenc (ptexenc) lt.
17153
17154 # Check whether --with-system-ptexenc was given.
17155 if test ${with_system_ptexenc+y}
17156 then :
17157 withval=$with_system_ptexenc;
17158 fi
17159 if test "x$with_system_ptexenc" = xyes; then
17160 if $PKG_CONFIG ptexenc; then
17161 PTEXENC_INCLUDES=`$PKG_CONFIG ptexenc --cflags`
17162 PTEXENC_LIBS=`$PKG_CONFIG ptexenc --libs`
17163 elif test "x$need_ptexenc:$with_system_ptexenc" = xyes:yes; then
17164 as_fn_error $? "did not find ptexenc" "$LINENO" 5
17165 fi
17166 else
17167 PTEXENC_INCLUDES="-I$kpse_BLD/texk/ptexenc -I$kpse_SRC/texk/ptexenc"
17168 PTEXENC_LIBS="$kpse_BLD/texk/ptexenc/libptexenc.la"
17169 PTEXENC_DEPEND='${top_builddir}/../ptexenc/libptexenc.la'
17170 PTEXENC_RULE='# Rebuild libptexenc
17171 $(PTEXENC_DEPEND): ${top_srcdir}/../ptexenc/*.c ${top_srcdir}/../ptexenc/ptexenc/*.h
17172 cd ${top_builddir}/../ptexenc && $(MAKE) $(AM_MAKEFLAGS) rebuild'
17173 fi
17174
17175
17176 ac_config_files="$ac_config_files Makefile"
17177
17178
17179 cat >confcache <<\_ACEOF
17180 # This file is a shell script that caches the results of configure
17181 # tests run on this system so they can be shared between configure
17182 # scripts and configure runs, see configure's option --config-cache.
17183 # It is not useful on other systems. If it contains results you don't
17184 # want to keep, you may remove or edit it.
17185 #
17186 # config.status only pays attention to the cache file if you give it
17187 # the --recheck option to rerun configure.
17188 #
17189 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
17190 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
17191 # following values.
17192
17193 _ACEOF
17194
17195 # The following way of writing the cache mishandles newlines in values,
17196 # but we know of no workaround that is simple, portable, and efficient.
17197 # So, we kill variables containing newlines.
17198 # Ultrix sh set writes to stderr and can't be redirected directly,
17199 # and sets the high bit in the cache file unless we assign to the vars.
17200 (
17201 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17202 eval ac_val=\$$ac_var
17203 case $ac_val in #(
17204 *${as_nl}*)
17205 case $ac_var in #(
17206 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17207 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17208 esac
17209 case $ac_var in #(
17210 _ | IFS | as_nl) ;; #(
17211 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17212 *) { eval $ac_var=; unset $ac_var;} ;;
17213 esac ;;
17214 esac
17215 done
17216
17217 (set) 2>&1 |
17218 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17219 *${as_nl}ac_space=\ *)
17220 # 'set' does not quote correctly, so add quotes: double-quote
17221 # substitution turns \\\\ into \\, and sed turns \\ into \.
17222 sed -n \
17223 "s/'/'\\\\''/g;
17224 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17225 ;; #(
17226 *)
17227 # 'set' quotes correctly as required by POSIX, so do not add quotes.
17228 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17229 ;;
17230 esac |
17231 sort
17232 ) |
17233 sed '
17234 /^ac_cv_env_/b end
17235 t clear
17236 :clear
17237 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
17238 t end
17239 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17240 :end' >>confcache
17241 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17242 if test -w "$cache_file"; then
17243 if test "x$cache_file" != "x/dev/null"; then
17244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17245 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
17246 if test ! -f "$cache_file" || test -h "$cache_file"; then
17247 cat confcache >"$cache_file"
17248 else
17249 case $cache_file in #(
17250 */* | ?:*)
17251 mv -f confcache "$cache_file"$$ &&
17252 mv -f "$cache_file"$$ "$cache_file" ;; #(
17253 *)
17254 mv -f confcache "$cache_file" ;;
17255 esac
17256 fi
17257 fi
17258 else
17259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17260 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
17261 fi
17262 fi
17263 rm -f confcache
17264
17265 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17266 # Let make expand exec_prefix.
17267 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17268
17269 DEFS=-DHAVE_CONFIG_H
17270
17271 ac_libobjs=
17272 ac_ltlibobjs=
17273 U=
17274 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17275 # 1. Remove the extension, and $U if already installed.
17276 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17277 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
17278 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17279 # will be set to the directory where LIBOBJS objects are built.
17280 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17281 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17282 done
17283 LIBOBJS=$ac_libobjs
17284
17285 LTLIBOBJS=$ac_ltlibobjs
17286
17287
17288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17289 printf %s "checking that generated files are newer than configure... " >&6; }
17290 if test -n "$am_sleep_pid"; then
17291 # Hide warnings about reused PIDs.
17292 wait $am_sleep_pid 2>/dev/null
17293 fi
17294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
17295 printf "%s\n" "done" >&6; }
17296 case $enable_silent_rules in # (((
17297 yes) AM_DEFAULT_VERBOSITY=0;;
17298 no) AM_DEFAULT_VERBOSITY=1;;
17299 esac
17300 if test $am_cv_make_support_nested_variables = yes; then
17301 AM_V='$(V)'
17302 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
17303 else
17304 AM_V=$AM_DEFAULT_VERBOSITY
17305 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
17306 fi
17307
17308 if test -n "$EXEEXT"; then
17309 am__EXEEXT_TRUE=
17310 am__EXEEXT_FALSE='#'
17311 else
17312 am__EXEEXT_TRUE='#'
17313 am__EXEEXT_FALSE=
17314 fi
17315
17316 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17317 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17318 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17319 fi
17320 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17321 as_fn_error $? "conditional \"AMDEP\" was never defined.
17322 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17323 fi
17324 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17325 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17326 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17327 fi
17328 # Check whether --enable-year2038 was given.
17329 if test ${enable_year2038+y}
17330 then :
17331 enableval=$enable_year2038;
17332 fi
17333
17334
17335 : "${CONFIG_STATUS=./config.status}"
17336 ac_write_fail=0
17337 ac_clean_files_save=$ac_clean_files
17338 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17340 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
17341 as_write_fail=0
17342 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17343 #! $SHELL
17344 # Generated by $as_me.
17345 # Run this file to recreate the current configuration.
17346 # Compiler output produced by configure, useful for debugging
17347 # configure, is in config.log if it exists.
17348
17349 debug=false
17350 ac_cs_recheck=false
17351 ac_cs_silent=false
17352
17353 SHELL=\${CONFIG_SHELL-$SHELL}
17354 export SHELL
17355 _ASEOF
17356 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17357 ## -------------------- ##
17358 ## M4sh Initialization. ##
17359 ## -------------------- ##
17360
17361 # Be more Bourne compatible
17362 DUALCASE=1; export DUALCASE # for MKS sh
17363 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
17364 then :
17365 emulate sh
17366 NULLCMD=:
17367 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17368 # is contrary to our usage. Disable this feature.
17369 alias -g '${1+"$@"}'='"$@"'
17370 setopt NO_GLOB_SUBST
17371 else case e in #(
17372 e) case `(set -o) 2>/dev/null` in #(
17373 *posix*) :
17374 set -o posix ;; #(
17375 *) :
17376 ;;
17377 esac ;;
17378 esac
17379 fi
17380
17381
17382
17383 # Reset variables that may have inherited troublesome values from
17384 # the environment.
17385
17386 # IFS needs to be set, to space, tab, and newline, in precisely that order.
17387 # (If _AS_PATH_WALK were called with IFS unset, it would have the
17388 # side effect of setting IFS to empty, thus disabling word splitting.)
17389 # Quoting is to prevent editors from complaining about space-tab.
17390 as_nl='
17391 '
17392 export as_nl
17393 IFS=" "" $as_nl"
17394
17395 PS1='$ '
17396 PS2='> '
17397 PS4='+ '
17398
17399 # Ensure predictable behavior from utilities with locale-dependent output.
17400 LC_ALL=C
17401 export LC_ALL
17402 LANGUAGE=C
17403 export LANGUAGE
17404
17405 # We cannot yet rely on "unset" to work, but we need these variables
17406 # to be unset--not just set to an empty or harmless value--now, to
17407 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
17408 # also avoids known problems related to "unset" and subshell syntax
17409 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
17410 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
17411 do eval test \${$as_var+y} \
17412 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17413 done
17414
17415 # Ensure that fds 0, 1, and 2 are open.
17416 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
17417 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
17418 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
17419
17420 # The user is always right.
17421 if ${PATH_SEPARATOR+false} :; then
17422 PATH_SEPARATOR=:
17423 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17424 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17425 PATH_SEPARATOR=';'
17426 }
17427 fi
17428
17429
17430 # Find who we are. Look in the path if we contain no directory separator.
17431 as_myself=
17432 case $0 in #((
17433 *[\\/]* ) as_myself=$0 ;;
17434 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17435 for as_dir in $PATH
17436 do
17437 IFS=$as_save_IFS
17438 case $as_dir in #(((
17439 '') as_dir=./ ;;
17440 */) ;;
17441 *) as_dir=$as_dir/ ;;
17442 esac
17443 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
17444 done
17445 IFS=$as_save_IFS
17446
17447 ;;
17448 esac
17449 # We did not find ourselves, most probably we were run as 'sh COMMAND'
17450 # in which case we are not to be found in the path.
17451 if test "x$as_myself" = x; then
17452 as_myself=$0
17453 fi
17454 if test ! -f "$as_myself"; then
17455 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17456 exit 1
17457 fi
17458
17459
17460
17461 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17462 # ----------------------------------------
17463 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17464 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17465 # script with STATUS, using 1 if that was 0.
17466 as_fn_error ()
17467 {
17468 as_status=$1; test $as_status -eq 0 && as_status=1
17469 if test "$4"; then
17470 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17471 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17472 fi
17473 printf "%s\n" "$as_me: error: $2" >&2
17474 as_fn_exit $as_status
17475 } # as_fn_error
17476
17477
17478 # as_fn_set_status STATUS
17479 # -----------------------
17480 # Set $? to STATUS, without forking.
17481 as_fn_set_status ()
17482 {
17483 return $1
17484 } # as_fn_set_status
17485
17486 # as_fn_exit STATUS
17487 # -----------------
17488 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17489 as_fn_exit ()
17490 {
17491 set +e
17492 as_fn_set_status $1
17493 exit $1
17494 } # as_fn_exit
17495
17496 # as_fn_unset VAR
17497 # ---------------
17498 # Portably unset VAR.
17499 as_fn_unset ()
17500 {
17501 { eval $1=; unset $1;}
17502 }
17503 as_unset=as_fn_unset
17504
17505 # as_fn_append VAR VALUE
17506 # ----------------------
17507 # Append the text in VALUE to the end of the definition contained in VAR. Take
17508 # advantage of any shell optimizations that allow amortized linear growth over
17509 # repeated appends, instead of the typical quadratic growth present in naive
17510 # implementations.
17511 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
17512 then :
17513 eval 'as_fn_append ()
17514 {
17515 eval $1+=\$2
17516 }'
17517 else case e in #(
17518 e) as_fn_append ()
17519 {
17520 eval $1=\$$1\$2
17521 } ;;
17522 esac
17523 fi # as_fn_append
17524
17525 # as_fn_arith ARG...
17526 # ------------------
17527 # Perform arithmetic evaluation on the ARGs, and store the result in the
17528 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17529 # must be portable across $(()) and expr.
17530 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
17531 then :
17532 eval 'as_fn_arith ()
17533 {
17534 as_val=$(( $* ))
17535 }'
17536 else case e in #(
17537 e) as_fn_arith ()
17538 {
17539 as_val=`expr "$@" || test $? -eq 1`
17540 } ;;
17541 esac
17542 fi # as_fn_arith
17543
17544
17545 if expr a : '\(a\)' >/dev/null 2>&1 &&
17546 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17547 as_expr=expr
17548 else
17549 as_expr=false
17550 fi
17551
17552 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17553 as_basename=basename
17554 else
17555 as_basename=false
17556 fi
17557
17558 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17559 as_dirname=dirname
17560 else
17561 as_dirname=false
17562 fi
17563
17564 as_me=`$as_basename -- "$0" ||
17565 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17566 X"$0" : 'X\(//\)$' \| \
17567 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17568 printf "%s\n" X/"$0" |
17569 sed '/^.*\/\([^/][^/]*\)\/*$/{
17570 s//\1/
17571 q
17572 }
17573 /^X\/\(\/\/\)$/{
17574 s//\1/
17575 q
17576 }
17577 /^X\/\(\/\).*/{
17578 s//\1/
17579 q
17580 }
17581 s/.*/./; q'`
17582
17583 # Avoid depending upon Character Ranges.
17584 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17585 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17586 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17587 as_cr_digits='0123456789'
17588 as_cr_alnum=$as_cr_Letters$as_cr_digits
17589
17590
17591 # Determine whether it's possible to make 'echo' print without a newline.
17592 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
17593 # for compatibility with existing Makefiles.
17594 ECHO_C= ECHO_N= ECHO_T=
17595 case `echo -n x` in #(((((
17596 -n*)
17597 case `echo 'xy\c'` in
17598 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17599 xy) ECHO_C='\c';;
17600 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17601 ECHO_T=' ';;
17602 esac;;
17603 *)
17604 ECHO_N='-n';;
17605 esac
17606
17607 # For backward compatibility with old third-party macros, we provide
17608 # the shell variables $as_echo and $as_echo_n. New code should use
17609 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
17610 as_echo='printf %s\n'
17611 as_echo_n='printf %s'
17612
17613 rm -f conf$$ conf$$.exe conf$$.file
17614 if test -d conf$$.dir; then
17615 rm -f conf$$.dir/conf$$.file
17616 else
17617 rm -f conf$$.dir
17618 mkdir conf$$.dir 2>/dev/null
17619 fi
17620 if (echo >conf$$.file) 2>/dev/null; then
17621 if ln -s conf$$.file conf$$ 2>/dev/null; then
17622 as_ln_s='ln -s'
17623 # ... but there are two gotchas:
17624 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
17625 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
17626 # In both cases, we have to default to 'cp -pR'.
17627 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17628 as_ln_s='cp -pR'
17629 elif ln conf$$.file conf$$ 2>/dev/null; then
17630 as_ln_s=ln
17631 else
17632 as_ln_s='cp -pR'
17633 fi
17634 else
17635 as_ln_s='cp -pR'
17636 fi
17637 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17638 rmdir conf$$.dir 2>/dev/null
17639
17640
17641 # as_fn_mkdir_p
17642 # -------------
17643 # Create "$as_dir" as a directory, including parents if necessary.
17644 as_fn_mkdir_p ()
17645 {
17646
17647 case $as_dir in #(
17648 -*) as_dir=./$as_dir;;
17649 esac
17650 test -d "$as_dir" || eval $as_mkdir_p || {
17651 as_dirs=
17652 while :; do
17653 case $as_dir in #(
17654 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17655 *) as_qdir=$as_dir;;
17656 esac
17657 as_dirs="'$as_qdir' $as_dirs"
17658 as_dir=`$as_dirname -- "$as_dir" ||
17659 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17660 X"$as_dir" : 'X\(//\)[^/]' \| \
17661 X"$as_dir" : 'X\(//\)$' \| \
17662 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17663 printf "%s\n" X"$as_dir" |
17664 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17665 s//\1/
17666 q
17667 }
17668 /^X\(\/\/\)[^/].*/{
17669 s//\1/
17670 q
17671 }
17672 /^X\(\/\/\)$/{
17673 s//\1/
17674 q
17675 }
17676 /^X\(\/\).*/{
17677 s//\1/
17678 q
17679 }
17680 s/.*/./; q'`
17681 test -d "$as_dir" && break
17682 done
17683 test -z "$as_dirs" || eval "mkdir $as_dirs"
17684 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17685
17686
17687 } # as_fn_mkdir_p
17688 if mkdir -p . 2>/dev/null; then
17689 as_mkdir_p='mkdir -p "$as_dir"'
17690 else
17691 test -d ./-p && rmdir ./-p
17692 as_mkdir_p=false
17693 fi
17694
17695
17696 # as_fn_executable_p FILE
17697 # -----------------------
17698 # Test if FILE is an executable regular file.
17699 as_fn_executable_p ()
17700 {
17701 test -f "$1" && test -x "$1"
17702 } # as_fn_executable_p
17703 as_test_x='test -x'
17704 as_executable_p=as_fn_executable_p
17705
17706 # Sed expression to map a string onto a valid CPP name.
17707 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
17708 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
17709
17710 # Sed expression to map a string onto a valid variable name.
17711 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
17712 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
17713
17714
17715 exec 6>&1
17716 ## ----------------------------------- ##
17717 ## Main body of $CONFIG_STATUS script. ##
17718 ## ----------------------------------- ##
17719 _ASEOF
17720 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17721
17722 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17723 # Save the log message, to keep $0 and so on meaningful, and to
17724 # report actual input values of CONFIG_FILES etc. instead of their
17725 # values after options handling.
17726 ac_log="
17727 This file was extended by dviout-util (TeX Live) $as_me 20240427, which was
17728 generated by GNU Autoconf 2.72. Invocation command line was
17729
17730 CONFIG_FILES = $CONFIG_FILES
17731 CONFIG_HEADERS = $CONFIG_HEADERS
17732 CONFIG_LINKS = $CONFIG_LINKS
17733 CONFIG_COMMANDS = $CONFIG_COMMANDS
17734 $ $0 $@
17735
17736 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17737 "
17738
17739 _ACEOF
17740
17741 case $ac_config_files in *"
17742 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17743 esac
17744
17745 case $ac_config_headers in *"
17746 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17747 esac
17748
17749
17750 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17751 # Files that config.status was made for.
17752 config_files="$ac_config_files"
17753 config_headers="$ac_config_headers"
17754 config_commands="$ac_config_commands"
17755
17756 _ACEOF
17757
17758 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17759 ac_cs_usage="\
17760 '$as_me' instantiates files and other configuration actions
17761 from templates according to the current configuration. Unless the files
17762 and actions are specified as TAGs, all are instantiated by default.
17763
17764 Usage: $0 [OPTION]... [TAG]...
17765
17766 -h, --help print this help, then exit
17767 -V, --version print version number and configuration settings, then exit
17768 --config print configuration, then exit
17769 -q, --quiet, --silent
17770 do not print progress messages
17771 -d, --debug don't remove temporary files
17772 --recheck update $as_me by reconfiguring in the same conditions
17773 --file=FILE[:TEMPLATE]
17774 instantiate the configuration file FILE
17775 --header=FILE[:TEMPLATE]
17776 instantiate the configuration header FILE
17777
17778 Configuration files:
17779 $config_files
17780
17781 Configuration headers:
17782 $config_headers
17783
17784 Configuration commands:
17785 $config_commands
17786
17787 Report bugs to <[email protected]>."
17788
17789 _ACEOF
17790 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
17791 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
17792 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17793 ac_cs_config='$ac_cs_config_escaped'
17794 ac_cs_version="\\
17795 dviout-util (TeX Live) config.status 20240427
17796 configured by $0, generated by GNU Autoconf 2.72,
17797 with options \\"\$ac_cs_config\\"
17798
17799 Copyright (C) 2023 Free Software Foundation, Inc.
17800 This config.status script is free software; the Free Software Foundation
17801 gives unlimited permission to copy, distribute and modify it."
17802
17803 ac_pwd='$ac_pwd'
17804 srcdir='$srcdir'
17805 INSTALL='$INSTALL'
17806 MKDIR_P='$MKDIR_P'
17807 AWK='$AWK'
17808 test -n "\$AWK" || AWK=awk
17809 _ACEOF
17810
17811 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17812 # The default lists apply if the user does not specify any file.
17813 ac_need_defaults=:
17814 while test $# != 0
17815 do
17816 case $1 in
17817 --*=?*)
17818 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17819 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17820 ac_shift=:
17821 ;;
17822 --*=)
17823 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17824 ac_optarg=
17825 ac_shift=:
17826 ;;
17827 *)
17828 ac_option=$1
17829 ac_optarg=$2
17830 ac_shift=shift
17831 ;;
17832 esac
17833
17834 case $ac_option in
17835 # Handling of the options.
17836 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17837 ac_cs_recheck=: ;;
17838 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17839 printf "%s\n" "$ac_cs_version"; exit ;;
17840 --config | --confi | --conf | --con | --co | --c )
17841 printf "%s\n" "$ac_cs_config"; exit ;;
17842 --debug | --debu | --deb | --de | --d | -d )
17843 debug=: ;;
17844 --file | --fil | --fi | --f )
17845 $ac_shift
17846 case $ac_optarg in
17847 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17848 '') as_fn_error $? "missing file argument" ;;
17849 esac
17850 as_fn_append CONFIG_FILES " '$ac_optarg'"
17851 ac_need_defaults=false;;
17852 --header | --heade | --head | --hea )
17853 $ac_shift
17854 case $ac_optarg in
17855 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17856 esac
17857 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17858 ac_need_defaults=false;;
17859 --he | --h)
17860 # Conflict between --help and --header
17861 as_fn_error $? "ambiguous option: '$1'
17862 Try '$0 --help' for more information.";;
17863 --help | --hel | -h )
17864 printf "%s\n" "$ac_cs_usage"; exit ;;
17865 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17866 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17867 ac_cs_silent=: ;;
17868
17869 # This is an error.
17870 -*) as_fn_error $? "unrecognized option: '$1'
17871 Try '$0 --help' for more information." ;;
17872
17873 *) as_fn_append ac_config_targets " $1"
17874 ac_need_defaults=false ;;
17875
17876 esac
17877 shift
17878 done
17879
17880 ac_configure_extra_args=
17881
17882 if $ac_cs_silent; then
17883 exec 6>/dev/null
17884 ac_configure_extra_args="$ac_configure_extra_args --silent"
17885 fi
17886
17887 _ACEOF
17888 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17889 if \$ac_cs_recheck; then
17890 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17891 shift
17892 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
17893 CONFIG_SHELL='$SHELL'
17894 export CONFIG_SHELL
17895 exec "\$@"
17896 fi
17897
17898 _ACEOF
17899 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17900 exec 5>>config.log
17901 {
17902 echo
17903 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17904 ## Running $as_me. ##
17905 _ASBOX
17906 printf "%s\n" "$ac_log"
17907 } >&5
17908
17909 _ACEOF
17910 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17911 #
17912 # INIT-COMMANDS
17913 #
17914 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
17915
17916
17917 # The HP-UX ksh and POSIX shell print the target directory to stdout
17918 # if CDPATH is set.
17919 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17920
17921 sed_quote_subst='$sed_quote_subst'
17922 double_quote_subst='$double_quote_subst'
17923 delay_variable_subst='$delay_variable_subst'
17924 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17925 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17926 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
17927 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17928 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17929 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17930 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17931 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17932 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17933 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
17934 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17935 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17936 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17937 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17938 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17939 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17940 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17941 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17942 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17943 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17944 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17945 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17946 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17947 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17948 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17949 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17950 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17951 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17952 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17953 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17954 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17955 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17956 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17957 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17958 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17959 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17960 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17961 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
17962 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17963 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17964 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17965 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17966 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17967 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17968 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
17969 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17970 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17971 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17972 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17973 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17974 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17975 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17976 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17977 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17978 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17979 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17980 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17981 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17982 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17983 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
17984 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17985 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"`'
17986 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
17987 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17988 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17989 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
17990 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17991 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17992 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17993 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17994 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17995 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17996 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17997 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17998 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17999 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18000 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18001 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18002 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18003 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18004 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18005 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18006 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18007 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18008 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18009 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18010 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18011 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18012 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18013 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18014 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18015 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18016 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18017 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18018 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18019 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18020 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18021 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18022 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18023 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18024 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18025 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18026 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18027 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18028 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18029 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18030 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18031 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18032 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18033 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18034 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18035 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18036 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18037 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18038 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18039 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18040 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18041 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18042 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18043 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18044 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18045 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18046 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18047 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18048 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18049 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18050 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18051 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18052 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18053 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18054 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
18055 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
18056 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18057 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18058 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18059 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18060 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18061 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18062
18063 LTCC='$LTCC'
18064 LTCFLAGS='$LTCFLAGS'
18065 compiler='$compiler_DEFAULT'
18066
18067 # A function that is used when there is no print builtin or printf.
18068 func_fallback_echo ()
18069 {
18070 eval 'cat <<_LTECHO_EOF
18071 \$1
18072 _LTECHO_EOF'
18073 }
18074
18075 # Quote evaled strings.
18076 for var in AS \
18077 DLLTOOL \
18078 OBJDUMP \
18079 SHELL \
18080 ECHO \
18081 PATH_SEPARATOR \
18082 SED \
18083 GREP \
18084 EGREP \
18085 FGREP \
18086 LD \
18087 NM \
18088 LN_S \
18089 lt_SP2NL \
18090 lt_NL2SP \
18091 reload_flag \
18092 FILECMD \
18093 deplibs_check_method \
18094 file_magic_cmd \
18095 file_magic_glob \
18096 want_nocaseglob \
18097 sharedlib_from_linklib_cmd \
18098 AR \
18099 archiver_list_spec \
18100 STRIP \
18101 RANLIB \
18102 CC \
18103 CFLAGS \
18104 compiler \
18105 lt_cv_sys_global_symbol_pipe \
18106 lt_cv_sys_global_symbol_to_cdecl \
18107 lt_cv_sys_global_symbol_to_import \
18108 lt_cv_sys_global_symbol_to_c_name_address \
18109 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18110 lt_cv_nm_interface \
18111 nm_file_list_spec \
18112 lt_cv_truncate_bin \
18113 lt_prog_compiler_no_builtin_flag \
18114 lt_prog_compiler_pic \
18115 lt_prog_compiler_wl \
18116 lt_prog_compiler_static \
18117 lt_cv_prog_compiler_c_o \
18118 need_locks \
18119 MANIFEST_TOOL \
18120 DSYMUTIL \
18121 NMEDIT \
18122 LIPO \
18123 OTOOL \
18124 OTOOL64 \
18125 shrext_cmds \
18126 export_dynamic_flag_spec \
18127 whole_archive_flag_spec \
18128 compiler_needs_object \
18129 with_gnu_ld \
18130 allow_undefined_flag \
18131 no_undefined_flag \
18132 hardcode_libdir_flag_spec \
18133 hardcode_libdir_separator \
18134 exclude_expsyms \
18135 include_expsyms \
18136 file_list_spec \
18137 variables_saved_for_relink \
18138 libname_spec \
18139 library_names_spec \
18140 soname_spec \
18141 install_override_mode \
18142 finish_eval \
18143 old_striplib \
18144 striplib; do
18145 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18146 *[\\\\\\\`\\"\\\$]*)
18147 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18148 ;;
18149 *)
18150 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18151 ;;
18152 esac
18153 done
18154
18155 # Double-quote double-evaled strings.
18156 for var in reload_cmds \
18157 old_postinstall_cmds \
18158 old_postuninstall_cmds \
18159 old_archive_cmds \
18160 extract_expsyms_cmds \
18161 old_archive_from_new_cmds \
18162 old_archive_from_expsyms_cmds \
18163 archive_cmds \
18164 archive_expsym_cmds \
18165 module_cmds \
18166 module_expsym_cmds \
18167 export_symbols_cmds \
18168 prelink_cmds \
18169 postlink_cmds \
18170 postinstall_cmds \
18171 postuninstall_cmds \
18172 finish_cmds \
18173 sys_lib_search_path_spec \
18174 configure_time_dlsearch_path \
18175 configure_time_lt_sys_library_path; do
18176 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18177 *[\\\\\\\`\\"\\\$]*)
18178 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18179 ;;
18180 *)
18181 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18182 ;;
18183 esac
18184 done
18185
18186 ac_aux_dir='$ac_aux_dir'
18187
18188 # See if we are running on zsh, and set the options that allow our
18189 # commands through without removal of \ escapes INIT.
18190 if test -n "\${ZSH_VERSION+set}"; then
18191 setopt NO_GLOB_SUBST
18192 fi
18193
18194
18195 PACKAGE='$PACKAGE'
18196 VERSION='$VERSION'
18197 RM='$RM'
18198 ofile='$ofile'
18199
18200 ac_aux_dir='$ac_aux_dir'
18201
18202
18203
18204 _ACEOF
18205
18206 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18207
18208 # Handling of arguments.
18209 for ac_config_target in $ac_config_targets
18210 do
18211 case $ac_config_target in
18212 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18213 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18214 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18215 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18216
18217 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
18218 esac
18219 done
18220
18221
18222 # If the user did not use the arguments to specify the items to instantiate,
18223 # then the envvar interface is used. Set only those that are not.
18224 # We use the long form for the default assignment because of an extremely
18225 # bizarre bug on SunOS 4.1.3.
18226 if $ac_need_defaults; then
18227 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
18228 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
18229 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
18230 fi
18231
18232 # Have a temporary directory for convenience. Make it in the build tree
18233 # simply because there is no reason against having it here, and in addition,
18234 # creating and moving files from /tmp can sometimes cause problems.
18235 # Hook for its removal unless debugging.
18236 # Note that there is a small window in which the directory will not be cleaned:
18237 # after its creation but before its name has been assigned to '$tmp'.
18238 $debug ||
18239 {
18240 tmp= ac_tmp=
18241 trap 'exit_status=$?
18242 : "${ac_tmp:=$tmp}"
18243 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18244 ' 0
18245 trap 'as_fn_exit 1' 1 2 13 15
18246 }
18247 # Create a (secure) tmp directory for tmp files.
18248
18249 {
18250 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18251 test -d "$tmp"
18252 } ||
18253 {
18254 tmp=./conf$$-$RANDOM
18255 (umask 077 && mkdir "$tmp")
18256 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18257 ac_tmp=$tmp
18258
18259 # Set up the scripts for CONFIG_FILES section.
18260 # No need to generate them if there are no CONFIG_FILES.
18261 # This happens for instance with './config.status config.h'.
18262 if test -n "$CONFIG_FILES"; then
18263
18264
18265 ac_cr=`echo X | tr X '\015'`
18266 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18267 # But we know of no other shell where ac_cr would be empty at this
18268 # point, so we can use a bashism as a fallback.
18269 if test "x$ac_cr" = x; then
18270 eval ac_cr=\$\'\\r\'
18271 fi
18272 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18273 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18274 ac_cs_awk_cr='\\r'
18275 else
18276 ac_cs_awk_cr=$ac_cr
18277 fi
18278
18279 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18280 _ACEOF
18281
18282
18283 {
18284 echo "cat >conf$$subs.awk <<_ACEOF" &&
18285 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18286 echo "_ACEOF"
18287 } >conf$$subs.sh ||
18288 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18289 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18290 ac_delim='%!_!# '
18291 for ac_last_try in false false false false false :; do
18292 . ./conf$$subs.sh ||
18293 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18294
18295 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18296 if test $ac_delim_n = $ac_delim_num; then
18297 break
18298 elif $ac_last_try; then
18299 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18300 else
18301 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18302 fi
18303 done
18304 rm -f conf$$subs.sh
18305
18306 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18307 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18308 _ACEOF
18309 sed -n '
18310 h
18311 s/^/S["/; s/!.*/"]=/
18312 p
18313 g
18314 s/^[^!]*!//
18315 :repl
18316 t repl
18317 s/'"$ac_delim"'$//
18318 t delim
18319 :nl
18320 h
18321 s/\(.\{148\}\)..*/\1/
18322 t more1
18323 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18324 p
18325 n
18326 b repl
18327 :more1
18328 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18329 p
18330 g
18331 s/.\{148\}//
18332 t nl
18333 :delim
18334 h
18335 s/\(.\{148\}\)..*/\1/
18336 t more2
18337 s/["\\]/\\&/g; s/^/"/; s/$/"/
18338 p
18339 b
18340 :more2
18341 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18342 p
18343 g
18344 s/.\{148\}//
18345 t delim
18346 ' <conf$$subs.awk | sed '
18347 /^[^""]/{
18348 N
18349 s/\n//
18350 }
18351 ' >>$CONFIG_STATUS || ac_write_fail=1
18352 rm -f conf$$subs.awk
18353 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18354 _ACAWK
18355 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18356 for (key in S) S_is_set[key] = 1
18357 FS = ""
18358
18359 }
18360 {
18361 line = $ 0
18362 nfields = split(line, field, "@")
18363 substed = 0
18364 len = length(field[1])
18365 for (i = 2; i < nfields; i++) {
18366 key = field[i]
18367 keylen = length(key)
18368 if (S_is_set[key]) {
18369 value = S[key]
18370 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18371 len += length(value) + length(field[++i])
18372 substed = 1
18373 } else
18374 len += 1 + keylen
18375 }
18376
18377 print line
18378 }
18379
18380 _ACAWK
18381 _ACEOF
18382 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18383 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18384 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18385 else
18386 cat
18387 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18388 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18389 _ACEOF
18390
18391 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18392 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18393 # trailing colons and then remove the whole line if VPATH becomes empty
18394 # (actually we leave an empty line to preserve line numbers).
18395 if test "x$srcdir" = x.; then
18396 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18397 h
18398 s///
18399 s/^/:/
18400 s/[ ]*$/:/
18401 s/:\$(srcdir):/:/g
18402 s/:\${srcdir}:/:/g
18403 s/:@srcdir@:/:/g
18404 s/^:*//
18405 s/:*$//
18406 x
18407 s/\(=[ ]*\).*/\1/
18408 G
18409 s/\n//
18410 s/^[^=]*=[ ]*$//
18411 }'
18412 fi
18413
18414 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18415 fi # test -n "$CONFIG_FILES"
18416
18417 # Set up the scripts for CONFIG_HEADERS section.
18418 # No need to generate them if there are no CONFIG_HEADERS.
18419 # This happens for instance with './config.status Makefile'.
18420 if test -n "$CONFIG_HEADERS"; then
18421 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18422 BEGIN {
18423 _ACEOF
18424
18425 # Transform confdefs.h into an awk script 'defines.awk', embedded as
18426 # here-document in config.status, that substitutes the proper values into
18427 # config.h.in to produce config.h.
18428
18429 # Create a delimiter string that does not exist in confdefs.h, to ease
18430 # handling of long lines.
18431 ac_delim='%!_!# '
18432 for ac_last_try in false false :; do
18433 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18434 if test -z "$ac_tt"; then
18435 break
18436 elif $ac_last_try; then
18437 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18438 else
18439 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18440 fi
18441 done
18442
18443 # For the awk script, D is an array of macro values keyed by name,
18444 # likewise P contains macro parameters if any. Preserve backslash
18445 # newline sequences.
18446
18447 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18448 sed -n '
18449 s/.\{148\}/&'"$ac_delim"'/g
18450 t rset
18451 :rset
18452 s/^[ ]*#[ ]*define[ ][ ]*/ /
18453 t def
18454 d
18455 :def
18456 s/\\$//
18457 t bsnl
18458 s/["\\]/\\&/g
18459 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18460 D["\1"]=" \3"/p
18461 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18462 d
18463 :bsnl
18464 s/["\\]/\\&/g
18465 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18466 D["\1"]=" \3\\\\\\n"\\/p
18467 t cont
18468 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18469 t cont
18470 d
18471 :cont
18472 n
18473 s/.\{148\}/&'"$ac_delim"'/g
18474 t clear
18475 :clear
18476 s/\\$//
18477 t bsnlc
18478 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18479 d
18480 :bsnlc
18481 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18482 b cont
18483 ' <confdefs.h | sed '
18484 s/'"$ac_delim"'/"\\\
18485 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18486
18487 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18488 for (key in D) D_is_set[key] = 1
18489 FS = ""
18490 }
18491 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18492 line = \$ 0
18493 split(line, arg, " ")
18494 if (arg[1] == "#") {
18495 defundef = arg[2]
18496 mac1 = arg[3]
18497 } else {
18498 defundef = substr(arg[1], 2)
18499 mac1 = arg[2]
18500 }
18501 split(mac1, mac2, "(") #)
18502 macro = mac2[1]
18503 prefix = substr(line, 1, index(line, defundef) - 1)
18504 if (D_is_set[macro]) {
18505 # Preserve the white space surrounding the "#".
18506 print prefix "define", macro P[macro] D[macro]
18507 next
18508 } else {
18509 # Replace #undef with comments. This is necessary, for example,
18510 # in the case of _POSIX_SOURCE, which is predefined and required
18511 # on some systems where configure will not decide to define it.
18512 if (defundef == "undef") {
18513 print "/*", prefix defundef, macro, "*/"
18514 next
18515 }
18516 }
18517 }
18518 { print }
18519 _ACAWK
18520 _ACEOF
18521 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18522 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18523 fi # test -n "$CONFIG_HEADERS"
18524
18525
18526 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18527 shift
18528 for ac_tag
18529 do
18530 case $ac_tag in
18531 :[FHLC]) ac_mode=$ac_tag; continue;;
18532 esac
18533 case $ac_mode$ac_tag in
18534 :[FHL]*:*);;
18535 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
18536 :[FH]-) ac_tag=-:-;;
18537 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18538 esac
18539 ac_save_IFS=$IFS
18540 IFS=:
18541 set x $ac_tag
18542 IFS=$ac_save_IFS
18543 shift
18544 ac_file=$1
18545 shift
18546
18547 case $ac_mode in
18548 :L) ac_source=$1;;
18549 :[FH])
18550 ac_file_inputs=
18551 for ac_f
18552 do
18553 case $ac_f in
18554 -) ac_f="$ac_tmp/stdin";;
18555 *) # Look for the file first in the build tree, then in the source tree
18556 # (if the path is not absolute). The absolute path cannot be DOS-style,
18557 # because $ac_f cannot contain ':'.
18558 test -f "$ac_f" ||
18559 case $ac_f in
18560 [\\/$]*) false;;
18561 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18562 esac ||
18563 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
18564 esac
18565 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18566 as_fn_append ac_file_inputs " '$ac_f'"
18567 done
18568
18569 # Let's still pretend it is 'configure' which instantiates (i.e., don't
18570 # use $as_me), people would be surprised to read:
18571 # /* config.h. Generated by config.status. */
18572 configure_input='Generated from '`
18573 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18574 `' by configure.'
18575 if test x"$ac_file" != x-; then
18576 configure_input="$ac_file. $configure_input"
18577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18578 printf "%s\n" "$as_me: creating $ac_file" >&6;}
18579 fi
18580 # Neutralize special characters interpreted by sed in replacement strings.
18581 case $configure_input in #(
18582 *\&* | *\|* | *\\* )
18583 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
18584 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18585 *) ac_sed_conf_input=$configure_input;;
18586 esac
18587
18588 case $ac_tag in
18589 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18590 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18591 esac
18592 ;;
18593 esac
18594
18595 ac_dir=`$as_dirname -- "$ac_file" ||
18596 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18597 X"$ac_file" : 'X\(//\)[^/]' \| \
18598 X"$ac_file" : 'X\(//\)$' \| \
18599 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18600 printf "%s\n" X"$ac_file" |
18601 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18602 s//\1/
18603 q
18604 }
18605 /^X\(\/\/\)[^/].*/{
18606 s//\1/
18607 q
18608 }
18609 /^X\(\/\/\)$/{
18610 s//\1/
18611 q
18612 }
18613 /^X\(\/\).*/{
18614 s//\1/
18615 q
18616 }
18617 s/.*/./; q'`
18618 as_dir="$ac_dir"; as_fn_mkdir_p
18619 ac_builddir=.
18620
18621 case "$ac_dir" in
18622 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18623 *)
18624 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
18625 # A ".." for each directory in $ac_dir_suffix.
18626 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18627 case $ac_top_builddir_sub in
18628 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18629 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18630 esac ;;
18631 esac
18632 ac_abs_top_builddir=$ac_pwd
18633 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18634 # for backward compatibility:
18635 ac_top_builddir=$ac_top_build_prefix
18636
18637 case $srcdir in
18638 .) # We are building in place.
18639 ac_srcdir=.
18640 ac_top_srcdir=$ac_top_builddir_sub
18641 ac_abs_top_srcdir=$ac_pwd ;;
18642 [\\/]* | ?:[\\/]* ) # Absolute name.
18643 ac_srcdir=$srcdir$ac_dir_suffix;
18644 ac_top_srcdir=$srcdir
18645 ac_abs_top_srcdir=$srcdir ;;
18646 *) # Relative name.
18647 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18648 ac_top_srcdir=$ac_top_build_prefix$srcdir
18649 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18650 esac
18651 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18652
18653
18654 case $ac_mode in
18655 :F)
18656 #
18657 # CONFIG_FILE
18658 #
18659
18660 case $INSTALL in
18661 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18662 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18663 esac
18664 ac_MKDIR_P=$MKDIR_P
18665 case $MKDIR_P in
18666 [\\/$]* | ?:[\\/]* ) ;;
18667 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18668 esac
18669 _ACEOF
18670
18671 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18672 # If the template does not know about datarootdir, expand it.
18673 # FIXME: This hack should be removed a few years after 2.60.
18674 ac_datarootdir_hack=; ac_datarootdir_seen=
18675 ac_sed_dataroot='
18676 /datarootdir/ {
18677 p
18678 q
18679 }
18680 /@datadir@/p
18681 /@docdir@/p
18682 /@infodir@/p
18683 /@localedir@/p
18684 /@mandir@/p'
18685 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18686 *datarootdir*) ac_datarootdir_seen=yes;;
18687 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18689 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18690 _ACEOF
18691 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18692 ac_datarootdir_hack='
18693 s&@datadir@&$datadir&g
18694 s&@docdir@&$docdir&g
18695 s&@infodir@&$infodir&g
18696 s&@localedir@&$localedir&g
18697 s&@mandir@&$mandir&g
18698 s&\\\${datarootdir}&$datarootdir&g' ;;
18699 esac
18700 _ACEOF
18701
18702 # Neutralize VPATH when '$srcdir' = '.'.
18703 # Shell code in configure.ac might set extrasub.
18704 # FIXME: do we really want to maintain this feature?
18705 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18706 ac_sed_extra="$ac_vpsub
18707 $extrasub
18708 _ACEOF
18709 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18710 :t
18711 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18712 s|@configure_input@|$ac_sed_conf_input|;t t
18713 s&@top_builddir@&$ac_top_builddir_sub&;t t
18714 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18715 s&@srcdir@&$ac_srcdir&;t t
18716 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18717 s&@top_srcdir@&$ac_top_srcdir&;t t
18718 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18719 s&@builddir@&$ac_builddir&;t t
18720 s&@abs_builddir@&$ac_abs_builddir&;t t
18721 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18722 s&@INSTALL@&$ac_INSTALL&;t t
18723 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18724 $ac_datarootdir_hack
18725 "
18726 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18727 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18728
18729 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18730 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18731 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18732 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
18734 which seems to be undefined. Please make sure it is defined" >&5
18735 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
18736 which seems to be undefined. Please make sure it is defined" >&2;}
18737
18738 rm -f "$ac_tmp/stdin"
18739 case $ac_file in
18740 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18741 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18742 esac \
18743 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18744 ;;
18745 :H)
18746 #
18747 # CONFIG_HEADER
18748 #
18749 if test x"$ac_file" != x-; then
18750 {
18751 printf "%s\n" "/* $configure_input */" >&1 \
18752 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18753 } >"$ac_tmp/config.h" \
18754 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18755 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18757 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
18758 else
18759 rm -f "$ac_file"
18760 mv "$ac_tmp/config.h" "$ac_file" \
18761 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18762 fi
18763 else
18764 printf "%s\n" "/* $configure_input */" >&1 \
18765 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18766 || as_fn_error $? "could not create -" "$LINENO" 5
18767 fi
18768 # Compute "$ac_file"'s index in $config_headers.
18769 _am_arg="$ac_file"
18770 _am_stamp_count=1
18771 for _am_header in $config_headers :; do
18772 case $_am_header in
18773 $_am_arg | $_am_arg:* )
18774 break ;;
18775 * )
18776 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18777 esac
18778 done
18779 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18780 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18781 X"$_am_arg" : 'X\(//\)[^/]' \| \
18782 X"$_am_arg" : 'X\(//\)$' \| \
18783 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18784 printf "%s\n" X"$_am_arg" |
18785 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18786 s//\1/
18787 q
18788 }
18789 /^X\(\/\/\)[^/].*/{
18790 s//\1/
18791 q
18792 }
18793 /^X\(\/\/\)$/{
18794 s//\1/
18795 q
18796 }
18797 /^X\(\/\).*/{
18798 s//\1/
18799 q
18800 }
18801 s/.*/./; q'`/stamp-h$_am_stamp_count
18802 ;;
18803
18804 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18805 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
18806 ;;
18807 esac
18808
18809
18810 case $ac_file$ac_mode in
18811 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18812 # Older Autoconf quotes --file arguments for eval, but not when files
18813 # are listed without --file. Let's play safe and only enable the eval
18814 # if we detect the quoting.
18815 # TODO: see whether this extra hack can be removed once we start
18816 # requiring Autoconf 2.70 or later.
18817 case $CONFIG_FILES in #(
18818 *\'*) :
18819 eval set x "$CONFIG_FILES" ;; #(
18820 *) :
18821 set x $CONFIG_FILES ;; #(
18822 *) :
18823 ;;
18824 esac
18825 shift
18826 # Used to flag and report bootstrapping failures.
18827 am_rc=0
18828 for am_mf
18829 do
18830 # Strip MF so we end up with the name of the file.
18831 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
18832 # Check whether this is an Automake generated Makefile which includes
18833 # dependency-tracking related rules and includes.
18834 # Grep'ing the whole file directly is not great: AIX grep has a line
18835 # limit of 2048, but all sed's we know have understand at least 4000.
18836 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
18837 || continue
18838 am_dirpart=`$as_dirname -- "$am_mf" ||
18839 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18840 X"$am_mf" : 'X\(//\)[^/]' \| \
18841 X"$am_mf" : 'X\(//\)$' \| \
18842 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
18843 printf "%s\n" X"$am_mf" |
18844 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18845 s//\1/
18846 q
18847 }
18848 /^X\(\/\/\)[^/].*/{
18849 s//\1/
18850 q
18851 }
18852 /^X\(\/\/\)$/{
18853 s//\1/
18854 q
18855 }
18856 /^X\(\/\).*/{
18857 s//\1/
18858 q
18859 }
18860 s/.*/./; q'`
18861 am_filepart=`$as_basename -- "$am_mf" ||
18862 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
18863 X"$am_mf" : 'X\(//\)$' \| \
18864 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
18865 printf "%s\n" X/"$am_mf" |
18866 sed '/^.*\/\([^/][^/]*\)\/*$/{
18867 s//\1/
18868 q
18869 }
18870 /^X\/\(\/\/\)$/{
18871 s//\1/
18872 q
18873 }
18874 /^X\/\(\/\).*/{
18875 s//\1/
18876 q
18877 }
18878 s/.*/./; q'`
18879 { echo "$as_me:$LINENO: cd "$am_dirpart" \
18880 && sed -e '/# am--include-marker/d' "$am_filepart" \
18881 | $MAKE -f - am--depfiles" >&5
18882 (cd "$am_dirpart" \
18883 && sed -e '/# am--include-marker/d' "$am_filepart" \
18884 | $MAKE -f - am--depfiles) >&5 2>&5
18885 ac_status=$?
18886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18887 (exit $ac_status); } || am_rc=$?
18888 done
18889 if test $am_rc -ne 0; then
18890 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
18891 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
18892 as_fn_error $? "Something went wrong bootstrapping makefile fragments
18893 for automatic dependency tracking. If GNU make was not used, consider
18894 re-running the configure script with MAKE=\"gmake\" (or whatever is
18895 necessary). You can also try re-running configure with the
18896 '--disable-dependency-tracking' option to at least be able to build
18897 the package (albeit without support for automatic dependency tracking).
18898 See 'config.log' for more details" "$LINENO" 5; }
18899 fi
18900 { am_dirpart=; unset am_dirpart;}
18901 { am_filepart=; unset am_filepart;}
18902 { am_mf=; unset am_mf;}
18903 { am_rc=; unset am_rc;}
18904 rm -f conftest-deps.mk
18905 }
18906 ;;
18907 "libtool":C)
18908
18909 # See if we are running on zsh, and set the options that allow our
18910 # commands through without removal of \ escapes.
18911 if test -n "${ZSH_VERSION+set}"; then
18912 setopt NO_GLOB_SUBST
18913 fi
18914
18915 cfgfile=${ofile}T
18916 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18917 $RM "$cfgfile"
18918
18919 cat <<_LT_EOF >> "$cfgfile"
18920 #! $SHELL
18921 # Generated automatically by $as_me ($PACKAGE) $VERSION
18922 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18923
18924 # Provide generalized library-building support services.
18925 # Written by Gordon Matzigkeit, 1996
18926
18927 # Copyright (C) 2024 Free Software Foundation, Inc.
18928 # This is free software; see the source for copying conditions. There is NO
18929 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18930
18931 # GNU Libtool is free software; you can redistribute it and/or modify
18932 # it under the terms of the GNU General Public License as published by
18933 # the Free Software Foundation; either version 2 of the License, or
18934 # (at your option) any later version.
18935 #
18936 # As a special exception to the GNU General Public License, if you
18937 # distribute this file as part of a program or library that is built
18938 # using GNU Libtool, you may include this file under the same
18939 # distribution terms that you use for the rest of that program.
18940 #
18941 # GNU Libtool is distributed in the hope that it will be useful, but
18942 # WITHOUT ANY WARRANTY; without even the implied warranty of
18943 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18944 # GNU General Public License for more details.
18945 #
18946 # You should have received a copy of the GNU General Public License
18947 # along with this program. If not, see <http://www.gnu.org/licenses/>.
18948
18949
18950 # The names of the tagged configurations supported by this script.
18951 available_tags=''
18952
18953 # Configured defaults for sys_lib_dlsearch_path munging.
18954 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
18955
18956 # ### BEGIN LIBTOOL CONFIG
18957
18958 # Which release of libtool.m4 was used?
18959 macro_version=$macro_version
18960 macro_revision=$macro_revision
18961
18962 # Assembler program.
18963 AS=$lt_AS
18964
18965 # DLL creation program.
18966 DLLTOOL=$lt_DLLTOOL
18967
18968 # Object dumper program.
18969 OBJDUMP=$lt_OBJDUMP
18970
18971 # Whether or not to build shared libraries.
18972 build_libtool_libs=$enable_shared
18973
18974 # Whether or not to build static libraries.
18975 build_old_libs=$enable_static
18976
18977 # What type of objects to build.
18978 pic_mode=$pic_mode
18979
18980 # Whether or not to optimize for fast installation.
18981 fast_install=$enable_fast_install
18982
18983 # Shared archive member basename,for filename based shared library versioning on AIX.
18984 shared_archive_member_spec=$shared_archive_member_spec
18985
18986 # Shell to use when invoking shell scripts.
18987 SHELL=$lt_SHELL
18988
18989 # An echo program that protects backslashes.
18990 ECHO=$lt_ECHO
18991
18992 # The PATH separator for the build system.
18993 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18994
18995 # The host system.
18996 host_alias=$host_alias
18997 host=$host
18998 host_os=$host_os
18999
19000 # The build system.
19001 build_alias=$build_alias
19002 build=$build
19003 build_os=$build_os
19004
19005 # A sed program that does not truncate output.
19006 SED=$lt_SED
19007
19008 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19009 Xsed="\$SED -e 1s/^X//"
19010
19011 # A grep program that handles long lines.
19012 GREP=$lt_GREP
19013
19014 # An ERE matcher.
19015 EGREP=$lt_EGREP
19016
19017 # A literal string matcher.
19018 FGREP=$lt_FGREP
19019
19020 # A BSD- or MS-compatible name lister.
19021 NM=$lt_NM
19022
19023 # Whether we need soft or hard links.
19024 LN_S=$lt_LN_S
19025
19026 # What is the maximum length of a command?
19027 max_cmd_len=$max_cmd_len
19028
19029 # Object file suffix (normally "o").
19030 objext=$ac_objext
19031
19032 # Executable file suffix (normally "").
19033 exeext=$exeext
19034
19035 # whether the shell understands "unset".
19036 lt_unset=$lt_unset
19037
19038 # turn spaces into newlines.
19039 SP2NL=$lt_lt_SP2NL
19040
19041 # turn newlines into spaces.
19042 NL2SP=$lt_lt_NL2SP
19043
19044 # convert \$build file names to \$host format.
19045 to_host_file_cmd=$lt_cv_to_host_file_cmd
19046
19047 # convert \$build files to toolchain format.
19048 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19049
19050 # A file(cmd) program that detects file types.
19051 FILECMD=$lt_FILECMD
19052
19053 # Method to check whether dependent libraries are shared objects.
19054 deplibs_check_method=$lt_deplibs_check_method
19055
19056 # Command to use when deplibs_check_method = "file_magic".
19057 file_magic_cmd=$lt_file_magic_cmd
19058
19059 # How to find potential files when deplibs_check_method = "file_magic".
19060 file_magic_glob=$lt_file_magic_glob
19061
19062 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19063 want_nocaseglob=$lt_want_nocaseglob
19064
19065 # Command to associate shared and link libraries.
19066 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19067
19068 # The archiver.
19069 AR=$lt_AR
19070
19071 # Flags to create an archive (by configure).
19072 lt_ar_flags=$lt_ar_flags
19073
19074 # Flags to create an archive.
19075 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
19076
19077 # How to feed a file listing to the archiver.
19078 archiver_list_spec=$lt_archiver_list_spec
19079
19080 # A symbol stripping program.
19081 STRIP=$lt_STRIP
19082
19083 # Commands used to install an old-style archive.
19084 RANLIB=$lt_RANLIB
19085 old_postinstall_cmds=$lt_old_postinstall_cmds
19086 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19087
19088 # Whether to use a lock for old archive extraction.
19089 lock_old_archive_extraction=$lock_old_archive_extraction
19090
19091 # A C compiler.
19092 LTCC=$lt_CC
19093
19094 # LTCC compiler flags.
19095 LTCFLAGS=$lt_CFLAGS
19096
19097 # Take the output of nm and produce a listing of raw symbols and C names.
19098 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19099
19100 # Transform the output of nm in a proper C declaration.
19101 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19102
19103 # Transform the output of nm into a list of symbols to manually relocate.
19104 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
19105
19106 # Transform the output of nm in a C name address pair.
19107 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19108
19109 # Transform the output of nm in a C name address pair when lib prefix is needed.
19110 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19111
19112 # The name lister interface.
19113 nm_interface=$lt_lt_cv_nm_interface
19114
19115 # Specify filename containing input files for \$NM.
19116 nm_file_list_spec=$lt_nm_file_list_spec
19117
19118 # The root where to search for dependent libraries,and where our libraries should be installed.
19119 lt_sysroot=$lt_sysroot
19120
19121 # Command to truncate a binary pipe.
19122 lt_truncate_bin=$lt_lt_cv_truncate_bin
19123
19124 # The name of the directory that contains temporary libtool files.
19125 objdir=$objdir
19126
19127 # Used to examine libraries when file_magic_cmd begins with "file".
19128 MAGIC_CMD=$MAGIC_CMD
19129
19130 # Must we lock files when doing compilation?
19131 need_locks=$lt_need_locks
19132
19133 # Manifest tool.
19134 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19135
19136 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19137 DSYMUTIL=$lt_DSYMUTIL
19138
19139 # Tool to change global to local symbols on Mac OS X.
19140 NMEDIT=$lt_NMEDIT
19141
19142 # Tool to manipulate fat objects and archives on Mac OS X.
19143 LIPO=$lt_LIPO
19144
19145 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19146 OTOOL=$lt_OTOOL
19147
19148 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19149 OTOOL64=$lt_OTOOL64
19150
19151 # Old archive suffix (normally "a").
19152 libext=$libext
19153
19154 # Shared library suffix (normally ".so").
19155 shrext_cmds=$lt_shrext_cmds
19156
19157 # The commands to extract the exported symbol list from a shared archive.
19158 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19159
19160 # Variables whose values should be saved in libtool wrapper scripts and
19161 # restored at link time.
19162 variables_saved_for_relink=$lt_variables_saved_for_relink
19163
19164 # Do we need the "lib" prefix for modules?
19165 need_lib_prefix=$need_lib_prefix
19166
19167 # Do we need a version for libraries?
19168 need_version=$need_version
19169
19170 # Library versioning type.
19171 version_type=$version_type
19172
19173 # Shared library runtime path variable.
19174 runpath_var=$runpath_var
19175
19176 # Shared library path variable.
19177 shlibpath_var=$shlibpath_var
19178
19179 # Is shlibpath searched before the hard-coded library search path?
19180 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19181
19182 # Format of library name prefix.
19183 libname_spec=$lt_libname_spec
19184
19185 # List of archive names. First name is the real one, the rest are links.
19186 # The last name is the one that the linker finds with -lNAME
19187 library_names_spec=$lt_library_names_spec
19188
19189 # The coded name of the library, if different from the real name.
19190 soname_spec=$lt_soname_spec
19191
19192 # Permission mode override for installation of shared libraries.
19193 install_override_mode=$lt_install_override_mode
19194
19195 # Command to use after installation of a shared archive.
19196 postinstall_cmds=$lt_postinstall_cmds
19197
19198 # Command to use after uninstallation of a shared archive.
19199 postuninstall_cmds=$lt_postuninstall_cmds
19200
19201 # Commands used to finish a libtool library installation in a directory.
19202 finish_cmds=$lt_finish_cmds
19203
19204 # As "finish_cmds", except a single script fragment to be evaled but
19205 # not shown.
19206 finish_eval=$lt_finish_eval
19207
19208 # Whether we should hardcode library paths into libraries.
19209 hardcode_into_libs=$hardcode_into_libs
19210
19211 # Compile-time system search path for libraries.
19212 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19213
19214 # Detected run-time system search path for libraries.
19215 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
19216
19217 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
19218 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
19219
19220 # Whether dlopen is supported.
19221 dlopen_support=$enable_dlopen
19222
19223 # Whether dlopen of programs is supported.
19224 dlopen_self=$enable_dlopen_self
19225
19226 # Whether dlopen of statically linked programs is supported.
19227 dlopen_self_static=$enable_dlopen_self_static
19228
19229 # Commands to strip libraries.
19230 old_striplib=$lt_old_striplib
19231 striplib=$lt_striplib
19232
19233
19234 # The linker used to build libraries.
19235 LD=$lt_LD
19236
19237 # How to create reloadable object files.
19238 reload_flag=$lt_reload_flag
19239 reload_cmds=$lt_reload_cmds
19240
19241 # Commands used to build an old-style archive.
19242 old_archive_cmds=$lt_old_archive_cmds
19243
19244 # A language specific compiler.
19245 CC=$lt_compiler
19246
19247 # Is the compiler the GNU compiler?
19248 with_gcc=$GCC
19249
19250 # Compiler flag to turn off builtin functions.
19251 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19252
19253 # Additional compiler flags for building library objects.
19254 pic_flag=$lt_lt_prog_compiler_pic
19255
19256 # How to pass a linker flag through the compiler.
19257 wl=$lt_lt_prog_compiler_wl
19258
19259 # Compiler flag to prevent dynamic linking.
19260 link_static_flag=$lt_lt_prog_compiler_static
19261
19262 # Does compiler simultaneously support -c and -o options?
19263 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19264
19265 # Whether or not to add -lc for building shared libraries.
19266 build_libtool_need_lc=$archive_cmds_need_lc
19267
19268 # Whether or not to disallow shared libs when runtime libs are static.
19269 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19270
19271 # Compiler flag to allow reflexive dlopens.
19272 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19273
19274 # Compiler flag to generate shared objects directly from archives.
19275 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19276
19277 # Whether the compiler copes with passing no objects directly.
19278 compiler_needs_object=$lt_compiler_needs_object
19279
19280 # Create an old-style archive from a shared archive.
19281 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19282
19283 # Create a temporary old-style archive to link instead of a shared archive.
19284 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19285
19286 # Commands used to build a shared archive.
19287 archive_cmds=$lt_archive_cmds
19288 archive_expsym_cmds=$lt_archive_expsym_cmds
19289
19290 # Commands used to build a loadable module if different from building
19291 # a shared archive.
19292 module_cmds=$lt_module_cmds
19293 module_expsym_cmds=$lt_module_expsym_cmds
19294
19295 # Whether we are building with GNU ld or not.
19296 with_gnu_ld=$lt_with_gnu_ld
19297
19298 # Flag that allows shared libraries with undefined symbols to be built.
19299 allow_undefined_flag=$lt_allow_undefined_flag
19300
19301 # Flag that enforces no undefined symbols.
19302 no_undefined_flag=$lt_no_undefined_flag
19303
19304 # Flag to hardcode \$libdir into a binary during linking.
19305 # This must work even if \$libdir does not exist
19306 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19307
19308 # Whether we need a single "-rpath" flag with a separated argument.
19309 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19310
19311 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19312 # DIR into the resulting binary.
19313 hardcode_direct=$hardcode_direct
19314
19315 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19316 # DIR into the resulting binary and the resulting library dependency is
19317 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
19318 # library is relocated.
19319 hardcode_direct_absolute=$hardcode_direct_absolute
19320
19321 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19322 # into the resulting binary.
19323 hardcode_minus_L=$hardcode_minus_L
19324
19325 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19326 # into the resulting binary.
19327 hardcode_shlibpath_var=$hardcode_shlibpath_var
19328
19329 # Set to "yes" if building a shared library automatically hardcodes DIR
19330 # into the library and all subsequent libraries and executables linked
19331 # against it.
19332 hardcode_automatic=$hardcode_automatic
19333
19334 # Set to yes if linker adds runtime paths of dependent libraries
19335 # to runtime path list.
19336 inherit_rpath=$inherit_rpath
19337
19338 # Whether libtool must link a program against all its dependency libraries.
19339 link_all_deplibs=$link_all_deplibs
19340
19341 # Set to "yes" if exported symbols are required.
19342 always_export_symbols=$always_export_symbols
19343
19344 # The commands to list exported symbols.
19345 export_symbols_cmds=$lt_export_symbols_cmds
19346
19347 # Symbols that should not be listed in the preloaded symbols.
19348 exclude_expsyms=$lt_exclude_expsyms
19349
19350 # Symbols that must always be exported.
19351 include_expsyms=$lt_include_expsyms
19352
19353 # Commands necessary for linking programs (against libraries) with templates.
19354 prelink_cmds=$lt_prelink_cmds
19355
19356 # Commands necessary for finishing linking programs.
19357 postlink_cmds=$lt_postlink_cmds
19358
19359 # Specify filename containing input files.
19360 file_list_spec=$lt_file_list_spec
19361
19362 # How to hardcode a shared library path into an executable.
19363 hardcode_action=$hardcode_action
19364
19365 # ### END LIBTOOL CONFIG
19366
19367 _LT_EOF
19368
19369 cat <<'_LT_EOF' >> "$cfgfile"
19370
19371 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
19372
19373 # func_munge_path_list VARIABLE PATH
19374 # -----------------------------------
19375 # VARIABLE is name of variable containing _space_ separated list of
19376 # directories to be munged by the contents of PATH, which is string
19377 # having a format:
19378 # "DIR[:DIR]:"
19379 # string "DIR[ DIR]" will be prepended to VARIABLE
19380 # ":DIR[:DIR]"
19381 # string "DIR[ DIR]" will be appended to VARIABLE
19382 # "DIRP[:DIRP]::[DIRA:]DIRA"
19383 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
19384 # "DIRA[ DIRA]" will be appended to VARIABLE
19385 # "DIR[:DIR]"
19386 # VARIABLE will be replaced by "DIR[ DIR]"
19387 func_munge_path_list ()
19388 {
19389 case x$2 in
19390 x)
19391 ;;
19392 *:)
19393 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
19394 ;;
19395 x:*)
19396 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
19397 ;;
19398 *::*)
19399 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
19400 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
19401 ;;
19402 *)
19403 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
19404 ;;
19405 esac
19406 }
19407
19408
19409 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
19410 func_cc_basename ()
19411 {
19412 for cc_temp in $*""; do
19413 case $cc_temp in
19414 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19415 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19416 \-*) ;;
19417 *) break;;
19418 esac
19419 done
19420 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19421 }
19422
19423
19424 # ### END FUNCTIONS SHARED WITH CONFIGURE
19425
19426 _LT_EOF
19427
19428 case $host_os in
19429 aix3*)
19430 cat <<\_LT_EOF >> "$cfgfile"
19431 # AIX sometimes has problems with the GCC collect2 program. For some
19432 # reason, if we set the COLLECT_NAMES environment variable, the problems
19433 # vanish in a puff of smoke.
19434 if test set != "${COLLECT_NAMES+set}"; then
19435 COLLECT_NAMES=
19436 export COLLECT_NAMES
19437 fi
19438 _LT_EOF
19439 ;;
19440 esac
19441
19442
19443
19444 ltmain=$ac_aux_dir/ltmain.sh
19445
19446
19447 # We use sed instead of cat because bash on DJGPP gets confused if
19448 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19449 # text mode, it properly converts lines to CR/LF. This bash problem
19450 # is reportedly fixed, but why not run on old versions too?
19451 $SED '$q' "$ltmain" >> "$cfgfile" \
19452 || (rm -f "$cfgfile"; exit 1)
19453
19454 mv -f "$cfgfile" "$ofile" ||
19455 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19456 chmod +x "$ofile"
19457
19458 ;;
19459
19460 esac
19461 done # for ac_tag
19462
19463
19464 as_fn_exit 0
19465 _ACEOF
19466 ac_clean_files=$ac_clean_files_save
19467
19468 test $ac_write_fail = 0 ||
19469 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19470
19471
19472 # configure is writing to config.log, and then calls config.status.
19473 # config.status does its own redirection, appending to config.log.
19474 # Unfortunately, on DOS this fails, as config.log is still kept open
19475 # by configure, so config.status won't be able to write to it; its
19476 # output is simply discarded. So we exec the FD to /dev/null,
19477 # effectively closing config.log, so it can be properly (re)opened and
19478 # appended to by config.status. When coming back to configure, we
19479 # need to make the FD available again.
19480 if test "$no_create" != yes; then
19481 ac_cs_success=:
19482 ac_config_status_args=
19483 test "$silent" = yes &&
19484 ac_config_status_args="$ac_config_status_args --quiet"
19485 exec 5>/dev/null
19486 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19487 exec 5>>config.log
19488 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19489 # would make configure fail if this is the last instruction.
19490 $ac_cs_success || as_fn_exit 1
19491 fi
19492 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19494 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19495 fi
19496
19497