Debian Codegraph @

texk/ps2pk/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 ps2pkm (TeX Live) 1.8.
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='ps2pkm (TeX Live)'
616 PACKAGE_TARNAME='ps2pkm--tex-live-'
617 PACKAGE_VERSION='1.8'
618 PACKAGE_STRING='ps2pkm (TeX Live) 1.8'
619 PACKAGE_BUGREPORT='[email protected]'
620 PACKAGE_URL=''
621
622 ac_unique_file="arith.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 ac_func_c_list=
656 enable_year2038=no
657 ac_subst_vars='am__EXEEXT_FALSE
658 am__EXEEXT_TRUE
659 LTLIBOBJS
660 LIBOBJS
661 KPATHSEA_RULE
662 KPATHSEA_DEPEND
663 KPATHSEA_LIBS
664 KPATHSEA_INCLUDES
665 PKG_CONFIG
666 KPSEWHICH
667 LT_SYS_LIBRARY_PATH
668 OTOOL64
669 OTOOL
670 LIPO
671 NMEDIT
672 DSYMUTIL
673 MANIFEST_TOOL
674 RANLIB
675 FILECMD
676 LN_S
677 NM
678 ac_ct_DUMPBIN
679 DUMPBIN
680 LD
681 FGREP
682 EGREP
683 GREP
684 SED
685 host_os
686 host_vendor
687 host_cpu
688 host
689 build_os
690 build_vendor
691 build_cpu
692 build
693 LIBTOOL
694 OBJDUMP
695 DLLTOOL
696 AS
697 ac_ct_AR
698 AR
699 WARNING_CFLAGS
700 am__fastdepCC_FALSE
701 am__fastdepCC_TRUE
702 CCDEPMODE
703 am__nodep
704 AMDEPBACKSLASH
705 AMDEP_FALSE
706 AMDEP_TRUE
707 am__include
708 DEPDIR
709 OBJEXT
710 EXEEXT
711 ac_ct_CC
712 CPPFLAGS
713 LDFLAGS
714 CFLAGS
715 CC
716 MAINT
717 MAINTAINER_MODE_FALSE
718 MAINTAINER_MODE_TRUE
719 am__xargs_n
720 am__rm_f_notfound
721 AM_BACKSLASH
722 AM_DEFAULT_VERBOSITY
723 AM_DEFAULT_V
724 AM_V
725 CSCOPE
726 ETAGS
727 CTAGS
728 am__untar
729 am__tar
730 AMTAR
731 am__leading_dot
732 SET_MAKE
733 AWK
734 mkdir_p
735 MKDIR_P
736 INSTALL_STRIP_PROGRAM
737 STRIP
738 install_sh
739 MAKEINFO
740 AUTOHEADER
741 AUTOMAKE
742 AUTOCONF
743 ACLOCAL
744 VERSION
745 PACKAGE
746 CYGPATH_W
747 am__isrc
748 INSTALL_DATA
749 INSTALL_SCRIPT
750 INSTALL_PROGRAM
751 target_alias
752 host_alias
753 build_alias
754 LIBS
755 ECHO_T
756 ECHO_N
757 ECHO_C
758 DEFS
759 mandir
760 localedir
761 libdir
762 psdir
763 pdfdir
764 dvidir
765 htmldir
766 infodir
767 docdir
768 oldincludedir
769 includedir
770 runstatedir
771 localstatedir
772 sharedstatedir
773 sysconfdir
774 datadir
775 datarootdir
776 libexecdir
777 sbindir
778 bindir
779 program_transform_name
780 prefix
781 exec_prefix
782 PACKAGE_URL
783 PACKAGE_BUGREPORT
784 PACKAGE_STRING
785 PACKAGE_VERSION
786 PACKAGE_TARNAME
787 PACKAGE_NAME
788 PATH_SEPARATOR
789 SHELL
790 am__quote'
791 ac_subst_files=''
792 ac_user_opts='
793 enable_option_checking
794 enable_silent_rules
795 enable_maintainer_mode
796 enable_dependency_tracking
797 enable_compiler_warnings
798 enable_shared
799 enable_static
800 enable_pic
801 with_pic
802 enable_fast_install
803 enable_aix_soname
804 with_aix_soname
805 with_gnu_ld
806 with_sysroot
807 enable_libtool_lock
808 enable_largefile
809 with_system_kpathsea
810 enable_year2038
811 '
812 ac_precious_vars='build_alias
813 host_alias
814 target_alias
815 CC
816 CFLAGS
817 LDFLAGS
818 LIBS
819 CPPFLAGS
820 LT_SYS_LIBRARY_PATH'
821
822
823 # Initialize some variables set by options.
824 ac_init_help=
825 ac_init_version=false
826 ac_unrecognized_opts=
827 ac_unrecognized_sep=
828 # The variables have the same names as the options, with
829 # dashes changed to underlines.
830 cache_file=/dev/null
831 exec_prefix=NONE
832 no_create=
833 no_recursion=
834 prefix=NONE
835 program_prefix=NONE
836 program_suffix=NONE
837 program_transform_name=s,x,x,
838 silent=
839 site=
840 srcdir=
841 verbose=
842 x_includes=NONE
843 x_libraries=NONE
844
845 # Installation directory options.
846 # These are left unexpanded so users can "make install exec_prefix=/foo"
847 # and all the variables that are supposed to be based on exec_prefix
848 # by default will actually change.
849 # Use braces instead of parens because sh, perl, etc. also accept them.
850 # (The list follows the same order as the GNU Coding Standards.)
851 bindir='${exec_prefix}/bin'
852 sbindir='${exec_prefix}/sbin'
853 libexecdir='${exec_prefix}/libexec'
854 datarootdir='${prefix}/share'
855 datadir='${datarootdir}'
856 sysconfdir='${prefix}/etc'
857 sharedstatedir='${prefix}/com'
858 localstatedir='${prefix}/var'
859 runstatedir='${localstatedir}/run'
860 includedir='${prefix}/include'
861 oldincludedir='/usr/include'
862 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
863 infodir='${datarootdir}/info'
864 htmldir='${docdir}'
865 dvidir='${docdir}'
866 pdfdir='${docdir}'
867 psdir='${docdir}'
868 libdir='${exec_prefix}/lib'
869 localedir='${datarootdir}/locale'
870 mandir='${datarootdir}/man'
871
872 ac_prev=
873 ac_dashdash=
874 for ac_option
875 do
876 # If the previous option needs an argument, assign it.
877 if test -n "$ac_prev"; then
878 eval $ac_prev=\$ac_option
879 ac_prev=
880 continue
881 fi
882
883 case $ac_option in
884 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
885 *=) ac_optarg= ;;
886 *) ac_optarg=yes ;;
887 esac
888
889 case $ac_dashdash$ac_option in
890 --)
891 ac_dashdash=yes ;;
892
893 -bindir | --bindir | --bindi | --bind | --bin | --bi)
894 ac_prev=bindir ;;
895 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
896 bindir=$ac_optarg ;;
897
898 -build | --build | --buil | --bui | --bu)
899 ac_prev=build_alias ;;
900 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
901 build_alias=$ac_optarg ;;
902
903 -cache-file | --cache-file | --cache-fil | --cache-fi \
904 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
905 ac_prev=cache_file ;;
906 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
907 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
908 cache_file=$ac_optarg ;;
909
910 --config-cache | -C)
911 cache_file=config.cache ;;
912
913 -datadir | --datadir | --datadi | --datad)
914 ac_prev=datadir ;;
915 -datadir=* | --datadir=* | --datadi=* | --datad=*)
916 datadir=$ac_optarg ;;
917
918 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
919 | --dataroo | --dataro | --datar)
920 ac_prev=datarootdir ;;
921 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
922 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
923 datarootdir=$ac_optarg ;;
924
925 -disable-* | --disable-*)
926 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
927 # Reject names that are not valid shell variable names.
928 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
929 as_fn_error $? "invalid feature name: '$ac_useropt'"
930 ac_useropt_orig=$ac_useropt
931 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
932 case $ac_user_opts in
933 *"
934 "enable_$ac_useropt"
935 "*) ;;
936 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
937 ac_unrecognized_sep=', ';;
938 esac
939 eval enable_$ac_useropt=no ;;
940
941 -docdir | --docdir | --docdi | --doc | --do)
942 ac_prev=docdir ;;
943 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
944 docdir=$ac_optarg ;;
945
946 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
947 ac_prev=dvidir ;;
948 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
949 dvidir=$ac_optarg ;;
950
951 -enable-* | --enable-*)
952 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
953 # Reject names that are not valid shell variable names.
954 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
955 as_fn_error $? "invalid feature name: '$ac_useropt'"
956 ac_useropt_orig=$ac_useropt
957 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
958 case $ac_user_opts in
959 *"
960 "enable_$ac_useropt"
961 "*) ;;
962 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
963 ac_unrecognized_sep=', ';;
964 esac
965 eval enable_$ac_useropt=\$ac_optarg ;;
966
967 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
968 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
969 | --exec | --exe | --ex)
970 ac_prev=exec_prefix ;;
971 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
972 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
973 | --exec=* | --exe=* | --ex=*)
974 exec_prefix=$ac_optarg ;;
975
976 -gas | --gas | --ga | --g)
977 # Obsolete; use --with-gas.
978 with_gas=yes ;;
979
980 -help | --help | --hel | --he | -h)
981 ac_init_help=long ;;
982 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
983 ac_init_help=recursive ;;
984 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
985 ac_init_help=short ;;
986
987 -host | --host | --hos | --ho)
988 ac_prev=host_alias ;;
989 -host=* | --host=* | --hos=* | --ho=*)
990 host_alias=$ac_optarg ;;
991
992 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
993 ac_prev=htmldir ;;
994 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
995 | --ht=*)
996 htmldir=$ac_optarg ;;
997
998 -includedir | --includedir | --includedi | --included | --include \
999 | --includ | --inclu | --incl | --inc)
1000 ac_prev=includedir ;;
1001 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1002 | --includ=* | --inclu=* | --incl=* | --inc=*)
1003 includedir=$ac_optarg ;;
1004
1005 -infodir | --infodir | --infodi | --infod | --info | --inf)
1006 ac_prev=infodir ;;
1007 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1008 infodir=$ac_optarg ;;
1009
1010 -libdir | --libdir | --libdi | --libd)
1011 ac_prev=libdir ;;
1012 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1013 libdir=$ac_optarg ;;
1014
1015 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1016 | --libexe | --libex | --libe)
1017 ac_prev=libexecdir ;;
1018 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1019 | --libexe=* | --libex=* | --libe=*)
1020 libexecdir=$ac_optarg ;;
1021
1022 -localedir | --localedir | --localedi | --localed | --locale)
1023 ac_prev=localedir ;;
1024 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1025 localedir=$ac_optarg ;;
1026
1027 -localstatedir | --localstatedir | --localstatedi | --localstated \
1028 | --localstate | --localstat | --localsta | --localst | --locals)
1029 ac_prev=localstatedir ;;
1030 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1031 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1032 localstatedir=$ac_optarg ;;
1033
1034 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1035 ac_prev=mandir ;;
1036 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1037 mandir=$ac_optarg ;;
1038
1039 -nfp | --nfp | --nf)
1040 # Obsolete; use --without-fp.
1041 with_fp=no ;;
1042
1043 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1044 | --no-cr | --no-c | -n)
1045 no_create=yes ;;
1046
1047 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1048 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1049 no_recursion=yes ;;
1050
1051 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1052 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1053 | --oldin | --oldi | --old | --ol | --o)
1054 ac_prev=oldincludedir ;;
1055 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1056 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1057 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1058 oldincludedir=$ac_optarg ;;
1059
1060 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1061 ac_prev=prefix ;;
1062 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1063 prefix=$ac_optarg ;;
1064
1065 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1066 | --program-pre | --program-pr | --program-p)
1067 ac_prev=program_prefix ;;
1068 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1069 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1070 program_prefix=$ac_optarg ;;
1071
1072 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1073 | --program-suf | --program-su | --program-s)
1074 ac_prev=program_suffix ;;
1075 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1076 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1077 program_suffix=$ac_optarg ;;
1078
1079 -program-transform-name | --program-transform-name \
1080 | --program-transform-nam | --program-transform-na \
1081 | --program-transform-n | --program-transform- \
1082 | --program-transform | --program-transfor \
1083 | --program-transfo | --program-transf \
1084 | --program-trans | --program-tran \
1085 | --progr-tra | --program-tr | --program-t)
1086 ac_prev=program_transform_name ;;
1087 -program-transform-name=* | --program-transform-name=* \
1088 | --program-transform-nam=* | --program-transform-na=* \
1089 | --program-transform-n=* | --program-transform-=* \
1090 | --program-transform=* | --program-transfor=* \
1091 | --program-transfo=* | --program-transf=* \
1092 | --program-trans=* | --program-tran=* \
1093 | --progr-tra=* | --program-tr=* | --program-t=*)
1094 program_transform_name=$ac_optarg ;;
1095
1096 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1097 ac_prev=pdfdir ;;
1098 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1099 pdfdir=$ac_optarg ;;
1100
1101 -psdir | --psdir | --psdi | --psd | --ps)
1102 ac_prev=psdir ;;
1103 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1104 psdir=$ac_optarg ;;
1105
1106 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1107 | -silent | --silent | --silen | --sile | --sil)
1108 silent=yes ;;
1109
1110 -runstatedir | --runstatedir | --runstatedi | --runstated \
1111 | --runstate | --runstat | --runsta | --runst | --runs \
1112 | --run | --ru | --r)
1113 ac_prev=runstatedir ;;
1114 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1115 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1116 | --run=* | --ru=* | --r=*)
1117 runstatedir=$ac_optarg ;;
1118
1119 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1120 ac_prev=sbindir ;;
1121 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1122 | --sbi=* | --sb=*)
1123 sbindir=$ac_optarg ;;
1124
1125 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1126 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1127 | --sharedst | --shareds | --shared | --share | --shar \
1128 | --sha | --sh)
1129 ac_prev=sharedstatedir ;;
1130 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1131 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1132 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1133 | --sha=* | --sh=*)
1134 sharedstatedir=$ac_optarg ;;
1135
1136 -site | --site | --sit)
1137 ac_prev=site ;;
1138 -site=* | --site=* | --sit=*)
1139 site=$ac_optarg ;;
1140
1141 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1142 ac_prev=srcdir ;;
1143 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1144 srcdir=$ac_optarg ;;
1145
1146 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1147 | --syscon | --sysco | --sysc | --sys | --sy)
1148 ac_prev=sysconfdir ;;
1149 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1150 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1151 sysconfdir=$ac_optarg ;;
1152
1153 -target | --target | --targe | --targ | --tar | --ta | --t)
1154 ac_prev=target_alias ;;
1155 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1156 target_alias=$ac_optarg ;;
1157
1158 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1159 verbose=yes ;;
1160
1161 -version | --version | --versio | --versi | --vers | -V)
1162 ac_init_version=: ;;
1163
1164 -with-* | --with-*)
1165 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1166 # Reject names that are not valid shell variable names.
1167 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1168 as_fn_error $? "invalid package name: '$ac_useropt'"
1169 ac_useropt_orig=$ac_useropt
1170 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1171 case $ac_user_opts in
1172 *"
1173 "with_$ac_useropt"
1174 "*) ;;
1175 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1176 ac_unrecognized_sep=', ';;
1177 esac
1178 eval with_$ac_useropt=\$ac_optarg ;;
1179
1180 -without-* | --without-*)
1181 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1182 # Reject names that are not valid shell variable names.
1183 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1184 as_fn_error $? "invalid package name: '$ac_useropt'"
1185 ac_useropt_orig=$ac_useropt
1186 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1187 case $ac_user_opts in
1188 *"
1189 "with_$ac_useropt"
1190 "*) ;;
1191 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1192 ac_unrecognized_sep=', ';;
1193 esac
1194 eval with_$ac_useropt=no ;;
1195
1196 --x)
1197 # Obsolete; use --with-x.
1198 with_x=yes ;;
1199
1200 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1201 | --x-incl | --x-inc | --x-in | --x-i)
1202 ac_prev=x_includes ;;
1203 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1204 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1205 x_includes=$ac_optarg ;;
1206
1207 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1208 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1209 ac_prev=x_libraries ;;
1210 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1211 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1212 x_libraries=$ac_optarg ;;
1213
1214 -*) as_fn_error $? "unrecognized option: '$ac_option'
1215 Try '$0 --help' for more information"
1216 ;;
1217
1218 *=*)
1219 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1220 # Reject names that are not valid shell variable names.
1221 case $ac_envvar in #(
1222 '' | [0-9]* | *[!_$as_cr_alnum]* )
1223 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1224 esac
1225 eval $ac_envvar=\$ac_optarg
1226 export $ac_envvar ;;
1227
1228 *)
1229 # FIXME: should be removed in autoconf 3.0.
1230 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1231 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1232 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1233 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1234 ;;
1235
1236 esac
1237 done
1238
1239 if test -n "$ac_prev"; then
1240 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1241 as_fn_error $? "missing argument to $ac_option"
1242 fi
1243
1244 if test -n "$ac_unrecognized_opts"; then
1245 case $enable_option_checking in
1246 no) ;;
1247 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1248 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1249 esac
1250 fi
1251
1252 # Check all directory arguments for consistency.
1253 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1254 datadir sysconfdir sharedstatedir localstatedir includedir \
1255 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1256 libdir localedir mandir runstatedir
1257 do
1258 eval ac_val=\$$ac_var
1259 # Remove trailing slashes.
1260 case $ac_val in
1261 */ )
1262 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1263 eval $ac_var=\$ac_val;;
1264 esac
1265 # Be sure to have absolute directory names.
1266 case $ac_val in
1267 [\\/$]* | ?:[\\/]* ) continue;;
1268 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1269 esac
1270 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1271 done
1272
1273 # There might be people who depend on the old broken behavior: '$host'
1274 # used to hold the argument of --host etc.
1275 # FIXME: To remove some day.
1276 build=$build_alias
1277 host=$host_alias
1278 target=$target_alias
1279
1280 # FIXME: To remove some day.
1281 if test "x$host_alias" != x; then
1282 if test "x$build_alias" = x; then
1283 cross_compiling=maybe
1284 elif test "x$build_alias" != "x$host_alias"; then
1285 cross_compiling=yes
1286 fi
1287 fi
1288
1289 ac_tool_prefix=
1290 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1291
1292 test "$silent" = yes && exec 6>/dev/null
1293
1294
1295 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1296 ac_ls_di=`ls -di .` &&
1297 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1298 as_fn_error $? "working directory cannot be determined"
1299 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1300 as_fn_error $? "pwd does not report name of working directory"
1301
1302
1303 # Find the source files, if location was not specified.
1304 if test -z "$srcdir"; then
1305 ac_srcdir_defaulted=yes
1306 # Try the directory containing this script, then the parent directory.
1307 ac_confdir=`$as_dirname -- "$as_myself" ||
1308 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1309 X"$as_myself" : 'X\(//\)[^/]' \| \
1310 X"$as_myself" : 'X\(//\)$' \| \
1311 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1312 printf "%s\n" X"$as_myself" |
1313 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1314 s//\1/
1315 q
1316 }
1317 /^X\(\/\/\)[^/].*/{
1318 s//\1/
1319 q
1320 }
1321 /^X\(\/\/\)$/{
1322 s//\1/
1323 q
1324 }
1325 /^X\(\/\).*/{
1326 s//\1/
1327 q
1328 }
1329 s/.*/./; q'`
1330 srcdir=$ac_confdir
1331 if test ! -r "$srcdir/$ac_unique_file"; then
1332 srcdir=..
1333 fi
1334 else
1335 ac_srcdir_defaulted=no
1336 fi
1337 if test ! -r "$srcdir/$ac_unique_file"; then
1338 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1339 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1340 fi
1341 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1342 ac_abs_confdir=`(
1343 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1344 pwd)`
1345 # When building in place, set srcdir=.
1346 if test "$ac_abs_confdir" = "$ac_pwd"; then
1347 srcdir=.
1348 fi
1349 # Remove unnecessary trailing slashes from srcdir.
1350 # Double slashes in file names in object file debugging info
1351 # mess up M-x gdb in Emacs.
1352 case $srcdir in
1353 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1354 esac
1355 for ac_var in $ac_precious_vars; do
1356 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1357 eval ac_env_${ac_var}_value=\$${ac_var}
1358 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1359 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1360 done
1361
1362 #
1363 # Report the --help message.
1364 #
1365 if test "$ac_init_help" = "long"; then
1366 # Omit some internal or obsolete options to make the list less imposing.
1367 # This message is too long to be a string in the A/UX 3.1 sh.
1368 cat <<_ACEOF
1369 'configure' configures ps2pkm (TeX Live) 1.8 to adapt to many kinds of systems.
1370
1371 Usage: $0 [OPTION]... [VAR=VALUE]...
1372
1373 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1374 VAR=VALUE. See below for descriptions of some of the useful variables.
1375
1376 Defaults for the options are specified in brackets.
1377
1378 Configuration:
1379 -h, --help display this help and exit
1380 --help=short display options specific to this package
1381 --help=recursive display the short help of all the included packages
1382 -V, --version display version information and exit
1383 -q, --quiet, --silent do not print 'checking ...' messages
1384 --cache-file=FILE cache test results in FILE [disabled]
1385 -C, --config-cache alias for '--cache-file=config.cache'
1386 -n, --no-create do not create output files
1387 --srcdir=DIR find the sources in DIR [configure dir or '..']
1388
1389 Installation directories:
1390 --prefix=PREFIX install architecture-independent files in PREFIX
1391 [$ac_default_prefix]
1392 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1393 [PREFIX]
1394
1395 By default, 'make install' will install all the files in
1396 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1397 an installation prefix other than '$ac_default_prefix' using '--prefix',
1398 for instance '--prefix=\$HOME'.
1399
1400 For better control, use the options below.
1401
1402 Fine tuning of the installation directories:
1403 --bindir=DIR user executables [EPREFIX/bin]
1404 --sbindir=DIR system admin executables [EPREFIX/sbin]
1405 --libexecdir=DIR program executables [EPREFIX/libexec]
1406 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1407 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1408 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1409 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1410 --libdir=DIR object code libraries [EPREFIX/lib]
1411 --includedir=DIR C header files [PREFIX/include]
1412 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1413 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1414 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1415 --infodir=DIR info documentation [DATAROOTDIR/info]
1416 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1417 --mandir=DIR man documentation [DATAROOTDIR/man]
1418 --docdir=DIR documentation root
1419 [DATAROOTDIR/doc/ps2pkm--tex-live-]
1420 --htmldir=DIR html documentation [DOCDIR]
1421 --dvidir=DIR dvi documentation [DOCDIR]
1422 --pdfdir=DIR pdf documentation [DOCDIR]
1423 --psdir=DIR ps documentation [DOCDIR]
1424 _ACEOF
1425
1426 cat <<\_ACEOF
1427
1428 Program names:
1429 --program-prefix=PREFIX prepend PREFIX to installed program names
1430 --program-suffix=SUFFIX append SUFFIX to installed program names
1431 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1432
1433 System types:
1434 --build=BUILD configure for building on BUILD [guessed]
1435 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1436 _ACEOF
1437 fi
1438
1439 if test -n "$ac_init_help"; then
1440 case $ac_init_help in
1441 short | recursive ) echo "Configuration of ps2pkm (TeX Live) 1.8:";;
1442 esac
1443 cat <<\_ACEOF
1444
1445 Optional Features:
1446 --disable-option-checking ignore unrecognized --enable/--with options
1447 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1448 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1449 --enable-silent-rules less verbose build output (undo: "make V=1")
1450 --disable-silent-rules verbose build output (undo: "make V=0")
1451 --enable-maintainer-mode
1452 enable make rules and dependencies not useful (and
1453 sometimes confusing) to the casual installer
1454 --enable-dependency-tracking
1455 do not reject slow dependency extractors
1456 --disable-dependency-tracking
1457 speeds up one-time build
1458 --enable-compiler-warnings=[no|min|yes|max|all]
1459 Turn on compiler warnings [default: yes if
1460 maintainer-mode, min otherwise]
1461 --enable-shared[=PKGS] build shared libraries [default=yes]
1462 --enable-static[=PKGS] build static libraries [default=yes]
1463 --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1464 both]
1465 --enable-fast-install[=PKGS]
1466 optimize for fast installation [default=yes]
1467 --enable-aix-soname=aix|svr4|both
1468 shared library versioning (aka "SONAME") variant to
1469 provide on AIX, [default=aix].
1470 --disable-libtool-lock avoid locking (might break parallel builds)
1471 --disable-largefile omit support for large files
1472 --enable-year2038 support timestamps after 2038
1473
1474 Optional Packages:
1475 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1476 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1477 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1478 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1479 compiler's sysroot if not specified).
1480 --with-system-kpathsea use installed kpathsea headers and library (requires
1481 pkg-config)
1482
1483 Some influential environment variables:
1484 CC C compiler command
1485 CFLAGS C compiler flags
1486 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1487 nonstandard directory <lib dir>
1488 LIBS libraries to pass to the linker, e.g. -l<library>
1489 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1490 you have headers in a nonstandard directory <include dir>
1491 LT_SYS_LIBRARY_PATH
1492 User-defined run-time library search path.
1493
1494 Use these variables to override the choices made by 'configure' or to help
1495 it to find libraries and programs with nonstandard names/locations.
1496
1497 Report bugs to <[email protected]>.
1498 _ACEOF
1499 ac_status=$?
1500 fi
1501
1502 if test "$ac_init_help" = "recursive"; then
1503 # If there are subdirs, report their specific --help.
1504 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1505 test -d "$ac_dir" ||
1506 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1507 continue
1508 ac_builddir=.
1509
1510 case "$ac_dir" in
1511 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1512 *)
1513 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1514 # A ".." for each directory in $ac_dir_suffix.
1515 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1516 case $ac_top_builddir_sub in
1517 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1518 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1519 esac ;;
1520 esac
1521 ac_abs_top_builddir=$ac_pwd
1522 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1523 # for backward compatibility:
1524 ac_top_builddir=$ac_top_build_prefix
1525
1526 case $srcdir in
1527 .) # We are building in place.
1528 ac_srcdir=.
1529 ac_top_srcdir=$ac_top_builddir_sub
1530 ac_abs_top_srcdir=$ac_pwd ;;
1531 [\\/]* | ?:[\\/]* ) # Absolute name.
1532 ac_srcdir=$srcdir$ac_dir_suffix;
1533 ac_top_srcdir=$srcdir
1534 ac_abs_top_srcdir=$srcdir ;;
1535 *) # Relative name.
1536 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1537 ac_top_srcdir=$ac_top_build_prefix$srcdir
1538 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1539 esac
1540 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1541
1542 cd "$ac_dir" || { ac_status=$?; continue; }
1543 # Check for configure.gnu first; this name is used for a wrapper for
1544 # Metaconfig's "Configure" on case-insensitive file systems.
1545 if test -f "$ac_srcdir/configure.gnu"; then
1546 echo &&
1547 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1548 elif test -f "$ac_srcdir/configure"; then
1549 echo &&
1550 $SHELL "$ac_srcdir/configure" --help=recursive
1551 else
1552 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1553 fi || ac_status=$?
1554 cd "$ac_pwd" || { ac_status=$?; break; }
1555 done
1556 fi
1557
1558 test -n "$ac_init_help" && exit $ac_status
1559 if $ac_init_version; then
1560 cat <<\_ACEOF
1561 ps2pkm (TeX Live) configure 1.8
1562 generated by GNU Autoconf 2.72
1563
1564 Copyright (C) 2023 Free Software Foundation, Inc.
1565 This configure script is free software; the Free Software Foundation
1566 gives unlimited permission to copy, distribute and modify it.
1567 _ACEOF
1568 exit
1569 fi
1570
1571 ## ------------------------ ##
1572 ## Autoconf initialization. ##
1573 ## ------------------------ ##
1574
1575 # ac_fn_c_try_compile LINENO
1576 # --------------------------
1577 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1578 ac_fn_c_try_compile ()
1579 {
1580 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1581 rm -f conftest.$ac_objext conftest.beam
1582 if { { ac_try="$ac_compile"
1583 case "(($ac_try" in
1584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1585 *) ac_try_echo=$ac_try;;
1586 esac
1587 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1588 printf "%s\n" "$ac_try_echo"; } >&5
1589 (eval "$ac_compile") 2>conftest.err
1590 ac_status=$?
1591 if test -s conftest.err; then
1592 grep -v '^ *+' conftest.err >conftest.er1
1593 cat conftest.er1 >&5
1594 mv -f conftest.er1 conftest.err
1595 fi
1596 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1597 test $ac_status = 0; } && {
1598 test -z "$ac_c_werror_flag" ||
1599 test ! -s conftest.err
1600 } && test -s conftest.$ac_objext
1601 then :
1602 ac_retval=0
1603 else case e in #(
1604 e) printf "%s\n" "$as_me: failed program was:" >&5
1605 sed 's/^/| /' conftest.$ac_ext >&5
1606
1607 ac_retval=1 ;;
1608 esac
1609 fi
1610 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1611 as_fn_set_status $ac_retval
1612
1613 } # ac_fn_c_try_compile
1614
1615 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1616 # -------------------------------------------------------
1617 # Tests whether HEADER exists and can be compiled using the include files in
1618 # INCLUDES, setting the cache variable VAR accordingly.
1619 ac_fn_c_check_header_compile ()
1620 {
1621 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1623 printf %s "checking for $2... " >&6; }
1624 if eval test \${$3+y}
1625 then :
1626 printf %s "(cached) " >&6
1627 else case e in #(
1628 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1629 /* end confdefs.h. */
1630 $4
1631 #include <$2>
1632 _ACEOF
1633 if ac_fn_c_try_compile "$LINENO"
1634 then :
1635 eval "$3=yes"
1636 else case e in #(
1637 e) eval "$3=no" ;;
1638 esac
1639 fi
1640 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1641 esac
1642 fi
1643 eval ac_res=\$$3
1644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1645 printf "%s\n" "$ac_res" >&6; }
1646 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1647
1648 } # ac_fn_c_check_header_compile
1649
1650 # ac_fn_c_try_link LINENO
1651 # -----------------------
1652 # Try to link conftest.$ac_ext, and return whether this succeeded.
1653 ac_fn_c_try_link ()
1654 {
1655 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1656 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1657 if { { ac_try="$ac_link"
1658 case "(($ac_try" in
1659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1660 *) ac_try_echo=$ac_try;;
1661 esac
1662 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1663 printf "%s\n" "$ac_try_echo"; } >&5
1664 (eval "$ac_link") 2>conftest.err
1665 ac_status=$?
1666 if test -s conftest.err; then
1667 grep -v '^ *+' conftest.err >conftest.er1
1668 cat conftest.er1 >&5
1669 mv -f conftest.er1 conftest.err
1670 fi
1671 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1672 test $ac_status = 0; } && {
1673 test -z "$ac_c_werror_flag" ||
1674 test ! -s conftest.err
1675 } && test -s conftest$ac_exeext && {
1676 test "$cross_compiling" = yes ||
1677 test -x conftest$ac_exeext
1678 }
1679 then :
1680 ac_retval=0
1681 else case e in #(
1682 e) printf "%s\n" "$as_me: failed program was:" >&5
1683 sed 's/^/| /' conftest.$ac_ext >&5
1684
1685 ac_retval=1 ;;
1686 esac
1687 fi
1688 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1689 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1690 # interfere with the next link command; also delete a directory that is
1691 # left behind by Apple's compiler. We do this before executing the actions.
1692 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1693 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1694 as_fn_set_status $ac_retval
1695
1696 } # ac_fn_c_try_link
1697
1698 # ac_fn_c_check_func LINENO FUNC VAR
1699 # ----------------------------------
1700 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1701 ac_fn_c_check_func ()
1702 {
1703 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1705 printf %s "checking for $2... " >&6; }
1706 if eval test \${$3+y}
1707 then :
1708 printf %s "(cached) " >&6
1709 else case e in #(
1710 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1711 /* end confdefs.h. */
1712 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1713 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1714 #define $2 innocuous_$2
1715
1716 /* System header to define __stub macros and hopefully few prototypes,
1717 which can conflict with char $2 (void); below. */
1718
1719 #include <limits.h>
1720 #undef $2
1721
1722 /* Override any GCC internal prototype to avoid an error.
1723 Use char because int might match the return type of a GCC
1724 builtin and then its argument prototype would still apply. */
1725 #ifdef __cplusplus
1726 extern "C"
1727 #endif
1728 char $2 (void);
1729 /* The GNU C library defines this for functions which it implements
1730 to always fail with ENOSYS. Some functions are actually named
1731 something starting with __ and the normal name is an alias. */
1732 #if defined __stub_$2 || defined __stub___$2
1733 choke me
1734 #endif
1735
1736 int
1737 main (void)
1738 {
1739 return $2 ();
1740 ;
1741 return 0;
1742 }
1743 _ACEOF
1744 if ac_fn_c_try_link "$LINENO"
1745 then :
1746 eval "$3=yes"
1747 else case e in #(
1748 e) eval "$3=no" ;;
1749 esac
1750 fi
1751 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1752 conftest$ac_exeext conftest.$ac_ext ;;
1753 esac
1754 fi
1755 eval ac_res=\$$3
1756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1757 printf "%s\n" "$ac_res" >&6; }
1758 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1759
1760 } # ac_fn_c_check_func
1761
1762 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1763 # -------------------------------------------
1764 # Tests whether TYPE exists after having included INCLUDES, setting cache
1765 # variable VAR accordingly.
1766 ac_fn_c_check_type ()
1767 {
1768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1770 printf %s "checking for $2... " >&6; }
1771 if eval test \${$3+y}
1772 then :
1773 printf %s "(cached) " >&6
1774 else case e in #(
1775 e) eval "$3=no"
1776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1777 /* end confdefs.h. */
1778 $4
1779 int
1780 main (void)
1781 {
1782 if (sizeof ($2))
1783 return 0;
1784 ;
1785 return 0;
1786 }
1787 _ACEOF
1788 if ac_fn_c_try_compile "$LINENO"
1789 then :
1790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1791 /* end confdefs.h. */
1792 $4
1793 int
1794 main (void)
1795 {
1796 if (sizeof (($2)))
1797 return 0;
1798 ;
1799 return 0;
1800 }
1801 _ACEOF
1802 if ac_fn_c_try_compile "$LINENO"
1803 then :
1804
1805 else case e in #(
1806 e) eval "$3=yes" ;;
1807 esac
1808 fi
1809 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1810 fi
1811 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1812 esac
1813 fi
1814 eval ac_res=\$$3
1815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1816 printf "%s\n" "$ac_res" >&6; }
1817 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1818
1819 } # ac_fn_c_check_type
1820
1821 # ac_fn_c_find_intX_t LINENO BITS VAR
1822 # -----------------------------------
1823 # Finds a signed integer type with width BITS, setting cache variable VAR
1824 # accordingly.
1825 ac_fn_c_find_intX_t ()
1826 {
1827 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1829 printf %s "checking for int$2_t... " >&6; }
1830 if eval test \${$3+y}
1831 then :
1832 printf %s "(cached) " >&6
1833 else case e in #(
1834 e) eval "$3=no"
1835 # Order is important - never check a type that is potentially smaller
1836 # than half of the expected target width.
1837 for ac_type in int$2_t 'int' 'long int' \
1838 'long long int' 'short int' 'signed char'; do
1839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1840 /* end confdefs.h. */
1841 $ac_includes_default
1842 enum { N = $2 / 2 - 1 };
1843 int
1844 main (void)
1845 {
1846 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
1847 test_array [0] = 0;
1848 return test_array [0];
1849
1850 ;
1851 return 0;
1852 }
1853 _ACEOF
1854 if ac_fn_c_try_compile "$LINENO"
1855 then :
1856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1857 /* end confdefs.h. */
1858 $ac_includes_default
1859 enum { N = $2 / 2 - 1 };
1860 int
1861 main (void)
1862 {
1863 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
1864 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
1865 test_array [0] = 0;
1866 return test_array [0];
1867
1868 ;
1869 return 0;
1870 }
1871 _ACEOF
1872 if ac_fn_c_try_compile "$LINENO"
1873 then :
1874
1875 else case e in #(
1876 e) case $ac_type in #(
1877 int$2_t) :
1878 eval "$3=yes" ;; #(
1879 *) :
1880 eval "$3=\$ac_type" ;;
1881 esac ;;
1882 esac
1883 fi
1884 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1885 fi
1886 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1887 if eval test \"x\$"$3"\" = x"no"
1888 then :
1889
1890 else case e in #(
1891 e) break ;;
1892 esac
1893 fi
1894 done ;;
1895 esac
1896 fi
1897 eval ac_res=\$$3
1898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1899 printf "%s\n" "$ac_res" >&6; }
1900 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1901
1902 } # ac_fn_c_find_intX_t
1903
1904 # ac_fn_c_find_uintX_t LINENO BITS VAR
1905 # ------------------------------------
1906 # Finds an unsigned integer type with width BITS, setting cache variable VAR
1907 # accordingly.
1908 ac_fn_c_find_uintX_t ()
1909 {
1910 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1912 printf %s "checking for uint$2_t... " >&6; }
1913 if eval test \${$3+y}
1914 then :
1915 printf %s "(cached) " >&6
1916 else case e in #(
1917 e) eval "$3=no"
1918 # Order is important - never check a type that is potentially smaller
1919 # than half of the expected target width.
1920 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1921 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1923 /* end confdefs.h. */
1924 $ac_includes_default
1925 int
1926 main (void)
1927 {
1928 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1929 test_array [0] = 0;
1930 return test_array [0];
1931
1932 ;
1933 return 0;
1934 }
1935 _ACEOF
1936 if ac_fn_c_try_compile "$LINENO"
1937 then :
1938 case $ac_type in #(
1939 uint$2_t) :
1940 eval "$3=yes" ;; #(
1941 *) :
1942 eval "$3=\$ac_type" ;;
1943 esac
1944 fi
1945 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1946 if eval test \"x\$"$3"\" = x"no"
1947 then :
1948
1949 else case e in #(
1950 e) break ;;
1951 esac
1952 fi
1953 done ;;
1954 esac
1955 fi
1956 eval ac_res=\$$3
1957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1958 printf "%s\n" "$ac_res" >&6; }
1959 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1960
1961 } # ac_fn_c_find_uintX_t
1962
1963 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1964 # ------------------------------------------------------------------
1965 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1966 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1967 ac_fn_check_decl ()
1968 {
1969 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1970 as_decl_name=`echo $2|sed 's/ *(.*//'`
1971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1972 printf %s "checking whether $as_decl_name is declared... " >&6; }
1973 if eval test \${$3+y}
1974 then :
1975 printf %s "(cached) " >&6
1976 else case e in #(
1977 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1978 eval ac_save_FLAGS=\$$6
1979 as_fn_append $6 " $5"
1980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1981 /* end confdefs.h. */
1982 $4
1983 int
1984 main (void)
1985 {
1986 #ifndef $as_decl_name
1987 #ifdef __cplusplus
1988 (void) $as_decl_use;
1989 #else
1990 (void) $as_decl_name;
1991 #endif
1992 #endif
1993
1994 ;
1995 return 0;
1996 }
1997 _ACEOF
1998 if ac_fn_c_try_compile "$LINENO"
1999 then :
2000 eval "$3=yes"
2001 else case e in #(
2002 e) eval "$3=no" ;;
2003 esac
2004 fi
2005 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2006 eval $6=\$ac_save_FLAGS
2007 ;;
2008 esac
2009 fi
2010 eval ac_res=\$$3
2011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2012 printf "%s\n" "$ac_res" >&6; }
2013 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2014
2015 } # ac_fn_check_decl
2016
2017 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2018 # ----------------------------------------------------
2019 # Tries to find if the field MEMBER exists in type AGGR, after including
2020 # INCLUDES, setting cache variable VAR accordingly.
2021 ac_fn_c_check_member ()
2022 {
2023 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2025 printf %s "checking for $2.$3... " >&6; }
2026 if eval test \${$4+y}
2027 then :
2028 printf %s "(cached) " >&6
2029 else case e in #(
2030 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2031 /* end confdefs.h. */
2032 $5
2033 int
2034 main (void)
2035 {
2036 static $2 ac_aggr;
2037 if (ac_aggr.$3)
2038 return 0;
2039 ;
2040 return 0;
2041 }
2042 _ACEOF
2043 if ac_fn_c_try_compile "$LINENO"
2044 then :
2045 eval "$4=yes"
2046 else case e in #(
2047 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2048 /* end confdefs.h. */
2049 $5
2050 int
2051 main (void)
2052 {
2053 static $2 ac_aggr;
2054 if (sizeof ac_aggr.$3)
2055 return 0;
2056 ;
2057 return 0;
2058 }
2059 _ACEOF
2060 if ac_fn_c_try_compile "$LINENO"
2061 then :
2062 eval "$4=yes"
2063 else case e in #(
2064 e) eval "$4=no" ;;
2065 esac
2066 fi
2067 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2068 esac
2069 fi
2070 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2071 esac
2072 fi
2073 eval ac_res=\$$4
2074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2075 printf "%s\n" "$ac_res" >&6; }
2076 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2077
2078 } # ac_fn_c_check_member
2079 ac_configure_args_raw=
2080 for ac_arg
2081 do
2082 case $ac_arg in
2083 *\'*)
2084 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2085 esac
2086 as_fn_append ac_configure_args_raw " '$ac_arg'"
2087 done
2088
2089 case $ac_configure_args_raw in
2090 *$as_nl*)
2091 ac_safe_unquote= ;;
2092 *)
2093 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2094 ac_unsafe_a="$ac_unsafe_z#~"
2095 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2096 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2097 esac
2098
2099 cat >config.log <<_ACEOF
2100 This file contains any messages produced by compilers while
2101 running configure, to aid debugging if configure makes a mistake.
2102
2103 It was created by ps2pkm (TeX Live) $as_me 1.8, which was
2104 generated by GNU Autoconf 2.72. Invocation command line was
2105
2106 $ $0$ac_configure_args_raw
2107
2108 _ACEOF
2109 exec 5>>config.log
2110 {
2111 cat <<_ASUNAME
2112 ## --------- ##
2113 ## Platform. ##
2114 ## --------- ##
2115
2116 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2117 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2118 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2119 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2120 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2121
2122 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2123 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2124
2125 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2126 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2127 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2128 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2129 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2130 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2131 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2132
2133 _ASUNAME
2134
2135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2136 for as_dir in $PATH
2137 do
2138 IFS=$as_save_IFS
2139 case $as_dir in #(((
2140 '') as_dir=./ ;;
2141 */) ;;
2142 *) as_dir=$as_dir/ ;;
2143 esac
2144 printf "%s\n" "PATH: $as_dir"
2145 done
2146 IFS=$as_save_IFS
2147
2148 } >&5
2149
2150 cat >&5 <<_ACEOF
2151
2152
2153 ## ----------- ##
2154 ## Core tests. ##
2155 ## ----------- ##
2156
2157 _ACEOF
2158
2159
2160 # Keep a trace of the command line.
2161 # Strip out --no-create and --no-recursion so they do not pile up.
2162 # Strip out --silent because we don't want to record it for future runs.
2163 # Also quote any args containing shell meta-characters.
2164 # Make two passes to allow for proper duplicate-argument suppression.
2165 ac_configure_args=
2166 ac_configure_args0=
2167 ac_configure_args1=
2168 ac_must_keep_next=false
2169 for ac_pass in 1 2
2170 do
2171 for ac_arg
2172 do
2173 case $ac_arg in
2174 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2175 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2176 | -silent | --silent | --silen | --sile | --sil)
2177 continue ;;
2178 *\'*)
2179 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2180 esac
2181 case $ac_pass in
2182 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2183 2)
2184 as_fn_append ac_configure_args1 " '$ac_arg'"
2185 if test $ac_must_keep_next = true; then
2186 ac_must_keep_next=false # Got value, back to normal.
2187 else
2188 case $ac_arg in
2189 *=* | --config-cache | -C | -disable-* | --disable-* \
2190 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2191 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2192 | -with-* | --with-* | -without-* | --without-* | --x)
2193 case "$ac_configure_args0 " in
2194 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2195 esac
2196 ;;
2197 -* ) ac_must_keep_next=true ;;
2198 esac
2199 fi
2200 as_fn_append ac_configure_args " '$ac_arg'"
2201 ;;
2202 esac
2203 done
2204 done
2205 { ac_configure_args0=; unset ac_configure_args0;}
2206 { ac_configure_args1=; unset ac_configure_args1;}
2207
2208 # When interrupted or exit'd, cleanup temporary files, and complete
2209 # config.log. We remove comments because anyway the quotes in there
2210 # would cause problems or look ugly.
2211 # WARNING: Use '\'' to represent an apostrophe within the trap.
2212 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2213 trap 'exit_status=$?
2214 # Sanitize IFS.
2215 IFS=" "" $as_nl"
2216 # Save into config.log some information that might help in debugging.
2217 {
2218 echo
2219
2220 printf "%s\n" "## ---------------- ##
2221 ## Cache variables. ##
2222 ## ---------------- ##"
2223 echo
2224 # The following way of writing the cache mishandles newlines in values,
2225 (
2226 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2227 eval ac_val=\$$ac_var
2228 case $ac_val in #(
2229 *${as_nl}*)
2230 case $ac_var in #(
2231 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2232 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2233 esac
2234 case $ac_var in #(
2235 _ | IFS | as_nl) ;; #(
2236 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2237 *) { eval $ac_var=; unset $ac_var;} ;;
2238 esac ;;
2239 esac
2240 done
2241 (set) 2>&1 |
2242 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2243 *${as_nl}ac_space=\ *)
2244 sed -n \
2245 "s/'\''/'\''\\\\'\'''\''/g;
2246 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2247 ;; #(
2248 *)
2249 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2250 ;;
2251 esac |
2252 sort
2253 )
2254 echo
2255
2256 printf "%s\n" "## ----------------- ##
2257 ## Output variables. ##
2258 ## ----------------- ##"
2259 echo
2260 for ac_var in $ac_subst_vars
2261 do
2262 eval ac_val=\$$ac_var
2263 case $ac_val in
2264 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2265 esac
2266 printf "%s\n" "$ac_var='\''$ac_val'\''"
2267 done | sort
2268 echo
2269
2270 if test -n "$ac_subst_files"; then
2271 printf "%s\n" "## ------------------- ##
2272 ## File substitutions. ##
2273 ## ------------------- ##"
2274 echo
2275 for ac_var in $ac_subst_files
2276 do
2277 eval ac_val=\$$ac_var
2278 case $ac_val in
2279 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2280 esac
2281 printf "%s\n" "$ac_var='\''$ac_val'\''"
2282 done | sort
2283 echo
2284 fi
2285
2286 if test -s confdefs.h; then
2287 printf "%s\n" "## ----------- ##
2288 ## confdefs.h. ##
2289 ## ----------- ##"
2290 echo
2291 cat confdefs.h
2292 echo
2293 fi
2294 test "$ac_signal" != 0 &&
2295 printf "%s\n" "$as_me: caught signal $ac_signal"
2296 printf "%s\n" "$as_me: exit $exit_status"
2297 } >&5
2298 rm -f core *.core core.conftest.* &&
2299 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2300 exit $exit_status
2301 ' 0
2302 for ac_signal in 1 2 13 15; do
2303 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2304 done
2305 ac_signal=0
2306
2307 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2308 rm -f -r conftest* confdefs.h
2309
2310 printf "%s\n" "/* confdefs.h */" > confdefs.h
2311
2312 # Predefined preprocessor variables.
2313
2314 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2315
2316 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2317
2318 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2319
2320 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2321
2322 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2323
2324 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2325
2326
2327 # Let the site file select an alternate cache file if it wants to.
2328 # Prefer an explicitly selected file to automatically selected ones.
2329 if test -n "$CONFIG_SITE"; then
2330 ac_site_files="$CONFIG_SITE"
2331 elif test "x$prefix" != xNONE; then
2332 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2333 else
2334 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2335 fi
2336
2337 for ac_site_file in $ac_site_files
2338 do
2339 case $ac_site_file in #(
2340 */*) :
2341 ;; #(
2342 *) :
2343 ac_site_file=./$ac_site_file ;;
2344 esac
2345 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2347 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2348 sed 's/^/| /' "$ac_site_file" >&5
2349 . "$ac_site_file" \
2350 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2351 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2352 as_fn_error $? "failed to load site script $ac_site_file
2353 See 'config.log' for more details" "$LINENO" 5; }
2354 fi
2355 done
2356
2357 if test -r "$cache_file"; then
2358 # Some versions of bash will fail to source /dev/null (special files
2359 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2360 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2362 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2363 case $cache_file in
2364 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2365 *) . "./$cache_file";;
2366 esac
2367 fi
2368 else
2369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2370 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2371 >$cache_file
2372 fi
2373
2374 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2375 # Test code for whether the C compiler supports C89 (global declarations)
2376 ac_c_conftest_c89_globals='
2377 /* Does the compiler advertise C89 conformance?
2378 Do not test the value of __STDC__, because some compilers set it to 0
2379 while being otherwise adequately conformant. */
2380 #if !defined __STDC__
2381 # error "Compiler does not advertise C89 conformance"
2382 #endif
2383
2384 #include <stddef.h>
2385 #include <stdarg.h>
2386 struct stat;
2387 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2388 struct buf { int x; };
2389 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2390 static char *e (char **p, int i)
2391 {
2392 return p[i];
2393 }
2394 static char *f (char * (*g) (char **, int), char **p, ...)
2395 {
2396 char *s;
2397 va_list v;
2398 va_start (v,p);
2399 s = g (p, va_arg (v,int));
2400 va_end (v);
2401 return s;
2402 }
2403
2404 /* C89 style stringification. */
2405 #define noexpand_stringify(a) #a
2406 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2407
2408 /* C89 style token pasting. Exercises some of the corner cases that
2409 e.g. old MSVC gets wrong, but not very hard. */
2410 #define noexpand_concat(a,b) a##b
2411 #define expand_concat(a,b) noexpand_concat(a,b)
2412 extern int vA;
2413 extern int vbee;
2414 #define aye A
2415 #define bee B
2416 int *pvA = &expand_concat(v,aye);
2417 int *pvbee = &noexpand_concat(v,bee);
2418
2419 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2420 function prototypes and stuff, but not \xHH hex character constants.
2421 These do not provoke an error unfortunately, instead are silently treated
2422 as an "x". The following induces an error, until -std is added to get
2423 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2424 array size at least. It is necessary to write \x00 == 0 to get something
2425 that is true only with -std. */
2426 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2427
2428 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2429 inside strings and character constants. */
2430 #define FOO(x) '\''x'\''
2431 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2432
2433 int test (int i, double x);
2434 struct s1 {int (*f) (int a);};
2435 struct s2 {int (*f) (double a);};
2436 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2437 int, int);'
2438
2439 # Test code for whether the C compiler supports C89 (body of main).
2440 ac_c_conftest_c89_main='
2441 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2442 '
2443
2444 # Test code for whether the C compiler supports C99 (global declarations)
2445 ac_c_conftest_c99_globals='
2446 /* Does the compiler advertise C99 conformance? */
2447 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2448 # error "Compiler does not advertise C99 conformance"
2449 #endif
2450
2451 // See if C++-style comments work.
2452
2453 #include <stdbool.h>
2454 extern int puts (const char *);
2455 extern int printf (const char *, ...);
2456 extern int dprintf (int, const char *, ...);
2457 extern void *malloc (size_t);
2458 extern void free (void *);
2459
2460 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2461 // dprintf is used instead of fprintf to avoid needing to declare
2462 // FILE and stderr.
2463 #define debug(...) dprintf (2, __VA_ARGS__)
2464 #define showlist(...) puts (#__VA_ARGS__)
2465 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2466 static void
2467 test_varargs_macros (void)
2468 {
2469 int x = 1234;
2470 int y = 5678;
2471 debug ("Flag");
2472 debug ("X = %d\n", x);
2473 showlist (The first, second, and third items.);
2474 report (x>y, "x is %d but y is %d", x, y);
2475 }
2476
2477 // Check long long types.
2478 #define BIG64 18446744073709551615ull
2479 #define BIG32 4294967295ul
2480 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2481 #if !BIG_OK
2482 #error "your preprocessor is broken"
2483 #endif
2484 #if BIG_OK
2485 #else
2486 #error "your preprocessor is broken"
2487 #endif
2488 static long long int bignum = -9223372036854775807LL;
2489 static unsigned long long int ubignum = BIG64;
2490
2491 struct incomplete_array
2492 {
2493 int datasize;
2494 double data[];
2495 };
2496
2497 struct named_init {
2498 int number;
2499 const wchar_t *name;
2500 double average;
2501 };
2502
2503 typedef const char *ccp;
2504
2505 static inline int
2506 test_restrict (ccp restrict text)
2507 {
2508 // Iterate through items via the restricted pointer.
2509 // Also check for declarations in for loops.
2510 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2511 continue;
2512 return 0;
2513 }
2514
2515 // Check varargs and va_copy.
2516 static bool
2517 test_varargs (const char *format, ...)
2518 {
2519 va_list args;
2520 va_start (args, format);
2521 va_list args_copy;
2522 va_copy (args_copy, args);
2523
2524 const char *str = "";
2525 int number = 0;
2526 float fnumber = 0;
2527
2528 while (*format)
2529 {
2530 switch (*format++)
2531 {
2532 case '\''s'\'': // string
2533 str = va_arg (args_copy, const char *);
2534 break;
2535 case '\''d'\'': // int
2536 number = va_arg (args_copy, int);
2537 break;
2538 case '\''f'\'': // float
2539 fnumber = va_arg (args_copy, double);
2540 break;
2541 default:
2542 break;
2543 }
2544 }
2545 va_end (args_copy);
2546 va_end (args);
2547
2548 return *str && number && fnumber;
2549 }
2550 '
2551
2552 # Test code for whether the C compiler supports C99 (body of main).
2553 ac_c_conftest_c99_main='
2554 // Check bool.
2555 _Bool success = false;
2556 success |= (argc != 0);
2557
2558 // Check restrict.
2559 if (test_restrict ("String literal") == 0)
2560 success = true;
2561 char *restrict newvar = "Another string";
2562
2563 // Check varargs.
2564 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2565 test_varargs_macros ();
2566
2567 // Check flexible array members.
2568 struct incomplete_array *ia =
2569 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2570 ia->datasize = 10;
2571 for (int i = 0; i < ia->datasize; ++i)
2572 ia->data[i] = i * 1.234;
2573 // Work around memory leak warnings.
2574 free (ia);
2575
2576 // Check named initializers.
2577 struct named_init ni = {
2578 .number = 34,
2579 .name = L"Test wide string",
2580 .average = 543.34343,
2581 };
2582
2583 ni.number = 58;
2584
2585 int dynamic_array[ni.number];
2586 dynamic_array[0] = argv[0][0];
2587 dynamic_array[ni.number - 1] = 543;
2588
2589 // work around unused variable warnings
2590 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2591 || dynamic_array[ni.number - 1] != 543);
2592 '
2593
2594 # Test code for whether the C compiler supports C11 (global declarations)
2595 ac_c_conftest_c11_globals='
2596 /* Does the compiler advertise C11 conformance? */
2597 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2598 # error "Compiler does not advertise C11 conformance"
2599 #endif
2600
2601 // Check _Alignas.
2602 char _Alignas (double) aligned_as_double;
2603 char _Alignas (0) no_special_alignment;
2604 extern char aligned_as_int;
2605 char _Alignas (0) _Alignas (int) aligned_as_int;
2606
2607 // Check _Alignof.
2608 enum
2609 {
2610 int_alignment = _Alignof (int),
2611 int_array_alignment = _Alignof (int[100]),
2612 char_alignment = _Alignof (char)
2613 };
2614 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2615
2616 // Check _Noreturn.
2617 int _Noreturn does_not_return (void) { for (;;) continue; }
2618
2619 // Check _Static_assert.
2620 struct test_static_assert
2621 {
2622 int x;
2623 _Static_assert (sizeof (int) <= sizeof (long int),
2624 "_Static_assert does not work in struct");
2625 long int y;
2626 };
2627
2628 // Check UTF-8 literals.
2629 #define u8 syntax error!
2630 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2631
2632 // Check duplicate typedefs.
2633 typedef long *long_ptr;
2634 typedef long int *long_ptr;
2635 typedef long_ptr long_ptr;
2636
2637 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2638 struct anonymous
2639 {
2640 union {
2641 struct { int i; int j; };
2642 struct { int k; long int l; } w;
2643 };
2644 int m;
2645 } v1;
2646 '
2647
2648 # Test code for whether the C compiler supports C11 (body of main).
2649 ac_c_conftest_c11_main='
2650 _Static_assert ((offsetof (struct anonymous, i)
2651 == offsetof (struct anonymous, w.k)),
2652 "Anonymous union alignment botch");
2653 v1.i = 2;
2654 v1.w.k = 5;
2655 ok |= v1.i != 5;
2656 '
2657
2658 # Test code for whether the C compiler supports C11 (complete).
2659 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2660 ${ac_c_conftest_c99_globals}
2661 ${ac_c_conftest_c11_globals}
2662
2663 int
2664 main (int argc, char **argv)
2665 {
2666 int ok = 0;
2667 ${ac_c_conftest_c89_main}
2668 ${ac_c_conftest_c99_main}
2669 ${ac_c_conftest_c11_main}
2670 return ok;
2671 }
2672 "
2673
2674 # Test code for whether the C compiler supports C99 (complete).
2675 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2676 ${ac_c_conftest_c99_globals}
2677
2678 int
2679 main (int argc, char **argv)
2680 {
2681 int ok = 0;
2682 ${ac_c_conftest_c89_main}
2683 ${ac_c_conftest_c99_main}
2684 return ok;
2685 }
2686 "
2687
2688 # Test code for whether the C compiler supports C89 (complete).
2689 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2690
2691 int
2692 main (int argc, char **argv)
2693 {
2694 int ok = 0;
2695 ${ac_c_conftest_c89_main}
2696 return ok;
2697 }
2698 "
2699
2700 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2701 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2702 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2703 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2704 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2705 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2706 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2707 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2708 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2709 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2710 as_fn_append ac_func_c_list " vprintf HAVE_VPRINTF"
2711
2712 # Auxiliary files required by this configure script.
2713 ac_aux_files="config.guess config.sub ltmain.sh ar-lib compile missing install-sh"
2714
2715 # Locations in which to look for auxiliary files.
2716 ac_aux_dir_candidates="${srcdir}/../../build-aux"
2717
2718 # Search for a directory containing all of the required auxiliary files,
2719 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2720 # If we don't find one directory that contains all the files we need,
2721 # we report the set of missing files from the *first* directory in
2722 # $ac_aux_dir_candidates and give up.
2723 ac_missing_aux_files=""
2724 ac_first_candidate=:
2725 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2727 as_found=false
2728 for as_dir in $ac_aux_dir_candidates
2729 do
2730 IFS=$as_save_IFS
2731 case $as_dir in #(((
2732 '') as_dir=./ ;;
2733 */) ;;
2734 *) as_dir=$as_dir/ ;;
2735 esac
2736 as_found=:
2737
2738 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2739 ac_aux_dir_found=yes
2740 ac_install_sh=
2741 for ac_aux in $ac_aux_files
2742 do
2743 # As a special case, if "install-sh" is required, that requirement
2744 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2745 # and $ac_install_sh is set appropriately for whichever one is found.
2746 if test x"$ac_aux" = x"install-sh"
2747 then
2748 if test -f "${as_dir}install-sh"; then
2749 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2750 ac_install_sh="${as_dir}install-sh -c"
2751 elif test -f "${as_dir}install.sh"; then
2752 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2753 ac_install_sh="${as_dir}install.sh -c"
2754 elif test -f "${as_dir}shtool"; then
2755 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2756 ac_install_sh="${as_dir}shtool install -c"
2757 else
2758 ac_aux_dir_found=no
2759 if $ac_first_candidate; then
2760 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2761 else
2762 break
2763 fi
2764 fi
2765 else
2766 if test -f "${as_dir}${ac_aux}"; then
2767 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2768 else
2769 ac_aux_dir_found=no
2770 if $ac_first_candidate; then
2771 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2772 else
2773 break
2774 fi
2775 fi
2776 fi
2777 done
2778 if test "$ac_aux_dir_found" = yes; then
2779 ac_aux_dir="$as_dir"
2780 break
2781 fi
2782 ac_first_candidate=false
2783
2784 as_found=false
2785 done
2786 IFS=$as_save_IFS
2787 if $as_found
2788 then :
2789
2790 else case e in #(
2791 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2792 esac
2793 fi
2794
2795
2796 # These three variables are undocumented and unsupported,
2797 # and are intended to be withdrawn in a future Autoconf release.
2798 # They can cause serious problems if a builder's source tree is in a directory
2799 # whose full name contains unusual characters.
2800 if test -f "${ac_aux_dir}config.guess"; then
2801 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2802 fi
2803 if test -f "${ac_aux_dir}config.sub"; then
2804 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2805 fi
2806 if test -f "$ac_aux_dir/configure"; then
2807 ac_configure="$SHELL ${ac_aux_dir}configure"
2808 fi
2809
2810 # Check that the precious variables saved in the cache have kept the same
2811 # value.
2812 ac_cache_corrupted=false
2813 for ac_var in $ac_precious_vars; do
2814 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2815 eval ac_new_set=\$ac_env_${ac_var}_set
2816 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2817 eval ac_new_val=\$ac_env_${ac_var}_value
2818 case $ac_old_set,$ac_new_set in
2819 set,)
2820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2821 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2822 ac_cache_corrupted=: ;;
2823 ,set)
2824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2825 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2826 ac_cache_corrupted=: ;;
2827 ,);;
2828 *)
2829 if test "x$ac_old_val" != "x$ac_new_val"; then
2830 # differences in whitespace do not lead to failure.
2831 ac_old_val_w=`echo x $ac_old_val`
2832 ac_new_val_w=`echo x $ac_new_val`
2833 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2835 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2836 ac_cache_corrupted=:
2837 else
2838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2839 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2840 eval $ac_var=\$ac_old_val
2841 fi
2842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2843 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2845 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2846 fi;;
2847 esac
2848 # Pass precious variables to config.status.
2849 if test "$ac_new_set" = set; then
2850 case $ac_new_val in
2851 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2852 *) ac_arg=$ac_var=$ac_new_val ;;
2853 esac
2854 case " $ac_configure_args " in
2855 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2856 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2857 esac
2858 fi
2859 done
2860 if $ac_cache_corrupted; then
2861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2862 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2864 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2865 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2866 and start over" "$LINENO" 5
2867 fi
2868 ## -------------------- ##
2869 ## Main body of script. ##
2870 ## -------------------- ##
2871
2872 ac_ext=c
2873 ac_cpp='$CPP $CPPFLAGS'
2874 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2875 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2876 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2877
2878
2879
2880
2881
2882
2883
2884 am__api_version='1.18'
2885
2886
2887
2888 # Find a good install program. We prefer a C program (faster),
2889 # so one script is as good as another. But avoid the broken or
2890 # incompatible versions:
2891 # SysV /etc/install, /usr/sbin/install
2892 # SunOS /usr/etc/install
2893 # IRIX /sbin/install
2894 # AIX /bin/install
2895 # AmigaOS /C/install, which installs bootblocks on floppy discs
2896 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2897 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2898 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2899 # OS/2's system install, which has a completely different semantic
2900 # ./install, which can be erroneously created by make from ./install.sh.
2901 # Reject install programs that cannot install multiple files.
2902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2903 printf %s "checking for a BSD-compatible install... " >&6; }
2904 if test -z "$INSTALL"; then
2905 if test ${ac_cv_path_install+y}
2906 then :
2907 printf %s "(cached) " >&6
2908 else case e in #(
2909 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2910 for as_dir in $PATH
2911 do
2912 IFS=$as_save_IFS
2913 case $as_dir in #(((
2914 '') as_dir=./ ;;
2915 */) ;;
2916 *) as_dir=$as_dir/ ;;
2917 esac
2918 # Account for fact that we put trailing slashes in our PATH walk.
2919 case $as_dir in #((
2920 ./ | /[cC]/* | \
2921 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2922 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2923 /usr/ucb/* ) ;;
2924 *)
2925 # OSF1 and SCO ODT 3.0 have their own names for install.
2926 # Don't use installbsd from OSF since it installs stuff as root
2927 # by default.
2928 for ac_prog in ginstall scoinst install; do
2929 for ac_exec_ext in '' $ac_executable_extensions; do
2930 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2931 if test $ac_prog = install &&
2932 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2933 # AIX install. It has an incompatible calling convention.
2934 :
2935 elif test $ac_prog = install &&
2936 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2937 # program-specific install script used by HP pwplus--don't use.
2938 :
2939 else
2940 rm -rf conftest.one conftest.two conftest.dir
2941 echo one > conftest.one
2942 echo two > conftest.two
2943 mkdir conftest.dir
2944 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2945 test -s conftest.one && test -s conftest.two &&
2946 test -s conftest.dir/conftest.one &&
2947 test -s conftest.dir/conftest.two
2948 then
2949 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2950 break 3
2951 fi
2952 fi
2953 fi
2954 done
2955 done
2956 ;;
2957 esac
2958
2959 done
2960 IFS=$as_save_IFS
2961
2962 rm -rf conftest.one conftest.two conftest.dir
2963 ;;
2964 esac
2965 fi
2966 if test ${ac_cv_path_install+y}; then
2967 INSTALL=$ac_cv_path_install
2968 else
2969 # As a last resort, use the slow shell script. Don't cache a
2970 # value for INSTALL within a source directory, because that will
2971 # break other packages using the cache if that directory is
2972 # removed, or if the value is a relative name.
2973 INSTALL=$ac_install_sh
2974 fi
2975 fi
2976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2977 printf "%s\n" "$INSTALL" >&6; }
2978
2979 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2980 # It thinks the first close brace ends the variable substitution.
2981 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2982
2983 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2984
2985 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2986
2987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
2988 printf %s "checking whether sleep supports fractional seconds... " >&6; }
2989 if test ${am_cv_sleep_fractional_seconds+y}
2990 then :
2991 printf %s "(cached) " >&6
2992 else case e in #(
2993 e) if sleep 0.001 2>/dev/null
2994 then :
2995 am_cv_sleep_fractional_seconds=yes
2996 else case e in #(
2997 e) am_cv_sleep_fractional_seconds=no ;;
2998 esac
2999 fi
3000 ;;
3001 esac
3002 fi
3003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
3004 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
3005
3006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
3007 printf %s "checking filesystem timestamp resolution... " >&6; }
3008 if test ${am_cv_filesystem_timestamp_resolution+y}
3009 then :
3010 printf %s "(cached) " >&6
3011 else case e in #(
3012 e) # Default to the worst case.
3013 am_cv_filesystem_timestamp_resolution=2
3014
3015 # Only try to go finer than 1 sec if sleep can do it.
3016 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
3017 # - 1 sec is not much of a win compared to 2 sec, and
3018 # - it takes 2 seconds to perform the test whether 1 sec works.
3019 #
3020 # Instead, just use the default 2s on platforms that have 1s resolution,
3021 # accept the extra 1s delay when using $sleep in the Automake tests, in
3022 # exchange for not incurring the 2s delay for running the test for all
3023 # packages.
3024 #
3025 am_try_resolutions=
3026 if test "$am_cv_sleep_fractional_seconds" = yes; then
3027 # Even a millisecond often causes a bunch of false positives,
3028 # so just try a hundredth of a second. The time saved between .001 and
3029 # .01 is not terribly consequential.
3030 am_try_resolutions="0.01 0.1 $am_try_resolutions"
3031 fi
3032
3033 # In order to catch current-generation FAT out, we must *modify* files
3034 # that already exist; the *creation* timestamp is finer. Use names
3035 # that make ls -t sort them differently when they have equal
3036 # timestamps than when they have distinct timestamps, keeping
3037 # in mind that ls -t prints the *newest* file first.
3038 rm -f conftest.ts?
3039 : > conftest.ts1
3040 : > conftest.ts2
3041 : > conftest.ts3
3042
3043 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
3044 # clobber the current shell's arguments. (Outer-level square brackets
3045 # are removed by m4; they're present so that m4 does not expand
3046 # <dollar><star>; be careful, easy to get confused.)
3047 if (
3048 set X `ls -t conftest.ts[12]` &&
3049 {
3050 test "$*" != "X conftest.ts1 conftest.ts2" ||
3051 test "$*" != "X conftest.ts2 conftest.ts1";
3052 }
3053 ); then :; else
3054 # If neither matched, then we have a broken ls. This can happen
3055 # if, for instance, CONFIG_SHELL is bash and it inherits a
3056 # broken ls alias from the environment. This has actually
3057 # happened. Such a system could not be considered "sane".
3058 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
3059 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3060 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3061 as_fn_error $? "ls -t produces unexpected output.
3062 Make sure there is not a broken ls alias in your environment.
3063 See 'config.log' for more details" "$LINENO" 5; }
3064 fi
3065
3066 for am_try_res in $am_try_resolutions; do
3067 # Any one fine-grained sleep might happen to cross the boundary
3068 # between two values of a coarser actual resolution, but if we do
3069 # two fine-grained sleeps in a row, at least one of them will fall
3070 # entirely within a coarse interval.
3071 echo alpha > conftest.ts1
3072 sleep $am_try_res
3073 echo beta > conftest.ts2
3074 sleep $am_try_res
3075 echo gamma > conftest.ts3
3076
3077 # We assume that 'ls -t' will make use of high-resolution
3078 # timestamps if the operating system supports them at all.
3079 if (set X `ls -t conftest.ts?` &&
3080 test "$2" = conftest.ts3 &&
3081 test "$3" = conftest.ts2 &&
3082 test "$4" = conftest.ts1); then
3083 #
3084 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
3085 # because we don't need to test make.
3086 make_ok=true
3087 if test $am_try_res != 1; then
3088 # But if we've succeeded so far with a subsecond resolution, we
3089 # have one more thing to check: make. It can happen that
3090 # everything else supports the subsecond mtimes, but make doesn't;
3091 # notably on macOS, which ships make 3.81 from 2006 (the last one
3092 # released under GPLv2). https://bugs.gnu.org/68808
3093 #
3094 # We test $MAKE if it is defined in the environment, else "make".
3095 # It might get overridden later, but our hope is that in practice
3096 # it does not matter: it is the system "make" which is (by far)
3097 # the most likely to be broken, whereas if the user overrides it,
3098 # probably they did so with a better, or at least not worse, make.
3099 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
3100 #
3101 # Create a Makefile (real tab character here):
3102 rm -f conftest.mk
3103 echo 'conftest.ts1: conftest.ts2' >conftest.mk
3104 echo ' touch conftest.ts2' >>conftest.mk
3105 #
3106 # Now, running
3107 # touch conftest.ts1; touch conftest.ts2; make
3108 # should touch ts1 because ts2 is newer. This could happen by luck,
3109 # but most often, it will fail if make's support is insufficient. So
3110 # test for several consecutive successes.
3111 #
3112 # (We reuse conftest.ts[12] because we still want to modify existing
3113 # files, not create new ones, per above.)
3114 n=0
3115 make=${MAKE-make}
3116 until test $n -eq 3; do
3117 echo one > conftest.ts1
3118 sleep $am_try_res
3119 echo two > conftest.ts2 # ts2 should now be newer than ts1
3120 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
3121 make_ok=false
3122 break # out of $n loop
3123 fi
3124 n=`expr $n + 1`
3125 done
3126 fi
3127 #
3128 if $make_ok; then
3129 # Everything we know to check worked out, so call this resolution good.
3130 am_cv_filesystem_timestamp_resolution=$am_try_res
3131 break # out of $am_try_res loop
3132 fi
3133 # Otherwise, we'll go on to check the next resolution.
3134 fi
3135 done
3136 rm -f conftest.ts?
3137 # (end _am_filesystem_timestamp_resolution)
3138 ;;
3139 esac
3140 fi
3141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
3142 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
3143
3144 # This check should not be cached, as it may vary across builds of
3145 # different projects.
3146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3147 printf %s "checking whether build environment is sane... " >&6; }
3148 # Reject unsafe characters in $srcdir or the absolute working directory
3149 # name. Accept space and tab only in the latter.
3150 am_lf='
3151 '
3152 case `pwd` in
3153 *[\\\"\#\$\&\'\`$am_lf]*)
3154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3155 printf "%s\n" "no" >&6; }
3156 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3157 esac
3158 case $srcdir in
3159 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3161 printf "%s\n" "no" >&6; }
3162 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3163 esac
3164
3165 # Do 'set' in a subshell so we don't clobber the current shell's
3166 # arguments. Must try -L first in case configure is actually a
3167 # symlink; some systems play weird games with the mod time of symlinks
3168 # (eg FreeBSD returns the mod time of the symlink's containing
3169 # directory).
3170 am_build_env_is_sane=no
3171 am_has_slept=no
3172 rm -f conftest.file
3173 for am_try in 1 2; do
3174 echo "timestamp, slept: $am_has_slept" > conftest.file
3175 if (
3176 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3177 if test "$*" = "X"; then
3178 # -L didn't work.
3179 set X `ls -t "$srcdir/configure" conftest.file`
3180 fi
3181 test "$2" = conftest.file
3182 ); then
3183 am_build_env_is_sane=yes
3184 break
3185 fi
3186 # Just in case.
3187 sleep "$am_cv_filesystem_timestamp_resolution"
3188 am_has_slept=yes
3189 done
3190
3191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
3192 printf "%s\n" "$am_build_env_is_sane" >&6; }
3193 if test "$am_build_env_is_sane" = no; then
3194 as_fn_error $? "newly created file is older than distributed files!
3195 Check your system clock" "$LINENO" 5
3196 fi
3197
3198 # If we didn't sleep, we still need to ensure time stamps of config.status and
3199 # generated files are strictly newer.
3200 am_sleep_pid=
3201 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
3202 then :
3203
3204 else case e in #(
3205 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
3206 am_sleep_pid=$!
3207 ;;
3208 esac
3209 fi
3210
3211 rm -f conftest.file
3212
3213 test "$program_prefix" != NONE &&
3214 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3215 # Use a double $ so make ignores it.
3216 test "$program_suffix" != NONE &&
3217 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3218 # Double any \ or $.
3219 # By default was 's,x,x', remove it if useless.
3220 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3221 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3222
3223
3224 # Expand $ac_aux_dir to an absolute path.
3225 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3226
3227
3228 if test x"${MISSING+set}" != xset; then
3229 MISSING="\${SHELL} '$am_aux_dir/missing'"
3230 fi
3231 # Use eval to expand $SHELL
3232 if eval "$MISSING --is-lightweight"; then
3233 am_missing_run="$MISSING "
3234 else
3235 am_missing_run=
3236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3237 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3238 fi
3239
3240 if test x"${install_sh+set}" != xset; then
3241 case $am_aux_dir in
3242 *\ * | *\ *)
3243 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3244 *)
3245 install_sh="\${SHELL} $am_aux_dir/install-sh"
3246 esac
3247 fi
3248
3249 # Installed binaries are usually stripped using 'strip' when the user
3250 # run "make install-strip". However 'strip' might not be the right
3251 # tool to use in cross-compilation environments, therefore Automake
3252 # will honor the 'STRIP' environment variable to overrule this program.
3253 if test "$cross_compiling" != no; then
3254 if test -n "$ac_tool_prefix"; then
3255 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3256 set dummy ${ac_tool_prefix}strip; ac_word=$2
3257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3258 printf %s "checking for $ac_word... " >&6; }
3259 if test ${ac_cv_prog_STRIP+y}
3260 then :
3261 printf %s "(cached) " >&6
3262 else case e in #(
3263 e) if test -n "$STRIP"; then
3264 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3265 else
3266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3267 for as_dir in $PATH
3268 do
3269 IFS=$as_save_IFS
3270 case $as_dir in #(((
3271 '') as_dir=./ ;;
3272 */) ;;
3273 *) as_dir=$as_dir/ ;;
3274 esac
3275 for ac_exec_ext in '' $ac_executable_extensions; do
3276 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3277 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3278 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3279 break 2
3280 fi
3281 done
3282 done
3283 IFS=$as_save_IFS
3284
3285 fi ;;
3286 esac
3287 fi
3288 STRIP=$ac_cv_prog_STRIP
3289 if test -n "$STRIP"; then
3290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3291 printf "%s\n" "$STRIP" >&6; }
3292 else
3293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3294 printf "%s\n" "no" >&6; }
3295 fi
3296
3297
3298 fi
3299 if test -z "$ac_cv_prog_STRIP"; then
3300 ac_ct_STRIP=$STRIP
3301 # Extract the first word of "strip", so it can be a program name with args.
3302 set dummy strip; ac_word=$2
3303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3304 printf %s "checking for $ac_word... " >&6; }
3305 if test ${ac_cv_prog_ac_ct_STRIP+y}
3306 then :
3307 printf %s "(cached) " >&6
3308 else case e in #(
3309 e) if test -n "$ac_ct_STRIP"; then
3310 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3311 else
3312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3313 for as_dir in $PATH
3314 do
3315 IFS=$as_save_IFS
3316 case $as_dir in #(((
3317 '') as_dir=./ ;;
3318 */) ;;
3319 *) as_dir=$as_dir/ ;;
3320 esac
3321 for ac_exec_ext in '' $ac_executable_extensions; do
3322 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3323 ac_cv_prog_ac_ct_STRIP="strip"
3324 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3325 break 2
3326 fi
3327 done
3328 done
3329 IFS=$as_save_IFS
3330
3331 fi ;;
3332 esac
3333 fi
3334 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3335 if test -n "$ac_ct_STRIP"; then
3336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3337 printf "%s\n" "$ac_ct_STRIP" >&6; }
3338 else
3339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3340 printf "%s\n" "no" >&6; }
3341 fi
3342
3343 if test "x$ac_ct_STRIP" = x; then
3344 STRIP=":"
3345 else
3346 case $cross_compiling:$ac_tool_warned in
3347 yes:)
3348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3349 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3350 ac_tool_warned=yes ;;
3351 esac
3352 STRIP=$ac_ct_STRIP
3353 fi
3354 else
3355 STRIP="$ac_cv_prog_STRIP"
3356 fi
3357
3358 fi
3359 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3360
3361
3362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3363 printf %s "checking for a race-free mkdir -p... " >&6; }
3364 if test -z "$MKDIR_P"; then
3365 if test ${ac_cv_path_mkdir+y}
3366 then :
3367 printf %s "(cached) " >&6
3368 else case e in #(
3369 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3370 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3371 do
3372 IFS=$as_save_IFS
3373 case $as_dir in #(((
3374 '') as_dir=./ ;;
3375 */) ;;
3376 *) as_dir=$as_dir/ ;;
3377 esac
3378 for ac_prog in mkdir gmkdir; do
3379 for ac_exec_ext in '' $ac_executable_extensions; do
3380 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3381 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3382 'mkdir ('*'coreutils) '* | \
3383 *'BusyBox '* | \
3384 'mkdir (fileutils) '4.1*)
3385 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3386 break 3;;
3387 esac
3388 done
3389 done
3390 done
3391 IFS=$as_save_IFS
3392 ;;
3393 esac
3394 fi
3395
3396 test -d ./--version && rmdir ./--version
3397 if test ${ac_cv_path_mkdir+y}; then
3398 MKDIR_P="$ac_cv_path_mkdir -p"
3399 else
3400 # As a last resort, use plain mkdir -p,
3401 # in the hope it doesn't have the bugs of ancient mkdir.
3402 MKDIR_P='mkdir -p'
3403 fi
3404 fi
3405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3406 printf "%s\n" "$MKDIR_P" >&6; }
3407
3408 for ac_prog in gawk mawk nawk awk
3409 do
3410 # Extract the first word of "$ac_prog", so it can be a program name with args.
3411 set dummy $ac_prog; ac_word=$2
3412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3413 printf %s "checking for $ac_word... " >&6; }
3414 if test ${ac_cv_prog_AWK+y}
3415 then :
3416 printf %s "(cached) " >&6
3417 else case e in #(
3418 e) if test -n "$AWK"; then
3419 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3420 else
3421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3422 for as_dir in $PATH
3423 do
3424 IFS=$as_save_IFS
3425 case $as_dir in #(((
3426 '') as_dir=./ ;;
3427 */) ;;
3428 *) as_dir=$as_dir/ ;;
3429 esac
3430 for ac_exec_ext in '' $ac_executable_extensions; do
3431 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3432 ac_cv_prog_AWK="$ac_prog"
3433 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3434 break 2
3435 fi
3436 done
3437 done
3438 IFS=$as_save_IFS
3439
3440 fi ;;
3441 esac
3442 fi
3443 AWK=$ac_cv_prog_AWK
3444 if test -n "$AWK"; then
3445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3446 printf "%s\n" "$AWK" >&6; }
3447 else
3448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3449 printf "%s\n" "no" >&6; }
3450 fi
3451
3452
3453 test -n "$AWK" && break
3454 done
3455
3456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3457 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3458 set x ${MAKE-make}
3459 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3460 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3461 then :
3462 printf %s "(cached) " >&6
3463 else case e in #(
3464 e) cat >conftest.make <<\_ACEOF
3465 SHELL = /bin/sh
3466 all:
3467 @echo '@@@%%%=$(MAKE)=@@@%%%'
3468 _ACEOF
3469 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3470 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3471 *@@@%%%=?*=@@@%%%*)
3472 eval ac_cv_prog_make_${ac_make}_set=yes;;
3473 *)
3474 eval ac_cv_prog_make_${ac_make}_set=no;;
3475 esac
3476 rm -f conftest.make ;;
3477 esac
3478 fi
3479 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3481 printf "%s\n" "yes" >&6; }
3482 SET_MAKE=
3483 else
3484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3485 printf "%s\n" "no" >&6; }
3486 SET_MAKE="MAKE=${MAKE-make}"
3487 fi
3488
3489 rm -rf .tst 2>/dev/null
3490 mkdir .tst 2>/dev/null
3491 if test -d .tst; then
3492 am__leading_dot=.
3493 else
3494 am__leading_dot=_
3495 fi
3496 rmdir .tst 2>/dev/null
3497
3498 AM_DEFAULT_VERBOSITY=1
3499 # Check whether --enable-silent-rules was given.
3500 if test ${enable_silent_rules+y}
3501 then :
3502 enableval=$enable_silent_rules;
3503 fi
3504
3505 am_make=${MAKE-make}
3506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3507 printf %s "checking whether $am_make supports nested variables... " >&6; }
3508 if test ${am_cv_make_support_nested_variables+y}
3509 then :
3510 printf %s "(cached) " >&6
3511 else case e in #(
3512 e) if printf "%s\n" 'TRUE=$(BAR$(V))
3513 BAR0=false
3514 BAR1=true
3515 V=1
3516 am__doit:
3517 @$(TRUE)
3518 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3519 am_cv_make_support_nested_variables=yes
3520 else
3521 am_cv_make_support_nested_variables=no
3522 fi ;;
3523 esac
3524 fi
3525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3526 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3527 AM_BACKSLASH='\'
3528
3529 am__rm_f_notfound=
3530 if (rm -f && rm -fr && rm -rf) 2>/dev/null
3531 then :
3532
3533 else case e in #(
3534 e) am__rm_f_notfound='""' ;;
3535 esac
3536 fi
3537
3538
3539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
3540 printf %s "checking xargs -n works... " >&6; }
3541 if test ${am_cv_xargs_n_works+y}
3542 then :
3543 printf %s "(cached) " >&6
3544 else case e in #(
3545 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
3546 3"
3547 then :
3548 am_cv_xargs_n_works=yes
3549 else case e in #(
3550 e) am_cv_xargs_n_works=no ;;
3551 esac
3552 fi ;;
3553 esac
3554 fi
3555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
3556 printf "%s\n" "$am_cv_xargs_n_works" >&6; }
3557 if test "$am_cv_xargs_n_works" = yes
3558 then :
3559 am__xargs_n='xargs -n'
3560 else case e in #(
3561 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
3562 ;;
3563 esac
3564 fi
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575 DEPDIR="${am__leading_dot}deps"
3576
3577 ac_config_commands="$ac_config_commands depfiles"
3578
3579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3580 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3581 cat > confinc.mk << 'END'
3582 am__doit:
3583 @echo this is the am__doit target >confinc.out
3584 .PHONY: am__doit
3585 END
3586 am__include="#"
3587 am__quote=
3588 # BSD make does it like this.
3589 echo '.include "confinc.mk" # ignored' > confmf.BSD
3590 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3591 echo 'include confinc.mk # ignored' > confmf.GNU
3592 _am_result=no
3593 for s in GNU BSD; do
3594 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3595 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3596 ac_status=$?
3597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598 (exit $ac_status); }
3599 case $?:`cat confinc.out 2>/dev/null` in #(
3600 '0:this is the am__doit target') :
3601 case $s in #(
3602 BSD) :
3603 am__include='.include' am__quote='"' ;; #(
3604 *) :
3605 am__include='include' am__quote='' ;;
3606 esac ;; #(
3607 *) :
3608 ;;
3609 esac
3610 if test "$am__include" != "#"; then
3611 _am_result="yes ($s style)"
3612 break
3613 fi
3614 done
3615 rm -f confinc.* confmf.*
3616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3617 printf "%s\n" "${_am_result}" >&6; }
3618
3619 # Check whether --enable-dependency-tracking was given.
3620 if test ${enable_dependency_tracking+y}
3621 then :
3622 enableval=$enable_dependency_tracking;
3623 fi
3624
3625 if test "x$enable_dependency_tracking" != xno; then
3626 am_depcomp="$ac_aux_dir/depcomp"
3627 AMDEPBACKSLASH='\'
3628 am__nodep='_no'
3629 fi
3630 if test "x$enable_dependency_tracking" != xno; then
3631 AMDEP_TRUE=
3632 AMDEP_FALSE='#'
3633 else
3634 AMDEP_TRUE='#'
3635 AMDEP_FALSE=
3636 fi
3637
3638
3639 ac_ext=c
3640 ac_cpp='$CPP $CPPFLAGS'
3641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3644 if test -n "$ac_tool_prefix"; then
3645 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3646 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3648 printf %s "checking for $ac_word... " >&6; }
3649 if test ${ac_cv_prog_CC+y}
3650 then :
3651 printf %s "(cached) " >&6
3652 else case e in #(
3653 e) if test -n "$CC"; then
3654 ac_cv_prog_CC="$CC" # Let the user override the test.
3655 else
3656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3657 for as_dir in $PATH
3658 do
3659 IFS=$as_save_IFS
3660 case $as_dir in #(((
3661 '') as_dir=./ ;;
3662 */) ;;
3663 *) as_dir=$as_dir/ ;;
3664 esac
3665 for ac_exec_ext in '' $ac_executable_extensions; do
3666 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3667 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3668 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3669 break 2
3670 fi
3671 done
3672 done
3673 IFS=$as_save_IFS
3674
3675 fi ;;
3676 esac
3677 fi
3678 CC=$ac_cv_prog_CC
3679 if test -n "$CC"; then
3680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3681 printf "%s\n" "$CC" >&6; }
3682 else
3683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3684 printf "%s\n" "no" >&6; }
3685 fi
3686
3687
3688 fi
3689 if test -z "$ac_cv_prog_CC"; then
3690 ac_ct_CC=$CC
3691 # Extract the first word of "gcc", so it can be a program name with args.
3692 set dummy gcc; ac_word=$2
3693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3694 printf %s "checking for $ac_word... " >&6; }
3695 if test ${ac_cv_prog_ac_ct_CC+y}
3696 then :
3697 printf %s "(cached) " >&6
3698 else case e in #(
3699 e) if test -n "$ac_ct_CC"; then
3700 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3701 else
3702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3703 for as_dir in $PATH
3704 do
3705 IFS=$as_save_IFS
3706 case $as_dir in #(((
3707 '') as_dir=./ ;;
3708 */) ;;
3709 *) as_dir=$as_dir/ ;;
3710 esac
3711 for ac_exec_ext in '' $ac_executable_extensions; do
3712 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3713 ac_cv_prog_ac_ct_CC="gcc"
3714 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3715 break 2
3716 fi
3717 done
3718 done
3719 IFS=$as_save_IFS
3720
3721 fi ;;
3722 esac
3723 fi
3724 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3725 if test -n "$ac_ct_CC"; then
3726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3727 printf "%s\n" "$ac_ct_CC" >&6; }
3728 else
3729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3730 printf "%s\n" "no" >&6; }
3731 fi
3732
3733 if test "x$ac_ct_CC" = x; then
3734 CC=""
3735 else
3736 case $cross_compiling:$ac_tool_warned in
3737 yes:)
3738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3739 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3740 ac_tool_warned=yes ;;
3741 esac
3742 CC=$ac_ct_CC
3743 fi
3744 else
3745 CC="$ac_cv_prog_CC"
3746 fi
3747
3748 if test -z "$CC"; then
3749 if test -n "$ac_tool_prefix"; then
3750 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3751 set dummy ${ac_tool_prefix}cc; ac_word=$2
3752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3753 printf %s "checking for $ac_word... " >&6; }
3754 if test ${ac_cv_prog_CC+y}
3755 then :
3756 printf %s "(cached) " >&6
3757 else case e in #(
3758 e) if test -n "$CC"; then
3759 ac_cv_prog_CC="$CC" # Let the user override the test.
3760 else
3761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3762 for as_dir in $PATH
3763 do
3764 IFS=$as_save_IFS
3765 case $as_dir in #(((
3766 '') as_dir=./ ;;
3767 */) ;;
3768 *) as_dir=$as_dir/ ;;
3769 esac
3770 for ac_exec_ext in '' $ac_executable_extensions; do
3771 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3772 ac_cv_prog_CC="${ac_tool_prefix}cc"
3773 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3774 break 2
3775 fi
3776 done
3777 done
3778 IFS=$as_save_IFS
3779
3780 fi ;;
3781 esac
3782 fi
3783 CC=$ac_cv_prog_CC
3784 if test -n "$CC"; then
3785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3786 printf "%s\n" "$CC" >&6; }
3787 else
3788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3789 printf "%s\n" "no" >&6; }
3790 fi
3791
3792
3793 fi
3794 fi
3795 if test -z "$CC"; then
3796 # Extract the first word of "cc", so it can be a program name with args.
3797 set dummy cc; ac_word=$2
3798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3799 printf %s "checking for $ac_word... " >&6; }
3800 if test ${ac_cv_prog_CC+y}
3801 then :
3802 printf %s "(cached) " >&6
3803 else case e in #(
3804 e) if test -n "$CC"; then
3805 ac_cv_prog_CC="$CC" # Let the user override the test.
3806 else
3807 ac_prog_rejected=no
3808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3809 for as_dir in $PATH
3810 do
3811 IFS=$as_save_IFS
3812 case $as_dir in #(((
3813 '') as_dir=./ ;;
3814 */) ;;
3815 *) as_dir=$as_dir/ ;;
3816 esac
3817 for ac_exec_ext in '' $ac_executable_extensions; do
3818 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3819 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3820 ac_prog_rejected=yes
3821 continue
3822 fi
3823 ac_cv_prog_CC="cc"
3824 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3825 break 2
3826 fi
3827 done
3828 done
3829 IFS=$as_save_IFS
3830
3831 if test $ac_prog_rejected = yes; then
3832 # We found a bogon in the path, so make sure we never use it.
3833 set dummy $ac_cv_prog_CC
3834 shift
3835 if test $# != 0; then
3836 # We chose a different compiler from the bogus one.
3837 # However, it has the same basename, so the bogon will be chosen
3838 # first if we set CC to just the basename; use the full file name.
3839 shift
3840 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3841 fi
3842 fi
3843 fi ;;
3844 esac
3845 fi
3846 CC=$ac_cv_prog_CC
3847 if test -n "$CC"; then
3848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3849 printf "%s\n" "$CC" >&6; }
3850 else
3851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3852 printf "%s\n" "no" >&6; }
3853 fi
3854
3855
3856 fi
3857 if test -z "$CC"; then
3858 if test -n "$ac_tool_prefix"; then
3859 for ac_prog in cl.exe
3860 do
3861 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3862 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3864 printf %s "checking for $ac_word... " >&6; }
3865 if test ${ac_cv_prog_CC+y}
3866 then :
3867 printf %s "(cached) " >&6
3868 else case e in #(
3869 e) if test -n "$CC"; then
3870 ac_cv_prog_CC="$CC" # Let the user override the test.
3871 else
3872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3873 for as_dir in $PATH
3874 do
3875 IFS=$as_save_IFS
3876 case $as_dir in #(((
3877 '') as_dir=./ ;;
3878 */) ;;
3879 *) as_dir=$as_dir/ ;;
3880 esac
3881 for ac_exec_ext in '' $ac_executable_extensions; do
3882 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3883 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3884 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3885 break 2
3886 fi
3887 done
3888 done
3889 IFS=$as_save_IFS
3890
3891 fi ;;
3892 esac
3893 fi
3894 CC=$ac_cv_prog_CC
3895 if test -n "$CC"; then
3896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3897 printf "%s\n" "$CC" >&6; }
3898 else
3899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3900 printf "%s\n" "no" >&6; }
3901 fi
3902
3903
3904 test -n "$CC" && break
3905 done
3906 fi
3907 if test -z "$CC"; then
3908 ac_ct_CC=$CC
3909 for ac_prog in cl.exe
3910 do
3911 # Extract the first word of "$ac_prog", so it can be a program name with args.
3912 set dummy $ac_prog; ac_word=$2
3913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3914 printf %s "checking for $ac_word... " >&6; }
3915 if test ${ac_cv_prog_ac_ct_CC+y}
3916 then :
3917 printf %s "(cached) " >&6
3918 else case e in #(
3919 e) if test -n "$ac_ct_CC"; then
3920 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3921 else
3922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3923 for as_dir in $PATH
3924 do
3925 IFS=$as_save_IFS
3926 case $as_dir in #(((
3927 '') as_dir=./ ;;
3928 */) ;;
3929 *) as_dir=$as_dir/ ;;
3930 esac
3931 for ac_exec_ext in '' $ac_executable_extensions; do
3932 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3933 ac_cv_prog_ac_ct_CC="$ac_prog"
3934 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3935 break 2
3936 fi
3937 done
3938 done
3939 IFS=$as_save_IFS
3940
3941 fi ;;
3942 esac
3943 fi
3944 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3945 if test -n "$ac_ct_CC"; then
3946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3947 printf "%s\n" "$ac_ct_CC" >&6; }
3948 else
3949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3950 printf "%s\n" "no" >&6; }
3951 fi
3952
3953
3954 test -n "$ac_ct_CC" && break
3955 done
3956
3957 if test "x$ac_ct_CC" = x; then
3958 CC=""
3959 else
3960 case $cross_compiling:$ac_tool_warned in
3961 yes:)
3962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3963 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3964 ac_tool_warned=yes ;;
3965 esac
3966 CC=$ac_ct_CC
3967 fi
3968 fi
3969
3970 fi
3971 if test -z "$CC"; then
3972 if test -n "$ac_tool_prefix"; then
3973 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3974 set dummy ${ac_tool_prefix}clang; ac_word=$2
3975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3976 printf %s "checking for $ac_word... " >&6; }
3977 if test ${ac_cv_prog_CC+y}
3978 then :
3979 printf %s "(cached) " >&6
3980 else case e in #(
3981 e) if test -n "$CC"; then
3982 ac_cv_prog_CC="$CC" # Let the user override the test.
3983 else
3984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3985 for as_dir in $PATH
3986 do
3987 IFS=$as_save_IFS
3988 case $as_dir in #(((
3989 '') as_dir=./ ;;
3990 */) ;;
3991 *) as_dir=$as_dir/ ;;
3992 esac
3993 for ac_exec_ext in '' $ac_executable_extensions; do
3994 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3995 ac_cv_prog_CC="${ac_tool_prefix}clang"
3996 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3997 break 2
3998 fi
3999 done
4000 done
4001 IFS=$as_save_IFS
4002
4003 fi ;;
4004 esac
4005 fi
4006 CC=$ac_cv_prog_CC
4007 if test -n "$CC"; then
4008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4009 printf "%s\n" "$CC" >&6; }
4010 else
4011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4012 printf "%s\n" "no" >&6; }
4013 fi
4014
4015
4016 fi
4017 if test -z "$ac_cv_prog_CC"; then
4018 ac_ct_CC=$CC
4019 # Extract the first word of "clang", so it can be a program name with args.
4020 set dummy clang; ac_word=$2
4021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4022 printf %s "checking for $ac_word... " >&6; }
4023 if test ${ac_cv_prog_ac_ct_CC+y}
4024 then :
4025 printf %s "(cached) " >&6
4026 else case e in #(
4027 e) if test -n "$ac_ct_CC"; then
4028 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4029 else
4030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4031 for as_dir in $PATH
4032 do
4033 IFS=$as_save_IFS
4034 case $as_dir in #(((
4035 '') as_dir=./ ;;
4036 */) ;;
4037 *) as_dir=$as_dir/ ;;
4038 esac
4039 for ac_exec_ext in '' $ac_executable_extensions; do
4040 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4041 ac_cv_prog_ac_ct_CC="clang"
4042 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4043 break 2
4044 fi
4045 done
4046 done
4047 IFS=$as_save_IFS
4048
4049 fi ;;
4050 esac
4051 fi
4052 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4053 if test -n "$ac_ct_CC"; then
4054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4055 printf "%s\n" "$ac_ct_CC" >&6; }
4056 else
4057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4058 printf "%s\n" "no" >&6; }
4059 fi
4060
4061 if test "x$ac_ct_CC" = x; then
4062 CC=""
4063 else
4064 case $cross_compiling:$ac_tool_warned in
4065 yes:)
4066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4067 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4068 ac_tool_warned=yes ;;
4069 esac
4070 CC=$ac_ct_CC
4071 fi
4072 else
4073 CC="$ac_cv_prog_CC"
4074 fi
4075
4076 fi
4077
4078
4079 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4080 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4081 as_fn_error $? "no acceptable C compiler found in \$PATH
4082 See 'config.log' for more details" "$LINENO" 5; }
4083
4084 # Provide some information about the compiler.
4085 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4086 set X $ac_compile
4087 ac_compiler=$2
4088 for ac_option in --version -v -V -qversion -version; do
4089 { { ac_try="$ac_compiler $ac_option >&5"
4090 case "(($ac_try" in
4091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4092 *) ac_try_echo=$ac_try;;
4093 esac
4094 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4095 printf "%s\n" "$ac_try_echo"; } >&5
4096 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4097 ac_status=$?
4098 if test -s conftest.err; then
4099 sed '10a\
4100 ... rest of stderr output deleted ...
4101 10q' conftest.err >conftest.er1
4102 cat conftest.er1 >&5
4103 fi
4104 rm -f conftest.er1 conftest.err
4105 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4106 test $ac_status = 0; }
4107 done
4108
4109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4110 /* end confdefs.h. */
4111
4112 int
4113 main (void)
4114 {
4115
4116 ;
4117 return 0;
4118 }
4119 _ACEOF
4120 ac_clean_files_save=$ac_clean_files
4121 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4122 # Try to create an executable without -o first, disregard a.out.
4123 # It will help us diagnose broken compilers, and finding out an intuition
4124 # of exeext.
4125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4126 printf %s "checking whether the C compiler works... " >&6; }
4127 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4128
4129 # The possible output files:
4130 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4131
4132 ac_rmfiles=
4133 for ac_file in $ac_files
4134 do
4135 case $ac_file in
4136 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4137 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4138 esac
4139 done
4140 rm -f $ac_rmfiles
4141
4142 if { { ac_try="$ac_link_default"
4143 case "(($ac_try" in
4144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4145 *) ac_try_echo=$ac_try;;
4146 esac
4147 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4148 printf "%s\n" "$ac_try_echo"; } >&5
4149 (eval "$ac_link_default") 2>&5
4150 ac_status=$?
4151 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4152 test $ac_status = 0; }
4153 then :
4154 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
4155 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
4156 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4157 # so that the user can short-circuit this test for compilers unknown to
4158 # Autoconf.
4159 for ac_file in $ac_files ''
4160 do
4161 test -f "$ac_file" || continue
4162 case $ac_file in
4163 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4164 ;;
4165 [ab].out )
4166 # We found the default executable, but exeext='' is most
4167 # certainly right.
4168 break;;
4169 *.* )
4170 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4171 then :; else
4172 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4173 fi
4174 # We set ac_cv_exeext here because the later test for it is not
4175 # safe: cross compilers may not add the suffix if given an '-o'
4176 # argument, so we may need to know it at that point already.
4177 # Even if this section looks crufty: it has the advantage of
4178 # actually working.
4179 break;;
4180 * )
4181 break;;
4182 esac
4183 done
4184 test "$ac_cv_exeext" = no && ac_cv_exeext=
4185
4186 else case e in #(
4187 e) ac_file='' ;;
4188 esac
4189 fi
4190 if test -z "$ac_file"
4191 then :
4192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4193 printf "%s\n" "no" >&6; }
4194 printf "%s\n" "$as_me: failed program was:" >&5
4195 sed 's/^/| /' conftest.$ac_ext >&5
4196
4197 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4198 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4199 as_fn_error 77 "C compiler cannot create executables
4200 See 'config.log' for more details" "$LINENO" 5; }
4201 else case e in #(
4202 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4203 printf "%s\n" "yes" >&6; } ;;
4204 esac
4205 fi
4206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4207 printf %s "checking for C compiler default output file name... " >&6; }
4208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4209 printf "%s\n" "$ac_file" >&6; }
4210 ac_exeext=$ac_cv_exeext
4211
4212 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4213 ac_clean_files=$ac_clean_files_save
4214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4215 printf %s "checking for suffix of executables... " >&6; }
4216 if { { ac_try="$ac_link"
4217 case "(($ac_try" in
4218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4219 *) ac_try_echo=$ac_try;;
4220 esac
4221 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4222 printf "%s\n" "$ac_try_echo"; } >&5
4223 (eval "$ac_link") 2>&5
4224 ac_status=$?
4225 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4226 test $ac_status = 0; }
4227 then :
4228 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
4229 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
4230 # work properly (i.e., refer to 'conftest.exe'), while it won't with
4231 # 'rm'.
4232 for ac_file in conftest.exe conftest conftest.*; do
4233 test -f "$ac_file" || continue
4234 case $ac_file in
4235 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4236 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4237 break;;
4238 * ) break;;
4239 esac
4240 done
4241 else case e in #(
4242 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4243 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4244 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4245 See 'config.log' for more details" "$LINENO" 5; } ;;
4246 esac
4247 fi
4248 rm -f conftest conftest$ac_cv_exeext
4249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4250 printf "%s\n" "$ac_cv_exeext" >&6; }
4251
4252 rm -f conftest.$ac_ext
4253 EXEEXT=$ac_cv_exeext
4254 ac_exeext=$EXEEXT
4255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4256 /* end confdefs.h. */
4257 #include <stdio.h>
4258 int
4259 main (void)
4260 {
4261 FILE *f = fopen ("conftest.out", "w");
4262 if (!f)
4263 return 1;
4264 return ferror (f) || fclose (f) != 0;
4265
4266 ;
4267 return 0;
4268 }
4269 _ACEOF
4270 ac_clean_files="$ac_clean_files conftest.out"
4271 # Check that the compiler produces executables we can run. If not, either
4272 # the compiler is broken, or we cross compile.
4273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4274 printf %s "checking whether we are cross compiling... " >&6; }
4275 if test "$cross_compiling" != yes; then
4276 { { ac_try="$ac_link"
4277 case "(($ac_try" in
4278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4279 *) ac_try_echo=$ac_try;;
4280 esac
4281 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4282 printf "%s\n" "$ac_try_echo"; } >&5
4283 (eval "$ac_link") 2>&5
4284 ac_status=$?
4285 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4286 test $ac_status = 0; }
4287 if { ac_try='./conftest$ac_cv_exeext'
4288 { { case "(($ac_try" in
4289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4290 *) ac_try_echo=$ac_try;;
4291 esac
4292 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4293 printf "%s\n" "$ac_try_echo"; } >&5
4294 (eval "$ac_try") 2>&5
4295 ac_status=$?
4296 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4297 test $ac_status = 0; }; }; then
4298 cross_compiling=no
4299 else
4300 if test "$cross_compiling" = maybe; then
4301 cross_compiling=yes
4302 else
4303 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4304 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4305 as_fn_error 77 "cannot run C compiled programs.
4306 If you meant to cross compile, use '--host'.
4307 See 'config.log' for more details" "$LINENO" 5; }
4308 fi
4309 fi
4310 fi
4311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4312 printf "%s\n" "$cross_compiling" >&6; }
4313
4314 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4315 conftest.o conftest.obj conftest.out
4316 ac_clean_files=$ac_clean_files_save
4317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4318 printf %s "checking for suffix of object files... " >&6; }
4319 if test ${ac_cv_objext+y}
4320 then :
4321 printf %s "(cached) " >&6
4322 else case e in #(
4323 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4324 /* end confdefs.h. */
4325
4326 int
4327 main (void)
4328 {
4329
4330 ;
4331 return 0;
4332 }
4333 _ACEOF
4334 rm -f conftest.o conftest.obj
4335 if { { ac_try="$ac_compile"
4336 case "(($ac_try" in
4337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4338 *) ac_try_echo=$ac_try;;
4339 esac
4340 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4341 printf "%s\n" "$ac_try_echo"; } >&5
4342 (eval "$ac_compile") 2>&5
4343 ac_status=$?
4344 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4345 test $ac_status = 0; }
4346 then :
4347 for ac_file in conftest.o conftest.obj conftest.*; do
4348 test -f "$ac_file" || continue;
4349 case $ac_file in
4350 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4351 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4352 break;;
4353 esac
4354 done
4355 else case e in #(
4356 e) printf "%s\n" "$as_me: failed program was:" >&5
4357 sed 's/^/| /' conftest.$ac_ext >&5
4358
4359 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4360 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4361 as_fn_error $? "cannot compute suffix of object files: cannot compile
4362 See 'config.log' for more details" "$LINENO" 5; } ;;
4363 esac
4364 fi
4365 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4366 esac
4367 fi
4368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4369 printf "%s\n" "$ac_cv_objext" >&6; }
4370 OBJEXT=$ac_cv_objext
4371 ac_objext=$OBJEXT
4372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4373 printf %s "checking whether the compiler supports GNU C... " >&6; }
4374 if test ${ac_cv_c_compiler_gnu+y}
4375 then :
4376 printf %s "(cached) " >&6
4377 else case e in #(
4378 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4379 /* end confdefs.h. */
4380
4381 int
4382 main (void)
4383 {
4384 #ifndef __GNUC__
4385 choke me
4386 #endif
4387
4388 ;
4389 return 0;
4390 }
4391 _ACEOF
4392 if ac_fn_c_try_compile "$LINENO"
4393 then :
4394 ac_compiler_gnu=yes
4395 else case e in #(
4396 e) ac_compiler_gnu=no ;;
4397 esac
4398 fi
4399 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4400 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4401 ;;
4402 esac
4403 fi
4404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4405 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4407
4408 if test $ac_compiler_gnu = yes; then
4409 GCC=yes
4410 else
4411 GCC=
4412 fi
4413 ac_test_CFLAGS=${CFLAGS+y}
4414 ac_save_CFLAGS=$CFLAGS
4415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4416 printf %s "checking whether $CC accepts -g... " >&6; }
4417 if test ${ac_cv_prog_cc_g+y}
4418 then :
4419 printf %s "(cached) " >&6
4420 else case e in #(
4421 e) ac_save_c_werror_flag=$ac_c_werror_flag
4422 ac_c_werror_flag=yes
4423 ac_cv_prog_cc_g=no
4424 CFLAGS="-g"
4425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4426 /* end confdefs.h. */
4427
4428 int
4429 main (void)
4430 {
4431
4432 ;
4433 return 0;
4434 }
4435 _ACEOF
4436 if ac_fn_c_try_compile "$LINENO"
4437 then :
4438 ac_cv_prog_cc_g=yes
4439 else case e in #(
4440 e) CFLAGS=""
4441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4442 /* end confdefs.h. */
4443
4444 int
4445 main (void)
4446 {
4447
4448 ;
4449 return 0;
4450 }
4451 _ACEOF
4452 if ac_fn_c_try_compile "$LINENO"
4453 then :
4454
4455 else case e in #(
4456 e) ac_c_werror_flag=$ac_save_c_werror_flag
4457 CFLAGS="-g"
4458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4459 /* end confdefs.h. */
4460
4461 int
4462 main (void)
4463 {
4464
4465 ;
4466 return 0;
4467 }
4468 _ACEOF
4469 if ac_fn_c_try_compile "$LINENO"
4470 then :
4471 ac_cv_prog_cc_g=yes
4472 fi
4473 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4474 esac
4475 fi
4476 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4477 esac
4478 fi
4479 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4480 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4481 esac
4482 fi
4483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4484 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4485 if test $ac_test_CFLAGS; then
4486 CFLAGS=$ac_save_CFLAGS
4487 elif test $ac_cv_prog_cc_g = yes; then
4488 if test "$GCC" = yes; then
4489 CFLAGS="-g -O2"
4490 else
4491 CFLAGS="-g"
4492 fi
4493 else
4494 if test "$GCC" = yes; then
4495 CFLAGS="-O2"
4496 else
4497 CFLAGS=
4498 fi
4499 fi
4500 ac_prog_cc_stdc=no
4501 if test x$ac_prog_cc_stdc = xno
4502 then :
4503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4504 printf %s "checking for $CC option to enable C11 features... " >&6; }
4505 if test ${ac_cv_prog_cc_c11+y}
4506 then :
4507 printf %s "(cached) " >&6
4508 else case e in #(
4509 e) ac_cv_prog_cc_c11=no
4510 ac_save_CC=$CC
4511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4512 /* end confdefs.h. */
4513 $ac_c_conftest_c11_program
4514 _ACEOF
4515 for ac_arg in '' -std=gnu11
4516 do
4517 CC="$ac_save_CC $ac_arg"
4518 if ac_fn_c_try_compile "$LINENO"
4519 then :
4520 ac_cv_prog_cc_c11=$ac_arg
4521 fi
4522 rm -f core conftest.err conftest.$ac_objext conftest.beam
4523 test "x$ac_cv_prog_cc_c11" != "xno" && break
4524 done
4525 rm -f conftest.$ac_ext
4526 CC=$ac_save_CC ;;
4527 esac
4528 fi
4529
4530 if test "x$ac_cv_prog_cc_c11" = xno
4531 then :
4532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4533 printf "%s\n" "unsupported" >&6; }
4534 else case e in #(
4535 e) if test "x$ac_cv_prog_cc_c11" = x
4536 then :
4537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4538 printf "%s\n" "none needed" >&6; }
4539 else case e in #(
4540 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4541 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4542 CC="$CC $ac_cv_prog_cc_c11" ;;
4543 esac
4544 fi
4545 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4546 ac_prog_cc_stdc=c11 ;;
4547 esac
4548 fi
4549 fi
4550 if test x$ac_prog_cc_stdc = xno
4551 then :
4552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4553 printf %s "checking for $CC option to enable C99 features... " >&6; }
4554 if test ${ac_cv_prog_cc_c99+y}
4555 then :
4556 printf %s "(cached) " >&6
4557 else case e in #(
4558 e) ac_cv_prog_cc_c99=no
4559 ac_save_CC=$CC
4560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4561 /* end confdefs.h. */
4562 $ac_c_conftest_c99_program
4563 _ACEOF
4564 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4565 do
4566 CC="$ac_save_CC $ac_arg"
4567 if ac_fn_c_try_compile "$LINENO"
4568 then :
4569 ac_cv_prog_cc_c99=$ac_arg
4570 fi
4571 rm -f core conftest.err conftest.$ac_objext conftest.beam
4572 test "x$ac_cv_prog_cc_c99" != "xno" && break
4573 done
4574 rm -f conftest.$ac_ext
4575 CC=$ac_save_CC ;;
4576 esac
4577 fi
4578
4579 if test "x$ac_cv_prog_cc_c99" = xno
4580 then :
4581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4582 printf "%s\n" "unsupported" >&6; }
4583 else case e in #(
4584 e) if test "x$ac_cv_prog_cc_c99" = x
4585 then :
4586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4587 printf "%s\n" "none needed" >&6; }
4588 else case e in #(
4589 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4590 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4591 CC="$CC $ac_cv_prog_cc_c99" ;;
4592 esac
4593 fi
4594 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4595 ac_prog_cc_stdc=c99 ;;
4596 esac
4597 fi
4598 fi
4599 if test x$ac_prog_cc_stdc = xno
4600 then :
4601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4602 printf %s "checking for $CC option to enable C89 features... " >&6; }
4603 if test ${ac_cv_prog_cc_c89+y}
4604 then :
4605 printf %s "(cached) " >&6
4606 else case e in #(
4607 e) ac_cv_prog_cc_c89=no
4608 ac_save_CC=$CC
4609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4610 /* end confdefs.h. */
4611 $ac_c_conftest_c89_program
4612 _ACEOF
4613 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4614 do
4615 CC="$ac_save_CC $ac_arg"
4616 if ac_fn_c_try_compile "$LINENO"
4617 then :
4618 ac_cv_prog_cc_c89=$ac_arg
4619 fi
4620 rm -f core conftest.err conftest.$ac_objext conftest.beam
4621 test "x$ac_cv_prog_cc_c89" != "xno" && break
4622 done
4623 rm -f conftest.$ac_ext
4624 CC=$ac_save_CC ;;
4625 esac
4626 fi
4627
4628 if test "x$ac_cv_prog_cc_c89" = xno
4629 then :
4630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4631 printf "%s\n" "unsupported" >&6; }
4632 else case e in #(
4633 e) if test "x$ac_cv_prog_cc_c89" = x
4634 then :
4635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4636 printf "%s\n" "none needed" >&6; }
4637 else case e in #(
4638 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4639 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4640 CC="$CC $ac_cv_prog_cc_c89" ;;
4641 esac
4642 fi
4643 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4644 ac_prog_cc_stdc=c89 ;;
4645 esac
4646 fi
4647 fi
4648
4649 ac_ext=c
4650 ac_cpp='$CPP $CPPFLAGS'
4651 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4652 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4653 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4654
4655
4656 ac_ext=c
4657 ac_cpp='$CPP $CPPFLAGS'
4658 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4659 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4660 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4662 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4663 if test ${am_cv_prog_cc_c_o+y}
4664 then :
4665 printf %s "(cached) " >&6
4666 else case e in #(
4667 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4668 /* end confdefs.h. */
4669
4670 int
4671 main (void)
4672 {
4673
4674 ;
4675 return 0;
4676 }
4677 _ACEOF
4678 # Make sure it works both with $CC and with simple cc.
4679 # Following AC_PROG_CC_C_O, we do the test twice because some
4680 # compilers refuse to overwrite an existing .o file with -o,
4681 # though they will create one.
4682 am_cv_prog_cc_c_o=yes
4683 for am_i in 1 2; do
4684 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4685 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4686 ac_status=$?
4687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688 (exit $ac_status); } \
4689 && test -f conftest2.$ac_objext; then
4690 : OK
4691 else
4692 am_cv_prog_cc_c_o=no
4693 break
4694 fi
4695 done
4696 # aligned with autoconf, so not including core; see bug#72225.
4697 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \
4698 conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \
4699 conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM
4700 unset am_i ;;
4701 esac
4702 fi
4703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4704 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4705 if test "$am_cv_prog_cc_c_o" != yes; then
4706 # Losing compiler, so override with the script.
4707 # FIXME: It is wrong to rewrite CC.
4708 # But if we don't then we get into trouble of one sort or another.
4709 # A longer-term fix would be to have automake use am__CC in this case,
4710 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4711 CC="$am_aux_dir/compile $CC"
4712 fi
4713 ac_ext=c
4714 ac_cpp='$CPP $CPPFLAGS'
4715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4718
4719
4720 depcc="$CC" am_compiler_list=
4721
4722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4723 printf %s "checking dependency style of $depcc... " >&6; }
4724 if test ${am_cv_CC_dependencies_compiler_type+y}
4725 then :
4726 printf %s "(cached) " >&6
4727 else case e in #(
4728 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4729 # We make a subdir and do the tests there. Otherwise we can end up
4730 # making bogus files that we don't know about and never remove. For
4731 # instance it was reported that on HP-UX the gcc test will end up
4732 # making a dummy file named 'D' -- because '-MD' means "put the output
4733 # in D".
4734 rm -rf conftest.dir
4735 mkdir conftest.dir
4736 # Copy depcomp to subdir because otherwise we won't find it if we're
4737 # using a relative directory.
4738 cp "$am_depcomp" conftest.dir
4739 cd conftest.dir
4740 # We will build objects and dependencies in a subdirectory because
4741 # it helps to detect inapplicable dependency modes. For instance
4742 # both Tru64's cc and ICC support -MD to output dependencies as a
4743 # side effect of compilation, but ICC will put the dependencies in
4744 # the current directory while Tru64 will put them in the object
4745 # directory.
4746 mkdir sub
4747
4748 am_cv_CC_dependencies_compiler_type=none
4749 if test "$am_compiler_list" = ""; then
4750 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4751 fi
4752 am__universal=false
4753 case " $depcc " in #(
4754 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4755 esac
4756
4757 for depmode in $am_compiler_list; do
4758 # Setup a source with many dependencies, because some compilers
4759 # like to wrap large dependency lists on column 80 (with \), and
4760 # we should not choose a depcomp mode which is confused by this.
4761 #
4762 # We need to recreate these files for each test, as the compiler may
4763 # overwrite some of them when testing with obscure command lines.
4764 # This happens at least with the AIX C compiler.
4765 : > sub/conftest.c
4766 for i in 1 2 3 4 5 6; do
4767 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4768 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4769 # Solaris 10 /bin/sh.
4770 echo '/* dummy */' > sub/conftst$i.h
4771 done
4772 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4773
4774 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4775 # mode. It turns out that the SunPro C++ compiler does not properly
4776 # handle '-M -o', and we need to detect this. Also, some Intel
4777 # versions had trouble with output in subdirs.
4778 am__obj=sub/conftest.${OBJEXT-o}
4779 am__minus_obj="-o $am__obj"
4780 case $depmode in
4781 gcc)
4782 # This depmode causes a compiler race in universal mode.
4783 test "$am__universal" = false || continue
4784 ;;
4785 nosideeffect)
4786 # After this tag, mechanisms are not by side-effect, so they'll
4787 # only be used when explicitly requested.
4788 if test "x$enable_dependency_tracking" = xyes; then
4789 continue
4790 else
4791 break
4792 fi
4793 ;;
4794 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4795 # This compiler won't grok '-c -o', but also, the minuso test has
4796 # not run yet. These depmodes are late enough in the game, and
4797 # so weak that their functioning should not be impacted.
4798 am__obj=conftest.${OBJEXT-o}
4799 am__minus_obj=
4800 ;;
4801 none) break ;;
4802 esac
4803 if depmode=$depmode \
4804 source=sub/conftest.c object=$am__obj \
4805 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4806 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4807 >/dev/null 2>conftest.err &&
4808 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4809 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4810 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4811 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4812 # icc doesn't choke on unknown options, it will just issue warnings
4813 # or remarks (even with -Werror). So we grep stderr for any message
4814 # that says an option was ignored or not supported.
4815 # When given -MP, icc 7.0 and 7.1 complain thus:
4816 # icc: Command line warning: ignoring option '-M'; no argument required
4817 # The diagnosis changed in icc 8.0:
4818 # icc: Command line remark: option '-MP' not supported
4819 if (grep 'ignoring option' conftest.err ||
4820 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4821 am_cv_CC_dependencies_compiler_type=$depmode
4822 break
4823 fi
4824 fi
4825 done
4826
4827 cd ..
4828 rm -rf conftest.dir
4829 else
4830 am_cv_CC_dependencies_compiler_type=none
4831 fi
4832 ;;
4833 esac
4834 fi
4835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4836 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4837 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4838
4839 if
4840 test "x$enable_dependency_tracking" != xno \
4841 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4842 am__fastdepCC_TRUE=
4843 am__fastdepCC_FALSE='#'
4844 else
4845 am__fastdepCC_TRUE='#'
4846 am__fastdepCC_FALSE=
4847 fi
4848
4849
4850
4851 ac_header= ac_cache=
4852 for ac_item in $ac_header_c_list
4853 do
4854 if test $ac_cache; then
4855 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4856 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4857 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4858 fi
4859 ac_header= ac_cache=
4860 elif test $ac_header; then
4861 ac_cache=$ac_item
4862 else
4863 ac_header=$ac_item
4864 fi
4865 done
4866
4867
4868
4869
4870
4871
4872
4873
4874 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4875 then :
4876
4877 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4878
4879 fi
4880
4881
4882
4883
4884
4885
4886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4887 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4888 if test ${ac_cv_safe_to_define___extensions__+y}
4889 then :
4890 printf %s "(cached) " >&6
4891 else case e in #(
4892 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4893 /* end confdefs.h. */
4894
4895 # define __EXTENSIONS__ 1
4896 $ac_includes_default
4897 int
4898 main (void)
4899 {
4900
4901 ;
4902 return 0;
4903 }
4904 _ACEOF
4905 if ac_fn_c_try_compile "$LINENO"
4906 then :
4907 ac_cv_safe_to_define___extensions__=yes
4908 else case e in #(
4909 e) ac_cv_safe_to_define___extensions__=no ;;
4910 esac
4911 fi
4912 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4913 esac
4914 fi
4915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4916 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
4917
4918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4919 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4920 if test ${ac_cv_should_define__xopen_source+y}
4921 then :
4922 printf %s "(cached) " >&6
4923 else case e in #(
4924 e) ac_cv_should_define__xopen_source=no
4925 if test $ac_cv_header_wchar_h = yes
4926 then :
4927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4928 /* end confdefs.h. */
4929
4930 #include <wchar.h>
4931 mbstate_t x;
4932 int
4933 main (void)
4934 {
4935
4936 ;
4937 return 0;
4938 }
4939 _ACEOF
4940 if ac_fn_c_try_compile "$LINENO"
4941 then :
4942
4943 else case e in #(
4944 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4945 /* end confdefs.h. */
4946
4947 #define _XOPEN_SOURCE 500
4948 #include <wchar.h>
4949 mbstate_t x;
4950 int
4951 main (void)
4952 {
4953
4954 ;
4955 return 0;
4956 }
4957 _ACEOF
4958 if ac_fn_c_try_compile "$LINENO"
4959 then :
4960 ac_cv_should_define__xopen_source=yes
4961 fi
4962 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4963 esac
4964 fi
4965 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4966 fi ;;
4967 esac
4968 fi
4969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4970 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
4971
4972 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
4973
4974 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4975
4976 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
4977
4978 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
4979
4980 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
4981
4982 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
4983
4984 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4985
4986 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4987
4988 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4989
4990 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4991
4992 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
4993
4994 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4995
4996 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4997
4998 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4999
5000 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
5001
5002 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
5003
5004 if test $ac_cv_header_minix_config_h = yes
5005 then :
5006 MINIX=yes
5007 printf "%s\n" "#define _MINIX 1" >>confdefs.h
5008
5009 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
5010
5011 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
5012
5013 else case e in #(
5014 e) MINIX= ;;
5015 esac
5016 fi
5017 if test $ac_cv_safe_to_define___extensions__ = yes
5018 then :
5019 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
5020
5021 fi
5022 if test $ac_cv_should_define__xopen_source = yes
5023 then :
5024 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
5025
5026 fi
5027
5028 # Check whether --enable-compiler-warnings was given.
5029 if test ${enable_compiler_warnings+y}
5030 then :
5031 enableval=$enable_compiler_warnings;
5032 fi
5033 case $enable_compiler_warnings in #(
5034 no | min | yes | max | all) :
5035 ;; #(
5036 *) :
5037 if test "x$enable_maintainer_mode" = xyes
5038 then :
5039 enable_compiler_warnings=yes
5040 else case e in #(
5041 e) enable_compiler_warnings=min ;;
5042 esac
5043 fi ;;
5044 esac
5045
5046 case `pwd` in
5047 *\ * | *\ *)
5048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5049 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5050 esac
5051
5052
5053
5054 macro_version='2.5.4'
5055 macro_revision='2.5.4'
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070 ltmain=$ac_aux_dir/ltmain.sh
5071
5072
5073
5074 # Make sure we can run config.sub.
5075 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
5076 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
5077
5078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5079 printf %s "checking build system type... " >&6; }
5080 if test ${ac_cv_build+y}
5081 then :
5082 printf %s "(cached) " >&6
5083 else case e in #(
5084 e) ac_build_alias=$build_alias
5085 test "x$ac_build_alias" = x &&
5086 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
5087 test "x$ac_build_alias" = x &&
5088 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5089 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
5090 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
5091 ;;
5092 esac
5093 fi
5094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5095 printf "%s\n" "$ac_cv_build" >&6; }
5096 case $ac_cv_build in
5097 *-*-*) ;;
5098 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5099 esac
5100 build=$ac_cv_build
5101 ac_save_IFS=$IFS; IFS='-'
5102 set x $ac_cv_build
5103 shift
5104 build_cpu=$1
5105 build_vendor=$2
5106 shift; shift
5107 # Remember, the first character of IFS is used to create $*,
5108 # except with old shells:
5109 build_os=$*
5110 IFS=$ac_save_IFS
5111 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5112
5113
5114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5115 printf %s "checking host system type... " >&6; }
5116 if test ${ac_cv_host+y}
5117 then :
5118 printf %s "(cached) " >&6
5119 else case e in #(
5120 e) if test "x$host_alias" = x; then
5121 ac_cv_host=$ac_cv_build
5122 else
5123 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
5124 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
5125 fi
5126 ;;
5127 esac
5128 fi
5129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5130 printf "%s\n" "$ac_cv_host" >&6; }
5131 case $ac_cv_host in
5132 *-*-*) ;;
5133 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5134 esac
5135 host=$ac_cv_host
5136 ac_save_IFS=$IFS; IFS='-'
5137 set x $ac_cv_host
5138 shift
5139 host_cpu=$1
5140 host_vendor=$2
5141 shift; shift
5142 # Remember, the first character of IFS is used to create $*,
5143 # except with old shells:
5144 host_os=$*
5145 IFS=$ac_save_IFS
5146 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5147
5148
5149 # Backslashify metacharacters that are still active within
5150 # double-quoted strings.
5151 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5152
5153 # Same as above, but do not quote variable references.
5154 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5155
5156 # Sed substitution to delay expansion of an escaped shell variable in a
5157 # double_quote_subst'ed string.
5158 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5159
5160 # Sed substitution to delay expansion of an escaped single quote.
5161 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5162
5163 # Sed substitution to avoid accidental globbing in evaled expressions
5164 no_glob_subst='s/\*/\\\*/g'
5165
5166 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5167 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5168 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5169
5170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5171 printf %s "checking how to print strings... " >&6; }
5172 # Test print first, because it will be a builtin if present.
5173 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5174 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5175 ECHO='print -r --'
5176 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5177 ECHO='printf %s\n'
5178 else
5179 # Use this function as a fallback that always works.
5180 func_fallback_echo ()
5181 {
5182 eval 'cat <<_LTECHO_EOF
5183 $1
5184 _LTECHO_EOF'
5185 }
5186 ECHO='func_fallback_echo'
5187 fi
5188
5189 # func_echo_all arg...
5190 # Invoke $ECHO with all args, space-separated.
5191 func_echo_all ()
5192 {
5193 $ECHO ""
5194 }
5195
5196 case $ECHO in
5197 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5198 printf "%s\n" "printf" >&6; } ;;
5199 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5200 printf "%s\n" "print -r" >&6; } ;;
5201 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5202 printf "%s\n" "cat" >&6; } ;;
5203 esac
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5219 printf %s "checking for a sed that does not truncate output... " >&6; }
5220 if test ${ac_cv_path_SED+y}
5221 then :
5222 printf %s "(cached) " >&6
5223 else case e in #(
5224 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5225 for ac_i in 1 2 3 4 5 6 7; do
5226 ac_script="$ac_script$as_nl$ac_script"
5227 done
5228 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5229 { ac_script=; unset ac_script;}
5230 if test -z "$SED"; then
5231 ac_path_SED_found=false
5232 # Loop through the user's path and test for each of PROGNAME-LIST
5233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5234 for as_dir in $PATH
5235 do
5236 IFS=$as_save_IFS
5237 case $as_dir in #(((
5238 '') as_dir=./ ;;
5239 */) ;;
5240 *) as_dir=$as_dir/ ;;
5241 esac
5242 for ac_prog in sed gsed
5243 do
5244 for ac_exec_ext in '' $ac_executable_extensions; do
5245 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5246 as_fn_executable_p "$ac_path_SED" || continue
5247 # Check for GNU ac_path_SED and select it if it is found.
5248 # Check for GNU $ac_path_SED
5249 case `"$ac_path_SED" --version 2>&1` in #(
5250 *GNU*)
5251 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5252 #(
5253 *)
5254 ac_count=0
5255 printf %s 0123456789 >"conftest.in"
5256 while :
5257 do
5258 cat "conftest.in" "conftest.in" >"conftest.tmp"
5259 mv "conftest.tmp" "conftest.in"
5260 cp "conftest.in" "conftest.nl"
5261 printf "%s\n" '' >> "conftest.nl"
5262 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5263 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5264 as_fn_arith $ac_count + 1 && ac_count=$as_val
5265 if test $ac_count -gt ${ac_path_SED_max-0}; then
5266 # Best one so far, save it but keep looking for a better one
5267 ac_cv_path_SED="$ac_path_SED"
5268 ac_path_SED_max=$ac_count
5269 fi
5270 # 10*(2^10) chars as input seems more than enough
5271 test $ac_count -gt 10 && break
5272 done
5273 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5274 esac
5275
5276 $ac_path_SED_found && break 3
5277 done
5278 done
5279 done
5280 IFS=$as_save_IFS
5281 if test -z "$ac_cv_path_SED"; then
5282 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5283 fi
5284 else
5285 ac_cv_path_SED=$SED
5286 fi
5287 ;;
5288 esac
5289 fi
5290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5291 printf "%s\n" "$ac_cv_path_SED" >&6; }
5292 SED="$ac_cv_path_SED"
5293 rm -f conftest.sed
5294
5295 test -z "$SED" && SED=sed
5296 Xsed="$SED -e 1s/^X//"
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5309 printf %s "checking for grep that handles long lines and -e... " >&6; }
5310 if test ${ac_cv_path_GREP+y}
5311 then :
5312 printf %s "(cached) " >&6
5313 else case e in #(
5314 e) if test -z "$GREP"; then
5315 ac_path_GREP_found=false
5316 # Loop through the user's path and test for each of PROGNAME-LIST
5317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5318 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5319 do
5320 IFS=$as_save_IFS
5321 case $as_dir in #(((
5322 '') as_dir=./ ;;
5323 */) ;;
5324 *) as_dir=$as_dir/ ;;
5325 esac
5326 for ac_prog in grep ggrep
5327 do
5328 for ac_exec_ext in '' $ac_executable_extensions; do
5329 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5330 as_fn_executable_p "$ac_path_GREP" || continue
5331 # Check for GNU ac_path_GREP and select it if it is found.
5332 # Check for GNU $ac_path_GREP
5333 case `"$ac_path_GREP" --version 2>&1` in #(
5334 *GNU*)
5335 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5336 #(
5337 *)
5338 ac_count=0
5339 printf %s 0123456789 >"conftest.in"
5340 while :
5341 do
5342 cat "conftest.in" "conftest.in" >"conftest.tmp"
5343 mv "conftest.tmp" "conftest.in"
5344 cp "conftest.in" "conftest.nl"
5345 printf "%s\n" 'GREP' >> "conftest.nl"
5346 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5347 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5348 as_fn_arith $ac_count + 1 && ac_count=$as_val
5349 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5350 # Best one so far, save it but keep looking for a better one
5351 ac_cv_path_GREP="$ac_path_GREP"
5352 ac_path_GREP_max=$ac_count
5353 fi
5354 # 10*(2^10) chars as input seems more than enough
5355 test $ac_count -gt 10 && break
5356 done
5357 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5358 esac
5359
5360 $ac_path_GREP_found && break 3
5361 done
5362 done
5363 done
5364 IFS=$as_save_IFS
5365 if test -z "$ac_cv_path_GREP"; then
5366 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5367 fi
5368 else
5369 ac_cv_path_GREP=$GREP
5370 fi
5371 ;;
5372 esac
5373 fi
5374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5375 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5376 GREP="$ac_cv_path_GREP"
5377
5378
5379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5380 printf %s "checking for egrep... " >&6; }
5381 if test ${ac_cv_path_EGREP+y}
5382 then :
5383 printf %s "(cached) " >&6
5384 else case e in #(
5385 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5386 then ac_cv_path_EGREP="$GREP -E"
5387 else
5388 if test -z "$EGREP"; then
5389 ac_path_EGREP_found=false
5390 # Loop through the user's path and test for each of PROGNAME-LIST
5391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5392 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5393 do
5394 IFS=$as_save_IFS
5395 case $as_dir in #(((
5396 '') as_dir=./ ;;
5397 */) ;;
5398 *) as_dir=$as_dir/ ;;
5399 esac
5400 for ac_prog in egrep
5401 do
5402 for ac_exec_ext in '' $ac_executable_extensions; do
5403 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5404 as_fn_executable_p "$ac_path_EGREP" || continue
5405 # Check for GNU ac_path_EGREP and select it if it is found.
5406 # Check for GNU $ac_path_EGREP
5407 case `"$ac_path_EGREP" --version 2>&1` in #(
5408 *GNU*)
5409 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5410 #(
5411 *)
5412 ac_count=0
5413 printf %s 0123456789 >"conftest.in"
5414 while :
5415 do
5416 cat "conftest.in" "conftest.in" >"conftest.tmp"
5417 mv "conftest.tmp" "conftest.in"
5418 cp "conftest.in" "conftest.nl"
5419 printf "%s\n" 'EGREP' >> "conftest.nl"
5420 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5421 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5422 as_fn_arith $ac_count + 1 && ac_count=$as_val
5423 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5424 # Best one so far, save it but keep looking for a better one
5425 ac_cv_path_EGREP="$ac_path_EGREP"
5426 ac_path_EGREP_max=$ac_count
5427 fi
5428 # 10*(2^10) chars as input seems more than enough
5429 test $ac_count -gt 10 && break
5430 done
5431 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5432 esac
5433
5434 $ac_path_EGREP_found && break 3
5435 done
5436 done
5437 done
5438 IFS=$as_save_IFS
5439 if test -z "$ac_cv_path_EGREP"; then
5440 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5441 fi
5442 else
5443 ac_cv_path_EGREP=$EGREP
5444 fi
5445
5446 fi ;;
5447 esac
5448 fi
5449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5450 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5451 EGREP="$ac_cv_path_EGREP"
5452
5453 EGREP_TRADITIONAL=$EGREP
5454 ac_cv_path_EGREP_TRADITIONAL=$EGREP
5455
5456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5457 printf %s "checking for fgrep... " >&6; }
5458 if test ${ac_cv_path_FGREP+y}
5459 then :
5460 printf %s "(cached) " >&6
5461 else case e in #(
5462 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5463 then ac_cv_path_FGREP="$GREP -F"
5464 else
5465 if test -z "$FGREP"; then
5466 ac_path_FGREP_found=false
5467 # Loop through the user's path and test for each of PROGNAME-LIST
5468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5469 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5470 do
5471 IFS=$as_save_IFS
5472 case $as_dir in #(((
5473 '') as_dir=./ ;;
5474 */) ;;
5475 *) as_dir=$as_dir/ ;;
5476 esac
5477 for ac_prog in fgrep
5478 do
5479 for ac_exec_ext in '' $ac_executable_extensions; do
5480 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5481 as_fn_executable_p "$ac_path_FGREP" || continue
5482 # Check for GNU ac_path_FGREP and select it if it is found.
5483 # Check for GNU $ac_path_FGREP
5484 case `"$ac_path_FGREP" --version 2>&1` in #(
5485 *GNU*)
5486 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5487 #(
5488 *)
5489 ac_count=0
5490 printf %s 0123456789 >"conftest.in"
5491 while :
5492 do
5493 cat "conftest.in" "conftest.in" >"conftest.tmp"
5494 mv "conftest.tmp" "conftest.in"
5495 cp "conftest.in" "conftest.nl"
5496 printf "%s\n" 'FGREP' >> "conftest.nl"
5497 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5498 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5499 as_fn_arith $ac_count + 1 && ac_count=$as_val
5500 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5501 # Best one so far, save it but keep looking for a better one
5502 ac_cv_path_FGREP="$ac_path_FGREP"
5503 ac_path_FGREP_max=$ac_count
5504 fi
5505 # 10*(2^10) chars as input seems more than enough
5506 test $ac_count -gt 10 && break
5507 done
5508 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5509 esac
5510
5511 $ac_path_FGREP_found && break 3
5512 done
5513 done
5514 done
5515 IFS=$as_save_IFS
5516 if test -z "$ac_cv_path_FGREP"; then
5517 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5518 fi
5519 else
5520 ac_cv_path_FGREP=$FGREP
5521 fi
5522
5523 fi ;;
5524 esac
5525 fi
5526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5527 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5528 FGREP="$ac_cv_path_FGREP"
5529
5530
5531 test -z "$GREP" && GREP=grep
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551 # Check whether --with-gnu-ld was given.
5552 if test ${with_gnu_ld+y}
5553 then :
5554 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5555 else case e in #(
5556 e) with_gnu_ld=no ;;
5557 esac
5558 fi
5559
5560 ac_prog=ld
5561 if test yes = "$GCC"; then
5562 # Check if gcc -print-prog-name=ld gives a path.
5563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5564 printf %s "checking for ld used by $CC... " >&6; }
5565 case $host in
5566 *-*-mingw* | *-*-windows*)
5567 # gcc leaves a trailing carriage return, which upsets mingw
5568 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5569 *)
5570 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5571 esac
5572 case $ac_prog in
5573 # Accept absolute paths.
5574 [\\/]* | ?:[\\/]*)
5575 re_direlt='/[^/][^/]*/\.\./'
5576 # Canonicalize the pathname of ld
5577 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5578 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5579 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5580 done
5581 test -z "$LD" && LD=$ac_prog
5582 ;;
5583 "")
5584 # If it fails, then pretend we aren't using GCC.
5585 ac_prog=ld
5586 ;;
5587 *)
5588 # If it is relative, then search for the first ld in PATH.
5589 with_gnu_ld=unknown
5590 ;;
5591 esac
5592 elif test yes = "$with_gnu_ld"; then
5593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5594 printf %s "checking for GNU ld... " >&6; }
5595 else
5596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5597 printf %s "checking for non-GNU ld... " >&6; }
5598 fi
5599 if test ${lt_cv_path_LD+y}
5600 then :
5601 printf %s "(cached) " >&6
5602 else case e in #(
5603 e) if test -z "$LD"; then
5604 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5605 for ac_dir in $PATH; do
5606 IFS=$lt_save_ifs
5607 test -z "$ac_dir" && ac_dir=.
5608 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5609 lt_cv_path_LD=$ac_dir/$ac_prog
5610 # Check to see if the program is GNU ld. I'd rather use --version,
5611 # but apparently some variants of GNU ld only accept -v.
5612 # Break only if it was the GNU/non-GNU ld that we prefer.
5613 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5614 *GNU* | *'with BFD'*)
5615 test no != "$with_gnu_ld" && break
5616 ;;
5617 *)
5618 test yes != "$with_gnu_ld" && break
5619 ;;
5620 esac
5621 fi
5622 done
5623 IFS=$lt_save_ifs
5624 else
5625 lt_cv_path_LD=$LD # Let the user override the test with a path.
5626 fi ;;
5627 esac
5628 fi
5629
5630 LD=$lt_cv_path_LD
5631 if test -n "$LD"; then
5632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5633 printf "%s\n" "$LD" >&6; }
5634 else
5635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5636 printf "%s\n" "no" >&6; }
5637 fi
5638 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5640 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5641 if test ${lt_cv_prog_gnu_ld+y}
5642 then :
5643 printf %s "(cached) " >&6
5644 else case e in #(
5645 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
5646 case `$LD -v 2>&1 </dev/null` in
5647 *GNU* | *'with BFD'*)
5648 lt_cv_prog_gnu_ld=yes
5649 ;;
5650 *)
5651 lt_cv_prog_gnu_ld=no
5652 ;;
5653 esac ;;
5654 esac
5655 fi
5656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5657 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5658 with_gnu_ld=$lt_cv_prog_gnu_ld
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5669 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5670 if test ${lt_cv_path_NM+y}
5671 then :
5672 printf %s "(cached) " >&6
5673 else case e in #(
5674 e) if test -n "$NM"; then
5675 # Let the user override the test.
5676 lt_cv_path_NM=$NM
5677 else
5678 lt_nm_to_check=${ac_tool_prefix}nm
5679 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5680 lt_nm_to_check="$lt_nm_to_check nm"
5681 fi
5682 for lt_tmp_nm in $lt_nm_to_check; do
5683 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5684 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5685 IFS=$lt_save_ifs
5686 test -z "$ac_dir" && ac_dir=.
5687 tmp_nm=$ac_dir/$lt_tmp_nm
5688 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5689 # Check to see if the nm accepts a BSD-compat flag.
5690 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5691 # nm: unknown option "B" ignored
5692 # Tru64's nm complains that /dev/null is an invalid object file
5693 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5694 case $build_os in
5695 mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
5696 *) lt_bad_file=/dev/null ;;
5697 esac
5698 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5699 *$lt_bad_file* | *'Invalid file or object type'*)
5700 lt_cv_path_NM="$tmp_nm -B"
5701 break 2
5702 ;;
5703 *)
5704 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5705 */dev/null*)
5706 lt_cv_path_NM="$tmp_nm -p"
5707 break 2
5708 ;;
5709 *)
5710 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5711 continue # so that we can try to find one that supports BSD flags
5712 ;;
5713 esac
5714 ;;
5715 esac
5716 fi
5717 done
5718 IFS=$lt_save_ifs
5719 done
5720 : ${lt_cv_path_NM=no}
5721 fi ;;
5722 esac
5723 fi
5724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5725 printf "%s\n" "$lt_cv_path_NM" >&6; }
5726 if test no != "$lt_cv_path_NM"; then
5727 NM=$lt_cv_path_NM
5728 else
5729 # Didn't find any BSD compatible name lister, look for dumpbin.
5730 if test -n "$DUMPBIN"; then :
5731 # Let the user override the test.
5732 else
5733 if test -n "$ac_tool_prefix"; then
5734 for ac_prog in dumpbin "link -dump"
5735 do
5736 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5737 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5739 printf %s "checking for $ac_word... " >&6; }
5740 if test ${ac_cv_prog_DUMPBIN+y}
5741 then :
5742 printf %s "(cached) " >&6
5743 else case e in #(
5744 e) if test -n "$DUMPBIN"; then
5745 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5746 else
5747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5748 for as_dir in $PATH
5749 do
5750 IFS=$as_save_IFS
5751 case $as_dir in #(((
5752 '') as_dir=./ ;;
5753 */) ;;
5754 *) as_dir=$as_dir/ ;;
5755 esac
5756 for ac_exec_ext in '' $ac_executable_extensions; do
5757 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5758 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5759 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5760 break 2
5761 fi
5762 done
5763 done
5764 IFS=$as_save_IFS
5765
5766 fi ;;
5767 esac
5768 fi
5769 DUMPBIN=$ac_cv_prog_DUMPBIN
5770 if test -n "$DUMPBIN"; then
5771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5772 printf "%s\n" "$DUMPBIN" >&6; }
5773 else
5774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5775 printf "%s\n" "no" >&6; }
5776 fi
5777
5778
5779 test -n "$DUMPBIN" && break
5780 done
5781 fi
5782 if test -z "$DUMPBIN"; then
5783 ac_ct_DUMPBIN=$DUMPBIN
5784 for ac_prog in dumpbin "link -dump"
5785 do
5786 # Extract the first word of "$ac_prog", so it can be a program name with args.
5787 set dummy $ac_prog; ac_word=$2
5788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5789 printf %s "checking for $ac_word... " >&6; }
5790 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5791 then :
5792 printf %s "(cached) " >&6
5793 else case e in #(
5794 e) if test -n "$ac_ct_DUMPBIN"; then
5795 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5796 else
5797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5798 for as_dir in $PATH
5799 do
5800 IFS=$as_save_IFS
5801 case $as_dir in #(((
5802 '') as_dir=./ ;;
5803 */) ;;
5804 *) as_dir=$as_dir/ ;;
5805 esac
5806 for ac_exec_ext in '' $ac_executable_extensions; do
5807 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5808 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5809 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5810 break 2
5811 fi
5812 done
5813 done
5814 IFS=$as_save_IFS
5815
5816 fi ;;
5817 esac
5818 fi
5819 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5820 if test -n "$ac_ct_DUMPBIN"; then
5821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5822 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5823 else
5824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5825 printf "%s\n" "no" >&6; }
5826 fi
5827
5828
5829 test -n "$ac_ct_DUMPBIN" && break
5830 done
5831
5832 if test "x$ac_ct_DUMPBIN" = x; then
5833 DUMPBIN=":"
5834 else
5835 case $cross_compiling:$ac_tool_warned in
5836 yes:)
5837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5838 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5839 ac_tool_warned=yes ;;
5840 esac
5841 DUMPBIN=$ac_ct_DUMPBIN
5842 fi
5843 fi
5844
5845 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5846 *COFF*)
5847 DUMPBIN="$DUMPBIN -symbols -headers"
5848 ;;
5849 *)
5850 DUMPBIN=:
5851 ;;
5852 esac
5853 fi
5854
5855 if test : != "$DUMPBIN"; then
5856 NM=$DUMPBIN
5857 fi
5858 fi
5859 test -z "$NM" && NM=nm
5860
5861
5862
5863
5864
5865
5866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5867 printf %s "checking the name lister ($NM) interface... " >&6; }
5868 if test ${lt_cv_nm_interface+y}
5869 then :
5870 printf %s "(cached) " >&6
5871 else case e in #(
5872 e) lt_cv_nm_interface="BSD nm"
5873 echo "int some_variable = 0;" > conftest.$ac_ext
5874 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5875 (eval "$ac_compile" 2>conftest.err)
5876 cat conftest.err >&5
5877 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5878 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5879 cat conftest.err >&5
5880 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5881 cat conftest.out >&5
5882 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5883 lt_cv_nm_interface="MS dumpbin"
5884 fi
5885 rm -f conftest* ;;
5886 esac
5887 fi
5888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5889 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5890
5891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5892 printf %s "checking whether ln -s works... " >&6; }
5893 LN_S=$as_ln_s
5894 if test "$LN_S" = "ln -s"; then
5895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5896 printf "%s\n" "yes" >&6; }
5897 else
5898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5899 printf "%s\n" "no, using $LN_S" >&6; }
5900 fi
5901
5902 # find the maximum length of command line arguments
5903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5904 printf %s "checking the maximum length of command line arguments... " >&6; }
5905 if test ${lt_cv_sys_max_cmd_len+y}
5906 then :
5907 printf %s "(cached) " >&6
5908 else case e in #(
5909 e) i=0
5910 teststring=ABCD
5911
5912 case $build_os in
5913 msdosdjgpp*)
5914 # On DJGPP, this test can blow up pretty badly due to problems in libc
5915 # (any single argument exceeding 2000 bytes causes a buffer overrun
5916 # during glob expansion). Even if it were fixed, the result of this
5917 # check would be larger than it should be.
5918 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5919 ;;
5920
5921 gnu* | ironclad*)
5922 # Under GNU Hurd and Ironclad, this test is not required because there
5923 # is no limit to the length of command line arguments.
5924 # Libtool will interpret -1 as no limit whatsoever
5925 lt_cv_sys_max_cmd_len=-1;
5926 ;;
5927
5928 cygwin* | mingw* | windows* | cegcc*)
5929 # On Win9x/ME, this test blows up -- it succeeds, but takes
5930 # about 5 minutes as the teststring grows exponentially.
5931 # Worse, since 9x/ME are not pre-emptively multitasking,
5932 # you end up with a "frozen" computer, even though with patience
5933 # the test eventually succeeds (with a max line length of 256k).
5934 # Instead, let's just punt: use the minimum linelength reported by
5935 # all of the supported platforms: 8192 (on NT/2K/XP).
5936 lt_cv_sys_max_cmd_len=8192;
5937 ;;
5938
5939 mint*)
5940 # On MiNT this can take a long time and run out of memory.
5941 lt_cv_sys_max_cmd_len=8192;
5942 ;;
5943
5944 amigaos*)
5945 # On AmigaOS with pdksh, this test takes hours, literally.
5946 # So we just punt and use a minimum line length of 8192.
5947 lt_cv_sys_max_cmd_len=8192;
5948 ;;
5949
5950 darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5951 # This has been around since 386BSD, at least. Likely further.
5952 if test -x /sbin/sysctl; then
5953 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5954 elif test -x /usr/sbin/sysctl; then
5955 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5956 else
5957 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5958 fi
5959 # And add a safety zone
5960 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5961 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5962 ;;
5963
5964 interix*)
5965 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5966 lt_cv_sys_max_cmd_len=196608
5967 ;;
5968
5969 os2*)
5970 # The test takes a long time on OS/2.
5971 lt_cv_sys_max_cmd_len=8192
5972 ;;
5973
5974 osf*)
5975 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5976 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5977 # nice to cause kernel panics so lets avoid the loop below.
5978 # First set a reasonable default.
5979 lt_cv_sys_max_cmd_len=16384
5980 #
5981 if test -x /sbin/sysconfig; then
5982 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5983 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5984 esac
5985 fi
5986 ;;
5987 sco3.2v5*)
5988 lt_cv_sys_max_cmd_len=102400
5989 ;;
5990 sysv5* | sco5v6* | sysv4.2uw2*)
5991 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5992 if test -n "$kargmax"; then
5993 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
5994 else
5995 lt_cv_sys_max_cmd_len=32768
5996 fi
5997 ;;
5998 *)
5999 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6000 if test -n "$lt_cv_sys_max_cmd_len" && \
6001 test undefined != "$lt_cv_sys_max_cmd_len"; then
6002 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6003 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6004 else
6005 # Make teststring a little bigger before we do anything with it.
6006 # a 1K string should be a reasonable start.
6007 for i in 1 2 3 4 5 6 7 8; do
6008 teststring=$teststring$teststring
6009 done
6010 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6011 # If test is not a shell built-in, we'll probably end up computing a
6012 # maximum length that is only half of the actual maximum length, but
6013 # we can't tell.
6014 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6015 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6016 test 17 != "$i" # 1/2 MB should be enough
6017 do
6018 i=`expr $i + 1`
6019 teststring=$teststring$teststring
6020 done
6021 # Only check the string length outside the loop.
6022 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6023 teststring=
6024 # Add a significant safety factor because C++ compilers can tack on
6025 # massive amounts of additional arguments before passing them to the
6026 # linker. It appears as though 1/2 is a usable value.
6027 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6028 fi
6029 ;;
6030 esac
6031 ;;
6032 esac
6033 fi
6034
6035 if test -n "$lt_cv_sys_max_cmd_len"; then
6036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6037 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6038 else
6039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6040 printf "%s\n" "none" >&6; }
6041 fi
6042 max_cmd_len=$lt_cv_sys_max_cmd_len
6043
6044
6045
6046
6047
6048
6049 : ${CP="cp -f"}
6050 : ${MV="mv -f"}
6051 : ${RM="rm -f"}
6052
6053 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6054 lt_unset=unset
6055 else
6056 lt_unset=false
6057 fi
6058
6059
6060
6061
6062
6063 # test EBCDIC or ASCII
6064 case `echo X|tr X '\101'` in
6065 A) # ASCII based system
6066 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6067 lt_SP2NL='tr \040 \012'
6068 lt_NL2SP='tr \015\012 \040\040'
6069 ;;
6070 *) # EBCDIC based system
6071 lt_SP2NL='tr \100 \n'
6072 lt_NL2SP='tr \r\n \100\100'
6073 ;;
6074 esac
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6085 printf %s "checking how to convert $build file names to $host format... " >&6; }
6086 if test ${lt_cv_to_host_file_cmd+y}
6087 then :
6088 printf %s "(cached) " >&6
6089 else case e in #(
6090 e) case $host in
6091 *-*-mingw* )
6092 case $build in
6093 *-*-mingw* | *-*-windows* ) # actually msys
6094 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6095 ;;
6096 *-*-cygwin* )
6097 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6098 ;;
6099 * ) # otherwise, assume *nix
6100 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6101 ;;
6102 esac
6103 ;;
6104 *-*-cygwin* )
6105 case $build in
6106 *-*-mingw* | *-*-windows* ) # actually msys
6107 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6108 ;;
6109 *-*-cygwin* )
6110 lt_cv_to_host_file_cmd=func_convert_file_noop
6111 ;;
6112 * ) # otherwise, assume *nix
6113 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6114 ;;
6115 esac
6116 ;;
6117 * ) # unhandled hosts (and "normal" native builds)
6118 lt_cv_to_host_file_cmd=func_convert_file_noop
6119 ;;
6120 esac
6121 ;;
6122 esac
6123 fi
6124
6125 to_host_file_cmd=$lt_cv_to_host_file_cmd
6126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6127 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6128
6129
6130
6131
6132
6133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6134 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6135 if test ${lt_cv_to_tool_file_cmd+y}
6136 then :
6137 printf %s "(cached) " >&6
6138 else case e in #(
6139 e) #assume ordinary cross tools, or native build.
6140 lt_cv_to_tool_file_cmd=func_convert_file_noop
6141 case $host in
6142 *-*-mingw* | *-*-windows* )
6143 case $build in
6144 *-*-mingw* | *-*-windows* ) # actually msys
6145 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6146 ;;
6147 esac
6148 ;;
6149 esac
6150 ;;
6151 esac
6152 fi
6153
6154 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6156 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6157
6158
6159
6160
6161
6162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6163 printf %s "checking for $LD option to reload object files... " >&6; }
6164 if test ${lt_cv_ld_reload_flag+y}
6165 then :
6166 printf %s "(cached) " >&6
6167 else case e in #(
6168 e) lt_cv_ld_reload_flag='-r' ;;
6169 esac
6170 fi
6171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6172 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6173 reload_flag=$lt_cv_ld_reload_flag
6174 case $reload_flag in
6175 "" | " "*) ;;
6176 *) reload_flag=" $reload_flag" ;;
6177 esac
6178 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6179 case $host_os in
6180 cygwin* | mingw* | windows* | pw32* | cegcc*)
6181 if test yes != "$GCC"; then
6182 reload_cmds=false
6183 fi
6184 ;;
6185 darwin*)
6186 if test yes = "$GCC"; then
6187 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6188 else
6189 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6190 fi
6191 ;;
6192 esac
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202 # Extract the first word of "file", so it can be a program name with args.
6203 set dummy file; ac_word=$2
6204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6205 printf %s "checking for $ac_word... " >&6; }
6206 if test ${ac_cv_prog_FILECMD+y}
6207 then :
6208 printf %s "(cached) " >&6
6209 else case e in #(
6210 e) if test -n "$FILECMD"; then
6211 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
6212 else
6213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6214 for as_dir in $PATH
6215 do
6216 IFS=$as_save_IFS
6217 case $as_dir in #(((
6218 '') as_dir=./ ;;
6219 */) ;;
6220 *) as_dir=$as_dir/ ;;
6221 esac
6222 for ac_exec_ext in '' $ac_executable_extensions; do
6223 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6224 ac_cv_prog_FILECMD="file"
6225 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6226 break 2
6227 fi
6228 done
6229 done
6230 IFS=$as_save_IFS
6231
6232 test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":"
6233 fi ;;
6234 esac
6235 fi
6236 FILECMD=$ac_cv_prog_FILECMD
6237 if test -n "$FILECMD"; then
6238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6239 printf "%s\n" "$FILECMD" >&6; }
6240 else
6241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6242 printf "%s\n" "no" >&6; }
6243 fi
6244
6245
6246
6247
6248
6249
6250
6251
6252 if test -n "$ac_tool_prefix"; then
6253 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6254 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6256 printf %s "checking for $ac_word... " >&6; }
6257 if test ${ac_cv_prog_OBJDUMP+y}
6258 then :
6259 printf %s "(cached) " >&6
6260 else case e in #(
6261 e) if test -n "$OBJDUMP"; then
6262 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6263 else
6264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6265 for as_dir in $PATH
6266 do
6267 IFS=$as_save_IFS
6268 case $as_dir in #(((
6269 '') as_dir=./ ;;
6270 */) ;;
6271 *) as_dir=$as_dir/ ;;
6272 esac
6273 for ac_exec_ext in '' $ac_executable_extensions; do
6274 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6275 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6276 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6277 break 2
6278 fi
6279 done
6280 done
6281 IFS=$as_save_IFS
6282
6283 fi ;;
6284 esac
6285 fi
6286 OBJDUMP=$ac_cv_prog_OBJDUMP
6287 if test -n "$OBJDUMP"; then
6288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6289 printf "%s\n" "$OBJDUMP" >&6; }
6290 else
6291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6292 printf "%s\n" "no" >&6; }
6293 fi
6294
6295
6296 fi
6297 if test -z "$ac_cv_prog_OBJDUMP"; then
6298 ac_ct_OBJDUMP=$OBJDUMP
6299 # Extract the first word of "objdump", so it can be a program name with args.
6300 set dummy objdump; ac_word=$2
6301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6302 printf %s "checking for $ac_word... " >&6; }
6303 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6304 then :
6305 printf %s "(cached) " >&6
6306 else case e in #(
6307 e) if test -n "$ac_ct_OBJDUMP"; then
6308 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6309 else
6310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6311 for as_dir in $PATH
6312 do
6313 IFS=$as_save_IFS
6314 case $as_dir in #(((
6315 '') as_dir=./ ;;
6316 */) ;;
6317 *) as_dir=$as_dir/ ;;
6318 esac
6319 for ac_exec_ext in '' $ac_executable_extensions; do
6320 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6321 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6322 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6323 break 2
6324 fi
6325 done
6326 done
6327 IFS=$as_save_IFS
6328
6329 fi ;;
6330 esac
6331 fi
6332 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6333 if test -n "$ac_ct_OBJDUMP"; then
6334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6335 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6336 else
6337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6338 printf "%s\n" "no" >&6; }
6339 fi
6340
6341 if test "x$ac_ct_OBJDUMP" = x; then
6342 OBJDUMP="false"
6343 else
6344 case $cross_compiling:$ac_tool_warned in
6345 yes:)
6346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6347 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6348 ac_tool_warned=yes ;;
6349 esac
6350 OBJDUMP=$ac_ct_OBJDUMP
6351 fi
6352 else
6353 OBJDUMP="$ac_cv_prog_OBJDUMP"
6354 fi
6355
6356 test -z "$OBJDUMP" && OBJDUMP=objdump
6357
6358
6359
6360
6361
6362
6363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6364 printf %s "checking how to recognize dependent libraries... " >&6; }
6365 if test ${lt_cv_deplibs_check_method+y}
6366 then :
6367 printf %s "(cached) " >&6
6368 else case e in #(
6369 e) lt_cv_file_magic_cmd='$MAGIC_CMD'
6370 lt_cv_file_magic_test_file=
6371 lt_cv_deplibs_check_method='unknown'
6372 # Need to set the preceding variable on all platforms that support
6373 # interlibrary dependencies.
6374 # 'none' -- dependencies not supported.
6375 # 'unknown' -- same as none, but documents that we really don't know.
6376 # 'pass_all' -- all dependencies passed with no checks.
6377 # 'file_magic [[regex]]' -- check by looking for files in library path
6378 # that responds to the $file_magic_cmd with a given extended regex.
6379 # If you have 'file' or equivalent on your system and you're not sure
6380 # whether 'pass_all' will *always* work, you probably want this one.
6381
6382 case $host_os in
6383 aix[4-9]*)
6384 lt_cv_deplibs_check_method=pass_all
6385 ;;
6386
6387 beos*)
6388 lt_cv_deplibs_check_method=pass_all
6389 ;;
6390
6391 bsdi[45]*)
6392 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6393 lt_cv_file_magic_cmd='$FILECMD -L'
6394 lt_cv_file_magic_test_file=/shlib/libc.so
6395 ;;
6396
6397 cygwin*)
6398 # func_win32_libid is a shell function defined in ltmain.sh
6399 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6400 lt_cv_file_magic_cmd='func_win32_libid'
6401 ;;
6402
6403 mingw* | windows* | pw32*)
6404 # Base MSYS/MinGW do not provide the 'file' command needed by
6405 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6406 # unless we find 'file', for example because we are cross-compiling.
6407 if ( file / ) >/dev/null 2>&1; then
6408 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6409 lt_cv_file_magic_cmd='func_win32_libid'
6410 else
6411 # Keep this pattern in sync with the one in func_win32_libid.
6412 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
6413 lt_cv_file_magic_cmd='$OBJDUMP -f'
6414 fi
6415 ;;
6416
6417 cegcc*)
6418 # use the weaker test based on 'objdump'. See mingw*.
6419 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6420 lt_cv_file_magic_cmd='$OBJDUMP -f'
6421 ;;
6422
6423 darwin* | rhapsody*)
6424 lt_cv_deplibs_check_method=pass_all
6425 ;;
6426
6427 freebsd* | dragonfly* | midnightbsd*)
6428 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6429 case $host_cpu in
6430 i*86 )
6431 # Not sure whether the presence of OpenBSD here was a mistake.
6432 # Let's accept both of them until this is cleared up.
6433 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6434 lt_cv_file_magic_cmd=$FILECMD
6435 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6436 ;;
6437 esac
6438 else
6439 lt_cv_deplibs_check_method=pass_all
6440 fi
6441 ;;
6442
6443 haiku*)
6444 lt_cv_deplibs_check_method=pass_all
6445 ;;
6446
6447 hpux10.20* | hpux11*)
6448 lt_cv_file_magic_cmd=$FILECMD
6449 case $host_cpu in
6450 ia64*)
6451 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6452 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6453 ;;
6454 hppa*64*)
6455 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]'
6456 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6457 ;;
6458 *)
6459 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6460 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6461 ;;
6462 esac
6463 ;;
6464
6465 interix[3-9]*)
6466 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6467 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6468 ;;
6469
6470 irix5* | irix6* | nonstopux*)
6471 case $LD in
6472 *-32|*"-32 ") libmagic=32-bit;;
6473 *-n32|*"-n32 ") libmagic=N32;;
6474 *-64|*"-64 ") libmagic=64-bit;;
6475 *) libmagic=never-match;;
6476 esac
6477 lt_cv_deplibs_check_method=pass_all
6478 ;;
6479
6480 # This must be glibc/ELF.
6481 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6482 lt_cv_deplibs_check_method=pass_all
6483 ;;
6484
6485 *-mlibc)
6486 lt_cv_deplibs_check_method=pass_all
6487 ;;
6488
6489 netbsd* | netbsdelf*-gnu)
6490 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6491 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6492 else
6493 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6494 fi
6495 ;;
6496
6497 newos6*)
6498 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6499 lt_cv_file_magic_cmd=$FILECMD
6500 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6501 ;;
6502
6503 *nto* | *qnx*)
6504 lt_cv_deplibs_check_method=pass_all
6505 ;;
6506
6507 openbsd*)
6508 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6509 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6510 else
6511 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6512 fi
6513 ;;
6514
6515 osf3* | osf4* | osf5*)
6516 lt_cv_deplibs_check_method=pass_all
6517 ;;
6518
6519 rdos*)
6520 lt_cv_deplibs_check_method=pass_all
6521 ;;
6522
6523 serenity*)
6524 lt_cv_deplibs_check_method=pass_all
6525 ;;
6526
6527 solaris*)
6528 lt_cv_deplibs_check_method=pass_all
6529 ;;
6530
6531 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6532 lt_cv_deplibs_check_method=pass_all
6533 ;;
6534
6535 sysv4 | sysv4.3*)
6536 case $host_vendor in
6537 motorola)
6538 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]'
6539 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6540 ;;
6541 ncr)
6542 lt_cv_deplibs_check_method=pass_all
6543 ;;
6544 sequent)
6545 lt_cv_file_magic_cmd='/bin/file'
6546 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6547 ;;
6548 sni)
6549 lt_cv_file_magic_cmd='/bin/file'
6550 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6551 lt_cv_file_magic_test_file=/lib/libc.so
6552 ;;
6553 siemens)
6554 lt_cv_deplibs_check_method=pass_all
6555 ;;
6556 pc)
6557 lt_cv_deplibs_check_method=pass_all
6558 ;;
6559 esac
6560 ;;
6561
6562 tpf*)
6563 lt_cv_deplibs_check_method=pass_all
6564 ;;
6565 os2*)
6566 lt_cv_deplibs_check_method=pass_all
6567 ;;
6568 esac
6569 ;;
6570 esac
6571 fi
6572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6573 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6574
6575 file_magic_glob=
6576 want_nocaseglob=no
6577 if test "$build" = "$host"; then
6578 case $host_os in
6579 mingw* | windows* | pw32*)
6580 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6581 want_nocaseglob=yes
6582 else
6583 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6584 fi
6585 ;;
6586 esac
6587 fi
6588
6589 file_magic_cmd=$lt_cv_file_magic_cmd
6590 deplibs_check_method=$lt_cv_deplibs_check_method
6591 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614 if test -n "$ac_tool_prefix"; then
6615 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6616 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6618 printf %s "checking for $ac_word... " >&6; }
6619 if test ${ac_cv_prog_DLLTOOL+y}
6620 then :
6621 printf %s "(cached) " >&6
6622 else case e in #(
6623 e) if test -n "$DLLTOOL"; then
6624 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6625 else
6626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6627 for as_dir in $PATH
6628 do
6629 IFS=$as_save_IFS
6630 case $as_dir in #(((
6631 '') as_dir=./ ;;
6632 */) ;;
6633 *) as_dir=$as_dir/ ;;
6634 esac
6635 for ac_exec_ext in '' $ac_executable_extensions; do
6636 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6637 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6638 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6639 break 2
6640 fi
6641 done
6642 done
6643 IFS=$as_save_IFS
6644
6645 fi ;;
6646 esac
6647 fi
6648 DLLTOOL=$ac_cv_prog_DLLTOOL
6649 if test -n "$DLLTOOL"; then
6650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6651 printf "%s\n" "$DLLTOOL" >&6; }
6652 else
6653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6654 printf "%s\n" "no" >&6; }
6655 fi
6656
6657
6658 fi
6659 if test -z "$ac_cv_prog_DLLTOOL"; then
6660 ac_ct_DLLTOOL=$DLLTOOL
6661 # Extract the first word of "dlltool", so it can be a program name with args.
6662 set dummy dlltool; ac_word=$2
6663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6664 printf %s "checking for $ac_word... " >&6; }
6665 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6666 then :
6667 printf %s "(cached) " >&6
6668 else case e in #(
6669 e) if test -n "$ac_ct_DLLTOOL"; then
6670 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6671 else
6672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6673 for as_dir in $PATH
6674 do
6675 IFS=$as_save_IFS
6676 case $as_dir in #(((
6677 '') as_dir=./ ;;
6678 */) ;;
6679 *) as_dir=$as_dir/ ;;
6680 esac
6681 for ac_exec_ext in '' $ac_executable_extensions; do
6682 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6683 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6684 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6685 break 2
6686 fi
6687 done
6688 done
6689 IFS=$as_save_IFS
6690
6691 fi ;;
6692 esac
6693 fi
6694 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6695 if test -n "$ac_ct_DLLTOOL"; then
6696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6697 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6698 else
6699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6700 printf "%s\n" "no" >&6; }
6701 fi
6702
6703 if test "x$ac_ct_DLLTOOL" = x; then
6704 DLLTOOL="false"
6705 else
6706 case $cross_compiling:$ac_tool_warned in
6707 yes:)
6708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6709 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6710 ac_tool_warned=yes ;;
6711 esac
6712 DLLTOOL=$ac_ct_DLLTOOL
6713 fi
6714 else
6715 DLLTOOL="$ac_cv_prog_DLLTOOL"
6716 fi
6717
6718 test -z "$DLLTOOL" && DLLTOOL=dlltool
6719
6720
6721
6722
6723
6724
6725
6726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6727 printf %s "checking how to associate runtime and link libraries... " >&6; }
6728 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6729 then :
6730 printf %s "(cached) " >&6
6731 else case e in #(
6732 e) lt_cv_sharedlib_from_linklib_cmd='unknown'
6733
6734 case $host_os in
6735 cygwin* | mingw* | windows* | pw32* | cegcc*)
6736 # two different shell functions defined in ltmain.sh;
6737 # decide which one to use based on capabilities of $DLLTOOL
6738 case `$DLLTOOL --help 2>&1` in
6739 *--identify-strict*)
6740 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6741 ;;
6742 *)
6743 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6744 ;;
6745 esac
6746 ;;
6747 *)
6748 # fallback: assume linklib IS sharedlib
6749 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6750 ;;
6751 esac
6752 ;;
6753 esac
6754 fi
6755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6756 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6757 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6758 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6759
6760
6761
6762
6763
6764
6765
6766 if test -n "$ac_tool_prefix"; then
6767 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6768 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6770 printf %s "checking for $ac_word... " >&6; }
6771 if test ${ac_cv_prog_RANLIB+y}
6772 then :
6773 printf %s "(cached) " >&6
6774 else case e in #(
6775 e) if test -n "$RANLIB"; then
6776 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6777 else
6778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6779 for as_dir in $PATH
6780 do
6781 IFS=$as_save_IFS
6782 case $as_dir in #(((
6783 '') as_dir=./ ;;
6784 */) ;;
6785 *) as_dir=$as_dir/ ;;
6786 esac
6787 for ac_exec_ext in '' $ac_executable_extensions; do
6788 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6789 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6790 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6791 break 2
6792 fi
6793 done
6794 done
6795 IFS=$as_save_IFS
6796
6797 fi ;;
6798 esac
6799 fi
6800 RANLIB=$ac_cv_prog_RANLIB
6801 if test -n "$RANLIB"; then
6802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6803 printf "%s\n" "$RANLIB" >&6; }
6804 else
6805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6806 printf "%s\n" "no" >&6; }
6807 fi
6808
6809
6810 fi
6811 if test -z "$ac_cv_prog_RANLIB"; then
6812 ac_ct_RANLIB=$RANLIB
6813 # Extract the first word of "ranlib", so it can be a program name with args.
6814 set dummy ranlib; ac_word=$2
6815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6816 printf %s "checking for $ac_word... " >&6; }
6817 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6818 then :
6819 printf %s "(cached) " >&6
6820 else case e in #(
6821 e) if test -n "$ac_ct_RANLIB"; then
6822 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6823 else
6824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6825 for as_dir in $PATH
6826 do
6827 IFS=$as_save_IFS
6828 case $as_dir in #(((
6829 '') as_dir=./ ;;
6830 */) ;;
6831 *) as_dir=$as_dir/ ;;
6832 esac
6833 for ac_exec_ext in '' $ac_executable_extensions; do
6834 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6835 ac_cv_prog_ac_ct_RANLIB="ranlib"
6836 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6837 break 2
6838 fi
6839 done
6840 done
6841 IFS=$as_save_IFS
6842
6843 fi ;;
6844 esac
6845 fi
6846 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6847 if test -n "$ac_ct_RANLIB"; then
6848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6849 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6850 else
6851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6852 printf "%s\n" "no" >&6; }
6853 fi
6854
6855 if test "x$ac_ct_RANLIB" = x; then
6856 RANLIB=":"
6857 else
6858 case $cross_compiling:$ac_tool_warned in
6859 yes:)
6860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6861 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6862 ac_tool_warned=yes ;;
6863 esac
6864 RANLIB=$ac_ct_RANLIB
6865 fi
6866 else
6867 RANLIB="$ac_cv_prog_RANLIB"
6868 fi
6869
6870 if test -n "$ac_tool_prefix"; then
6871 for ac_prog in ar
6872 do
6873 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6874 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6876 printf %s "checking for $ac_word... " >&6; }
6877 if test ${ac_cv_prog_AR+y}
6878 then :
6879 printf %s "(cached) " >&6
6880 else case e in #(
6881 e) if test -n "$AR"; then
6882 ac_cv_prog_AR="$AR" # Let the user override the test.
6883 else
6884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6885 for as_dir in $PATH
6886 do
6887 IFS=$as_save_IFS
6888 case $as_dir in #(((
6889 '') as_dir=./ ;;
6890 */) ;;
6891 *) as_dir=$as_dir/ ;;
6892 esac
6893 for ac_exec_ext in '' $ac_executable_extensions; do
6894 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6895 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6896 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6897 break 2
6898 fi
6899 done
6900 done
6901 IFS=$as_save_IFS
6902
6903 fi ;;
6904 esac
6905 fi
6906 AR=$ac_cv_prog_AR
6907 if test -n "$AR"; then
6908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6909 printf "%s\n" "$AR" >&6; }
6910 else
6911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6912 printf "%s\n" "no" >&6; }
6913 fi
6914
6915
6916 test -n "$AR" && break
6917 done
6918 fi
6919 if test -z "$AR"; then
6920 ac_ct_AR=$AR
6921 for ac_prog in ar
6922 do
6923 # Extract the first word of "$ac_prog", so it can be a program name with args.
6924 set dummy $ac_prog; ac_word=$2
6925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6926 printf %s "checking for $ac_word... " >&6; }
6927 if test ${ac_cv_prog_ac_ct_AR+y}
6928 then :
6929 printf %s "(cached) " >&6
6930 else case e in #(
6931 e) if test -n "$ac_ct_AR"; then
6932 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6933 else
6934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6935 for as_dir in $PATH
6936 do
6937 IFS=$as_save_IFS
6938 case $as_dir in #(((
6939 '') as_dir=./ ;;
6940 */) ;;
6941 *) as_dir=$as_dir/ ;;
6942 esac
6943 for ac_exec_ext in '' $ac_executable_extensions; do
6944 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6945 ac_cv_prog_ac_ct_AR="$ac_prog"
6946 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6947 break 2
6948 fi
6949 done
6950 done
6951 IFS=$as_save_IFS
6952
6953 fi ;;
6954 esac
6955 fi
6956 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6957 if test -n "$ac_ct_AR"; then
6958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6959 printf "%s\n" "$ac_ct_AR" >&6; }
6960 else
6961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6962 printf "%s\n" "no" >&6; }
6963 fi
6964
6965
6966 test -n "$ac_ct_AR" && break
6967 done
6968
6969 if test "x$ac_ct_AR" = x; then
6970 AR="false"
6971 else
6972 case $cross_compiling:$ac_tool_warned in
6973 yes:)
6974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6975 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6976 ac_tool_warned=yes ;;
6977 esac
6978 AR=$ac_ct_AR
6979 fi
6980 fi
6981
6982 : ${AR=ar}
6983
6984
6985
6986
6987
6988
6989 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
6990 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6991 # higher priority because that's what people were doing historically (setting
6992 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
6993 # variable obsoleted/removed.
6994
6995 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6996 lt_ar_flags=$AR_FLAGS
6997
6998
6999
7000
7001
7002
7003 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
7004 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
7005
7006
7007
7008
7009
7010
7011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7012 printf %s "checking for archiver @FILE support... " >&6; }
7013 if test ${lt_cv_ar_at_file+y}
7014 then :
7015 printf %s "(cached) " >&6
7016 else case e in #(
7017 e) lt_cv_ar_at_file=no
7018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7019 /* end confdefs.h. */
7020
7021 int
7022 main (void)
7023 {
7024
7025 ;
7026 return 0;
7027 }
7028 _ACEOF
7029 if ac_fn_c_try_compile "$LINENO"
7030 then :
7031 echo conftest.$ac_objext > conftest.lst
7032 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7033 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7034 (eval $lt_ar_try) 2>&5
7035 ac_status=$?
7036 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7037 test $ac_status = 0; }
7038 if test 0 -eq "$ac_status"; then
7039 # Ensure the archiver fails upon bogus file names.
7040 rm -f conftest.$ac_objext libconftest.a
7041 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7042 (eval $lt_ar_try) 2>&5
7043 ac_status=$?
7044 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7045 test $ac_status = 0; }
7046 if test 0 -ne "$ac_status"; then
7047 lt_cv_ar_at_file=@
7048 fi
7049 fi
7050 rm -f conftest.* libconftest.a
7051
7052 fi
7053 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7054 ;;
7055 esac
7056 fi
7057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7058 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
7059
7060 if test no = "$lt_cv_ar_at_file"; then
7061 archiver_list_spec=
7062 else
7063 archiver_list_spec=$lt_cv_ar_at_file
7064 fi
7065
7066
7067
7068
7069
7070
7071
7072 if test -n "$ac_tool_prefix"; then
7073 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7074 set dummy ${ac_tool_prefix}strip; ac_word=$2
7075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7076 printf %s "checking for $ac_word... " >&6; }
7077 if test ${ac_cv_prog_STRIP+y}
7078 then :
7079 printf %s "(cached) " >&6
7080 else case e in #(
7081 e) if test -n "$STRIP"; then
7082 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7083 else
7084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7085 for as_dir in $PATH
7086 do
7087 IFS=$as_save_IFS
7088 case $as_dir in #(((
7089 '') as_dir=./ ;;
7090 */) ;;
7091 *) as_dir=$as_dir/ ;;
7092 esac
7093 for ac_exec_ext in '' $ac_executable_extensions; do
7094 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7095 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7096 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7097 break 2
7098 fi
7099 done
7100 done
7101 IFS=$as_save_IFS
7102
7103 fi ;;
7104 esac
7105 fi
7106 STRIP=$ac_cv_prog_STRIP
7107 if test -n "$STRIP"; then
7108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7109 printf "%s\n" "$STRIP" >&6; }
7110 else
7111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7112 printf "%s\n" "no" >&6; }
7113 fi
7114
7115
7116 fi
7117 if test -z "$ac_cv_prog_STRIP"; then
7118 ac_ct_STRIP=$STRIP
7119 # Extract the first word of "strip", so it can be a program name with args.
7120 set dummy strip; ac_word=$2
7121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7122 printf %s "checking for $ac_word... " >&6; }
7123 if test ${ac_cv_prog_ac_ct_STRIP+y}
7124 then :
7125 printf %s "(cached) " >&6
7126 else case e in #(
7127 e) if test -n "$ac_ct_STRIP"; then
7128 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7129 else
7130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7131 for as_dir in $PATH
7132 do
7133 IFS=$as_save_IFS
7134 case $as_dir in #(((
7135 '') as_dir=./ ;;
7136 */) ;;
7137 *) as_dir=$as_dir/ ;;
7138 esac
7139 for ac_exec_ext in '' $ac_executable_extensions; do
7140 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7141 ac_cv_prog_ac_ct_STRIP="strip"
7142 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7143 break 2
7144 fi
7145 done
7146 done
7147 IFS=$as_save_IFS
7148
7149 fi ;;
7150 esac
7151 fi
7152 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7153 if test -n "$ac_ct_STRIP"; then
7154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7155 printf "%s\n" "$ac_ct_STRIP" >&6; }
7156 else
7157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7158 printf "%s\n" "no" >&6; }
7159 fi
7160
7161 if test "x$ac_ct_STRIP" = x; then
7162 STRIP=":"
7163 else
7164 case $cross_compiling:$ac_tool_warned in
7165 yes:)
7166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7167 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7168 ac_tool_warned=yes ;;
7169 esac
7170 STRIP=$ac_ct_STRIP
7171 fi
7172 else
7173 STRIP="$ac_cv_prog_STRIP"
7174 fi
7175
7176 test -z "$STRIP" && STRIP=:
7177
7178
7179
7180
7181
7182
7183
7184 test -z "$RANLIB" && RANLIB=:
7185
7186
7187
7188
7189
7190
7191 # Determine commands to create old-style static archives.
7192 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7193 old_postinstall_cmds='chmod 644 $oldlib'
7194 old_postuninstall_cmds=
7195
7196 if test -n "$RANLIB"; then
7197 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7198 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7199 fi
7200
7201 case $host_os in
7202 darwin*)
7203 lock_old_archive_extraction=yes ;;
7204 *)
7205 lock_old_archive_extraction=no ;;
7206 esac
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246 # If no C compiler was specified, use CC.
7247 LTCC=${LTCC-"$CC"}
7248
7249 # If no C compiler flags were specified, use CFLAGS.
7250 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7251
7252 # Allow CC to be a program name with arguments.
7253 compiler=$CC
7254
7255
7256 # Check for command to grab the raw symbol name followed by C symbol from nm.
7257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7258 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7259 if test ${lt_cv_sys_global_symbol_pipe+y}
7260 then :
7261 printf %s "(cached) " >&6
7262 else case e in #(
7263 e)
7264 # These are sane defaults that work on at least a few old systems.
7265 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7266
7267 # Character class describing NM global symbol codes.
7268 symcode='[BCDEGRST]'
7269
7270 # Regexp to match symbols that can be accessed directly from C.
7271 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7272
7273 # Define system-specific variables.
7274 case $host_os in
7275 aix*)
7276 symcode='[BCDT]'
7277 ;;
7278 cygwin* | mingw* | windows* | pw32* | cegcc*)
7279 symcode='[ABCDGISTW]'
7280 ;;
7281 hpux*)
7282 if test ia64 = "$host_cpu"; then
7283 symcode='[ABCDEGRST]'
7284 fi
7285 ;;
7286 irix* | nonstopux*)
7287 symcode='[BCDEGRST]'
7288 ;;
7289 osf*)
7290 symcode='[BCDEGQRST]'
7291 ;;
7292 solaris*)
7293 symcode='[BCDRT]'
7294 ;;
7295 sco3.2v5*)
7296 symcode='[DT]'
7297 ;;
7298 sysv4.2uw2*)
7299 symcode='[DT]'
7300 ;;
7301 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7302 symcode='[ABDT]'
7303 ;;
7304 sysv4)
7305 symcode='[DFNSTU]'
7306 ;;
7307 esac
7308
7309 # If we're using GNU nm, then use its standard symbol codes.
7310 case `$NM -V 2>&1` in
7311 *GNU* | *'with BFD'*)
7312 symcode='[ABCDGIRSTW]' ;;
7313 esac
7314
7315 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7316 # Gets list of data symbols to import.
7317 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7318 # Adjust the below global symbol transforms to fixup imported variables.
7319 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7320 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7321 lt_c_name_lib_hook="\
7322 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7323 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7324 else
7325 # Disable hooks by default.
7326 lt_cv_sys_global_symbol_to_import=
7327 lt_cdecl_hook=
7328 lt_c_name_hook=
7329 lt_c_name_lib_hook=
7330 fi
7331
7332 # Transform an extracted symbol line into a proper C declaration.
7333 # Some systems (esp. on ia64) link data and code symbols differently,
7334 # so use this general approach.
7335 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7336 $lt_cdecl_hook\
7337 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7338 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7339
7340 # Transform an extracted symbol line into symbol name and symbol address
7341 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7342 $lt_c_name_hook\
7343 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7344 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7345
7346 # Transform an extracted symbol line into symbol name with lib prefix and
7347 # symbol address.
7348 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7349 $lt_c_name_lib_hook\
7350 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7351 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7352 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7353
7354 # Handle CRLF in mingw tool chain
7355 opt_cr=
7356 case $build_os in
7357 mingw* | windows*)
7358 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7359 ;;
7360 esac
7361
7362 # Try without a prefix underscore, then with it.
7363 for ac_symprfx in "" "_"; do
7364
7365 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7366 symxfrm="\\1 $ac_symprfx\\2 \\2"
7367
7368 # Write the raw and C identifiers.
7369 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7370 # Fake it for dumpbin and say T for any non-static function,
7371 # D for any global variable and I for any imported variable.
7372 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7373 # which start with @ or ?.
7374 lt_cv_sys_global_symbol_pipe="$AWK '"\
7375 " {last_section=section; section=\$ 3};"\
7376 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7377 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7378 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7379 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7380 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7381 " \$ 0!~/External *\|/{next};"\
7382 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7383 " {if(hide[section]) next};"\
7384 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7385 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7386 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7387 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7388 " ' prfx=^$ac_symprfx"
7389 else
7390 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7391 fi
7392 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7393
7394 # Check to see that the pipe works correctly.
7395 pipe_works=no
7396
7397 rm -f conftest*
7398 cat > conftest.$ac_ext <<_LT_EOF
7399 #ifdef __cplusplus
7400 extern "C" {
7401 #endif
7402 char nm_test_var;
7403 void nm_test_func(void);
7404 void nm_test_func(void){}
7405 #ifdef __cplusplus
7406 }
7407 #endif
7408 int main(void){nm_test_var='a';nm_test_func();return(0);}
7409 _LT_EOF
7410
7411 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7412 (eval $ac_compile) 2>&5
7413 ac_status=$?
7414 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7415 test $ac_status = 0; }; then
7416 # Now try to grab the symbols.
7417 nlist=conftest.nm
7418 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7419 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7420 # Try sorting and uniquifying the output.
7421 if sort "$nlist" | uniq > "$nlist"T; then
7422 mv -f "$nlist"T "$nlist"
7423 else
7424 rm -f "$nlist"T
7425 fi
7426
7427 # Make sure that we snagged all the symbols we need.
7428 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7429 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7430 cat <<_LT_EOF > conftest.$ac_ext
7431 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7432 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7433 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7434 relocations are performed -- see ld's documentation on pseudo-relocs. */
7435 # define LT_DLSYM_CONST
7436 #elif defined __osf__
7437 /* This system does not cope well with relocations in const data. */
7438 # define LT_DLSYM_CONST
7439 #else
7440 # define LT_DLSYM_CONST const
7441 #endif
7442
7443 #ifdef __cplusplus
7444 extern "C" {
7445 #endif
7446
7447 _LT_EOF
7448 # Now generate the symbol file.
7449 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7450
7451 cat <<_LT_EOF >> conftest.$ac_ext
7452
7453 /* The mapping between symbol names and symbols. */
7454 LT_DLSYM_CONST struct {
7455 const char *name;
7456 void *address;
7457 }
7458 lt__PROGRAM__LTX_preloaded_symbols[] =
7459 {
7460 { "@PROGRAM@", (void *) 0 },
7461 _LT_EOF
7462 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7463 cat <<\_LT_EOF >> conftest.$ac_ext
7464 {0, (void *) 0}
7465 };
7466
7467 /* This works around a problem in FreeBSD linker */
7468 #ifdef FREEBSD_WORKAROUND
7469 static const void *lt_preloaded_setup() {
7470 return lt__PROGRAM__LTX_preloaded_symbols;
7471 }
7472 #endif
7473
7474 #ifdef __cplusplus
7475 }
7476 #endif
7477 _LT_EOF
7478 # Now try linking the two files.
7479 mv conftest.$ac_objext conftstm.$ac_objext
7480 lt_globsym_save_LIBS=$LIBS
7481 lt_globsym_save_CFLAGS=$CFLAGS
7482 LIBS=conftstm.$ac_objext
7483 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7484 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7485 (eval $ac_link) 2>&5
7486 ac_status=$?
7487 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7488 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7489 pipe_works=yes
7490 fi
7491 LIBS=$lt_globsym_save_LIBS
7492 CFLAGS=$lt_globsym_save_CFLAGS
7493 else
7494 echo "cannot find nm_test_func in $nlist" >&5
7495 fi
7496 else
7497 echo "cannot find nm_test_var in $nlist" >&5
7498 fi
7499 else
7500 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7501 fi
7502 else
7503 echo "$progname: failed program was:" >&5
7504 cat conftest.$ac_ext >&5
7505 fi
7506 rm -rf conftest* conftst*
7507
7508 # Do not use the global_symbol_pipe unless it works.
7509 if test yes = "$pipe_works"; then
7510 break
7511 else
7512 lt_cv_sys_global_symbol_pipe=
7513 fi
7514 done
7515 ;;
7516 esac
7517 fi
7518
7519 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7520 lt_cv_sys_global_symbol_to_cdecl=
7521 fi
7522 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7524 printf "%s\n" "failed" >&6; }
7525 else
7526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7527 printf "%s\n" "ok" >&6; }
7528 fi
7529
7530 # Response file support.
7531 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7532 nm_file_list_spec='@'
7533 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7534 nm_file_list_spec='@'
7535 fi
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7574 printf %s "checking for sysroot... " >&6; }
7575
7576 # Check whether --with-sysroot was given.
7577 if test ${with_sysroot+y}
7578 then :
7579 withval=$with_sysroot;
7580 else case e in #(
7581 e) with_sysroot=no ;;
7582 esac
7583 fi
7584
7585
7586 lt_sysroot=
7587 case $with_sysroot in #(
7588 yes)
7589 if test yes = "$GCC"; then
7590 # Trim trailing / since we'll always append absolute paths and we want
7591 # to avoid //, if only for less confusing output for the user.
7592 lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`
7593 fi
7594 ;; #(
7595 /*)
7596 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7597 ;; #(
7598 no|'')
7599 ;; #(
7600 *)
7601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7602 printf "%s\n" "$with_sysroot" >&6; }
7603 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7604 ;;
7605 esac
7606
7607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7608 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7609
7610
7611
7612
7613
7614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7615 printf %s "checking for a working dd... " >&6; }
7616 if test ${ac_cv_path_lt_DD+y}
7617 then :
7618 printf %s "(cached) " >&6
7619 else case e in #(
7620 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7621 cat conftest.i conftest.i >conftest2.i
7622 : ${lt_DD:=$DD}
7623 if test -z "$lt_DD"; then
7624 ac_path_lt_DD_found=false
7625 # Loop through the user's path and test for each of PROGNAME-LIST
7626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7627 for as_dir in $PATH
7628 do
7629 IFS=$as_save_IFS
7630 case $as_dir in #(((
7631 '') as_dir=./ ;;
7632 */) ;;
7633 *) as_dir=$as_dir/ ;;
7634 esac
7635 for ac_prog in dd
7636 do
7637 for ac_exec_ext in '' $ac_executable_extensions; do
7638 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7639 as_fn_executable_p "$ac_path_lt_DD" || continue
7640 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7641 cmp -s conftest.i conftest.out \
7642 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7643 fi
7644 $ac_path_lt_DD_found && break 3
7645 done
7646 done
7647 done
7648 IFS=$as_save_IFS
7649 if test -z "$ac_cv_path_lt_DD"; then
7650 :
7651 fi
7652 else
7653 ac_cv_path_lt_DD=$lt_DD
7654 fi
7655
7656 rm -f conftest.i conftest2.i conftest.out ;;
7657 esac
7658 fi
7659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7660 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7661
7662
7663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7664 printf %s "checking how to truncate binary pipes... " >&6; }
7665 if test ${lt_cv_truncate_bin+y}
7666 then :
7667 printf %s "(cached) " >&6
7668 else case e in #(
7669 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7670 cat conftest.i conftest.i >conftest2.i
7671 lt_cv_truncate_bin=
7672 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7673 cmp -s conftest.i conftest.out \
7674 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7675 fi
7676 rm -f conftest.i conftest2.i conftest.out
7677 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
7678 esac
7679 fi
7680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7681 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7682
7683
7684
7685
7686
7687
7688
7689 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7690 func_cc_basename ()
7691 {
7692 for cc_temp in $*""; do
7693 case $cc_temp in
7694 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7695 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7696 \-*) ;;
7697 *) break;;
7698 esac
7699 done
7700 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7701 }
7702
7703 # Check whether --enable-libtool-lock was given.
7704 if test ${enable_libtool_lock+y}
7705 then :
7706 enableval=$enable_libtool_lock;
7707 fi
7708
7709 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7710
7711 # Some flags need to be propagated to the compiler or linker for good
7712 # libtool support.
7713 case $host in
7714 ia64-*-hpux*)
7715 # Find out what ABI is being produced by ac_compile, and set mode
7716 # options accordingly.
7717 echo 'int i;' > conftest.$ac_ext
7718 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7719 (eval $ac_compile) 2>&5
7720 ac_status=$?
7721 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7722 test $ac_status = 0; }; then
7723 case `$FILECMD conftest.$ac_objext` in
7724 *ELF-32*)
7725 HPUX_IA64_MODE=32
7726 ;;
7727 *ELF-64*)
7728 HPUX_IA64_MODE=64
7729 ;;
7730 esac
7731 fi
7732 rm -rf conftest*
7733 ;;
7734 *-*-irix6*)
7735 # Find out what ABI is being produced by ac_compile, and set linker
7736 # options accordingly.
7737 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7738 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7739 (eval $ac_compile) 2>&5
7740 ac_status=$?
7741 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7742 test $ac_status = 0; }; then
7743 if test yes = "$lt_cv_prog_gnu_ld"; then
7744 case `$FILECMD conftest.$ac_objext` in
7745 *32-bit*)
7746 LD="${LD-ld} -melf32bsmip"
7747 ;;
7748 *N32*)
7749 LD="${LD-ld} -melf32bmipn32"
7750 ;;
7751 *64-bit*)
7752 LD="${LD-ld} -melf64bmip"
7753 ;;
7754 esac
7755 else
7756 case `$FILECMD conftest.$ac_objext` in
7757 *32-bit*)
7758 LD="${LD-ld} -32"
7759 ;;
7760 *N32*)
7761 LD="${LD-ld} -n32"
7762 ;;
7763 *64-bit*)
7764 LD="${LD-ld} -64"
7765 ;;
7766 esac
7767 fi
7768 fi
7769 rm -rf conftest*
7770 ;;
7771
7772 mips64*-*linux*)
7773 # Find out what ABI is being produced by ac_compile, and set linker
7774 # options accordingly.
7775 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7776 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7777 (eval $ac_compile) 2>&5
7778 ac_status=$?
7779 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7780 test $ac_status = 0; }; then
7781 emul=elf
7782 case `$FILECMD conftest.$ac_objext` in
7783 *32-bit*)
7784 emul="${emul}32"
7785 ;;
7786 *64-bit*)
7787 emul="${emul}64"
7788 ;;
7789 esac
7790 case `$FILECMD conftest.$ac_objext` in
7791 *MSB*)
7792 emul="${emul}btsmip"
7793 ;;
7794 *LSB*)
7795 emul="${emul}ltsmip"
7796 ;;
7797 esac
7798 case `$FILECMD conftest.$ac_objext` in
7799 *N32*)
7800 emul="${emul}n32"
7801 ;;
7802 esac
7803 LD="${LD-ld} -m $emul"
7804 fi
7805 rm -rf conftest*
7806 ;;
7807
7808 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7809 s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
7810 # Find out what ABI is being produced by ac_compile, and set linker
7811 # options accordingly. Note that the listed cases only cover the
7812 # situations where additional linker options are needed (such as when
7813 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7814 # vice versa); the common cases where no linker options are needed do
7815 # not appear in the list.
7816 echo 'int i;' > conftest.$ac_ext
7817 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7818 (eval $ac_compile) 2>&5
7819 ac_status=$?
7820 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7821 test $ac_status = 0; }; then
7822 case `$FILECMD conftest.o` in
7823 *32-bit*)
7824 case $host in
7825 x86_64-*kfreebsd*-gnu)
7826 LD="${LD-ld} -m elf_i386_fbsd"
7827 ;;
7828 x86_64-*linux*|x86_64-gnu*)
7829 case `$FILECMD conftest.o` in
7830 *x86-64*)
7831 LD="${LD-ld} -m elf32_x86_64"
7832 ;;
7833 *)
7834 LD="${LD-ld} -m elf_i386"
7835 ;;
7836 esac
7837 ;;
7838 powerpc64le-*linux*)
7839 LD="${LD-ld} -m elf32lppclinux"
7840 ;;
7841 powerpc64-*linux*)
7842 LD="${LD-ld} -m elf32ppclinux"
7843 ;;
7844 s390x-*linux*)
7845 LD="${LD-ld} -m elf_s390"
7846 ;;
7847 sparc64-*linux*)
7848 LD="${LD-ld} -m elf32_sparc"
7849 ;;
7850 esac
7851 ;;
7852 *64-bit*)
7853 case $host in
7854 x86_64-*kfreebsd*-gnu)
7855 LD="${LD-ld} -m elf_x86_64_fbsd"
7856 ;;
7857 x86_64-*linux*|x86_64-gnu*)
7858 LD="${LD-ld} -m elf_x86_64"
7859 ;;
7860 powerpcle-*linux*)
7861 LD="${LD-ld} -m elf64lppc"
7862 ;;
7863 powerpc-*linux*)
7864 LD="${LD-ld} -m elf64ppc"
7865 ;;
7866 s390*-*linux*|s390*-*tpf*)
7867 LD="${LD-ld} -m elf64_s390"
7868 ;;
7869 sparc*-*linux*)
7870 LD="${LD-ld} -m elf64_sparc"
7871 ;;
7872 esac
7873 ;;
7874 esac
7875 fi
7876 rm -rf conftest*
7877 ;;
7878
7879 *-*-sco3.2v5*)
7880 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7881 SAVE_CFLAGS=$CFLAGS
7882 CFLAGS="$CFLAGS -belf"
7883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7884 printf %s "checking whether the C compiler needs -belf... " >&6; }
7885 if test ${lt_cv_cc_needs_belf+y}
7886 then :
7887 printf %s "(cached) " >&6
7888 else case e in #(
7889 e) ac_ext=c
7890 ac_cpp='$CPP $CPPFLAGS'
7891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7894
7895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7896 /* end confdefs.h. */
7897
7898 int
7899 main (void)
7900 {
7901
7902 ;
7903 return 0;
7904 }
7905 _ACEOF
7906 if ac_fn_c_try_link "$LINENO"
7907 then :
7908 lt_cv_cc_needs_belf=yes
7909 else case e in #(
7910 e) lt_cv_cc_needs_belf=no ;;
7911 esac
7912 fi
7913 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7914 conftest$ac_exeext conftest.$ac_ext
7915 ac_ext=c
7916 ac_cpp='$CPP $CPPFLAGS'
7917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7920 ;;
7921 esac
7922 fi
7923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7924 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7925 if test yes != "$lt_cv_cc_needs_belf"; then
7926 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7927 CFLAGS=$SAVE_CFLAGS
7928 fi
7929 ;;
7930 *-*solaris*)
7931 # Find out what ABI is being produced by ac_compile, and set linker
7932 # options accordingly.
7933 echo 'int i;' > conftest.$ac_ext
7934 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7935 (eval $ac_compile) 2>&5
7936 ac_status=$?
7937 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7938 test $ac_status = 0; }; then
7939 case `$FILECMD conftest.o` in
7940 *64-bit*)
7941 case $lt_cv_prog_gnu_ld in
7942 yes*)
7943 case $host in
7944 i?86-*-solaris*|x86_64-*-solaris*)
7945 LD="${LD-ld} -m elf_x86_64"
7946 ;;
7947 sparc*-*-solaris*)
7948 LD="${LD-ld} -m elf64_sparc"
7949 ;;
7950 esac
7951 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7952 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7953 LD=${LD-ld}_sol2
7954 fi
7955 ;;
7956 *)
7957 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7958 LD="${LD-ld} -64"
7959 fi
7960 ;;
7961 esac
7962 ;;
7963 esac
7964 fi
7965 rm -rf conftest*
7966 ;;
7967 esac
7968
7969 need_locks=$enable_libtool_lock
7970
7971 if test -n "$ac_tool_prefix"; then
7972 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7973 set dummy ${ac_tool_prefix}mt; ac_word=$2
7974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7975 printf %s "checking for $ac_word... " >&6; }
7976 if test ${ac_cv_prog_MANIFEST_TOOL+y}
7977 then :
7978 printf %s "(cached) " >&6
7979 else case e in #(
7980 e) if test -n "$MANIFEST_TOOL"; then
7981 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7982 else
7983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7984 for as_dir in $PATH
7985 do
7986 IFS=$as_save_IFS
7987 case $as_dir in #(((
7988 '') as_dir=./ ;;
7989 */) ;;
7990 *) as_dir=$as_dir/ ;;
7991 esac
7992 for ac_exec_ext in '' $ac_executable_extensions; do
7993 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7994 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7995 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7996 break 2
7997 fi
7998 done
7999 done
8000 IFS=$as_save_IFS
8001
8002 fi ;;
8003 esac
8004 fi
8005 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8006 if test -n "$MANIFEST_TOOL"; then
8007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8008 printf "%s\n" "$MANIFEST_TOOL" >&6; }
8009 else
8010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8011 printf "%s\n" "no" >&6; }
8012 fi
8013
8014
8015 fi
8016 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8017 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8018 # Extract the first word of "mt", so it can be a program name with args.
8019 set dummy mt; ac_word=$2
8020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8021 printf %s "checking for $ac_word... " >&6; }
8022 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8023 then :
8024 printf %s "(cached) " >&6
8025 else case e in #(
8026 e) if test -n "$ac_ct_MANIFEST_TOOL"; then
8027 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8028 else
8029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8030 for as_dir in $PATH
8031 do
8032 IFS=$as_save_IFS
8033 case $as_dir in #(((
8034 '') as_dir=./ ;;
8035 */) ;;
8036 *) as_dir=$as_dir/ ;;
8037 esac
8038 for ac_exec_ext in '' $ac_executable_extensions; do
8039 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8040 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8041 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8042 break 2
8043 fi
8044 done
8045 done
8046 IFS=$as_save_IFS
8047
8048 fi ;;
8049 esac
8050 fi
8051 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8052 if test -n "$ac_ct_MANIFEST_TOOL"; then
8053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8054 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
8055 else
8056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8057 printf "%s\n" "no" >&6; }
8058 fi
8059
8060 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8061 MANIFEST_TOOL=":"
8062 else
8063 case $cross_compiling:$ac_tool_warned in
8064 yes:)
8065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8066 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8067 ac_tool_warned=yes ;;
8068 esac
8069 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8070 fi
8071 else
8072 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8073 fi
8074
8075 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8077 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8078 if test ${lt_cv_path_manifest_tool+y}
8079 then :
8080 printf %s "(cached) " >&6
8081 else case e in #(
8082 e) lt_cv_path_manifest_tool=no
8083 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8084 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8085 cat conftest.err >&5
8086 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8087 lt_cv_path_manifest_tool=yes
8088 fi
8089 rm -f conftest* ;;
8090 esac
8091 fi
8092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5
8093 printf "%s\n" "$lt_cv_path_manifest_tool" >&6; }
8094 if test yes != "$lt_cv_path_manifest_tool"; then
8095 MANIFEST_TOOL=:
8096 fi
8097
8098
8099
8100
8101
8102
8103 case $host_os in
8104 rhapsody* | darwin*)
8105 if test -n "$ac_tool_prefix"; then
8106 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8107 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8109 printf %s "checking for $ac_word... " >&6; }
8110 if test ${ac_cv_prog_DSYMUTIL+y}
8111 then :
8112 printf %s "(cached) " >&6
8113 else case e in #(
8114 e) if test -n "$DSYMUTIL"; then
8115 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8116 else
8117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8118 for as_dir in $PATH
8119 do
8120 IFS=$as_save_IFS
8121 case $as_dir in #(((
8122 '') as_dir=./ ;;
8123 */) ;;
8124 *) as_dir=$as_dir/ ;;
8125 esac
8126 for ac_exec_ext in '' $ac_executable_extensions; do
8127 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8128 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8129 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8130 break 2
8131 fi
8132 done
8133 done
8134 IFS=$as_save_IFS
8135
8136 fi ;;
8137 esac
8138 fi
8139 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8140 if test -n "$DSYMUTIL"; then
8141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8142 printf "%s\n" "$DSYMUTIL" >&6; }
8143 else
8144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8145 printf "%s\n" "no" >&6; }
8146 fi
8147
8148
8149 fi
8150 if test -z "$ac_cv_prog_DSYMUTIL"; then
8151 ac_ct_DSYMUTIL=$DSYMUTIL
8152 # Extract the first word of "dsymutil", so it can be a program name with args.
8153 set dummy dsymutil; ac_word=$2
8154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8155 printf %s "checking for $ac_word... " >&6; }
8156 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8157 then :
8158 printf %s "(cached) " >&6
8159 else case e in #(
8160 e) if test -n "$ac_ct_DSYMUTIL"; then
8161 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8162 else
8163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8164 for as_dir in $PATH
8165 do
8166 IFS=$as_save_IFS
8167 case $as_dir in #(((
8168 '') as_dir=./ ;;
8169 */) ;;
8170 *) as_dir=$as_dir/ ;;
8171 esac
8172 for ac_exec_ext in '' $ac_executable_extensions; do
8173 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8174 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8175 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8176 break 2
8177 fi
8178 done
8179 done
8180 IFS=$as_save_IFS
8181
8182 fi ;;
8183 esac
8184 fi
8185 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8186 if test -n "$ac_ct_DSYMUTIL"; then
8187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8188 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8189 else
8190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8191 printf "%s\n" "no" >&6; }
8192 fi
8193
8194 if test "x$ac_ct_DSYMUTIL" = x; then
8195 DSYMUTIL=":"
8196 else
8197 case $cross_compiling:$ac_tool_warned in
8198 yes:)
8199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8200 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8201 ac_tool_warned=yes ;;
8202 esac
8203 DSYMUTIL=$ac_ct_DSYMUTIL
8204 fi
8205 else
8206 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8207 fi
8208
8209 if test -n "$ac_tool_prefix"; then
8210 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8211 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8213 printf %s "checking for $ac_word... " >&6; }
8214 if test ${ac_cv_prog_NMEDIT+y}
8215 then :
8216 printf %s "(cached) " >&6
8217 else case e in #(
8218 e) if test -n "$NMEDIT"; then
8219 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8220 else
8221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8222 for as_dir in $PATH
8223 do
8224 IFS=$as_save_IFS
8225 case $as_dir in #(((
8226 '') as_dir=./ ;;
8227 */) ;;
8228 *) as_dir=$as_dir/ ;;
8229 esac
8230 for ac_exec_ext in '' $ac_executable_extensions; do
8231 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8232 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8233 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8234 break 2
8235 fi
8236 done
8237 done
8238 IFS=$as_save_IFS
8239
8240 fi ;;
8241 esac
8242 fi
8243 NMEDIT=$ac_cv_prog_NMEDIT
8244 if test -n "$NMEDIT"; then
8245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8246 printf "%s\n" "$NMEDIT" >&6; }
8247 else
8248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8249 printf "%s\n" "no" >&6; }
8250 fi
8251
8252
8253 fi
8254 if test -z "$ac_cv_prog_NMEDIT"; then
8255 ac_ct_NMEDIT=$NMEDIT
8256 # Extract the first word of "nmedit", so it can be a program name with args.
8257 set dummy nmedit; ac_word=$2
8258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8259 printf %s "checking for $ac_word... " >&6; }
8260 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8261 then :
8262 printf %s "(cached) " >&6
8263 else case e in #(
8264 e) if test -n "$ac_ct_NMEDIT"; then
8265 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8266 else
8267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8268 for as_dir in $PATH
8269 do
8270 IFS=$as_save_IFS
8271 case $as_dir in #(((
8272 '') as_dir=./ ;;
8273 */) ;;
8274 *) as_dir=$as_dir/ ;;
8275 esac
8276 for ac_exec_ext in '' $ac_executable_extensions; do
8277 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8278 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8279 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8280 break 2
8281 fi
8282 done
8283 done
8284 IFS=$as_save_IFS
8285
8286 fi ;;
8287 esac
8288 fi
8289 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8290 if test -n "$ac_ct_NMEDIT"; then
8291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8292 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8293 else
8294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8295 printf "%s\n" "no" >&6; }
8296 fi
8297
8298 if test "x$ac_ct_NMEDIT" = x; then
8299 NMEDIT=":"
8300 else
8301 case $cross_compiling:$ac_tool_warned in
8302 yes:)
8303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8304 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8305 ac_tool_warned=yes ;;
8306 esac
8307 NMEDIT=$ac_ct_NMEDIT
8308 fi
8309 else
8310 NMEDIT="$ac_cv_prog_NMEDIT"
8311 fi
8312
8313 if test -n "$ac_tool_prefix"; then
8314 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8315 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8317 printf %s "checking for $ac_word... " >&6; }
8318 if test ${ac_cv_prog_LIPO+y}
8319 then :
8320 printf %s "(cached) " >&6
8321 else case e in #(
8322 e) if test -n "$LIPO"; then
8323 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8324 else
8325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8326 for as_dir in $PATH
8327 do
8328 IFS=$as_save_IFS
8329 case $as_dir in #(((
8330 '') as_dir=./ ;;
8331 */) ;;
8332 *) as_dir=$as_dir/ ;;
8333 esac
8334 for ac_exec_ext in '' $ac_executable_extensions; do
8335 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8336 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8337 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8338 break 2
8339 fi
8340 done
8341 done
8342 IFS=$as_save_IFS
8343
8344 fi ;;
8345 esac
8346 fi
8347 LIPO=$ac_cv_prog_LIPO
8348 if test -n "$LIPO"; then
8349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8350 printf "%s\n" "$LIPO" >&6; }
8351 else
8352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8353 printf "%s\n" "no" >&6; }
8354 fi
8355
8356
8357 fi
8358 if test -z "$ac_cv_prog_LIPO"; then
8359 ac_ct_LIPO=$LIPO
8360 # Extract the first word of "lipo", so it can be a program name with args.
8361 set dummy lipo; ac_word=$2
8362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8363 printf %s "checking for $ac_word... " >&6; }
8364 if test ${ac_cv_prog_ac_ct_LIPO+y}
8365 then :
8366 printf %s "(cached) " >&6
8367 else case e in #(
8368 e) if test -n "$ac_ct_LIPO"; then
8369 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8370 else
8371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8372 for as_dir in $PATH
8373 do
8374 IFS=$as_save_IFS
8375 case $as_dir in #(((
8376 '') as_dir=./ ;;
8377 */) ;;
8378 *) as_dir=$as_dir/ ;;
8379 esac
8380 for ac_exec_ext in '' $ac_executable_extensions; do
8381 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8382 ac_cv_prog_ac_ct_LIPO="lipo"
8383 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8384 break 2
8385 fi
8386 done
8387 done
8388 IFS=$as_save_IFS
8389
8390 fi ;;
8391 esac
8392 fi
8393 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8394 if test -n "$ac_ct_LIPO"; then
8395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8396 printf "%s\n" "$ac_ct_LIPO" >&6; }
8397 else
8398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8399 printf "%s\n" "no" >&6; }
8400 fi
8401
8402 if test "x$ac_ct_LIPO" = x; then
8403 LIPO=":"
8404 else
8405 case $cross_compiling:$ac_tool_warned in
8406 yes:)
8407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8408 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8409 ac_tool_warned=yes ;;
8410 esac
8411 LIPO=$ac_ct_LIPO
8412 fi
8413 else
8414 LIPO="$ac_cv_prog_LIPO"
8415 fi
8416
8417 if test -n "$ac_tool_prefix"; then
8418 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8419 set dummy ${ac_tool_prefix}otool; ac_word=$2
8420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8421 printf %s "checking for $ac_word... " >&6; }
8422 if test ${ac_cv_prog_OTOOL+y}
8423 then :
8424 printf %s "(cached) " >&6
8425 else case e in #(
8426 e) if test -n "$OTOOL"; then
8427 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8428 else
8429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8430 for as_dir in $PATH
8431 do
8432 IFS=$as_save_IFS
8433 case $as_dir in #(((
8434 '') as_dir=./ ;;
8435 */) ;;
8436 *) as_dir=$as_dir/ ;;
8437 esac
8438 for ac_exec_ext in '' $ac_executable_extensions; do
8439 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8440 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8441 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8442 break 2
8443 fi
8444 done
8445 done
8446 IFS=$as_save_IFS
8447
8448 fi ;;
8449 esac
8450 fi
8451 OTOOL=$ac_cv_prog_OTOOL
8452 if test -n "$OTOOL"; then
8453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8454 printf "%s\n" "$OTOOL" >&6; }
8455 else
8456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8457 printf "%s\n" "no" >&6; }
8458 fi
8459
8460
8461 fi
8462 if test -z "$ac_cv_prog_OTOOL"; then
8463 ac_ct_OTOOL=$OTOOL
8464 # Extract the first word of "otool", so it can be a program name with args.
8465 set dummy otool; ac_word=$2
8466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8467 printf %s "checking for $ac_word... " >&6; }
8468 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8469 then :
8470 printf %s "(cached) " >&6
8471 else case e in #(
8472 e) if test -n "$ac_ct_OTOOL"; then
8473 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8474 else
8475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8476 for as_dir in $PATH
8477 do
8478 IFS=$as_save_IFS
8479 case $as_dir in #(((
8480 '') as_dir=./ ;;
8481 */) ;;
8482 *) as_dir=$as_dir/ ;;
8483 esac
8484 for ac_exec_ext in '' $ac_executable_extensions; do
8485 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8486 ac_cv_prog_ac_ct_OTOOL="otool"
8487 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8488 break 2
8489 fi
8490 done
8491 done
8492 IFS=$as_save_IFS
8493
8494 fi ;;
8495 esac
8496 fi
8497 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8498 if test -n "$ac_ct_OTOOL"; then
8499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8500 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8501 else
8502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8503 printf "%s\n" "no" >&6; }
8504 fi
8505
8506 if test "x$ac_ct_OTOOL" = x; then
8507 OTOOL=":"
8508 else
8509 case $cross_compiling:$ac_tool_warned in
8510 yes:)
8511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8512 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8513 ac_tool_warned=yes ;;
8514 esac
8515 OTOOL=$ac_ct_OTOOL
8516 fi
8517 else
8518 OTOOL="$ac_cv_prog_OTOOL"
8519 fi
8520
8521 if test -n "$ac_tool_prefix"; then
8522 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8523 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8525 printf %s "checking for $ac_word... " >&6; }
8526 if test ${ac_cv_prog_OTOOL64+y}
8527 then :
8528 printf %s "(cached) " >&6
8529 else case e in #(
8530 e) if test -n "$OTOOL64"; then
8531 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8532 else
8533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8534 for as_dir in $PATH
8535 do
8536 IFS=$as_save_IFS
8537 case $as_dir in #(((
8538 '') as_dir=./ ;;
8539 */) ;;
8540 *) as_dir=$as_dir/ ;;
8541 esac
8542 for ac_exec_ext in '' $ac_executable_extensions; do
8543 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8544 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8545 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8546 break 2
8547 fi
8548 done
8549 done
8550 IFS=$as_save_IFS
8551
8552 fi ;;
8553 esac
8554 fi
8555 OTOOL64=$ac_cv_prog_OTOOL64
8556 if test -n "$OTOOL64"; then
8557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8558 printf "%s\n" "$OTOOL64" >&6; }
8559 else
8560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8561 printf "%s\n" "no" >&6; }
8562 fi
8563
8564
8565 fi
8566 if test -z "$ac_cv_prog_OTOOL64"; then
8567 ac_ct_OTOOL64=$OTOOL64
8568 # Extract the first word of "otool64", so it can be a program name with args.
8569 set dummy otool64; ac_word=$2
8570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8571 printf %s "checking for $ac_word... " >&6; }
8572 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8573 then :
8574 printf %s "(cached) " >&6
8575 else case e in #(
8576 e) if test -n "$ac_ct_OTOOL64"; then
8577 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8578 else
8579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8580 for as_dir in $PATH
8581 do
8582 IFS=$as_save_IFS
8583 case $as_dir in #(((
8584 '') as_dir=./ ;;
8585 */) ;;
8586 *) as_dir=$as_dir/ ;;
8587 esac
8588 for ac_exec_ext in '' $ac_executable_extensions; do
8589 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8590 ac_cv_prog_ac_ct_OTOOL64="otool64"
8591 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8592 break 2
8593 fi
8594 done
8595 done
8596 IFS=$as_save_IFS
8597
8598 fi ;;
8599 esac
8600 fi
8601 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8602 if test -n "$ac_ct_OTOOL64"; then
8603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8604 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8605 else
8606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8607 printf "%s\n" "no" >&6; }
8608 fi
8609
8610 if test "x$ac_ct_OTOOL64" = x; then
8611 OTOOL64=":"
8612 else
8613 case $cross_compiling:$ac_tool_warned in
8614 yes:)
8615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8616 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8617 ac_tool_warned=yes ;;
8618 esac
8619 OTOOL64=$ac_ct_OTOOL64
8620 fi
8621 else
8622 OTOOL64="$ac_cv_prog_OTOOL64"
8623 fi
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8652 printf %s "checking for -single_module linker flag... " >&6; }
8653 if test ${lt_cv_apple_cc_single_mod+y}
8654 then :
8655 printf %s "(cached) " >&6
8656 else case e in #(
8657 e) lt_cv_apple_cc_single_mod=no
8658 if test -z "$LT_MULTI_MODULE"; then
8659 # By default we will add the -single_module flag. You can override
8660 # by either setting the environment variable LT_MULTI_MODULE
8661 # non-empty at configure time, or by adding -multi_module to the
8662 # link flags.
8663 rm -rf libconftest.dylib*
8664 echo "int foo(void){return 1;}" > conftest.c
8665 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8666 -dynamiclib -Wl,-single_module conftest.c" >&5
8667 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8668 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8669 _lt_result=$?
8670 # If there is a non-empty error log, and "single_module"
8671 # appears in it, assume the flag caused a linker warning
8672 if test -s conftest.err && $GREP single_module conftest.err; then
8673 cat conftest.err >&5
8674 # Otherwise, if the output was created with a 0 exit code from
8675 # the compiler, it worked.
8676 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8677 lt_cv_apple_cc_single_mod=yes
8678 else
8679 cat conftest.err >&5
8680 fi
8681 rm -rf libconftest.dylib*
8682 rm -f conftest.*
8683 fi ;;
8684 esac
8685 fi
8686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8687 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8688
8689 # Feature test to disable chained fixups since it is not
8690 # compatible with '-undefined dynamic_lookup'
8691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
8692 printf %s "checking for -no_fixup_chains linker flag... " >&6; }
8693 if test ${lt_cv_support_no_fixup_chains+y}
8694 then :
8695 printf %s "(cached) " >&6
8696 else case e in #(
8697 e) save_LDFLAGS=$LDFLAGS
8698 LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
8699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8700 /* end confdefs.h. */
8701
8702 int
8703 main (void)
8704 {
8705
8706 ;
8707 return 0;
8708 }
8709 _ACEOF
8710 if ac_fn_c_try_link "$LINENO"
8711 then :
8712 lt_cv_support_no_fixup_chains=yes
8713 else case e in #(
8714 e) lt_cv_support_no_fixup_chains=no
8715 ;;
8716 esac
8717 fi
8718 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8719 conftest$ac_exeext conftest.$ac_ext
8720 LDFLAGS=$save_LDFLAGS
8721
8722 ;;
8723 esac
8724 fi
8725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
8726 printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; }
8727
8728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8729 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8730 if test ${lt_cv_ld_exported_symbols_list+y}
8731 then :
8732 printf %s "(cached) " >&6
8733 else case e in #(
8734 e) lt_cv_ld_exported_symbols_list=no
8735 save_LDFLAGS=$LDFLAGS
8736 echo "_main" > conftest.sym
8737 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8739 /* end confdefs.h. */
8740
8741 int
8742 main (void)
8743 {
8744
8745 ;
8746 return 0;
8747 }
8748 _ACEOF
8749 if ac_fn_c_try_link "$LINENO"
8750 then :
8751 lt_cv_ld_exported_symbols_list=yes
8752 else case e in #(
8753 e) lt_cv_ld_exported_symbols_list=no ;;
8754 esac
8755 fi
8756 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8757 conftest$ac_exeext conftest.$ac_ext
8758 LDFLAGS=$save_LDFLAGS
8759 ;;
8760 esac
8761 fi
8762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8763 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8764
8765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8766 printf %s "checking for -force_load linker flag... " >&6; }
8767 if test ${lt_cv_ld_force_load+y}
8768 then :
8769 printf %s "(cached) " >&6
8770 else case e in #(
8771 e) lt_cv_ld_force_load=no
8772 cat > conftest.c << _LT_EOF
8773 int forced_loaded() { return 2;}
8774 _LT_EOF
8775 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8776 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8777 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8778 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8779 echo "$RANLIB libconftest.a" >&5
8780 $RANLIB libconftest.a 2>&5
8781 cat > conftest.c << _LT_EOF
8782 int main(void) { return 0;}
8783 _LT_EOF
8784 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8785 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8786 _lt_result=$?
8787 if test -s conftest.err && $GREP force_load conftest.err; then
8788 cat conftest.err >&5
8789 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8790 lt_cv_ld_force_load=yes
8791 else
8792 cat conftest.err >&5
8793 fi
8794 rm -f conftest.err libconftest.a conftest conftest.c
8795 rm -rf conftest.dSYM
8796 ;;
8797 esac
8798 fi
8799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8800 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8801 case $host_os in
8802 rhapsody* | darwin1.[012])
8803 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8804 darwin1.*)
8805 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8806 darwin*)
8807 case $MACOSX_DEPLOYMENT_TARGET,$host in
8808 10.[012],*|,*powerpc*-darwin[5-8]*)
8809 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8810 *)
8811 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
8812 if test yes = "$lt_cv_support_no_fixup_chains"; then
8813 as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'
8814 fi
8815 ;;
8816 esac
8817 ;;
8818 esac
8819 if test yes = "$lt_cv_apple_cc_single_mod"; then
8820 _lt_dar_single_mod='$single_module'
8821 fi
8822 _lt_dar_needs_single_mod=no
8823 case $host_os in
8824 rhapsody* | darwin1.*)
8825 _lt_dar_needs_single_mod=yes ;;
8826 darwin*)
8827 # When targeting Mac OS X 10.4 (darwin 8) or later,
8828 # -single_module is the default and -multi_module is unsupported.
8829 # The toolchain on macOS 10.14 (darwin 18) and later cannot
8830 # target any OS version that needs -single_module.
8831 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8832 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*)
8833 _lt_dar_needs_single_mod=yes ;;
8834 esac
8835 ;;
8836 esac
8837 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8838 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8839 else
8840 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8841 fi
8842 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8843 _lt_dsymutil='~$DSYMUTIL $lib || :'
8844 else
8845 _lt_dsymutil=
8846 fi
8847 ;;
8848 esac
8849
8850 # func_munge_path_list VARIABLE PATH
8851 # -----------------------------------
8852 # VARIABLE is name of variable containing _space_ separated list of
8853 # directories to be munged by the contents of PATH, which is string
8854 # having a format:
8855 # "DIR[:DIR]:"
8856 # string "DIR[ DIR]" will be prepended to VARIABLE
8857 # ":DIR[:DIR]"
8858 # string "DIR[ DIR]" will be appended to VARIABLE
8859 # "DIRP[:DIRP]::[DIRA:]DIRA"
8860 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8861 # "DIRA[ DIRA]" will be appended to VARIABLE
8862 # "DIR[:DIR]"
8863 # VARIABLE will be replaced by "DIR[ DIR]"
8864 func_munge_path_list ()
8865 {
8866 case x$2 in
8867 x)
8868 ;;
8869 *:)
8870 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8871 ;;
8872 x:*)
8873 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8874 ;;
8875 *::*)
8876 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8877 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8878 ;;
8879 *)
8880 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8881 ;;
8882 esac
8883 }
8884
8885 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8886 "
8887 if test "x$ac_cv_header_dlfcn_h" = xyes
8888 then :
8889 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8890
8891 fi
8892
8893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
8894 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
8895 if test ${ac_cv_c_undeclared_builtin_options+y}
8896 then :
8897 printf %s "(cached) " >&6
8898 else case e in #(
8899 e) ac_save_CFLAGS=$CFLAGS
8900 ac_cv_c_undeclared_builtin_options='cannot detect'
8901 for ac_arg in '' -fno-builtin; do
8902 CFLAGS="$ac_save_CFLAGS $ac_arg"
8903 # This test program should *not* compile successfully.
8904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8905 /* end confdefs.h. */
8906
8907 int
8908 main (void)
8909 {
8910 (void) strchr;
8911 ;
8912 return 0;
8913 }
8914 _ACEOF
8915 if ac_fn_c_try_compile "$LINENO"
8916 then :
8917
8918 else case e in #(
8919 e) # This test program should compile successfully.
8920 # No library function is consistently available on
8921 # freestanding implementations, so test against a dummy
8922 # declaration. Include always-available headers on the
8923 # off chance that they somehow elicit warnings.
8924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8925 /* end confdefs.h. */
8926 #include <float.h>
8927 #include <limits.h>
8928 #include <stdarg.h>
8929 #include <stddef.h>
8930 extern void ac_decl (int, char *);
8931
8932 int
8933 main (void)
8934 {
8935 (void) ac_decl (0, (char *) 0);
8936 (void) ac_decl;
8937
8938 ;
8939 return 0;
8940 }
8941 _ACEOF
8942 if ac_fn_c_try_compile "$LINENO"
8943 then :
8944 if test x"$ac_arg" = x
8945 then :
8946 ac_cv_c_undeclared_builtin_options='none needed'
8947 else case e in #(
8948 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
8949 esac
8950 fi
8951 break
8952 fi
8953 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8954 esac
8955 fi
8956 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8957 done
8958 CFLAGS=$ac_save_CFLAGS
8959 ;;
8960 esac
8961 fi
8962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
8963 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
8964 case $ac_cv_c_undeclared_builtin_options in #(
8965 'cannot detect') :
8966 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
8967 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
8968 as_fn_error $? "cannot make $CC report undeclared builtins
8969 See 'config.log' for more details" "$LINENO" 5; } ;; #(
8970 'none needed') :
8971 ac_c_undeclared_builtin_options='' ;; #(
8972 *) :
8973 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
8974 esac
8975
8976 echo 'tldbg:KPSE_COMMON called (pkg=ps2pkm, amopt=no-define)' >&5
8977 echo 'tldbg:KPSE_BASIC called (pkg=ps2pkm, amopt=no-define)' >&5
8978
8979 #
8980 # am_init_automake
8981 if test "`cd $srcdir && pwd`" != "`pwd`"; then
8982 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
8983 # is not polluted with repeated "-I."
8984 am__isrc=' -I$(srcdir)'
8985 # test to see if srcdir already configured
8986 if test -f $srcdir/config.status; then
8987 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
8988 fi
8989 fi
8990
8991 # test whether we have cygpath
8992 if test -z "$CYGPATH_W"; then
8993 if (cygpath --version) >/dev/null 2>/dev/null; then
8994 CYGPATH_W='cygpath -w'
8995 else
8996 CYGPATH_W=echo
8997 fi
8998 fi
8999
9000
9001 # Define the identity of the package.
9002 PACKAGE='ps2pkm--tex-live-'
9003 VERSION='1.8'
9004
9005
9006 # Some tools Automake needs.
9007
9008 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
9009
9010
9011 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
9012
9013
9014 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
9015
9016
9017 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
9018
9019
9020 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
9021
9022 # For better backward compatibility. To be removed once Automake 1.9.x
9023 # dies out for good. For more background, see:
9024 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
9025 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
9026 mkdir_p='$(MKDIR_P)'
9027
9028 # We need awk for the "check" target (and possibly the TAP driver). The
9029 # system "awk" is bad on some platforms.
9030 # Always define AMTAR for backward compatibility. Yes, it's still used
9031 # in the wild :-( We should find a proper way to deprecate it ...
9032 AMTAR='$${TAR-tar}'
9033
9034
9035 # We'll loop over all known methods to create a tar archive until one works.
9036 _am_tools='gnutar plaintar pax cpio none'
9037
9038 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
9039 # There is notably a 21 bits limit for the UID and the GID. In fact,
9040 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
9041 # and bug#13588).
9042 am_max_uid=2097151 # 2^21 - 1
9043 am_max_gid=$am_max_uid
9044 # The $UID and $GID variables are not portable, so we need to resort
9045 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
9046 # below are definitely unexpected, so allow the users to see them
9047 # (that is, avoid stderr redirection).
9048 am_uid=`id -u || echo unknown`
9049 am_gid=`id -g || echo unknown`
9050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
9051 printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
9052 if test x$am_uid = xunknown; then
9053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&5
9054 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&2;}
9055 elif test $am_uid -le $am_max_uid; then
9056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9057 printf "%s\n" "yes" >&6; }
9058 else
9059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9060 printf "%s\n" "no" >&6; }
9061 _am_tools=none
9062 fi
9063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
9064 printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
9065 if test x$gm_gid = xunknown; then
9066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&5
9067 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&2;}
9068 elif test $am_gid -le $am_max_gid; then
9069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9070 printf "%s\n" "yes" >&6; }
9071 else
9072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9073 printf "%s\n" "no" >&6; }
9074 _am_tools=none
9075 fi
9076
9077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
9078 printf %s "checking how to create a ustar tar archive... " >&6; }
9079
9080 # Go ahead even if we have the value already cached. We do so because we
9081 # need to set the values for the 'am__tar' and 'am__untar' variables.
9082 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
9083
9084 for _am_tool in $_am_tools; do
9085 case $_am_tool in
9086 gnutar)
9087 for _am_tar in tar gnutar gtar; do
9088 { echo "$as_me:$LINENO: $_am_tar --version" >&5
9089 ($_am_tar --version) >&5 2>&5
9090 ac_status=$?
9091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9092 (exit $ac_status); } && break
9093 done
9094 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
9095 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
9096 am__untar="$_am_tar -xf -"
9097 ;;
9098 plaintar)
9099 # Must skip GNU tar: if it does not support --format= it doesn't create
9100 # ustar tarball either.
9101 (tar --version) >/dev/null 2>&1 && continue
9102 am__tar='tar chf - "$$tardir"'
9103 am__tar_='tar chf - "$tardir"'
9104 am__untar='tar xf -'
9105 ;;
9106 pax)
9107 am__tar='pax -L -x ustar -w "$$tardir"'
9108 am__tar_='pax -L -x ustar -w "$tardir"'
9109 am__untar='pax -r'
9110 ;;
9111 cpio)
9112 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
9113 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
9114 am__untar='cpio -i -H ustar -d'
9115 ;;
9116 none)
9117 am__tar=false
9118 am__tar_=false
9119 am__untar=false
9120 ;;
9121 esac
9122
9123 # If the value was cached, stop now. We just wanted to have am__tar
9124 # and am__untar set.
9125 test -n "${am_cv_prog_tar_ustar}" && break
9126
9127 # tar/untar a dummy directory, and stop if the command works.
9128 rm -rf conftest.dir
9129 mkdir conftest.dir
9130 echo GrepMe > conftest.dir/file
9131 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
9132 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
9133 ac_status=$?
9134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9135 (exit $ac_status); }
9136 rm -rf conftest.dir
9137 if test -s conftest.tar; then
9138 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
9139 ($am__untar <conftest.tar) >&5 2>&5
9140 ac_status=$?
9141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9142 (exit $ac_status); }
9143 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
9144 (cat conftest.dir/file) >&5 2>&5
9145 ac_status=$?
9146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9147 (exit $ac_status); }
9148 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
9149 fi
9150 done
9151 rm -rf conftest.dir
9152
9153 if test ${am_cv_prog_tar_ustar+y}
9154 then :
9155 printf %s "(cached) " >&6
9156 else case e in #(
9157 e) am_cv_prog_tar_ustar=$_am_tool ;;
9158 esac
9159 fi
9160
9161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
9162 printf "%s\n" "$am_cv_prog_tar_ustar" >&6; }
9163
9164
9165
9166
9167
9168 # Variables for tags utilities; see am/tags.am
9169 if test -z "$CTAGS"; then
9170 CTAGS=ctags
9171 fi
9172
9173 if test -z "$ETAGS"; then
9174 ETAGS=etags
9175 fi
9176
9177 if test -z "$CSCOPE"; then
9178 CSCOPE=cscope
9179 fi
9180
9181
9182
9183
9184
9185
9186
9187
9188 # am_maintainer_mode
9189
9190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
9191 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
9192 # Check whether --enable-maintainer-mode was given.
9193 if test ${enable_maintainer_mode+y}
9194 then :
9195 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
9196 else case e in #(
9197 e) USE_MAINTAINER_MODE=no ;;
9198 esac
9199 fi
9200
9201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
9202 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
9203 if test $USE_MAINTAINER_MODE = yes; then
9204 MAINTAINER_MODE_TRUE=
9205 MAINTAINER_MODE_FALSE='#'
9206 else
9207 MAINTAINER_MODE_TRUE='#'
9208 MAINTAINER_MODE_FALSE=
9209 fi
9210
9211 MAINT=$MAINTAINER_MODE_TRUE
9212
9213
9214
9215 # See comments in kpse-setup.m4 about system extensions.
9216
9217
9218 # Check whether prototypes work.
9219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts prototypes" >&5
9220 printf %s "checking whether the compiler accepts prototypes... " >&6; }
9221 if test ${kb_cv_c_prototypes+y}
9222 then :
9223 printf %s "(cached) " >&6
9224 else case e in #(
9225 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9226 /* end confdefs.h. */
9227 #include <stdarg.h>
9228 int
9229 main (void)
9230 {
9231 extern void foo(int i,...);
9232 ;
9233 return 0;
9234 }
9235 _ACEOF
9236 if ac_fn_c_try_link "$LINENO"
9237 then :
9238 kb_cv_c_prototypes=yes
9239 else case e in #(
9240 e) kb_cv_c_prototypes=no ;;
9241 esac
9242 fi
9243 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9244 conftest$ac_exeext conftest.$ac_ext ;;
9245 esac
9246 fi
9247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kb_cv_c_prototypes" >&5
9248 printf "%s\n" "$kb_cv_c_prototypes" >&6; }
9249 if test "x$kb_cv_c_prototypes" = xno; then
9250 as_fn_error $? "Sorry, your compiler does not understand prototypes." "$LINENO" 5
9251 fi
9252
9253 # kpse_compiler_warnings options.
9254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking what warning flags to pass to the C compiler" >&5
9255 printf %s "checking what warning flags to pass to the C compiler... " >&6; }
9256 if test ${kpse_cv_warning_cflags+y}
9257 then :
9258 printf %s "(cached) " >&6
9259 else case e in #(
9260 e) if test "x$GCC" = xyes; then
9261 kpse_cv_warning_cflags=
9262 if test "x$enable_compiler_warnings" != xno; then
9263 kpse_cv_warning_cflags="-Wimplicit -Wreturn-type"
9264 case `$CC -dumpversion` in #(
9265 3.4.* | 4.* | 5.*) :
9266 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wdeclaration-after-statement" ;; #(
9267 *) :
9268 ;;
9269 esac
9270 case `$CC -dumpversion` in #(
9271 3.[234].* | 4.* | 5.*) :
9272 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wno-unknown-pragmas" ;; #(
9273 *) :
9274 ;;
9275 esac
9276 if test "x$enable_compiler_warnings" != xmin; then
9277 kpse_cv_warning_cflags="-Wall -Wunused $kpse_cv_warning_cflags"
9278 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wmissing-prototypes -Wmissing-declarations"
9279 if test "x$enable_compiler_warnings" != xyes; then
9280 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wparentheses -Wswitch -Wtrigraphs -Wpointer-arith"
9281 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wcast-qual -Wcast-align -Wwrite-strings"
9282 case `$CC -dumpversion` in #(
9283 3.4.* | 4.* | 5.*) :
9284 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wold-style-definition" ;; #(
9285 *) :
9286 ;;
9287 esac
9288 if test "x$enable_compiler_warnings" != xmax; then
9289 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wshadow"
9290 fi
9291 fi
9292 fi
9293 fi
9294 elif test "x$enable_compiler_warnings" = xno; then
9295 kpse_cv_warning_cflags=
9296 else
9297 kpse_cv_warning_cflags= # FIXME: warning flags for non-GNU C compilers
9298 fi ;;
9299 esac
9300 fi
9301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_warning_cflags" >&5
9302 printf "%s\n" "$kpse_cv_warning_cflags" >&6; }
9303 WARNING_CFLAGS=$kpse_cv_warning_cflags
9304
9305
9306
9307
9308
9309
9310
9311 # end of kpse_basic macro.
9312 echo 'tldbg:KPSE_BASIC done (pkg=ps2pkm, amopt=no-define)' >&5
9313
9314 # am_prog_ar must be called before lt_init.
9315
9316 if test -n "$ac_tool_prefix"; then
9317 for ac_prog in ar lib "link -lib"
9318 do
9319 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9320 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9322 printf %s "checking for $ac_word... " >&6; }
9323 if test ${ac_cv_prog_AR+y}
9324 then :
9325 printf %s "(cached) " >&6
9326 else case e in #(
9327 e) if test -n "$AR"; then
9328 ac_cv_prog_AR="$AR" # Let the user override the test.
9329 else
9330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9331 for as_dir in $PATH
9332 do
9333 IFS=$as_save_IFS
9334 case $as_dir in #(((
9335 '') as_dir=./ ;;
9336 */) ;;
9337 *) as_dir=$as_dir/ ;;
9338 esac
9339 for ac_exec_ext in '' $ac_executable_extensions; do
9340 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9341 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
9342 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9343 break 2
9344 fi
9345 done
9346 done
9347 IFS=$as_save_IFS
9348
9349 fi ;;
9350 esac
9351 fi
9352 AR=$ac_cv_prog_AR
9353 if test -n "$AR"; then
9354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9355 printf "%s\n" "$AR" >&6; }
9356 else
9357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9358 printf "%s\n" "no" >&6; }
9359 fi
9360
9361
9362 test -n "$AR" && break
9363 done
9364 fi
9365 if test -z "$AR"; then
9366 ac_ct_AR=$AR
9367 for ac_prog in ar lib "link -lib"
9368 do
9369 # Extract the first word of "$ac_prog", so it can be a program name with args.
9370 set dummy $ac_prog; ac_word=$2
9371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9372 printf %s "checking for $ac_word... " >&6; }
9373 if test ${ac_cv_prog_ac_ct_AR+y}
9374 then :
9375 printf %s "(cached) " >&6
9376 else case e in #(
9377 e) if test -n "$ac_ct_AR"; then
9378 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9379 else
9380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9381 for as_dir in $PATH
9382 do
9383 IFS=$as_save_IFS
9384 case $as_dir in #(((
9385 '') as_dir=./ ;;
9386 */) ;;
9387 *) as_dir=$as_dir/ ;;
9388 esac
9389 for ac_exec_ext in '' $ac_executable_extensions; do
9390 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9391 ac_cv_prog_ac_ct_AR="$ac_prog"
9392 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9393 break 2
9394 fi
9395 done
9396 done
9397 IFS=$as_save_IFS
9398
9399 fi ;;
9400 esac
9401 fi
9402 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9403 if test -n "$ac_ct_AR"; then
9404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9405 printf "%s\n" "$ac_ct_AR" >&6; }
9406 else
9407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9408 printf "%s\n" "no" >&6; }
9409 fi
9410
9411
9412 test -n "$ac_ct_AR" && break
9413 done
9414
9415 if test "x$ac_ct_AR" = x; then
9416 AR="false"
9417 else
9418 case $cross_compiling:$ac_tool_warned in
9419 yes:)
9420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9421 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9422 ac_tool_warned=yes ;;
9423 esac
9424 AR=$ac_ct_AR
9425 fi
9426 fi
9427
9428 : ${AR=ar}
9429 : ${ARFLAGS=cr}
9430
9431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
9432 printf %s "checking the archiver ($AR) interface... " >&6; }
9433 if test ${am_cv_ar_interface+y}
9434 then :
9435 printf %s "(cached) " >&6
9436 else case e in #(
9437 e) ac_ext=c
9438 ac_cpp='$CPP $CPPFLAGS'
9439 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9440 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9441 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9442
9443 am_cv_ar_interface=ar
9444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9445 /* end confdefs.h. */
9446 int some_variable = 0;
9447 _ACEOF
9448 if ac_fn_c_try_compile "$LINENO"
9449 then :
9450 am_ar_try='$AR $ARFLAGS libconftest.a conftest.$ac_objext >&5'
9451 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
9452 (eval $am_ar_try) 2>&5
9453 ac_status=$?
9454 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9455 test $ac_status = 0; }
9456 if test "$ac_status" -eq 0; then
9457 am_cv_ar_interface=ar
9458 else
9459 am_ar_try='$AR -NOLOGO -OUT:conftest.lib 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=lib
9467 else
9468 am_cv_ar_interface=unknown
9469 fi
9470 fi
9471 rm -f conftest.lib libconftest.a
9472
9473 fi
9474 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9475 ac_ext=c
9476 ac_cpp='$CPP $CPPFLAGS'
9477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9480 ;;
9481 esac
9482 fi
9483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
9484 printf "%s\n" "$am_cv_ar_interface" >&6; }
9485
9486 case $am_cv_ar_interface in
9487 ar)
9488 ;;
9489 lib)
9490 # Microsoft lib, so override with the ar-lib wrapper script.
9491 # FIXME: It is wrong to rewrite AR.
9492 # But if we don't then we get into trouble of one sort or another.
9493 # A longer-term fix would be to have automake use am__AR in this case,
9494 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
9495 # similar.
9496 AR="$am_aux_dir/ar-lib $AR"
9497 ;;
9498 unknown)
9499 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
9500 ;;
9501 esac
9502
9503 # (end am_prog_ar)
9504 # starting lt_prereq + lt_init.
9505
9506
9507
9508
9509
9510 # Set options
9511 enable_win32_dll=yes
9512
9513 case $host in
9514 *-*-cygwin* | *-*-mingw* | *-*-windows* | *-*-pw32* | *-*-cegcc*)
9515 if test -n "$ac_tool_prefix"; then
9516 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
9517 set dummy ${ac_tool_prefix}as; ac_word=$2
9518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9519 printf %s "checking for $ac_word... " >&6; }
9520 if test ${ac_cv_prog_AS+y}
9521 then :
9522 printf %s "(cached) " >&6
9523 else case e in #(
9524 e) if test -n "$AS"; then
9525 ac_cv_prog_AS="$AS" # Let the user override the test.
9526 else
9527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9528 for as_dir in $PATH
9529 do
9530 IFS=$as_save_IFS
9531 case $as_dir in #(((
9532 '') as_dir=./ ;;
9533 */) ;;
9534 *) as_dir=$as_dir/ ;;
9535 esac
9536 for ac_exec_ext in '' $ac_executable_extensions; do
9537 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9538 ac_cv_prog_AS="${ac_tool_prefix}as"
9539 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9540 break 2
9541 fi
9542 done
9543 done
9544 IFS=$as_save_IFS
9545
9546 fi ;;
9547 esac
9548 fi
9549 AS=$ac_cv_prog_AS
9550 if test -n "$AS"; then
9551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
9552 printf "%s\n" "$AS" >&6; }
9553 else
9554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9555 printf "%s\n" "no" >&6; }
9556 fi
9557
9558
9559 fi
9560 if test -z "$ac_cv_prog_AS"; then
9561 ac_ct_AS=$AS
9562 # Extract the first word of "as", so it can be a program name with args.
9563 set dummy as; ac_word=$2
9564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9565 printf %s "checking for $ac_word... " >&6; }
9566 if test ${ac_cv_prog_ac_ct_AS+y}
9567 then :
9568 printf %s "(cached) " >&6
9569 else case e in #(
9570 e) if test -n "$ac_ct_AS"; then
9571 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
9572 else
9573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9574 for as_dir in $PATH
9575 do
9576 IFS=$as_save_IFS
9577 case $as_dir in #(((
9578 '') as_dir=./ ;;
9579 */) ;;
9580 *) as_dir=$as_dir/ ;;
9581 esac
9582 for ac_exec_ext in '' $ac_executable_extensions; do
9583 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9584 ac_cv_prog_ac_ct_AS="as"
9585 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9586 break 2
9587 fi
9588 done
9589 done
9590 IFS=$as_save_IFS
9591
9592 fi ;;
9593 esac
9594 fi
9595 ac_ct_AS=$ac_cv_prog_ac_ct_AS
9596 if test -n "$ac_ct_AS"; then
9597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
9598 printf "%s\n" "$ac_ct_AS" >&6; }
9599 else
9600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9601 printf "%s\n" "no" >&6; }
9602 fi
9603
9604 if test "x$ac_ct_AS" = x; then
9605 AS="false"
9606 else
9607 case $cross_compiling:$ac_tool_warned in
9608 yes:)
9609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9610 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9611 ac_tool_warned=yes ;;
9612 esac
9613 AS=$ac_ct_AS
9614 fi
9615 else
9616 AS="$ac_cv_prog_AS"
9617 fi
9618
9619 if test -n "$ac_tool_prefix"; then
9620 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9621 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9623 printf %s "checking for $ac_word... " >&6; }
9624 if test ${ac_cv_prog_DLLTOOL+y}
9625 then :
9626 printf %s "(cached) " >&6
9627 else case e in #(
9628 e) if test -n "$DLLTOOL"; then
9629 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9630 else
9631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9632 for as_dir in $PATH
9633 do
9634 IFS=$as_save_IFS
9635 case $as_dir in #(((
9636 '') as_dir=./ ;;
9637 */) ;;
9638 *) as_dir=$as_dir/ ;;
9639 esac
9640 for ac_exec_ext in '' $ac_executable_extensions; do
9641 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9642 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9643 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9644 break 2
9645 fi
9646 done
9647 done
9648 IFS=$as_save_IFS
9649
9650 fi ;;
9651 esac
9652 fi
9653 DLLTOOL=$ac_cv_prog_DLLTOOL
9654 if test -n "$DLLTOOL"; then
9655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9656 printf "%s\n" "$DLLTOOL" >&6; }
9657 else
9658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9659 printf "%s\n" "no" >&6; }
9660 fi
9661
9662
9663 fi
9664 if test -z "$ac_cv_prog_DLLTOOL"; then
9665 ac_ct_DLLTOOL=$DLLTOOL
9666 # Extract the first word of "dlltool", so it can be a program name with args.
9667 set dummy dlltool; ac_word=$2
9668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9669 printf %s "checking for $ac_word... " >&6; }
9670 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
9671 then :
9672 printf %s "(cached) " >&6
9673 else case e in #(
9674 e) if test -n "$ac_ct_DLLTOOL"; then
9675 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9676 else
9677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9678 for as_dir in $PATH
9679 do
9680 IFS=$as_save_IFS
9681 case $as_dir in #(((
9682 '') as_dir=./ ;;
9683 */) ;;
9684 *) as_dir=$as_dir/ ;;
9685 esac
9686 for ac_exec_ext in '' $ac_executable_extensions; do
9687 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9688 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9689 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9690 break 2
9691 fi
9692 done
9693 done
9694 IFS=$as_save_IFS
9695
9696 fi ;;
9697 esac
9698 fi
9699 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9700 if test -n "$ac_ct_DLLTOOL"; then
9701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9702 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
9703 else
9704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9705 printf "%s\n" "no" >&6; }
9706 fi
9707
9708 if test "x$ac_ct_DLLTOOL" = x; then
9709 DLLTOOL="false"
9710 else
9711 case $cross_compiling:$ac_tool_warned in
9712 yes:)
9713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9714 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9715 ac_tool_warned=yes ;;
9716 esac
9717 DLLTOOL=$ac_ct_DLLTOOL
9718 fi
9719 else
9720 DLLTOOL="$ac_cv_prog_DLLTOOL"
9721 fi
9722
9723 if test -n "$ac_tool_prefix"; then
9724 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9725 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9727 printf %s "checking for $ac_word... " >&6; }
9728 if test ${ac_cv_prog_OBJDUMP+y}
9729 then :
9730 printf %s "(cached) " >&6
9731 else case e in #(
9732 e) if test -n "$OBJDUMP"; then
9733 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9734 else
9735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9736 for as_dir in $PATH
9737 do
9738 IFS=$as_save_IFS
9739 case $as_dir in #(((
9740 '') as_dir=./ ;;
9741 */) ;;
9742 *) as_dir=$as_dir/ ;;
9743 esac
9744 for ac_exec_ext in '' $ac_executable_extensions; do
9745 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9746 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9747 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9748 break 2
9749 fi
9750 done
9751 done
9752 IFS=$as_save_IFS
9753
9754 fi ;;
9755 esac
9756 fi
9757 OBJDUMP=$ac_cv_prog_OBJDUMP
9758 if test -n "$OBJDUMP"; then
9759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9760 printf "%s\n" "$OBJDUMP" >&6; }
9761 else
9762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9763 printf "%s\n" "no" >&6; }
9764 fi
9765
9766
9767 fi
9768 if test -z "$ac_cv_prog_OBJDUMP"; then
9769 ac_ct_OBJDUMP=$OBJDUMP
9770 # Extract the first word of "objdump", so it can be a program name with args.
9771 set dummy objdump; ac_word=$2
9772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9773 printf %s "checking for $ac_word... " >&6; }
9774 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
9775 then :
9776 printf %s "(cached) " >&6
9777 else case e in #(
9778 e) if test -n "$ac_ct_OBJDUMP"; then
9779 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9780 else
9781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9782 for as_dir in $PATH
9783 do
9784 IFS=$as_save_IFS
9785 case $as_dir in #(((
9786 '') as_dir=./ ;;
9787 */) ;;
9788 *) as_dir=$as_dir/ ;;
9789 esac
9790 for ac_exec_ext in '' $ac_executable_extensions; do
9791 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9792 ac_cv_prog_ac_ct_OBJDUMP="objdump"
9793 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9794 break 2
9795 fi
9796 done
9797 done
9798 IFS=$as_save_IFS
9799
9800 fi ;;
9801 esac
9802 fi
9803 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9804 if test -n "$ac_ct_OBJDUMP"; then
9805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9806 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
9807 else
9808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9809 printf "%s\n" "no" >&6; }
9810 fi
9811
9812 if test "x$ac_ct_OBJDUMP" = x; then
9813 OBJDUMP="false"
9814 else
9815 case $cross_compiling:$ac_tool_warned in
9816 yes:)
9817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9818 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9819 ac_tool_warned=yes ;;
9820 esac
9821 OBJDUMP=$ac_ct_OBJDUMP
9822 fi
9823 else
9824 OBJDUMP="$ac_cv_prog_OBJDUMP"
9825 fi
9826
9827 ;;
9828 esac
9829
9830 test -z "$AS" && AS=as
9831
9832
9833
9834
9835
9836 test -z "$DLLTOOL" && DLLTOOL=dlltool
9837
9838
9839
9840
9841
9842 test -z "$OBJDUMP" && OBJDUMP=objdump
9843
9844
9845
9846
9847
9848
9849
9850 enable_dlopen=no
9851
9852
9853
9854 # Check whether --enable-shared was given.
9855 if test ${enable_shared+y}
9856 then :
9857 enableval=$enable_shared; p=${PACKAGE-default}
9858 case $enableval in
9859 yes) enable_shared=yes ;;
9860 no) enable_shared=no ;;
9861 *)
9862 enable_shared=no
9863 # Look at the argument we got. We use all the common list separators.
9864 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9865 for pkg in $enableval; do
9866 IFS=$lt_save_ifs
9867 if test "X$pkg" = "X$p"; then
9868 enable_shared=yes
9869 fi
9870 done
9871 IFS=$lt_save_ifs
9872 ;;
9873 esac
9874 else case e in #(
9875 e) enable_shared=yes ;;
9876 esac
9877 fi
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887 # Check whether --enable-static was given.
9888 if test ${enable_static+y}
9889 then :
9890 enableval=$enable_static; p=${PACKAGE-default}
9891 case $enableval in
9892 yes) enable_static=yes ;;
9893 no) enable_static=no ;;
9894 *)
9895 enable_static=no
9896 # Look at the argument we got. We use all the common list separators.
9897 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9898 for pkg in $enableval; do
9899 IFS=$lt_save_ifs
9900 if test "X$pkg" = "X$p"; then
9901 enable_static=yes
9902 fi
9903 done
9904 IFS=$lt_save_ifs
9905 ;;
9906 esac
9907 else case e in #(
9908 e) enable_static=yes ;;
9909 esac
9910 fi
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920 # Check whether --enable-pic was given.
9921 if test ${enable_pic+y}
9922 then :
9923 enableval=$enable_pic; lt_p=${PACKAGE-default}
9924 case $enableval in
9925 yes|no) pic_mode=$enableval ;;
9926 *)
9927 pic_mode=default
9928 # Look at the argument we got. We use all the common list separators.
9929 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9930 for lt_pkg in $enableval; do
9931 IFS=$lt_save_ifs
9932 if test "X$lt_pkg" = "X$lt_p"; then
9933 pic_mode=yes
9934 fi
9935 done
9936 IFS=$lt_save_ifs
9937 ;;
9938 esac
9939 else case e in #(
9940 e) # Check whether --with-pic was given.
9941 if test ${with_pic+y}
9942 then :
9943 withval=$with_pic; lt_p=${PACKAGE-default}
9944 case $withval in
9945 yes|no) pic_mode=$withval ;;
9946 *)
9947 pic_mode=default
9948 # Look at the argument we got. We use all the common list separators.
9949 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9950 for lt_pkg in $withval; do
9951 IFS=$lt_save_ifs
9952 if test "X$lt_pkg" = "X$lt_p"; then
9953 pic_mode=yes
9954 fi
9955 done
9956 IFS=$lt_save_ifs
9957 ;;
9958 esac
9959 else case e in #(
9960 e) pic_mode=default ;;
9961 esac
9962 fi
9963
9964 ;;
9965 esac
9966 fi
9967
9968
9969
9970
9971
9972
9973
9974
9975 # Check whether --enable-fast-install was given.
9976 if test ${enable_fast_install+y}
9977 then :
9978 enableval=$enable_fast_install; p=${PACKAGE-default}
9979 case $enableval in
9980 yes) enable_fast_install=yes ;;
9981 no) enable_fast_install=no ;;
9982 *)
9983 enable_fast_install=no
9984 # Look at the argument we got. We use all the common list separators.
9985 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9986 for pkg in $enableval; do
9987 IFS=$lt_save_ifs
9988 if test "X$pkg" = "X$p"; then
9989 enable_fast_install=yes
9990 fi
9991 done
9992 IFS=$lt_save_ifs
9993 ;;
9994 esac
9995 else case e in #(
9996 e) enable_fast_install=yes ;;
9997 esac
9998 fi
9999
10000
10001
10002
10003
10004
10005
10006
10007 shared_archive_member_spec=
10008 case $host,$enable_shared in
10009 power*-*-aix[5-9]*,yes)
10010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
10011 printf %s "checking which variant of shared library versioning to provide... " >&6; }
10012 # Check whether --enable-aix-soname was given.
10013 if test ${enable_aix_soname+y}
10014 then :
10015 enableval=$enable_aix_soname; case $enableval in
10016 aix|svr4|both)
10017 ;;
10018 *)
10019 as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5
10020 ;;
10021 esac
10022 lt_cv_with_aix_soname=$enable_aix_soname
10023 else case e in #(
10024 e) # Check whether --with-aix-soname was given.
10025 if test ${with_aix_soname+y}
10026 then :
10027 withval=$with_aix_soname; case $withval in
10028 aix|svr4|both)
10029 ;;
10030 *)
10031 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
10032 ;;
10033 esac
10034 lt_cv_with_aix_soname=$with_aix_soname
10035 else case e in #(
10036 e) if test ${lt_cv_with_aix_soname+y}
10037 then :
10038 printf %s "(cached) " >&6
10039 else case e in #(
10040 e) lt_cv_with_aix_soname=aix ;;
10041 esac
10042 fi
10043 ;;
10044 esac
10045 fi
10046
10047 enable_aix_soname=$lt_cv_with_aix_soname ;;
10048 esac
10049 fi
10050
10051 with_aix_soname=$enable_aix_soname
10052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
10053 printf "%s\n" "$with_aix_soname" >&6; }
10054 if test aix != "$with_aix_soname"; then
10055 # For the AIX way of multilib, we name the shared archive member
10056 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10057 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10058 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10059 # the AIX toolchain works better with OBJECT_MODE set (default 32).
10060 if test 64 = "${OBJECT_MODE-32}"; then
10061 shared_archive_member_spec=shr_64
10062 else
10063 shared_archive_member_spec=shr
10064 fi
10065 fi
10066 ;;
10067 *)
10068 with_aix_soname=aix
10069 ;;
10070 esac
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081 # This can be used to rebuild libtool when needed
10082 LIBTOOL_DEPS=$ltmain
10083
10084 # Always use our own libtool.
10085 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116 test -z "$LN_S" && LN_S="ln -s"
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131 if test -n "${ZSH_VERSION+set}"; then
10132 setopt NO_GLOB_SUBST
10133 fi
10134
10135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10136 printf %s "checking for objdir... " >&6; }
10137 if test ${lt_cv_objdir+y}
10138 then :
10139 printf %s "(cached) " >&6
10140 else case e in #(
10141 e) rm -f .libs 2>/dev/null
10142 mkdir .libs 2>/dev/null
10143 if test -d .libs; then
10144 lt_cv_objdir=.libs
10145 else
10146 # MS-DOS does not allow filenames that begin with a dot.
10147 lt_cv_objdir=_libs
10148 fi
10149 rmdir .libs 2>/dev/null ;;
10150 esac
10151 fi
10152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10153 printf "%s\n" "$lt_cv_objdir" >&6; }
10154 objdir=$lt_cv_objdir
10155
10156
10157
10158
10159
10160 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
10161
10162
10163
10164
10165 case $host_os in
10166 aix3*)
10167 # AIX sometimes has problems with the GCC collect2 program. For some
10168 # reason, if we set the COLLECT_NAMES environment variable, the problems
10169 # vanish in a puff of smoke.
10170 if test set != "${COLLECT_NAMES+set}"; then
10171 COLLECT_NAMES=
10172 export COLLECT_NAMES
10173 fi
10174 ;;
10175 esac
10176
10177 # Global variables:
10178 ofile=libtool
10179 can_build_shared=yes
10180
10181 # All known linkers require a '.a' archive for static linking (except MSVC and
10182 # ICC, which need '.lib').
10183 libext=a
10184
10185 with_gnu_ld=$lt_cv_prog_gnu_ld
10186
10187 old_CC=$CC
10188 old_CFLAGS=$CFLAGS
10189
10190 # Set sane defaults for various variables
10191 test -z "$CC" && CC=cc
10192 test -z "$LTCC" && LTCC=$CC
10193 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10194 test -z "$LD" && LD=ld
10195 test -z "$ac_objext" && ac_objext=o
10196
10197 func_cc_basename $compiler
10198 cc_basename=$func_cc_basename_result
10199
10200
10201 # Only perform the check for file, if the check method requires it
10202 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10203 case $deplibs_check_method in
10204 file_magic*)
10205 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10207 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
10208 if test ${lt_cv_path_MAGIC_CMD+y}
10209 then :
10210 printf %s "(cached) " >&6
10211 else case e in #(
10212 e) case $MAGIC_CMD in
10213 [\\/*] | ?:[\\/]*)
10214 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10215 ;;
10216 *)
10217 lt_save_MAGIC_CMD=$MAGIC_CMD
10218 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10219 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10220 for ac_dir in $ac_dummy; do
10221 IFS=$lt_save_ifs
10222 test -z "$ac_dir" && ac_dir=.
10223 if test -f "$ac_dir/${ac_tool_prefix}file"; then
10224 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10225 if test -n "$file_magic_test_file"; then
10226 case $deplibs_check_method in
10227 "file_magic "*)
10228 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10229 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10230 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10231 $EGREP "$file_magic_regex" > /dev/null; then
10232 :
10233 else
10234 cat <<_LT_EOF 1>&2
10235
10236 *** Warning: the command libtool uses to detect shared libraries,
10237 *** $file_magic_cmd, produces output that libtool cannot recognize.
10238 *** The result is that libtool may fail to recognize shared libraries
10239 *** as such. This will affect the creation of libtool libraries that
10240 *** depend on shared libraries, but programs linked with such libtool
10241 *** libraries will work regardless of this problem. Nevertheless, you
10242 *** may want to report the problem to your system manager and/or to
10243 *** [email protected]
10244
10245 _LT_EOF
10246 fi ;;
10247 esac
10248 fi
10249 break
10250 fi
10251 done
10252 IFS=$lt_save_ifs
10253 MAGIC_CMD=$lt_save_MAGIC_CMD
10254 ;;
10255 esac ;;
10256 esac
10257 fi
10258
10259 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10260 if test -n "$MAGIC_CMD"; then
10261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10262 printf "%s\n" "$MAGIC_CMD" >&6; }
10263 else
10264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10265 printf "%s\n" "no" >&6; }
10266 fi
10267
10268
10269
10270
10271
10272 if test -z "$lt_cv_path_MAGIC_CMD"; then
10273 if test -n "$ac_tool_prefix"; then
10274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10275 printf %s "checking for file... " >&6; }
10276 if test ${lt_cv_path_MAGIC_CMD+y}
10277 then :
10278 printf %s "(cached) " >&6
10279 else case e in #(
10280 e) case $MAGIC_CMD in
10281 [\\/*] | ?:[\\/]*)
10282 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10283 ;;
10284 *)
10285 lt_save_MAGIC_CMD=$MAGIC_CMD
10286 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10287 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10288 for ac_dir in $ac_dummy; do
10289 IFS=$lt_save_ifs
10290 test -z "$ac_dir" && ac_dir=.
10291 if test -f "$ac_dir/file"; then
10292 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10293 if test -n "$file_magic_test_file"; then
10294 case $deplibs_check_method in
10295 "file_magic "*)
10296 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10297 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10298 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10299 $EGREP "$file_magic_regex" > /dev/null; then
10300 :
10301 else
10302 cat <<_LT_EOF 1>&2
10303
10304 *** Warning: the command libtool uses to detect shared libraries,
10305 *** $file_magic_cmd, produces output that libtool cannot recognize.
10306 *** The result is that libtool may fail to recognize shared libraries
10307 *** as such. This will affect the creation of libtool libraries that
10308 *** depend on shared libraries, but programs linked with such libtool
10309 *** libraries will work regardless of this problem. Nevertheless, you
10310 *** may want to report the problem to your system manager and/or to
10311 *** [email protected]
10312
10313 _LT_EOF
10314 fi ;;
10315 esac
10316 fi
10317 break
10318 fi
10319 done
10320 IFS=$lt_save_ifs
10321 MAGIC_CMD=$lt_save_MAGIC_CMD
10322 ;;
10323 esac ;;
10324 esac
10325 fi
10326
10327 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10328 if test -n "$MAGIC_CMD"; then
10329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10330 printf "%s\n" "$MAGIC_CMD" >&6; }
10331 else
10332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10333 printf "%s\n" "no" >&6; }
10334 fi
10335
10336
10337 else
10338 MAGIC_CMD=:
10339 fi
10340 fi
10341
10342 fi
10343 ;;
10344 esac
10345
10346 # Use C for the default configuration in the libtool script
10347
10348 lt_save_CC=$CC
10349 ac_ext=c
10350 ac_cpp='$CPP $CPPFLAGS'
10351 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10352 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10353 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10354
10355
10356 # Source file extension for C test sources.
10357 ac_ext=c
10358
10359 # Object file extension for compiled C test sources.
10360 objext=o
10361 objext=$objext
10362
10363 # Code to be used in simple compile tests
10364 lt_simple_compile_test_code="int some_variable = 0;"
10365
10366 # Code to be used in simple link tests
10367 lt_simple_link_test_code='int main(void){return(0);}'
10368
10369
10370
10371
10372
10373
10374
10375 # If no C compiler was specified, use CC.
10376 LTCC=${LTCC-"$CC"}
10377
10378 # If no C compiler flags were specified, use CFLAGS.
10379 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10380
10381 # Allow CC to be a program name with arguments.
10382 compiler=$CC
10383
10384 # Save the default compiler, since it gets overwritten when the other
10385 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10386 compiler_DEFAULT=$CC
10387
10388 # save warnings/boilerplate of simple test code
10389 ac_outfile=conftest.$ac_objext
10390 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10391 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10392 _lt_compiler_boilerplate=`cat conftest.err`
10393 $RM conftest*
10394
10395 ac_outfile=conftest.$ac_objext
10396 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10397 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10398 _lt_linker_boilerplate=`cat conftest.err`
10399 $RM -r conftest*
10400
10401
10402 ## CAVEAT EMPTOR:
10403 ## There is no encapsulation within the following macros, do not change
10404 ## the running order or otherwise move them around unless you know exactly
10405 ## what you are doing...
10406 if test -n "$compiler"; then
10407
10408 lt_prog_compiler_no_builtin_flag=
10409
10410 if test yes = "$GCC"; then
10411 case $cc_basename in
10412 nvcc*)
10413 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10414 *)
10415 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10416 esac
10417
10418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10419 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10420 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
10421 then :
10422 printf %s "(cached) " >&6
10423 else case e in #(
10424 e) lt_cv_prog_compiler_rtti_exceptions=no
10425 ac_outfile=conftest.$ac_objext
10426 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10427 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
10428 # Insert the option either (1) after the last *FLAGS variable, or
10429 # (2) before a word containing "conftest.", or (3) at the end.
10430 # Note that $ac_compile itself does not contain backslashes and begins
10431 # with a dollar sign (not a hyphen), so the echo should work correctly.
10432 # The option is referenced via a variable to avoid confusing sed.
10433 lt_compile=`echo "$ac_compile" | $SED \
10434 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10435 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10436 -e 's:$: $lt_compiler_flag:'`
10437 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10438 (eval "$lt_compile" 2>conftest.err)
10439 ac_status=$?
10440 cat conftest.err >&5
10441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10442 if (exit $ac_status) && test -s "$ac_outfile"; then
10443 # The compiler can only warn and ignore the option if not recognized
10444 # So say no if there are warnings other than the usual output.
10445 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10446 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10447 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10448 lt_cv_prog_compiler_rtti_exceptions=yes
10449 fi
10450 fi
10451 $RM conftest*
10452 ;;
10453 esac
10454 fi
10455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10456 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10457
10458 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10459 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10460 else
10461 :
10462 fi
10463
10464 fi
10465
10466
10467
10468
10469
10470
10471 lt_prog_compiler_wl=
10472 lt_prog_compiler_pic=
10473 lt_prog_compiler_static=
10474
10475
10476 if test yes = "$GCC"; then
10477 lt_prog_compiler_wl='-Wl,'
10478 lt_prog_compiler_static='-static'
10479
10480 case $host_os in
10481 aix*)
10482 # All AIX code is PIC.
10483 if test ia64 = "$host_cpu"; then
10484 # AIX 5 now supports IA64 processor
10485 lt_prog_compiler_static='-Bstatic'
10486 fi
10487 lt_prog_compiler_pic='-fPIC'
10488 ;;
10489
10490 amigaos*)
10491 case $host_cpu in
10492 powerpc)
10493 # see comment about AmigaOS4 .so support
10494 lt_prog_compiler_pic='-fPIC'
10495 ;;
10496 m68k)
10497 # FIXME: we need at least 68020 code to build shared libraries, but
10498 # adding the '-m68020' flag to GCC prevents building anything better,
10499 # like '-m68040'.
10500 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10501 ;;
10502 esac
10503 ;;
10504
10505 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10506 # PIC is the default for these OSes.
10507 ;;
10508
10509 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
10510 # This hack is so that the source file can tell whether it is being
10511 # built for inclusion in a dll (and should export symbols for example).
10512 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10513 # (--disable-auto-import) libraries
10514 lt_prog_compiler_pic='-DDLL_EXPORT'
10515 case $host_os in
10516 os2*)
10517 lt_prog_compiler_static='$wl-static'
10518 ;;
10519 esac
10520 ;;
10521
10522 darwin* | rhapsody*)
10523 # PIC is the default on this platform
10524 # Common symbols not allowed in MH_DYLIB files
10525 lt_prog_compiler_pic='-fno-common'
10526 ;;
10527
10528 haiku*)
10529 # PIC is the default for Haiku.
10530 # The "-static" flag exists, but is broken.
10531 lt_prog_compiler_static=
10532 ;;
10533
10534 hpux*)
10535 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10536 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10537 # sets the default TLS model and affects inlining.
10538 case $host_cpu in
10539 hppa*64*)
10540 # +Z the default
10541 ;;
10542 *)
10543 lt_prog_compiler_pic='-fPIC'
10544 ;;
10545 esac
10546 ;;
10547
10548 interix[3-9]*)
10549 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10550 # Instead, we relocate shared libraries at runtime.
10551 ;;
10552
10553 msdosdjgpp*)
10554 # Just because we use GCC doesn't mean we suddenly get shared libraries
10555 # on systems that don't support them.
10556 lt_prog_compiler_can_build_shared=no
10557 enable_shared=no
10558 ;;
10559
10560 *nto* | *qnx*)
10561 # QNX uses GNU C++, but need to define -shared option too, otherwise
10562 # it will coredump.
10563 lt_prog_compiler_pic='-fPIC -shared'
10564 ;;
10565
10566 sysv4*MP*)
10567 if test -d /usr/nec; then
10568 lt_prog_compiler_pic=-Kconform_pic
10569 fi
10570 ;;
10571
10572 *)
10573 lt_prog_compiler_pic='-fPIC'
10574 ;;
10575 esac
10576
10577 case $cc_basename in
10578 nvcc*) # Cuda Compiler Driver 2.2
10579 lt_prog_compiler_wl='-Xlinker '
10580 if test -n "$lt_prog_compiler_pic"; then
10581 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10582 fi
10583 ;;
10584 esac
10585 else
10586 # PORTME Check for flag to pass linker flags through the system compiler.
10587 case $host_os in
10588 aix*)
10589 lt_prog_compiler_wl='-Wl,'
10590 if test ia64 = "$host_cpu"; then
10591 # AIX 5 now supports IA64 processor
10592 lt_prog_compiler_static='-Bstatic'
10593 else
10594 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10595 fi
10596 ;;
10597
10598 darwin* | rhapsody*)
10599 # PIC is the default on this platform
10600 # Common symbols not allowed in MH_DYLIB files
10601 lt_prog_compiler_pic='-fno-common'
10602 case $cc_basename in
10603 nagfor*)
10604 # NAG Fortran compiler
10605 lt_prog_compiler_wl='-Wl,-Wl,,'
10606 lt_prog_compiler_pic='-PIC'
10607 lt_prog_compiler_static='-Bstatic'
10608 ;;
10609 esac
10610 ;;
10611
10612 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
10613 # This hack is so that the source file can tell whether it is being
10614 # built for inclusion in a dll (and should export symbols for example).
10615 lt_prog_compiler_pic='-DDLL_EXPORT'
10616 case $host_os in
10617 os2*)
10618 lt_prog_compiler_static='$wl-static'
10619 ;;
10620 esac
10621 ;;
10622
10623 hpux9* | hpux10* | hpux11*)
10624 lt_prog_compiler_wl='-Wl,'
10625 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10626 # not for PA HP-UX.
10627 case $host_cpu in
10628 hppa*64*|ia64*)
10629 # +Z the default
10630 ;;
10631 *)
10632 lt_prog_compiler_pic='+Z'
10633 ;;
10634 esac
10635 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10636 lt_prog_compiler_static='$wl-a ${wl}archive'
10637 ;;
10638
10639 irix5* | irix6* | nonstopux*)
10640 lt_prog_compiler_wl='-Wl,'
10641 # PIC (with -KPIC) is the default.
10642 lt_prog_compiler_static='-non_shared'
10643 ;;
10644
10645 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10646 case $cc_basename in
10647 # old Intel for x86_64, which still supported -KPIC.
10648 ecc*)
10649 lt_prog_compiler_wl='-Wl,'
10650 lt_prog_compiler_pic='-KPIC'
10651 lt_prog_compiler_static='-static'
10652 ;;
10653 *flang* | ftn | f18* | f95*)
10654 # Flang compiler.
10655 lt_prog_compiler_wl='-Wl,'
10656 lt_prog_compiler_pic='-fPIC'
10657 lt_prog_compiler_static='-static'
10658 ;;
10659 # icc used to be incompatible with GCC.
10660 # ICC 10 doesn't accept -KPIC any more.
10661 icc* | ifort*)
10662 lt_prog_compiler_wl='-Wl,'
10663 lt_prog_compiler_pic='-fPIC'
10664 lt_prog_compiler_static='-static'
10665 ;;
10666 # Lahey Fortran 8.1.
10667 lf95*)
10668 lt_prog_compiler_wl='-Wl,'
10669 lt_prog_compiler_pic='--shared'
10670 lt_prog_compiler_static='--static'
10671 ;;
10672 nagfor*)
10673 # NAG Fortran compiler
10674 lt_prog_compiler_wl='-Wl,-Wl,,'
10675 lt_prog_compiler_pic='-PIC'
10676 lt_prog_compiler_static='-Bstatic'
10677 ;;
10678 tcc*)
10679 # Fabrice Bellard et al's Tiny C Compiler
10680 lt_prog_compiler_wl='-Wl,'
10681 lt_prog_compiler_pic='-fPIC'
10682 lt_prog_compiler_static='-static'
10683 ;;
10684 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10685 # Portland Group compilers (*not* the Pentium gcc compiler,
10686 # which looks to be a dead project)
10687 lt_prog_compiler_wl='-Wl,'
10688 lt_prog_compiler_pic='-fpic'
10689 lt_prog_compiler_static='-Bstatic'
10690 ;;
10691 ccc*)
10692 lt_prog_compiler_wl='-Wl,'
10693 # All Alpha code is PIC.
10694 lt_prog_compiler_static='-non_shared'
10695 ;;
10696 xl* | bgxl* | bgf* | mpixl*)
10697 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10698 lt_prog_compiler_wl='-Wl,'
10699 lt_prog_compiler_pic='-qpic'
10700 lt_prog_compiler_static='-qstaticlink'
10701 ;;
10702 *)
10703 case `$CC -V 2>&1 | $SED 5q` in
10704 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10705 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10706 lt_prog_compiler_pic='-KPIC'
10707 lt_prog_compiler_static='-Bstatic'
10708 lt_prog_compiler_wl=''
10709 ;;
10710 *Sun\ F* | *Sun*Fortran*)
10711 lt_prog_compiler_pic='-KPIC'
10712 lt_prog_compiler_static='-Bstatic'
10713 lt_prog_compiler_wl='-Qoption ld '
10714 ;;
10715 *Sun\ C*)
10716 # Sun C 5.9
10717 lt_prog_compiler_pic='-KPIC'
10718 lt_prog_compiler_static='-Bstatic'
10719 lt_prog_compiler_wl='-Wl,'
10720 ;;
10721 *Intel*\ [CF]*Compiler*)
10722 lt_prog_compiler_wl='-Wl,'
10723 lt_prog_compiler_pic='-fPIC'
10724 lt_prog_compiler_static='-static'
10725 ;;
10726 *Portland\ Group*)
10727 lt_prog_compiler_wl='-Wl,'
10728 lt_prog_compiler_pic='-fpic'
10729 lt_prog_compiler_static='-Bstatic'
10730 ;;
10731 esac
10732 ;;
10733 esac
10734 ;;
10735
10736 newsos6)
10737 lt_prog_compiler_pic='-KPIC'
10738 lt_prog_compiler_static='-Bstatic'
10739 ;;
10740
10741 *-mlibc)
10742 lt_prog_compiler_wl='-Wl,'
10743 lt_prog_compiler_pic='-fPIC'
10744 lt_prog_compiler_static='-static'
10745 ;;
10746
10747 *nto* | *qnx*)
10748 # QNX uses GNU C++, but need to define -shared option too, otherwise
10749 # it will coredump.
10750 lt_prog_compiler_pic='-fPIC -shared'
10751 ;;
10752
10753 osf3* | osf4* | osf5*)
10754 lt_prog_compiler_wl='-Wl,'
10755 # All OSF/1 code is PIC.
10756 lt_prog_compiler_static='-non_shared'
10757 ;;
10758
10759 rdos*)
10760 lt_prog_compiler_static='-non_shared'
10761 ;;
10762
10763 serenity*)
10764 ;;
10765
10766 solaris*)
10767 lt_prog_compiler_pic='-KPIC'
10768 lt_prog_compiler_static='-Bstatic'
10769 case $cc_basename in
10770 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10771 lt_prog_compiler_wl='-Qoption ld ';;
10772 *)
10773 lt_prog_compiler_wl='-Wl,';;
10774 esac
10775 ;;
10776
10777 sunos4*)
10778 lt_prog_compiler_wl='-Qoption ld '
10779 lt_prog_compiler_pic='-PIC'
10780 lt_prog_compiler_static='-Bstatic'
10781 ;;
10782
10783 sysv4 | sysv4.2uw2* | sysv4.3*)
10784 lt_prog_compiler_wl='-Wl,'
10785 lt_prog_compiler_pic='-KPIC'
10786 lt_prog_compiler_static='-Bstatic'
10787 ;;
10788
10789 sysv4*MP*)
10790 if test -d /usr/nec; then
10791 lt_prog_compiler_pic='-Kconform_pic'
10792 lt_prog_compiler_static='-Bstatic'
10793 fi
10794 ;;
10795
10796 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10797 lt_prog_compiler_wl='-Wl,'
10798 lt_prog_compiler_pic='-KPIC'
10799 lt_prog_compiler_static='-Bstatic'
10800 ;;
10801
10802 unicos*)
10803 lt_prog_compiler_wl='-Wl,'
10804 lt_prog_compiler_can_build_shared=no
10805 ;;
10806
10807 uts4*)
10808 lt_prog_compiler_pic='-pic'
10809 lt_prog_compiler_static='-Bstatic'
10810 ;;
10811
10812 *)
10813 lt_prog_compiler_can_build_shared=no
10814 ;;
10815 esac
10816 fi
10817
10818 case $host_os in
10819 # For platforms that do not support PIC, -DPIC is meaningless:
10820 *djgpp*)
10821 lt_prog_compiler_pic=
10822 ;;
10823 *)
10824 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10825 ;;
10826 esac
10827
10828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10829 printf %s "checking for $compiler option to produce PIC... " >&6; }
10830 if test ${lt_cv_prog_compiler_pic+y}
10831 then :
10832 printf %s "(cached) " >&6
10833 else case e in #(
10834 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
10835 esac
10836 fi
10837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10838 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
10839 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10840
10841 #
10842 # Check to make sure the PIC flag actually works.
10843 #
10844 if test -n "$lt_prog_compiler_pic"; then
10845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10846 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10847 if test ${lt_cv_prog_compiler_pic_works+y}
10848 then :
10849 printf %s "(cached) " >&6
10850 else case e in #(
10851 e) lt_cv_prog_compiler_pic_works=no
10852 ac_outfile=conftest.$ac_objext
10853 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10854 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10855 # Insert the option either (1) after the last *FLAGS variable, or
10856 # (2) before a word containing "conftest.", or (3) at the end.
10857 # Note that $ac_compile itself does not contain backslashes and begins
10858 # with a dollar sign (not a hyphen), so the echo should work correctly.
10859 # The option is referenced via a variable to avoid confusing sed.
10860 lt_compile=`echo "$ac_compile" | $SED \
10861 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10862 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10863 -e 's:$: $lt_compiler_flag:'`
10864 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10865 (eval "$lt_compile" 2>conftest.err)
10866 ac_status=$?
10867 cat conftest.err >&5
10868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10869 if (exit $ac_status) && test -s "$ac_outfile"; then
10870 # The compiler can only warn and ignore the option if not recognized
10871 # So say no if there are warnings other than the usual output.
10872 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10873 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10874 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10875 lt_cv_prog_compiler_pic_works=yes
10876 fi
10877 fi
10878 $RM conftest*
10879 ;;
10880 esac
10881 fi
10882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10883 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
10884
10885 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10886 case $lt_prog_compiler_pic in
10887 "" | " "*) ;;
10888 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10889 esac
10890 else
10891 lt_prog_compiler_pic=
10892 lt_prog_compiler_can_build_shared=no
10893 fi
10894
10895 fi
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907 #
10908 # Check to make sure the static flag actually works.
10909 #
10910 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10912 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10913 if test ${lt_cv_prog_compiler_static_works+y}
10914 then :
10915 printf %s "(cached) " >&6
10916 else case e in #(
10917 e) lt_cv_prog_compiler_static_works=no
10918 save_LDFLAGS=$LDFLAGS
10919 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10920 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10921 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10922 # The linker can only warn and ignore the option if not recognized
10923 # So say no if there are warnings
10924 if test -s conftest.err; then
10925 # Append any errors to the config.log.
10926 cat conftest.err 1>&5
10927 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10928 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10929 if diff conftest.exp conftest.er2 >/dev/null; then
10930 lt_cv_prog_compiler_static_works=yes
10931 fi
10932 else
10933 lt_cv_prog_compiler_static_works=yes
10934 fi
10935 fi
10936 $RM -r conftest*
10937 LDFLAGS=$save_LDFLAGS
10938 ;;
10939 esac
10940 fi
10941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10942 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
10943
10944 if test yes = "$lt_cv_prog_compiler_static_works"; then
10945 :
10946 else
10947 lt_prog_compiler_static=
10948 fi
10949
10950
10951
10952
10953
10954
10955
10956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10957 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10958 if test ${lt_cv_prog_compiler_c_o+y}
10959 then :
10960 printf %s "(cached) " >&6
10961 else case e in #(
10962 e) lt_cv_prog_compiler_c_o=no
10963 $RM -r conftest 2>/dev/null
10964 mkdir conftest
10965 cd conftest
10966 mkdir out
10967 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10968
10969 lt_compiler_flag="-o out/conftest2.$ac_objext"
10970 # Insert the option either (1) after the last *FLAGS variable, or
10971 # (2) before a word containing "conftest.", or (3) at the end.
10972 # Note that $ac_compile itself does not contain backslashes and begins
10973 # with a dollar sign (not a hyphen), so the echo should work correctly.
10974 lt_compile=`echo "$ac_compile" | $SED \
10975 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10976 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10977 -e 's:$: $lt_compiler_flag:'`
10978 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10979 (eval "$lt_compile" 2>out/conftest.err)
10980 ac_status=$?
10981 cat out/conftest.err >&5
10982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10983 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10984 then
10985 # The compiler can only warn and ignore the option if not recognized
10986 # So say no if there are warnings
10987 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10988 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10989 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10990 lt_cv_prog_compiler_c_o=yes
10991 fi
10992 fi
10993 chmod u+w . 2>&5
10994 $RM conftest*
10995 # SGI C++ compiler will create directory out/ii_files/ for
10996 # template instantiation
10997 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10998 $RM out/* && rmdir out
10999 cd ..
11000 $RM -r conftest
11001 $RM conftest*
11002 ;;
11003 esac
11004 fi
11005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11006 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
11007
11008
11009
11010
11011
11012
11013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11014 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11015 if test ${lt_cv_prog_compiler_c_o+y}
11016 then :
11017 printf %s "(cached) " >&6
11018 else case e in #(
11019 e) lt_cv_prog_compiler_c_o=no
11020 $RM -r conftest 2>/dev/null
11021 mkdir conftest
11022 cd conftest
11023 mkdir out
11024 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11025
11026 lt_compiler_flag="-o out/conftest2.$ac_objext"
11027 # Insert the option either (1) after the last *FLAGS variable, or
11028 # (2) before a word containing "conftest.", or (3) at the end.
11029 # Note that $ac_compile itself does not contain backslashes and begins
11030 # with a dollar sign (not a hyphen), so the echo should work correctly.
11031 lt_compile=`echo "$ac_compile" | $SED \
11032 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11033 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11034 -e 's:$: $lt_compiler_flag:'`
11035 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11036 (eval "$lt_compile" 2>out/conftest.err)
11037 ac_status=$?
11038 cat out/conftest.err >&5
11039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11040 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11041 then
11042 # The compiler can only warn and ignore the option if not recognized
11043 # So say no if there are warnings
11044 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11045 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11046 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11047 lt_cv_prog_compiler_c_o=yes
11048 fi
11049 fi
11050 chmod u+w . 2>&5
11051 $RM conftest*
11052 # SGI C++ compiler will create directory out/ii_files/ for
11053 # template instantiation
11054 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11055 $RM out/* && rmdir out
11056 cd ..
11057 $RM -r conftest
11058 $RM conftest*
11059 ;;
11060 esac
11061 fi
11062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11063 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
11064
11065
11066
11067
11068 hard_links=nottested
11069 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
11070 # do not overwrite the value of need_locks provided by the user
11071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11072 printf %s "checking if we can lock with hard links... " >&6; }
11073 hard_links=yes
11074 $RM conftest*
11075 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11076 touch conftest.a
11077 ln conftest.a conftest.b 2>&5 || hard_links=no
11078 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11080 printf "%s\n" "$hard_links" >&6; }
11081 if test no = "$hard_links"; then
11082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11083 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
11084 need_locks=warn
11085 fi
11086 else
11087 need_locks=no
11088 fi
11089
11090
11091
11092
11093
11094
11095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11096 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11097
11098 runpath_var=
11099 allow_undefined_flag=
11100 always_export_symbols=no
11101 archive_cmds=
11102 archive_expsym_cmds=
11103 compiler_needs_object=no
11104 enable_shared_with_static_runtimes=no
11105 export_dynamic_flag_spec=
11106 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11107 hardcode_automatic=no
11108 hardcode_direct=no
11109 hardcode_direct_absolute=no
11110 hardcode_libdir_flag_spec=
11111 hardcode_libdir_separator=
11112 hardcode_minus_L=no
11113 hardcode_shlibpath_var=unsupported
11114 inherit_rpath=no
11115 link_all_deplibs=unknown
11116 module_cmds=
11117 module_expsym_cmds=
11118 old_archive_from_new_cmds=
11119 old_archive_from_expsyms_cmds=
11120 thread_safe_flag_spec=
11121 whole_archive_flag_spec=
11122 # include_expsyms should be a list of space-separated symbols to be *always*
11123 # included in the symbol list
11124 include_expsyms=
11125 # exclude_expsyms can be an extended regexp of symbols to exclude
11126 # it will be wrapped by ' (' and ')$', so one must not match beginning or
11127 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11128 # as well as any symbol that contains 'd'.
11129 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11130 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11131 # platforms (ab)use it in PIC code, but their linkers get confused if
11132 # the symbol is explicitly referenced. Since portable code cannot
11133 # rely on this symbol name, it's probably fine to never include it in
11134 # preloaded symbol tables.
11135 # Exclude shared library initialization/finalization symbols.
11136 extract_expsyms_cmds=
11137
11138 case $host_os in
11139 cygwin* | mingw* | windows* | pw32* | cegcc*)
11140 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
11141 # When not using gcc, we currently assume that we are using
11142 # Microsoft Visual C++ or Intel C++ Compiler.
11143 if test yes != "$GCC"; then
11144 with_gnu_ld=no
11145 fi
11146 ;;
11147 interix*)
11148 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
11149 with_gnu_ld=yes
11150 ;;
11151 esac
11152
11153 ld_shlibs=yes
11154
11155 # On some targets, GNU ld is compatible enough with the native linker
11156 # that we're better off using the native interface for both.
11157 lt_use_gnu_ld_interface=no
11158 if test yes = "$with_gnu_ld"; then
11159 case $host_os in
11160 aix*)
11161 # The AIX port of GNU ld has always aspired to compatibility
11162 # with the native linker. However, as the warning in the GNU ld
11163 # block says, versions before 2.19.5* couldn't really create working
11164 # shared libraries, regardless of the interface used.
11165 case `$LD -v 2>&1` in
11166 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11167 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11168 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11169 *)
11170 lt_use_gnu_ld_interface=yes
11171 ;;
11172 esac
11173 ;;
11174 *)
11175 lt_use_gnu_ld_interface=yes
11176 ;;
11177 esac
11178 fi
11179
11180 if test yes = "$lt_use_gnu_ld_interface"; then
11181 # If archive_cmds runs LD, not CC, wlarc should be empty
11182 wlarc='$wl'
11183
11184 # Set some defaults for GNU ld with shared library support. These
11185 # are reset later if shared libraries are not supported. Putting them
11186 # here allows them to be overridden if necessary.
11187 runpath_var=LD_RUN_PATH
11188 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11189 export_dynamic_flag_spec='$wl--export-dynamic'
11190 # ancient GNU ld didn't support --whole-archive et. al.
11191 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11192 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11193 else
11194 whole_archive_flag_spec=
11195 fi
11196 supports_anon_versioning=no
11197 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
11198 *GNU\ gold*) supports_anon_versioning=yes ;;
11199 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11200 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11201 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11202 *\ 2.11.*) ;; # other 2.11 versions
11203 *) supports_anon_versioning=yes ;;
11204 esac
11205
11206 # See if GNU ld supports shared libraries.
11207 case $host_os in
11208 aix[3-9]*)
11209 # On AIX/PPC, the GNU linker is very broken
11210 if test ia64 != "$host_cpu"; then
11211 ld_shlibs=no
11212 cat <<_LT_EOF 1>&2
11213
11214 *** Warning: the GNU linker, at least up to release 2.19, is reported
11215 *** to be unable to reliably create shared libraries on AIX.
11216 *** Therefore, libtool is disabling shared libraries support. If you
11217 *** really care for shared libraries, you may want to install binutils
11218 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11219 *** You will then need to restart the configuration process.
11220
11221 _LT_EOF
11222 fi
11223 ;;
11224
11225 amigaos*)
11226 case $host_cpu in
11227 powerpc)
11228 # see comment about AmigaOS4 .so support
11229 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11230 archive_expsym_cmds=''
11231 ;;
11232 m68k)
11233 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)'
11234 hardcode_libdir_flag_spec='-L$libdir'
11235 hardcode_minus_L=yes
11236 ;;
11237 esac
11238 ;;
11239
11240 beos*)
11241 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11242 allow_undefined_flag=unsupported
11243 # Joseph Beckenbach <[email protected]> says some releases of gcc
11244 # support --undefined. This deserves some investigation. FIXME
11245 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11246 else
11247 ld_shlibs=no
11248 fi
11249 ;;
11250
11251 cygwin* | mingw* | windows* | pw32* | cegcc*)
11252 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11253 # as there is no search path for DLLs.
11254 hardcode_libdir_flag_spec='-L$libdir'
11255 export_dynamic_flag_spec='$wl--export-all-symbols'
11256 allow_undefined_flag=unsupported
11257 always_export_symbols=no
11258 enable_shared_with_static_runtimes=yes
11259 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'
11260 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11261 file_list_spec='@'
11262
11263 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11264 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11265 # If the export-symbols file already is a .def file, use it as
11266 # is; otherwise, prepend EXPORTS...
11267 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11268 cp $export_symbols $output_objdir/$soname.def;
11269 else
11270 echo EXPORTS > $output_objdir/$soname.def;
11271 cat $export_symbols >> $output_objdir/$soname.def;
11272 fi~
11273 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11274 else
11275 ld_shlibs=no
11276 fi
11277 ;;
11278
11279 haiku*)
11280 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11281 link_all_deplibs=no
11282 ;;
11283
11284 os2*)
11285 hardcode_libdir_flag_spec='-L$libdir'
11286 hardcode_minus_L=yes
11287 allow_undefined_flag=unsupported
11288 shrext_cmds=.dll
11289 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11290 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11291 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11292 $ECHO EXPORTS >> $output_objdir/$libname.def~
11293 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11294 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11295 emximp -o $lib $output_objdir/$libname.def'
11296 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11297 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11298 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11299 $ECHO EXPORTS >> $output_objdir/$libname.def~
11300 prefix_cmds="$SED"~
11301 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11302 prefix_cmds="$prefix_cmds -e 1d";
11303 fi~
11304 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11305 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11306 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11307 emximp -o $lib $output_objdir/$libname.def'
11308 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11309 enable_shared_with_static_runtimes=yes
11310 file_list_spec='@'
11311 ;;
11312
11313 interix[3-9]*)
11314 hardcode_direct=no
11315 hardcode_shlibpath_var=no
11316 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11317 export_dynamic_flag_spec='$wl-E'
11318 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11319 # Instead, shared libraries are loaded at an image base (0x10000000 by
11320 # default) and relocated if they conflict, which is a slow very memory
11321 # consuming and fragmenting process. To avoid this, we pick a random,
11322 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11323 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11324 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11325 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'
11326 ;;
11327
11328 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11329 tmp_diet=no
11330 if test linux-dietlibc = "$host_os"; then
11331 case $cc_basename in
11332 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11333 esac
11334 fi
11335 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11336 && test no = "$tmp_diet"
11337 then
11338 tmp_addflag=' $pic_flag'
11339 tmp_sharedflag='-shared'
11340 case $cc_basename,$host_cpu in
11341 pgcc*) # Portland Group C compiler
11342 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'
11343 tmp_addflag=' $pic_flag'
11344 ;;
11345 pgf77* | pgf90* | pgf95* | pgfortran*)
11346 # Portland Group f77 and f90 compilers
11347 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'
11348 tmp_addflag=' $pic_flag -Mnomain' ;;
11349 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11350 tmp_addflag=' -i_dynamic' ;;
11351 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11352 tmp_addflag=' -i_dynamic -nofor_main' ;;
11353 ifc* | ifort*) # Intel Fortran compiler
11354 tmp_addflag=' -nofor_main' ;;
11355 lf95*) # Lahey Fortran 8.1
11356 whole_archive_flag_spec=
11357 tmp_sharedflag='--shared' ;;
11358 nagfor*) # NAGFOR 5.3
11359 tmp_sharedflag='-Wl,-shared' ;;
11360 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11361 tmp_sharedflag='-qmkshrobj'
11362 tmp_addflag= ;;
11363 nvcc*) # Cuda Compiler Driver 2.2
11364 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'
11365 compiler_needs_object=yes
11366 ;;
11367 esac
11368 case `$CC -V 2>&1 | $SED 5q` in
11369 *Sun\ C*) # Sun C 5.9
11370 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'
11371 compiler_needs_object=yes
11372 tmp_sharedflag='-G' ;;
11373 *Sun\ F*) # Sun Fortran 8.3
11374 tmp_sharedflag='-G' ;;
11375 esac
11376 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11377
11378 if test yes = "$supports_anon_versioning"; then
11379 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11380 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11381 echo "local: *; };" >> $output_objdir/$libname.ver~
11382 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11383 fi
11384
11385 case $cc_basename in
11386 tcc*)
11387 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11388 export_dynamic_flag_spec='-rdynamic'
11389 ;;
11390 xlf* | bgf* | bgxlf* | mpixlf*)
11391 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11392 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11393 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11394 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11395 if test yes = "$supports_anon_versioning"; then
11396 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11397 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11398 echo "local: *; };" >> $output_objdir/$libname.ver~
11399 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11400 fi
11401 ;;
11402 esac
11403 else
11404 ld_shlibs=no
11405 fi
11406 ;;
11407
11408 *-mlibc)
11409 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11410 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11411 ;;
11412
11413 netbsd* | netbsdelf*-gnu)
11414 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11415 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11416 wlarc=
11417 else
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 fi
11421 ;;
11422
11423 solaris*)
11424 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11425 ld_shlibs=no
11426 cat <<_LT_EOF 1>&2
11427
11428 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11429 *** create shared libraries on Solaris systems. Therefore, libtool
11430 *** is disabling shared libraries support. We urge you to upgrade GNU
11431 *** binutils to release 2.9.1 or newer. Another option is to modify
11432 *** your PATH or compiler configuration so that the native linker is
11433 *** used, and then restart.
11434
11435 _LT_EOF
11436 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11437 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11438 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11439 else
11440 ld_shlibs=no
11441 fi
11442 ;;
11443
11444 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11445 case `$LD -v 2>&1` in
11446 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11447 ld_shlibs=no
11448 cat <<_LT_EOF 1>&2
11449
11450 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11451 *** reliably create shared libraries on SCO systems. Therefore, libtool
11452 *** is disabling shared libraries support. We urge you to upgrade GNU
11453 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11454 *** your PATH or compiler configuration so that the native linker is
11455 *** used, and then restart.
11456
11457 _LT_EOF
11458 ;;
11459 *)
11460 # For security reasons, it is highly recommended that you always
11461 # use absolute paths for naming shared libraries, and exclude the
11462 # DT_RUNPATH tag from executables and libraries. But doing so
11463 # requires that you compile everything twice, which is a pain.
11464 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11465 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11466 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11467 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11468 else
11469 ld_shlibs=no
11470 fi
11471 ;;
11472 esac
11473 ;;
11474
11475 sunos4*)
11476 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11477 wlarc=
11478 hardcode_direct=yes
11479 hardcode_shlibpath_var=no
11480 ;;
11481
11482 *)
11483 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11484 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11485 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11486 else
11487 ld_shlibs=no
11488 fi
11489 ;;
11490 esac
11491
11492 if test no = "$ld_shlibs"; then
11493 runpath_var=
11494 hardcode_libdir_flag_spec=
11495 export_dynamic_flag_spec=
11496 whole_archive_flag_spec=
11497 fi
11498 else
11499 # PORTME fill in a description of your system's linker (not GNU ld)
11500 case $host_os in
11501 aix3*)
11502 allow_undefined_flag=unsupported
11503 always_export_symbols=yes
11504 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'
11505 # Note: this linker hardcodes the directories in LIBPATH if there
11506 # are no directories specified by -L.
11507 hardcode_minus_L=yes
11508 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11509 # Neither direct hardcoding nor static linking is supported with a
11510 # broken collect2.
11511 hardcode_direct=unsupported
11512 fi
11513 ;;
11514
11515 aix[4-9]*)
11516 if test ia64 = "$host_cpu"; then
11517 # On IA64, the linker does run time linking by default, so we don't
11518 # have to do anything special.
11519 aix_use_runtimelinking=no
11520 exp_sym_flag='-Bexport'
11521 no_entry_flag=
11522 else
11523 # If we're using GNU nm, then we don't want the "-C" option.
11524 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
11525 # Without the "-l" option, or with the "-B" option, AIX nm treats
11526 # weak defined symbols like other global defined symbols, whereas
11527 # GNU nm marks them as "W".
11528 # While the 'weak' keyword is ignored in the Export File, we need
11529 # it in the Import File for the 'aix-soname' feature, so we have
11530 # to replace the "-B" option with "-P" for AIX nm.
11531 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11532 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'
11533 else
11534 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'
11535 fi
11536 aix_use_runtimelinking=no
11537
11538 # Test if we are trying to use run time linking or normal
11539 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11540 # have runtime linking enabled, and use it for executables.
11541 # For shared libraries, we enable/disable runtime linking
11542 # depending on the kind of the shared library created -
11543 # when "with_aix_soname,aix_use_runtimelinking" is:
11544 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
11545 # "aix,yes" lib.so shared, rtl:yes, for executables
11546 # lib.a static archive
11547 # "both,no" lib.so.V(shr.o) shared, rtl:yes
11548 # lib.a(lib.so.V) shared, rtl:no, for executables
11549 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11550 # lib.a(lib.so.V) shared, rtl:no
11551 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
11552 # lib.a static archive
11553 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11554 for ld_flag in $LDFLAGS; do
11555 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11556 aix_use_runtimelinking=yes
11557 break
11558 fi
11559 done
11560 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11561 # With aix-soname=svr4, we create the lib.so.V shared archives only,
11562 # so we don't have lib.a shared libs to link our executables.
11563 # We have to force runtime linking in this case.
11564 aix_use_runtimelinking=yes
11565 LDFLAGS="$LDFLAGS -Wl,-brtl"
11566 fi
11567 ;;
11568 esac
11569
11570 exp_sym_flag='-bexport'
11571 no_entry_flag='-bnoentry'
11572 fi
11573
11574 # When large executables or shared objects are built, AIX ld can
11575 # have problems creating the table of contents. If linking a library
11576 # or program results in "error TOC overflow" add -mminimal-toc to
11577 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11578 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11579
11580 archive_cmds=''
11581 hardcode_direct=yes
11582 hardcode_direct_absolute=yes
11583 hardcode_libdir_separator=':'
11584 link_all_deplibs=yes
11585 file_list_spec='$wl-f,'
11586 case $with_aix_soname,$aix_use_runtimelinking in
11587 aix,*) ;; # traditional, no import file
11588 svr4,* | *,yes) # use import file
11589 # The Import File defines what to hardcode.
11590 hardcode_direct=no
11591 hardcode_direct_absolute=no
11592 ;;
11593 esac
11594
11595 if test yes = "$GCC"; then
11596 case $host_os in aix4.[012]|aix4.[012].*)
11597 # We only want to do this on AIX 4.2 and lower, the check
11598 # below for broken collect2 doesn't work under 4.3+
11599 collect2name=`$CC -print-prog-name=collect2`
11600 if test -f "$collect2name" &&
11601 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11602 then
11603 # We have reworked collect2
11604 :
11605 else
11606 # We have old collect2
11607 hardcode_direct=unsupported
11608 # It fails to find uninstalled libraries when the uninstalled
11609 # path is not listed in the libpath. Setting hardcode_minus_L
11610 # to unsupported forces relinking
11611 hardcode_minus_L=yes
11612 hardcode_libdir_flag_spec='-L$libdir'
11613 hardcode_libdir_separator=
11614 fi
11615 ;;
11616 esac
11617 shared_flag='-shared'
11618 if test yes = "$aix_use_runtimelinking"; then
11619 shared_flag="$shared_flag "'$wl-G'
11620 fi
11621 # Need to ensure runtime linking is disabled for the traditional
11622 # shared library, or the linker may eventually find shared libraries
11623 # /with/ Import File - we do not want to mix them.
11624 shared_flag_aix='-shared'
11625 shared_flag_svr4='-shared $wl-G'
11626 else
11627 # not using gcc
11628 if test ia64 = "$host_cpu"; then
11629 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11630 # chokes on -Wl,-G. The following line is correct:
11631 shared_flag='-G'
11632 else
11633 if test yes = "$aix_use_runtimelinking"; then
11634 shared_flag='$wl-G'
11635 else
11636 shared_flag='$wl-bM:SRE'
11637 fi
11638 shared_flag_aix='$wl-bM:SRE'
11639 shared_flag_svr4='$wl-G'
11640 fi
11641 fi
11642
11643 export_dynamic_flag_spec='$wl-bexpall'
11644 # It seems that -bexpall does not export symbols beginning with
11645 # underscore (_), so it is better to generate a list of symbols to export.
11646 always_export_symbols=yes
11647 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11648 # Warning - without using the other runtime loading flags (-brtl),
11649 # -berok will link without error, but may produce a broken library.
11650 allow_undefined_flag='-berok'
11651 # Determine the default libpath from the value encoded in an
11652 # empty executable.
11653 if test set = "${lt_cv_aix_libpath+set}"; then
11654 aix_libpath=$lt_cv_aix_libpath
11655 else
11656 if test ${lt_cv_aix_libpath_+y}
11657 then :
11658 printf %s "(cached) " >&6
11659 else case e in #(
11660 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11661 /* end confdefs.h. */
11662
11663 int
11664 main (void)
11665 {
11666
11667 ;
11668 return 0;
11669 }
11670 _ACEOF
11671 if ac_fn_c_try_link "$LINENO"
11672 then :
11673
11674 lt_aix_libpath_sed='
11675 /Import File Strings/,/^$/ {
11676 /^0/ {
11677 s/^0 *\([^ ]*\) *$/\1/
11678 p
11679 }
11680 }'
11681 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11682 # Check for a 64-bit object if we didn't find anything.
11683 if test -z "$lt_cv_aix_libpath_"; then
11684 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11685 fi
11686 fi
11687 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11688 conftest$ac_exeext conftest.$ac_ext
11689 if test -z "$lt_cv_aix_libpath_"; then
11690 lt_cv_aix_libpath_=/usr/lib:/lib
11691 fi
11692 ;;
11693 esac
11694 fi
11695
11696 aix_libpath=$lt_cv_aix_libpath_
11697 fi
11698
11699 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11700 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
11701 else
11702 if test ia64 = "$host_cpu"; then
11703 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11704 allow_undefined_flag="-z nodefs"
11705 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"
11706 else
11707 # Determine the default libpath from the value encoded in an
11708 # empty executable.
11709 if test set = "${lt_cv_aix_libpath+set}"; then
11710 aix_libpath=$lt_cv_aix_libpath
11711 else
11712 if test ${lt_cv_aix_libpath_+y}
11713 then :
11714 printf %s "(cached) " >&6
11715 else case e in #(
11716 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11717 /* end confdefs.h. */
11718
11719 int
11720 main (void)
11721 {
11722
11723 ;
11724 return 0;
11725 }
11726 _ACEOF
11727 if ac_fn_c_try_link "$LINENO"
11728 then :
11729
11730 lt_aix_libpath_sed='
11731 /Import File Strings/,/^$/ {
11732 /^0/ {
11733 s/^0 *\([^ ]*\) *$/\1/
11734 p
11735 }
11736 }'
11737 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11738 # Check for a 64-bit object if we didn't find anything.
11739 if test -z "$lt_cv_aix_libpath_"; then
11740 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11741 fi
11742 fi
11743 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11744 conftest$ac_exeext conftest.$ac_ext
11745 if test -z "$lt_cv_aix_libpath_"; then
11746 lt_cv_aix_libpath_=/usr/lib:/lib
11747 fi
11748 ;;
11749 esac
11750 fi
11751
11752 aix_libpath=$lt_cv_aix_libpath_
11753 fi
11754
11755 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11756 # Warning - without using the other run time loading flags,
11757 # -berok will link without error, but may produce a broken library.
11758 no_undefined_flag=' $wl-bernotok'
11759 allow_undefined_flag=' $wl-berok'
11760 if test yes = "$with_gnu_ld"; then
11761 # We only use this code for GNU lds that support --whole-archive.
11762 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11763 else
11764 # Exported symbols can be pulled into shared objects from archives
11765 whole_archive_flag_spec='$convenience'
11766 fi
11767 archive_cmds_need_lc=yes
11768 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11769 # -brtl affects multiple linker settings, -berok does not and is overridden later
11770 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11771 if test svr4 != "$with_aix_soname"; then
11772 # This is similar to how AIX traditionally builds its shared libraries.
11773 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'
11774 fi
11775 if test aix != "$with_aix_soname"; then
11776 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'
11777 else
11778 # used by -dlpreopen to get the symbols
11779 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
11780 fi
11781 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11782 fi
11783 fi
11784 ;;
11785
11786 amigaos*)
11787 case $host_cpu in
11788 powerpc)
11789 # see comment about AmigaOS4 .so support
11790 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11791 archive_expsym_cmds=''
11792 ;;
11793 m68k)
11794 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)'
11795 hardcode_libdir_flag_spec='-L$libdir'
11796 hardcode_minus_L=yes
11797 ;;
11798 esac
11799 ;;
11800
11801 bsdi[45]*)
11802 export_dynamic_flag_spec=-rdynamic
11803 ;;
11804
11805 cygwin* | mingw* | windows* | pw32* | cegcc*)
11806 # When not using gcc, we currently assume that we are using
11807 # Microsoft Visual C++ or Intel C++ Compiler.
11808 # hardcode_libdir_flag_spec is actually meaningless, as there is
11809 # no search path for DLLs.
11810 case $cc_basename in
11811 cl* | icl*)
11812 # Native MSVC or ICC
11813 hardcode_libdir_flag_spec=' '
11814 allow_undefined_flag=unsupported
11815 always_export_symbols=yes
11816 file_list_spec='@'
11817 # Tell ltmain to make .lib files, not .a files.
11818 libext=lib
11819 # Tell ltmain to make .dll files, not .so files.
11820 shrext_cmds=.dll
11821 # FIXME: Setting linknames here is a bad hack.
11822 archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11823 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11824 cp "$export_symbols" "$output_objdir/$soname.def";
11825 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11826 else
11827 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11828 fi~
11829 $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11830 linknames='
11831 # The linker will not automatically build a static lib if we build a DLL.
11832 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11833 enable_shared_with_static_runtimes=yes
11834 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11835 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11836 # Don't use ranlib
11837 old_postinstall_cmds='chmod 644 $oldlib'
11838 postlink_cmds='lt_outputfile="@OUTPUT@"~
11839 lt_tool_outputfile="@TOOL_OUTPUT@"~
11840 case $lt_outputfile in
11841 *.exe|*.EXE) ;;
11842 *)
11843 lt_outputfile=$lt_outputfile.exe
11844 lt_tool_outputfile=$lt_tool_outputfile.exe
11845 ;;
11846 esac~
11847 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11848 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11849 $RM "$lt_outputfile.manifest";
11850 fi'
11851 ;;
11852 *)
11853 # Assume MSVC and ICC wrapper
11854 hardcode_libdir_flag_spec=' '
11855 allow_undefined_flag=unsupported
11856 # Tell ltmain to make .lib files, not .a files.
11857 libext=lib
11858 # Tell ltmain to make .dll files, not .so files.
11859 shrext_cmds=.dll
11860 # FIXME: Setting linknames here is a bad hack.
11861 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11862 # The linker will automatically build a .lib file if we build a DLL.
11863 old_archive_from_new_cmds='true'
11864 # FIXME: Should let the user specify the lib program.
11865 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11866 enable_shared_with_static_runtimes=yes
11867 ;;
11868 esac
11869 ;;
11870
11871 darwin* | rhapsody*)
11872
11873
11874 archive_cmds_need_lc=no
11875 hardcode_direct=no
11876 hardcode_automatic=yes
11877 hardcode_shlibpath_var=unsupported
11878 if test yes = "$lt_cv_ld_force_load"; then
11879 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\"`'
11880
11881 else
11882 whole_archive_flag_spec=''
11883 fi
11884 link_all_deplibs=yes
11885 allow_undefined_flag=$_lt_dar_allow_undefined
11886 case $cc_basename in
11887 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11888 *) _lt_dar_can_shared=$GCC ;;
11889 esac
11890 if test yes = "$_lt_dar_can_shared"; then
11891 output_verbose_link_cmd=func_echo_all
11892 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11893 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11894 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"
11895 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"
11896
11897 else
11898 ld_shlibs=no
11899 fi
11900
11901 ;;
11902
11903 dgux*)
11904 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11905 hardcode_libdir_flag_spec='-L$libdir'
11906 hardcode_shlibpath_var=no
11907 ;;
11908
11909 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11910 # support. Future versions do this automatically, but an explicit c++rt0.o
11911 # does not break anything, and helps significantly (at the cost of a little
11912 # extra space).
11913 freebsd2.2*)
11914 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11915 hardcode_libdir_flag_spec='-R$libdir'
11916 hardcode_direct=yes
11917 hardcode_shlibpath_var=no
11918 ;;
11919
11920 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11921 freebsd2.*)
11922 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11923 hardcode_direct=yes
11924 hardcode_minus_L=yes
11925 hardcode_shlibpath_var=no
11926 ;;
11927
11928 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11929 freebsd* | dragonfly* | midnightbsd*)
11930 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11931 hardcode_libdir_flag_spec='-R$libdir'
11932 hardcode_direct=yes
11933 hardcode_shlibpath_var=no
11934 ;;
11935
11936 hpux9*)
11937 if test yes = "$GCC"; then
11938 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'
11939 else
11940 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'
11941 fi
11942 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11943 hardcode_libdir_separator=:
11944 hardcode_direct=yes
11945
11946 # hardcode_minus_L: Not really in the search PATH,
11947 # but as the default location of the library.
11948 hardcode_minus_L=yes
11949 export_dynamic_flag_spec='$wl-E'
11950 ;;
11951
11952 hpux10*)
11953 if test yes,no = "$GCC,$with_gnu_ld"; then
11954 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11955 else
11956 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11957 fi
11958 if test no = "$with_gnu_ld"; then
11959 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11960 hardcode_libdir_separator=:
11961 hardcode_direct=yes
11962 hardcode_direct_absolute=yes
11963 export_dynamic_flag_spec='$wl-E'
11964 # hardcode_minus_L: Not really in the search PATH,
11965 # but as the default location of the library.
11966 hardcode_minus_L=yes
11967 fi
11968 ;;
11969
11970 hpux11*)
11971 if test yes,no = "$GCC,$with_gnu_ld"; then
11972 case $host_cpu in
11973 hppa*64*)
11974 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11975 ;;
11976 ia64*)
11977 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11978 ;;
11979 *)
11980 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11981 ;;
11982 esac
11983 else
11984 case $host_cpu in
11985 hppa*64*)
11986 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11987 ;;
11988 ia64*)
11989 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11990 ;;
11991 *)
11992
11993 # Older versions of the 11.00 compiler do not understand -b yet
11994 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11996 printf %s "checking if $CC understands -b... " >&6; }
11997 if test ${lt_cv_prog_compiler__b+y}
11998 then :
11999 printf %s "(cached) " >&6
12000 else case e in #(
12001 e) lt_cv_prog_compiler__b=no
12002 save_LDFLAGS=$LDFLAGS
12003 LDFLAGS="$LDFLAGS -b"
12004 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12005 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12006 # The linker can only warn and ignore the option if not recognized
12007 # So say no if there are warnings
12008 if test -s conftest.err; then
12009 # Append any errors to the config.log.
12010 cat conftest.err 1>&5
12011 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12012 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12013 if diff conftest.exp conftest.er2 >/dev/null; then
12014 lt_cv_prog_compiler__b=yes
12015 fi
12016 else
12017 lt_cv_prog_compiler__b=yes
12018 fi
12019 fi
12020 $RM -r conftest*
12021 LDFLAGS=$save_LDFLAGS
12022 ;;
12023 esac
12024 fi
12025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12026 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
12027
12028 if test yes = "$lt_cv_prog_compiler__b"; then
12029 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12030 else
12031 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12032 fi
12033
12034 ;;
12035 esac
12036 fi
12037 if test no = "$with_gnu_ld"; then
12038 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12039 hardcode_libdir_separator=:
12040
12041 case $host_cpu in
12042 hppa*64*|ia64*)
12043 hardcode_direct=no
12044 hardcode_shlibpath_var=no
12045 ;;
12046 *)
12047 hardcode_direct=yes
12048 hardcode_direct_absolute=yes
12049 export_dynamic_flag_spec='$wl-E'
12050
12051 # hardcode_minus_L: Not really in the search PATH,
12052 # but as the default location of the library.
12053 hardcode_minus_L=yes
12054 ;;
12055 esac
12056 fi
12057 ;;
12058
12059 irix5* | irix6* | nonstopux*)
12060 if test yes = "$GCC"; then
12061 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'
12062 # Try to use the -exported_symbol ld option, if it does not
12063 # work, assume that -exports_file does not work either and
12064 # implicitly export all symbols.
12065 # This should be the same for all languages, so no per-tag cache variable.
12066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12067 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12068 if test ${lt_cv_irix_exported_symbol+y}
12069 then :
12070 printf %s "(cached) " >&6
12071 else case e in #(
12072 e) save_LDFLAGS=$LDFLAGS
12073 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
12074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12075 /* end confdefs.h. */
12076 int foo (void) { return 0; }
12077 _ACEOF
12078 if ac_fn_c_try_link "$LINENO"
12079 then :
12080 lt_cv_irix_exported_symbol=yes
12081 else case e in #(
12082 e) lt_cv_irix_exported_symbol=no ;;
12083 esac
12084 fi
12085 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12086 conftest$ac_exeext conftest.$ac_ext
12087 LDFLAGS=$save_LDFLAGS ;;
12088 esac
12089 fi
12090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12091 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
12092 if test yes = "$lt_cv_irix_exported_symbol"; then
12093 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'
12094 fi
12095 else
12096 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'
12097 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'
12098 fi
12099 archive_cmds_need_lc='no'
12100 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12101 hardcode_libdir_separator=:
12102 inherit_rpath=yes
12103 link_all_deplibs=yes
12104 ;;
12105
12106 linux*)
12107 case $cc_basename in
12108 tcc*)
12109 # Fabrice Bellard et al's Tiny C Compiler
12110 ld_shlibs=yes
12111 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12112 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12113 ;;
12114 esac
12115 ;;
12116
12117 *-mlibc)
12118 ;;
12119
12120 netbsd* | netbsdelf*-gnu)
12121 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12122 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12123 else
12124 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12125 fi
12126 hardcode_libdir_flag_spec='-R$libdir'
12127 hardcode_direct=yes
12128 hardcode_shlibpath_var=no
12129 ;;
12130
12131 newsos6)
12132 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12133 hardcode_direct=yes
12134 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12135 hardcode_libdir_separator=:
12136 hardcode_shlibpath_var=no
12137 ;;
12138
12139 *nto* | *qnx*)
12140 ;;
12141
12142 openbsd*)
12143 if test -f /usr/libexec/ld.so; then
12144 hardcode_direct=yes
12145 hardcode_shlibpath_var=no
12146 hardcode_direct_absolute=yes
12147 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12148 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12149 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12150 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12151 export_dynamic_flag_spec='$wl-E'
12152 else
12153 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12154 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12155 fi
12156 else
12157 ld_shlibs=no
12158 fi
12159 ;;
12160
12161 os2*)
12162 hardcode_libdir_flag_spec='-L$libdir'
12163 hardcode_minus_L=yes
12164 allow_undefined_flag=unsupported
12165 shrext_cmds=.dll
12166 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12167 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12168 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12169 $ECHO EXPORTS >> $output_objdir/$libname.def~
12170 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12171 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12172 emximp -o $lib $output_objdir/$libname.def'
12173 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12174 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12175 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12176 $ECHO EXPORTS >> $output_objdir/$libname.def~
12177 prefix_cmds="$SED"~
12178 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12179 prefix_cmds="$prefix_cmds -e 1d";
12180 fi~
12181 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12182 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12183 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12184 emximp -o $lib $output_objdir/$libname.def'
12185 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12186 enable_shared_with_static_runtimes=yes
12187 file_list_spec='@'
12188 ;;
12189
12190 osf3*)
12191 if test yes = "$GCC"; then
12192 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12193 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'
12194 else
12195 allow_undefined_flag=' -expect_unresolved \*'
12196 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'
12197 fi
12198 archive_cmds_need_lc='no'
12199 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12200 hardcode_libdir_separator=:
12201 ;;
12202
12203 osf4* | osf5*) # as osf3* with the addition of -msym flag
12204 if test yes = "$GCC"; then
12205 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12206 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'
12207 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12208 else
12209 allow_undefined_flag=' -expect_unresolved \*'
12210 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'
12211 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~
12212 $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'
12213
12214 # Both c and cxx compiler support -rpath directly
12215 hardcode_libdir_flag_spec='-rpath $libdir'
12216 fi
12217 archive_cmds_need_lc='no'
12218 hardcode_libdir_separator=:
12219 ;;
12220
12221 serenity*)
12222 ;;
12223
12224 solaris*)
12225 no_undefined_flag=' -z defs'
12226 if test yes = "$GCC"; then
12227 wlarc='$wl'
12228 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12229 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12230 $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'
12231 else
12232 case `$CC -V 2>&1` in
12233 *"Compilers 5.0"*)
12234 wlarc=''
12235 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12236 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12237 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12238 ;;
12239 *)
12240 wlarc='$wl'
12241 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12242 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12243 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12244 ;;
12245 esac
12246 fi
12247 hardcode_libdir_flag_spec='-R$libdir'
12248 hardcode_shlibpath_var=no
12249 case $host_os in
12250 solaris2.[0-5] | solaris2.[0-5].*) ;;
12251 *)
12252 # The compiler driver will combine and reorder linker options,
12253 # but understands '-z linker_flag'. GCC discards it without '$wl',
12254 # but is careful enough not to reorder.
12255 # Supported since Solaris 2.6 (maybe 2.5.1?)
12256 if test yes = "$GCC"; then
12257 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12258 else
12259 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12260 fi
12261 ;;
12262 esac
12263 link_all_deplibs=yes
12264 ;;
12265
12266 sunos4*)
12267 if test sequent = "$host_vendor"; then
12268 # Use $CC to link under sequent, because it throws in some extra .o
12269 # files that make .init and .fini sections work.
12270 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12271 else
12272 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12273 fi
12274 hardcode_libdir_flag_spec='-L$libdir'
12275 hardcode_direct=yes
12276 hardcode_minus_L=yes
12277 hardcode_shlibpath_var=no
12278 ;;
12279
12280 sysv4)
12281 case $host_vendor in
12282 sni)
12283 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12284 hardcode_direct=yes # is this really true???
12285 ;;
12286 siemens)
12287 ## LD is ld it makes a PLAMLIB
12288 ## CC just makes a GrossModule.
12289 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12290 reload_cmds='$CC -r -o $output$reload_objs'
12291 hardcode_direct=no
12292 ;;
12293 motorola)
12294 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12295 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12296 ;;
12297 esac
12298 runpath_var='LD_RUN_PATH'
12299 hardcode_shlibpath_var=no
12300 ;;
12301
12302 sysv4.3*)
12303 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12304 hardcode_shlibpath_var=no
12305 export_dynamic_flag_spec='-Bexport'
12306 ;;
12307
12308 sysv4*MP*)
12309 if test -d /usr/nec; then
12310 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12311 hardcode_shlibpath_var=no
12312 runpath_var=LD_RUN_PATH
12313 hardcode_runpath_var=yes
12314 ld_shlibs=yes
12315 fi
12316 ;;
12317
12318 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12319 no_undefined_flag='$wl-z,text'
12320 archive_cmds_need_lc=no
12321 hardcode_shlibpath_var=no
12322 runpath_var='LD_RUN_PATH'
12323
12324 if test yes = "$GCC"; then
12325 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12326 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12327 else
12328 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12329 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12330 fi
12331 ;;
12332
12333 sysv5* | sco3.2v5* | sco5v6*)
12334 # Note: We CANNOT use -z defs as we might desire, because we do not
12335 # link with -lc, and that would cause any symbols used from libc to
12336 # always be unresolved, which means just about no library would
12337 # ever link correctly. If we're not using GNU ld we use -z text
12338 # though, which does catch some bad symbols but isn't as heavy-handed
12339 # as -z defs.
12340 no_undefined_flag='$wl-z,text'
12341 allow_undefined_flag='$wl-z,nodefs'
12342 archive_cmds_need_lc=no
12343 hardcode_shlibpath_var=no
12344 hardcode_libdir_flag_spec='$wl-R,$libdir'
12345 hardcode_libdir_separator=':'
12346 link_all_deplibs=yes
12347 export_dynamic_flag_spec='$wl-Bexport'
12348 runpath_var='LD_RUN_PATH'
12349
12350 if test yes = "$GCC"; then
12351 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12352 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12353 else
12354 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12355 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12356 fi
12357 ;;
12358
12359 uts4*)
12360 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12361 hardcode_libdir_flag_spec='-L$libdir'
12362 hardcode_shlibpath_var=no
12363 ;;
12364
12365 *)
12366 ld_shlibs=no
12367 ;;
12368 esac
12369
12370 if test sni = "$host_vendor"; then
12371 case $host in
12372 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12373 export_dynamic_flag_spec='$wl-Blargedynsym'
12374 ;;
12375 esac
12376 fi
12377 fi
12378
12379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12380 printf "%s\n" "$ld_shlibs" >&6; }
12381 test no = "$ld_shlibs" && can_build_shared=no
12382
12383 with_gnu_ld=$with_gnu_ld
12384
12385
12386
12387
12388
12389
12390
12391
12392
12393
12394
12395
12396
12397
12398
12399 #
12400 # Do we need to explicitly link libc?
12401 #
12402 case "x$archive_cmds_need_lc" in
12403 x|xyes)
12404 # Assume -lc should be added
12405 archive_cmds_need_lc=yes
12406
12407 if test yes,yes = "$GCC,$enable_shared"; then
12408 case $archive_cmds in
12409 *'~'*)
12410 # FIXME: we may have to deal with multi-command sequences.
12411 ;;
12412 '$CC '*)
12413 # Test whether the compiler implicitly links with -lc since on some
12414 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12415 # to ld, don't add -lc before -lgcc.
12416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12417 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
12418 if test ${lt_cv_archive_cmds_need_lc+y}
12419 then :
12420 printf %s "(cached) " >&6
12421 else case e in #(
12422 e) $RM conftest*
12423 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12424
12425 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12426 (eval $ac_compile) 2>&5
12427 ac_status=$?
12428 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12429 test $ac_status = 0; } 2>conftest.err; then
12430 soname=conftest
12431 lib=conftest
12432 libobjs=conftest.$ac_objext
12433 deplibs=
12434 wl=$lt_prog_compiler_wl
12435 pic_flag=$lt_prog_compiler_pic
12436 compiler_flags=-v
12437 linker_flags=-v
12438 verstring=
12439 output_objdir=.
12440 libname=conftest
12441 lt_save_allow_undefined_flag=$allow_undefined_flag
12442 allow_undefined_flag=
12443 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12444 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12445 ac_status=$?
12446 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12447 test $ac_status = 0; }
12448 then
12449 lt_cv_archive_cmds_need_lc=no
12450 else
12451 lt_cv_archive_cmds_need_lc=yes
12452 fi
12453 allow_undefined_flag=$lt_save_allow_undefined_flag
12454 else
12455 cat conftest.err 1>&5
12456 fi
12457 $RM conftest*
12458 ;;
12459 esac
12460 fi
12461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12462 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
12463 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12464 ;;
12465 esac
12466 fi
12467 ;;
12468 esac
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616
12617
12618
12619
12620
12621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12622 printf %s "checking dynamic linker characteristics... " >&6; }
12623
12624 if test yes = "$GCC"; then
12625 case $host_os in
12626 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12627 *) lt_awk_arg='/^libraries:/' ;;
12628 esac
12629 case $host_os in
12630 mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12631 *) lt_sed_strip_eq='s|=/|/|g' ;;
12632 esac
12633 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12634 case $lt_search_path_spec in
12635 *\;*)
12636 # if the path contains ";" then we assume it to be the separator
12637 # otherwise default to the standard path separator (i.e. ":") - it is
12638 # assumed that no part of a normal pathname contains ";" but that should
12639 # okay in the real world where ";" in dirpaths is itself problematic.
12640 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12641 ;;
12642 *)
12643 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12644 ;;
12645 esac
12646 # Ok, now we have the path, separated by spaces, we can step through it
12647 # and add multilib dir if necessary...
12648 lt_tmp_lt_search_path_spec=
12649 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12650 # ...but if some path component already ends with the multilib dir we assume
12651 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12652 case "$lt_multi_os_dir; $lt_search_path_spec " in
12653 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12654 lt_multi_os_dir=
12655 ;;
12656 esac
12657 for lt_sys_path in $lt_search_path_spec; do
12658 if test -d "$lt_sys_path$lt_multi_os_dir"; then
12659 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12660 elif test -n "$lt_multi_os_dir"; then
12661 test -d "$lt_sys_path" && \
12662 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12663 fi
12664 done
12665 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12666 BEGIN {RS = " "; FS = "/|\n";} {
12667 lt_foo = "";
12668 lt_count = 0;
12669 for (lt_i = NF; lt_i > 0; lt_i--) {
12670 if ($lt_i != "" && $lt_i != ".") {
12671 if ($lt_i == "..") {
12672 lt_count++;
12673 } else {
12674 if (lt_count == 0) {
12675 lt_foo = "/" $lt_i lt_foo;
12676 } else {
12677 lt_count--;
12678 }
12679 }
12680 }
12681 }
12682 if (lt_foo != "") { lt_freq[lt_foo]++; }
12683 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12684 }'`
12685 # AWK program above erroneously prepends '/' to C:/dos/paths
12686 # for these hosts.
12687 case $host_os in
12688 mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12689 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12690 esac
12691 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12692 else
12693 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12694 fi
12695 library_names_spec=
12696 libname_spec='lib$name'
12697 soname_spec=
12698 shrext_cmds=.so
12699 postinstall_cmds=
12700 postuninstall_cmds=
12701 finish_cmds=
12702 finish_eval=
12703 shlibpath_var=
12704 shlibpath_overrides_runpath=unknown
12705 version_type=none
12706 dynamic_linker="$host_os ld.so"
12707 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12708 need_lib_prefix=unknown
12709 hardcode_into_libs=no
12710
12711 # when you set need_version to no, make sure it does not cause -set_version
12712 # flags to be left without arguments
12713 need_version=unknown
12714
12715
12716
12717 case $host_os in
12718 aix3*)
12719 version_type=linux # correct to gnu/linux during the next big refactor
12720 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12721 shlibpath_var=LIBPATH
12722
12723 # AIX 3 has no versioning support, so we append a major version to the name.
12724 soname_spec='$libname$release$shared_ext$major'
12725 ;;
12726
12727 aix[4-9]*)
12728 version_type=linux # correct to gnu/linux during the next big refactor
12729 need_lib_prefix=no
12730 need_version=no
12731 hardcode_into_libs=yes
12732 if test ia64 = "$host_cpu"; then
12733 # AIX 5 supports IA64
12734 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12735 shlibpath_var=LD_LIBRARY_PATH
12736 else
12737 # With GCC up to 2.95.x, collect2 would create an import file
12738 # for dependence libraries. The import file would start with
12739 # the line '#! .'. This would cause the generated library to
12740 # depend on '.', always an invalid library. This was fixed in
12741 # development snapshots of GCC prior to 3.0.
12742 case $host_os in
12743 aix4 | aix4.[01] | aix4.[01].*)
12744 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12745 echo ' yes '
12746 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12747 :
12748 else
12749 can_build_shared=no
12750 fi
12751 ;;
12752 esac
12753 # Using Import Files as archive members, it is possible to support
12754 # filename-based versioning of shared library archives on AIX. While
12755 # this would work for both with and without runtime linking, it will
12756 # prevent static linking of such archives. So we do filename-based
12757 # shared library versioning with .so extension only, which is used
12758 # when both runtime linking and shared linking is enabled.
12759 # Unfortunately, runtime linking may impact performance, so we do
12760 # not want this to be the default eventually. Also, we use the
12761 # versioned .so libs for executables only if there is the -brtl
12762 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
12763 # To allow for filename-based versioning support, we need to create
12764 # libNAME.so.V as an archive file, containing:
12765 # *) an Import File, referring to the versioned filename of the
12766 # archive as well as the shared archive member, telling the
12767 # bitwidth (32 or 64) of that shared object, and providing the
12768 # list of exported symbols of that shared object, eventually
12769 # decorated with the 'weak' keyword
12770 # *) the shared object with the F_LOADONLY flag set, to really avoid
12771 # it being seen by the linker.
12772 # At run time we better use the real file rather than another symlink,
12773 # but for link time we create the symlink libNAME.so -> libNAME.so.V
12774
12775 case $with_aix_soname,$aix_use_runtimelinking in
12776 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12777 # soname into executable. Probably we can add versioning support to
12778 # collect2, so additional links can be useful in future.
12779 aix,yes) # traditional libtool
12780 dynamic_linker='AIX unversionable lib.so'
12781 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12782 # instead of lib<name>.a to let people know that these are not
12783 # typical AIX shared libraries.
12784 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12785 ;;
12786 aix,no) # traditional AIX only
12787 dynamic_linker='AIX lib.a(lib.so.V)'
12788 # We preserve .a as extension for shared libraries through AIX4.2
12789 # and later when we are not doing run time linking.
12790 library_names_spec='$libname$release.a $libname.a'
12791 soname_spec='$libname$release$shared_ext$major'
12792 ;;
12793 svr4,*) # full svr4 only
12794 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12795 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12796 # We do not specify a path in Import Files, so LIBPATH fires.
12797 shlibpath_overrides_runpath=yes
12798 ;;
12799 *,yes) # both, prefer svr4
12800 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12801 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12802 # unpreferred sharedlib libNAME.a needs extra handling
12803 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"'
12804 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"'
12805 # We do not specify a path in Import Files, so LIBPATH fires.
12806 shlibpath_overrides_runpath=yes
12807 ;;
12808 *,no) # both, prefer aix
12809 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12810 library_names_spec='$libname$release.a $libname.a'
12811 soname_spec='$libname$release$shared_ext$major'
12812 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12813 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)'
12814 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"'
12815 ;;
12816 esac
12817 shlibpath_var=LIBPATH
12818 fi
12819 ;;
12820
12821 amigaos*)
12822 case $host_cpu in
12823 powerpc)
12824 # Since July 2007 AmigaOS4 officially supports .so libraries.
12825 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12826 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12827 ;;
12828 m68k)
12829 library_names_spec='$libname.ixlibrary $libname.a'
12830 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12831 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'
12832 ;;
12833 esac
12834 ;;
12835
12836 beos*)
12837 library_names_spec='$libname$shared_ext'
12838 dynamic_linker="$host_os ld.so"
12839 shlibpath_var=LIBRARY_PATH
12840 ;;
12841
12842 bsdi[45]*)
12843 version_type=linux # correct to gnu/linux during the next big refactor
12844 need_version=no
12845 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12846 soname_spec='$libname$release$shared_ext$major'
12847 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12848 shlibpath_var=LD_LIBRARY_PATH
12849 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12850 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12851 # the default ld.so.conf also contains /usr/contrib/lib and
12852 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12853 # libtool to hard-code these into programs
12854 ;;
12855
12856 cygwin* | mingw* | windows* | pw32* | cegcc*)
12857 version_type=windows
12858 shrext_cmds=.dll
12859 need_version=no
12860 need_lib_prefix=no
12861
12862 case $GCC,$cc_basename in
12863 yes,*)
12864 # gcc
12865 library_names_spec='$libname.dll.a'
12866 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12867 # If user builds GCC with multilib enabled,
12868 # it should just install on $(libdir)
12869 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
12870 if test xyes = x"$multilib"; then
12871 postinstall_cmds='base_file=`basename \$file`~
12872 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12873 dldir=$destdir/`dirname \$dlpath`~
12874 $install_prog $dir/$dlname $destdir/$dlname~
12875 chmod a+x $destdir/$dlname~
12876 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12877 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
12878 fi'
12879 else
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 test -d \$dldir || mkdir -p \$dldir~
12884 $install_prog $dir/$dlname \$dldir/$dlname~
12885 chmod a+x \$dldir/$dlname~
12886 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12887 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12888 fi'
12889 fi
12890 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12891 dlpath=$dir/\$dldll~
12892 $RM \$dlpath'
12893 shlibpath_overrides_runpath=yes
12894
12895 case $host_os in
12896 cygwin*)
12897 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12898 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12899
12900 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12901 ;;
12902 mingw* | windows* | cegcc*)
12903 # MinGW DLLs use traditional 'lib' prefix
12904 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12905 ;;
12906 pw32*)
12907 # pw32 DLLs use 'pw' prefix rather than 'lib'
12908 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12909 ;;
12910 esac
12911 dynamic_linker='Win32 ld.exe'
12912 ;;
12913
12914 *,cl* | *,icl*)
12915 # Native MSVC or ICC
12916 libname_spec='$name'
12917 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12918 library_names_spec='$libname.dll.lib'
12919
12920 case $build_os in
12921 mingw* | windows*)
12922 sys_lib_search_path_spec=
12923 lt_save_ifs=$IFS
12924 IFS=';'
12925 for lt_path in $LIB
12926 do
12927 IFS=$lt_save_ifs
12928 # Let DOS variable expansion print the short 8.3 style file name.
12929 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12930 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12931 done
12932 IFS=$lt_save_ifs
12933 # Convert to MSYS style.
12934 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12935 ;;
12936 cygwin*)
12937 # Convert to unix form, then to dos form, then back to unix form
12938 # but this time dos style (no spaces!) so that the unix form looks
12939 # like /cygdrive/c/PROGRA~1:/cygdr...
12940 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12941 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12942 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12943 ;;
12944 *)
12945 sys_lib_search_path_spec=$LIB
12946 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12947 # It is most probably a Windows format PATH.
12948 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12949 else
12950 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12951 fi
12952 # FIXME: find the short name or the path components, as spaces are
12953 # common. (e.g. "Program Files" -> "PROGRA~1")
12954 ;;
12955 esac
12956
12957 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12958 postinstall_cmds='base_file=`basename \$file`~
12959 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12960 dldir=$destdir/`dirname \$dlpath`~
12961 test -d \$dldir || mkdir -p \$dldir~
12962 $install_prog $dir/$dlname \$dldir/$dlname'
12963 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12964 dlpath=$dir/\$dldll~
12965 $RM \$dlpath'
12966 shlibpath_overrides_runpath=yes
12967 dynamic_linker='Win32 link.exe'
12968 ;;
12969
12970 *)
12971 # Assume MSVC and ICC wrapper
12972 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12973 dynamic_linker='Win32 ld.exe'
12974 ;;
12975 esac
12976 # FIXME: first we should search . and the directory the executable is in
12977 shlibpath_var=PATH
12978 ;;
12979
12980 darwin* | rhapsody*)
12981 dynamic_linker="$host_os dyld"
12982 version_type=darwin
12983 need_lib_prefix=no
12984 need_version=no
12985 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12986 soname_spec='$libname$release$major$shared_ext'
12987 shlibpath_overrides_runpath=yes
12988 shlibpath_var=DYLD_LIBRARY_PATH
12989 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12990
12991 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12992 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12993 ;;
12994
12995 dgux*)
12996 version_type=linux # correct to gnu/linux during the next big refactor
12997 need_lib_prefix=no
12998 need_version=no
12999 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13000 soname_spec='$libname$release$shared_ext$major'
13001 shlibpath_var=LD_LIBRARY_PATH
13002 ;;
13003
13004 freebsd* | dragonfly* | midnightbsd*)
13005 # DragonFly does not have aout. When/if they implement a new
13006 # versioning mechanism, adjust this.
13007 if test -x /usr/bin/objformat; then
13008 objformat=`/usr/bin/objformat`
13009 else
13010 case $host_os in
13011 freebsd[23].*) objformat=aout ;;
13012 *) objformat=elf ;;
13013 esac
13014 fi
13015 version_type=freebsd-$objformat
13016 case $version_type in
13017 freebsd-elf*)
13018 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13019 soname_spec='$libname$release$shared_ext$major'
13020 need_version=no
13021 need_lib_prefix=no
13022 ;;
13023 freebsd-*)
13024 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13025 need_version=yes
13026 ;;
13027 esac
13028 case $host_cpu in
13029 powerpc64)
13030 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
13031 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
13032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13033 /* end confdefs.h. */
13034 int test_pointer_size[sizeof (void *) - 5];
13035
13036 _ACEOF
13037 if ac_fn_c_try_compile "$LINENO"
13038 then :
13039 shlibpath_var=LD_LIBRARY_PATH
13040 else case e in #(
13041 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
13042 esac
13043 fi
13044 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13045 ;;
13046 *)
13047 shlibpath_var=LD_LIBRARY_PATH
13048 ;;
13049 esac
13050 case $host_os in
13051 freebsd2.*)
13052 shlibpath_overrides_runpath=yes
13053 ;;
13054 freebsd3.[01]* | freebsdelf3.[01]*)
13055 shlibpath_overrides_runpath=yes
13056 hardcode_into_libs=yes
13057 ;;
13058 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13059 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13060 shlibpath_overrides_runpath=no
13061 hardcode_into_libs=yes
13062 ;;
13063 *) # from 4.6 on, and DragonFly
13064 shlibpath_overrides_runpath=yes
13065 hardcode_into_libs=yes
13066 ;;
13067 esac
13068 ;;
13069
13070 haiku*)
13071 version_type=linux # correct to gnu/linux during the next big refactor
13072 need_lib_prefix=no
13073 need_version=no
13074 dynamic_linker="$host_os runtime_loader"
13075 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13076 soname_spec='$libname$release$shared_ext$major'
13077 shlibpath_var=LIBRARY_PATH
13078 shlibpath_overrides_runpath=no
13079 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
13080 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
13081 hardcode_into_libs=no
13082 ;;
13083
13084 hpux9* | hpux10* | hpux11*)
13085 # Give a soname corresponding to the major version so that dld.sl refuses to
13086 # link against other versions.
13087 version_type=sunos
13088 need_lib_prefix=no
13089 need_version=no
13090 case $host_cpu in
13091 ia64*)
13092 shrext_cmds='.so'
13093 hardcode_into_libs=yes
13094 dynamic_linker="$host_os dld.so"
13095 shlibpath_var=LD_LIBRARY_PATH
13096 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13097 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13098 soname_spec='$libname$release$shared_ext$major'
13099 if test 32 = "$HPUX_IA64_MODE"; then
13100 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13101 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
13102 else
13103 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13104 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
13105 fi
13106 ;;
13107 hppa*64*)
13108 shrext_cmds='.sl'
13109 hardcode_into_libs=yes
13110 dynamic_linker="$host_os dld.sl"
13111 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13112 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13113 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13114 soname_spec='$libname$release$shared_ext$major'
13115 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13116 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13117 ;;
13118 *)
13119 shrext_cmds='.sl'
13120 dynamic_linker="$host_os dld.sl"
13121 shlibpath_var=SHLIB_PATH
13122 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13123 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13124 soname_spec='$libname$release$shared_ext$major'
13125 ;;
13126 esac
13127 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13128 postinstall_cmds='chmod 555 $lib'
13129 # or fails outright, so override atomically:
13130 install_override_mode=555
13131 ;;
13132
13133 interix[3-9]*)
13134 version_type=linux # correct to gnu/linux during the next big refactor
13135 need_lib_prefix=no
13136 need_version=no
13137 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13138 soname_spec='$libname$release$shared_ext$major'
13139 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13140 shlibpath_var=LD_LIBRARY_PATH
13141 shlibpath_overrides_runpath=no
13142 hardcode_into_libs=yes
13143 ;;
13144
13145 irix5* | irix6* | nonstopux*)
13146 case $host_os in
13147 nonstopux*) version_type=nonstopux ;;
13148 *)
13149 if test yes = "$lt_cv_prog_gnu_ld"; then
13150 version_type=linux # correct to gnu/linux during the next big refactor
13151 else
13152 version_type=irix
13153 fi ;;
13154 esac
13155 need_lib_prefix=no
13156 need_version=no
13157 soname_spec='$libname$release$shared_ext$major'
13158 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
13159 case $host_os in
13160 irix5* | nonstopux*)
13161 libsuff= shlibsuff=
13162 ;;
13163 *)
13164 case $LD in # libtool.m4 will add one of these switches to LD
13165 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13166 libsuff= shlibsuff= libmagic=32-bit;;
13167 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13168 libsuff=32 shlibsuff=N32 libmagic=N32;;
13169 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13170 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13171 *) libsuff= shlibsuff= libmagic=never-match;;
13172 esac
13173 ;;
13174 esac
13175 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13176 shlibpath_overrides_runpath=no
13177 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13178 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
13179 hardcode_into_libs=yes
13180 ;;
13181
13182 # No shared lib support for Linux oldld, aout, or coff.
13183 linux*oldld* | linux*aout* | linux*coff*)
13184 dynamic_linker=no
13185 ;;
13186
13187 linux*android*)
13188 version_type=none # Android doesn't support versioned libraries.
13189 need_lib_prefix=no
13190 need_version=no
13191 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
13192 soname_spec='$libname$release$shared_ext'
13193 finish_cmds=
13194 shlibpath_var=LD_LIBRARY_PATH
13195 shlibpath_overrides_runpath=yes
13196
13197 # This implies no fast_install, which is unacceptable.
13198 # Some rework will be needed to allow for fast_install
13199 # before this can be enabled.
13200 hardcode_into_libs=yes
13201
13202 dynamic_linker='Android linker'
13203 # -rpath works at least for libraries that are not overridden by
13204 # libraries installed in system locations.
13205 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13206 ;;
13207
13208 # This must be glibc/ELF.
13209 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13210 version_type=linux # correct to gnu/linux during the next big refactor
13211 need_lib_prefix=no
13212 need_version=no
13213 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13214 soname_spec='$libname$release$shared_ext$major'
13215 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13216 shlibpath_var=LD_LIBRARY_PATH
13217 shlibpath_overrides_runpath=no
13218
13219 # Some binutils ld are patched to set DT_RUNPATH
13220 if test ${lt_cv_shlibpath_overrides_runpath+y}
13221 then :
13222 printf %s "(cached) " >&6
13223 else case e in #(
13224 e) lt_cv_shlibpath_overrides_runpath=no
13225 save_LDFLAGS=$LDFLAGS
13226 save_libdir=$libdir
13227 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13228 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13230 /* end confdefs.h. */
13231
13232 int
13233 main (void)
13234 {
13235
13236 ;
13237 return 0;
13238 }
13239 _ACEOF
13240 if ac_fn_c_try_link "$LINENO"
13241 then :
13242 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
13243 then :
13244 lt_cv_shlibpath_overrides_runpath=yes
13245 fi
13246 fi
13247 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13248 conftest$ac_exeext conftest.$ac_ext
13249 LDFLAGS=$save_LDFLAGS
13250 libdir=$save_libdir
13251 ;;
13252 esac
13253 fi
13254
13255 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13256
13257 # This implies no fast_install, which is unacceptable.
13258 # Some rework will be needed to allow for fast_install
13259 # before this can be enabled.
13260 hardcode_into_libs=yes
13261
13262 # Ideally, we could use ldconfig to report *all* directories which are
13263 # searched for libraries, however this is still not possible. Aside from not
13264 # being certain /sbin/ldconfig is available, command
13265 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13266 # even though it is searched at run-time. Try to do the best guess by
13267 # appending ld.so.conf contents (and includes) to the search path.
13268 if test -f /etc/ld.so.conf; then
13269 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' ' '`
13270 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13271 fi
13272
13273 # We used to test for /lib/ld.so.1 and disable shared libraries on
13274 # powerpc, because MkLinux only supported shared libraries with the
13275 # GNU dynamic linker. Since this was broken with cross compilers,
13276 # most powerpc-linux boxes support dynamic linking these days and
13277 # people can always --disable-shared, the test was removed, and we
13278 # assume the GNU/Linux dynamic linker is in use.
13279 dynamic_linker='GNU/Linux ld.so'
13280 ;;
13281
13282 netbsdelf*-gnu)
13283 version_type=linux
13284 need_lib_prefix=no
13285 need_version=no
13286 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13287 soname_spec='$libname$release$shared_ext$major'
13288 shlibpath_var=LD_LIBRARY_PATH
13289 shlibpath_overrides_runpath=no
13290 hardcode_into_libs=yes
13291 dynamic_linker='NetBSD ld.elf_so'
13292 ;;
13293
13294 netbsd*)
13295 version_type=sunos
13296 need_lib_prefix=no
13297 need_version=no
13298 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13299 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13300 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13301 dynamic_linker='NetBSD (a.out) ld.so'
13302 else
13303 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13304 soname_spec='$libname$release$shared_ext$major'
13305 dynamic_linker='NetBSD ld.elf_so'
13306 fi
13307 shlibpath_var=LD_LIBRARY_PATH
13308 shlibpath_overrides_runpath=yes
13309 hardcode_into_libs=yes
13310 ;;
13311
13312 *-mlibc)
13313 version_type=linux # correct to gnu/linux during the next big refactor
13314 need_lib_prefix=no
13315 need_version=no
13316 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13317 soname_spec='$libname$release$shared_ext$major'
13318 dynamic_linker='mlibc ld.so'
13319 shlibpath_var=LD_LIBRARY_PATH
13320 shlibpath_overrides_runpath=no
13321 hardcode_into_libs=yes
13322 ;;
13323
13324 newsos6)
13325 version_type=linux # correct to gnu/linux during the next big refactor
13326 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13327 shlibpath_var=LD_LIBRARY_PATH
13328 shlibpath_overrides_runpath=yes
13329 ;;
13330
13331 *nto* | *qnx*)
13332 version_type=qnx
13333 need_lib_prefix=no
13334 need_version=no
13335 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13336 soname_spec='$libname$release$shared_ext$major'
13337 shlibpath_var=LD_LIBRARY_PATH
13338 shlibpath_overrides_runpath=no
13339 hardcode_into_libs=yes
13340 dynamic_linker='ldqnx.so'
13341 ;;
13342
13343 openbsd*)
13344 version_type=sunos
13345 sys_lib_dlsearch_path_spec=/usr/lib
13346 need_lib_prefix=no
13347 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13348 need_version=no
13349 else
13350 need_version=yes
13351 fi
13352 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13353 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13354 shlibpath_var=LD_LIBRARY_PATH
13355 shlibpath_overrides_runpath=yes
13356 ;;
13357
13358 os2*)
13359 libname_spec='$name'
13360 version_type=windows
13361 shrext_cmds=.dll
13362 need_version=no
13363 need_lib_prefix=no
13364 # OS/2 can only load a DLL with a base name of 8 characters or less.
13365 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13366 v=$($ECHO $release$versuffix | tr -d .-);
13367 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13368 $ECHO $n$v`$shared_ext'
13369 library_names_spec='${libname}_dll.$libext'
13370 dynamic_linker='OS/2 ld.exe'
13371 shlibpath_var=BEGINLIBPATH
13372 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13373 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13374 postinstall_cmds='base_file=`basename \$file`~
13375 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13376 dldir=$destdir/`dirname \$dlpath`~
13377 test -d \$dldir || mkdir -p \$dldir~
13378 $install_prog $dir/$dlname \$dldir/$dlname~
13379 chmod a+x \$dldir/$dlname~
13380 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13381 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13382 fi'
13383 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13384 dlpath=$dir/\$dldll~
13385 $RM \$dlpath'
13386 ;;
13387
13388 osf3* | osf4* | osf5*)
13389 version_type=osf
13390 need_lib_prefix=no
13391 need_version=no
13392 soname_spec='$libname$release$shared_ext$major'
13393 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13394 shlibpath_var=LD_LIBRARY_PATH
13395 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13396 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13397 ;;
13398
13399 rdos*)
13400 dynamic_linker=no
13401 ;;
13402
13403 serenity*)
13404 version_type=linux # correct to gnu/linux during the next big refactor
13405 need_lib_prefix=no
13406 need_version=no
13407 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13408 soname_spec='$libname$release$shared_ext$major'
13409 shlibpath_var=LD_LIBRARY_PATH
13410 shlibpath_overrides_runpath=no
13411 dynamic_linker='SerenityOS LibELF'
13412 ;;
13413
13414 solaris*)
13415 version_type=linux # correct to gnu/linux during the next big refactor
13416 need_lib_prefix=no
13417 need_version=no
13418 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13419 soname_spec='$libname$release$shared_ext$major'
13420 shlibpath_var=LD_LIBRARY_PATH
13421 shlibpath_overrides_runpath=yes
13422 hardcode_into_libs=yes
13423 # ldd complains unless libraries are executable
13424 postinstall_cmds='chmod +x $lib'
13425 ;;
13426
13427 sunos4*)
13428 version_type=sunos
13429 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13430 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13431 shlibpath_var=LD_LIBRARY_PATH
13432 shlibpath_overrides_runpath=yes
13433 if test yes = "$with_gnu_ld"; then
13434 need_lib_prefix=no
13435 fi
13436 need_version=yes
13437 ;;
13438
13439 sysv4 | sysv4.3*)
13440 version_type=linux # correct to gnu/linux during the next big refactor
13441 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13442 soname_spec='$libname$release$shared_ext$major'
13443 shlibpath_var=LD_LIBRARY_PATH
13444 case $host_vendor in
13445 sni)
13446 shlibpath_overrides_runpath=no
13447 need_lib_prefix=no
13448 runpath_var=LD_RUN_PATH
13449 ;;
13450 siemens)
13451 need_lib_prefix=no
13452 ;;
13453 motorola)
13454 need_lib_prefix=no
13455 need_version=no
13456 shlibpath_overrides_runpath=no
13457 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13458 ;;
13459 esac
13460 ;;
13461
13462 sysv4*MP*)
13463 if test -d /usr/nec; then
13464 version_type=linux # correct to gnu/linux during the next big refactor
13465 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13466 soname_spec='$libname$shared_ext.$major'
13467 shlibpath_var=LD_LIBRARY_PATH
13468 fi
13469 ;;
13470
13471 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13472 version_type=sco
13473 need_lib_prefix=no
13474 need_version=no
13475 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13476 soname_spec='$libname$release$shared_ext$major'
13477 shlibpath_var=LD_LIBRARY_PATH
13478 shlibpath_overrides_runpath=yes
13479 hardcode_into_libs=yes
13480 if test yes = "$with_gnu_ld"; then
13481 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13482 else
13483 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13484 case $host_os in
13485 sco3.2v5*)
13486 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13487 ;;
13488 esac
13489 fi
13490 sys_lib_dlsearch_path_spec='/usr/lib'
13491 ;;
13492
13493 tpf*)
13494 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13495 version_type=linux # correct to gnu/linux during the next big refactor
13496 need_lib_prefix=no
13497 need_version=no
13498 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13499 shlibpath_var=LD_LIBRARY_PATH
13500 shlibpath_overrides_runpath=no
13501 hardcode_into_libs=yes
13502 ;;
13503
13504 uts4*)
13505 version_type=linux # correct to gnu/linux during the next big refactor
13506 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13507 soname_spec='$libname$release$shared_ext$major'
13508 shlibpath_var=LD_LIBRARY_PATH
13509 ;;
13510
13511 emscripten*)
13512 version_type=none
13513 need_lib_prefix=no
13514 need_version=no
13515 library_names_spec='$libname$release$shared_ext'
13516 soname_spec='$libname$release$shared_ext'
13517 finish_cmds=
13518 dynamic_linker="Emscripten linker"
13519 lt_prog_compiler_wl=
13520 lt_prog_compiler_pic=
13521 lt_prog_compiler_static=
13522
13523
13524 if test yes = "$GCC"; then
13525 lt_prog_compiler_wl='-Wl,'
13526 lt_prog_compiler_static='-static'
13527
13528 case $host_os in
13529 aix*)
13530 # All AIX code is PIC.
13531 if test ia64 = "$host_cpu"; then
13532 # AIX 5 now supports IA64 processor
13533 lt_prog_compiler_static='-Bstatic'
13534 fi
13535 lt_prog_compiler_pic='-fPIC'
13536 ;;
13537
13538 amigaos*)
13539 case $host_cpu in
13540 powerpc)
13541 # see comment about AmigaOS4 .so support
13542 lt_prog_compiler_pic='-fPIC'
13543 ;;
13544 m68k)
13545 # FIXME: we need at least 68020 code to build shared libraries, but
13546 # adding the '-m68020' flag to GCC prevents building anything better,
13547 # like '-m68040'.
13548 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13549 ;;
13550 esac
13551 ;;
13552
13553 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13554 # PIC is the default for these OSes.
13555 ;;
13556
13557 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
13558 # This hack is so that the source file can tell whether it is being
13559 # built for inclusion in a dll (and should export symbols for example).
13560 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13561 # (--disable-auto-import) libraries
13562 lt_prog_compiler_pic='-DDLL_EXPORT'
13563 case $host_os in
13564 os2*)
13565 lt_prog_compiler_static='$wl-static'
13566 ;;
13567 esac
13568 ;;
13569
13570 darwin* | rhapsody*)
13571 # PIC is the default on this platform
13572 # Common symbols not allowed in MH_DYLIB files
13573 lt_prog_compiler_pic='-fno-common'
13574 ;;
13575
13576 haiku*)
13577 # PIC is the default for Haiku.
13578 # The "-static" flag exists, but is broken.
13579 lt_prog_compiler_static=
13580 ;;
13581
13582 hpux*)
13583 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13584 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13585 # sets the default TLS model and affects inlining.
13586 case $host_cpu in
13587 hppa*64*)
13588 # +Z the default
13589 ;;
13590 *)
13591 lt_prog_compiler_pic='-fPIC'
13592 ;;
13593 esac
13594 ;;
13595
13596 interix[3-9]*)
13597 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13598 # Instead, we relocate shared libraries at runtime.
13599 ;;
13600
13601 msdosdjgpp*)
13602 # Just because we use GCC doesn't mean we suddenly get shared libraries
13603 # on systems that don't support them.
13604 lt_prog_compiler_can_build_shared=no
13605 enable_shared=no
13606 ;;
13607
13608 *nto* | *qnx*)
13609 # QNX uses GNU C++, but need to define -shared option too, otherwise
13610 # it will coredump.
13611 lt_prog_compiler_pic='-fPIC -shared'
13612 ;;
13613
13614 sysv4*MP*)
13615 if test -d /usr/nec; then
13616 lt_prog_compiler_pic=-Kconform_pic
13617 fi
13618 ;;
13619
13620 *)
13621 lt_prog_compiler_pic='-fPIC'
13622 ;;
13623 esac
13624
13625 case $cc_basename in
13626 nvcc*) # Cuda Compiler Driver 2.2
13627 lt_prog_compiler_wl='-Xlinker '
13628 if test -n "$lt_prog_compiler_pic"; then
13629 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
13630 fi
13631 ;;
13632 esac
13633 else
13634 # PORTME Check for flag to pass linker flags through the system compiler.
13635 case $host_os in
13636 aix*)
13637 lt_prog_compiler_wl='-Wl,'
13638 if test ia64 = "$host_cpu"; then
13639 # AIX 5 now supports IA64 processor
13640 lt_prog_compiler_static='-Bstatic'
13641 else
13642 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13643 fi
13644 ;;
13645
13646 darwin* | rhapsody*)
13647 # PIC is the default on this platform
13648 # Common symbols not allowed in MH_DYLIB files
13649 lt_prog_compiler_pic='-fno-common'
13650 case $cc_basename in
13651 nagfor*)
13652 # NAG Fortran compiler
13653 lt_prog_compiler_wl='-Wl,-Wl,,'
13654 lt_prog_compiler_pic='-PIC'
13655 lt_prog_compiler_static='-Bstatic'
13656 ;;
13657 esac
13658 ;;
13659
13660 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
13661 # This hack is so that the source file can tell whether it is being
13662 # built for inclusion in a dll (and should export symbols for example).
13663 lt_prog_compiler_pic='-DDLL_EXPORT'
13664 case $host_os in
13665 os2*)
13666 lt_prog_compiler_static='$wl-static'
13667 ;;
13668 esac
13669 ;;
13670
13671 hpux9* | hpux10* | hpux11*)
13672 lt_prog_compiler_wl='-Wl,'
13673 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13674 # not for PA HP-UX.
13675 case $host_cpu in
13676 hppa*64*|ia64*)
13677 # +Z the default
13678 ;;
13679 *)
13680 lt_prog_compiler_pic='+Z'
13681 ;;
13682 esac
13683 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13684 lt_prog_compiler_static='$wl-a ${wl}archive'
13685 ;;
13686
13687 irix5* | irix6* | nonstopux*)
13688 lt_prog_compiler_wl='-Wl,'
13689 # PIC (with -KPIC) is the default.
13690 lt_prog_compiler_static='-non_shared'
13691 ;;
13692
13693 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13694 case $cc_basename in
13695 # old Intel for x86_64, which still supported -KPIC.
13696 ecc*)
13697 lt_prog_compiler_wl='-Wl,'
13698 lt_prog_compiler_pic='-KPIC'
13699 lt_prog_compiler_static='-static'
13700 ;;
13701 *flang* | ftn | f18* | f95*)
13702 # Flang compiler.
13703 lt_prog_compiler_wl='-Wl,'
13704 lt_prog_compiler_pic='-fPIC'
13705 lt_prog_compiler_static='-static'
13706 ;;
13707 # icc used to be incompatible with GCC.
13708 # ICC 10 doesn't accept -KPIC any more.
13709 icc* | ifort*)
13710 lt_prog_compiler_wl='-Wl,'
13711 lt_prog_compiler_pic='-fPIC'
13712 lt_prog_compiler_static='-static'
13713 ;;
13714 # Lahey Fortran 8.1.
13715 lf95*)
13716 lt_prog_compiler_wl='-Wl,'
13717 lt_prog_compiler_pic='--shared'
13718 lt_prog_compiler_static='--static'
13719 ;;
13720 nagfor*)
13721 # NAG Fortran compiler
13722 lt_prog_compiler_wl='-Wl,-Wl,,'
13723 lt_prog_compiler_pic='-PIC'
13724 lt_prog_compiler_static='-Bstatic'
13725 ;;
13726 tcc*)
13727 # Fabrice Bellard et al's Tiny C Compiler
13728 lt_prog_compiler_wl='-Wl,'
13729 lt_prog_compiler_pic='-fPIC'
13730 lt_prog_compiler_static='-static'
13731 ;;
13732 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
13733 # Portland Group compilers (*not* the Pentium gcc compiler,
13734 # which looks to be a dead project)
13735 lt_prog_compiler_wl='-Wl,'
13736 lt_prog_compiler_pic='-fpic'
13737 lt_prog_compiler_static='-Bstatic'
13738 ;;
13739 ccc*)
13740 lt_prog_compiler_wl='-Wl,'
13741 # All Alpha code is PIC.
13742 lt_prog_compiler_static='-non_shared'
13743 ;;
13744 xl* | bgxl* | bgf* | mpixl*)
13745 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
13746 lt_prog_compiler_wl='-Wl,'
13747 lt_prog_compiler_pic='-qpic'
13748 lt_prog_compiler_static='-qstaticlink'
13749 ;;
13750 *)
13751 case `$CC -V 2>&1 | $SED 5q` in
13752 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
13753 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13754 lt_prog_compiler_pic='-KPIC'
13755 lt_prog_compiler_static='-Bstatic'
13756 lt_prog_compiler_wl=''
13757 ;;
13758 *Sun\ F* | *Sun*Fortran*)
13759 lt_prog_compiler_pic='-KPIC'
13760 lt_prog_compiler_static='-Bstatic'
13761 lt_prog_compiler_wl='-Qoption ld '
13762 ;;
13763 *Sun\ C*)
13764 # Sun C 5.9
13765 lt_prog_compiler_pic='-KPIC'
13766 lt_prog_compiler_static='-Bstatic'
13767 lt_prog_compiler_wl='-Wl,'
13768 ;;
13769 *Intel*\ [CF]*Compiler*)
13770 lt_prog_compiler_wl='-Wl,'
13771 lt_prog_compiler_pic='-fPIC'
13772 lt_prog_compiler_static='-static'
13773 ;;
13774 *Portland\ Group*)
13775 lt_prog_compiler_wl='-Wl,'
13776 lt_prog_compiler_pic='-fpic'
13777 lt_prog_compiler_static='-Bstatic'
13778 ;;
13779 esac
13780 ;;
13781 esac
13782 ;;
13783
13784 newsos6)
13785 lt_prog_compiler_pic='-KPIC'
13786 lt_prog_compiler_static='-Bstatic'
13787 ;;
13788
13789 *-mlibc)
13790 lt_prog_compiler_wl='-Wl,'
13791 lt_prog_compiler_pic='-fPIC'
13792 lt_prog_compiler_static='-static'
13793 ;;
13794
13795 *nto* | *qnx*)
13796 # QNX uses GNU C++, but need to define -shared option too, otherwise
13797 # it will coredump.
13798 lt_prog_compiler_pic='-fPIC -shared'
13799 ;;
13800
13801 osf3* | osf4* | osf5*)
13802 lt_prog_compiler_wl='-Wl,'
13803 # All OSF/1 code is PIC.
13804 lt_prog_compiler_static='-non_shared'
13805 ;;
13806
13807 rdos*)
13808 lt_prog_compiler_static='-non_shared'
13809 ;;
13810
13811 serenity*)
13812 ;;
13813
13814 solaris*)
13815 lt_prog_compiler_pic='-KPIC'
13816 lt_prog_compiler_static='-Bstatic'
13817 case $cc_basename in
13818 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
13819 lt_prog_compiler_wl='-Qoption ld ';;
13820 *)
13821 lt_prog_compiler_wl='-Wl,';;
13822 esac
13823 ;;
13824
13825 sunos4*)
13826 lt_prog_compiler_wl='-Qoption ld '
13827 lt_prog_compiler_pic='-PIC'
13828 lt_prog_compiler_static='-Bstatic'
13829 ;;
13830
13831 sysv4 | sysv4.2uw2* | sysv4.3*)
13832 lt_prog_compiler_wl='-Wl,'
13833 lt_prog_compiler_pic='-KPIC'
13834 lt_prog_compiler_static='-Bstatic'
13835 ;;
13836
13837 sysv4*MP*)
13838 if test -d /usr/nec; then
13839 lt_prog_compiler_pic='-Kconform_pic'
13840 lt_prog_compiler_static='-Bstatic'
13841 fi
13842 ;;
13843
13844 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13845 lt_prog_compiler_wl='-Wl,'
13846 lt_prog_compiler_pic='-KPIC'
13847 lt_prog_compiler_static='-Bstatic'
13848 ;;
13849
13850 unicos*)
13851 lt_prog_compiler_wl='-Wl,'
13852 lt_prog_compiler_can_build_shared=no
13853 ;;
13854
13855 uts4*)
13856 lt_prog_compiler_pic='-pic'
13857 lt_prog_compiler_static='-Bstatic'
13858 ;;
13859
13860 *)
13861 lt_prog_compiler_can_build_shared=no
13862 ;;
13863 esac
13864 fi
13865
13866 case $host_os in
13867 # For platforms that do not support PIC, -DPIC is meaningless:
13868 *djgpp*)
13869 lt_prog_compiler_pic=
13870 ;;
13871 *)
13872 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13873 ;;
13874 esac
13875
13876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13877 printf %s "checking for $compiler option to produce PIC... " >&6; }
13878 if test ${lt_cv_prog_compiler_pic+y}
13879 then :
13880 printf %s "(cached) " >&6
13881 else case e in #(
13882 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
13883 esac
13884 fi
13885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13886 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
13887 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
13888
13889 #
13890 # Check to make sure the PIC flag actually works.
13891 #
13892 if test -n "$lt_prog_compiler_pic"; then
13893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13894 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
13895 if test ${lt_cv_prog_compiler_pic_works+y}
13896 then :
13897 printf %s "(cached) " >&6
13898 else case e in #(
13899 e) lt_cv_prog_compiler_pic_works=no
13900 ac_outfile=conftest.$ac_objext
13901 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13902 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
13903 # Insert the option either (1) after the last *FLAGS variable, or
13904 # (2) before a word containing "conftest.", or (3) at the end.
13905 # Note that $ac_compile itself does not contain backslashes and begins
13906 # with a dollar sign (not a hyphen), so the echo should work correctly.
13907 # The option is referenced via a variable to avoid confusing sed.
13908 lt_compile=`echo "$ac_compile" | $SED \
13909 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13910 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13911 -e 's:$: $lt_compiler_flag:'`
13912 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13913 (eval "$lt_compile" 2>conftest.err)
13914 ac_status=$?
13915 cat conftest.err >&5
13916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13917 if (exit $ac_status) && test -s "$ac_outfile"; then
13918 # The compiler can only warn and ignore the option if not recognized
13919 # So say no if there are warnings other than the usual output.
13920 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13921 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13922 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13923 lt_cv_prog_compiler_pic_works=yes
13924 fi
13925 fi
13926 $RM conftest*
13927 ;;
13928 esac
13929 fi
13930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13931 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
13932
13933 if test yes = "$lt_cv_prog_compiler_pic_works"; then
13934 case $lt_prog_compiler_pic in
13935 "" | " "*) ;;
13936 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13937 esac
13938 else
13939 lt_prog_compiler_pic=
13940 lt_prog_compiler_can_build_shared=no
13941 fi
13942
13943 fi
13944
13945
13946
13947
13948
13949 #
13950 # Check to make sure the static flag actually works.
13951 #
13952 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13954 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13955 if test ${lt_cv_prog_compiler_static_works+y}
13956 then :
13957 printf %s "(cached) " >&6
13958 else case e in #(
13959 e) lt_cv_prog_compiler_static_works=no
13960 save_LDFLAGS=$LDFLAGS
13961 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13962 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13963 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13964 # The linker can only warn and ignore the option if not recognized
13965 # So say no if there are warnings
13966 if test -s conftest.err; then
13967 # Append any errors to the config.log.
13968 cat conftest.err 1>&5
13969 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13970 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13971 if diff conftest.exp conftest.er2 >/dev/null; then
13972 lt_cv_prog_compiler_static_works=yes
13973 fi
13974 else
13975 lt_cv_prog_compiler_static_works=yes
13976 fi
13977 fi
13978 $RM -r conftest*
13979 LDFLAGS=$save_LDFLAGS
13980 ;;
13981 esac
13982 fi
13983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13984 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
13985
13986 if test yes = "$lt_cv_prog_compiler_static_works"; then
13987 :
13988 else
13989 lt_prog_compiler_static=
13990 fi
13991
13992
13993
13994 ='-fPIC'
13995 archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
13996 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'
13997 archive_cmds_need_lc=no
13998 no_undefined_flag=
13999 ;;
14000
14001 *)
14002 dynamic_linker=no
14003 ;;
14004 esac
14005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14006 printf "%s\n" "$dynamic_linker" >&6; }
14007 test no = "$dynamic_linker" && can_build_shared=no
14008
14009 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14010 if test yes = "$GCC"; then
14011 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14012 fi
14013
14014 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14015 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
14016 fi
14017
14018 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14019 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
14020 fi
14021
14022 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14023 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14024
14025 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14026 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14027
14028 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14029 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
14030
14031
14032
14033
14034
14035
14036
14037
14038
14039
14040
14041
14042
14043
14044
14045
14046
14047
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108
14109
14110
14111
14112
14113
14114
14115
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125
14126
14127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14128 printf %s "checking how to hardcode library paths into programs... " >&6; }
14129 hardcode_action=
14130 if test -n "$hardcode_libdir_flag_spec" ||
14131 test -n "$runpath_var" ||
14132 test yes = "$hardcode_automatic"; then
14133
14134 # We can hardcode non-existent directories.
14135 if test no != "$hardcode_direct" &&
14136 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14137 # have to relink, otherwise we might link with an installed library
14138 # when we should be linking with a yet-to-be-installed one
14139 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
14140 test no != "$hardcode_minus_L"; then
14141 # Linking always hardcodes the temporary library directory.
14142 hardcode_action=relink
14143 else
14144 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14145 hardcode_action=immediate
14146 fi
14147 else
14148 # We cannot hardcode anything, or else we can only hardcode existing
14149 # directories.
14150 hardcode_action=unsupported
14151 fi
14152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14153 printf "%s\n" "$hardcode_action" >&6; }
14154
14155 if test relink = "$hardcode_action" ||
14156 test yes = "$inherit_rpath"; then
14157 # Fast installation is not supported
14158 enable_fast_install=no
14159 elif test yes = "$shlibpath_overrides_runpath" ||
14160 test no = "$enable_shared"; then
14161 # Fast installation is not necessary
14162 enable_fast_install=needless
14163 fi
14164
14165
14166
14167
14168
14169
14170 if test yes != "$enable_dlopen"; then
14171 enable_dlopen=unknown
14172 enable_dlopen_self=unknown
14173 enable_dlopen_self_static=unknown
14174 else
14175 lt_cv_dlopen=no
14176 lt_cv_dlopen_libs=
14177
14178 case $host_os in
14179 beos*)
14180 lt_cv_dlopen=load_add_on
14181 lt_cv_dlopen_libs=
14182 lt_cv_dlopen_self=yes
14183 ;;
14184
14185 mingw* | windows* | pw32* | cegcc*)
14186 lt_cv_dlopen=LoadLibrary
14187 lt_cv_dlopen_libs=
14188 ;;
14189
14190 cygwin*)
14191 lt_cv_dlopen=dlopen
14192 lt_cv_dlopen_libs=
14193 ;;
14194
14195 darwin*)
14196 # if libdl is installed we need to link against it
14197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14198 printf %s "checking for dlopen in -ldl... " >&6; }
14199 if test ${ac_cv_lib_dl_dlopen+y}
14200 then :
14201 printf %s "(cached) " >&6
14202 else case e in #(
14203 e) ac_check_lib_save_LIBS=$LIBS
14204 LIBS="-ldl $LIBS"
14205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14206 /* end confdefs.h. */
14207
14208 /* Override any GCC internal prototype to avoid an error.
14209 Use char because int might match the return type of a GCC
14210 builtin and then its argument prototype would still apply.
14211 The 'extern "C"' is for builds by C++ compilers;
14212 although this is not generally supported in C code supporting it here
14213 has little cost and some practical benefit (sr 110532). */
14214 #ifdef __cplusplus
14215 extern "C"
14216 #endif
14217 char dlopen (void);
14218 int
14219 main (void)
14220 {
14221 return dlopen ();
14222 ;
14223 return 0;
14224 }
14225 _ACEOF
14226 if ac_fn_c_try_link "$LINENO"
14227 then :
14228 ac_cv_lib_dl_dlopen=yes
14229 else case e in #(
14230 e) ac_cv_lib_dl_dlopen=no ;;
14231 esac
14232 fi
14233 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14234 conftest$ac_exeext conftest.$ac_ext
14235 LIBS=$ac_check_lib_save_LIBS ;;
14236 esac
14237 fi
14238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14239 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
14240 if test "x$ac_cv_lib_dl_dlopen" = xyes
14241 then :
14242 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14243 else case e in #(
14244 e)
14245 lt_cv_dlopen=dyld
14246 lt_cv_dlopen_libs=
14247 lt_cv_dlopen_self=yes
14248 ;;
14249 esac
14250 fi
14251
14252 ;;
14253
14254 tpf*)
14255 # Don't try to run any link tests for TPF. We know it's impossible
14256 # because TPF is a cross-compiler, and we know how we open DSOs.
14257 lt_cv_dlopen=dlopen
14258 lt_cv_dlopen_libs=
14259 lt_cv_dlopen_self=no
14260 ;;
14261
14262 *)
14263 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14264 if test "x$ac_cv_func_shl_load" = xyes
14265 then :
14266 lt_cv_dlopen=shl_load
14267 else case e in #(
14268 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14269 printf %s "checking for shl_load in -ldld... " >&6; }
14270 if test ${ac_cv_lib_dld_shl_load+y}
14271 then :
14272 printf %s "(cached) " >&6
14273 else case e in #(
14274 e) ac_check_lib_save_LIBS=$LIBS
14275 LIBS="-ldld $LIBS"
14276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14277 /* end confdefs.h. */
14278
14279 /* Override any GCC internal prototype to avoid an error.
14280 Use char because int might match the return type of a GCC
14281 builtin and then its argument prototype would still apply.
14282 The 'extern "C"' is for builds by C++ compilers;
14283 although this is not generally supported in C code supporting it here
14284 has little cost and some practical benefit (sr 110532). */
14285 #ifdef __cplusplus
14286 extern "C"
14287 #endif
14288 char shl_load (void);
14289 int
14290 main (void)
14291 {
14292 return shl_load ();
14293 ;
14294 return 0;
14295 }
14296 _ACEOF
14297 if ac_fn_c_try_link "$LINENO"
14298 then :
14299 ac_cv_lib_dld_shl_load=yes
14300 else case e in #(
14301 e) ac_cv_lib_dld_shl_load=no ;;
14302 esac
14303 fi
14304 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14305 conftest$ac_exeext conftest.$ac_ext
14306 LIBS=$ac_check_lib_save_LIBS ;;
14307 esac
14308 fi
14309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14310 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
14311 if test "x$ac_cv_lib_dld_shl_load" = xyes
14312 then :
14313 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
14314 else case e in #(
14315 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14316 if test "x$ac_cv_func_dlopen" = xyes
14317 then :
14318 lt_cv_dlopen=dlopen
14319 else case e in #(
14320 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14321 printf %s "checking for dlopen in -ldl... " >&6; }
14322 if test ${ac_cv_lib_dl_dlopen+y}
14323 then :
14324 printf %s "(cached) " >&6
14325 else case e in #(
14326 e) ac_check_lib_save_LIBS=$LIBS
14327 LIBS="-ldl $LIBS"
14328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14329 /* end confdefs.h. */
14330
14331 /* Override any GCC internal prototype to avoid an error.
14332 Use char because int might match the return type of a GCC
14333 builtin and then its argument prototype would still apply.
14334 The 'extern "C"' is for builds by C++ compilers;
14335 although this is not generally supported in C code supporting it here
14336 has little cost and some practical benefit (sr 110532). */
14337 #ifdef __cplusplus
14338 extern "C"
14339 #endif
14340 char dlopen (void);
14341 int
14342 main (void)
14343 {
14344 return dlopen ();
14345 ;
14346 return 0;
14347 }
14348 _ACEOF
14349 if ac_fn_c_try_link "$LINENO"
14350 then :
14351 ac_cv_lib_dl_dlopen=yes
14352 else case e in #(
14353 e) ac_cv_lib_dl_dlopen=no ;;
14354 esac
14355 fi
14356 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14357 conftest$ac_exeext conftest.$ac_ext
14358 LIBS=$ac_check_lib_save_LIBS ;;
14359 esac
14360 fi
14361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14362 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
14363 if test "x$ac_cv_lib_dl_dlopen" = xyes
14364 then :
14365 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14366 else case e in #(
14367 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14368 printf %s "checking for dlopen in -lsvld... " >&6; }
14369 if test ${ac_cv_lib_svld_dlopen+y}
14370 then :
14371 printf %s "(cached) " >&6
14372 else case e in #(
14373 e) ac_check_lib_save_LIBS=$LIBS
14374 LIBS="-lsvld $LIBS"
14375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14376 /* end confdefs.h. */
14377
14378 /* Override any GCC internal prototype to avoid an error.
14379 Use char because int might match the return type of a GCC
14380 builtin and then its argument prototype would still apply.
14381 The 'extern "C"' is for builds by C++ compilers;
14382 although this is not generally supported in C code supporting it here
14383 has little cost and some practical benefit (sr 110532). */
14384 #ifdef __cplusplus
14385 extern "C"
14386 #endif
14387 char dlopen (void);
14388 int
14389 main (void)
14390 {
14391 return dlopen ();
14392 ;
14393 return 0;
14394 }
14395 _ACEOF
14396 if ac_fn_c_try_link "$LINENO"
14397 then :
14398 ac_cv_lib_svld_dlopen=yes
14399 else case e in #(
14400 e) ac_cv_lib_svld_dlopen=no ;;
14401 esac
14402 fi
14403 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14404 conftest$ac_exeext conftest.$ac_ext
14405 LIBS=$ac_check_lib_save_LIBS ;;
14406 esac
14407 fi
14408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14409 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
14410 if test "x$ac_cv_lib_svld_dlopen" = xyes
14411 then :
14412 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
14413 else case e in #(
14414 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14415 printf %s "checking for dld_link in -ldld... " >&6; }
14416 if test ${ac_cv_lib_dld_dld_link+y}
14417 then :
14418 printf %s "(cached) " >&6
14419 else case e in #(
14420 e) ac_check_lib_save_LIBS=$LIBS
14421 LIBS="-ldld $LIBS"
14422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14423 /* end confdefs.h. */
14424
14425 /* Override any GCC internal prototype to avoid an error.
14426 Use char because int might match the return type of a GCC
14427 builtin and then its argument prototype would still apply.
14428 The 'extern "C"' is for builds by C++ compilers;
14429 although this is not generally supported in C code supporting it here
14430 has little cost and some practical benefit (sr 110532). */
14431 #ifdef __cplusplus
14432 extern "C"
14433 #endif
14434 char dld_link (void);
14435 int
14436 main (void)
14437 {
14438 return dld_link ();
14439 ;
14440 return 0;
14441 }
14442 _ACEOF
14443 if ac_fn_c_try_link "$LINENO"
14444 then :
14445 ac_cv_lib_dld_dld_link=yes
14446 else case e in #(
14447 e) ac_cv_lib_dld_dld_link=no ;;
14448 esac
14449 fi
14450 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14451 conftest$ac_exeext conftest.$ac_ext
14452 LIBS=$ac_check_lib_save_LIBS ;;
14453 esac
14454 fi
14455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14456 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
14457 if test "x$ac_cv_lib_dld_dld_link" = xyes
14458 then :
14459 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
14460 fi
14461
14462 ;;
14463 esac
14464 fi
14465
14466 ;;
14467 esac
14468 fi
14469
14470 ;;
14471 esac
14472 fi
14473
14474 ;;
14475 esac
14476 fi
14477
14478 ;;
14479 esac
14480 fi
14481
14482 ;;
14483 esac
14484
14485 if test no = "$lt_cv_dlopen"; then
14486 enable_dlopen=no
14487 else
14488 enable_dlopen=yes
14489 fi
14490
14491 case $lt_cv_dlopen in
14492 dlopen)
14493 save_CPPFLAGS=$CPPFLAGS
14494 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14495
14496 save_LDFLAGS=$LDFLAGS
14497 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14498
14499 save_LIBS=$LIBS
14500 LIBS="$lt_cv_dlopen_libs $LIBS"
14501
14502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14503 printf %s "checking whether a program can dlopen itself... " >&6; }
14504 if test ${lt_cv_dlopen_self+y}
14505 then :
14506 printf %s "(cached) " >&6
14507 else case e in #(
14508 e) if test yes = "$cross_compiling"; then :
14509 lt_cv_dlopen_self=cross
14510 else
14511 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14512 lt_status=$lt_dlunknown
14513 cat > conftest.$ac_ext <<_LT_EOF
14514 #line $LINENO "configure"
14515 #include "confdefs.h"
14516
14517 #if HAVE_DLFCN_H
14518 #include <dlfcn.h>
14519 #endif
14520
14521 #include <stdio.h>
14522
14523 #ifdef RTLD_GLOBAL
14524 # define LT_DLGLOBAL RTLD_GLOBAL
14525 #else
14526 # ifdef DL_GLOBAL
14527 # define LT_DLGLOBAL DL_GLOBAL
14528 # else
14529 # define LT_DLGLOBAL 0
14530 # endif
14531 #endif
14532
14533 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14534 find out it does not work in some platform. */
14535 #ifndef LT_DLLAZY_OR_NOW
14536 # ifdef RTLD_LAZY
14537 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14538 # else
14539 # ifdef DL_LAZY
14540 # define LT_DLLAZY_OR_NOW DL_LAZY
14541 # else
14542 # ifdef RTLD_NOW
14543 # define LT_DLLAZY_OR_NOW RTLD_NOW
14544 # else
14545 # ifdef DL_NOW
14546 # define LT_DLLAZY_OR_NOW DL_NOW
14547 # else
14548 # define LT_DLLAZY_OR_NOW 0
14549 # endif
14550 # endif
14551 # endif
14552 # endif
14553 #endif
14554
14555 /* When -fvisibility=hidden is used, assume the code has been annotated
14556 correspondingly for the symbols needed. */
14557 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14558 int fnord (void) __attribute__((visibility("default")));
14559 #endif
14560
14561 int fnord (void) { return 42; }
14562 int main (void)
14563 {
14564 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14565 int status = $lt_dlunknown;
14566
14567 if (self)
14568 {
14569 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14570 else
14571 {
14572 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14573 else puts (dlerror ());
14574 }
14575 /* dlclose (self); */
14576 }
14577 else
14578 puts (dlerror ());
14579
14580 return status;
14581 }
14582 _LT_EOF
14583 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14584 (eval $ac_link) 2>&5
14585 ac_status=$?
14586 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14587 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14588 (./conftest; exit; ) >&5 2>/dev/null
14589 lt_status=$?
14590 case x$lt_status in
14591 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14592 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14593 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14594 esac
14595 else :
14596 # compilation failed
14597 lt_cv_dlopen_self=no
14598 fi
14599 fi
14600 rm -fr conftest*
14601
14602 ;;
14603 esac
14604 fi
14605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14606 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
14607
14608 if test yes = "$lt_cv_dlopen_self"; then
14609 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14611 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
14612 if test ${lt_cv_dlopen_self_static+y}
14613 then :
14614 printf %s "(cached) " >&6
14615 else case e in #(
14616 e) if test yes = "$cross_compiling"; then :
14617 lt_cv_dlopen_self_static=cross
14618 else
14619 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14620 lt_status=$lt_dlunknown
14621 cat > conftest.$ac_ext <<_LT_EOF
14622 #line $LINENO "configure"
14623 #include "confdefs.h"
14624
14625 #if HAVE_DLFCN_H
14626 #include <dlfcn.h>
14627 #endif
14628
14629 #include <stdio.h>
14630
14631 #ifdef RTLD_GLOBAL
14632 # define LT_DLGLOBAL RTLD_GLOBAL
14633 #else
14634 # ifdef DL_GLOBAL
14635 # define LT_DLGLOBAL DL_GLOBAL
14636 # else
14637 # define LT_DLGLOBAL 0
14638 # endif
14639 #endif
14640
14641 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14642 find out it does not work in some platform. */
14643 #ifndef LT_DLLAZY_OR_NOW
14644 # ifdef RTLD_LAZY
14645 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14646 # else
14647 # ifdef DL_LAZY
14648 # define LT_DLLAZY_OR_NOW DL_LAZY
14649 # else
14650 # ifdef RTLD_NOW
14651 # define LT_DLLAZY_OR_NOW RTLD_NOW
14652 # else
14653 # ifdef DL_NOW
14654 # define LT_DLLAZY_OR_NOW DL_NOW
14655 # else
14656 # define LT_DLLAZY_OR_NOW 0
14657 # endif
14658 # endif
14659 # endif
14660 # endif
14661 #endif
14662
14663 /* When -fvisibility=hidden is used, assume the code has been annotated
14664 correspondingly for the symbols needed. */
14665 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14666 int fnord (void) __attribute__((visibility("default")));
14667 #endif
14668
14669 int fnord (void) { return 42; }
14670 int main (void)
14671 {
14672 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14673 int status = $lt_dlunknown;
14674
14675 if (self)
14676 {
14677 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14678 else
14679 {
14680 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14681 else puts (dlerror ());
14682 }
14683 /* dlclose (self); */
14684 }
14685 else
14686 puts (dlerror ());
14687
14688 return status;
14689 }
14690 _LT_EOF
14691 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14692 (eval $ac_link) 2>&5
14693 ac_status=$?
14694 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14695 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14696 (./conftest; exit; ) >&5 2>/dev/null
14697 lt_status=$?
14698 case x$lt_status in
14699 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14700 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14701 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14702 esac
14703 else :
14704 # compilation failed
14705 lt_cv_dlopen_self_static=no
14706 fi
14707 fi
14708 rm -fr conftest*
14709
14710 ;;
14711 esac
14712 fi
14713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14714 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
14715 fi
14716
14717 CPPFLAGS=$save_CPPFLAGS
14718 LDFLAGS=$save_LDFLAGS
14719 LIBS=$save_LIBS
14720 ;;
14721 esac
14722
14723 case $lt_cv_dlopen_self in
14724 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14725 *) enable_dlopen_self=unknown ;;
14726 esac
14727
14728 case $lt_cv_dlopen_self_static in
14729 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14730 *) enable_dlopen_self_static=unknown ;;
14731 esac
14732 fi
14733
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745
14746
14747
14748
14749
14750 striplib=
14751 old_striplib=
14752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14753 printf %s "checking whether stripping libraries is possible... " >&6; }
14754 if test -z "$STRIP"; then
14755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14756 printf "%s\n" "no" >&6; }
14757 else
14758 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14759 old_striplib="$STRIP --strip-debug"
14760 striplib="$STRIP --strip-unneeded"
14761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14762 printf "%s\n" "yes" >&6; }
14763 else
14764 case $host_os in
14765 darwin*)
14766 # FIXME - insert some real tests, host_os isn't really good enough
14767 striplib="$STRIP -x"
14768 old_striplib="$STRIP -S"
14769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14770 printf "%s\n" "yes" >&6; }
14771 ;;
14772 freebsd*)
14773 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
14774 old_striplib="$STRIP --strip-debug"
14775 striplib="$STRIP --strip-unneeded"
14776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14777 printf "%s\n" "yes" >&6; }
14778 else
14779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14780 printf "%s\n" "no" >&6; }
14781 fi
14782 ;;
14783 *)
14784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14785 printf "%s\n" "no" >&6; }
14786 ;;
14787 esac
14788 fi
14789 fi
14790
14791
14792
14793
14794
14795
14796
14797
14798
14799
14800
14801
14802 # Report what library types will actually be built
14803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14804 printf %s "checking if libtool supports shared libraries... " >&6; }
14805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14806 printf "%s\n" "$can_build_shared" >&6; }
14807
14808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14809 printf %s "checking whether to build shared libraries... " >&6; }
14810 test no = "$can_build_shared" && enable_shared=no
14811
14812 # On AIX, shared libraries and static libraries use the same namespace, and
14813 # are all built from PIC.
14814 case $host_os in
14815 aix3*)
14816 test yes = "$enable_shared" && enable_static=no
14817 if test -n "$RANLIB"; then
14818 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14819 postinstall_cmds='$RANLIB $lib'
14820 fi
14821 ;;
14822
14823 aix[4-9]*)
14824 if test ia64 != "$host_cpu"; then
14825 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14826 yes,aix,yes) ;; # shared object as lib.so file only
14827 yes,svr4,*) ;; # shared object as lib.so archive member only
14828 yes,*) enable_static=no ;; # shared object in lib.a archive as well
14829 esac
14830 fi
14831 ;;
14832 esac
14833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14834 printf "%s\n" "$enable_shared" >&6; }
14835
14836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14837 printf %s "checking whether to build static libraries... " >&6; }
14838 # Make sure either enable_shared or enable_static is yes.
14839 test yes = "$enable_shared" || enable_static=yes
14840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14841 printf "%s\n" "$enable_static" >&6; }
14842
14843
14844
14845
14846 fi
14847 ac_ext=c
14848 ac_cpp='$CPP $CPPFLAGS'
14849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14852
14853 CC=$lt_save_CC
14854
14855
14856
14857
14858
14859
14860
14861
14862
14863
14864
14865
14866
14867
14868
14869 ac_config_commands="$ac_config_commands libtool"
14870
14871
14872
14873
14874 # Only expand once:
14875
14876
14877 # (end lt_init)
14878 # Check whether --enable-largefile was given.
14879 if test ${enable_largefile+y}
14880 then :
14881 enableval=$enable_largefile;
14882 fi
14883 if test "$enable_largefile,$enable_year2038" != no,no
14884 then :
14885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5
14886 printf %s "checking for $CC option to enable large file support... " >&6; }
14887 if test ${ac_cv_sys_largefile_opts+y}
14888 then :
14889 printf %s "(cached) " >&6
14890 else case e in #(
14891 e) ac_save_CC="$CC"
14892 ac_opt_found=no
14893 for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do
14894 if test x"$ac_opt" != x"none needed"
14895 then :
14896 CC="$ac_save_CC $ac_opt"
14897 fi
14898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14899 /* end confdefs.h. */
14900 #include <sys/types.h>
14901 #ifndef FTYPE
14902 # define FTYPE off_t
14903 #endif
14904 /* Check that FTYPE can represent 2**63 - 1 correctly.
14905 We can't simply define LARGE_FTYPE to be 9223372036854775807,
14906 since some C++ compilers masquerading as C compilers
14907 incorrectly reject 9223372036854775807. */
14908 #define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31))
14909 int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721
14910 && LARGE_FTYPE % 2147483647 == 1)
14911 ? 1 : -1];
14912 int
14913 main (void)
14914 {
14915
14916 ;
14917 return 0;
14918 }
14919 _ACEOF
14920 if ac_fn_c_try_compile "$LINENO"
14921 then :
14922 if test x"$ac_opt" = x"none needed"
14923 then :
14924 # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t.
14925 CC="$CC -DFTYPE=ino_t"
14926 if ac_fn_c_try_compile "$LINENO"
14927 then :
14928
14929 else case e in #(
14930 e) CC="$CC -D_FILE_OFFSET_BITS=64"
14931 if ac_fn_c_try_compile "$LINENO"
14932 then :
14933 ac_opt='-D_FILE_OFFSET_BITS=64'
14934 fi
14935 rm -f core conftest.err conftest.$ac_objext conftest.beam ;;
14936 esac
14937 fi
14938 rm -f core conftest.err conftest.$ac_objext conftest.beam
14939 fi
14940 ac_cv_sys_largefile_opts=$ac_opt
14941 ac_opt_found=yes
14942 fi
14943 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14944 test $ac_opt_found = no || break
14945 done
14946 CC="$ac_save_CC"
14947
14948 test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;;
14949 esac
14950 fi
14951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5
14952 printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; }
14953
14954 ac_have_largefile=yes
14955 case $ac_cv_sys_largefile_opts in #(
14956 "none needed") :
14957 ;; #(
14958 "supported through gnulib") :
14959 ;; #(
14960 "support not detected") :
14961 ac_have_largefile=no ;; #(
14962 "-D_FILE_OFFSET_BITS=64") :
14963
14964 printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
14965 ;; #(
14966 "-D_LARGE_FILES=1") :
14967
14968 printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h
14969 ;; #(
14970 "-n32") :
14971 CC="$CC -n32" ;; #(
14972 *) :
14973 as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;;
14974 esac
14975
14976 if test "$enable_year2038" != no
14977 then :
14978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option for timestamps after 2038" >&5
14979 printf %s "checking for $CC option for timestamps after 2038... " >&6; }
14980 if test ${ac_cv_sys_year2038_opts+y}
14981 then :
14982 printf %s "(cached) " >&6
14983 else case e in #(
14984 e) ac_save_CPPFLAGS="$CPPFLAGS"
14985 ac_opt_found=no
14986 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
14987 if test x"$ac_opt" != x"none needed"
14988 then :
14989 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
14990 fi
14991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14992 /* end confdefs.h. */
14993
14994 #include <time.h>
14995 /* Check that time_t can represent 2**32 - 1 correctly. */
14996 #define LARGE_TIME_T \\
14997 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
14998 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
14999 && LARGE_TIME_T % 65537 == 0)
15000 ? 1 : -1];
15001
15002 int
15003 main (void)
15004 {
15005
15006 ;
15007 return 0;
15008 }
15009 _ACEOF
15010 if ac_fn_c_try_compile "$LINENO"
15011 then :
15012 ac_cv_sys_year2038_opts="$ac_opt"
15013 ac_opt_found=yes
15014 fi
15015 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15016 test $ac_opt_found = no || break
15017 done
15018 CPPFLAGS="$ac_save_CPPFLAGS"
15019 test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;;
15020 esac
15021 fi
15022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5
15023 printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; }
15024
15025 ac_have_year2038=yes
15026 case $ac_cv_sys_year2038_opts in #(
15027 "none needed") :
15028 ;; #(
15029 "support not detected") :
15030 ac_have_year2038=no ;; #(
15031 "-D_TIME_BITS=64") :
15032
15033 printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h
15034 ;; #(
15035 "-D__MINGW_USE_VC2005_COMPAT") :
15036
15037 printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h
15038 ;; #(
15039 "-U_USE_32_BIT_TIME_T"*) :
15040 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
15041 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
15042 as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It
15043 will stop working after mid-January 2038. Remove
15044 _USE_32BIT_TIME_T from the compiler flags.
15045 See 'config.log' for more details" "$LINENO" 5; } ;; #(
15046 *) :
15047 as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;;
15048 esac
15049
15050 fi
15051
15052 fi
15053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for declarations of fseeko and ftello" >&5
15054 printf %s "checking for declarations of fseeko and ftello... " >&6; }
15055 if test ${ac_cv_func_fseeko_ftello+y}
15056 then :
15057 printf %s "(cached) " >&6
15058 else case e in #(
15059 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15060 /* end confdefs.h. */
15061
15062 #if defined __hpux && !defined _LARGEFILE_SOURCE
15063 # include <limits.h>
15064 # if LONG_MAX >> 31 == 0
15065 # error "32-bit HP-UX 11/ia64 needs _LARGEFILE_SOURCE for fseeko in C++"
15066 # endif
15067 #endif
15068 #include <sys/types.h> /* for off_t */
15069 #include <stdio.h>
15070
15071 int
15072 main (void)
15073 {
15074
15075 int (*fp1) (FILE *, off_t, int) = fseeko;
15076 off_t (*fp2) (FILE *) = ftello;
15077 return fseeko (stdin, 0, 0)
15078 && fp1 (stdin, 0, 0)
15079 && ftello (stdin) >= 0
15080 && fp2 (stdin) >= 0;
15081
15082 ;
15083 return 0;
15084 }
15085 _ACEOF
15086 if ac_fn_c_try_compile "$LINENO"
15087 then :
15088 ac_cv_func_fseeko_ftello=yes
15089 else case e in #(
15090 e) ac_save_CPPFLAGS="$CPPFLAGS"
15091 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE=1"
15092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15093 /* end confdefs.h. */
15094
15095 #if defined __hpux && !defined _LARGEFILE_SOURCE
15096 # include <limits.h>
15097 # if LONG_MAX >> 31 == 0
15098 # error "32-bit HP-UX 11/ia64 needs _LARGEFILE_SOURCE for fseeko in C++"
15099 # endif
15100 #endif
15101 #include <sys/types.h> /* for off_t */
15102 #include <stdio.h>
15103
15104 int
15105 main (void)
15106 {
15107
15108 int (*fp1) (FILE *, off_t, int) = fseeko;
15109 off_t (*fp2) (FILE *) = ftello;
15110 return fseeko (stdin, 0, 0)
15111 && fp1 (stdin, 0, 0)
15112 && ftello (stdin) >= 0
15113 && fp2 (stdin) >= 0;
15114
15115 ;
15116 return 0;
15117 }
15118 _ACEOF
15119 if ac_fn_c_try_compile "$LINENO"
15120 then :
15121 ac_cv_func_fseeko_ftello="need _LARGEFILE_SOURCE"
15122 else case e in #(
15123 e) ac_cv_func_fseeko_ftello=no ;;
15124 esac
15125 fi
15126 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15127 esac
15128 fi
15129 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15130 esac
15131 fi
15132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fseeko_ftello" >&5
15133 printf "%s\n" "$ac_cv_func_fseeko_ftello" >&6; }
15134 if test "$ac_cv_func_fseeko_ftello" != no
15135 then :
15136
15137 printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h
15138
15139 fi
15140 if test "$ac_cv_func_fseeko_ftello" = "need _LARGEFILE_SOURCE"
15141 then :
15142
15143 printf "%s\n" "#define _LARGEFILE_SOURCE 1" >>confdefs.h
15144
15145 fi
15146
15147 ac_header_dirent=no
15148 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15149 as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | sed "$as_sed_sh"`
15150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
15151 printf %s "checking for $ac_hdr that defines DIR... " >&6; }
15152 if eval test \${$as_ac_Header+y}
15153 then :
15154 printf %s "(cached) " >&6
15155 else case e in #(
15156 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15157 /* end confdefs.h. */
15158 #include <sys/types.h>
15159 #include <$ac_hdr>
15160
15161 int
15162 main (void)
15163 {
15164 if ((DIR *) 0)
15165 return 0;
15166 ;
15167 return 0;
15168 }
15169 _ACEOF
15170 if ac_fn_c_try_compile "$LINENO"
15171 then :
15172 eval "$as_ac_Header=yes"
15173 else case e in #(
15174 e) eval "$as_ac_Header=no" ;;
15175 esac
15176 fi
15177 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15178 esac
15179 fi
15180 eval ac_res=\$$as_ac_Header
15181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15182 printf "%s\n" "$ac_res" >&6; }
15183 if eval test \"x\$"$as_ac_Header"\" = x"yes"
15184 then :
15185 cat >>confdefs.h <<_ACEOF
15186 #define `printf "%s\n" "HAVE_$ac_hdr" | sed "$as_sed_cpp"` 1
15187 _ACEOF
15188
15189 ac_header_dirent=$ac_hdr; break
15190 fi
15191
15192 done
15193 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15194 if test $ac_header_dirent = dirent.h; then
15195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
15196 printf %s "checking for library containing opendir... " >&6; }
15197 if test ${ac_cv_search_opendir+y}
15198 then :
15199 printf %s "(cached) " >&6
15200 else case e in #(
15201 e) ac_func_search_save_LIBS=$LIBS
15202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15203 /* end confdefs.h. */
15204
15205 /* Override any GCC internal prototype to avoid an error.
15206 Use char because int might match the return type of a GCC
15207 builtin and then its argument prototype would still apply.
15208 The 'extern "C"' is for builds by C++ compilers;
15209 although this is not generally supported in C code supporting it here
15210 has little cost and some practical benefit (sr 110532). */
15211 #ifdef __cplusplus
15212 extern "C"
15213 #endif
15214 char opendir (void);
15215 int
15216 main (void)
15217 {
15218 return opendir ();
15219 ;
15220 return 0;
15221 }
15222 _ACEOF
15223 for ac_lib in '' dir
15224 do
15225 if test -z "$ac_lib"; then
15226 ac_res="none required"
15227 else
15228 ac_res=-l$ac_lib
15229 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15230 fi
15231 if ac_fn_c_try_link "$LINENO"
15232 then :
15233 ac_cv_search_opendir=$ac_res
15234 fi
15235 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15236 conftest$ac_exeext
15237 if test ${ac_cv_search_opendir+y}
15238 then :
15239 break
15240 fi
15241 done
15242 if test ${ac_cv_search_opendir+y}
15243 then :
15244
15245 else case e in #(
15246 e) ac_cv_search_opendir=no ;;
15247 esac
15248 fi
15249 rm conftest.$ac_ext
15250 LIBS=$ac_func_search_save_LIBS ;;
15251 esac
15252 fi
15253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15254 printf "%s\n" "$ac_cv_search_opendir" >&6; }
15255 ac_res=$ac_cv_search_opendir
15256 if test "$ac_res" != no
15257 then :
15258 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15259
15260 fi
15261
15262 else
15263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
15264 printf %s "checking for library containing opendir... " >&6; }
15265 if test ${ac_cv_search_opendir+y}
15266 then :
15267 printf %s "(cached) " >&6
15268 else case e in #(
15269 e) ac_func_search_save_LIBS=$LIBS
15270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15271 /* end confdefs.h. */
15272
15273 /* Override any GCC internal prototype to avoid an error.
15274 Use char because int might match the return type of a GCC
15275 builtin and then its argument prototype would still apply.
15276 The 'extern "C"' is for builds by C++ compilers;
15277 although this is not generally supported in C code supporting it here
15278 has little cost and some practical benefit (sr 110532). */
15279 #ifdef __cplusplus
15280 extern "C"
15281 #endif
15282 char opendir (void);
15283 int
15284 main (void)
15285 {
15286 return opendir ();
15287 ;
15288 return 0;
15289 }
15290 _ACEOF
15291 for ac_lib in '' x
15292 do
15293 if test -z "$ac_lib"; then
15294 ac_res="none required"
15295 else
15296 ac_res=-l$ac_lib
15297 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15298 fi
15299 if ac_fn_c_try_link "$LINENO"
15300 then :
15301 ac_cv_search_opendir=$ac_res
15302 fi
15303 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15304 conftest$ac_exeext
15305 if test ${ac_cv_search_opendir+y}
15306 then :
15307 break
15308 fi
15309 done
15310 if test ${ac_cv_search_opendir+y}
15311 then :
15312
15313 else case e in #(
15314 e) ac_cv_search_opendir=no ;;
15315 esac
15316 fi
15317 rm conftest.$ac_ext
15318 LIBS=$ac_func_search_save_LIBS ;;
15319 esac
15320 fi
15321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15322 printf "%s\n" "$ac_cv_search_opendir" >&6; }
15323 ac_res=$ac_cv_search_opendir
15324 if test "$ac_res" != no
15325 then :
15326 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15327
15328 fi
15329
15330 fi
15331
15332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
15333 printf %s "checking whether closedir returns void... " >&6; }
15334 if test ${ac_cv_func_closedir_void+y}
15335 then :
15336 printf %s "(cached) " >&6
15337 else case e in #(
15338 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15339 /* end confdefs.h. */
15340
15341 #include <$ac_header_dirent>
15342
15343 int
15344 main (void)
15345 {
15346
15347 return closedir(0);
15348
15349 ;
15350 return 0;
15351 }
15352 _ACEOF
15353 if ac_fn_c_try_compile "$LINENO"
15354 then :
15355 ac_cv_func_closedir_void=no
15356 else case e in #(
15357 e) ac_cv_func_closedir_void=yes ;;
15358 esac
15359 fi
15360 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15361 esac
15362 fi
15363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
15364 printf "%s\n" "$ac_cv_func_closedir_void" >&6; }
15365 if test $ac_cv_func_closedir_void = yes; then
15366
15367 printf "%s\n" "#define CLOSEDIR_VOID 1" >>confdefs.h
15368
15369 fi
15370
15371 ac_fn_c_check_header_compile "$LINENO" "assert.h" "ac_cv_header_assert_h" "$ac_includes_default"
15372 if test "x$ac_cv_header_assert_h" = xyes
15373 then :
15374 printf "%s\n" "#define HAVE_ASSERT_H 1" >>confdefs.h
15375
15376 fi
15377 ac_fn_c_check_header_compile "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
15378 if test "x$ac_cv_header_float_h" = xyes
15379 then :
15380 printf "%s\n" "#define HAVE_FLOAT_H 1" >>confdefs.h
15381
15382 fi
15383 ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
15384 if test "x$ac_cv_header_limits_h" = xyes
15385 then :
15386 printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
15387
15388 fi
15389 ac_fn_c_check_header_compile "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default"
15390 if test "x$ac_cv_header_pwd_h" = xyes
15391 then :
15392 printf "%s\n" "#define HAVE_PWD_H 1" >>confdefs.h
15393
15394 fi
15395 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
15396 if test "x$ac_cv_header_stdlib_h" = xyes
15397 then :
15398 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
15399
15400 fi
15401 ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
15402 if test "x$ac_cv_header_sys_param_h" = xyes
15403 then :
15404 printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
15405
15406 fi
15407
15408 ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
15409 if test "x$ac_cv_func_putenv" = xyes
15410 then :
15411 printf "%s\n" "#define HAVE_PUTENV 1" >>confdefs.h
15412
15413 fi
15414
15415 ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
15416 if test "x$ac_cv_func_getcwd" = xyes
15417 then :
15418 printf "%s\n" "#define HAVE_GETCWD 1" >>confdefs.h
15419
15420 fi
15421 ac_fn_c_check_func "$LINENO" "memcmp" "ac_cv_func_memcmp"
15422 if test "x$ac_cv_func_memcmp" = xyes
15423 then :
15424 printf "%s\n" "#define HAVE_MEMCMP 1" >>confdefs.h
15425
15426 fi
15427 ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
15428 if test "x$ac_cv_func_memcpy" = xyes
15429 then :
15430 printf "%s\n" "#define HAVE_MEMCPY 1" >>confdefs.h
15431
15432 fi
15433 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
15434 if test "x$ac_cv_func_mkstemp" = xyes
15435 then :
15436 printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h
15437
15438 fi
15439 ac_fn_c_check_func "$LINENO" "mktemp" "ac_cv_func_mktemp"
15440 if test "x$ac_cv_func_mktemp" = xyes
15441 then :
15442 printf "%s\n" "#define HAVE_MKTEMP 1" >>confdefs.h
15443
15444 fi
15445 ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
15446 if test "x$ac_cv_func_strchr" = xyes
15447 then :
15448 printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
15449
15450 fi
15451 ac_fn_c_check_func "$LINENO" "strrchr" "ac_cv_func_strrchr"
15452 if test "x$ac_cv_func_strrchr" = xyes
15453 then :
15454 printf "%s\n" "#define HAVE_STRRCHR 1" >>confdefs.h
15455
15456 fi
15457
15458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
15459 printf %s "checking for an ANSI C-conforming const... " >&6; }
15460 if test ${ac_cv_c_const+y}
15461 then :
15462 printf %s "(cached) " >&6
15463 else case e in #(
15464 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15465 /* end confdefs.h. */
15466
15467 int
15468 main (void)
15469 {
15470
15471 #ifndef __cplusplus
15472 /* Ultrix mips cc rejects this sort of thing. */
15473 typedef int charset[2];
15474 const charset cs = { 0, 0 };
15475 /* SunOS 4.1.1 cc rejects this. */
15476 char const *const *pcpcc;
15477 char **ppc;
15478 /* NEC SVR4.0.2 mips cc rejects this. */
15479 struct point {int x, y;};
15480 static struct point const zero = {0,0};
15481 /* IBM XL C 1.02.0.0 rejects this.
15482 It does not let you subtract one const X* pointer from another in
15483 an arm of an if-expression whose if-part is not a constant
15484 expression */
15485 const char *g = "string";
15486 pcpcc = &g + (g ? g-g : 0);
15487 /* HPUX 7.0 cc rejects these. */
15488 ++pcpcc;
15489 ppc = (char**) pcpcc;
15490 pcpcc = (char const *const *) ppc;
15491 { /* SCO 3.2v4 cc rejects this sort of thing. */
15492 char tx;
15493 char *t = &tx;
15494 char const *s = 0 ? (char *) 0 : (char const *) 0;
15495
15496 *t++ = 0;
15497 if (s) return 0;
15498 }
15499 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15500 int x[] = {25, 17};
15501 const int *foo = &x[0];
15502 ++foo;
15503 }
15504 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15505 typedef const int *iptr;
15506 iptr p = 0;
15507 ++p;
15508 }
15509 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
15510 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15511 struct s { int j; const int *ap[3]; } bx;
15512 struct s *b = &bx; b->j = 5;
15513 }
15514 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15515 const int foo = 10;
15516 if (!foo) return 0;
15517 }
15518 return !cs[0] && !zero.x;
15519 #endif
15520
15521 ;
15522 return 0;
15523 }
15524 _ACEOF
15525 if ac_fn_c_try_compile "$LINENO"
15526 then :
15527 ac_cv_c_const=yes
15528 else case e in #(
15529 e) ac_cv_c_const=no ;;
15530 esac
15531 fi
15532 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15533 esac
15534 fi
15535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
15536 printf "%s\n" "$ac_cv_c_const" >&6; }
15537 if test $ac_cv_c_const = no; then
15538
15539 printf "%s\n" "#define const /**/" >>confdefs.h
15540
15541 fi
15542
15543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15544 printf %s "checking for inline... " >&6; }
15545 if test ${ac_cv_c_inline+y}
15546 then :
15547 printf %s "(cached) " >&6
15548 else case e in #(
15549 e) ac_cv_c_inline=no
15550 for ac_kw in inline __inline__ __inline; do
15551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15552 /* end confdefs.h. */
15553 #ifndef __cplusplus
15554 typedef int foo_t;
15555 static $ac_kw foo_t static_foo (void) {return 0; }
15556 $ac_kw foo_t foo (void) {return 0; }
15557 #endif
15558
15559 _ACEOF
15560 if ac_fn_c_try_compile "$LINENO"
15561 then :
15562 ac_cv_c_inline=$ac_kw
15563 fi
15564 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15565 test "$ac_cv_c_inline" != no && break
15566 done
15567 ;;
15568 esac
15569 fi
15570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15571 printf "%s\n" "$ac_cv_c_inline" >&6; }
15572
15573 case $ac_cv_c_inline in
15574 inline | yes) ;;
15575 *)
15576 case $ac_cv_c_inline in
15577 no) ac_val=;;
15578 *) ac_val=$ac_cv_c_inline;;
15579 esac
15580 cat >>confdefs.h <<_ACEOF
15581 #ifndef __cplusplus
15582 #define inline $ac_val
15583 #endif
15584 _ACEOF
15585 ;;
15586 esac
15587
15588 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15589 if test "x$ac_cv_type_size_t" = xyes
15590 then :
15591
15592 else case e in #(
15593 e)
15594 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
15595 ;;
15596 esac
15597 fi
15598
15599 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
15600 case $ac_cv_c_int64_t in #(
15601 no|yes) ;; #(
15602 *)
15603
15604 printf "%s\n" "#define int64_t $ac_cv_c_int64_t" >>confdefs.h
15605 ;;
15606 esac
15607
15608 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
15609 case $ac_cv_c_uint64_t in #(
15610 no|yes) ;; #(
15611 *)
15612
15613 printf "%s\n" "#define _UINT64_T 1" >>confdefs.h
15614
15615
15616 printf "%s\n" "#define uint64_t $ac_cv_c_uint64_t" >>confdefs.h
15617 ;;
15618 esac
15619
15620 case :$ac_cv_c_int64_t:$ac_cv_c_int64_t: in #(
15621 *':no:'*) :
15622 as_fn_error $? "Sorry, your compiler does not support 64-bit integer types." "$LINENO" 5 ;; #(
15623 *) :
15624 ;;
15625 esac
15626 ac_fn_check_decl "$LINENO" "isascii" "ac_cv_have_decl_isascii" "#include <ctype.h>
15627 " "$ac_c_undeclared_builtin_options" "CFLAGS"
15628 if test "x$ac_cv_have_decl_isascii" = xyes
15629 then :
15630 ac_have_decl=1
15631 else case e in #(
15632 e) ac_have_decl=0 ;;
15633 esac
15634 fi
15635 printf "%s\n" "#define HAVE_DECL_ISASCII $ac_have_decl" >>confdefs.h
15636
15637 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
15638 if test "x$ac_cv_member_struct_stat_st_mtim" = xyes
15639 then :
15640
15641 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_MTIM 1" >>confdefs.h
15642
15643
15644 fi
15645
15646
15647
15648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing pow" >&5
15649 printf %s "checking for library containing pow... " >&6; }
15650 if test ${ac_cv_search_pow+y}
15651 then :
15652 printf %s "(cached) " >&6
15653 else case e in #(
15654 e) ac_func_search_save_LIBS=$LIBS
15655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15656 /* end confdefs.h. */
15657
15658 /* Override any GCC internal prototype to avoid an error.
15659 Use char because int might match the return type of a GCC
15660 builtin and then its argument prototype would still apply.
15661 The 'extern "C"' is for builds by C++ compilers;
15662 although this is not generally supported in C code supporting it here
15663 has little cost and some practical benefit (sr 110532). */
15664 #ifdef __cplusplus
15665 extern "C"
15666 #endif
15667 char pow (void);
15668 int
15669 main (void)
15670 {
15671 return pow ();
15672 ;
15673 return 0;
15674 }
15675 _ACEOF
15676 for ac_lib in '' m
15677 do
15678 if test -z "$ac_lib"; then
15679 ac_res="none required"
15680 else
15681 ac_res=-l$ac_lib
15682 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15683 fi
15684 if ac_fn_c_try_link "$LINENO"
15685 then :
15686 ac_cv_search_pow=$ac_res
15687 fi
15688 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15689 conftest$ac_exeext
15690 if test ${ac_cv_search_pow+y}
15691 then :
15692 break
15693 fi
15694 done
15695 if test ${ac_cv_search_pow+y}
15696 then :
15697
15698 else case e in #(
15699 e) ac_cv_search_pow=no ;;
15700 esac
15701 fi
15702 rm conftest.$ac_ext
15703 LIBS=$ac_func_search_save_LIBS ;;
15704 esac
15705 fi
15706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pow" >&5
15707 printf "%s\n" "$ac_cv_search_pow" >&6; }
15708 ac_res=$ac_cv_search_pow
15709 if test "$ac_res" != no
15710 then :
15711 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15712
15713 fi
15714
15715
15716 # Autoupdate added the next two lines to ensure that your configure
15717 # script's behavior did not change. They are probably safe to remove.
15718
15719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
15720 printf %s "checking for egrep... " >&6; }
15721 if test ${ac_cv_path_EGREP+y}
15722 then :
15723 printf %s "(cached) " >&6
15724 else case e in #(
15725 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
15726 then ac_cv_path_EGREP="$GREP -E"
15727 else
15728 if test -z "$EGREP"; then
15729 ac_path_EGREP_found=false
15730 # Loop through the user's path and test for each of PROGNAME-LIST
15731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15732 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
15733 do
15734 IFS=$as_save_IFS
15735 case $as_dir in #(((
15736 '') as_dir=./ ;;
15737 */) ;;
15738 *) as_dir=$as_dir/ ;;
15739 esac
15740 for ac_prog in egrep
15741 do
15742 for ac_exec_ext in '' $ac_executable_extensions; do
15743 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
15744 as_fn_executable_p "$ac_path_EGREP" || continue
15745 # Check for GNU ac_path_EGREP and select it if it is found.
15746 # Check for GNU $ac_path_EGREP
15747 case `"$ac_path_EGREP" --version 2>&1` in #(
15748 *GNU*)
15749 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
15750 #(
15751 *)
15752 ac_count=0
15753 printf %s 0123456789 >"conftest.in"
15754 while :
15755 do
15756 cat "conftest.in" "conftest.in" >"conftest.tmp"
15757 mv "conftest.tmp" "conftest.in"
15758 cp "conftest.in" "conftest.nl"
15759 printf "%s\n" 'EGREP' >> "conftest.nl"
15760 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
15761 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
15762 as_fn_arith $ac_count + 1 && ac_count=$as_val
15763 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
15764 # Best one so far, save it but keep looking for a better one
15765 ac_cv_path_EGREP="$ac_path_EGREP"
15766 ac_path_EGREP_max=$ac_count
15767 fi
15768 # 10*(2^10) chars as input seems more than enough
15769 test $ac_count -gt 10 && break
15770 done
15771 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
15772 esac
15773
15774 $ac_path_EGREP_found && break 3
15775 done
15776 done
15777 done
15778 IFS=$as_save_IFS
15779 if test -z "$ac_cv_path_EGREP"; then
15780 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
15781 fi
15782 else
15783 ac_cv_path_EGREP=$EGREP
15784 fi
15785
15786 fi ;;
15787 esac
15788 fi
15789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
15790 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
15791 EGREP="$ac_cv_path_EGREP"
15792
15793 EGREP_TRADITIONAL=$EGREP
15794 ac_cv_path_EGREP_TRADITIONAL=$EGREP
15795
15796
15797 ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
15798 if test "x$ac_cv_header_fcntl_h" = xyes
15799 then :
15800 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
15801
15802 fi
15803
15804
15805 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
15806 case $ac_cv_c_int32_t in #(
15807 no|yes) ;; #(
15808 *)
15809
15810 printf "%s\n" "#define int32_t $ac_cv_c_int32_t" >>confdefs.h
15811 ;;
15812 esac
15813
15814
15815 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
15816 if test "x$ac_cv_type_intptr_t" = xyes
15817 then :
15818
15819 printf "%s\n" "#define HAVE_INTPTR_T 1" >>confdefs.h
15820
15821 else case e in #(
15822 e) for ac_type in 'int' 'long int' 'long long int'; do
15823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15824 /* end confdefs.h. */
15825 $ac_includes_default
15826 int
15827 main (void)
15828 {
15829 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
15830 test_array [0] = 0;
15831 return test_array [0];
15832
15833 ;
15834 return 0;
15835 }
15836 _ACEOF
15837 if ac_fn_c_try_compile "$LINENO"
15838 then :
15839
15840 printf "%s\n" "#define intptr_t $ac_type" >>confdefs.h
15841
15842 ac_type=
15843 fi
15844 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15845 test -z "$ac_type" && break
15846 done ;;
15847 esac
15848 fi
15849
15850
15851 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
15852 case $ac_cv_c_uint32_t in #(
15853 no|yes) ;; #(
15854 *)
15855
15856 printf "%s\n" "#define _UINT32_T 1" >>confdefs.h
15857
15858
15859 printf "%s\n" "#define uint32_t $ac_cv_c_uint32_t" >>confdefs.h
15860 ;;
15861 esac
15862
15863
15864 ac_func=
15865 for ac_item in $ac_func_c_list
15866 do
15867 if test $ac_func; then
15868 ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
15869 if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
15870 echo "#define $ac_item 1" >> confdefs.h
15871 fi
15872 ac_func=
15873 else
15874 ac_func=$ac_item
15875 fi
15876 done
15877
15878 if test "x$ac_cv_func_vprintf" = xno
15879 then :
15880 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
15881 if test "x$ac_cv_func__doprnt" = xyes
15882 then :
15883
15884 printf "%s\n" "#define HAVE_DOPRNT 1" >>confdefs.h
15885
15886 fi
15887
15888 fi
15889 ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
15890 if test "x$ac_cv_func_memset" = xyes
15891 then :
15892 printf "%s\n" "#define HAVE_MEMSET 1" >>confdefs.h
15893
15894 fi
15895
15896
15897 ac_config_headers="$ac_config_headers c-auto.h:c-auto.in"
15898
15899
15900
15901
15902 printf "%s\n" "#define TL_VERSION \"TeX Live 2026\"" >>confdefs.h
15903
15904
15905 for ac_prog in kpsewhich
15906 do
15907 # Extract the first word of "$ac_prog", so it can be a program name with args.
15908 set dummy $ac_prog; ac_word=$2
15909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15910 printf %s "checking for $ac_word... " >&6; }
15911 if test ${ac_cv_prog_KPSEWHICH+y}
15912 then :
15913 printf %s "(cached) " >&6
15914 else case e in #(
15915 e) if test -n "$KPSEWHICH"; then
15916 ac_cv_prog_KPSEWHICH="$KPSEWHICH" # Let the user override the test.
15917 else
15918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15919 for as_dir in $PATH
15920 do
15921 IFS=$as_save_IFS
15922 case $as_dir in #(((
15923 '') as_dir=./ ;;
15924 */) ;;
15925 *) as_dir=$as_dir/ ;;
15926 esac
15927 for ac_exec_ext in '' $ac_executable_extensions; do
15928 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15929 ac_cv_prog_KPSEWHICH="$ac_prog"
15930 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15931 break 2
15932 fi
15933 done
15934 done
15935 IFS=$as_save_IFS
15936
15937 fi ;;
15938 esac
15939 fi
15940 KPSEWHICH=$ac_cv_prog_KPSEWHICH
15941 if test -n "$KPSEWHICH"; then
15942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $KPSEWHICH" >&5
15943 printf "%s\n" "$KPSEWHICH" >&6; }
15944 else
15945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15946 printf "%s\n" "no" >&6; }
15947 fi
15948
15949
15950 test -n "$KPSEWHICH" && break
15951 done
15952 test -n "$KPSEWHICH" || KPSEWHICH="false"
15953
15954
15955 kpse_save_CPPFLAGS=$CPPFLAGS
15956 kpse_save_LIBS=$LIBS
15957
15958 ##tldbg _KPSE_INIT: Initialize TL infrastructure.
15959 kpse_BLD=`(cd "./../../." && pwd)`
15960 kpse_SRC=`(cd "$srcdir/../../." && pwd)`
15961
15962 echo 'tldbg:_KPSE_USE_LIBTOOL called, libtool package version: 2.5.4' >&5
15963 : ${CONFIG_LT=./config.lt}
15964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_LT" >&5
15965 printf "%s\n" "$as_me: creating $CONFIG_LT" >&6;}
15966 as_write_fail=0
15967 cat >"$CONFIG_LT" <<_ASEOF || as_write_fail=1
15968 #! $SHELL
15969 # Generated by $as_me.
15970 # Run this file to recreate a libtool stub with the current configuration.
15971 SHELL=\${CONFIG_SHELL-$SHELL}
15972 export SHELL
15973 _ASEOF
15974 cat >>"$CONFIG_LT" <<\_ASEOF || as_write_fail=1
15975 ## -------------------- ##
15976 ## M4sh Initialization. ##
15977 ## -------------------- ##
15978
15979 # Be more Bourne compatible
15980 DUALCASE=1; export DUALCASE # for MKS sh
15981 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
15982 then :
15983 emulate sh
15984 NULLCMD=:
15985 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15986 # is contrary to our usage. Disable this feature.
15987 alias -g '${1+"$@"}'='"$@"'
15988 setopt NO_GLOB_SUBST
15989 else case e in #(
15990 e) case `(set -o) 2>/dev/null` in #(
15991 *posix*) :
15992 set -o posix ;; #(
15993 *) :
15994 ;;
15995 esac ;;
15996 esac
15997 fi
15998
15999
16000
16001 # Reset variables that may have inherited troublesome values from
16002 # the environment.
16003
16004 # IFS needs to be set, to space, tab, and newline, in precisely that order.
16005 # (If _AS_PATH_WALK were called with IFS unset, it would have the
16006 # side effect of setting IFS to empty, thus disabling word splitting.)
16007 # Quoting is to prevent editors from complaining about space-tab.
16008 as_nl='
16009 '
16010 export as_nl
16011 IFS=" "" $as_nl"
16012
16013 PS1='$ '
16014 PS2='> '
16015 PS4='+ '
16016
16017 # Ensure predictable behavior from utilities with locale-dependent output.
16018 LC_ALL=C
16019 export LC_ALL
16020 LANGUAGE=C
16021 export LANGUAGE
16022
16023 # We cannot yet rely on "unset" to work, but we need these variables
16024 # to be unset--not just set to an empty or harmless value--now, to
16025 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
16026 # also avoids known problems related to "unset" and subshell syntax
16027 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
16028 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
16029 do eval test \${$as_var+y} \
16030 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16031 done
16032
16033 # Ensure that fds 0, 1, and 2 are open.
16034 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
16035 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
16036 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
16037
16038 # The user is always right.
16039 if ${PATH_SEPARATOR+false} :; then
16040 PATH_SEPARATOR=:
16041 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16042 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16043 PATH_SEPARATOR=';'
16044 }
16045 fi
16046
16047
16048 # Find who we are. Look in the path if we contain no directory separator.
16049 as_myself=
16050 case $0 in #((
16051 *[\\/]* ) as_myself=$0 ;;
16052 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16053 for as_dir in $PATH
16054 do
16055 IFS=$as_save_IFS
16056 case $as_dir in #(((
16057 '') as_dir=./ ;;
16058 */) ;;
16059 *) as_dir=$as_dir/ ;;
16060 esac
16061 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
16062 done
16063 IFS=$as_save_IFS
16064
16065 ;;
16066 esac
16067 # We did not find ourselves, most probably we were run as 'sh COMMAND'
16068 # in which case we are not to be found in the path.
16069 if test "x$as_myself" = x; then
16070 as_myself=$0
16071 fi
16072 if test ! -f "$as_myself"; then
16073 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16074 exit 1
16075 fi
16076
16077
16078
16079 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16080 # ----------------------------------------
16081 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16082 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16083 # script with STATUS, using 1 if that was 0.
16084 as_fn_error ()
16085 {
16086 as_status=$1; test $as_status -eq 0 && as_status=1
16087 if test "$4"; then
16088 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16089 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16090 fi
16091 printf "%s\n" "$as_me: error: $2" >&2
16092 as_fn_exit $as_status
16093 } # as_fn_error
16094
16095
16096 # as_fn_set_status STATUS
16097 # -----------------------
16098 # Set $? to STATUS, without forking.
16099 as_fn_set_status ()
16100 {
16101 return $1
16102 } # as_fn_set_status
16103
16104 # as_fn_exit STATUS
16105 # -----------------
16106 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16107 as_fn_exit ()
16108 {
16109 set +e
16110 as_fn_set_status $1
16111 exit $1
16112 } # as_fn_exit
16113
16114 # as_fn_unset VAR
16115 # ---------------
16116 # Portably unset VAR.
16117 as_fn_unset ()
16118 {
16119 { eval $1=; unset $1;}
16120 }
16121 as_unset=as_fn_unset
16122
16123 # as_fn_append VAR VALUE
16124 # ----------------------
16125 # Append the text in VALUE to the end of the definition contained in VAR. Take
16126 # advantage of any shell optimizations that allow amortized linear growth over
16127 # repeated appends, instead of the typical quadratic growth present in naive
16128 # implementations.
16129 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
16130 then :
16131 eval 'as_fn_append ()
16132 {
16133 eval $1+=\$2
16134 }'
16135 else case e in #(
16136 e) as_fn_append ()
16137 {
16138 eval $1=\$$1\$2
16139 } ;;
16140 esac
16141 fi # as_fn_append
16142
16143 # as_fn_arith ARG...
16144 # ------------------
16145 # Perform arithmetic evaluation on the ARGs, and store the result in the
16146 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16147 # must be portable across $(()) and expr.
16148 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
16149 then :
16150 eval 'as_fn_arith ()
16151 {
16152 as_val=$(( $* ))
16153 }'
16154 else case e in #(
16155 e) as_fn_arith ()
16156 {
16157 as_val=`expr "$@" || test $? -eq 1`
16158 } ;;
16159 esac
16160 fi # as_fn_arith
16161
16162
16163 if expr a : '\(a\)' >/dev/null 2>&1 &&
16164 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16165 as_expr=expr
16166 else
16167 as_expr=false
16168 fi
16169
16170 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16171 as_basename=basename
16172 else
16173 as_basename=false
16174 fi
16175
16176 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16177 as_dirname=dirname
16178 else
16179 as_dirname=false
16180 fi
16181
16182 as_me=`$as_basename -- "$0" ||
16183 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16184 X"$0" : 'X\(//\)$' \| \
16185 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16186 printf "%s\n" X/"$0" |
16187 sed '/^.*\/\([^/][^/]*\)\/*$/{
16188 s//\1/
16189 q
16190 }
16191 /^X\/\(\/\/\)$/{
16192 s//\1/
16193 q
16194 }
16195 /^X\/\(\/\).*/{
16196 s//\1/
16197 q
16198 }
16199 s/.*/./; q'`
16200
16201 # Avoid depending upon Character Ranges.
16202 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16203 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16204 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16205 as_cr_digits='0123456789'
16206 as_cr_alnum=$as_cr_Letters$as_cr_digits
16207
16208
16209 # Determine whether it's possible to make 'echo' print without a newline.
16210 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
16211 # for compatibility with existing Makefiles.
16212 ECHO_C= ECHO_N= ECHO_T=
16213 case `echo -n x` in #(((((
16214 -n*)
16215 case `echo 'xy\c'` in
16216 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16217 xy) ECHO_C='\c';;
16218 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16219 ECHO_T=' ';;
16220 esac;;
16221 *)
16222 ECHO_N='-n';;
16223 esac
16224
16225 # For backward compatibility with old third-party macros, we provide
16226 # the shell variables $as_echo and $as_echo_n. New code should use
16227 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
16228 as_echo='printf %s\n'
16229 as_echo_n='printf %s'
16230
16231 rm -f conf$$ conf$$.exe conf$$.file
16232 if test -d conf$$.dir; then
16233 rm -f conf$$.dir/conf$$.file
16234 else
16235 rm -f conf$$.dir
16236 mkdir conf$$.dir 2>/dev/null
16237 fi
16238 if (echo >conf$$.file) 2>/dev/null; then
16239 if ln -s conf$$.file conf$$ 2>/dev/null; then
16240 as_ln_s='ln -s'
16241 # ... but there are two gotchas:
16242 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
16243 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
16244 # In both cases, we have to default to 'cp -pR'.
16245 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16246 as_ln_s='cp -pR'
16247 elif ln conf$$.file conf$$ 2>/dev/null; then
16248 as_ln_s=ln
16249 else
16250 as_ln_s='cp -pR'
16251 fi
16252 else
16253 as_ln_s='cp -pR'
16254 fi
16255 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16256 rmdir conf$$.dir 2>/dev/null
16257
16258
16259 # as_fn_mkdir_p
16260 # -------------
16261 # Create "$as_dir" as a directory, including parents if necessary.
16262 as_fn_mkdir_p ()
16263 {
16264
16265 case $as_dir in #(
16266 -*) as_dir=./$as_dir;;
16267 esac
16268 test -d "$as_dir" || eval $as_mkdir_p || {
16269 as_dirs=
16270 while :; do
16271 case $as_dir in #(
16272 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16273 *) as_qdir=$as_dir;;
16274 esac
16275 as_dirs="'$as_qdir' $as_dirs"
16276 as_dir=`$as_dirname -- "$as_dir" ||
16277 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16278 X"$as_dir" : 'X\(//\)[^/]' \| \
16279 X"$as_dir" : 'X\(//\)$' \| \
16280 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16281 printf "%s\n" X"$as_dir" |
16282 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16283 s//\1/
16284 q
16285 }
16286 /^X\(\/\/\)[^/].*/{
16287 s//\1/
16288 q
16289 }
16290 /^X\(\/\/\)$/{
16291 s//\1/
16292 q
16293 }
16294 /^X\(\/\).*/{
16295 s//\1/
16296 q
16297 }
16298 s/.*/./; q'`
16299 test -d "$as_dir" && break
16300 done
16301 test -z "$as_dirs" || eval "mkdir $as_dirs"
16302 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16303
16304
16305 } # as_fn_mkdir_p
16306 if mkdir -p . 2>/dev/null; then
16307 as_mkdir_p='mkdir -p "$as_dir"'
16308 else
16309 test -d ./-p && rmdir ./-p
16310 as_mkdir_p=false
16311 fi
16312
16313
16314 # as_fn_executable_p FILE
16315 # -----------------------
16316 # Test if FILE is an executable regular file.
16317 as_fn_executable_p ()
16318 {
16319 test -f "$1" && test -x "$1"
16320 } # as_fn_executable_p
16321 as_test_x='test -x'
16322 as_executable_p=as_fn_executable_p
16323
16324 # Sed expression to map a string onto a valid CPP name.
16325 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
16326 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
16327
16328 # Sed expression to map a string onto a valid variable name.
16329 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
16330 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
16331
16332
16333 exec 6>&1
16334 ## --------------------------------- ##
16335 ## Main body of "$CONFIG_LT" script. ##
16336 ## --------------------------------- ##
16337 _ASEOF
16338 test $as_write_fail = 0 && chmod +x "$CONFIG_LT"
16339
16340 cat >>"$CONFIG_LT" <<\_LTEOF
16341 lt_cl_silent=false
16342 exec 5>>config.log
16343 {
16344 echo
16345 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16346 ## Running $as_me. ##
16347 _ASBOX
16348 } >&5
16349
16350 lt_cl_help="\
16351 '$as_me' creates a local libtool stub from the current configuration,
16352 for use in further configure time tests before the real libtool is
16353 generated.
16354
16355 Usage: $0 [OPTIONS]
16356
16357 -h, --help print this help, then exit
16358 -V, --version print version number, then exit
16359 -q, --quiet do not print progress messages
16360 -d, --debug don't remove temporary files
16361
16362 Report bugs to <[email protected]>."
16363
16364 lt_cl_version="\
16365 ps2pkm (TeX Live) config.lt 1.8
16366 configured by $0, generated by GNU Autoconf 2.72.
16367
16368 Copyright (C) 2024 Free Software Foundation, Inc.
16369 This config.lt script is free software; the Free Software Foundation
16370 gives unlimited permission to copy, distribute and modify it."
16371
16372 while test 0 != $#
16373 do
16374 case $1 in
16375 --version | --v* | -V )
16376 echo "$lt_cl_version"; exit 0 ;;
16377 --help | --h* | -h )
16378 echo "$lt_cl_help"; exit 0 ;;
16379 --debug | --d* | -d )
16380 debug=: ;;
16381 --quiet | --q* | --silent | --s* | -q )
16382 lt_cl_silent=: ;;
16383
16384 -*) as_fn_error $? "unrecognized option: $1
16385 Try '$0 --help' for more information." "$LINENO" 5 ;;
16386
16387 *) as_fn_error $? "unrecognized argument: $1
16388 Try '$0 --help' for more information." "$LINENO" 5 ;;
16389 esac
16390 shift
16391 done
16392
16393 if $lt_cl_silent; then
16394 exec 6>/dev/null
16395 fi
16396 _LTEOF
16397
16398 cat >>"$CONFIG_LT" <<_LTEOF
16399
16400
16401 # The HP-UX ksh and POSIX shell print the target directory to stdout
16402 # if CDPATH is set.
16403 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16404
16405 sed_quote_subst='$sed_quote_subst'
16406 double_quote_subst='$double_quote_subst'
16407 delay_variable_subst='$delay_variable_subst'
16408 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16409 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16410 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
16411 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16412 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16413 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16414 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16415 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16416 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16417 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
16418 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16419 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16420 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16421 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16422 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16423 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16424 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16425 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16426 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16427 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16428 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16429 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16430 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16431 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16432 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16433 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16434 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16435 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16436 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16437 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16438 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16439 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16440 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16441 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16442 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16443 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16444 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16445 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
16446 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16447 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16448 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16449 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16450 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16451 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16452 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
16453 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16454 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16455 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16456 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16457 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16458 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16459 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16460 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16461 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16462 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16463 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16464 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16465 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16466 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16467 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
16468 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16469 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"`'
16470 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
16471 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16472 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16473 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
16474 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16475 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16476 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16477 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16478 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16479 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16480 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16481 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16482 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16483 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16484 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16485 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16486 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16487 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16488 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16489 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16490 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16491 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16492 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16493 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16494 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16495 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16496 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16497 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16498 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16499 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16500 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16501 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16502 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16503 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16504 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16505 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16506 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16507 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16508 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16509 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16510 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16511 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16512 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16513 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16514 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16515 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16516 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16517 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16518 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16519 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16520 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16521 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16522 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16523 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16524 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16525 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16526 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16527 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16528 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16529 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16530 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16531 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16532 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16533 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16534 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16535 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16536 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16537 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16538 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
16539 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
16540 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16541 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16542 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16543 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16544 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16545 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16546
16547 LTCC='$LTCC'
16548 LTCFLAGS='$LTCFLAGS'
16549 compiler='$compiler_DEFAULT'
16550
16551 # A function that is used when there is no print builtin or printf.
16552 func_fallback_echo ()
16553 {
16554 eval 'cat <<_LTECHO_EOF
16555 \$1
16556 _LTECHO_EOF'
16557 }
16558
16559 # Quote evaled strings.
16560 for var in AS \
16561 DLLTOOL \
16562 OBJDUMP \
16563 SHELL \
16564 ECHO \
16565 PATH_SEPARATOR \
16566 SED \
16567 GREP \
16568 EGREP \
16569 FGREP \
16570 LD \
16571 NM \
16572 LN_S \
16573 lt_SP2NL \
16574 lt_NL2SP \
16575 reload_flag \
16576 FILECMD \
16577 deplibs_check_method \
16578 file_magic_cmd \
16579 file_magic_glob \
16580 want_nocaseglob \
16581 sharedlib_from_linklib_cmd \
16582 AR \
16583 archiver_list_spec \
16584 STRIP \
16585 RANLIB \
16586 CC \
16587 CFLAGS \
16588 compiler \
16589 lt_cv_sys_global_symbol_pipe \
16590 lt_cv_sys_global_symbol_to_cdecl \
16591 lt_cv_sys_global_symbol_to_import \
16592 lt_cv_sys_global_symbol_to_c_name_address \
16593 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16594 lt_cv_nm_interface \
16595 nm_file_list_spec \
16596 lt_cv_truncate_bin \
16597 lt_prog_compiler_no_builtin_flag \
16598 lt_prog_compiler_pic \
16599 lt_prog_compiler_wl \
16600 lt_prog_compiler_static \
16601 lt_cv_prog_compiler_c_o \
16602 need_locks \
16603 MANIFEST_TOOL \
16604 DSYMUTIL \
16605 NMEDIT \
16606 LIPO \
16607 OTOOL \
16608 OTOOL64 \
16609 shrext_cmds \
16610 export_dynamic_flag_spec \
16611 whole_archive_flag_spec \
16612 compiler_needs_object \
16613 with_gnu_ld \
16614 allow_undefined_flag \
16615 no_undefined_flag \
16616 hardcode_libdir_flag_spec \
16617 hardcode_libdir_separator \
16618 exclude_expsyms \
16619 include_expsyms \
16620 file_list_spec \
16621 variables_saved_for_relink \
16622 libname_spec \
16623 library_names_spec \
16624 soname_spec \
16625 install_override_mode \
16626 finish_eval \
16627 old_striplib \
16628 striplib; do
16629 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16630 *[\\\\\\\`\\"\\\$]*)
16631 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16632 ;;
16633 *)
16634 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16635 ;;
16636 esac
16637 done
16638
16639 # Double-quote double-evaled strings.
16640 for var in reload_cmds \
16641 old_postinstall_cmds \
16642 old_postuninstall_cmds \
16643 old_archive_cmds \
16644 extract_expsyms_cmds \
16645 old_archive_from_new_cmds \
16646 old_archive_from_expsyms_cmds \
16647 archive_cmds \
16648 archive_expsym_cmds \
16649 module_cmds \
16650 module_expsym_cmds \
16651 export_symbols_cmds \
16652 prelink_cmds \
16653 postlink_cmds \
16654 postinstall_cmds \
16655 postuninstall_cmds \
16656 finish_cmds \
16657 sys_lib_search_path_spec \
16658 configure_time_dlsearch_path \
16659 configure_time_lt_sys_library_path; do
16660 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16661 *[\\\\\\\`\\"\\\$]*)
16662 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16663 ;;
16664 *)
16665 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16666 ;;
16667 esac
16668 done
16669
16670 ac_aux_dir='$ac_aux_dir'
16671
16672 # See if we are running on zsh, and set the options that allow our
16673 # commands through without removal of \ escapes INIT.
16674 if test -n "\${ZSH_VERSION+set}"; then
16675 setopt NO_GLOB_SUBST
16676 fi
16677
16678
16679 PACKAGE='$PACKAGE'
16680 VERSION='$VERSION'
16681 RM='$RM'
16682 ofile='$ofile'
16683
16684
16685
16686 _LTEOF
16687
16688 cat >>"$CONFIG_LT" <<\_LTEOF
16689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
16690 printf "%s\n" "$as_me: creating $ofile" >&6;}
16691
16692
16693 # See if we are running on zsh, and set the options that allow our
16694 # commands through without removal of \ escapes.
16695 if test -n "${ZSH_VERSION+set}"; then
16696 setopt NO_GLOB_SUBST
16697 fi
16698
16699 cfgfile=${ofile}T
16700 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16701 $RM "$cfgfile"
16702
16703 cat <<_LT_EOF >> "$cfgfile"
16704 #! $SHELL
16705 # Generated automatically by $as_me ($PACKAGE) $VERSION
16706 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16707
16708 # Provide generalized library-building support services.
16709 # Written by Gordon Matzigkeit, 1996
16710
16711 # Copyright (C) 2024 Free Software Foundation, Inc.
16712 # This is free software; see the source for copying conditions. There is NO
16713 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16714
16715 # GNU Libtool is free software; you can redistribute it and/or modify
16716 # it under the terms of the GNU General Public License as published by
16717 # the Free Software Foundation; either version 2 of the License, or
16718 # (at your option) any later version.
16719 #
16720 # As a special exception to the GNU General Public License, if you
16721 # distribute this file as part of a program or library that is built
16722 # using GNU Libtool, you may include this file under the same
16723 # distribution terms that you use for the rest of that program.
16724 #
16725 # GNU Libtool is distributed in the hope that it will be useful, but
16726 # WITHOUT ANY WARRANTY; without even the implied warranty of
16727 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16728 # GNU General Public License for more details.
16729 #
16730 # You should have received a copy of the GNU General Public License
16731 # along with this program. If not, see <http://www.gnu.org/licenses/>.
16732
16733
16734 # The names of the tagged configurations supported by this script.
16735 available_tags=''
16736
16737 # Configured defaults for sys_lib_dlsearch_path munging.
16738 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
16739
16740 # ### BEGIN LIBTOOL CONFIG
16741
16742 # Which release of libtool.m4 was used?
16743 macro_version=$macro_version
16744 macro_revision=$macro_revision
16745
16746 # Assembler program.
16747 AS=$lt_AS
16748
16749 # DLL creation program.
16750 DLLTOOL=$lt_DLLTOOL
16751
16752 # Object dumper program.
16753 OBJDUMP=$lt_OBJDUMP
16754
16755 # Whether or not to build shared libraries.
16756 build_libtool_libs=$enable_shared
16757
16758 # Whether or not to build static libraries.
16759 build_old_libs=$enable_static
16760
16761 # What type of objects to build.
16762 pic_mode=$pic_mode
16763
16764 # Whether or not to optimize for fast installation.
16765 fast_install=$enable_fast_install
16766
16767 # Shared archive member basename,for filename based shared library versioning on AIX.
16768 shared_archive_member_spec=$shared_archive_member_spec
16769
16770 # Shell to use when invoking shell scripts.
16771 SHELL=$lt_SHELL
16772
16773 # An echo program that protects backslashes.
16774 ECHO=$lt_ECHO
16775
16776 # The PATH separator for the build system.
16777 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16778
16779 # The host system.
16780 host_alias=$host_alias
16781 host=$host
16782 host_os=$host_os
16783
16784 # The build system.
16785 build_alias=$build_alias
16786 build=$build
16787 build_os=$build_os
16788
16789 # A sed program that does not truncate output.
16790 SED=$lt_SED
16791
16792 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16793 Xsed="\$SED -e 1s/^X//"
16794
16795 # A grep program that handles long lines.
16796 GREP=$lt_GREP
16797
16798 # An ERE matcher.
16799 EGREP=$lt_EGREP
16800
16801 # A literal string matcher.
16802 FGREP=$lt_FGREP
16803
16804 # A BSD- or MS-compatible name lister.
16805 NM=$lt_NM
16806
16807 # Whether we need soft or hard links.
16808 LN_S=$lt_LN_S
16809
16810 # What is the maximum length of a command?
16811 max_cmd_len=$max_cmd_len
16812
16813 # Object file suffix (normally "o").
16814 objext=$ac_objext
16815
16816 # Executable file suffix (normally "").
16817 exeext=$exeext
16818
16819 # whether the shell understands "unset".
16820 lt_unset=$lt_unset
16821
16822 # turn spaces into newlines.
16823 SP2NL=$lt_lt_SP2NL
16824
16825 # turn newlines into spaces.
16826 NL2SP=$lt_lt_NL2SP
16827
16828 # convert \$build file names to \$host format.
16829 to_host_file_cmd=$lt_cv_to_host_file_cmd
16830
16831 # convert \$build files to toolchain format.
16832 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16833
16834 # A file(cmd) program that detects file types.
16835 FILECMD=$lt_FILECMD
16836
16837 # Method to check whether dependent libraries are shared objects.
16838 deplibs_check_method=$lt_deplibs_check_method
16839
16840 # Command to use when deplibs_check_method = "file_magic".
16841 file_magic_cmd=$lt_file_magic_cmd
16842
16843 # How to find potential files when deplibs_check_method = "file_magic".
16844 file_magic_glob=$lt_file_magic_glob
16845
16846 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16847 want_nocaseglob=$lt_want_nocaseglob
16848
16849 # Command to associate shared and link libraries.
16850 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16851
16852 # The archiver.
16853 AR=$lt_AR
16854
16855 # Flags to create an archive (by configure).
16856 lt_ar_flags=$lt_ar_flags
16857
16858 # Flags to create an archive.
16859 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
16860
16861 # How to feed a file listing to the archiver.
16862 archiver_list_spec=$lt_archiver_list_spec
16863
16864 # A symbol stripping program.
16865 STRIP=$lt_STRIP
16866
16867 # Commands used to install an old-style archive.
16868 RANLIB=$lt_RANLIB
16869 old_postinstall_cmds=$lt_old_postinstall_cmds
16870 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16871
16872 # Whether to use a lock for old archive extraction.
16873 lock_old_archive_extraction=$lock_old_archive_extraction
16874
16875 # A C compiler.
16876 LTCC=$lt_CC
16877
16878 # LTCC compiler flags.
16879 LTCFLAGS=$lt_CFLAGS
16880
16881 # Take the output of nm and produce a listing of raw symbols and C names.
16882 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16883
16884 # Transform the output of nm in a proper C declaration.
16885 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16886
16887 # Transform the output of nm into a list of symbols to manually relocate.
16888 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
16889
16890 # Transform the output of nm in a C name address pair.
16891 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16892
16893 # Transform the output of nm in a C name address pair when lib prefix is needed.
16894 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16895
16896 # The name lister interface.
16897 nm_interface=$lt_lt_cv_nm_interface
16898
16899 # Specify filename containing input files for \$NM.
16900 nm_file_list_spec=$lt_nm_file_list_spec
16901
16902 # The root where to search for dependent libraries,and where our libraries should be installed.
16903 lt_sysroot=$lt_sysroot
16904
16905 # Command to truncate a binary pipe.
16906 lt_truncate_bin=$lt_lt_cv_truncate_bin
16907
16908 # The name of the directory that contains temporary libtool files.
16909 objdir=$objdir
16910
16911 # Used to examine libraries when file_magic_cmd begins with "file".
16912 MAGIC_CMD=$MAGIC_CMD
16913
16914 # Must we lock files when doing compilation?
16915 need_locks=$lt_need_locks
16916
16917 # Manifest tool.
16918 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16919
16920 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16921 DSYMUTIL=$lt_DSYMUTIL
16922
16923 # Tool to change global to local symbols on Mac OS X.
16924 NMEDIT=$lt_NMEDIT
16925
16926 # Tool to manipulate fat objects and archives on Mac OS X.
16927 LIPO=$lt_LIPO
16928
16929 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16930 OTOOL=$lt_OTOOL
16931
16932 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16933 OTOOL64=$lt_OTOOL64
16934
16935 # Old archive suffix (normally "a").
16936 libext=$libext
16937
16938 # Shared library suffix (normally ".so").
16939 shrext_cmds=$lt_shrext_cmds
16940
16941 # The commands to extract the exported symbol list from a shared archive.
16942 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16943
16944 # Variables whose values should be saved in libtool wrapper scripts and
16945 # restored at link time.
16946 variables_saved_for_relink=$lt_variables_saved_for_relink
16947
16948 # Do we need the "lib" prefix for modules?
16949 need_lib_prefix=$need_lib_prefix
16950
16951 # Do we need a version for libraries?
16952 need_version=$need_version
16953
16954 # Library versioning type.
16955 version_type=$version_type
16956
16957 # Shared library runtime path variable.
16958 runpath_var=$runpath_var
16959
16960 # Shared library path variable.
16961 shlibpath_var=$shlibpath_var
16962
16963 # Is shlibpath searched before the hard-coded library search path?
16964 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16965
16966 # Format of library name prefix.
16967 libname_spec=$lt_libname_spec
16968
16969 # List of archive names. First name is the real one, the rest are links.
16970 # The last name is the one that the linker finds with -lNAME
16971 library_names_spec=$lt_library_names_spec
16972
16973 # The coded name of the library, if different from the real name.
16974 soname_spec=$lt_soname_spec
16975
16976 # Permission mode override for installation of shared libraries.
16977 install_override_mode=$lt_install_override_mode
16978
16979 # Command to use after installation of a shared archive.
16980 postinstall_cmds=$lt_postinstall_cmds
16981
16982 # Command to use after uninstallation of a shared archive.
16983 postuninstall_cmds=$lt_postuninstall_cmds
16984
16985 # Commands used to finish a libtool library installation in a directory.
16986 finish_cmds=$lt_finish_cmds
16987
16988 # As "finish_cmds", except a single script fragment to be evaled but
16989 # not shown.
16990 finish_eval=$lt_finish_eval
16991
16992 # Whether we should hardcode library paths into libraries.
16993 hardcode_into_libs=$hardcode_into_libs
16994
16995 # Compile-time system search path for libraries.
16996 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16997
16998 # Detected run-time system search path for libraries.
16999 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
17000
17001 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
17002 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
17003
17004 # Whether dlopen is supported.
17005 dlopen_support=$enable_dlopen
17006
17007 # Whether dlopen of programs is supported.
17008 dlopen_self=$enable_dlopen_self
17009
17010 # Whether dlopen of statically linked programs is supported.
17011 dlopen_self_static=$enable_dlopen_self_static
17012
17013 # Commands to strip libraries.
17014 old_striplib=$lt_old_striplib
17015 striplib=$lt_striplib
17016
17017
17018 # The linker used to build libraries.
17019 LD=$lt_LD
17020
17021 # How to create reloadable object files.
17022 reload_flag=$lt_reload_flag
17023 reload_cmds=$lt_reload_cmds
17024
17025 # Commands used to build an old-style archive.
17026 old_archive_cmds=$lt_old_archive_cmds
17027
17028 # A language specific compiler.
17029 CC=$lt_compiler
17030
17031 # Is the compiler the GNU compiler?
17032 with_gcc=$GCC
17033
17034 # Compiler flag to turn off builtin functions.
17035 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17036
17037 # Additional compiler flags for building library objects.
17038 pic_flag=$lt_lt_prog_compiler_pic
17039
17040 # How to pass a linker flag through the compiler.
17041 wl=$lt_lt_prog_compiler_wl
17042
17043 # Compiler flag to prevent dynamic linking.
17044 link_static_flag=$lt_lt_prog_compiler_static
17045
17046 # Does compiler simultaneously support -c and -o options?
17047 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17048
17049 # Whether or not to add -lc for building shared libraries.
17050 build_libtool_need_lc=$archive_cmds_need_lc
17051
17052 # Whether or not to disallow shared libs when runtime libs are static.
17053 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17054
17055 # Compiler flag to allow reflexive dlopens.
17056 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17057
17058 # Compiler flag to generate shared objects directly from archives.
17059 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17060
17061 # Whether the compiler copes with passing no objects directly.
17062 compiler_needs_object=$lt_compiler_needs_object
17063
17064 # Create an old-style archive from a shared archive.
17065 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17066
17067 # Create a temporary old-style archive to link instead of a shared archive.
17068 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17069
17070 # Commands used to build a shared archive.
17071 archive_cmds=$lt_archive_cmds
17072 archive_expsym_cmds=$lt_archive_expsym_cmds
17073
17074 # Commands used to build a loadable module if different from building
17075 # a shared archive.
17076 module_cmds=$lt_module_cmds
17077 module_expsym_cmds=$lt_module_expsym_cmds
17078
17079 # Whether we are building with GNU ld or not.
17080 with_gnu_ld=$lt_with_gnu_ld
17081
17082 # Flag that allows shared libraries with undefined symbols to be built.
17083 allow_undefined_flag=$lt_allow_undefined_flag
17084
17085 # Flag that enforces no undefined symbols.
17086 no_undefined_flag=$lt_no_undefined_flag
17087
17088 # Flag to hardcode \$libdir into a binary during linking.
17089 # This must work even if \$libdir does not exist
17090 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17091
17092 # Whether we need a single "-rpath" flag with a separated argument.
17093 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17094
17095 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17096 # DIR into the resulting binary.
17097 hardcode_direct=$hardcode_direct
17098
17099 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17100 # DIR into the resulting binary and the resulting library dependency is
17101 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
17102 # library is relocated.
17103 hardcode_direct_absolute=$hardcode_direct_absolute
17104
17105 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17106 # into the resulting binary.
17107 hardcode_minus_L=$hardcode_minus_L
17108
17109 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17110 # into the resulting binary.
17111 hardcode_shlibpath_var=$hardcode_shlibpath_var
17112
17113 # Set to "yes" if building a shared library automatically hardcodes DIR
17114 # into the library and all subsequent libraries and executables linked
17115 # against it.
17116 hardcode_automatic=$hardcode_automatic
17117
17118 # Set to yes if linker adds runtime paths of dependent libraries
17119 # to runtime path list.
17120 inherit_rpath=$inherit_rpath
17121
17122 # Whether libtool must link a program against all its dependency libraries.
17123 link_all_deplibs=$link_all_deplibs
17124
17125 # Set to "yes" if exported symbols are required.
17126 always_export_symbols=$always_export_symbols
17127
17128 # The commands to list exported symbols.
17129 export_symbols_cmds=$lt_export_symbols_cmds
17130
17131 # Symbols that should not be listed in the preloaded symbols.
17132 exclude_expsyms=$lt_exclude_expsyms
17133
17134 # Symbols that must always be exported.
17135 include_expsyms=$lt_include_expsyms
17136
17137 # Commands necessary for linking programs (against libraries) with templates.
17138 prelink_cmds=$lt_prelink_cmds
17139
17140 # Commands necessary for finishing linking programs.
17141 postlink_cmds=$lt_postlink_cmds
17142
17143 # Specify filename containing input files.
17144 file_list_spec=$lt_file_list_spec
17145
17146 # How to hardcode a shared library path into an executable.
17147 hardcode_action=$hardcode_action
17148
17149 # ### END LIBTOOL CONFIG
17150
17151 _LT_EOF
17152
17153 cat <<'_LT_EOF' >> "$cfgfile"
17154
17155 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
17156
17157 # func_munge_path_list VARIABLE PATH
17158 # -----------------------------------
17159 # VARIABLE is name of variable containing _space_ separated list of
17160 # directories to be munged by the contents of PATH, which is string
17161 # having a format:
17162 # "DIR[:DIR]:"
17163 # string "DIR[ DIR]" will be prepended to VARIABLE
17164 # ":DIR[:DIR]"
17165 # string "DIR[ DIR]" will be appended to VARIABLE
17166 # "DIRP[:DIRP]::[DIRA:]DIRA"
17167 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
17168 # "DIRA[ DIRA]" will be appended to VARIABLE
17169 # "DIR[:DIR]"
17170 # VARIABLE will be replaced by "DIR[ DIR]"
17171 func_munge_path_list ()
17172 {
17173 case x$2 in
17174 x)
17175 ;;
17176 *:)
17177 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
17178 ;;
17179 x:*)
17180 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
17181 ;;
17182 *::*)
17183 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
17184 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
17185 ;;
17186 *)
17187 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
17188 ;;
17189 esac
17190 }
17191
17192
17193 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
17194 func_cc_basename ()
17195 {
17196 for cc_temp in $*""; do
17197 case $cc_temp in
17198 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17199 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17200 \-*) ;;
17201 *) break;;
17202 esac
17203 done
17204 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17205 }
17206
17207
17208 # ### END FUNCTIONS SHARED WITH CONFIGURE
17209
17210 _LT_EOF
17211
17212 case $host_os in
17213 aix3*)
17214 cat <<\_LT_EOF >> "$cfgfile"
17215 # AIX sometimes has problems with the GCC collect2 program. For some
17216 # reason, if we set the COLLECT_NAMES environment variable, the problems
17217 # vanish in a puff of smoke.
17218 if test set != "${COLLECT_NAMES+set}"; then
17219 COLLECT_NAMES=
17220 export COLLECT_NAMES
17221 fi
17222 _LT_EOF
17223 ;;
17224 esac
17225
17226
17227
17228 ltmain=$ac_aux_dir/ltmain.sh
17229
17230
17231 # We use sed instead of cat because bash on DJGPP gets confused if
17232 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17233 # text mode, it properly converts lines to CR/LF. This bash problem
17234 # is reportedly fixed, but why not run on old versions too?
17235 $SED '$q' "$ltmain" >> "$cfgfile" \
17236 || (rm -f "$cfgfile"; exit 1)
17237
17238 mv -f "$cfgfile" "$ofile" ||
17239 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17240 chmod +x "$ofile"
17241
17242
17243 as_fn_exit 0
17244 _LTEOF
17245 chmod +x "$CONFIG_LT"
17246
17247 # configure is writing to config.log, but config.lt does its own redirection,
17248 # appending to config.log, which fails on DOS, as config.log is still kept
17249 # open by configure. Here we exec the FD to /dev/null, effectively closing
17250 # config.log, so it can be properly (re)opened and appended to by config.lt.
17251 lt_cl_success=:
17252 test yes = "$silent" &&
17253 lt_config_lt_args="$lt_config_lt_args --quiet"
17254 exec 5>/dev/null
17255 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
17256 exec 5>>config.log
17257 $lt_cl_success || as_fn_exit 1
17258
17259 #
17260 #
17261 ac_ext=c
17262 ac_cpp='$CPP $CPPFLAGS'
17263 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17264 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17265 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17266 ac_link="./libtool --mode=link --tag=CC $ac_link"
17267
17268 if test -n "$ac_tool_prefix"; then
17269 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
17270 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
17271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17272 printf %s "checking for $ac_word... " >&6; }
17273 if test ${ac_cv_prog_PKG_CONFIG+y}
17274 then :
17275 printf %s "(cached) " >&6
17276 else case e in #(
17277 e) if test -n "$PKG_CONFIG"; then
17278 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
17279 else
17280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17281 for as_dir in $PATH
17282 do
17283 IFS=$as_save_IFS
17284 case $as_dir in #(((
17285 '') as_dir=./ ;;
17286 */) ;;
17287 *) as_dir=$as_dir/ ;;
17288 esac
17289 for ac_exec_ext in '' $ac_executable_extensions; do
17290 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17291 ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
17292 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17293 break 2
17294 fi
17295 done
17296 done
17297 IFS=$as_save_IFS
17298
17299 fi ;;
17300 esac
17301 fi
17302 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
17303 if test -n "$PKG_CONFIG"; then
17304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
17305 printf "%s\n" "$PKG_CONFIG" >&6; }
17306 else
17307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17308 printf "%s\n" "no" >&6; }
17309 fi
17310
17311
17312 fi
17313 if test -z "$ac_cv_prog_PKG_CONFIG"; then
17314 ac_ct_PKG_CONFIG=$PKG_CONFIG
17315 # Extract the first word of "pkg-config", so it can be a program name with args.
17316 set dummy pkg-config; ac_word=$2
17317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17318 printf %s "checking for $ac_word... " >&6; }
17319 if test ${ac_cv_prog_ac_ct_PKG_CONFIG+y}
17320 then :
17321 printf %s "(cached) " >&6
17322 else case e in #(
17323 e) if test -n "$ac_ct_PKG_CONFIG"; then
17324 ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
17325 else
17326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17327 for as_dir in $PATH
17328 do
17329 IFS=$as_save_IFS
17330 case $as_dir in #(((
17331 '') as_dir=./ ;;
17332 */) ;;
17333 *) as_dir=$as_dir/ ;;
17334 esac
17335 for ac_exec_ext in '' $ac_executable_extensions; do
17336 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17337 ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
17338 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17339 break 2
17340 fi
17341 done
17342 done
17343 IFS=$as_save_IFS
17344
17345 fi ;;
17346 esac
17347 fi
17348 ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
17349 if test -n "$ac_ct_PKG_CONFIG"; then
17350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PKG_CONFIG" >&5
17351 printf "%s\n" "$ac_ct_PKG_CONFIG" >&6; }
17352 else
17353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17354 printf "%s\n" "no" >&6; }
17355 fi
17356
17357 if test "x$ac_ct_PKG_CONFIG" = x; then
17358 PKG_CONFIG="false"
17359 else
17360 case $cross_compiling:$ac_tool_warned in
17361 yes:)
17362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17363 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17364 ac_tool_warned=yes ;;
17365 esac
17366 PKG_CONFIG=$ac_ct_PKG_CONFIG
17367 fi
17368 else
17369 PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
17370 fi
17371
17372 ##tldbg _KPSE_LIB_FLAGS: Setup kpathsea (-lkpathsea) flags.
17373 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
17374 ##tldbg _KPSE_LIB_FLAGS_TL: kpathsea (kpathsea) lt.
17375
17376 # Check whether --with-system-kpathsea was given.
17377 if test ${with_system_kpathsea+y}
17378 then :
17379 withval=$with_system_kpathsea;
17380 fi
17381 if test "x$with_system_kpathsea" = xyes; then
17382 if $PKG_CONFIG kpathsea; then
17383 KPATHSEA_INCLUDES=`$PKG_CONFIG kpathsea --cflags`
17384 KPATHSEA_LIBS=`$PKG_CONFIG kpathsea --libs`
17385 elif test "x$need_kpathsea:$with_system_kpathsea" = xyes:yes; then
17386 as_fn_error $? "did not find kpathsea" "$LINENO" 5
17387 fi
17388 else
17389 KPATHSEA_INCLUDES="-I$kpse_BLD/texk -I$kpse_SRC/texk"
17390 KPATHSEA_LIBS="$kpse_BLD/texk/kpathsea/libkpathsea.la"
17391 KPATHSEA_DEPEND='${top_builddir}/../kpathsea/libkpathsea.la'
17392 KPATHSEA_RULE='# Rebuild libkpathsea
17393 $(KPATHSEA_DEPEND): ${top_srcdir}/../kpathsea/*.[ch] ${top_builddir}/../kpathsea/paths.h
17394 cd ${top_builddir}/../kpathsea && $(MAKE) $(AM_MAKEFLAGS) rebuild
17395 ${top_builddir}/../kpathsea/paths.h:
17396 cd ${top_builddir}/../kpathsea && $(MAKE) $(AM_MAKEFLAGS) rebuild'
17397 fi
17398
17399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libkpathsea supports debugging" >&5
17400 printf %s "checking if libkpathsea supports debugging... " >&6; }
17401 if test ${kpse_cv_kpse_debug+y}
17402 then :
17403 printf %s "(cached) " >&6
17404 else case e in #(
17405 e) eval CPPFLAGS=\"$KPATHSEA_INCLUDES \$CPPFLAGS\"
17406 eval LIBS=\"$KPATHSEA_LIBS \$LIBS\"
17407
17408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17409 /* end confdefs.h. */
17410 #include <kpathsea/kpathsea.h>
17411 int
17412 main (void)
17413 {
17414 FILE *f = fopen("f", "r")
17415 ;
17416 return 0;
17417 }
17418 _ACEOF
17419 if ac_fn_c_try_link "$LINENO"
17420 then :
17421 kpse_cv_kpse_debug=yes
17422 else case e in #(
17423 e) kpse_cv_kpse_debug=no ;;
17424 esac
17425 fi
17426 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17427 conftest$ac_exeext conftest.$ac_ext
17428 CPPFLAGS=$kpse_save_CPPFLAGS
17429 LIBS=$kpse_save_LIBS
17430 ;;
17431 esac
17432 fi
17433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_kpse_debug" >&5
17434 printf "%s\n" "$kpse_cv_kpse_debug" >&6; }
17435 if test "x$kpse_cv_kpse_debug" != xyes
17436 then :
17437 KPATHSEA_INCLUDES="$KPATHSEA_INCLUDES -DNO_DEBUG"
17438 fi
17439
17440
17441 ac_config_files="$ac_config_files Makefile"
17442
17443
17444 cat >confcache <<\_ACEOF
17445 # This file is a shell script that caches the results of configure
17446 # tests run on this system so they can be shared between configure
17447 # scripts and configure runs, see configure's option --config-cache.
17448 # It is not useful on other systems. If it contains results you don't
17449 # want to keep, you may remove or edit it.
17450 #
17451 # config.status only pays attention to the cache file if you give it
17452 # the --recheck option to rerun configure.
17453 #
17454 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
17455 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
17456 # following values.
17457
17458 _ACEOF
17459
17460 # The following way of writing the cache mishandles newlines in values,
17461 # but we know of no workaround that is simple, portable, and efficient.
17462 # So, we kill variables containing newlines.
17463 # Ultrix sh set writes to stderr and can't be redirected directly,
17464 # and sets the high bit in the cache file unless we assign to the vars.
17465 (
17466 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17467 eval ac_val=\$$ac_var
17468 case $ac_val in #(
17469 *${as_nl}*)
17470 case $ac_var in #(
17471 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17472 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17473 esac
17474 case $ac_var in #(
17475 _ | IFS | as_nl) ;; #(
17476 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17477 *) { eval $ac_var=; unset $ac_var;} ;;
17478 esac ;;
17479 esac
17480 done
17481
17482 (set) 2>&1 |
17483 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17484 *${as_nl}ac_space=\ *)
17485 # 'set' does not quote correctly, so add quotes: double-quote
17486 # substitution turns \\\\ into \\, and sed turns \\ into \.
17487 sed -n \
17488 "s/'/'\\\\''/g;
17489 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17490 ;; #(
17491 *)
17492 # 'set' quotes correctly as required by POSIX, so do not add quotes.
17493 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17494 ;;
17495 esac |
17496 sort
17497 ) |
17498 sed '
17499 /^ac_cv_env_/b end
17500 t clear
17501 :clear
17502 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
17503 t end
17504 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17505 :end' >>confcache
17506 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17507 if test -w "$cache_file"; then
17508 if test "x$cache_file" != "x/dev/null"; then
17509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17510 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
17511 if test ! -f "$cache_file" || test -h "$cache_file"; then
17512 cat confcache >"$cache_file"
17513 else
17514 case $cache_file in #(
17515 */* | ?:*)
17516 mv -f confcache "$cache_file"$$ &&
17517 mv -f "$cache_file"$$ "$cache_file" ;; #(
17518 *)
17519 mv -f confcache "$cache_file" ;;
17520 esac
17521 fi
17522 fi
17523 else
17524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17525 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
17526 fi
17527 fi
17528 rm -f confcache
17529
17530 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17531 # Let make expand exec_prefix.
17532 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17533
17534 DEFS=-DHAVE_CONFIG_H
17535
17536 ac_libobjs=
17537 ac_ltlibobjs=
17538 U=
17539 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17540 # 1. Remove the extension, and $U if already installed.
17541 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17542 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
17543 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17544 # will be set to the directory where LIBOBJS objects are built.
17545 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17546 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17547 done
17548 LIBOBJS=$ac_libobjs
17549
17550 LTLIBOBJS=$ac_ltlibobjs
17551
17552
17553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17554 printf %s "checking that generated files are newer than configure... " >&6; }
17555 if test -n "$am_sleep_pid"; then
17556 # Hide warnings about reused PIDs.
17557 wait $am_sleep_pid 2>/dev/null
17558 fi
17559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
17560 printf "%s\n" "done" >&6; }
17561 case $enable_silent_rules in # (((
17562 yes) AM_DEFAULT_VERBOSITY=0;;
17563 no) AM_DEFAULT_VERBOSITY=1;;
17564 esac
17565 if test $am_cv_make_support_nested_variables = yes; then
17566 AM_V='$(V)'
17567 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
17568 else
17569 AM_V=$AM_DEFAULT_VERBOSITY
17570 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
17571 fi
17572
17573 if test -n "$EXEEXT"; then
17574 am__EXEEXT_TRUE=
17575 am__EXEEXT_FALSE='#'
17576 else
17577 am__EXEEXT_TRUE='#'
17578 am__EXEEXT_FALSE=
17579 fi
17580
17581 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17582 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17583 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17584 fi
17585 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17586 as_fn_error $? "conditional \"AMDEP\" was never defined.
17587 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17588 fi
17589 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17590 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17591 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17592 fi
17593 # Check whether --enable-year2038 was given.
17594 if test ${enable_year2038+y}
17595 then :
17596 enableval=$enable_year2038;
17597 fi
17598
17599
17600 : "${CONFIG_STATUS=./config.status}"
17601 ac_write_fail=0
17602 ac_clean_files_save=$ac_clean_files
17603 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17605 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
17606 as_write_fail=0
17607 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17608 #! $SHELL
17609 # Generated by $as_me.
17610 # Run this file to recreate the current configuration.
17611 # Compiler output produced by configure, useful for debugging
17612 # configure, is in config.log if it exists.
17613
17614 debug=false
17615 ac_cs_recheck=false
17616 ac_cs_silent=false
17617
17618 SHELL=\${CONFIG_SHELL-$SHELL}
17619 export SHELL
17620 _ASEOF
17621 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17622 ## -------------------- ##
17623 ## M4sh Initialization. ##
17624 ## -------------------- ##
17625
17626 # Be more Bourne compatible
17627 DUALCASE=1; export DUALCASE # for MKS sh
17628 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
17629 then :
17630 emulate sh
17631 NULLCMD=:
17632 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17633 # is contrary to our usage. Disable this feature.
17634 alias -g '${1+"$@"}'='"$@"'
17635 setopt NO_GLOB_SUBST
17636 else case e in #(
17637 e) case `(set -o) 2>/dev/null` in #(
17638 *posix*) :
17639 set -o posix ;; #(
17640 *) :
17641 ;;
17642 esac ;;
17643 esac
17644 fi
17645
17646
17647
17648 # Reset variables that may have inherited troublesome values from
17649 # the environment.
17650
17651 # IFS needs to be set, to space, tab, and newline, in precisely that order.
17652 # (If _AS_PATH_WALK were called with IFS unset, it would have the
17653 # side effect of setting IFS to empty, thus disabling word splitting.)
17654 # Quoting is to prevent editors from complaining about space-tab.
17655 as_nl='
17656 '
17657 export as_nl
17658 IFS=" "" $as_nl"
17659
17660 PS1='$ '
17661 PS2='> '
17662 PS4='+ '
17663
17664 # Ensure predictable behavior from utilities with locale-dependent output.
17665 LC_ALL=C
17666 export LC_ALL
17667 LANGUAGE=C
17668 export LANGUAGE
17669
17670 # We cannot yet rely on "unset" to work, but we need these variables
17671 # to be unset--not just set to an empty or harmless value--now, to
17672 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
17673 # also avoids known problems related to "unset" and subshell syntax
17674 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
17675 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
17676 do eval test \${$as_var+y} \
17677 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17678 done
17679
17680 # Ensure that fds 0, 1, and 2 are open.
17681 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
17682 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
17683 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
17684
17685 # The user is always right.
17686 if ${PATH_SEPARATOR+false} :; then
17687 PATH_SEPARATOR=:
17688 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17689 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17690 PATH_SEPARATOR=';'
17691 }
17692 fi
17693
17694
17695 # Find who we are. Look in the path if we contain no directory separator.
17696 as_myself=
17697 case $0 in #((
17698 *[\\/]* ) as_myself=$0 ;;
17699 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17700 for as_dir in $PATH
17701 do
17702 IFS=$as_save_IFS
17703 case $as_dir in #(((
17704 '') as_dir=./ ;;
17705 */) ;;
17706 *) as_dir=$as_dir/ ;;
17707 esac
17708 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
17709 done
17710 IFS=$as_save_IFS
17711
17712 ;;
17713 esac
17714 # We did not find ourselves, most probably we were run as 'sh COMMAND'
17715 # in which case we are not to be found in the path.
17716 if test "x$as_myself" = x; then
17717 as_myself=$0
17718 fi
17719 if test ! -f "$as_myself"; then
17720 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17721 exit 1
17722 fi
17723
17724
17725
17726 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17727 # ----------------------------------------
17728 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17729 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17730 # script with STATUS, using 1 if that was 0.
17731 as_fn_error ()
17732 {
17733 as_status=$1; test $as_status -eq 0 && as_status=1
17734 if test "$4"; then
17735 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17736 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17737 fi
17738 printf "%s\n" "$as_me: error: $2" >&2
17739 as_fn_exit $as_status
17740 } # as_fn_error
17741
17742
17743 # as_fn_set_status STATUS
17744 # -----------------------
17745 # Set $? to STATUS, without forking.
17746 as_fn_set_status ()
17747 {
17748 return $1
17749 } # as_fn_set_status
17750
17751 # as_fn_exit STATUS
17752 # -----------------
17753 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17754 as_fn_exit ()
17755 {
17756 set +e
17757 as_fn_set_status $1
17758 exit $1
17759 } # as_fn_exit
17760
17761 # as_fn_unset VAR
17762 # ---------------
17763 # Portably unset VAR.
17764 as_fn_unset ()
17765 {
17766 { eval $1=; unset $1;}
17767 }
17768 as_unset=as_fn_unset
17769
17770 # as_fn_append VAR VALUE
17771 # ----------------------
17772 # Append the text in VALUE to the end of the definition contained in VAR. Take
17773 # advantage of any shell optimizations that allow amortized linear growth over
17774 # repeated appends, instead of the typical quadratic growth present in naive
17775 # implementations.
17776 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
17777 then :
17778 eval 'as_fn_append ()
17779 {
17780 eval $1+=\$2
17781 }'
17782 else case e in #(
17783 e) as_fn_append ()
17784 {
17785 eval $1=\$$1\$2
17786 } ;;
17787 esac
17788 fi # as_fn_append
17789
17790 # as_fn_arith ARG...
17791 # ------------------
17792 # Perform arithmetic evaluation on the ARGs, and store the result in the
17793 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17794 # must be portable across $(()) and expr.
17795 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
17796 then :
17797 eval 'as_fn_arith ()
17798 {
17799 as_val=$(( $* ))
17800 }'
17801 else case e in #(
17802 e) as_fn_arith ()
17803 {
17804 as_val=`expr "$@" || test $? -eq 1`
17805 } ;;
17806 esac
17807 fi # as_fn_arith
17808
17809
17810 if expr a : '\(a\)' >/dev/null 2>&1 &&
17811 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17812 as_expr=expr
17813 else
17814 as_expr=false
17815 fi
17816
17817 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17818 as_basename=basename
17819 else
17820 as_basename=false
17821 fi
17822
17823 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17824 as_dirname=dirname
17825 else
17826 as_dirname=false
17827 fi
17828
17829 as_me=`$as_basename -- "$0" ||
17830 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17831 X"$0" : 'X\(//\)$' \| \
17832 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17833 printf "%s\n" X/"$0" |
17834 sed '/^.*\/\([^/][^/]*\)\/*$/{
17835 s//\1/
17836 q
17837 }
17838 /^X\/\(\/\/\)$/{
17839 s//\1/
17840 q
17841 }
17842 /^X\/\(\/\).*/{
17843 s//\1/
17844 q
17845 }
17846 s/.*/./; q'`
17847
17848 # Avoid depending upon Character Ranges.
17849 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17850 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17851 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17852 as_cr_digits='0123456789'
17853 as_cr_alnum=$as_cr_Letters$as_cr_digits
17854
17855
17856 # Determine whether it's possible to make 'echo' print without a newline.
17857 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
17858 # for compatibility with existing Makefiles.
17859 ECHO_C= ECHO_N= ECHO_T=
17860 case `echo -n x` in #(((((
17861 -n*)
17862 case `echo 'xy\c'` in
17863 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17864 xy) ECHO_C='\c';;
17865 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17866 ECHO_T=' ';;
17867 esac;;
17868 *)
17869 ECHO_N='-n';;
17870 esac
17871
17872 # For backward compatibility with old third-party macros, we provide
17873 # the shell variables $as_echo and $as_echo_n. New code should use
17874 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
17875 as_echo='printf %s\n'
17876 as_echo_n='printf %s'
17877
17878 rm -f conf$$ conf$$.exe conf$$.file
17879 if test -d conf$$.dir; then
17880 rm -f conf$$.dir/conf$$.file
17881 else
17882 rm -f conf$$.dir
17883 mkdir conf$$.dir 2>/dev/null
17884 fi
17885 if (echo >conf$$.file) 2>/dev/null; then
17886 if ln -s conf$$.file conf$$ 2>/dev/null; then
17887 as_ln_s='ln -s'
17888 # ... but there are two gotchas:
17889 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
17890 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
17891 # In both cases, we have to default to 'cp -pR'.
17892 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17893 as_ln_s='cp -pR'
17894 elif ln conf$$.file conf$$ 2>/dev/null; then
17895 as_ln_s=ln
17896 else
17897 as_ln_s='cp -pR'
17898 fi
17899 else
17900 as_ln_s='cp -pR'
17901 fi
17902 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17903 rmdir conf$$.dir 2>/dev/null
17904
17905
17906 # as_fn_mkdir_p
17907 # -------------
17908 # Create "$as_dir" as a directory, including parents if necessary.
17909 as_fn_mkdir_p ()
17910 {
17911
17912 case $as_dir in #(
17913 -*) as_dir=./$as_dir;;
17914 esac
17915 test -d "$as_dir" || eval $as_mkdir_p || {
17916 as_dirs=
17917 while :; do
17918 case $as_dir in #(
17919 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17920 *) as_qdir=$as_dir;;
17921 esac
17922 as_dirs="'$as_qdir' $as_dirs"
17923 as_dir=`$as_dirname -- "$as_dir" ||
17924 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17925 X"$as_dir" : 'X\(//\)[^/]' \| \
17926 X"$as_dir" : 'X\(//\)$' \| \
17927 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17928 printf "%s\n" X"$as_dir" |
17929 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17930 s//\1/
17931 q
17932 }
17933 /^X\(\/\/\)[^/].*/{
17934 s//\1/
17935 q
17936 }
17937 /^X\(\/\/\)$/{
17938 s//\1/
17939 q
17940 }
17941 /^X\(\/\).*/{
17942 s//\1/
17943 q
17944 }
17945 s/.*/./; q'`
17946 test -d "$as_dir" && break
17947 done
17948 test -z "$as_dirs" || eval "mkdir $as_dirs"
17949 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17950
17951
17952 } # as_fn_mkdir_p
17953 if mkdir -p . 2>/dev/null; then
17954 as_mkdir_p='mkdir -p "$as_dir"'
17955 else
17956 test -d ./-p && rmdir ./-p
17957 as_mkdir_p=false
17958 fi
17959
17960
17961 # as_fn_executable_p FILE
17962 # -----------------------
17963 # Test if FILE is an executable regular file.
17964 as_fn_executable_p ()
17965 {
17966 test -f "$1" && test -x "$1"
17967 } # as_fn_executable_p
17968 as_test_x='test -x'
17969 as_executable_p=as_fn_executable_p
17970
17971 # Sed expression to map a string onto a valid CPP name.
17972 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
17973 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
17974
17975 # Sed expression to map a string onto a valid variable name.
17976 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
17977 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
17978
17979
17980 exec 6>&1
17981 ## ----------------------------------- ##
17982 ## Main body of $CONFIG_STATUS script. ##
17983 ## ----------------------------------- ##
17984 _ASEOF
17985 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17986
17987 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17988 # Save the log message, to keep $0 and so on meaningful, and to
17989 # report actual input values of CONFIG_FILES etc. instead of their
17990 # values after options handling.
17991 ac_log="
17992 This file was extended by ps2pkm (TeX Live) $as_me 1.8, which was
17993 generated by GNU Autoconf 2.72. Invocation command line was
17994
17995 CONFIG_FILES = $CONFIG_FILES
17996 CONFIG_HEADERS = $CONFIG_HEADERS
17997 CONFIG_LINKS = $CONFIG_LINKS
17998 CONFIG_COMMANDS = $CONFIG_COMMANDS
17999 $ $0 $@
18000
18001 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18002 "
18003
18004 _ACEOF
18005
18006 case $ac_config_files in *"
18007 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18008 esac
18009
18010 case $ac_config_headers in *"
18011 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18012 esac
18013
18014
18015 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18016 # Files that config.status was made for.
18017 config_files="$ac_config_files"
18018 config_headers="$ac_config_headers"
18019 config_commands="$ac_config_commands"
18020
18021 _ACEOF
18022
18023 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18024 ac_cs_usage="\
18025 '$as_me' instantiates files and other configuration actions
18026 from templates according to the current configuration. Unless the files
18027 and actions are specified as TAGs, all are instantiated by default.
18028
18029 Usage: $0 [OPTION]... [TAG]...
18030
18031 -h, --help print this help, then exit
18032 -V, --version print version number and configuration settings, then exit
18033 --config print configuration, then exit
18034 -q, --quiet, --silent
18035 do not print progress messages
18036 -d, --debug don't remove temporary files
18037 --recheck update $as_me by reconfiguring in the same conditions
18038 --file=FILE[:TEMPLATE]
18039 instantiate the configuration file FILE
18040 --header=FILE[:TEMPLATE]
18041 instantiate the configuration header FILE
18042
18043 Configuration files:
18044 $config_files
18045
18046 Configuration headers:
18047 $config_headers
18048
18049 Configuration commands:
18050 $config_commands
18051
18052 Report bugs to <[email protected]>."
18053
18054 _ACEOF
18055 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
18056 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
18057 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18058 ac_cs_config='$ac_cs_config_escaped'
18059 ac_cs_version="\\
18060 ps2pkm (TeX Live) config.status 1.8
18061 configured by $0, generated by GNU Autoconf 2.72,
18062 with options \\"\$ac_cs_config\\"
18063
18064 Copyright (C) 2023 Free Software Foundation, Inc.
18065 This config.status script is free software; the Free Software Foundation
18066 gives unlimited permission to copy, distribute and modify it."
18067
18068 ac_pwd='$ac_pwd'
18069 srcdir='$srcdir'
18070 INSTALL='$INSTALL'
18071 MKDIR_P='$MKDIR_P'
18072 AWK='$AWK'
18073 test -n "\$AWK" || AWK=awk
18074 _ACEOF
18075
18076 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18077 # The default lists apply if the user does not specify any file.
18078 ac_need_defaults=:
18079 while test $# != 0
18080 do
18081 case $1 in
18082 --*=?*)
18083 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18084 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18085 ac_shift=:
18086 ;;
18087 --*=)
18088 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18089 ac_optarg=
18090 ac_shift=:
18091 ;;
18092 *)
18093 ac_option=$1
18094 ac_optarg=$2
18095 ac_shift=shift
18096 ;;
18097 esac
18098
18099 case $ac_option in
18100 # Handling of the options.
18101 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18102 ac_cs_recheck=: ;;
18103 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18104 printf "%s\n" "$ac_cs_version"; exit ;;
18105 --config | --confi | --conf | --con | --co | --c )
18106 printf "%s\n" "$ac_cs_config"; exit ;;
18107 --debug | --debu | --deb | --de | --d | -d )
18108 debug=: ;;
18109 --file | --fil | --fi | --f )
18110 $ac_shift
18111 case $ac_optarg in
18112 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18113 '') as_fn_error $? "missing file argument" ;;
18114 esac
18115 as_fn_append CONFIG_FILES " '$ac_optarg'"
18116 ac_need_defaults=false;;
18117 --header | --heade | --head | --hea )
18118 $ac_shift
18119 case $ac_optarg in
18120 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18121 esac
18122 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18123 ac_need_defaults=false;;
18124 --he | --h)
18125 # Conflict between --help and --header
18126 as_fn_error $? "ambiguous option: '$1'
18127 Try '$0 --help' for more information.";;
18128 --help | --hel | -h )
18129 printf "%s\n" "$ac_cs_usage"; exit ;;
18130 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18131 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18132 ac_cs_silent=: ;;
18133
18134 # This is an error.
18135 -*) as_fn_error $? "unrecognized option: '$1'
18136 Try '$0 --help' for more information." ;;
18137
18138 *) as_fn_append ac_config_targets " $1"
18139 ac_need_defaults=false ;;
18140
18141 esac
18142 shift
18143 done
18144
18145 ac_configure_extra_args=
18146
18147 if $ac_cs_silent; then
18148 exec 6>/dev/null
18149 ac_configure_extra_args="$ac_configure_extra_args --silent"
18150 fi
18151
18152 _ACEOF
18153 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18154 if \$ac_cs_recheck; then
18155 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18156 shift
18157 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
18158 CONFIG_SHELL='$SHELL'
18159 export CONFIG_SHELL
18160 exec "\$@"
18161 fi
18162
18163 _ACEOF
18164 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18165 exec 5>>config.log
18166 {
18167 echo
18168 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18169 ## Running $as_me. ##
18170 _ASBOX
18171 printf "%s\n" "$ac_log"
18172 } >&5
18173
18174 _ACEOF
18175 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18176 #
18177 # INIT-COMMANDS
18178 #
18179 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
18180
18181
18182 # The HP-UX ksh and POSIX shell print the target directory to stdout
18183 # if CDPATH is set.
18184 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18185
18186 sed_quote_subst='$sed_quote_subst'
18187 double_quote_subst='$double_quote_subst'
18188 delay_variable_subst='$delay_variable_subst'
18189 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18190 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18191 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
18192 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18193 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18194 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18195 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18196 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18197 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18198 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
18199 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18200 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18201 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18202 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18203 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18204 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18205 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18206 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18207 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18208 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18209 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18210 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18211 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18212 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18213 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18214 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18215 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18216 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18217 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18218 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18219 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18220 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18221 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18222 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18223 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18224 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18225 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18226 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
18227 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18228 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18229 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18230 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18231 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18232 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18233 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
18234 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18235 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18236 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18237 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18238 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18239 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18240 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18241 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18242 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18243 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18244 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18245 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18246 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18247 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18248 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
18249 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18250 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"`'
18251 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
18252 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18253 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18254 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
18255 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18256 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18257 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18258 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18259 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18260 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18261 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18262 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18263 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18264 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18265 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18266 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18267 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18268 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18269 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18270 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18271 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18272 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18273 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18274 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18275 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18276 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18277 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18278 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18279 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18280 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18281 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18282 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18283 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18284 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18285 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18286 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18287 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18288 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18289 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18290 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18291 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18292 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18293 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18294 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18295 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18296 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18297 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18298 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18299 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18300 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18301 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18302 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18303 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18304 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18305 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18306 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18307 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18308 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18309 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18310 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18311 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18312 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18313 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18314 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18315 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18316 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18317 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18318 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18319 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
18320 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
18321 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18322 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18323 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18324 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18325 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18326 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18327
18328 LTCC='$LTCC'
18329 LTCFLAGS='$LTCFLAGS'
18330 compiler='$compiler_DEFAULT'
18331
18332 # A function that is used when there is no print builtin or printf.
18333 func_fallback_echo ()
18334 {
18335 eval 'cat <<_LTECHO_EOF
18336 \$1
18337 _LTECHO_EOF'
18338 }
18339
18340 # Quote evaled strings.
18341 for var in AS \
18342 DLLTOOL \
18343 OBJDUMP \
18344 SHELL \
18345 ECHO \
18346 PATH_SEPARATOR \
18347 SED \
18348 GREP \
18349 EGREP \
18350 FGREP \
18351 LD \
18352 NM \
18353 LN_S \
18354 lt_SP2NL \
18355 lt_NL2SP \
18356 reload_flag \
18357 FILECMD \
18358 deplibs_check_method \
18359 file_magic_cmd \
18360 file_magic_glob \
18361 want_nocaseglob \
18362 sharedlib_from_linklib_cmd \
18363 AR \
18364 archiver_list_spec \
18365 STRIP \
18366 RANLIB \
18367 CC \
18368 CFLAGS \
18369 compiler \
18370 lt_cv_sys_global_symbol_pipe \
18371 lt_cv_sys_global_symbol_to_cdecl \
18372 lt_cv_sys_global_symbol_to_import \
18373 lt_cv_sys_global_symbol_to_c_name_address \
18374 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18375 lt_cv_nm_interface \
18376 nm_file_list_spec \
18377 lt_cv_truncate_bin \
18378 lt_prog_compiler_no_builtin_flag \
18379 lt_prog_compiler_pic \
18380 lt_prog_compiler_wl \
18381 lt_prog_compiler_static \
18382 lt_cv_prog_compiler_c_o \
18383 need_locks \
18384 MANIFEST_TOOL \
18385 DSYMUTIL \
18386 NMEDIT \
18387 LIPO \
18388 OTOOL \
18389 OTOOL64 \
18390 shrext_cmds \
18391 export_dynamic_flag_spec \
18392 whole_archive_flag_spec \
18393 compiler_needs_object \
18394 with_gnu_ld \
18395 allow_undefined_flag \
18396 no_undefined_flag \
18397 hardcode_libdir_flag_spec \
18398 hardcode_libdir_separator \
18399 exclude_expsyms \
18400 include_expsyms \
18401 file_list_spec \
18402 variables_saved_for_relink \
18403 libname_spec \
18404 library_names_spec \
18405 soname_spec \
18406 install_override_mode \
18407 finish_eval \
18408 old_striplib \
18409 striplib; do
18410 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18411 *[\\\\\\\`\\"\\\$]*)
18412 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18413 ;;
18414 *)
18415 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18416 ;;
18417 esac
18418 done
18419
18420 # Double-quote double-evaled strings.
18421 for var in reload_cmds \
18422 old_postinstall_cmds \
18423 old_postuninstall_cmds \
18424 old_archive_cmds \
18425 extract_expsyms_cmds \
18426 old_archive_from_new_cmds \
18427 old_archive_from_expsyms_cmds \
18428 archive_cmds \
18429 archive_expsym_cmds \
18430 module_cmds \
18431 module_expsym_cmds \
18432 export_symbols_cmds \
18433 prelink_cmds \
18434 postlink_cmds \
18435 postinstall_cmds \
18436 postuninstall_cmds \
18437 finish_cmds \
18438 sys_lib_search_path_spec \
18439 configure_time_dlsearch_path \
18440 configure_time_lt_sys_library_path; do
18441 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18442 *[\\\\\\\`\\"\\\$]*)
18443 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18444 ;;
18445 *)
18446 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18447 ;;
18448 esac
18449 done
18450
18451 ac_aux_dir='$ac_aux_dir'
18452
18453 # See if we are running on zsh, and set the options that allow our
18454 # commands through without removal of \ escapes INIT.
18455 if test -n "\${ZSH_VERSION+set}"; then
18456 setopt NO_GLOB_SUBST
18457 fi
18458
18459
18460 PACKAGE='$PACKAGE'
18461 VERSION='$VERSION'
18462 RM='$RM'
18463 ofile='$ofile'
18464
18465 ac_aux_dir='$ac_aux_dir'
18466
18467
18468
18469 _ACEOF
18470
18471 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18472
18473 # Handling of arguments.
18474 for ac_config_target in $ac_config_targets
18475 do
18476 case $ac_config_target in
18477 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18478 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18479 "c-auto.h") CONFIG_HEADERS="$CONFIG_HEADERS c-auto.h:c-auto.in" ;;
18480 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18481
18482 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
18483 esac
18484 done
18485
18486
18487 # If the user did not use the arguments to specify the items to instantiate,
18488 # then the envvar interface is used. Set only those that are not.
18489 # We use the long form for the default assignment because of an extremely
18490 # bizarre bug on SunOS 4.1.3.
18491 if $ac_need_defaults; then
18492 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
18493 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
18494 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
18495 fi
18496
18497 # Have a temporary directory for convenience. Make it in the build tree
18498 # simply because there is no reason against having it here, and in addition,
18499 # creating and moving files from /tmp can sometimes cause problems.
18500 # Hook for its removal unless debugging.
18501 # Note that there is a small window in which the directory will not be cleaned:
18502 # after its creation but before its name has been assigned to '$tmp'.
18503 $debug ||
18504 {
18505 tmp= ac_tmp=
18506 trap 'exit_status=$?
18507 : "${ac_tmp:=$tmp}"
18508 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18509 ' 0
18510 trap 'as_fn_exit 1' 1 2 13 15
18511 }
18512 # Create a (secure) tmp directory for tmp files.
18513
18514 {
18515 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18516 test -d "$tmp"
18517 } ||
18518 {
18519 tmp=./conf$$-$RANDOM
18520 (umask 077 && mkdir "$tmp")
18521 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18522 ac_tmp=$tmp
18523
18524 # Set up the scripts for CONFIG_FILES section.
18525 # No need to generate them if there are no CONFIG_FILES.
18526 # This happens for instance with './config.status config.h'.
18527 if test -n "$CONFIG_FILES"; then
18528
18529
18530 ac_cr=`echo X | tr X '\015'`
18531 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18532 # But we know of no other shell where ac_cr would be empty at this
18533 # point, so we can use a bashism as a fallback.
18534 if test "x$ac_cr" = x; then
18535 eval ac_cr=\$\'\\r\'
18536 fi
18537 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18538 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18539 ac_cs_awk_cr='\\r'
18540 else
18541 ac_cs_awk_cr=$ac_cr
18542 fi
18543
18544 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18545 _ACEOF
18546
18547
18548 {
18549 echo "cat >conf$$subs.awk <<_ACEOF" &&
18550 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18551 echo "_ACEOF"
18552 } >conf$$subs.sh ||
18553 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18554 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18555 ac_delim='%!_!# '
18556 for ac_last_try in false false false false false :; do
18557 . ./conf$$subs.sh ||
18558 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18559
18560 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18561 if test $ac_delim_n = $ac_delim_num; then
18562 break
18563 elif $ac_last_try; then
18564 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18565 else
18566 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18567 fi
18568 done
18569 rm -f conf$$subs.sh
18570
18571 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18572 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18573 _ACEOF
18574 sed -n '
18575 h
18576 s/^/S["/; s/!.*/"]=/
18577 p
18578 g
18579 s/^[^!]*!//
18580 :repl
18581 t repl
18582 s/'"$ac_delim"'$//
18583 t delim
18584 :nl
18585 h
18586 s/\(.\{148\}\)..*/\1/
18587 t more1
18588 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18589 p
18590 n
18591 b repl
18592 :more1
18593 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18594 p
18595 g
18596 s/.\{148\}//
18597 t nl
18598 :delim
18599 h
18600 s/\(.\{148\}\)..*/\1/
18601 t more2
18602 s/["\\]/\\&/g; s/^/"/; s/$/"/
18603 p
18604 b
18605 :more2
18606 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18607 p
18608 g
18609 s/.\{148\}//
18610 t delim
18611 ' <conf$$subs.awk | sed '
18612 /^[^""]/{
18613 N
18614 s/\n//
18615 }
18616 ' >>$CONFIG_STATUS || ac_write_fail=1
18617 rm -f conf$$subs.awk
18618 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18619 _ACAWK
18620 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18621 for (key in S) S_is_set[key] = 1
18622 FS = ""
18623
18624 }
18625 {
18626 line = $ 0
18627 nfields = split(line, field, "@")
18628 substed = 0
18629 len = length(field[1])
18630 for (i = 2; i < nfields; i++) {
18631 key = field[i]
18632 keylen = length(key)
18633 if (S_is_set[key]) {
18634 value = S[key]
18635 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18636 len += length(value) + length(field[++i])
18637 substed = 1
18638 } else
18639 len += 1 + keylen
18640 }
18641
18642 print line
18643 }
18644
18645 _ACAWK
18646 _ACEOF
18647 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18648 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18649 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18650 else
18651 cat
18652 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18653 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18654 _ACEOF
18655
18656 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18657 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18658 # trailing colons and then remove the whole line if VPATH becomes empty
18659 # (actually we leave an empty line to preserve line numbers).
18660 if test "x$srcdir" = x.; then
18661 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18662 h
18663 s///
18664 s/^/:/
18665 s/[ ]*$/:/
18666 s/:\$(srcdir):/:/g
18667 s/:\${srcdir}:/:/g
18668 s/:@srcdir@:/:/g
18669 s/^:*//
18670 s/:*$//
18671 x
18672 s/\(=[ ]*\).*/\1/
18673 G
18674 s/\n//
18675 s/^[^=]*=[ ]*$//
18676 }'
18677 fi
18678
18679 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18680 fi # test -n "$CONFIG_FILES"
18681
18682 # Set up the scripts for CONFIG_HEADERS section.
18683 # No need to generate them if there are no CONFIG_HEADERS.
18684 # This happens for instance with './config.status Makefile'.
18685 if test -n "$CONFIG_HEADERS"; then
18686 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18687 BEGIN {
18688 _ACEOF
18689
18690 # Transform confdefs.h into an awk script 'defines.awk', embedded as
18691 # here-document in config.status, that substitutes the proper values into
18692 # config.h.in to produce config.h.
18693
18694 # Create a delimiter string that does not exist in confdefs.h, to ease
18695 # handling of long lines.
18696 ac_delim='%!_!# '
18697 for ac_last_try in false false :; do
18698 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18699 if test -z "$ac_tt"; then
18700 break
18701 elif $ac_last_try; then
18702 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18703 else
18704 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18705 fi
18706 done
18707
18708 # For the awk script, D is an array of macro values keyed by name,
18709 # likewise P contains macro parameters if any. Preserve backslash
18710 # newline sequences.
18711
18712 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18713 sed -n '
18714 s/.\{148\}/&'"$ac_delim"'/g
18715 t rset
18716 :rset
18717 s/^[ ]*#[ ]*define[ ][ ]*/ /
18718 t def
18719 d
18720 :def
18721 s/\\$//
18722 t bsnl
18723 s/["\\]/\\&/g
18724 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18725 D["\1"]=" \3"/p
18726 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18727 d
18728 :bsnl
18729 s/["\\]/\\&/g
18730 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18731 D["\1"]=" \3\\\\\\n"\\/p
18732 t cont
18733 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18734 t cont
18735 d
18736 :cont
18737 n
18738 s/.\{148\}/&'"$ac_delim"'/g
18739 t clear
18740 :clear
18741 s/\\$//
18742 t bsnlc
18743 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18744 d
18745 :bsnlc
18746 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18747 b cont
18748 ' <confdefs.h | sed '
18749 s/'"$ac_delim"'/"\\\
18750 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18751
18752 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18753 for (key in D) D_is_set[key] = 1
18754 FS = ""
18755 }
18756 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18757 line = \$ 0
18758 split(line, arg, " ")
18759 if (arg[1] == "#") {
18760 defundef = arg[2]
18761 mac1 = arg[3]
18762 } else {
18763 defundef = substr(arg[1], 2)
18764 mac1 = arg[2]
18765 }
18766 split(mac1, mac2, "(") #)
18767 macro = mac2[1]
18768 prefix = substr(line, 1, index(line, defundef) - 1)
18769 if (D_is_set[macro]) {
18770 # Preserve the white space surrounding the "#".
18771 print prefix "define", macro P[macro] D[macro]
18772 next
18773 } else {
18774 # Replace #undef with comments. This is necessary, for example,
18775 # in the case of _POSIX_SOURCE, which is predefined and required
18776 # on some systems where configure will not decide to define it.
18777 if (defundef == "undef") {
18778 print "/*", prefix defundef, macro, "*/"
18779 next
18780 }
18781 }
18782 }
18783 { print }
18784 _ACAWK
18785 _ACEOF
18786 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18787 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18788 fi # test -n "$CONFIG_HEADERS"
18789
18790
18791 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18792 shift
18793 for ac_tag
18794 do
18795 case $ac_tag in
18796 :[FHLC]) ac_mode=$ac_tag; continue;;
18797 esac
18798 case $ac_mode$ac_tag in
18799 :[FHL]*:*);;
18800 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
18801 :[FH]-) ac_tag=-:-;;
18802 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18803 esac
18804 ac_save_IFS=$IFS
18805 IFS=:
18806 set x $ac_tag
18807 IFS=$ac_save_IFS
18808 shift
18809 ac_file=$1
18810 shift
18811
18812 case $ac_mode in
18813 :L) ac_source=$1;;
18814 :[FH])
18815 ac_file_inputs=
18816 for ac_f
18817 do
18818 case $ac_f in
18819 -) ac_f="$ac_tmp/stdin";;
18820 *) # Look for the file first in the build tree, then in the source tree
18821 # (if the path is not absolute). The absolute path cannot be DOS-style,
18822 # because $ac_f cannot contain ':'.
18823 test -f "$ac_f" ||
18824 case $ac_f in
18825 [\\/$]*) false;;
18826 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18827 esac ||
18828 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
18829 esac
18830 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18831 as_fn_append ac_file_inputs " '$ac_f'"
18832 done
18833
18834 # Let's still pretend it is 'configure' which instantiates (i.e., don't
18835 # use $as_me), people would be surprised to read:
18836 # /* config.h. Generated by config.status. */
18837 configure_input='Generated from '`
18838 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18839 `' by configure.'
18840 if test x"$ac_file" != x-; then
18841 configure_input="$ac_file. $configure_input"
18842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18843 printf "%s\n" "$as_me: creating $ac_file" >&6;}
18844 fi
18845 # Neutralize special characters interpreted by sed in replacement strings.
18846 case $configure_input in #(
18847 *\&* | *\|* | *\\* )
18848 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
18849 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18850 *) ac_sed_conf_input=$configure_input;;
18851 esac
18852
18853 case $ac_tag in
18854 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18855 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18856 esac
18857 ;;
18858 esac
18859
18860 ac_dir=`$as_dirname -- "$ac_file" ||
18861 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18862 X"$ac_file" : 'X\(//\)[^/]' \| \
18863 X"$ac_file" : 'X\(//\)$' \| \
18864 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18865 printf "%s\n" X"$ac_file" |
18866 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18867 s//\1/
18868 q
18869 }
18870 /^X\(\/\/\)[^/].*/{
18871 s//\1/
18872 q
18873 }
18874 /^X\(\/\/\)$/{
18875 s//\1/
18876 q
18877 }
18878 /^X\(\/\).*/{
18879 s//\1/
18880 q
18881 }
18882 s/.*/./; q'`
18883 as_dir="$ac_dir"; as_fn_mkdir_p
18884 ac_builddir=.
18885
18886 case "$ac_dir" in
18887 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18888 *)
18889 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
18890 # A ".." for each directory in $ac_dir_suffix.
18891 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18892 case $ac_top_builddir_sub in
18893 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18894 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18895 esac ;;
18896 esac
18897 ac_abs_top_builddir=$ac_pwd
18898 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18899 # for backward compatibility:
18900 ac_top_builddir=$ac_top_build_prefix
18901
18902 case $srcdir in
18903 .) # We are building in place.
18904 ac_srcdir=.
18905 ac_top_srcdir=$ac_top_builddir_sub
18906 ac_abs_top_srcdir=$ac_pwd ;;
18907 [\\/]* | ?:[\\/]* ) # Absolute name.
18908 ac_srcdir=$srcdir$ac_dir_suffix;
18909 ac_top_srcdir=$srcdir
18910 ac_abs_top_srcdir=$srcdir ;;
18911 *) # Relative name.
18912 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18913 ac_top_srcdir=$ac_top_build_prefix$srcdir
18914 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18915 esac
18916 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18917
18918
18919 case $ac_mode in
18920 :F)
18921 #
18922 # CONFIG_FILE
18923 #
18924
18925 case $INSTALL in
18926 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18927 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18928 esac
18929 ac_MKDIR_P=$MKDIR_P
18930 case $MKDIR_P in
18931 [\\/$]* | ?:[\\/]* ) ;;
18932 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18933 esac
18934 _ACEOF
18935
18936 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18937 # If the template does not know about datarootdir, expand it.
18938 # FIXME: This hack should be removed a few years after 2.60.
18939 ac_datarootdir_hack=; ac_datarootdir_seen=
18940 ac_sed_dataroot='
18941 /datarootdir/ {
18942 p
18943 q
18944 }
18945 /@datadir@/p
18946 /@docdir@/p
18947 /@infodir@/p
18948 /@localedir@/p
18949 /@mandir@/p'
18950 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18951 *datarootdir*) ac_datarootdir_seen=yes;;
18952 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18954 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18955 _ACEOF
18956 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18957 ac_datarootdir_hack='
18958 s&@datadir@&$datadir&g
18959 s&@docdir@&$docdir&g
18960 s&@infodir@&$infodir&g
18961 s&@localedir@&$localedir&g
18962 s&@mandir@&$mandir&g
18963 s&\\\${datarootdir}&$datarootdir&g' ;;
18964 esac
18965 _ACEOF
18966
18967 # Neutralize VPATH when '$srcdir' = '.'.
18968 # Shell code in configure.ac might set extrasub.
18969 # FIXME: do we really want to maintain this feature?
18970 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18971 ac_sed_extra="$ac_vpsub
18972 $extrasub
18973 _ACEOF
18974 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18975 :t
18976 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18977 s|@configure_input@|$ac_sed_conf_input|;t t
18978 s&@top_builddir@&$ac_top_builddir_sub&;t t
18979 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18980 s&@srcdir@&$ac_srcdir&;t t
18981 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18982 s&@top_srcdir@&$ac_top_srcdir&;t t
18983 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18984 s&@builddir@&$ac_builddir&;t t
18985 s&@abs_builddir@&$ac_abs_builddir&;t t
18986 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18987 s&@INSTALL@&$ac_INSTALL&;t t
18988 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18989 $ac_datarootdir_hack
18990 "
18991 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18992 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18993
18994 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18995 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18996 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18997 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
18999 which seems to be undefined. Please make sure it is defined" >&5
19000 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
19001 which seems to be undefined. Please make sure it is defined" >&2;}
19002
19003 rm -f "$ac_tmp/stdin"
19004 case $ac_file in
19005 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19006 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19007 esac \
19008 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19009 ;;
19010 :H)
19011 #
19012 # CONFIG_HEADER
19013 #
19014 if test x"$ac_file" != x-; then
19015 {
19016 printf "%s\n" "/* $configure_input */" >&1 \
19017 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19018 } >"$ac_tmp/config.h" \
19019 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19020 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19022 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
19023 else
19024 rm -f "$ac_file"
19025 mv "$ac_tmp/config.h" "$ac_file" \
19026 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19027 fi
19028 else
19029 printf "%s\n" "/* $configure_input */" >&1 \
19030 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19031 || as_fn_error $? "could not create -" "$LINENO" 5
19032 fi
19033 # Compute "$ac_file"'s index in $config_headers.
19034 _am_arg="$ac_file"
19035 _am_stamp_count=1
19036 for _am_header in $config_headers :; do
19037 case $_am_header in
19038 $_am_arg | $_am_arg:* )
19039 break ;;
19040 * )
19041 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19042 esac
19043 done
19044 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19045 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19046 X"$_am_arg" : 'X\(//\)[^/]' \| \
19047 X"$_am_arg" : 'X\(//\)$' \| \
19048 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19049 printf "%s\n" X"$_am_arg" |
19050 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19051 s//\1/
19052 q
19053 }
19054 /^X\(\/\/\)[^/].*/{
19055 s//\1/
19056 q
19057 }
19058 /^X\(\/\/\)$/{
19059 s//\1/
19060 q
19061 }
19062 /^X\(\/\).*/{
19063 s//\1/
19064 q
19065 }
19066 s/.*/./; q'`/stamp-h$_am_stamp_count
19067 ;;
19068
19069 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19070 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
19071 ;;
19072 esac
19073
19074
19075 case $ac_file$ac_mode in
19076 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19077 # Older Autoconf quotes --file arguments for eval, but not when files
19078 # are listed without --file. Let's play safe and only enable the eval
19079 # if we detect the quoting.
19080 # TODO: see whether this extra hack can be removed once we start
19081 # requiring Autoconf 2.70 or later.
19082 case $CONFIG_FILES in #(
19083 *\'*) :
19084 eval set x "$CONFIG_FILES" ;; #(
19085 *) :
19086 set x $CONFIG_FILES ;; #(
19087 *) :
19088 ;;
19089 esac
19090 shift
19091 # Used to flag and report bootstrapping failures.
19092 am_rc=0
19093 for am_mf
19094 do
19095 # Strip MF so we end up with the name of the file.
19096 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
19097 # Check whether this is an Automake generated Makefile which includes
19098 # dependency-tracking related rules and includes.
19099 # Grep'ing the whole file directly is not great: AIX grep has a line
19100 # limit of 2048, but all sed's we know have understand at least 4000.
19101 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
19102 || continue
19103 am_dirpart=`$as_dirname -- "$am_mf" ||
19104 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19105 X"$am_mf" : 'X\(//\)[^/]' \| \
19106 X"$am_mf" : 'X\(//\)$' \| \
19107 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
19108 printf "%s\n" X"$am_mf" |
19109 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19110 s//\1/
19111 q
19112 }
19113 /^X\(\/\/\)[^/].*/{
19114 s//\1/
19115 q
19116 }
19117 /^X\(\/\/\)$/{
19118 s//\1/
19119 q
19120 }
19121 /^X\(\/\).*/{
19122 s//\1/
19123 q
19124 }
19125 s/.*/./; q'`
19126 am_filepart=`$as_basename -- "$am_mf" ||
19127 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
19128 X"$am_mf" : 'X\(//\)$' \| \
19129 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
19130 printf "%s\n" X/"$am_mf" |
19131 sed '/^.*\/\([^/][^/]*\)\/*$/{
19132 s//\1/
19133 q
19134 }
19135 /^X\/\(\/\/\)$/{
19136 s//\1/
19137 q
19138 }
19139 /^X\/\(\/\).*/{
19140 s//\1/
19141 q
19142 }
19143 s/.*/./; q'`
19144 { echo "$as_me:$LINENO: cd "$am_dirpart" \
19145 && sed -e '/# am--include-marker/d' "$am_filepart" \
19146 | $MAKE -f - am--depfiles" >&5
19147 (cd "$am_dirpart" \
19148 && sed -e '/# am--include-marker/d' "$am_filepart" \
19149 | $MAKE -f - am--depfiles) >&5 2>&5
19150 ac_status=$?
19151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19152 (exit $ac_status); } || am_rc=$?
19153 done
19154 if test $am_rc -ne 0; then
19155 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
19156 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
19157 as_fn_error $? "Something went wrong bootstrapping makefile fragments
19158 for automatic dependency tracking. If GNU make was not used, consider
19159 re-running the configure script with MAKE=\"gmake\" (or whatever is
19160 necessary). You can also try re-running configure with the
19161 '--disable-dependency-tracking' option to at least be able to build
19162 the package (albeit without support for automatic dependency tracking).
19163 See 'config.log' for more details" "$LINENO" 5; }
19164 fi
19165 { am_dirpart=; unset am_dirpart;}
19166 { am_filepart=; unset am_filepart;}
19167 { am_mf=; unset am_mf;}
19168 { am_rc=; unset am_rc;}
19169 rm -f conftest-deps.mk
19170 }
19171 ;;
19172 "libtool":C)
19173
19174 # See if we are running on zsh, and set the options that allow our
19175 # commands through without removal of \ escapes.
19176 if test -n "${ZSH_VERSION+set}"; then
19177 setopt NO_GLOB_SUBST
19178 fi
19179
19180 cfgfile=${ofile}T
19181 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19182 $RM "$cfgfile"
19183
19184 cat <<_LT_EOF >> "$cfgfile"
19185 #! $SHELL
19186 # Generated automatically by $as_me ($PACKAGE) $VERSION
19187 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19188
19189 # Provide generalized library-building support services.
19190 # Written by Gordon Matzigkeit, 1996
19191
19192 # Copyright (C) 2024 Free Software Foundation, Inc.
19193 # This is free software; see the source for copying conditions. There is NO
19194 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19195
19196 # GNU Libtool is free software; you can redistribute it and/or modify
19197 # it under the terms of the GNU General Public License as published by
19198 # the Free Software Foundation; either version 2 of the License, or
19199 # (at your option) any later version.
19200 #
19201 # As a special exception to the GNU General Public License, if you
19202 # distribute this file as part of a program or library that is built
19203 # using GNU Libtool, you may include this file under the same
19204 # distribution terms that you use for the rest of that program.
19205 #
19206 # GNU Libtool is distributed in the hope that it will be useful, but
19207 # WITHOUT ANY WARRANTY; without even the implied warranty of
19208 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19209 # GNU General Public License for more details.
19210 #
19211 # You should have received a copy of the GNU General Public License
19212 # along with this program. If not, see <http://www.gnu.org/licenses/>.
19213
19214
19215 # The names of the tagged configurations supported by this script.
19216 available_tags=''
19217
19218 # Configured defaults for sys_lib_dlsearch_path munging.
19219 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
19220
19221 # ### BEGIN LIBTOOL CONFIG
19222
19223 # Which release of libtool.m4 was used?
19224 macro_version=$macro_version
19225 macro_revision=$macro_revision
19226
19227 # Assembler program.
19228 AS=$lt_AS
19229
19230 # DLL creation program.
19231 DLLTOOL=$lt_DLLTOOL
19232
19233 # Object dumper program.
19234 OBJDUMP=$lt_OBJDUMP
19235
19236 # Whether or not to build shared libraries.
19237 build_libtool_libs=$enable_shared
19238
19239 # Whether or not to build static libraries.
19240 build_old_libs=$enable_static
19241
19242 # What type of objects to build.
19243 pic_mode=$pic_mode
19244
19245 # Whether or not to optimize for fast installation.
19246 fast_install=$enable_fast_install
19247
19248 # Shared archive member basename,for filename based shared library versioning on AIX.
19249 shared_archive_member_spec=$shared_archive_member_spec
19250
19251 # Shell to use when invoking shell scripts.
19252 SHELL=$lt_SHELL
19253
19254 # An echo program that protects backslashes.
19255 ECHO=$lt_ECHO
19256
19257 # The PATH separator for the build system.
19258 PATH_SEPARATOR=$lt_PATH_SEPARATOR
19259
19260 # The host system.
19261 host_alias=$host_alias
19262 host=$host
19263 host_os=$host_os
19264
19265 # The build system.
19266 build_alias=$build_alias
19267 build=$build
19268 build_os=$build_os
19269
19270 # A sed program that does not truncate output.
19271 SED=$lt_SED
19272
19273 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19274 Xsed="\$SED -e 1s/^X//"
19275
19276 # A grep program that handles long lines.
19277 GREP=$lt_GREP
19278
19279 # An ERE matcher.
19280 EGREP=$lt_EGREP
19281
19282 # A literal string matcher.
19283 FGREP=$lt_FGREP
19284
19285 # A BSD- or MS-compatible name lister.
19286 NM=$lt_NM
19287
19288 # Whether we need soft or hard links.
19289 LN_S=$lt_LN_S
19290
19291 # What is the maximum length of a command?
19292 max_cmd_len=$max_cmd_len
19293
19294 # Object file suffix (normally "o").
19295 objext=$ac_objext
19296
19297 # Executable file suffix (normally "").
19298 exeext=$exeext
19299
19300 # whether the shell understands "unset".
19301 lt_unset=$lt_unset
19302
19303 # turn spaces into newlines.
19304 SP2NL=$lt_lt_SP2NL
19305
19306 # turn newlines into spaces.
19307 NL2SP=$lt_lt_NL2SP
19308
19309 # convert \$build file names to \$host format.
19310 to_host_file_cmd=$lt_cv_to_host_file_cmd
19311
19312 # convert \$build files to toolchain format.
19313 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19314
19315 # A file(cmd) program that detects file types.
19316 FILECMD=$lt_FILECMD
19317
19318 # Method to check whether dependent libraries are shared objects.
19319 deplibs_check_method=$lt_deplibs_check_method
19320
19321 # Command to use when deplibs_check_method = "file_magic".
19322 file_magic_cmd=$lt_file_magic_cmd
19323
19324 # How to find potential files when deplibs_check_method = "file_magic".
19325 file_magic_glob=$lt_file_magic_glob
19326
19327 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19328 want_nocaseglob=$lt_want_nocaseglob
19329
19330 # Command to associate shared and link libraries.
19331 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19332
19333 # The archiver.
19334 AR=$lt_AR
19335
19336 # Flags to create an archive (by configure).
19337 lt_ar_flags=$lt_ar_flags
19338
19339 # Flags to create an archive.
19340 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
19341
19342 # How to feed a file listing to the archiver.
19343 archiver_list_spec=$lt_archiver_list_spec
19344
19345 # A symbol stripping program.
19346 STRIP=$lt_STRIP
19347
19348 # Commands used to install an old-style archive.
19349 RANLIB=$lt_RANLIB
19350 old_postinstall_cmds=$lt_old_postinstall_cmds
19351 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19352
19353 # Whether to use a lock for old archive extraction.
19354 lock_old_archive_extraction=$lock_old_archive_extraction
19355
19356 # A C compiler.
19357 LTCC=$lt_CC
19358
19359 # LTCC compiler flags.
19360 LTCFLAGS=$lt_CFLAGS
19361
19362 # Take the output of nm and produce a listing of raw symbols and C names.
19363 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19364
19365 # Transform the output of nm in a proper C declaration.
19366 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19367
19368 # Transform the output of nm into a list of symbols to manually relocate.
19369 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
19370
19371 # Transform the output of nm in a C name address pair.
19372 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19373
19374 # Transform the output of nm in a C name address pair when lib prefix is needed.
19375 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19376
19377 # The name lister interface.
19378 nm_interface=$lt_lt_cv_nm_interface
19379
19380 # Specify filename containing input files for \$NM.
19381 nm_file_list_spec=$lt_nm_file_list_spec
19382
19383 # The root where to search for dependent libraries,and where our libraries should be installed.
19384 lt_sysroot=$lt_sysroot
19385
19386 # Command to truncate a binary pipe.
19387 lt_truncate_bin=$lt_lt_cv_truncate_bin
19388
19389 # The name of the directory that contains temporary libtool files.
19390 objdir=$objdir
19391
19392 # Used to examine libraries when file_magic_cmd begins with "file".
19393 MAGIC_CMD=$MAGIC_CMD
19394
19395 # Must we lock files when doing compilation?
19396 need_locks=$lt_need_locks
19397
19398 # Manifest tool.
19399 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19400
19401 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19402 DSYMUTIL=$lt_DSYMUTIL
19403
19404 # Tool to change global to local symbols on Mac OS X.
19405 NMEDIT=$lt_NMEDIT
19406
19407 # Tool to manipulate fat objects and archives on Mac OS X.
19408 LIPO=$lt_LIPO
19409
19410 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19411 OTOOL=$lt_OTOOL
19412
19413 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19414 OTOOL64=$lt_OTOOL64
19415
19416 # Old archive suffix (normally "a").
19417 libext=$libext
19418
19419 # Shared library suffix (normally ".so").
19420 shrext_cmds=$lt_shrext_cmds
19421
19422 # The commands to extract the exported symbol list from a shared archive.
19423 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19424
19425 # Variables whose values should be saved in libtool wrapper scripts and
19426 # restored at link time.
19427 variables_saved_for_relink=$lt_variables_saved_for_relink
19428
19429 # Do we need the "lib" prefix for modules?
19430 need_lib_prefix=$need_lib_prefix
19431
19432 # Do we need a version for libraries?
19433 need_version=$need_version
19434
19435 # Library versioning type.
19436 version_type=$version_type
19437
19438 # Shared library runtime path variable.
19439 runpath_var=$runpath_var
19440
19441 # Shared library path variable.
19442 shlibpath_var=$shlibpath_var
19443
19444 # Is shlibpath searched before the hard-coded library search path?
19445 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19446
19447 # Format of library name prefix.
19448 libname_spec=$lt_libname_spec
19449
19450 # List of archive names. First name is the real one, the rest are links.
19451 # The last name is the one that the linker finds with -lNAME
19452 library_names_spec=$lt_library_names_spec
19453
19454 # The coded name of the library, if different from the real name.
19455 soname_spec=$lt_soname_spec
19456
19457 # Permission mode override for installation of shared libraries.
19458 install_override_mode=$lt_install_override_mode
19459
19460 # Command to use after installation of a shared archive.
19461 postinstall_cmds=$lt_postinstall_cmds
19462
19463 # Command to use after uninstallation of a shared archive.
19464 postuninstall_cmds=$lt_postuninstall_cmds
19465
19466 # Commands used to finish a libtool library installation in a directory.
19467 finish_cmds=$lt_finish_cmds
19468
19469 # As "finish_cmds", except a single script fragment to be evaled but
19470 # not shown.
19471 finish_eval=$lt_finish_eval
19472
19473 # Whether we should hardcode library paths into libraries.
19474 hardcode_into_libs=$hardcode_into_libs
19475
19476 # Compile-time system search path for libraries.
19477 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19478
19479 # Detected run-time system search path for libraries.
19480 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
19481
19482 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
19483 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
19484
19485 # Whether dlopen is supported.
19486 dlopen_support=$enable_dlopen
19487
19488 # Whether dlopen of programs is supported.
19489 dlopen_self=$enable_dlopen_self
19490
19491 # Whether dlopen of statically linked programs is supported.
19492 dlopen_self_static=$enable_dlopen_self_static
19493
19494 # Commands to strip libraries.
19495 old_striplib=$lt_old_striplib
19496 striplib=$lt_striplib
19497
19498
19499 # The linker used to build libraries.
19500 LD=$lt_LD
19501
19502 # How to create reloadable object files.
19503 reload_flag=$lt_reload_flag
19504 reload_cmds=$lt_reload_cmds
19505
19506 # Commands used to build an old-style archive.
19507 old_archive_cmds=$lt_old_archive_cmds
19508
19509 # A language specific compiler.
19510 CC=$lt_compiler
19511
19512 # Is the compiler the GNU compiler?
19513 with_gcc=$GCC
19514
19515 # Compiler flag to turn off builtin functions.
19516 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19517
19518 # Additional compiler flags for building library objects.
19519 pic_flag=$lt_lt_prog_compiler_pic
19520
19521 # How to pass a linker flag through the compiler.
19522 wl=$lt_lt_prog_compiler_wl
19523
19524 # Compiler flag to prevent dynamic linking.
19525 link_static_flag=$lt_lt_prog_compiler_static
19526
19527 # Does compiler simultaneously support -c and -o options?
19528 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19529
19530 # Whether or not to add -lc for building shared libraries.
19531 build_libtool_need_lc=$archive_cmds_need_lc
19532
19533 # Whether or not to disallow shared libs when runtime libs are static.
19534 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19535
19536 # Compiler flag to allow reflexive dlopens.
19537 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19538
19539 # Compiler flag to generate shared objects directly from archives.
19540 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19541
19542 # Whether the compiler copes with passing no objects directly.
19543 compiler_needs_object=$lt_compiler_needs_object
19544
19545 # Create an old-style archive from a shared archive.
19546 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19547
19548 # Create a temporary old-style archive to link instead of a shared archive.
19549 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19550
19551 # Commands used to build a shared archive.
19552 archive_cmds=$lt_archive_cmds
19553 archive_expsym_cmds=$lt_archive_expsym_cmds
19554
19555 # Commands used to build a loadable module if different from building
19556 # a shared archive.
19557 module_cmds=$lt_module_cmds
19558 module_expsym_cmds=$lt_module_expsym_cmds
19559
19560 # Whether we are building with GNU ld or not.
19561 with_gnu_ld=$lt_with_gnu_ld
19562
19563 # Flag that allows shared libraries with undefined symbols to be built.
19564 allow_undefined_flag=$lt_allow_undefined_flag
19565
19566 # Flag that enforces no undefined symbols.
19567 no_undefined_flag=$lt_no_undefined_flag
19568
19569 # Flag to hardcode \$libdir into a binary during linking.
19570 # This must work even if \$libdir does not exist
19571 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19572
19573 # Whether we need a single "-rpath" flag with a separated argument.
19574 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19575
19576 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19577 # DIR into the resulting binary.
19578 hardcode_direct=$hardcode_direct
19579
19580 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19581 # DIR into the resulting binary and the resulting library dependency is
19582 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
19583 # library is relocated.
19584 hardcode_direct_absolute=$hardcode_direct_absolute
19585
19586 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19587 # into the resulting binary.
19588 hardcode_minus_L=$hardcode_minus_L
19589
19590 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19591 # into the resulting binary.
19592 hardcode_shlibpath_var=$hardcode_shlibpath_var
19593
19594 # Set to "yes" if building a shared library automatically hardcodes DIR
19595 # into the library and all subsequent libraries and executables linked
19596 # against it.
19597 hardcode_automatic=$hardcode_automatic
19598
19599 # Set to yes if linker adds runtime paths of dependent libraries
19600 # to runtime path list.
19601 inherit_rpath=$inherit_rpath
19602
19603 # Whether libtool must link a program against all its dependency libraries.
19604 link_all_deplibs=$link_all_deplibs
19605
19606 # Set to "yes" if exported symbols are required.
19607 always_export_symbols=$always_export_symbols
19608
19609 # The commands to list exported symbols.
19610 export_symbols_cmds=$lt_export_symbols_cmds
19611
19612 # Symbols that should not be listed in the preloaded symbols.
19613 exclude_expsyms=$lt_exclude_expsyms
19614
19615 # Symbols that must always be exported.
19616 include_expsyms=$lt_include_expsyms
19617
19618 # Commands necessary for linking programs (against libraries) with templates.
19619 prelink_cmds=$lt_prelink_cmds
19620
19621 # Commands necessary for finishing linking programs.
19622 postlink_cmds=$lt_postlink_cmds
19623
19624 # Specify filename containing input files.
19625 file_list_spec=$lt_file_list_spec
19626
19627 # How to hardcode a shared library path into an executable.
19628 hardcode_action=$hardcode_action
19629
19630 # ### END LIBTOOL CONFIG
19631
19632 _LT_EOF
19633
19634 cat <<'_LT_EOF' >> "$cfgfile"
19635
19636 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
19637
19638 # func_munge_path_list VARIABLE PATH
19639 # -----------------------------------
19640 # VARIABLE is name of variable containing _space_ separated list of
19641 # directories to be munged by the contents of PATH, which is string
19642 # having a format:
19643 # "DIR[:DIR]:"
19644 # string "DIR[ DIR]" will be prepended to VARIABLE
19645 # ":DIR[:DIR]"
19646 # string "DIR[ DIR]" will be appended to VARIABLE
19647 # "DIRP[:DIRP]::[DIRA:]DIRA"
19648 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
19649 # "DIRA[ DIRA]" will be appended to VARIABLE
19650 # "DIR[:DIR]"
19651 # VARIABLE will be replaced by "DIR[ DIR]"
19652 func_munge_path_list ()
19653 {
19654 case x$2 in
19655 x)
19656 ;;
19657 *:)
19658 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
19659 ;;
19660 x:*)
19661 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
19662 ;;
19663 *::*)
19664 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
19665 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
19666 ;;
19667 *)
19668 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
19669 ;;
19670 esac
19671 }
19672
19673
19674 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
19675 func_cc_basename ()
19676 {
19677 for cc_temp in $*""; do
19678 case $cc_temp in
19679 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19680 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19681 \-*) ;;
19682 *) break;;
19683 esac
19684 done
19685 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19686 }
19687
19688
19689 # ### END FUNCTIONS SHARED WITH CONFIGURE
19690
19691 _LT_EOF
19692
19693 case $host_os in
19694 aix3*)
19695 cat <<\_LT_EOF >> "$cfgfile"
19696 # AIX sometimes has problems with the GCC collect2 program. For some
19697 # reason, if we set the COLLECT_NAMES environment variable, the problems
19698 # vanish in a puff of smoke.
19699 if test set != "${COLLECT_NAMES+set}"; then
19700 COLLECT_NAMES=
19701 export COLLECT_NAMES
19702 fi
19703 _LT_EOF
19704 ;;
19705 esac
19706
19707
19708
19709 ltmain=$ac_aux_dir/ltmain.sh
19710
19711
19712 # We use sed instead of cat because bash on DJGPP gets confused if
19713 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19714 # text mode, it properly converts lines to CR/LF. This bash problem
19715 # is reportedly fixed, but why not run on old versions too?
19716 $SED '$q' "$ltmain" >> "$cfgfile" \
19717 || (rm -f "$cfgfile"; exit 1)
19718
19719 mv -f "$cfgfile" "$ofile" ||
19720 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19721 chmod +x "$ofile"
19722
19723 ;;
19724
19725 esac
19726 done # for ac_tag
19727
19728
19729 as_fn_exit 0
19730 _ACEOF
19731 ac_clean_files=$ac_clean_files_save
19732
19733 test $ac_write_fail = 0 ||
19734 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19735
19736
19737 # configure is writing to config.log, and then calls config.status.
19738 # config.status does its own redirection, appending to config.log.
19739 # Unfortunately, on DOS this fails, as config.log is still kept open
19740 # by configure, so config.status won't be able to write to it; its
19741 # output is simply discarded. So we exec the FD to /dev/null,
19742 # effectively closing config.log, so it can be properly (re)opened and
19743 # appended to by config.status. When coming back to configure, we
19744 # need to make the FD available again.
19745 if test "$no_create" != yes; then
19746 ac_cs_success=:
19747 ac_config_status_args=
19748 test "$silent" = yes &&
19749 ac_config_status_args="$ac_config_status_args --quiet"
19750 exec 5>/dev/null
19751 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19752 exec 5>>config.log
19753 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19754 # would make configure fail if this is the last instruction.
19755 $ac_cs_success || as_fn_exit 1
19756 fi
19757 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19759 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19760 fi
19761
19762