Debian Codegraph @

texk/makeindexk/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 makeindex (TeX Live) 2.18.
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='makeindex (TeX Live)'
616 PACKAGE_TARNAME='makeindex--tex-live-'
617 PACKAGE_VERSION='2.18'
618 PACKAGE_STRING='makeindex (TeX Live) 2.18'
619 PACKAGE_BUGREPORT='[email protected]'
620 PACKAGE_URL=''
621
622 ac_unique_file="mkind.c"
623 # Factoring default headers for most tests.
624 ac_includes_default="\
625 #include <stddef.h>
626 #ifdef HAVE_STDIO_H
627 # include <stdio.h>
628 #endif
629 #ifdef HAVE_STDLIB_H
630 # include <stdlib.h>
631 #endif
632 #ifdef HAVE_STRING_H
633 # include <string.h>
634 #endif
635 #ifdef HAVE_INTTYPES_H
636 # include <inttypes.h>
637 #endif
638 #ifdef HAVE_STDINT_H
639 # include <stdint.h>
640 #endif
641 #ifdef HAVE_STRINGS_H
642 # include <strings.h>
643 #endif
644 #ifdef HAVE_SYS_TYPES_H
645 # include <sys/types.h>
646 #endif
647 #ifdef HAVE_SYS_STAT_H
648 # include <sys/stat.h>
649 #endif
650 #ifdef HAVE_UNISTD_H
651 # include <unistd.h>
652 #endif"
653
654 ac_header_c_list=
655 enable_year2038=no
656 ac_subst_vars='am__EXEEXT_FALSE
657 am__EXEEXT_TRUE
658 LTLIBOBJS
659 LIBOBJS
660 WIN32_FALSE
661 WIN32_TRUE
662 KPATHSEA_RULE
663 KPATHSEA_DEPEND
664 KPATHSEA_LIBS
665 KPATHSEA_INCLUDES
666 PKG_CONFIG
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 makeindex (TeX Live) 2.18 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/makeindex--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 makeindex (TeX Live) 2.18:";;
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 makeindex (TeX Live) configure 2.18
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 makeindex (TeX Live) $as_me 2.18, 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
2711 # Auxiliary files required by this configure script.
2712 ac_aux_files="config.guess config.sub ltmain.sh ar-lib compile missing install-sh"
2713
2714 # Locations in which to look for auxiliary files.
2715 ac_aux_dir_candidates="${srcdir}/../../build-aux"
2716
2717 # Search for a directory containing all of the required auxiliary files,
2718 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2719 # If we don't find one directory that contains all the files we need,
2720 # we report the set of missing files from the *first* directory in
2721 # $ac_aux_dir_candidates and give up.
2722 ac_missing_aux_files=""
2723 ac_first_candidate=:
2724 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2726 as_found=false
2727 for as_dir in $ac_aux_dir_candidates
2728 do
2729 IFS=$as_save_IFS
2730 case $as_dir in #(((
2731 '') as_dir=./ ;;
2732 */) ;;
2733 *) as_dir=$as_dir/ ;;
2734 esac
2735 as_found=:
2736
2737 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2738 ac_aux_dir_found=yes
2739 ac_install_sh=
2740 for ac_aux in $ac_aux_files
2741 do
2742 # As a special case, if "install-sh" is required, that requirement
2743 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2744 # and $ac_install_sh is set appropriately for whichever one is found.
2745 if test x"$ac_aux" = x"install-sh"
2746 then
2747 if test -f "${as_dir}install-sh"; then
2748 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2749 ac_install_sh="${as_dir}install-sh -c"
2750 elif test -f "${as_dir}install.sh"; then
2751 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2752 ac_install_sh="${as_dir}install.sh -c"
2753 elif test -f "${as_dir}shtool"; then
2754 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2755 ac_install_sh="${as_dir}shtool install -c"
2756 else
2757 ac_aux_dir_found=no
2758 if $ac_first_candidate; then
2759 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2760 else
2761 break
2762 fi
2763 fi
2764 else
2765 if test -f "${as_dir}${ac_aux}"; then
2766 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2767 else
2768 ac_aux_dir_found=no
2769 if $ac_first_candidate; then
2770 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2771 else
2772 break
2773 fi
2774 fi
2775 fi
2776 done
2777 if test "$ac_aux_dir_found" = yes; then
2778 ac_aux_dir="$as_dir"
2779 break
2780 fi
2781 ac_first_candidate=false
2782
2783 as_found=false
2784 done
2785 IFS=$as_save_IFS
2786 if $as_found
2787 then :
2788
2789 else case e in #(
2790 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2791 esac
2792 fi
2793
2794
2795 # These three variables are undocumented and unsupported,
2796 # and are intended to be withdrawn in a future Autoconf release.
2797 # They can cause serious problems if a builder's source tree is in a directory
2798 # whose full name contains unusual characters.
2799 if test -f "${ac_aux_dir}config.guess"; then
2800 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2801 fi
2802 if test -f "${ac_aux_dir}config.sub"; then
2803 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2804 fi
2805 if test -f "$ac_aux_dir/configure"; then
2806 ac_configure="$SHELL ${ac_aux_dir}configure"
2807 fi
2808
2809 # Check that the precious variables saved in the cache have kept the same
2810 # value.
2811 ac_cache_corrupted=false
2812 for ac_var in $ac_precious_vars; do
2813 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2814 eval ac_new_set=\$ac_env_${ac_var}_set
2815 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2816 eval ac_new_val=\$ac_env_${ac_var}_value
2817 case $ac_old_set,$ac_new_set in
2818 set,)
2819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2820 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2821 ac_cache_corrupted=: ;;
2822 ,set)
2823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2824 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2825 ac_cache_corrupted=: ;;
2826 ,);;
2827 *)
2828 if test "x$ac_old_val" != "x$ac_new_val"; then
2829 # differences in whitespace do not lead to failure.
2830 ac_old_val_w=`echo x $ac_old_val`
2831 ac_new_val_w=`echo x $ac_new_val`
2832 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2834 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2835 ac_cache_corrupted=:
2836 else
2837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2838 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2839 eval $ac_var=\$ac_old_val
2840 fi
2841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2842 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2844 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2845 fi;;
2846 esac
2847 # Pass precious variables to config.status.
2848 if test "$ac_new_set" = set; then
2849 case $ac_new_val in
2850 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2851 *) ac_arg=$ac_var=$ac_new_val ;;
2852 esac
2853 case " $ac_configure_args " in
2854 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2855 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2856 esac
2857 fi
2858 done
2859 if $ac_cache_corrupted; then
2860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2861 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2863 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2864 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2865 and start over" "$LINENO" 5
2866 fi
2867 ## -------------------- ##
2868 ## Main body of script. ##
2869 ## -------------------- ##
2870
2871 ac_ext=c
2872 ac_cpp='$CPP $CPPFLAGS'
2873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2876
2877
2878
2879
2880
2881
2882
2883 am__api_version='1.18'
2884
2885
2886
2887 # Find a good install program. We prefer a C program (faster),
2888 # so one script is as good as another. But avoid the broken or
2889 # incompatible versions:
2890 # SysV /etc/install, /usr/sbin/install
2891 # SunOS /usr/etc/install
2892 # IRIX /sbin/install
2893 # AIX /bin/install
2894 # AmigaOS /C/install, which installs bootblocks on floppy discs
2895 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2896 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2897 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2898 # OS/2's system install, which has a completely different semantic
2899 # ./install, which can be erroneously created by make from ./install.sh.
2900 # Reject install programs that cannot install multiple files.
2901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2902 printf %s "checking for a BSD-compatible install... " >&6; }
2903 if test -z "$INSTALL"; then
2904 if test ${ac_cv_path_install+y}
2905 then :
2906 printf %s "(cached) " >&6
2907 else case e in #(
2908 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2909 for as_dir in $PATH
2910 do
2911 IFS=$as_save_IFS
2912 case $as_dir in #(((
2913 '') as_dir=./ ;;
2914 */) ;;
2915 *) as_dir=$as_dir/ ;;
2916 esac
2917 # Account for fact that we put trailing slashes in our PATH walk.
2918 case $as_dir in #((
2919 ./ | /[cC]/* | \
2920 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2921 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2922 /usr/ucb/* ) ;;
2923 *)
2924 # OSF1 and SCO ODT 3.0 have their own names for install.
2925 # Don't use installbsd from OSF since it installs stuff as root
2926 # by default.
2927 for ac_prog in ginstall scoinst install; do
2928 for ac_exec_ext in '' $ac_executable_extensions; do
2929 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2930 if test $ac_prog = install &&
2931 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2932 # AIX install. It has an incompatible calling convention.
2933 :
2934 elif test $ac_prog = install &&
2935 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2936 # program-specific install script used by HP pwplus--don't use.
2937 :
2938 else
2939 rm -rf conftest.one conftest.two conftest.dir
2940 echo one > conftest.one
2941 echo two > conftest.two
2942 mkdir conftest.dir
2943 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2944 test -s conftest.one && test -s conftest.two &&
2945 test -s conftest.dir/conftest.one &&
2946 test -s conftest.dir/conftest.two
2947 then
2948 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2949 break 3
2950 fi
2951 fi
2952 fi
2953 done
2954 done
2955 ;;
2956 esac
2957
2958 done
2959 IFS=$as_save_IFS
2960
2961 rm -rf conftest.one conftest.two conftest.dir
2962 ;;
2963 esac
2964 fi
2965 if test ${ac_cv_path_install+y}; then
2966 INSTALL=$ac_cv_path_install
2967 else
2968 # As a last resort, use the slow shell script. Don't cache a
2969 # value for INSTALL within a source directory, because that will
2970 # break other packages using the cache if that directory is
2971 # removed, or if the value is a relative name.
2972 INSTALL=$ac_install_sh
2973 fi
2974 fi
2975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2976 printf "%s\n" "$INSTALL" >&6; }
2977
2978 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2979 # It thinks the first close brace ends the variable substitution.
2980 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2981
2982 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2983
2984 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2985
2986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
2987 printf %s "checking whether sleep supports fractional seconds... " >&6; }
2988 if test ${am_cv_sleep_fractional_seconds+y}
2989 then :
2990 printf %s "(cached) " >&6
2991 else case e in #(
2992 e) if sleep 0.001 2>/dev/null
2993 then :
2994 am_cv_sleep_fractional_seconds=yes
2995 else case e in #(
2996 e) am_cv_sleep_fractional_seconds=no ;;
2997 esac
2998 fi
2999 ;;
3000 esac
3001 fi
3002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
3003 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
3004
3005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
3006 printf %s "checking filesystem timestamp resolution... " >&6; }
3007 if test ${am_cv_filesystem_timestamp_resolution+y}
3008 then :
3009 printf %s "(cached) " >&6
3010 else case e in #(
3011 e) # Default to the worst case.
3012 am_cv_filesystem_timestamp_resolution=2
3013
3014 # Only try to go finer than 1 sec if sleep can do it.
3015 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
3016 # - 1 sec is not much of a win compared to 2 sec, and
3017 # - it takes 2 seconds to perform the test whether 1 sec works.
3018 #
3019 # Instead, just use the default 2s on platforms that have 1s resolution,
3020 # accept the extra 1s delay when using $sleep in the Automake tests, in
3021 # exchange for not incurring the 2s delay for running the test for all
3022 # packages.
3023 #
3024 am_try_resolutions=
3025 if test "$am_cv_sleep_fractional_seconds" = yes; then
3026 # Even a millisecond often causes a bunch of false positives,
3027 # so just try a hundredth of a second. The time saved between .001 and
3028 # .01 is not terribly consequential.
3029 am_try_resolutions="0.01 0.1 $am_try_resolutions"
3030 fi
3031
3032 # In order to catch current-generation FAT out, we must *modify* files
3033 # that already exist; the *creation* timestamp is finer. Use names
3034 # that make ls -t sort them differently when they have equal
3035 # timestamps than when they have distinct timestamps, keeping
3036 # in mind that ls -t prints the *newest* file first.
3037 rm -f conftest.ts?
3038 : > conftest.ts1
3039 : > conftest.ts2
3040 : > conftest.ts3
3041
3042 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
3043 # clobber the current shell's arguments. (Outer-level square brackets
3044 # are removed by m4; they're present so that m4 does not expand
3045 # <dollar><star>; be careful, easy to get confused.)
3046 if (
3047 set X `ls -t conftest.ts[12]` &&
3048 {
3049 test "$*" != "X conftest.ts1 conftest.ts2" ||
3050 test "$*" != "X conftest.ts2 conftest.ts1";
3051 }
3052 ); then :; else
3053 # If neither matched, then we have a broken ls. This can happen
3054 # if, for instance, CONFIG_SHELL is bash and it inherits a
3055 # broken ls alias from the environment. This has actually
3056 # happened. Such a system could not be considered "sane".
3057 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
3058 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3059 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3060 as_fn_error $? "ls -t produces unexpected output.
3061 Make sure there is not a broken ls alias in your environment.
3062 See 'config.log' for more details" "$LINENO" 5; }
3063 fi
3064
3065 for am_try_res in $am_try_resolutions; do
3066 # Any one fine-grained sleep might happen to cross the boundary
3067 # between two values of a coarser actual resolution, but if we do
3068 # two fine-grained sleeps in a row, at least one of them will fall
3069 # entirely within a coarse interval.
3070 echo alpha > conftest.ts1
3071 sleep $am_try_res
3072 echo beta > conftest.ts2
3073 sleep $am_try_res
3074 echo gamma > conftest.ts3
3075
3076 # We assume that 'ls -t' will make use of high-resolution
3077 # timestamps if the operating system supports them at all.
3078 if (set X `ls -t conftest.ts?` &&
3079 test "$2" = conftest.ts3 &&
3080 test "$3" = conftest.ts2 &&
3081 test "$4" = conftest.ts1); then
3082 #
3083 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
3084 # because we don't need to test make.
3085 make_ok=true
3086 if test $am_try_res != 1; then
3087 # But if we've succeeded so far with a subsecond resolution, we
3088 # have one more thing to check: make. It can happen that
3089 # everything else supports the subsecond mtimes, but make doesn't;
3090 # notably on macOS, which ships make 3.81 from 2006 (the last one
3091 # released under GPLv2). https://bugs.gnu.org/68808
3092 #
3093 # We test $MAKE if it is defined in the environment, else "make".
3094 # It might get overridden later, but our hope is that in practice
3095 # it does not matter: it is the system "make" which is (by far)
3096 # the most likely to be broken, whereas if the user overrides it,
3097 # probably they did so with a better, or at least not worse, make.
3098 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
3099 #
3100 # Create a Makefile (real tab character here):
3101 rm -f conftest.mk
3102 echo 'conftest.ts1: conftest.ts2' >conftest.mk
3103 echo ' touch conftest.ts2' >>conftest.mk
3104 #
3105 # Now, running
3106 # touch conftest.ts1; touch conftest.ts2; make
3107 # should touch ts1 because ts2 is newer. This could happen by luck,
3108 # but most often, it will fail if make's support is insufficient. So
3109 # test for several consecutive successes.
3110 #
3111 # (We reuse conftest.ts[12] because we still want to modify existing
3112 # files, not create new ones, per above.)
3113 n=0
3114 make=${MAKE-make}
3115 until test $n -eq 3; do
3116 echo one > conftest.ts1
3117 sleep $am_try_res
3118 echo two > conftest.ts2 # ts2 should now be newer than ts1
3119 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
3120 make_ok=false
3121 break # out of $n loop
3122 fi
3123 n=`expr $n + 1`
3124 done
3125 fi
3126 #
3127 if $make_ok; then
3128 # Everything we know to check worked out, so call this resolution good.
3129 am_cv_filesystem_timestamp_resolution=$am_try_res
3130 break # out of $am_try_res loop
3131 fi
3132 # Otherwise, we'll go on to check the next resolution.
3133 fi
3134 done
3135 rm -f conftest.ts?
3136 # (end _am_filesystem_timestamp_resolution)
3137 ;;
3138 esac
3139 fi
3140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
3141 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
3142
3143 # This check should not be cached, as it may vary across builds of
3144 # different projects.
3145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3146 printf %s "checking whether build environment is sane... " >&6; }
3147 # Reject unsafe characters in $srcdir or the absolute working directory
3148 # name. Accept space and tab only in the latter.
3149 am_lf='
3150 '
3151 case `pwd` in
3152 *[\\\"\#\$\&\'\`$am_lf]*)
3153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3154 printf "%s\n" "no" >&6; }
3155 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3156 esac
3157 case $srcdir in
3158 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3160 printf "%s\n" "no" >&6; }
3161 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3162 esac
3163
3164 # Do 'set' in a subshell so we don't clobber the current shell's
3165 # arguments. Must try -L first in case configure is actually a
3166 # symlink; some systems play weird games with the mod time of symlinks
3167 # (eg FreeBSD returns the mod time of the symlink's containing
3168 # directory).
3169 am_build_env_is_sane=no
3170 am_has_slept=no
3171 rm -f conftest.file
3172 for am_try in 1 2; do
3173 echo "timestamp, slept: $am_has_slept" > conftest.file
3174 if (
3175 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3176 if test "$*" = "X"; then
3177 # -L didn't work.
3178 set X `ls -t "$srcdir/configure" conftest.file`
3179 fi
3180 test "$2" = conftest.file
3181 ); then
3182 am_build_env_is_sane=yes
3183 break
3184 fi
3185 # Just in case.
3186 sleep "$am_cv_filesystem_timestamp_resolution"
3187 am_has_slept=yes
3188 done
3189
3190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
3191 printf "%s\n" "$am_build_env_is_sane" >&6; }
3192 if test "$am_build_env_is_sane" = no; then
3193 as_fn_error $? "newly created file is older than distributed files!
3194 Check your system clock" "$LINENO" 5
3195 fi
3196
3197 # If we didn't sleep, we still need to ensure time stamps of config.status and
3198 # generated files are strictly newer.
3199 am_sleep_pid=
3200 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
3201 then :
3202
3203 else case e in #(
3204 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
3205 am_sleep_pid=$!
3206 ;;
3207 esac
3208 fi
3209
3210 rm -f conftest.file
3211
3212 test "$program_prefix" != NONE &&
3213 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3214 # Use a double $ so make ignores it.
3215 test "$program_suffix" != NONE &&
3216 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3217 # Double any \ or $.
3218 # By default was 's,x,x', remove it if useless.
3219 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3220 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3221
3222
3223 # Expand $ac_aux_dir to an absolute path.
3224 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3225
3226
3227 if test x"${MISSING+set}" != xset; then
3228 MISSING="\${SHELL} '$am_aux_dir/missing'"
3229 fi
3230 # Use eval to expand $SHELL
3231 if eval "$MISSING --is-lightweight"; then
3232 am_missing_run="$MISSING "
3233 else
3234 am_missing_run=
3235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3236 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3237 fi
3238
3239 if test x"${install_sh+set}" != xset; then
3240 case $am_aux_dir in
3241 *\ * | *\ *)
3242 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3243 *)
3244 install_sh="\${SHELL} $am_aux_dir/install-sh"
3245 esac
3246 fi
3247
3248 # Installed binaries are usually stripped using 'strip' when the user
3249 # run "make install-strip". However 'strip' might not be the right
3250 # tool to use in cross-compilation environments, therefore Automake
3251 # will honor the 'STRIP' environment variable to overrule this program.
3252 if test "$cross_compiling" != no; then
3253 if test -n "$ac_tool_prefix"; then
3254 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3255 set dummy ${ac_tool_prefix}strip; ac_word=$2
3256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3257 printf %s "checking for $ac_word... " >&6; }
3258 if test ${ac_cv_prog_STRIP+y}
3259 then :
3260 printf %s "(cached) " >&6
3261 else case e in #(
3262 e) if test -n "$STRIP"; then
3263 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3264 else
3265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3266 for as_dir in $PATH
3267 do
3268 IFS=$as_save_IFS
3269 case $as_dir in #(((
3270 '') as_dir=./ ;;
3271 */) ;;
3272 *) as_dir=$as_dir/ ;;
3273 esac
3274 for ac_exec_ext in '' $ac_executable_extensions; do
3275 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3276 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3277 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3278 break 2
3279 fi
3280 done
3281 done
3282 IFS=$as_save_IFS
3283
3284 fi ;;
3285 esac
3286 fi
3287 STRIP=$ac_cv_prog_STRIP
3288 if test -n "$STRIP"; then
3289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3290 printf "%s\n" "$STRIP" >&6; }
3291 else
3292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3293 printf "%s\n" "no" >&6; }
3294 fi
3295
3296
3297 fi
3298 if test -z "$ac_cv_prog_STRIP"; then
3299 ac_ct_STRIP=$STRIP
3300 # Extract the first word of "strip", so it can be a program name with args.
3301 set dummy strip; ac_word=$2
3302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3303 printf %s "checking for $ac_word... " >&6; }
3304 if test ${ac_cv_prog_ac_ct_STRIP+y}
3305 then :
3306 printf %s "(cached) " >&6
3307 else case e in #(
3308 e) if test -n "$ac_ct_STRIP"; then
3309 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3310 else
3311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3312 for as_dir in $PATH
3313 do
3314 IFS=$as_save_IFS
3315 case $as_dir in #(((
3316 '') as_dir=./ ;;
3317 */) ;;
3318 *) as_dir=$as_dir/ ;;
3319 esac
3320 for ac_exec_ext in '' $ac_executable_extensions; do
3321 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3322 ac_cv_prog_ac_ct_STRIP="strip"
3323 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3324 break 2
3325 fi
3326 done
3327 done
3328 IFS=$as_save_IFS
3329
3330 fi ;;
3331 esac
3332 fi
3333 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3334 if test -n "$ac_ct_STRIP"; then
3335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3336 printf "%s\n" "$ac_ct_STRIP" >&6; }
3337 else
3338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3339 printf "%s\n" "no" >&6; }
3340 fi
3341
3342 if test "x$ac_ct_STRIP" = x; then
3343 STRIP=":"
3344 else
3345 case $cross_compiling:$ac_tool_warned in
3346 yes:)
3347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3348 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3349 ac_tool_warned=yes ;;
3350 esac
3351 STRIP=$ac_ct_STRIP
3352 fi
3353 else
3354 STRIP="$ac_cv_prog_STRIP"
3355 fi
3356
3357 fi
3358 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3359
3360
3361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3362 printf %s "checking for a race-free mkdir -p... " >&6; }
3363 if test -z "$MKDIR_P"; then
3364 if test ${ac_cv_path_mkdir+y}
3365 then :
3366 printf %s "(cached) " >&6
3367 else case e in #(
3368 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3369 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3370 do
3371 IFS=$as_save_IFS
3372 case $as_dir in #(((
3373 '') as_dir=./ ;;
3374 */) ;;
3375 *) as_dir=$as_dir/ ;;
3376 esac
3377 for ac_prog in mkdir gmkdir; do
3378 for ac_exec_ext in '' $ac_executable_extensions; do
3379 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3380 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3381 'mkdir ('*'coreutils) '* | \
3382 *'BusyBox '* | \
3383 'mkdir (fileutils) '4.1*)
3384 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3385 break 3;;
3386 esac
3387 done
3388 done
3389 done
3390 IFS=$as_save_IFS
3391 ;;
3392 esac
3393 fi
3394
3395 test -d ./--version && rmdir ./--version
3396 if test ${ac_cv_path_mkdir+y}; then
3397 MKDIR_P="$ac_cv_path_mkdir -p"
3398 else
3399 # As a last resort, use plain mkdir -p,
3400 # in the hope it doesn't have the bugs of ancient mkdir.
3401 MKDIR_P='mkdir -p'
3402 fi
3403 fi
3404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3405 printf "%s\n" "$MKDIR_P" >&6; }
3406
3407 for ac_prog in gawk mawk nawk awk
3408 do
3409 # Extract the first word of "$ac_prog", so it can be a program name with args.
3410 set dummy $ac_prog; ac_word=$2
3411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3412 printf %s "checking for $ac_word... " >&6; }
3413 if test ${ac_cv_prog_AWK+y}
3414 then :
3415 printf %s "(cached) " >&6
3416 else case e in #(
3417 e) if test -n "$AWK"; then
3418 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3419 else
3420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3421 for as_dir in $PATH
3422 do
3423 IFS=$as_save_IFS
3424 case $as_dir in #(((
3425 '') as_dir=./ ;;
3426 */) ;;
3427 *) as_dir=$as_dir/ ;;
3428 esac
3429 for ac_exec_ext in '' $ac_executable_extensions; do
3430 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3431 ac_cv_prog_AWK="$ac_prog"
3432 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3433 break 2
3434 fi
3435 done
3436 done
3437 IFS=$as_save_IFS
3438
3439 fi ;;
3440 esac
3441 fi
3442 AWK=$ac_cv_prog_AWK
3443 if test -n "$AWK"; then
3444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3445 printf "%s\n" "$AWK" >&6; }
3446 else
3447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3448 printf "%s\n" "no" >&6; }
3449 fi
3450
3451
3452 test -n "$AWK" && break
3453 done
3454
3455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3456 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3457 set x ${MAKE-make}
3458 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3459 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3460 then :
3461 printf %s "(cached) " >&6
3462 else case e in #(
3463 e) cat >conftest.make <<\_ACEOF
3464 SHELL = /bin/sh
3465 all:
3466 @echo '@@@%%%=$(MAKE)=@@@%%%'
3467 _ACEOF
3468 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3469 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3470 *@@@%%%=?*=@@@%%%*)
3471 eval ac_cv_prog_make_${ac_make}_set=yes;;
3472 *)
3473 eval ac_cv_prog_make_${ac_make}_set=no;;
3474 esac
3475 rm -f conftest.make ;;
3476 esac
3477 fi
3478 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3480 printf "%s\n" "yes" >&6; }
3481 SET_MAKE=
3482 else
3483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3484 printf "%s\n" "no" >&6; }
3485 SET_MAKE="MAKE=${MAKE-make}"
3486 fi
3487
3488 rm -rf .tst 2>/dev/null
3489 mkdir .tst 2>/dev/null
3490 if test -d .tst; then
3491 am__leading_dot=.
3492 else
3493 am__leading_dot=_
3494 fi
3495 rmdir .tst 2>/dev/null
3496
3497 AM_DEFAULT_VERBOSITY=1
3498 # Check whether --enable-silent-rules was given.
3499 if test ${enable_silent_rules+y}
3500 then :
3501 enableval=$enable_silent_rules;
3502 fi
3503
3504 am_make=${MAKE-make}
3505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3506 printf %s "checking whether $am_make supports nested variables... " >&6; }
3507 if test ${am_cv_make_support_nested_variables+y}
3508 then :
3509 printf %s "(cached) " >&6
3510 else case e in #(
3511 e) if printf "%s\n" 'TRUE=$(BAR$(V))
3512 BAR0=false
3513 BAR1=true
3514 V=1
3515 am__doit:
3516 @$(TRUE)
3517 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3518 am_cv_make_support_nested_variables=yes
3519 else
3520 am_cv_make_support_nested_variables=no
3521 fi ;;
3522 esac
3523 fi
3524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3525 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3526 AM_BACKSLASH='\'
3527
3528 am__rm_f_notfound=
3529 if (rm -f && rm -fr && rm -rf) 2>/dev/null
3530 then :
3531
3532 else case e in #(
3533 e) am__rm_f_notfound='""' ;;
3534 esac
3535 fi
3536
3537
3538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
3539 printf %s "checking xargs -n works... " >&6; }
3540 if test ${am_cv_xargs_n_works+y}
3541 then :
3542 printf %s "(cached) " >&6
3543 else case e in #(
3544 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
3545 3"
3546 then :
3547 am_cv_xargs_n_works=yes
3548 else case e in #(
3549 e) am_cv_xargs_n_works=no ;;
3550 esac
3551 fi ;;
3552 esac
3553 fi
3554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
3555 printf "%s\n" "$am_cv_xargs_n_works" >&6; }
3556 if test "$am_cv_xargs_n_works" = yes
3557 then :
3558 am__xargs_n='xargs -n'
3559 else case e in #(
3560 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
3561 ;;
3562 esac
3563 fi
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574 DEPDIR="${am__leading_dot}deps"
3575
3576 ac_config_commands="$ac_config_commands depfiles"
3577
3578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3579 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3580 cat > confinc.mk << 'END'
3581 am__doit:
3582 @echo this is the am__doit target >confinc.out
3583 .PHONY: am__doit
3584 END
3585 am__include="#"
3586 am__quote=
3587 # BSD make does it like this.
3588 echo '.include "confinc.mk" # ignored' > confmf.BSD
3589 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3590 echo 'include confinc.mk # ignored' > confmf.GNU
3591 _am_result=no
3592 for s in GNU BSD; do
3593 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3594 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3595 ac_status=$?
3596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3597 (exit $ac_status); }
3598 case $?:`cat confinc.out 2>/dev/null` in #(
3599 '0:this is the am__doit target') :
3600 case $s in #(
3601 BSD) :
3602 am__include='.include' am__quote='"' ;; #(
3603 *) :
3604 am__include='include' am__quote='' ;;
3605 esac ;; #(
3606 *) :
3607 ;;
3608 esac
3609 if test "$am__include" != "#"; then
3610 _am_result="yes ($s style)"
3611 break
3612 fi
3613 done
3614 rm -f confinc.* confmf.*
3615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3616 printf "%s\n" "${_am_result}" >&6; }
3617
3618 # Check whether --enable-dependency-tracking was given.
3619 if test ${enable_dependency_tracking+y}
3620 then :
3621 enableval=$enable_dependency_tracking;
3622 fi
3623
3624 if test "x$enable_dependency_tracking" != xno; then
3625 am_depcomp="$ac_aux_dir/depcomp"
3626 AMDEPBACKSLASH='\'
3627 am__nodep='_no'
3628 fi
3629 if test "x$enable_dependency_tracking" != xno; then
3630 AMDEP_TRUE=
3631 AMDEP_FALSE='#'
3632 else
3633 AMDEP_TRUE='#'
3634 AMDEP_FALSE=
3635 fi
3636
3637
3638 ac_ext=c
3639 ac_cpp='$CPP $CPPFLAGS'
3640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3643 if test -n "$ac_tool_prefix"; then
3644 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3645 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3647 printf %s "checking for $ac_word... " >&6; }
3648 if test ${ac_cv_prog_CC+y}
3649 then :
3650 printf %s "(cached) " >&6
3651 else case e in #(
3652 e) if test -n "$CC"; then
3653 ac_cv_prog_CC="$CC" # Let the user override the test.
3654 else
3655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3656 for as_dir in $PATH
3657 do
3658 IFS=$as_save_IFS
3659 case $as_dir in #(((
3660 '') as_dir=./ ;;
3661 */) ;;
3662 *) as_dir=$as_dir/ ;;
3663 esac
3664 for ac_exec_ext in '' $ac_executable_extensions; do
3665 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3666 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3667 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3668 break 2
3669 fi
3670 done
3671 done
3672 IFS=$as_save_IFS
3673
3674 fi ;;
3675 esac
3676 fi
3677 CC=$ac_cv_prog_CC
3678 if test -n "$CC"; then
3679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3680 printf "%s\n" "$CC" >&6; }
3681 else
3682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3683 printf "%s\n" "no" >&6; }
3684 fi
3685
3686
3687 fi
3688 if test -z "$ac_cv_prog_CC"; then
3689 ac_ct_CC=$CC
3690 # Extract the first word of "gcc", so it can be a program name with args.
3691 set dummy gcc; ac_word=$2
3692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3693 printf %s "checking for $ac_word... " >&6; }
3694 if test ${ac_cv_prog_ac_ct_CC+y}
3695 then :
3696 printf %s "(cached) " >&6
3697 else case e in #(
3698 e) if test -n "$ac_ct_CC"; then
3699 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3700 else
3701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3702 for as_dir in $PATH
3703 do
3704 IFS=$as_save_IFS
3705 case $as_dir in #(((
3706 '') as_dir=./ ;;
3707 */) ;;
3708 *) as_dir=$as_dir/ ;;
3709 esac
3710 for ac_exec_ext in '' $ac_executable_extensions; do
3711 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3712 ac_cv_prog_ac_ct_CC="gcc"
3713 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3714 break 2
3715 fi
3716 done
3717 done
3718 IFS=$as_save_IFS
3719
3720 fi ;;
3721 esac
3722 fi
3723 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3724 if test -n "$ac_ct_CC"; then
3725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3726 printf "%s\n" "$ac_ct_CC" >&6; }
3727 else
3728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3729 printf "%s\n" "no" >&6; }
3730 fi
3731
3732 if test "x$ac_ct_CC" = x; then
3733 CC=""
3734 else
3735 case $cross_compiling:$ac_tool_warned in
3736 yes:)
3737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3738 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3739 ac_tool_warned=yes ;;
3740 esac
3741 CC=$ac_ct_CC
3742 fi
3743 else
3744 CC="$ac_cv_prog_CC"
3745 fi
3746
3747 if test -z "$CC"; then
3748 if test -n "$ac_tool_prefix"; then
3749 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3750 set dummy ${ac_tool_prefix}cc; ac_word=$2
3751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3752 printf %s "checking for $ac_word... " >&6; }
3753 if test ${ac_cv_prog_CC+y}
3754 then :
3755 printf %s "(cached) " >&6
3756 else case e in #(
3757 e) if test -n "$CC"; then
3758 ac_cv_prog_CC="$CC" # Let the user override the test.
3759 else
3760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3761 for as_dir in $PATH
3762 do
3763 IFS=$as_save_IFS
3764 case $as_dir in #(((
3765 '') as_dir=./ ;;
3766 */) ;;
3767 *) as_dir=$as_dir/ ;;
3768 esac
3769 for ac_exec_ext in '' $ac_executable_extensions; do
3770 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3771 ac_cv_prog_CC="${ac_tool_prefix}cc"
3772 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3773 break 2
3774 fi
3775 done
3776 done
3777 IFS=$as_save_IFS
3778
3779 fi ;;
3780 esac
3781 fi
3782 CC=$ac_cv_prog_CC
3783 if test -n "$CC"; then
3784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3785 printf "%s\n" "$CC" >&6; }
3786 else
3787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3788 printf "%s\n" "no" >&6; }
3789 fi
3790
3791
3792 fi
3793 fi
3794 if test -z "$CC"; then
3795 # Extract the first word of "cc", so it can be a program name with args.
3796 set dummy cc; ac_word=$2
3797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3798 printf %s "checking for $ac_word... " >&6; }
3799 if test ${ac_cv_prog_CC+y}
3800 then :
3801 printf %s "(cached) " >&6
3802 else case e in #(
3803 e) if test -n "$CC"; then
3804 ac_cv_prog_CC="$CC" # Let the user override the test.
3805 else
3806 ac_prog_rejected=no
3807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3808 for as_dir in $PATH
3809 do
3810 IFS=$as_save_IFS
3811 case $as_dir in #(((
3812 '') as_dir=./ ;;
3813 */) ;;
3814 *) as_dir=$as_dir/ ;;
3815 esac
3816 for ac_exec_ext in '' $ac_executable_extensions; do
3817 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3818 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3819 ac_prog_rejected=yes
3820 continue
3821 fi
3822 ac_cv_prog_CC="cc"
3823 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3824 break 2
3825 fi
3826 done
3827 done
3828 IFS=$as_save_IFS
3829
3830 if test $ac_prog_rejected = yes; then
3831 # We found a bogon in the path, so make sure we never use it.
3832 set dummy $ac_cv_prog_CC
3833 shift
3834 if test $# != 0; then
3835 # We chose a different compiler from the bogus one.
3836 # However, it has the same basename, so the bogon will be chosen
3837 # first if we set CC to just the basename; use the full file name.
3838 shift
3839 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3840 fi
3841 fi
3842 fi ;;
3843 esac
3844 fi
3845 CC=$ac_cv_prog_CC
3846 if test -n "$CC"; then
3847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3848 printf "%s\n" "$CC" >&6; }
3849 else
3850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3851 printf "%s\n" "no" >&6; }
3852 fi
3853
3854
3855 fi
3856 if test -z "$CC"; then
3857 if test -n "$ac_tool_prefix"; then
3858 for ac_prog in cl.exe
3859 do
3860 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3861 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3863 printf %s "checking for $ac_word... " >&6; }
3864 if test ${ac_cv_prog_CC+y}
3865 then :
3866 printf %s "(cached) " >&6
3867 else case e in #(
3868 e) if test -n "$CC"; then
3869 ac_cv_prog_CC="$CC" # Let the user override the test.
3870 else
3871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3872 for as_dir in $PATH
3873 do
3874 IFS=$as_save_IFS
3875 case $as_dir in #(((
3876 '') as_dir=./ ;;
3877 */) ;;
3878 *) as_dir=$as_dir/ ;;
3879 esac
3880 for ac_exec_ext in '' $ac_executable_extensions; do
3881 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3882 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3883 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3884 break 2
3885 fi
3886 done
3887 done
3888 IFS=$as_save_IFS
3889
3890 fi ;;
3891 esac
3892 fi
3893 CC=$ac_cv_prog_CC
3894 if test -n "$CC"; then
3895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3896 printf "%s\n" "$CC" >&6; }
3897 else
3898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3899 printf "%s\n" "no" >&6; }
3900 fi
3901
3902
3903 test -n "$CC" && break
3904 done
3905 fi
3906 if test -z "$CC"; then
3907 ac_ct_CC=$CC
3908 for ac_prog in cl.exe
3909 do
3910 # Extract the first word of "$ac_prog", so it can be a program name with args.
3911 set dummy $ac_prog; ac_word=$2
3912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3913 printf %s "checking for $ac_word... " >&6; }
3914 if test ${ac_cv_prog_ac_ct_CC+y}
3915 then :
3916 printf %s "(cached) " >&6
3917 else case e in #(
3918 e) if test -n "$ac_ct_CC"; then
3919 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3920 else
3921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3922 for as_dir in $PATH
3923 do
3924 IFS=$as_save_IFS
3925 case $as_dir in #(((
3926 '') as_dir=./ ;;
3927 */) ;;
3928 *) as_dir=$as_dir/ ;;
3929 esac
3930 for ac_exec_ext in '' $ac_executable_extensions; do
3931 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3932 ac_cv_prog_ac_ct_CC="$ac_prog"
3933 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3934 break 2
3935 fi
3936 done
3937 done
3938 IFS=$as_save_IFS
3939
3940 fi ;;
3941 esac
3942 fi
3943 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3944 if test -n "$ac_ct_CC"; then
3945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3946 printf "%s\n" "$ac_ct_CC" >&6; }
3947 else
3948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3949 printf "%s\n" "no" >&6; }
3950 fi
3951
3952
3953 test -n "$ac_ct_CC" && break
3954 done
3955
3956 if test "x$ac_ct_CC" = x; then
3957 CC=""
3958 else
3959 case $cross_compiling:$ac_tool_warned in
3960 yes:)
3961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3962 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3963 ac_tool_warned=yes ;;
3964 esac
3965 CC=$ac_ct_CC
3966 fi
3967 fi
3968
3969 fi
3970 if test -z "$CC"; then
3971 if test -n "$ac_tool_prefix"; then
3972 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3973 set dummy ${ac_tool_prefix}clang; ac_word=$2
3974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3975 printf %s "checking for $ac_word... " >&6; }
3976 if test ${ac_cv_prog_CC+y}
3977 then :
3978 printf %s "(cached) " >&6
3979 else case e in #(
3980 e) if test -n "$CC"; then
3981 ac_cv_prog_CC="$CC" # Let the user override the test.
3982 else
3983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3984 for as_dir in $PATH
3985 do
3986 IFS=$as_save_IFS
3987 case $as_dir in #(((
3988 '') as_dir=./ ;;
3989 */) ;;
3990 *) as_dir=$as_dir/ ;;
3991 esac
3992 for ac_exec_ext in '' $ac_executable_extensions; do
3993 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3994 ac_cv_prog_CC="${ac_tool_prefix}clang"
3995 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3996 break 2
3997 fi
3998 done
3999 done
4000 IFS=$as_save_IFS
4001
4002 fi ;;
4003 esac
4004 fi
4005 CC=$ac_cv_prog_CC
4006 if test -n "$CC"; then
4007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4008 printf "%s\n" "$CC" >&6; }
4009 else
4010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4011 printf "%s\n" "no" >&6; }
4012 fi
4013
4014
4015 fi
4016 if test -z "$ac_cv_prog_CC"; then
4017 ac_ct_CC=$CC
4018 # Extract the first word of "clang", so it can be a program name with args.
4019 set dummy clang; ac_word=$2
4020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4021 printf %s "checking for $ac_word... " >&6; }
4022 if test ${ac_cv_prog_ac_ct_CC+y}
4023 then :
4024 printf %s "(cached) " >&6
4025 else case e in #(
4026 e) if test -n "$ac_ct_CC"; then
4027 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4028 else
4029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4030 for as_dir in $PATH
4031 do
4032 IFS=$as_save_IFS
4033 case $as_dir in #(((
4034 '') as_dir=./ ;;
4035 */) ;;
4036 *) as_dir=$as_dir/ ;;
4037 esac
4038 for ac_exec_ext in '' $ac_executable_extensions; do
4039 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4040 ac_cv_prog_ac_ct_CC="clang"
4041 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4042 break 2
4043 fi
4044 done
4045 done
4046 IFS=$as_save_IFS
4047
4048 fi ;;
4049 esac
4050 fi
4051 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4052 if test -n "$ac_ct_CC"; then
4053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4054 printf "%s\n" "$ac_ct_CC" >&6; }
4055 else
4056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4057 printf "%s\n" "no" >&6; }
4058 fi
4059
4060 if test "x$ac_ct_CC" = x; then
4061 CC=""
4062 else
4063 case $cross_compiling:$ac_tool_warned in
4064 yes:)
4065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4066 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4067 ac_tool_warned=yes ;;
4068 esac
4069 CC=$ac_ct_CC
4070 fi
4071 else
4072 CC="$ac_cv_prog_CC"
4073 fi
4074
4075 fi
4076
4077
4078 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4079 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4080 as_fn_error $? "no acceptable C compiler found in \$PATH
4081 See 'config.log' for more details" "$LINENO" 5; }
4082
4083 # Provide some information about the compiler.
4084 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4085 set X $ac_compile
4086 ac_compiler=$2
4087 for ac_option in --version -v -V -qversion -version; do
4088 { { ac_try="$ac_compiler $ac_option >&5"
4089 case "(($ac_try" in
4090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4091 *) ac_try_echo=$ac_try;;
4092 esac
4093 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4094 printf "%s\n" "$ac_try_echo"; } >&5
4095 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4096 ac_status=$?
4097 if test -s conftest.err; then
4098 sed '10a\
4099 ... rest of stderr output deleted ...
4100 10q' conftest.err >conftest.er1
4101 cat conftest.er1 >&5
4102 fi
4103 rm -f conftest.er1 conftest.err
4104 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4105 test $ac_status = 0; }
4106 done
4107
4108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4109 /* end confdefs.h. */
4110
4111 int
4112 main (void)
4113 {
4114
4115 ;
4116 return 0;
4117 }
4118 _ACEOF
4119 ac_clean_files_save=$ac_clean_files
4120 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4121 # Try to create an executable without -o first, disregard a.out.
4122 # It will help us diagnose broken compilers, and finding out an intuition
4123 # of exeext.
4124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4125 printf %s "checking whether the C compiler works... " >&6; }
4126 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4127
4128 # The possible output files:
4129 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4130
4131 ac_rmfiles=
4132 for ac_file in $ac_files
4133 do
4134 case $ac_file in
4135 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4136 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4137 esac
4138 done
4139 rm -f $ac_rmfiles
4140
4141 if { { ac_try="$ac_link_default"
4142 case "(($ac_try" in
4143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4144 *) ac_try_echo=$ac_try;;
4145 esac
4146 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4147 printf "%s\n" "$ac_try_echo"; } >&5
4148 (eval "$ac_link_default") 2>&5
4149 ac_status=$?
4150 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4151 test $ac_status = 0; }
4152 then :
4153 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
4154 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
4155 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4156 # so that the user can short-circuit this test for compilers unknown to
4157 # Autoconf.
4158 for ac_file in $ac_files ''
4159 do
4160 test -f "$ac_file" || continue
4161 case $ac_file in
4162 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4163 ;;
4164 [ab].out )
4165 # We found the default executable, but exeext='' is most
4166 # certainly right.
4167 break;;
4168 *.* )
4169 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4170 then :; else
4171 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4172 fi
4173 # We set ac_cv_exeext here because the later test for it is not
4174 # safe: cross compilers may not add the suffix if given an '-o'
4175 # argument, so we may need to know it at that point already.
4176 # Even if this section looks crufty: it has the advantage of
4177 # actually working.
4178 break;;
4179 * )
4180 break;;
4181 esac
4182 done
4183 test "$ac_cv_exeext" = no && ac_cv_exeext=
4184
4185 else case e in #(
4186 e) ac_file='' ;;
4187 esac
4188 fi
4189 if test -z "$ac_file"
4190 then :
4191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4192 printf "%s\n" "no" >&6; }
4193 printf "%s\n" "$as_me: failed program was:" >&5
4194 sed 's/^/| /' conftest.$ac_ext >&5
4195
4196 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4197 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4198 as_fn_error 77 "C compiler cannot create executables
4199 See 'config.log' for more details" "$LINENO" 5; }
4200 else case e in #(
4201 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4202 printf "%s\n" "yes" >&6; } ;;
4203 esac
4204 fi
4205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4206 printf %s "checking for C compiler default output file name... " >&6; }
4207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4208 printf "%s\n" "$ac_file" >&6; }
4209 ac_exeext=$ac_cv_exeext
4210
4211 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4212 ac_clean_files=$ac_clean_files_save
4213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4214 printf %s "checking for suffix of executables... " >&6; }
4215 if { { ac_try="$ac_link"
4216 case "(($ac_try" in
4217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4218 *) ac_try_echo=$ac_try;;
4219 esac
4220 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4221 printf "%s\n" "$ac_try_echo"; } >&5
4222 (eval "$ac_link") 2>&5
4223 ac_status=$?
4224 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4225 test $ac_status = 0; }
4226 then :
4227 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
4228 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
4229 # work properly (i.e., refer to 'conftest.exe'), while it won't with
4230 # 'rm'.
4231 for ac_file in conftest.exe conftest conftest.*; do
4232 test -f "$ac_file" || continue
4233 case $ac_file in
4234 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4235 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4236 break;;
4237 * ) break;;
4238 esac
4239 done
4240 else case e in #(
4241 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4242 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4243 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4244 See 'config.log' for more details" "$LINENO" 5; } ;;
4245 esac
4246 fi
4247 rm -f conftest conftest$ac_cv_exeext
4248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4249 printf "%s\n" "$ac_cv_exeext" >&6; }
4250
4251 rm -f conftest.$ac_ext
4252 EXEEXT=$ac_cv_exeext
4253 ac_exeext=$EXEEXT
4254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4255 /* end confdefs.h. */
4256 #include <stdio.h>
4257 int
4258 main (void)
4259 {
4260 FILE *f = fopen ("conftest.out", "w");
4261 if (!f)
4262 return 1;
4263 return ferror (f) || fclose (f) != 0;
4264
4265 ;
4266 return 0;
4267 }
4268 _ACEOF
4269 ac_clean_files="$ac_clean_files conftest.out"
4270 # Check that the compiler produces executables we can run. If not, either
4271 # the compiler is broken, or we cross compile.
4272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4273 printf %s "checking whether we are cross compiling... " >&6; }
4274 if test "$cross_compiling" != yes; then
4275 { { ac_try="$ac_link"
4276 case "(($ac_try" in
4277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4278 *) ac_try_echo=$ac_try;;
4279 esac
4280 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4281 printf "%s\n" "$ac_try_echo"; } >&5
4282 (eval "$ac_link") 2>&5
4283 ac_status=$?
4284 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4285 test $ac_status = 0; }
4286 if { ac_try='./conftest$ac_cv_exeext'
4287 { { case "(($ac_try" in
4288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4289 *) ac_try_echo=$ac_try;;
4290 esac
4291 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4292 printf "%s\n" "$ac_try_echo"; } >&5
4293 (eval "$ac_try") 2>&5
4294 ac_status=$?
4295 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4296 test $ac_status = 0; }; }; then
4297 cross_compiling=no
4298 else
4299 if test "$cross_compiling" = maybe; then
4300 cross_compiling=yes
4301 else
4302 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4303 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4304 as_fn_error 77 "cannot run C compiled programs.
4305 If you meant to cross compile, use '--host'.
4306 See 'config.log' for more details" "$LINENO" 5; }
4307 fi
4308 fi
4309 fi
4310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4311 printf "%s\n" "$cross_compiling" >&6; }
4312
4313 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4314 conftest.o conftest.obj conftest.out
4315 ac_clean_files=$ac_clean_files_save
4316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4317 printf %s "checking for suffix of object files... " >&6; }
4318 if test ${ac_cv_objext+y}
4319 then :
4320 printf %s "(cached) " >&6
4321 else case e in #(
4322 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4323 /* end confdefs.h. */
4324
4325 int
4326 main (void)
4327 {
4328
4329 ;
4330 return 0;
4331 }
4332 _ACEOF
4333 rm -f conftest.o conftest.obj
4334 if { { ac_try="$ac_compile"
4335 case "(($ac_try" in
4336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4337 *) ac_try_echo=$ac_try;;
4338 esac
4339 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4340 printf "%s\n" "$ac_try_echo"; } >&5
4341 (eval "$ac_compile") 2>&5
4342 ac_status=$?
4343 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4344 test $ac_status = 0; }
4345 then :
4346 for ac_file in conftest.o conftest.obj conftest.*; do
4347 test -f "$ac_file" || continue;
4348 case $ac_file in
4349 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4350 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4351 break;;
4352 esac
4353 done
4354 else case e in #(
4355 e) printf "%s\n" "$as_me: failed program was:" >&5
4356 sed 's/^/| /' conftest.$ac_ext >&5
4357
4358 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4359 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4360 as_fn_error $? "cannot compute suffix of object files: cannot compile
4361 See 'config.log' for more details" "$LINENO" 5; } ;;
4362 esac
4363 fi
4364 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4365 esac
4366 fi
4367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4368 printf "%s\n" "$ac_cv_objext" >&6; }
4369 OBJEXT=$ac_cv_objext
4370 ac_objext=$OBJEXT
4371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4372 printf %s "checking whether the compiler supports GNU C... " >&6; }
4373 if test ${ac_cv_c_compiler_gnu+y}
4374 then :
4375 printf %s "(cached) " >&6
4376 else case e in #(
4377 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4378 /* end confdefs.h. */
4379
4380 int
4381 main (void)
4382 {
4383 #ifndef __GNUC__
4384 choke me
4385 #endif
4386
4387 ;
4388 return 0;
4389 }
4390 _ACEOF
4391 if ac_fn_c_try_compile "$LINENO"
4392 then :
4393 ac_compiler_gnu=yes
4394 else case e in #(
4395 e) ac_compiler_gnu=no ;;
4396 esac
4397 fi
4398 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4399 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4400 ;;
4401 esac
4402 fi
4403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4404 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4406
4407 if test $ac_compiler_gnu = yes; then
4408 GCC=yes
4409 else
4410 GCC=
4411 fi
4412 ac_test_CFLAGS=${CFLAGS+y}
4413 ac_save_CFLAGS=$CFLAGS
4414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4415 printf %s "checking whether $CC accepts -g... " >&6; }
4416 if test ${ac_cv_prog_cc_g+y}
4417 then :
4418 printf %s "(cached) " >&6
4419 else case e in #(
4420 e) ac_save_c_werror_flag=$ac_c_werror_flag
4421 ac_c_werror_flag=yes
4422 ac_cv_prog_cc_g=no
4423 CFLAGS="-g"
4424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4425 /* end confdefs.h. */
4426
4427 int
4428 main (void)
4429 {
4430
4431 ;
4432 return 0;
4433 }
4434 _ACEOF
4435 if ac_fn_c_try_compile "$LINENO"
4436 then :
4437 ac_cv_prog_cc_g=yes
4438 else case e in #(
4439 e) CFLAGS=""
4440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4441 /* end confdefs.h. */
4442
4443 int
4444 main (void)
4445 {
4446
4447 ;
4448 return 0;
4449 }
4450 _ACEOF
4451 if ac_fn_c_try_compile "$LINENO"
4452 then :
4453
4454 else case e in #(
4455 e) ac_c_werror_flag=$ac_save_c_werror_flag
4456 CFLAGS="-g"
4457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4458 /* end confdefs.h. */
4459
4460 int
4461 main (void)
4462 {
4463
4464 ;
4465 return 0;
4466 }
4467 _ACEOF
4468 if ac_fn_c_try_compile "$LINENO"
4469 then :
4470 ac_cv_prog_cc_g=yes
4471 fi
4472 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4473 esac
4474 fi
4475 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4476 esac
4477 fi
4478 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4479 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4480 esac
4481 fi
4482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4483 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4484 if test $ac_test_CFLAGS; then
4485 CFLAGS=$ac_save_CFLAGS
4486 elif test $ac_cv_prog_cc_g = yes; then
4487 if test "$GCC" = yes; then
4488 CFLAGS="-g -O2"
4489 else
4490 CFLAGS="-g"
4491 fi
4492 else
4493 if test "$GCC" = yes; then
4494 CFLAGS="-O2"
4495 else
4496 CFLAGS=
4497 fi
4498 fi
4499 ac_prog_cc_stdc=no
4500 if test x$ac_prog_cc_stdc = xno
4501 then :
4502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4503 printf %s "checking for $CC option to enable C11 features... " >&6; }
4504 if test ${ac_cv_prog_cc_c11+y}
4505 then :
4506 printf %s "(cached) " >&6
4507 else case e in #(
4508 e) ac_cv_prog_cc_c11=no
4509 ac_save_CC=$CC
4510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4511 /* end confdefs.h. */
4512 $ac_c_conftest_c11_program
4513 _ACEOF
4514 for ac_arg in '' -std=gnu11
4515 do
4516 CC="$ac_save_CC $ac_arg"
4517 if ac_fn_c_try_compile "$LINENO"
4518 then :
4519 ac_cv_prog_cc_c11=$ac_arg
4520 fi
4521 rm -f core conftest.err conftest.$ac_objext conftest.beam
4522 test "x$ac_cv_prog_cc_c11" != "xno" && break
4523 done
4524 rm -f conftest.$ac_ext
4525 CC=$ac_save_CC ;;
4526 esac
4527 fi
4528
4529 if test "x$ac_cv_prog_cc_c11" = xno
4530 then :
4531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4532 printf "%s\n" "unsupported" >&6; }
4533 else case e in #(
4534 e) if test "x$ac_cv_prog_cc_c11" = x
4535 then :
4536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4537 printf "%s\n" "none needed" >&6; }
4538 else case e in #(
4539 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4540 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4541 CC="$CC $ac_cv_prog_cc_c11" ;;
4542 esac
4543 fi
4544 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4545 ac_prog_cc_stdc=c11 ;;
4546 esac
4547 fi
4548 fi
4549 if test x$ac_prog_cc_stdc = xno
4550 then :
4551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4552 printf %s "checking for $CC option to enable C99 features... " >&6; }
4553 if test ${ac_cv_prog_cc_c99+y}
4554 then :
4555 printf %s "(cached) " >&6
4556 else case e in #(
4557 e) ac_cv_prog_cc_c99=no
4558 ac_save_CC=$CC
4559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4560 /* end confdefs.h. */
4561 $ac_c_conftest_c99_program
4562 _ACEOF
4563 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4564 do
4565 CC="$ac_save_CC $ac_arg"
4566 if ac_fn_c_try_compile "$LINENO"
4567 then :
4568 ac_cv_prog_cc_c99=$ac_arg
4569 fi
4570 rm -f core conftest.err conftest.$ac_objext conftest.beam
4571 test "x$ac_cv_prog_cc_c99" != "xno" && break
4572 done
4573 rm -f conftest.$ac_ext
4574 CC=$ac_save_CC ;;
4575 esac
4576 fi
4577
4578 if test "x$ac_cv_prog_cc_c99" = xno
4579 then :
4580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4581 printf "%s\n" "unsupported" >&6; }
4582 else case e in #(
4583 e) if test "x$ac_cv_prog_cc_c99" = x
4584 then :
4585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4586 printf "%s\n" "none needed" >&6; }
4587 else case e in #(
4588 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4589 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4590 CC="$CC $ac_cv_prog_cc_c99" ;;
4591 esac
4592 fi
4593 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4594 ac_prog_cc_stdc=c99 ;;
4595 esac
4596 fi
4597 fi
4598 if test x$ac_prog_cc_stdc = xno
4599 then :
4600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4601 printf %s "checking for $CC option to enable C89 features... " >&6; }
4602 if test ${ac_cv_prog_cc_c89+y}
4603 then :
4604 printf %s "(cached) " >&6
4605 else case e in #(
4606 e) ac_cv_prog_cc_c89=no
4607 ac_save_CC=$CC
4608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4609 /* end confdefs.h. */
4610 $ac_c_conftest_c89_program
4611 _ACEOF
4612 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4613 do
4614 CC="$ac_save_CC $ac_arg"
4615 if ac_fn_c_try_compile "$LINENO"
4616 then :
4617 ac_cv_prog_cc_c89=$ac_arg
4618 fi
4619 rm -f core conftest.err conftest.$ac_objext conftest.beam
4620 test "x$ac_cv_prog_cc_c89" != "xno" && break
4621 done
4622 rm -f conftest.$ac_ext
4623 CC=$ac_save_CC ;;
4624 esac
4625 fi
4626
4627 if test "x$ac_cv_prog_cc_c89" = xno
4628 then :
4629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4630 printf "%s\n" "unsupported" >&6; }
4631 else case e in #(
4632 e) if test "x$ac_cv_prog_cc_c89" = x
4633 then :
4634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4635 printf "%s\n" "none needed" >&6; }
4636 else case e in #(
4637 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4638 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4639 CC="$CC $ac_cv_prog_cc_c89" ;;
4640 esac
4641 fi
4642 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4643 ac_prog_cc_stdc=c89 ;;
4644 esac
4645 fi
4646 fi
4647
4648 ac_ext=c
4649 ac_cpp='$CPP $CPPFLAGS'
4650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4653
4654
4655 ac_ext=c
4656 ac_cpp='$CPP $CPPFLAGS'
4657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4661 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4662 if test ${am_cv_prog_cc_c_o+y}
4663 then :
4664 printf %s "(cached) " >&6
4665 else case e in #(
4666 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4667 /* end confdefs.h. */
4668
4669 int
4670 main (void)
4671 {
4672
4673 ;
4674 return 0;
4675 }
4676 _ACEOF
4677 # Make sure it works both with $CC and with simple cc.
4678 # Following AC_PROG_CC_C_O, we do the test twice because some
4679 # compilers refuse to overwrite an existing .o file with -o,
4680 # though they will create one.
4681 am_cv_prog_cc_c_o=yes
4682 for am_i in 1 2; do
4683 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4684 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4685 ac_status=$?
4686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4687 (exit $ac_status); } \
4688 && test -f conftest2.$ac_objext; then
4689 : OK
4690 else
4691 am_cv_prog_cc_c_o=no
4692 break
4693 fi
4694 done
4695 # aligned with autoconf, so not including core; see bug#72225.
4696 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \
4697 conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \
4698 conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM
4699 unset am_i ;;
4700 esac
4701 fi
4702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4703 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4704 if test "$am_cv_prog_cc_c_o" != yes; then
4705 # Losing compiler, so override with the script.
4706 # FIXME: It is wrong to rewrite CC.
4707 # But if we don't then we get into trouble of one sort or another.
4708 # A longer-term fix would be to have automake use am__CC in this case,
4709 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4710 CC="$am_aux_dir/compile $CC"
4711 fi
4712 ac_ext=c
4713 ac_cpp='$CPP $CPPFLAGS'
4714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4717
4718
4719 depcc="$CC" am_compiler_list=
4720
4721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4722 printf %s "checking dependency style of $depcc... " >&6; }
4723 if test ${am_cv_CC_dependencies_compiler_type+y}
4724 then :
4725 printf %s "(cached) " >&6
4726 else case e in #(
4727 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4728 # We make a subdir and do the tests there. Otherwise we can end up
4729 # making bogus files that we don't know about and never remove. For
4730 # instance it was reported that on HP-UX the gcc test will end up
4731 # making a dummy file named 'D' -- because '-MD' means "put the output
4732 # in D".
4733 rm -rf conftest.dir
4734 mkdir conftest.dir
4735 # Copy depcomp to subdir because otherwise we won't find it if we're
4736 # using a relative directory.
4737 cp "$am_depcomp" conftest.dir
4738 cd conftest.dir
4739 # We will build objects and dependencies in a subdirectory because
4740 # it helps to detect inapplicable dependency modes. For instance
4741 # both Tru64's cc and ICC support -MD to output dependencies as a
4742 # side effect of compilation, but ICC will put the dependencies in
4743 # the current directory while Tru64 will put them in the object
4744 # directory.
4745 mkdir sub
4746
4747 am_cv_CC_dependencies_compiler_type=none
4748 if test "$am_compiler_list" = ""; then
4749 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4750 fi
4751 am__universal=false
4752 case " $depcc " in #(
4753 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4754 esac
4755
4756 for depmode in $am_compiler_list; do
4757 # Setup a source with many dependencies, because some compilers
4758 # like to wrap large dependency lists on column 80 (with \), and
4759 # we should not choose a depcomp mode which is confused by this.
4760 #
4761 # We need to recreate these files for each test, as the compiler may
4762 # overwrite some of them when testing with obscure command lines.
4763 # This happens at least with the AIX C compiler.
4764 : > sub/conftest.c
4765 for i in 1 2 3 4 5 6; do
4766 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4767 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4768 # Solaris 10 /bin/sh.
4769 echo '/* dummy */' > sub/conftst$i.h
4770 done
4771 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4772
4773 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4774 # mode. It turns out that the SunPro C++ compiler does not properly
4775 # handle '-M -o', and we need to detect this. Also, some Intel
4776 # versions had trouble with output in subdirs.
4777 am__obj=sub/conftest.${OBJEXT-o}
4778 am__minus_obj="-o $am__obj"
4779 case $depmode in
4780 gcc)
4781 # This depmode causes a compiler race in universal mode.
4782 test "$am__universal" = false || continue
4783 ;;
4784 nosideeffect)
4785 # After this tag, mechanisms are not by side-effect, so they'll
4786 # only be used when explicitly requested.
4787 if test "x$enable_dependency_tracking" = xyes; then
4788 continue
4789 else
4790 break
4791 fi
4792 ;;
4793 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4794 # This compiler won't grok '-c -o', but also, the minuso test has
4795 # not run yet. These depmodes are late enough in the game, and
4796 # so weak that their functioning should not be impacted.
4797 am__obj=conftest.${OBJEXT-o}
4798 am__minus_obj=
4799 ;;
4800 none) break ;;
4801 esac
4802 if depmode=$depmode \
4803 source=sub/conftest.c object=$am__obj \
4804 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4805 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4806 >/dev/null 2>conftest.err &&
4807 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4808 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4809 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4810 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4811 # icc doesn't choke on unknown options, it will just issue warnings
4812 # or remarks (even with -Werror). So we grep stderr for any message
4813 # that says an option was ignored or not supported.
4814 # When given -MP, icc 7.0 and 7.1 complain thus:
4815 # icc: Command line warning: ignoring option '-M'; no argument required
4816 # The diagnosis changed in icc 8.0:
4817 # icc: Command line remark: option '-MP' not supported
4818 if (grep 'ignoring option' conftest.err ||
4819 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4820 am_cv_CC_dependencies_compiler_type=$depmode
4821 break
4822 fi
4823 fi
4824 done
4825
4826 cd ..
4827 rm -rf conftest.dir
4828 else
4829 am_cv_CC_dependencies_compiler_type=none
4830 fi
4831 ;;
4832 esac
4833 fi
4834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4835 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4836 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4837
4838 if
4839 test "x$enable_dependency_tracking" != xno \
4840 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4841 am__fastdepCC_TRUE=
4842 am__fastdepCC_FALSE='#'
4843 else
4844 am__fastdepCC_TRUE='#'
4845 am__fastdepCC_FALSE=
4846 fi
4847
4848
4849
4850 ac_header= ac_cache=
4851 for ac_item in $ac_header_c_list
4852 do
4853 if test $ac_cache; then
4854 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4855 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4856 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4857 fi
4858 ac_header= ac_cache=
4859 elif test $ac_header; then
4860 ac_cache=$ac_item
4861 else
4862 ac_header=$ac_item
4863 fi
4864 done
4865
4866
4867
4868
4869
4870
4871
4872
4873 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4874 then :
4875
4876 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4877
4878 fi
4879
4880
4881
4882
4883
4884
4885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4886 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4887 if test ${ac_cv_safe_to_define___extensions__+y}
4888 then :
4889 printf %s "(cached) " >&6
4890 else case e in #(
4891 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4892 /* end confdefs.h. */
4893
4894 # define __EXTENSIONS__ 1
4895 $ac_includes_default
4896 int
4897 main (void)
4898 {
4899
4900 ;
4901 return 0;
4902 }
4903 _ACEOF
4904 if ac_fn_c_try_compile "$LINENO"
4905 then :
4906 ac_cv_safe_to_define___extensions__=yes
4907 else case e in #(
4908 e) ac_cv_safe_to_define___extensions__=no ;;
4909 esac
4910 fi
4911 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4912 esac
4913 fi
4914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4915 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
4916
4917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4918 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4919 if test ${ac_cv_should_define__xopen_source+y}
4920 then :
4921 printf %s "(cached) " >&6
4922 else case e in #(
4923 e) ac_cv_should_define__xopen_source=no
4924 if test $ac_cv_header_wchar_h = yes
4925 then :
4926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4927 /* end confdefs.h. */
4928
4929 #include <wchar.h>
4930 mbstate_t x;
4931 int
4932 main (void)
4933 {
4934
4935 ;
4936 return 0;
4937 }
4938 _ACEOF
4939 if ac_fn_c_try_compile "$LINENO"
4940 then :
4941
4942 else case e in #(
4943 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4944 /* end confdefs.h. */
4945
4946 #define _XOPEN_SOURCE 500
4947 #include <wchar.h>
4948 mbstate_t x;
4949 int
4950 main (void)
4951 {
4952
4953 ;
4954 return 0;
4955 }
4956 _ACEOF
4957 if ac_fn_c_try_compile "$LINENO"
4958 then :
4959 ac_cv_should_define__xopen_source=yes
4960 fi
4961 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4962 esac
4963 fi
4964 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4965 fi ;;
4966 esac
4967 fi
4968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4969 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
4970
4971 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
4972
4973 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4974
4975 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
4976
4977 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
4978
4979 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
4980
4981 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
4982
4983 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4984
4985 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4986
4987 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4988
4989 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4990
4991 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
4992
4993 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4994
4995 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4996
4997 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4998
4999 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
5000
5001 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
5002
5003 if test $ac_cv_header_minix_config_h = yes
5004 then :
5005 MINIX=yes
5006 printf "%s\n" "#define _MINIX 1" >>confdefs.h
5007
5008 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
5009
5010 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
5011
5012 else case e in #(
5013 e) MINIX= ;;
5014 esac
5015 fi
5016 if test $ac_cv_safe_to_define___extensions__ = yes
5017 then :
5018 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
5019
5020 fi
5021 if test $ac_cv_should_define__xopen_source = yes
5022 then :
5023 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
5024
5025 fi
5026
5027 # Check whether --enable-compiler-warnings was given.
5028 if test ${enable_compiler_warnings+y}
5029 then :
5030 enableval=$enable_compiler_warnings;
5031 fi
5032 case $enable_compiler_warnings in #(
5033 no | min | yes | max | all) :
5034 ;; #(
5035 *) :
5036 if test "x$enable_maintainer_mode" = xyes
5037 then :
5038 enable_compiler_warnings=yes
5039 else case e in #(
5040 e) enable_compiler_warnings=min ;;
5041 esac
5042 fi ;;
5043 esac
5044
5045 case `pwd` in
5046 *\ * | *\ *)
5047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5048 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5049 esac
5050
5051
5052
5053 macro_version='2.5.4'
5054 macro_revision='2.5.4'
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069 ltmain=$ac_aux_dir/ltmain.sh
5070
5071
5072
5073 # Make sure we can run config.sub.
5074 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
5075 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
5076
5077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5078 printf %s "checking build system type... " >&6; }
5079 if test ${ac_cv_build+y}
5080 then :
5081 printf %s "(cached) " >&6
5082 else case e in #(
5083 e) ac_build_alias=$build_alias
5084 test "x$ac_build_alias" = x &&
5085 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
5086 test "x$ac_build_alias" = x &&
5087 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5088 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
5089 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
5090 ;;
5091 esac
5092 fi
5093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5094 printf "%s\n" "$ac_cv_build" >&6; }
5095 case $ac_cv_build in
5096 *-*-*) ;;
5097 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5098 esac
5099 build=$ac_cv_build
5100 ac_save_IFS=$IFS; IFS='-'
5101 set x $ac_cv_build
5102 shift
5103 build_cpu=$1
5104 build_vendor=$2
5105 shift; shift
5106 # Remember, the first character of IFS is used to create $*,
5107 # except with old shells:
5108 build_os=$*
5109 IFS=$ac_save_IFS
5110 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5111
5112
5113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5114 printf %s "checking host system type... " >&6; }
5115 if test ${ac_cv_host+y}
5116 then :
5117 printf %s "(cached) " >&6
5118 else case e in #(
5119 e) if test "x$host_alias" = x; then
5120 ac_cv_host=$ac_cv_build
5121 else
5122 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
5123 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
5124 fi
5125 ;;
5126 esac
5127 fi
5128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5129 printf "%s\n" "$ac_cv_host" >&6; }
5130 case $ac_cv_host in
5131 *-*-*) ;;
5132 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5133 esac
5134 host=$ac_cv_host
5135 ac_save_IFS=$IFS; IFS='-'
5136 set x $ac_cv_host
5137 shift
5138 host_cpu=$1
5139 host_vendor=$2
5140 shift; shift
5141 # Remember, the first character of IFS is used to create $*,
5142 # except with old shells:
5143 host_os=$*
5144 IFS=$ac_save_IFS
5145 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5146
5147
5148 # Backslashify metacharacters that are still active within
5149 # double-quoted strings.
5150 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5151
5152 # Same as above, but do not quote variable references.
5153 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5154
5155 # Sed substitution to delay expansion of an escaped shell variable in a
5156 # double_quote_subst'ed string.
5157 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5158
5159 # Sed substitution to delay expansion of an escaped single quote.
5160 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5161
5162 # Sed substitution to avoid accidental globbing in evaled expressions
5163 no_glob_subst='s/\*/\\\*/g'
5164
5165 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5166 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5167 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5168
5169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5170 printf %s "checking how to print strings... " >&6; }
5171 # Test print first, because it will be a builtin if present.
5172 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5173 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5174 ECHO='print -r --'
5175 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5176 ECHO='printf %s\n'
5177 else
5178 # Use this function as a fallback that always works.
5179 func_fallback_echo ()
5180 {
5181 eval 'cat <<_LTECHO_EOF
5182 $1
5183 _LTECHO_EOF'
5184 }
5185 ECHO='func_fallback_echo'
5186 fi
5187
5188 # func_echo_all arg...
5189 # Invoke $ECHO with all args, space-separated.
5190 func_echo_all ()
5191 {
5192 $ECHO ""
5193 }
5194
5195 case $ECHO in
5196 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5197 printf "%s\n" "printf" >&6; } ;;
5198 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5199 printf "%s\n" "print -r" >&6; } ;;
5200 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5201 printf "%s\n" "cat" >&6; } ;;
5202 esac
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5218 printf %s "checking for a sed that does not truncate output... " >&6; }
5219 if test ${ac_cv_path_SED+y}
5220 then :
5221 printf %s "(cached) " >&6
5222 else case e in #(
5223 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5224 for ac_i in 1 2 3 4 5 6 7; do
5225 ac_script="$ac_script$as_nl$ac_script"
5226 done
5227 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5228 { ac_script=; unset ac_script;}
5229 if test -z "$SED"; then
5230 ac_path_SED_found=false
5231 # Loop through the user's path and test for each of PROGNAME-LIST
5232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5233 for as_dir in $PATH
5234 do
5235 IFS=$as_save_IFS
5236 case $as_dir in #(((
5237 '') as_dir=./ ;;
5238 */) ;;
5239 *) as_dir=$as_dir/ ;;
5240 esac
5241 for ac_prog in sed gsed
5242 do
5243 for ac_exec_ext in '' $ac_executable_extensions; do
5244 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5245 as_fn_executable_p "$ac_path_SED" || continue
5246 # Check for GNU ac_path_SED and select it if it is found.
5247 # Check for GNU $ac_path_SED
5248 case `"$ac_path_SED" --version 2>&1` in #(
5249 *GNU*)
5250 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5251 #(
5252 *)
5253 ac_count=0
5254 printf %s 0123456789 >"conftest.in"
5255 while :
5256 do
5257 cat "conftest.in" "conftest.in" >"conftest.tmp"
5258 mv "conftest.tmp" "conftest.in"
5259 cp "conftest.in" "conftest.nl"
5260 printf "%s\n" '' >> "conftest.nl"
5261 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5262 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5263 as_fn_arith $ac_count + 1 && ac_count=$as_val
5264 if test $ac_count -gt ${ac_path_SED_max-0}; then
5265 # Best one so far, save it but keep looking for a better one
5266 ac_cv_path_SED="$ac_path_SED"
5267 ac_path_SED_max=$ac_count
5268 fi
5269 # 10*(2^10) chars as input seems more than enough
5270 test $ac_count -gt 10 && break
5271 done
5272 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5273 esac
5274
5275 $ac_path_SED_found && break 3
5276 done
5277 done
5278 done
5279 IFS=$as_save_IFS
5280 if test -z "$ac_cv_path_SED"; then
5281 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5282 fi
5283 else
5284 ac_cv_path_SED=$SED
5285 fi
5286 ;;
5287 esac
5288 fi
5289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5290 printf "%s\n" "$ac_cv_path_SED" >&6; }
5291 SED="$ac_cv_path_SED"
5292 rm -f conftest.sed
5293
5294 test -z "$SED" && SED=sed
5295 Xsed="$SED -e 1s/^X//"
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5308 printf %s "checking for grep that handles long lines and -e... " >&6; }
5309 if test ${ac_cv_path_GREP+y}
5310 then :
5311 printf %s "(cached) " >&6
5312 else case e in #(
5313 e) if test -z "$GREP"; then
5314 ac_path_GREP_found=false
5315 # Loop through the user's path and test for each of PROGNAME-LIST
5316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5317 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5318 do
5319 IFS=$as_save_IFS
5320 case $as_dir in #(((
5321 '') as_dir=./ ;;
5322 */) ;;
5323 *) as_dir=$as_dir/ ;;
5324 esac
5325 for ac_prog in grep ggrep
5326 do
5327 for ac_exec_ext in '' $ac_executable_extensions; do
5328 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5329 as_fn_executable_p "$ac_path_GREP" || continue
5330 # Check for GNU ac_path_GREP and select it if it is found.
5331 # Check for GNU $ac_path_GREP
5332 case `"$ac_path_GREP" --version 2>&1` in #(
5333 *GNU*)
5334 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5335 #(
5336 *)
5337 ac_count=0
5338 printf %s 0123456789 >"conftest.in"
5339 while :
5340 do
5341 cat "conftest.in" "conftest.in" >"conftest.tmp"
5342 mv "conftest.tmp" "conftest.in"
5343 cp "conftest.in" "conftest.nl"
5344 printf "%s\n" 'GREP' >> "conftest.nl"
5345 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5346 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5347 as_fn_arith $ac_count + 1 && ac_count=$as_val
5348 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5349 # Best one so far, save it but keep looking for a better one
5350 ac_cv_path_GREP="$ac_path_GREP"
5351 ac_path_GREP_max=$ac_count
5352 fi
5353 # 10*(2^10) chars as input seems more than enough
5354 test $ac_count -gt 10 && break
5355 done
5356 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5357 esac
5358
5359 $ac_path_GREP_found && break 3
5360 done
5361 done
5362 done
5363 IFS=$as_save_IFS
5364 if test -z "$ac_cv_path_GREP"; then
5365 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5366 fi
5367 else
5368 ac_cv_path_GREP=$GREP
5369 fi
5370 ;;
5371 esac
5372 fi
5373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5374 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5375 GREP="$ac_cv_path_GREP"
5376
5377
5378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5379 printf %s "checking for egrep... " >&6; }
5380 if test ${ac_cv_path_EGREP+y}
5381 then :
5382 printf %s "(cached) " >&6
5383 else case e in #(
5384 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5385 then ac_cv_path_EGREP="$GREP -E"
5386 else
5387 if test -z "$EGREP"; then
5388 ac_path_EGREP_found=false
5389 # Loop through the user's path and test for each of PROGNAME-LIST
5390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5391 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5392 do
5393 IFS=$as_save_IFS
5394 case $as_dir in #(((
5395 '') as_dir=./ ;;
5396 */) ;;
5397 *) as_dir=$as_dir/ ;;
5398 esac
5399 for ac_prog in egrep
5400 do
5401 for ac_exec_ext in '' $ac_executable_extensions; do
5402 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5403 as_fn_executable_p "$ac_path_EGREP" || continue
5404 # Check for GNU ac_path_EGREP and select it if it is found.
5405 # Check for GNU $ac_path_EGREP
5406 case `"$ac_path_EGREP" --version 2>&1` in #(
5407 *GNU*)
5408 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5409 #(
5410 *)
5411 ac_count=0
5412 printf %s 0123456789 >"conftest.in"
5413 while :
5414 do
5415 cat "conftest.in" "conftest.in" >"conftest.tmp"
5416 mv "conftest.tmp" "conftest.in"
5417 cp "conftest.in" "conftest.nl"
5418 printf "%s\n" 'EGREP' >> "conftest.nl"
5419 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5420 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5421 as_fn_arith $ac_count + 1 && ac_count=$as_val
5422 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5423 # Best one so far, save it but keep looking for a better one
5424 ac_cv_path_EGREP="$ac_path_EGREP"
5425 ac_path_EGREP_max=$ac_count
5426 fi
5427 # 10*(2^10) chars as input seems more than enough
5428 test $ac_count -gt 10 && break
5429 done
5430 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5431 esac
5432
5433 $ac_path_EGREP_found && break 3
5434 done
5435 done
5436 done
5437 IFS=$as_save_IFS
5438 if test -z "$ac_cv_path_EGREP"; then
5439 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5440 fi
5441 else
5442 ac_cv_path_EGREP=$EGREP
5443 fi
5444
5445 fi ;;
5446 esac
5447 fi
5448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5449 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5450 EGREP="$ac_cv_path_EGREP"
5451
5452 EGREP_TRADITIONAL=$EGREP
5453 ac_cv_path_EGREP_TRADITIONAL=$EGREP
5454
5455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5456 printf %s "checking for fgrep... " >&6; }
5457 if test ${ac_cv_path_FGREP+y}
5458 then :
5459 printf %s "(cached) " >&6
5460 else case e in #(
5461 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5462 then ac_cv_path_FGREP="$GREP -F"
5463 else
5464 if test -z "$FGREP"; then
5465 ac_path_FGREP_found=false
5466 # Loop through the user's path and test for each of PROGNAME-LIST
5467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5468 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5469 do
5470 IFS=$as_save_IFS
5471 case $as_dir in #(((
5472 '') as_dir=./ ;;
5473 */) ;;
5474 *) as_dir=$as_dir/ ;;
5475 esac
5476 for ac_prog in fgrep
5477 do
5478 for ac_exec_ext in '' $ac_executable_extensions; do
5479 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5480 as_fn_executable_p "$ac_path_FGREP" || continue
5481 # Check for GNU ac_path_FGREP and select it if it is found.
5482 # Check for GNU $ac_path_FGREP
5483 case `"$ac_path_FGREP" --version 2>&1` in #(
5484 *GNU*)
5485 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5486 #(
5487 *)
5488 ac_count=0
5489 printf %s 0123456789 >"conftest.in"
5490 while :
5491 do
5492 cat "conftest.in" "conftest.in" >"conftest.tmp"
5493 mv "conftest.tmp" "conftest.in"
5494 cp "conftest.in" "conftest.nl"
5495 printf "%s\n" 'FGREP' >> "conftest.nl"
5496 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5497 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5498 as_fn_arith $ac_count + 1 && ac_count=$as_val
5499 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5500 # Best one so far, save it but keep looking for a better one
5501 ac_cv_path_FGREP="$ac_path_FGREP"
5502 ac_path_FGREP_max=$ac_count
5503 fi
5504 # 10*(2^10) chars as input seems more than enough
5505 test $ac_count -gt 10 && break
5506 done
5507 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5508 esac
5509
5510 $ac_path_FGREP_found && break 3
5511 done
5512 done
5513 done
5514 IFS=$as_save_IFS
5515 if test -z "$ac_cv_path_FGREP"; then
5516 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5517 fi
5518 else
5519 ac_cv_path_FGREP=$FGREP
5520 fi
5521
5522 fi ;;
5523 esac
5524 fi
5525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5526 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5527 FGREP="$ac_cv_path_FGREP"
5528
5529
5530 test -z "$GREP" && GREP=grep
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550 # Check whether --with-gnu-ld was given.
5551 if test ${with_gnu_ld+y}
5552 then :
5553 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5554 else case e in #(
5555 e) with_gnu_ld=no ;;
5556 esac
5557 fi
5558
5559 ac_prog=ld
5560 if test yes = "$GCC"; then
5561 # Check if gcc -print-prog-name=ld gives a path.
5562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5563 printf %s "checking for ld used by $CC... " >&6; }
5564 case $host in
5565 *-*-mingw* | *-*-windows*)
5566 # gcc leaves a trailing carriage return, which upsets mingw
5567 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5568 *)
5569 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5570 esac
5571 case $ac_prog in
5572 # Accept absolute paths.
5573 [\\/]* | ?:[\\/]*)
5574 re_direlt='/[^/][^/]*/\.\./'
5575 # Canonicalize the pathname of ld
5576 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5577 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5578 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5579 done
5580 test -z "$LD" && LD=$ac_prog
5581 ;;
5582 "")
5583 # If it fails, then pretend we aren't using GCC.
5584 ac_prog=ld
5585 ;;
5586 *)
5587 # If it is relative, then search for the first ld in PATH.
5588 with_gnu_ld=unknown
5589 ;;
5590 esac
5591 elif test yes = "$with_gnu_ld"; then
5592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5593 printf %s "checking for GNU ld... " >&6; }
5594 else
5595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5596 printf %s "checking for non-GNU ld... " >&6; }
5597 fi
5598 if test ${lt_cv_path_LD+y}
5599 then :
5600 printf %s "(cached) " >&6
5601 else case e in #(
5602 e) if test -z "$LD"; then
5603 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5604 for ac_dir in $PATH; do
5605 IFS=$lt_save_ifs
5606 test -z "$ac_dir" && ac_dir=.
5607 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5608 lt_cv_path_LD=$ac_dir/$ac_prog
5609 # Check to see if the program is GNU ld. I'd rather use --version,
5610 # but apparently some variants of GNU ld only accept -v.
5611 # Break only if it was the GNU/non-GNU ld that we prefer.
5612 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5613 *GNU* | *'with BFD'*)
5614 test no != "$with_gnu_ld" && break
5615 ;;
5616 *)
5617 test yes != "$with_gnu_ld" && break
5618 ;;
5619 esac
5620 fi
5621 done
5622 IFS=$lt_save_ifs
5623 else
5624 lt_cv_path_LD=$LD # Let the user override the test with a path.
5625 fi ;;
5626 esac
5627 fi
5628
5629 LD=$lt_cv_path_LD
5630 if test -n "$LD"; then
5631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5632 printf "%s\n" "$LD" >&6; }
5633 else
5634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5635 printf "%s\n" "no" >&6; }
5636 fi
5637 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5639 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5640 if test ${lt_cv_prog_gnu_ld+y}
5641 then :
5642 printf %s "(cached) " >&6
5643 else case e in #(
5644 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
5645 case `$LD -v 2>&1 </dev/null` in
5646 *GNU* | *'with BFD'*)
5647 lt_cv_prog_gnu_ld=yes
5648 ;;
5649 *)
5650 lt_cv_prog_gnu_ld=no
5651 ;;
5652 esac ;;
5653 esac
5654 fi
5655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5656 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5657 with_gnu_ld=$lt_cv_prog_gnu_ld
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5668 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5669 if test ${lt_cv_path_NM+y}
5670 then :
5671 printf %s "(cached) " >&6
5672 else case e in #(
5673 e) if test -n "$NM"; then
5674 # Let the user override the test.
5675 lt_cv_path_NM=$NM
5676 else
5677 lt_nm_to_check=${ac_tool_prefix}nm
5678 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5679 lt_nm_to_check="$lt_nm_to_check nm"
5680 fi
5681 for lt_tmp_nm in $lt_nm_to_check; do
5682 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5683 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5684 IFS=$lt_save_ifs
5685 test -z "$ac_dir" && ac_dir=.
5686 tmp_nm=$ac_dir/$lt_tmp_nm
5687 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5688 # Check to see if the nm accepts a BSD-compat flag.
5689 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5690 # nm: unknown option "B" ignored
5691 # Tru64's nm complains that /dev/null is an invalid object file
5692 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5693 case $build_os in
5694 mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
5695 *) lt_bad_file=/dev/null ;;
5696 esac
5697 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5698 *$lt_bad_file* | *'Invalid file or object type'*)
5699 lt_cv_path_NM="$tmp_nm -B"
5700 break 2
5701 ;;
5702 *)
5703 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5704 */dev/null*)
5705 lt_cv_path_NM="$tmp_nm -p"
5706 break 2
5707 ;;
5708 *)
5709 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5710 continue # so that we can try to find one that supports BSD flags
5711 ;;
5712 esac
5713 ;;
5714 esac
5715 fi
5716 done
5717 IFS=$lt_save_ifs
5718 done
5719 : ${lt_cv_path_NM=no}
5720 fi ;;
5721 esac
5722 fi
5723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5724 printf "%s\n" "$lt_cv_path_NM" >&6; }
5725 if test no != "$lt_cv_path_NM"; then
5726 NM=$lt_cv_path_NM
5727 else
5728 # Didn't find any BSD compatible name lister, look for dumpbin.
5729 if test -n "$DUMPBIN"; then :
5730 # Let the user override the test.
5731 else
5732 if test -n "$ac_tool_prefix"; then
5733 for ac_prog in dumpbin "link -dump"
5734 do
5735 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5736 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5738 printf %s "checking for $ac_word... " >&6; }
5739 if test ${ac_cv_prog_DUMPBIN+y}
5740 then :
5741 printf %s "(cached) " >&6
5742 else case e in #(
5743 e) if test -n "$DUMPBIN"; then
5744 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5745 else
5746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5747 for as_dir in $PATH
5748 do
5749 IFS=$as_save_IFS
5750 case $as_dir in #(((
5751 '') as_dir=./ ;;
5752 */) ;;
5753 *) as_dir=$as_dir/ ;;
5754 esac
5755 for ac_exec_ext in '' $ac_executable_extensions; do
5756 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5757 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5758 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5759 break 2
5760 fi
5761 done
5762 done
5763 IFS=$as_save_IFS
5764
5765 fi ;;
5766 esac
5767 fi
5768 DUMPBIN=$ac_cv_prog_DUMPBIN
5769 if test -n "$DUMPBIN"; then
5770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5771 printf "%s\n" "$DUMPBIN" >&6; }
5772 else
5773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5774 printf "%s\n" "no" >&6; }
5775 fi
5776
5777
5778 test -n "$DUMPBIN" && break
5779 done
5780 fi
5781 if test -z "$DUMPBIN"; then
5782 ac_ct_DUMPBIN=$DUMPBIN
5783 for ac_prog in dumpbin "link -dump"
5784 do
5785 # Extract the first word of "$ac_prog", so it can be a program name with args.
5786 set dummy $ac_prog; ac_word=$2
5787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5788 printf %s "checking for $ac_word... " >&6; }
5789 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5790 then :
5791 printf %s "(cached) " >&6
5792 else case e in #(
5793 e) if test -n "$ac_ct_DUMPBIN"; then
5794 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5795 else
5796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5797 for as_dir in $PATH
5798 do
5799 IFS=$as_save_IFS
5800 case $as_dir in #(((
5801 '') as_dir=./ ;;
5802 */) ;;
5803 *) as_dir=$as_dir/ ;;
5804 esac
5805 for ac_exec_ext in '' $ac_executable_extensions; do
5806 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5807 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5808 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5809 break 2
5810 fi
5811 done
5812 done
5813 IFS=$as_save_IFS
5814
5815 fi ;;
5816 esac
5817 fi
5818 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5819 if test -n "$ac_ct_DUMPBIN"; then
5820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5821 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5822 else
5823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5824 printf "%s\n" "no" >&6; }
5825 fi
5826
5827
5828 test -n "$ac_ct_DUMPBIN" && break
5829 done
5830
5831 if test "x$ac_ct_DUMPBIN" = x; then
5832 DUMPBIN=":"
5833 else
5834 case $cross_compiling:$ac_tool_warned in
5835 yes:)
5836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5837 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5838 ac_tool_warned=yes ;;
5839 esac
5840 DUMPBIN=$ac_ct_DUMPBIN
5841 fi
5842 fi
5843
5844 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5845 *COFF*)
5846 DUMPBIN="$DUMPBIN -symbols -headers"
5847 ;;
5848 *)
5849 DUMPBIN=:
5850 ;;
5851 esac
5852 fi
5853
5854 if test : != "$DUMPBIN"; then
5855 NM=$DUMPBIN
5856 fi
5857 fi
5858 test -z "$NM" && NM=nm
5859
5860
5861
5862
5863
5864
5865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5866 printf %s "checking the name lister ($NM) interface... " >&6; }
5867 if test ${lt_cv_nm_interface+y}
5868 then :
5869 printf %s "(cached) " >&6
5870 else case e in #(
5871 e) lt_cv_nm_interface="BSD nm"
5872 echo "int some_variable = 0;" > conftest.$ac_ext
5873 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5874 (eval "$ac_compile" 2>conftest.err)
5875 cat conftest.err >&5
5876 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5877 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5878 cat conftest.err >&5
5879 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5880 cat conftest.out >&5
5881 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5882 lt_cv_nm_interface="MS dumpbin"
5883 fi
5884 rm -f conftest* ;;
5885 esac
5886 fi
5887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5888 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5889
5890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5891 printf %s "checking whether ln -s works... " >&6; }
5892 LN_S=$as_ln_s
5893 if test "$LN_S" = "ln -s"; then
5894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5895 printf "%s\n" "yes" >&6; }
5896 else
5897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5898 printf "%s\n" "no, using $LN_S" >&6; }
5899 fi
5900
5901 # find the maximum length of command line arguments
5902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5903 printf %s "checking the maximum length of command line arguments... " >&6; }
5904 if test ${lt_cv_sys_max_cmd_len+y}
5905 then :
5906 printf %s "(cached) " >&6
5907 else case e in #(
5908 e) i=0
5909 teststring=ABCD
5910
5911 case $build_os in
5912 msdosdjgpp*)
5913 # On DJGPP, this test can blow up pretty badly due to problems in libc
5914 # (any single argument exceeding 2000 bytes causes a buffer overrun
5915 # during glob expansion). Even if it were fixed, the result of this
5916 # check would be larger than it should be.
5917 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5918 ;;
5919
5920 gnu* | ironclad*)
5921 # Under GNU Hurd and Ironclad, this test is not required because there
5922 # is no limit to the length of command line arguments.
5923 # Libtool will interpret -1 as no limit whatsoever
5924 lt_cv_sys_max_cmd_len=-1;
5925 ;;
5926
5927 cygwin* | mingw* | windows* | cegcc*)
5928 # On Win9x/ME, this test blows up -- it succeeds, but takes
5929 # about 5 minutes as the teststring grows exponentially.
5930 # Worse, since 9x/ME are not pre-emptively multitasking,
5931 # you end up with a "frozen" computer, even though with patience
5932 # the test eventually succeeds (with a max line length of 256k).
5933 # Instead, let's just punt: use the minimum linelength reported by
5934 # all of the supported platforms: 8192 (on NT/2K/XP).
5935 lt_cv_sys_max_cmd_len=8192;
5936 ;;
5937
5938 mint*)
5939 # On MiNT this can take a long time and run out of memory.
5940 lt_cv_sys_max_cmd_len=8192;
5941 ;;
5942
5943 amigaos*)
5944 # On AmigaOS with pdksh, this test takes hours, literally.
5945 # So we just punt and use a minimum line length of 8192.
5946 lt_cv_sys_max_cmd_len=8192;
5947 ;;
5948
5949 darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5950 # This has been around since 386BSD, at least. Likely further.
5951 if test -x /sbin/sysctl; then
5952 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5953 elif test -x /usr/sbin/sysctl; then
5954 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5955 else
5956 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5957 fi
5958 # And add a safety zone
5959 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5960 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5961 ;;
5962
5963 interix*)
5964 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5965 lt_cv_sys_max_cmd_len=196608
5966 ;;
5967
5968 os2*)
5969 # The test takes a long time on OS/2.
5970 lt_cv_sys_max_cmd_len=8192
5971 ;;
5972
5973 osf*)
5974 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5975 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5976 # nice to cause kernel panics so lets avoid the loop below.
5977 # First set a reasonable default.
5978 lt_cv_sys_max_cmd_len=16384
5979 #
5980 if test -x /sbin/sysconfig; then
5981 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5982 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5983 esac
5984 fi
5985 ;;
5986 sco3.2v5*)
5987 lt_cv_sys_max_cmd_len=102400
5988 ;;
5989 sysv5* | sco5v6* | sysv4.2uw2*)
5990 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5991 if test -n "$kargmax"; then
5992 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
5993 else
5994 lt_cv_sys_max_cmd_len=32768
5995 fi
5996 ;;
5997 *)
5998 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5999 if test -n "$lt_cv_sys_max_cmd_len" && \
6000 test undefined != "$lt_cv_sys_max_cmd_len"; then
6001 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6002 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6003 else
6004 # Make teststring a little bigger before we do anything with it.
6005 # a 1K string should be a reasonable start.
6006 for i in 1 2 3 4 5 6 7 8; do
6007 teststring=$teststring$teststring
6008 done
6009 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6010 # If test is not a shell built-in, we'll probably end up computing a
6011 # maximum length that is only half of the actual maximum length, but
6012 # we can't tell.
6013 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6014 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6015 test 17 != "$i" # 1/2 MB should be enough
6016 do
6017 i=`expr $i + 1`
6018 teststring=$teststring$teststring
6019 done
6020 # Only check the string length outside the loop.
6021 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6022 teststring=
6023 # Add a significant safety factor because C++ compilers can tack on
6024 # massive amounts of additional arguments before passing them to the
6025 # linker. It appears as though 1/2 is a usable value.
6026 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6027 fi
6028 ;;
6029 esac
6030 ;;
6031 esac
6032 fi
6033
6034 if test -n "$lt_cv_sys_max_cmd_len"; then
6035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6036 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6037 else
6038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6039 printf "%s\n" "none" >&6; }
6040 fi
6041 max_cmd_len=$lt_cv_sys_max_cmd_len
6042
6043
6044
6045
6046
6047
6048 : ${CP="cp -f"}
6049 : ${MV="mv -f"}
6050 : ${RM="rm -f"}
6051
6052 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6053 lt_unset=unset
6054 else
6055 lt_unset=false
6056 fi
6057
6058
6059
6060
6061
6062 # test EBCDIC or ASCII
6063 case `echo X|tr X '\101'` in
6064 A) # ASCII based system
6065 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6066 lt_SP2NL='tr \040 \012'
6067 lt_NL2SP='tr \015\012 \040\040'
6068 ;;
6069 *) # EBCDIC based system
6070 lt_SP2NL='tr \100 \n'
6071 lt_NL2SP='tr \r\n \100\100'
6072 ;;
6073 esac
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6084 printf %s "checking how to convert $build file names to $host format... " >&6; }
6085 if test ${lt_cv_to_host_file_cmd+y}
6086 then :
6087 printf %s "(cached) " >&6
6088 else case e in #(
6089 e) case $host in
6090 *-*-mingw* )
6091 case $build in
6092 *-*-mingw* | *-*-windows* ) # actually msys
6093 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6094 ;;
6095 *-*-cygwin* )
6096 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6097 ;;
6098 * ) # otherwise, assume *nix
6099 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6100 ;;
6101 esac
6102 ;;
6103 *-*-cygwin* )
6104 case $build in
6105 *-*-mingw* | *-*-windows* ) # actually msys
6106 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6107 ;;
6108 *-*-cygwin* )
6109 lt_cv_to_host_file_cmd=func_convert_file_noop
6110 ;;
6111 * ) # otherwise, assume *nix
6112 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6113 ;;
6114 esac
6115 ;;
6116 * ) # unhandled hosts (and "normal" native builds)
6117 lt_cv_to_host_file_cmd=func_convert_file_noop
6118 ;;
6119 esac
6120 ;;
6121 esac
6122 fi
6123
6124 to_host_file_cmd=$lt_cv_to_host_file_cmd
6125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6126 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6127
6128
6129
6130
6131
6132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6133 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6134 if test ${lt_cv_to_tool_file_cmd+y}
6135 then :
6136 printf %s "(cached) " >&6
6137 else case e in #(
6138 e) #assume ordinary cross tools, or native build.
6139 lt_cv_to_tool_file_cmd=func_convert_file_noop
6140 case $host in
6141 *-*-mingw* | *-*-windows* )
6142 case $build in
6143 *-*-mingw* | *-*-windows* ) # actually msys
6144 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6145 ;;
6146 esac
6147 ;;
6148 esac
6149 ;;
6150 esac
6151 fi
6152
6153 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6155 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6156
6157
6158
6159
6160
6161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6162 printf %s "checking for $LD option to reload object files... " >&6; }
6163 if test ${lt_cv_ld_reload_flag+y}
6164 then :
6165 printf %s "(cached) " >&6
6166 else case e in #(
6167 e) lt_cv_ld_reload_flag='-r' ;;
6168 esac
6169 fi
6170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6171 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6172 reload_flag=$lt_cv_ld_reload_flag
6173 case $reload_flag in
6174 "" | " "*) ;;
6175 *) reload_flag=" $reload_flag" ;;
6176 esac
6177 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6178 case $host_os in
6179 cygwin* | mingw* | windows* | pw32* | cegcc*)
6180 if test yes != "$GCC"; then
6181 reload_cmds=false
6182 fi
6183 ;;
6184 darwin*)
6185 if test yes = "$GCC"; then
6186 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6187 else
6188 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6189 fi
6190 ;;
6191 esac
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201 # Extract the first word of "file", so it can be a program name with args.
6202 set dummy file; ac_word=$2
6203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6204 printf %s "checking for $ac_word... " >&6; }
6205 if test ${ac_cv_prog_FILECMD+y}
6206 then :
6207 printf %s "(cached) " >&6
6208 else case e in #(
6209 e) if test -n "$FILECMD"; then
6210 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
6211 else
6212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6213 for as_dir in $PATH
6214 do
6215 IFS=$as_save_IFS
6216 case $as_dir in #(((
6217 '') as_dir=./ ;;
6218 */) ;;
6219 *) as_dir=$as_dir/ ;;
6220 esac
6221 for ac_exec_ext in '' $ac_executable_extensions; do
6222 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6223 ac_cv_prog_FILECMD="file"
6224 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6225 break 2
6226 fi
6227 done
6228 done
6229 IFS=$as_save_IFS
6230
6231 test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":"
6232 fi ;;
6233 esac
6234 fi
6235 FILECMD=$ac_cv_prog_FILECMD
6236 if test -n "$FILECMD"; then
6237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6238 printf "%s\n" "$FILECMD" >&6; }
6239 else
6240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6241 printf "%s\n" "no" >&6; }
6242 fi
6243
6244
6245
6246
6247
6248
6249
6250
6251 if test -n "$ac_tool_prefix"; then
6252 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6253 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6255 printf %s "checking for $ac_word... " >&6; }
6256 if test ${ac_cv_prog_OBJDUMP+y}
6257 then :
6258 printf %s "(cached) " >&6
6259 else case e in #(
6260 e) if test -n "$OBJDUMP"; then
6261 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6262 else
6263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6264 for as_dir in $PATH
6265 do
6266 IFS=$as_save_IFS
6267 case $as_dir in #(((
6268 '') as_dir=./ ;;
6269 */) ;;
6270 *) as_dir=$as_dir/ ;;
6271 esac
6272 for ac_exec_ext in '' $ac_executable_extensions; do
6273 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6274 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6275 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6276 break 2
6277 fi
6278 done
6279 done
6280 IFS=$as_save_IFS
6281
6282 fi ;;
6283 esac
6284 fi
6285 OBJDUMP=$ac_cv_prog_OBJDUMP
6286 if test -n "$OBJDUMP"; then
6287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6288 printf "%s\n" "$OBJDUMP" >&6; }
6289 else
6290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6291 printf "%s\n" "no" >&6; }
6292 fi
6293
6294
6295 fi
6296 if test -z "$ac_cv_prog_OBJDUMP"; then
6297 ac_ct_OBJDUMP=$OBJDUMP
6298 # Extract the first word of "objdump", so it can be a program name with args.
6299 set dummy objdump; ac_word=$2
6300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6301 printf %s "checking for $ac_word... " >&6; }
6302 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6303 then :
6304 printf %s "(cached) " >&6
6305 else case e in #(
6306 e) if test -n "$ac_ct_OBJDUMP"; then
6307 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6308 else
6309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6310 for as_dir in $PATH
6311 do
6312 IFS=$as_save_IFS
6313 case $as_dir in #(((
6314 '') as_dir=./ ;;
6315 */) ;;
6316 *) as_dir=$as_dir/ ;;
6317 esac
6318 for ac_exec_ext in '' $ac_executable_extensions; do
6319 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6320 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6321 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6322 break 2
6323 fi
6324 done
6325 done
6326 IFS=$as_save_IFS
6327
6328 fi ;;
6329 esac
6330 fi
6331 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6332 if test -n "$ac_ct_OBJDUMP"; then
6333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6334 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6335 else
6336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6337 printf "%s\n" "no" >&6; }
6338 fi
6339
6340 if test "x$ac_ct_OBJDUMP" = x; then
6341 OBJDUMP="false"
6342 else
6343 case $cross_compiling:$ac_tool_warned in
6344 yes:)
6345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6346 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6347 ac_tool_warned=yes ;;
6348 esac
6349 OBJDUMP=$ac_ct_OBJDUMP
6350 fi
6351 else
6352 OBJDUMP="$ac_cv_prog_OBJDUMP"
6353 fi
6354
6355 test -z "$OBJDUMP" && OBJDUMP=objdump
6356
6357
6358
6359
6360
6361
6362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6363 printf %s "checking how to recognize dependent libraries... " >&6; }
6364 if test ${lt_cv_deplibs_check_method+y}
6365 then :
6366 printf %s "(cached) " >&6
6367 else case e in #(
6368 e) lt_cv_file_magic_cmd='$MAGIC_CMD'
6369 lt_cv_file_magic_test_file=
6370 lt_cv_deplibs_check_method='unknown'
6371 # Need to set the preceding variable on all platforms that support
6372 # interlibrary dependencies.
6373 # 'none' -- dependencies not supported.
6374 # 'unknown' -- same as none, but documents that we really don't know.
6375 # 'pass_all' -- all dependencies passed with no checks.
6376 # 'file_magic [[regex]]' -- check by looking for files in library path
6377 # that responds to the $file_magic_cmd with a given extended regex.
6378 # If you have 'file' or equivalent on your system and you're not sure
6379 # whether 'pass_all' will *always* work, you probably want this one.
6380
6381 case $host_os in
6382 aix[4-9]*)
6383 lt_cv_deplibs_check_method=pass_all
6384 ;;
6385
6386 beos*)
6387 lt_cv_deplibs_check_method=pass_all
6388 ;;
6389
6390 bsdi[45]*)
6391 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6392 lt_cv_file_magic_cmd='$FILECMD -L'
6393 lt_cv_file_magic_test_file=/shlib/libc.so
6394 ;;
6395
6396 cygwin*)
6397 # func_win32_libid is a shell function defined in ltmain.sh
6398 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6399 lt_cv_file_magic_cmd='func_win32_libid'
6400 ;;
6401
6402 mingw* | windows* | pw32*)
6403 # Base MSYS/MinGW do not provide the 'file' command needed by
6404 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6405 # unless we find 'file', for example because we are cross-compiling.
6406 if ( file / ) >/dev/null 2>&1; then
6407 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6408 lt_cv_file_magic_cmd='func_win32_libid'
6409 else
6410 # Keep this pattern in sync with the one in func_win32_libid.
6411 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
6412 lt_cv_file_magic_cmd='$OBJDUMP -f'
6413 fi
6414 ;;
6415
6416 cegcc*)
6417 # use the weaker test based on 'objdump'. See mingw*.
6418 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6419 lt_cv_file_magic_cmd='$OBJDUMP -f'
6420 ;;
6421
6422 darwin* | rhapsody*)
6423 lt_cv_deplibs_check_method=pass_all
6424 ;;
6425
6426 freebsd* | dragonfly* | midnightbsd*)
6427 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6428 case $host_cpu in
6429 i*86 )
6430 # Not sure whether the presence of OpenBSD here was a mistake.
6431 # Let's accept both of them until this is cleared up.
6432 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6433 lt_cv_file_magic_cmd=$FILECMD
6434 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6435 ;;
6436 esac
6437 else
6438 lt_cv_deplibs_check_method=pass_all
6439 fi
6440 ;;
6441
6442 haiku*)
6443 lt_cv_deplibs_check_method=pass_all
6444 ;;
6445
6446 hpux10.20* | hpux11*)
6447 lt_cv_file_magic_cmd=$FILECMD
6448 case $host_cpu in
6449 ia64*)
6450 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6451 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6452 ;;
6453 hppa*64*)
6454 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]'
6455 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6456 ;;
6457 *)
6458 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6459 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6460 ;;
6461 esac
6462 ;;
6463
6464 interix[3-9]*)
6465 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6466 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6467 ;;
6468
6469 irix5* | irix6* | nonstopux*)
6470 case $LD in
6471 *-32|*"-32 ") libmagic=32-bit;;
6472 *-n32|*"-n32 ") libmagic=N32;;
6473 *-64|*"-64 ") libmagic=64-bit;;
6474 *) libmagic=never-match;;
6475 esac
6476 lt_cv_deplibs_check_method=pass_all
6477 ;;
6478
6479 # This must be glibc/ELF.
6480 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6481 lt_cv_deplibs_check_method=pass_all
6482 ;;
6483
6484 *-mlibc)
6485 lt_cv_deplibs_check_method=pass_all
6486 ;;
6487
6488 netbsd* | netbsdelf*-gnu)
6489 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6490 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6491 else
6492 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6493 fi
6494 ;;
6495
6496 newos6*)
6497 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6498 lt_cv_file_magic_cmd=$FILECMD
6499 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6500 ;;
6501
6502 *nto* | *qnx*)
6503 lt_cv_deplibs_check_method=pass_all
6504 ;;
6505
6506 openbsd*)
6507 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6508 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6509 else
6510 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6511 fi
6512 ;;
6513
6514 osf3* | osf4* | osf5*)
6515 lt_cv_deplibs_check_method=pass_all
6516 ;;
6517
6518 rdos*)
6519 lt_cv_deplibs_check_method=pass_all
6520 ;;
6521
6522 serenity*)
6523 lt_cv_deplibs_check_method=pass_all
6524 ;;
6525
6526 solaris*)
6527 lt_cv_deplibs_check_method=pass_all
6528 ;;
6529
6530 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6531 lt_cv_deplibs_check_method=pass_all
6532 ;;
6533
6534 sysv4 | sysv4.3*)
6535 case $host_vendor in
6536 motorola)
6537 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]'
6538 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6539 ;;
6540 ncr)
6541 lt_cv_deplibs_check_method=pass_all
6542 ;;
6543 sequent)
6544 lt_cv_file_magic_cmd='/bin/file'
6545 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6546 ;;
6547 sni)
6548 lt_cv_file_magic_cmd='/bin/file'
6549 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6550 lt_cv_file_magic_test_file=/lib/libc.so
6551 ;;
6552 siemens)
6553 lt_cv_deplibs_check_method=pass_all
6554 ;;
6555 pc)
6556 lt_cv_deplibs_check_method=pass_all
6557 ;;
6558 esac
6559 ;;
6560
6561 tpf*)
6562 lt_cv_deplibs_check_method=pass_all
6563 ;;
6564 os2*)
6565 lt_cv_deplibs_check_method=pass_all
6566 ;;
6567 esac
6568 ;;
6569 esac
6570 fi
6571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6572 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6573
6574 file_magic_glob=
6575 want_nocaseglob=no
6576 if test "$build" = "$host"; then
6577 case $host_os in
6578 mingw* | windows* | pw32*)
6579 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6580 want_nocaseglob=yes
6581 else
6582 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6583 fi
6584 ;;
6585 esac
6586 fi
6587
6588 file_magic_cmd=$lt_cv_file_magic_cmd
6589 deplibs_check_method=$lt_cv_deplibs_check_method
6590 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613 if test -n "$ac_tool_prefix"; then
6614 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6615 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6617 printf %s "checking for $ac_word... " >&6; }
6618 if test ${ac_cv_prog_DLLTOOL+y}
6619 then :
6620 printf %s "(cached) " >&6
6621 else case e in #(
6622 e) if test -n "$DLLTOOL"; then
6623 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6624 else
6625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6626 for as_dir in $PATH
6627 do
6628 IFS=$as_save_IFS
6629 case $as_dir in #(((
6630 '') as_dir=./ ;;
6631 */) ;;
6632 *) as_dir=$as_dir/ ;;
6633 esac
6634 for ac_exec_ext in '' $ac_executable_extensions; do
6635 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6636 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6637 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6638 break 2
6639 fi
6640 done
6641 done
6642 IFS=$as_save_IFS
6643
6644 fi ;;
6645 esac
6646 fi
6647 DLLTOOL=$ac_cv_prog_DLLTOOL
6648 if test -n "$DLLTOOL"; then
6649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6650 printf "%s\n" "$DLLTOOL" >&6; }
6651 else
6652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6653 printf "%s\n" "no" >&6; }
6654 fi
6655
6656
6657 fi
6658 if test -z "$ac_cv_prog_DLLTOOL"; then
6659 ac_ct_DLLTOOL=$DLLTOOL
6660 # Extract the first word of "dlltool", so it can be a program name with args.
6661 set dummy dlltool; ac_word=$2
6662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6663 printf %s "checking for $ac_word... " >&6; }
6664 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6665 then :
6666 printf %s "(cached) " >&6
6667 else case e in #(
6668 e) if test -n "$ac_ct_DLLTOOL"; then
6669 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6670 else
6671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6672 for as_dir in $PATH
6673 do
6674 IFS=$as_save_IFS
6675 case $as_dir in #(((
6676 '') as_dir=./ ;;
6677 */) ;;
6678 *) as_dir=$as_dir/ ;;
6679 esac
6680 for ac_exec_ext in '' $ac_executable_extensions; do
6681 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6682 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6683 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6684 break 2
6685 fi
6686 done
6687 done
6688 IFS=$as_save_IFS
6689
6690 fi ;;
6691 esac
6692 fi
6693 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6694 if test -n "$ac_ct_DLLTOOL"; then
6695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6696 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6697 else
6698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6699 printf "%s\n" "no" >&6; }
6700 fi
6701
6702 if test "x$ac_ct_DLLTOOL" = x; then
6703 DLLTOOL="false"
6704 else
6705 case $cross_compiling:$ac_tool_warned in
6706 yes:)
6707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6708 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6709 ac_tool_warned=yes ;;
6710 esac
6711 DLLTOOL=$ac_ct_DLLTOOL
6712 fi
6713 else
6714 DLLTOOL="$ac_cv_prog_DLLTOOL"
6715 fi
6716
6717 test -z "$DLLTOOL" && DLLTOOL=dlltool
6718
6719
6720
6721
6722
6723
6724
6725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6726 printf %s "checking how to associate runtime and link libraries... " >&6; }
6727 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6728 then :
6729 printf %s "(cached) " >&6
6730 else case e in #(
6731 e) lt_cv_sharedlib_from_linklib_cmd='unknown'
6732
6733 case $host_os in
6734 cygwin* | mingw* | windows* | pw32* | cegcc*)
6735 # two different shell functions defined in ltmain.sh;
6736 # decide which one to use based on capabilities of $DLLTOOL
6737 case `$DLLTOOL --help 2>&1` in
6738 *--identify-strict*)
6739 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6740 ;;
6741 *)
6742 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6743 ;;
6744 esac
6745 ;;
6746 *)
6747 # fallback: assume linklib IS sharedlib
6748 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6749 ;;
6750 esac
6751 ;;
6752 esac
6753 fi
6754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6755 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6756 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6757 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6758
6759
6760
6761
6762
6763
6764
6765 if test -n "$ac_tool_prefix"; then
6766 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6767 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6769 printf %s "checking for $ac_word... " >&6; }
6770 if test ${ac_cv_prog_RANLIB+y}
6771 then :
6772 printf %s "(cached) " >&6
6773 else case e in #(
6774 e) if test -n "$RANLIB"; then
6775 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6776 else
6777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6778 for as_dir in $PATH
6779 do
6780 IFS=$as_save_IFS
6781 case $as_dir in #(((
6782 '') as_dir=./ ;;
6783 */) ;;
6784 *) as_dir=$as_dir/ ;;
6785 esac
6786 for ac_exec_ext in '' $ac_executable_extensions; do
6787 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6788 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6789 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6790 break 2
6791 fi
6792 done
6793 done
6794 IFS=$as_save_IFS
6795
6796 fi ;;
6797 esac
6798 fi
6799 RANLIB=$ac_cv_prog_RANLIB
6800 if test -n "$RANLIB"; then
6801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6802 printf "%s\n" "$RANLIB" >&6; }
6803 else
6804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6805 printf "%s\n" "no" >&6; }
6806 fi
6807
6808
6809 fi
6810 if test -z "$ac_cv_prog_RANLIB"; then
6811 ac_ct_RANLIB=$RANLIB
6812 # Extract the first word of "ranlib", so it can be a program name with args.
6813 set dummy ranlib; ac_word=$2
6814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6815 printf %s "checking for $ac_word... " >&6; }
6816 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6817 then :
6818 printf %s "(cached) " >&6
6819 else case e in #(
6820 e) if test -n "$ac_ct_RANLIB"; then
6821 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6822 else
6823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6824 for as_dir in $PATH
6825 do
6826 IFS=$as_save_IFS
6827 case $as_dir in #(((
6828 '') as_dir=./ ;;
6829 */) ;;
6830 *) as_dir=$as_dir/ ;;
6831 esac
6832 for ac_exec_ext in '' $ac_executable_extensions; do
6833 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6834 ac_cv_prog_ac_ct_RANLIB="ranlib"
6835 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6836 break 2
6837 fi
6838 done
6839 done
6840 IFS=$as_save_IFS
6841
6842 fi ;;
6843 esac
6844 fi
6845 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6846 if test -n "$ac_ct_RANLIB"; then
6847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6848 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6849 else
6850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6851 printf "%s\n" "no" >&6; }
6852 fi
6853
6854 if test "x$ac_ct_RANLIB" = x; then
6855 RANLIB=":"
6856 else
6857 case $cross_compiling:$ac_tool_warned in
6858 yes:)
6859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6860 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6861 ac_tool_warned=yes ;;
6862 esac
6863 RANLIB=$ac_ct_RANLIB
6864 fi
6865 else
6866 RANLIB="$ac_cv_prog_RANLIB"
6867 fi
6868
6869 if test -n "$ac_tool_prefix"; then
6870 for ac_prog in ar
6871 do
6872 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6873 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6875 printf %s "checking for $ac_word... " >&6; }
6876 if test ${ac_cv_prog_AR+y}
6877 then :
6878 printf %s "(cached) " >&6
6879 else case e in #(
6880 e) if test -n "$AR"; then
6881 ac_cv_prog_AR="$AR" # Let the user override the test.
6882 else
6883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6884 for as_dir in $PATH
6885 do
6886 IFS=$as_save_IFS
6887 case $as_dir in #(((
6888 '') as_dir=./ ;;
6889 */) ;;
6890 *) as_dir=$as_dir/ ;;
6891 esac
6892 for ac_exec_ext in '' $ac_executable_extensions; do
6893 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6894 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6895 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6896 break 2
6897 fi
6898 done
6899 done
6900 IFS=$as_save_IFS
6901
6902 fi ;;
6903 esac
6904 fi
6905 AR=$ac_cv_prog_AR
6906 if test -n "$AR"; then
6907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6908 printf "%s\n" "$AR" >&6; }
6909 else
6910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6911 printf "%s\n" "no" >&6; }
6912 fi
6913
6914
6915 test -n "$AR" && break
6916 done
6917 fi
6918 if test -z "$AR"; then
6919 ac_ct_AR=$AR
6920 for ac_prog in ar
6921 do
6922 # Extract the first word of "$ac_prog", so it can be a program name with args.
6923 set dummy $ac_prog; ac_word=$2
6924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6925 printf %s "checking for $ac_word... " >&6; }
6926 if test ${ac_cv_prog_ac_ct_AR+y}
6927 then :
6928 printf %s "(cached) " >&6
6929 else case e in #(
6930 e) if test -n "$ac_ct_AR"; then
6931 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6932 else
6933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6934 for as_dir in $PATH
6935 do
6936 IFS=$as_save_IFS
6937 case $as_dir in #(((
6938 '') as_dir=./ ;;
6939 */) ;;
6940 *) as_dir=$as_dir/ ;;
6941 esac
6942 for ac_exec_ext in '' $ac_executable_extensions; do
6943 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6944 ac_cv_prog_ac_ct_AR="$ac_prog"
6945 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6946 break 2
6947 fi
6948 done
6949 done
6950 IFS=$as_save_IFS
6951
6952 fi ;;
6953 esac
6954 fi
6955 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6956 if test -n "$ac_ct_AR"; then
6957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6958 printf "%s\n" "$ac_ct_AR" >&6; }
6959 else
6960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6961 printf "%s\n" "no" >&6; }
6962 fi
6963
6964
6965 test -n "$ac_ct_AR" && break
6966 done
6967
6968 if test "x$ac_ct_AR" = x; then
6969 AR="false"
6970 else
6971 case $cross_compiling:$ac_tool_warned in
6972 yes:)
6973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6974 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6975 ac_tool_warned=yes ;;
6976 esac
6977 AR=$ac_ct_AR
6978 fi
6979 fi
6980
6981 : ${AR=ar}
6982
6983
6984
6985
6986
6987
6988 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
6989 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6990 # higher priority because that's what people were doing historically (setting
6991 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
6992 # variable obsoleted/removed.
6993
6994 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6995 lt_ar_flags=$AR_FLAGS
6996
6997
6998
6999
7000
7001
7002 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
7003 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
7004
7005
7006
7007
7008
7009
7010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7011 printf %s "checking for archiver @FILE support... " >&6; }
7012 if test ${lt_cv_ar_at_file+y}
7013 then :
7014 printf %s "(cached) " >&6
7015 else case e in #(
7016 e) lt_cv_ar_at_file=no
7017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7018 /* end confdefs.h. */
7019
7020 int
7021 main (void)
7022 {
7023
7024 ;
7025 return 0;
7026 }
7027 _ACEOF
7028 if ac_fn_c_try_compile "$LINENO"
7029 then :
7030 echo conftest.$ac_objext > conftest.lst
7031 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7032 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7033 (eval $lt_ar_try) 2>&5
7034 ac_status=$?
7035 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7036 test $ac_status = 0; }
7037 if test 0 -eq "$ac_status"; then
7038 # Ensure the archiver fails upon bogus file names.
7039 rm -f conftest.$ac_objext libconftest.a
7040 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7041 (eval $lt_ar_try) 2>&5
7042 ac_status=$?
7043 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7044 test $ac_status = 0; }
7045 if test 0 -ne "$ac_status"; then
7046 lt_cv_ar_at_file=@
7047 fi
7048 fi
7049 rm -f conftest.* libconftest.a
7050
7051 fi
7052 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7053 ;;
7054 esac
7055 fi
7056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7057 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
7058
7059 if test no = "$lt_cv_ar_at_file"; then
7060 archiver_list_spec=
7061 else
7062 archiver_list_spec=$lt_cv_ar_at_file
7063 fi
7064
7065
7066
7067
7068
7069
7070
7071 if test -n "$ac_tool_prefix"; then
7072 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7073 set dummy ${ac_tool_prefix}strip; ac_word=$2
7074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7075 printf %s "checking for $ac_word... " >&6; }
7076 if test ${ac_cv_prog_STRIP+y}
7077 then :
7078 printf %s "(cached) " >&6
7079 else case e in #(
7080 e) if test -n "$STRIP"; then
7081 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7082 else
7083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7084 for as_dir in $PATH
7085 do
7086 IFS=$as_save_IFS
7087 case $as_dir in #(((
7088 '') as_dir=./ ;;
7089 */) ;;
7090 *) as_dir=$as_dir/ ;;
7091 esac
7092 for ac_exec_ext in '' $ac_executable_extensions; do
7093 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7094 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7095 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7096 break 2
7097 fi
7098 done
7099 done
7100 IFS=$as_save_IFS
7101
7102 fi ;;
7103 esac
7104 fi
7105 STRIP=$ac_cv_prog_STRIP
7106 if test -n "$STRIP"; then
7107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7108 printf "%s\n" "$STRIP" >&6; }
7109 else
7110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7111 printf "%s\n" "no" >&6; }
7112 fi
7113
7114
7115 fi
7116 if test -z "$ac_cv_prog_STRIP"; then
7117 ac_ct_STRIP=$STRIP
7118 # Extract the first word of "strip", so it can be a program name with args.
7119 set dummy strip; ac_word=$2
7120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7121 printf %s "checking for $ac_word... " >&6; }
7122 if test ${ac_cv_prog_ac_ct_STRIP+y}
7123 then :
7124 printf %s "(cached) " >&6
7125 else case e in #(
7126 e) if test -n "$ac_ct_STRIP"; then
7127 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7128 else
7129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7130 for as_dir in $PATH
7131 do
7132 IFS=$as_save_IFS
7133 case $as_dir in #(((
7134 '') as_dir=./ ;;
7135 */) ;;
7136 *) as_dir=$as_dir/ ;;
7137 esac
7138 for ac_exec_ext in '' $ac_executable_extensions; do
7139 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7140 ac_cv_prog_ac_ct_STRIP="strip"
7141 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7142 break 2
7143 fi
7144 done
7145 done
7146 IFS=$as_save_IFS
7147
7148 fi ;;
7149 esac
7150 fi
7151 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7152 if test -n "$ac_ct_STRIP"; then
7153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7154 printf "%s\n" "$ac_ct_STRIP" >&6; }
7155 else
7156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7157 printf "%s\n" "no" >&6; }
7158 fi
7159
7160 if test "x$ac_ct_STRIP" = x; then
7161 STRIP=":"
7162 else
7163 case $cross_compiling:$ac_tool_warned in
7164 yes:)
7165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7166 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7167 ac_tool_warned=yes ;;
7168 esac
7169 STRIP=$ac_ct_STRIP
7170 fi
7171 else
7172 STRIP="$ac_cv_prog_STRIP"
7173 fi
7174
7175 test -z "$STRIP" && STRIP=:
7176
7177
7178
7179
7180
7181
7182
7183 test -z "$RANLIB" && RANLIB=:
7184
7185
7186
7187
7188
7189
7190 # Determine commands to create old-style static archives.
7191 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7192 old_postinstall_cmds='chmod 644 $oldlib'
7193 old_postuninstall_cmds=
7194
7195 if test -n "$RANLIB"; then
7196 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7197 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7198 fi
7199
7200 case $host_os in
7201 darwin*)
7202 lock_old_archive_extraction=yes ;;
7203 *)
7204 lock_old_archive_extraction=no ;;
7205 esac
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245 # If no C compiler was specified, use CC.
7246 LTCC=${LTCC-"$CC"}
7247
7248 # If no C compiler flags were specified, use CFLAGS.
7249 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7250
7251 # Allow CC to be a program name with arguments.
7252 compiler=$CC
7253
7254
7255 # Check for command to grab the raw symbol name followed by C symbol from nm.
7256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7257 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7258 if test ${lt_cv_sys_global_symbol_pipe+y}
7259 then :
7260 printf %s "(cached) " >&6
7261 else case e in #(
7262 e)
7263 # These are sane defaults that work on at least a few old systems.
7264 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7265
7266 # Character class describing NM global symbol codes.
7267 symcode='[BCDEGRST]'
7268
7269 # Regexp to match symbols that can be accessed directly from C.
7270 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7271
7272 # Define system-specific variables.
7273 case $host_os in
7274 aix*)
7275 symcode='[BCDT]'
7276 ;;
7277 cygwin* | mingw* | windows* | pw32* | cegcc*)
7278 symcode='[ABCDGISTW]'
7279 ;;
7280 hpux*)
7281 if test ia64 = "$host_cpu"; then
7282 symcode='[ABCDEGRST]'
7283 fi
7284 ;;
7285 irix* | nonstopux*)
7286 symcode='[BCDEGRST]'
7287 ;;
7288 osf*)
7289 symcode='[BCDEGQRST]'
7290 ;;
7291 solaris*)
7292 symcode='[BCDRT]'
7293 ;;
7294 sco3.2v5*)
7295 symcode='[DT]'
7296 ;;
7297 sysv4.2uw2*)
7298 symcode='[DT]'
7299 ;;
7300 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7301 symcode='[ABDT]'
7302 ;;
7303 sysv4)
7304 symcode='[DFNSTU]'
7305 ;;
7306 esac
7307
7308 # If we're using GNU nm, then use its standard symbol codes.
7309 case `$NM -V 2>&1` in
7310 *GNU* | *'with BFD'*)
7311 symcode='[ABCDGIRSTW]' ;;
7312 esac
7313
7314 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7315 # Gets list of data symbols to import.
7316 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7317 # Adjust the below global symbol transforms to fixup imported variables.
7318 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7319 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7320 lt_c_name_lib_hook="\
7321 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7322 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7323 else
7324 # Disable hooks by default.
7325 lt_cv_sys_global_symbol_to_import=
7326 lt_cdecl_hook=
7327 lt_c_name_hook=
7328 lt_c_name_lib_hook=
7329 fi
7330
7331 # Transform an extracted symbol line into a proper C declaration.
7332 # Some systems (esp. on ia64) link data and code symbols differently,
7333 # so use this general approach.
7334 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7335 $lt_cdecl_hook\
7336 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7337 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7338
7339 # Transform an extracted symbol line into symbol name and symbol address
7340 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7341 $lt_c_name_hook\
7342 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7343 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7344
7345 # Transform an extracted symbol line into symbol name with lib prefix and
7346 # symbol address.
7347 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7348 $lt_c_name_lib_hook\
7349 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7350 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7351 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7352
7353 # Handle CRLF in mingw tool chain
7354 opt_cr=
7355 case $build_os in
7356 mingw* | windows*)
7357 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7358 ;;
7359 esac
7360
7361 # Try without a prefix underscore, then with it.
7362 for ac_symprfx in "" "_"; do
7363
7364 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7365 symxfrm="\\1 $ac_symprfx\\2 \\2"
7366
7367 # Write the raw and C identifiers.
7368 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7369 # Fake it for dumpbin and say T for any non-static function,
7370 # D for any global variable and I for any imported variable.
7371 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7372 # which start with @ or ?.
7373 lt_cv_sys_global_symbol_pipe="$AWK '"\
7374 " {last_section=section; section=\$ 3};"\
7375 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7376 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7377 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7378 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7379 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7380 " \$ 0!~/External *\|/{next};"\
7381 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7382 " {if(hide[section]) next};"\
7383 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7384 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7385 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7386 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7387 " ' prfx=^$ac_symprfx"
7388 else
7389 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7390 fi
7391 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7392
7393 # Check to see that the pipe works correctly.
7394 pipe_works=no
7395
7396 rm -f conftest*
7397 cat > conftest.$ac_ext <<_LT_EOF
7398 #ifdef __cplusplus
7399 extern "C" {
7400 #endif
7401 char nm_test_var;
7402 void nm_test_func(void);
7403 void nm_test_func(void){}
7404 #ifdef __cplusplus
7405 }
7406 #endif
7407 int main(void){nm_test_var='a';nm_test_func();return(0);}
7408 _LT_EOF
7409
7410 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7411 (eval $ac_compile) 2>&5
7412 ac_status=$?
7413 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7414 test $ac_status = 0; }; then
7415 # Now try to grab the symbols.
7416 nlist=conftest.nm
7417 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7418 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7419 # Try sorting and uniquifying the output.
7420 if sort "$nlist" | uniq > "$nlist"T; then
7421 mv -f "$nlist"T "$nlist"
7422 else
7423 rm -f "$nlist"T
7424 fi
7425
7426 # Make sure that we snagged all the symbols we need.
7427 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7428 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7429 cat <<_LT_EOF > conftest.$ac_ext
7430 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7431 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7432 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7433 relocations are performed -- see ld's documentation on pseudo-relocs. */
7434 # define LT_DLSYM_CONST
7435 #elif defined __osf__
7436 /* This system does not cope well with relocations in const data. */
7437 # define LT_DLSYM_CONST
7438 #else
7439 # define LT_DLSYM_CONST const
7440 #endif
7441
7442 #ifdef __cplusplus
7443 extern "C" {
7444 #endif
7445
7446 _LT_EOF
7447 # Now generate the symbol file.
7448 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7449
7450 cat <<_LT_EOF >> conftest.$ac_ext
7451
7452 /* The mapping between symbol names and symbols. */
7453 LT_DLSYM_CONST struct {
7454 const char *name;
7455 void *address;
7456 }
7457 lt__PROGRAM__LTX_preloaded_symbols[] =
7458 {
7459 { "@PROGRAM@", (void *) 0 },
7460 _LT_EOF
7461 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7462 cat <<\_LT_EOF >> conftest.$ac_ext
7463 {0, (void *) 0}
7464 };
7465
7466 /* This works around a problem in FreeBSD linker */
7467 #ifdef FREEBSD_WORKAROUND
7468 static const void *lt_preloaded_setup() {
7469 return lt__PROGRAM__LTX_preloaded_symbols;
7470 }
7471 #endif
7472
7473 #ifdef __cplusplus
7474 }
7475 #endif
7476 _LT_EOF
7477 # Now try linking the two files.
7478 mv conftest.$ac_objext conftstm.$ac_objext
7479 lt_globsym_save_LIBS=$LIBS
7480 lt_globsym_save_CFLAGS=$CFLAGS
7481 LIBS=conftstm.$ac_objext
7482 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7483 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7484 (eval $ac_link) 2>&5
7485 ac_status=$?
7486 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7487 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7488 pipe_works=yes
7489 fi
7490 LIBS=$lt_globsym_save_LIBS
7491 CFLAGS=$lt_globsym_save_CFLAGS
7492 else
7493 echo "cannot find nm_test_func in $nlist" >&5
7494 fi
7495 else
7496 echo "cannot find nm_test_var in $nlist" >&5
7497 fi
7498 else
7499 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7500 fi
7501 else
7502 echo "$progname: failed program was:" >&5
7503 cat conftest.$ac_ext >&5
7504 fi
7505 rm -rf conftest* conftst*
7506
7507 # Do not use the global_symbol_pipe unless it works.
7508 if test yes = "$pipe_works"; then
7509 break
7510 else
7511 lt_cv_sys_global_symbol_pipe=
7512 fi
7513 done
7514 ;;
7515 esac
7516 fi
7517
7518 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7519 lt_cv_sys_global_symbol_to_cdecl=
7520 fi
7521 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7523 printf "%s\n" "failed" >&6; }
7524 else
7525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7526 printf "%s\n" "ok" >&6; }
7527 fi
7528
7529 # Response file support.
7530 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7531 nm_file_list_spec='@'
7532 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7533 nm_file_list_spec='@'
7534 fi
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7573 printf %s "checking for sysroot... " >&6; }
7574
7575 # Check whether --with-sysroot was given.
7576 if test ${with_sysroot+y}
7577 then :
7578 withval=$with_sysroot;
7579 else case e in #(
7580 e) with_sysroot=no ;;
7581 esac
7582 fi
7583
7584
7585 lt_sysroot=
7586 case $with_sysroot in #(
7587 yes)
7588 if test yes = "$GCC"; then
7589 # Trim trailing / since we'll always append absolute paths and we want
7590 # to avoid //, if only for less confusing output for the user.
7591 lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`
7592 fi
7593 ;; #(
7594 /*)
7595 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7596 ;; #(
7597 no|'')
7598 ;; #(
7599 *)
7600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7601 printf "%s\n" "$with_sysroot" >&6; }
7602 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7603 ;;
7604 esac
7605
7606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7607 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7608
7609
7610
7611
7612
7613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7614 printf %s "checking for a working dd... " >&6; }
7615 if test ${ac_cv_path_lt_DD+y}
7616 then :
7617 printf %s "(cached) " >&6
7618 else case e in #(
7619 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7620 cat conftest.i conftest.i >conftest2.i
7621 : ${lt_DD:=$DD}
7622 if test -z "$lt_DD"; then
7623 ac_path_lt_DD_found=false
7624 # Loop through the user's path and test for each of PROGNAME-LIST
7625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7626 for as_dir in $PATH
7627 do
7628 IFS=$as_save_IFS
7629 case $as_dir in #(((
7630 '') as_dir=./ ;;
7631 */) ;;
7632 *) as_dir=$as_dir/ ;;
7633 esac
7634 for ac_prog in dd
7635 do
7636 for ac_exec_ext in '' $ac_executable_extensions; do
7637 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7638 as_fn_executable_p "$ac_path_lt_DD" || continue
7639 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7640 cmp -s conftest.i conftest.out \
7641 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7642 fi
7643 $ac_path_lt_DD_found && break 3
7644 done
7645 done
7646 done
7647 IFS=$as_save_IFS
7648 if test -z "$ac_cv_path_lt_DD"; then
7649 :
7650 fi
7651 else
7652 ac_cv_path_lt_DD=$lt_DD
7653 fi
7654
7655 rm -f conftest.i conftest2.i conftest.out ;;
7656 esac
7657 fi
7658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7659 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7660
7661
7662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7663 printf %s "checking how to truncate binary pipes... " >&6; }
7664 if test ${lt_cv_truncate_bin+y}
7665 then :
7666 printf %s "(cached) " >&6
7667 else case e in #(
7668 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7669 cat conftest.i conftest.i >conftest2.i
7670 lt_cv_truncate_bin=
7671 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7672 cmp -s conftest.i conftest.out \
7673 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7674 fi
7675 rm -f conftest.i conftest2.i conftest.out
7676 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
7677 esac
7678 fi
7679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7680 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7681
7682
7683
7684
7685
7686
7687
7688 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7689 func_cc_basename ()
7690 {
7691 for cc_temp in $*""; do
7692 case $cc_temp in
7693 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7694 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7695 \-*) ;;
7696 *) break;;
7697 esac
7698 done
7699 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7700 }
7701
7702 # Check whether --enable-libtool-lock was given.
7703 if test ${enable_libtool_lock+y}
7704 then :
7705 enableval=$enable_libtool_lock;
7706 fi
7707
7708 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7709
7710 # Some flags need to be propagated to the compiler or linker for good
7711 # libtool support.
7712 case $host in
7713 ia64-*-hpux*)
7714 # Find out what ABI is being produced by ac_compile, and set mode
7715 # options accordingly.
7716 echo 'int i;' > conftest.$ac_ext
7717 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7718 (eval $ac_compile) 2>&5
7719 ac_status=$?
7720 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7721 test $ac_status = 0; }; then
7722 case `$FILECMD conftest.$ac_objext` in
7723 *ELF-32*)
7724 HPUX_IA64_MODE=32
7725 ;;
7726 *ELF-64*)
7727 HPUX_IA64_MODE=64
7728 ;;
7729 esac
7730 fi
7731 rm -rf conftest*
7732 ;;
7733 *-*-irix6*)
7734 # Find out what ABI is being produced by ac_compile, and set linker
7735 # options accordingly.
7736 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7737 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7738 (eval $ac_compile) 2>&5
7739 ac_status=$?
7740 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7741 test $ac_status = 0; }; then
7742 if test yes = "$lt_cv_prog_gnu_ld"; then
7743 case `$FILECMD conftest.$ac_objext` in
7744 *32-bit*)
7745 LD="${LD-ld} -melf32bsmip"
7746 ;;
7747 *N32*)
7748 LD="${LD-ld} -melf32bmipn32"
7749 ;;
7750 *64-bit*)
7751 LD="${LD-ld} -melf64bmip"
7752 ;;
7753 esac
7754 else
7755 case `$FILECMD conftest.$ac_objext` in
7756 *32-bit*)
7757 LD="${LD-ld} -32"
7758 ;;
7759 *N32*)
7760 LD="${LD-ld} -n32"
7761 ;;
7762 *64-bit*)
7763 LD="${LD-ld} -64"
7764 ;;
7765 esac
7766 fi
7767 fi
7768 rm -rf conftest*
7769 ;;
7770
7771 mips64*-*linux*)
7772 # Find out what ABI is being produced by ac_compile, and set linker
7773 # options accordingly.
7774 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7775 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7776 (eval $ac_compile) 2>&5
7777 ac_status=$?
7778 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7779 test $ac_status = 0; }; then
7780 emul=elf
7781 case `$FILECMD conftest.$ac_objext` in
7782 *32-bit*)
7783 emul="${emul}32"
7784 ;;
7785 *64-bit*)
7786 emul="${emul}64"
7787 ;;
7788 esac
7789 case `$FILECMD conftest.$ac_objext` in
7790 *MSB*)
7791 emul="${emul}btsmip"
7792 ;;
7793 *LSB*)
7794 emul="${emul}ltsmip"
7795 ;;
7796 esac
7797 case `$FILECMD conftest.$ac_objext` in
7798 *N32*)
7799 emul="${emul}n32"
7800 ;;
7801 esac
7802 LD="${LD-ld} -m $emul"
7803 fi
7804 rm -rf conftest*
7805 ;;
7806
7807 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7808 s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
7809 # Find out what ABI is being produced by ac_compile, and set linker
7810 # options accordingly. Note that the listed cases only cover the
7811 # situations where additional linker options are needed (such as when
7812 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7813 # vice versa); the common cases where no linker options are needed do
7814 # not appear in the list.
7815 echo 'int i;' > conftest.$ac_ext
7816 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7817 (eval $ac_compile) 2>&5
7818 ac_status=$?
7819 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7820 test $ac_status = 0; }; then
7821 case `$FILECMD conftest.o` in
7822 *32-bit*)
7823 case $host in
7824 x86_64-*kfreebsd*-gnu)
7825 LD="${LD-ld} -m elf_i386_fbsd"
7826 ;;
7827 x86_64-*linux*|x86_64-gnu*)
7828 case `$FILECMD conftest.o` in
7829 *x86-64*)
7830 LD="${LD-ld} -m elf32_x86_64"
7831 ;;
7832 *)
7833 LD="${LD-ld} -m elf_i386"
7834 ;;
7835 esac
7836 ;;
7837 powerpc64le-*linux*)
7838 LD="${LD-ld} -m elf32lppclinux"
7839 ;;
7840 powerpc64-*linux*)
7841 LD="${LD-ld} -m elf32ppclinux"
7842 ;;
7843 s390x-*linux*)
7844 LD="${LD-ld} -m elf_s390"
7845 ;;
7846 sparc64-*linux*)
7847 LD="${LD-ld} -m elf32_sparc"
7848 ;;
7849 esac
7850 ;;
7851 *64-bit*)
7852 case $host in
7853 x86_64-*kfreebsd*-gnu)
7854 LD="${LD-ld} -m elf_x86_64_fbsd"
7855 ;;
7856 x86_64-*linux*|x86_64-gnu*)
7857 LD="${LD-ld} -m elf_x86_64"
7858 ;;
7859 powerpcle-*linux*)
7860 LD="${LD-ld} -m elf64lppc"
7861 ;;
7862 powerpc-*linux*)
7863 LD="${LD-ld} -m elf64ppc"
7864 ;;
7865 s390*-*linux*|s390*-*tpf*)
7866 LD="${LD-ld} -m elf64_s390"
7867 ;;
7868 sparc*-*linux*)
7869 LD="${LD-ld} -m elf64_sparc"
7870 ;;
7871 esac
7872 ;;
7873 esac
7874 fi
7875 rm -rf conftest*
7876 ;;
7877
7878 *-*-sco3.2v5*)
7879 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7880 SAVE_CFLAGS=$CFLAGS
7881 CFLAGS="$CFLAGS -belf"
7882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7883 printf %s "checking whether the C compiler needs -belf... " >&6; }
7884 if test ${lt_cv_cc_needs_belf+y}
7885 then :
7886 printf %s "(cached) " >&6
7887 else case e in #(
7888 e) ac_ext=c
7889 ac_cpp='$CPP $CPPFLAGS'
7890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7893
7894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7895 /* end confdefs.h. */
7896
7897 int
7898 main (void)
7899 {
7900
7901 ;
7902 return 0;
7903 }
7904 _ACEOF
7905 if ac_fn_c_try_link "$LINENO"
7906 then :
7907 lt_cv_cc_needs_belf=yes
7908 else case e in #(
7909 e) lt_cv_cc_needs_belf=no ;;
7910 esac
7911 fi
7912 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7913 conftest$ac_exeext conftest.$ac_ext
7914 ac_ext=c
7915 ac_cpp='$CPP $CPPFLAGS'
7916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7919 ;;
7920 esac
7921 fi
7922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7923 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7924 if test yes != "$lt_cv_cc_needs_belf"; then
7925 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7926 CFLAGS=$SAVE_CFLAGS
7927 fi
7928 ;;
7929 *-*solaris*)
7930 # Find out what ABI is being produced by ac_compile, and set linker
7931 # options accordingly.
7932 echo 'int i;' > conftest.$ac_ext
7933 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7934 (eval $ac_compile) 2>&5
7935 ac_status=$?
7936 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7937 test $ac_status = 0; }; then
7938 case `$FILECMD conftest.o` in
7939 *64-bit*)
7940 case $lt_cv_prog_gnu_ld in
7941 yes*)
7942 case $host in
7943 i?86-*-solaris*|x86_64-*-solaris*)
7944 LD="${LD-ld} -m elf_x86_64"
7945 ;;
7946 sparc*-*-solaris*)
7947 LD="${LD-ld} -m elf64_sparc"
7948 ;;
7949 esac
7950 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7951 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7952 LD=${LD-ld}_sol2
7953 fi
7954 ;;
7955 *)
7956 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7957 LD="${LD-ld} -64"
7958 fi
7959 ;;
7960 esac
7961 ;;
7962 esac
7963 fi
7964 rm -rf conftest*
7965 ;;
7966 esac
7967
7968 need_locks=$enable_libtool_lock
7969
7970 if test -n "$ac_tool_prefix"; then
7971 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7972 set dummy ${ac_tool_prefix}mt; ac_word=$2
7973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7974 printf %s "checking for $ac_word... " >&6; }
7975 if test ${ac_cv_prog_MANIFEST_TOOL+y}
7976 then :
7977 printf %s "(cached) " >&6
7978 else case e in #(
7979 e) if test -n "$MANIFEST_TOOL"; then
7980 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7981 else
7982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7983 for as_dir in $PATH
7984 do
7985 IFS=$as_save_IFS
7986 case $as_dir in #(((
7987 '') as_dir=./ ;;
7988 */) ;;
7989 *) as_dir=$as_dir/ ;;
7990 esac
7991 for ac_exec_ext in '' $ac_executable_extensions; do
7992 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7993 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7994 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7995 break 2
7996 fi
7997 done
7998 done
7999 IFS=$as_save_IFS
8000
8001 fi ;;
8002 esac
8003 fi
8004 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8005 if test -n "$MANIFEST_TOOL"; then
8006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8007 printf "%s\n" "$MANIFEST_TOOL" >&6; }
8008 else
8009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8010 printf "%s\n" "no" >&6; }
8011 fi
8012
8013
8014 fi
8015 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8016 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8017 # Extract the first word of "mt", so it can be a program name with args.
8018 set dummy mt; ac_word=$2
8019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8020 printf %s "checking for $ac_word... " >&6; }
8021 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8022 then :
8023 printf %s "(cached) " >&6
8024 else case e in #(
8025 e) if test -n "$ac_ct_MANIFEST_TOOL"; then
8026 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8027 else
8028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8029 for as_dir in $PATH
8030 do
8031 IFS=$as_save_IFS
8032 case $as_dir in #(((
8033 '') as_dir=./ ;;
8034 */) ;;
8035 *) as_dir=$as_dir/ ;;
8036 esac
8037 for ac_exec_ext in '' $ac_executable_extensions; do
8038 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8039 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8040 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8041 break 2
8042 fi
8043 done
8044 done
8045 IFS=$as_save_IFS
8046
8047 fi ;;
8048 esac
8049 fi
8050 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8051 if test -n "$ac_ct_MANIFEST_TOOL"; then
8052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8053 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
8054 else
8055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8056 printf "%s\n" "no" >&6; }
8057 fi
8058
8059 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8060 MANIFEST_TOOL=":"
8061 else
8062 case $cross_compiling:$ac_tool_warned in
8063 yes:)
8064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8065 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8066 ac_tool_warned=yes ;;
8067 esac
8068 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8069 fi
8070 else
8071 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8072 fi
8073
8074 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8076 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8077 if test ${lt_cv_path_manifest_tool+y}
8078 then :
8079 printf %s "(cached) " >&6
8080 else case e in #(
8081 e) lt_cv_path_manifest_tool=no
8082 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8083 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8084 cat conftest.err >&5
8085 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8086 lt_cv_path_manifest_tool=yes
8087 fi
8088 rm -f conftest* ;;
8089 esac
8090 fi
8091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5
8092 printf "%s\n" "$lt_cv_path_manifest_tool" >&6; }
8093 if test yes != "$lt_cv_path_manifest_tool"; then
8094 MANIFEST_TOOL=:
8095 fi
8096
8097
8098
8099
8100
8101
8102 case $host_os in
8103 rhapsody* | darwin*)
8104 if test -n "$ac_tool_prefix"; then
8105 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8106 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8108 printf %s "checking for $ac_word... " >&6; }
8109 if test ${ac_cv_prog_DSYMUTIL+y}
8110 then :
8111 printf %s "(cached) " >&6
8112 else case e in #(
8113 e) if test -n "$DSYMUTIL"; then
8114 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8115 else
8116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8117 for as_dir in $PATH
8118 do
8119 IFS=$as_save_IFS
8120 case $as_dir in #(((
8121 '') as_dir=./ ;;
8122 */) ;;
8123 *) as_dir=$as_dir/ ;;
8124 esac
8125 for ac_exec_ext in '' $ac_executable_extensions; do
8126 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8127 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8128 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8129 break 2
8130 fi
8131 done
8132 done
8133 IFS=$as_save_IFS
8134
8135 fi ;;
8136 esac
8137 fi
8138 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8139 if test -n "$DSYMUTIL"; then
8140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8141 printf "%s\n" "$DSYMUTIL" >&6; }
8142 else
8143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8144 printf "%s\n" "no" >&6; }
8145 fi
8146
8147
8148 fi
8149 if test -z "$ac_cv_prog_DSYMUTIL"; then
8150 ac_ct_DSYMUTIL=$DSYMUTIL
8151 # Extract the first word of "dsymutil", so it can be a program name with args.
8152 set dummy dsymutil; ac_word=$2
8153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8154 printf %s "checking for $ac_word... " >&6; }
8155 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8156 then :
8157 printf %s "(cached) " >&6
8158 else case e in #(
8159 e) if test -n "$ac_ct_DSYMUTIL"; then
8160 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8161 else
8162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8163 for as_dir in $PATH
8164 do
8165 IFS=$as_save_IFS
8166 case $as_dir in #(((
8167 '') as_dir=./ ;;
8168 */) ;;
8169 *) as_dir=$as_dir/ ;;
8170 esac
8171 for ac_exec_ext in '' $ac_executable_extensions; do
8172 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8173 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8174 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8175 break 2
8176 fi
8177 done
8178 done
8179 IFS=$as_save_IFS
8180
8181 fi ;;
8182 esac
8183 fi
8184 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8185 if test -n "$ac_ct_DSYMUTIL"; then
8186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8187 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8188 else
8189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8190 printf "%s\n" "no" >&6; }
8191 fi
8192
8193 if test "x$ac_ct_DSYMUTIL" = x; then
8194 DSYMUTIL=":"
8195 else
8196 case $cross_compiling:$ac_tool_warned in
8197 yes:)
8198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8199 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8200 ac_tool_warned=yes ;;
8201 esac
8202 DSYMUTIL=$ac_ct_DSYMUTIL
8203 fi
8204 else
8205 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8206 fi
8207
8208 if test -n "$ac_tool_prefix"; then
8209 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8210 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8212 printf %s "checking for $ac_word... " >&6; }
8213 if test ${ac_cv_prog_NMEDIT+y}
8214 then :
8215 printf %s "(cached) " >&6
8216 else case e in #(
8217 e) if test -n "$NMEDIT"; then
8218 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8219 else
8220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8221 for as_dir in $PATH
8222 do
8223 IFS=$as_save_IFS
8224 case $as_dir in #(((
8225 '') as_dir=./ ;;
8226 */) ;;
8227 *) as_dir=$as_dir/ ;;
8228 esac
8229 for ac_exec_ext in '' $ac_executable_extensions; do
8230 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8231 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8232 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8233 break 2
8234 fi
8235 done
8236 done
8237 IFS=$as_save_IFS
8238
8239 fi ;;
8240 esac
8241 fi
8242 NMEDIT=$ac_cv_prog_NMEDIT
8243 if test -n "$NMEDIT"; then
8244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8245 printf "%s\n" "$NMEDIT" >&6; }
8246 else
8247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8248 printf "%s\n" "no" >&6; }
8249 fi
8250
8251
8252 fi
8253 if test -z "$ac_cv_prog_NMEDIT"; then
8254 ac_ct_NMEDIT=$NMEDIT
8255 # Extract the first word of "nmedit", so it can be a program name with args.
8256 set dummy nmedit; ac_word=$2
8257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8258 printf %s "checking for $ac_word... " >&6; }
8259 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8260 then :
8261 printf %s "(cached) " >&6
8262 else case e in #(
8263 e) if test -n "$ac_ct_NMEDIT"; then
8264 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8265 else
8266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8267 for as_dir in $PATH
8268 do
8269 IFS=$as_save_IFS
8270 case $as_dir in #(((
8271 '') as_dir=./ ;;
8272 */) ;;
8273 *) as_dir=$as_dir/ ;;
8274 esac
8275 for ac_exec_ext in '' $ac_executable_extensions; do
8276 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8277 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8278 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8279 break 2
8280 fi
8281 done
8282 done
8283 IFS=$as_save_IFS
8284
8285 fi ;;
8286 esac
8287 fi
8288 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8289 if test -n "$ac_ct_NMEDIT"; then
8290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8291 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8292 else
8293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8294 printf "%s\n" "no" >&6; }
8295 fi
8296
8297 if test "x$ac_ct_NMEDIT" = x; then
8298 NMEDIT=":"
8299 else
8300 case $cross_compiling:$ac_tool_warned in
8301 yes:)
8302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8303 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8304 ac_tool_warned=yes ;;
8305 esac
8306 NMEDIT=$ac_ct_NMEDIT
8307 fi
8308 else
8309 NMEDIT="$ac_cv_prog_NMEDIT"
8310 fi
8311
8312 if test -n "$ac_tool_prefix"; then
8313 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8314 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8316 printf %s "checking for $ac_word... " >&6; }
8317 if test ${ac_cv_prog_LIPO+y}
8318 then :
8319 printf %s "(cached) " >&6
8320 else case e in #(
8321 e) if test -n "$LIPO"; then
8322 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8323 else
8324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8325 for as_dir in $PATH
8326 do
8327 IFS=$as_save_IFS
8328 case $as_dir in #(((
8329 '') as_dir=./ ;;
8330 */) ;;
8331 *) as_dir=$as_dir/ ;;
8332 esac
8333 for ac_exec_ext in '' $ac_executable_extensions; do
8334 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8335 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8336 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8337 break 2
8338 fi
8339 done
8340 done
8341 IFS=$as_save_IFS
8342
8343 fi ;;
8344 esac
8345 fi
8346 LIPO=$ac_cv_prog_LIPO
8347 if test -n "$LIPO"; then
8348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8349 printf "%s\n" "$LIPO" >&6; }
8350 else
8351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8352 printf "%s\n" "no" >&6; }
8353 fi
8354
8355
8356 fi
8357 if test -z "$ac_cv_prog_LIPO"; then
8358 ac_ct_LIPO=$LIPO
8359 # Extract the first word of "lipo", so it can be a program name with args.
8360 set dummy lipo; ac_word=$2
8361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8362 printf %s "checking for $ac_word... " >&6; }
8363 if test ${ac_cv_prog_ac_ct_LIPO+y}
8364 then :
8365 printf %s "(cached) " >&6
8366 else case e in #(
8367 e) if test -n "$ac_ct_LIPO"; then
8368 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8369 else
8370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8371 for as_dir in $PATH
8372 do
8373 IFS=$as_save_IFS
8374 case $as_dir in #(((
8375 '') as_dir=./ ;;
8376 */) ;;
8377 *) as_dir=$as_dir/ ;;
8378 esac
8379 for ac_exec_ext in '' $ac_executable_extensions; do
8380 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8381 ac_cv_prog_ac_ct_LIPO="lipo"
8382 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8383 break 2
8384 fi
8385 done
8386 done
8387 IFS=$as_save_IFS
8388
8389 fi ;;
8390 esac
8391 fi
8392 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8393 if test -n "$ac_ct_LIPO"; then
8394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8395 printf "%s\n" "$ac_ct_LIPO" >&6; }
8396 else
8397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8398 printf "%s\n" "no" >&6; }
8399 fi
8400
8401 if test "x$ac_ct_LIPO" = x; then
8402 LIPO=":"
8403 else
8404 case $cross_compiling:$ac_tool_warned in
8405 yes:)
8406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8407 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8408 ac_tool_warned=yes ;;
8409 esac
8410 LIPO=$ac_ct_LIPO
8411 fi
8412 else
8413 LIPO="$ac_cv_prog_LIPO"
8414 fi
8415
8416 if test -n "$ac_tool_prefix"; then
8417 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8418 set dummy ${ac_tool_prefix}otool; ac_word=$2
8419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8420 printf %s "checking for $ac_word... " >&6; }
8421 if test ${ac_cv_prog_OTOOL+y}
8422 then :
8423 printf %s "(cached) " >&6
8424 else case e in #(
8425 e) if test -n "$OTOOL"; then
8426 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8427 else
8428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8429 for as_dir in $PATH
8430 do
8431 IFS=$as_save_IFS
8432 case $as_dir in #(((
8433 '') as_dir=./ ;;
8434 */) ;;
8435 *) as_dir=$as_dir/ ;;
8436 esac
8437 for ac_exec_ext in '' $ac_executable_extensions; do
8438 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8439 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8440 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8441 break 2
8442 fi
8443 done
8444 done
8445 IFS=$as_save_IFS
8446
8447 fi ;;
8448 esac
8449 fi
8450 OTOOL=$ac_cv_prog_OTOOL
8451 if test -n "$OTOOL"; then
8452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8453 printf "%s\n" "$OTOOL" >&6; }
8454 else
8455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8456 printf "%s\n" "no" >&6; }
8457 fi
8458
8459
8460 fi
8461 if test -z "$ac_cv_prog_OTOOL"; then
8462 ac_ct_OTOOL=$OTOOL
8463 # Extract the first word of "otool", so it can be a program name with args.
8464 set dummy otool; ac_word=$2
8465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8466 printf %s "checking for $ac_word... " >&6; }
8467 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8468 then :
8469 printf %s "(cached) " >&6
8470 else case e in #(
8471 e) if test -n "$ac_ct_OTOOL"; then
8472 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8473 else
8474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8475 for as_dir in $PATH
8476 do
8477 IFS=$as_save_IFS
8478 case $as_dir in #(((
8479 '') as_dir=./ ;;
8480 */) ;;
8481 *) as_dir=$as_dir/ ;;
8482 esac
8483 for ac_exec_ext in '' $ac_executable_extensions; do
8484 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8485 ac_cv_prog_ac_ct_OTOOL="otool"
8486 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8487 break 2
8488 fi
8489 done
8490 done
8491 IFS=$as_save_IFS
8492
8493 fi ;;
8494 esac
8495 fi
8496 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8497 if test -n "$ac_ct_OTOOL"; then
8498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8499 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8500 else
8501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8502 printf "%s\n" "no" >&6; }
8503 fi
8504
8505 if test "x$ac_ct_OTOOL" = x; then
8506 OTOOL=":"
8507 else
8508 case $cross_compiling:$ac_tool_warned in
8509 yes:)
8510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8511 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8512 ac_tool_warned=yes ;;
8513 esac
8514 OTOOL=$ac_ct_OTOOL
8515 fi
8516 else
8517 OTOOL="$ac_cv_prog_OTOOL"
8518 fi
8519
8520 if test -n "$ac_tool_prefix"; then
8521 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8522 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8524 printf %s "checking for $ac_word... " >&6; }
8525 if test ${ac_cv_prog_OTOOL64+y}
8526 then :
8527 printf %s "(cached) " >&6
8528 else case e in #(
8529 e) if test -n "$OTOOL64"; then
8530 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8531 else
8532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8533 for as_dir in $PATH
8534 do
8535 IFS=$as_save_IFS
8536 case $as_dir in #(((
8537 '') as_dir=./ ;;
8538 */) ;;
8539 *) as_dir=$as_dir/ ;;
8540 esac
8541 for ac_exec_ext in '' $ac_executable_extensions; do
8542 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8543 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8544 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8545 break 2
8546 fi
8547 done
8548 done
8549 IFS=$as_save_IFS
8550
8551 fi ;;
8552 esac
8553 fi
8554 OTOOL64=$ac_cv_prog_OTOOL64
8555 if test -n "$OTOOL64"; then
8556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8557 printf "%s\n" "$OTOOL64" >&6; }
8558 else
8559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8560 printf "%s\n" "no" >&6; }
8561 fi
8562
8563
8564 fi
8565 if test -z "$ac_cv_prog_OTOOL64"; then
8566 ac_ct_OTOOL64=$OTOOL64
8567 # Extract the first word of "otool64", so it can be a program name with args.
8568 set dummy otool64; ac_word=$2
8569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8570 printf %s "checking for $ac_word... " >&6; }
8571 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8572 then :
8573 printf %s "(cached) " >&6
8574 else case e in #(
8575 e) if test -n "$ac_ct_OTOOL64"; then
8576 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8577 else
8578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8579 for as_dir in $PATH
8580 do
8581 IFS=$as_save_IFS
8582 case $as_dir in #(((
8583 '') as_dir=./ ;;
8584 */) ;;
8585 *) as_dir=$as_dir/ ;;
8586 esac
8587 for ac_exec_ext in '' $ac_executable_extensions; do
8588 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8589 ac_cv_prog_ac_ct_OTOOL64="otool64"
8590 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8591 break 2
8592 fi
8593 done
8594 done
8595 IFS=$as_save_IFS
8596
8597 fi ;;
8598 esac
8599 fi
8600 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8601 if test -n "$ac_ct_OTOOL64"; then
8602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8603 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8604 else
8605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8606 printf "%s\n" "no" >&6; }
8607 fi
8608
8609 if test "x$ac_ct_OTOOL64" = x; then
8610 OTOOL64=":"
8611 else
8612 case $cross_compiling:$ac_tool_warned in
8613 yes:)
8614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8615 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8616 ac_tool_warned=yes ;;
8617 esac
8618 OTOOL64=$ac_ct_OTOOL64
8619 fi
8620 else
8621 OTOOL64="$ac_cv_prog_OTOOL64"
8622 fi
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8651 printf %s "checking for -single_module linker flag... " >&6; }
8652 if test ${lt_cv_apple_cc_single_mod+y}
8653 then :
8654 printf %s "(cached) " >&6
8655 else case e in #(
8656 e) lt_cv_apple_cc_single_mod=no
8657 if test -z "$LT_MULTI_MODULE"; then
8658 # By default we will add the -single_module flag. You can override
8659 # by either setting the environment variable LT_MULTI_MODULE
8660 # non-empty at configure time, or by adding -multi_module to the
8661 # link flags.
8662 rm -rf libconftest.dylib*
8663 echo "int foo(void){return 1;}" > conftest.c
8664 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8665 -dynamiclib -Wl,-single_module conftest.c" >&5
8666 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8667 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8668 _lt_result=$?
8669 # If there is a non-empty error log, and "single_module"
8670 # appears in it, assume the flag caused a linker warning
8671 if test -s conftest.err && $GREP single_module conftest.err; then
8672 cat conftest.err >&5
8673 # Otherwise, if the output was created with a 0 exit code from
8674 # the compiler, it worked.
8675 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8676 lt_cv_apple_cc_single_mod=yes
8677 else
8678 cat conftest.err >&5
8679 fi
8680 rm -rf libconftest.dylib*
8681 rm -f conftest.*
8682 fi ;;
8683 esac
8684 fi
8685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8686 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8687
8688 # Feature test to disable chained fixups since it is not
8689 # compatible with '-undefined dynamic_lookup'
8690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
8691 printf %s "checking for -no_fixup_chains linker flag... " >&6; }
8692 if test ${lt_cv_support_no_fixup_chains+y}
8693 then :
8694 printf %s "(cached) " >&6
8695 else case e in #(
8696 e) save_LDFLAGS=$LDFLAGS
8697 LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
8698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8699 /* end confdefs.h. */
8700
8701 int
8702 main (void)
8703 {
8704
8705 ;
8706 return 0;
8707 }
8708 _ACEOF
8709 if ac_fn_c_try_link "$LINENO"
8710 then :
8711 lt_cv_support_no_fixup_chains=yes
8712 else case e in #(
8713 e) lt_cv_support_no_fixup_chains=no
8714 ;;
8715 esac
8716 fi
8717 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8718 conftest$ac_exeext conftest.$ac_ext
8719 LDFLAGS=$save_LDFLAGS
8720
8721 ;;
8722 esac
8723 fi
8724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
8725 printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; }
8726
8727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8728 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8729 if test ${lt_cv_ld_exported_symbols_list+y}
8730 then :
8731 printf %s "(cached) " >&6
8732 else case e in #(
8733 e) lt_cv_ld_exported_symbols_list=no
8734 save_LDFLAGS=$LDFLAGS
8735 echo "_main" > conftest.sym
8736 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8738 /* end confdefs.h. */
8739
8740 int
8741 main (void)
8742 {
8743
8744 ;
8745 return 0;
8746 }
8747 _ACEOF
8748 if ac_fn_c_try_link "$LINENO"
8749 then :
8750 lt_cv_ld_exported_symbols_list=yes
8751 else case e in #(
8752 e) lt_cv_ld_exported_symbols_list=no ;;
8753 esac
8754 fi
8755 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8756 conftest$ac_exeext conftest.$ac_ext
8757 LDFLAGS=$save_LDFLAGS
8758 ;;
8759 esac
8760 fi
8761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8762 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8763
8764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8765 printf %s "checking for -force_load linker flag... " >&6; }
8766 if test ${lt_cv_ld_force_load+y}
8767 then :
8768 printf %s "(cached) " >&6
8769 else case e in #(
8770 e) lt_cv_ld_force_load=no
8771 cat > conftest.c << _LT_EOF
8772 int forced_loaded() { return 2;}
8773 _LT_EOF
8774 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8775 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8776 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8777 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8778 echo "$RANLIB libconftest.a" >&5
8779 $RANLIB libconftest.a 2>&5
8780 cat > conftest.c << _LT_EOF
8781 int main(void) { return 0;}
8782 _LT_EOF
8783 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8784 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8785 _lt_result=$?
8786 if test -s conftest.err && $GREP force_load conftest.err; then
8787 cat conftest.err >&5
8788 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8789 lt_cv_ld_force_load=yes
8790 else
8791 cat conftest.err >&5
8792 fi
8793 rm -f conftest.err libconftest.a conftest conftest.c
8794 rm -rf conftest.dSYM
8795 ;;
8796 esac
8797 fi
8798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8799 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8800 case $host_os in
8801 rhapsody* | darwin1.[012])
8802 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8803 darwin1.*)
8804 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8805 darwin*)
8806 case $MACOSX_DEPLOYMENT_TARGET,$host in
8807 10.[012],*|,*powerpc*-darwin[5-8]*)
8808 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8809 *)
8810 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
8811 if test yes = "$lt_cv_support_no_fixup_chains"; then
8812 as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'
8813 fi
8814 ;;
8815 esac
8816 ;;
8817 esac
8818 if test yes = "$lt_cv_apple_cc_single_mod"; then
8819 _lt_dar_single_mod='$single_module'
8820 fi
8821 _lt_dar_needs_single_mod=no
8822 case $host_os in
8823 rhapsody* | darwin1.*)
8824 _lt_dar_needs_single_mod=yes ;;
8825 darwin*)
8826 # When targeting Mac OS X 10.4 (darwin 8) or later,
8827 # -single_module is the default and -multi_module is unsupported.
8828 # The toolchain on macOS 10.14 (darwin 18) and later cannot
8829 # target any OS version that needs -single_module.
8830 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8831 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*)
8832 _lt_dar_needs_single_mod=yes ;;
8833 esac
8834 ;;
8835 esac
8836 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8837 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8838 else
8839 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8840 fi
8841 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8842 _lt_dsymutil='~$DSYMUTIL $lib || :'
8843 else
8844 _lt_dsymutil=
8845 fi
8846 ;;
8847 esac
8848
8849 # func_munge_path_list VARIABLE PATH
8850 # -----------------------------------
8851 # VARIABLE is name of variable containing _space_ separated list of
8852 # directories to be munged by the contents of PATH, which is string
8853 # having a format:
8854 # "DIR[:DIR]:"
8855 # string "DIR[ DIR]" will be prepended to VARIABLE
8856 # ":DIR[:DIR]"
8857 # string "DIR[ DIR]" will be appended to VARIABLE
8858 # "DIRP[:DIRP]::[DIRA:]DIRA"
8859 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8860 # "DIRA[ DIRA]" will be appended to VARIABLE
8861 # "DIR[:DIR]"
8862 # VARIABLE will be replaced by "DIR[ DIR]"
8863 func_munge_path_list ()
8864 {
8865 case x$2 in
8866 x)
8867 ;;
8868 *:)
8869 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8870 ;;
8871 x:*)
8872 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8873 ;;
8874 *::*)
8875 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8876 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8877 ;;
8878 *)
8879 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8880 ;;
8881 esac
8882 }
8883
8884 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8885 "
8886 if test "x$ac_cv_header_dlfcn_h" = xyes
8887 then :
8888 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8889
8890 fi
8891
8892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
8893 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
8894 if test ${ac_cv_c_undeclared_builtin_options+y}
8895 then :
8896 printf %s "(cached) " >&6
8897 else case e in #(
8898 e) ac_save_CFLAGS=$CFLAGS
8899 ac_cv_c_undeclared_builtin_options='cannot detect'
8900 for ac_arg in '' -fno-builtin; do
8901 CFLAGS="$ac_save_CFLAGS $ac_arg"
8902 # This test program should *not* compile successfully.
8903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8904 /* end confdefs.h. */
8905
8906 int
8907 main (void)
8908 {
8909 (void) strchr;
8910 ;
8911 return 0;
8912 }
8913 _ACEOF
8914 if ac_fn_c_try_compile "$LINENO"
8915 then :
8916
8917 else case e in #(
8918 e) # This test program should compile successfully.
8919 # No library function is consistently available on
8920 # freestanding implementations, so test against a dummy
8921 # declaration. Include always-available headers on the
8922 # off chance that they somehow elicit warnings.
8923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8924 /* end confdefs.h. */
8925 #include <float.h>
8926 #include <limits.h>
8927 #include <stdarg.h>
8928 #include <stddef.h>
8929 extern void ac_decl (int, char *);
8930
8931 int
8932 main (void)
8933 {
8934 (void) ac_decl (0, (char *) 0);
8935 (void) ac_decl;
8936
8937 ;
8938 return 0;
8939 }
8940 _ACEOF
8941 if ac_fn_c_try_compile "$LINENO"
8942 then :
8943 if test x"$ac_arg" = x
8944 then :
8945 ac_cv_c_undeclared_builtin_options='none needed'
8946 else case e in #(
8947 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
8948 esac
8949 fi
8950 break
8951 fi
8952 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8953 esac
8954 fi
8955 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8956 done
8957 CFLAGS=$ac_save_CFLAGS
8958 ;;
8959 esac
8960 fi
8961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
8962 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
8963 case $ac_cv_c_undeclared_builtin_options in #(
8964 'cannot detect') :
8965 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
8966 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
8967 as_fn_error $? "cannot make $CC report undeclared builtins
8968 See 'config.log' for more details" "$LINENO" 5; } ;; #(
8969 'none needed') :
8970 ac_c_undeclared_builtin_options='' ;; #(
8971 *) :
8972 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
8973 esac
8974
8975 echo 'tldbg:KPSE_COMMON called (pkg=makeindexk, amopt=no-define)' >&5
8976 echo 'tldbg:KPSE_BASIC called (pkg=makeindexk, amopt=no-define)' >&5
8977
8978 #
8979 # am_init_automake
8980 if test "`cd $srcdir && pwd`" != "`pwd`"; then
8981 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
8982 # is not polluted with repeated "-I."
8983 am__isrc=' -I$(srcdir)'
8984 # test to see if srcdir already configured
8985 if test -f $srcdir/config.status; then
8986 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
8987 fi
8988 fi
8989
8990 # test whether we have cygpath
8991 if test -z "$CYGPATH_W"; then
8992 if (cygpath --version) >/dev/null 2>/dev/null; then
8993 CYGPATH_W='cygpath -w'
8994 else
8995 CYGPATH_W=echo
8996 fi
8997 fi
8998
8999
9000 # Define the identity of the package.
9001 PACKAGE='makeindex--tex-live-'
9002 VERSION='2.18'
9003
9004
9005 # Some tools Automake needs.
9006
9007 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
9008
9009
9010 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
9011
9012
9013 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
9014
9015
9016 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
9017
9018
9019 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
9020
9021 # For better backward compatibility. To be removed once Automake 1.9.x
9022 # dies out for good. For more background, see:
9023 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
9024 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
9025 mkdir_p='$(MKDIR_P)'
9026
9027 # We need awk for the "check" target (and possibly the TAP driver). The
9028 # system "awk" is bad on some platforms.
9029 # Always define AMTAR for backward compatibility. Yes, it's still used
9030 # in the wild :-( We should find a proper way to deprecate it ...
9031 AMTAR='$${TAR-tar}'
9032
9033
9034 # We'll loop over all known methods to create a tar archive until one works.
9035 _am_tools='gnutar plaintar pax cpio none'
9036
9037 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
9038 # There is notably a 21 bits limit for the UID and the GID. In fact,
9039 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
9040 # and bug#13588).
9041 am_max_uid=2097151 # 2^21 - 1
9042 am_max_gid=$am_max_uid
9043 # The $UID and $GID variables are not portable, so we need to resort
9044 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
9045 # below are definitely unexpected, so allow the users to see them
9046 # (that is, avoid stderr redirection).
9047 am_uid=`id -u || echo unknown`
9048 am_gid=`id -g || echo unknown`
9049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
9050 printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
9051 if test x$am_uid = xunknown; then
9052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&5
9053 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&2;}
9054 elif test $am_uid -le $am_max_uid; then
9055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9056 printf "%s\n" "yes" >&6; }
9057 else
9058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9059 printf "%s\n" "no" >&6; }
9060 _am_tools=none
9061 fi
9062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
9063 printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
9064 if test x$gm_gid = xunknown; then
9065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&5
9066 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&2;}
9067 elif test $am_gid -le $am_max_gid; then
9068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9069 printf "%s\n" "yes" >&6; }
9070 else
9071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9072 printf "%s\n" "no" >&6; }
9073 _am_tools=none
9074 fi
9075
9076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
9077 printf %s "checking how to create a ustar tar archive... " >&6; }
9078
9079 # Go ahead even if we have the value already cached. We do so because we
9080 # need to set the values for the 'am__tar' and 'am__untar' variables.
9081 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
9082
9083 for _am_tool in $_am_tools; do
9084 case $_am_tool in
9085 gnutar)
9086 for _am_tar in tar gnutar gtar; do
9087 { echo "$as_me:$LINENO: $_am_tar --version" >&5
9088 ($_am_tar --version) >&5 2>&5
9089 ac_status=$?
9090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9091 (exit $ac_status); } && break
9092 done
9093 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
9094 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
9095 am__untar="$_am_tar -xf -"
9096 ;;
9097 plaintar)
9098 # Must skip GNU tar: if it does not support --format= it doesn't create
9099 # ustar tarball either.
9100 (tar --version) >/dev/null 2>&1 && continue
9101 am__tar='tar chf - "$$tardir"'
9102 am__tar_='tar chf - "$tardir"'
9103 am__untar='tar xf -'
9104 ;;
9105 pax)
9106 am__tar='pax -L -x ustar -w "$$tardir"'
9107 am__tar_='pax -L -x ustar -w "$tardir"'
9108 am__untar='pax -r'
9109 ;;
9110 cpio)
9111 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
9112 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
9113 am__untar='cpio -i -H ustar -d'
9114 ;;
9115 none)
9116 am__tar=false
9117 am__tar_=false
9118 am__untar=false
9119 ;;
9120 esac
9121
9122 # If the value was cached, stop now. We just wanted to have am__tar
9123 # and am__untar set.
9124 test -n "${am_cv_prog_tar_ustar}" && break
9125
9126 # tar/untar a dummy directory, and stop if the command works.
9127 rm -rf conftest.dir
9128 mkdir conftest.dir
9129 echo GrepMe > conftest.dir/file
9130 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
9131 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
9132 ac_status=$?
9133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9134 (exit $ac_status); }
9135 rm -rf conftest.dir
9136 if test -s conftest.tar; then
9137 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
9138 ($am__untar <conftest.tar) >&5 2>&5
9139 ac_status=$?
9140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9141 (exit $ac_status); }
9142 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
9143 (cat conftest.dir/file) >&5 2>&5
9144 ac_status=$?
9145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9146 (exit $ac_status); }
9147 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
9148 fi
9149 done
9150 rm -rf conftest.dir
9151
9152 if test ${am_cv_prog_tar_ustar+y}
9153 then :
9154 printf %s "(cached) " >&6
9155 else case e in #(
9156 e) am_cv_prog_tar_ustar=$_am_tool ;;
9157 esac
9158 fi
9159
9160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
9161 printf "%s\n" "$am_cv_prog_tar_ustar" >&6; }
9162
9163
9164
9165
9166
9167 # Variables for tags utilities; see am/tags.am
9168 if test -z "$CTAGS"; then
9169 CTAGS=ctags
9170 fi
9171
9172 if test -z "$ETAGS"; then
9173 ETAGS=etags
9174 fi
9175
9176 if test -z "$CSCOPE"; then
9177 CSCOPE=cscope
9178 fi
9179
9180
9181
9182
9183
9184
9185
9186
9187 # am_maintainer_mode
9188
9189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
9190 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
9191 # Check whether --enable-maintainer-mode was given.
9192 if test ${enable_maintainer_mode+y}
9193 then :
9194 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
9195 else case e in #(
9196 e) USE_MAINTAINER_MODE=no ;;
9197 esac
9198 fi
9199
9200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
9201 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
9202 if test $USE_MAINTAINER_MODE = yes; then
9203 MAINTAINER_MODE_TRUE=
9204 MAINTAINER_MODE_FALSE='#'
9205 else
9206 MAINTAINER_MODE_TRUE='#'
9207 MAINTAINER_MODE_FALSE=
9208 fi
9209
9210 MAINT=$MAINTAINER_MODE_TRUE
9211
9212
9213
9214 # See comments in kpse-setup.m4 about system extensions.
9215
9216
9217 # Check whether prototypes work.
9218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts prototypes" >&5
9219 printf %s "checking whether the compiler accepts prototypes... " >&6; }
9220 if test ${kb_cv_c_prototypes+y}
9221 then :
9222 printf %s "(cached) " >&6
9223 else case e in #(
9224 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9225 /* end confdefs.h. */
9226 #include <stdarg.h>
9227 int
9228 main (void)
9229 {
9230 extern void foo(int i,...);
9231 ;
9232 return 0;
9233 }
9234 _ACEOF
9235 if ac_fn_c_try_link "$LINENO"
9236 then :
9237 kb_cv_c_prototypes=yes
9238 else case e in #(
9239 e) kb_cv_c_prototypes=no ;;
9240 esac
9241 fi
9242 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9243 conftest$ac_exeext conftest.$ac_ext ;;
9244 esac
9245 fi
9246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kb_cv_c_prototypes" >&5
9247 printf "%s\n" "$kb_cv_c_prototypes" >&6; }
9248 if test "x$kb_cv_c_prototypes" = xno; then
9249 as_fn_error $? "Sorry, your compiler does not understand prototypes." "$LINENO" 5
9250 fi
9251
9252 # kpse_compiler_warnings options.
9253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking what warning flags to pass to the C compiler" >&5
9254 printf %s "checking what warning flags to pass to the C compiler... " >&6; }
9255 if test ${kpse_cv_warning_cflags+y}
9256 then :
9257 printf %s "(cached) " >&6
9258 else case e in #(
9259 e) if test "x$GCC" = xyes; then
9260 kpse_cv_warning_cflags=
9261 if test "x$enable_compiler_warnings" != xno; then
9262 kpse_cv_warning_cflags="-Wimplicit -Wreturn-type"
9263 case `$CC -dumpversion` in #(
9264 3.4.* | 4.* | 5.*) :
9265 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wdeclaration-after-statement" ;; #(
9266 *) :
9267 ;;
9268 esac
9269 case `$CC -dumpversion` in #(
9270 3.[234].* | 4.* | 5.*) :
9271 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wno-unknown-pragmas" ;; #(
9272 *) :
9273 ;;
9274 esac
9275 if test "x$enable_compiler_warnings" != xmin; then
9276 kpse_cv_warning_cflags="-Wall -Wunused $kpse_cv_warning_cflags"
9277 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wmissing-prototypes -Wmissing-declarations"
9278 if test "x$enable_compiler_warnings" != xyes; then
9279 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wparentheses -Wswitch -Wtrigraphs -Wpointer-arith"
9280 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wcast-qual -Wcast-align -Wwrite-strings"
9281 case `$CC -dumpversion` in #(
9282 3.4.* | 4.* | 5.*) :
9283 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wold-style-definition" ;; #(
9284 *) :
9285 ;;
9286 esac
9287 if test "x$enable_compiler_warnings" != xmax; then
9288 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wshadow"
9289 fi
9290 fi
9291 fi
9292 fi
9293 elif test "x$enable_compiler_warnings" = xno; then
9294 kpse_cv_warning_cflags=
9295 else
9296 kpse_cv_warning_cflags= # FIXME: warning flags for non-GNU C compilers
9297 fi ;;
9298 esac
9299 fi
9300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_warning_cflags" >&5
9301 printf "%s\n" "$kpse_cv_warning_cflags" >&6; }
9302 WARNING_CFLAGS=$kpse_cv_warning_cflags
9303
9304
9305
9306
9307
9308
9309
9310 # end of kpse_basic macro.
9311 echo 'tldbg:KPSE_BASIC done (pkg=makeindexk, amopt=no-define)' >&5
9312
9313 # am_prog_ar must be called before lt_init.
9314
9315 if test -n "$ac_tool_prefix"; then
9316 for ac_prog in ar lib "link -lib"
9317 do
9318 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9319 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9321 printf %s "checking for $ac_word... " >&6; }
9322 if test ${ac_cv_prog_AR+y}
9323 then :
9324 printf %s "(cached) " >&6
9325 else case e in #(
9326 e) if test -n "$AR"; then
9327 ac_cv_prog_AR="$AR" # Let the user override the test.
9328 else
9329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9330 for as_dir in $PATH
9331 do
9332 IFS=$as_save_IFS
9333 case $as_dir in #(((
9334 '') as_dir=./ ;;
9335 */) ;;
9336 *) as_dir=$as_dir/ ;;
9337 esac
9338 for ac_exec_ext in '' $ac_executable_extensions; do
9339 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9340 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
9341 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9342 break 2
9343 fi
9344 done
9345 done
9346 IFS=$as_save_IFS
9347
9348 fi ;;
9349 esac
9350 fi
9351 AR=$ac_cv_prog_AR
9352 if test -n "$AR"; then
9353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9354 printf "%s\n" "$AR" >&6; }
9355 else
9356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9357 printf "%s\n" "no" >&6; }
9358 fi
9359
9360
9361 test -n "$AR" && break
9362 done
9363 fi
9364 if test -z "$AR"; then
9365 ac_ct_AR=$AR
9366 for ac_prog in ar lib "link -lib"
9367 do
9368 # Extract the first word of "$ac_prog", so it can be a program name with args.
9369 set dummy $ac_prog; ac_word=$2
9370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9371 printf %s "checking for $ac_word... " >&6; }
9372 if test ${ac_cv_prog_ac_ct_AR+y}
9373 then :
9374 printf %s "(cached) " >&6
9375 else case e in #(
9376 e) if test -n "$ac_ct_AR"; then
9377 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9378 else
9379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9380 for as_dir in $PATH
9381 do
9382 IFS=$as_save_IFS
9383 case $as_dir in #(((
9384 '') as_dir=./ ;;
9385 */) ;;
9386 *) as_dir=$as_dir/ ;;
9387 esac
9388 for ac_exec_ext in '' $ac_executable_extensions; do
9389 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9390 ac_cv_prog_ac_ct_AR="$ac_prog"
9391 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9392 break 2
9393 fi
9394 done
9395 done
9396 IFS=$as_save_IFS
9397
9398 fi ;;
9399 esac
9400 fi
9401 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9402 if test -n "$ac_ct_AR"; then
9403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9404 printf "%s\n" "$ac_ct_AR" >&6; }
9405 else
9406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9407 printf "%s\n" "no" >&6; }
9408 fi
9409
9410
9411 test -n "$ac_ct_AR" && break
9412 done
9413
9414 if test "x$ac_ct_AR" = x; then
9415 AR="false"
9416 else
9417 case $cross_compiling:$ac_tool_warned in
9418 yes:)
9419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9420 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9421 ac_tool_warned=yes ;;
9422 esac
9423 AR=$ac_ct_AR
9424 fi
9425 fi
9426
9427 : ${AR=ar}
9428 : ${ARFLAGS=cr}
9429
9430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
9431 printf %s "checking the archiver ($AR) interface... " >&6; }
9432 if test ${am_cv_ar_interface+y}
9433 then :
9434 printf %s "(cached) " >&6
9435 else case e in #(
9436 e) ac_ext=c
9437 ac_cpp='$CPP $CPPFLAGS'
9438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9441
9442 am_cv_ar_interface=ar
9443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9444 /* end confdefs.h. */
9445 int some_variable = 0;
9446 _ACEOF
9447 if ac_fn_c_try_compile "$LINENO"
9448 then :
9449 am_ar_try='$AR $ARFLAGS libconftest.a conftest.$ac_objext >&5'
9450 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
9451 (eval $am_ar_try) 2>&5
9452 ac_status=$?
9453 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9454 test $ac_status = 0; }
9455 if test "$ac_status" -eq 0; then
9456 am_cv_ar_interface=ar
9457 else
9458 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
9459 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
9460 (eval $am_ar_try) 2>&5
9461 ac_status=$?
9462 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9463 test $ac_status = 0; }
9464 if test "$ac_status" -eq 0; then
9465 am_cv_ar_interface=lib
9466 else
9467 am_cv_ar_interface=unknown
9468 fi
9469 fi
9470 rm -f conftest.lib libconftest.a
9471
9472 fi
9473 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9474 ac_ext=c
9475 ac_cpp='$CPP $CPPFLAGS'
9476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9479 ;;
9480 esac
9481 fi
9482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
9483 printf "%s\n" "$am_cv_ar_interface" >&6; }
9484
9485 case $am_cv_ar_interface in
9486 ar)
9487 ;;
9488 lib)
9489 # Microsoft lib, so override with the ar-lib wrapper script.
9490 # FIXME: It is wrong to rewrite AR.
9491 # But if we don't then we get into trouble of one sort or another.
9492 # A longer-term fix would be to have automake use am__AR in this case,
9493 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
9494 # similar.
9495 AR="$am_aux_dir/ar-lib $AR"
9496 ;;
9497 unknown)
9498 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
9499 ;;
9500 esac
9501
9502 # (end am_prog_ar)
9503 # starting lt_prereq + lt_init.
9504
9505
9506
9507
9508
9509 # Set options
9510 enable_win32_dll=yes
9511
9512 case $host in
9513 *-*-cygwin* | *-*-mingw* | *-*-windows* | *-*-pw32* | *-*-cegcc*)
9514 if test -n "$ac_tool_prefix"; then
9515 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
9516 set dummy ${ac_tool_prefix}as; ac_word=$2
9517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9518 printf %s "checking for $ac_word... " >&6; }
9519 if test ${ac_cv_prog_AS+y}
9520 then :
9521 printf %s "(cached) " >&6
9522 else case e in #(
9523 e) if test -n "$AS"; then
9524 ac_cv_prog_AS="$AS" # Let the user override the test.
9525 else
9526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9527 for as_dir in $PATH
9528 do
9529 IFS=$as_save_IFS
9530 case $as_dir in #(((
9531 '') as_dir=./ ;;
9532 */) ;;
9533 *) as_dir=$as_dir/ ;;
9534 esac
9535 for ac_exec_ext in '' $ac_executable_extensions; do
9536 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9537 ac_cv_prog_AS="${ac_tool_prefix}as"
9538 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9539 break 2
9540 fi
9541 done
9542 done
9543 IFS=$as_save_IFS
9544
9545 fi ;;
9546 esac
9547 fi
9548 AS=$ac_cv_prog_AS
9549 if test -n "$AS"; then
9550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
9551 printf "%s\n" "$AS" >&6; }
9552 else
9553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9554 printf "%s\n" "no" >&6; }
9555 fi
9556
9557
9558 fi
9559 if test -z "$ac_cv_prog_AS"; then
9560 ac_ct_AS=$AS
9561 # Extract the first word of "as", so it can be a program name with args.
9562 set dummy as; ac_word=$2
9563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9564 printf %s "checking for $ac_word... " >&6; }
9565 if test ${ac_cv_prog_ac_ct_AS+y}
9566 then :
9567 printf %s "(cached) " >&6
9568 else case e in #(
9569 e) if test -n "$ac_ct_AS"; then
9570 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
9571 else
9572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9573 for as_dir in $PATH
9574 do
9575 IFS=$as_save_IFS
9576 case $as_dir in #(((
9577 '') as_dir=./ ;;
9578 */) ;;
9579 *) as_dir=$as_dir/ ;;
9580 esac
9581 for ac_exec_ext in '' $ac_executable_extensions; do
9582 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9583 ac_cv_prog_ac_ct_AS="as"
9584 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9585 break 2
9586 fi
9587 done
9588 done
9589 IFS=$as_save_IFS
9590
9591 fi ;;
9592 esac
9593 fi
9594 ac_ct_AS=$ac_cv_prog_ac_ct_AS
9595 if test -n "$ac_ct_AS"; then
9596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
9597 printf "%s\n" "$ac_ct_AS" >&6; }
9598 else
9599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9600 printf "%s\n" "no" >&6; }
9601 fi
9602
9603 if test "x$ac_ct_AS" = x; then
9604 AS="false"
9605 else
9606 case $cross_compiling:$ac_tool_warned in
9607 yes:)
9608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9609 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9610 ac_tool_warned=yes ;;
9611 esac
9612 AS=$ac_ct_AS
9613 fi
9614 else
9615 AS="$ac_cv_prog_AS"
9616 fi
9617
9618 if test -n "$ac_tool_prefix"; then
9619 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9620 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9622 printf %s "checking for $ac_word... " >&6; }
9623 if test ${ac_cv_prog_DLLTOOL+y}
9624 then :
9625 printf %s "(cached) " >&6
9626 else case e in #(
9627 e) if test -n "$DLLTOOL"; then
9628 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9629 else
9630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9631 for as_dir in $PATH
9632 do
9633 IFS=$as_save_IFS
9634 case $as_dir in #(((
9635 '') as_dir=./ ;;
9636 */) ;;
9637 *) as_dir=$as_dir/ ;;
9638 esac
9639 for ac_exec_ext in '' $ac_executable_extensions; do
9640 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9641 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9642 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9643 break 2
9644 fi
9645 done
9646 done
9647 IFS=$as_save_IFS
9648
9649 fi ;;
9650 esac
9651 fi
9652 DLLTOOL=$ac_cv_prog_DLLTOOL
9653 if test -n "$DLLTOOL"; then
9654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9655 printf "%s\n" "$DLLTOOL" >&6; }
9656 else
9657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9658 printf "%s\n" "no" >&6; }
9659 fi
9660
9661
9662 fi
9663 if test -z "$ac_cv_prog_DLLTOOL"; then
9664 ac_ct_DLLTOOL=$DLLTOOL
9665 # Extract the first word of "dlltool", so it can be a program name with args.
9666 set dummy dlltool; ac_word=$2
9667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9668 printf %s "checking for $ac_word... " >&6; }
9669 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
9670 then :
9671 printf %s "(cached) " >&6
9672 else case e in #(
9673 e) if test -n "$ac_ct_DLLTOOL"; then
9674 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9675 else
9676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9677 for as_dir in $PATH
9678 do
9679 IFS=$as_save_IFS
9680 case $as_dir in #(((
9681 '') as_dir=./ ;;
9682 */) ;;
9683 *) as_dir=$as_dir/ ;;
9684 esac
9685 for ac_exec_ext in '' $ac_executable_extensions; do
9686 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9687 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9688 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9689 break 2
9690 fi
9691 done
9692 done
9693 IFS=$as_save_IFS
9694
9695 fi ;;
9696 esac
9697 fi
9698 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9699 if test -n "$ac_ct_DLLTOOL"; then
9700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9701 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
9702 else
9703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9704 printf "%s\n" "no" >&6; }
9705 fi
9706
9707 if test "x$ac_ct_DLLTOOL" = x; then
9708 DLLTOOL="false"
9709 else
9710 case $cross_compiling:$ac_tool_warned in
9711 yes:)
9712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9713 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9714 ac_tool_warned=yes ;;
9715 esac
9716 DLLTOOL=$ac_ct_DLLTOOL
9717 fi
9718 else
9719 DLLTOOL="$ac_cv_prog_DLLTOOL"
9720 fi
9721
9722 if test -n "$ac_tool_prefix"; then
9723 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9724 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9726 printf %s "checking for $ac_word... " >&6; }
9727 if test ${ac_cv_prog_OBJDUMP+y}
9728 then :
9729 printf %s "(cached) " >&6
9730 else case e in #(
9731 e) if test -n "$OBJDUMP"; then
9732 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9733 else
9734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9735 for as_dir in $PATH
9736 do
9737 IFS=$as_save_IFS
9738 case $as_dir in #(((
9739 '') as_dir=./ ;;
9740 */) ;;
9741 *) as_dir=$as_dir/ ;;
9742 esac
9743 for ac_exec_ext in '' $ac_executable_extensions; do
9744 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9745 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9746 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9747 break 2
9748 fi
9749 done
9750 done
9751 IFS=$as_save_IFS
9752
9753 fi ;;
9754 esac
9755 fi
9756 OBJDUMP=$ac_cv_prog_OBJDUMP
9757 if test -n "$OBJDUMP"; then
9758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9759 printf "%s\n" "$OBJDUMP" >&6; }
9760 else
9761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9762 printf "%s\n" "no" >&6; }
9763 fi
9764
9765
9766 fi
9767 if test -z "$ac_cv_prog_OBJDUMP"; then
9768 ac_ct_OBJDUMP=$OBJDUMP
9769 # Extract the first word of "objdump", so it can be a program name with args.
9770 set dummy objdump; ac_word=$2
9771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9772 printf %s "checking for $ac_word... " >&6; }
9773 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
9774 then :
9775 printf %s "(cached) " >&6
9776 else case e in #(
9777 e) if test -n "$ac_ct_OBJDUMP"; then
9778 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9779 else
9780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9781 for as_dir in $PATH
9782 do
9783 IFS=$as_save_IFS
9784 case $as_dir in #(((
9785 '') as_dir=./ ;;
9786 */) ;;
9787 *) as_dir=$as_dir/ ;;
9788 esac
9789 for ac_exec_ext in '' $ac_executable_extensions; do
9790 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9791 ac_cv_prog_ac_ct_OBJDUMP="objdump"
9792 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9793 break 2
9794 fi
9795 done
9796 done
9797 IFS=$as_save_IFS
9798
9799 fi ;;
9800 esac
9801 fi
9802 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9803 if test -n "$ac_ct_OBJDUMP"; then
9804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9805 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
9806 else
9807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9808 printf "%s\n" "no" >&6; }
9809 fi
9810
9811 if test "x$ac_ct_OBJDUMP" = x; then
9812 OBJDUMP="false"
9813 else
9814 case $cross_compiling:$ac_tool_warned in
9815 yes:)
9816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9817 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9818 ac_tool_warned=yes ;;
9819 esac
9820 OBJDUMP=$ac_ct_OBJDUMP
9821 fi
9822 else
9823 OBJDUMP="$ac_cv_prog_OBJDUMP"
9824 fi
9825
9826 ;;
9827 esac
9828
9829 test -z "$AS" && AS=as
9830
9831
9832
9833
9834
9835 test -z "$DLLTOOL" && DLLTOOL=dlltool
9836
9837
9838
9839
9840
9841 test -z "$OBJDUMP" && OBJDUMP=objdump
9842
9843
9844
9845
9846
9847
9848
9849 enable_dlopen=no
9850
9851
9852
9853 # Check whether --enable-shared was given.
9854 if test ${enable_shared+y}
9855 then :
9856 enableval=$enable_shared; p=${PACKAGE-default}
9857 case $enableval in
9858 yes) enable_shared=yes ;;
9859 no) enable_shared=no ;;
9860 *)
9861 enable_shared=no
9862 # Look at the argument we got. We use all the common list separators.
9863 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9864 for pkg in $enableval; do
9865 IFS=$lt_save_ifs
9866 if test "X$pkg" = "X$p"; then
9867 enable_shared=yes
9868 fi
9869 done
9870 IFS=$lt_save_ifs
9871 ;;
9872 esac
9873 else case e in #(
9874 e) enable_shared=yes ;;
9875 esac
9876 fi
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886 # Check whether --enable-static was given.
9887 if test ${enable_static+y}
9888 then :
9889 enableval=$enable_static; p=${PACKAGE-default}
9890 case $enableval in
9891 yes) enable_static=yes ;;
9892 no) enable_static=no ;;
9893 *)
9894 enable_static=no
9895 # Look at the argument we got. We use all the common list separators.
9896 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9897 for pkg in $enableval; do
9898 IFS=$lt_save_ifs
9899 if test "X$pkg" = "X$p"; then
9900 enable_static=yes
9901 fi
9902 done
9903 IFS=$lt_save_ifs
9904 ;;
9905 esac
9906 else case e in #(
9907 e) enable_static=yes ;;
9908 esac
9909 fi
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919 # Check whether --enable-pic was given.
9920 if test ${enable_pic+y}
9921 then :
9922 enableval=$enable_pic; lt_p=${PACKAGE-default}
9923 case $enableval in
9924 yes|no) pic_mode=$enableval ;;
9925 *)
9926 pic_mode=default
9927 # Look at the argument we got. We use all the common list separators.
9928 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9929 for lt_pkg in $enableval; do
9930 IFS=$lt_save_ifs
9931 if test "X$lt_pkg" = "X$lt_p"; then
9932 pic_mode=yes
9933 fi
9934 done
9935 IFS=$lt_save_ifs
9936 ;;
9937 esac
9938 else case e in #(
9939 e) # Check whether --with-pic was given.
9940 if test ${with_pic+y}
9941 then :
9942 withval=$with_pic; lt_p=${PACKAGE-default}
9943 case $withval in
9944 yes|no) pic_mode=$withval ;;
9945 *)
9946 pic_mode=default
9947 # Look at the argument we got. We use all the common list separators.
9948 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9949 for lt_pkg in $withval; do
9950 IFS=$lt_save_ifs
9951 if test "X$lt_pkg" = "X$lt_p"; then
9952 pic_mode=yes
9953 fi
9954 done
9955 IFS=$lt_save_ifs
9956 ;;
9957 esac
9958 else case e in #(
9959 e) pic_mode=default ;;
9960 esac
9961 fi
9962
9963 ;;
9964 esac
9965 fi
9966
9967
9968
9969
9970
9971
9972
9973
9974 # Check whether --enable-fast-install was given.
9975 if test ${enable_fast_install+y}
9976 then :
9977 enableval=$enable_fast_install; p=${PACKAGE-default}
9978 case $enableval in
9979 yes) enable_fast_install=yes ;;
9980 no) enable_fast_install=no ;;
9981 *)
9982 enable_fast_install=no
9983 # Look at the argument we got. We use all the common list separators.
9984 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9985 for pkg in $enableval; do
9986 IFS=$lt_save_ifs
9987 if test "X$pkg" = "X$p"; then
9988 enable_fast_install=yes
9989 fi
9990 done
9991 IFS=$lt_save_ifs
9992 ;;
9993 esac
9994 else case e in #(
9995 e) enable_fast_install=yes ;;
9996 esac
9997 fi
9998
9999
10000
10001
10002
10003
10004
10005
10006 shared_archive_member_spec=
10007 case $host,$enable_shared in
10008 power*-*-aix[5-9]*,yes)
10009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
10010 printf %s "checking which variant of shared library versioning to provide... " >&6; }
10011 # Check whether --enable-aix-soname was given.
10012 if test ${enable_aix_soname+y}
10013 then :
10014 enableval=$enable_aix_soname; case $enableval in
10015 aix|svr4|both)
10016 ;;
10017 *)
10018 as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5
10019 ;;
10020 esac
10021 lt_cv_with_aix_soname=$enable_aix_soname
10022 else case e in #(
10023 e) # Check whether --with-aix-soname was given.
10024 if test ${with_aix_soname+y}
10025 then :
10026 withval=$with_aix_soname; case $withval in
10027 aix|svr4|both)
10028 ;;
10029 *)
10030 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
10031 ;;
10032 esac
10033 lt_cv_with_aix_soname=$with_aix_soname
10034 else case e in #(
10035 e) if test ${lt_cv_with_aix_soname+y}
10036 then :
10037 printf %s "(cached) " >&6
10038 else case e in #(
10039 e) lt_cv_with_aix_soname=aix ;;
10040 esac
10041 fi
10042 ;;
10043 esac
10044 fi
10045
10046 enable_aix_soname=$lt_cv_with_aix_soname ;;
10047 esac
10048 fi
10049
10050 with_aix_soname=$enable_aix_soname
10051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
10052 printf "%s\n" "$with_aix_soname" >&6; }
10053 if test aix != "$with_aix_soname"; then
10054 # For the AIX way of multilib, we name the shared archive member
10055 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10056 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10057 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10058 # the AIX toolchain works better with OBJECT_MODE set (default 32).
10059 if test 64 = "${OBJECT_MODE-32}"; then
10060 shared_archive_member_spec=shr_64
10061 else
10062 shared_archive_member_spec=shr
10063 fi
10064 fi
10065 ;;
10066 *)
10067 with_aix_soname=aix
10068 ;;
10069 esac
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080 # This can be used to rebuild libtool when needed
10081 LIBTOOL_DEPS=$ltmain
10082
10083 # Always use our own libtool.
10084 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10085
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 test -z "$LN_S" && LN_S="ln -s"
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130 if test -n "${ZSH_VERSION+set}"; then
10131 setopt NO_GLOB_SUBST
10132 fi
10133
10134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10135 printf %s "checking for objdir... " >&6; }
10136 if test ${lt_cv_objdir+y}
10137 then :
10138 printf %s "(cached) " >&6
10139 else case e in #(
10140 e) rm -f .libs 2>/dev/null
10141 mkdir .libs 2>/dev/null
10142 if test -d .libs; then
10143 lt_cv_objdir=.libs
10144 else
10145 # MS-DOS does not allow filenames that begin with a dot.
10146 lt_cv_objdir=_libs
10147 fi
10148 rmdir .libs 2>/dev/null ;;
10149 esac
10150 fi
10151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10152 printf "%s\n" "$lt_cv_objdir" >&6; }
10153 objdir=$lt_cv_objdir
10154
10155
10156
10157
10158
10159 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
10160
10161
10162
10163
10164 case $host_os in
10165 aix3*)
10166 # AIX sometimes has problems with the GCC collect2 program. For some
10167 # reason, if we set the COLLECT_NAMES environment variable, the problems
10168 # vanish in a puff of smoke.
10169 if test set != "${COLLECT_NAMES+set}"; then
10170 COLLECT_NAMES=
10171 export COLLECT_NAMES
10172 fi
10173 ;;
10174 esac
10175
10176 # Global variables:
10177 ofile=libtool
10178 can_build_shared=yes
10179
10180 # All known linkers require a '.a' archive for static linking (except MSVC and
10181 # ICC, which need '.lib').
10182 libext=a
10183
10184 with_gnu_ld=$lt_cv_prog_gnu_ld
10185
10186 old_CC=$CC
10187 old_CFLAGS=$CFLAGS
10188
10189 # Set sane defaults for various variables
10190 test -z "$CC" && CC=cc
10191 test -z "$LTCC" && LTCC=$CC
10192 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10193 test -z "$LD" && LD=ld
10194 test -z "$ac_objext" && ac_objext=o
10195
10196 func_cc_basename $compiler
10197 cc_basename=$func_cc_basename_result
10198
10199
10200 # Only perform the check for file, if the check method requires it
10201 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10202 case $deplibs_check_method in
10203 file_magic*)
10204 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10206 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
10207 if test ${lt_cv_path_MAGIC_CMD+y}
10208 then :
10209 printf %s "(cached) " >&6
10210 else case e in #(
10211 e) case $MAGIC_CMD in
10212 [\\/*] | ?:[\\/]*)
10213 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10214 ;;
10215 *)
10216 lt_save_MAGIC_CMD=$MAGIC_CMD
10217 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10218 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10219 for ac_dir in $ac_dummy; do
10220 IFS=$lt_save_ifs
10221 test -z "$ac_dir" && ac_dir=.
10222 if test -f "$ac_dir/${ac_tool_prefix}file"; then
10223 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10224 if test -n "$file_magic_test_file"; then
10225 case $deplibs_check_method in
10226 "file_magic "*)
10227 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10228 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10229 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10230 $EGREP "$file_magic_regex" > /dev/null; then
10231 :
10232 else
10233 cat <<_LT_EOF 1>&2
10234
10235 *** Warning: the command libtool uses to detect shared libraries,
10236 *** $file_magic_cmd, produces output that libtool cannot recognize.
10237 *** The result is that libtool may fail to recognize shared libraries
10238 *** as such. This will affect the creation of libtool libraries that
10239 *** depend on shared libraries, but programs linked with such libtool
10240 *** libraries will work regardless of this problem. Nevertheless, you
10241 *** may want to report the problem to your system manager and/or to
10242 *** [email protected]
10243
10244 _LT_EOF
10245 fi ;;
10246 esac
10247 fi
10248 break
10249 fi
10250 done
10251 IFS=$lt_save_ifs
10252 MAGIC_CMD=$lt_save_MAGIC_CMD
10253 ;;
10254 esac ;;
10255 esac
10256 fi
10257
10258 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10259 if test -n "$MAGIC_CMD"; then
10260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10261 printf "%s\n" "$MAGIC_CMD" >&6; }
10262 else
10263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10264 printf "%s\n" "no" >&6; }
10265 fi
10266
10267
10268
10269
10270
10271 if test -z "$lt_cv_path_MAGIC_CMD"; then
10272 if test -n "$ac_tool_prefix"; then
10273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10274 printf %s "checking for file... " >&6; }
10275 if test ${lt_cv_path_MAGIC_CMD+y}
10276 then :
10277 printf %s "(cached) " >&6
10278 else case e in #(
10279 e) case $MAGIC_CMD in
10280 [\\/*] | ?:[\\/]*)
10281 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10282 ;;
10283 *)
10284 lt_save_MAGIC_CMD=$MAGIC_CMD
10285 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10286 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10287 for ac_dir in $ac_dummy; do
10288 IFS=$lt_save_ifs
10289 test -z "$ac_dir" && ac_dir=.
10290 if test -f "$ac_dir/file"; then
10291 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10292 if test -n "$file_magic_test_file"; then
10293 case $deplibs_check_method in
10294 "file_magic "*)
10295 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10296 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10297 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10298 $EGREP "$file_magic_regex" > /dev/null; then
10299 :
10300 else
10301 cat <<_LT_EOF 1>&2
10302
10303 *** Warning: the command libtool uses to detect shared libraries,
10304 *** $file_magic_cmd, produces output that libtool cannot recognize.
10305 *** The result is that libtool may fail to recognize shared libraries
10306 *** as such. This will affect the creation of libtool libraries that
10307 *** depend on shared libraries, but programs linked with such libtool
10308 *** libraries will work regardless of this problem. Nevertheless, you
10309 *** may want to report the problem to your system manager and/or to
10310 *** [email protected]
10311
10312 _LT_EOF
10313 fi ;;
10314 esac
10315 fi
10316 break
10317 fi
10318 done
10319 IFS=$lt_save_ifs
10320 MAGIC_CMD=$lt_save_MAGIC_CMD
10321 ;;
10322 esac ;;
10323 esac
10324 fi
10325
10326 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10327 if test -n "$MAGIC_CMD"; then
10328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10329 printf "%s\n" "$MAGIC_CMD" >&6; }
10330 else
10331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10332 printf "%s\n" "no" >&6; }
10333 fi
10334
10335
10336 else
10337 MAGIC_CMD=:
10338 fi
10339 fi
10340
10341 fi
10342 ;;
10343 esac
10344
10345 # Use C for the default configuration in the libtool script
10346
10347 lt_save_CC=$CC
10348 ac_ext=c
10349 ac_cpp='$CPP $CPPFLAGS'
10350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10353
10354
10355 # Source file extension for C test sources.
10356 ac_ext=c
10357
10358 # Object file extension for compiled C test sources.
10359 objext=o
10360 objext=$objext
10361
10362 # Code to be used in simple compile tests
10363 lt_simple_compile_test_code="int some_variable = 0;"
10364
10365 # Code to be used in simple link tests
10366 lt_simple_link_test_code='int main(void){return(0);}'
10367
10368
10369
10370
10371
10372
10373
10374 # If no C compiler was specified, use CC.
10375 LTCC=${LTCC-"$CC"}
10376
10377 # If no C compiler flags were specified, use CFLAGS.
10378 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10379
10380 # Allow CC to be a program name with arguments.
10381 compiler=$CC
10382
10383 # Save the default compiler, since it gets overwritten when the other
10384 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10385 compiler_DEFAULT=$CC
10386
10387 # save warnings/boilerplate of simple test code
10388 ac_outfile=conftest.$ac_objext
10389 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10390 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10391 _lt_compiler_boilerplate=`cat conftest.err`
10392 $RM conftest*
10393
10394 ac_outfile=conftest.$ac_objext
10395 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10396 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10397 _lt_linker_boilerplate=`cat conftest.err`
10398 $RM -r conftest*
10399
10400
10401 ## CAVEAT EMPTOR:
10402 ## There is no encapsulation within the following macros, do not change
10403 ## the running order or otherwise move them around unless you know exactly
10404 ## what you are doing...
10405 if test -n "$compiler"; then
10406
10407 lt_prog_compiler_no_builtin_flag=
10408
10409 if test yes = "$GCC"; then
10410 case $cc_basename in
10411 nvcc*)
10412 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10413 *)
10414 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10415 esac
10416
10417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10418 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10419 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
10420 then :
10421 printf %s "(cached) " >&6
10422 else case e in #(
10423 e) lt_cv_prog_compiler_rtti_exceptions=no
10424 ac_outfile=conftest.$ac_objext
10425 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10426 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
10427 # Insert the option either (1) after the last *FLAGS variable, or
10428 # (2) before a word containing "conftest.", or (3) at the end.
10429 # Note that $ac_compile itself does not contain backslashes and begins
10430 # with a dollar sign (not a hyphen), so the echo should work correctly.
10431 # The option is referenced via a variable to avoid confusing sed.
10432 lt_compile=`echo "$ac_compile" | $SED \
10433 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10434 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10435 -e 's:$: $lt_compiler_flag:'`
10436 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10437 (eval "$lt_compile" 2>conftest.err)
10438 ac_status=$?
10439 cat conftest.err >&5
10440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10441 if (exit $ac_status) && test -s "$ac_outfile"; then
10442 # The compiler can only warn and ignore the option if not recognized
10443 # So say no if there are warnings other than the usual output.
10444 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10445 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10446 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10447 lt_cv_prog_compiler_rtti_exceptions=yes
10448 fi
10449 fi
10450 $RM conftest*
10451 ;;
10452 esac
10453 fi
10454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10455 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10456
10457 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10458 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10459 else
10460 :
10461 fi
10462
10463 fi
10464
10465
10466
10467
10468
10469
10470 lt_prog_compiler_wl=
10471 lt_prog_compiler_pic=
10472 lt_prog_compiler_static=
10473
10474
10475 if test yes = "$GCC"; then
10476 lt_prog_compiler_wl='-Wl,'
10477 lt_prog_compiler_static='-static'
10478
10479 case $host_os in
10480 aix*)
10481 # All AIX code is PIC.
10482 if test ia64 = "$host_cpu"; then
10483 # AIX 5 now supports IA64 processor
10484 lt_prog_compiler_static='-Bstatic'
10485 fi
10486 lt_prog_compiler_pic='-fPIC'
10487 ;;
10488
10489 amigaos*)
10490 case $host_cpu in
10491 powerpc)
10492 # see comment about AmigaOS4 .so support
10493 lt_prog_compiler_pic='-fPIC'
10494 ;;
10495 m68k)
10496 # FIXME: we need at least 68020 code to build shared libraries, but
10497 # adding the '-m68020' flag to GCC prevents building anything better,
10498 # like '-m68040'.
10499 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10500 ;;
10501 esac
10502 ;;
10503
10504 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10505 # PIC is the default for these OSes.
10506 ;;
10507
10508 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
10509 # This hack is so that the source file can tell whether it is being
10510 # built for inclusion in a dll (and should export symbols for example).
10511 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10512 # (--disable-auto-import) libraries
10513 lt_prog_compiler_pic='-DDLL_EXPORT'
10514 case $host_os in
10515 os2*)
10516 lt_prog_compiler_static='$wl-static'
10517 ;;
10518 esac
10519 ;;
10520
10521 darwin* | rhapsody*)
10522 # PIC is the default on this platform
10523 # Common symbols not allowed in MH_DYLIB files
10524 lt_prog_compiler_pic='-fno-common'
10525 ;;
10526
10527 haiku*)
10528 # PIC is the default for Haiku.
10529 # The "-static" flag exists, but is broken.
10530 lt_prog_compiler_static=
10531 ;;
10532
10533 hpux*)
10534 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10535 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10536 # sets the default TLS model and affects inlining.
10537 case $host_cpu in
10538 hppa*64*)
10539 # +Z the default
10540 ;;
10541 *)
10542 lt_prog_compiler_pic='-fPIC'
10543 ;;
10544 esac
10545 ;;
10546
10547 interix[3-9]*)
10548 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10549 # Instead, we relocate shared libraries at runtime.
10550 ;;
10551
10552 msdosdjgpp*)
10553 # Just because we use GCC doesn't mean we suddenly get shared libraries
10554 # on systems that don't support them.
10555 lt_prog_compiler_can_build_shared=no
10556 enable_shared=no
10557 ;;
10558
10559 *nto* | *qnx*)
10560 # QNX uses GNU C++, but need to define -shared option too, otherwise
10561 # it will coredump.
10562 lt_prog_compiler_pic='-fPIC -shared'
10563 ;;
10564
10565 sysv4*MP*)
10566 if test -d /usr/nec; then
10567 lt_prog_compiler_pic=-Kconform_pic
10568 fi
10569 ;;
10570
10571 *)
10572 lt_prog_compiler_pic='-fPIC'
10573 ;;
10574 esac
10575
10576 case $cc_basename in
10577 nvcc*) # Cuda Compiler Driver 2.2
10578 lt_prog_compiler_wl='-Xlinker '
10579 if test -n "$lt_prog_compiler_pic"; then
10580 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10581 fi
10582 ;;
10583 esac
10584 else
10585 # PORTME Check for flag to pass linker flags through the system compiler.
10586 case $host_os in
10587 aix*)
10588 lt_prog_compiler_wl='-Wl,'
10589 if test ia64 = "$host_cpu"; then
10590 # AIX 5 now supports IA64 processor
10591 lt_prog_compiler_static='-Bstatic'
10592 else
10593 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10594 fi
10595 ;;
10596
10597 darwin* | rhapsody*)
10598 # PIC is the default on this platform
10599 # Common symbols not allowed in MH_DYLIB files
10600 lt_prog_compiler_pic='-fno-common'
10601 case $cc_basename in
10602 nagfor*)
10603 # NAG Fortran compiler
10604 lt_prog_compiler_wl='-Wl,-Wl,,'
10605 lt_prog_compiler_pic='-PIC'
10606 lt_prog_compiler_static='-Bstatic'
10607 ;;
10608 esac
10609 ;;
10610
10611 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
10612 # This hack is so that the source file can tell whether it is being
10613 # built for inclusion in a dll (and should export symbols for example).
10614 lt_prog_compiler_pic='-DDLL_EXPORT'
10615 case $host_os in
10616 os2*)
10617 lt_prog_compiler_static='$wl-static'
10618 ;;
10619 esac
10620 ;;
10621
10622 hpux9* | hpux10* | hpux11*)
10623 lt_prog_compiler_wl='-Wl,'
10624 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10625 # not for PA HP-UX.
10626 case $host_cpu in
10627 hppa*64*|ia64*)
10628 # +Z the default
10629 ;;
10630 *)
10631 lt_prog_compiler_pic='+Z'
10632 ;;
10633 esac
10634 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10635 lt_prog_compiler_static='$wl-a ${wl}archive'
10636 ;;
10637
10638 irix5* | irix6* | nonstopux*)
10639 lt_prog_compiler_wl='-Wl,'
10640 # PIC (with -KPIC) is the default.
10641 lt_prog_compiler_static='-non_shared'
10642 ;;
10643
10644 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10645 case $cc_basename in
10646 # old Intel for x86_64, which still supported -KPIC.
10647 ecc*)
10648 lt_prog_compiler_wl='-Wl,'
10649 lt_prog_compiler_pic='-KPIC'
10650 lt_prog_compiler_static='-static'
10651 ;;
10652 *flang* | ftn | f18* | f95*)
10653 # Flang compiler.
10654 lt_prog_compiler_wl='-Wl,'
10655 lt_prog_compiler_pic='-fPIC'
10656 lt_prog_compiler_static='-static'
10657 ;;
10658 # icc used to be incompatible with GCC.
10659 # ICC 10 doesn't accept -KPIC any more.
10660 icc* | ifort*)
10661 lt_prog_compiler_wl='-Wl,'
10662 lt_prog_compiler_pic='-fPIC'
10663 lt_prog_compiler_static='-static'
10664 ;;
10665 # Lahey Fortran 8.1.
10666 lf95*)
10667 lt_prog_compiler_wl='-Wl,'
10668 lt_prog_compiler_pic='--shared'
10669 lt_prog_compiler_static='--static'
10670 ;;
10671 nagfor*)
10672 # NAG Fortran compiler
10673 lt_prog_compiler_wl='-Wl,-Wl,,'
10674 lt_prog_compiler_pic='-PIC'
10675 lt_prog_compiler_static='-Bstatic'
10676 ;;
10677 tcc*)
10678 # Fabrice Bellard et al's Tiny C Compiler
10679 lt_prog_compiler_wl='-Wl,'
10680 lt_prog_compiler_pic='-fPIC'
10681 lt_prog_compiler_static='-static'
10682 ;;
10683 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10684 # Portland Group compilers (*not* the Pentium gcc compiler,
10685 # which looks to be a dead project)
10686 lt_prog_compiler_wl='-Wl,'
10687 lt_prog_compiler_pic='-fpic'
10688 lt_prog_compiler_static='-Bstatic'
10689 ;;
10690 ccc*)
10691 lt_prog_compiler_wl='-Wl,'
10692 # All Alpha code is PIC.
10693 lt_prog_compiler_static='-non_shared'
10694 ;;
10695 xl* | bgxl* | bgf* | mpixl*)
10696 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10697 lt_prog_compiler_wl='-Wl,'
10698 lt_prog_compiler_pic='-qpic'
10699 lt_prog_compiler_static='-qstaticlink'
10700 ;;
10701 *)
10702 case `$CC -V 2>&1 | $SED 5q` in
10703 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10704 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10705 lt_prog_compiler_pic='-KPIC'
10706 lt_prog_compiler_static='-Bstatic'
10707 lt_prog_compiler_wl=''
10708 ;;
10709 *Sun\ F* | *Sun*Fortran*)
10710 lt_prog_compiler_pic='-KPIC'
10711 lt_prog_compiler_static='-Bstatic'
10712 lt_prog_compiler_wl='-Qoption ld '
10713 ;;
10714 *Sun\ C*)
10715 # Sun C 5.9
10716 lt_prog_compiler_pic='-KPIC'
10717 lt_prog_compiler_static='-Bstatic'
10718 lt_prog_compiler_wl='-Wl,'
10719 ;;
10720 *Intel*\ [CF]*Compiler*)
10721 lt_prog_compiler_wl='-Wl,'
10722 lt_prog_compiler_pic='-fPIC'
10723 lt_prog_compiler_static='-static'
10724 ;;
10725 *Portland\ Group*)
10726 lt_prog_compiler_wl='-Wl,'
10727 lt_prog_compiler_pic='-fpic'
10728 lt_prog_compiler_static='-Bstatic'
10729 ;;
10730 esac
10731 ;;
10732 esac
10733 ;;
10734
10735 newsos6)
10736 lt_prog_compiler_pic='-KPIC'
10737 lt_prog_compiler_static='-Bstatic'
10738 ;;
10739
10740 *-mlibc)
10741 lt_prog_compiler_wl='-Wl,'
10742 lt_prog_compiler_pic='-fPIC'
10743 lt_prog_compiler_static='-static'
10744 ;;
10745
10746 *nto* | *qnx*)
10747 # QNX uses GNU C++, but need to define -shared option too, otherwise
10748 # it will coredump.
10749 lt_prog_compiler_pic='-fPIC -shared'
10750 ;;
10751
10752 osf3* | osf4* | osf5*)
10753 lt_prog_compiler_wl='-Wl,'
10754 # All OSF/1 code is PIC.
10755 lt_prog_compiler_static='-non_shared'
10756 ;;
10757
10758 rdos*)
10759 lt_prog_compiler_static='-non_shared'
10760 ;;
10761
10762 serenity*)
10763 ;;
10764
10765 solaris*)
10766 lt_prog_compiler_pic='-KPIC'
10767 lt_prog_compiler_static='-Bstatic'
10768 case $cc_basename in
10769 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10770 lt_prog_compiler_wl='-Qoption ld ';;
10771 *)
10772 lt_prog_compiler_wl='-Wl,';;
10773 esac
10774 ;;
10775
10776 sunos4*)
10777 lt_prog_compiler_wl='-Qoption ld '
10778 lt_prog_compiler_pic='-PIC'
10779 lt_prog_compiler_static='-Bstatic'
10780 ;;
10781
10782 sysv4 | sysv4.2uw2* | sysv4.3*)
10783 lt_prog_compiler_wl='-Wl,'
10784 lt_prog_compiler_pic='-KPIC'
10785 lt_prog_compiler_static='-Bstatic'
10786 ;;
10787
10788 sysv4*MP*)
10789 if test -d /usr/nec; then
10790 lt_prog_compiler_pic='-Kconform_pic'
10791 lt_prog_compiler_static='-Bstatic'
10792 fi
10793 ;;
10794
10795 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10796 lt_prog_compiler_wl='-Wl,'
10797 lt_prog_compiler_pic='-KPIC'
10798 lt_prog_compiler_static='-Bstatic'
10799 ;;
10800
10801 unicos*)
10802 lt_prog_compiler_wl='-Wl,'
10803 lt_prog_compiler_can_build_shared=no
10804 ;;
10805
10806 uts4*)
10807 lt_prog_compiler_pic='-pic'
10808 lt_prog_compiler_static='-Bstatic'
10809 ;;
10810
10811 *)
10812 lt_prog_compiler_can_build_shared=no
10813 ;;
10814 esac
10815 fi
10816
10817 case $host_os in
10818 # For platforms that do not support PIC, -DPIC is meaningless:
10819 *djgpp*)
10820 lt_prog_compiler_pic=
10821 ;;
10822 *)
10823 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10824 ;;
10825 esac
10826
10827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10828 printf %s "checking for $compiler option to produce PIC... " >&6; }
10829 if test ${lt_cv_prog_compiler_pic+y}
10830 then :
10831 printf %s "(cached) " >&6
10832 else case e in #(
10833 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
10834 esac
10835 fi
10836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10837 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
10838 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10839
10840 #
10841 # Check to make sure the PIC flag actually works.
10842 #
10843 if test -n "$lt_prog_compiler_pic"; then
10844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10845 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10846 if test ${lt_cv_prog_compiler_pic_works+y}
10847 then :
10848 printf %s "(cached) " >&6
10849 else case e in #(
10850 e) lt_cv_prog_compiler_pic_works=no
10851 ac_outfile=conftest.$ac_objext
10852 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10853 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10854 # Insert the option either (1) after the last *FLAGS variable, or
10855 # (2) before a word containing "conftest.", or (3) at the end.
10856 # Note that $ac_compile itself does not contain backslashes and begins
10857 # with a dollar sign (not a hyphen), so the echo should work correctly.
10858 # The option is referenced via a variable to avoid confusing sed.
10859 lt_compile=`echo "$ac_compile" | $SED \
10860 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10861 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10862 -e 's:$: $lt_compiler_flag:'`
10863 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10864 (eval "$lt_compile" 2>conftest.err)
10865 ac_status=$?
10866 cat conftest.err >&5
10867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10868 if (exit $ac_status) && test -s "$ac_outfile"; then
10869 # The compiler can only warn and ignore the option if not recognized
10870 # So say no if there are warnings other than the usual output.
10871 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10872 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10873 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10874 lt_cv_prog_compiler_pic_works=yes
10875 fi
10876 fi
10877 $RM conftest*
10878 ;;
10879 esac
10880 fi
10881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10882 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
10883
10884 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10885 case $lt_prog_compiler_pic in
10886 "" | " "*) ;;
10887 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10888 esac
10889 else
10890 lt_prog_compiler_pic=
10891 lt_prog_compiler_can_build_shared=no
10892 fi
10893
10894 fi
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906 #
10907 # Check to make sure the static flag actually works.
10908 #
10909 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10911 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10912 if test ${lt_cv_prog_compiler_static_works+y}
10913 then :
10914 printf %s "(cached) " >&6
10915 else case e in #(
10916 e) lt_cv_prog_compiler_static_works=no
10917 save_LDFLAGS=$LDFLAGS
10918 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10919 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10920 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10921 # The linker can only warn and ignore the option if not recognized
10922 # So say no if there are warnings
10923 if test -s conftest.err; then
10924 # Append any errors to the config.log.
10925 cat conftest.err 1>&5
10926 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10927 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10928 if diff conftest.exp conftest.er2 >/dev/null; then
10929 lt_cv_prog_compiler_static_works=yes
10930 fi
10931 else
10932 lt_cv_prog_compiler_static_works=yes
10933 fi
10934 fi
10935 $RM -r conftest*
10936 LDFLAGS=$save_LDFLAGS
10937 ;;
10938 esac
10939 fi
10940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10941 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
10942
10943 if test yes = "$lt_cv_prog_compiler_static_works"; then
10944 :
10945 else
10946 lt_prog_compiler_static=
10947 fi
10948
10949
10950
10951
10952
10953
10954
10955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10956 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10957 if test ${lt_cv_prog_compiler_c_o+y}
10958 then :
10959 printf %s "(cached) " >&6
10960 else case e in #(
10961 e) lt_cv_prog_compiler_c_o=no
10962 $RM -r conftest 2>/dev/null
10963 mkdir conftest
10964 cd conftest
10965 mkdir out
10966 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10967
10968 lt_compiler_flag="-o out/conftest2.$ac_objext"
10969 # Insert the option either (1) after the last *FLAGS variable, or
10970 # (2) before a word containing "conftest.", or (3) at the end.
10971 # Note that $ac_compile itself does not contain backslashes and begins
10972 # with a dollar sign (not a hyphen), so the echo should work correctly.
10973 lt_compile=`echo "$ac_compile" | $SED \
10974 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10975 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10976 -e 's:$: $lt_compiler_flag:'`
10977 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10978 (eval "$lt_compile" 2>out/conftest.err)
10979 ac_status=$?
10980 cat out/conftest.err >&5
10981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10982 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10983 then
10984 # The compiler can only warn and ignore the option if not recognized
10985 # So say no if there are warnings
10986 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10987 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10988 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10989 lt_cv_prog_compiler_c_o=yes
10990 fi
10991 fi
10992 chmod u+w . 2>&5
10993 $RM conftest*
10994 # SGI C++ compiler will create directory out/ii_files/ for
10995 # template instantiation
10996 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10997 $RM out/* && rmdir out
10998 cd ..
10999 $RM -r conftest
11000 $RM conftest*
11001 ;;
11002 esac
11003 fi
11004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11005 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
11006
11007
11008
11009
11010
11011
11012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11013 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11014 if test ${lt_cv_prog_compiler_c_o+y}
11015 then :
11016 printf %s "(cached) " >&6
11017 else case e in #(
11018 e) lt_cv_prog_compiler_c_o=no
11019 $RM -r conftest 2>/dev/null
11020 mkdir conftest
11021 cd conftest
11022 mkdir out
11023 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11024
11025 lt_compiler_flag="-o out/conftest2.$ac_objext"
11026 # Insert the option either (1) after the last *FLAGS variable, or
11027 # (2) before a word containing "conftest.", or (3) at the end.
11028 # Note that $ac_compile itself does not contain backslashes and begins
11029 # with a dollar sign (not a hyphen), so the echo should work correctly.
11030 lt_compile=`echo "$ac_compile" | $SED \
11031 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11032 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11033 -e 's:$: $lt_compiler_flag:'`
11034 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11035 (eval "$lt_compile" 2>out/conftest.err)
11036 ac_status=$?
11037 cat out/conftest.err >&5
11038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11039 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11040 then
11041 # The compiler can only warn and ignore the option if not recognized
11042 # So say no if there are warnings
11043 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11044 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11045 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11046 lt_cv_prog_compiler_c_o=yes
11047 fi
11048 fi
11049 chmod u+w . 2>&5
11050 $RM conftest*
11051 # SGI C++ compiler will create directory out/ii_files/ for
11052 # template instantiation
11053 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11054 $RM out/* && rmdir out
11055 cd ..
11056 $RM -r conftest
11057 $RM conftest*
11058 ;;
11059 esac
11060 fi
11061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11062 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
11063
11064
11065
11066
11067 hard_links=nottested
11068 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
11069 # do not overwrite the value of need_locks provided by the user
11070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11071 printf %s "checking if we can lock with hard links... " >&6; }
11072 hard_links=yes
11073 $RM conftest*
11074 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11075 touch conftest.a
11076 ln conftest.a conftest.b 2>&5 || hard_links=no
11077 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11079 printf "%s\n" "$hard_links" >&6; }
11080 if test no = "$hard_links"; then
11081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11082 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
11083 need_locks=warn
11084 fi
11085 else
11086 need_locks=no
11087 fi
11088
11089
11090
11091
11092
11093
11094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11095 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11096
11097 runpath_var=
11098 allow_undefined_flag=
11099 always_export_symbols=no
11100 archive_cmds=
11101 archive_expsym_cmds=
11102 compiler_needs_object=no
11103 enable_shared_with_static_runtimes=no
11104 export_dynamic_flag_spec=
11105 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11106 hardcode_automatic=no
11107 hardcode_direct=no
11108 hardcode_direct_absolute=no
11109 hardcode_libdir_flag_spec=
11110 hardcode_libdir_separator=
11111 hardcode_minus_L=no
11112 hardcode_shlibpath_var=unsupported
11113 inherit_rpath=no
11114 link_all_deplibs=unknown
11115 module_cmds=
11116 module_expsym_cmds=
11117 old_archive_from_new_cmds=
11118 old_archive_from_expsyms_cmds=
11119 thread_safe_flag_spec=
11120 whole_archive_flag_spec=
11121 # include_expsyms should be a list of space-separated symbols to be *always*
11122 # included in the symbol list
11123 include_expsyms=
11124 # exclude_expsyms can be an extended regexp of symbols to exclude
11125 # it will be wrapped by ' (' and ')$', so one must not match beginning or
11126 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11127 # as well as any symbol that contains 'd'.
11128 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11129 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11130 # platforms (ab)use it in PIC code, but their linkers get confused if
11131 # the symbol is explicitly referenced. Since portable code cannot
11132 # rely on this symbol name, it's probably fine to never include it in
11133 # preloaded symbol tables.
11134 # Exclude shared library initialization/finalization symbols.
11135 extract_expsyms_cmds=
11136
11137 case $host_os in
11138 cygwin* | mingw* | windows* | pw32* | cegcc*)
11139 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
11140 # When not using gcc, we currently assume that we are using
11141 # Microsoft Visual C++ or Intel C++ Compiler.
11142 if test yes != "$GCC"; then
11143 with_gnu_ld=no
11144 fi
11145 ;;
11146 interix*)
11147 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
11148 with_gnu_ld=yes
11149 ;;
11150 esac
11151
11152 ld_shlibs=yes
11153
11154 # On some targets, GNU ld is compatible enough with the native linker
11155 # that we're better off using the native interface for both.
11156 lt_use_gnu_ld_interface=no
11157 if test yes = "$with_gnu_ld"; then
11158 case $host_os in
11159 aix*)
11160 # The AIX port of GNU ld has always aspired to compatibility
11161 # with the native linker. However, as the warning in the GNU ld
11162 # block says, versions before 2.19.5* couldn't really create working
11163 # shared libraries, regardless of the interface used.
11164 case `$LD -v 2>&1` in
11165 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11166 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11167 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11168 *)
11169 lt_use_gnu_ld_interface=yes
11170 ;;
11171 esac
11172 ;;
11173 *)
11174 lt_use_gnu_ld_interface=yes
11175 ;;
11176 esac
11177 fi
11178
11179 if test yes = "$lt_use_gnu_ld_interface"; then
11180 # If archive_cmds runs LD, not CC, wlarc should be empty
11181 wlarc='$wl'
11182
11183 # Set some defaults for GNU ld with shared library support. These
11184 # are reset later if shared libraries are not supported. Putting them
11185 # here allows them to be overridden if necessary.
11186 runpath_var=LD_RUN_PATH
11187 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11188 export_dynamic_flag_spec='$wl--export-dynamic'
11189 # ancient GNU ld didn't support --whole-archive et. al.
11190 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11191 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11192 else
11193 whole_archive_flag_spec=
11194 fi
11195 supports_anon_versioning=no
11196 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
11197 *GNU\ gold*) supports_anon_versioning=yes ;;
11198 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11199 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11200 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11201 *\ 2.11.*) ;; # other 2.11 versions
11202 *) supports_anon_versioning=yes ;;
11203 esac
11204
11205 # See if GNU ld supports shared libraries.
11206 case $host_os in
11207 aix[3-9]*)
11208 # On AIX/PPC, the GNU linker is very broken
11209 if test ia64 != "$host_cpu"; then
11210 ld_shlibs=no
11211 cat <<_LT_EOF 1>&2
11212
11213 *** Warning: the GNU linker, at least up to release 2.19, is reported
11214 *** to be unable to reliably create shared libraries on AIX.
11215 *** Therefore, libtool is disabling shared libraries support. If you
11216 *** really care for shared libraries, you may want to install binutils
11217 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11218 *** You will then need to restart the configuration process.
11219
11220 _LT_EOF
11221 fi
11222 ;;
11223
11224 amigaos*)
11225 case $host_cpu in
11226 powerpc)
11227 # see comment about AmigaOS4 .so support
11228 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11229 archive_expsym_cmds=''
11230 ;;
11231 m68k)
11232 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)'
11233 hardcode_libdir_flag_spec='-L$libdir'
11234 hardcode_minus_L=yes
11235 ;;
11236 esac
11237 ;;
11238
11239 beos*)
11240 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11241 allow_undefined_flag=unsupported
11242 # Joseph Beckenbach <[email protected]> says some releases of gcc
11243 # support --undefined. This deserves some investigation. FIXME
11244 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11245 else
11246 ld_shlibs=no
11247 fi
11248 ;;
11249
11250 cygwin* | mingw* | windows* | pw32* | cegcc*)
11251 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11252 # as there is no search path for DLLs.
11253 hardcode_libdir_flag_spec='-L$libdir'
11254 export_dynamic_flag_spec='$wl--export-all-symbols'
11255 allow_undefined_flag=unsupported
11256 always_export_symbols=no
11257 enable_shared_with_static_runtimes=yes
11258 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'
11259 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11260 file_list_spec='@'
11261
11262 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11263 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11264 # If the export-symbols file already is a .def file, use it as
11265 # is; otherwise, prepend EXPORTS...
11266 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11267 cp $export_symbols $output_objdir/$soname.def;
11268 else
11269 echo EXPORTS > $output_objdir/$soname.def;
11270 cat $export_symbols >> $output_objdir/$soname.def;
11271 fi~
11272 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11273 else
11274 ld_shlibs=no
11275 fi
11276 ;;
11277
11278 haiku*)
11279 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11280 link_all_deplibs=no
11281 ;;
11282
11283 os2*)
11284 hardcode_libdir_flag_spec='-L$libdir'
11285 hardcode_minus_L=yes
11286 allow_undefined_flag=unsupported
11287 shrext_cmds=.dll
11288 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11289 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11290 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11291 $ECHO EXPORTS >> $output_objdir/$libname.def~
11292 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11293 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11294 emximp -o $lib $output_objdir/$libname.def'
11295 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11296 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11297 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11298 $ECHO EXPORTS >> $output_objdir/$libname.def~
11299 prefix_cmds="$SED"~
11300 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11301 prefix_cmds="$prefix_cmds -e 1d";
11302 fi~
11303 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11304 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11305 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11306 emximp -o $lib $output_objdir/$libname.def'
11307 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11308 enable_shared_with_static_runtimes=yes
11309 file_list_spec='@'
11310 ;;
11311
11312 interix[3-9]*)
11313 hardcode_direct=no
11314 hardcode_shlibpath_var=no
11315 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11316 export_dynamic_flag_spec='$wl-E'
11317 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11318 # Instead, shared libraries are loaded at an image base (0x10000000 by
11319 # default) and relocated if they conflict, which is a slow very memory
11320 # consuming and fragmenting process. To avoid this, we pick a random,
11321 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11322 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11323 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11324 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'
11325 ;;
11326
11327 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11328 tmp_diet=no
11329 if test linux-dietlibc = "$host_os"; then
11330 case $cc_basename in
11331 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11332 esac
11333 fi
11334 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11335 && test no = "$tmp_diet"
11336 then
11337 tmp_addflag=' $pic_flag'
11338 tmp_sharedflag='-shared'
11339 case $cc_basename,$host_cpu in
11340 pgcc*) # Portland Group C compiler
11341 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'
11342 tmp_addflag=' $pic_flag'
11343 ;;
11344 pgf77* | pgf90* | pgf95* | pgfortran*)
11345 # Portland Group f77 and f90 compilers
11346 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'
11347 tmp_addflag=' $pic_flag -Mnomain' ;;
11348 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11349 tmp_addflag=' -i_dynamic' ;;
11350 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11351 tmp_addflag=' -i_dynamic -nofor_main' ;;
11352 ifc* | ifort*) # Intel Fortran compiler
11353 tmp_addflag=' -nofor_main' ;;
11354 lf95*) # Lahey Fortran 8.1
11355 whole_archive_flag_spec=
11356 tmp_sharedflag='--shared' ;;
11357 nagfor*) # NAGFOR 5.3
11358 tmp_sharedflag='-Wl,-shared' ;;
11359 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11360 tmp_sharedflag='-qmkshrobj'
11361 tmp_addflag= ;;
11362 nvcc*) # Cuda Compiler Driver 2.2
11363 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'
11364 compiler_needs_object=yes
11365 ;;
11366 esac
11367 case `$CC -V 2>&1 | $SED 5q` in
11368 *Sun\ C*) # Sun C 5.9
11369 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'
11370 compiler_needs_object=yes
11371 tmp_sharedflag='-G' ;;
11372 *Sun\ F*) # Sun Fortran 8.3
11373 tmp_sharedflag='-G' ;;
11374 esac
11375 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11376
11377 if test yes = "$supports_anon_versioning"; then
11378 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11379 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11380 echo "local: *; };" >> $output_objdir/$libname.ver~
11381 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11382 fi
11383
11384 case $cc_basename in
11385 tcc*)
11386 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11387 export_dynamic_flag_spec='-rdynamic'
11388 ;;
11389 xlf* | bgf* | bgxlf* | mpixlf*)
11390 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11391 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11392 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11393 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11394 if test yes = "$supports_anon_versioning"; then
11395 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11396 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11397 echo "local: *; };" >> $output_objdir/$libname.ver~
11398 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11399 fi
11400 ;;
11401 esac
11402 else
11403 ld_shlibs=no
11404 fi
11405 ;;
11406
11407 *-mlibc)
11408 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11409 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11410 ;;
11411
11412 netbsd* | netbsdelf*-gnu)
11413 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11414 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11415 wlarc=
11416 else
11417 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11418 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11419 fi
11420 ;;
11421
11422 solaris*)
11423 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11424 ld_shlibs=no
11425 cat <<_LT_EOF 1>&2
11426
11427 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11428 *** create shared libraries on Solaris systems. Therefore, libtool
11429 *** is disabling shared libraries support. We urge you to upgrade GNU
11430 *** binutils to release 2.9.1 or newer. Another option is to modify
11431 *** your PATH or compiler configuration so that the native linker is
11432 *** used, and then restart.
11433
11434 _LT_EOF
11435 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11436 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11437 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11438 else
11439 ld_shlibs=no
11440 fi
11441 ;;
11442
11443 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11444 case `$LD -v 2>&1` in
11445 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11446 ld_shlibs=no
11447 cat <<_LT_EOF 1>&2
11448
11449 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11450 *** reliably create shared libraries on SCO systems. Therefore, libtool
11451 *** is disabling shared libraries support. We urge you to upgrade GNU
11452 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11453 *** your PATH or compiler configuration so that the native linker is
11454 *** used, and then restart.
11455
11456 _LT_EOF
11457 ;;
11458 *)
11459 # For security reasons, it is highly recommended that you always
11460 # use absolute paths for naming shared libraries, and exclude the
11461 # DT_RUNPATH tag from executables and libraries. But doing so
11462 # requires that you compile everything twice, which is a pain.
11463 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11464 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11465 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11466 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11467 else
11468 ld_shlibs=no
11469 fi
11470 ;;
11471 esac
11472 ;;
11473
11474 sunos4*)
11475 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11476 wlarc=
11477 hardcode_direct=yes
11478 hardcode_shlibpath_var=no
11479 ;;
11480
11481 *)
11482 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11483 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11484 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11485 else
11486 ld_shlibs=no
11487 fi
11488 ;;
11489 esac
11490
11491 if test no = "$ld_shlibs"; then
11492 runpath_var=
11493 hardcode_libdir_flag_spec=
11494 export_dynamic_flag_spec=
11495 whole_archive_flag_spec=
11496 fi
11497 else
11498 # PORTME fill in a description of your system's linker (not GNU ld)
11499 case $host_os in
11500 aix3*)
11501 allow_undefined_flag=unsupported
11502 always_export_symbols=yes
11503 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'
11504 # Note: this linker hardcodes the directories in LIBPATH if there
11505 # are no directories specified by -L.
11506 hardcode_minus_L=yes
11507 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11508 # Neither direct hardcoding nor static linking is supported with a
11509 # broken collect2.
11510 hardcode_direct=unsupported
11511 fi
11512 ;;
11513
11514 aix[4-9]*)
11515 if test ia64 = "$host_cpu"; then
11516 # On IA64, the linker does run time linking by default, so we don't
11517 # have to do anything special.
11518 aix_use_runtimelinking=no
11519 exp_sym_flag='-Bexport'
11520 no_entry_flag=
11521 else
11522 # If we're using GNU nm, then we don't want the "-C" option.
11523 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
11524 # Without the "-l" option, or with the "-B" option, AIX nm treats
11525 # weak defined symbols like other global defined symbols, whereas
11526 # GNU nm marks them as "W".
11527 # While the 'weak' keyword is ignored in the Export File, we need
11528 # it in the Import File for the 'aix-soname' feature, so we have
11529 # to replace the "-B" option with "-P" for AIX nm.
11530 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11531 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'
11532 else
11533 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'
11534 fi
11535 aix_use_runtimelinking=no
11536
11537 # Test if we are trying to use run time linking or normal
11538 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11539 # have runtime linking enabled, and use it for executables.
11540 # For shared libraries, we enable/disable runtime linking
11541 # depending on the kind of the shared library created -
11542 # when "with_aix_soname,aix_use_runtimelinking" is:
11543 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
11544 # "aix,yes" lib.so shared, rtl:yes, for executables
11545 # lib.a static archive
11546 # "both,no" lib.so.V(shr.o) shared, rtl:yes
11547 # lib.a(lib.so.V) shared, rtl:no, for executables
11548 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11549 # lib.a(lib.so.V) shared, rtl:no
11550 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
11551 # lib.a static archive
11552 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11553 for ld_flag in $LDFLAGS; do
11554 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11555 aix_use_runtimelinking=yes
11556 break
11557 fi
11558 done
11559 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11560 # With aix-soname=svr4, we create the lib.so.V shared archives only,
11561 # so we don't have lib.a shared libs to link our executables.
11562 # We have to force runtime linking in this case.
11563 aix_use_runtimelinking=yes
11564 LDFLAGS="$LDFLAGS -Wl,-brtl"
11565 fi
11566 ;;
11567 esac
11568
11569 exp_sym_flag='-bexport'
11570 no_entry_flag='-bnoentry'
11571 fi
11572
11573 # When large executables or shared objects are built, AIX ld can
11574 # have problems creating the table of contents. If linking a library
11575 # or program results in "error TOC overflow" add -mminimal-toc to
11576 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11577 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11578
11579 archive_cmds=''
11580 hardcode_direct=yes
11581 hardcode_direct_absolute=yes
11582 hardcode_libdir_separator=':'
11583 link_all_deplibs=yes
11584 file_list_spec='$wl-f,'
11585 case $with_aix_soname,$aix_use_runtimelinking in
11586 aix,*) ;; # traditional, no import file
11587 svr4,* | *,yes) # use import file
11588 # The Import File defines what to hardcode.
11589 hardcode_direct=no
11590 hardcode_direct_absolute=no
11591 ;;
11592 esac
11593
11594 if test yes = "$GCC"; then
11595 case $host_os in aix4.[012]|aix4.[012].*)
11596 # We only want to do this on AIX 4.2 and lower, the check
11597 # below for broken collect2 doesn't work under 4.3+
11598 collect2name=`$CC -print-prog-name=collect2`
11599 if test -f "$collect2name" &&
11600 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11601 then
11602 # We have reworked collect2
11603 :
11604 else
11605 # We have old collect2
11606 hardcode_direct=unsupported
11607 # It fails to find uninstalled libraries when the uninstalled
11608 # path is not listed in the libpath. Setting hardcode_minus_L
11609 # to unsupported forces relinking
11610 hardcode_minus_L=yes
11611 hardcode_libdir_flag_spec='-L$libdir'
11612 hardcode_libdir_separator=
11613 fi
11614 ;;
11615 esac
11616 shared_flag='-shared'
11617 if test yes = "$aix_use_runtimelinking"; then
11618 shared_flag="$shared_flag "'$wl-G'
11619 fi
11620 # Need to ensure runtime linking is disabled for the traditional
11621 # shared library, or the linker may eventually find shared libraries
11622 # /with/ Import File - we do not want to mix them.
11623 shared_flag_aix='-shared'
11624 shared_flag_svr4='-shared $wl-G'
11625 else
11626 # not using gcc
11627 if test ia64 = "$host_cpu"; then
11628 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11629 # chokes on -Wl,-G. The following line is correct:
11630 shared_flag='-G'
11631 else
11632 if test yes = "$aix_use_runtimelinking"; then
11633 shared_flag='$wl-G'
11634 else
11635 shared_flag='$wl-bM:SRE'
11636 fi
11637 shared_flag_aix='$wl-bM:SRE'
11638 shared_flag_svr4='$wl-G'
11639 fi
11640 fi
11641
11642 export_dynamic_flag_spec='$wl-bexpall'
11643 # It seems that -bexpall does not export symbols beginning with
11644 # underscore (_), so it is better to generate a list of symbols to export.
11645 always_export_symbols=yes
11646 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11647 # Warning - without using the other runtime loading flags (-brtl),
11648 # -berok will link without error, but may produce a broken library.
11649 allow_undefined_flag='-berok'
11650 # Determine the default libpath from the value encoded in an
11651 # empty executable.
11652 if test set = "${lt_cv_aix_libpath+set}"; then
11653 aix_libpath=$lt_cv_aix_libpath
11654 else
11655 if test ${lt_cv_aix_libpath_+y}
11656 then :
11657 printf %s "(cached) " >&6
11658 else case e in #(
11659 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11660 /* end confdefs.h. */
11661
11662 int
11663 main (void)
11664 {
11665
11666 ;
11667 return 0;
11668 }
11669 _ACEOF
11670 if ac_fn_c_try_link "$LINENO"
11671 then :
11672
11673 lt_aix_libpath_sed='
11674 /Import File Strings/,/^$/ {
11675 /^0/ {
11676 s/^0 *\([^ ]*\) *$/\1/
11677 p
11678 }
11679 }'
11680 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11681 # Check for a 64-bit object if we didn't find anything.
11682 if test -z "$lt_cv_aix_libpath_"; then
11683 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11684 fi
11685 fi
11686 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11687 conftest$ac_exeext conftest.$ac_ext
11688 if test -z "$lt_cv_aix_libpath_"; then
11689 lt_cv_aix_libpath_=/usr/lib:/lib
11690 fi
11691 ;;
11692 esac
11693 fi
11694
11695 aix_libpath=$lt_cv_aix_libpath_
11696 fi
11697
11698 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11699 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
11700 else
11701 if test ia64 = "$host_cpu"; then
11702 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11703 allow_undefined_flag="-z nodefs"
11704 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"
11705 else
11706 # Determine the default libpath from the value encoded in an
11707 # empty executable.
11708 if test set = "${lt_cv_aix_libpath+set}"; then
11709 aix_libpath=$lt_cv_aix_libpath
11710 else
11711 if test ${lt_cv_aix_libpath_+y}
11712 then :
11713 printf %s "(cached) " >&6
11714 else case e in #(
11715 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11716 /* end confdefs.h. */
11717
11718 int
11719 main (void)
11720 {
11721
11722 ;
11723 return 0;
11724 }
11725 _ACEOF
11726 if ac_fn_c_try_link "$LINENO"
11727 then :
11728
11729 lt_aix_libpath_sed='
11730 /Import File Strings/,/^$/ {
11731 /^0/ {
11732 s/^0 *\([^ ]*\) *$/\1/
11733 p
11734 }
11735 }'
11736 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11737 # Check for a 64-bit object if we didn't find anything.
11738 if test -z "$lt_cv_aix_libpath_"; then
11739 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11740 fi
11741 fi
11742 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11743 conftest$ac_exeext conftest.$ac_ext
11744 if test -z "$lt_cv_aix_libpath_"; then
11745 lt_cv_aix_libpath_=/usr/lib:/lib
11746 fi
11747 ;;
11748 esac
11749 fi
11750
11751 aix_libpath=$lt_cv_aix_libpath_
11752 fi
11753
11754 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11755 # Warning - without using the other run time loading flags,
11756 # -berok will link without error, but may produce a broken library.
11757 no_undefined_flag=' $wl-bernotok'
11758 allow_undefined_flag=' $wl-berok'
11759 if test yes = "$with_gnu_ld"; then
11760 # We only use this code for GNU lds that support --whole-archive.
11761 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11762 else
11763 # Exported symbols can be pulled into shared objects from archives
11764 whole_archive_flag_spec='$convenience'
11765 fi
11766 archive_cmds_need_lc=yes
11767 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11768 # -brtl affects multiple linker settings, -berok does not and is overridden later
11769 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11770 if test svr4 != "$with_aix_soname"; then
11771 # This is similar to how AIX traditionally builds its shared libraries.
11772 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'
11773 fi
11774 if test aix != "$with_aix_soname"; then
11775 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'
11776 else
11777 # used by -dlpreopen to get the symbols
11778 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
11779 fi
11780 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11781 fi
11782 fi
11783 ;;
11784
11785 amigaos*)
11786 case $host_cpu in
11787 powerpc)
11788 # see comment about AmigaOS4 .so support
11789 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11790 archive_expsym_cmds=''
11791 ;;
11792 m68k)
11793 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)'
11794 hardcode_libdir_flag_spec='-L$libdir'
11795 hardcode_minus_L=yes
11796 ;;
11797 esac
11798 ;;
11799
11800 bsdi[45]*)
11801 export_dynamic_flag_spec=-rdynamic
11802 ;;
11803
11804 cygwin* | mingw* | windows* | pw32* | cegcc*)
11805 # When not using gcc, we currently assume that we are using
11806 # Microsoft Visual C++ or Intel C++ Compiler.
11807 # hardcode_libdir_flag_spec is actually meaningless, as there is
11808 # no search path for DLLs.
11809 case $cc_basename in
11810 cl* | icl*)
11811 # Native MSVC or ICC
11812 hardcode_libdir_flag_spec=' '
11813 allow_undefined_flag=unsupported
11814 always_export_symbols=yes
11815 file_list_spec='@'
11816 # Tell ltmain to make .lib files, not .a files.
11817 libext=lib
11818 # Tell ltmain to make .dll files, not .so files.
11819 shrext_cmds=.dll
11820 # FIXME: Setting linknames here is a bad hack.
11821 archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11822 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11823 cp "$export_symbols" "$output_objdir/$soname.def";
11824 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11825 else
11826 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11827 fi~
11828 $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11829 linknames='
11830 # The linker will not automatically build a static lib if we build a DLL.
11831 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11832 enable_shared_with_static_runtimes=yes
11833 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11834 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11835 # Don't use ranlib
11836 old_postinstall_cmds='chmod 644 $oldlib'
11837 postlink_cmds='lt_outputfile="@OUTPUT@"~
11838 lt_tool_outputfile="@TOOL_OUTPUT@"~
11839 case $lt_outputfile in
11840 *.exe|*.EXE) ;;
11841 *)
11842 lt_outputfile=$lt_outputfile.exe
11843 lt_tool_outputfile=$lt_tool_outputfile.exe
11844 ;;
11845 esac~
11846 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11847 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11848 $RM "$lt_outputfile.manifest";
11849 fi'
11850 ;;
11851 *)
11852 # Assume MSVC and ICC wrapper
11853 hardcode_libdir_flag_spec=' '
11854 allow_undefined_flag=unsupported
11855 # Tell ltmain to make .lib files, not .a files.
11856 libext=lib
11857 # Tell ltmain to make .dll files, not .so files.
11858 shrext_cmds=.dll
11859 # FIXME: Setting linknames here is a bad hack.
11860 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11861 # The linker will automatically build a .lib file if we build a DLL.
11862 old_archive_from_new_cmds='true'
11863 # FIXME: Should let the user specify the lib program.
11864 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11865 enable_shared_with_static_runtimes=yes
11866 ;;
11867 esac
11868 ;;
11869
11870 darwin* | rhapsody*)
11871
11872
11873 archive_cmds_need_lc=no
11874 hardcode_direct=no
11875 hardcode_automatic=yes
11876 hardcode_shlibpath_var=unsupported
11877 if test yes = "$lt_cv_ld_force_load"; then
11878 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\"`'
11879
11880 else
11881 whole_archive_flag_spec=''
11882 fi
11883 link_all_deplibs=yes
11884 allow_undefined_flag=$_lt_dar_allow_undefined
11885 case $cc_basename in
11886 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11887 *) _lt_dar_can_shared=$GCC ;;
11888 esac
11889 if test yes = "$_lt_dar_can_shared"; then
11890 output_verbose_link_cmd=func_echo_all
11891 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11892 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11893 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"
11894 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"
11895
11896 else
11897 ld_shlibs=no
11898 fi
11899
11900 ;;
11901
11902 dgux*)
11903 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11904 hardcode_libdir_flag_spec='-L$libdir'
11905 hardcode_shlibpath_var=no
11906 ;;
11907
11908 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11909 # support. Future versions do this automatically, but an explicit c++rt0.o
11910 # does not break anything, and helps significantly (at the cost of a little
11911 # extra space).
11912 freebsd2.2*)
11913 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11914 hardcode_libdir_flag_spec='-R$libdir'
11915 hardcode_direct=yes
11916 hardcode_shlibpath_var=no
11917 ;;
11918
11919 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11920 freebsd2.*)
11921 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11922 hardcode_direct=yes
11923 hardcode_minus_L=yes
11924 hardcode_shlibpath_var=no
11925 ;;
11926
11927 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11928 freebsd* | dragonfly* | midnightbsd*)
11929 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11930 hardcode_libdir_flag_spec='-R$libdir'
11931 hardcode_direct=yes
11932 hardcode_shlibpath_var=no
11933 ;;
11934
11935 hpux9*)
11936 if test yes = "$GCC"; then
11937 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'
11938 else
11939 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'
11940 fi
11941 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11942 hardcode_libdir_separator=:
11943 hardcode_direct=yes
11944
11945 # hardcode_minus_L: Not really in the search PATH,
11946 # but as the default location of the library.
11947 hardcode_minus_L=yes
11948 export_dynamic_flag_spec='$wl-E'
11949 ;;
11950
11951 hpux10*)
11952 if test yes,no = "$GCC,$with_gnu_ld"; then
11953 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11954 else
11955 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11956 fi
11957 if test no = "$with_gnu_ld"; then
11958 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11959 hardcode_libdir_separator=:
11960 hardcode_direct=yes
11961 hardcode_direct_absolute=yes
11962 export_dynamic_flag_spec='$wl-E'
11963 # hardcode_minus_L: Not really in the search PATH,
11964 # but as the default location of the library.
11965 hardcode_minus_L=yes
11966 fi
11967 ;;
11968
11969 hpux11*)
11970 if test yes,no = "$GCC,$with_gnu_ld"; then
11971 case $host_cpu in
11972 hppa*64*)
11973 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11974 ;;
11975 ia64*)
11976 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11977 ;;
11978 *)
11979 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11980 ;;
11981 esac
11982 else
11983 case $host_cpu in
11984 hppa*64*)
11985 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11986 ;;
11987 ia64*)
11988 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11989 ;;
11990 *)
11991
11992 # Older versions of the 11.00 compiler do not understand -b yet
11993 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11995 printf %s "checking if $CC understands -b... " >&6; }
11996 if test ${lt_cv_prog_compiler__b+y}
11997 then :
11998 printf %s "(cached) " >&6
11999 else case e in #(
12000 e) lt_cv_prog_compiler__b=no
12001 save_LDFLAGS=$LDFLAGS
12002 LDFLAGS="$LDFLAGS -b"
12003 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12004 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12005 # The linker can only warn and ignore the option if not recognized
12006 # So say no if there are warnings
12007 if test -s conftest.err; then
12008 # Append any errors to the config.log.
12009 cat conftest.err 1>&5
12010 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12011 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12012 if diff conftest.exp conftest.er2 >/dev/null; then
12013 lt_cv_prog_compiler__b=yes
12014 fi
12015 else
12016 lt_cv_prog_compiler__b=yes
12017 fi
12018 fi
12019 $RM -r conftest*
12020 LDFLAGS=$save_LDFLAGS
12021 ;;
12022 esac
12023 fi
12024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12025 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
12026
12027 if test yes = "$lt_cv_prog_compiler__b"; then
12028 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12029 else
12030 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12031 fi
12032
12033 ;;
12034 esac
12035 fi
12036 if test no = "$with_gnu_ld"; then
12037 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12038 hardcode_libdir_separator=:
12039
12040 case $host_cpu in
12041 hppa*64*|ia64*)
12042 hardcode_direct=no
12043 hardcode_shlibpath_var=no
12044 ;;
12045 *)
12046 hardcode_direct=yes
12047 hardcode_direct_absolute=yes
12048 export_dynamic_flag_spec='$wl-E'
12049
12050 # hardcode_minus_L: Not really in the search PATH,
12051 # but as the default location of the library.
12052 hardcode_minus_L=yes
12053 ;;
12054 esac
12055 fi
12056 ;;
12057
12058 irix5* | irix6* | nonstopux*)
12059 if test yes = "$GCC"; then
12060 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'
12061 # Try to use the -exported_symbol ld option, if it does not
12062 # work, assume that -exports_file does not work either and
12063 # implicitly export all symbols.
12064 # This should be the same for all languages, so no per-tag cache variable.
12065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12066 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12067 if test ${lt_cv_irix_exported_symbol+y}
12068 then :
12069 printf %s "(cached) " >&6
12070 else case e in #(
12071 e) save_LDFLAGS=$LDFLAGS
12072 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
12073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12074 /* end confdefs.h. */
12075 int foo (void) { return 0; }
12076 _ACEOF
12077 if ac_fn_c_try_link "$LINENO"
12078 then :
12079 lt_cv_irix_exported_symbol=yes
12080 else case e in #(
12081 e) lt_cv_irix_exported_symbol=no ;;
12082 esac
12083 fi
12084 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12085 conftest$ac_exeext conftest.$ac_ext
12086 LDFLAGS=$save_LDFLAGS ;;
12087 esac
12088 fi
12089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12090 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
12091 if test yes = "$lt_cv_irix_exported_symbol"; then
12092 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'
12093 fi
12094 else
12095 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'
12096 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'
12097 fi
12098 archive_cmds_need_lc='no'
12099 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12100 hardcode_libdir_separator=:
12101 inherit_rpath=yes
12102 link_all_deplibs=yes
12103 ;;
12104
12105 linux*)
12106 case $cc_basename in
12107 tcc*)
12108 # Fabrice Bellard et al's Tiny C Compiler
12109 ld_shlibs=yes
12110 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12111 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12112 ;;
12113 esac
12114 ;;
12115
12116 *-mlibc)
12117 ;;
12118
12119 netbsd* | netbsdelf*-gnu)
12120 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12121 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12122 else
12123 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12124 fi
12125 hardcode_libdir_flag_spec='-R$libdir'
12126 hardcode_direct=yes
12127 hardcode_shlibpath_var=no
12128 ;;
12129
12130 newsos6)
12131 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12132 hardcode_direct=yes
12133 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12134 hardcode_libdir_separator=:
12135 hardcode_shlibpath_var=no
12136 ;;
12137
12138 *nto* | *qnx*)
12139 ;;
12140
12141 openbsd*)
12142 if test -f /usr/libexec/ld.so; then
12143 hardcode_direct=yes
12144 hardcode_shlibpath_var=no
12145 hardcode_direct_absolute=yes
12146 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12147 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12148 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12149 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12150 export_dynamic_flag_spec='$wl-E'
12151 else
12152 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12153 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12154 fi
12155 else
12156 ld_shlibs=no
12157 fi
12158 ;;
12159
12160 os2*)
12161 hardcode_libdir_flag_spec='-L$libdir'
12162 hardcode_minus_L=yes
12163 allow_undefined_flag=unsupported
12164 shrext_cmds=.dll
12165 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12166 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12167 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12168 $ECHO EXPORTS >> $output_objdir/$libname.def~
12169 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12170 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12171 emximp -o $lib $output_objdir/$libname.def'
12172 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12173 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12174 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12175 $ECHO EXPORTS >> $output_objdir/$libname.def~
12176 prefix_cmds="$SED"~
12177 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12178 prefix_cmds="$prefix_cmds -e 1d";
12179 fi~
12180 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12181 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12182 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12183 emximp -o $lib $output_objdir/$libname.def'
12184 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12185 enable_shared_with_static_runtimes=yes
12186 file_list_spec='@'
12187 ;;
12188
12189 osf3*)
12190 if test yes = "$GCC"; then
12191 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12192 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'
12193 else
12194 allow_undefined_flag=' -expect_unresolved \*'
12195 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'
12196 fi
12197 archive_cmds_need_lc='no'
12198 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12199 hardcode_libdir_separator=:
12200 ;;
12201
12202 osf4* | osf5*) # as osf3* with the addition of -msym flag
12203 if test yes = "$GCC"; then
12204 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12205 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'
12206 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12207 else
12208 allow_undefined_flag=' -expect_unresolved \*'
12209 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'
12210 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~
12211 $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'
12212
12213 # Both c and cxx compiler support -rpath directly
12214 hardcode_libdir_flag_spec='-rpath $libdir'
12215 fi
12216 archive_cmds_need_lc='no'
12217 hardcode_libdir_separator=:
12218 ;;
12219
12220 serenity*)
12221 ;;
12222
12223 solaris*)
12224 no_undefined_flag=' -z defs'
12225 if test yes = "$GCC"; then
12226 wlarc='$wl'
12227 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12228 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12229 $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'
12230 else
12231 case `$CC -V 2>&1` in
12232 *"Compilers 5.0"*)
12233 wlarc=''
12234 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12235 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12236 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12237 ;;
12238 *)
12239 wlarc='$wl'
12240 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12241 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12242 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12243 ;;
12244 esac
12245 fi
12246 hardcode_libdir_flag_spec='-R$libdir'
12247 hardcode_shlibpath_var=no
12248 case $host_os in
12249 solaris2.[0-5] | solaris2.[0-5].*) ;;
12250 *)
12251 # The compiler driver will combine and reorder linker options,
12252 # but understands '-z linker_flag'. GCC discards it without '$wl',
12253 # but is careful enough not to reorder.
12254 # Supported since Solaris 2.6 (maybe 2.5.1?)
12255 if test yes = "$GCC"; then
12256 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12257 else
12258 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12259 fi
12260 ;;
12261 esac
12262 link_all_deplibs=yes
12263 ;;
12264
12265 sunos4*)
12266 if test sequent = "$host_vendor"; then
12267 # Use $CC to link under sequent, because it throws in some extra .o
12268 # files that make .init and .fini sections work.
12269 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12270 else
12271 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12272 fi
12273 hardcode_libdir_flag_spec='-L$libdir'
12274 hardcode_direct=yes
12275 hardcode_minus_L=yes
12276 hardcode_shlibpath_var=no
12277 ;;
12278
12279 sysv4)
12280 case $host_vendor in
12281 sni)
12282 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12283 hardcode_direct=yes # is this really true???
12284 ;;
12285 siemens)
12286 ## LD is ld it makes a PLAMLIB
12287 ## CC just makes a GrossModule.
12288 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12289 reload_cmds='$CC -r -o $output$reload_objs'
12290 hardcode_direct=no
12291 ;;
12292 motorola)
12293 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12294 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12295 ;;
12296 esac
12297 runpath_var='LD_RUN_PATH'
12298 hardcode_shlibpath_var=no
12299 ;;
12300
12301 sysv4.3*)
12302 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12303 hardcode_shlibpath_var=no
12304 export_dynamic_flag_spec='-Bexport'
12305 ;;
12306
12307 sysv4*MP*)
12308 if test -d /usr/nec; then
12309 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12310 hardcode_shlibpath_var=no
12311 runpath_var=LD_RUN_PATH
12312 hardcode_runpath_var=yes
12313 ld_shlibs=yes
12314 fi
12315 ;;
12316
12317 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12318 no_undefined_flag='$wl-z,text'
12319 archive_cmds_need_lc=no
12320 hardcode_shlibpath_var=no
12321 runpath_var='LD_RUN_PATH'
12322
12323 if test yes = "$GCC"; then
12324 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12325 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12326 else
12327 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12328 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12329 fi
12330 ;;
12331
12332 sysv5* | sco3.2v5* | sco5v6*)
12333 # Note: We CANNOT use -z defs as we might desire, because we do not
12334 # link with -lc, and that would cause any symbols used from libc to
12335 # always be unresolved, which means just about no library would
12336 # ever link correctly. If we're not using GNU ld we use -z text
12337 # though, which does catch some bad symbols but isn't as heavy-handed
12338 # as -z defs.
12339 no_undefined_flag='$wl-z,text'
12340 allow_undefined_flag='$wl-z,nodefs'
12341 archive_cmds_need_lc=no
12342 hardcode_shlibpath_var=no
12343 hardcode_libdir_flag_spec='$wl-R,$libdir'
12344 hardcode_libdir_separator=':'
12345 link_all_deplibs=yes
12346 export_dynamic_flag_spec='$wl-Bexport'
12347 runpath_var='LD_RUN_PATH'
12348
12349 if test yes = "$GCC"; then
12350 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12351 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12352 else
12353 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12354 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12355 fi
12356 ;;
12357
12358 uts4*)
12359 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12360 hardcode_libdir_flag_spec='-L$libdir'
12361 hardcode_shlibpath_var=no
12362 ;;
12363
12364 *)
12365 ld_shlibs=no
12366 ;;
12367 esac
12368
12369 if test sni = "$host_vendor"; then
12370 case $host in
12371 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12372 export_dynamic_flag_spec='$wl-Blargedynsym'
12373 ;;
12374 esac
12375 fi
12376 fi
12377
12378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12379 printf "%s\n" "$ld_shlibs" >&6; }
12380 test no = "$ld_shlibs" && can_build_shared=no
12381
12382 with_gnu_ld=$with_gnu_ld
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392
12393
12394
12395
12396
12397
12398 #
12399 # Do we need to explicitly link libc?
12400 #
12401 case "x$archive_cmds_need_lc" in
12402 x|xyes)
12403 # Assume -lc should be added
12404 archive_cmds_need_lc=yes
12405
12406 if test yes,yes = "$GCC,$enable_shared"; then
12407 case $archive_cmds in
12408 *'~'*)
12409 # FIXME: we may have to deal with multi-command sequences.
12410 ;;
12411 '$CC '*)
12412 # Test whether the compiler implicitly links with -lc since on some
12413 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12414 # to ld, don't add -lc before -lgcc.
12415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12416 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
12417 if test ${lt_cv_archive_cmds_need_lc+y}
12418 then :
12419 printf %s "(cached) " >&6
12420 else case e in #(
12421 e) $RM conftest*
12422 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12423
12424 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12425 (eval $ac_compile) 2>&5
12426 ac_status=$?
12427 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12428 test $ac_status = 0; } 2>conftest.err; then
12429 soname=conftest
12430 lib=conftest
12431 libobjs=conftest.$ac_objext
12432 deplibs=
12433 wl=$lt_prog_compiler_wl
12434 pic_flag=$lt_prog_compiler_pic
12435 compiler_flags=-v
12436 linker_flags=-v
12437 verstring=
12438 output_objdir=.
12439 libname=conftest
12440 lt_save_allow_undefined_flag=$allow_undefined_flag
12441 allow_undefined_flag=
12442 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12443 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12444 ac_status=$?
12445 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12446 test $ac_status = 0; }
12447 then
12448 lt_cv_archive_cmds_need_lc=no
12449 else
12450 lt_cv_archive_cmds_need_lc=yes
12451 fi
12452 allow_undefined_flag=$lt_save_allow_undefined_flag
12453 else
12454 cat conftest.err 1>&5
12455 fi
12456 $RM conftest*
12457 ;;
12458 esac
12459 fi
12460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12461 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
12462 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12463 ;;
12464 esac
12465 fi
12466 ;;
12467 esac
12468
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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12621 printf %s "checking dynamic linker characteristics... " >&6; }
12622
12623 if test yes = "$GCC"; then
12624 case $host_os in
12625 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12626 *) lt_awk_arg='/^libraries:/' ;;
12627 esac
12628 case $host_os in
12629 mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12630 *) lt_sed_strip_eq='s|=/|/|g' ;;
12631 esac
12632 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12633 case $lt_search_path_spec in
12634 *\;*)
12635 # if the path contains ";" then we assume it to be the separator
12636 # otherwise default to the standard path separator (i.e. ":") - it is
12637 # assumed that no part of a normal pathname contains ";" but that should
12638 # okay in the real world where ";" in dirpaths is itself problematic.
12639 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12640 ;;
12641 *)
12642 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12643 ;;
12644 esac
12645 # Ok, now we have the path, separated by spaces, we can step through it
12646 # and add multilib dir if necessary...
12647 lt_tmp_lt_search_path_spec=
12648 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12649 # ...but if some path component already ends with the multilib dir we assume
12650 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12651 case "$lt_multi_os_dir; $lt_search_path_spec " in
12652 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12653 lt_multi_os_dir=
12654 ;;
12655 esac
12656 for lt_sys_path in $lt_search_path_spec; do
12657 if test -d "$lt_sys_path$lt_multi_os_dir"; then
12658 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12659 elif test -n "$lt_multi_os_dir"; then
12660 test -d "$lt_sys_path" && \
12661 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12662 fi
12663 done
12664 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12665 BEGIN {RS = " "; FS = "/|\n";} {
12666 lt_foo = "";
12667 lt_count = 0;
12668 for (lt_i = NF; lt_i > 0; lt_i--) {
12669 if ($lt_i != "" && $lt_i != ".") {
12670 if ($lt_i == "..") {
12671 lt_count++;
12672 } else {
12673 if (lt_count == 0) {
12674 lt_foo = "/" $lt_i lt_foo;
12675 } else {
12676 lt_count--;
12677 }
12678 }
12679 }
12680 }
12681 if (lt_foo != "") { lt_freq[lt_foo]++; }
12682 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12683 }'`
12684 # AWK program above erroneously prepends '/' to C:/dos/paths
12685 # for these hosts.
12686 case $host_os in
12687 mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12688 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12689 esac
12690 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12691 else
12692 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12693 fi
12694 library_names_spec=
12695 libname_spec='lib$name'
12696 soname_spec=
12697 shrext_cmds=.so
12698 postinstall_cmds=
12699 postuninstall_cmds=
12700 finish_cmds=
12701 finish_eval=
12702 shlibpath_var=
12703 shlibpath_overrides_runpath=unknown
12704 version_type=none
12705 dynamic_linker="$host_os ld.so"
12706 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12707 need_lib_prefix=unknown
12708 hardcode_into_libs=no
12709
12710 # when you set need_version to no, make sure it does not cause -set_version
12711 # flags to be left without arguments
12712 need_version=unknown
12713
12714
12715
12716 case $host_os in
12717 aix3*)
12718 version_type=linux # correct to gnu/linux during the next big refactor
12719 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12720 shlibpath_var=LIBPATH
12721
12722 # AIX 3 has no versioning support, so we append a major version to the name.
12723 soname_spec='$libname$release$shared_ext$major'
12724 ;;
12725
12726 aix[4-9]*)
12727 version_type=linux # correct to gnu/linux during the next big refactor
12728 need_lib_prefix=no
12729 need_version=no
12730 hardcode_into_libs=yes
12731 if test ia64 = "$host_cpu"; then
12732 # AIX 5 supports IA64
12733 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12734 shlibpath_var=LD_LIBRARY_PATH
12735 else
12736 # With GCC up to 2.95.x, collect2 would create an import file
12737 # for dependence libraries. The import file would start with
12738 # the line '#! .'. This would cause the generated library to
12739 # depend on '.', always an invalid library. This was fixed in
12740 # development snapshots of GCC prior to 3.0.
12741 case $host_os in
12742 aix4 | aix4.[01] | aix4.[01].*)
12743 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12744 echo ' yes '
12745 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12746 :
12747 else
12748 can_build_shared=no
12749 fi
12750 ;;
12751 esac
12752 # Using Import Files as archive members, it is possible to support
12753 # filename-based versioning of shared library archives on AIX. While
12754 # this would work for both with and without runtime linking, it will
12755 # prevent static linking of such archives. So we do filename-based
12756 # shared library versioning with .so extension only, which is used
12757 # when both runtime linking and shared linking is enabled.
12758 # Unfortunately, runtime linking may impact performance, so we do
12759 # not want this to be the default eventually. Also, we use the
12760 # versioned .so libs for executables only if there is the -brtl
12761 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
12762 # To allow for filename-based versioning support, we need to create
12763 # libNAME.so.V as an archive file, containing:
12764 # *) an Import File, referring to the versioned filename of the
12765 # archive as well as the shared archive member, telling the
12766 # bitwidth (32 or 64) of that shared object, and providing the
12767 # list of exported symbols of that shared object, eventually
12768 # decorated with the 'weak' keyword
12769 # *) the shared object with the F_LOADONLY flag set, to really avoid
12770 # it being seen by the linker.
12771 # At run time we better use the real file rather than another symlink,
12772 # but for link time we create the symlink libNAME.so -> libNAME.so.V
12773
12774 case $with_aix_soname,$aix_use_runtimelinking in
12775 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12776 # soname into executable. Probably we can add versioning support to
12777 # collect2, so additional links can be useful in future.
12778 aix,yes) # traditional libtool
12779 dynamic_linker='AIX unversionable lib.so'
12780 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12781 # instead of lib<name>.a to let people know that these are not
12782 # typical AIX shared libraries.
12783 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12784 ;;
12785 aix,no) # traditional AIX only
12786 dynamic_linker='AIX lib.a(lib.so.V)'
12787 # We preserve .a as extension for shared libraries through AIX4.2
12788 # and later when we are not doing run time linking.
12789 library_names_spec='$libname$release.a $libname.a'
12790 soname_spec='$libname$release$shared_ext$major'
12791 ;;
12792 svr4,*) # full svr4 only
12793 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12794 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12795 # We do not specify a path in Import Files, so LIBPATH fires.
12796 shlibpath_overrides_runpath=yes
12797 ;;
12798 *,yes) # both, prefer svr4
12799 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12800 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12801 # unpreferred sharedlib libNAME.a needs extra handling
12802 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"'
12803 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"'
12804 # We do not specify a path in Import Files, so LIBPATH fires.
12805 shlibpath_overrides_runpath=yes
12806 ;;
12807 *,no) # both, prefer aix
12808 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12809 library_names_spec='$libname$release.a $libname.a'
12810 soname_spec='$libname$release$shared_ext$major'
12811 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12812 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)'
12813 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"'
12814 ;;
12815 esac
12816 shlibpath_var=LIBPATH
12817 fi
12818 ;;
12819
12820 amigaos*)
12821 case $host_cpu in
12822 powerpc)
12823 # Since July 2007 AmigaOS4 officially supports .so libraries.
12824 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12825 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12826 ;;
12827 m68k)
12828 library_names_spec='$libname.ixlibrary $libname.a'
12829 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12830 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'
12831 ;;
12832 esac
12833 ;;
12834
12835 beos*)
12836 library_names_spec='$libname$shared_ext'
12837 dynamic_linker="$host_os ld.so"
12838 shlibpath_var=LIBRARY_PATH
12839 ;;
12840
12841 bsdi[45]*)
12842 version_type=linux # correct to gnu/linux during the next big refactor
12843 need_version=no
12844 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12845 soname_spec='$libname$release$shared_ext$major'
12846 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12847 shlibpath_var=LD_LIBRARY_PATH
12848 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12849 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12850 # the default ld.so.conf also contains /usr/contrib/lib and
12851 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12852 # libtool to hard-code these into programs
12853 ;;
12854
12855 cygwin* | mingw* | windows* | pw32* | cegcc*)
12856 version_type=windows
12857 shrext_cmds=.dll
12858 need_version=no
12859 need_lib_prefix=no
12860
12861 case $GCC,$cc_basename in
12862 yes,*)
12863 # gcc
12864 library_names_spec='$libname.dll.a'
12865 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12866 # If user builds GCC with multilib enabled,
12867 # it should just install on $(libdir)
12868 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
12869 if test xyes = x"$multilib"; then
12870 postinstall_cmds='base_file=`basename \$file`~
12871 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12872 dldir=$destdir/`dirname \$dlpath`~
12873 $install_prog $dir/$dlname $destdir/$dlname~
12874 chmod a+x $destdir/$dlname~
12875 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12876 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
12877 fi'
12878 else
12879 postinstall_cmds='base_file=`basename \$file`~
12880 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12881 dldir=$destdir/`dirname \$dlpath`~
12882 test -d \$dldir || mkdir -p \$dldir~
12883 $install_prog $dir/$dlname \$dldir/$dlname~
12884 chmod a+x \$dldir/$dlname~
12885 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12886 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12887 fi'
12888 fi
12889 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12890 dlpath=$dir/\$dldll~
12891 $RM \$dlpath'
12892 shlibpath_overrides_runpath=yes
12893
12894 case $host_os in
12895 cygwin*)
12896 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12897 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12898
12899 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12900 ;;
12901 mingw* | windows* | cegcc*)
12902 # MinGW DLLs use traditional 'lib' prefix
12903 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12904 ;;
12905 pw32*)
12906 # pw32 DLLs use 'pw' prefix rather than 'lib'
12907 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12908 ;;
12909 esac
12910 dynamic_linker='Win32 ld.exe'
12911 ;;
12912
12913 *,cl* | *,icl*)
12914 # Native MSVC or ICC
12915 libname_spec='$name'
12916 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12917 library_names_spec='$libname.dll.lib'
12918
12919 case $build_os in
12920 mingw* | windows*)
12921 sys_lib_search_path_spec=
12922 lt_save_ifs=$IFS
12923 IFS=';'
12924 for lt_path in $LIB
12925 do
12926 IFS=$lt_save_ifs
12927 # Let DOS variable expansion print the short 8.3 style file name.
12928 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12929 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12930 done
12931 IFS=$lt_save_ifs
12932 # Convert to MSYS style.
12933 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12934 ;;
12935 cygwin*)
12936 # Convert to unix form, then to dos form, then back to unix form
12937 # but this time dos style (no spaces!) so that the unix form looks
12938 # like /cygdrive/c/PROGRA~1:/cygdr...
12939 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12940 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12941 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12942 ;;
12943 *)
12944 sys_lib_search_path_spec=$LIB
12945 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12946 # It is most probably a Windows format PATH.
12947 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12948 else
12949 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12950 fi
12951 # FIXME: find the short name or the path components, as spaces are
12952 # common. (e.g. "Program Files" -> "PROGRA~1")
12953 ;;
12954 esac
12955
12956 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12957 postinstall_cmds='base_file=`basename \$file`~
12958 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12959 dldir=$destdir/`dirname \$dlpath`~
12960 test -d \$dldir || mkdir -p \$dldir~
12961 $install_prog $dir/$dlname \$dldir/$dlname'
12962 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12963 dlpath=$dir/\$dldll~
12964 $RM \$dlpath'
12965 shlibpath_overrides_runpath=yes
12966 dynamic_linker='Win32 link.exe'
12967 ;;
12968
12969 *)
12970 # Assume MSVC and ICC wrapper
12971 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12972 dynamic_linker='Win32 ld.exe'
12973 ;;
12974 esac
12975 # FIXME: first we should search . and the directory the executable is in
12976 shlibpath_var=PATH
12977 ;;
12978
12979 darwin* | rhapsody*)
12980 dynamic_linker="$host_os dyld"
12981 version_type=darwin
12982 need_lib_prefix=no
12983 need_version=no
12984 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12985 soname_spec='$libname$release$major$shared_ext'
12986 shlibpath_overrides_runpath=yes
12987 shlibpath_var=DYLD_LIBRARY_PATH
12988 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12989
12990 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12991 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12992 ;;
12993
12994 dgux*)
12995 version_type=linux # correct to gnu/linux during the next big refactor
12996 need_lib_prefix=no
12997 need_version=no
12998 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12999 soname_spec='$libname$release$shared_ext$major'
13000 shlibpath_var=LD_LIBRARY_PATH
13001 ;;
13002
13003 freebsd* | dragonfly* | midnightbsd*)
13004 # DragonFly does not have aout. When/if they implement a new
13005 # versioning mechanism, adjust this.
13006 if test -x /usr/bin/objformat; then
13007 objformat=`/usr/bin/objformat`
13008 else
13009 case $host_os in
13010 freebsd[23].*) objformat=aout ;;
13011 *) objformat=elf ;;
13012 esac
13013 fi
13014 version_type=freebsd-$objformat
13015 case $version_type in
13016 freebsd-elf*)
13017 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13018 soname_spec='$libname$release$shared_ext$major'
13019 need_version=no
13020 need_lib_prefix=no
13021 ;;
13022 freebsd-*)
13023 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13024 need_version=yes
13025 ;;
13026 esac
13027 case $host_cpu in
13028 powerpc64)
13029 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
13030 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
13031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13032 /* end confdefs.h. */
13033 int test_pointer_size[sizeof (void *) - 5];
13034
13035 _ACEOF
13036 if ac_fn_c_try_compile "$LINENO"
13037 then :
13038 shlibpath_var=LD_LIBRARY_PATH
13039 else case e in #(
13040 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
13041 esac
13042 fi
13043 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13044 ;;
13045 *)
13046 shlibpath_var=LD_LIBRARY_PATH
13047 ;;
13048 esac
13049 case $host_os in
13050 freebsd2.*)
13051 shlibpath_overrides_runpath=yes
13052 ;;
13053 freebsd3.[01]* | freebsdelf3.[01]*)
13054 shlibpath_overrides_runpath=yes
13055 hardcode_into_libs=yes
13056 ;;
13057 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13058 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13059 shlibpath_overrides_runpath=no
13060 hardcode_into_libs=yes
13061 ;;
13062 *) # from 4.6 on, and DragonFly
13063 shlibpath_overrides_runpath=yes
13064 hardcode_into_libs=yes
13065 ;;
13066 esac
13067 ;;
13068
13069 haiku*)
13070 version_type=linux # correct to gnu/linux during the next big refactor
13071 need_lib_prefix=no
13072 need_version=no
13073 dynamic_linker="$host_os runtime_loader"
13074 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13075 soname_spec='$libname$release$shared_ext$major'
13076 shlibpath_var=LIBRARY_PATH
13077 shlibpath_overrides_runpath=no
13078 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
13079 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
13080 hardcode_into_libs=no
13081 ;;
13082
13083 hpux9* | hpux10* | hpux11*)
13084 # Give a soname corresponding to the major version so that dld.sl refuses to
13085 # link against other versions.
13086 version_type=sunos
13087 need_lib_prefix=no
13088 need_version=no
13089 case $host_cpu in
13090 ia64*)
13091 shrext_cmds='.so'
13092 hardcode_into_libs=yes
13093 dynamic_linker="$host_os dld.so"
13094 shlibpath_var=LD_LIBRARY_PATH
13095 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13096 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13097 soname_spec='$libname$release$shared_ext$major'
13098 if test 32 = "$HPUX_IA64_MODE"; then
13099 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13100 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
13101 else
13102 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13103 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
13104 fi
13105 ;;
13106 hppa*64*)
13107 shrext_cmds='.sl'
13108 hardcode_into_libs=yes
13109 dynamic_linker="$host_os dld.sl"
13110 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13111 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13112 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13113 soname_spec='$libname$release$shared_ext$major'
13114 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13115 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13116 ;;
13117 *)
13118 shrext_cmds='.sl'
13119 dynamic_linker="$host_os dld.sl"
13120 shlibpath_var=SHLIB_PATH
13121 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13122 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13123 soname_spec='$libname$release$shared_ext$major'
13124 ;;
13125 esac
13126 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13127 postinstall_cmds='chmod 555 $lib'
13128 # or fails outright, so override atomically:
13129 install_override_mode=555
13130 ;;
13131
13132 interix[3-9]*)
13133 version_type=linux # correct to gnu/linux during the next big refactor
13134 need_lib_prefix=no
13135 need_version=no
13136 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13137 soname_spec='$libname$release$shared_ext$major'
13138 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13139 shlibpath_var=LD_LIBRARY_PATH
13140 shlibpath_overrides_runpath=no
13141 hardcode_into_libs=yes
13142 ;;
13143
13144 irix5* | irix6* | nonstopux*)
13145 case $host_os in
13146 nonstopux*) version_type=nonstopux ;;
13147 *)
13148 if test yes = "$lt_cv_prog_gnu_ld"; then
13149 version_type=linux # correct to gnu/linux during the next big refactor
13150 else
13151 version_type=irix
13152 fi ;;
13153 esac
13154 need_lib_prefix=no
13155 need_version=no
13156 soname_spec='$libname$release$shared_ext$major'
13157 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
13158 case $host_os in
13159 irix5* | nonstopux*)
13160 libsuff= shlibsuff=
13161 ;;
13162 *)
13163 case $LD in # libtool.m4 will add one of these switches to LD
13164 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13165 libsuff= shlibsuff= libmagic=32-bit;;
13166 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13167 libsuff=32 shlibsuff=N32 libmagic=N32;;
13168 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13169 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13170 *) libsuff= shlibsuff= libmagic=never-match;;
13171 esac
13172 ;;
13173 esac
13174 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13175 shlibpath_overrides_runpath=no
13176 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13177 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
13178 hardcode_into_libs=yes
13179 ;;
13180
13181 # No shared lib support for Linux oldld, aout, or coff.
13182 linux*oldld* | linux*aout* | linux*coff*)
13183 dynamic_linker=no
13184 ;;
13185
13186 linux*android*)
13187 version_type=none # Android doesn't support versioned libraries.
13188 need_lib_prefix=no
13189 need_version=no
13190 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
13191 soname_spec='$libname$release$shared_ext'
13192 finish_cmds=
13193 shlibpath_var=LD_LIBRARY_PATH
13194 shlibpath_overrides_runpath=yes
13195
13196 # This implies no fast_install, which is unacceptable.
13197 # Some rework will be needed to allow for fast_install
13198 # before this can be enabled.
13199 hardcode_into_libs=yes
13200
13201 dynamic_linker='Android linker'
13202 # -rpath works at least for libraries that are not overridden by
13203 # libraries installed in system locations.
13204 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13205 ;;
13206
13207 # This must be glibc/ELF.
13208 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13209 version_type=linux # correct to gnu/linux during the next big refactor
13210 need_lib_prefix=no
13211 need_version=no
13212 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13213 soname_spec='$libname$release$shared_ext$major'
13214 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13215 shlibpath_var=LD_LIBRARY_PATH
13216 shlibpath_overrides_runpath=no
13217
13218 # Some binutils ld are patched to set DT_RUNPATH
13219 if test ${lt_cv_shlibpath_overrides_runpath+y}
13220 then :
13221 printf %s "(cached) " >&6
13222 else case e in #(
13223 e) lt_cv_shlibpath_overrides_runpath=no
13224 save_LDFLAGS=$LDFLAGS
13225 save_libdir=$libdir
13226 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13227 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13229 /* end confdefs.h. */
13230
13231 int
13232 main (void)
13233 {
13234
13235 ;
13236 return 0;
13237 }
13238 _ACEOF
13239 if ac_fn_c_try_link "$LINENO"
13240 then :
13241 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
13242 then :
13243 lt_cv_shlibpath_overrides_runpath=yes
13244 fi
13245 fi
13246 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13247 conftest$ac_exeext conftest.$ac_ext
13248 LDFLAGS=$save_LDFLAGS
13249 libdir=$save_libdir
13250 ;;
13251 esac
13252 fi
13253
13254 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13255
13256 # This implies no fast_install, which is unacceptable.
13257 # Some rework will be needed to allow for fast_install
13258 # before this can be enabled.
13259 hardcode_into_libs=yes
13260
13261 # Ideally, we could use ldconfig to report *all* directories which are
13262 # searched for libraries, however this is still not possible. Aside from not
13263 # being certain /sbin/ldconfig is available, command
13264 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13265 # even though it is searched at run-time. Try to do the best guess by
13266 # appending ld.so.conf contents (and includes) to the search path.
13267 if test -f /etc/ld.so.conf; then
13268 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' ' '`
13269 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13270 fi
13271
13272 # We used to test for /lib/ld.so.1 and disable shared libraries on
13273 # powerpc, because MkLinux only supported shared libraries with the
13274 # GNU dynamic linker. Since this was broken with cross compilers,
13275 # most powerpc-linux boxes support dynamic linking these days and
13276 # people can always --disable-shared, the test was removed, and we
13277 # assume the GNU/Linux dynamic linker is in use.
13278 dynamic_linker='GNU/Linux ld.so'
13279 ;;
13280
13281 netbsdelf*-gnu)
13282 version_type=linux
13283 need_lib_prefix=no
13284 need_version=no
13285 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13286 soname_spec='$libname$release$shared_ext$major'
13287 shlibpath_var=LD_LIBRARY_PATH
13288 shlibpath_overrides_runpath=no
13289 hardcode_into_libs=yes
13290 dynamic_linker='NetBSD ld.elf_so'
13291 ;;
13292
13293 netbsd*)
13294 version_type=sunos
13295 need_lib_prefix=no
13296 need_version=no
13297 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13298 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13299 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13300 dynamic_linker='NetBSD (a.out) ld.so'
13301 else
13302 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13303 soname_spec='$libname$release$shared_ext$major'
13304 dynamic_linker='NetBSD ld.elf_so'
13305 fi
13306 shlibpath_var=LD_LIBRARY_PATH
13307 shlibpath_overrides_runpath=yes
13308 hardcode_into_libs=yes
13309 ;;
13310
13311 *-mlibc)
13312 version_type=linux # correct to gnu/linux during the next big refactor
13313 need_lib_prefix=no
13314 need_version=no
13315 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13316 soname_spec='$libname$release$shared_ext$major'
13317 dynamic_linker='mlibc ld.so'
13318 shlibpath_var=LD_LIBRARY_PATH
13319 shlibpath_overrides_runpath=no
13320 hardcode_into_libs=yes
13321 ;;
13322
13323 newsos6)
13324 version_type=linux # correct to gnu/linux during the next big refactor
13325 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13326 shlibpath_var=LD_LIBRARY_PATH
13327 shlibpath_overrides_runpath=yes
13328 ;;
13329
13330 *nto* | *qnx*)
13331 version_type=qnx
13332 need_lib_prefix=no
13333 need_version=no
13334 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13335 soname_spec='$libname$release$shared_ext$major'
13336 shlibpath_var=LD_LIBRARY_PATH
13337 shlibpath_overrides_runpath=no
13338 hardcode_into_libs=yes
13339 dynamic_linker='ldqnx.so'
13340 ;;
13341
13342 openbsd*)
13343 version_type=sunos
13344 sys_lib_dlsearch_path_spec=/usr/lib
13345 need_lib_prefix=no
13346 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13347 need_version=no
13348 else
13349 need_version=yes
13350 fi
13351 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13352 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13353 shlibpath_var=LD_LIBRARY_PATH
13354 shlibpath_overrides_runpath=yes
13355 ;;
13356
13357 os2*)
13358 libname_spec='$name'
13359 version_type=windows
13360 shrext_cmds=.dll
13361 need_version=no
13362 need_lib_prefix=no
13363 # OS/2 can only load a DLL with a base name of 8 characters or less.
13364 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13365 v=$($ECHO $release$versuffix | tr -d .-);
13366 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13367 $ECHO $n$v`$shared_ext'
13368 library_names_spec='${libname}_dll.$libext'
13369 dynamic_linker='OS/2 ld.exe'
13370 shlibpath_var=BEGINLIBPATH
13371 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13372 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13373 postinstall_cmds='base_file=`basename \$file`~
13374 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13375 dldir=$destdir/`dirname \$dlpath`~
13376 test -d \$dldir || mkdir -p \$dldir~
13377 $install_prog $dir/$dlname \$dldir/$dlname~
13378 chmod a+x \$dldir/$dlname~
13379 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13380 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13381 fi'
13382 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13383 dlpath=$dir/\$dldll~
13384 $RM \$dlpath'
13385 ;;
13386
13387 osf3* | osf4* | osf5*)
13388 version_type=osf
13389 need_lib_prefix=no
13390 need_version=no
13391 soname_spec='$libname$release$shared_ext$major'
13392 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13393 shlibpath_var=LD_LIBRARY_PATH
13394 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13395 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13396 ;;
13397
13398 rdos*)
13399 dynamic_linker=no
13400 ;;
13401
13402 serenity*)
13403 version_type=linux # correct to gnu/linux during the next big refactor
13404 need_lib_prefix=no
13405 need_version=no
13406 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13407 soname_spec='$libname$release$shared_ext$major'
13408 shlibpath_var=LD_LIBRARY_PATH
13409 shlibpath_overrides_runpath=no
13410 dynamic_linker='SerenityOS LibELF'
13411 ;;
13412
13413 solaris*)
13414 version_type=linux # correct to gnu/linux during the next big refactor
13415 need_lib_prefix=no
13416 need_version=no
13417 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13418 soname_spec='$libname$release$shared_ext$major'
13419 shlibpath_var=LD_LIBRARY_PATH
13420 shlibpath_overrides_runpath=yes
13421 hardcode_into_libs=yes
13422 # ldd complains unless libraries are executable
13423 postinstall_cmds='chmod +x $lib'
13424 ;;
13425
13426 sunos4*)
13427 version_type=sunos
13428 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13429 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13430 shlibpath_var=LD_LIBRARY_PATH
13431 shlibpath_overrides_runpath=yes
13432 if test yes = "$with_gnu_ld"; then
13433 need_lib_prefix=no
13434 fi
13435 need_version=yes
13436 ;;
13437
13438 sysv4 | sysv4.3*)
13439 version_type=linux # correct to gnu/linux during the next big refactor
13440 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13441 soname_spec='$libname$release$shared_ext$major'
13442 shlibpath_var=LD_LIBRARY_PATH
13443 case $host_vendor in
13444 sni)
13445 shlibpath_overrides_runpath=no
13446 need_lib_prefix=no
13447 runpath_var=LD_RUN_PATH
13448 ;;
13449 siemens)
13450 need_lib_prefix=no
13451 ;;
13452 motorola)
13453 need_lib_prefix=no
13454 need_version=no
13455 shlibpath_overrides_runpath=no
13456 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13457 ;;
13458 esac
13459 ;;
13460
13461 sysv4*MP*)
13462 if test -d /usr/nec; then
13463 version_type=linux # correct to gnu/linux during the next big refactor
13464 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13465 soname_spec='$libname$shared_ext.$major'
13466 shlibpath_var=LD_LIBRARY_PATH
13467 fi
13468 ;;
13469
13470 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13471 version_type=sco
13472 need_lib_prefix=no
13473 need_version=no
13474 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13475 soname_spec='$libname$release$shared_ext$major'
13476 shlibpath_var=LD_LIBRARY_PATH
13477 shlibpath_overrides_runpath=yes
13478 hardcode_into_libs=yes
13479 if test yes = "$with_gnu_ld"; then
13480 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13481 else
13482 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13483 case $host_os in
13484 sco3.2v5*)
13485 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13486 ;;
13487 esac
13488 fi
13489 sys_lib_dlsearch_path_spec='/usr/lib'
13490 ;;
13491
13492 tpf*)
13493 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13494 version_type=linux # correct to gnu/linux during the next big refactor
13495 need_lib_prefix=no
13496 need_version=no
13497 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13498 shlibpath_var=LD_LIBRARY_PATH
13499 shlibpath_overrides_runpath=no
13500 hardcode_into_libs=yes
13501 ;;
13502
13503 uts4*)
13504 version_type=linux # correct to gnu/linux during the next big refactor
13505 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13506 soname_spec='$libname$release$shared_ext$major'
13507 shlibpath_var=LD_LIBRARY_PATH
13508 ;;
13509
13510 emscripten*)
13511 version_type=none
13512 need_lib_prefix=no
13513 need_version=no
13514 library_names_spec='$libname$release$shared_ext'
13515 soname_spec='$libname$release$shared_ext'
13516 finish_cmds=
13517 dynamic_linker="Emscripten linker"
13518 lt_prog_compiler_wl=
13519 lt_prog_compiler_pic=
13520 lt_prog_compiler_static=
13521
13522
13523 if test yes = "$GCC"; then
13524 lt_prog_compiler_wl='-Wl,'
13525 lt_prog_compiler_static='-static'
13526
13527 case $host_os in
13528 aix*)
13529 # All AIX code is PIC.
13530 if test ia64 = "$host_cpu"; then
13531 # AIX 5 now supports IA64 processor
13532 lt_prog_compiler_static='-Bstatic'
13533 fi
13534 lt_prog_compiler_pic='-fPIC'
13535 ;;
13536
13537 amigaos*)
13538 case $host_cpu in
13539 powerpc)
13540 # see comment about AmigaOS4 .so support
13541 lt_prog_compiler_pic='-fPIC'
13542 ;;
13543 m68k)
13544 # FIXME: we need at least 68020 code to build shared libraries, but
13545 # adding the '-m68020' flag to GCC prevents building anything better,
13546 # like '-m68040'.
13547 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13548 ;;
13549 esac
13550 ;;
13551
13552 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13553 # PIC is the default for these OSes.
13554 ;;
13555
13556 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
13557 # This hack is so that the source file can tell whether it is being
13558 # built for inclusion in a dll (and should export symbols for example).
13559 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13560 # (--disable-auto-import) libraries
13561 lt_prog_compiler_pic='-DDLL_EXPORT'
13562 case $host_os in
13563 os2*)
13564 lt_prog_compiler_static='$wl-static'
13565 ;;
13566 esac
13567 ;;
13568
13569 darwin* | rhapsody*)
13570 # PIC is the default on this platform
13571 # Common symbols not allowed in MH_DYLIB files
13572 lt_prog_compiler_pic='-fno-common'
13573 ;;
13574
13575 haiku*)
13576 # PIC is the default for Haiku.
13577 # The "-static" flag exists, but is broken.
13578 lt_prog_compiler_static=
13579 ;;
13580
13581 hpux*)
13582 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13583 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13584 # sets the default TLS model and affects inlining.
13585 case $host_cpu in
13586 hppa*64*)
13587 # +Z the default
13588 ;;
13589 *)
13590 lt_prog_compiler_pic='-fPIC'
13591 ;;
13592 esac
13593 ;;
13594
13595 interix[3-9]*)
13596 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13597 # Instead, we relocate shared libraries at runtime.
13598 ;;
13599
13600 msdosdjgpp*)
13601 # Just because we use GCC doesn't mean we suddenly get shared libraries
13602 # on systems that don't support them.
13603 lt_prog_compiler_can_build_shared=no
13604 enable_shared=no
13605 ;;
13606
13607 *nto* | *qnx*)
13608 # QNX uses GNU C++, but need to define -shared option too, otherwise
13609 # it will coredump.
13610 lt_prog_compiler_pic='-fPIC -shared'
13611 ;;
13612
13613 sysv4*MP*)
13614 if test -d /usr/nec; then
13615 lt_prog_compiler_pic=-Kconform_pic
13616 fi
13617 ;;
13618
13619 *)
13620 lt_prog_compiler_pic='-fPIC'
13621 ;;
13622 esac
13623
13624 case $cc_basename in
13625 nvcc*) # Cuda Compiler Driver 2.2
13626 lt_prog_compiler_wl='-Xlinker '
13627 if test -n "$lt_prog_compiler_pic"; then
13628 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
13629 fi
13630 ;;
13631 esac
13632 else
13633 # PORTME Check for flag to pass linker flags through the system compiler.
13634 case $host_os in
13635 aix*)
13636 lt_prog_compiler_wl='-Wl,'
13637 if test ia64 = "$host_cpu"; then
13638 # AIX 5 now supports IA64 processor
13639 lt_prog_compiler_static='-Bstatic'
13640 else
13641 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13642 fi
13643 ;;
13644
13645 darwin* | rhapsody*)
13646 # PIC is the default on this platform
13647 # Common symbols not allowed in MH_DYLIB files
13648 lt_prog_compiler_pic='-fno-common'
13649 case $cc_basename in
13650 nagfor*)
13651 # NAG Fortran compiler
13652 lt_prog_compiler_wl='-Wl,-Wl,,'
13653 lt_prog_compiler_pic='-PIC'
13654 lt_prog_compiler_static='-Bstatic'
13655 ;;
13656 esac
13657 ;;
13658
13659 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
13660 # This hack is so that the source file can tell whether it is being
13661 # built for inclusion in a dll (and should export symbols for example).
13662 lt_prog_compiler_pic='-DDLL_EXPORT'
13663 case $host_os in
13664 os2*)
13665 lt_prog_compiler_static='$wl-static'
13666 ;;
13667 esac
13668 ;;
13669
13670 hpux9* | hpux10* | hpux11*)
13671 lt_prog_compiler_wl='-Wl,'
13672 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13673 # not for PA HP-UX.
13674 case $host_cpu in
13675 hppa*64*|ia64*)
13676 # +Z the default
13677 ;;
13678 *)
13679 lt_prog_compiler_pic='+Z'
13680 ;;
13681 esac
13682 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13683 lt_prog_compiler_static='$wl-a ${wl}archive'
13684 ;;
13685
13686 irix5* | irix6* | nonstopux*)
13687 lt_prog_compiler_wl='-Wl,'
13688 # PIC (with -KPIC) is the default.
13689 lt_prog_compiler_static='-non_shared'
13690 ;;
13691
13692 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13693 case $cc_basename in
13694 # old Intel for x86_64, which still supported -KPIC.
13695 ecc*)
13696 lt_prog_compiler_wl='-Wl,'
13697 lt_prog_compiler_pic='-KPIC'
13698 lt_prog_compiler_static='-static'
13699 ;;
13700 *flang* | ftn | f18* | f95*)
13701 # Flang compiler.
13702 lt_prog_compiler_wl='-Wl,'
13703 lt_prog_compiler_pic='-fPIC'
13704 lt_prog_compiler_static='-static'
13705 ;;
13706 # icc used to be incompatible with GCC.
13707 # ICC 10 doesn't accept -KPIC any more.
13708 icc* | ifort*)
13709 lt_prog_compiler_wl='-Wl,'
13710 lt_prog_compiler_pic='-fPIC'
13711 lt_prog_compiler_static='-static'
13712 ;;
13713 # Lahey Fortran 8.1.
13714 lf95*)
13715 lt_prog_compiler_wl='-Wl,'
13716 lt_prog_compiler_pic='--shared'
13717 lt_prog_compiler_static='--static'
13718 ;;
13719 nagfor*)
13720 # NAG Fortran compiler
13721 lt_prog_compiler_wl='-Wl,-Wl,,'
13722 lt_prog_compiler_pic='-PIC'
13723 lt_prog_compiler_static='-Bstatic'
13724 ;;
13725 tcc*)
13726 # Fabrice Bellard et al's Tiny C Compiler
13727 lt_prog_compiler_wl='-Wl,'
13728 lt_prog_compiler_pic='-fPIC'
13729 lt_prog_compiler_static='-static'
13730 ;;
13731 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
13732 # Portland Group compilers (*not* the Pentium gcc compiler,
13733 # which looks to be a dead project)
13734 lt_prog_compiler_wl='-Wl,'
13735 lt_prog_compiler_pic='-fpic'
13736 lt_prog_compiler_static='-Bstatic'
13737 ;;
13738 ccc*)
13739 lt_prog_compiler_wl='-Wl,'
13740 # All Alpha code is PIC.
13741 lt_prog_compiler_static='-non_shared'
13742 ;;
13743 xl* | bgxl* | bgf* | mpixl*)
13744 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
13745 lt_prog_compiler_wl='-Wl,'
13746 lt_prog_compiler_pic='-qpic'
13747 lt_prog_compiler_static='-qstaticlink'
13748 ;;
13749 *)
13750 case `$CC -V 2>&1 | $SED 5q` in
13751 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
13752 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13753 lt_prog_compiler_pic='-KPIC'
13754 lt_prog_compiler_static='-Bstatic'
13755 lt_prog_compiler_wl=''
13756 ;;
13757 *Sun\ F* | *Sun*Fortran*)
13758 lt_prog_compiler_pic='-KPIC'
13759 lt_prog_compiler_static='-Bstatic'
13760 lt_prog_compiler_wl='-Qoption ld '
13761 ;;
13762 *Sun\ C*)
13763 # Sun C 5.9
13764 lt_prog_compiler_pic='-KPIC'
13765 lt_prog_compiler_static='-Bstatic'
13766 lt_prog_compiler_wl='-Wl,'
13767 ;;
13768 *Intel*\ [CF]*Compiler*)
13769 lt_prog_compiler_wl='-Wl,'
13770 lt_prog_compiler_pic='-fPIC'
13771 lt_prog_compiler_static='-static'
13772 ;;
13773 *Portland\ Group*)
13774 lt_prog_compiler_wl='-Wl,'
13775 lt_prog_compiler_pic='-fpic'
13776 lt_prog_compiler_static='-Bstatic'
13777 ;;
13778 esac
13779 ;;
13780 esac
13781 ;;
13782
13783 newsos6)
13784 lt_prog_compiler_pic='-KPIC'
13785 lt_prog_compiler_static='-Bstatic'
13786 ;;
13787
13788 *-mlibc)
13789 lt_prog_compiler_wl='-Wl,'
13790 lt_prog_compiler_pic='-fPIC'
13791 lt_prog_compiler_static='-static'
13792 ;;
13793
13794 *nto* | *qnx*)
13795 # QNX uses GNU C++, but need to define -shared option too, otherwise
13796 # it will coredump.
13797 lt_prog_compiler_pic='-fPIC -shared'
13798 ;;
13799
13800 osf3* | osf4* | osf5*)
13801 lt_prog_compiler_wl='-Wl,'
13802 # All OSF/1 code is PIC.
13803 lt_prog_compiler_static='-non_shared'
13804 ;;
13805
13806 rdos*)
13807 lt_prog_compiler_static='-non_shared'
13808 ;;
13809
13810 serenity*)
13811 ;;
13812
13813 solaris*)
13814 lt_prog_compiler_pic='-KPIC'
13815 lt_prog_compiler_static='-Bstatic'
13816 case $cc_basename in
13817 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
13818 lt_prog_compiler_wl='-Qoption ld ';;
13819 *)
13820 lt_prog_compiler_wl='-Wl,';;
13821 esac
13822 ;;
13823
13824 sunos4*)
13825 lt_prog_compiler_wl='-Qoption ld '
13826 lt_prog_compiler_pic='-PIC'
13827 lt_prog_compiler_static='-Bstatic'
13828 ;;
13829
13830 sysv4 | sysv4.2uw2* | sysv4.3*)
13831 lt_prog_compiler_wl='-Wl,'
13832 lt_prog_compiler_pic='-KPIC'
13833 lt_prog_compiler_static='-Bstatic'
13834 ;;
13835
13836 sysv4*MP*)
13837 if test -d /usr/nec; then
13838 lt_prog_compiler_pic='-Kconform_pic'
13839 lt_prog_compiler_static='-Bstatic'
13840 fi
13841 ;;
13842
13843 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13844 lt_prog_compiler_wl='-Wl,'
13845 lt_prog_compiler_pic='-KPIC'
13846 lt_prog_compiler_static='-Bstatic'
13847 ;;
13848
13849 unicos*)
13850 lt_prog_compiler_wl='-Wl,'
13851 lt_prog_compiler_can_build_shared=no
13852 ;;
13853
13854 uts4*)
13855 lt_prog_compiler_pic='-pic'
13856 lt_prog_compiler_static='-Bstatic'
13857 ;;
13858
13859 *)
13860 lt_prog_compiler_can_build_shared=no
13861 ;;
13862 esac
13863 fi
13864
13865 case $host_os in
13866 # For platforms that do not support PIC, -DPIC is meaningless:
13867 *djgpp*)
13868 lt_prog_compiler_pic=
13869 ;;
13870 *)
13871 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13872 ;;
13873 esac
13874
13875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13876 printf %s "checking for $compiler option to produce PIC... " >&6; }
13877 if test ${lt_cv_prog_compiler_pic+y}
13878 then :
13879 printf %s "(cached) " >&6
13880 else case e in #(
13881 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
13882 esac
13883 fi
13884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13885 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
13886 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
13887
13888 #
13889 # Check to make sure the PIC flag actually works.
13890 #
13891 if test -n "$lt_prog_compiler_pic"; then
13892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13893 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
13894 if test ${lt_cv_prog_compiler_pic_works+y}
13895 then :
13896 printf %s "(cached) " >&6
13897 else case e in #(
13898 e) lt_cv_prog_compiler_pic_works=no
13899 ac_outfile=conftest.$ac_objext
13900 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13901 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
13902 # Insert the option either (1) after the last *FLAGS variable, or
13903 # (2) before a word containing "conftest.", or (3) at the end.
13904 # Note that $ac_compile itself does not contain backslashes and begins
13905 # with a dollar sign (not a hyphen), so the echo should work correctly.
13906 # The option is referenced via a variable to avoid confusing sed.
13907 lt_compile=`echo "$ac_compile" | $SED \
13908 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13909 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13910 -e 's:$: $lt_compiler_flag:'`
13911 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13912 (eval "$lt_compile" 2>conftest.err)
13913 ac_status=$?
13914 cat conftest.err >&5
13915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13916 if (exit $ac_status) && test -s "$ac_outfile"; then
13917 # The compiler can only warn and ignore the option if not recognized
13918 # So say no if there are warnings other than the usual output.
13919 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13920 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13921 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13922 lt_cv_prog_compiler_pic_works=yes
13923 fi
13924 fi
13925 $RM conftest*
13926 ;;
13927 esac
13928 fi
13929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13930 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
13931
13932 if test yes = "$lt_cv_prog_compiler_pic_works"; then
13933 case $lt_prog_compiler_pic in
13934 "" | " "*) ;;
13935 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13936 esac
13937 else
13938 lt_prog_compiler_pic=
13939 lt_prog_compiler_can_build_shared=no
13940 fi
13941
13942 fi
13943
13944
13945
13946
13947
13948 #
13949 # Check to make sure the static flag actually works.
13950 #
13951 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13953 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13954 if test ${lt_cv_prog_compiler_static_works+y}
13955 then :
13956 printf %s "(cached) " >&6
13957 else case e in #(
13958 e) lt_cv_prog_compiler_static_works=no
13959 save_LDFLAGS=$LDFLAGS
13960 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13961 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13962 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13963 # The linker can only warn and ignore the option if not recognized
13964 # So say no if there are warnings
13965 if test -s conftest.err; then
13966 # Append any errors to the config.log.
13967 cat conftest.err 1>&5
13968 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13969 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13970 if diff conftest.exp conftest.er2 >/dev/null; then
13971 lt_cv_prog_compiler_static_works=yes
13972 fi
13973 else
13974 lt_cv_prog_compiler_static_works=yes
13975 fi
13976 fi
13977 $RM -r conftest*
13978 LDFLAGS=$save_LDFLAGS
13979 ;;
13980 esac
13981 fi
13982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13983 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
13984
13985 if test yes = "$lt_cv_prog_compiler_static_works"; then
13986 :
13987 else
13988 lt_prog_compiler_static=
13989 fi
13990
13991
13992
13993 ='-fPIC'
13994 archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
13995 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'
13996 archive_cmds_need_lc=no
13997 no_undefined_flag=
13998 ;;
13999
14000 *)
14001 dynamic_linker=no
14002 ;;
14003 esac
14004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14005 printf "%s\n" "$dynamic_linker" >&6; }
14006 test no = "$dynamic_linker" && can_build_shared=no
14007
14008 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14009 if test yes = "$GCC"; then
14010 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14011 fi
14012
14013 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14014 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
14015 fi
14016
14017 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14018 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
14019 fi
14020
14021 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14022 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14023
14024 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14025 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14026
14027 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14028 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
14029
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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14127 printf %s "checking how to hardcode library paths into programs... " >&6; }
14128 hardcode_action=
14129 if test -n "$hardcode_libdir_flag_spec" ||
14130 test -n "$runpath_var" ||
14131 test yes = "$hardcode_automatic"; then
14132
14133 # We can hardcode non-existent directories.
14134 if test no != "$hardcode_direct" &&
14135 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14136 # have to relink, otherwise we might link with an installed library
14137 # when we should be linking with a yet-to-be-installed one
14138 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
14139 test no != "$hardcode_minus_L"; then
14140 # Linking always hardcodes the temporary library directory.
14141 hardcode_action=relink
14142 else
14143 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14144 hardcode_action=immediate
14145 fi
14146 else
14147 # We cannot hardcode anything, or else we can only hardcode existing
14148 # directories.
14149 hardcode_action=unsupported
14150 fi
14151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14152 printf "%s\n" "$hardcode_action" >&6; }
14153
14154 if test relink = "$hardcode_action" ||
14155 test yes = "$inherit_rpath"; then
14156 # Fast installation is not supported
14157 enable_fast_install=no
14158 elif test yes = "$shlibpath_overrides_runpath" ||
14159 test no = "$enable_shared"; then
14160 # Fast installation is not necessary
14161 enable_fast_install=needless
14162 fi
14163
14164
14165
14166
14167
14168
14169 if test yes != "$enable_dlopen"; then
14170 enable_dlopen=unknown
14171 enable_dlopen_self=unknown
14172 enable_dlopen_self_static=unknown
14173 else
14174 lt_cv_dlopen=no
14175 lt_cv_dlopen_libs=
14176
14177 case $host_os in
14178 beos*)
14179 lt_cv_dlopen=load_add_on
14180 lt_cv_dlopen_libs=
14181 lt_cv_dlopen_self=yes
14182 ;;
14183
14184 mingw* | windows* | pw32* | cegcc*)
14185 lt_cv_dlopen=LoadLibrary
14186 lt_cv_dlopen_libs=
14187 ;;
14188
14189 cygwin*)
14190 lt_cv_dlopen=dlopen
14191 lt_cv_dlopen_libs=
14192 ;;
14193
14194 darwin*)
14195 # if libdl is installed we need to link against it
14196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14197 printf %s "checking for dlopen in -ldl... " >&6; }
14198 if test ${ac_cv_lib_dl_dlopen+y}
14199 then :
14200 printf %s "(cached) " >&6
14201 else case e in #(
14202 e) ac_check_lib_save_LIBS=$LIBS
14203 LIBS="-ldl $LIBS"
14204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14205 /* end confdefs.h. */
14206
14207 /* Override any GCC internal prototype to avoid an error.
14208 Use char because int might match the return type of a GCC
14209 builtin and then its argument prototype would still apply.
14210 The 'extern "C"' is for builds by C++ compilers;
14211 although this is not generally supported in C code supporting it here
14212 has little cost and some practical benefit (sr 110532). */
14213 #ifdef __cplusplus
14214 extern "C"
14215 #endif
14216 char dlopen (void);
14217 int
14218 main (void)
14219 {
14220 return dlopen ();
14221 ;
14222 return 0;
14223 }
14224 _ACEOF
14225 if ac_fn_c_try_link "$LINENO"
14226 then :
14227 ac_cv_lib_dl_dlopen=yes
14228 else case e in #(
14229 e) ac_cv_lib_dl_dlopen=no ;;
14230 esac
14231 fi
14232 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14233 conftest$ac_exeext conftest.$ac_ext
14234 LIBS=$ac_check_lib_save_LIBS ;;
14235 esac
14236 fi
14237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14238 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
14239 if test "x$ac_cv_lib_dl_dlopen" = xyes
14240 then :
14241 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14242 else case e in #(
14243 e)
14244 lt_cv_dlopen=dyld
14245 lt_cv_dlopen_libs=
14246 lt_cv_dlopen_self=yes
14247 ;;
14248 esac
14249 fi
14250
14251 ;;
14252
14253 tpf*)
14254 # Don't try to run any link tests for TPF. We know it's impossible
14255 # because TPF is a cross-compiler, and we know how we open DSOs.
14256 lt_cv_dlopen=dlopen
14257 lt_cv_dlopen_libs=
14258 lt_cv_dlopen_self=no
14259 ;;
14260
14261 *)
14262 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14263 if test "x$ac_cv_func_shl_load" = xyes
14264 then :
14265 lt_cv_dlopen=shl_load
14266 else case e in #(
14267 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14268 printf %s "checking for shl_load in -ldld... " >&6; }
14269 if test ${ac_cv_lib_dld_shl_load+y}
14270 then :
14271 printf %s "(cached) " >&6
14272 else case e in #(
14273 e) ac_check_lib_save_LIBS=$LIBS
14274 LIBS="-ldld $LIBS"
14275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14276 /* end confdefs.h. */
14277
14278 /* Override any GCC internal prototype to avoid an error.
14279 Use char because int might match the return type of a GCC
14280 builtin and then its argument prototype would still apply.
14281 The 'extern "C"' is for builds by C++ compilers;
14282 although this is not generally supported in C code supporting it here
14283 has little cost and some practical benefit (sr 110532). */
14284 #ifdef __cplusplus
14285 extern "C"
14286 #endif
14287 char shl_load (void);
14288 int
14289 main (void)
14290 {
14291 return shl_load ();
14292 ;
14293 return 0;
14294 }
14295 _ACEOF
14296 if ac_fn_c_try_link "$LINENO"
14297 then :
14298 ac_cv_lib_dld_shl_load=yes
14299 else case e in #(
14300 e) ac_cv_lib_dld_shl_load=no ;;
14301 esac
14302 fi
14303 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14304 conftest$ac_exeext conftest.$ac_ext
14305 LIBS=$ac_check_lib_save_LIBS ;;
14306 esac
14307 fi
14308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14309 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
14310 if test "x$ac_cv_lib_dld_shl_load" = xyes
14311 then :
14312 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
14313 else case e in #(
14314 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14315 if test "x$ac_cv_func_dlopen" = xyes
14316 then :
14317 lt_cv_dlopen=dlopen
14318 else case e in #(
14319 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14320 printf %s "checking for dlopen in -ldl... " >&6; }
14321 if test ${ac_cv_lib_dl_dlopen+y}
14322 then :
14323 printf %s "(cached) " >&6
14324 else case e in #(
14325 e) ac_check_lib_save_LIBS=$LIBS
14326 LIBS="-ldl $LIBS"
14327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14328 /* end confdefs.h. */
14329
14330 /* Override any GCC internal prototype to avoid an error.
14331 Use char because int might match the return type of a GCC
14332 builtin and then its argument prototype would still apply.
14333 The 'extern "C"' is for builds by C++ compilers;
14334 although this is not generally supported in C code supporting it here
14335 has little cost and some practical benefit (sr 110532). */
14336 #ifdef __cplusplus
14337 extern "C"
14338 #endif
14339 char dlopen (void);
14340 int
14341 main (void)
14342 {
14343 return dlopen ();
14344 ;
14345 return 0;
14346 }
14347 _ACEOF
14348 if ac_fn_c_try_link "$LINENO"
14349 then :
14350 ac_cv_lib_dl_dlopen=yes
14351 else case e in #(
14352 e) ac_cv_lib_dl_dlopen=no ;;
14353 esac
14354 fi
14355 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14356 conftest$ac_exeext conftest.$ac_ext
14357 LIBS=$ac_check_lib_save_LIBS ;;
14358 esac
14359 fi
14360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14361 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
14362 if test "x$ac_cv_lib_dl_dlopen" = xyes
14363 then :
14364 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14365 else case e in #(
14366 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14367 printf %s "checking for dlopen in -lsvld... " >&6; }
14368 if test ${ac_cv_lib_svld_dlopen+y}
14369 then :
14370 printf %s "(cached) " >&6
14371 else case e in #(
14372 e) ac_check_lib_save_LIBS=$LIBS
14373 LIBS="-lsvld $LIBS"
14374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14375 /* end confdefs.h. */
14376
14377 /* Override any GCC internal prototype to avoid an error.
14378 Use char because int might match the return type of a GCC
14379 builtin and then its argument prototype would still apply.
14380 The 'extern "C"' is for builds by C++ compilers;
14381 although this is not generally supported in C code supporting it here
14382 has little cost and some practical benefit (sr 110532). */
14383 #ifdef __cplusplus
14384 extern "C"
14385 #endif
14386 char dlopen (void);
14387 int
14388 main (void)
14389 {
14390 return dlopen ();
14391 ;
14392 return 0;
14393 }
14394 _ACEOF
14395 if ac_fn_c_try_link "$LINENO"
14396 then :
14397 ac_cv_lib_svld_dlopen=yes
14398 else case e in #(
14399 e) ac_cv_lib_svld_dlopen=no ;;
14400 esac
14401 fi
14402 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14403 conftest$ac_exeext conftest.$ac_ext
14404 LIBS=$ac_check_lib_save_LIBS ;;
14405 esac
14406 fi
14407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14408 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
14409 if test "x$ac_cv_lib_svld_dlopen" = xyes
14410 then :
14411 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
14412 else case e in #(
14413 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14414 printf %s "checking for dld_link in -ldld... " >&6; }
14415 if test ${ac_cv_lib_dld_dld_link+y}
14416 then :
14417 printf %s "(cached) " >&6
14418 else case e in #(
14419 e) ac_check_lib_save_LIBS=$LIBS
14420 LIBS="-ldld $LIBS"
14421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14422 /* end confdefs.h. */
14423
14424 /* Override any GCC internal prototype to avoid an error.
14425 Use char because int might match the return type of a GCC
14426 builtin and then its argument prototype would still apply.
14427 The 'extern "C"' is for builds by C++ compilers;
14428 although this is not generally supported in C code supporting it here
14429 has little cost and some practical benefit (sr 110532). */
14430 #ifdef __cplusplus
14431 extern "C"
14432 #endif
14433 char dld_link (void);
14434 int
14435 main (void)
14436 {
14437 return dld_link ();
14438 ;
14439 return 0;
14440 }
14441 _ACEOF
14442 if ac_fn_c_try_link "$LINENO"
14443 then :
14444 ac_cv_lib_dld_dld_link=yes
14445 else case e in #(
14446 e) ac_cv_lib_dld_dld_link=no ;;
14447 esac
14448 fi
14449 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14450 conftest$ac_exeext conftest.$ac_ext
14451 LIBS=$ac_check_lib_save_LIBS ;;
14452 esac
14453 fi
14454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14455 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
14456 if test "x$ac_cv_lib_dld_dld_link" = xyes
14457 then :
14458 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
14459 fi
14460
14461 ;;
14462 esac
14463 fi
14464
14465 ;;
14466 esac
14467 fi
14468
14469 ;;
14470 esac
14471 fi
14472
14473 ;;
14474 esac
14475 fi
14476
14477 ;;
14478 esac
14479 fi
14480
14481 ;;
14482 esac
14483
14484 if test no = "$lt_cv_dlopen"; then
14485 enable_dlopen=no
14486 else
14487 enable_dlopen=yes
14488 fi
14489
14490 case $lt_cv_dlopen in
14491 dlopen)
14492 save_CPPFLAGS=$CPPFLAGS
14493 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14494
14495 save_LDFLAGS=$LDFLAGS
14496 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14497
14498 save_LIBS=$LIBS
14499 LIBS="$lt_cv_dlopen_libs $LIBS"
14500
14501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14502 printf %s "checking whether a program can dlopen itself... " >&6; }
14503 if test ${lt_cv_dlopen_self+y}
14504 then :
14505 printf %s "(cached) " >&6
14506 else case e in #(
14507 e) if test yes = "$cross_compiling"; then :
14508 lt_cv_dlopen_self=cross
14509 else
14510 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14511 lt_status=$lt_dlunknown
14512 cat > conftest.$ac_ext <<_LT_EOF
14513 #line $LINENO "configure"
14514 #include "confdefs.h"
14515
14516 #if HAVE_DLFCN_H
14517 #include <dlfcn.h>
14518 #endif
14519
14520 #include <stdio.h>
14521
14522 #ifdef RTLD_GLOBAL
14523 # define LT_DLGLOBAL RTLD_GLOBAL
14524 #else
14525 # ifdef DL_GLOBAL
14526 # define LT_DLGLOBAL DL_GLOBAL
14527 # else
14528 # define LT_DLGLOBAL 0
14529 # endif
14530 #endif
14531
14532 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14533 find out it does not work in some platform. */
14534 #ifndef LT_DLLAZY_OR_NOW
14535 # ifdef RTLD_LAZY
14536 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14537 # else
14538 # ifdef DL_LAZY
14539 # define LT_DLLAZY_OR_NOW DL_LAZY
14540 # else
14541 # ifdef RTLD_NOW
14542 # define LT_DLLAZY_OR_NOW RTLD_NOW
14543 # else
14544 # ifdef DL_NOW
14545 # define LT_DLLAZY_OR_NOW DL_NOW
14546 # else
14547 # define LT_DLLAZY_OR_NOW 0
14548 # endif
14549 # endif
14550 # endif
14551 # endif
14552 #endif
14553
14554 /* When -fvisibility=hidden is used, assume the code has been annotated
14555 correspondingly for the symbols needed. */
14556 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14557 int fnord (void) __attribute__((visibility("default")));
14558 #endif
14559
14560 int fnord (void) { return 42; }
14561 int main (void)
14562 {
14563 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14564 int status = $lt_dlunknown;
14565
14566 if (self)
14567 {
14568 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14569 else
14570 {
14571 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14572 else puts (dlerror ());
14573 }
14574 /* dlclose (self); */
14575 }
14576 else
14577 puts (dlerror ());
14578
14579 return status;
14580 }
14581 _LT_EOF
14582 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14583 (eval $ac_link) 2>&5
14584 ac_status=$?
14585 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14586 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14587 (./conftest; exit; ) >&5 2>/dev/null
14588 lt_status=$?
14589 case x$lt_status in
14590 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14591 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14592 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14593 esac
14594 else :
14595 # compilation failed
14596 lt_cv_dlopen_self=no
14597 fi
14598 fi
14599 rm -fr conftest*
14600
14601 ;;
14602 esac
14603 fi
14604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14605 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
14606
14607 if test yes = "$lt_cv_dlopen_self"; then
14608 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14610 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
14611 if test ${lt_cv_dlopen_self_static+y}
14612 then :
14613 printf %s "(cached) " >&6
14614 else case e in #(
14615 e) if test yes = "$cross_compiling"; then :
14616 lt_cv_dlopen_self_static=cross
14617 else
14618 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14619 lt_status=$lt_dlunknown
14620 cat > conftest.$ac_ext <<_LT_EOF
14621 #line $LINENO "configure"
14622 #include "confdefs.h"
14623
14624 #if HAVE_DLFCN_H
14625 #include <dlfcn.h>
14626 #endif
14627
14628 #include <stdio.h>
14629
14630 #ifdef RTLD_GLOBAL
14631 # define LT_DLGLOBAL RTLD_GLOBAL
14632 #else
14633 # ifdef DL_GLOBAL
14634 # define LT_DLGLOBAL DL_GLOBAL
14635 # else
14636 # define LT_DLGLOBAL 0
14637 # endif
14638 #endif
14639
14640 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14641 find out it does not work in some platform. */
14642 #ifndef LT_DLLAZY_OR_NOW
14643 # ifdef RTLD_LAZY
14644 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14645 # else
14646 # ifdef DL_LAZY
14647 # define LT_DLLAZY_OR_NOW DL_LAZY
14648 # else
14649 # ifdef RTLD_NOW
14650 # define LT_DLLAZY_OR_NOW RTLD_NOW
14651 # else
14652 # ifdef DL_NOW
14653 # define LT_DLLAZY_OR_NOW DL_NOW
14654 # else
14655 # define LT_DLLAZY_OR_NOW 0
14656 # endif
14657 # endif
14658 # endif
14659 # endif
14660 #endif
14661
14662 /* When -fvisibility=hidden is used, assume the code has been annotated
14663 correspondingly for the symbols needed. */
14664 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14665 int fnord (void) __attribute__((visibility("default")));
14666 #endif
14667
14668 int fnord (void) { return 42; }
14669 int main (void)
14670 {
14671 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14672 int status = $lt_dlunknown;
14673
14674 if (self)
14675 {
14676 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14677 else
14678 {
14679 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14680 else puts (dlerror ());
14681 }
14682 /* dlclose (self); */
14683 }
14684 else
14685 puts (dlerror ());
14686
14687 return status;
14688 }
14689 _LT_EOF
14690 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14691 (eval $ac_link) 2>&5
14692 ac_status=$?
14693 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14694 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14695 (./conftest; exit; ) >&5 2>/dev/null
14696 lt_status=$?
14697 case x$lt_status in
14698 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14699 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14700 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14701 esac
14702 else :
14703 # compilation failed
14704 lt_cv_dlopen_self_static=no
14705 fi
14706 fi
14707 rm -fr conftest*
14708
14709 ;;
14710 esac
14711 fi
14712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14713 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
14714 fi
14715
14716 CPPFLAGS=$save_CPPFLAGS
14717 LDFLAGS=$save_LDFLAGS
14718 LIBS=$save_LIBS
14719 ;;
14720 esac
14721
14722 case $lt_cv_dlopen_self in
14723 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14724 *) enable_dlopen_self=unknown ;;
14725 esac
14726
14727 case $lt_cv_dlopen_self_static in
14728 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14729 *) enable_dlopen_self_static=unknown ;;
14730 esac
14731 fi
14732
14733
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745
14746
14747
14748
14749 striplib=
14750 old_striplib=
14751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14752 printf %s "checking whether stripping libraries is possible... " >&6; }
14753 if test -z "$STRIP"; then
14754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14755 printf "%s\n" "no" >&6; }
14756 else
14757 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14758 old_striplib="$STRIP --strip-debug"
14759 striplib="$STRIP --strip-unneeded"
14760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14761 printf "%s\n" "yes" >&6; }
14762 else
14763 case $host_os in
14764 darwin*)
14765 # FIXME - insert some real tests, host_os isn't really good enough
14766 striplib="$STRIP -x"
14767 old_striplib="$STRIP -S"
14768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14769 printf "%s\n" "yes" >&6; }
14770 ;;
14771 freebsd*)
14772 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
14773 old_striplib="$STRIP --strip-debug"
14774 striplib="$STRIP --strip-unneeded"
14775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14776 printf "%s\n" "yes" >&6; }
14777 else
14778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14779 printf "%s\n" "no" >&6; }
14780 fi
14781 ;;
14782 *)
14783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14784 printf "%s\n" "no" >&6; }
14785 ;;
14786 esac
14787 fi
14788 fi
14789
14790
14791
14792
14793
14794
14795
14796
14797
14798
14799
14800
14801 # Report what library types will actually be built
14802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14803 printf %s "checking if libtool supports shared libraries... " >&6; }
14804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14805 printf "%s\n" "$can_build_shared" >&6; }
14806
14807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14808 printf %s "checking whether to build shared libraries... " >&6; }
14809 test no = "$can_build_shared" && enable_shared=no
14810
14811 # On AIX, shared libraries and static libraries use the same namespace, and
14812 # are all built from PIC.
14813 case $host_os in
14814 aix3*)
14815 test yes = "$enable_shared" && enable_static=no
14816 if test -n "$RANLIB"; then
14817 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14818 postinstall_cmds='$RANLIB $lib'
14819 fi
14820 ;;
14821
14822 aix[4-9]*)
14823 if test ia64 != "$host_cpu"; then
14824 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14825 yes,aix,yes) ;; # shared object as lib.so file only
14826 yes,svr4,*) ;; # shared object as lib.so archive member only
14827 yes,*) enable_static=no ;; # shared object in lib.a archive as well
14828 esac
14829 fi
14830 ;;
14831 esac
14832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14833 printf "%s\n" "$enable_shared" >&6; }
14834
14835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14836 printf %s "checking whether to build static libraries... " >&6; }
14837 # Make sure either enable_shared or enable_static is yes.
14838 test yes = "$enable_shared" || enable_static=yes
14839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14840 printf "%s\n" "$enable_static" >&6; }
14841
14842
14843
14844
14845 fi
14846 ac_ext=c
14847 ac_cpp='$CPP $CPPFLAGS'
14848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14851
14852 CC=$lt_save_CC
14853
14854
14855
14856
14857
14858
14859
14860
14861
14862
14863
14864
14865
14866
14867
14868 ac_config_commands="$ac_config_commands libtool"
14869
14870
14871
14872
14873 # Only expand once:
14874
14875
14876 # (end lt_init)
14877 # Check whether --enable-largefile was given.
14878 if test ${enable_largefile+y}
14879 then :
14880 enableval=$enable_largefile;
14881 fi
14882 if test "$enable_largefile,$enable_year2038" != no,no
14883 then :
14884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5
14885 printf %s "checking for $CC option to enable large file support... " >&6; }
14886 if test ${ac_cv_sys_largefile_opts+y}
14887 then :
14888 printf %s "(cached) " >&6
14889 else case e in #(
14890 e) ac_save_CC="$CC"
14891 ac_opt_found=no
14892 for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do
14893 if test x"$ac_opt" != x"none needed"
14894 then :
14895 CC="$ac_save_CC $ac_opt"
14896 fi
14897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14898 /* end confdefs.h. */
14899 #include <sys/types.h>
14900 #ifndef FTYPE
14901 # define FTYPE off_t
14902 #endif
14903 /* Check that FTYPE can represent 2**63 - 1 correctly.
14904 We can't simply define LARGE_FTYPE to be 9223372036854775807,
14905 since some C++ compilers masquerading as C compilers
14906 incorrectly reject 9223372036854775807. */
14907 #define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31))
14908 int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721
14909 && LARGE_FTYPE % 2147483647 == 1)
14910 ? 1 : -1];
14911 int
14912 main (void)
14913 {
14914
14915 ;
14916 return 0;
14917 }
14918 _ACEOF
14919 if ac_fn_c_try_compile "$LINENO"
14920 then :
14921 if test x"$ac_opt" = x"none needed"
14922 then :
14923 # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t.
14924 CC="$CC -DFTYPE=ino_t"
14925 if ac_fn_c_try_compile "$LINENO"
14926 then :
14927
14928 else case e in #(
14929 e) CC="$CC -D_FILE_OFFSET_BITS=64"
14930 if ac_fn_c_try_compile "$LINENO"
14931 then :
14932 ac_opt='-D_FILE_OFFSET_BITS=64'
14933 fi
14934 rm -f core conftest.err conftest.$ac_objext conftest.beam ;;
14935 esac
14936 fi
14937 rm -f core conftest.err conftest.$ac_objext conftest.beam
14938 fi
14939 ac_cv_sys_largefile_opts=$ac_opt
14940 ac_opt_found=yes
14941 fi
14942 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14943 test $ac_opt_found = no || break
14944 done
14945 CC="$ac_save_CC"
14946
14947 test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;;
14948 esac
14949 fi
14950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5
14951 printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; }
14952
14953 ac_have_largefile=yes
14954 case $ac_cv_sys_largefile_opts in #(
14955 "none needed") :
14956 ;; #(
14957 "supported through gnulib") :
14958 ;; #(
14959 "support not detected") :
14960 ac_have_largefile=no ;; #(
14961 "-D_FILE_OFFSET_BITS=64") :
14962
14963 printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
14964 ;; #(
14965 "-D_LARGE_FILES=1") :
14966
14967 printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h
14968 ;; #(
14969 "-n32") :
14970 CC="$CC -n32" ;; #(
14971 *) :
14972 as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;;
14973 esac
14974
14975 if test "$enable_year2038" != no
14976 then :
14977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option for timestamps after 2038" >&5
14978 printf %s "checking for $CC option for timestamps after 2038... " >&6; }
14979 if test ${ac_cv_sys_year2038_opts+y}
14980 then :
14981 printf %s "(cached) " >&6
14982 else case e in #(
14983 e) ac_save_CPPFLAGS="$CPPFLAGS"
14984 ac_opt_found=no
14985 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
14986 if test x"$ac_opt" != x"none needed"
14987 then :
14988 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
14989 fi
14990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14991 /* end confdefs.h. */
14992
14993 #include <time.h>
14994 /* Check that time_t can represent 2**32 - 1 correctly. */
14995 #define LARGE_TIME_T \\
14996 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
14997 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
14998 && LARGE_TIME_T % 65537 == 0)
14999 ? 1 : -1];
15000
15001 int
15002 main (void)
15003 {
15004
15005 ;
15006 return 0;
15007 }
15008 _ACEOF
15009 if ac_fn_c_try_compile "$LINENO"
15010 then :
15011 ac_cv_sys_year2038_opts="$ac_opt"
15012 ac_opt_found=yes
15013 fi
15014 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15015 test $ac_opt_found = no || break
15016 done
15017 CPPFLAGS="$ac_save_CPPFLAGS"
15018 test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;;
15019 esac
15020 fi
15021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5
15022 printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; }
15023
15024 ac_have_year2038=yes
15025 case $ac_cv_sys_year2038_opts in #(
15026 "none needed") :
15027 ;; #(
15028 "support not detected") :
15029 ac_have_year2038=no ;; #(
15030 "-D_TIME_BITS=64") :
15031
15032 printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h
15033 ;; #(
15034 "-D__MINGW_USE_VC2005_COMPAT") :
15035
15036 printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h
15037 ;; #(
15038 "-U_USE_32_BIT_TIME_T"*) :
15039 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
15040 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
15041 as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It
15042 will stop working after mid-January 2038. Remove
15043 _USE_32BIT_TIME_T from the compiler flags.
15044 See 'config.log' for more details" "$LINENO" 5; } ;; #(
15045 *) :
15046 as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;;
15047 esac
15048
15049 fi
15050
15051 fi
15052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for declarations of fseeko and ftello" >&5
15053 printf %s "checking for declarations of fseeko and ftello... " >&6; }
15054 if test ${ac_cv_func_fseeko_ftello+y}
15055 then :
15056 printf %s "(cached) " >&6
15057 else case e in #(
15058 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15059 /* end confdefs.h. */
15060
15061 #if defined __hpux && !defined _LARGEFILE_SOURCE
15062 # include <limits.h>
15063 # if LONG_MAX >> 31 == 0
15064 # error "32-bit HP-UX 11/ia64 needs _LARGEFILE_SOURCE for fseeko in C++"
15065 # endif
15066 #endif
15067 #include <sys/types.h> /* for off_t */
15068 #include <stdio.h>
15069
15070 int
15071 main (void)
15072 {
15073
15074 int (*fp1) (FILE *, off_t, int) = fseeko;
15075 off_t (*fp2) (FILE *) = ftello;
15076 return fseeko (stdin, 0, 0)
15077 && fp1 (stdin, 0, 0)
15078 && ftello (stdin) >= 0
15079 && fp2 (stdin) >= 0;
15080
15081 ;
15082 return 0;
15083 }
15084 _ACEOF
15085 if ac_fn_c_try_compile "$LINENO"
15086 then :
15087 ac_cv_func_fseeko_ftello=yes
15088 else case e in #(
15089 e) ac_save_CPPFLAGS="$CPPFLAGS"
15090 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE=1"
15091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15092 /* end confdefs.h. */
15093
15094 #if defined __hpux && !defined _LARGEFILE_SOURCE
15095 # include <limits.h>
15096 # if LONG_MAX >> 31 == 0
15097 # error "32-bit HP-UX 11/ia64 needs _LARGEFILE_SOURCE for fseeko in C++"
15098 # endif
15099 #endif
15100 #include <sys/types.h> /* for off_t */
15101 #include <stdio.h>
15102
15103 int
15104 main (void)
15105 {
15106
15107 int (*fp1) (FILE *, off_t, int) = fseeko;
15108 off_t (*fp2) (FILE *) = ftello;
15109 return fseeko (stdin, 0, 0)
15110 && fp1 (stdin, 0, 0)
15111 && ftello (stdin) >= 0
15112 && fp2 (stdin) >= 0;
15113
15114 ;
15115 return 0;
15116 }
15117 _ACEOF
15118 if ac_fn_c_try_compile "$LINENO"
15119 then :
15120 ac_cv_func_fseeko_ftello="need _LARGEFILE_SOURCE"
15121 else case e in #(
15122 e) ac_cv_func_fseeko_ftello=no ;;
15123 esac
15124 fi
15125 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15126 esac
15127 fi
15128 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15129 esac
15130 fi
15131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fseeko_ftello" >&5
15132 printf "%s\n" "$ac_cv_func_fseeko_ftello" >&6; }
15133 if test "$ac_cv_func_fseeko_ftello" != no
15134 then :
15135
15136 printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h
15137
15138 fi
15139 if test "$ac_cv_func_fseeko_ftello" = "need _LARGEFILE_SOURCE"
15140 then :
15141
15142 printf "%s\n" "#define _LARGEFILE_SOURCE 1" >>confdefs.h
15143
15144 fi
15145
15146 ac_header_dirent=no
15147 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15148 as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | sed "$as_sed_sh"`
15149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
15150 printf %s "checking for $ac_hdr that defines DIR... " >&6; }
15151 if eval test \${$as_ac_Header+y}
15152 then :
15153 printf %s "(cached) " >&6
15154 else case e in #(
15155 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15156 /* end confdefs.h. */
15157 #include <sys/types.h>
15158 #include <$ac_hdr>
15159
15160 int
15161 main (void)
15162 {
15163 if ((DIR *) 0)
15164 return 0;
15165 ;
15166 return 0;
15167 }
15168 _ACEOF
15169 if ac_fn_c_try_compile "$LINENO"
15170 then :
15171 eval "$as_ac_Header=yes"
15172 else case e in #(
15173 e) eval "$as_ac_Header=no" ;;
15174 esac
15175 fi
15176 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15177 esac
15178 fi
15179 eval ac_res=\$$as_ac_Header
15180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15181 printf "%s\n" "$ac_res" >&6; }
15182 if eval test \"x\$"$as_ac_Header"\" = x"yes"
15183 then :
15184 cat >>confdefs.h <<_ACEOF
15185 #define `printf "%s\n" "HAVE_$ac_hdr" | sed "$as_sed_cpp"` 1
15186 _ACEOF
15187
15188 ac_header_dirent=$ac_hdr; break
15189 fi
15190
15191 done
15192 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15193 if test $ac_header_dirent = dirent.h; then
15194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
15195 printf %s "checking for library containing opendir... " >&6; }
15196 if test ${ac_cv_search_opendir+y}
15197 then :
15198 printf %s "(cached) " >&6
15199 else case e in #(
15200 e) ac_func_search_save_LIBS=$LIBS
15201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15202 /* end confdefs.h. */
15203
15204 /* Override any GCC internal prototype to avoid an error.
15205 Use char because int might match the return type of a GCC
15206 builtin and then its argument prototype would still apply.
15207 The 'extern "C"' is for builds by C++ compilers;
15208 although this is not generally supported in C code supporting it here
15209 has little cost and some practical benefit (sr 110532). */
15210 #ifdef __cplusplus
15211 extern "C"
15212 #endif
15213 char opendir (void);
15214 int
15215 main (void)
15216 {
15217 return opendir ();
15218 ;
15219 return 0;
15220 }
15221 _ACEOF
15222 for ac_lib in '' dir
15223 do
15224 if test -z "$ac_lib"; then
15225 ac_res="none required"
15226 else
15227 ac_res=-l$ac_lib
15228 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15229 fi
15230 if ac_fn_c_try_link "$LINENO"
15231 then :
15232 ac_cv_search_opendir=$ac_res
15233 fi
15234 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15235 conftest$ac_exeext
15236 if test ${ac_cv_search_opendir+y}
15237 then :
15238 break
15239 fi
15240 done
15241 if test ${ac_cv_search_opendir+y}
15242 then :
15243
15244 else case e in #(
15245 e) ac_cv_search_opendir=no ;;
15246 esac
15247 fi
15248 rm conftest.$ac_ext
15249 LIBS=$ac_func_search_save_LIBS ;;
15250 esac
15251 fi
15252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15253 printf "%s\n" "$ac_cv_search_opendir" >&6; }
15254 ac_res=$ac_cv_search_opendir
15255 if test "$ac_res" != no
15256 then :
15257 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15258
15259 fi
15260
15261 else
15262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
15263 printf %s "checking for library containing opendir... " >&6; }
15264 if test ${ac_cv_search_opendir+y}
15265 then :
15266 printf %s "(cached) " >&6
15267 else case e in #(
15268 e) ac_func_search_save_LIBS=$LIBS
15269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15270 /* end confdefs.h. */
15271
15272 /* Override any GCC internal prototype to avoid an error.
15273 Use char because int might match the return type of a GCC
15274 builtin and then its argument prototype would still apply.
15275 The 'extern "C"' is for builds by C++ compilers;
15276 although this is not generally supported in C code supporting it here
15277 has little cost and some practical benefit (sr 110532). */
15278 #ifdef __cplusplus
15279 extern "C"
15280 #endif
15281 char opendir (void);
15282 int
15283 main (void)
15284 {
15285 return opendir ();
15286 ;
15287 return 0;
15288 }
15289 _ACEOF
15290 for ac_lib in '' x
15291 do
15292 if test -z "$ac_lib"; then
15293 ac_res="none required"
15294 else
15295 ac_res=-l$ac_lib
15296 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15297 fi
15298 if ac_fn_c_try_link "$LINENO"
15299 then :
15300 ac_cv_search_opendir=$ac_res
15301 fi
15302 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15303 conftest$ac_exeext
15304 if test ${ac_cv_search_opendir+y}
15305 then :
15306 break
15307 fi
15308 done
15309 if test ${ac_cv_search_opendir+y}
15310 then :
15311
15312 else case e in #(
15313 e) ac_cv_search_opendir=no ;;
15314 esac
15315 fi
15316 rm conftest.$ac_ext
15317 LIBS=$ac_func_search_save_LIBS ;;
15318 esac
15319 fi
15320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15321 printf "%s\n" "$ac_cv_search_opendir" >&6; }
15322 ac_res=$ac_cv_search_opendir
15323 if test "$ac_res" != no
15324 then :
15325 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15326
15327 fi
15328
15329 fi
15330
15331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
15332 printf %s "checking whether closedir returns void... " >&6; }
15333 if test ${ac_cv_func_closedir_void+y}
15334 then :
15335 printf %s "(cached) " >&6
15336 else case e in #(
15337 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15338 /* end confdefs.h. */
15339
15340 #include <$ac_header_dirent>
15341
15342 int
15343 main (void)
15344 {
15345
15346 return closedir(0);
15347
15348 ;
15349 return 0;
15350 }
15351 _ACEOF
15352 if ac_fn_c_try_compile "$LINENO"
15353 then :
15354 ac_cv_func_closedir_void=no
15355 else case e in #(
15356 e) ac_cv_func_closedir_void=yes ;;
15357 esac
15358 fi
15359 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15360 esac
15361 fi
15362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
15363 printf "%s\n" "$ac_cv_func_closedir_void" >&6; }
15364 if test $ac_cv_func_closedir_void = yes; then
15365
15366 printf "%s\n" "#define CLOSEDIR_VOID 1" >>confdefs.h
15367
15368 fi
15369
15370 ac_fn_c_check_header_compile "$LINENO" "assert.h" "ac_cv_header_assert_h" "$ac_includes_default"
15371 if test "x$ac_cv_header_assert_h" = xyes
15372 then :
15373 printf "%s\n" "#define HAVE_ASSERT_H 1" >>confdefs.h
15374
15375 fi
15376 ac_fn_c_check_header_compile "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
15377 if test "x$ac_cv_header_float_h" = xyes
15378 then :
15379 printf "%s\n" "#define HAVE_FLOAT_H 1" >>confdefs.h
15380
15381 fi
15382 ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
15383 if test "x$ac_cv_header_limits_h" = xyes
15384 then :
15385 printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
15386
15387 fi
15388 ac_fn_c_check_header_compile "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default"
15389 if test "x$ac_cv_header_pwd_h" = xyes
15390 then :
15391 printf "%s\n" "#define HAVE_PWD_H 1" >>confdefs.h
15392
15393 fi
15394 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
15395 if test "x$ac_cv_header_stdlib_h" = xyes
15396 then :
15397 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
15398
15399 fi
15400 ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
15401 if test "x$ac_cv_header_sys_param_h" = xyes
15402 then :
15403 printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
15404
15405 fi
15406
15407 ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
15408 if test "x$ac_cv_func_putenv" = xyes
15409 then :
15410 printf "%s\n" "#define HAVE_PUTENV 1" >>confdefs.h
15411
15412 fi
15413
15414 ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
15415 if test "x$ac_cv_func_getcwd" = xyes
15416 then :
15417 printf "%s\n" "#define HAVE_GETCWD 1" >>confdefs.h
15418
15419 fi
15420 ac_fn_c_check_func "$LINENO" "memcmp" "ac_cv_func_memcmp"
15421 if test "x$ac_cv_func_memcmp" = xyes
15422 then :
15423 printf "%s\n" "#define HAVE_MEMCMP 1" >>confdefs.h
15424
15425 fi
15426 ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
15427 if test "x$ac_cv_func_memcpy" = xyes
15428 then :
15429 printf "%s\n" "#define HAVE_MEMCPY 1" >>confdefs.h
15430
15431 fi
15432 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
15433 if test "x$ac_cv_func_mkstemp" = xyes
15434 then :
15435 printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h
15436
15437 fi
15438 ac_fn_c_check_func "$LINENO" "mktemp" "ac_cv_func_mktemp"
15439 if test "x$ac_cv_func_mktemp" = xyes
15440 then :
15441 printf "%s\n" "#define HAVE_MKTEMP 1" >>confdefs.h
15442
15443 fi
15444 ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
15445 if test "x$ac_cv_func_strchr" = xyes
15446 then :
15447 printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
15448
15449 fi
15450 ac_fn_c_check_func "$LINENO" "strrchr" "ac_cv_func_strrchr"
15451 if test "x$ac_cv_func_strrchr" = xyes
15452 then :
15453 printf "%s\n" "#define HAVE_STRRCHR 1" >>confdefs.h
15454
15455 fi
15456
15457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
15458 printf %s "checking for an ANSI C-conforming const... " >&6; }
15459 if test ${ac_cv_c_const+y}
15460 then :
15461 printf %s "(cached) " >&6
15462 else case e in #(
15463 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15464 /* end confdefs.h. */
15465
15466 int
15467 main (void)
15468 {
15469
15470 #ifndef __cplusplus
15471 /* Ultrix mips cc rejects this sort of thing. */
15472 typedef int charset[2];
15473 const charset cs = { 0, 0 };
15474 /* SunOS 4.1.1 cc rejects this. */
15475 char const *const *pcpcc;
15476 char **ppc;
15477 /* NEC SVR4.0.2 mips cc rejects this. */
15478 struct point {int x, y;};
15479 static struct point const zero = {0,0};
15480 /* IBM XL C 1.02.0.0 rejects this.
15481 It does not let you subtract one const X* pointer from another in
15482 an arm of an if-expression whose if-part is not a constant
15483 expression */
15484 const char *g = "string";
15485 pcpcc = &g + (g ? g-g : 0);
15486 /* HPUX 7.0 cc rejects these. */
15487 ++pcpcc;
15488 ppc = (char**) pcpcc;
15489 pcpcc = (char const *const *) ppc;
15490 { /* SCO 3.2v4 cc rejects this sort of thing. */
15491 char tx;
15492 char *t = &tx;
15493 char const *s = 0 ? (char *) 0 : (char const *) 0;
15494
15495 *t++ = 0;
15496 if (s) return 0;
15497 }
15498 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15499 int x[] = {25, 17};
15500 const int *foo = &x[0];
15501 ++foo;
15502 }
15503 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15504 typedef const int *iptr;
15505 iptr p = 0;
15506 ++p;
15507 }
15508 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
15509 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15510 struct s { int j; const int *ap[3]; } bx;
15511 struct s *b = &bx; b->j = 5;
15512 }
15513 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15514 const int foo = 10;
15515 if (!foo) return 0;
15516 }
15517 return !cs[0] && !zero.x;
15518 #endif
15519
15520 ;
15521 return 0;
15522 }
15523 _ACEOF
15524 if ac_fn_c_try_compile "$LINENO"
15525 then :
15526 ac_cv_c_const=yes
15527 else case e in #(
15528 e) ac_cv_c_const=no ;;
15529 esac
15530 fi
15531 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15532 esac
15533 fi
15534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
15535 printf "%s\n" "$ac_cv_c_const" >&6; }
15536 if test $ac_cv_c_const = no; then
15537
15538 printf "%s\n" "#define const /**/" >>confdefs.h
15539
15540 fi
15541
15542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15543 printf %s "checking for inline... " >&6; }
15544 if test ${ac_cv_c_inline+y}
15545 then :
15546 printf %s "(cached) " >&6
15547 else case e in #(
15548 e) ac_cv_c_inline=no
15549 for ac_kw in inline __inline__ __inline; do
15550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15551 /* end confdefs.h. */
15552 #ifndef __cplusplus
15553 typedef int foo_t;
15554 static $ac_kw foo_t static_foo (void) {return 0; }
15555 $ac_kw foo_t foo (void) {return 0; }
15556 #endif
15557
15558 _ACEOF
15559 if ac_fn_c_try_compile "$LINENO"
15560 then :
15561 ac_cv_c_inline=$ac_kw
15562 fi
15563 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15564 test "$ac_cv_c_inline" != no && break
15565 done
15566 ;;
15567 esac
15568 fi
15569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15570 printf "%s\n" "$ac_cv_c_inline" >&6; }
15571
15572 case $ac_cv_c_inline in
15573 inline | yes) ;;
15574 *)
15575 case $ac_cv_c_inline in
15576 no) ac_val=;;
15577 *) ac_val=$ac_cv_c_inline;;
15578 esac
15579 cat >>confdefs.h <<_ACEOF
15580 #ifndef __cplusplus
15581 #define inline $ac_val
15582 #endif
15583 _ACEOF
15584 ;;
15585 esac
15586
15587 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15588 if test "x$ac_cv_type_size_t" = xyes
15589 then :
15590
15591 else case e in #(
15592 e)
15593 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
15594 ;;
15595 esac
15596 fi
15597
15598 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
15599 case $ac_cv_c_int64_t in #(
15600 no|yes) ;; #(
15601 *)
15602
15603 printf "%s\n" "#define int64_t $ac_cv_c_int64_t" >>confdefs.h
15604 ;;
15605 esac
15606
15607 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
15608 case $ac_cv_c_uint64_t in #(
15609 no|yes) ;; #(
15610 *)
15611
15612 printf "%s\n" "#define _UINT64_T 1" >>confdefs.h
15613
15614
15615 printf "%s\n" "#define uint64_t $ac_cv_c_uint64_t" >>confdefs.h
15616 ;;
15617 esac
15618
15619 case :$ac_cv_c_int64_t:$ac_cv_c_int64_t: in #(
15620 *':no:'*) :
15621 as_fn_error $? "Sorry, your compiler does not support 64-bit integer types." "$LINENO" 5 ;; #(
15622 *) :
15623 ;;
15624 esac
15625 ac_fn_check_decl "$LINENO" "isascii" "ac_cv_have_decl_isascii" "#include <ctype.h>
15626 " "$ac_c_undeclared_builtin_options" "CFLAGS"
15627 if test "x$ac_cv_have_decl_isascii" = xyes
15628 then :
15629 ac_have_decl=1
15630 else case e in #(
15631 e) ac_have_decl=0 ;;
15632 esac
15633 fi
15634 printf "%s\n" "#define HAVE_DECL_ISASCII $ac_have_decl" >>confdefs.h
15635
15636 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
15637 if test "x$ac_cv_member_struct_stat_st_mtim" = xyes
15638 then :
15639
15640 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_MTIM 1" >>confdefs.h
15641
15642
15643 fi
15644
15645
15646
15647 ac_config_headers="$ac_config_headers c-auto.h:c-auto.in"
15648
15649
15650
15651
15652 printf "%s\n" "#define TEX_LIVE_VERSION \"2026\"" >>confdefs.h
15653
15654
15655 ac_fn_c_check_header_compile "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
15656 if test "x$ac_cv_header_ctype_h" = xyes
15657 then :
15658 printf "%s\n" "#define HAVE_CTYPE_H 1" >>confdefs.h
15659
15660 fi
15661 ac_fn_c_check_header_compile "$LINENO" "types.h" "ac_cv_header_types_h" "$ac_includes_default"
15662 if test "x$ac_cv_header_types_h" = xyes
15663 then :
15664 printf "%s\n" "#define HAVE_TYPES_H 1" >>confdefs.h
15665
15666 fi
15667 ac_fn_c_check_header_compile "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
15668 if test "x$ac_cv_header_locale_h" = xyes
15669 then :
15670 printf "%s\n" "#define HAVE_LOCALE_H 1" >>confdefs.h
15671
15672 fi
15673
15674 ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
15675 if test "x$ac_cv_func_strchr" = xyes
15676 then :
15677 printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
15678
15679 fi
15680 ac_fn_c_check_func "$LINENO" "strrchr" "ac_cv_func_strrchr"
15681 if test "x$ac_cv_func_strrchr" = xyes
15682 then :
15683 printf "%s\n" "#define HAVE_STRRCHR 1" >>confdefs.h
15684
15685 fi
15686 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
15687 if test "x$ac_cv_func_setlocale" = xyes
15688 then :
15689 printf "%s\n" "#define HAVE_SETLOCALE 1" >>confdefs.h
15690
15691 fi
15692
15693
15694 kpse_save_CPPFLAGS=$CPPFLAGS
15695 kpse_save_LIBS=$LIBS
15696
15697 ##tldbg _KPSE_INIT: Initialize TL infrastructure.
15698 kpse_BLD=`(cd "./../../." && pwd)`
15699 kpse_SRC=`(cd "$srcdir/../../." && pwd)`
15700
15701 echo 'tldbg:_KPSE_USE_LIBTOOL called, libtool package version: 2.5.4' >&5
15702 : ${CONFIG_LT=./config.lt}
15703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_LT" >&5
15704 printf "%s\n" "$as_me: creating $CONFIG_LT" >&6;}
15705 as_write_fail=0
15706 cat >"$CONFIG_LT" <<_ASEOF || as_write_fail=1
15707 #! $SHELL
15708 # Generated by $as_me.
15709 # Run this file to recreate a libtool stub with the current configuration.
15710 SHELL=\${CONFIG_SHELL-$SHELL}
15711 export SHELL
15712 _ASEOF
15713 cat >>"$CONFIG_LT" <<\_ASEOF || as_write_fail=1
15714 ## -------------------- ##
15715 ## M4sh Initialization. ##
15716 ## -------------------- ##
15717
15718 # Be more Bourne compatible
15719 DUALCASE=1; export DUALCASE # for MKS sh
15720 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
15721 then :
15722 emulate sh
15723 NULLCMD=:
15724 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15725 # is contrary to our usage. Disable this feature.
15726 alias -g '${1+"$@"}'='"$@"'
15727 setopt NO_GLOB_SUBST
15728 else case e in #(
15729 e) case `(set -o) 2>/dev/null` in #(
15730 *posix*) :
15731 set -o posix ;; #(
15732 *) :
15733 ;;
15734 esac ;;
15735 esac
15736 fi
15737
15738
15739
15740 # Reset variables that may have inherited troublesome values from
15741 # the environment.
15742
15743 # IFS needs to be set, to space, tab, and newline, in precisely that order.
15744 # (If _AS_PATH_WALK were called with IFS unset, it would have the
15745 # side effect of setting IFS to empty, thus disabling word splitting.)
15746 # Quoting is to prevent editors from complaining about space-tab.
15747 as_nl='
15748 '
15749 export as_nl
15750 IFS=" "" $as_nl"
15751
15752 PS1='$ '
15753 PS2='> '
15754 PS4='+ '
15755
15756 # Ensure predictable behavior from utilities with locale-dependent output.
15757 LC_ALL=C
15758 export LC_ALL
15759 LANGUAGE=C
15760 export LANGUAGE
15761
15762 # We cannot yet rely on "unset" to work, but we need these variables
15763 # to be unset--not just set to an empty or harmless value--now, to
15764 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
15765 # also avoids known problems related to "unset" and subshell syntax
15766 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
15767 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
15768 do eval test \${$as_var+y} \
15769 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15770 done
15771
15772 # Ensure that fds 0, 1, and 2 are open.
15773 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
15774 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
15775 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
15776
15777 # The user is always right.
15778 if ${PATH_SEPARATOR+false} :; then
15779 PATH_SEPARATOR=:
15780 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15781 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15782 PATH_SEPARATOR=';'
15783 }
15784 fi
15785
15786
15787 # Find who we are. Look in the path if we contain no directory separator.
15788 as_myself=
15789 case $0 in #((
15790 *[\\/]* ) as_myself=$0 ;;
15791 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15792 for as_dir in $PATH
15793 do
15794 IFS=$as_save_IFS
15795 case $as_dir in #(((
15796 '') as_dir=./ ;;
15797 */) ;;
15798 *) as_dir=$as_dir/ ;;
15799 esac
15800 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
15801 done
15802 IFS=$as_save_IFS
15803
15804 ;;
15805 esac
15806 # We did not find ourselves, most probably we were run as 'sh COMMAND'
15807 # in which case we are not to be found in the path.
15808 if test "x$as_myself" = x; then
15809 as_myself=$0
15810 fi
15811 if test ! -f "$as_myself"; then
15812 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15813 exit 1
15814 fi
15815
15816
15817
15818 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15819 # ----------------------------------------
15820 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15821 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15822 # script with STATUS, using 1 if that was 0.
15823 as_fn_error ()
15824 {
15825 as_status=$1; test $as_status -eq 0 && as_status=1
15826 if test "$4"; then
15827 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15828 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15829 fi
15830 printf "%s\n" "$as_me: error: $2" >&2
15831 as_fn_exit $as_status
15832 } # as_fn_error
15833
15834
15835 # as_fn_set_status STATUS
15836 # -----------------------
15837 # Set $? to STATUS, without forking.
15838 as_fn_set_status ()
15839 {
15840 return $1
15841 } # as_fn_set_status
15842
15843 # as_fn_exit STATUS
15844 # -----------------
15845 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15846 as_fn_exit ()
15847 {
15848 set +e
15849 as_fn_set_status $1
15850 exit $1
15851 } # as_fn_exit
15852
15853 # as_fn_unset VAR
15854 # ---------------
15855 # Portably unset VAR.
15856 as_fn_unset ()
15857 {
15858 { eval $1=; unset $1;}
15859 }
15860 as_unset=as_fn_unset
15861
15862 # as_fn_append VAR VALUE
15863 # ----------------------
15864 # Append the text in VALUE to the end of the definition contained in VAR. Take
15865 # advantage of any shell optimizations that allow amortized linear growth over
15866 # repeated appends, instead of the typical quadratic growth present in naive
15867 # implementations.
15868 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
15869 then :
15870 eval 'as_fn_append ()
15871 {
15872 eval $1+=\$2
15873 }'
15874 else case e in #(
15875 e) as_fn_append ()
15876 {
15877 eval $1=\$$1\$2
15878 } ;;
15879 esac
15880 fi # as_fn_append
15881
15882 # as_fn_arith ARG...
15883 # ------------------
15884 # Perform arithmetic evaluation on the ARGs, and store the result in the
15885 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15886 # must be portable across $(()) and expr.
15887 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
15888 then :
15889 eval 'as_fn_arith ()
15890 {
15891 as_val=$(( $* ))
15892 }'
15893 else case e in #(
15894 e) as_fn_arith ()
15895 {
15896 as_val=`expr "$@" || test $? -eq 1`
15897 } ;;
15898 esac
15899 fi # as_fn_arith
15900
15901
15902 if expr a : '\(a\)' >/dev/null 2>&1 &&
15903 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15904 as_expr=expr
15905 else
15906 as_expr=false
15907 fi
15908
15909 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15910 as_basename=basename
15911 else
15912 as_basename=false
15913 fi
15914
15915 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15916 as_dirname=dirname
15917 else
15918 as_dirname=false
15919 fi
15920
15921 as_me=`$as_basename -- "$0" ||
15922 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15923 X"$0" : 'X\(//\)$' \| \
15924 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15925 printf "%s\n" X/"$0" |
15926 sed '/^.*\/\([^/][^/]*\)\/*$/{
15927 s//\1/
15928 q
15929 }
15930 /^X\/\(\/\/\)$/{
15931 s//\1/
15932 q
15933 }
15934 /^X\/\(\/\).*/{
15935 s//\1/
15936 q
15937 }
15938 s/.*/./; q'`
15939
15940 # Avoid depending upon Character Ranges.
15941 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15942 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15943 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15944 as_cr_digits='0123456789'
15945 as_cr_alnum=$as_cr_Letters$as_cr_digits
15946
15947
15948 # Determine whether it's possible to make 'echo' print without a newline.
15949 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
15950 # for compatibility with existing Makefiles.
15951 ECHO_C= ECHO_N= ECHO_T=
15952 case `echo -n x` in #(((((
15953 -n*)
15954 case `echo 'xy\c'` in
15955 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15956 xy) ECHO_C='\c';;
15957 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15958 ECHO_T=' ';;
15959 esac;;
15960 *)
15961 ECHO_N='-n';;
15962 esac
15963
15964 # For backward compatibility with old third-party macros, we provide
15965 # the shell variables $as_echo and $as_echo_n. New code should use
15966 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
15967 as_echo='printf %s\n'
15968 as_echo_n='printf %s'
15969
15970 rm -f conf$$ conf$$.exe conf$$.file
15971 if test -d conf$$.dir; then
15972 rm -f conf$$.dir/conf$$.file
15973 else
15974 rm -f conf$$.dir
15975 mkdir conf$$.dir 2>/dev/null
15976 fi
15977 if (echo >conf$$.file) 2>/dev/null; then
15978 if ln -s conf$$.file conf$$ 2>/dev/null; then
15979 as_ln_s='ln -s'
15980 # ... but there are two gotchas:
15981 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
15982 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
15983 # In both cases, we have to default to 'cp -pR'.
15984 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15985 as_ln_s='cp -pR'
15986 elif ln conf$$.file conf$$ 2>/dev/null; then
15987 as_ln_s=ln
15988 else
15989 as_ln_s='cp -pR'
15990 fi
15991 else
15992 as_ln_s='cp -pR'
15993 fi
15994 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15995 rmdir conf$$.dir 2>/dev/null
15996
15997
15998 # as_fn_mkdir_p
15999 # -------------
16000 # Create "$as_dir" as a directory, including parents if necessary.
16001 as_fn_mkdir_p ()
16002 {
16003
16004 case $as_dir in #(
16005 -*) as_dir=./$as_dir;;
16006 esac
16007 test -d "$as_dir" || eval $as_mkdir_p || {
16008 as_dirs=
16009 while :; do
16010 case $as_dir in #(
16011 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16012 *) as_qdir=$as_dir;;
16013 esac
16014 as_dirs="'$as_qdir' $as_dirs"
16015 as_dir=`$as_dirname -- "$as_dir" ||
16016 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16017 X"$as_dir" : 'X\(//\)[^/]' \| \
16018 X"$as_dir" : 'X\(//\)$' \| \
16019 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16020 printf "%s\n" X"$as_dir" |
16021 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16022 s//\1/
16023 q
16024 }
16025 /^X\(\/\/\)[^/].*/{
16026 s//\1/
16027 q
16028 }
16029 /^X\(\/\/\)$/{
16030 s//\1/
16031 q
16032 }
16033 /^X\(\/\).*/{
16034 s//\1/
16035 q
16036 }
16037 s/.*/./; q'`
16038 test -d "$as_dir" && break
16039 done
16040 test -z "$as_dirs" || eval "mkdir $as_dirs"
16041 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16042
16043
16044 } # as_fn_mkdir_p
16045 if mkdir -p . 2>/dev/null; then
16046 as_mkdir_p='mkdir -p "$as_dir"'
16047 else
16048 test -d ./-p && rmdir ./-p
16049 as_mkdir_p=false
16050 fi
16051
16052
16053 # as_fn_executable_p FILE
16054 # -----------------------
16055 # Test if FILE is an executable regular file.
16056 as_fn_executable_p ()
16057 {
16058 test -f "$1" && test -x "$1"
16059 } # as_fn_executable_p
16060 as_test_x='test -x'
16061 as_executable_p=as_fn_executable_p
16062
16063 # Sed expression to map a string onto a valid CPP name.
16064 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
16065 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
16066
16067 # Sed expression to map a string onto a valid variable name.
16068 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
16069 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
16070
16071
16072 exec 6>&1
16073 ## --------------------------------- ##
16074 ## Main body of "$CONFIG_LT" script. ##
16075 ## --------------------------------- ##
16076 _ASEOF
16077 test $as_write_fail = 0 && chmod +x "$CONFIG_LT"
16078
16079 cat >>"$CONFIG_LT" <<\_LTEOF
16080 lt_cl_silent=false
16081 exec 5>>config.log
16082 {
16083 echo
16084 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16085 ## Running $as_me. ##
16086 _ASBOX
16087 } >&5
16088
16089 lt_cl_help="\
16090 '$as_me' creates a local libtool stub from the current configuration,
16091 for use in further configure time tests before the real libtool is
16092 generated.
16093
16094 Usage: $0 [OPTIONS]
16095
16096 -h, --help print this help, then exit
16097 -V, --version print version number, then exit
16098 -q, --quiet do not print progress messages
16099 -d, --debug don't remove temporary files
16100
16101 Report bugs to <[email protected]>."
16102
16103 lt_cl_version="\
16104 makeindex (TeX Live) config.lt 2.18
16105 configured by $0, generated by GNU Autoconf 2.72.
16106
16107 Copyright (C) 2024 Free Software Foundation, Inc.
16108 This config.lt script is free software; the Free Software Foundation
16109 gives unlimited permission to copy, distribute and modify it."
16110
16111 while test 0 != $#
16112 do
16113 case $1 in
16114 --version | --v* | -V )
16115 echo "$lt_cl_version"; exit 0 ;;
16116 --help | --h* | -h )
16117 echo "$lt_cl_help"; exit 0 ;;
16118 --debug | --d* | -d )
16119 debug=: ;;
16120 --quiet | --q* | --silent | --s* | -q )
16121 lt_cl_silent=: ;;
16122
16123 -*) as_fn_error $? "unrecognized option: $1
16124 Try '$0 --help' for more information." "$LINENO" 5 ;;
16125
16126 *) as_fn_error $? "unrecognized argument: $1
16127 Try '$0 --help' for more information." "$LINENO" 5 ;;
16128 esac
16129 shift
16130 done
16131
16132 if $lt_cl_silent; then
16133 exec 6>/dev/null
16134 fi
16135 _LTEOF
16136
16137 cat >>"$CONFIG_LT" <<_LTEOF
16138
16139
16140 # The HP-UX ksh and POSIX shell print the target directory to stdout
16141 # if CDPATH is set.
16142 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16143
16144 sed_quote_subst='$sed_quote_subst'
16145 double_quote_subst='$double_quote_subst'
16146 delay_variable_subst='$delay_variable_subst'
16147 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16148 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16149 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
16150 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16151 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16152 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16153 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16154 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16155 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16156 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
16157 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16158 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16159 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16160 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16161 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16162 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16163 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16164 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16165 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16166 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16167 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16168 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16169 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16170 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16171 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16172 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16173 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16174 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16175 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16176 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16177 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16178 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16179 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16180 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16181 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16182 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16183 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16184 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
16185 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16186 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16187 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16188 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16189 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16190 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16191 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
16192 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16193 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16194 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16195 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16196 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16197 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16198 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16199 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16200 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16201 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16202 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16203 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16204 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16205 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16206 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
16207 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16208 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"`'
16209 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
16210 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16211 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16212 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
16213 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16214 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16215 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16216 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16217 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16218 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16219 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16220 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16221 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16222 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16223 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16224 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16225 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16226 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16227 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16228 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16229 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16230 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16231 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16232 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16233 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16234 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16235 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16236 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16237 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16238 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16239 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16240 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16241 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16242 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16243 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16244 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16245 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16246 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16247 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16248 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16249 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16250 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16251 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16252 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16253 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16254 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16255 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16256 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16257 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16258 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16259 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16260 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16261 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16262 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16263 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16264 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16265 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16266 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16267 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16268 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16269 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16270 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16271 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16272 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16273 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16274 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16275 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16276 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16277 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
16278 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
16279 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16280 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16281 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16282 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16283 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16284 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16285
16286 LTCC='$LTCC'
16287 LTCFLAGS='$LTCFLAGS'
16288 compiler='$compiler_DEFAULT'
16289
16290 # A function that is used when there is no print builtin or printf.
16291 func_fallback_echo ()
16292 {
16293 eval 'cat <<_LTECHO_EOF
16294 \$1
16295 _LTECHO_EOF'
16296 }
16297
16298 # Quote evaled strings.
16299 for var in AS \
16300 DLLTOOL \
16301 OBJDUMP \
16302 SHELL \
16303 ECHO \
16304 PATH_SEPARATOR \
16305 SED \
16306 GREP \
16307 EGREP \
16308 FGREP \
16309 LD \
16310 NM \
16311 LN_S \
16312 lt_SP2NL \
16313 lt_NL2SP \
16314 reload_flag \
16315 FILECMD \
16316 deplibs_check_method \
16317 file_magic_cmd \
16318 file_magic_glob \
16319 want_nocaseglob \
16320 sharedlib_from_linklib_cmd \
16321 AR \
16322 archiver_list_spec \
16323 STRIP \
16324 RANLIB \
16325 CC \
16326 CFLAGS \
16327 compiler \
16328 lt_cv_sys_global_symbol_pipe \
16329 lt_cv_sys_global_symbol_to_cdecl \
16330 lt_cv_sys_global_symbol_to_import \
16331 lt_cv_sys_global_symbol_to_c_name_address \
16332 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16333 lt_cv_nm_interface \
16334 nm_file_list_spec \
16335 lt_cv_truncate_bin \
16336 lt_prog_compiler_no_builtin_flag \
16337 lt_prog_compiler_pic \
16338 lt_prog_compiler_wl \
16339 lt_prog_compiler_static \
16340 lt_cv_prog_compiler_c_o \
16341 need_locks \
16342 MANIFEST_TOOL \
16343 DSYMUTIL \
16344 NMEDIT \
16345 LIPO \
16346 OTOOL \
16347 OTOOL64 \
16348 shrext_cmds \
16349 export_dynamic_flag_spec \
16350 whole_archive_flag_spec \
16351 compiler_needs_object \
16352 with_gnu_ld \
16353 allow_undefined_flag \
16354 no_undefined_flag \
16355 hardcode_libdir_flag_spec \
16356 hardcode_libdir_separator \
16357 exclude_expsyms \
16358 include_expsyms \
16359 file_list_spec \
16360 variables_saved_for_relink \
16361 libname_spec \
16362 library_names_spec \
16363 soname_spec \
16364 install_override_mode \
16365 finish_eval \
16366 old_striplib \
16367 striplib; do
16368 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16369 *[\\\\\\\`\\"\\\$]*)
16370 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16371 ;;
16372 *)
16373 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16374 ;;
16375 esac
16376 done
16377
16378 # Double-quote double-evaled strings.
16379 for var in reload_cmds \
16380 old_postinstall_cmds \
16381 old_postuninstall_cmds \
16382 old_archive_cmds \
16383 extract_expsyms_cmds \
16384 old_archive_from_new_cmds \
16385 old_archive_from_expsyms_cmds \
16386 archive_cmds \
16387 archive_expsym_cmds \
16388 module_cmds \
16389 module_expsym_cmds \
16390 export_symbols_cmds \
16391 prelink_cmds \
16392 postlink_cmds \
16393 postinstall_cmds \
16394 postuninstall_cmds \
16395 finish_cmds \
16396 sys_lib_search_path_spec \
16397 configure_time_dlsearch_path \
16398 configure_time_lt_sys_library_path; do
16399 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16400 *[\\\\\\\`\\"\\\$]*)
16401 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16402 ;;
16403 *)
16404 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16405 ;;
16406 esac
16407 done
16408
16409 ac_aux_dir='$ac_aux_dir'
16410
16411 # See if we are running on zsh, and set the options that allow our
16412 # commands through without removal of \ escapes INIT.
16413 if test -n "\${ZSH_VERSION+set}"; then
16414 setopt NO_GLOB_SUBST
16415 fi
16416
16417
16418 PACKAGE='$PACKAGE'
16419 VERSION='$VERSION'
16420 RM='$RM'
16421 ofile='$ofile'
16422
16423
16424
16425 _LTEOF
16426
16427 cat >>"$CONFIG_LT" <<\_LTEOF
16428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
16429 printf "%s\n" "$as_me: creating $ofile" >&6;}
16430
16431
16432 # See if we are running on zsh, and set the options that allow our
16433 # commands through without removal of \ escapes.
16434 if test -n "${ZSH_VERSION+set}"; then
16435 setopt NO_GLOB_SUBST
16436 fi
16437
16438 cfgfile=${ofile}T
16439 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16440 $RM "$cfgfile"
16441
16442 cat <<_LT_EOF >> "$cfgfile"
16443 #! $SHELL
16444 # Generated automatically by $as_me ($PACKAGE) $VERSION
16445 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16446
16447 # Provide generalized library-building support services.
16448 # Written by Gordon Matzigkeit, 1996
16449
16450 # Copyright (C) 2024 Free Software Foundation, Inc.
16451 # This is free software; see the source for copying conditions. There is NO
16452 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16453
16454 # GNU Libtool is free software; you can redistribute it and/or modify
16455 # it under the terms of the GNU General Public License as published by
16456 # the Free Software Foundation; either version 2 of the License, or
16457 # (at your option) any later version.
16458 #
16459 # As a special exception to the GNU General Public License, if you
16460 # distribute this file as part of a program or library that is built
16461 # using GNU Libtool, you may include this file under the same
16462 # distribution terms that you use for the rest of that program.
16463 #
16464 # GNU Libtool is distributed in the hope that it will be useful, but
16465 # WITHOUT ANY WARRANTY; without even the implied warranty of
16466 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16467 # GNU General Public License for more details.
16468 #
16469 # You should have received a copy of the GNU General Public License
16470 # along with this program. If not, see <http://www.gnu.org/licenses/>.
16471
16472
16473 # The names of the tagged configurations supported by this script.
16474 available_tags=''
16475
16476 # Configured defaults for sys_lib_dlsearch_path munging.
16477 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
16478
16479 # ### BEGIN LIBTOOL CONFIG
16480
16481 # Which release of libtool.m4 was used?
16482 macro_version=$macro_version
16483 macro_revision=$macro_revision
16484
16485 # Assembler program.
16486 AS=$lt_AS
16487
16488 # DLL creation program.
16489 DLLTOOL=$lt_DLLTOOL
16490
16491 # Object dumper program.
16492 OBJDUMP=$lt_OBJDUMP
16493
16494 # Whether or not to build shared libraries.
16495 build_libtool_libs=$enable_shared
16496
16497 # Whether or not to build static libraries.
16498 build_old_libs=$enable_static
16499
16500 # What type of objects to build.
16501 pic_mode=$pic_mode
16502
16503 # Whether or not to optimize for fast installation.
16504 fast_install=$enable_fast_install
16505
16506 # Shared archive member basename,for filename based shared library versioning on AIX.
16507 shared_archive_member_spec=$shared_archive_member_spec
16508
16509 # Shell to use when invoking shell scripts.
16510 SHELL=$lt_SHELL
16511
16512 # An echo program that protects backslashes.
16513 ECHO=$lt_ECHO
16514
16515 # The PATH separator for the build system.
16516 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16517
16518 # The host system.
16519 host_alias=$host_alias
16520 host=$host
16521 host_os=$host_os
16522
16523 # The build system.
16524 build_alias=$build_alias
16525 build=$build
16526 build_os=$build_os
16527
16528 # A sed program that does not truncate output.
16529 SED=$lt_SED
16530
16531 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16532 Xsed="\$SED -e 1s/^X//"
16533
16534 # A grep program that handles long lines.
16535 GREP=$lt_GREP
16536
16537 # An ERE matcher.
16538 EGREP=$lt_EGREP
16539
16540 # A literal string matcher.
16541 FGREP=$lt_FGREP
16542
16543 # A BSD- or MS-compatible name lister.
16544 NM=$lt_NM
16545
16546 # Whether we need soft or hard links.
16547 LN_S=$lt_LN_S
16548
16549 # What is the maximum length of a command?
16550 max_cmd_len=$max_cmd_len
16551
16552 # Object file suffix (normally "o").
16553 objext=$ac_objext
16554
16555 # Executable file suffix (normally "").
16556 exeext=$exeext
16557
16558 # whether the shell understands "unset".
16559 lt_unset=$lt_unset
16560
16561 # turn spaces into newlines.
16562 SP2NL=$lt_lt_SP2NL
16563
16564 # turn newlines into spaces.
16565 NL2SP=$lt_lt_NL2SP
16566
16567 # convert \$build file names to \$host format.
16568 to_host_file_cmd=$lt_cv_to_host_file_cmd
16569
16570 # convert \$build files to toolchain format.
16571 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16572
16573 # A file(cmd) program that detects file types.
16574 FILECMD=$lt_FILECMD
16575
16576 # Method to check whether dependent libraries are shared objects.
16577 deplibs_check_method=$lt_deplibs_check_method
16578
16579 # Command to use when deplibs_check_method = "file_magic".
16580 file_magic_cmd=$lt_file_magic_cmd
16581
16582 # How to find potential files when deplibs_check_method = "file_magic".
16583 file_magic_glob=$lt_file_magic_glob
16584
16585 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16586 want_nocaseglob=$lt_want_nocaseglob
16587
16588 # Command to associate shared and link libraries.
16589 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16590
16591 # The archiver.
16592 AR=$lt_AR
16593
16594 # Flags to create an archive (by configure).
16595 lt_ar_flags=$lt_ar_flags
16596
16597 # Flags to create an archive.
16598 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
16599
16600 # How to feed a file listing to the archiver.
16601 archiver_list_spec=$lt_archiver_list_spec
16602
16603 # A symbol stripping program.
16604 STRIP=$lt_STRIP
16605
16606 # Commands used to install an old-style archive.
16607 RANLIB=$lt_RANLIB
16608 old_postinstall_cmds=$lt_old_postinstall_cmds
16609 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16610
16611 # Whether to use a lock for old archive extraction.
16612 lock_old_archive_extraction=$lock_old_archive_extraction
16613
16614 # A C compiler.
16615 LTCC=$lt_CC
16616
16617 # LTCC compiler flags.
16618 LTCFLAGS=$lt_CFLAGS
16619
16620 # Take the output of nm and produce a listing of raw symbols and C names.
16621 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16622
16623 # Transform the output of nm in a proper C declaration.
16624 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16625
16626 # Transform the output of nm into a list of symbols to manually relocate.
16627 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
16628
16629 # Transform the output of nm in a C name address pair.
16630 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16631
16632 # Transform the output of nm in a C name address pair when lib prefix is needed.
16633 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16634
16635 # The name lister interface.
16636 nm_interface=$lt_lt_cv_nm_interface
16637
16638 # Specify filename containing input files for \$NM.
16639 nm_file_list_spec=$lt_nm_file_list_spec
16640
16641 # The root where to search for dependent libraries,and where our libraries should be installed.
16642 lt_sysroot=$lt_sysroot
16643
16644 # Command to truncate a binary pipe.
16645 lt_truncate_bin=$lt_lt_cv_truncate_bin
16646
16647 # The name of the directory that contains temporary libtool files.
16648 objdir=$objdir
16649
16650 # Used to examine libraries when file_magic_cmd begins with "file".
16651 MAGIC_CMD=$MAGIC_CMD
16652
16653 # Must we lock files when doing compilation?
16654 need_locks=$lt_need_locks
16655
16656 # Manifest tool.
16657 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16658
16659 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16660 DSYMUTIL=$lt_DSYMUTIL
16661
16662 # Tool to change global to local symbols on Mac OS X.
16663 NMEDIT=$lt_NMEDIT
16664
16665 # Tool to manipulate fat objects and archives on Mac OS X.
16666 LIPO=$lt_LIPO
16667
16668 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16669 OTOOL=$lt_OTOOL
16670
16671 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16672 OTOOL64=$lt_OTOOL64
16673
16674 # Old archive suffix (normally "a").
16675 libext=$libext
16676
16677 # Shared library suffix (normally ".so").
16678 shrext_cmds=$lt_shrext_cmds
16679
16680 # The commands to extract the exported symbol list from a shared archive.
16681 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16682
16683 # Variables whose values should be saved in libtool wrapper scripts and
16684 # restored at link time.
16685 variables_saved_for_relink=$lt_variables_saved_for_relink
16686
16687 # Do we need the "lib" prefix for modules?
16688 need_lib_prefix=$need_lib_prefix
16689
16690 # Do we need a version for libraries?
16691 need_version=$need_version
16692
16693 # Library versioning type.
16694 version_type=$version_type
16695
16696 # Shared library runtime path variable.
16697 runpath_var=$runpath_var
16698
16699 # Shared library path variable.
16700 shlibpath_var=$shlibpath_var
16701
16702 # Is shlibpath searched before the hard-coded library search path?
16703 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16704
16705 # Format of library name prefix.
16706 libname_spec=$lt_libname_spec
16707
16708 # List of archive names. First name is the real one, the rest are links.
16709 # The last name is the one that the linker finds with -lNAME
16710 library_names_spec=$lt_library_names_spec
16711
16712 # The coded name of the library, if different from the real name.
16713 soname_spec=$lt_soname_spec
16714
16715 # Permission mode override for installation of shared libraries.
16716 install_override_mode=$lt_install_override_mode
16717
16718 # Command to use after installation of a shared archive.
16719 postinstall_cmds=$lt_postinstall_cmds
16720
16721 # Command to use after uninstallation of a shared archive.
16722 postuninstall_cmds=$lt_postuninstall_cmds
16723
16724 # Commands used to finish a libtool library installation in a directory.
16725 finish_cmds=$lt_finish_cmds
16726
16727 # As "finish_cmds", except a single script fragment to be evaled but
16728 # not shown.
16729 finish_eval=$lt_finish_eval
16730
16731 # Whether we should hardcode library paths into libraries.
16732 hardcode_into_libs=$hardcode_into_libs
16733
16734 # Compile-time system search path for libraries.
16735 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16736
16737 # Detected run-time system search path for libraries.
16738 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
16739
16740 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
16741 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
16742
16743 # Whether dlopen is supported.
16744 dlopen_support=$enable_dlopen
16745
16746 # Whether dlopen of programs is supported.
16747 dlopen_self=$enable_dlopen_self
16748
16749 # Whether dlopen of statically linked programs is supported.
16750 dlopen_self_static=$enable_dlopen_self_static
16751
16752 # Commands to strip libraries.
16753 old_striplib=$lt_old_striplib
16754 striplib=$lt_striplib
16755
16756
16757 # The linker used to build libraries.
16758 LD=$lt_LD
16759
16760 # How to create reloadable object files.
16761 reload_flag=$lt_reload_flag
16762 reload_cmds=$lt_reload_cmds
16763
16764 # Commands used to build an old-style archive.
16765 old_archive_cmds=$lt_old_archive_cmds
16766
16767 # A language specific compiler.
16768 CC=$lt_compiler
16769
16770 # Is the compiler the GNU compiler?
16771 with_gcc=$GCC
16772
16773 # Compiler flag to turn off builtin functions.
16774 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16775
16776 # Additional compiler flags for building library objects.
16777 pic_flag=$lt_lt_prog_compiler_pic
16778
16779 # How to pass a linker flag through the compiler.
16780 wl=$lt_lt_prog_compiler_wl
16781
16782 # Compiler flag to prevent dynamic linking.
16783 link_static_flag=$lt_lt_prog_compiler_static
16784
16785 # Does compiler simultaneously support -c and -o options?
16786 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16787
16788 # Whether or not to add -lc for building shared libraries.
16789 build_libtool_need_lc=$archive_cmds_need_lc
16790
16791 # Whether or not to disallow shared libs when runtime libs are static.
16792 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16793
16794 # Compiler flag to allow reflexive dlopens.
16795 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16796
16797 # Compiler flag to generate shared objects directly from archives.
16798 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16799
16800 # Whether the compiler copes with passing no objects directly.
16801 compiler_needs_object=$lt_compiler_needs_object
16802
16803 # Create an old-style archive from a shared archive.
16804 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16805
16806 # Create a temporary old-style archive to link instead of a shared archive.
16807 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16808
16809 # Commands used to build a shared archive.
16810 archive_cmds=$lt_archive_cmds
16811 archive_expsym_cmds=$lt_archive_expsym_cmds
16812
16813 # Commands used to build a loadable module if different from building
16814 # a shared archive.
16815 module_cmds=$lt_module_cmds
16816 module_expsym_cmds=$lt_module_expsym_cmds
16817
16818 # Whether we are building with GNU ld or not.
16819 with_gnu_ld=$lt_with_gnu_ld
16820
16821 # Flag that allows shared libraries with undefined symbols to be built.
16822 allow_undefined_flag=$lt_allow_undefined_flag
16823
16824 # Flag that enforces no undefined symbols.
16825 no_undefined_flag=$lt_no_undefined_flag
16826
16827 # Flag to hardcode \$libdir into a binary during linking.
16828 # This must work even if \$libdir does not exist
16829 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16830
16831 # Whether we need a single "-rpath" flag with a separated argument.
16832 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16833
16834 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16835 # DIR into the resulting binary.
16836 hardcode_direct=$hardcode_direct
16837
16838 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16839 # DIR into the resulting binary and the resulting library dependency is
16840 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
16841 # library is relocated.
16842 hardcode_direct_absolute=$hardcode_direct_absolute
16843
16844 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16845 # into the resulting binary.
16846 hardcode_minus_L=$hardcode_minus_L
16847
16848 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16849 # into the resulting binary.
16850 hardcode_shlibpath_var=$hardcode_shlibpath_var
16851
16852 # Set to "yes" if building a shared library automatically hardcodes DIR
16853 # into the library and all subsequent libraries and executables linked
16854 # against it.
16855 hardcode_automatic=$hardcode_automatic
16856
16857 # Set to yes if linker adds runtime paths of dependent libraries
16858 # to runtime path list.
16859 inherit_rpath=$inherit_rpath
16860
16861 # Whether libtool must link a program against all its dependency libraries.
16862 link_all_deplibs=$link_all_deplibs
16863
16864 # Set to "yes" if exported symbols are required.
16865 always_export_symbols=$always_export_symbols
16866
16867 # The commands to list exported symbols.
16868 export_symbols_cmds=$lt_export_symbols_cmds
16869
16870 # Symbols that should not be listed in the preloaded symbols.
16871 exclude_expsyms=$lt_exclude_expsyms
16872
16873 # Symbols that must always be exported.
16874 include_expsyms=$lt_include_expsyms
16875
16876 # Commands necessary for linking programs (against libraries) with templates.
16877 prelink_cmds=$lt_prelink_cmds
16878
16879 # Commands necessary for finishing linking programs.
16880 postlink_cmds=$lt_postlink_cmds
16881
16882 # Specify filename containing input files.
16883 file_list_spec=$lt_file_list_spec
16884
16885 # How to hardcode a shared library path into an executable.
16886 hardcode_action=$hardcode_action
16887
16888 # ### END LIBTOOL CONFIG
16889
16890 _LT_EOF
16891
16892 cat <<'_LT_EOF' >> "$cfgfile"
16893
16894 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
16895
16896 # func_munge_path_list VARIABLE PATH
16897 # -----------------------------------
16898 # VARIABLE is name of variable containing _space_ separated list of
16899 # directories to be munged by the contents of PATH, which is string
16900 # having a format:
16901 # "DIR[:DIR]:"
16902 # string "DIR[ DIR]" will be prepended to VARIABLE
16903 # ":DIR[:DIR]"
16904 # string "DIR[ DIR]" will be appended to VARIABLE
16905 # "DIRP[:DIRP]::[DIRA:]DIRA"
16906 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
16907 # "DIRA[ DIRA]" will be appended to VARIABLE
16908 # "DIR[:DIR]"
16909 # VARIABLE will be replaced by "DIR[ DIR]"
16910 func_munge_path_list ()
16911 {
16912 case x$2 in
16913 x)
16914 ;;
16915 *:)
16916 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
16917 ;;
16918 x:*)
16919 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
16920 ;;
16921 *::*)
16922 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
16923 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
16924 ;;
16925 *)
16926 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
16927 ;;
16928 esac
16929 }
16930
16931
16932 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
16933 func_cc_basename ()
16934 {
16935 for cc_temp in $*""; do
16936 case $cc_temp in
16937 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16938 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16939 \-*) ;;
16940 *) break;;
16941 esac
16942 done
16943 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16944 }
16945
16946
16947 # ### END FUNCTIONS SHARED WITH CONFIGURE
16948
16949 _LT_EOF
16950
16951 case $host_os in
16952 aix3*)
16953 cat <<\_LT_EOF >> "$cfgfile"
16954 # AIX sometimes has problems with the GCC collect2 program. For some
16955 # reason, if we set the COLLECT_NAMES environment variable, the problems
16956 # vanish in a puff of smoke.
16957 if test set != "${COLLECT_NAMES+set}"; then
16958 COLLECT_NAMES=
16959 export COLLECT_NAMES
16960 fi
16961 _LT_EOF
16962 ;;
16963 esac
16964
16965
16966
16967 ltmain=$ac_aux_dir/ltmain.sh
16968
16969
16970 # We use sed instead of cat because bash on DJGPP gets confused if
16971 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16972 # text mode, it properly converts lines to CR/LF. This bash problem
16973 # is reportedly fixed, but why not run on old versions too?
16974 $SED '$q' "$ltmain" >> "$cfgfile" \
16975 || (rm -f "$cfgfile"; exit 1)
16976
16977 mv -f "$cfgfile" "$ofile" ||
16978 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16979 chmod +x "$ofile"
16980
16981
16982 as_fn_exit 0
16983 _LTEOF
16984 chmod +x "$CONFIG_LT"
16985
16986 # configure is writing to config.log, but config.lt does its own redirection,
16987 # appending to config.log, which fails on DOS, as config.log is still kept
16988 # open by configure. Here we exec the FD to /dev/null, effectively closing
16989 # config.log, so it can be properly (re)opened and appended to by config.lt.
16990 lt_cl_success=:
16991 test yes = "$silent" &&
16992 lt_config_lt_args="$lt_config_lt_args --quiet"
16993 exec 5>/dev/null
16994 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
16995 exec 5>>config.log
16996 $lt_cl_success || as_fn_exit 1
16997
16998 #
16999 #
17000 ac_ext=c
17001 ac_cpp='$CPP $CPPFLAGS'
17002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17005 ac_link="./libtool --mode=link --tag=CC $ac_link"
17006
17007 if test -n "$ac_tool_prefix"; then
17008 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
17009 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
17010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17011 printf %s "checking for $ac_word... " >&6; }
17012 if test ${ac_cv_prog_PKG_CONFIG+y}
17013 then :
17014 printf %s "(cached) " >&6
17015 else case e in #(
17016 e) if test -n "$PKG_CONFIG"; then
17017 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
17018 else
17019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17020 for as_dir in $PATH
17021 do
17022 IFS=$as_save_IFS
17023 case $as_dir in #(((
17024 '') as_dir=./ ;;
17025 */) ;;
17026 *) as_dir=$as_dir/ ;;
17027 esac
17028 for ac_exec_ext in '' $ac_executable_extensions; do
17029 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17030 ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
17031 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17032 break 2
17033 fi
17034 done
17035 done
17036 IFS=$as_save_IFS
17037
17038 fi ;;
17039 esac
17040 fi
17041 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
17042 if test -n "$PKG_CONFIG"; then
17043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
17044 printf "%s\n" "$PKG_CONFIG" >&6; }
17045 else
17046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17047 printf "%s\n" "no" >&6; }
17048 fi
17049
17050
17051 fi
17052 if test -z "$ac_cv_prog_PKG_CONFIG"; then
17053 ac_ct_PKG_CONFIG=$PKG_CONFIG
17054 # Extract the first word of "pkg-config", so it can be a program name with args.
17055 set dummy pkg-config; ac_word=$2
17056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17057 printf %s "checking for $ac_word... " >&6; }
17058 if test ${ac_cv_prog_ac_ct_PKG_CONFIG+y}
17059 then :
17060 printf %s "(cached) " >&6
17061 else case e in #(
17062 e) if test -n "$ac_ct_PKG_CONFIG"; then
17063 ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
17064 else
17065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17066 for as_dir in $PATH
17067 do
17068 IFS=$as_save_IFS
17069 case $as_dir in #(((
17070 '') as_dir=./ ;;
17071 */) ;;
17072 *) as_dir=$as_dir/ ;;
17073 esac
17074 for ac_exec_ext in '' $ac_executable_extensions; do
17075 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17076 ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
17077 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17078 break 2
17079 fi
17080 done
17081 done
17082 IFS=$as_save_IFS
17083
17084 fi ;;
17085 esac
17086 fi
17087 ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
17088 if test -n "$ac_ct_PKG_CONFIG"; then
17089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PKG_CONFIG" >&5
17090 printf "%s\n" "$ac_ct_PKG_CONFIG" >&6; }
17091 else
17092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17093 printf "%s\n" "no" >&6; }
17094 fi
17095
17096 if test "x$ac_ct_PKG_CONFIG" = x; then
17097 PKG_CONFIG="false"
17098 else
17099 case $cross_compiling:$ac_tool_warned in
17100 yes:)
17101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17102 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17103 ac_tool_warned=yes ;;
17104 esac
17105 PKG_CONFIG=$ac_ct_PKG_CONFIG
17106 fi
17107 else
17108 PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
17109 fi
17110
17111 ##tldbg _KPSE_LIB_FLAGS: Setup kpathsea (-lkpathsea) flags.
17112 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
17113 ##tldbg _KPSE_LIB_FLAGS_TL: kpathsea (kpathsea) lt.
17114
17115 # Check whether --with-system-kpathsea was given.
17116 if test ${with_system_kpathsea+y}
17117 then :
17118 withval=$with_system_kpathsea;
17119 fi
17120 if test "x$with_system_kpathsea" = xyes; then
17121 if $PKG_CONFIG kpathsea; then
17122 KPATHSEA_INCLUDES=`$PKG_CONFIG kpathsea --cflags`
17123 KPATHSEA_LIBS=`$PKG_CONFIG kpathsea --libs`
17124 elif test "x$need_kpathsea:$with_system_kpathsea" = xyes:yes; then
17125 as_fn_error $? "did not find kpathsea" "$LINENO" 5
17126 fi
17127 else
17128 KPATHSEA_INCLUDES="-I$kpse_BLD/texk -I$kpse_SRC/texk"
17129 KPATHSEA_LIBS="$kpse_BLD/texk/kpathsea/libkpathsea.la"
17130 KPATHSEA_DEPEND='${top_builddir}/../kpathsea/libkpathsea.la'
17131 KPATHSEA_RULE='# Rebuild libkpathsea
17132 $(KPATHSEA_DEPEND): ${top_srcdir}/../kpathsea/*.[ch] ${top_builddir}/../kpathsea/paths.h
17133 cd ${top_builddir}/../kpathsea && $(MAKE) $(AM_MAKEFLAGS) rebuild
17134 ${top_builddir}/../kpathsea/paths.h:
17135 cd ${top_builddir}/../kpathsea && $(MAKE) $(AM_MAKEFLAGS) rebuild'
17136 fi
17137
17138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libkpathsea supports debugging" >&5
17139 printf %s "checking if libkpathsea supports debugging... " >&6; }
17140 if test ${kpse_cv_kpse_debug+y}
17141 then :
17142 printf %s "(cached) " >&6
17143 else case e in #(
17144 e) eval CPPFLAGS=\"$KPATHSEA_INCLUDES \$CPPFLAGS\"
17145 eval LIBS=\"$KPATHSEA_LIBS \$LIBS\"
17146
17147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17148 /* end confdefs.h. */
17149 #include <kpathsea/kpathsea.h>
17150 int
17151 main (void)
17152 {
17153 FILE *f = fopen("f", "r")
17154 ;
17155 return 0;
17156 }
17157 _ACEOF
17158 if ac_fn_c_try_link "$LINENO"
17159 then :
17160 kpse_cv_kpse_debug=yes
17161 else case e in #(
17162 e) kpse_cv_kpse_debug=no ;;
17163 esac
17164 fi
17165 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17166 conftest$ac_exeext conftest.$ac_ext
17167 CPPFLAGS=$kpse_save_CPPFLAGS
17168 LIBS=$kpse_save_LIBS
17169 ;;
17170 esac
17171 fi
17172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_kpse_debug" >&5
17173 printf "%s\n" "$kpse_cv_kpse_debug" >&6; }
17174 if test "x$kpse_cv_kpse_debug" != xyes
17175 then :
17176 KPATHSEA_INCLUDES="$KPATHSEA_INCLUDES -DNO_DEBUG"
17177 fi
17178
17179
17180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for native WIN32 or MINGW32" >&5
17181 printf %s "checking for native WIN32 or MINGW32... " >&6; }
17182 if test ${kpse_cv_have_win32+y}
17183 then :
17184 printf %s "(cached) " >&6
17185 else case e in #(
17186 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17187 /* end confdefs.h. */
17188 #ifndef WIN32
17189 choke me
17190 #endif
17191 int
17192 main (void)
17193 {
17194
17195 ;
17196 return 0;
17197 }
17198 _ACEOF
17199 if ac_fn_c_try_compile "$LINENO"
17200 then :
17201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17202 /* end confdefs.h. */
17203 #ifndef __MINGW32__
17204 choke me
17205 #endif
17206 int
17207 main (void)
17208 {
17209
17210 ;
17211 return 0;
17212 }
17213 _ACEOF
17214 if ac_fn_c_try_compile "$LINENO"
17215 then :
17216 kpse_cv_have_win32=mingw32
17217 else case e in #(
17218 e) kpse_cv_have_win32=native ;;
17219 esac
17220 fi
17221 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17222 else case e in #(
17223 e) kpse_cv_have_win32=no ;;
17224 esac
17225 fi
17226 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17227 esac
17228 fi
17229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_have_win32" >&5
17230 printf "%s\n" "$kpse_cv_have_win32" >&6; }
17231
17232 if test "x$kpse_cv_have_win32" != xno; then
17233 WIN32_TRUE=
17234 WIN32_FALSE='#'
17235 else
17236 WIN32_TRUE='#'
17237 WIN32_FALSE=
17238 fi
17239
17240
17241
17242 ac_config_files="$ac_config_files Makefile"
17243
17244
17245 cat >confcache <<\_ACEOF
17246 # This file is a shell script that caches the results of configure
17247 # tests run on this system so they can be shared between configure
17248 # scripts and configure runs, see configure's option --config-cache.
17249 # It is not useful on other systems. If it contains results you don't
17250 # want to keep, you may remove or edit it.
17251 #
17252 # config.status only pays attention to the cache file if you give it
17253 # the --recheck option to rerun configure.
17254 #
17255 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
17256 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
17257 # following values.
17258
17259 _ACEOF
17260
17261 # The following way of writing the cache mishandles newlines in values,
17262 # but we know of no workaround that is simple, portable, and efficient.
17263 # So, we kill variables containing newlines.
17264 # Ultrix sh set writes to stderr and can't be redirected directly,
17265 # and sets the high bit in the cache file unless we assign to the vars.
17266 (
17267 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17268 eval ac_val=\$$ac_var
17269 case $ac_val in #(
17270 *${as_nl}*)
17271 case $ac_var in #(
17272 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17273 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17274 esac
17275 case $ac_var in #(
17276 _ | IFS | as_nl) ;; #(
17277 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17278 *) { eval $ac_var=; unset $ac_var;} ;;
17279 esac ;;
17280 esac
17281 done
17282
17283 (set) 2>&1 |
17284 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17285 *${as_nl}ac_space=\ *)
17286 # 'set' does not quote correctly, so add quotes: double-quote
17287 # substitution turns \\\\ into \\, and sed turns \\ into \.
17288 sed -n \
17289 "s/'/'\\\\''/g;
17290 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17291 ;; #(
17292 *)
17293 # 'set' quotes correctly as required by POSIX, so do not add quotes.
17294 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17295 ;;
17296 esac |
17297 sort
17298 ) |
17299 sed '
17300 /^ac_cv_env_/b end
17301 t clear
17302 :clear
17303 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
17304 t end
17305 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17306 :end' >>confcache
17307 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17308 if test -w "$cache_file"; then
17309 if test "x$cache_file" != "x/dev/null"; then
17310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17311 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
17312 if test ! -f "$cache_file" || test -h "$cache_file"; then
17313 cat confcache >"$cache_file"
17314 else
17315 case $cache_file in #(
17316 */* | ?:*)
17317 mv -f confcache "$cache_file"$$ &&
17318 mv -f "$cache_file"$$ "$cache_file" ;; #(
17319 *)
17320 mv -f confcache "$cache_file" ;;
17321 esac
17322 fi
17323 fi
17324 else
17325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17326 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
17327 fi
17328 fi
17329 rm -f confcache
17330
17331 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17332 # Let make expand exec_prefix.
17333 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17334
17335 DEFS=-DHAVE_CONFIG_H
17336
17337 ac_libobjs=
17338 ac_ltlibobjs=
17339 U=
17340 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17341 # 1. Remove the extension, and $U if already installed.
17342 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17343 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
17344 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17345 # will be set to the directory where LIBOBJS objects are built.
17346 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17347 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17348 done
17349 LIBOBJS=$ac_libobjs
17350
17351 LTLIBOBJS=$ac_ltlibobjs
17352
17353
17354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17355 printf %s "checking that generated files are newer than configure... " >&6; }
17356 if test -n "$am_sleep_pid"; then
17357 # Hide warnings about reused PIDs.
17358 wait $am_sleep_pid 2>/dev/null
17359 fi
17360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
17361 printf "%s\n" "done" >&6; }
17362 case $enable_silent_rules in # (((
17363 yes) AM_DEFAULT_VERBOSITY=0;;
17364 no) AM_DEFAULT_VERBOSITY=1;;
17365 esac
17366 if test $am_cv_make_support_nested_variables = yes; then
17367 AM_V='$(V)'
17368 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
17369 else
17370 AM_V=$AM_DEFAULT_VERBOSITY
17371 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
17372 fi
17373
17374 if test -n "$EXEEXT"; then
17375 am__EXEEXT_TRUE=
17376 am__EXEEXT_FALSE='#'
17377 else
17378 am__EXEEXT_TRUE='#'
17379 am__EXEEXT_FALSE=
17380 fi
17381
17382 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17383 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17384 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17385 fi
17386 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17387 as_fn_error $? "conditional \"AMDEP\" was never defined.
17388 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17389 fi
17390 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17391 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17392 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17393 fi
17394 # Check whether --enable-year2038 was given.
17395 if test ${enable_year2038+y}
17396 then :
17397 enableval=$enable_year2038;
17398 fi
17399
17400 if test -z "${WIN32_TRUE}" && test -z "${WIN32_FALSE}"; then
17401 as_fn_error $? "conditional \"WIN32\" was never defined.
17402 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17403 fi
17404
17405 : "${CONFIG_STATUS=./config.status}"
17406 ac_write_fail=0
17407 ac_clean_files_save=$ac_clean_files
17408 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17410 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
17411 as_write_fail=0
17412 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17413 #! $SHELL
17414 # Generated by $as_me.
17415 # Run this file to recreate the current configuration.
17416 # Compiler output produced by configure, useful for debugging
17417 # configure, is in config.log if it exists.
17418
17419 debug=false
17420 ac_cs_recheck=false
17421 ac_cs_silent=false
17422
17423 SHELL=\${CONFIG_SHELL-$SHELL}
17424 export SHELL
17425 _ASEOF
17426 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17427 ## -------------------- ##
17428 ## M4sh Initialization. ##
17429 ## -------------------- ##
17430
17431 # Be more Bourne compatible
17432 DUALCASE=1; export DUALCASE # for MKS sh
17433 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
17434 then :
17435 emulate sh
17436 NULLCMD=:
17437 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17438 # is contrary to our usage. Disable this feature.
17439 alias -g '${1+"$@"}'='"$@"'
17440 setopt NO_GLOB_SUBST
17441 else case e in #(
17442 e) case `(set -o) 2>/dev/null` in #(
17443 *posix*) :
17444 set -o posix ;; #(
17445 *) :
17446 ;;
17447 esac ;;
17448 esac
17449 fi
17450
17451
17452
17453 # Reset variables that may have inherited troublesome values from
17454 # the environment.
17455
17456 # IFS needs to be set, to space, tab, and newline, in precisely that order.
17457 # (If _AS_PATH_WALK were called with IFS unset, it would have the
17458 # side effect of setting IFS to empty, thus disabling word splitting.)
17459 # Quoting is to prevent editors from complaining about space-tab.
17460 as_nl='
17461 '
17462 export as_nl
17463 IFS=" "" $as_nl"
17464
17465 PS1='$ '
17466 PS2='> '
17467 PS4='+ '
17468
17469 # Ensure predictable behavior from utilities with locale-dependent output.
17470 LC_ALL=C
17471 export LC_ALL
17472 LANGUAGE=C
17473 export LANGUAGE
17474
17475 # We cannot yet rely on "unset" to work, but we need these variables
17476 # to be unset--not just set to an empty or harmless value--now, to
17477 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
17478 # also avoids known problems related to "unset" and subshell syntax
17479 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
17480 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
17481 do eval test \${$as_var+y} \
17482 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17483 done
17484
17485 # Ensure that fds 0, 1, and 2 are open.
17486 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
17487 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
17488 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
17489
17490 # The user is always right.
17491 if ${PATH_SEPARATOR+false} :; then
17492 PATH_SEPARATOR=:
17493 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17494 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17495 PATH_SEPARATOR=';'
17496 }
17497 fi
17498
17499
17500 # Find who we are. Look in the path if we contain no directory separator.
17501 as_myself=
17502 case $0 in #((
17503 *[\\/]* ) as_myself=$0 ;;
17504 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17505 for as_dir in $PATH
17506 do
17507 IFS=$as_save_IFS
17508 case $as_dir in #(((
17509 '') as_dir=./ ;;
17510 */) ;;
17511 *) as_dir=$as_dir/ ;;
17512 esac
17513 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
17514 done
17515 IFS=$as_save_IFS
17516
17517 ;;
17518 esac
17519 # We did not find ourselves, most probably we were run as 'sh COMMAND'
17520 # in which case we are not to be found in the path.
17521 if test "x$as_myself" = x; then
17522 as_myself=$0
17523 fi
17524 if test ! -f "$as_myself"; then
17525 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17526 exit 1
17527 fi
17528
17529
17530
17531 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17532 # ----------------------------------------
17533 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17534 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17535 # script with STATUS, using 1 if that was 0.
17536 as_fn_error ()
17537 {
17538 as_status=$1; test $as_status -eq 0 && as_status=1
17539 if test "$4"; then
17540 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17541 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17542 fi
17543 printf "%s\n" "$as_me: error: $2" >&2
17544 as_fn_exit $as_status
17545 } # as_fn_error
17546
17547
17548 # as_fn_set_status STATUS
17549 # -----------------------
17550 # Set $? to STATUS, without forking.
17551 as_fn_set_status ()
17552 {
17553 return $1
17554 } # as_fn_set_status
17555
17556 # as_fn_exit STATUS
17557 # -----------------
17558 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17559 as_fn_exit ()
17560 {
17561 set +e
17562 as_fn_set_status $1
17563 exit $1
17564 } # as_fn_exit
17565
17566 # as_fn_unset VAR
17567 # ---------------
17568 # Portably unset VAR.
17569 as_fn_unset ()
17570 {
17571 { eval $1=; unset $1;}
17572 }
17573 as_unset=as_fn_unset
17574
17575 # as_fn_append VAR VALUE
17576 # ----------------------
17577 # Append the text in VALUE to the end of the definition contained in VAR. Take
17578 # advantage of any shell optimizations that allow amortized linear growth over
17579 # repeated appends, instead of the typical quadratic growth present in naive
17580 # implementations.
17581 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
17582 then :
17583 eval 'as_fn_append ()
17584 {
17585 eval $1+=\$2
17586 }'
17587 else case e in #(
17588 e) as_fn_append ()
17589 {
17590 eval $1=\$$1\$2
17591 } ;;
17592 esac
17593 fi # as_fn_append
17594
17595 # as_fn_arith ARG...
17596 # ------------------
17597 # Perform arithmetic evaluation on the ARGs, and store the result in the
17598 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17599 # must be portable across $(()) and expr.
17600 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
17601 then :
17602 eval 'as_fn_arith ()
17603 {
17604 as_val=$(( $* ))
17605 }'
17606 else case e in #(
17607 e) as_fn_arith ()
17608 {
17609 as_val=`expr "$@" || test $? -eq 1`
17610 } ;;
17611 esac
17612 fi # as_fn_arith
17613
17614
17615 if expr a : '\(a\)' >/dev/null 2>&1 &&
17616 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17617 as_expr=expr
17618 else
17619 as_expr=false
17620 fi
17621
17622 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17623 as_basename=basename
17624 else
17625 as_basename=false
17626 fi
17627
17628 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17629 as_dirname=dirname
17630 else
17631 as_dirname=false
17632 fi
17633
17634 as_me=`$as_basename -- "$0" ||
17635 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17636 X"$0" : 'X\(//\)$' \| \
17637 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17638 printf "%s\n" X/"$0" |
17639 sed '/^.*\/\([^/][^/]*\)\/*$/{
17640 s//\1/
17641 q
17642 }
17643 /^X\/\(\/\/\)$/{
17644 s//\1/
17645 q
17646 }
17647 /^X\/\(\/\).*/{
17648 s//\1/
17649 q
17650 }
17651 s/.*/./; q'`
17652
17653 # Avoid depending upon Character Ranges.
17654 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17655 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17656 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17657 as_cr_digits='0123456789'
17658 as_cr_alnum=$as_cr_Letters$as_cr_digits
17659
17660
17661 # Determine whether it's possible to make 'echo' print without a newline.
17662 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
17663 # for compatibility with existing Makefiles.
17664 ECHO_C= ECHO_N= ECHO_T=
17665 case `echo -n x` in #(((((
17666 -n*)
17667 case `echo 'xy\c'` in
17668 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17669 xy) ECHO_C='\c';;
17670 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17671 ECHO_T=' ';;
17672 esac;;
17673 *)
17674 ECHO_N='-n';;
17675 esac
17676
17677 # For backward compatibility with old third-party macros, we provide
17678 # the shell variables $as_echo and $as_echo_n. New code should use
17679 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
17680 as_echo='printf %s\n'
17681 as_echo_n='printf %s'
17682
17683 rm -f conf$$ conf$$.exe conf$$.file
17684 if test -d conf$$.dir; then
17685 rm -f conf$$.dir/conf$$.file
17686 else
17687 rm -f conf$$.dir
17688 mkdir conf$$.dir 2>/dev/null
17689 fi
17690 if (echo >conf$$.file) 2>/dev/null; then
17691 if ln -s conf$$.file conf$$ 2>/dev/null; then
17692 as_ln_s='ln -s'
17693 # ... but there are two gotchas:
17694 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
17695 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
17696 # In both cases, we have to default to 'cp -pR'.
17697 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17698 as_ln_s='cp -pR'
17699 elif ln conf$$.file conf$$ 2>/dev/null; then
17700 as_ln_s=ln
17701 else
17702 as_ln_s='cp -pR'
17703 fi
17704 else
17705 as_ln_s='cp -pR'
17706 fi
17707 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17708 rmdir conf$$.dir 2>/dev/null
17709
17710
17711 # as_fn_mkdir_p
17712 # -------------
17713 # Create "$as_dir" as a directory, including parents if necessary.
17714 as_fn_mkdir_p ()
17715 {
17716
17717 case $as_dir in #(
17718 -*) as_dir=./$as_dir;;
17719 esac
17720 test -d "$as_dir" || eval $as_mkdir_p || {
17721 as_dirs=
17722 while :; do
17723 case $as_dir in #(
17724 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17725 *) as_qdir=$as_dir;;
17726 esac
17727 as_dirs="'$as_qdir' $as_dirs"
17728 as_dir=`$as_dirname -- "$as_dir" ||
17729 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17730 X"$as_dir" : 'X\(//\)[^/]' \| \
17731 X"$as_dir" : 'X\(//\)$' \| \
17732 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17733 printf "%s\n" X"$as_dir" |
17734 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17735 s//\1/
17736 q
17737 }
17738 /^X\(\/\/\)[^/].*/{
17739 s//\1/
17740 q
17741 }
17742 /^X\(\/\/\)$/{
17743 s//\1/
17744 q
17745 }
17746 /^X\(\/\).*/{
17747 s//\1/
17748 q
17749 }
17750 s/.*/./; q'`
17751 test -d "$as_dir" && break
17752 done
17753 test -z "$as_dirs" || eval "mkdir $as_dirs"
17754 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17755
17756
17757 } # as_fn_mkdir_p
17758 if mkdir -p . 2>/dev/null; then
17759 as_mkdir_p='mkdir -p "$as_dir"'
17760 else
17761 test -d ./-p && rmdir ./-p
17762 as_mkdir_p=false
17763 fi
17764
17765
17766 # as_fn_executable_p FILE
17767 # -----------------------
17768 # Test if FILE is an executable regular file.
17769 as_fn_executable_p ()
17770 {
17771 test -f "$1" && test -x "$1"
17772 } # as_fn_executable_p
17773 as_test_x='test -x'
17774 as_executable_p=as_fn_executable_p
17775
17776 # Sed expression to map a string onto a valid CPP name.
17777 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
17778 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
17779
17780 # Sed expression to map a string onto a valid variable name.
17781 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
17782 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
17783
17784
17785 exec 6>&1
17786 ## ----------------------------------- ##
17787 ## Main body of $CONFIG_STATUS script. ##
17788 ## ----------------------------------- ##
17789 _ASEOF
17790 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17791
17792 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17793 # Save the log message, to keep $0 and so on meaningful, and to
17794 # report actual input values of CONFIG_FILES etc. instead of their
17795 # values after options handling.
17796 ac_log="
17797 This file was extended by makeindex (TeX Live) $as_me 2.18, which was
17798 generated by GNU Autoconf 2.72. Invocation command line was
17799
17800 CONFIG_FILES = $CONFIG_FILES
17801 CONFIG_HEADERS = $CONFIG_HEADERS
17802 CONFIG_LINKS = $CONFIG_LINKS
17803 CONFIG_COMMANDS = $CONFIG_COMMANDS
17804 $ $0 $@
17805
17806 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17807 "
17808
17809 _ACEOF
17810
17811 case $ac_config_files in *"
17812 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17813 esac
17814
17815 case $ac_config_headers in *"
17816 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17817 esac
17818
17819
17820 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17821 # Files that config.status was made for.
17822 config_files="$ac_config_files"
17823 config_headers="$ac_config_headers"
17824 config_commands="$ac_config_commands"
17825
17826 _ACEOF
17827
17828 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17829 ac_cs_usage="\
17830 '$as_me' instantiates files and other configuration actions
17831 from templates according to the current configuration. Unless the files
17832 and actions are specified as TAGs, all are instantiated by default.
17833
17834 Usage: $0 [OPTION]... [TAG]...
17835
17836 -h, --help print this help, then exit
17837 -V, --version print version number and configuration settings, then exit
17838 --config print configuration, then exit
17839 -q, --quiet, --silent
17840 do not print progress messages
17841 -d, --debug don't remove temporary files
17842 --recheck update $as_me by reconfiguring in the same conditions
17843 --file=FILE[:TEMPLATE]
17844 instantiate the configuration file FILE
17845 --header=FILE[:TEMPLATE]
17846 instantiate the configuration header FILE
17847
17848 Configuration files:
17849 $config_files
17850
17851 Configuration headers:
17852 $config_headers
17853
17854 Configuration commands:
17855 $config_commands
17856
17857 Report bugs to <[email protected]>."
17858
17859 _ACEOF
17860 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
17861 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
17862 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17863 ac_cs_config='$ac_cs_config_escaped'
17864 ac_cs_version="\\
17865 makeindex (TeX Live) config.status 2.18
17866 configured by $0, generated by GNU Autoconf 2.72,
17867 with options \\"\$ac_cs_config\\"
17868
17869 Copyright (C) 2023 Free Software Foundation, Inc.
17870 This config.status script is free software; the Free Software Foundation
17871 gives unlimited permission to copy, distribute and modify it."
17872
17873 ac_pwd='$ac_pwd'
17874 srcdir='$srcdir'
17875 INSTALL='$INSTALL'
17876 MKDIR_P='$MKDIR_P'
17877 AWK='$AWK'
17878 test -n "\$AWK" || AWK=awk
17879 _ACEOF
17880
17881 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17882 # The default lists apply if the user does not specify any file.
17883 ac_need_defaults=:
17884 while test $# != 0
17885 do
17886 case $1 in
17887 --*=?*)
17888 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17889 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17890 ac_shift=:
17891 ;;
17892 --*=)
17893 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17894 ac_optarg=
17895 ac_shift=:
17896 ;;
17897 *)
17898 ac_option=$1
17899 ac_optarg=$2
17900 ac_shift=shift
17901 ;;
17902 esac
17903
17904 case $ac_option in
17905 # Handling of the options.
17906 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17907 ac_cs_recheck=: ;;
17908 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17909 printf "%s\n" "$ac_cs_version"; exit ;;
17910 --config | --confi | --conf | --con | --co | --c )
17911 printf "%s\n" "$ac_cs_config"; exit ;;
17912 --debug | --debu | --deb | --de | --d | -d )
17913 debug=: ;;
17914 --file | --fil | --fi | --f )
17915 $ac_shift
17916 case $ac_optarg in
17917 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17918 '') as_fn_error $? "missing file argument" ;;
17919 esac
17920 as_fn_append CONFIG_FILES " '$ac_optarg'"
17921 ac_need_defaults=false;;
17922 --header | --heade | --head | --hea )
17923 $ac_shift
17924 case $ac_optarg in
17925 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17926 esac
17927 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17928 ac_need_defaults=false;;
17929 --he | --h)
17930 # Conflict between --help and --header
17931 as_fn_error $? "ambiguous option: '$1'
17932 Try '$0 --help' for more information.";;
17933 --help | --hel | -h )
17934 printf "%s\n" "$ac_cs_usage"; exit ;;
17935 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17936 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17937 ac_cs_silent=: ;;
17938
17939 # This is an error.
17940 -*) as_fn_error $? "unrecognized option: '$1'
17941 Try '$0 --help' for more information." ;;
17942
17943 *) as_fn_append ac_config_targets " $1"
17944 ac_need_defaults=false ;;
17945
17946 esac
17947 shift
17948 done
17949
17950 ac_configure_extra_args=
17951
17952 if $ac_cs_silent; then
17953 exec 6>/dev/null
17954 ac_configure_extra_args="$ac_configure_extra_args --silent"
17955 fi
17956
17957 _ACEOF
17958 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17959 if \$ac_cs_recheck; then
17960 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17961 shift
17962 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
17963 CONFIG_SHELL='$SHELL'
17964 export CONFIG_SHELL
17965 exec "\$@"
17966 fi
17967
17968 _ACEOF
17969 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17970 exec 5>>config.log
17971 {
17972 echo
17973 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17974 ## Running $as_me. ##
17975 _ASBOX
17976 printf "%s\n" "$ac_log"
17977 } >&5
17978
17979 _ACEOF
17980 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17981 #
17982 # INIT-COMMANDS
17983 #
17984 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
17985
17986
17987 # The HP-UX ksh and POSIX shell print the target directory to stdout
17988 # if CDPATH is set.
17989 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17990
17991 sed_quote_subst='$sed_quote_subst'
17992 double_quote_subst='$double_quote_subst'
17993 delay_variable_subst='$delay_variable_subst'
17994 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17995 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17996 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
17997 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17998 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17999 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18000 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18001 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18002 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18003 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
18004 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18005 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18006 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18007 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18008 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18009 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18010 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18011 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18012 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18013 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18014 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18015 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18016 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18017 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18018 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18019 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18020 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18021 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18022 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18023 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18024 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18025 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18026 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18027 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18028 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18029 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18030 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18031 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
18032 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18033 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18034 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18035 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18036 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18037 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18038 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
18039 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18040 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18041 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18042 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18043 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18044 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18045 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18046 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18047 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18048 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18049 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18050 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18051 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18052 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18053 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
18054 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18055 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"`'
18056 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
18057 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18058 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18059 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
18060 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18061 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18062 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18063 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18064 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18065 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18066 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18067 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18068 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18069 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18070 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18071 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18072 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18073 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18074 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18075 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18076 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18077 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18078 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18079 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18080 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18081 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18082 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18083 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18084 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18085 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18086 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18087 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18088 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18089 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18090 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18091 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18092 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18093 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18094 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18095 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18096 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18097 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18098 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18099 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18100 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18101 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18102 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18103 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18104 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18105 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18106 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18107 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18108 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18109 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18110 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18111 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18112 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18113 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18114 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18115 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18116 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18117 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18118 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18119 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18120 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18121 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18122 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18123 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18124 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
18125 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
18126 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18127 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18128 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18129 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18130 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18131 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18132
18133 LTCC='$LTCC'
18134 LTCFLAGS='$LTCFLAGS'
18135 compiler='$compiler_DEFAULT'
18136
18137 # A function that is used when there is no print builtin or printf.
18138 func_fallback_echo ()
18139 {
18140 eval 'cat <<_LTECHO_EOF
18141 \$1
18142 _LTECHO_EOF'
18143 }
18144
18145 # Quote evaled strings.
18146 for var in AS \
18147 DLLTOOL \
18148 OBJDUMP \
18149 SHELL \
18150 ECHO \
18151 PATH_SEPARATOR \
18152 SED \
18153 GREP \
18154 EGREP \
18155 FGREP \
18156 LD \
18157 NM \
18158 LN_S \
18159 lt_SP2NL \
18160 lt_NL2SP \
18161 reload_flag \
18162 FILECMD \
18163 deplibs_check_method \
18164 file_magic_cmd \
18165 file_magic_glob \
18166 want_nocaseglob \
18167 sharedlib_from_linklib_cmd \
18168 AR \
18169 archiver_list_spec \
18170 STRIP \
18171 RANLIB \
18172 CC \
18173 CFLAGS \
18174 compiler \
18175 lt_cv_sys_global_symbol_pipe \
18176 lt_cv_sys_global_symbol_to_cdecl \
18177 lt_cv_sys_global_symbol_to_import \
18178 lt_cv_sys_global_symbol_to_c_name_address \
18179 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18180 lt_cv_nm_interface \
18181 nm_file_list_spec \
18182 lt_cv_truncate_bin \
18183 lt_prog_compiler_no_builtin_flag \
18184 lt_prog_compiler_pic \
18185 lt_prog_compiler_wl \
18186 lt_prog_compiler_static \
18187 lt_cv_prog_compiler_c_o \
18188 need_locks \
18189 MANIFEST_TOOL \
18190 DSYMUTIL \
18191 NMEDIT \
18192 LIPO \
18193 OTOOL \
18194 OTOOL64 \
18195 shrext_cmds \
18196 export_dynamic_flag_spec \
18197 whole_archive_flag_spec \
18198 compiler_needs_object \
18199 with_gnu_ld \
18200 allow_undefined_flag \
18201 no_undefined_flag \
18202 hardcode_libdir_flag_spec \
18203 hardcode_libdir_separator \
18204 exclude_expsyms \
18205 include_expsyms \
18206 file_list_spec \
18207 variables_saved_for_relink \
18208 libname_spec \
18209 library_names_spec \
18210 soname_spec \
18211 install_override_mode \
18212 finish_eval \
18213 old_striplib \
18214 striplib; do
18215 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18216 *[\\\\\\\`\\"\\\$]*)
18217 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18218 ;;
18219 *)
18220 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18221 ;;
18222 esac
18223 done
18224
18225 # Double-quote double-evaled strings.
18226 for var in reload_cmds \
18227 old_postinstall_cmds \
18228 old_postuninstall_cmds \
18229 old_archive_cmds \
18230 extract_expsyms_cmds \
18231 old_archive_from_new_cmds \
18232 old_archive_from_expsyms_cmds \
18233 archive_cmds \
18234 archive_expsym_cmds \
18235 module_cmds \
18236 module_expsym_cmds \
18237 export_symbols_cmds \
18238 prelink_cmds \
18239 postlink_cmds \
18240 postinstall_cmds \
18241 postuninstall_cmds \
18242 finish_cmds \
18243 sys_lib_search_path_spec \
18244 configure_time_dlsearch_path \
18245 configure_time_lt_sys_library_path; do
18246 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18247 *[\\\\\\\`\\"\\\$]*)
18248 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18249 ;;
18250 *)
18251 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18252 ;;
18253 esac
18254 done
18255
18256 ac_aux_dir='$ac_aux_dir'
18257
18258 # See if we are running on zsh, and set the options that allow our
18259 # commands through without removal of \ escapes INIT.
18260 if test -n "\${ZSH_VERSION+set}"; then
18261 setopt NO_GLOB_SUBST
18262 fi
18263
18264
18265 PACKAGE='$PACKAGE'
18266 VERSION='$VERSION'
18267 RM='$RM'
18268 ofile='$ofile'
18269
18270 ac_aux_dir='$ac_aux_dir'
18271
18272
18273
18274 _ACEOF
18275
18276 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18277
18278 # Handling of arguments.
18279 for ac_config_target in $ac_config_targets
18280 do
18281 case $ac_config_target in
18282 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18283 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18284 "c-auto.h") CONFIG_HEADERS="$CONFIG_HEADERS c-auto.h:c-auto.in" ;;
18285 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18286
18287 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
18288 esac
18289 done
18290
18291
18292 # If the user did not use the arguments to specify the items to instantiate,
18293 # then the envvar interface is used. Set only those that are not.
18294 # We use the long form for the default assignment because of an extremely
18295 # bizarre bug on SunOS 4.1.3.
18296 if $ac_need_defaults; then
18297 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
18298 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
18299 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
18300 fi
18301
18302 # Have a temporary directory for convenience. Make it in the build tree
18303 # simply because there is no reason against having it here, and in addition,
18304 # creating and moving files from /tmp can sometimes cause problems.
18305 # Hook for its removal unless debugging.
18306 # Note that there is a small window in which the directory will not be cleaned:
18307 # after its creation but before its name has been assigned to '$tmp'.
18308 $debug ||
18309 {
18310 tmp= ac_tmp=
18311 trap 'exit_status=$?
18312 : "${ac_tmp:=$tmp}"
18313 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18314 ' 0
18315 trap 'as_fn_exit 1' 1 2 13 15
18316 }
18317 # Create a (secure) tmp directory for tmp files.
18318
18319 {
18320 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18321 test -d "$tmp"
18322 } ||
18323 {
18324 tmp=./conf$$-$RANDOM
18325 (umask 077 && mkdir "$tmp")
18326 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18327 ac_tmp=$tmp
18328
18329 # Set up the scripts for CONFIG_FILES section.
18330 # No need to generate them if there are no CONFIG_FILES.
18331 # This happens for instance with './config.status config.h'.
18332 if test -n "$CONFIG_FILES"; then
18333
18334
18335 ac_cr=`echo X | tr X '\015'`
18336 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18337 # But we know of no other shell where ac_cr would be empty at this
18338 # point, so we can use a bashism as a fallback.
18339 if test "x$ac_cr" = x; then
18340 eval ac_cr=\$\'\\r\'
18341 fi
18342 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18343 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18344 ac_cs_awk_cr='\\r'
18345 else
18346 ac_cs_awk_cr=$ac_cr
18347 fi
18348
18349 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18350 _ACEOF
18351
18352
18353 {
18354 echo "cat >conf$$subs.awk <<_ACEOF" &&
18355 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18356 echo "_ACEOF"
18357 } >conf$$subs.sh ||
18358 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18359 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18360 ac_delim='%!_!# '
18361 for ac_last_try in false false false false false :; do
18362 . ./conf$$subs.sh ||
18363 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18364
18365 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18366 if test $ac_delim_n = $ac_delim_num; then
18367 break
18368 elif $ac_last_try; then
18369 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18370 else
18371 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18372 fi
18373 done
18374 rm -f conf$$subs.sh
18375
18376 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18377 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18378 _ACEOF
18379 sed -n '
18380 h
18381 s/^/S["/; s/!.*/"]=/
18382 p
18383 g
18384 s/^[^!]*!//
18385 :repl
18386 t repl
18387 s/'"$ac_delim"'$//
18388 t delim
18389 :nl
18390 h
18391 s/\(.\{148\}\)..*/\1/
18392 t more1
18393 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18394 p
18395 n
18396 b repl
18397 :more1
18398 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18399 p
18400 g
18401 s/.\{148\}//
18402 t nl
18403 :delim
18404 h
18405 s/\(.\{148\}\)..*/\1/
18406 t more2
18407 s/["\\]/\\&/g; s/^/"/; s/$/"/
18408 p
18409 b
18410 :more2
18411 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18412 p
18413 g
18414 s/.\{148\}//
18415 t delim
18416 ' <conf$$subs.awk | sed '
18417 /^[^""]/{
18418 N
18419 s/\n//
18420 }
18421 ' >>$CONFIG_STATUS || ac_write_fail=1
18422 rm -f conf$$subs.awk
18423 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18424 _ACAWK
18425 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18426 for (key in S) S_is_set[key] = 1
18427 FS = ""
18428
18429 }
18430 {
18431 line = $ 0
18432 nfields = split(line, field, "@")
18433 substed = 0
18434 len = length(field[1])
18435 for (i = 2; i < nfields; i++) {
18436 key = field[i]
18437 keylen = length(key)
18438 if (S_is_set[key]) {
18439 value = S[key]
18440 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18441 len += length(value) + length(field[++i])
18442 substed = 1
18443 } else
18444 len += 1 + keylen
18445 }
18446
18447 print line
18448 }
18449
18450 _ACAWK
18451 _ACEOF
18452 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18453 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18454 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18455 else
18456 cat
18457 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18458 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18459 _ACEOF
18460
18461 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18462 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18463 # trailing colons and then remove the whole line if VPATH becomes empty
18464 # (actually we leave an empty line to preserve line numbers).
18465 if test "x$srcdir" = x.; then
18466 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18467 h
18468 s///
18469 s/^/:/
18470 s/[ ]*$/:/
18471 s/:\$(srcdir):/:/g
18472 s/:\${srcdir}:/:/g
18473 s/:@srcdir@:/:/g
18474 s/^:*//
18475 s/:*$//
18476 x
18477 s/\(=[ ]*\).*/\1/
18478 G
18479 s/\n//
18480 s/^[^=]*=[ ]*$//
18481 }'
18482 fi
18483
18484 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18485 fi # test -n "$CONFIG_FILES"
18486
18487 # Set up the scripts for CONFIG_HEADERS section.
18488 # No need to generate them if there are no CONFIG_HEADERS.
18489 # This happens for instance with './config.status Makefile'.
18490 if test -n "$CONFIG_HEADERS"; then
18491 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18492 BEGIN {
18493 _ACEOF
18494
18495 # Transform confdefs.h into an awk script 'defines.awk', embedded as
18496 # here-document in config.status, that substitutes the proper values into
18497 # config.h.in to produce config.h.
18498
18499 # Create a delimiter string that does not exist in confdefs.h, to ease
18500 # handling of long lines.
18501 ac_delim='%!_!# '
18502 for ac_last_try in false false :; do
18503 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18504 if test -z "$ac_tt"; then
18505 break
18506 elif $ac_last_try; then
18507 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18508 else
18509 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18510 fi
18511 done
18512
18513 # For the awk script, D is an array of macro values keyed by name,
18514 # likewise P contains macro parameters if any. Preserve backslash
18515 # newline sequences.
18516
18517 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18518 sed -n '
18519 s/.\{148\}/&'"$ac_delim"'/g
18520 t rset
18521 :rset
18522 s/^[ ]*#[ ]*define[ ][ ]*/ /
18523 t def
18524 d
18525 :def
18526 s/\\$//
18527 t bsnl
18528 s/["\\]/\\&/g
18529 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18530 D["\1"]=" \3"/p
18531 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18532 d
18533 :bsnl
18534 s/["\\]/\\&/g
18535 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18536 D["\1"]=" \3\\\\\\n"\\/p
18537 t cont
18538 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18539 t cont
18540 d
18541 :cont
18542 n
18543 s/.\{148\}/&'"$ac_delim"'/g
18544 t clear
18545 :clear
18546 s/\\$//
18547 t bsnlc
18548 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18549 d
18550 :bsnlc
18551 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18552 b cont
18553 ' <confdefs.h | sed '
18554 s/'"$ac_delim"'/"\\\
18555 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18556
18557 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18558 for (key in D) D_is_set[key] = 1
18559 FS = ""
18560 }
18561 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18562 line = \$ 0
18563 split(line, arg, " ")
18564 if (arg[1] == "#") {
18565 defundef = arg[2]
18566 mac1 = arg[3]
18567 } else {
18568 defundef = substr(arg[1], 2)
18569 mac1 = arg[2]
18570 }
18571 split(mac1, mac2, "(") #)
18572 macro = mac2[1]
18573 prefix = substr(line, 1, index(line, defundef) - 1)
18574 if (D_is_set[macro]) {
18575 # Preserve the white space surrounding the "#".
18576 print prefix "define", macro P[macro] D[macro]
18577 next
18578 } else {
18579 # Replace #undef with comments. This is necessary, for example,
18580 # in the case of _POSIX_SOURCE, which is predefined and required
18581 # on some systems where configure will not decide to define it.
18582 if (defundef == "undef") {
18583 print "/*", prefix defundef, macro, "*/"
18584 next
18585 }
18586 }
18587 }
18588 { print }
18589 _ACAWK
18590 _ACEOF
18591 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18592 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18593 fi # test -n "$CONFIG_HEADERS"
18594
18595
18596 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18597 shift
18598 for ac_tag
18599 do
18600 case $ac_tag in
18601 :[FHLC]) ac_mode=$ac_tag; continue;;
18602 esac
18603 case $ac_mode$ac_tag in
18604 :[FHL]*:*);;
18605 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
18606 :[FH]-) ac_tag=-:-;;
18607 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18608 esac
18609 ac_save_IFS=$IFS
18610 IFS=:
18611 set x $ac_tag
18612 IFS=$ac_save_IFS
18613 shift
18614 ac_file=$1
18615 shift
18616
18617 case $ac_mode in
18618 :L) ac_source=$1;;
18619 :[FH])
18620 ac_file_inputs=
18621 for ac_f
18622 do
18623 case $ac_f in
18624 -) ac_f="$ac_tmp/stdin";;
18625 *) # Look for the file first in the build tree, then in the source tree
18626 # (if the path is not absolute). The absolute path cannot be DOS-style,
18627 # because $ac_f cannot contain ':'.
18628 test -f "$ac_f" ||
18629 case $ac_f in
18630 [\\/$]*) false;;
18631 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18632 esac ||
18633 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
18634 esac
18635 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18636 as_fn_append ac_file_inputs " '$ac_f'"
18637 done
18638
18639 # Let's still pretend it is 'configure' which instantiates (i.e., don't
18640 # use $as_me), people would be surprised to read:
18641 # /* config.h. Generated by config.status. */
18642 configure_input='Generated from '`
18643 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18644 `' by configure.'
18645 if test x"$ac_file" != x-; then
18646 configure_input="$ac_file. $configure_input"
18647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18648 printf "%s\n" "$as_me: creating $ac_file" >&6;}
18649 fi
18650 # Neutralize special characters interpreted by sed in replacement strings.
18651 case $configure_input in #(
18652 *\&* | *\|* | *\\* )
18653 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
18654 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18655 *) ac_sed_conf_input=$configure_input;;
18656 esac
18657
18658 case $ac_tag in
18659 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18660 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18661 esac
18662 ;;
18663 esac
18664
18665 ac_dir=`$as_dirname -- "$ac_file" ||
18666 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18667 X"$ac_file" : 'X\(//\)[^/]' \| \
18668 X"$ac_file" : 'X\(//\)$' \| \
18669 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18670 printf "%s\n" X"$ac_file" |
18671 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18672 s//\1/
18673 q
18674 }
18675 /^X\(\/\/\)[^/].*/{
18676 s//\1/
18677 q
18678 }
18679 /^X\(\/\/\)$/{
18680 s//\1/
18681 q
18682 }
18683 /^X\(\/\).*/{
18684 s//\1/
18685 q
18686 }
18687 s/.*/./; q'`
18688 as_dir="$ac_dir"; as_fn_mkdir_p
18689 ac_builddir=.
18690
18691 case "$ac_dir" in
18692 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18693 *)
18694 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
18695 # A ".." for each directory in $ac_dir_suffix.
18696 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18697 case $ac_top_builddir_sub in
18698 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18699 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18700 esac ;;
18701 esac
18702 ac_abs_top_builddir=$ac_pwd
18703 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18704 # for backward compatibility:
18705 ac_top_builddir=$ac_top_build_prefix
18706
18707 case $srcdir in
18708 .) # We are building in place.
18709 ac_srcdir=.
18710 ac_top_srcdir=$ac_top_builddir_sub
18711 ac_abs_top_srcdir=$ac_pwd ;;
18712 [\\/]* | ?:[\\/]* ) # Absolute name.
18713 ac_srcdir=$srcdir$ac_dir_suffix;
18714 ac_top_srcdir=$srcdir
18715 ac_abs_top_srcdir=$srcdir ;;
18716 *) # Relative name.
18717 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18718 ac_top_srcdir=$ac_top_build_prefix$srcdir
18719 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18720 esac
18721 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18722
18723
18724 case $ac_mode in
18725 :F)
18726 #
18727 # CONFIG_FILE
18728 #
18729
18730 case $INSTALL in
18731 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18732 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18733 esac
18734 ac_MKDIR_P=$MKDIR_P
18735 case $MKDIR_P in
18736 [\\/$]* | ?:[\\/]* ) ;;
18737 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18738 esac
18739 _ACEOF
18740
18741 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18742 # If the template does not know about datarootdir, expand it.
18743 # FIXME: This hack should be removed a few years after 2.60.
18744 ac_datarootdir_hack=; ac_datarootdir_seen=
18745 ac_sed_dataroot='
18746 /datarootdir/ {
18747 p
18748 q
18749 }
18750 /@datadir@/p
18751 /@docdir@/p
18752 /@infodir@/p
18753 /@localedir@/p
18754 /@mandir@/p'
18755 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18756 *datarootdir*) ac_datarootdir_seen=yes;;
18757 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18759 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18760 _ACEOF
18761 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18762 ac_datarootdir_hack='
18763 s&@datadir@&$datadir&g
18764 s&@docdir@&$docdir&g
18765 s&@infodir@&$infodir&g
18766 s&@localedir@&$localedir&g
18767 s&@mandir@&$mandir&g
18768 s&\\\${datarootdir}&$datarootdir&g' ;;
18769 esac
18770 _ACEOF
18771
18772 # Neutralize VPATH when '$srcdir' = '.'.
18773 # Shell code in configure.ac might set extrasub.
18774 # FIXME: do we really want to maintain this feature?
18775 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18776 ac_sed_extra="$ac_vpsub
18777 $extrasub
18778 _ACEOF
18779 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18780 :t
18781 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18782 s|@configure_input@|$ac_sed_conf_input|;t t
18783 s&@top_builddir@&$ac_top_builddir_sub&;t t
18784 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18785 s&@srcdir@&$ac_srcdir&;t t
18786 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18787 s&@top_srcdir@&$ac_top_srcdir&;t t
18788 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18789 s&@builddir@&$ac_builddir&;t t
18790 s&@abs_builddir@&$ac_abs_builddir&;t t
18791 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18792 s&@INSTALL@&$ac_INSTALL&;t t
18793 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18794 $ac_datarootdir_hack
18795 "
18796 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18797 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18798
18799 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18800 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18801 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18802 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
18804 which seems to be undefined. Please make sure it is defined" >&5
18805 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
18806 which seems to be undefined. Please make sure it is defined" >&2;}
18807
18808 rm -f "$ac_tmp/stdin"
18809 case $ac_file in
18810 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18811 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18812 esac \
18813 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18814 ;;
18815 :H)
18816 #
18817 # CONFIG_HEADER
18818 #
18819 if test x"$ac_file" != x-; then
18820 {
18821 printf "%s\n" "/* $configure_input */" >&1 \
18822 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18823 } >"$ac_tmp/config.h" \
18824 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18825 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18827 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
18828 else
18829 rm -f "$ac_file"
18830 mv "$ac_tmp/config.h" "$ac_file" \
18831 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18832 fi
18833 else
18834 printf "%s\n" "/* $configure_input */" >&1 \
18835 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18836 || as_fn_error $? "could not create -" "$LINENO" 5
18837 fi
18838 # Compute "$ac_file"'s index in $config_headers.
18839 _am_arg="$ac_file"
18840 _am_stamp_count=1
18841 for _am_header in $config_headers :; do
18842 case $_am_header in
18843 $_am_arg | $_am_arg:* )
18844 break ;;
18845 * )
18846 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18847 esac
18848 done
18849 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18850 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18851 X"$_am_arg" : 'X\(//\)[^/]' \| \
18852 X"$_am_arg" : 'X\(//\)$' \| \
18853 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18854 printf "%s\n" X"$_am_arg" |
18855 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18856 s//\1/
18857 q
18858 }
18859 /^X\(\/\/\)[^/].*/{
18860 s//\1/
18861 q
18862 }
18863 /^X\(\/\/\)$/{
18864 s//\1/
18865 q
18866 }
18867 /^X\(\/\).*/{
18868 s//\1/
18869 q
18870 }
18871 s/.*/./; q'`/stamp-h$_am_stamp_count
18872 ;;
18873
18874 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18875 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
18876 ;;
18877 esac
18878
18879
18880 case $ac_file$ac_mode in
18881 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18882 # Older Autoconf quotes --file arguments for eval, but not when files
18883 # are listed without --file. Let's play safe and only enable the eval
18884 # if we detect the quoting.
18885 # TODO: see whether this extra hack can be removed once we start
18886 # requiring Autoconf 2.70 or later.
18887 case $CONFIG_FILES in #(
18888 *\'*) :
18889 eval set x "$CONFIG_FILES" ;; #(
18890 *) :
18891 set x $CONFIG_FILES ;; #(
18892 *) :
18893 ;;
18894 esac
18895 shift
18896 # Used to flag and report bootstrapping failures.
18897 am_rc=0
18898 for am_mf
18899 do
18900 # Strip MF so we end up with the name of the file.
18901 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
18902 # Check whether this is an Automake generated Makefile which includes
18903 # dependency-tracking related rules and includes.
18904 # Grep'ing the whole file directly is not great: AIX grep has a line
18905 # limit of 2048, but all sed's we know have understand at least 4000.
18906 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
18907 || continue
18908 am_dirpart=`$as_dirname -- "$am_mf" ||
18909 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18910 X"$am_mf" : 'X\(//\)[^/]' \| \
18911 X"$am_mf" : 'X\(//\)$' \| \
18912 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
18913 printf "%s\n" X"$am_mf" |
18914 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18915 s//\1/
18916 q
18917 }
18918 /^X\(\/\/\)[^/].*/{
18919 s//\1/
18920 q
18921 }
18922 /^X\(\/\/\)$/{
18923 s//\1/
18924 q
18925 }
18926 /^X\(\/\).*/{
18927 s//\1/
18928 q
18929 }
18930 s/.*/./; q'`
18931 am_filepart=`$as_basename -- "$am_mf" ||
18932 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
18933 X"$am_mf" : 'X\(//\)$' \| \
18934 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
18935 printf "%s\n" X/"$am_mf" |
18936 sed '/^.*\/\([^/][^/]*\)\/*$/{
18937 s//\1/
18938 q
18939 }
18940 /^X\/\(\/\/\)$/{
18941 s//\1/
18942 q
18943 }
18944 /^X\/\(\/\).*/{
18945 s//\1/
18946 q
18947 }
18948 s/.*/./; q'`
18949 { echo "$as_me:$LINENO: cd "$am_dirpart" \
18950 && sed -e '/# am--include-marker/d' "$am_filepart" \
18951 | $MAKE -f - am--depfiles" >&5
18952 (cd "$am_dirpart" \
18953 && sed -e '/# am--include-marker/d' "$am_filepart" \
18954 | $MAKE -f - am--depfiles) >&5 2>&5
18955 ac_status=$?
18956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18957 (exit $ac_status); } || am_rc=$?
18958 done
18959 if test $am_rc -ne 0; then
18960 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
18961 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
18962 as_fn_error $? "Something went wrong bootstrapping makefile fragments
18963 for automatic dependency tracking. If GNU make was not used, consider
18964 re-running the configure script with MAKE=\"gmake\" (or whatever is
18965 necessary). You can also try re-running configure with the
18966 '--disable-dependency-tracking' option to at least be able to build
18967 the package (albeit without support for automatic dependency tracking).
18968 See 'config.log' for more details" "$LINENO" 5; }
18969 fi
18970 { am_dirpart=; unset am_dirpart;}
18971 { am_filepart=; unset am_filepart;}
18972 { am_mf=; unset am_mf;}
18973 { am_rc=; unset am_rc;}
18974 rm -f conftest-deps.mk
18975 }
18976 ;;
18977 "libtool":C)
18978
18979 # See if we are running on zsh, and set the options that allow our
18980 # commands through without removal of \ escapes.
18981 if test -n "${ZSH_VERSION+set}"; then
18982 setopt NO_GLOB_SUBST
18983 fi
18984
18985 cfgfile=${ofile}T
18986 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18987 $RM "$cfgfile"
18988
18989 cat <<_LT_EOF >> "$cfgfile"
18990 #! $SHELL
18991 # Generated automatically by $as_me ($PACKAGE) $VERSION
18992 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18993
18994 # Provide generalized library-building support services.
18995 # Written by Gordon Matzigkeit, 1996
18996
18997 # Copyright (C) 2024 Free Software Foundation, Inc.
18998 # This is free software; see the source for copying conditions. There is NO
18999 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19000
19001 # GNU Libtool is free software; you can redistribute it and/or modify
19002 # it under the terms of the GNU General Public License as published by
19003 # the Free Software Foundation; either version 2 of the License, or
19004 # (at your option) any later version.
19005 #
19006 # As a special exception to the GNU General Public License, if you
19007 # distribute this file as part of a program or library that is built
19008 # using GNU Libtool, you may include this file under the same
19009 # distribution terms that you use for the rest of that program.
19010 #
19011 # GNU Libtool is distributed in the hope that it will be useful, but
19012 # WITHOUT ANY WARRANTY; without even the implied warranty of
19013 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19014 # GNU General Public License for more details.
19015 #
19016 # You should have received a copy of the GNU General Public License
19017 # along with this program. If not, see <http://www.gnu.org/licenses/>.
19018
19019
19020 # The names of the tagged configurations supported by this script.
19021 available_tags=''
19022
19023 # Configured defaults for sys_lib_dlsearch_path munging.
19024 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
19025
19026 # ### BEGIN LIBTOOL CONFIG
19027
19028 # Which release of libtool.m4 was used?
19029 macro_version=$macro_version
19030 macro_revision=$macro_revision
19031
19032 # Assembler program.
19033 AS=$lt_AS
19034
19035 # DLL creation program.
19036 DLLTOOL=$lt_DLLTOOL
19037
19038 # Object dumper program.
19039 OBJDUMP=$lt_OBJDUMP
19040
19041 # Whether or not to build shared libraries.
19042 build_libtool_libs=$enable_shared
19043
19044 # Whether or not to build static libraries.
19045 build_old_libs=$enable_static
19046
19047 # What type of objects to build.
19048 pic_mode=$pic_mode
19049
19050 # Whether or not to optimize for fast installation.
19051 fast_install=$enable_fast_install
19052
19053 # Shared archive member basename,for filename based shared library versioning on AIX.
19054 shared_archive_member_spec=$shared_archive_member_spec
19055
19056 # Shell to use when invoking shell scripts.
19057 SHELL=$lt_SHELL
19058
19059 # An echo program that protects backslashes.
19060 ECHO=$lt_ECHO
19061
19062 # The PATH separator for the build system.
19063 PATH_SEPARATOR=$lt_PATH_SEPARATOR
19064
19065 # The host system.
19066 host_alias=$host_alias
19067 host=$host
19068 host_os=$host_os
19069
19070 # The build system.
19071 build_alias=$build_alias
19072 build=$build
19073 build_os=$build_os
19074
19075 # A sed program that does not truncate output.
19076 SED=$lt_SED
19077
19078 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19079 Xsed="\$SED -e 1s/^X//"
19080
19081 # A grep program that handles long lines.
19082 GREP=$lt_GREP
19083
19084 # An ERE matcher.
19085 EGREP=$lt_EGREP
19086
19087 # A literal string matcher.
19088 FGREP=$lt_FGREP
19089
19090 # A BSD- or MS-compatible name lister.
19091 NM=$lt_NM
19092
19093 # Whether we need soft or hard links.
19094 LN_S=$lt_LN_S
19095
19096 # What is the maximum length of a command?
19097 max_cmd_len=$max_cmd_len
19098
19099 # Object file suffix (normally "o").
19100 objext=$ac_objext
19101
19102 # Executable file suffix (normally "").
19103 exeext=$exeext
19104
19105 # whether the shell understands "unset".
19106 lt_unset=$lt_unset
19107
19108 # turn spaces into newlines.
19109 SP2NL=$lt_lt_SP2NL
19110
19111 # turn newlines into spaces.
19112 NL2SP=$lt_lt_NL2SP
19113
19114 # convert \$build file names to \$host format.
19115 to_host_file_cmd=$lt_cv_to_host_file_cmd
19116
19117 # convert \$build files to toolchain format.
19118 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19119
19120 # A file(cmd) program that detects file types.
19121 FILECMD=$lt_FILECMD
19122
19123 # Method to check whether dependent libraries are shared objects.
19124 deplibs_check_method=$lt_deplibs_check_method
19125
19126 # Command to use when deplibs_check_method = "file_magic".
19127 file_magic_cmd=$lt_file_magic_cmd
19128
19129 # How to find potential files when deplibs_check_method = "file_magic".
19130 file_magic_glob=$lt_file_magic_glob
19131
19132 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19133 want_nocaseglob=$lt_want_nocaseglob
19134
19135 # Command to associate shared and link libraries.
19136 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19137
19138 # The archiver.
19139 AR=$lt_AR
19140
19141 # Flags to create an archive (by configure).
19142 lt_ar_flags=$lt_ar_flags
19143
19144 # Flags to create an archive.
19145 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
19146
19147 # How to feed a file listing to the archiver.
19148 archiver_list_spec=$lt_archiver_list_spec
19149
19150 # A symbol stripping program.
19151 STRIP=$lt_STRIP
19152
19153 # Commands used to install an old-style archive.
19154 RANLIB=$lt_RANLIB
19155 old_postinstall_cmds=$lt_old_postinstall_cmds
19156 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19157
19158 # Whether to use a lock for old archive extraction.
19159 lock_old_archive_extraction=$lock_old_archive_extraction
19160
19161 # A C compiler.
19162 LTCC=$lt_CC
19163
19164 # LTCC compiler flags.
19165 LTCFLAGS=$lt_CFLAGS
19166
19167 # Take the output of nm and produce a listing of raw symbols and C names.
19168 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19169
19170 # Transform the output of nm in a proper C declaration.
19171 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19172
19173 # Transform the output of nm into a list of symbols to manually relocate.
19174 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
19175
19176 # Transform the output of nm in a C name address pair.
19177 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19178
19179 # Transform the output of nm in a C name address pair when lib prefix is needed.
19180 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19181
19182 # The name lister interface.
19183 nm_interface=$lt_lt_cv_nm_interface
19184
19185 # Specify filename containing input files for \$NM.
19186 nm_file_list_spec=$lt_nm_file_list_spec
19187
19188 # The root where to search for dependent libraries,and where our libraries should be installed.
19189 lt_sysroot=$lt_sysroot
19190
19191 # Command to truncate a binary pipe.
19192 lt_truncate_bin=$lt_lt_cv_truncate_bin
19193
19194 # The name of the directory that contains temporary libtool files.
19195 objdir=$objdir
19196
19197 # Used to examine libraries when file_magic_cmd begins with "file".
19198 MAGIC_CMD=$MAGIC_CMD
19199
19200 # Must we lock files when doing compilation?
19201 need_locks=$lt_need_locks
19202
19203 # Manifest tool.
19204 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19205
19206 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19207 DSYMUTIL=$lt_DSYMUTIL
19208
19209 # Tool to change global to local symbols on Mac OS X.
19210 NMEDIT=$lt_NMEDIT
19211
19212 # Tool to manipulate fat objects and archives on Mac OS X.
19213 LIPO=$lt_LIPO
19214
19215 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19216 OTOOL=$lt_OTOOL
19217
19218 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19219 OTOOL64=$lt_OTOOL64
19220
19221 # Old archive suffix (normally "a").
19222 libext=$libext
19223
19224 # Shared library suffix (normally ".so").
19225 shrext_cmds=$lt_shrext_cmds
19226
19227 # The commands to extract the exported symbol list from a shared archive.
19228 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19229
19230 # Variables whose values should be saved in libtool wrapper scripts and
19231 # restored at link time.
19232 variables_saved_for_relink=$lt_variables_saved_for_relink
19233
19234 # Do we need the "lib" prefix for modules?
19235 need_lib_prefix=$need_lib_prefix
19236
19237 # Do we need a version for libraries?
19238 need_version=$need_version
19239
19240 # Library versioning type.
19241 version_type=$version_type
19242
19243 # Shared library runtime path variable.
19244 runpath_var=$runpath_var
19245
19246 # Shared library path variable.
19247 shlibpath_var=$shlibpath_var
19248
19249 # Is shlibpath searched before the hard-coded library search path?
19250 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19251
19252 # Format of library name prefix.
19253 libname_spec=$lt_libname_spec
19254
19255 # List of archive names. First name is the real one, the rest are links.
19256 # The last name is the one that the linker finds with -lNAME
19257 library_names_spec=$lt_library_names_spec
19258
19259 # The coded name of the library, if different from the real name.
19260 soname_spec=$lt_soname_spec
19261
19262 # Permission mode override for installation of shared libraries.
19263 install_override_mode=$lt_install_override_mode
19264
19265 # Command to use after installation of a shared archive.
19266 postinstall_cmds=$lt_postinstall_cmds
19267
19268 # Command to use after uninstallation of a shared archive.
19269 postuninstall_cmds=$lt_postuninstall_cmds
19270
19271 # Commands used to finish a libtool library installation in a directory.
19272 finish_cmds=$lt_finish_cmds
19273
19274 # As "finish_cmds", except a single script fragment to be evaled but
19275 # not shown.
19276 finish_eval=$lt_finish_eval
19277
19278 # Whether we should hardcode library paths into libraries.
19279 hardcode_into_libs=$hardcode_into_libs
19280
19281 # Compile-time system search path for libraries.
19282 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19283
19284 # Detected run-time system search path for libraries.
19285 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
19286
19287 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
19288 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
19289
19290 # Whether dlopen is supported.
19291 dlopen_support=$enable_dlopen
19292
19293 # Whether dlopen of programs is supported.
19294 dlopen_self=$enable_dlopen_self
19295
19296 # Whether dlopen of statically linked programs is supported.
19297 dlopen_self_static=$enable_dlopen_self_static
19298
19299 # Commands to strip libraries.
19300 old_striplib=$lt_old_striplib
19301 striplib=$lt_striplib
19302
19303
19304 # The linker used to build libraries.
19305 LD=$lt_LD
19306
19307 # How to create reloadable object files.
19308 reload_flag=$lt_reload_flag
19309 reload_cmds=$lt_reload_cmds
19310
19311 # Commands used to build an old-style archive.
19312 old_archive_cmds=$lt_old_archive_cmds
19313
19314 # A language specific compiler.
19315 CC=$lt_compiler
19316
19317 # Is the compiler the GNU compiler?
19318 with_gcc=$GCC
19319
19320 # Compiler flag to turn off builtin functions.
19321 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19322
19323 # Additional compiler flags for building library objects.
19324 pic_flag=$lt_lt_prog_compiler_pic
19325
19326 # How to pass a linker flag through the compiler.
19327 wl=$lt_lt_prog_compiler_wl
19328
19329 # Compiler flag to prevent dynamic linking.
19330 link_static_flag=$lt_lt_prog_compiler_static
19331
19332 # Does compiler simultaneously support -c and -o options?
19333 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19334
19335 # Whether or not to add -lc for building shared libraries.
19336 build_libtool_need_lc=$archive_cmds_need_lc
19337
19338 # Whether or not to disallow shared libs when runtime libs are static.
19339 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19340
19341 # Compiler flag to allow reflexive dlopens.
19342 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19343
19344 # Compiler flag to generate shared objects directly from archives.
19345 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19346
19347 # Whether the compiler copes with passing no objects directly.
19348 compiler_needs_object=$lt_compiler_needs_object
19349
19350 # Create an old-style archive from a shared archive.
19351 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19352
19353 # Create a temporary old-style archive to link instead of a shared archive.
19354 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19355
19356 # Commands used to build a shared archive.
19357 archive_cmds=$lt_archive_cmds
19358 archive_expsym_cmds=$lt_archive_expsym_cmds
19359
19360 # Commands used to build a loadable module if different from building
19361 # a shared archive.
19362 module_cmds=$lt_module_cmds
19363 module_expsym_cmds=$lt_module_expsym_cmds
19364
19365 # Whether we are building with GNU ld or not.
19366 with_gnu_ld=$lt_with_gnu_ld
19367
19368 # Flag that allows shared libraries with undefined symbols to be built.
19369 allow_undefined_flag=$lt_allow_undefined_flag
19370
19371 # Flag that enforces no undefined symbols.
19372 no_undefined_flag=$lt_no_undefined_flag
19373
19374 # Flag to hardcode \$libdir into a binary during linking.
19375 # This must work even if \$libdir does not exist
19376 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19377
19378 # Whether we need a single "-rpath" flag with a separated argument.
19379 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19380
19381 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19382 # DIR into the resulting binary.
19383 hardcode_direct=$hardcode_direct
19384
19385 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19386 # DIR into the resulting binary and the resulting library dependency is
19387 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
19388 # library is relocated.
19389 hardcode_direct_absolute=$hardcode_direct_absolute
19390
19391 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19392 # into the resulting binary.
19393 hardcode_minus_L=$hardcode_minus_L
19394
19395 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19396 # into the resulting binary.
19397 hardcode_shlibpath_var=$hardcode_shlibpath_var
19398
19399 # Set to "yes" if building a shared library automatically hardcodes DIR
19400 # into the library and all subsequent libraries and executables linked
19401 # against it.
19402 hardcode_automatic=$hardcode_automatic
19403
19404 # Set to yes if linker adds runtime paths of dependent libraries
19405 # to runtime path list.
19406 inherit_rpath=$inherit_rpath
19407
19408 # Whether libtool must link a program against all its dependency libraries.
19409 link_all_deplibs=$link_all_deplibs
19410
19411 # Set to "yes" if exported symbols are required.
19412 always_export_symbols=$always_export_symbols
19413
19414 # The commands to list exported symbols.
19415 export_symbols_cmds=$lt_export_symbols_cmds
19416
19417 # Symbols that should not be listed in the preloaded symbols.
19418 exclude_expsyms=$lt_exclude_expsyms
19419
19420 # Symbols that must always be exported.
19421 include_expsyms=$lt_include_expsyms
19422
19423 # Commands necessary for linking programs (against libraries) with templates.
19424 prelink_cmds=$lt_prelink_cmds
19425
19426 # Commands necessary for finishing linking programs.
19427 postlink_cmds=$lt_postlink_cmds
19428
19429 # Specify filename containing input files.
19430 file_list_spec=$lt_file_list_spec
19431
19432 # How to hardcode a shared library path into an executable.
19433 hardcode_action=$hardcode_action
19434
19435 # ### END LIBTOOL CONFIG
19436
19437 _LT_EOF
19438
19439 cat <<'_LT_EOF' >> "$cfgfile"
19440
19441 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
19442
19443 # func_munge_path_list VARIABLE PATH
19444 # -----------------------------------
19445 # VARIABLE is name of variable containing _space_ separated list of
19446 # directories to be munged by the contents of PATH, which is string
19447 # having a format:
19448 # "DIR[:DIR]:"
19449 # string "DIR[ DIR]" will be prepended to VARIABLE
19450 # ":DIR[:DIR]"
19451 # string "DIR[ DIR]" will be appended to VARIABLE
19452 # "DIRP[:DIRP]::[DIRA:]DIRA"
19453 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
19454 # "DIRA[ DIRA]" will be appended to VARIABLE
19455 # "DIR[:DIR]"
19456 # VARIABLE will be replaced by "DIR[ DIR]"
19457 func_munge_path_list ()
19458 {
19459 case x$2 in
19460 x)
19461 ;;
19462 *:)
19463 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
19464 ;;
19465 x:*)
19466 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
19467 ;;
19468 *::*)
19469 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
19470 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
19471 ;;
19472 *)
19473 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
19474 ;;
19475 esac
19476 }
19477
19478
19479 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
19480 func_cc_basename ()
19481 {
19482 for cc_temp in $*""; do
19483 case $cc_temp in
19484 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19485 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19486 \-*) ;;
19487 *) break;;
19488 esac
19489 done
19490 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19491 }
19492
19493
19494 # ### END FUNCTIONS SHARED WITH CONFIGURE
19495
19496 _LT_EOF
19497
19498 case $host_os in
19499 aix3*)
19500 cat <<\_LT_EOF >> "$cfgfile"
19501 # AIX sometimes has problems with the GCC collect2 program. For some
19502 # reason, if we set the COLLECT_NAMES environment variable, the problems
19503 # vanish in a puff of smoke.
19504 if test set != "${COLLECT_NAMES+set}"; then
19505 COLLECT_NAMES=
19506 export COLLECT_NAMES
19507 fi
19508 _LT_EOF
19509 ;;
19510 esac
19511
19512
19513
19514 ltmain=$ac_aux_dir/ltmain.sh
19515
19516
19517 # We use sed instead of cat because bash on DJGPP gets confused if
19518 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19519 # text mode, it properly converts lines to CR/LF. This bash problem
19520 # is reportedly fixed, but why not run on old versions too?
19521 $SED '$q' "$ltmain" >> "$cfgfile" \
19522 || (rm -f "$cfgfile"; exit 1)
19523
19524 mv -f "$cfgfile" "$ofile" ||
19525 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19526 chmod +x "$ofile"
19527
19528 ;;
19529
19530 esac
19531 done # for ac_tag
19532
19533
19534 as_fn_exit 0
19535 _ACEOF
19536 ac_clean_files=$ac_clean_files_save
19537
19538 test $ac_write_fail = 0 ||
19539 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19540
19541
19542 # configure is writing to config.log, and then calls config.status.
19543 # config.status does its own redirection, appending to config.log.
19544 # Unfortunately, on DOS this fails, as config.log is still kept open
19545 # by configure, so config.status won't be able to write to it; its
19546 # output is simply discarded. So we exec the FD to /dev/null,
19547 # effectively closing config.log, so it can be properly (re)opened and
19548 # appended to by config.status. When coming back to configure, we
19549 # need to make the FD available again.
19550 if test "$no_create" != yes; then
19551 ac_cs_success=:
19552 ac_config_status_args=
19553 test "$silent" = yes &&
19554 ac_config_status_args="$ac_config_status_args --quiet"
19555 exec 5>/dev/null
19556 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19557 exec 5>>config.log
19558 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19559 # would make configure fail if this is the last instruction.
19560 $ac_cs_success || as_fn_exit 1
19561 fi
19562 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19564 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19565 fi
19566
19567