Debian Codegraph @

texk/mendexk/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 mendex (TeX Live) 3.10.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
7 # Inc.
8 #
9 #
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## -------------------- ##
13 ## M4sh Initialization. ##
14 ## -------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
19 then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else case e in #(
27 e) case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac ;;
33 esac
34 fi
35
36
37
38 # Reset variables that may have inherited troublesome values from
39 # the environment.
40
41 # IFS needs to be set, to space, tab, and newline, in precisely that order.
42 # (If _AS_PATH_WALK were called with IFS unset, it would have the
43 # side effect of setting IFS to empty, thus disabling word splitting.)
44 # Quoting is to prevent editors from complaining about space-tab.
45 as_nl='
46 '
47 export as_nl
48 IFS=" "" $as_nl"
49
50 PS1='$ '
51 PS2='> '
52 PS4='+ '
53
54 # Ensure predictable behavior from utilities with locale-dependent output.
55 LC_ALL=C
56 export LC_ALL
57 LANGUAGE=C
58 export LANGUAGE
59
60 # We cannot yet rely on "unset" to work, but we need these variables
61 # to be unset--not just set to an empty or harmless value--now, to
62 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
63 # also avoids known problems related to "unset" and subshell syntax
64 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
65 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
66 do eval test \${$as_var+y} \
67 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
68 done
69
70 # Ensure that fds 0, 1, and 2 are open.
71 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
72 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
73 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
74
75 # The user is always right.
76 if ${PATH_SEPARATOR+false} :; then
77 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
81 }
82 fi
83
84
85 # Find who we are. Look in the path if we contain no directory separator.
86 as_myself=
87 case $0 in #((
88 *[\\/]* ) as_myself=$0 ;;
89 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
90 for as_dir in $PATH
91 do
92 IFS=$as_save_IFS
93 case $as_dir in #(((
94 '') as_dir=./ ;;
95 */) ;;
96 *) as_dir=$as_dir/ ;;
97 esac
98 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as 'sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114
115 # Use a proper internal environment variable to ensure we don't fall
116 # into an infinite loop, continuously re-executing ourselves.
117 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
118 _as_can_reexec=no; export _as_can_reexec;
119 # We cannot yet assume a decent shell, so we have to provide a
120 # neutralization value for shells without unset; and this also
121 # works around shells that cannot unset nonexistent variables.
122 # Preserve -v and -x to the replacement shell.
123 BASH_ENV=/dev/null
124 ENV=/dev/null
125 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
126 case $- in # ((((
127 *v*x* | *x*v* ) as_opts=-vx ;;
128 *v* ) as_opts=-v ;;
129 *x* ) as_opts=-x ;;
130 * ) as_opts= ;;
131 esac
132 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
133 # Admittedly, this is quite paranoid, since all the known shells bail
134 # out after a failed 'exec'.
135 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
136 exit 255
137 fi
138 # We don't want this to propagate to other subprocesses.
139 { _as_can_reexec=; unset _as_can_reexec;}
140 if test "x$CONFIG_SHELL" = x; then
141 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
142 then :
143 emulate sh
144 NULLCMD=:
145 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
146 # is contrary to our usage. Disable this feature.
147 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 setopt NO_GLOB_SUBST
149 else case e in #(
150 e) case \`(set -o) 2>/dev/null\` in #(
151 *posix*) :
152 set -o posix ;; #(
153 *) :
154 ;;
155 esac ;;
156 esac
157 fi
158 "
159 as_required="as_fn_return () { (exit \$1); }
160 as_fn_success () { as_fn_return 0; }
161 as_fn_failure () { as_fn_return 1; }
162 as_fn_ret_success () { return 0; }
163 as_fn_ret_failure () { return 1; }
164
165 exitcode=0
166 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
167 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
168 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
169 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
170 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
171 then :
172
173 else case e in #(
174 e) exitcode=1; echo positional parameters were not saved. ;;
175 esac
176 fi
177 test x\$exitcode = x0 || exit 1
178 blah=\$(echo \$(echo blah))
179 test x\"\$blah\" = xblah || exit 1
180 test -x / || exit 1"
181 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
182 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
183 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
184 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
185
186 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
187 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
188 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190 PATH=/empty FPATH=/empty; export PATH FPATH
191 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
192 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
193 test \$(( 1 + 1 )) = 2 || exit 1"
194 if (eval "$as_required") 2>/dev/null
195 then :
196 as_have_required=yes
197 else case e in #(
198 e) as_have_required=no ;;
199 esac
200 fi
201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202 then :
203
204 else case e in #(
205 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206 as_found=false
207 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208 do
209 IFS=$as_save_IFS
210 case $as_dir in #(((
211 '') as_dir=./ ;;
212 */) ;;
213 *) as_dir=$as_dir/ ;;
214 esac
215 as_found=:
216 case $as_dir in #(
217 /*)
218 for as_base in sh bash ksh sh5; do
219 # Try only shells that exist, to save several forks.
220 as_shell=$as_dir$as_base
221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223 then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226 then :
227 break 2
228 fi
229 fi
230 done;;
231 esac
232 as_found=false
233 done
234 IFS=$as_save_IFS
235 if $as_found
236 then :
237
238 else case e in #(
239 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241 then :
242 CONFIG_SHELL=$SHELL as_have_required=yes
243 fi ;;
244 esac
245 fi
246
247
248 if test "x$CONFIG_SHELL" != x
249 then :
250 export CONFIG_SHELL
251 # We cannot yet assume a decent shell, so we have to provide a
252 # neutralization value for shells without unset; and this also
253 # works around shells that cannot unset nonexistent variables.
254 # Preserve -v and -x to the replacement shell.
255 BASH_ENV=/dev/null
256 ENV=/dev/null
257 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 case $- in # ((((
259 *v*x* | *x*v* ) as_opts=-vx ;;
260 *v* ) as_opts=-v ;;
261 *x* ) as_opts=-x ;;
262 * ) as_opts= ;;
263 esac
264 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
265 # Admittedly, this is quite paranoid, since all the known shells bail
266 # out after a failed 'exec'.
267 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
268 exit 255
269 fi
270
271 if test x$as_have_required = xno
272 then :
273 printf "%s\n" "$0: This script requires a shell more modern than all"
274 printf "%s\n" "$0: the shells that I found on your system."
275 if test ${ZSH_VERSION+y} ; then
276 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
277 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
278 else
279 printf "%s\n" "$0: Please tell [email protected] about your system,
280 $0: including any error possibly output before this
281 $0: message. Then install a modern shell, or manually run
282 $0: the script under such a shell if you do have one."
283 fi
284 exit 1
285 fi ;;
286 esac
287 fi
288 fi
289 SHELL=${CONFIG_SHELL-/bin/sh}
290 export SHELL
291 # Unset more variables known to interfere with behavior of common tools.
292 CLICOLOR_FORCE= GREP_OPTIONS=
293 unset CLICOLOR_FORCE GREP_OPTIONS
294
295 ## --------------------- ##
296 ## M4sh Shell Functions. ##
297 ## --------------------- ##
298 # as_fn_unset VAR
299 # ---------------
300 # Portably unset VAR.
301 as_fn_unset ()
302 {
303 { eval $1=; unset $1;}
304 }
305 as_unset=as_fn_unset
306
307
308 # as_fn_set_status STATUS
309 # -----------------------
310 # Set $? to STATUS, without forking.
311 as_fn_set_status ()
312 {
313 return $1
314 } # as_fn_set_status
315
316 # as_fn_exit STATUS
317 # -----------------
318 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
319 as_fn_exit ()
320 {
321 set +e
322 as_fn_set_status $1
323 exit $1
324 } # as_fn_exit
325
326 # as_fn_mkdir_p
327 # -------------
328 # Create "$as_dir" as a directory, including parents if necessary.
329 as_fn_mkdir_p ()
330 {
331
332 case $as_dir in #(
333 -*) as_dir=./$as_dir;;
334 esac
335 test -d "$as_dir" || eval $as_mkdir_p || {
336 as_dirs=
337 while :; do
338 case $as_dir in #(
339 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
340 *) as_qdir=$as_dir;;
341 esac
342 as_dirs="'$as_qdir' $as_dirs"
343 as_dir=`$as_dirname -- "$as_dir" ||
344 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
345 X"$as_dir" : 'X\(//\)[^/]' \| \
346 X"$as_dir" : 'X\(//\)$' \| \
347 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
348 printf "%s\n" X"$as_dir" |
349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
350 s//\1/
351 q
352 }
353 /^X\(\/\/\)[^/].*/{
354 s//\1/
355 q
356 }
357 /^X\(\/\/\)$/{
358 s//\1/
359 q
360 }
361 /^X\(\/\).*/{
362 s//\1/
363 q
364 }
365 s/.*/./; q'`
366 test -d "$as_dir" && break
367 done
368 test -z "$as_dirs" || eval "mkdir $as_dirs"
369 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
370
371
372 } # as_fn_mkdir_p
373
374 # as_fn_executable_p FILE
375 # -----------------------
376 # Test if FILE is an executable regular file.
377 as_fn_executable_p ()
378 {
379 test -f "$1" && test -x "$1"
380 } # as_fn_executable_p
381 # as_fn_append VAR VALUE
382 # ----------------------
383 # Append the text in VALUE to the end of the definition contained in VAR. Take
384 # advantage of any shell optimizations that allow amortized linear growth over
385 # repeated appends, instead of the typical quadratic growth present in naive
386 # implementations.
387 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
388 then :
389 eval 'as_fn_append ()
390 {
391 eval $1+=\$2
392 }'
393 else case e in #(
394 e) as_fn_append ()
395 {
396 eval $1=\$$1\$2
397 } ;;
398 esac
399 fi # as_fn_append
400
401 # as_fn_arith ARG...
402 # ------------------
403 # Perform arithmetic evaluation on the ARGs, and store the result in the
404 # global $as_val. Take advantage of shells that can avoid forks. The arguments
405 # must be portable across $(()) and expr.
406 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
407 then :
408 eval 'as_fn_arith ()
409 {
410 as_val=$(( $* ))
411 }'
412 else case e in #(
413 e) as_fn_arith ()
414 {
415 as_val=`expr "$@" || test $? -eq 1`
416 } ;;
417 esac
418 fi # as_fn_arith
419
420
421 # as_fn_error STATUS ERROR [LINENO LOG_FD]
422 # ----------------------------------------
423 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
424 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
425 # script with STATUS, using 1 if that was 0.
426 as_fn_error ()
427 {
428 as_status=$1; test $as_status -eq 0 && as_status=1
429 if test "$4"; then
430 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
431 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
432 fi
433 printf "%s\n" "$as_me: error: $2" >&2
434 as_fn_exit $as_status
435 } # as_fn_error
436
437 if expr a : '\(a\)' >/dev/null 2>&1 &&
438 test "X`expr 00001 : '.*\(...\)'`" = X001; then
439 as_expr=expr
440 else
441 as_expr=false
442 fi
443
444 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
445 as_basename=basename
446 else
447 as_basename=false
448 fi
449
450 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
451 as_dirname=dirname
452 else
453 as_dirname=false
454 fi
455
456 as_me=`$as_basename -- "$0" ||
457 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
458 X"$0" : 'X\(//\)$' \| \
459 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
460 printf "%s\n" X/"$0" |
461 sed '/^.*\/\([^/][^/]*\)\/*$/{
462 s//\1/
463 q
464 }
465 /^X\/\(\/\/\)$/{
466 s//\1/
467 q
468 }
469 /^X\/\(\/\).*/{
470 s//\1/
471 q
472 }
473 s/.*/./; q'`
474
475 # Avoid depending upon Character Ranges.
476 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
477 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
478 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
479 as_cr_digits='0123456789'
480 as_cr_alnum=$as_cr_Letters$as_cr_digits
481
482
483 as_lineno_1=$LINENO as_lineno_1a=$LINENO
484 as_lineno_2=$LINENO as_lineno_2a=$LINENO
485 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
486 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
487 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
488 sed -n '
489 p
490 /[$]LINENO/=
491 ' <$as_myself |
492 sed '
493 t clear
494 :clear
495 s/[$]LINENO.*/&-/
496 t lineno
497 b
498 :lineno
499 N
500 :loop
501 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
502 t loop
503 s/-\n.*//
504 ' >$as_me.lineno &&
505 chmod +x "$as_me.lineno" ||
506 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
507
508 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
509 # already done that, so ensure we don't try to do so again and fall
510 # in an infinite loop. This has already happened in practice.
511 _as_can_reexec=no; export _as_can_reexec
512 # Don't try to exec as it changes $[0], causing all sort of problems
513 # (the dirname of $[0] is not the place where we might find the
514 # original and so on. Autoconf is especially sensitive to this).
515 . "./$as_me.lineno"
516 # Exit status is that of the last command.
517 exit
518 }
519
520
521 # Determine whether it's possible to make 'echo' print without a newline.
522 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
523 # for compatibility with existing Makefiles.
524 ECHO_C= ECHO_N= ECHO_T=
525 case `echo -n x` in #(((((
526 -n*)
527 case `echo 'xy\c'` in
528 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
529 xy) ECHO_C='\c';;
530 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
531 ECHO_T=' ';;
532 esac;;
533 *)
534 ECHO_N='-n';;
535 esac
536
537 # For backward compatibility with old third-party macros, we provide
538 # the shell variables $as_echo and $as_echo_n. New code should use
539 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
540 as_echo='printf %s\n'
541 as_echo_n='printf %s'
542
543 rm -f conf$$ conf$$.exe conf$$.file
544 if test -d conf$$.dir; then
545 rm -f conf$$.dir/conf$$.file
546 else
547 rm -f conf$$.dir
548 mkdir conf$$.dir 2>/dev/null
549 fi
550 if (echo >conf$$.file) 2>/dev/null; then
551 if ln -s conf$$.file conf$$ 2>/dev/null; then
552 as_ln_s='ln -s'
553 # ... but there are two gotchas:
554 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
555 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
556 # In both cases, we have to default to 'cp -pR'.
557 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
558 as_ln_s='cp -pR'
559 elif ln conf$$.file conf$$ 2>/dev/null; then
560 as_ln_s=ln
561 else
562 as_ln_s='cp -pR'
563 fi
564 else
565 as_ln_s='cp -pR'
566 fi
567 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
568 rmdir conf$$.dir 2>/dev/null
569
570 if mkdir -p . 2>/dev/null; then
571 as_mkdir_p='mkdir -p "$as_dir"'
572 else
573 test -d ./-p && rmdir ./-p
574 as_mkdir_p=false
575 fi
576
577 as_test_x='test -x'
578 as_executable_p=as_fn_executable_p
579
580 # Sed expression to map a string onto a valid CPP name.
581 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
582 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
583
584 # Sed expression to map a string onto a valid variable name.
585 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
586 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
587
588 SHELL=${CONFIG_SHELL-/bin/sh}
589
590
591 test -n "$DJDIR" || exec 7<&0 </dev/null
592 exec 6>&1
593
594 # Name of the host.
595 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
596 # so uname gets run too.
597 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
598
599 #
600 # Initializations.
601 #
602 ac_default_prefix=/usr/local
603 ac_clean_files=
604 ac_config_libobj_dir=.
605 LIBOBJS=
606 cross_compiling=no
607 subdirs=
608 MFLAGS=
609 MAKEFLAGS=
610
611 # Identity of this package.
612 PACKAGE_NAME='mendex (TeX Live)'
613 PACKAGE_TARNAME='mendex--tex-live-'
614 PACKAGE_VERSION='3.10'
615 PACKAGE_STRING='mendex (TeX Live) 3.10'
616 PACKAGE_BUGREPORT=''
617 PACKAGE_URL=''
618
619 ac_unique_file="main.c"
620 # Factoring default headers for most tests.
621 ac_includes_default="\
622 #include <stddef.h>
623 #ifdef HAVE_STDIO_H
624 # include <stdio.h>
625 #endif
626 #ifdef HAVE_STDLIB_H
627 # include <stdlib.h>
628 #endif
629 #ifdef HAVE_STRING_H
630 # include <string.h>
631 #endif
632 #ifdef HAVE_INTTYPES_H
633 # include <inttypes.h>
634 #endif
635 #ifdef HAVE_STDINT_H
636 # include <stdint.h>
637 #endif
638 #ifdef HAVE_STRINGS_H
639 # include <strings.h>
640 #endif
641 #ifdef HAVE_SYS_TYPES_H
642 # include <sys/types.h>
643 #endif
644 #ifdef HAVE_SYS_STAT_H
645 # include <sys/stat.h>
646 #endif
647 #ifdef HAVE_UNISTD_H
648 # include <unistd.h>
649 #endif"
650
651 ac_header_c_list=
652 enable_year2038=no
653 ac_subst_vars='am__EXEEXT_FALSE
654 am__EXEEXT_TRUE
655 LTLIBOBJS
656 LIBOBJS
657 PTEXENC_RULE
658 PTEXENC_DEPEND
659 PTEXENC_LIBS
660 PTEXENC_INCLUDES
661 KPATHSEA_RULE
662 KPATHSEA_DEPEND
663 KPATHSEA_LIBS
664 KPATHSEA_INCLUDES
665 PKG_CONFIG
666 LT_SYS_LIBRARY_PATH
667 OTOOL64
668 OTOOL
669 LIPO
670 NMEDIT
671 DSYMUTIL
672 MANIFEST_TOOL
673 RANLIB
674 FILECMD
675 LN_S
676 NM
677 ac_ct_DUMPBIN
678 DUMPBIN
679 LD
680 FGREP
681 EGREP
682 GREP
683 SED
684 host_os
685 host_vendor
686 host_cpu
687 host
688 build_os
689 build_vendor
690 build_cpu
691 build
692 LIBTOOL
693 OBJDUMP
694 DLLTOOL
695 AS
696 ac_ct_AR
697 AR
698 WARNING_CFLAGS
699 am__fastdepCC_FALSE
700 am__fastdepCC_TRUE
701 CCDEPMODE
702 am__nodep
703 AMDEPBACKSLASH
704 AMDEP_FALSE
705 AMDEP_TRUE
706 am__include
707 DEPDIR
708 OBJEXT
709 EXEEXT
710 ac_ct_CC
711 CPPFLAGS
712 LDFLAGS
713 CFLAGS
714 CC
715 MAINT
716 MAINTAINER_MODE_FALSE
717 MAINTAINER_MODE_TRUE
718 am__xargs_n
719 am__rm_f_notfound
720 AM_BACKSLASH
721 AM_DEFAULT_VERBOSITY
722 AM_DEFAULT_V
723 AM_V
724 CSCOPE
725 ETAGS
726 CTAGS
727 am__untar
728 am__tar
729 AMTAR
730 am__leading_dot
731 SET_MAKE
732 AWK
733 mkdir_p
734 MKDIR_P
735 INSTALL_STRIP_PROGRAM
736 STRIP
737 install_sh
738 MAKEINFO
739 AUTOHEADER
740 AUTOMAKE
741 AUTOCONF
742 ACLOCAL
743 VERSION
744 PACKAGE
745 CYGPATH_W
746 am__isrc
747 INSTALL_DATA
748 INSTALL_SCRIPT
749 INSTALL_PROGRAM
750 target_alias
751 host_alias
752 build_alias
753 LIBS
754 ECHO_T
755 ECHO_N
756 ECHO_C
757 DEFS
758 mandir
759 localedir
760 libdir
761 psdir
762 pdfdir
763 dvidir
764 htmldir
765 infodir
766 docdir
767 oldincludedir
768 includedir
769 runstatedir
770 localstatedir
771 sharedstatedir
772 sysconfdir
773 datadir
774 datarootdir
775 libexecdir
776 sbindir
777 bindir
778 program_transform_name
779 prefix
780 exec_prefix
781 PACKAGE_URL
782 PACKAGE_BUGREPORT
783 PACKAGE_STRING
784 PACKAGE_VERSION
785 PACKAGE_TARNAME
786 PACKAGE_NAME
787 PATH_SEPARATOR
788 SHELL
789 am__quote'
790 ac_subst_files=''
791 ac_user_opts='
792 enable_option_checking
793 enable_silent_rules
794 enable_maintainer_mode
795 enable_dependency_tracking
796 enable_compiler_warnings
797 enable_shared
798 enable_static
799 enable_pic
800 with_pic
801 enable_fast_install
802 enable_aix_soname
803 with_aix_soname
804 with_gnu_ld
805 with_sysroot
806 enable_libtool_lock
807 enable_largefile
808 with_system_kpathsea
809 with_system_ptexenc
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 mendex (TeX Live) 3.10 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/mendex--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 mendex (TeX Live) 3.10:";;
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 --with-system-ptexenc use installed ptexenc headers and library (requires
1483 pkg-config)
1484
1485 Some influential environment variables:
1486 CC C compiler command
1487 CFLAGS C compiler flags
1488 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1489 nonstandard directory <lib dir>
1490 LIBS libraries to pass to the linker, e.g. -l<library>
1491 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1492 you have headers in a nonstandard directory <include dir>
1493 LT_SYS_LIBRARY_PATH
1494 User-defined run-time library search path.
1495
1496 Use these variables to override the choices made by 'configure' or to help
1497 it to find libraries and programs with nonstandard names/locations.
1498
1499 Report bugs to the package provider.
1500 _ACEOF
1501 ac_status=$?
1502 fi
1503
1504 if test "$ac_init_help" = "recursive"; then
1505 # If there are subdirs, report their specific --help.
1506 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1507 test -d "$ac_dir" ||
1508 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1509 continue
1510 ac_builddir=.
1511
1512 case "$ac_dir" in
1513 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1514 *)
1515 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1516 # A ".." for each directory in $ac_dir_suffix.
1517 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1518 case $ac_top_builddir_sub in
1519 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1520 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1521 esac ;;
1522 esac
1523 ac_abs_top_builddir=$ac_pwd
1524 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1525 # for backward compatibility:
1526 ac_top_builddir=$ac_top_build_prefix
1527
1528 case $srcdir in
1529 .) # We are building in place.
1530 ac_srcdir=.
1531 ac_top_srcdir=$ac_top_builddir_sub
1532 ac_abs_top_srcdir=$ac_pwd ;;
1533 [\\/]* | ?:[\\/]* ) # Absolute name.
1534 ac_srcdir=$srcdir$ac_dir_suffix;
1535 ac_top_srcdir=$srcdir
1536 ac_abs_top_srcdir=$srcdir ;;
1537 *) # Relative name.
1538 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1539 ac_top_srcdir=$ac_top_build_prefix$srcdir
1540 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1541 esac
1542 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1543
1544 cd "$ac_dir" || { ac_status=$?; continue; }
1545 # Check for configure.gnu first; this name is used for a wrapper for
1546 # Metaconfig's "Configure" on case-insensitive file systems.
1547 if test -f "$ac_srcdir/configure.gnu"; then
1548 echo &&
1549 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1550 elif test -f "$ac_srcdir/configure"; then
1551 echo &&
1552 $SHELL "$ac_srcdir/configure" --help=recursive
1553 else
1554 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1555 fi || ac_status=$?
1556 cd "$ac_pwd" || { ac_status=$?; break; }
1557 done
1558 fi
1559
1560 test -n "$ac_init_help" && exit $ac_status
1561 if $ac_init_version; then
1562 cat <<\_ACEOF
1563 mendex (TeX Live) configure 3.10
1564 generated by GNU Autoconf 2.72
1565
1566 Copyright (C) 2023 Free Software Foundation, Inc.
1567 This configure script is free software; the Free Software Foundation
1568 gives unlimited permission to copy, distribute and modify it.
1569 _ACEOF
1570 exit
1571 fi
1572
1573 ## ------------------------ ##
1574 ## Autoconf initialization. ##
1575 ## ------------------------ ##
1576
1577 # ac_fn_c_try_compile LINENO
1578 # --------------------------
1579 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1580 ac_fn_c_try_compile ()
1581 {
1582 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1583 rm -f conftest.$ac_objext conftest.beam
1584 if { { ac_try="$ac_compile"
1585 case "(($ac_try" in
1586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1587 *) ac_try_echo=$ac_try;;
1588 esac
1589 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1590 printf "%s\n" "$ac_try_echo"; } >&5
1591 (eval "$ac_compile") 2>conftest.err
1592 ac_status=$?
1593 if test -s conftest.err; then
1594 grep -v '^ *+' conftest.err >conftest.er1
1595 cat conftest.er1 >&5
1596 mv -f conftest.er1 conftest.err
1597 fi
1598 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1599 test $ac_status = 0; } && {
1600 test -z "$ac_c_werror_flag" ||
1601 test ! -s conftest.err
1602 } && test -s conftest.$ac_objext
1603 then :
1604 ac_retval=0
1605 else case e in #(
1606 e) printf "%s\n" "$as_me: failed program was:" >&5
1607 sed 's/^/| /' conftest.$ac_ext >&5
1608
1609 ac_retval=1 ;;
1610 esac
1611 fi
1612 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1613 as_fn_set_status $ac_retval
1614
1615 } # ac_fn_c_try_compile
1616
1617 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1618 # -------------------------------------------------------
1619 # Tests whether HEADER exists and can be compiled using the include files in
1620 # INCLUDES, setting the cache variable VAR accordingly.
1621 ac_fn_c_check_header_compile ()
1622 {
1623 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1625 printf %s "checking for $2... " >&6; }
1626 if eval test \${$3+y}
1627 then :
1628 printf %s "(cached) " >&6
1629 else case e in #(
1630 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1631 /* end confdefs.h. */
1632 $4
1633 #include <$2>
1634 _ACEOF
1635 if ac_fn_c_try_compile "$LINENO"
1636 then :
1637 eval "$3=yes"
1638 else case e in #(
1639 e) eval "$3=no" ;;
1640 esac
1641 fi
1642 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1643 esac
1644 fi
1645 eval ac_res=\$$3
1646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1647 printf "%s\n" "$ac_res" >&6; }
1648 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1649
1650 } # ac_fn_c_check_header_compile
1651
1652 # ac_fn_c_try_link LINENO
1653 # -----------------------
1654 # Try to link conftest.$ac_ext, and return whether this succeeded.
1655 ac_fn_c_try_link ()
1656 {
1657 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1658 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1659 if { { ac_try="$ac_link"
1660 case "(($ac_try" in
1661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1662 *) ac_try_echo=$ac_try;;
1663 esac
1664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1665 printf "%s\n" "$ac_try_echo"; } >&5
1666 (eval "$ac_link") 2>conftest.err
1667 ac_status=$?
1668 if test -s conftest.err; then
1669 grep -v '^ *+' conftest.err >conftest.er1
1670 cat conftest.er1 >&5
1671 mv -f conftest.er1 conftest.err
1672 fi
1673 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1674 test $ac_status = 0; } && {
1675 test -z "$ac_c_werror_flag" ||
1676 test ! -s conftest.err
1677 } && test -s conftest$ac_exeext && {
1678 test "$cross_compiling" = yes ||
1679 test -x conftest$ac_exeext
1680 }
1681 then :
1682 ac_retval=0
1683 else case e in #(
1684 e) printf "%s\n" "$as_me: failed program was:" >&5
1685 sed 's/^/| /' conftest.$ac_ext >&5
1686
1687 ac_retval=1 ;;
1688 esac
1689 fi
1690 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1691 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1692 # interfere with the next link command; also delete a directory that is
1693 # left behind by Apple's compiler. We do this before executing the actions.
1694 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1695 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1696 as_fn_set_status $ac_retval
1697
1698 } # ac_fn_c_try_link
1699
1700 # ac_fn_c_check_func LINENO FUNC VAR
1701 # ----------------------------------
1702 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1703 ac_fn_c_check_func ()
1704 {
1705 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1707 printf %s "checking for $2... " >&6; }
1708 if eval test \${$3+y}
1709 then :
1710 printf %s "(cached) " >&6
1711 else case e in #(
1712 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1713 /* end confdefs.h. */
1714 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1715 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1716 #define $2 innocuous_$2
1717
1718 /* System header to define __stub macros and hopefully few prototypes,
1719 which can conflict with char $2 (void); below. */
1720
1721 #include <limits.h>
1722 #undef $2
1723
1724 /* Override any GCC internal prototype to avoid an error.
1725 Use char because int might match the return type of a GCC
1726 builtin and then its argument prototype would still apply. */
1727 #ifdef __cplusplus
1728 extern "C"
1729 #endif
1730 char $2 (void);
1731 /* The GNU C library defines this for functions which it implements
1732 to always fail with ENOSYS. Some functions are actually named
1733 something starting with __ and the normal name is an alias. */
1734 #if defined __stub_$2 || defined __stub___$2
1735 choke me
1736 #endif
1737
1738 int
1739 main (void)
1740 {
1741 return $2 ();
1742 ;
1743 return 0;
1744 }
1745 _ACEOF
1746 if ac_fn_c_try_link "$LINENO"
1747 then :
1748 eval "$3=yes"
1749 else case e in #(
1750 e) eval "$3=no" ;;
1751 esac
1752 fi
1753 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1754 conftest$ac_exeext conftest.$ac_ext ;;
1755 esac
1756 fi
1757 eval ac_res=\$$3
1758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1759 printf "%s\n" "$ac_res" >&6; }
1760 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1761
1762 } # ac_fn_c_check_func
1763
1764 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1765 # -------------------------------------------
1766 # Tests whether TYPE exists after having included INCLUDES, setting cache
1767 # variable VAR accordingly.
1768 ac_fn_c_check_type ()
1769 {
1770 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1772 printf %s "checking for $2... " >&6; }
1773 if eval test \${$3+y}
1774 then :
1775 printf %s "(cached) " >&6
1776 else case e in #(
1777 e) eval "$3=no"
1778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1779 /* end confdefs.h. */
1780 $4
1781 int
1782 main (void)
1783 {
1784 if (sizeof ($2))
1785 return 0;
1786 ;
1787 return 0;
1788 }
1789 _ACEOF
1790 if ac_fn_c_try_compile "$LINENO"
1791 then :
1792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1793 /* end confdefs.h. */
1794 $4
1795 int
1796 main (void)
1797 {
1798 if (sizeof (($2)))
1799 return 0;
1800 ;
1801 return 0;
1802 }
1803 _ACEOF
1804 if ac_fn_c_try_compile "$LINENO"
1805 then :
1806
1807 else case e in #(
1808 e) eval "$3=yes" ;;
1809 esac
1810 fi
1811 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1812 fi
1813 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1814 esac
1815 fi
1816 eval ac_res=\$$3
1817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1818 printf "%s\n" "$ac_res" >&6; }
1819 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1820
1821 } # ac_fn_c_check_type
1822
1823 # ac_fn_c_find_intX_t LINENO BITS VAR
1824 # -----------------------------------
1825 # Finds a signed integer type with width BITS, setting cache variable VAR
1826 # accordingly.
1827 ac_fn_c_find_intX_t ()
1828 {
1829 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1831 printf %s "checking for int$2_t... " >&6; }
1832 if eval test \${$3+y}
1833 then :
1834 printf %s "(cached) " >&6
1835 else case e in #(
1836 e) eval "$3=no"
1837 # Order is important - never check a type that is potentially smaller
1838 # than half of the expected target width.
1839 for ac_type in int$2_t 'int' 'long int' \
1840 'long long int' 'short int' 'signed char'; do
1841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1842 /* end confdefs.h. */
1843 $ac_includes_default
1844 enum { N = $2 / 2 - 1 };
1845 int
1846 main (void)
1847 {
1848 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
1849 test_array [0] = 0;
1850 return test_array [0];
1851
1852 ;
1853 return 0;
1854 }
1855 _ACEOF
1856 if ac_fn_c_try_compile "$LINENO"
1857 then :
1858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1859 /* end confdefs.h. */
1860 $ac_includes_default
1861 enum { N = $2 / 2 - 1 };
1862 int
1863 main (void)
1864 {
1865 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
1866 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
1867 test_array [0] = 0;
1868 return test_array [0];
1869
1870 ;
1871 return 0;
1872 }
1873 _ACEOF
1874 if ac_fn_c_try_compile "$LINENO"
1875 then :
1876
1877 else case e in #(
1878 e) case $ac_type in #(
1879 int$2_t) :
1880 eval "$3=yes" ;; #(
1881 *) :
1882 eval "$3=\$ac_type" ;;
1883 esac ;;
1884 esac
1885 fi
1886 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1887 fi
1888 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1889 if eval test \"x\$"$3"\" = x"no"
1890 then :
1891
1892 else case e in #(
1893 e) break ;;
1894 esac
1895 fi
1896 done ;;
1897 esac
1898 fi
1899 eval ac_res=\$$3
1900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1901 printf "%s\n" "$ac_res" >&6; }
1902 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1903
1904 } # ac_fn_c_find_intX_t
1905
1906 # ac_fn_c_find_uintX_t LINENO BITS VAR
1907 # ------------------------------------
1908 # Finds an unsigned integer type with width BITS, setting cache variable VAR
1909 # accordingly.
1910 ac_fn_c_find_uintX_t ()
1911 {
1912 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1914 printf %s "checking for uint$2_t... " >&6; }
1915 if eval test \${$3+y}
1916 then :
1917 printf %s "(cached) " >&6
1918 else case e in #(
1919 e) eval "$3=no"
1920 # Order is important - never check a type that is potentially smaller
1921 # than half of the expected target width.
1922 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1923 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1925 /* end confdefs.h. */
1926 $ac_includes_default
1927 int
1928 main (void)
1929 {
1930 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1931 test_array [0] = 0;
1932 return test_array [0];
1933
1934 ;
1935 return 0;
1936 }
1937 _ACEOF
1938 if ac_fn_c_try_compile "$LINENO"
1939 then :
1940 case $ac_type in #(
1941 uint$2_t) :
1942 eval "$3=yes" ;; #(
1943 *) :
1944 eval "$3=\$ac_type" ;;
1945 esac
1946 fi
1947 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1948 if eval test \"x\$"$3"\" = x"no"
1949 then :
1950
1951 else case e in #(
1952 e) break ;;
1953 esac
1954 fi
1955 done ;;
1956 esac
1957 fi
1958 eval ac_res=\$$3
1959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1960 printf "%s\n" "$ac_res" >&6; }
1961 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1962
1963 } # ac_fn_c_find_uintX_t
1964
1965 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1966 # ------------------------------------------------------------------
1967 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1968 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1969 ac_fn_check_decl ()
1970 {
1971 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1972 as_decl_name=`echo $2|sed 's/ *(.*//'`
1973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1974 printf %s "checking whether $as_decl_name is declared... " >&6; }
1975 if eval test \${$3+y}
1976 then :
1977 printf %s "(cached) " >&6
1978 else case e in #(
1979 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1980 eval ac_save_FLAGS=\$$6
1981 as_fn_append $6 " $5"
1982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1983 /* end confdefs.h. */
1984 $4
1985 int
1986 main (void)
1987 {
1988 #ifndef $as_decl_name
1989 #ifdef __cplusplus
1990 (void) $as_decl_use;
1991 #else
1992 (void) $as_decl_name;
1993 #endif
1994 #endif
1995
1996 ;
1997 return 0;
1998 }
1999 _ACEOF
2000 if ac_fn_c_try_compile "$LINENO"
2001 then :
2002 eval "$3=yes"
2003 else case e in #(
2004 e) eval "$3=no" ;;
2005 esac
2006 fi
2007 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2008 eval $6=\$ac_save_FLAGS
2009 ;;
2010 esac
2011 fi
2012 eval ac_res=\$$3
2013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2014 printf "%s\n" "$ac_res" >&6; }
2015 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2016
2017 } # ac_fn_check_decl
2018
2019 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2020 # ----------------------------------------------------
2021 # Tries to find if the field MEMBER exists in type AGGR, after including
2022 # INCLUDES, setting cache variable VAR accordingly.
2023 ac_fn_c_check_member ()
2024 {
2025 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2027 printf %s "checking for $2.$3... " >&6; }
2028 if eval test \${$4+y}
2029 then :
2030 printf %s "(cached) " >&6
2031 else case e in #(
2032 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2033 /* end confdefs.h. */
2034 $5
2035 int
2036 main (void)
2037 {
2038 static $2 ac_aggr;
2039 if (ac_aggr.$3)
2040 return 0;
2041 ;
2042 return 0;
2043 }
2044 _ACEOF
2045 if ac_fn_c_try_compile "$LINENO"
2046 then :
2047 eval "$4=yes"
2048 else case e in #(
2049 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2050 /* end confdefs.h. */
2051 $5
2052 int
2053 main (void)
2054 {
2055 static $2 ac_aggr;
2056 if (sizeof ac_aggr.$3)
2057 return 0;
2058 ;
2059 return 0;
2060 }
2061 _ACEOF
2062 if ac_fn_c_try_compile "$LINENO"
2063 then :
2064 eval "$4=yes"
2065 else case e in #(
2066 e) eval "$4=no" ;;
2067 esac
2068 fi
2069 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2070 esac
2071 fi
2072 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2073 esac
2074 fi
2075 eval ac_res=\$$4
2076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2077 printf "%s\n" "$ac_res" >&6; }
2078 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2079
2080 } # ac_fn_c_check_member
2081 ac_configure_args_raw=
2082 for ac_arg
2083 do
2084 case $ac_arg in
2085 *\'*)
2086 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2087 esac
2088 as_fn_append ac_configure_args_raw " '$ac_arg'"
2089 done
2090
2091 case $ac_configure_args_raw in
2092 *$as_nl*)
2093 ac_safe_unquote= ;;
2094 *)
2095 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2096 ac_unsafe_a="$ac_unsafe_z#~"
2097 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2098 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2099 esac
2100
2101 cat >config.log <<_ACEOF
2102 This file contains any messages produced by compilers while
2103 running configure, to aid debugging if configure makes a mistake.
2104
2105 It was created by mendex (TeX Live) $as_me 3.10, which was
2106 generated by GNU Autoconf 2.72. Invocation command line was
2107
2108 $ $0$ac_configure_args_raw
2109
2110 _ACEOF
2111 exec 5>>config.log
2112 {
2113 cat <<_ASUNAME
2114 ## --------- ##
2115 ## Platform. ##
2116 ## --------- ##
2117
2118 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2119 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2120 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2121 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2122 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2123
2124 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2125 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2126
2127 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2128 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2129 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2130 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2131 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2132 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2133 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2134
2135 _ASUNAME
2136
2137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2138 for as_dir in $PATH
2139 do
2140 IFS=$as_save_IFS
2141 case $as_dir in #(((
2142 '') as_dir=./ ;;
2143 */) ;;
2144 *) as_dir=$as_dir/ ;;
2145 esac
2146 printf "%s\n" "PATH: $as_dir"
2147 done
2148 IFS=$as_save_IFS
2149
2150 } >&5
2151
2152 cat >&5 <<_ACEOF
2153
2154
2155 ## ----------- ##
2156 ## Core tests. ##
2157 ## ----------- ##
2158
2159 _ACEOF
2160
2161
2162 # Keep a trace of the command line.
2163 # Strip out --no-create and --no-recursion so they do not pile up.
2164 # Strip out --silent because we don't want to record it for future runs.
2165 # Also quote any args containing shell meta-characters.
2166 # Make two passes to allow for proper duplicate-argument suppression.
2167 ac_configure_args=
2168 ac_configure_args0=
2169 ac_configure_args1=
2170 ac_must_keep_next=false
2171 for ac_pass in 1 2
2172 do
2173 for ac_arg
2174 do
2175 case $ac_arg in
2176 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2177 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2178 | -silent | --silent | --silen | --sile | --sil)
2179 continue ;;
2180 *\'*)
2181 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2182 esac
2183 case $ac_pass in
2184 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2185 2)
2186 as_fn_append ac_configure_args1 " '$ac_arg'"
2187 if test $ac_must_keep_next = true; then
2188 ac_must_keep_next=false # Got value, back to normal.
2189 else
2190 case $ac_arg in
2191 *=* | --config-cache | -C | -disable-* | --disable-* \
2192 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2193 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2194 | -with-* | --with-* | -without-* | --without-* | --x)
2195 case "$ac_configure_args0 " in
2196 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2197 esac
2198 ;;
2199 -* ) ac_must_keep_next=true ;;
2200 esac
2201 fi
2202 as_fn_append ac_configure_args " '$ac_arg'"
2203 ;;
2204 esac
2205 done
2206 done
2207 { ac_configure_args0=; unset ac_configure_args0;}
2208 { ac_configure_args1=; unset ac_configure_args1;}
2209
2210 # When interrupted or exit'd, cleanup temporary files, and complete
2211 # config.log. We remove comments because anyway the quotes in there
2212 # would cause problems or look ugly.
2213 # WARNING: Use '\'' to represent an apostrophe within the trap.
2214 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2215 trap 'exit_status=$?
2216 # Sanitize IFS.
2217 IFS=" "" $as_nl"
2218 # Save into config.log some information that might help in debugging.
2219 {
2220 echo
2221
2222 printf "%s\n" "## ---------------- ##
2223 ## Cache variables. ##
2224 ## ---------------- ##"
2225 echo
2226 # The following way of writing the cache mishandles newlines in values,
2227 (
2228 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2229 eval ac_val=\$$ac_var
2230 case $ac_val in #(
2231 *${as_nl}*)
2232 case $ac_var in #(
2233 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2234 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2235 esac
2236 case $ac_var in #(
2237 _ | IFS | as_nl) ;; #(
2238 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2239 *) { eval $ac_var=; unset $ac_var;} ;;
2240 esac ;;
2241 esac
2242 done
2243 (set) 2>&1 |
2244 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2245 *${as_nl}ac_space=\ *)
2246 sed -n \
2247 "s/'\''/'\''\\\\'\'''\''/g;
2248 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2249 ;; #(
2250 *)
2251 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2252 ;;
2253 esac |
2254 sort
2255 )
2256 echo
2257
2258 printf "%s\n" "## ----------------- ##
2259 ## Output variables. ##
2260 ## ----------------- ##"
2261 echo
2262 for ac_var in $ac_subst_vars
2263 do
2264 eval ac_val=\$$ac_var
2265 case $ac_val in
2266 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2267 esac
2268 printf "%s\n" "$ac_var='\''$ac_val'\''"
2269 done | sort
2270 echo
2271
2272 if test -n "$ac_subst_files"; then
2273 printf "%s\n" "## ------------------- ##
2274 ## File substitutions. ##
2275 ## ------------------- ##"
2276 echo
2277 for ac_var in $ac_subst_files
2278 do
2279 eval ac_val=\$$ac_var
2280 case $ac_val in
2281 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2282 esac
2283 printf "%s\n" "$ac_var='\''$ac_val'\''"
2284 done | sort
2285 echo
2286 fi
2287
2288 if test -s confdefs.h; then
2289 printf "%s\n" "## ----------- ##
2290 ## confdefs.h. ##
2291 ## ----------- ##"
2292 echo
2293 cat confdefs.h
2294 echo
2295 fi
2296 test "$ac_signal" != 0 &&
2297 printf "%s\n" "$as_me: caught signal $ac_signal"
2298 printf "%s\n" "$as_me: exit $exit_status"
2299 } >&5
2300 rm -f core *.core core.conftest.* &&
2301 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2302 exit $exit_status
2303 ' 0
2304 for ac_signal in 1 2 13 15; do
2305 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2306 done
2307 ac_signal=0
2308
2309 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2310 rm -f -r conftest* confdefs.h
2311
2312 printf "%s\n" "/* confdefs.h */" > confdefs.h
2313
2314 # Predefined preprocessor variables.
2315
2316 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2317
2318 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2319
2320 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2321
2322 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2323
2324 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2325
2326 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2327
2328
2329 # Let the site file select an alternate cache file if it wants to.
2330 # Prefer an explicitly selected file to automatically selected ones.
2331 if test -n "$CONFIG_SITE"; then
2332 ac_site_files="$CONFIG_SITE"
2333 elif test "x$prefix" != xNONE; then
2334 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2335 else
2336 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2337 fi
2338
2339 for ac_site_file in $ac_site_files
2340 do
2341 case $ac_site_file in #(
2342 */*) :
2343 ;; #(
2344 *) :
2345 ac_site_file=./$ac_site_file ;;
2346 esac
2347 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2349 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2350 sed 's/^/| /' "$ac_site_file" >&5
2351 . "$ac_site_file" \
2352 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2353 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2354 as_fn_error $? "failed to load site script $ac_site_file
2355 See 'config.log' for more details" "$LINENO" 5; }
2356 fi
2357 done
2358
2359 if test -r "$cache_file"; then
2360 # Some versions of bash will fail to source /dev/null (special files
2361 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2362 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2364 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2365 case $cache_file in
2366 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2367 *) . "./$cache_file";;
2368 esac
2369 fi
2370 else
2371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2372 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2373 >$cache_file
2374 fi
2375
2376 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2377 # Test code for whether the C compiler supports C89 (global declarations)
2378 ac_c_conftest_c89_globals='
2379 /* Does the compiler advertise C89 conformance?
2380 Do not test the value of __STDC__, because some compilers set it to 0
2381 while being otherwise adequately conformant. */
2382 #if !defined __STDC__
2383 # error "Compiler does not advertise C89 conformance"
2384 #endif
2385
2386 #include <stddef.h>
2387 #include <stdarg.h>
2388 struct stat;
2389 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2390 struct buf { int x; };
2391 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2392 static char *e (char **p, int i)
2393 {
2394 return p[i];
2395 }
2396 static char *f (char * (*g) (char **, int), char **p, ...)
2397 {
2398 char *s;
2399 va_list v;
2400 va_start (v,p);
2401 s = g (p, va_arg (v,int));
2402 va_end (v);
2403 return s;
2404 }
2405
2406 /* C89 style stringification. */
2407 #define noexpand_stringify(a) #a
2408 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2409
2410 /* C89 style token pasting. Exercises some of the corner cases that
2411 e.g. old MSVC gets wrong, but not very hard. */
2412 #define noexpand_concat(a,b) a##b
2413 #define expand_concat(a,b) noexpand_concat(a,b)
2414 extern int vA;
2415 extern int vbee;
2416 #define aye A
2417 #define bee B
2418 int *pvA = &expand_concat(v,aye);
2419 int *pvbee = &noexpand_concat(v,bee);
2420
2421 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2422 function prototypes and stuff, but not \xHH hex character constants.
2423 These do not provoke an error unfortunately, instead are silently treated
2424 as an "x". The following induces an error, until -std is added to get
2425 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2426 array size at least. It is necessary to write \x00 == 0 to get something
2427 that is true only with -std. */
2428 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2429
2430 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2431 inside strings and character constants. */
2432 #define FOO(x) '\''x'\''
2433 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2434
2435 int test (int i, double x);
2436 struct s1 {int (*f) (int a);};
2437 struct s2 {int (*f) (double a);};
2438 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2439 int, int);'
2440
2441 # Test code for whether the C compiler supports C89 (body of main).
2442 ac_c_conftest_c89_main='
2443 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2444 '
2445
2446 # Test code for whether the C compiler supports C99 (global declarations)
2447 ac_c_conftest_c99_globals='
2448 /* Does the compiler advertise C99 conformance? */
2449 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2450 # error "Compiler does not advertise C99 conformance"
2451 #endif
2452
2453 // See if C++-style comments work.
2454
2455 #include <stdbool.h>
2456 extern int puts (const char *);
2457 extern int printf (const char *, ...);
2458 extern int dprintf (int, const char *, ...);
2459 extern void *malloc (size_t);
2460 extern void free (void *);
2461
2462 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2463 // dprintf is used instead of fprintf to avoid needing to declare
2464 // FILE and stderr.
2465 #define debug(...) dprintf (2, __VA_ARGS__)
2466 #define showlist(...) puts (#__VA_ARGS__)
2467 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2468 static void
2469 test_varargs_macros (void)
2470 {
2471 int x = 1234;
2472 int y = 5678;
2473 debug ("Flag");
2474 debug ("X = %d\n", x);
2475 showlist (The first, second, and third items.);
2476 report (x>y, "x is %d but y is %d", x, y);
2477 }
2478
2479 // Check long long types.
2480 #define BIG64 18446744073709551615ull
2481 #define BIG32 4294967295ul
2482 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2483 #if !BIG_OK
2484 #error "your preprocessor is broken"
2485 #endif
2486 #if BIG_OK
2487 #else
2488 #error "your preprocessor is broken"
2489 #endif
2490 static long long int bignum = -9223372036854775807LL;
2491 static unsigned long long int ubignum = BIG64;
2492
2493 struct incomplete_array
2494 {
2495 int datasize;
2496 double data[];
2497 };
2498
2499 struct named_init {
2500 int number;
2501 const wchar_t *name;
2502 double average;
2503 };
2504
2505 typedef const char *ccp;
2506
2507 static inline int
2508 test_restrict (ccp restrict text)
2509 {
2510 // Iterate through items via the restricted pointer.
2511 // Also check for declarations in for loops.
2512 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2513 continue;
2514 return 0;
2515 }
2516
2517 // Check varargs and va_copy.
2518 static bool
2519 test_varargs (const char *format, ...)
2520 {
2521 va_list args;
2522 va_start (args, format);
2523 va_list args_copy;
2524 va_copy (args_copy, args);
2525
2526 const char *str = "";
2527 int number = 0;
2528 float fnumber = 0;
2529
2530 while (*format)
2531 {
2532 switch (*format++)
2533 {
2534 case '\''s'\'': // string
2535 str = va_arg (args_copy, const char *);
2536 break;
2537 case '\''d'\'': // int
2538 number = va_arg (args_copy, int);
2539 break;
2540 case '\''f'\'': // float
2541 fnumber = va_arg (args_copy, double);
2542 break;
2543 default:
2544 break;
2545 }
2546 }
2547 va_end (args_copy);
2548 va_end (args);
2549
2550 return *str && number && fnumber;
2551 }
2552 '
2553
2554 # Test code for whether the C compiler supports C99 (body of main).
2555 ac_c_conftest_c99_main='
2556 // Check bool.
2557 _Bool success = false;
2558 success |= (argc != 0);
2559
2560 // Check restrict.
2561 if (test_restrict ("String literal") == 0)
2562 success = true;
2563 char *restrict newvar = "Another string";
2564
2565 // Check varargs.
2566 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2567 test_varargs_macros ();
2568
2569 // Check flexible array members.
2570 struct incomplete_array *ia =
2571 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2572 ia->datasize = 10;
2573 for (int i = 0; i < ia->datasize; ++i)
2574 ia->data[i] = i * 1.234;
2575 // Work around memory leak warnings.
2576 free (ia);
2577
2578 // Check named initializers.
2579 struct named_init ni = {
2580 .number = 34,
2581 .name = L"Test wide string",
2582 .average = 543.34343,
2583 };
2584
2585 ni.number = 58;
2586
2587 int dynamic_array[ni.number];
2588 dynamic_array[0] = argv[0][0];
2589 dynamic_array[ni.number - 1] = 543;
2590
2591 // work around unused variable warnings
2592 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2593 || dynamic_array[ni.number - 1] != 543);
2594 '
2595
2596 # Test code for whether the C compiler supports C11 (global declarations)
2597 ac_c_conftest_c11_globals='
2598 /* Does the compiler advertise C11 conformance? */
2599 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2600 # error "Compiler does not advertise C11 conformance"
2601 #endif
2602
2603 // Check _Alignas.
2604 char _Alignas (double) aligned_as_double;
2605 char _Alignas (0) no_special_alignment;
2606 extern char aligned_as_int;
2607 char _Alignas (0) _Alignas (int) aligned_as_int;
2608
2609 // Check _Alignof.
2610 enum
2611 {
2612 int_alignment = _Alignof (int),
2613 int_array_alignment = _Alignof (int[100]),
2614 char_alignment = _Alignof (char)
2615 };
2616 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2617
2618 // Check _Noreturn.
2619 int _Noreturn does_not_return (void) { for (;;) continue; }
2620
2621 // Check _Static_assert.
2622 struct test_static_assert
2623 {
2624 int x;
2625 _Static_assert (sizeof (int) <= sizeof (long int),
2626 "_Static_assert does not work in struct");
2627 long int y;
2628 };
2629
2630 // Check UTF-8 literals.
2631 #define u8 syntax error!
2632 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2633
2634 // Check duplicate typedefs.
2635 typedef long *long_ptr;
2636 typedef long int *long_ptr;
2637 typedef long_ptr long_ptr;
2638
2639 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2640 struct anonymous
2641 {
2642 union {
2643 struct { int i; int j; };
2644 struct { int k; long int l; } w;
2645 };
2646 int m;
2647 } v1;
2648 '
2649
2650 # Test code for whether the C compiler supports C11 (body of main).
2651 ac_c_conftest_c11_main='
2652 _Static_assert ((offsetof (struct anonymous, i)
2653 == offsetof (struct anonymous, w.k)),
2654 "Anonymous union alignment botch");
2655 v1.i = 2;
2656 v1.w.k = 5;
2657 ok |= v1.i != 5;
2658 '
2659
2660 # Test code for whether the C compiler supports C11 (complete).
2661 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2662 ${ac_c_conftest_c99_globals}
2663 ${ac_c_conftest_c11_globals}
2664
2665 int
2666 main (int argc, char **argv)
2667 {
2668 int ok = 0;
2669 ${ac_c_conftest_c89_main}
2670 ${ac_c_conftest_c99_main}
2671 ${ac_c_conftest_c11_main}
2672 return ok;
2673 }
2674 "
2675
2676 # Test code for whether the C compiler supports C99 (complete).
2677 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2678 ${ac_c_conftest_c99_globals}
2679
2680 int
2681 main (int argc, char **argv)
2682 {
2683 int ok = 0;
2684 ${ac_c_conftest_c89_main}
2685 ${ac_c_conftest_c99_main}
2686 return ok;
2687 }
2688 "
2689
2690 # Test code for whether the C compiler supports C89 (complete).
2691 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2692
2693 int
2694 main (int argc, char **argv)
2695 {
2696 int ok = 0;
2697 ${ac_c_conftest_c89_main}
2698 return ok;
2699 }
2700 "
2701
2702 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2703 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2704 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2705 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2706 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2707 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2708 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2709 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2710 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2711 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2712
2713 # Auxiliary files required by this configure script.
2714 ac_aux_files="config.guess config.sub ltmain.sh ar-lib compile missing install-sh"
2715
2716 # Locations in which to look for auxiliary files.
2717 ac_aux_dir_candidates="${srcdir}/../../build-aux"
2718
2719 # Search for a directory containing all of the required auxiliary files,
2720 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2721 # If we don't find one directory that contains all the files we need,
2722 # we report the set of missing files from the *first* directory in
2723 # $ac_aux_dir_candidates and give up.
2724 ac_missing_aux_files=""
2725 ac_first_candidate=:
2726 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2728 as_found=false
2729 for as_dir in $ac_aux_dir_candidates
2730 do
2731 IFS=$as_save_IFS
2732 case $as_dir in #(((
2733 '') as_dir=./ ;;
2734 */) ;;
2735 *) as_dir=$as_dir/ ;;
2736 esac
2737 as_found=:
2738
2739 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2740 ac_aux_dir_found=yes
2741 ac_install_sh=
2742 for ac_aux in $ac_aux_files
2743 do
2744 # As a special case, if "install-sh" is required, that requirement
2745 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2746 # and $ac_install_sh is set appropriately for whichever one is found.
2747 if test x"$ac_aux" = x"install-sh"
2748 then
2749 if test -f "${as_dir}install-sh"; then
2750 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2751 ac_install_sh="${as_dir}install-sh -c"
2752 elif test -f "${as_dir}install.sh"; then
2753 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2754 ac_install_sh="${as_dir}install.sh -c"
2755 elif test -f "${as_dir}shtool"; then
2756 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2757 ac_install_sh="${as_dir}shtool install -c"
2758 else
2759 ac_aux_dir_found=no
2760 if $ac_first_candidate; then
2761 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2762 else
2763 break
2764 fi
2765 fi
2766 else
2767 if test -f "${as_dir}${ac_aux}"; then
2768 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2769 else
2770 ac_aux_dir_found=no
2771 if $ac_first_candidate; then
2772 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2773 else
2774 break
2775 fi
2776 fi
2777 fi
2778 done
2779 if test "$ac_aux_dir_found" = yes; then
2780 ac_aux_dir="$as_dir"
2781 break
2782 fi
2783 ac_first_candidate=false
2784
2785 as_found=false
2786 done
2787 IFS=$as_save_IFS
2788 if $as_found
2789 then :
2790
2791 else case e in #(
2792 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2793 esac
2794 fi
2795
2796
2797 # These three variables are undocumented and unsupported,
2798 # and are intended to be withdrawn in a future Autoconf release.
2799 # They can cause serious problems if a builder's source tree is in a directory
2800 # whose full name contains unusual characters.
2801 if test -f "${ac_aux_dir}config.guess"; then
2802 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2803 fi
2804 if test -f "${ac_aux_dir}config.sub"; then
2805 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2806 fi
2807 if test -f "$ac_aux_dir/configure"; then
2808 ac_configure="$SHELL ${ac_aux_dir}configure"
2809 fi
2810
2811 # Check that the precious variables saved in the cache have kept the same
2812 # value.
2813 ac_cache_corrupted=false
2814 for ac_var in $ac_precious_vars; do
2815 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2816 eval ac_new_set=\$ac_env_${ac_var}_set
2817 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2818 eval ac_new_val=\$ac_env_${ac_var}_value
2819 case $ac_old_set,$ac_new_set in
2820 set,)
2821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2822 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2823 ac_cache_corrupted=: ;;
2824 ,set)
2825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2826 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2827 ac_cache_corrupted=: ;;
2828 ,);;
2829 *)
2830 if test "x$ac_old_val" != "x$ac_new_val"; then
2831 # differences in whitespace do not lead to failure.
2832 ac_old_val_w=`echo x $ac_old_val`
2833 ac_new_val_w=`echo x $ac_new_val`
2834 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2836 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2837 ac_cache_corrupted=:
2838 else
2839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2840 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2841 eval $ac_var=\$ac_old_val
2842 fi
2843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2844 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2846 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2847 fi;;
2848 esac
2849 # Pass precious variables to config.status.
2850 if test "$ac_new_set" = set; then
2851 case $ac_new_val in
2852 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2853 *) ac_arg=$ac_var=$ac_new_val ;;
2854 esac
2855 case " $ac_configure_args " in
2856 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2857 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2858 esac
2859 fi
2860 done
2861 if $ac_cache_corrupted; then
2862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2863 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2865 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2866 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2867 and start over" "$LINENO" 5
2868 fi
2869 ## -------------------- ##
2870 ## Main body of script. ##
2871 ## -------------------- ##
2872
2873 ac_ext=c
2874 ac_cpp='$CPP $CPPFLAGS'
2875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2878
2879
2880
2881
2882
2883
2884
2885 am__api_version='1.18'
2886
2887
2888
2889 # Find a good install program. We prefer a C program (faster),
2890 # so one script is as good as another. But avoid the broken or
2891 # incompatible versions:
2892 # SysV /etc/install, /usr/sbin/install
2893 # SunOS /usr/etc/install
2894 # IRIX /sbin/install
2895 # AIX /bin/install
2896 # AmigaOS /C/install, which installs bootblocks on floppy discs
2897 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2898 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2899 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2900 # OS/2's system install, which has a completely different semantic
2901 # ./install, which can be erroneously created by make from ./install.sh.
2902 # Reject install programs that cannot install multiple files.
2903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2904 printf %s "checking for a BSD-compatible install... " >&6; }
2905 if test -z "$INSTALL"; then
2906 if test ${ac_cv_path_install+y}
2907 then :
2908 printf %s "(cached) " >&6
2909 else case e in #(
2910 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2911 for as_dir in $PATH
2912 do
2913 IFS=$as_save_IFS
2914 case $as_dir in #(((
2915 '') as_dir=./ ;;
2916 */) ;;
2917 *) as_dir=$as_dir/ ;;
2918 esac
2919 # Account for fact that we put trailing slashes in our PATH walk.
2920 case $as_dir in #((
2921 ./ | /[cC]/* | \
2922 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2923 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2924 /usr/ucb/* ) ;;
2925 *)
2926 # OSF1 and SCO ODT 3.0 have their own names for install.
2927 # Don't use installbsd from OSF since it installs stuff as root
2928 # by default.
2929 for ac_prog in ginstall scoinst install; do
2930 for ac_exec_ext in '' $ac_executable_extensions; do
2931 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2932 if test $ac_prog = install &&
2933 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2934 # AIX install. It has an incompatible calling convention.
2935 :
2936 elif test $ac_prog = install &&
2937 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2938 # program-specific install script used by HP pwplus--don't use.
2939 :
2940 else
2941 rm -rf conftest.one conftest.two conftest.dir
2942 echo one > conftest.one
2943 echo two > conftest.two
2944 mkdir conftest.dir
2945 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2946 test -s conftest.one && test -s conftest.two &&
2947 test -s conftest.dir/conftest.one &&
2948 test -s conftest.dir/conftest.two
2949 then
2950 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2951 break 3
2952 fi
2953 fi
2954 fi
2955 done
2956 done
2957 ;;
2958 esac
2959
2960 done
2961 IFS=$as_save_IFS
2962
2963 rm -rf conftest.one conftest.two conftest.dir
2964 ;;
2965 esac
2966 fi
2967 if test ${ac_cv_path_install+y}; then
2968 INSTALL=$ac_cv_path_install
2969 else
2970 # As a last resort, use the slow shell script. Don't cache a
2971 # value for INSTALL within a source directory, because that will
2972 # break other packages using the cache if that directory is
2973 # removed, or if the value is a relative name.
2974 INSTALL=$ac_install_sh
2975 fi
2976 fi
2977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2978 printf "%s\n" "$INSTALL" >&6; }
2979
2980 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2981 # It thinks the first close brace ends the variable substitution.
2982 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2983
2984 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2985
2986 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2987
2988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
2989 printf %s "checking whether sleep supports fractional seconds... " >&6; }
2990 if test ${am_cv_sleep_fractional_seconds+y}
2991 then :
2992 printf %s "(cached) " >&6
2993 else case e in #(
2994 e) if sleep 0.001 2>/dev/null
2995 then :
2996 am_cv_sleep_fractional_seconds=yes
2997 else case e in #(
2998 e) am_cv_sleep_fractional_seconds=no ;;
2999 esac
3000 fi
3001 ;;
3002 esac
3003 fi
3004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
3005 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
3006
3007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
3008 printf %s "checking filesystem timestamp resolution... " >&6; }
3009 if test ${am_cv_filesystem_timestamp_resolution+y}
3010 then :
3011 printf %s "(cached) " >&6
3012 else case e in #(
3013 e) # Default to the worst case.
3014 am_cv_filesystem_timestamp_resolution=2
3015
3016 # Only try to go finer than 1 sec if sleep can do it.
3017 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
3018 # - 1 sec is not much of a win compared to 2 sec, and
3019 # - it takes 2 seconds to perform the test whether 1 sec works.
3020 #
3021 # Instead, just use the default 2s on platforms that have 1s resolution,
3022 # accept the extra 1s delay when using $sleep in the Automake tests, in
3023 # exchange for not incurring the 2s delay for running the test for all
3024 # packages.
3025 #
3026 am_try_resolutions=
3027 if test "$am_cv_sleep_fractional_seconds" = yes; then
3028 # Even a millisecond often causes a bunch of false positives,
3029 # so just try a hundredth of a second. The time saved between .001 and
3030 # .01 is not terribly consequential.
3031 am_try_resolutions="0.01 0.1 $am_try_resolutions"
3032 fi
3033
3034 # In order to catch current-generation FAT out, we must *modify* files
3035 # that already exist; the *creation* timestamp is finer. Use names
3036 # that make ls -t sort them differently when they have equal
3037 # timestamps than when they have distinct timestamps, keeping
3038 # in mind that ls -t prints the *newest* file first.
3039 rm -f conftest.ts?
3040 : > conftest.ts1
3041 : > conftest.ts2
3042 : > conftest.ts3
3043
3044 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
3045 # clobber the current shell's arguments. (Outer-level square brackets
3046 # are removed by m4; they're present so that m4 does not expand
3047 # <dollar><star>; be careful, easy to get confused.)
3048 if (
3049 set X `ls -t conftest.ts[12]` &&
3050 {
3051 test "$*" != "X conftest.ts1 conftest.ts2" ||
3052 test "$*" != "X conftest.ts2 conftest.ts1";
3053 }
3054 ); then :; else
3055 # If neither matched, then we have a broken ls. This can happen
3056 # if, for instance, CONFIG_SHELL is bash and it inherits a
3057 # broken ls alias from the environment. This has actually
3058 # happened. Such a system could not be considered "sane".
3059 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
3060 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3061 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3062 as_fn_error $? "ls -t produces unexpected output.
3063 Make sure there is not a broken ls alias in your environment.
3064 See 'config.log' for more details" "$LINENO" 5; }
3065 fi
3066
3067 for am_try_res in $am_try_resolutions; do
3068 # Any one fine-grained sleep might happen to cross the boundary
3069 # between two values of a coarser actual resolution, but if we do
3070 # two fine-grained sleeps in a row, at least one of them will fall
3071 # entirely within a coarse interval.
3072 echo alpha > conftest.ts1
3073 sleep $am_try_res
3074 echo beta > conftest.ts2
3075 sleep $am_try_res
3076 echo gamma > conftest.ts3
3077
3078 # We assume that 'ls -t' will make use of high-resolution
3079 # timestamps if the operating system supports them at all.
3080 if (set X `ls -t conftest.ts?` &&
3081 test "$2" = conftest.ts3 &&
3082 test "$3" = conftest.ts2 &&
3083 test "$4" = conftest.ts1); then
3084 #
3085 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
3086 # because we don't need to test make.
3087 make_ok=true
3088 if test $am_try_res != 1; then
3089 # But if we've succeeded so far with a subsecond resolution, we
3090 # have one more thing to check: make. It can happen that
3091 # everything else supports the subsecond mtimes, but make doesn't;
3092 # notably on macOS, which ships make 3.81 from 2006 (the last one
3093 # released under GPLv2). https://bugs.gnu.org/68808
3094 #
3095 # We test $MAKE if it is defined in the environment, else "make".
3096 # It might get overridden later, but our hope is that in practice
3097 # it does not matter: it is the system "make" which is (by far)
3098 # the most likely to be broken, whereas if the user overrides it,
3099 # probably they did so with a better, or at least not worse, make.
3100 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
3101 #
3102 # Create a Makefile (real tab character here):
3103 rm -f conftest.mk
3104 echo 'conftest.ts1: conftest.ts2' >conftest.mk
3105 echo ' touch conftest.ts2' >>conftest.mk
3106 #
3107 # Now, running
3108 # touch conftest.ts1; touch conftest.ts2; make
3109 # should touch ts1 because ts2 is newer. This could happen by luck,
3110 # but most often, it will fail if make's support is insufficient. So
3111 # test for several consecutive successes.
3112 #
3113 # (We reuse conftest.ts[12] because we still want to modify existing
3114 # files, not create new ones, per above.)
3115 n=0
3116 make=${MAKE-make}
3117 until test $n -eq 3; do
3118 echo one > conftest.ts1
3119 sleep $am_try_res
3120 echo two > conftest.ts2 # ts2 should now be newer than ts1
3121 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
3122 make_ok=false
3123 break # out of $n loop
3124 fi
3125 n=`expr $n + 1`
3126 done
3127 fi
3128 #
3129 if $make_ok; then
3130 # Everything we know to check worked out, so call this resolution good.
3131 am_cv_filesystem_timestamp_resolution=$am_try_res
3132 break # out of $am_try_res loop
3133 fi
3134 # Otherwise, we'll go on to check the next resolution.
3135 fi
3136 done
3137 rm -f conftest.ts?
3138 # (end _am_filesystem_timestamp_resolution)
3139 ;;
3140 esac
3141 fi
3142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
3143 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
3144
3145 # This check should not be cached, as it may vary across builds of
3146 # different projects.
3147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3148 printf %s "checking whether build environment is sane... " >&6; }
3149 # Reject unsafe characters in $srcdir or the absolute working directory
3150 # name. Accept space and tab only in the latter.
3151 am_lf='
3152 '
3153 case `pwd` in
3154 *[\\\"\#\$\&\'\`$am_lf]*)
3155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3156 printf "%s\n" "no" >&6; }
3157 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3158 esac
3159 case $srcdir in
3160 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3162 printf "%s\n" "no" >&6; }
3163 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3164 esac
3165
3166 # Do 'set' in a subshell so we don't clobber the current shell's
3167 # arguments. Must try -L first in case configure is actually a
3168 # symlink; some systems play weird games with the mod time of symlinks
3169 # (eg FreeBSD returns the mod time of the symlink's containing
3170 # directory).
3171 am_build_env_is_sane=no
3172 am_has_slept=no
3173 rm -f conftest.file
3174 for am_try in 1 2; do
3175 echo "timestamp, slept: $am_has_slept" > conftest.file
3176 if (
3177 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3178 if test "$*" = "X"; then
3179 # -L didn't work.
3180 set X `ls -t "$srcdir/configure" conftest.file`
3181 fi
3182 test "$2" = conftest.file
3183 ); then
3184 am_build_env_is_sane=yes
3185 break
3186 fi
3187 # Just in case.
3188 sleep "$am_cv_filesystem_timestamp_resolution"
3189 am_has_slept=yes
3190 done
3191
3192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
3193 printf "%s\n" "$am_build_env_is_sane" >&6; }
3194 if test "$am_build_env_is_sane" = no; then
3195 as_fn_error $? "newly created file is older than distributed files!
3196 Check your system clock" "$LINENO" 5
3197 fi
3198
3199 # If we didn't sleep, we still need to ensure time stamps of config.status and
3200 # generated files are strictly newer.
3201 am_sleep_pid=
3202 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
3203 then :
3204
3205 else case e in #(
3206 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
3207 am_sleep_pid=$!
3208 ;;
3209 esac
3210 fi
3211
3212 rm -f conftest.file
3213
3214 test "$program_prefix" != NONE &&
3215 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3216 # Use a double $ so make ignores it.
3217 test "$program_suffix" != NONE &&
3218 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3219 # Double any \ or $.
3220 # By default was 's,x,x', remove it if useless.
3221 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3222 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3223
3224
3225 # Expand $ac_aux_dir to an absolute path.
3226 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3227
3228
3229 if test x"${MISSING+set}" != xset; then
3230 MISSING="\${SHELL} '$am_aux_dir/missing'"
3231 fi
3232 # Use eval to expand $SHELL
3233 if eval "$MISSING --is-lightweight"; then
3234 am_missing_run="$MISSING "
3235 else
3236 am_missing_run=
3237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3238 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3239 fi
3240
3241 if test x"${install_sh+set}" != xset; then
3242 case $am_aux_dir in
3243 *\ * | *\ *)
3244 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3245 *)
3246 install_sh="\${SHELL} $am_aux_dir/install-sh"
3247 esac
3248 fi
3249
3250 # Installed binaries are usually stripped using 'strip' when the user
3251 # run "make install-strip". However 'strip' might not be the right
3252 # tool to use in cross-compilation environments, therefore Automake
3253 # will honor the 'STRIP' environment variable to overrule this program.
3254 if test "$cross_compiling" != no; then
3255 if test -n "$ac_tool_prefix"; then
3256 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3257 set dummy ${ac_tool_prefix}strip; ac_word=$2
3258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3259 printf %s "checking for $ac_word... " >&6; }
3260 if test ${ac_cv_prog_STRIP+y}
3261 then :
3262 printf %s "(cached) " >&6
3263 else case e in #(
3264 e) if test -n "$STRIP"; then
3265 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3266 else
3267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3268 for as_dir in $PATH
3269 do
3270 IFS=$as_save_IFS
3271 case $as_dir in #(((
3272 '') as_dir=./ ;;
3273 */) ;;
3274 *) as_dir=$as_dir/ ;;
3275 esac
3276 for ac_exec_ext in '' $ac_executable_extensions; do
3277 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3278 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3279 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3280 break 2
3281 fi
3282 done
3283 done
3284 IFS=$as_save_IFS
3285
3286 fi ;;
3287 esac
3288 fi
3289 STRIP=$ac_cv_prog_STRIP
3290 if test -n "$STRIP"; then
3291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3292 printf "%s\n" "$STRIP" >&6; }
3293 else
3294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3295 printf "%s\n" "no" >&6; }
3296 fi
3297
3298
3299 fi
3300 if test -z "$ac_cv_prog_STRIP"; then
3301 ac_ct_STRIP=$STRIP
3302 # Extract the first word of "strip", so it can be a program name with args.
3303 set dummy strip; ac_word=$2
3304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3305 printf %s "checking for $ac_word... " >&6; }
3306 if test ${ac_cv_prog_ac_ct_STRIP+y}
3307 then :
3308 printf %s "(cached) " >&6
3309 else case e in #(
3310 e) if test -n "$ac_ct_STRIP"; then
3311 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3312 else
3313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3314 for as_dir in $PATH
3315 do
3316 IFS=$as_save_IFS
3317 case $as_dir in #(((
3318 '') as_dir=./ ;;
3319 */) ;;
3320 *) as_dir=$as_dir/ ;;
3321 esac
3322 for ac_exec_ext in '' $ac_executable_extensions; do
3323 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3324 ac_cv_prog_ac_ct_STRIP="strip"
3325 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3326 break 2
3327 fi
3328 done
3329 done
3330 IFS=$as_save_IFS
3331
3332 fi ;;
3333 esac
3334 fi
3335 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3336 if test -n "$ac_ct_STRIP"; then
3337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3338 printf "%s\n" "$ac_ct_STRIP" >&6; }
3339 else
3340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3341 printf "%s\n" "no" >&6; }
3342 fi
3343
3344 if test "x$ac_ct_STRIP" = x; then
3345 STRIP=":"
3346 else
3347 case $cross_compiling:$ac_tool_warned in
3348 yes:)
3349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3350 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3351 ac_tool_warned=yes ;;
3352 esac
3353 STRIP=$ac_ct_STRIP
3354 fi
3355 else
3356 STRIP="$ac_cv_prog_STRIP"
3357 fi
3358
3359 fi
3360 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3361
3362
3363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3364 printf %s "checking for a race-free mkdir -p... " >&6; }
3365 if test -z "$MKDIR_P"; then
3366 if test ${ac_cv_path_mkdir+y}
3367 then :
3368 printf %s "(cached) " >&6
3369 else case e in #(
3370 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3371 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3372 do
3373 IFS=$as_save_IFS
3374 case $as_dir in #(((
3375 '') as_dir=./ ;;
3376 */) ;;
3377 *) as_dir=$as_dir/ ;;
3378 esac
3379 for ac_prog in mkdir gmkdir; do
3380 for ac_exec_ext in '' $ac_executable_extensions; do
3381 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3382 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3383 'mkdir ('*'coreutils) '* | \
3384 *'BusyBox '* | \
3385 'mkdir (fileutils) '4.1*)
3386 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3387 break 3;;
3388 esac
3389 done
3390 done
3391 done
3392 IFS=$as_save_IFS
3393 ;;
3394 esac
3395 fi
3396
3397 test -d ./--version && rmdir ./--version
3398 if test ${ac_cv_path_mkdir+y}; then
3399 MKDIR_P="$ac_cv_path_mkdir -p"
3400 else
3401 # As a last resort, use plain mkdir -p,
3402 # in the hope it doesn't have the bugs of ancient mkdir.
3403 MKDIR_P='mkdir -p'
3404 fi
3405 fi
3406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3407 printf "%s\n" "$MKDIR_P" >&6; }
3408
3409 for ac_prog in gawk mawk nawk awk
3410 do
3411 # Extract the first word of "$ac_prog", so it can be a program name with args.
3412 set dummy $ac_prog; ac_word=$2
3413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3414 printf %s "checking for $ac_word... " >&6; }
3415 if test ${ac_cv_prog_AWK+y}
3416 then :
3417 printf %s "(cached) " >&6
3418 else case e in #(
3419 e) if test -n "$AWK"; then
3420 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3421 else
3422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3423 for as_dir in $PATH
3424 do
3425 IFS=$as_save_IFS
3426 case $as_dir in #(((
3427 '') as_dir=./ ;;
3428 */) ;;
3429 *) as_dir=$as_dir/ ;;
3430 esac
3431 for ac_exec_ext in '' $ac_executable_extensions; do
3432 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3433 ac_cv_prog_AWK="$ac_prog"
3434 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3435 break 2
3436 fi
3437 done
3438 done
3439 IFS=$as_save_IFS
3440
3441 fi ;;
3442 esac
3443 fi
3444 AWK=$ac_cv_prog_AWK
3445 if test -n "$AWK"; then
3446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3447 printf "%s\n" "$AWK" >&6; }
3448 else
3449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3450 printf "%s\n" "no" >&6; }
3451 fi
3452
3453
3454 test -n "$AWK" && break
3455 done
3456
3457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3458 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3459 set x ${MAKE-make}
3460 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3461 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3462 then :
3463 printf %s "(cached) " >&6
3464 else case e in #(
3465 e) cat >conftest.make <<\_ACEOF
3466 SHELL = /bin/sh
3467 all:
3468 @echo '@@@%%%=$(MAKE)=@@@%%%'
3469 _ACEOF
3470 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3471 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3472 *@@@%%%=?*=@@@%%%*)
3473 eval ac_cv_prog_make_${ac_make}_set=yes;;
3474 *)
3475 eval ac_cv_prog_make_${ac_make}_set=no;;
3476 esac
3477 rm -f conftest.make ;;
3478 esac
3479 fi
3480 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3482 printf "%s\n" "yes" >&6; }
3483 SET_MAKE=
3484 else
3485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3486 printf "%s\n" "no" >&6; }
3487 SET_MAKE="MAKE=${MAKE-make}"
3488 fi
3489
3490 rm -rf .tst 2>/dev/null
3491 mkdir .tst 2>/dev/null
3492 if test -d .tst; then
3493 am__leading_dot=.
3494 else
3495 am__leading_dot=_
3496 fi
3497 rmdir .tst 2>/dev/null
3498
3499 AM_DEFAULT_VERBOSITY=1
3500 # Check whether --enable-silent-rules was given.
3501 if test ${enable_silent_rules+y}
3502 then :
3503 enableval=$enable_silent_rules;
3504 fi
3505
3506 am_make=${MAKE-make}
3507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3508 printf %s "checking whether $am_make supports nested variables... " >&6; }
3509 if test ${am_cv_make_support_nested_variables+y}
3510 then :
3511 printf %s "(cached) " >&6
3512 else case e in #(
3513 e) if printf "%s\n" 'TRUE=$(BAR$(V))
3514 BAR0=false
3515 BAR1=true
3516 V=1
3517 am__doit:
3518 @$(TRUE)
3519 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3520 am_cv_make_support_nested_variables=yes
3521 else
3522 am_cv_make_support_nested_variables=no
3523 fi ;;
3524 esac
3525 fi
3526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3527 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3528 AM_BACKSLASH='\'
3529
3530 am__rm_f_notfound=
3531 if (rm -f && rm -fr && rm -rf) 2>/dev/null
3532 then :
3533
3534 else case e in #(
3535 e) am__rm_f_notfound='""' ;;
3536 esac
3537 fi
3538
3539
3540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
3541 printf %s "checking xargs -n works... " >&6; }
3542 if test ${am_cv_xargs_n_works+y}
3543 then :
3544 printf %s "(cached) " >&6
3545 else case e in #(
3546 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
3547 3"
3548 then :
3549 am_cv_xargs_n_works=yes
3550 else case e in #(
3551 e) am_cv_xargs_n_works=no ;;
3552 esac
3553 fi ;;
3554 esac
3555 fi
3556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
3557 printf "%s\n" "$am_cv_xargs_n_works" >&6; }
3558 if test "$am_cv_xargs_n_works" = yes
3559 then :
3560 am__xargs_n='xargs -n'
3561 else case e in #(
3562 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
3563 ;;
3564 esac
3565 fi
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576 DEPDIR="${am__leading_dot}deps"
3577
3578 ac_config_commands="$ac_config_commands depfiles"
3579
3580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3581 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3582 cat > confinc.mk << 'END'
3583 am__doit:
3584 @echo this is the am__doit target >confinc.out
3585 .PHONY: am__doit
3586 END
3587 am__include="#"
3588 am__quote=
3589 # BSD make does it like this.
3590 echo '.include "confinc.mk" # ignored' > confmf.BSD
3591 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3592 echo 'include confinc.mk # ignored' > confmf.GNU
3593 _am_result=no
3594 for s in GNU BSD; do
3595 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3596 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3597 ac_status=$?
3598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599 (exit $ac_status); }
3600 case $?:`cat confinc.out 2>/dev/null` in #(
3601 '0:this is the am__doit target') :
3602 case $s in #(
3603 BSD) :
3604 am__include='.include' am__quote='"' ;; #(
3605 *) :
3606 am__include='include' am__quote='' ;;
3607 esac ;; #(
3608 *) :
3609 ;;
3610 esac
3611 if test "$am__include" != "#"; then
3612 _am_result="yes ($s style)"
3613 break
3614 fi
3615 done
3616 rm -f confinc.* confmf.*
3617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3618 printf "%s\n" "${_am_result}" >&6; }
3619
3620 # Check whether --enable-dependency-tracking was given.
3621 if test ${enable_dependency_tracking+y}
3622 then :
3623 enableval=$enable_dependency_tracking;
3624 fi
3625
3626 if test "x$enable_dependency_tracking" != xno; then
3627 am_depcomp="$ac_aux_dir/depcomp"
3628 AMDEPBACKSLASH='\'
3629 am__nodep='_no'
3630 fi
3631 if test "x$enable_dependency_tracking" != xno; then
3632 AMDEP_TRUE=
3633 AMDEP_FALSE='#'
3634 else
3635 AMDEP_TRUE='#'
3636 AMDEP_FALSE=
3637 fi
3638
3639
3640 ac_ext=c
3641 ac_cpp='$CPP $CPPFLAGS'
3642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3645 if test -n "$ac_tool_prefix"; then
3646 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3647 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3649 printf %s "checking for $ac_word... " >&6; }
3650 if test ${ac_cv_prog_CC+y}
3651 then :
3652 printf %s "(cached) " >&6
3653 else case e in #(
3654 e) if test -n "$CC"; then
3655 ac_cv_prog_CC="$CC" # Let the user override the test.
3656 else
3657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3658 for as_dir in $PATH
3659 do
3660 IFS=$as_save_IFS
3661 case $as_dir in #(((
3662 '') as_dir=./ ;;
3663 */) ;;
3664 *) as_dir=$as_dir/ ;;
3665 esac
3666 for ac_exec_ext in '' $ac_executable_extensions; do
3667 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3668 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3669 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3670 break 2
3671 fi
3672 done
3673 done
3674 IFS=$as_save_IFS
3675
3676 fi ;;
3677 esac
3678 fi
3679 CC=$ac_cv_prog_CC
3680 if test -n "$CC"; then
3681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3682 printf "%s\n" "$CC" >&6; }
3683 else
3684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3685 printf "%s\n" "no" >&6; }
3686 fi
3687
3688
3689 fi
3690 if test -z "$ac_cv_prog_CC"; then
3691 ac_ct_CC=$CC
3692 # Extract the first word of "gcc", so it can be a program name with args.
3693 set dummy gcc; ac_word=$2
3694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3695 printf %s "checking for $ac_word... " >&6; }
3696 if test ${ac_cv_prog_ac_ct_CC+y}
3697 then :
3698 printf %s "(cached) " >&6
3699 else case e in #(
3700 e) if test -n "$ac_ct_CC"; then
3701 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3702 else
3703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3704 for as_dir in $PATH
3705 do
3706 IFS=$as_save_IFS
3707 case $as_dir in #(((
3708 '') as_dir=./ ;;
3709 */) ;;
3710 *) as_dir=$as_dir/ ;;
3711 esac
3712 for ac_exec_ext in '' $ac_executable_extensions; do
3713 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3714 ac_cv_prog_ac_ct_CC="gcc"
3715 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3716 break 2
3717 fi
3718 done
3719 done
3720 IFS=$as_save_IFS
3721
3722 fi ;;
3723 esac
3724 fi
3725 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3726 if test -n "$ac_ct_CC"; then
3727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3728 printf "%s\n" "$ac_ct_CC" >&6; }
3729 else
3730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3731 printf "%s\n" "no" >&6; }
3732 fi
3733
3734 if test "x$ac_ct_CC" = x; then
3735 CC=""
3736 else
3737 case $cross_compiling:$ac_tool_warned in
3738 yes:)
3739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3740 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3741 ac_tool_warned=yes ;;
3742 esac
3743 CC=$ac_ct_CC
3744 fi
3745 else
3746 CC="$ac_cv_prog_CC"
3747 fi
3748
3749 if test -z "$CC"; then
3750 if test -n "$ac_tool_prefix"; then
3751 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3752 set dummy ${ac_tool_prefix}cc; ac_word=$2
3753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3754 printf %s "checking for $ac_word... " >&6; }
3755 if test ${ac_cv_prog_CC+y}
3756 then :
3757 printf %s "(cached) " >&6
3758 else case e in #(
3759 e) if test -n "$CC"; then
3760 ac_cv_prog_CC="$CC" # Let the user override the test.
3761 else
3762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3763 for as_dir in $PATH
3764 do
3765 IFS=$as_save_IFS
3766 case $as_dir in #(((
3767 '') as_dir=./ ;;
3768 */) ;;
3769 *) as_dir=$as_dir/ ;;
3770 esac
3771 for ac_exec_ext in '' $ac_executable_extensions; do
3772 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3773 ac_cv_prog_CC="${ac_tool_prefix}cc"
3774 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3775 break 2
3776 fi
3777 done
3778 done
3779 IFS=$as_save_IFS
3780
3781 fi ;;
3782 esac
3783 fi
3784 CC=$ac_cv_prog_CC
3785 if test -n "$CC"; then
3786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3787 printf "%s\n" "$CC" >&6; }
3788 else
3789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3790 printf "%s\n" "no" >&6; }
3791 fi
3792
3793
3794 fi
3795 fi
3796 if test -z "$CC"; then
3797 # Extract the first word of "cc", so it can be a program name with args.
3798 set dummy cc; ac_word=$2
3799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3800 printf %s "checking for $ac_word... " >&6; }
3801 if test ${ac_cv_prog_CC+y}
3802 then :
3803 printf %s "(cached) " >&6
3804 else case e in #(
3805 e) if test -n "$CC"; then
3806 ac_cv_prog_CC="$CC" # Let the user override the test.
3807 else
3808 ac_prog_rejected=no
3809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3810 for as_dir in $PATH
3811 do
3812 IFS=$as_save_IFS
3813 case $as_dir in #(((
3814 '') as_dir=./ ;;
3815 */) ;;
3816 *) as_dir=$as_dir/ ;;
3817 esac
3818 for ac_exec_ext in '' $ac_executable_extensions; do
3819 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3820 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3821 ac_prog_rejected=yes
3822 continue
3823 fi
3824 ac_cv_prog_CC="cc"
3825 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3826 break 2
3827 fi
3828 done
3829 done
3830 IFS=$as_save_IFS
3831
3832 if test $ac_prog_rejected = yes; then
3833 # We found a bogon in the path, so make sure we never use it.
3834 set dummy $ac_cv_prog_CC
3835 shift
3836 if test $# != 0; then
3837 # We chose a different compiler from the bogus one.
3838 # However, it has the same basename, so the bogon will be chosen
3839 # first if we set CC to just the basename; use the full file name.
3840 shift
3841 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3842 fi
3843 fi
3844 fi ;;
3845 esac
3846 fi
3847 CC=$ac_cv_prog_CC
3848 if test -n "$CC"; then
3849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3850 printf "%s\n" "$CC" >&6; }
3851 else
3852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3853 printf "%s\n" "no" >&6; }
3854 fi
3855
3856
3857 fi
3858 if test -z "$CC"; then
3859 if test -n "$ac_tool_prefix"; then
3860 for ac_prog in cl.exe
3861 do
3862 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3863 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3865 printf %s "checking for $ac_word... " >&6; }
3866 if test ${ac_cv_prog_CC+y}
3867 then :
3868 printf %s "(cached) " >&6
3869 else case e in #(
3870 e) if test -n "$CC"; then
3871 ac_cv_prog_CC="$CC" # Let the user override the test.
3872 else
3873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3874 for as_dir in $PATH
3875 do
3876 IFS=$as_save_IFS
3877 case $as_dir in #(((
3878 '') as_dir=./ ;;
3879 */) ;;
3880 *) as_dir=$as_dir/ ;;
3881 esac
3882 for ac_exec_ext in '' $ac_executable_extensions; do
3883 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3884 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3885 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3886 break 2
3887 fi
3888 done
3889 done
3890 IFS=$as_save_IFS
3891
3892 fi ;;
3893 esac
3894 fi
3895 CC=$ac_cv_prog_CC
3896 if test -n "$CC"; then
3897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3898 printf "%s\n" "$CC" >&6; }
3899 else
3900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3901 printf "%s\n" "no" >&6; }
3902 fi
3903
3904
3905 test -n "$CC" && break
3906 done
3907 fi
3908 if test -z "$CC"; then
3909 ac_ct_CC=$CC
3910 for ac_prog in cl.exe
3911 do
3912 # Extract the first word of "$ac_prog", so it can be a program name with args.
3913 set dummy $ac_prog; ac_word=$2
3914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3915 printf %s "checking for $ac_word... " >&6; }
3916 if test ${ac_cv_prog_ac_ct_CC+y}
3917 then :
3918 printf %s "(cached) " >&6
3919 else case e in #(
3920 e) if test -n "$ac_ct_CC"; then
3921 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3922 else
3923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3924 for as_dir in $PATH
3925 do
3926 IFS=$as_save_IFS
3927 case $as_dir in #(((
3928 '') as_dir=./ ;;
3929 */) ;;
3930 *) as_dir=$as_dir/ ;;
3931 esac
3932 for ac_exec_ext in '' $ac_executable_extensions; do
3933 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3934 ac_cv_prog_ac_ct_CC="$ac_prog"
3935 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3936 break 2
3937 fi
3938 done
3939 done
3940 IFS=$as_save_IFS
3941
3942 fi ;;
3943 esac
3944 fi
3945 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3946 if test -n "$ac_ct_CC"; then
3947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3948 printf "%s\n" "$ac_ct_CC" >&6; }
3949 else
3950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3951 printf "%s\n" "no" >&6; }
3952 fi
3953
3954
3955 test -n "$ac_ct_CC" && break
3956 done
3957
3958 if test "x$ac_ct_CC" = x; then
3959 CC=""
3960 else
3961 case $cross_compiling:$ac_tool_warned in
3962 yes:)
3963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3964 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3965 ac_tool_warned=yes ;;
3966 esac
3967 CC=$ac_ct_CC
3968 fi
3969 fi
3970
3971 fi
3972 if test -z "$CC"; then
3973 if test -n "$ac_tool_prefix"; then
3974 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3975 set dummy ${ac_tool_prefix}clang; ac_word=$2
3976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3977 printf %s "checking for $ac_word... " >&6; }
3978 if test ${ac_cv_prog_CC+y}
3979 then :
3980 printf %s "(cached) " >&6
3981 else case e in #(
3982 e) if test -n "$CC"; then
3983 ac_cv_prog_CC="$CC" # Let the user override the test.
3984 else
3985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3986 for as_dir in $PATH
3987 do
3988 IFS=$as_save_IFS
3989 case $as_dir in #(((
3990 '') as_dir=./ ;;
3991 */) ;;
3992 *) as_dir=$as_dir/ ;;
3993 esac
3994 for ac_exec_ext in '' $ac_executable_extensions; do
3995 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3996 ac_cv_prog_CC="${ac_tool_prefix}clang"
3997 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3998 break 2
3999 fi
4000 done
4001 done
4002 IFS=$as_save_IFS
4003
4004 fi ;;
4005 esac
4006 fi
4007 CC=$ac_cv_prog_CC
4008 if test -n "$CC"; then
4009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4010 printf "%s\n" "$CC" >&6; }
4011 else
4012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4013 printf "%s\n" "no" >&6; }
4014 fi
4015
4016
4017 fi
4018 if test -z "$ac_cv_prog_CC"; then
4019 ac_ct_CC=$CC
4020 # Extract the first word of "clang", so it can be a program name with args.
4021 set dummy clang; ac_word=$2
4022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4023 printf %s "checking for $ac_word... " >&6; }
4024 if test ${ac_cv_prog_ac_ct_CC+y}
4025 then :
4026 printf %s "(cached) " >&6
4027 else case e in #(
4028 e) if test -n "$ac_ct_CC"; then
4029 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4030 else
4031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4032 for as_dir in $PATH
4033 do
4034 IFS=$as_save_IFS
4035 case $as_dir in #(((
4036 '') as_dir=./ ;;
4037 */) ;;
4038 *) as_dir=$as_dir/ ;;
4039 esac
4040 for ac_exec_ext in '' $ac_executable_extensions; do
4041 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4042 ac_cv_prog_ac_ct_CC="clang"
4043 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4044 break 2
4045 fi
4046 done
4047 done
4048 IFS=$as_save_IFS
4049
4050 fi ;;
4051 esac
4052 fi
4053 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4054 if test -n "$ac_ct_CC"; then
4055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4056 printf "%s\n" "$ac_ct_CC" >&6; }
4057 else
4058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4059 printf "%s\n" "no" >&6; }
4060 fi
4061
4062 if test "x$ac_ct_CC" = x; then
4063 CC=""
4064 else
4065 case $cross_compiling:$ac_tool_warned in
4066 yes:)
4067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4068 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4069 ac_tool_warned=yes ;;
4070 esac
4071 CC=$ac_ct_CC
4072 fi
4073 else
4074 CC="$ac_cv_prog_CC"
4075 fi
4076
4077 fi
4078
4079
4080 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4081 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4082 as_fn_error $? "no acceptable C compiler found in \$PATH
4083 See 'config.log' for more details" "$LINENO" 5; }
4084
4085 # Provide some information about the compiler.
4086 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4087 set X $ac_compile
4088 ac_compiler=$2
4089 for ac_option in --version -v -V -qversion -version; do
4090 { { ac_try="$ac_compiler $ac_option >&5"
4091 case "(($ac_try" in
4092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4093 *) ac_try_echo=$ac_try;;
4094 esac
4095 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4096 printf "%s\n" "$ac_try_echo"; } >&5
4097 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4098 ac_status=$?
4099 if test -s conftest.err; then
4100 sed '10a\
4101 ... rest of stderr output deleted ...
4102 10q' conftest.err >conftest.er1
4103 cat conftest.er1 >&5
4104 fi
4105 rm -f conftest.er1 conftest.err
4106 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4107 test $ac_status = 0; }
4108 done
4109
4110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4111 /* end confdefs.h. */
4112
4113 int
4114 main (void)
4115 {
4116
4117 ;
4118 return 0;
4119 }
4120 _ACEOF
4121 ac_clean_files_save=$ac_clean_files
4122 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4123 # Try to create an executable without -o first, disregard a.out.
4124 # It will help us diagnose broken compilers, and finding out an intuition
4125 # of exeext.
4126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4127 printf %s "checking whether the C compiler works... " >&6; }
4128 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4129
4130 # The possible output files:
4131 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4132
4133 ac_rmfiles=
4134 for ac_file in $ac_files
4135 do
4136 case $ac_file in
4137 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4138 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4139 esac
4140 done
4141 rm -f $ac_rmfiles
4142
4143 if { { ac_try="$ac_link_default"
4144 case "(($ac_try" in
4145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4146 *) ac_try_echo=$ac_try;;
4147 esac
4148 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4149 printf "%s\n" "$ac_try_echo"; } >&5
4150 (eval "$ac_link_default") 2>&5
4151 ac_status=$?
4152 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4153 test $ac_status = 0; }
4154 then :
4155 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
4156 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
4157 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4158 # so that the user can short-circuit this test for compilers unknown to
4159 # Autoconf.
4160 for ac_file in $ac_files ''
4161 do
4162 test -f "$ac_file" || continue
4163 case $ac_file in
4164 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4165 ;;
4166 [ab].out )
4167 # We found the default executable, but exeext='' is most
4168 # certainly right.
4169 break;;
4170 *.* )
4171 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4172 then :; else
4173 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4174 fi
4175 # We set ac_cv_exeext here because the later test for it is not
4176 # safe: cross compilers may not add the suffix if given an '-o'
4177 # argument, so we may need to know it at that point already.
4178 # Even if this section looks crufty: it has the advantage of
4179 # actually working.
4180 break;;
4181 * )
4182 break;;
4183 esac
4184 done
4185 test "$ac_cv_exeext" = no && ac_cv_exeext=
4186
4187 else case e in #(
4188 e) ac_file='' ;;
4189 esac
4190 fi
4191 if test -z "$ac_file"
4192 then :
4193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4194 printf "%s\n" "no" >&6; }
4195 printf "%s\n" "$as_me: failed program was:" >&5
4196 sed 's/^/| /' conftest.$ac_ext >&5
4197
4198 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4199 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4200 as_fn_error 77 "C compiler cannot create executables
4201 See 'config.log' for more details" "$LINENO" 5; }
4202 else case e in #(
4203 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4204 printf "%s\n" "yes" >&6; } ;;
4205 esac
4206 fi
4207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4208 printf %s "checking for C compiler default output file name... " >&6; }
4209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4210 printf "%s\n" "$ac_file" >&6; }
4211 ac_exeext=$ac_cv_exeext
4212
4213 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4214 ac_clean_files=$ac_clean_files_save
4215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4216 printf %s "checking for suffix of executables... " >&6; }
4217 if { { ac_try="$ac_link"
4218 case "(($ac_try" in
4219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4220 *) ac_try_echo=$ac_try;;
4221 esac
4222 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4223 printf "%s\n" "$ac_try_echo"; } >&5
4224 (eval "$ac_link") 2>&5
4225 ac_status=$?
4226 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4227 test $ac_status = 0; }
4228 then :
4229 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
4230 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
4231 # work properly (i.e., refer to 'conftest.exe'), while it won't with
4232 # 'rm'.
4233 for ac_file in conftest.exe conftest conftest.*; do
4234 test -f "$ac_file" || continue
4235 case $ac_file in
4236 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4237 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4238 break;;
4239 * ) break;;
4240 esac
4241 done
4242 else case e in #(
4243 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4244 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4245 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4246 See 'config.log' for more details" "$LINENO" 5; } ;;
4247 esac
4248 fi
4249 rm -f conftest conftest$ac_cv_exeext
4250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4251 printf "%s\n" "$ac_cv_exeext" >&6; }
4252
4253 rm -f conftest.$ac_ext
4254 EXEEXT=$ac_cv_exeext
4255 ac_exeext=$EXEEXT
4256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4257 /* end confdefs.h. */
4258 #include <stdio.h>
4259 int
4260 main (void)
4261 {
4262 FILE *f = fopen ("conftest.out", "w");
4263 if (!f)
4264 return 1;
4265 return ferror (f) || fclose (f) != 0;
4266
4267 ;
4268 return 0;
4269 }
4270 _ACEOF
4271 ac_clean_files="$ac_clean_files conftest.out"
4272 # Check that the compiler produces executables we can run. If not, either
4273 # the compiler is broken, or we cross compile.
4274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4275 printf %s "checking whether we are cross compiling... " >&6; }
4276 if test "$cross_compiling" != yes; then
4277 { { ac_try="$ac_link"
4278 case "(($ac_try" in
4279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4280 *) ac_try_echo=$ac_try;;
4281 esac
4282 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4283 printf "%s\n" "$ac_try_echo"; } >&5
4284 (eval "$ac_link") 2>&5
4285 ac_status=$?
4286 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4287 test $ac_status = 0; }
4288 if { ac_try='./conftest$ac_cv_exeext'
4289 { { case "(($ac_try" in
4290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4291 *) ac_try_echo=$ac_try;;
4292 esac
4293 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4294 printf "%s\n" "$ac_try_echo"; } >&5
4295 (eval "$ac_try") 2>&5
4296 ac_status=$?
4297 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4298 test $ac_status = 0; }; }; then
4299 cross_compiling=no
4300 else
4301 if test "$cross_compiling" = maybe; then
4302 cross_compiling=yes
4303 else
4304 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4305 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4306 as_fn_error 77 "cannot run C compiled programs.
4307 If you meant to cross compile, use '--host'.
4308 See 'config.log' for more details" "$LINENO" 5; }
4309 fi
4310 fi
4311 fi
4312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4313 printf "%s\n" "$cross_compiling" >&6; }
4314
4315 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4316 conftest.o conftest.obj conftest.out
4317 ac_clean_files=$ac_clean_files_save
4318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4319 printf %s "checking for suffix of object files... " >&6; }
4320 if test ${ac_cv_objext+y}
4321 then :
4322 printf %s "(cached) " >&6
4323 else case e in #(
4324 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4325 /* end confdefs.h. */
4326
4327 int
4328 main (void)
4329 {
4330
4331 ;
4332 return 0;
4333 }
4334 _ACEOF
4335 rm -f conftest.o conftest.obj
4336 if { { ac_try="$ac_compile"
4337 case "(($ac_try" in
4338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4339 *) ac_try_echo=$ac_try;;
4340 esac
4341 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4342 printf "%s\n" "$ac_try_echo"; } >&5
4343 (eval "$ac_compile") 2>&5
4344 ac_status=$?
4345 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4346 test $ac_status = 0; }
4347 then :
4348 for ac_file in conftest.o conftest.obj conftest.*; do
4349 test -f "$ac_file" || continue;
4350 case $ac_file in
4351 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4352 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4353 break;;
4354 esac
4355 done
4356 else case e in #(
4357 e) printf "%s\n" "$as_me: failed program was:" >&5
4358 sed 's/^/| /' conftest.$ac_ext >&5
4359
4360 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4361 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4362 as_fn_error $? "cannot compute suffix of object files: cannot compile
4363 See 'config.log' for more details" "$LINENO" 5; } ;;
4364 esac
4365 fi
4366 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4367 esac
4368 fi
4369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4370 printf "%s\n" "$ac_cv_objext" >&6; }
4371 OBJEXT=$ac_cv_objext
4372 ac_objext=$OBJEXT
4373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4374 printf %s "checking whether the compiler supports GNU C... " >&6; }
4375 if test ${ac_cv_c_compiler_gnu+y}
4376 then :
4377 printf %s "(cached) " >&6
4378 else case e in #(
4379 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4380 /* end confdefs.h. */
4381
4382 int
4383 main (void)
4384 {
4385 #ifndef __GNUC__
4386 choke me
4387 #endif
4388
4389 ;
4390 return 0;
4391 }
4392 _ACEOF
4393 if ac_fn_c_try_compile "$LINENO"
4394 then :
4395 ac_compiler_gnu=yes
4396 else case e in #(
4397 e) ac_compiler_gnu=no ;;
4398 esac
4399 fi
4400 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4401 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4402 ;;
4403 esac
4404 fi
4405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4406 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4407 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4408
4409 if test $ac_compiler_gnu = yes; then
4410 GCC=yes
4411 else
4412 GCC=
4413 fi
4414 ac_test_CFLAGS=${CFLAGS+y}
4415 ac_save_CFLAGS=$CFLAGS
4416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4417 printf %s "checking whether $CC accepts -g... " >&6; }
4418 if test ${ac_cv_prog_cc_g+y}
4419 then :
4420 printf %s "(cached) " >&6
4421 else case e in #(
4422 e) ac_save_c_werror_flag=$ac_c_werror_flag
4423 ac_c_werror_flag=yes
4424 ac_cv_prog_cc_g=no
4425 CFLAGS="-g"
4426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4427 /* end confdefs.h. */
4428
4429 int
4430 main (void)
4431 {
4432
4433 ;
4434 return 0;
4435 }
4436 _ACEOF
4437 if ac_fn_c_try_compile "$LINENO"
4438 then :
4439 ac_cv_prog_cc_g=yes
4440 else case e in #(
4441 e) CFLAGS=""
4442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4443 /* end confdefs.h. */
4444
4445 int
4446 main (void)
4447 {
4448
4449 ;
4450 return 0;
4451 }
4452 _ACEOF
4453 if ac_fn_c_try_compile "$LINENO"
4454 then :
4455
4456 else case e in #(
4457 e) ac_c_werror_flag=$ac_save_c_werror_flag
4458 CFLAGS="-g"
4459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4460 /* end confdefs.h. */
4461
4462 int
4463 main (void)
4464 {
4465
4466 ;
4467 return 0;
4468 }
4469 _ACEOF
4470 if ac_fn_c_try_compile "$LINENO"
4471 then :
4472 ac_cv_prog_cc_g=yes
4473 fi
4474 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4475 esac
4476 fi
4477 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4478 esac
4479 fi
4480 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4481 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4482 esac
4483 fi
4484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4485 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4486 if test $ac_test_CFLAGS; then
4487 CFLAGS=$ac_save_CFLAGS
4488 elif test $ac_cv_prog_cc_g = yes; then
4489 if test "$GCC" = yes; then
4490 CFLAGS="-g -O2"
4491 else
4492 CFLAGS="-g"
4493 fi
4494 else
4495 if test "$GCC" = yes; then
4496 CFLAGS="-O2"
4497 else
4498 CFLAGS=
4499 fi
4500 fi
4501 ac_prog_cc_stdc=no
4502 if test x$ac_prog_cc_stdc = xno
4503 then :
4504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4505 printf %s "checking for $CC option to enable C11 features... " >&6; }
4506 if test ${ac_cv_prog_cc_c11+y}
4507 then :
4508 printf %s "(cached) " >&6
4509 else case e in #(
4510 e) ac_cv_prog_cc_c11=no
4511 ac_save_CC=$CC
4512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4513 /* end confdefs.h. */
4514 $ac_c_conftest_c11_program
4515 _ACEOF
4516 for ac_arg in '' -std=gnu11
4517 do
4518 CC="$ac_save_CC $ac_arg"
4519 if ac_fn_c_try_compile "$LINENO"
4520 then :
4521 ac_cv_prog_cc_c11=$ac_arg
4522 fi
4523 rm -f core conftest.err conftest.$ac_objext conftest.beam
4524 test "x$ac_cv_prog_cc_c11" != "xno" && break
4525 done
4526 rm -f conftest.$ac_ext
4527 CC=$ac_save_CC ;;
4528 esac
4529 fi
4530
4531 if test "x$ac_cv_prog_cc_c11" = xno
4532 then :
4533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4534 printf "%s\n" "unsupported" >&6; }
4535 else case e in #(
4536 e) if test "x$ac_cv_prog_cc_c11" = x
4537 then :
4538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4539 printf "%s\n" "none needed" >&6; }
4540 else case e in #(
4541 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4542 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4543 CC="$CC $ac_cv_prog_cc_c11" ;;
4544 esac
4545 fi
4546 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4547 ac_prog_cc_stdc=c11 ;;
4548 esac
4549 fi
4550 fi
4551 if test x$ac_prog_cc_stdc = xno
4552 then :
4553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4554 printf %s "checking for $CC option to enable C99 features... " >&6; }
4555 if test ${ac_cv_prog_cc_c99+y}
4556 then :
4557 printf %s "(cached) " >&6
4558 else case e in #(
4559 e) ac_cv_prog_cc_c99=no
4560 ac_save_CC=$CC
4561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4562 /* end confdefs.h. */
4563 $ac_c_conftest_c99_program
4564 _ACEOF
4565 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4566 do
4567 CC="$ac_save_CC $ac_arg"
4568 if ac_fn_c_try_compile "$LINENO"
4569 then :
4570 ac_cv_prog_cc_c99=$ac_arg
4571 fi
4572 rm -f core conftest.err conftest.$ac_objext conftest.beam
4573 test "x$ac_cv_prog_cc_c99" != "xno" && break
4574 done
4575 rm -f conftest.$ac_ext
4576 CC=$ac_save_CC ;;
4577 esac
4578 fi
4579
4580 if test "x$ac_cv_prog_cc_c99" = xno
4581 then :
4582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4583 printf "%s\n" "unsupported" >&6; }
4584 else case e in #(
4585 e) if test "x$ac_cv_prog_cc_c99" = x
4586 then :
4587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4588 printf "%s\n" "none needed" >&6; }
4589 else case e in #(
4590 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4591 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4592 CC="$CC $ac_cv_prog_cc_c99" ;;
4593 esac
4594 fi
4595 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4596 ac_prog_cc_stdc=c99 ;;
4597 esac
4598 fi
4599 fi
4600 if test x$ac_prog_cc_stdc = xno
4601 then :
4602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4603 printf %s "checking for $CC option to enable C89 features... " >&6; }
4604 if test ${ac_cv_prog_cc_c89+y}
4605 then :
4606 printf %s "(cached) " >&6
4607 else case e in #(
4608 e) ac_cv_prog_cc_c89=no
4609 ac_save_CC=$CC
4610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4611 /* end confdefs.h. */
4612 $ac_c_conftest_c89_program
4613 _ACEOF
4614 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4615 do
4616 CC="$ac_save_CC $ac_arg"
4617 if ac_fn_c_try_compile "$LINENO"
4618 then :
4619 ac_cv_prog_cc_c89=$ac_arg
4620 fi
4621 rm -f core conftest.err conftest.$ac_objext conftest.beam
4622 test "x$ac_cv_prog_cc_c89" != "xno" && break
4623 done
4624 rm -f conftest.$ac_ext
4625 CC=$ac_save_CC ;;
4626 esac
4627 fi
4628
4629 if test "x$ac_cv_prog_cc_c89" = xno
4630 then :
4631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4632 printf "%s\n" "unsupported" >&6; }
4633 else case e in #(
4634 e) if test "x$ac_cv_prog_cc_c89" = x
4635 then :
4636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4637 printf "%s\n" "none needed" >&6; }
4638 else case e in #(
4639 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4640 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4641 CC="$CC $ac_cv_prog_cc_c89" ;;
4642 esac
4643 fi
4644 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4645 ac_prog_cc_stdc=c89 ;;
4646 esac
4647 fi
4648 fi
4649
4650 ac_ext=c
4651 ac_cpp='$CPP $CPPFLAGS'
4652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4655
4656
4657 ac_ext=c
4658 ac_cpp='$CPP $CPPFLAGS'
4659 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4660 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4661 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4663 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4664 if test ${am_cv_prog_cc_c_o+y}
4665 then :
4666 printf %s "(cached) " >&6
4667 else case e in #(
4668 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4669 /* end confdefs.h. */
4670
4671 int
4672 main (void)
4673 {
4674
4675 ;
4676 return 0;
4677 }
4678 _ACEOF
4679 # Make sure it works both with $CC and with simple cc.
4680 # Following AC_PROG_CC_C_O, we do the test twice because some
4681 # compilers refuse to overwrite an existing .o file with -o,
4682 # though they will create one.
4683 am_cv_prog_cc_c_o=yes
4684 for am_i in 1 2; do
4685 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4686 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4687 ac_status=$?
4688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689 (exit $ac_status); } \
4690 && test -f conftest2.$ac_objext; then
4691 : OK
4692 else
4693 am_cv_prog_cc_c_o=no
4694 break
4695 fi
4696 done
4697 # aligned with autoconf, so not including core; see bug#72225.
4698 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \
4699 conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \
4700 conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM
4701 unset am_i ;;
4702 esac
4703 fi
4704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4705 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4706 if test "$am_cv_prog_cc_c_o" != yes; then
4707 # Losing compiler, so override with the script.
4708 # FIXME: It is wrong to rewrite CC.
4709 # But if we don't then we get into trouble of one sort or another.
4710 # A longer-term fix would be to have automake use am__CC in this case,
4711 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4712 CC="$am_aux_dir/compile $CC"
4713 fi
4714 ac_ext=c
4715 ac_cpp='$CPP $CPPFLAGS'
4716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4719
4720
4721 depcc="$CC" am_compiler_list=
4722
4723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4724 printf %s "checking dependency style of $depcc... " >&6; }
4725 if test ${am_cv_CC_dependencies_compiler_type+y}
4726 then :
4727 printf %s "(cached) " >&6
4728 else case e in #(
4729 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4730 # We make a subdir and do the tests there. Otherwise we can end up
4731 # making bogus files that we don't know about and never remove. For
4732 # instance it was reported that on HP-UX the gcc test will end up
4733 # making a dummy file named 'D' -- because '-MD' means "put the output
4734 # in D".
4735 rm -rf conftest.dir
4736 mkdir conftest.dir
4737 # Copy depcomp to subdir because otherwise we won't find it if we're
4738 # using a relative directory.
4739 cp "$am_depcomp" conftest.dir
4740 cd conftest.dir
4741 # We will build objects and dependencies in a subdirectory because
4742 # it helps to detect inapplicable dependency modes. For instance
4743 # both Tru64's cc and ICC support -MD to output dependencies as a
4744 # side effect of compilation, but ICC will put the dependencies in
4745 # the current directory while Tru64 will put them in the object
4746 # directory.
4747 mkdir sub
4748
4749 am_cv_CC_dependencies_compiler_type=none
4750 if test "$am_compiler_list" = ""; then
4751 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4752 fi
4753 am__universal=false
4754 case " $depcc " in #(
4755 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4756 esac
4757
4758 for depmode in $am_compiler_list; do
4759 # Setup a source with many dependencies, because some compilers
4760 # like to wrap large dependency lists on column 80 (with \), and
4761 # we should not choose a depcomp mode which is confused by this.
4762 #
4763 # We need to recreate these files for each test, as the compiler may
4764 # overwrite some of them when testing with obscure command lines.
4765 # This happens at least with the AIX C compiler.
4766 : > sub/conftest.c
4767 for i in 1 2 3 4 5 6; do
4768 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4769 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4770 # Solaris 10 /bin/sh.
4771 echo '/* dummy */' > sub/conftst$i.h
4772 done
4773 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4774
4775 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4776 # mode. It turns out that the SunPro C++ compiler does not properly
4777 # handle '-M -o', and we need to detect this. Also, some Intel
4778 # versions had trouble with output in subdirs.
4779 am__obj=sub/conftest.${OBJEXT-o}
4780 am__minus_obj="-o $am__obj"
4781 case $depmode in
4782 gcc)
4783 # This depmode causes a compiler race in universal mode.
4784 test "$am__universal" = false || continue
4785 ;;
4786 nosideeffect)
4787 # After this tag, mechanisms are not by side-effect, so they'll
4788 # only be used when explicitly requested.
4789 if test "x$enable_dependency_tracking" = xyes; then
4790 continue
4791 else
4792 break
4793 fi
4794 ;;
4795 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4796 # This compiler won't grok '-c -o', but also, the minuso test has
4797 # not run yet. These depmodes are late enough in the game, and
4798 # so weak that their functioning should not be impacted.
4799 am__obj=conftest.${OBJEXT-o}
4800 am__minus_obj=
4801 ;;
4802 none) break ;;
4803 esac
4804 if depmode=$depmode \
4805 source=sub/conftest.c object=$am__obj \
4806 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4807 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4808 >/dev/null 2>conftest.err &&
4809 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4810 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4811 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4812 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4813 # icc doesn't choke on unknown options, it will just issue warnings
4814 # or remarks (even with -Werror). So we grep stderr for any message
4815 # that says an option was ignored or not supported.
4816 # When given -MP, icc 7.0 and 7.1 complain thus:
4817 # icc: Command line warning: ignoring option '-M'; no argument required
4818 # The diagnosis changed in icc 8.0:
4819 # icc: Command line remark: option '-MP' not supported
4820 if (grep 'ignoring option' conftest.err ||
4821 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4822 am_cv_CC_dependencies_compiler_type=$depmode
4823 break
4824 fi
4825 fi
4826 done
4827
4828 cd ..
4829 rm -rf conftest.dir
4830 else
4831 am_cv_CC_dependencies_compiler_type=none
4832 fi
4833 ;;
4834 esac
4835 fi
4836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4837 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4838 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4839
4840 if
4841 test "x$enable_dependency_tracking" != xno \
4842 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4843 am__fastdepCC_TRUE=
4844 am__fastdepCC_FALSE='#'
4845 else
4846 am__fastdepCC_TRUE='#'
4847 am__fastdepCC_FALSE=
4848 fi
4849
4850
4851
4852 ac_header= ac_cache=
4853 for ac_item in $ac_header_c_list
4854 do
4855 if test $ac_cache; then
4856 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4857 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4858 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4859 fi
4860 ac_header= ac_cache=
4861 elif test $ac_header; then
4862 ac_cache=$ac_item
4863 else
4864 ac_header=$ac_item
4865 fi
4866 done
4867
4868
4869
4870
4871
4872
4873
4874
4875 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4876 then :
4877
4878 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4879
4880 fi
4881
4882
4883
4884
4885
4886
4887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4888 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4889 if test ${ac_cv_safe_to_define___extensions__+y}
4890 then :
4891 printf %s "(cached) " >&6
4892 else case e in #(
4893 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4894 /* end confdefs.h. */
4895
4896 # define __EXTENSIONS__ 1
4897 $ac_includes_default
4898 int
4899 main (void)
4900 {
4901
4902 ;
4903 return 0;
4904 }
4905 _ACEOF
4906 if ac_fn_c_try_compile "$LINENO"
4907 then :
4908 ac_cv_safe_to_define___extensions__=yes
4909 else case e in #(
4910 e) ac_cv_safe_to_define___extensions__=no ;;
4911 esac
4912 fi
4913 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4914 esac
4915 fi
4916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4917 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
4918
4919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4920 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4921 if test ${ac_cv_should_define__xopen_source+y}
4922 then :
4923 printf %s "(cached) " >&6
4924 else case e in #(
4925 e) ac_cv_should_define__xopen_source=no
4926 if test $ac_cv_header_wchar_h = yes
4927 then :
4928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4929 /* end confdefs.h. */
4930
4931 #include <wchar.h>
4932 mbstate_t x;
4933 int
4934 main (void)
4935 {
4936
4937 ;
4938 return 0;
4939 }
4940 _ACEOF
4941 if ac_fn_c_try_compile "$LINENO"
4942 then :
4943
4944 else case e in #(
4945 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4946 /* end confdefs.h. */
4947
4948 #define _XOPEN_SOURCE 500
4949 #include <wchar.h>
4950 mbstate_t x;
4951 int
4952 main (void)
4953 {
4954
4955 ;
4956 return 0;
4957 }
4958 _ACEOF
4959 if ac_fn_c_try_compile "$LINENO"
4960 then :
4961 ac_cv_should_define__xopen_source=yes
4962 fi
4963 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4964 esac
4965 fi
4966 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4967 fi ;;
4968 esac
4969 fi
4970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4971 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
4972
4973 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
4974
4975 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4976
4977 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
4978
4979 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
4980
4981 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
4982
4983 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
4984
4985 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4986
4987 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4988
4989 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4990
4991 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4992
4993 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
4994
4995 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4996
4997 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4998
4999 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
5000
5001 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
5002
5003 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
5004
5005 if test $ac_cv_header_minix_config_h = yes
5006 then :
5007 MINIX=yes
5008 printf "%s\n" "#define _MINIX 1" >>confdefs.h
5009
5010 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
5011
5012 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
5013
5014 else case e in #(
5015 e) MINIX= ;;
5016 esac
5017 fi
5018 if test $ac_cv_safe_to_define___extensions__ = yes
5019 then :
5020 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
5021
5022 fi
5023 if test $ac_cv_should_define__xopen_source = yes
5024 then :
5025 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
5026
5027 fi
5028
5029 # Check whether --enable-compiler-warnings was given.
5030 if test ${enable_compiler_warnings+y}
5031 then :
5032 enableval=$enable_compiler_warnings;
5033 fi
5034 case $enable_compiler_warnings in #(
5035 no | min | yes | max | all) :
5036 ;; #(
5037 *) :
5038 if test "x$enable_maintainer_mode" = xyes
5039 then :
5040 enable_compiler_warnings=yes
5041 else case e in #(
5042 e) enable_compiler_warnings=min ;;
5043 esac
5044 fi ;;
5045 esac
5046
5047 case `pwd` in
5048 *\ * | *\ *)
5049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5050 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5051 esac
5052
5053
5054
5055 macro_version='2.5.4'
5056 macro_revision='2.5.4'
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071 ltmain=$ac_aux_dir/ltmain.sh
5072
5073
5074
5075 # Make sure we can run config.sub.
5076 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
5077 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
5078
5079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5080 printf %s "checking build system type... " >&6; }
5081 if test ${ac_cv_build+y}
5082 then :
5083 printf %s "(cached) " >&6
5084 else case e in #(
5085 e) ac_build_alias=$build_alias
5086 test "x$ac_build_alias" = x &&
5087 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
5088 test "x$ac_build_alias" = x &&
5089 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5090 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
5091 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
5092 ;;
5093 esac
5094 fi
5095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5096 printf "%s\n" "$ac_cv_build" >&6; }
5097 case $ac_cv_build in
5098 *-*-*) ;;
5099 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5100 esac
5101 build=$ac_cv_build
5102 ac_save_IFS=$IFS; IFS='-'
5103 set x $ac_cv_build
5104 shift
5105 build_cpu=$1
5106 build_vendor=$2
5107 shift; shift
5108 # Remember, the first character of IFS is used to create $*,
5109 # except with old shells:
5110 build_os=$*
5111 IFS=$ac_save_IFS
5112 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5113
5114
5115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5116 printf %s "checking host system type... " >&6; }
5117 if test ${ac_cv_host+y}
5118 then :
5119 printf %s "(cached) " >&6
5120 else case e in #(
5121 e) if test "x$host_alias" = x; then
5122 ac_cv_host=$ac_cv_build
5123 else
5124 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
5125 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
5126 fi
5127 ;;
5128 esac
5129 fi
5130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5131 printf "%s\n" "$ac_cv_host" >&6; }
5132 case $ac_cv_host in
5133 *-*-*) ;;
5134 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5135 esac
5136 host=$ac_cv_host
5137 ac_save_IFS=$IFS; IFS='-'
5138 set x $ac_cv_host
5139 shift
5140 host_cpu=$1
5141 host_vendor=$2
5142 shift; shift
5143 # Remember, the first character of IFS is used to create $*,
5144 # except with old shells:
5145 host_os=$*
5146 IFS=$ac_save_IFS
5147 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5148
5149
5150 # Backslashify metacharacters that are still active within
5151 # double-quoted strings.
5152 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5153
5154 # Same as above, but do not quote variable references.
5155 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5156
5157 # Sed substitution to delay expansion of an escaped shell variable in a
5158 # double_quote_subst'ed string.
5159 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5160
5161 # Sed substitution to delay expansion of an escaped single quote.
5162 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5163
5164 # Sed substitution to avoid accidental globbing in evaled expressions
5165 no_glob_subst='s/\*/\\\*/g'
5166
5167 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5168 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5169 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5170
5171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5172 printf %s "checking how to print strings... " >&6; }
5173 # Test print first, because it will be a builtin if present.
5174 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5175 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5176 ECHO='print -r --'
5177 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5178 ECHO='printf %s\n'
5179 else
5180 # Use this function as a fallback that always works.
5181 func_fallback_echo ()
5182 {
5183 eval 'cat <<_LTECHO_EOF
5184 $1
5185 _LTECHO_EOF'
5186 }
5187 ECHO='func_fallback_echo'
5188 fi
5189
5190 # func_echo_all arg...
5191 # Invoke $ECHO with all args, space-separated.
5192 func_echo_all ()
5193 {
5194 $ECHO ""
5195 }
5196
5197 case $ECHO in
5198 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5199 printf "%s\n" "printf" >&6; } ;;
5200 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5201 printf "%s\n" "print -r" >&6; } ;;
5202 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5203 printf "%s\n" "cat" >&6; } ;;
5204 esac
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5220 printf %s "checking for a sed that does not truncate output... " >&6; }
5221 if test ${ac_cv_path_SED+y}
5222 then :
5223 printf %s "(cached) " >&6
5224 else case e in #(
5225 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5226 for ac_i in 1 2 3 4 5 6 7; do
5227 ac_script="$ac_script$as_nl$ac_script"
5228 done
5229 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5230 { ac_script=; unset ac_script;}
5231 if test -z "$SED"; then
5232 ac_path_SED_found=false
5233 # Loop through the user's path and test for each of PROGNAME-LIST
5234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5235 for as_dir in $PATH
5236 do
5237 IFS=$as_save_IFS
5238 case $as_dir in #(((
5239 '') as_dir=./ ;;
5240 */) ;;
5241 *) as_dir=$as_dir/ ;;
5242 esac
5243 for ac_prog in sed gsed
5244 do
5245 for ac_exec_ext in '' $ac_executable_extensions; do
5246 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5247 as_fn_executable_p "$ac_path_SED" || continue
5248 # Check for GNU ac_path_SED and select it if it is found.
5249 # Check for GNU $ac_path_SED
5250 case `"$ac_path_SED" --version 2>&1` in #(
5251 *GNU*)
5252 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5253 #(
5254 *)
5255 ac_count=0
5256 printf %s 0123456789 >"conftest.in"
5257 while :
5258 do
5259 cat "conftest.in" "conftest.in" >"conftest.tmp"
5260 mv "conftest.tmp" "conftest.in"
5261 cp "conftest.in" "conftest.nl"
5262 printf "%s\n" '' >> "conftest.nl"
5263 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5264 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5265 as_fn_arith $ac_count + 1 && ac_count=$as_val
5266 if test $ac_count -gt ${ac_path_SED_max-0}; then
5267 # Best one so far, save it but keep looking for a better one
5268 ac_cv_path_SED="$ac_path_SED"
5269 ac_path_SED_max=$ac_count
5270 fi
5271 # 10*(2^10) chars as input seems more than enough
5272 test $ac_count -gt 10 && break
5273 done
5274 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5275 esac
5276
5277 $ac_path_SED_found && break 3
5278 done
5279 done
5280 done
5281 IFS=$as_save_IFS
5282 if test -z "$ac_cv_path_SED"; then
5283 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5284 fi
5285 else
5286 ac_cv_path_SED=$SED
5287 fi
5288 ;;
5289 esac
5290 fi
5291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5292 printf "%s\n" "$ac_cv_path_SED" >&6; }
5293 SED="$ac_cv_path_SED"
5294 rm -f conftest.sed
5295
5296 test -z "$SED" && SED=sed
5297 Xsed="$SED -e 1s/^X//"
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5310 printf %s "checking for grep that handles long lines and -e... " >&6; }
5311 if test ${ac_cv_path_GREP+y}
5312 then :
5313 printf %s "(cached) " >&6
5314 else case e in #(
5315 e) if test -z "$GREP"; then
5316 ac_path_GREP_found=false
5317 # Loop through the user's path and test for each of PROGNAME-LIST
5318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5319 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5320 do
5321 IFS=$as_save_IFS
5322 case $as_dir in #(((
5323 '') as_dir=./ ;;
5324 */) ;;
5325 *) as_dir=$as_dir/ ;;
5326 esac
5327 for ac_prog in grep ggrep
5328 do
5329 for ac_exec_ext in '' $ac_executable_extensions; do
5330 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5331 as_fn_executable_p "$ac_path_GREP" || continue
5332 # Check for GNU ac_path_GREP and select it if it is found.
5333 # Check for GNU $ac_path_GREP
5334 case `"$ac_path_GREP" --version 2>&1` in #(
5335 *GNU*)
5336 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5337 #(
5338 *)
5339 ac_count=0
5340 printf %s 0123456789 >"conftest.in"
5341 while :
5342 do
5343 cat "conftest.in" "conftest.in" >"conftest.tmp"
5344 mv "conftest.tmp" "conftest.in"
5345 cp "conftest.in" "conftest.nl"
5346 printf "%s\n" 'GREP' >> "conftest.nl"
5347 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5348 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5349 as_fn_arith $ac_count + 1 && ac_count=$as_val
5350 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5351 # Best one so far, save it but keep looking for a better one
5352 ac_cv_path_GREP="$ac_path_GREP"
5353 ac_path_GREP_max=$ac_count
5354 fi
5355 # 10*(2^10) chars as input seems more than enough
5356 test $ac_count -gt 10 && break
5357 done
5358 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5359 esac
5360
5361 $ac_path_GREP_found && break 3
5362 done
5363 done
5364 done
5365 IFS=$as_save_IFS
5366 if test -z "$ac_cv_path_GREP"; then
5367 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5368 fi
5369 else
5370 ac_cv_path_GREP=$GREP
5371 fi
5372 ;;
5373 esac
5374 fi
5375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5376 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5377 GREP="$ac_cv_path_GREP"
5378
5379
5380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5381 printf %s "checking for egrep... " >&6; }
5382 if test ${ac_cv_path_EGREP+y}
5383 then :
5384 printf %s "(cached) " >&6
5385 else case e in #(
5386 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5387 then ac_cv_path_EGREP="$GREP -E"
5388 else
5389 if test -z "$EGREP"; then
5390 ac_path_EGREP_found=false
5391 # Loop through the user's path and test for each of PROGNAME-LIST
5392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5393 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5394 do
5395 IFS=$as_save_IFS
5396 case $as_dir in #(((
5397 '') as_dir=./ ;;
5398 */) ;;
5399 *) as_dir=$as_dir/ ;;
5400 esac
5401 for ac_prog in egrep
5402 do
5403 for ac_exec_ext in '' $ac_executable_extensions; do
5404 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5405 as_fn_executable_p "$ac_path_EGREP" || continue
5406 # Check for GNU ac_path_EGREP and select it if it is found.
5407 # Check for GNU $ac_path_EGREP
5408 case `"$ac_path_EGREP" --version 2>&1` in #(
5409 *GNU*)
5410 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5411 #(
5412 *)
5413 ac_count=0
5414 printf %s 0123456789 >"conftest.in"
5415 while :
5416 do
5417 cat "conftest.in" "conftest.in" >"conftest.tmp"
5418 mv "conftest.tmp" "conftest.in"
5419 cp "conftest.in" "conftest.nl"
5420 printf "%s\n" 'EGREP' >> "conftest.nl"
5421 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5422 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5423 as_fn_arith $ac_count + 1 && ac_count=$as_val
5424 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5425 # Best one so far, save it but keep looking for a better one
5426 ac_cv_path_EGREP="$ac_path_EGREP"
5427 ac_path_EGREP_max=$ac_count
5428 fi
5429 # 10*(2^10) chars as input seems more than enough
5430 test $ac_count -gt 10 && break
5431 done
5432 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5433 esac
5434
5435 $ac_path_EGREP_found && break 3
5436 done
5437 done
5438 done
5439 IFS=$as_save_IFS
5440 if test -z "$ac_cv_path_EGREP"; then
5441 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5442 fi
5443 else
5444 ac_cv_path_EGREP=$EGREP
5445 fi
5446
5447 fi ;;
5448 esac
5449 fi
5450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5451 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5452 EGREP="$ac_cv_path_EGREP"
5453
5454 EGREP_TRADITIONAL=$EGREP
5455 ac_cv_path_EGREP_TRADITIONAL=$EGREP
5456
5457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5458 printf %s "checking for fgrep... " >&6; }
5459 if test ${ac_cv_path_FGREP+y}
5460 then :
5461 printf %s "(cached) " >&6
5462 else case e in #(
5463 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5464 then ac_cv_path_FGREP="$GREP -F"
5465 else
5466 if test -z "$FGREP"; then
5467 ac_path_FGREP_found=false
5468 # Loop through the user's path and test for each of PROGNAME-LIST
5469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5470 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5471 do
5472 IFS=$as_save_IFS
5473 case $as_dir in #(((
5474 '') as_dir=./ ;;
5475 */) ;;
5476 *) as_dir=$as_dir/ ;;
5477 esac
5478 for ac_prog in fgrep
5479 do
5480 for ac_exec_ext in '' $ac_executable_extensions; do
5481 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5482 as_fn_executable_p "$ac_path_FGREP" || continue
5483 # Check for GNU ac_path_FGREP and select it if it is found.
5484 # Check for GNU $ac_path_FGREP
5485 case `"$ac_path_FGREP" --version 2>&1` in #(
5486 *GNU*)
5487 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5488 #(
5489 *)
5490 ac_count=0
5491 printf %s 0123456789 >"conftest.in"
5492 while :
5493 do
5494 cat "conftest.in" "conftest.in" >"conftest.tmp"
5495 mv "conftest.tmp" "conftest.in"
5496 cp "conftest.in" "conftest.nl"
5497 printf "%s\n" 'FGREP' >> "conftest.nl"
5498 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5499 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5500 as_fn_arith $ac_count + 1 && ac_count=$as_val
5501 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5502 # Best one so far, save it but keep looking for a better one
5503 ac_cv_path_FGREP="$ac_path_FGREP"
5504 ac_path_FGREP_max=$ac_count
5505 fi
5506 # 10*(2^10) chars as input seems more than enough
5507 test $ac_count -gt 10 && break
5508 done
5509 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5510 esac
5511
5512 $ac_path_FGREP_found && break 3
5513 done
5514 done
5515 done
5516 IFS=$as_save_IFS
5517 if test -z "$ac_cv_path_FGREP"; then
5518 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5519 fi
5520 else
5521 ac_cv_path_FGREP=$FGREP
5522 fi
5523
5524 fi ;;
5525 esac
5526 fi
5527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5528 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5529 FGREP="$ac_cv_path_FGREP"
5530
5531
5532 test -z "$GREP" && GREP=grep
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552 # Check whether --with-gnu-ld was given.
5553 if test ${with_gnu_ld+y}
5554 then :
5555 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5556 else case e in #(
5557 e) with_gnu_ld=no ;;
5558 esac
5559 fi
5560
5561 ac_prog=ld
5562 if test yes = "$GCC"; then
5563 # Check if gcc -print-prog-name=ld gives a path.
5564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5565 printf %s "checking for ld used by $CC... " >&6; }
5566 case $host in
5567 *-*-mingw* | *-*-windows*)
5568 # gcc leaves a trailing carriage return, which upsets mingw
5569 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5570 *)
5571 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5572 esac
5573 case $ac_prog in
5574 # Accept absolute paths.
5575 [\\/]* | ?:[\\/]*)
5576 re_direlt='/[^/][^/]*/\.\./'
5577 # Canonicalize the pathname of ld
5578 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5579 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5580 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5581 done
5582 test -z "$LD" && LD=$ac_prog
5583 ;;
5584 "")
5585 # If it fails, then pretend we aren't using GCC.
5586 ac_prog=ld
5587 ;;
5588 *)
5589 # If it is relative, then search for the first ld in PATH.
5590 with_gnu_ld=unknown
5591 ;;
5592 esac
5593 elif test yes = "$with_gnu_ld"; then
5594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5595 printf %s "checking for GNU ld... " >&6; }
5596 else
5597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5598 printf %s "checking for non-GNU ld... " >&6; }
5599 fi
5600 if test ${lt_cv_path_LD+y}
5601 then :
5602 printf %s "(cached) " >&6
5603 else case e in #(
5604 e) if test -z "$LD"; then
5605 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5606 for ac_dir in $PATH; do
5607 IFS=$lt_save_ifs
5608 test -z "$ac_dir" && ac_dir=.
5609 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5610 lt_cv_path_LD=$ac_dir/$ac_prog
5611 # Check to see if the program is GNU ld. I'd rather use --version,
5612 # but apparently some variants of GNU ld only accept -v.
5613 # Break only if it was the GNU/non-GNU ld that we prefer.
5614 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5615 *GNU* | *'with BFD'*)
5616 test no != "$with_gnu_ld" && break
5617 ;;
5618 *)
5619 test yes != "$with_gnu_ld" && break
5620 ;;
5621 esac
5622 fi
5623 done
5624 IFS=$lt_save_ifs
5625 else
5626 lt_cv_path_LD=$LD # Let the user override the test with a path.
5627 fi ;;
5628 esac
5629 fi
5630
5631 LD=$lt_cv_path_LD
5632 if test -n "$LD"; then
5633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5634 printf "%s\n" "$LD" >&6; }
5635 else
5636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5637 printf "%s\n" "no" >&6; }
5638 fi
5639 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5641 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5642 if test ${lt_cv_prog_gnu_ld+y}
5643 then :
5644 printf %s "(cached) " >&6
5645 else case e in #(
5646 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
5647 case `$LD -v 2>&1 </dev/null` in
5648 *GNU* | *'with BFD'*)
5649 lt_cv_prog_gnu_ld=yes
5650 ;;
5651 *)
5652 lt_cv_prog_gnu_ld=no
5653 ;;
5654 esac ;;
5655 esac
5656 fi
5657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5658 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5659 with_gnu_ld=$lt_cv_prog_gnu_ld
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5670 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5671 if test ${lt_cv_path_NM+y}
5672 then :
5673 printf %s "(cached) " >&6
5674 else case e in #(
5675 e) if test -n "$NM"; then
5676 # Let the user override the test.
5677 lt_cv_path_NM=$NM
5678 else
5679 lt_nm_to_check=${ac_tool_prefix}nm
5680 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5681 lt_nm_to_check="$lt_nm_to_check nm"
5682 fi
5683 for lt_tmp_nm in $lt_nm_to_check; do
5684 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5685 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5686 IFS=$lt_save_ifs
5687 test -z "$ac_dir" && ac_dir=.
5688 tmp_nm=$ac_dir/$lt_tmp_nm
5689 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5690 # Check to see if the nm accepts a BSD-compat flag.
5691 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5692 # nm: unknown option "B" ignored
5693 # Tru64's nm complains that /dev/null is an invalid object file
5694 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5695 case $build_os in
5696 mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
5697 *) lt_bad_file=/dev/null ;;
5698 esac
5699 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5700 *$lt_bad_file* | *'Invalid file or object type'*)
5701 lt_cv_path_NM="$tmp_nm -B"
5702 break 2
5703 ;;
5704 *)
5705 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5706 */dev/null*)
5707 lt_cv_path_NM="$tmp_nm -p"
5708 break 2
5709 ;;
5710 *)
5711 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5712 continue # so that we can try to find one that supports BSD flags
5713 ;;
5714 esac
5715 ;;
5716 esac
5717 fi
5718 done
5719 IFS=$lt_save_ifs
5720 done
5721 : ${lt_cv_path_NM=no}
5722 fi ;;
5723 esac
5724 fi
5725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5726 printf "%s\n" "$lt_cv_path_NM" >&6; }
5727 if test no != "$lt_cv_path_NM"; then
5728 NM=$lt_cv_path_NM
5729 else
5730 # Didn't find any BSD compatible name lister, look for dumpbin.
5731 if test -n "$DUMPBIN"; then :
5732 # Let the user override the test.
5733 else
5734 if test -n "$ac_tool_prefix"; then
5735 for ac_prog in dumpbin "link -dump"
5736 do
5737 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5738 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5740 printf %s "checking for $ac_word... " >&6; }
5741 if test ${ac_cv_prog_DUMPBIN+y}
5742 then :
5743 printf %s "(cached) " >&6
5744 else case e in #(
5745 e) if test -n "$DUMPBIN"; then
5746 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5747 else
5748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5749 for as_dir in $PATH
5750 do
5751 IFS=$as_save_IFS
5752 case $as_dir in #(((
5753 '') as_dir=./ ;;
5754 */) ;;
5755 *) as_dir=$as_dir/ ;;
5756 esac
5757 for ac_exec_ext in '' $ac_executable_extensions; do
5758 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5759 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5760 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5761 break 2
5762 fi
5763 done
5764 done
5765 IFS=$as_save_IFS
5766
5767 fi ;;
5768 esac
5769 fi
5770 DUMPBIN=$ac_cv_prog_DUMPBIN
5771 if test -n "$DUMPBIN"; then
5772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5773 printf "%s\n" "$DUMPBIN" >&6; }
5774 else
5775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5776 printf "%s\n" "no" >&6; }
5777 fi
5778
5779
5780 test -n "$DUMPBIN" && break
5781 done
5782 fi
5783 if test -z "$DUMPBIN"; then
5784 ac_ct_DUMPBIN=$DUMPBIN
5785 for ac_prog in dumpbin "link -dump"
5786 do
5787 # Extract the first word of "$ac_prog", so it can be a program name with args.
5788 set dummy $ac_prog; ac_word=$2
5789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5790 printf %s "checking for $ac_word... " >&6; }
5791 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5792 then :
5793 printf %s "(cached) " >&6
5794 else case e in #(
5795 e) if test -n "$ac_ct_DUMPBIN"; then
5796 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5797 else
5798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5799 for as_dir in $PATH
5800 do
5801 IFS=$as_save_IFS
5802 case $as_dir in #(((
5803 '') as_dir=./ ;;
5804 */) ;;
5805 *) as_dir=$as_dir/ ;;
5806 esac
5807 for ac_exec_ext in '' $ac_executable_extensions; do
5808 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5809 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5810 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5811 break 2
5812 fi
5813 done
5814 done
5815 IFS=$as_save_IFS
5816
5817 fi ;;
5818 esac
5819 fi
5820 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5821 if test -n "$ac_ct_DUMPBIN"; then
5822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5823 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5824 else
5825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5826 printf "%s\n" "no" >&6; }
5827 fi
5828
5829
5830 test -n "$ac_ct_DUMPBIN" && break
5831 done
5832
5833 if test "x$ac_ct_DUMPBIN" = x; then
5834 DUMPBIN=":"
5835 else
5836 case $cross_compiling:$ac_tool_warned in
5837 yes:)
5838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5839 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5840 ac_tool_warned=yes ;;
5841 esac
5842 DUMPBIN=$ac_ct_DUMPBIN
5843 fi
5844 fi
5845
5846 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5847 *COFF*)
5848 DUMPBIN="$DUMPBIN -symbols -headers"
5849 ;;
5850 *)
5851 DUMPBIN=:
5852 ;;
5853 esac
5854 fi
5855
5856 if test : != "$DUMPBIN"; then
5857 NM=$DUMPBIN
5858 fi
5859 fi
5860 test -z "$NM" && NM=nm
5861
5862
5863
5864
5865
5866
5867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5868 printf %s "checking the name lister ($NM) interface... " >&6; }
5869 if test ${lt_cv_nm_interface+y}
5870 then :
5871 printf %s "(cached) " >&6
5872 else case e in #(
5873 e) lt_cv_nm_interface="BSD nm"
5874 echo "int some_variable = 0;" > conftest.$ac_ext
5875 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5876 (eval "$ac_compile" 2>conftest.err)
5877 cat conftest.err >&5
5878 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5879 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5880 cat conftest.err >&5
5881 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5882 cat conftest.out >&5
5883 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5884 lt_cv_nm_interface="MS dumpbin"
5885 fi
5886 rm -f conftest* ;;
5887 esac
5888 fi
5889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5890 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5891
5892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5893 printf %s "checking whether ln -s works... " >&6; }
5894 LN_S=$as_ln_s
5895 if test "$LN_S" = "ln -s"; then
5896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5897 printf "%s\n" "yes" >&6; }
5898 else
5899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5900 printf "%s\n" "no, using $LN_S" >&6; }
5901 fi
5902
5903 # find the maximum length of command line arguments
5904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5905 printf %s "checking the maximum length of command line arguments... " >&6; }
5906 if test ${lt_cv_sys_max_cmd_len+y}
5907 then :
5908 printf %s "(cached) " >&6
5909 else case e in #(
5910 e) i=0
5911 teststring=ABCD
5912
5913 case $build_os in
5914 msdosdjgpp*)
5915 # On DJGPP, this test can blow up pretty badly due to problems in libc
5916 # (any single argument exceeding 2000 bytes causes a buffer overrun
5917 # during glob expansion). Even if it were fixed, the result of this
5918 # check would be larger than it should be.
5919 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5920 ;;
5921
5922 gnu* | ironclad*)
5923 # Under GNU Hurd and Ironclad, this test is not required because there
5924 # is no limit to the length of command line arguments.
5925 # Libtool will interpret -1 as no limit whatsoever
5926 lt_cv_sys_max_cmd_len=-1;
5927 ;;
5928
5929 cygwin* | mingw* | windows* | cegcc*)
5930 # On Win9x/ME, this test blows up -- it succeeds, but takes
5931 # about 5 minutes as the teststring grows exponentially.
5932 # Worse, since 9x/ME are not pre-emptively multitasking,
5933 # you end up with a "frozen" computer, even though with patience
5934 # the test eventually succeeds (with a max line length of 256k).
5935 # Instead, let's just punt: use the minimum linelength reported by
5936 # all of the supported platforms: 8192 (on NT/2K/XP).
5937 lt_cv_sys_max_cmd_len=8192;
5938 ;;
5939
5940 mint*)
5941 # On MiNT this can take a long time and run out of memory.
5942 lt_cv_sys_max_cmd_len=8192;
5943 ;;
5944
5945 amigaos*)
5946 # On AmigaOS with pdksh, this test takes hours, literally.
5947 # So we just punt and use a minimum line length of 8192.
5948 lt_cv_sys_max_cmd_len=8192;
5949 ;;
5950
5951 darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5952 # This has been around since 386BSD, at least. Likely further.
5953 if test -x /sbin/sysctl; then
5954 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5955 elif test -x /usr/sbin/sysctl; then
5956 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5957 else
5958 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5959 fi
5960 # And add a safety zone
5961 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5962 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5963 ;;
5964
5965 interix*)
5966 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5967 lt_cv_sys_max_cmd_len=196608
5968 ;;
5969
5970 os2*)
5971 # The test takes a long time on OS/2.
5972 lt_cv_sys_max_cmd_len=8192
5973 ;;
5974
5975 osf*)
5976 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5977 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5978 # nice to cause kernel panics so lets avoid the loop below.
5979 # First set a reasonable default.
5980 lt_cv_sys_max_cmd_len=16384
5981 #
5982 if test -x /sbin/sysconfig; then
5983 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5984 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5985 esac
5986 fi
5987 ;;
5988 sco3.2v5*)
5989 lt_cv_sys_max_cmd_len=102400
5990 ;;
5991 sysv5* | sco5v6* | sysv4.2uw2*)
5992 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5993 if test -n "$kargmax"; then
5994 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
5995 else
5996 lt_cv_sys_max_cmd_len=32768
5997 fi
5998 ;;
5999 *)
6000 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6001 if test -n "$lt_cv_sys_max_cmd_len" && \
6002 test undefined != "$lt_cv_sys_max_cmd_len"; then
6003 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6004 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6005 else
6006 # Make teststring a little bigger before we do anything with it.
6007 # a 1K string should be a reasonable start.
6008 for i in 1 2 3 4 5 6 7 8; do
6009 teststring=$teststring$teststring
6010 done
6011 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6012 # If test is not a shell built-in, we'll probably end up computing a
6013 # maximum length that is only half of the actual maximum length, but
6014 # we can't tell.
6015 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6016 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6017 test 17 != "$i" # 1/2 MB should be enough
6018 do
6019 i=`expr $i + 1`
6020 teststring=$teststring$teststring
6021 done
6022 # Only check the string length outside the loop.
6023 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6024 teststring=
6025 # Add a significant safety factor because C++ compilers can tack on
6026 # massive amounts of additional arguments before passing them to the
6027 # linker. It appears as though 1/2 is a usable value.
6028 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6029 fi
6030 ;;
6031 esac
6032 ;;
6033 esac
6034 fi
6035
6036 if test -n "$lt_cv_sys_max_cmd_len"; then
6037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6038 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6039 else
6040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6041 printf "%s\n" "none" >&6; }
6042 fi
6043 max_cmd_len=$lt_cv_sys_max_cmd_len
6044
6045
6046
6047
6048
6049
6050 : ${CP="cp -f"}
6051 : ${MV="mv -f"}
6052 : ${RM="rm -f"}
6053
6054 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6055 lt_unset=unset
6056 else
6057 lt_unset=false
6058 fi
6059
6060
6061
6062
6063
6064 # test EBCDIC or ASCII
6065 case `echo X|tr X '\101'` in
6066 A) # ASCII based system
6067 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6068 lt_SP2NL='tr \040 \012'
6069 lt_NL2SP='tr \015\012 \040\040'
6070 ;;
6071 *) # EBCDIC based system
6072 lt_SP2NL='tr \100 \n'
6073 lt_NL2SP='tr \r\n \100\100'
6074 ;;
6075 esac
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6086 printf %s "checking how to convert $build file names to $host format... " >&6; }
6087 if test ${lt_cv_to_host_file_cmd+y}
6088 then :
6089 printf %s "(cached) " >&6
6090 else case e in #(
6091 e) case $host in
6092 *-*-mingw* )
6093 case $build in
6094 *-*-mingw* | *-*-windows* ) # actually msys
6095 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6096 ;;
6097 *-*-cygwin* )
6098 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6099 ;;
6100 * ) # otherwise, assume *nix
6101 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6102 ;;
6103 esac
6104 ;;
6105 *-*-cygwin* )
6106 case $build in
6107 *-*-mingw* | *-*-windows* ) # actually msys
6108 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6109 ;;
6110 *-*-cygwin* )
6111 lt_cv_to_host_file_cmd=func_convert_file_noop
6112 ;;
6113 * ) # otherwise, assume *nix
6114 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6115 ;;
6116 esac
6117 ;;
6118 * ) # unhandled hosts (and "normal" native builds)
6119 lt_cv_to_host_file_cmd=func_convert_file_noop
6120 ;;
6121 esac
6122 ;;
6123 esac
6124 fi
6125
6126 to_host_file_cmd=$lt_cv_to_host_file_cmd
6127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6128 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6129
6130
6131
6132
6133
6134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6135 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6136 if test ${lt_cv_to_tool_file_cmd+y}
6137 then :
6138 printf %s "(cached) " >&6
6139 else case e in #(
6140 e) #assume ordinary cross tools, or native build.
6141 lt_cv_to_tool_file_cmd=func_convert_file_noop
6142 case $host in
6143 *-*-mingw* | *-*-windows* )
6144 case $build in
6145 *-*-mingw* | *-*-windows* ) # actually msys
6146 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6147 ;;
6148 esac
6149 ;;
6150 esac
6151 ;;
6152 esac
6153 fi
6154
6155 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6157 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6158
6159
6160
6161
6162
6163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6164 printf %s "checking for $LD option to reload object files... " >&6; }
6165 if test ${lt_cv_ld_reload_flag+y}
6166 then :
6167 printf %s "(cached) " >&6
6168 else case e in #(
6169 e) lt_cv_ld_reload_flag='-r' ;;
6170 esac
6171 fi
6172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6173 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6174 reload_flag=$lt_cv_ld_reload_flag
6175 case $reload_flag in
6176 "" | " "*) ;;
6177 *) reload_flag=" $reload_flag" ;;
6178 esac
6179 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6180 case $host_os in
6181 cygwin* | mingw* | windows* | pw32* | cegcc*)
6182 if test yes != "$GCC"; then
6183 reload_cmds=false
6184 fi
6185 ;;
6186 darwin*)
6187 if test yes = "$GCC"; then
6188 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6189 else
6190 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6191 fi
6192 ;;
6193 esac
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203 # Extract the first word of "file", so it can be a program name with args.
6204 set dummy file; ac_word=$2
6205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6206 printf %s "checking for $ac_word... " >&6; }
6207 if test ${ac_cv_prog_FILECMD+y}
6208 then :
6209 printf %s "(cached) " >&6
6210 else case e in #(
6211 e) if test -n "$FILECMD"; then
6212 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
6213 else
6214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6215 for as_dir in $PATH
6216 do
6217 IFS=$as_save_IFS
6218 case $as_dir in #(((
6219 '') as_dir=./ ;;
6220 */) ;;
6221 *) as_dir=$as_dir/ ;;
6222 esac
6223 for ac_exec_ext in '' $ac_executable_extensions; do
6224 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6225 ac_cv_prog_FILECMD="file"
6226 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6227 break 2
6228 fi
6229 done
6230 done
6231 IFS=$as_save_IFS
6232
6233 test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":"
6234 fi ;;
6235 esac
6236 fi
6237 FILECMD=$ac_cv_prog_FILECMD
6238 if test -n "$FILECMD"; then
6239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6240 printf "%s\n" "$FILECMD" >&6; }
6241 else
6242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6243 printf "%s\n" "no" >&6; }
6244 fi
6245
6246
6247
6248
6249
6250
6251
6252
6253 if test -n "$ac_tool_prefix"; then
6254 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6255 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6257 printf %s "checking for $ac_word... " >&6; }
6258 if test ${ac_cv_prog_OBJDUMP+y}
6259 then :
6260 printf %s "(cached) " >&6
6261 else case e in #(
6262 e) if test -n "$OBJDUMP"; then
6263 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6264 else
6265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6266 for as_dir in $PATH
6267 do
6268 IFS=$as_save_IFS
6269 case $as_dir in #(((
6270 '') as_dir=./ ;;
6271 */) ;;
6272 *) as_dir=$as_dir/ ;;
6273 esac
6274 for ac_exec_ext in '' $ac_executable_extensions; do
6275 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6276 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6277 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6278 break 2
6279 fi
6280 done
6281 done
6282 IFS=$as_save_IFS
6283
6284 fi ;;
6285 esac
6286 fi
6287 OBJDUMP=$ac_cv_prog_OBJDUMP
6288 if test -n "$OBJDUMP"; then
6289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6290 printf "%s\n" "$OBJDUMP" >&6; }
6291 else
6292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6293 printf "%s\n" "no" >&6; }
6294 fi
6295
6296
6297 fi
6298 if test -z "$ac_cv_prog_OBJDUMP"; then
6299 ac_ct_OBJDUMP=$OBJDUMP
6300 # Extract the first word of "objdump", so it can be a program name with args.
6301 set dummy objdump; ac_word=$2
6302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6303 printf %s "checking for $ac_word... " >&6; }
6304 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6305 then :
6306 printf %s "(cached) " >&6
6307 else case e in #(
6308 e) if test -n "$ac_ct_OBJDUMP"; then
6309 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6310 else
6311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6312 for as_dir in $PATH
6313 do
6314 IFS=$as_save_IFS
6315 case $as_dir in #(((
6316 '') as_dir=./ ;;
6317 */) ;;
6318 *) as_dir=$as_dir/ ;;
6319 esac
6320 for ac_exec_ext in '' $ac_executable_extensions; do
6321 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6322 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6323 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6324 break 2
6325 fi
6326 done
6327 done
6328 IFS=$as_save_IFS
6329
6330 fi ;;
6331 esac
6332 fi
6333 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6334 if test -n "$ac_ct_OBJDUMP"; then
6335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6336 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6337 else
6338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6339 printf "%s\n" "no" >&6; }
6340 fi
6341
6342 if test "x$ac_ct_OBJDUMP" = x; then
6343 OBJDUMP="false"
6344 else
6345 case $cross_compiling:$ac_tool_warned in
6346 yes:)
6347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6348 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6349 ac_tool_warned=yes ;;
6350 esac
6351 OBJDUMP=$ac_ct_OBJDUMP
6352 fi
6353 else
6354 OBJDUMP="$ac_cv_prog_OBJDUMP"
6355 fi
6356
6357 test -z "$OBJDUMP" && OBJDUMP=objdump
6358
6359
6360
6361
6362
6363
6364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6365 printf %s "checking how to recognize dependent libraries... " >&6; }
6366 if test ${lt_cv_deplibs_check_method+y}
6367 then :
6368 printf %s "(cached) " >&6
6369 else case e in #(
6370 e) lt_cv_file_magic_cmd='$MAGIC_CMD'
6371 lt_cv_file_magic_test_file=
6372 lt_cv_deplibs_check_method='unknown'
6373 # Need to set the preceding variable on all platforms that support
6374 # interlibrary dependencies.
6375 # 'none' -- dependencies not supported.
6376 # 'unknown' -- same as none, but documents that we really don't know.
6377 # 'pass_all' -- all dependencies passed with no checks.
6378 # 'file_magic [[regex]]' -- check by looking for files in library path
6379 # that responds to the $file_magic_cmd with a given extended regex.
6380 # If you have 'file' or equivalent on your system and you're not sure
6381 # whether 'pass_all' will *always* work, you probably want this one.
6382
6383 case $host_os in
6384 aix[4-9]*)
6385 lt_cv_deplibs_check_method=pass_all
6386 ;;
6387
6388 beos*)
6389 lt_cv_deplibs_check_method=pass_all
6390 ;;
6391
6392 bsdi[45]*)
6393 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6394 lt_cv_file_magic_cmd='$FILECMD -L'
6395 lt_cv_file_magic_test_file=/shlib/libc.so
6396 ;;
6397
6398 cygwin*)
6399 # func_win32_libid is a shell function defined in ltmain.sh
6400 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6401 lt_cv_file_magic_cmd='func_win32_libid'
6402 ;;
6403
6404 mingw* | windows* | pw32*)
6405 # Base MSYS/MinGW do not provide the 'file' command needed by
6406 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6407 # unless we find 'file', for example because we are cross-compiling.
6408 if ( file / ) >/dev/null 2>&1; then
6409 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6410 lt_cv_file_magic_cmd='func_win32_libid'
6411 else
6412 # Keep this pattern in sync with the one in func_win32_libid.
6413 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
6414 lt_cv_file_magic_cmd='$OBJDUMP -f'
6415 fi
6416 ;;
6417
6418 cegcc*)
6419 # use the weaker test based on 'objdump'. See mingw*.
6420 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6421 lt_cv_file_magic_cmd='$OBJDUMP -f'
6422 ;;
6423
6424 darwin* | rhapsody*)
6425 lt_cv_deplibs_check_method=pass_all
6426 ;;
6427
6428 freebsd* | dragonfly* | midnightbsd*)
6429 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6430 case $host_cpu in
6431 i*86 )
6432 # Not sure whether the presence of OpenBSD here was a mistake.
6433 # Let's accept both of them until this is cleared up.
6434 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6435 lt_cv_file_magic_cmd=$FILECMD
6436 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6437 ;;
6438 esac
6439 else
6440 lt_cv_deplibs_check_method=pass_all
6441 fi
6442 ;;
6443
6444 haiku*)
6445 lt_cv_deplibs_check_method=pass_all
6446 ;;
6447
6448 hpux10.20* | hpux11*)
6449 lt_cv_file_magic_cmd=$FILECMD
6450 case $host_cpu in
6451 ia64*)
6452 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6453 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6454 ;;
6455 hppa*64*)
6456 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]'
6457 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6458 ;;
6459 *)
6460 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6461 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6462 ;;
6463 esac
6464 ;;
6465
6466 interix[3-9]*)
6467 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6468 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6469 ;;
6470
6471 irix5* | irix6* | nonstopux*)
6472 case $LD in
6473 *-32|*"-32 ") libmagic=32-bit;;
6474 *-n32|*"-n32 ") libmagic=N32;;
6475 *-64|*"-64 ") libmagic=64-bit;;
6476 *) libmagic=never-match;;
6477 esac
6478 lt_cv_deplibs_check_method=pass_all
6479 ;;
6480
6481 # This must be glibc/ELF.
6482 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6483 lt_cv_deplibs_check_method=pass_all
6484 ;;
6485
6486 *-mlibc)
6487 lt_cv_deplibs_check_method=pass_all
6488 ;;
6489
6490 netbsd* | netbsdelf*-gnu)
6491 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6492 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6493 else
6494 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6495 fi
6496 ;;
6497
6498 newos6*)
6499 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6500 lt_cv_file_magic_cmd=$FILECMD
6501 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6502 ;;
6503
6504 *nto* | *qnx*)
6505 lt_cv_deplibs_check_method=pass_all
6506 ;;
6507
6508 openbsd*)
6509 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6510 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6511 else
6512 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6513 fi
6514 ;;
6515
6516 osf3* | osf4* | osf5*)
6517 lt_cv_deplibs_check_method=pass_all
6518 ;;
6519
6520 rdos*)
6521 lt_cv_deplibs_check_method=pass_all
6522 ;;
6523
6524 serenity*)
6525 lt_cv_deplibs_check_method=pass_all
6526 ;;
6527
6528 solaris*)
6529 lt_cv_deplibs_check_method=pass_all
6530 ;;
6531
6532 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6533 lt_cv_deplibs_check_method=pass_all
6534 ;;
6535
6536 sysv4 | sysv4.3*)
6537 case $host_vendor in
6538 motorola)
6539 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]'
6540 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6541 ;;
6542 ncr)
6543 lt_cv_deplibs_check_method=pass_all
6544 ;;
6545 sequent)
6546 lt_cv_file_magic_cmd='/bin/file'
6547 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6548 ;;
6549 sni)
6550 lt_cv_file_magic_cmd='/bin/file'
6551 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6552 lt_cv_file_magic_test_file=/lib/libc.so
6553 ;;
6554 siemens)
6555 lt_cv_deplibs_check_method=pass_all
6556 ;;
6557 pc)
6558 lt_cv_deplibs_check_method=pass_all
6559 ;;
6560 esac
6561 ;;
6562
6563 tpf*)
6564 lt_cv_deplibs_check_method=pass_all
6565 ;;
6566 os2*)
6567 lt_cv_deplibs_check_method=pass_all
6568 ;;
6569 esac
6570 ;;
6571 esac
6572 fi
6573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6574 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6575
6576 file_magic_glob=
6577 want_nocaseglob=no
6578 if test "$build" = "$host"; then
6579 case $host_os in
6580 mingw* | windows* | pw32*)
6581 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6582 want_nocaseglob=yes
6583 else
6584 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6585 fi
6586 ;;
6587 esac
6588 fi
6589
6590 file_magic_cmd=$lt_cv_file_magic_cmd
6591 deplibs_check_method=$lt_cv_deplibs_check_method
6592 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615 if test -n "$ac_tool_prefix"; then
6616 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6617 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6619 printf %s "checking for $ac_word... " >&6; }
6620 if test ${ac_cv_prog_DLLTOOL+y}
6621 then :
6622 printf %s "(cached) " >&6
6623 else case e in #(
6624 e) if test -n "$DLLTOOL"; then
6625 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6626 else
6627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6628 for as_dir in $PATH
6629 do
6630 IFS=$as_save_IFS
6631 case $as_dir in #(((
6632 '') as_dir=./ ;;
6633 */) ;;
6634 *) as_dir=$as_dir/ ;;
6635 esac
6636 for ac_exec_ext in '' $ac_executable_extensions; do
6637 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6638 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6639 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6640 break 2
6641 fi
6642 done
6643 done
6644 IFS=$as_save_IFS
6645
6646 fi ;;
6647 esac
6648 fi
6649 DLLTOOL=$ac_cv_prog_DLLTOOL
6650 if test -n "$DLLTOOL"; then
6651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6652 printf "%s\n" "$DLLTOOL" >&6; }
6653 else
6654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6655 printf "%s\n" "no" >&6; }
6656 fi
6657
6658
6659 fi
6660 if test -z "$ac_cv_prog_DLLTOOL"; then
6661 ac_ct_DLLTOOL=$DLLTOOL
6662 # Extract the first word of "dlltool", so it can be a program name with args.
6663 set dummy dlltool; ac_word=$2
6664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6665 printf %s "checking for $ac_word... " >&6; }
6666 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6667 then :
6668 printf %s "(cached) " >&6
6669 else case e in #(
6670 e) if test -n "$ac_ct_DLLTOOL"; then
6671 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6672 else
6673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6674 for as_dir in $PATH
6675 do
6676 IFS=$as_save_IFS
6677 case $as_dir in #(((
6678 '') as_dir=./ ;;
6679 */) ;;
6680 *) as_dir=$as_dir/ ;;
6681 esac
6682 for ac_exec_ext in '' $ac_executable_extensions; do
6683 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6684 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6685 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6686 break 2
6687 fi
6688 done
6689 done
6690 IFS=$as_save_IFS
6691
6692 fi ;;
6693 esac
6694 fi
6695 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6696 if test -n "$ac_ct_DLLTOOL"; then
6697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6698 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6699 else
6700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6701 printf "%s\n" "no" >&6; }
6702 fi
6703
6704 if test "x$ac_ct_DLLTOOL" = x; then
6705 DLLTOOL="false"
6706 else
6707 case $cross_compiling:$ac_tool_warned in
6708 yes:)
6709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6710 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6711 ac_tool_warned=yes ;;
6712 esac
6713 DLLTOOL=$ac_ct_DLLTOOL
6714 fi
6715 else
6716 DLLTOOL="$ac_cv_prog_DLLTOOL"
6717 fi
6718
6719 test -z "$DLLTOOL" && DLLTOOL=dlltool
6720
6721
6722
6723
6724
6725
6726
6727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6728 printf %s "checking how to associate runtime and link libraries... " >&6; }
6729 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6730 then :
6731 printf %s "(cached) " >&6
6732 else case e in #(
6733 e) lt_cv_sharedlib_from_linklib_cmd='unknown'
6734
6735 case $host_os in
6736 cygwin* | mingw* | windows* | pw32* | cegcc*)
6737 # two different shell functions defined in ltmain.sh;
6738 # decide which one to use based on capabilities of $DLLTOOL
6739 case `$DLLTOOL --help 2>&1` in
6740 *--identify-strict*)
6741 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6742 ;;
6743 *)
6744 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6745 ;;
6746 esac
6747 ;;
6748 *)
6749 # fallback: assume linklib IS sharedlib
6750 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6751 ;;
6752 esac
6753 ;;
6754 esac
6755 fi
6756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6757 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6758 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6759 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6760
6761
6762
6763
6764
6765
6766
6767 if test -n "$ac_tool_prefix"; then
6768 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6769 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6771 printf %s "checking for $ac_word... " >&6; }
6772 if test ${ac_cv_prog_RANLIB+y}
6773 then :
6774 printf %s "(cached) " >&6
6775 else case e in #(
6776 e) if test -n "$RANLIB"; then
6777 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6778 else
6779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6780 for as_dir in $PATH
6781 do
6782 IFS=$as_save_IFS
6783 case $as_dir in #(((
6784 '') as_dir=./ ;;
6785 */) ;;
6786 *) as_dir=$as_dir/ ;;
6787 esac
6788 for ac_exec_ext in '' $ac_executable_extensions; do
6789 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6790 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6791 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6792 break 2
6793 fi
6794 done
6795 done
6796 IFS=$as_save_IFS
6797
6798 fi ;;
6799 esac
6800 fi
6801 RANLIB=$ac_cv_prog_RANLIB
6802 if test -n "$RANLIB"; then
6803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6804 printf "%s\n" "$RANLIB" >&6; }
6805 else
6806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6807 printf "%s\n" "no" >&6; }
6808 fi
6809
6810
6811 fi
6812 if test -z "$ac_cv_prog_RANLIB"; then
6813 ac_ct_RANLIB=$RANLIB
6814 # Extract the first word of "ranlib", so it can be a program name with args.
6815 set dummy ranlib; ac_word=$2
6816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6817 printf %s "checking for $ac_word... " >&6; }
6818 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6819 then :
6820 printf %s "(cached) " >&6
6821 else case e in #(
6822 e) if test -n "$ac_ct_RANLIB"; then
6823 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6824 else
6825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6826 for as_dir in $PATH
6827 do
6828 IFS=$as_save_IFS
6829 case $as_dir in #(((
6830 '') as_dir=./ ;;
6831 */) ;;
6832 *) as_dir=$as_dir/ ;;
6833 esac
6834 for ac_exec_ext in '' $ac_executable_extensions; do
6835 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6836 ac_cv_prog_ac_ct_RANLIB="ranlib"
6837 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6838 break 2
6839 fi
6840 done
6841 done
6842 IFS=$as_save_IFS
6843
6844 fi ;;
6845 esac
6846 fi
6847 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6848 if test -n "$ac_ct_RANLIB"; then
6849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6850 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6851 else
6852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6853 printf "%s\n" "no" >&6; }
6854 fi
6855
6856 if test "x$ac_ct_RANLIB" = x; then
6857 RANLIB=":"
6858 else
6859 case $cross_compiling:$ac_tool_warned in
6860 yes:)
6861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6862 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6863 ac_tool_warned=yes ;;
6864 esac
6865 RANLIB=$ac_ct_RANLIB
6866 fi
6867 else
6868 RANLIB="$ac_cv_prog_RANLIB"
6869 fi
6870
6871 if test -n "$ac_tool_prefix"; then
6872 for ac_prog in ar
6873 do
6874 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6875 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6877 printf %s "checking for $ac_word... " >&6; }
6878 if test ${ac_cv_prog_AR+y}
6879 then :
6880 printf %s "(cached) " >&6
6881 else case e in #(
6882 e) if test -n "$AR"; then
6883 ac_cv_prog_AR="$AR" # Let the user override the test.
6884 else
6885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6886 for as_dir in $PATH
6887 do
6888 IFS=$as_save_IFS
6889 case $as_dir in #(((
6890 '') as_dir=./ ;;
6891 */) ;;
6892 *) as_dir=$as_dir/ ;;
6893 esac
6894 for ac_exec_ext in '' $ac_executable_extensions; do
6895 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6896 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6897 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6898 break 2
6899 fi
6900 done
6901 done
6902 IFS=$as_save_IFS
6903
6904 fi ;;
6905 esac
6906 fi
6907 AR=$ac_cv_prog_AR
6908 if test -n "$AR"; then
6909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6910 printf "%s\n" "$AR" >&6; }
6911 else
6912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6913 printf "%s\n" "no" >&6; }
6914 fi
6915
6916
6917 test -n "$AR" && break
6918 done
6919 fi
6920 if test -z "$AR"; then
6921 ac_ct_AR=$AR
6922 for ac_prog in ar
6923 do
6924 # Extract the first word of "$ac_prog", so it can be a program name with args.
6925 set dummy $ac_prog; ac_word=$2
6926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6927 printf %s "checking for $ac_word... " >&6; }
6928 if test ${ac_cv_prog_ac_ct_AR+y}
6929 then :
6930 printf %s "(cached) " >&6
6931 else case e in #(
6932 e) if test -n "$ac_ct_AR"; then
6933 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6934 else
6935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6936 for as_dir in $PATH
6937 do
6938 IFS=$as_save_IFS
6939 case $as_dir in #(((
6940 '') as_dir=./ ;;
6941 */) ;;
6942 *) as_dir=$as_dir/ ;;
6943 esac
6944 for ac_exec_ext in '' $ac_executable_extensions; do
6945 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6946 ac_cv_prog_ac_ct_AR="$ac_prog"
6947 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6948 break 2
6949 fi
6950 done
6951 done
6952 IFS=$as_save_IFS
6953
6954 fi ;;
6955 esac
6956 fi
6957 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6958 if test -n "$ac_ct_AR"; then
6959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6960 printf "%s\n" "$ac_ct_AR" >&6; }
6961 else
6962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6963 printf "%s\n" "no" >&6; }
6964 fi
6965
6966
6967 test -n "$ac_ct_AR" && break
6968 done
6969
6970 if test "x$ac_ct_AR" = x; then
6971 AR="false"
6972 else
6973 case $cross_compiling:$ac_tool_warned in
6974 yes:)
6975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6976 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6977 ac_tool_warned=yes ;;
6978 esac
6979 AR=$ac_ct_AR
6980 fi
6981 fi
6982
6983 : ${AR=ar}
6984
6985
6986
6987
6988
6989
6990 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
6991 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6992 # higher priority because that's what people were doing historically (setting
6993 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
6994 # variable obsoleted/removed.
6995
6996 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6997 lt_ar_flags=$AR_FLAGS
6998
6999
7000
7001
7002
7003
7004 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
7005 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
7006
7007
7008
7009
7010
7011
7012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7013 printf %s "checking for archiver @FILE support... " >&6; }
7014 if test ${lt_cv_ar_at_file+y}
7015 then :
7016 printf %s "(cached) " >&6
7017 else case e in #(
7018 e) lt_cv_ar_at_file=no
7019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7020 /* end confdefs.h. */
7021
7022 int
7023 main (void)
7024 {
7025
7026 ;
7027 return 0;
7028 }
7029 _ACEOF
7030 if ac_fn_c_try_compile "$LINENO"
7031 then :
7032 echo conftest.$ac_objext > conftest.lst
7033 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7034 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7035 (eval $lt_ar_try) 2>&5
7036 ac_status=$?
7037 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7038 test $ac_status = 0; }
7039 if test 0 -eq "$ac_status"; then
7040 # Ensure the archiver fails upon bogus file names.
7041 rm -f conftest.$ac_objext libconftest.a
7042 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7043 (eval $lt_ar_try) 2>&5
7044 ac_status=$?
7045 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7046 test $ac_status = 0; }
7047 if test 0 -ne "$ac_status"; then
7048 lt_cv_ar_at_file=@
7049 fi
7050 fi
7051 rm -f conftest.* libconftest.a
7052
7053 fi
7054 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7055 ;;
7056 esac
7057 fi
7058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7059 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
7060
7061 if test no = "$lt_cv_ar_at_file"; then
7062 archiver_list_spec=
7063 else
7064 archiver_list_spec=$lt_cv_ar_at_file
7065 fi
7066
7067
7068
7069
7070
7071
7072
7073 if test -n "$ac_tool_prefix"; then
7074 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7075 set dummy ${ac_tool_prefix}strip; ac_word=$2
7076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7077 printf %s "checking for $ac_word... " >&6; }
7078 if test ${ac_cv_prog_STRIP+y}
7079 then :
7080 printf %s "(cached) " >&6
7081 else case e in #(
7082 e) if test -n "$STRIP"; then
7083 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7084 else
7085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7086 for as_dir in $PATH
7087 do
7088 IFS=$as_save_IFS
7089 case $as_dir in #(((
7090 '') as_dir=./ ;;
7091 */) ;;
7092 *) as_dir=$as_dir/ ;;
7093 esac
7094 for ac_exec_ext in '' $ac_executable_extensions; do
7095 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7096 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7097 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7098 break 2
7099 fi
7100 done
7101 done
7102 IFS=$as_save_IFS
7103
7104 fi ;;
7105 esac
7106 fi
7107 STRIP=$ac_cv_prog_STRIP
7108 if test -n "$STRIP"; then
7109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7110 printf "%s\n" "$STRIP" >&6; }
7111 else
7112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7113 printf "%s\n" "no" >&6; }
7114 fi
7115
7116
7117 fi
7118 if test -z "$ac_cv_prog_STRIP"; then
7119 ac_ct_STRIP=$STRIP
7120 # Extract the first word of "strip", so it can be a program name with args.
7121 set dummy strip; ac_word=$2
7122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7123 printf %s "checking for $ac_word... " >&6; }
7124 if test ${ac_cv_prog_ac_ct_STRIP+y}
7125 then :
7126 printf %s "(cached) " >&6
7127 else case e in #(
7128 e) if test -n "$ac_ct_STRIP"; then
7129 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7130 else
7131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7132 for as_dir in $PATH
7133 do
7134 IFS=$as_save_IFS
7135 case $as_dir in #(((
7136 '') as_dir=./ ;;
7137 */) ;;
7138 *) as_dir=$as_dir/ ;;
7139 esac
7140 for ac_exec_ext in '' $ac_executable_extensions; do
7141 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7142 ac_cv_prog_ac_ct_STRIP="strip"
7143 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7144 break 2
7145 fi
7146 done
7147 done
7148 IFS=$as_save_IFS
7149
7150 fi ;;
7151 esac
7152 fi
7153 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7154 if test -n "$ac_ct_STRIP"; then
7155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7156 printf "%s\n" "$ac_ct_STRIP" >&6; }
7157 else
7158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7159 printf "%s\n" "no" >&6; }
7160 fi
7161
7162 if test "x$ac_ct_STRIP" = x; then
7163 STRIP=":"
7164 else
7165 case $cross_compiling:$ac_tool_warned in
7166 yes:)
7167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7168 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7169 ac_tool_warned=yes ;;
7170 esac
7171 STRIP=$ac_ct_STRIP
7172 fi
7173 else
7174 STRIP="$ac_cv_prog_STRIP"
7175 fi
7176
7177 test -z "$STRIP" && STRIP=:
7178
7179
7180
7181
7182
7183
7184
7185 test -z "$RANLIB" && RANLIB=:
7186
7187
7188
7189
7190
7191
7192 # Determine commands to create old-style static archives.
7193 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7194 old_postinstall_cmds='chmod 644 $oldlib'
7195 old_postuninstall_cmds=
7196
7197 if test -n "$RANLIB"; then
7198 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7199 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7200 fi
7201
7202 case $host_os in
7203 darwin*)
7204 lock_old_archive_extraction=yes ;;
7205 *)
7206 lock_old_archive_extraction=no ;;
7207 esac
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247 # If no C compiler was specified, use CC.
7248 LTCC=${LTCC-"$CC"}
7249
7250 # If no C compiler flags were specified, use CFLAGS.
7251 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7252
7253 # Allow CC to be a program name with arguments.
7254 compiler=$CC
7255
7256
7257 # Check for command to grab the raw symbol name followed by C symbol from nm.
7258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7259 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7260 if test ${lt_cv_sys_global_symbol_pipe+y}
7261 then :
7262 printf %s "(cached) " >&6
7263 else case e in #(
7264 e)
7265 # These are sane defaults that work on at least a few old systems.
7266 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7267
7268 # Character class describing NM global symbol codes.
7269 symcode='[BCDEGRST]'
7270
7271 # Regexp to match symbols that can be accessed directly from C.
7272 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7273
7274 # Define system-specific variables.
7275 case $host_os in
7276 aix*)
7277 symcode='[BCDT]'
7278 ;;
7279 cygwin* | mingw* | windows* | pw32* | cegcc*)
7280 symcode='[ABCDGISTW]'
7281 ;;
7282 hpux*)
7283 if test ia64 = "$host_cpu"; then
7284 symcode='[ABCDEGRST]'
7285 fi
7286 ;;
7287 irix* | nonstopux*)
7288 symcode='[BCDEGRST]'
7289 ;;
7290 osf*)
7291 symcode='[BCDEGQRST]'
7292 ;;
7293 solaris*)
7294 symcode='[BCDRT]'
7295 ;;
7296 sco3.2v5*)
7297 symcode='[DT]'
7298 ;;
7299 sysv4.2uw2*)
7300 symcode='[DT]'
7301 ;;
7302 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7303 symcode='[ABDT]'
7304 ;;
7305 sysv4)
7306 symcode='[DFNSTU]'
7307 ;;
7308 esac
7309
7310 # If we're using GNU nm, then use its standard symbol codes.
7311 case `$NM -V 2>&1` in
7312 *GNU* | *'with BFD'*)
7313 symcode='[ABCDGIRSTW]' ;;
7314 esac
7315
7316 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7317 # Gets list of data symbols to import.
7318 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7319 # Adjust the below global symbol transforms to fixup imported variables.
7320 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7321 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7322 lt_c_name_lib_hook="\
7323 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7324 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7325 else
7326 # Disable hooks by default.
7327 lt_cv_sys_global_symbol_to_import=
7328 lt_cdecl_hook=
7329 lt_c_name_hook=
7330 lt_c_name_lib_hook=
7331 fi
7332
7333 # Transform an extracted symbol line into a proper C declaration.
7334 # Some systems (esp. on ia64) link data and code symbols differently,
7335 # so use this general approach.
7336 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7337 $lt_cdecl_hook\
7338 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7339 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7340
7341 # Transform an extracted symbol line into symbol name and symbol address
7342 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7343 $lt_c_name_hook\
7344 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7345 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7346
7347 # Transform an extracted symbol line into symbol name with lib prefix and
7348 # symbol address.
7349 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7350 $lt_c_name_lib_hook\
7351 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7352 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7353 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7354
7355 # Handle CRLF in mingw tool chain
7356 opt_cr=
7357 case $build_os in
7358 mingw* | windows*)
7359 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7360 ;;
7361 esac
7362
7363 # Try without a prefix underscore, then with it.
7364 for ac_symprfx in "" "_"; do
7365
7366 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7367 symxfrm="\\1 $ac_symprfx\\2 \\2"
7368
7369 # Write the raw and C identifiers.
7370 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7371 # Fake it for dumpbin and say T for any non-static function,
7372 # D for any global variable and I for any imported variable.
7373 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7374 # which start with @ or ?.
7375 lt_cv_sys_global_symbol_pipe="$AWK '"\
7376 " {last_section=section; section=\$ 3};"\
7377 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7378 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7379 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7380 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7381 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7382 " \$ 0!~/External *\|/{next};"\
7383 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7384 " {if(hide[section]) next};"\
7385 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7386 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7387 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7388 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7389 " ' prfx=^$ac_symprfx"
7390 else
7391 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7392 fi
7393 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7394
7395 # Check to see that the pipe works correctly.
7396 pipe_works=no
7397
7398 rm -f conftest*
7399 cat > conftest.$ac_ext <<_LT_EOF
7400 #ifdef __cplusplus
7401 extern "C" {
7402 #endif
7403 char nm_test_var;
7404 void nm_test_func(void);
7405 void nm_test_func(void){}
7406 #ifdef __cplusplus
7407 }
7408 #endif
7409 int main(void){nm_test_var='a';nm_test_func();return(0);}
7410 _LT_EOF
7411
7412 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7413 (eval $ac_compile) 2>&5
7414 ac_status=$?
7415 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7416 test $ac_status = 0; }; then
7417 # Now try to grab the symbols.
7418 nlist=conftest.nm
7419 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7420 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7421 # Try sorting and uniquifying the output.
7422 if sort "$nlist" | uniq > "$nlist"T; then
7423 mv -f "$nlist"T "$nlist"
7424 else
7425 rm -f "$nlist"T
7426 fi
7427
7428 # Make sure that we snagged all the symbols we need.
7429 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7430 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7431 cat <<_LT_EOF > conftest.$ac_ext
7432 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7433 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7434 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7435 relocations are performed -- see ld's documentation on pseudo-relocs. */
7436 # define LT_DLSYM_CONST
7437 #elif defined __osf__
7438 /* This system does not cope well with relocations in const data. */
7439 # define LT_DLSYM_CONST
7440 #else
7441 # define LT_DLSYM_CONST const
7442 #endif
7443
7444 #ifdef __cplusplus
7445 extern "C" {
7446 #endif
7447
7448 _LT_EOF
7449 # Now generate the symbol file.
7450 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7451
7452 cat <<_LT_EOF >> conftest.$ac_ext
7453
7454 /* The mapping between symbol names and symbols. */
7455 LT_DLSYM_CONST struct {
7456 const char *name;
7457 void *address;
7458 }
7459 lt__PROGRAM__LTX_preloaded_symbols[] =
7460 {
7461 { "@PROGRAM@", (void *) 0 },
7462 _LT_EOF
7463 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7464 cat <<\_LT_EOF >> conftest.$ac_ext
7465 {0, (void *) 0}
7466 };
7467
7468 /* This works around a problem in FreeBSD linker */
7469 #ifdef FREEBSD_WORKAROUND
7470 static const void *lt_preloaded_setup() {
7471 return lt__PROGRAM__LTX_preloaded_symbols;
7472 }
7473 #endif
7474
7475 #ifdef __cplusplus
7476 }
7477 #endif
7478 _LT_EOF
7479 # Now try linking the two files.
7480 mv conftest.$ac_objext conftstm.$ac_objext
7481 lt_globsym_save_LIBS=$LIBS
7482 lt_globsym_save_CFLAGS=$CFLAGS
7483 LIBS=conftstm.$ac_objext
7484 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7485 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7486 (eval $ac_link) 2>&5
7487 ac_status=$?
7488 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7489 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7490 pipe_works=yes
7491 fi
7492 LIBS=$lt_globsym_save_LIBS
7493 CFLAGS=$lt_globsym_save_CFLAGS
7494 else
7495 echo "cannot find nm_test_func in $nlist" >&5
7496 fi
7497 else
7498 echo "cannot find nm_test_var in $nlist" >&5
7499 fi
7500 else
7501 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7502 fi
7503 else
7504 echo "$progname: failed program was:" >&5
7505 cat conftest.$ac_ext >&5
7506 fi
7507 rm -rf conftest* conftst*
7508
7509 # Do not use the global_symbol_pipe unless it works.
7510 if test yes = "$pipe_works"; then
7511 break
7512 else
7513 lt_cv_sys_global_symbol_pipe=
7514 fi
7515 done
7516 ;;
7517 esac
7518 fi
7519
7520 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7521 lt_cv_sys_global_symbol_to_cdecl=
7522 fi
7523 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7525 printf "%s\n" "failed" >&6; }
7526 else
7527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7528 printf "%s\n" "ok" >&6; }
7529 fi
7530
7531 # Response file support.
7532 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7533 nm_file_list_spec='@'
7534 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7535 nm_file_list_spec='@'
7536 fi
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7575 printf %s "checking for sysroot... " >&6; }
7576
7577 # Check whether --with-sysroot was given.
7578 if test ${with_sysroot+y}
7579 then :
7580 withval=$with_sysroot;
7581 else case e in #(
7582 e) with_sysroot=no ;;
7583 esac
7584 fi
7585
7586
7587 lt_sysroot=
7588 case $with_sysroot in #(
7589 yes)
7590 if test yes = "$GCC"; then
7591 # Trim trailing / since we'll always append absolute paths and we want
7592 # to avoid //, if only for less confusing output for the user.
7593 lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`
7594 fi
7595 ;; #(
7596 /*)
7597 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7598 ;; #(
7599 no|'')
7600 ;; #(
7601 *)
7602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7603 printf "%s\n" "$with_sysroot" >&6; }
7604 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7605 ;;
7606 esac
7607
7608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7609 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7610
7611
7612
7613
7614
7615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7616 printf %s "checking for a working dd... " >&6; }
7617 if test ${ac_cv_path_lt_DD+y}
7618 then :
7619 printf %s "(cached) " >&6
7620 else case e in #(
7621 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7622 cat conftest.i conftest.i >conftest2.i
7623 : ${lt_DD:=$DD}
7624 if test -z "$lt_DD"; then
7625 ac_path_lt_DD_found=false
7626 # Loop through the user's path and test for each of PROGNAME-LIST
7627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7628 for as_dir in $PATH
7629 do
7630 IFS=$as_save_IFS
7631 case $as_dir in #(((
7632 '') as_dir=./ ;;
7633 */) ;;
7634 *) as_dir=$as_dir/ ;;
7635 esac
7636 for ac_prog in dd
7637 do
7638 for ac_exec_ext in '' $ac_executable_extensions; do
7639 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7640 as_fn_executable_p "$ac_path_lt_DD" || continue
7641 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7642 cmp -s conftest.i conftest.out \
7643 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7644 fi
7645 $ac_path_lt_DD_found && break 3
7646 done
7647 done
7648 done
7649 IFS=$as_save_IFS
7650 if test -z "$ac_cv_path_lt_DD"; then
7651 :
7652 fi
7653 else
7654 ac_cv_path_lt_DD=$lt_DD
7655 fi
7656
7657 rm -f conftest.i conftest2.i conftest.out ;;
7658 esac
7659 fi
7660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7661 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7662
7663
7664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7665 printf %s "checking how to truncate binary pipes... " >&6; }
7666 if test ${lt_cv_truncate_bin+y}
7667 then :
7668 printf %s "(cached) " >&6
7669 else case e in #(
7670 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7671 cat conftest.i conftest.i >conftest2.i
7672 lt_cv_truncate_bin=
7673 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7674 cmp -s conftest.i conftest.out \
7675 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7676 fi
7677 rm -f conftest.i conftest2.i conftest.out
7678 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
7679 esac
7680 fi
7681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7682 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7683
7684
7685
7686
7687
7688
7689
7690 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7691 func_cc_basename ()
7692 {
7693 for cc_temp in $*""; do
7694 case $cc_temp in
7695 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7696 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7697 \-*) ;;
7698 *) break;;
7699 esac
7700 done
7701 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7702 }
7703
7704 # Check whether --enable-libtool-lock was given.
7705 if test ${enable_libtool_lock+y}
7706 then :
7707 enableval=$enable_libtool_lock;
7708 fi
7709
7710 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7711
7712 # Some flags need to be propagated to the compiler or linker for good
7713 # libtool support.
7714 case $host in
7715 ia64-*-hpux*)
7716 # Find out what ABI is being produced by ac_compile, and set mode
7717 # options accordingly.
7718 echo 'int i;' > conftest.$ac_ext
7719 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7720 (eval $ac_compile) 2>&5
7721 ac_status=$?
7722 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7723 test $ac_status = 0; }; then
7724 case `$FILECMD conftest.$ac_objext` in
7725 *ELF-32*)
7726 HPUX_IA64_MODE=32
7727 ;;
7728 *ELF-64*)
7729 HPUX_IA64_MODE=64
7730 ;;
7731 esac
7732 fi
7733 rm -rf conftest*
7734 ;;
7735 *-*-irix6*)
7736 # Find out what ABI is being produced by ac_compile, and set linker
7737 # options accordingly.
7738 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7739 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7740 (eval $ac_compile) 2>&5
7741 ac_status=$?
7742 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7743 test $ac_status = 0; }; then
7744 if test yes = "$lt_cv_prog_gnu_ld"; then
7745 case `$FILECMD conftest.$ac_objext` in
7746 *32-bit*)
7747 LD="${LD-ld} -melf32bsmip"
7748 ;;
7749 *N32*)
7750 LD="${LD-ld} -melf32bmipn32"
7751 ;;
7752 *64-bit*)
7753 LD="${LD-ld} -melf64bmip"
7754 ;;
7755 esac
7756 else
7757 case `$FILECMD conftest.$ac_objext` in
7758 *32-bit*)
7759 LD="${LD-ld} -32"
7760 ;;
7761 *N32*)
7762 LD="${LD-ld} -n32"
7763 ;;
7764 *64-bit*)
7765 LD="${LD-ld} -64"
7766 ;;
7767 esac
7768 fi
7769 fi
7770 rm -rf conftest*
7771 ;;
7772
7773 mips64*-*linux*)
7774 # Find out what ABI is being produced by ac_compile, and set linker
7775 # options accordingly.
7776 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7777 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7778 (eval $ac_compile) 2>&5
7779 ac_status=$?
7780 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7781 test $ac_status = 0; }; then
7782 emul=elf
7783 case `$FILECMD conftest.$ac_objext` in
7784 *32-bit*)
7785 emul="${emul}32"
7786 ;;
7787 *64-bit*)
7788 emul="${emul}64"
7789 ;;
7790 esac
7791 case `$FILECMD conftest.$ac_objext` in
7792 *MSB*)
7793 emul="${emul}btsmip"
7794 ;;
7795 *LSB*)
7796 emul="${emul}ltsmip"
7797 ;;
7798 esac
7799 case `$FILECMD conftest.$ac_objext` in
7800 *N32*)
7801 emul="${emul}n32"
7802 ;;
7803 esac
7804 LD="${LD-ld} -m $emul"
7805 fi
7806 rm -rf conftest*
7807 ;;
7808
7809 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7810 s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
7811 # Find out what ABI is being produced by ac_compile, and set linker
7812 # options accordingly. Note that the listed cases only cover the
7813 # situations where additional linker options are needed (such as when
7814 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7815 # vice versa); the common cases where no linker options are needed do
7816 # not appear in the list.
7817 echo 'int i;' > conftest.$ac_ext
7818 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7819 (eval $ac_compile) 2>&5
7820 ac_status=$?
7821 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7822 test $ac_status = 0; }; then
7823 case `$FILECMD conftest.o` in
7824 *32-bit*)
7825 case $host in
7826 x86_64-*kfreebsd*-gnu)
7827 LD="${LD-ld} -m elf_i386_fbsd"
7828 ;;
7829 x86_64-*linux*|x86_64-gnu*)
7830 case `$FILECMD conftest.o` in
7831 *x86-64*)
7832 LD="${LD-ld} -m elf32_x86_64"
7833 ;;
7834 *)
7835 LD="${LD-ld} -m elf_i386"
7836 ;;
7837 esac
7838 ;;
7839 powerpc64le-*linux*)
7840 LD="${LD-ld} -m elf32lppclinux"
7841 ;;
7842 powerpc64-*linux*)
7843 LD="${LD-ld} -m elf32ppclinux"
7844 ;;
7845 s390x-*linux*)
7846 LD="${LD-ld} -m elf_s390"
7847 ;;
7848 sparc64-*linux*)
7849 LD="${LD-ld} -m elf32_sparc"
7850 ;;
7851 esac
7852 ;;
7853 *64-bit*)
7854 case $host in
7855 x86_64-*kfreebsd*-gnu)
7856 LD="${LD-ld} -m elf_x86_64_fbsd"
7857 ;;
7858 x86_64-*linux*|x86_64-gnu*)
7859 LD="${LD-ld} -m elf_x86_64"
7860 ;;
7861 powerpcle-*linux*)
7862 LD="${LD-ld} -m elf64lppc"
7863 ;;
7864 powerpc-*linux*)
7865 LD="${LD-ld} -m elf64ppc"
7866 ;;
7867 s390*-*linux*|s390*-*tpf*)
7868 LD="${LD-ld} -m elf64_s390"
7869 ;;
7870 sparc*-*linux*)
7871 LD="${LD-ld} -m elf64_sparc"
7872 ;;
7873 esac
7874 ;;
7875 esac
7876 fi
7877 rm -rf conftest*
7878 ;;
7879
7880 *-*-sco3.2v5*)
7881 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7882 SAVE_CFLAGS=$CFLAGS
7883 CFLAGS="$CFLAGS -belf"
7884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7885 printf %s "checking whether the C compiler needs -belf... " >&6; }
7886 if test ${lt_cv_cc_needs_belf+y}
7887 then :
7888 printf %s "(cached) " >&6
7889 else case e in #(
7890 e) ac_ext=c
7891 ac_cpp='$CPP $CPPFLAGS'
7892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7895
7896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7897 /* end confdefs.h. */
7898
7899 int
7900 main (void)
7901 {
7902
7903 ;
7904 return 0;
7905 }
7906 _ACEOF
7907 if ac_fn_c_try_link "$LINENO"
7908 then :
7909 lt_cv_cc_needs_belf=yes
7910 else case e in #(
7911 e) lt_cv_cc_needs_belf=no ;;
7912 esac
7913 fi
7914 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7915 conftest$ac_exeext conftest.$ac_ext
7916 ac_ext=c
7917 ac_cpp='$CPP $CPPFLAGS'
7918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7921 ;;
7922 esac
7923 fi
7924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7925 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7926 if test yes != "$lt_cv_cc_needs_belf"; then
7927 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7928 CFLAGS=$SAVE_CFLAGS
7929 fi
7930 ;;
7931 *-*solaris*)
7932 # Find out what ABI is being produced by ac_compile, and set linker
7933 # options accordingly.
7934 echo 'int i;' > conftest.$ac_ext
7935 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7936 (eval $ac_compile) 2>&5
7937 ac_status=$?
7938 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7939 test $ac_status = 0; }; then
7940 case `$FILECMD conftest.o` in
7941 *64-bit*)
7942 case $lt_cv_prog_gnu_ld in
7943 yes*)
7944 case $host in
7945 i?86-*-solaris*|x86_64-*-solaris*)
7946 LD="${LD-ld} -m elf_x86_64"
7947 ;;
7948 sparc*-*-solaris*)
7949 LD="${LD-ld} -m elf64_sparc"
7950 ;;
7951 esac
7952 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7953 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7954 LD=${LD-ld}_sol2
7955 fi
7956 ;;
7957 *)
7958 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7959 LD="${LD-ld} -64"
7960 fi
7961 ;;
7962 esac
7963 ;;
7964 esac
7965 fi
7966 rm -rf conftest*
7967 ;;
7968 esac
7969
7970 need_locks=$enable_libtool_lock
7971
7972 if test -n "$ac_tool_prefix"; then
7973 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7974 set dummy ${ac_tool_prefix}mt; ac_word=$2
7975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7976 printf %s "checking for $ac_word... " >&6; }
7977 if test ${ac_cv_prog_MANIFEST_TOOL+y}
7978 then :
7979 printf %s "(cached) " >&6
7980 else case e in #(
7981 e) if test -n "$MANIFEST_TOOL"; then
7982 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7983 else
7984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7985 for as_dir in $PATH
7986 do
7987 IFS=$as_save_IFS
7988 case $as_dir in #(((
7989 '') as_dir=./ ;;
7990 */) ;;
7991 *) as_dir=$as_dir/ ;;
7992 esac
7993 for ac_exec_ext in '' $ac_executable_extensions; do
7994 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7995 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7996 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7997 break 2
7998 fi
7999 done
8000 done
8001 IFS=$as_save_IFS
8002
8003 fi ;;
8004 esac
8005 fi
8006 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8007 if test -n "$MANIFEST_TOOL"; then
8008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8009 printf "%s\n" "$MANIFEST_TOOL" >&6; }
8010 else
8011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8012 printf "%s\n" "no" >&6; }
8013 fi
8014
8015
8016 fi
8017 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8018 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8019 # Extract the first word of "mt", so it can be a program name with args.
8020 set dummy mt; ac_word=$2
8021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8022 printf %s "checking for $ac_word... " >&6; }
8023 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8024 then :
8025 printf %s "(cached) " >&6
8026 else case e in #(
8027 e) if test -n "$ac_ct_MANIFEST_TOOL"; then
8028 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8029 else
8030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8031 for as_dir in $PATH
8032 do
8033 IFS=$as_save_IFS
8034 case $as_dir in #(((
8035 '') as_dir=./ ;;
8036 */) ;;
8037 *) as_dir=$as_dir/ ;;
8038 esac
8039 for ac_exec_ext in '' $ac_executable_extensions; do
8040 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8041 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8042 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8043 break 2
8044 fi
8045 done
8046 done
8047 IFS=$as_save_IFS
8048
8049 fi ;;
8050 esac
8051 fi
8052 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8053 if test -n "$ac_ct_MANIFEST_TOOL"; then
8054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8055 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
8056 else
8057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8058 printf "%s\n" "no" >&6; }
8059 fi
8060
8061 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8062 MANIFEST_TOOL=":"
8063 else
8064 case $cross_compiling:$ac_tool_warned in
8065 yes:)
8066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8067 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8068 ac_tool_warned=yes ;;
8069 esac
8070 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8071 fi
8072 else
8073 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8074 fi
8075
8076 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8078 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8079 if test ${lt_cv_path_manifest_tool+y}
8080 then :
8081 printf %s "(cached) " >&6
8082 else case e in #(
8083 e) lt_cv_path_manifest_tool=no
8084 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8085 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8086 cat conftest.err >&5
8087 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8088 lt_cv_path_manifest_tool=yes
8089 fi
8090 rm -f conftest* ;;
8091 esac
8092 fi
8093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5
8094 printf "%s\n" "$lt_cv_path_manifest_tool" >&6; }
8095 if test yes != "$lt_cv_path_manifest_tool"; then
8096 MANIFEST_TOOL=:
8097 fi
8098
8099
8100
8101
8102
8103
8104 case $host_os in
8105 rhapsody* | darwin*)
8106 if test -n "$ac_tool_prefix"; then
8107 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8108 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8110 printf %s "checking for $ac_word... " >&6; }
8111 if test ${ac_cv_prog_DSYMUTIL+y}
8112 then :
8113 printf %s "(cached) " >&6
8114 else case e in #(
8115 e) if test -n "$DSYMUTIL"; then
8116 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8117 else
8118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8119 for as_dir in $PATH
8120 do
8121 IFS=$as_save_IFS
8122 case $as_dir in #(((
8123 '') as_dir=./ ;;
8124 */) ;;
8125 *) as_dir=$as_dir/ ;;
8126 esac
8127 for ac_exec_ext in '' $ac_executable_extensions; do
8128 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8129 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8130 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8131 break 2
8132 fi
8133 done
8134 done
8135 IFS=$as_save_IFS
8136
8137 fi ;;
8138 esac
8139 fi
8140 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8141 if test -n "$DSYMUTIL"; then
8142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8143 printf "%s\n" "$DSYMUTIL" >&6; }
8144 else
8145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8146 printf "%s\n" "no" >&6; }
8147 fi
8148
8149
8150 fi
8151 if test -z "$ac_cv_prog_DSYMUTIL"; then
8152 ac_ct_DSYMUTIL=$DSYMUTIL
8153 # Extract the first word of "dsymutil", so it can be a program name with args.
8154 set dummy dsymutil; ac_word=$2
8155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8156 printf %s "checking for $ac_word... " >&6; }
8157 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8158 then :
8159 printf %s "(cached) " >&6
8160 else case e in #(
8161 e) if test -n "$ac_ct_DSYMUTIL"; then
8162 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8163 else
8164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8165 for as_dir in $PATH
8166 do
8167 IFS=$as_save_IFS
8168 case $as_dir in #(((
8169 '') as_dir=./ ;;
8170 */) ;;
8171 *) as_dir=$as_dir/ ;;
8172 esac
8173 for ac_exec_ext in '' $ac_executable_extensions; do
8174 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8175 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8176 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8177 break 2
8178 fi
8179 done
8180 done
8181 IFS=$as_save_IFS
8182
8183 fi ;;
8184 esac
8185 fi
8186 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8187 if test -n "$ac_ct_DSYMUTIL"; then
8188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8189 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8190 else
8191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8192 printf "%s\n" "no" >&6; }
8193 fi
8194
8195 if test "x$ac_ct_DSYMUTIL" = x; then
8196 DSYMUTIL=":"
8197 else
8198 case $cross_compiling:$ac_tool_warned in
8199 yes:)
8200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8201 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8202 ac_tool_warned=yes ;;
8203 esac
8204 DSYMUTIL=$ac_ct_DSYMUTIL
8205 fi
8206 else
8207 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8208 fi
8209
8210 if test -n "$ac_tool_prefix"; then
8211 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8212 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8214 printf %s "checking for $ac_word... " >&6; }
8215 if test ${ac_cv_prog_NMEDIT+y}
8216 then :
8217 printf %s "(cached) " >&6
8218 else case e in #(
8219 e) if test -n "$NMEDIT"; then
8220 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8221 else
8222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8223 for as_dir in $PATH
8224 do
8225 IFS=$as_save_IFS
8226 case $as_dir in #(((
8227 '') as_dir=./ ;;
8228 */) ;;
8229 *) as_dir=$as_dir/ ;;
8230 esac
8231 for ac_exec_ext in '' $ac_executable_extensions; do
8232 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8233 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8234 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8235 break 2
8236 fi
8237 done
8238 done
8239 IFS=$as_save_IFS
8240
8241 fi ;;
8242 esac
8243 fi
8244 NMEDIT=$ac_cv_prog_NMEDIT
8245 if test -n "$NMEDIT"; then
8246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8247 printf "%s\n" "$NMEDIT" >&6; }
8248 else
8249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8250 printf "%s\n" "no" >&6; }
8251 fi
8252
8253
8254 fi
8255 if test -z "$ac_cv_prog_NMEDIT"; then
8256 ac_ct_NMEDIT=$NMEDIT
8257 # Extract the first word of "nmedit", so it can be a program name with args.
8258 set dummy nmedit; ac_word=$2
8259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8260 printf %s "checking for $ac_word... " >&6; }
8261 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8262 then :
8263 printf %s "(cached) " >&6
8264 else case e in #(
8265 e) if test -n "$ac_ct_NMEDIT"; then
8266 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8267 else
8268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8269 for as_dir in $PATH
8270 do
8271 IFS=$as_save_IFS
8272 case $as_dir in #(((
8273 '') as_dir=./ ;;
8274 */) ;;
8275 *) as_dir=$as_dir/ ;;
8276 esac
8277 for ac_exec_ext in '' $ac_executable_extensions; do
8278 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8279 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8280 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8281 break 2
8282 fi
8283 done
8284 done
8285 IFS=$as_save_IFS
8286
8287 fi ;;
8288 esac
8289 fi
8290 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8291 if test -n "$ac_ct_NMEDIT"; then
8292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8293 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8294 else
8295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8296 printf "%s\n" "no" >&6; }
8297 fi
8298
8299 if test "x$ac_ct_NMEDIT" = x; then
8300 NMEDIT=":"
8301 else
8302 case $cross_compiling:$ac_tool_warned in
8303 yes:)
8304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8305 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8306 ac_tool_warned=yes ;;
8307 esac
8308 NMEDIT=$ac_ct_NMEDIT
8309 fi
8310 else
8311 NMEDIT="$ac_cv_prog_NMEDIT"
8312 fi
8313
8314 if test -n "$ac_tool_prefix"; then
8315 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8316 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8318 printf %s "checking for $ac_word... " >&6; }
8319 if test ${ac_cv_prog_LIPO+y}
8320 then :
8321 printf %s "(cached) " >&6
8322 else case e in #(
8323 e) if test -n "$LIPO"; then
8324 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8325 else
8326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8327 for as_dir in $PATH
8328 do
8329 IFS=$as_save_IFS
8330 case $as_dir in #(((
8331 '') as_dir=./ ;;
8332 */) ;;
8333 *) as_dir=$as_dir/ ;;
8334 esac
8335 for ac_exec_ext in '' $ac_executable_extensions; do
8336 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8337 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8338 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8339 break 2
8340 fi
8341 done
8342 done
8343 IFS=$as_save_IFS
8344
8345 fi ;;
8346 esac
8347 fi
8348 LIPO=$ac_cv_prog_LIPO
8349 if test -n "$LIPO"; then
8350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8351 printf "%s\n" "$LIPO" >&6; }
8352 else
8353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8354 printf "%s\n" "no" >&6; }
8355 fi
8356
8357
8358 fi
8359 if test -z "$ac_cv_prog_LIPO"; then
8360 ac_ct_LIPO=$LIPO
8361 # Extract the first word of "lipo", so it can be a program name with args.
8362 set dummy lipo; ac_word=$2
8363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8364 printf %s "checking for $ac_word... " >&6; }
8365 if test ${ac_cv_prog_ac_ct_LIPO+y}
8366 then :
8367 printf %s "(cached) " >&6
8368 else case e in #(
8369 e) if test -n "$ac_ct_LIPO"; then
8370 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8371 else
8372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8373 for as_dir in $PATH
8374 do
8375 IFS=$as_save_IFS
8376 case $as_dir in #(((
8377 '') as_dir=./ ;;
8378 */) ;;
8379 *) as_dir=$as_dir/ ;;
8380 esac
8381 for ac_exec_ext in '' $ac_executable_extensions; do
8382 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8383 ac_cv_prog_ac_ct_LIPO="lipo"
8384 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8385 break 2
8386 fi
8387 done
8388 done
8389 IFS=$as_save_IFS
8390
8391 fi ;;
8392 esac
8393 fi
8394 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8395 if test -n "$ac_ct_LIPO"; then
8396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8397 printf "%s\n" "$ac_ct_LIPO" >&6; }
8398 else
8399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8400 printf "%s\n" "no" >&6; }
8401 fi
8402
8403 if test "x$ac_ct_LIPO" = x; then
8404 LIPO=":"
8405 else
8406 case $cross_compiling:$ac_tool_warned in
8407 yes:)
8408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8409 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8410 ac_tool_warned=yes ;;
8411 esac
8412 LIPO=$ac_ct_LIPO
8413 fi
8414 else
8415 LIPO="$ac_cv_prog_LIPO"
8416 fi
8417
8418 if test -n "$ac_tool_prefix"; then
8419 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8420 set dummy ${ac_tool_prefix}otool; ac_word=$2
8421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8422 printf %s "checking for $ac_word... " >&6; }
8423 if test ${ac_cv_prog_OTOOL+y}
8424 then :
8425 printf %s "(cached) " >&6
8426 else case e in #(
8427 e) if test -n "$OTOOL"; then
8428 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8429 else
8430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8431 for as_dir in $PATH
8432 do
8433 IFS=$as_save_IFS
8434 case $as_dir in #(((
8435 '') as_dir=./ ;;
8436 */) ;;
8437 *) as_dir=$as_dir/ ;;
8438 esac
8439 for ac_exec_ext in '' $ac_executable_extensions; do
8440 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8441 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8442 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8443 break 2
8444 fi
8445 done
8446 done
8447 IFS=$as_save_IFS
8448
8449 fi ;;
8450 esac
8451 fi
8452 OTOOL=$ac_cv_prog_OTOOL
8453 if test -n "$OTOOL"; then
8454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8455 printf "%s\n" "$OTOOL" >&6; }
8456 else
8457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8458 printf "%s\n" "no" >&6; }
8459 fi
8460
8461
8462 fi
8463 if test -z "$ac_cv_prog_OTOOL"; then
8464 ac_ct_OTOOL=$OTOOL
8465 # Extract the first word of "otool", so it can be a program name with args.
8466 set dummy otool; ac_word=$2
8467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8468 printf %s "checking for $ac_word... " >&6; }
8469 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8470 then :
8471 printf %s "(cached) " >&6
8472 else case e in #(
8473 e) if test -n "$ac_ct_OTOOL"; then
8474 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8475 else
8476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8477 for as_dir in $PATH
8478 do
8479 IFS=$as_save_IFS
8480 case $as_dir in #(((
8481 '') as_dir=./ ;;
8482 */) ;;
8483 *) as_dir=$as_dir/ ;;
8484 esac
8485 for ac_exec_ext in '' $ac_executable_extensions; do
8486 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8487 ac_cv_prog_ac_ct_OTOOL="otool"
8488 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8489 break 2
8490 fi
8491 done
8492 done
8493 IFS=$as_save_IFS
8494
8495 fi ;;
8496 esac
8497 fi
8498 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8499 if test -n "$ac_ct_OTOOL"; then
8500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8501 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8502 else
8503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8504 printf "%s\n" "no" >&6; }
8505 fi
8506
8507 if test "x$ac_ct_OTOOL" = x; then
8508 OTOOL=":"
8509 else
8510 case $cross_compiling:$ac_tool_warned in
8511 yes:)
8512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8513 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8514 ac_tool_warned=yes ;;
8515 esac
8516 OTOOL=$ac_ct_OTOOL
8517 fi
8518 else
8519 OTOOL="$ac_cv_prog_OTOOL"
8520 fi
8521
8522 if test -n "$ac_tool_prefix"; then
8523 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8524 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8526 printf %s "checking for $ac_word... " >&6; }
8527 if test ${ac_cv_prog_OTOOL64+y}
8528 then :
8529 printf %s "(cached) " >&6
8530 else case e in #(
8531 e) if test -n "$OTOOL64"; then
8532 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8533 else
8534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8535 for as_dir in $PATH
8536 do
8537 IFS=$as_save_IFS
8538 case $as_dir in #(((
8539 '') as_dir=./ ;;
8540 */) ;;
8541 *) as_dir=$as_dir/ ;;
8542 esac
8543 for ac_exec_ext in '' $ac_executable_extensions; do
8544 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8545 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8546 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8547 break 2
8548 fi
8549 done
8550 done
8551 IFS=$as_save_IFS
8552
8553 fi ;;
8554 esac
8555 fi
8556 OTOOL64=$ac_cv_prog_OTOOL64
8557 if test -n "$OTOOL64"; then
8558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8559 printf "%s\n" "$OTOOL64" >&6; }
8560 else
8561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8562 printf "%s\n" "no" >&6; }
8563 fi
8564
8565
8566 fi
8567 if test -z "$ac_cv_prog_OTOOL64"; then
8568 ac_ct_OTOOL64=$OTOOL64
8569 # Extract the first word of "otool64", so it can be a program name with args.
8570 set dummy otool64; ac_word=$2
8571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8572 printf %s "checking for $ac_word... " >&6; }
8573 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8574 then :
8575 printf %s "(cached) " >&6
8576 else case e in #(
8577 e) if test -n "$ac_ct_OTOOL64"; then
8578 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8579 else
8580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8581 for as_dir in $PATH
8582 do
8583 IFS=$as_save_IFS
8584 case $as_dir in #(((
8585 '') as_dir=./ ;;
8586 */) ;;
8587 *) as_dir=$as_dir/ ;;
8588 esac
8589 for ac_exec_ext in '' $ac_executable_extensions; do
8590 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8591 ac_cv_prog_ac_ct_OTOOL64="otool64"
8592 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8593 break 2
8594 fi
8595 done
8596 done
8597 IFS=$as_save_IFS
8598
8599 fi ;;
8600 esac
8601 fi
8602 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8603 if test -n "$ac_ct_OTOOL64"; then
8604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8605 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8606 else
8607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8608 printf "%s\n" "no" >&6; }
8609 fi
8610
8611 if test "x$ac_ct_OTOOL64" = x; then
8612 OTOOL64=":"
8613 else
8614 case $cross_compiling:$ac_tool_warned in
8615 yes:)
8616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8617 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8618 ac_tool_warned=yes ;;
8619 esac
8620 OTOOL64=$ac_ct_OTOOL64
8621 fi
8622 else
8623 OTOOL64="$ac_cv_prog_OTOOL64"
8624 fi
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8653 printf %s "checking for -single_module linker flag... " >&6; }
8654 if test ${lt_cv_apple_cc_single_mod+y}
8655 then :
8656 printf %s "(cached) " >&6
8657 else case e in #(
8658 e) lt_cv_apple_cc_single_mod=no
8659 if test -z "$LT_MULTI_MODULE"; then
8660 # By default we will add the -single_module flag. You can override
8661 # by either setting the environment variable LT_MULTI_MODULE
8662 # non-empty at configure time, or by adding -multi_module to the
8663 # link flags.
8664 rm -rf libconftest.dylib*
8665 echo "int foo(void){return 1;}" > conftest.c
8666 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8667 -dynamiclib -Wl,-single_module conftest.c" >&5
8668 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8669 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8670 _lt_result=$?
8671 # If there is a non-empty error log, and "single_module"
8672 # appears in it, assume the flag caused a linker warning
8673 if test -s conftest.err && $GREP single_module conftest.err; then
8674 cat conftest.err >&5
8675 # Otherwise, if the output was created with a 0 exit code from
8676 # the compiler, it worked.
8677 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8678 lt_cv_apple_cc_single_mod=yes
8679 else
8680 cat conftest.err >&5
8681 fi
8682 rm -rf libconftest.dylib*
8683 rm -f conftest.*
8684 fi ;;
8685 esac
8686 fi
8687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8688 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8689
8690 # Feature test to disable chained fixups since it is not
8691 # compatible with '-undefined dynamic_lookup'
8692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
8693 printf %s "checking for -no_fixup_chains linker flag... " >&6; }
8694 if test ${lt_cv_support_no_fixup_chains+y}
8695 then :
8696 printf %s "(cached) " >&6
8697 else case e in #(
8698 e) save_LDFLAGS=$LDFLAGS
8699 LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
8700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8701 /* end confdefs.h. */
8702
8703 int
8704 main (void)
8705 {
8706
8707 ;
8708 return 0;
8709 }
8710 _ACEOF
8711 if ac_fn_c_try_link "$LINENO"
8712 then :
8713 lt_cv_support_no_fixup_chains=yes
8714 else case e in #(
8715 e) lt_cv_support_no_fixup_chains=no
8716 ;;
8717 esac
8718 fi
8719 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8720 conftest$ac_exeext conftest.$ac_ext
8721 LDFLAGS=$save_LDFLAGS
8722
8723 ;;
8724 esac
8725 fi
8726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
8727 printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; }
8728
8729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8730 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8731 if test ${lt_cv_ld_exported_symbols_list+y}
8732 then :
8733 printf %s "(cached) " >&6
8734 else case e in #(
8735 e) lt_cv_ld_exported_symbols_list=no
8736 save_LDFLAGS=$LDFLAGS
8737 echo "_main" > conftest.sym
8738 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8740 /* end confdefs.h. */
8741
8742 int
8743 main (void)
8744 {
8745
8746 ;
8747 return 0;
8748 }
8749 _ACEOF
8750 if ac_fn_c_try_link "$LINENO"
8751 then :
8752 lt_cv_ld_exported_symbols_list=yes
8753 else case e in #(
8754 e) lt_cv_ld_exported_symbols_list=no ;;
8755 esac
8756 fi
8757 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8758 conftest$ac_exeext conftest.$ac_ext
8759 LDFLAGS=$save_LDFLAGS
8760 ;;
8761 esac
8762 fi
8763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8764 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8765
8766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8767 printf %s "checking for -force_load linker flag... " >&6; }
8768 if test ${lt_cv_ld_force_load+y}
8769 then :
8770 printf %s "(cached) " >&6
8771 else case e in #(
8772 e) lt_cv_ld_force_load=no
8773 cat > conftest.c << _LT_EOF
8774 int forced_loaded() { return 2;}
8775 _LT_EOF
8776 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8777 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8778 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8779 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8780 echo "$RANLIB libconftest.a" >&5
8781 $RANLIB libconftest.a 2>&5
8782 cat > conftest.c << _LT_EOF
8783 int main(void) { return 0;}
8784 _LT_EOF
8785 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8786 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8787 _lt_result=$?
8788 if test -s conftest.err && $GREP force_load conftest.err; then
8789 cat conftest.err >&5
8790 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8791 lt_cv_ld_force_load=yes
8792 else
8793 cat conftest.err >&5
8794 fi
8795 rm -f conftest.err libconftest.a conftest conftest.c
8796 rm -rf conftest.dSYM
8797 ;;
8798 esac
8799 fi
8800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8801 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8802 case $host_os in
8803 rhapsody* | darwin1.[012])
8804 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8805 darwin1.*)
8806 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8807 darwin*)
8808 case $MACOSX_DEPLOYMENT_TARGET,$host in
8809 10.[012],*|,*powerpc*-darwin[5-8]*)
8810 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8811 *)
8812 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
8813 if test yes = "$lt_cv_support_no_fixup_chains"; then
8814 as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'
8815 fi
8816 ;;
8817 esac
8818 ;;
8819 esac
8820 if test yes = "$lt_cv_apple_cc_single_mod"; then
8821 _lt_dar_single_mod='$single_module'
8822 fi
8823 _lt_dar_needs_single_mod=no
8824 case $host_os in
8825 rhapsody* | darwin1.*)
8826 _lt_dar_needs_single_mod=yes ;;
8827 darwin*)
8828 # When targeting Mac OS X 10.4 (darwin 8) or later,
8829 # -single_module is the default and -multi_module is unsupported.
8830 # The toolchain on macOS 10.14 (darwin 18) and later cannot
8831 # target any OS version that needs -single_module.
8832 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8833 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*)
8834 _lt_dar_needs_single_mod=yes ;;
8835 esac
8836 ;;
8837 esac
8838 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8839 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8840 else
8841 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8842 fi
8843 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8844 _lt_dsymutil='~$DSYMUTIL $lib || :'
8845 else
8846 _lt_dsymutil=
8847 fi
8848 ;;
8849 esac
8850
8851 # func_munge_path_list VARIABLE PATH
8852 # -----------------------------------
8853 # VARIABLE is name of variable containing _space_ separated list of
8854 # directories to be munged by the contents of PATH, which is string
8855 # having a format:
8856 # "DIR[:DIR]:"
8857 # string "DIR[ DIR]" will be prepended to VARIABLE
8858 # ":DIR[:DIR]"
8859 # string "DIR[ DIR]" will be appended to VARIABLE
8860 # "DIRP[:DIRP]::[DIRA:]DIRA"
8861 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8862 # "DIRA[ DIRA]" will be appended to VARIABLE
8863 # "DIR[:DIR]"
8864 # VARIABLE will be replaced by "DIR[ DIR]"
8865 func_munge_path_list ()
8866 {
8867 case x$2 in
8868 x)
8869 ;;
8870 *:)
8871 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8872 ;;
8873 x:*)
8874 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8875 ;;
8876 *::*)
8877 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8878 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8879 ;;
8880 *)
8881 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8882 ;;
8883 esac
8884 }
8885
8886 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8887 "
8888 if test "x$ac_cv_header_dlfcn_h" = xyes
8889 then :
8890 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8891
8892 fi
8893
8894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
8895 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
8896 if test ${ac_cv_c_undeclared_builtin_options+y}
8897 then :
8898 printf %s "(cached) " >&6
8899 else case e in #(
8900 e) ac_save_CFLAGS=$CFLAGS
8901 ac_cv_c_undeclared_builtin_options='cannot detect'
8902 for ac_arg in '' -fno-builtin; do
8903 CFLAGS="$ac_save_CFLAGS $ac_arg"
8904 # This test program should *not* compile successfully.
8905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8906 /* end confdefs.h. */
8907
8908 int
8909 main (void)
8910 {
8911 (void) strchr;
8912 ;
8913 return 0;
8914 }
8915 _ACEOF
8916 if ac_fn_c_try_compile "$LINENO"
8917 then :
8918
8919 else case e in #(
8920 e) # This test program should compile successfully.
8921 # No library function is consistently available on
8922 # freestanding implementations, so test against a dummy
8923 # declaration. Include always-available headers on the
8924 # off chance that they somehow elicit warnings.
8925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8926 /* end confdefs.h. */
8927 #include <float.h>
8928 #include <limits.h>
8929 #include <stdarg.h>
8930 #include <stddef.h>
8931 extern void ac_decl (int, char *);
8932
8933 int
8934 main (void)
8935 {
8936 (void) ac_decl (0, (char *) 0);
8937 (void) ac_decl;
8938
8939 ;
8940 return 0;
8941 }
8942 _ACEOF
8943 if ac_fn_c_try_compile "$LINENO"
8944 then :
8945 if test x"$ac_arg" = x
8946 then :
8947 ac_cv_c_undeclared_builtin_options='none needed'
8948 else case e in #(
8949 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
8950 esac
8951 fi
8952 break
8953 fi
8954 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8955 esac
8956 fi
8957 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8958 done
8959 CFLAGS=$ac_save_CFLAGS
8960 ;;
8961 esac
8962 fi
8963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
8964 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
8965 case $ac_cv_c_undeclared_builtin_options in #(
8966 'cannot detect') :
8967 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
8968 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
8969 as_fn_error $? "cannot make $CC report undeclared builtins
8970 See 'config.log' for more details" "$LINENO" 5; } ;; #(
8971 'none needed') :
8972 ac_c_undeclared_builtin_options='' ;; #(
8973 *) :
8974 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
8975 esac
8976
8977 echo 'tldbg:KPSE_COMMON called (pkg=mendexk, amopt=no-define)' >&5
8978 echo 'tldbg:KPSE_BASIC called (pkg=mendexk, amopt=no-define)' >&5
8979
8980 #
8981 # am_init_automake
8982 if test "`cd $srcdir && pwd`" != "`pwd`"; then
8983 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
8984 # is not polluted with repeated "-I."
8985 am__isrc=' -I$(srcdir)'
8986 # test to see if srcdir already configured
8987 if test -f $srcdir/config.status; then
8988 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
8989 fi
8990 fi
8991
8992 # test whether we have cygpath
8993 if test -z "$CYGPATH_W"; then
8994 if (cygpath --version) >/dev/null 2>/dev/null; then
8995 CYGPATH_W='cygpath -w'
8996 else
8997 CYGPATH_W=echo
8998 fi
8999 fi
9000
9001
9002 # Define the identity of the package.
9003 PACKAGE='mendex--tex-live-'
9004 VERSION='3.10'
9005
9006
9007 # Some tools Automake needs.
9008
9009 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
9010
9011
9012 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
9013
9014
9015 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
9016
9017
9018 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
9019
9020
9021 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
9022
9023 # For better backward compatibility. To be removed once Automake 1.9.x
9024 # dies out for good. For more background, see:
9025 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
9026 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
9027 mkdir_p='$(MKDIR_P)'
9028
9029 # We need awk for the "check" target (and possibly the TAP driver). The
9030 # system "awk" is bad on some platforms.
9031 # Always define AMTAR for backward compatibility. Yes, it's still used
9032 # in the wild :-( We should find a proper way to deprecate it ...
9033 AMTAR='$${TAR-tar}'
9034
9035
9036 # We'll loop over all known methods to create a tar archive until one works.
9037 _am_tools='gnutar plaintar pax cpio none'
9038
9039 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
9040 # There is notably a 21 bits limit for the UID and the GID. In fact,
9041 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
9042 # and bug#13588).
9043 am_max_uid=2097151 # 2^21 - 1
9044 am_max_gid=$am_max_uid
9045 # The $UID and $GID variables are not portable, so we need to resort
9046 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
9047 # below are definitely unexpected, so allow the users to see them
9048 # (that is, avoid stderr redirection).
9049 am_uid=`id -u || echo unknown`
9050 am_gid=`id -g || echo unknown`
9051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
9052 printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
9053 if test x$am_uid = xunknown; then
9054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&5
9055 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&2;}
9056 elif test $am_uid -le $am_max_uid; then
9057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9058 printf "%s\n" "yes" >&6; }
9059 else
9060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9061 printf "%s\n" "no" >&6; }
9062 _am_tools=none
9063 fi
9064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
9065 printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
9066 if test x$gm_gid = xunknown; then
9067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&5
9068 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&2;}
9069 elif test $am_gid -le $am_max_gid; then
9070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9071 printf "%s\n" "yes" >&6; }
9072 else
9073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9074 printf "%s\n" "no" >&6; }
9075 _am_tools=none
9076 fi
9077
9078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
9079 printf %s "checking how to create a ustar tar archive... " >&6; }
9080
9081 # Go ahead even if we have the value already cached. We do so because we
9082 # need to set the values for the 'am__tar' and 'am__untar' variables.
9083 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
9084
9085 for _am_tool in $_am_tools; do
9086 case $_am_tool in
9087 gnutar)
9088 for _am_tar in tar gnutar gtar; do
9089 { echo "$as_me:$LINENO: $_am_tar --version" >&5
9090 ($_am_tar --version) >&5 2>&5
9091 ac_status=$?
9092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9093 (exit $ac_status); } && break
9094 done
9095 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
9096 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
9097 am__untar="$_am_tar -xf -"
9098 ;;
9099 plaintar)
9100 # Must skip GNU tar: if it does not support --format= it doesn't create
9101 # ustar tarball either.
9102 (tar --version) >/dev/null 2>&1 && continue
9103 am__tar='tar chf - "$$tardir"'
9104 am__tar_='tar chf - "$tardir"'
9105 am__untar='tar xf -'
9106 ;;
9107 pax)
9108 am__tar='pax -L -x ustar -w "$$tardir"'
9109 am__tar_='pax -L -x ustar -w "$tardir"'
9110 am__untar='pax -r'
9111 ;;
9112 cpio)
9113 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
9114 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
9115 am__untar='cpio -i -H ustar -d'
9116 ;;
9117 none)
9118 am__tar=false
9119 am__tar_=false
9120 am__untar=false
9121 ;;
9122 esac
9123
9124 # If the value was cached, stop now. We just wanted to have am__tar
9125 # and am__untar set.
9126 test -n "${am_cv_prog_tar_ustar}" && break
9127
9128 # tar/untar a dummy directory, and stop if the command works.
9129 rm -rf conftest.dir
9130 mkdir conftest.dir
9131 echo GrepMe > conftest.dir/file
9132 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
9133 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
9134 ac_status=$?
9135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9136 (exit $ac_status); }
9137 rm -rf conftest.dir
9138 if test -s conftest.tar; then
9139 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
9140 ($am__untar <conftest.tar) >&5 2>&5
9141 ac_status=$?
9142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9143 (exit $ac_status); }
9144 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
9145 (cat conftest.dir/file) >&5 2>&5
9146 ac_status=$?
9147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9148 (exit $ac_status); }
9149 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
9150 fi
9151 done
9152 rm -rf conftest.dir
9153
9154 if test ${am_cv_prog_tar_ustar+y}
9155 then :
9156 printf %s "(cached) " >&6
9157 else case e in #(
9158 e) am_cv_prog_tar_ustar=$_am_tool ;;
9159 esac
9160 fi
9161
9162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
9163 printf "%s\n" "$am_cv_prog_tar_ustar" >&6; }
9164
9165
9166
9167
9168
9169 # Variables for tags utilities; see am/tags.am
9170 if test -z "$CTAGS"; then
9171 CTAGS=ctags
9172 fi
9173
9174 if test -z "$ETAGS"; then
9175 ETAGS=etags
9176 fi
9177
9178 if test -z "$CSCOPE"; then
9179 CSCOPE=cscope
9180 fi
9181
9182
9183
9184
9185
9186
9187
9188
9189 # am_maintainer_mode
9190
9191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
9192 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
9193 # Check whether --enable-maintainer-mode was given.
9194 if test ${enable_maintainer_mode+y}
9195 then :
9196 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
9197 else case e in #(
9198 e) USE_MAINTAINER_MODE=no ;;
9199 esac
9200 fi
9201
9202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
9203 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
9204 if test $USE_MAINTAINER_MODE = yes; then
9205 MAINTAINER_MODE_TRUE=
9206 MAINTAINER_MODE_FALSE='#'
9207 else
9208 MAINTAINER_MODE_TRUE='#'
9209 MAINTAINER_MODE_FALSE=
9210 fi
9211
9212 MAINT=$MAINTAINER_MODE_TRUE
9213
9214
9215
9216 # See comments in kpse-setup.m4 about system extensions.
9217
9218
9219 # Check whether prototypes work.
9220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts prototypes" >&5
9221 printf %s "checking whether the compiler accepts prototypes... " >&6; }
9222 if test ${kb_cv_c_prototypes+y}
9223 then :
9224 printf %s "(cached) " >&6
9225 else case e in #(
9226 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9227 /* end confdefs.h. */
9228 #include <stdarg.h>
9229 int
9230 main (void)
9231 {
9232 extern void foo(int i,...);
9233 ;
9234 return 0;
9235 }
9236 _ACEOF
9237 if ac_fn_c_try_link "$LINENO"
9238 then :
9239 kb_cv_c_prototypes=yes
9240 else case e in #(
9241 e) kb_cv_c_prototypes=no ;;
9242 esac
9243 fi
9244 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9245 conftest$ac_exeext conftest.$ac_ext ;;
9246 esac
9247 fi
9248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kb_cv_c_prototypes" >&5
9249 printf "%s\n" "$kb_cv_c_prototypes" >&6; }
9250 if test "x$kb_cv_c_prototypes" = xno; then
9251 as_fn_error $? "Sorry, your compiler does not understand prototypes." "$LINENO" 5
9252 fi
9253
9254 # kpse_compiler_warnings options.
9255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking what warning flags to pass to the C compiler" >&5
9256 printf %s "checking what warning flags to pass to the C compiler... " >&6; }
9257 if test ${kpse_cv_warning_cflags+y}
9258 then :
9259 printf %s "(cached) " >&6
9260 else case e in #(
9261 e) if test "x$GCC" = xyes; then
9262 kpse_cv_warning_cflags=
9263 if test "x$enable_compiler_warnings" != xno; then
9264 kpse_cv_warning_cflags="-Wimplicit -Wreturn-type"
9265 case `$CC -dumpversion` in #(
9266 3.4.* | 4.* | 5.*) :
9267 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wdeclaration-after-statement" ;; #(
9268 *) :
9269 ;;
9270 esac
9271 case `$CC -dumpversion` in #(
9272 3.[234].* | 4.* | 5.*) :
9273 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wno-unknown-pragmas" ;; #(
9274 *) :
9275 ;;
9276 esac
9277 if test "x$enable_compiler_warnings" != xmin; then
9278 kpse_cv_warning_cflags="-Wall -Wunused $kpse_cv_warning_cflags"
9279 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wmissing-prototypes -Wmissing-declarations"
9280 if test "x$enable_compiler_warnings" != xyes; then
9281 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wparentheses -Wswitch -Wtrigraphs -Wpointer-arith"
9282 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wcast-qual -Wcast-align -Wwrite-strings"
9283 case `$CC -dumpversion` in #(
9284 3.4.* | 4.* | 5.*) :
9285 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wold-style-definition" ;; #(
9286 *) :
9287 ;;
9288 esac
9289 if test "x$enable_compiler_warnings" != xmax; then
9290 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wshadow"
9291 fi
9292 fi
9293 fi
9294 fi
9295 elif test "x$enable_compiler_warnings" = xno; then
9296 kpse_cv_warning_cflags=
9297 else
9298 kpse_cv_warning_cflags= # FIXME: warning flags for non-GNU C compilers
9299 fi ;;
9300 esac
9301 fi
9302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_warning_cflags" >&5
9303 printf "%s\n" "$kpse_cv_warning_cflags" >&6; }
9304 WARNING_CFLAGS=$kpse_cv_warning_cflags
9305
9306
9307
9308
9309
9310
9311
9312 # end of kpse_basic macro.
9313 echo 'tldbg:KPSE_BASIC done (pkg=mendexk, amopt=no-define)' >&5
9314
9315 # am_prog_ar must be called before lt_init.
9316
9317 if test -n "$ac_tool_prefix"; then
9318 for ac_prog in ar lib "link -lib"
9319 do
9320 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9321 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9323 printf %s "checking for $ac_word... " >&6; }
9324 if test ${ac_cv_prog_AR+y}
9325 then :
9326 printf %s "(cached) " >&6
9327 else case e in #(
9328 e) if test -n "$AR"; then
9329 ac_cv_prog_AR="$AR" # Let the user override the test.
9330 else
9331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9332 for as_dir in $PATH
9333 do
9334 IFS=$as_save_IFS
9335 case $as_dir in #(((
9336 '') as_dir=./ ;;
9337 */) ;;
9338 *) as_dir=$as_dir/ ;;
9339 esac
9340 for ac_exec_ext in '' $ac_executable_extensions; do
9341 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9342 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
9343 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9344 break 2
9345 fi
9346 done
9347 done
9348 IFS=$as_save_IFS
9349
9350 fi ;;
9351 esac
9352 fi
9353 AR=$ac_cv_prog_AR
9354 if test -n "$AR"; then
9355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9356 printf "%s\n" "$AR" >&6; }
9357 else
9358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9359 printf "%s\n" "no" >&6; }
9360 fi
9361
9362
9363 test -n "$AR" && break
9364 done
9365 fi
9366 if test -z "$AR"; then
9367 ac_ct_AR=$AR
9368 for ac_prog in ar lib "link -lib"
9369 do
9370 # Extract the first word of "$ac_prog", so it can be a program name with args.
9371 set dummy $ac_prog; ac_word=$2
9372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9373 printf %s "checking for $ac_word... " >&6; }
9374 if test ${ac_cv_prog_ac_ct_AR+y}
9375 then :
9376 printf %s "(cached) " >&6
9377 else case e in #(
9378 e) if test -n "$ac_ct_AR"; then
9379 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9380 else
9381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9382 for as_dir in $PATH
9383 do
9384 IFS=$as_save_IFS
9385 case $as_dir in #(((
9386 '') as_dir=./ ;;
9387 */) ;;
9388 *) as_dir=$as_dir/ ;;
9389 esac
9390 for ac_exec_ext in '' $ac_executable_extensions; do
9391 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9392 ac_cv_prog_ac_ct_AR="$ac_prog"
9393 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9394 break 2
9395 fi
9396 done
9397 done
9398 IFS=$as_save_IFS
9399
9400 fi ;;
9401 esac
9402 fi
9403 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9404 if test -n "$ac_ct_AR"; then
9405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9406 printf "%s\n" "$ac_ct_AR" >&6; }
9407 else
9408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9409 printf "%s\n" "no" >&6; }
9410 fi
9411
9412
9413 test -n "$ac_ct_AR" && break
9414 done
9415
9416 if test "x$ac_ct_AR" = x; then
9417 AR="false"
9418 else
9419 case $cross_compiling:$ac_tool_warned in
9420 yes:)
9421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9422 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9423 ac_tool_warned=yes ;;
9424 esac
9425 AR=$ac_ct_AR
9426 fi
9427 fi
9428
9429 : ${AR=ar}
9430 : ${ARFLAGS=cr}
9431
9432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
9433 printf %s "checking the archiver ($AR) interface... " >&6; }
9434 if test ${am_cv_ar_interface+y}
9435 then :
9436 printf %s "(cached) " >&6
9437 else case e in #(
9438 e) ac_ext=c
9439 ac_cpp='$CPP $CPPFLAGS'
9440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9443
9444 am_cv_ar_interface=ar
9445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9446 /* end confdefs.h. */
9447 int some_variable = 0;
9448 _ACEOF
9449 if ac_fn_c_try_compile "$LINENO"
9450 then :
9451 am_ar_try='$AR $ARFLAGS libconftest.a conftest.$ac_objext >&5'
9452 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
9453 (eval $am_ar_try) 2>&5
9454 ac_status=$?
9455 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9456 test $ac_status = 0; }
9457 if test "$ac_status" -eq 0; then
9458 am_cv_ar_interface=ar
9459 else
9460 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
9461 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
9462 (eval $am_ar_try) 2>&5
9463 ac_status=$?
9464 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9465 test $ac_status = 0; }
9466 if test "$ac_status" -eq 0; then
9467 am_cv_ar_interface=lib
9468 else
9469 am_cv_ar_interface=unknown
9470 fi
9471 fi
9472 rm -f conftest.lib libconftest.a
9473
9474 fi
9475 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9476 ac_ext=c
9477 ac_cpp='$CPP $CPPFLAGS'
9478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9481 ;;
9482 esac
9483 fi
9484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
9485 printf "%s\n" "$am_cv_ar_interface" >&6; }
9486
9487 case $am_cv_ar_interface in
9488 ar)
9489 ;;
9490 lib)
9491 # Microsoft lib, so override with the ar-lib wrapper script.
9492 # FIXME: It is wrong to rewrite AR.
9493 # But if we don't then we get into trouble of one sort or another.
9494 # A longer-term fix would be to have automake use am__AR in this case,
9495 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
9496 # similar.
9497 AR="$am_aux_dir/ar-lib $AR"
9498 ;;
9499 unknown)
9500 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
9501 ;;
9502 esac
9503
9504 # (end am_prog_ar)
9505 # starting lt_prereq + lt_init.
9506
9507
9508
9509
9510
9511 # Set options
9512 enable_win32_dll=yes
9513
9514 case $host in
9515 *-*-cygwin* | *-*-mingw* | *-*-windows* | *-*-pw32* | *-*-cegcc*)
9516 if test -n "$ac_tool_prefix"; then
9517 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
9518 set dummy ${ac_tool_prefix}as; ac_word=$2
9519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9520 printf %s "checking for $ac_word... " >&6; }
9521 if test ${ac_cv_prog_AS+y}
9522 then :
9523 printf %s "(cached) " >&6
9524 else case e in #(
9525 e) if test -n "$AS"; then
9526 ac_cv_prog_AS="$AS" # Let the user override the test.
9527 else
9528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9529 for as_dir in $PATH
9530 do
9531 IFS=$as_save_IFS
9532 case $as_dir in #(((
9533 '') as_dir=./ ;;
9534 */) ;;
9535 *) as_dir=$as_dir/ ;;
9536 esac
9537 for ac_exec_ext in '' $ac_executable_extensions; do
9538 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9539 ac_cv_prog_AS="${ac_tool_prefix}as"
9540 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9541 break 2
9542 fi
9543 done
9544 done
9545 IFS=$as_save_IFS
9546
9547 fi ;;
9548 esac
9549 fi
9550 AS=$ac_cv_prog_AS
9551 if test -n "$AS"; then
9552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
9553 printf "%s\n" "$AS" >&6; }
9554 else
9555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9556 printf "%s\n" "no" >&6; }
9557 fi
9558
9559
9560 fi
9561 if test -z "$ac_cv_prog_AS"; then
9562 ac_ct_AS=$AS
9563 # Extract the first word of "as", so it can be a program name with args.
9564 set dummy as; ac_word=$2
9565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9566 printf %s "checking for $ac_word... " >&6; }
9567 if test ${ac_cv_prog_ac_ct_AS+y}
9568 then :
9569 printf %s "(cached) " >&6
9570 else case e in #(
9571 e) if test -n "$ac_ct_AS"; then
9572 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
9573 else
9574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9575 for as_dir in $PATH
9576 do
9577 IFS=$as_save_IFS
9578 case $as_dir in #(((
9579 '') as_dir=./ ;;
9580 */) ;;
9581 *) as_dir=$as_dir/ ;;
9582 esac
9583 for ac_exec_ext in '' $ac_executable_extensions; do
9584 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9585 ac_cv_prog_ac_ct_AS="as"
9586 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9587 break 2
9588 fi
9589 done
9590 done
9591 IFS=$as_save_IFS
9592
9593 fi ;;
9594 esac
9595 fi
9596 ac_ct_AS=$ac_cv_prog_ac_ct_AS
9597 if test -n "$ac_ct_AS"; then
9598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
9599 printf "%s\n" "$ac_ct_AS" >&6; }
9600 else
9601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9602 printf "%s\n" "no" >&6; }
9603 fi
9604
9605 if test "x$ac_ct_AS" = x; then
9606 AS="false"
9607 else
9608 case $cross_compiling:$ac_tool_warned in
9609 yes:)
9610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9611 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9612 ac_tool_warned=yes ;;
9613 esac
9614 AS=$ac_ct_AS
9615 fi
9616 else
9617 AS="$ac_cv_prog_AS"
9618 fi
9619
9620 if test -n "$ac_tool_prefix"; then
9621 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9622 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9624 printf %s "checking for $ac_word... " >&6; }
9625 if test ${ac_cv_prog_DLLTOOL+y}
9626 then :
9627 printf %s "(cached) " >&6
9628 else case e in #(
9629 e) if test -n "$DLLTOOL"; then
9630 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9631 else
9632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9633 for as_dir in $PATH
9634 do
9635 IFS=$as_save_IFS
9636 case $as_dir in #(((
9637 '') as_dir=./ ;;
9638 */) ;;
9639 *) as_dir=$as_dir/ ;;
9640 esac
9641 for ac_exec_ext in '' $ac_executable_extensions; do
9642 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9643 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9644 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9645 break 2
9646 fi
9647 done
9648 done
9649 IFS=$as_save_IFS
9650
9651 fi ;;
9652 esac
9653 fi
9654 DLLTOOL=$ac_cv_prog_DLLTOOL
9655 if test -n "$DLLTOOL"; then
9656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9657 printf "%s\n" "$DLLTOOL" >&6; }
9658 else
9659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9660 printf "%s\n" "no" >&6; }
9661 fi
9662
9663
9664 fi
9665 if test -z "$ac_cv_prog_DLLTOOL"; then
9666 ac_ct_DLLTOOL=$DLLTOOL
9667 # Extract the first word of "dlltool", so it can be a program name with args.
9668 set dummy dlltool; ac_word=$2
9669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9670 printf %s "checking for $ac_word... " >&6; }
9671 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
9672 then :
9673 printf %s "(cached) " >&6
9674 else case e in #(
9675 e) if test -n "$ac_ct_DLLTOOL"; then
9676 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9677 else
9678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9679 for as_dir in $PATH
9680 do
9681 IFS=$as_save_IFS
9682 case $as_dir in #(((
9683 '') as_dir=./ ;;
9684 */) ;;
9685 *) as_dir=$as_dir/ ;;
9686 esac
9687 for ac_exec_ext in '' $ac_executable_extensions; do
9688 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9689 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9690 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9691 break 2
9692 fi
9693 done
9694 done
9695 IFS=$as_save_IFS
9696
9697 fi ;;
9698 esac
9699 fi
9700 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9701 if test -n "$ac_ct_DLLTOOL"; then
9702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9703 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
9704 else
9705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9706 printf "%s\n" "no" >&6; }
9707 fi
9708
9709 if test "x$ac_ct_DLLTOOL" = x; then
9710 DLLTOOL="false"
9711 else
9712 case $cross_compiling:$ac_tool_warned in
9713 yes:)
9714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9715 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9716 ac_tool_warned=yes ;;
9717 esac
9718 DLLTOOL=$ac_ct_DLLTOOL
9719 fi
9720 else
9721 DLLTOOL="$ac_cv_prog_DLLTOOL"
9722 fi
9723
9724 if test -n "$ac_tool_prefix"; then
9725 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9726 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9728 printf %s "checking for $ac_word... " >&6; }
9729 if test ${ac_cv_prog_OBJDUMP+y}
9730 then :
9731 printf %s "(cached) " >&6
9732 else case e in #(
9733 e) if test -n "$OBJDUMP"; then
9734 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9735 else
9736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9737 for as_dir in $PATH
9738 do
9739 IFS=$as_save_IFS
9740 case $as_dir in #(((
9741 '') as_dir=./ ;;
9742 */) ;;
9743 *) as_dir=$as_dir/ ;;
9744 esac
9745 for ac_exec_ext in '' $ac_executable_extensions; do
9746 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9747 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9748 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9749 break 2
9750 fi
9751 done
9752 done
9753 IFS=$as_save_IFS
9754
9755 fi ;;
9756 esac
9757 fi
9758 OBJDUMP=$ac_cv_prog_OBJDUMP
9759 if test -n "$OBJDUMP"; then
9760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9761 printf "%s\n" "$OBJDUMP" >&6; }
9762 else
9763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9764 printf "%s\n" "no" >&6; }
9765 fi
9766
9767
9768 fi
9769 if test -z "$ac_cv_prog_OBJDUMP"; then
9770 ac_ct_OBJDUMP=$OBJDUMP
9771 # Extract the first word of "objdump", so it can be a program name with args.
9772 set dummy objdump; ac_word=$2
9773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9774 printf %s "checking for $ac_word... " >&6; }
9775 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
9776 then :
9777 printf %s "(cached) " >&6
9778 else case e in #(
9779 e) if test -n "$ac_ct_OBJDUMP"; then
9780 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9781 else
9782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9783 for as_dir in $PATH
9784 do
9785 IFS=$as_save_IFS
9786 case $as_dir in #(((
9787 '') as_dir=./ ;;
9788 */) ;;
9789 *) as_dir=$as_dir/ ;;
9790 esac
9791 for ac_exec_ext in '' $ac_executable_extensions; do
9792 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9793 ac_cv_prog_ac_ct_OBJDUMP="objdump"
9794 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9795 break 2
9796 fi
9797 done
9798 done
9799 IFS=$as_save_IFS
9800
9801 fi ;;
9802 esac
9803 fi
9804 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9805 if test -n "$ac_ct_OBJDUMP"; then
9806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9807 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
9808 else
9809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9810 printf "%s\n" "no" >&6; }
9811 fi
9812
9813 if test "x$ac_ct_OBJDUMP" = x; then
9814 OBJDUMP="false"
9815 else
9816 case $cross_compiling:$ac_tool_warned in
9817 yes:)
9818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9819 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9820 ac_tool_warned=yes ;;
9821 esac
9822 OBJDUMP=$ac_ct_OBJDUMP
9823 fi
9824 else
9825 OBJDUMP="$ac_cv_prog_OBJDUMP"
9826 fi
9827
9828 ;;
9829 esac
9830
9831 test -z "$AS" && AS=as
9832
9833
9834
9835
9836
9837 test -z "$DLLTOOL" && DLLTOOL=dlltool
9838
9839
9840
9841
9842
9843 test -z "$OBJDUMP" && OBJDUMP=objdump
9844
9845
9846
9847
9848
9849
9850
9851 enable_dlopen=no
9852
9853
9854
9855 # Check whether --enable-shared was given.
9856 if test ${enable_shared+y}
9857 then :
9858 enableval=$enable_shared; p=${PACKAGE-default}
9859 case $enableval in
9860 yes) enable_shared=yes ;;
9861 no) enable_shared=no ;;
9862 *)
9863 enable_shared=no
9864 # Look at the argument we got. We use all the common list separators.
9865 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9866 for pkg in $enableval; do
9867 IFS=$lt_save_ifs
9868 if test "X$pkg" = "X$p"; then
9869 enable_shared=yes
9870 fi
9871 done
9872 IFS=$lt_save_ifs
9873 ;;
9874 esac
9875 else case e in #(
9876 e) enable_shared=yes ;;
9877 esac
9878 fi
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888 # Check whether --enable-static was given.
9889 if test ${enable_static+y}
9890 then :
9891 enableval=$enable_static; p=${PACKAGE-default}
9892 case $enableval in
9893 yes) enable_static=yes ;;
9894 no) enable_static=no ;;
9895 *)
9896 enable_static=no
9897 # Look at the argument we got. We use all the common list separators.
9898 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9899 for pkg in $enableval; do
9900 IFS=$lt_save_ifs
9901 if test "X$pkg" = "X$p"; then
9902 enable_static=yes
9903 fi
9904 done
9905 IFS=$lt_save_ifs
9906 ;;
9907 esac
9908 else case e in #(
9909 e) enable_static=yes ;;
9910 esac
9911 fi
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921 # Check whether --enable-pic was given.
9922 if test ${enable_pic+y}
9923 then :
9924 enableval=$enable_pic; lt_p=${PACKAGE-default}
9925 case $enableval in
9926 yes|no) pic_mode=$enableval ;;
9927 *)
9928 pic_mode=default
9929 # Look at the argument we got. We use all the common list separators.
9930 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9931 for lt_pkg in $enableval; do
9932 IFS=$lt_save_ifs
9933 if test "X$lt_pkg" = "X$lt_p"; then
9934 pic_mode=yes
9935 fi
9936 done
9937 IFS=$lt_save_ifs
9938 ;;
9939 esac
9940 else case e in #(
9941 e) # Check whether --with-pic was given.
9942 if test ${with_pic+y}
9943 then :
9944 withval=$with_pic; lt_p=${PACKAGE-default}
9945 case $withval in
9946 yes|no) pic_mode=$withval ;;
9947 *)
9948 pic_mode=default
9949 # Look at the argument we got. We use all the common list separators.
9950 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9951 for lt_pkg in $withval; do
9952 IFS=$lt_save_ifs
9953 if test "X$lt_pkg" = "X$lt_p"; then
9954 pic_mode=yes
9955 fi
9956 done
9957 IFS=$lt_save_ifs
9958 ;;
9959 esac
9960 else case e in #(
9961 e) pic_mode=default ;;
9962 esac
9963 fi
9964
9965 ;;
9966 esac
9967 fi
9968
9969
9970
9971
9972
9973
9974
9975
9976 # Check whether --enable-fast-install was given.
9977 if test ${enable_fast_install+y}
9978 then :
9979 enableval=$enable_fast_install; p=${PACKAGE-default}
9980 case $enableval in
9981 yes) enable_fast_install=yes ;;
9982 no) enable_fast_install=no ;;
9983 *)
9984 enable_fast_install=no
9985 # Look at the argument we got. We use all the common list separators.
9986 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9987 for pkg in $enableval; do
9988 IFS=$lt_save_ifs
9989 if test "X$pkg" = "X$p"; then
9990 enable_fast_install=yes
9991 fi
9992 done
9993 IFS=$lt_save_ifs
9994 ;;
9995 esac
9996 else case e in #(
9997 e) enable_fast_install=yes ;;
9998 esac
9999 fi
10000
10001
10002
10003
10004
10005
10006
10007
10008 shared_archive_member_spec=
10009 case $host,$enable_shared in
10010 power*-*-aix[5-9]*,yes)
10011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
10012 printf %s "checking which variant of shared library versioning to provide... " >&6; }
10013 # Check whether --enable-aix-soname was given.
10014 if test ${enable_aix_soname+y}
10015 then :
10016 enableval=$enable_aix_soname; case $enableval in
10017 aix|svr4|both)
10018 ;;
10019 *)
10020 as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5
10021 ;;
10022 esac
10023 lt_cv_with_aix_soname=$enable_aix_soname
10024 else case e in #(
10025 e) # Check whether --with-aix-soname was given.
10026 if test ${with_aix_soname+y}
10027 then :
10028 withval=$with_aix_soname; case $withval in
10029 aix|svr4|both)
10030 ;;
10031 *)
10032 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
10033 ;;
10034 esac
10035 lt_cv_with_aix_soname=$with_aix_soname
10036 else case e in #(
10037 e) if test ${lt_cv_with_aix_soname+y}
10038 then :
10039 printf %s "(cached) " >&6
10040 else case e in #(
10041 e) lt_cv_with_aix_soname=aix ;;
10042 esac
10043 fi
10044 ;;
10045 esac
10046 fi
10047
10048 enable_aix_soname=$lt_cv_with_aix_soname ;;
10049 esac
10050 fi
10051
10052 with_aix_soname=$enable_aix_soname
10053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
10054 printf "%s\n" "$with_aix_soname" >&6; }
10055 if test aix != "$with_aix_soname"; then
10056 # For the AIX way of multilib, we name the shared archive member
10057 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10058 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10059 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10060 # the AIX toolchain works better with OBJECT_MODE set (default 32).
10061 if test 64 = "${OBJECT_MODE-32}"; then
10062 shared_archive_member_spec=shr_64
10063 else
10064 shared_archive_member_spec=shr
10065 fi
10066 fi
10067 ;;
10068 *)
10069 with_aix_soname=aix
10070 ;;
10071 esac
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082 # This can be used to rebuild libtool when needed
10083 LIBTOOL_DEPS=$ltmain
10084
10085 # Always use our own libtool.
10086 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117 test -z "$LN_S" && LN_S="ln -s"
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132 if test -n "${ZSH_VERSION+set}"; then
10133 setopt NO_GLOB_SUBST
10134 fi
10135
10136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10137 printf %s "checking for objdir... " >&6; }
10138 if test ${lt_cv_objdir+y}
10139 then :
10140 printf %s "(cached) " >&6
10141 else case e in #(
10142 e) rm -f .libs 2>/dev/null
10143 mkdir .libs 2>/dev/null
10144 if test -d .libs; then
10145 lt_cv_objdir=.libs
10146 else
10147 # MS-DOS does not allow filenames that begin with a dot.
10148 lt_cv_objdir=_libs
10149 fi
10150 rmdir .libs 2>/dev/null ;;
10151 esac
10152 fi
10153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10154 printf "%s\n" "$lt_cv_objdir" >&6; }
10155 objdir=$lt_cv_objdir
10156
10157
10158
10159
10160
10161 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
10162
10163
10164
10165
10166 case $host_os in
10167 aix3*)
10168 # AIX sometimes has problems with the GCC collect2 program. For some
10169 # reason, if we set the COLLECT_NAMES environment variable, the problems
10170 # vanish in a puff of smoke.
10171 if test set != "${COLLECT_NAMES+set}"; then
10172 COLLECT_NAMES=
10173 export COLLECT_NAMES
10174 fi
10175 ;;
10176 esac
10177
10178 # Global variables:
10179 ofile=libtool
10180 can_build_shared=yes
10181
10182 # All known linkers require a '.a' archive for static linking (except MSVC and
10183 # ICC, which need '.lib').
10184 libext=a
10185
10186 with_gnu_ld=$lt_cv_prog_gnu_ld
10187
10188 old_CC=$CC
10189 old_CFLAGS=$CFLAGS
10190
10191 # Set sane defaults for various variables
10192 test -z "$CC" && CC=cc
10193 test -z "$LTCC" && LTCC=$CC
10194 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10195 test -z "$LD" && LD=ld
10196 test -z "$ac_objext" && ac_objext=o
10197
10198 func_cc_basename $compiler
10199 cc_basename=$func_cc_basename_result
10200
10201
10202 # Only perform the check for file, if the check method requires it
10203 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10204 case $deplibs_check_method in
10205 file_magic*)
10206 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10208 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
10209 if test ${lt_cv_path_MAGIC_CMD+y}
10210 then :
10211 printf %s "(cached) " >&6
10212 else case e in #(
10213 e) case $MAGIC_CMD in
10214 [\\/*] | ?:[\\/]*)
10215 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10216 ;;
10217 *)
10218 lt_save_MAGIC_CMD=$MAGIC_CMD
10219 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10220 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10221 for ac_dir in $ac_dummy; do
10222 IFS=$lt_save_ifs
10223 test -z "$ac_dir" && ac_dir=.
10224 if test -f "$ac_dir/${ac_tool_prefix}file"; then
10225 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10226 if test -n "$file_magic_test_file"; then
10227 case $deplibs_check_method in
10228 "file_magic "*)
10229 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10230 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10231 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10232 $EGREP "$file_magic_regex" > /dev/null; then
10233 :
10234 else
10235 cat <<_LT_EOF 1>&2
10236
10237 *** Warning: the command libtool uses to detect shared libraries,
10238 *** $file_magic_cmd, produces output that libtool cannot recognize.
10239 *** The result is that libtool may fail to recognize shared libraries
10240 *** as such. This will affect the creation of libtool libraries that
10241 *** depend on shared libraries, but programs linked with such libtool
10242 *** libraries will work regardless of this problem. Nevertheless, you
10243 *** may want to report the problem to your system manager and/or to
10244 *** [email protected]
10245
10246 _LT_EOF
10247 fi ;;
10248 esac
10249 fi
10250 break
10251 fi
10252 done
10253 IFS=$lt_save_ifs
10254 MAGIC_CMD=$lt_save_MAGIC_CMD
10255 ;;
10256 esac ;;
10257 esac
10258 fi
10259
10260 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10261 if test -n "$MAGIC_CMD"; then
10262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10263 printf "%s\n" "$MAGIC_CMD" >&6; }
10264 else
10265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10266 printf "%s\n" "no" >&6; }
10267 fi
10268
10269
10270
10271
10272
10273 if test -z "$lt_cv_path_MAGIC_CMD"; then
10274 if test -n "$ac_tool_prefix"; then
10275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10276 printf %s "checking for file... " >&6; }
10277 if test ${lt_cv_path_MAGIC_CMD+y}
10278 then :
10279 printf %s "(cached) " >&6
10280 else case e in #(
10281 e) case $MAGIC_CMD in
10282 [\\/*] | ?:[\\/]*)
10283 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10284 ;;
10285 *)
10286 lt_save_MAGIC_CMD=$MAGIC_CMD
10287 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10288 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10289 for ac_dir in $ac_dummy; do
10290 IFS=$lt_save_ifs
10291 test -z "$ac_dir" && ac_dir=.
10292 if test -f "$ac_dir/file"; then
10293 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10294 if test -n "$file_magic_test_file"; then
10295 case $deplibs_check_method in
10296 "file_magic "*)
10297 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10298 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10299 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10300 $EGREP "$file_magic_regex" > /dev/null; then
10301 :
10302 else
10303 cat <<_LT_EOF 1>&2
10304
10305 *** Warning: the command libtool uses to detect shared libraries,
10306 *** $file_magic_cmd, produces output that libtool cannot recognize.
10307 *** The result is that libtool may fail to recognize shared libraries
10308 *** as such. This will affect the creation of libtool libraries that
10309 *** depend on shared libraries, but programs linked with such libtool
10310 *** libraries will work regardless of this problem. Nevertheless, you
10311 *** may want to report the problem to your system manager and/or to
10312 *** [email protected]
10313
10314 _LT_EOF
10315 fi ;;
10316 esac
10317 fi
10318 break
10319 fi
10320 done
10321 IFS=$lt_save_ifs
10322 MAGIC_CMD=$lt_save_MAGIC_CMD
10323 ;;
10324 esac ;;
10325 esac
10326 fi
10327
10328 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10329 if test -n "$MAGIC_CMD"; then
10330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10331 printf "%s\n" "$MAGIC_CMD" >&6; }
10332 else
10333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10334 printf "%s\n" "no" >&6; }
10335 fi
10336
10337
10338 else
10339 MAGIC_CMD=:
10340 fi
10341 fi
10342
10343 fi
10344 ;;
10345 esac
10346
10347 # Use C for the default configuration in the libtool script
10348
10349 lt_save_CC=$CC
10350 ac_ext=c
10351 ac_cpp='$CPP $CPPFLAGS'
10352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10355
10356
10357 # Source file extension for C test sources.
10358 ac_ext=c
10359
10360 # Object file extension for compiled C test sources.
10361 objext=o
10362 objext=$objext
10363
10364 # Code to be used in simple compile tests
10365 lt_simple_compile_test_code="int some_variable = 0;"
10366
10367 # Code to be used in simple link tests
10368 lt_simple_link_test_code='int main(void){return(0);}'
10369
10370
10371
10372
10373
10374
10375
10376 # If no C compiler was specified, use CC.
10377 LTCC=${LTCC-"$CC"}
10378
10379 # If no C compiler flags were specified, use CFLAGS.
10380 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10381
10382 # Allow CC to be a program name with arguments.
10383 compiler=$CC
10384
10385 # Save the default compiler, since it gets overwritten when the other
10386 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10387 compiler_DEFAULT=$CC
10388
10389 # save warnings/boilerplate of simple test code
10390 ac_outfile=conftest.$ac_objext
10391 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10392 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10393 _lt_compiler_boilerplate=`cat conftest.err`
10394 $RM conftest*
10395
10396 ac_outfile=conftest.$ac_objext
10397 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10398 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10399 _lt_linker_boilerplate=`cat conftest.err`
10400 $RM -r conftest*
10401
10402
10403 ## CAVEAT EMPTOR:
10404 ## There is no encapsulation within the following macros, do not change
10405 ## the running order or otherwise move them around unless you know exactly
10406 ## what you are doing...
10407 if test -n "$compiler"; then
10408
10409 lt_prog_compiler_no_builtin_flag=
10410
10411 if test yes = "$GCC"; then
10412 case $cc_basename in
10413 nvcc*)
10414 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10415 *)
10416 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10417 esac
10418
10419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10420 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10421 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
10422 then :
10423 printf %s "(cached) " >&6
10424 else case e in #(
10425 e) lt_cv_prog_compiler_rtti_exceptions=no
10426 ac_outfile=conftest.$ac_objext
10427 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10428 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
10429 # Insert the option either (1) after the last *FLAGS variable, or
10430 # (2) before a word containing "conftest.", or (3) at the end.
10431 # Note that $ac_compile itself does not contain backslashes and begins
10432 # with a dollar sign (not a hyphen), so the echo should work correctly.
10433 # The option is referenced via a variable to avoid confusing sed.
10434 lt_compile=`echo "$ac_compile" | $SED \
10435 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10436 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10437 -e 's:$: $lt_compiler_flag:'`
10438 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10439 (eval "$lt_compile" 2>conftest.err)
10440 ac_status=$?
10441 cat conftest.err >&5
10442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10443 if (exit $ac_status) && test -s "$ac_outfile"; then
10444 # The compiler can only warn and ignore the option if not recognized
10445 # So say no if there are warnings other than the usual output.
10446 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10447 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10448 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10449 lt_cv_prog_compiler_rtti_exceptions=yes
10450 fi
10451 fi
10452 $RM conftest*
10453 ;;
10454 esac
10455 fi
10456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10457 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10458
10459 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10460 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10461 else
10462 :
10463 fi
10464
10465 fi
10466
10467
10468
10469
10470
10471
10472 lt_prog_compiler_wl=
10473 lt_prog_compiler_pic=
10474 lt_prog_compiler_static=
10475
10476
10477 if test yes = "$GCC"; then
10478 lt_prog_compiler_wl='-Wl,'
10479 lt_prog_compiler_static='-static'
10480
10481 case $host_os in
10482 aix*)
10483 # All AIX code is PIC.
10484 if test ia64 = "$host_cpu"; then
10485 # AIX 5 now supports IA64 processor
10486 lt_prog_compiler_static='-Bstatic'
10487 fi
10488 lt_prog_compiler_pic='-fPIC'
10489 ;;
10490
10491 amigaos*)
10492 case $host_cpu in
10493 powerpc)
10494 # see comment about AmigaOS4 .so support
10495 lt_prog_compiler_pic='-fPIC'
10496 ;;
10497 m68k)
10498 # FIXME: we need at least 68020 code to build shared libraries, but
10499 # adding the '-m68020' flag to GCC prevents building anything better,
10500 # like '-m68040'.
10501 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10502 ;;
10503 esac
10504 ;;
10505
10506 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10507 # PIC is the default for these OSes.
10508 ;;
10509
10510 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
10511 # This hack is so that the source file can tell whether it is being
10512 # built for inclusion in a dll (and should export symbols for example).
10513 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10514 # (--disable-auto-import) libraries
10515 lt_prog_compiler_pic='-DDLL_EXPORT'
10516 case $host_os in
10517 os2*)
10518 lt_prog_compiler_static='$wl-static'
10519 ;;
10520 esac
10521 ;;
10522
10523 darwin* | rhapsody*)
10524 # PIC is the default on this platform
10525 # Common symbols not allowed in MH_DYLIB files
10526 lt_prog_compiler_pic='-fno-common'
10527 ;;
10528
10529 haiku*)
10530 # PIC is the default for Haiku.
10531 # The "-static" flag exists, but is broken.
10532 lt_prog_compiler_static=
10533 ;;
10534
10535 hpux*)
10536 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10537 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10538 # sets the default TLS model and affects inlining.
10539 case $host_cpu in
10540 hppa*64*)
10541 # +Z the default
10542 ;;
10543 *)
10544 lt_prog_compiler_pic='-fPIC'
10545 ;;
10546 esac
10547 ;;
10548
10549 interix[3-9]*)
10550 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10551 # Instead, we relocate shared libraries at runtime.
10552 ;;
10553
10554 msdosdjgpp*)
10555 # Just because we use GCC doesn't mean we suddenly get shared libraries
10556 # on systems that don't support them.
10557 lt_prog_compiler_can_build_shared=no
10558 enable_shared=no
10559 ;;
10560
10561 *nto* | *qnx*)
10562 # QNX uses GNU C++, but need to define -shared option too, otherwise
10563 # it will coredump.
10564 lt_prog_compiler_pic='-fPIC -shared'
10565 ;;
10566
10567 sysv4*MP*)
10568 if test -d /usr/nec; then
10569 lt_prog_compiler_pic=-Kconform_pic
10570 fi
10571 ;;
10572
10573 *)
10574 lt_prog_compiler_pic='-fPIC'
10575 ;;
10576 esac
10577
10578 case $cc_basename in
10579 nvcc*) # Cuda Compiler Driver 2.2
10580 lt_prog_compiler_wl='-Xlinker '
10581 if test -n "$lt_prog_compiler_pic"; then
10582 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10583 fi
10584 ;;
10585 esac
10586 else
10587 # PORTME Check for flag to pass linker flags through the system compiler.
10588 case $host_os in
10589 aix*)
10590 lt_prog_compiler_wl='-Wl,'
10591 if test ia64 = "$host_cpu"; then
10592 # AIX 5 now supports IA64 processor
10593 lt_prog_compiler_static='-Bstatic'
10594 else
10595 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10596 fi
10597 ;;
10598
10599 darwin* | rhapsody*)
10600 # PIC is the default on this platform
10601 # Common symbols not allowed in MH_DYLIB files
10602 lt_prog_compiler_pic='-fno-common'
10603 case $cc_basename in
10604 nagfor*)
10605 # NAG Fortran compiler
10606 lt_prog_compiler_wl='-Wl,-Wl,,'
10607 lt_prog_compiler_pic='-PIC'
10608 lt_prog_compiler_static='-Bstatic'
10609 ;;
10610 esac
10611 ;;
10612
10613 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
10614 # This hack is so that the source file can tell whether it is being
10615 # built for inclusion in a dll (and should export symbols for example).
10616 lt_prog_compiler_pic='-DDLL_EXPORT'
10617 case $host_os in
10618 os2*)
10619 lt_prog_compiler_static='$wl-static'
10620 ;;
10621 esac
10622 ;;
10623
10624 hpux9* | hpux10* | hpux11*)
10625 lt_prog_compiler_wl='-Wl,'
10626 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10627 # not for PA HP-UX.
10628 case $host_cpu in
10629 hppa*64*|ia64*)
10630 # +Z the default
10631 ;;
10632 *)
10633 lt_prog_compiler_pic='+Z'
10634 ;;
10635 esac
10636 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10637 lt_prog_compiler_static='$wl-a ${wl}archive'
10638 ;;
10639
10640 irix5* | irix6* | nonstopux*)
10641 lt_prog_compiler_wl='-Wl,'
10642 # PIC (with -KPIC) is the default.
10643 lt_prog_compiler_static='-non_shared'
10644 ;;
10645
10646 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10647 case $cc_basename in
10648 # old Intel for x86_64, which still supported -KPIC.
10649 ecc*)
10650 lt_prog_compiler_wl='-Wl,'
10651 lt_prog_compiler_pic='-KPIC'
10652 lt_prog_compiler_static='-static'
10653 ;;
10654 *flang* | ftn | f18* | f95*)
10655 # Flang compiler.
10656 lt_prog_compiler_wl='-Wl,'
10657 lt_prog_compiler_pic='-fPIC'
10658 lt_prog_compiler_static='-static'
10659 ;;
10660 # icc used to be incompatible with GCC.
10661 # ICC 10 doesn't accept -KPIC any more.
10662 icc* | ifort*)
10663 lt_prog_compiler_wl='-Wl,'
10664 lt_prog_compiler_pic='-fPIC'
10665 lt_prog_compiler_static='-static'
10666 ;;
10667 # Lahey Fortran 8.1.
10668 lf95*)
10669 lt_prog_compiler_wl='-Wl,'
10670 lt_prog_compiler_pic='--shared'
10671 lt_prog_compiler_static='--static'
10672 ;;
10673 nagfor*)
10674 # NAG Fortran compiler
10675 lt_prog_compiler_wl='-Wl,-Wl,,'
10676 lt_prog_compiler_pic='-PIC'
10677 lt_prog_compiler_static='-Bstatic'
10678 ;;
10679 tcc*)
10680 # Fabrice Bellard et al's Tiny C Compiler
10681 lt_prog_compiler_wl='-Wl,'
10682 lt_prog_compiler_pic='-fPIC'
10683 lt_prog_compiler_static='-static'
10684 ;;
10685 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10686 # Portland Group compilers (*not* the Pentium gcc compiler,
10687 # which looks to be a dead project)
10688 lt_prog_compiler_wl='-Wl,'
10689 lt_prog_compiler_pic='-fpic'
10690 lt_prog_compiler_static='-Bstatic'
10691 ;;
10692 ccc*)
10693 lt_prog_compiler_wl='-Wl,'
10694 # All Alpha code is PIC.
10695 lt_prog_compiler_static='-non_shared'
10696 ;;
10697 xl* | bgxl* | bgf* | mpixl*)
10698 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10699 lt_prog_compiler_wl='-Wl,'
10700 lt_prog_compiler_pic='-qpic'
10701 lt_prog_compiler_static='-qstaticlink'
10702 ;;
10703 *)
10704 case `$CC -V 2>&1 | $SED 5q` in
10705 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10706 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10707 lt_prog_compiler_pic='-KPIC'
10708 lt_prog_compiler_static='-Bstatic'
10709 lt_prog_compiler_wl=''
10710 ;;
10711 *Sun\ F* | *Sun*Fortran*)
10712 lt_prog_compiler_pic='-KPIC'
10713 lt_prog_compiler_static='-Bstatic'
10714 lt_prog_compiler_wl='-Qoption ld '
10715 ;;
10716 *Sun\ C*)
10717 # Sun C 5.9
10718 lt_prog_compiler_pic='-KPIC'
10719 lt_prog_compiler_static='-Bstatic'
10720 lt_prog_compiler_wl='-Wl,'
10721 ;;
10722 *Intel*\ [CF]*Compiler*)
10723 lt_prog_compiler_wl='-Wl,'
10724 lt_prog_compiler_pic='-fPIC'
10725 lt_prog_compiler_static='-static'
10726 ;;
10727 *Portland\ Group*)
10728 lt_prog_compiler_wl='-Wl,'
10729 lt_prog_compiler_pic='-fpic'
10730 lt_prog_compiler_static='-Bstatic'
10731 ;;
10732 esac
10733 ;;
10734 esac
10735 ;;
10736
10737 newsos6)
10738 lt_prog_compiler_pic='-KPIC'
10739 lt_prog_compiler_static='-Bstatic'
10740 ;;
10741
10742 *-mlibc)
10743 lt_prog_compiler_wl='-Wl,'
10744 lt_prog_compiler_pic='-fPIC'
10745 lt_prog_compiler_static='-static'
10746 ;;
10747
10748 *nto* | *qnx*)
10749 # QNX uses GNU C++, but need to define -shared option too, otherwise
10750 # it will coredump.
10751 lt_prog_compiler_pic='-fPIC -shared'
10752 ;;
10753
10754 osf3* | osf4* | osf5*)
10755 lt_prog_compiler_wl='-Wl,'
10756 # All OSF/1 code is PIC.
10757 lt_prog_compiler_static='-non_shared'
10758 ;;
10759
10760 rdos*)
10761 lt_prog_compiler_static='-non_shared'
10762 ;;
10763
10764 serenity*)
10765 ;;
10766
10767 solaris*)
10768 lt_prog_compiler_pic='-KPIC'
10769 lt_prog_compiler_static='-Bstatic'
10770 case $cc_basename in
10771 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10772 lt_prog_compiler_wl='-Qoption ld ';;
10773 *)
10774 lt_prog_compiler_wl='-Wl,';;
10775 esac
10776 ;;
10777
10778 sunos4*)
10779 lt_prog_compiler_wl='-Qoption ld '
10780 lt_prog_compiler_pic='-PIC'
10781 lt_prog_compiler_static='-Bstatic'
10782 ;;
10783
10784 sysv4 | sysv4.2uw2* | sysv4.3*)
10785 lt_prog_compiler_wl='-Wl,'
10786 lt_prog_compiler_pic='-KPIC'
10787 lt_prog_compiler_static='-Bstatic'
10788 ;;
10789
10790 sysv4*MP*)
10791 if test -d /usr/nec; then
10792 lt_prog_compiler_pic='-Kconform_pic'
10793 lt_prog_compiler_static='-Bstatic'
10794 fi
10795 ;;
10796
10797 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10798 lt_prog_compiler_wl='-Wl,'
10799 lt_prog_compiler_pic='-KPIC'
10800 lt_prog_compiler_static='-Bstatic'
10801 ;;
10802
10803 unicos*)
10804 lt_prog_compiler_wl='-Wl,'
10805 lt_prog_compiler_can_build_shared=no
10806 ;;
10807
10808 uts4*)
10809 lt_prog_compiler_pic='-pic'
10810 lt_prog_compiler_static='-Bstatic'
10811 ;;
10812
10813 *)
10814 lt_prog_compiler_can_build_shared=no
10815 ;;
10816 esac
10817 fi
10818
10819 case $host_os in
10820 # For platforms that do not support PIC, -DPIC is meaningless:
10821 *djgpp*)
10822 lt_prog_compiler_pic=
10823 ;;
10824 *)
10825 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10826 ;;
10827 esac
10828
10829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10830 printf %s "checking for $compiler option to produce PIC... " >&6; }
10831 if test ${lt_cv_prog_compiler_pic+y}
10832 then :
10833 printf %s "(cached) " >&6
10834 else case e in #(
10835 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
10836 esac
10837 fi
10838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10839 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
10840 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10841
10842 #
10843 # Check to make sure the PIC flag actually works.
10844 #
10845 if test -n "$lt_prog_compiler_pic"; then
10846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10847 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10848 if test ${lt_cv_prog_compiler_pic_works+y}
10849 then :
10850 printf %s "(cached) " >&6
10851 else case e in #(
10852 e) lt_cv_prog_compiler_pic_works=no
10853 ac_outfile=conftest.$ac_objext
10854 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10855 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10856 # Insert the option either (1) after the last *FLAGS variable, or
10857 # (2) before a word containing "conftest.", or (3) at the end.
10858 # Note that $ac_compile itself does not contain backslashes and begins
10859 # with a dollar sign (not a hyphen), so the echo should work correctly.
10860 # The option is referenced via a variable to avoid confusing sed.
10861 lt_compile=`echo "$ac_compile" | $SED \
10862 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10863 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10864 -e 's:$: $lt_compiler_flag:'`
10865 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10866 (eval "$lt_compile" 2>conftest.err)
10867 ac_status=$?
10868 cat conftest.err >&5
10869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10870 if (exit $ac_status) && test -s "$ac_outfile"; then
10871 # The compiler can only warn and ignore the option if not recognized
10872 # So say no if there are warnings other than the usual output.
10873 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10874 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10875 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10876 lt_cv_prog_compiler_pic_works=yes
10877 fi
10878 fi
10879 $RM conftest*
10880 ;;
10881 esac
10882 fi
10883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10884 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
10885
10886 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10887 case $lt_prog_compiler_pic in
10888 "" | " "*) ;;
10889 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10890 esac
10891 else
10892 lt_prog_compiler_pic=
10893 lt_prog_compiler_can_build_shared=no
10894 fi
10895
10896 fi
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908 #
10909 # Check to make sure the static flag actually works.
10910 #
10911 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10913 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10914 if test ${lt_cv_prog_compiler_static_works+y}
10915 then :
10916 printf %s "(cached) " >&6
10917 else case e in #(
10918 e) lt_cv_prog_compiler_static_works=no
10919 save_LDFLAGS=$LDFLAGS
10920 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10921 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10922 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10923 # The linker can only warn and ignore the option if not recognized
10924 # So say no if there are warnings
10925 if test -s conftest.err; then
10926 # Append any errors to the config.log.
10927 cat conftest.err 1>&5
10928 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10929 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10930 if diff conftest.exp conftest.er2 >/dev/null; then
10931 lt_cv_prog_compiler_static_works=yes
10932 fi
10933 else
10934 lt_cv_prog_compiler_static_works=yes
10935 fi
10936 fi
10937 $RM -r conftest*
10938 LDFLAGS=$save_LDFLAGS
10939 ;;
10940 esac
10941 fi
10942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10943 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
10944
10945 if test yes = "$lt_cv_prog_compiler_static_works"; then
10946 :
10947 else
10948 lt_prog_compiler_static=
10949 fi
10950
10951
10952
10953
10954
10955
10956
10957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10958 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10959 if test ${lt_cv_prog_compiler_c_o+y}
10960 then :
10961 printf %s "(cached) " >&6
10962 else case e in #(
10963 e) lt_cv_prog_compiler_c_o=no
10964 $RM -r conftest 2>/dev/null
10965 mkdir conftest
10966 cd conftest
10967 mkdir out
10968 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10969
10970 lt_compiler_flag="-o out/conftest2.$ac_objext"
10971 # Insert the option either (1) after the last *FLAGS variable, or
10972 # (2) before a word containing "conftest.", or (3) at the end.
10973 # Note that $ac_compile itself does not contain backslashes and begins
10974 # with a dollar sign (not a hyphen), so the echo should work correctly.
10975 lt_compile=`echo "$ac_compile" | $SED \
10976 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10977 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10978 -e 's:$: $lt_compiler_flag:'`
10979 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10980 (eval "$lt_compile" 2>out/conftest.err)
10981 ac_status=$?
10982 cat out/conftest.err >&5
10983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10984 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10985 then
10986 # The compiler can only warn and ignore the option if not recognized
10987 # So say no if there are warnings
10988 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10989 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10990 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10991 lt_cv_prog_compiler_c_o=yes
10992 fi
10993 fi
10994 chmod u+w . 2>&5
10995 $RM conftest*
10996 # SGI C++ compiler will create directory out/ii_files/ for
10997 # template instantiation
10998 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10999 $RM out/* && rmdir out
11000 cd ..
11001 $RM -r conftest
11002 $RM conftest*
11003 ;;
11004 esac
11005 fi
11006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11007 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
11008
11009
11010
11011
11012
11013
11014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11015 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11016 if test ${lt_cv_prog_compiler_c_o+y}
11017 then :
11018 printf %s "(cached) " >&6
11019 else case e in #(
11020 e) lt_cv_prog_compiler_c_o=no
11021 $RM -r conftest 2>/dev/null
11022 mkdir conftest
11023 cd conftest
11024 mkdir out
11025 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11026
11027 lt_compiler_flag="-o out/conftest2.$ac_objext"
11028 # Insert the option either (1) after the last *FLAGS variable, or
11029 # (2) before a word containing "conftest.", or (3) at the end.
11030 # Note that $ac_compile itself does not contain backslashes and begins
11031 # with a dollar sign (not a hyphen), so the echo should work correctly.
11032 lt_compile=`echo "$ac_compile" | $SED \
11033 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11034 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11035 -e 's:$: $lt_compiler_flag:'`
11036 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11037 (eval "$lt_compile" 2>out/conftest.err)
11038 ac_status=$?
11039 cat out/conftest.err >&5
11040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11041 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11042 then
11043 # The compiler can only warn and ignore the option if not recognized
11044 # So say no if there are warnings
11045 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11046 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11047 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11048 lt_cv_prog_compiler_c_o=yes
11049 fi
11050 fi
11051 chmod u+w . 2>&5
11052 $RM conftest*
11053 # SGI C++ compiler will create directory out/ii_files/ for
11054 # template instantiation
11055 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11056 $RM out/* && rmdir out
11057 cd ..
11058 $RM -r conftest
11059 $RM conftest*
11060 ;;
11061 esac
11062 fi
11063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11064 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
11065
11066
11067
11068
11069 hard_links=nottested
11070 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
11071 # do not overwrite the value of need_locks provided by the user
11072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11073 printf %s "checking if we can lock with hard links... " >&6; }
11074 hard_links=yes
11075 $RM conftest*
11076 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11077 touch conftest.a
11078 ln conftest.a conftest.b 2>&5 || hard_links=no
11079 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11081 printf "%s\n" "$hard_links" >&6; }
11082 if test no = "$hard_links"; then
11083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11084 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
11085 need_locks=warn
11086 fi
11087 else
11088 need_locks=no
11089 fi
11090
11091
11092
11093
11094
11095
11096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11097 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11098
11099 runpath_var=
11100 allow_undefined_flag=
11101 always_export_symbols=no
11102 archive_cmds=
11103 archive_expsym_cmds=
11104 compiler_needs_object=no
11105 enable_shared_with_static_runtimes=no
11106 export_dynamic_flag_spec=
11107 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11108 hardcode_automatic=no
11109 hardcode_direct=no
11110 hardcode_direct_absolute=no
11111 hardcode_libdir_flag_spec=
11112 hardcode_libdir_separator=
11113 hardcode_minus_L=no
11114 hardcode_shlibpath_var=unsupported
11115 inherit_rpath=no
11116 link_all_deplibs=unknown
11117 module_cmds=
11118 module_expsym_cmds=
11119 old_archive_from_new_cmds=
11120 old_archive_from_expsyms_cmds=
11121 thread_safe_flag_spec=
11122 whole_archive_flag_spec=
11123 # include_expsyms should be a list of space-separated symbols to be *always*
11124 # included in the symbol list
11125 include_expsyms=
11126 # exclude_expsyms can be an extended regexp of symbols to exclude
11127 # it will be wrapped by ' (' and ')$', so one must not match beginning or
11128 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11129 # as well as any symbol that contains 'd'.
11130 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11131 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11132 # platforms (ab)use it in PIC code, but their linkers get confused if
11133 # the symbol is explicitly referenced. Since portable code cannot
11134 # rely on this symbol name, it's probably fine to never include it in
11135 # preloaded symbol tables.
11136 # Exclude shared library initialization/finalization symbols.
11137 extract_expsyms_cmds=
11138
11139 case $host_os in
11140 cygwin* | mingw* | windows* | pw32* | cegcc*)
11141 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
11142 # When not using gcc, we currently assume that we are using
11143 # Microsoft Visual C++ or Intel C++ Compiler.
11144 if test yes != "$GCC"; then
11145 with_gnu_ld=no
11146 fi
11147 ;;
11148 interix*)
11149 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
11150 with_gnu_ld=yes
11151 ;;
11152 esac
11153
11154 ld_shlibs=yes
11155
11156 # On some targets, GNU ld is compatible enough with the native linker
11157 # that we're better off using the native interface for both.
11158 lt_use_gnu_ld_interface=no
11159 if test yes = "$with_gnu_ld"; then
11160 case $host_os in
11161 aix*)
11162 # The AIX port of GNU ld has always aspired to compatibility
11163 # with the native linker. However, as the warning in the GNU ld
11164 # block says, versions before 2.19.5* couldn't really create working
11165 # shared libraries, regardless of the interface used.
11166 case `$LD -v 2>&1` in
11167 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11168 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11169 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11170 *)
11171 lt_use_gnu_ld_interface=yes
11172 ;;
11173 esac
11174 ;;
11175 *)
11176 lt_use_gnu_ld_interface=yes
11177 ;;
11178 esac
11179 fi
11180
11181 if test yes = "$lt_use_gnu_ld_interface"; then
11182 # If archive_cmds runs LD, not CC, wlarc should be empty
11183 wlarc='$wl'
11184
11185 # Set some defaults for GNU ld with shared library support. These
11186 # are reset later if shared libraries are not supported. Putting them
11187 # here allows them to be overridden if necessary.
11188 runpath_var=LD_RUN_PATH
11189 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11190 export_dynamic_flag_spec='$wl--export-dynamic'
11191 # ancient GNU ld didn't support --whole-archive et. al.
11192 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11193 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11194 else
11195 whole_archive_flag_spec=
11196 fi
11197 supports_anon_versioning=no
11198 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
11199 *GNU\ gold*) supports_anon_versioning=yes ;;
11200 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11201 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11202 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11203 *\ 2.11.*) ;; # other 2.11 versions
11204 *) supports_anon_versioning=yes ;;
11205 esac
11206
11207 # See if GNU ld supports shared libraries.
11208 case $host_os in
11209 aix[3-9]*)
11210 # On AIX/PPC, the GNU linker is very broken
11211 if test ia64 != "$host_cpu"; then
11212 ld_shlibs=no
11213 cat <<_LT_EOF 1>&2
11214
11215 *** Warning: the GNU linker, at least up to release 2.19, is reported
11216 *** to be unable to reliably create shared libraries on AIX.
11217 *** Therefore, libtool is disabling shared libraries support. If you
11218 *** really care for shared libraries, you may want to install binutils
11219 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11220 *** You will then need to restart the configuration process.
11221
11222 _LT_EOF
11223 fi
11224 ;;
11225
11226 amigaos*)
11227 case $host_cpu in
11228 powerpc)
11229 # see comment about AmigaOS4 .so support
11230 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11231 archive_expsym_cmds=''
11232 ;;
11233 m68k)
11234 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)'
11235 hardcode_libdir_flag_spec='-L$libdir'
11236 hardcode_minus_L=yes
11237 ;;
11238 esac
11239 ;;
11240
11241 beos*)
11242 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11243 allow_undefined_flag=unsupported
11244 # Joseph Beckenbach <[email protected]> says some releases of gcc
11245 # support --undefined. This deserves some investigation. FIXME
11246 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11247 else
11248 ld_shlibs=no
11249 fi
11250 ;;
11251
11252 cygwin* | mingw* | windows* | pw32* | cegcc*)
11253 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11254 # as there is no search path for DLLs.
11255 hardcode_libdir_flag_spec='-L$libdir'
11256 export_dynamic_flag_spec='$wl--export-all-symbols'
11257 allow_undefined_flag=unsupported
11258 always_export_symbols=no
11259 enable_shared_with_static_runtimes=yes
11260 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'
11261 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11262 file_list_spec='@'
11263
11264 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11265 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11266 # If the export-symbols file already is a .def file, use it as
11267 # is; otherwise, prepend EXPORTS...
11268 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11269 cp $export_symbols $output_objdir/$soname.def;
11270 else
11271 echo EXPORTS > $output_objdir/$soname.def;
11272 cat $export_symbols >> $output_objdir/$soname.def;
11273 fi~
11274 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11275 else
11276 ld_shlibs=no
11277 fi
11278 ;;
11279
11280 haiku*)
11281 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11282 link_all_deplibs=no
11283 ;;
11284
11285 os2*)
11286 hardcode_libdir_flag_spec='-L$libdir'
11287 hardcode_minus_L=yes
11288 allow_undefined_flag=unsupported
11289 shrext_cmds=.dll
11290 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11291 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11292 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11293 $ECHO EXPORTS >> $output_objdir/$libname.def~
11294 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11295 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11296 emximp -o $lib $output_objdir/$libname.def'
11297 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11298 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11299 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11300 $ECHO EXPORTS >> $output_objdir/$libname.def~
11301 prefix_cmds="$SED"~
11302 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11303 prefix_cmds="$prefix_cmds -e 1d";
11304 fi~
11305 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11306 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11307 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11308 emximp -o $lib $output_objdir/$libname.def'
11309 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11310 enable_shared_with_static_runtimes=yes
11311 file_list_spec='@'
11312 ;;
11313
11314 interix[3-9]*)
11315 hardcode_direct=no
11316 hardcode_shlibpath_var=no
11317 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11318 export_dynamic_flag_spec='$wl-E'
11319 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11320 # Instead, shared libraries are loaded at an image base (0x10000000 by
11321 # default) and relocated if they conflict, which is a slow very memory
11322 # consuming and fragmenting process. To avoid this, we pick a random,
11323 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11324 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11325 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11326 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'
11327 ;;
11328
11329 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11330 tmp_diet=no
11331 if test linux-dietlibc = "$host_os"; then
11332 case $cc_basename in
11333 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11334 esac
11335 fi
11336 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11337 && test no = "$tmp_diet"
11338 then
11339 tmp_addflag=' $pic_flag'
11340 tmp_sharedflag='-shared'
11341 case $cc_basename,$host_cpu in
11342 pgcc*) # Portland Group C compiler
11343 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'
11344 tmp_addflag=' $pic_flag'
11345 ;;
11346 pgf77* | pgf90* | pgf95* | pgfortran*)
11347 # Portland Group f77 and f90 compilers
11348 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'
11349 tmp_addflag=' $pic_flag -Mnomain' ;;
11350 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11351 tmp_addflag=' -i_dynamic' ;;
11352 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11353 tmp_addflag=' -i_dynamic -nofor_main' ;;
11354 ifc* | ifort*) # Intel Fortran compiler
11355 tmp_addflag=' -nofor_main' ;;
11356 lf95*) # Lahey Fortran 8.1
11357 whole_archive_flag_spec=
11358 tmp_sharedflag='--shared' ;;
11359 nagfor*) # NAGFOR 5.3
11360 tmp_sharedflag='-Wl,-shared' ;;
11361 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11362 tmp_sharedflag='-qmkshrobj'
11363 tmp_addflag= ;;
11364 nvcc*) # Cuda Compiler Driver 2.2
11365 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'
11366 compiler_needs_object=yes
11367 ;;
11368 esac
11369 case `$CC -V 2>&1 | $SED 5q` in
11370 *Sun\ C*) # Sun C 5.9
11371 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'
11372 compiler_needs_object=yes
11373 tmp_sharedflag='-G' ;;
11374 *Sun\ F*) # Sun Fortran 8.3
11375 tmp_sharedflag='-G' ;;
11376 esac
11377 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11378
11379 if test yes = "$supports_anon_versioning"; then
11380 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11381 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11382 echo "local: *; };" >> $output_objdir/$libname.ver~
11383 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11384 fi
11385
11386 case $cc_basename in
11387 tcc*)
11388 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11389 export_dynamic_flag_spec='-rdynamic'
11390 ;;
11391 xlf* | bgf* | bgxlf* | mpixlf*)
11392 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11393 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11394 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11395 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11396 if test yes = "$supports_anon_versioning"; then
11397 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11398 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11399 echo "local: *; };" >> $output_objdir/$libname.ver~
11400 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11401 fi
11402 ;;
11403 esac
11404 else
11405 ld_shlibs=no
11406 fi
11407 ;;
11408
11409 *-mlibc)
11410 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11411 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11412 ;;
11413
11414 netbsd* | netbsdelf*-gnu)
11415 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11416 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11417 wlarc=
11418 else
11419 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11420 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11421 fi
11422 ;;
11423
11424 solaris*)
11425 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11426 ld_shlibs=no
11427 cat <<_LT_EOF 1>&2
11428
11429 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11430 *** create shared libraries on Solaris systems. Therefore, libtool
11431 *** is disabling shared libraries support. We urge you to upgrade GNU
11432 *** binutils to release 2.9.1 or newer. Another option is to modify
11433 *** your PATH or compiler configuration so that the native linker is
11434 *** used, and then restart.
11435
11436 _LT_EOF
11437 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11438 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11439 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11440 else
11441 ld_shlibs=no
11442 fi
11443 ;;
11444
11445 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11446 case `$LD -v 2>&1` in
11447 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11448 ld_shlibs=no
11449 cat <<_LT_EOF 1>&2
11450
11451 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11452 *** reliably create shared libraries on SCO systems. Therefore, libtool
11453 *** is disabling shared libraries support. We urge you to upgrade GNU
11454 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11455 *** your PATH or compiler configuration so that the native linker is
11456 *** used, and then restart.
11457
11458 _LT_EOF
11459 ;;
11460 *)
11461 # For security reasons, it is highly recommended that you always
11462 # use absolute paths for naming shared libraries, and exclude the
11463 # DT_RUNPATH tag from executables and libraries. But doing so
11464 # requires that you compile everything twice, which is a pain.
11465 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11466 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11467 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11468 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11469 else
11470 ld_shlibs=no
11471 fi
11472 ;;
11473 esac
11474 ;;
11475
11476 sunos4*)
11477 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11478 wlarc=
11479 hardcode_direct=yes
11480 hardcode_shlibpath_var=no
11481 ;;
11482
11483 *)
11484 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11485 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11486 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11487 else
11488 ld_shlibs=no
11489 fi
11490 ;;
11491 esac
11492
11493 if test no = "$ld_shlibs"; then
11494 runpath_var=
11495 hardcode_libdir_flag_spec=
11496 export_dynamic_flag_spec=
11497 whole_archive_flag_spec=
11498 fi
11499 else
11500 # PORTME fill in a description of your system's linker (not GNU ld)
11501 case $host_os in
11502 aix3*)
11503 allow_undefined_flag=unsupported
11504 always_export_symbols=yes
11505 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'
11506 # Note: this linker hardcodes the directories in LIBPATH if there
11507 # are no directories specified by -L.
11508 hardcode_minus_L=yes
11509 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11510 # Neither direct hardcoding nor static linking is supported with a
11511 # broken collect2.
11512 hardcode_direct=unsupported
11513 fi
11514 ;;
11515
11516 aix[4-9]*)
11517 if test ia64 = "$host_cpu"; then
11518 # On IA64, the linker does run time linking by default, so we don't
11519 # have to do anything special.
11520 aix_use_runtimelinking=no
11521 exp_sym_flag='-Bexport'
11522 no_entry_flag=
11523 else
11524 # If we're using GNU nm, then we don't want the "-C" option.
11525 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
11526 # Without the "-l" option, or with the "-B" option, AIX nm treats
11527 # weak defined symbols like other global defined symbols, whereas
11528 # GNU nm marks them as "W".
11529 # While the 'weak' keyword is ignored in the Export File, we need
11530 # it in the Import File for the 'aix-soname' feature, so we have
11531 # to replace the "-B" option with "-P" for AIX nm.
11532 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11533 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'
11534 else
11535 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'
11536 fi
11537 aix_use_runtimelinking=no
11538
11539 # Test if we are trying to use run time linking or normal
11540 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11541 # have runtime linking enabled, and use it for executables.
11542 # For shared libraries, we enable/disable runtime linking
11543 # depending on the kind of the shared library created -
11544 # when "with_aix_soname,aix_use_runtimelinking" is:
11545 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
11546 # "aix,yes" lib.so shared, rtl:yes, for executables
11547 # lib.a static archive
11548 # "both,no" lib.so.V(shr.o) shared, rtl:yes
11549 # lib.a(lib.so.V) shared, rtl:no, for executables
11550 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11551 # lib.a(lib.so.V) shared, rtl:no
11552 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
11553 # lib.a static archive
11554 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11555 for ld_flag in $LDFLAGS; do
11556 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11557 aix_use_runtimelinking=yes
11558 break
11559 fi
11560 done
11561 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11562 # With aix-soname=svr4, we create the lib.so.V shared archives only,
11563 # so we don't have lib.a shared libs to link our executables.
11564 # We have to force runtime linking in this case.
11565 aix_use_runtimelinking=yes
11566 LDFLAGS="$LDFLAGS -Wl,-brtl"
11567 fi
11568 ;;
11569 esac
11570
11571 exp_sym_flag='-bexport'
11572 no_entry_flag='-bnoentry'
11573 fi
11574
11575 # When large executables or shared objects are built, AIX ld can
11576 # have problems creating the table of contents. If linking a library
11577 # or program results in "error TOC overflow" add -mminimal-toc to
11578 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11579 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11580
11581 archive_cmds=''
11582 hardcode_direct=yes
11583 hardcode_direct_absolute=yes
11584 hardcode_libdir_separator=':'
11585 link_all_deplibs=yes
11586 file_list_spec='$wl-f,'
11587 case $with_aix_soname,$aix_use_runtimelinking in
11588 aix,*) ;; # traditional, no import file
11589 svr4,* | *,yes) # use import file
11590 # The Import File defines what to hardcode.
11591 hardcode_direct=no
11592 hardcode_direct_absolute=no
11593 ;;
11594 esac
11595
11596 if test yes = "$GCC"; then
11597 case $host_os in aix4.[012]|aix4.[012].*)
11598 # We only want to do this on AIX 4.2 and lower, the check
11599 # below for broken collect2 doesn't work under 4.3+
11600 collect2name=`$CC -print-prog-name=collect2`
11601 if test -f "$collect2name" &&
11602 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11603 then
11604 # We have reworked collect2
11605 :
11606 else
11607 # We have old collect2
11608 hardcode_direct=unsupported
11609 # It fails to find uninstalled libraries when the uninstalled
11610 # path is not listed in the libpath. Setting hardcode_minus_L
11611 # to unsupported forces relinking
11612 hardcode_minus_L=yes
11613 hardcode_libdir_flag_spec='-L$libdir'
11614 hardcode_libdir_separator=
11615 fi
11616 ;;
11617 esac
11618 shared_flag='-shared'
11619 if test yes = "$aix_use_runtimelinking"; then
11620 shared_flag="$shared_flag "'$wl-G'
11621 fi
11622 # Need to ensure runtime linking is disabled for the traditional
11623 # shared library, or the linker may eventually find shared libraries
11624 # /with/ Import File - we do not want to mix them.
11625 shared_flag_aix='-shared'
11626 shared_flag_svr4='-shared $wl-G'
11627 else
11628 # not using gcc
11629 if test ia64 = "$host_cpu"; then
11630 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11631 # chokes on -Wl,-G. The following line is correct:
11632 shared_flag='-G'
11633 else
11634 if test yes = "$aix_use_runtimelinking"; then
11635 shared_flag='$wl-G'
11636 else
11637 shared_flag='$wl-bM:SRE'
11638 fi
11639 shared_flag_aix='$wl-bM:SRE'
11640 shared_flag_svr4='$wl-G'
11641 fi
11642 fi
11643
11644 export_dynamic_flag_spec='$wl-bexpall'
11645 # It seems that -bexpall does not export symbols beginning with
11646 # underscore (_), so it is better to generate a list of symbols to export.
11647 always_export_symbols=yes
11648 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11649 # Warning - without using the other runtime loading flags (-brtl),
11650 # -berok will link without error, but may produce a broken library.
11651 allow_undefined_flag='-berok'
11652 # Determine the default libpath from the value encoded in an
11653 # empty executable.
11654 if test set = "${lt_cv_aix_libpath+set}"; then
11655 aix_libpath=$lt_cv_aix_libpath
11656 else
11657 if test ${lt_cv_aix_libpath_+y}
11658 then :
11659 printf %s "(cached) " >&6
11660 else case e in #(
11661 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11662 /* end confdefs.h. */
11663
11664 int
11665 main (void)
11666 {
11667
11668 ;
11669 return 0;
11670 }
11671 _ACEOF
11672 if ac_fn_c_try_link "$LINENO"
11673 then :
11674
11675 lt_aix_libpath_sed='
11676 /Import File Strings/,/^$/ {
11677 /^0/ {
11678 s/^0 *\([^ ]*\) *$/\1/
11679 p
11680 }
11681 }'
11682 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11683 # Check for a 64-bit object if we didn't find anything.
11684 if test -z "$lt_cv_aix_libpath_"; then
11685 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11686 fi
11687 fi
11688 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11689 conftest$ac_exeext conftest.$ac_ext
11690 if test -z "$lt_cv_aix_libpath_"; then
11691 lt_cv_aix_libpath_=/usr/lib:/lib
11692 fi
11693 ;;
11694 esac
11695 fi
11696
11697 aix_libpath=$lt_cv_aix_libpath_
11698 fi
11699
11700 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11701 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
11702 else
11703 if test ia64 = "$host_cpu"; then
11704 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11705 allow_undefined_flag="-z nodefs"
11706 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"
11707 else
11708 # Determine the default libpath from the value encoded in an
11709 # empty executable.
11710 if test set = "${lt_cv_aix_libpath+set}"; then
11711 aix_libpath=$lt_cv_aix_libpath
11712 else
11713 if test ${lt_cv_aix_libpath_+y}
11714 then :
11715 printf %s "(cached) " >&6
11716 else case e in #(
11717 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11718 /* end confdefs.h. */
11719
11720 int
11721 main (void)
11722 {
11723
11724 ;
11725 return 0;
11726 }
11727 _ACEOF
11728 if ac_fn_c_try_link "$LINENO"
11729 then :
11730
11731 lt_aix_libpath_sed='
11732 /Import File Strings/,/^$/ {
11733 /^0/ {
11734 s/^0 *\([^ ]*\) *$/\1/
11735 p
11736 }
11737 }'
11738 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11739 # Check for a 64-bit object if we didn't find anything.
11740 if test -z "$lt_cv_aix_libpath_"; then
11741 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11742 fi
11743 fi
11744 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11745 conftest$ac_exeext conftest.$ac_ext
11746 if test -z "$lt_cv_aix_libpath_"; then
11747 lt_cv_aix_libpath_=/usr/lib:/lib
11748 fi
11749 ;;
11750 esac
11751 fi
11752
11753 aix_libpath=$lt_cv_aix_libpath_
11754 fi
11755
11756 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11757 # Warning - without using the other run time loading flags,
11758 # -berok will link without error, but may produce a broken library.
11759 no_undefined_flag=' $wl-bernotok'
11760 allow_undefined_flag=' $wl-berok'
11761 if test yes = "$with_gnu_ld"; then
11762 # We only use this code for GNU lds that support --whole-archive.
11763 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11764 else
11765 # Exported symbols can be pulled into shared objects from archives
11766 whole_archive_flag_spec='$convenience'
11767 fi
11768 archive_cmds_need_lc=yes
11769 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11770 # -brtl affects multiple linker settings, -berok does not and is overridden later
11771 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11772 if test svr4 != "$with_aix_soname"; then
11773 # This is similar to how AIX traditionally builds its shared libraries.
11774 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'
11775 fi
11776 if test aix != "$with_aix_soname"; then
11777 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'
11778 else
11779 # used by -dlpreopen to get the symbols
11780 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
11781 fi
11782 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11783 fi
11784 fi
11785 ;;
11786
11787 amigaos*)
11788 case $host_cpu in
11789 powerpc)
11790 # see comment about AmigaOS4 .so support
11791 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11792 archive_expsym_cmds=''
11793 ;;
11794 m68k)
11795 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)'
11796 hardcode_libdir_flag_spec='-L$libdir'
11797 hardcode_minus_L=yes
11798 ;;
11799 esac
11800 ;;
11801
11802 bsdi[45]*)
11803 export_dynamic_flag_spec=-rdynamic
11804 ;;
11805
11806 cygwin* | mingw* | windows* | pw32* | cegcc*)
11807 # When not using gcc, we currently assume that we are using
11808 # Microsoft Visual C++ or Intel C++ Compiler.
11809 # hardcode_libdir_flag_spec is actually meaningless, as there is
11810 # no search path for DLLs.
11811 case $cc_basename in
11812 cl* | icl*)
11813 # Native MSVC or ICC
11814 hardcode_libdir_flag_spec=' '
11815 allow_undefined_flag=unsupported
11816 always_export_symbols=yes
11817 file_list_spec='@'
11818 # Tell ltmain to make .lib files, not .a files.
11819 libext=lib
11820 # Tell ltmain to make .dll files, not .so files.
11821 shrext_cmds=.dll
11822 # FIXME: Setting linknames here is a bad hack.
11823 archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11824 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11825 cp "$export_symbols" "$output_objdir/$soname.def";
11826 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11827 else
11828 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11829 fi~
11830 $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11831 linknames='
11832 # The linker will not automatically build a static lib if we build a DLL.
11833 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11834 enable_shared_with_static_runtimes=yes
11835 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11836 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11837 # Don't use ranlib
11838 old_postinstall_cmds='chmod 644 $oldlib'
11839 postlink_cmds='lt_outputfile="@OUTPUT@"~
11840 lt_tool_outputfile="@TOOL_OUTPUT@"~
11841 case $lt_outputfile in
11842 *.exe|*.EXE) ;;
11843 *)
11844 lt_outputfile=$lt_outputfile.exe
11845 lt_tool_outputfile=$lt_tool_outputfile.exe
11846 ;;
11847 esac~
11848 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11849 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11850 $RM "$lt_outputfile.manifest";
11851 fi'
11852 ;;
11853 *)
11854 # Assume MSVC and ICC wrapper
11855 hardcode_libdir_flag_spec=' '
11856 allow_undefined_flag=unsupported
11857 # Tell ltmain to make .lib files, not .a files.
11858 libext=lib
11859 # Tell ltmain to make .dll files, not .so files.
11860 shrext_cmds=.dll
11861 # FIXME: Setting linknames here is a bad hack.
11862 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11863 # The linker will automatically build a .lib file if we build a DLL.
11864 old_archive_from_new_cmds='true'
11865 # FIXME: Should let the user specify the lib program.
11866 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11867 enable_shared_with_static_runtimes=yes
11868 ;;
11869 esac
11870 ;;
11871
11872 darwin* | rhapsody*)
11873
11874
11875 archive_cmds_need_lc=no
11876 hardcode_direct=no
11877 hardcode_automatic=yes
11878 hardcode_shlibpath_var=unsupported
11879 if test yes = "$lt_cv_ld_force_load"; then
11880 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\"`'
11881
11882 else
11883 whole_archive_flag_spec=''
11884 fi
11885 link_all_deplibs=yes
11886 allow_undefined_flag=$_lt_dar_allow_undefined
11887 case $cc_basename in
11888 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11889 *) _lt_dar_can_shared=$GCC ;;
11890 esac
11891 if test yes = "$_lt_dar_can_shared"; then
11892 output_verbose_link_cmd=func_echo_all
11893 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11894 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11895 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"
11896 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"
11897
11898 else
11899 ld_shlibs=no
11900 fi
11901
11902 ;;
11903
11904 dgux*)
11905 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11906 hardcode_libdir_flag_spec='-L$libdir'
11907 hardcode_shlibpath_var=no
11908 ;;
11909
11910 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11911 # support. Future versions do this automatically, but an explicit c++rt0.o
11912 # does not break anything, and helps significantly (at the cost of a little
11913 # extra space).
11914 freebsd2.2*)
11915 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11916 hardcode_libdir_flag_spec='-R$libdir'
11917 hardcode_direct=yes
11918 hardcode_shlibpath_var=no
11919 ;;
11920
11921 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11922 freebsd2.*)
11923 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11924 hardcode_direct=yes
11925 hardcode_minus_L=yes
11926 hardcode_shlibpath_var=no
11927 ;;
11928
11929 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11930 freebsd* | dragonfly* | midnightbsd*)
11931 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11932 hardcode_libdir_flag_spec='-R$libdir'
11933 hardcode_direct=yes
11934 hardcode_shlibpath_var=no
11935 ;;
11936
11937 hpux9*)
11938 if test yes = "$GCC"; then
11939 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'
11940 else
11941 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'
11942 fi
11943 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11944 hardcode_libdir_separator=:
11945 hardcode_direct=yes
11946
11947 # hardcode_minus_L: Not really in the search PATH,
11948 # but as the default location of the library.
11949 hardcode_minus_L=yes
11950 export_dynamic_flag_spec='$wl-E'
11951 ;;
11952
11953 hpux10*)
11954 if test yes,no = "$GCC,$with_gnu_ld"; then
11955 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11956 else
11957 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11958 fi
11959 if test no = "$with_gnu_ld"; then
11960 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11961 hardcode_libdir_separator=:
11962 hardcode_direct=yes
11963 hardcode_direct_absolute=yes
11964 export_dynamic_flag_spec='$wl-E'
11965 # hardcode_minus_L: Not really in the search PATH,
11966 # but as the default location of the library.
11967 hardcode_minus_L=yes
11968 fi
11969 ;;
11970
11971 hpux11*)
11972 if test yes,no = "$GCC,$with_gnu_ld"; then
11973 case $host_cpu in
11974 hppa*64*)
11975 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11976 ;;
11977 ia64*)
11978 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11979 ;;
11980 *)
11981 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11982 ;;
11983 esac
11984 else
11985 case $host_cpu in
11986 hppa*64*)
11987 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11988 ;;
11989 ia64*)
11990 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11991 ;;
11992 *)
11993
11994 # Older versions of the 11.00 compiler do not understand -b yet
11995 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11997 printf %s "checking if $CC understands -b... " >&6; }
11998 if test ${lt_cv_prog_compiler__b+y}
11999 then :
12000 printf %s "(cached) " >&6
12001 else case e in #(
12002 e) lt_cv_prog_compiler__b=no
12003 save_LDFLAGS=$LDFLAGS
12004 LDFLAGS="$LDFLAGS -b"
12005 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12006 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12007 # The linker can only warn and ignore the option if not recognized
12008 # So say no if there are warnings
12009 if test -s conftest.err; then
12010 # Append any errors to the config.log.
12011 cat conftest.err 1>&5
12012 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12013 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12014 if diff conftest.exp conftest.er2 >/dev/null; then
12015 lt_cv_prog_compiler__b=yes
12016 fi
12017 else
12018 lt_cv_prog_compiler__b=yes
12019 fi
12020 fi
12021 $RM -r conftest*
12022 LDFLAGS=$save_LDFLAGS
12023 ;;
12024 esac
12025 fi
12026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12027 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
12028
12029 if test yes = "$lt_cv_prog_compiler__b"; then
12030 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12031 else
12032 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12033 fi
12034
12035 ;;
12036 esac
12037 fi
12038 if test no = "$with_gnu_ld"; then
12039 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12040 hardcode_libdir_separator=:
12041
12042 case $host_cpu in
12043 hppa*64*|ia64*)
12044 hardcode_direct=no
12045 hardcode_shlibpath_var=no
12046 ;;
12047 *)
12048 hardcode_direct=yes
12049 hardcode_direct_absolute=yes
12050 export_dynamic_flag_spec='$wl-E'
12051
12052 # hardcode_minus_L: Not really in the search PATH,
12053 # but as the default location of the library.
12054 hardcode_minus_L=yes
12055 ;;
12056 esac
12057 fi
12058 ;;
12059
12060 irix5* | irix6* | nonstopux*)
12061 if test yes = "$GCC"; then
12062 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'
12063 # Try to use the -exported_symbol ld option, if it does not
12064 # work, assume that -exports_file does not work either and
12065 # implicitly export all symbols.
12066 # This should be the same for all languages, so no per-tag cache variable.
12067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12068 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12069 if test ${lt_cv_irix_exported_symbol+y}
12070 then :
12071 printf %s "(cached) " >&6
12072 else case e in #(
12073 e) save_LDFLAGS=$LDFLAGS
12074 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
12075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12076 /* end confdefs.h. */
12077 int foo (void) { return 0; }
12078 _ACEOF
12079 if ac_fn_c_try_link "$LINENO"
12080 then :
12081 lt_cv_irix_exported_symbol=yes
12082 else case e in #(
12083 e) lt_cv_irix_exported_symbol=no ;;
12084 esac
12085 fi
12086 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12087 conftest$ac_exeext conftest.$ac_ext
12088 LDFLAGS=$save_LDFLAGS ;;
12089 esac
12090 fi
12091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12092 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
12093 if test yes = "$lt_cv_irix_exported_symbol"; then
12094 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'
12095 fi
12096 else
12097 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'
12098 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'
12099 fi
12100 archive_cmds_need_lc='no'
12101 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12102 hardcode_libdir_separator=:
12103 inherit_rpath=yes
12104 link_all_deplibs=yes
12105 ;;
12106
12107 linux*)
12108 case $cc_basename in
12109 tcc*)
12110 # Fabrice Bellard et al's Tiny C Compiler
12111 ld_shlibs=yes
12112 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12113 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12114 ;;
12115 esac
12116 ;;
12117
12118 *-mlibc)
12119 ;;
12120
12121 netbsd* | netbsdelf*-gnu)
12122 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12123 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12124 else
12125 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12126 fi
12127 hardcode_libdir_flag_spec='-R$libdir'
12128 hardcode_direct=yes
12129 hardcode_shlibpath_var=no
12130 ;;
12131
12132 newsos6)
12133 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12134 hardcode_direct=yes
12135 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12136 hardcode_libdir_separator=:
12137 hardcode_shlibpath_var=no
12138 ;;
12139
12140 *nto* | *qnx*)
12141 ;;
12142
12143 openbsd*)
12144 if test -f /usr/libexec/ld.so; then
12145 hardcode_direct=yes
12146 hardcode_shlibpath_var=no
12147 hardcode_direct_absolute=yes
12148 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12149 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12150 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12151 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12152 export_dynamic_flag_spec='$wl-E'
12153 else
12154 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12155 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12156 fi
12157 else
12158 ld_shlibs=no
12159 fi
12160 ;;
12161
12162 os2*)
12163 hardcode_libdir_flag_spec='-L$libdir'
12164 hardcode_minus_L=yes
12165 allow_undefined_flag=unsupported
12166 shrext_cmds=.dll
12167 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12168 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12169 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12170 $ECHO EXPORTS >> $output_objdir/$libname.def~
12171 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12172 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12173 emximp -o $lib $output_objdir/$libname.def'
12174 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12175 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12176 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12177 $ECHO EXPORTS >> $output_objdir/$libname.def~
12178 prefix_cmds="$SED"~
12179 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12180 prefix_cmds="$prefix_cmds -e 1d";
12181 fi~
12182 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12183 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12184 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12185 emximp -o $lib $output_objdir/$libname.def'
12186 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12187 enable_shared_with_static_runtimes=yes
12188 file_list_spec='@'
12189 ;;
12190
12191 osf3*)
12192 if test yes = "$GCC"; then
12193 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12194 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'
12195 else
12196 allow_undefined_flag=' -expect_unresolved \*'
12197 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'
12198 fi
12199 archive_cmds_need_lc='no'
12200 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12201 hardcode_libdir_separator=:
12202 ;;
12203
12204 osf4* | osf5*) # as osf3* with the addition of -msym flag
12205 if test yes = "$GCC"; then
12206 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12207 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'
12208 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12209 else
12210 allow_undefined_flag=' -expect_unresolved \*'
12211 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'
12212 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~
12213 $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'
12214
12215 # Both c and cxx compiler support -rpath directly
12216 hardcode_libdir_flag_spec='-rpath $libdir'
12217 fi
12218 archive_cmds_need_lc='no'
12219 hardcode_libdir_separator=:
12220 ;;
12221
12222 serenity*)
12223 ;;
12224
12225 solaris*)
12226 no_undefined_flag=' -z defs'
12227 if test yes = "$GCC"; then
12228 wlarc='$wl'
12229 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12230 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12231 $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'
12232 else
12233 case `$CC -V 2>&1` in
12234 *"Compilers 5.0"*)
12235 wlarc=''
12236 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12237 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12238 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12239 ;;
12240 *)
12241 wlarc='$wl'
12242 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12243 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12244 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12245 ;;
12246 esac
12247 fi
12248 hardcode_libdir_flag_spec='-R$libdir'
12249 hardcode_shlibpath_var=no
12250 case $host_os in
12251 solaris2.[0-5] | solaris2.[0-5].*) ;;
12252 *)
12253 # The compiler driver will combine and reorder linker options,
12254 # but understands '-z linker_flag'. GCC discards it without '$wl',
12255 # but is careful enough not to reorder.
12256 # Supported since Solaris 2.6 (maybe 2.5.1?)
12257 if test yes = "$GCC"; then
12258 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12259 else
12260 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12261 fi
12262 ;;
12263 esac
12264 link_all_deplibs=yes
12265 ;;
12266
12267 sunos4*)
12268 if test sequent = "$host_vendor"; then
12269 # Use $CC to link under sequent, because it throws in some extra .o
12270 # files that make .init and .fini sections work.
12271 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12272 else
12273 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12274 fi
12275 hardcode_libdir_flag_spec='-L$libdir'
12276 hardcode_direct=yes
12277 hardcode_minus_L=yes
12278 hardcode_shlibpath_var=no
12279 ;;
12280
12281 sysv4)
12282 case $host_vendor in
12283 sni)
12284 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12285 hardcode_direct=yes # is this really true???
12286 ;;
12287 siemens)
12288 ## LD is ld it makes a PLAMLIB
12289 ## CC just makes a GrossModule.
12290 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12291 reload_cmds='$CC -r -o $output$reload_objs'
12292 hardcode_direct=no
12293 ;;
12294 motorola)
12295 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12296 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12297 ;;
12298 esac
12299 runpath_var='LD_RUN_PATH'
12300 hardcode_shlibpath_var=no
12301 ;;
12302
12303 sysv4.3*)
12304 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12305 hardcode_shlibpath_var=no
12306 export_dynamic_flag_spec='-Bexport'
12307 ;;
12308
12309 sysv4*MP*)
12310 if test -d /usr/nec; then
12311 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12312 hardcode_shlibpath_var=no
12313 runpath_var=LD_RUN_PATH
12314 hardcode_runpath_var=yes
12315 ld_shlibs=yes
12316 fi
12317 ;;
12318
12319 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12320 no_undefined_flag='$wl-z,text'
12321 archive_cmds_need_lc=no
12322 hardcode_shlibpath_var=no
12323 runpath_var='LD_RUN_PATH'
12324
12325 if test yes = "$GCC"; then
12326 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12327 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12328 else
12329 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12330 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12331 fi
12332 ;;
12333
12334 sysv5* | sco3.2v5* | sco5v6*)
12335 # Note: We CANNOT use -z defs as we might desire, because we do not
12336 # link with -lc, and that would cause any symbols used from libc to
12337 # always be unresolved, which means just about no library would
12338 # ever link correctly. If we're not using GNU ld we use -z text
12339 # though, which does catch some bad symbols but isn't as heavy-handed
12340 # as -z defs.
12341 no_undefined_flag='$wl-z,text'
12342 allow_undefined_flag='$wl-z,nodefs'
12343 archive_cmds_need_lc=no
12344 hardcode_shlibpath_var=no
12345 hardcode_libdir_flag_spec='$wl-R,$libdir'
12346 hardcode_libdir_separator=':'
12347 link_all_deplibs=yes
12348 export_dynamic_flag_spec='$wl-Bexport'
12349 runpath_var='LD_RUN_PATH'
12350
12351 if test yes = "$GCC"; then
12352 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12353 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12354 else
12355 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12356 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12357 fi
12358 ;;
12359
12360 uts4*)
12361 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12362 hardcode_libdir_flag_spec='-L$libdir'
12363 hardcode_shlibpath_var=no
12364 ;;
12365
12366 *)
12367 ld_shlibs=no
12368 ;;
12369 esac
12370
12371 if test sni = "$host_vendor"; then
12372 case $host in
12373 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12374 export_dynamic_flag_spec='$wl-Blargedynsym'
12375 ;;
12376 esac
12377 fi
12378 fi
12379
12380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12381 printf "%s\n" "$ld_shlibs" >&6; }
12382 test no = "$ld_shlibs" && can_build_shared=no
12383
12384 with_gnu_ld=$with_gnu_ld
12385
12386
12387
12388
12389
12390
12391
12392
12393
12394
12395
12396
12397
12398
12399
12400 #
12401 # Do we need to explicitly link libc?
12402 #
12403 case "x$archive_cmds_need_lc" in
12404 x|xyes)
12405 # Assume -lc should be added
12406 archive_cmds_need_lc=yes
12407
12408 if test yes,yes = "$GCC,$enable_shared"; then
12409 case $archive_cmds in
12410 *'~'*)
12411 # FIXME: we may have to deal with multi-command sequences.
12412 ;;
12413 '$CC '*)
12414 # Test whether the compiler implicitly links with -lc since on some
12415 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12416 # to ld, don't add -lc before -lgcc.
12417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12418 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
12419 if test ${lt_cv_archive_cmds_need_lc+y}
12420 then :
12421 printf %s "(cached) " >&6
12422 else case e in #(
12423 e) $RM conftest*
12424 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12425
12426 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12427 (eval $ac_compile) 2>&5
12428 ac_status=$?
12429 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12430 test $ac_status = 0; } 2>conftest.err; then
12431 soname=conftest
12432 lib=conftest
12433 libobjs=conftest.$ac_objext
12434 deplibs=
12435 wl=$lt_prog_compiler_wl
12436 pic_flag=$lt_prog_compiler_pic
12437 compiler_flags=-v
12438 linker_flags=-v
12439 verstring=
12440 output_objdir=.
12441 libname=conftest
12442 lt_save_allow_undefined_flag=$allow_undefined_flag
12443 allow_undefined_flag=
12444 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12445 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12446 ac_status=$?
12447 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12448 test $ac_status = 0; }
12449 then
12450 lt_cv_archive_cmds_need_lc=no
12451 else
12452 lt_cv_archive_cmds_need_lc=yes
12453 fi
12454 allow_undefined_flag=$lt_save_allow_undefined_flag
12455 else
12456 cat conftest.err 1>&5
12457 fi
12458 $RM conftest*
12459 ;;
12460 esac
12461 fi
12462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12463 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
12464 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12465 ;;
12466 esac
12467 fi
12468 ;;
12469 esac
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616
12617
12618
12619
12620
12621
12622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12623 printf %s "checking dynamic linker characteristics... " >&6; }
12624
12625 if test yes = "$GCC"; then
12626 case $host_os in
12627 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12628 *) lt_awk_arg='/^libraries:/' ;;
12629 esac
12630 case $host_os in
12631 mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12632 *) lt_sed_strip_eq='s|=/|/|g' ;;
12633 esac
12634 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12635 case $lt_search_path_spec in
12636 *\;*)
12637 # if the path contains ";" then we assume it to be the separator
12638 # otherwise default to the standard path separator (i.e. ":") - it is
12639 # assumed that no part of a normal pathname contains ";" but that should
12640 # okay in the real world where ";" in dirpaths is itself problematic.
12641 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12642 ;;
12643 *)
12644 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12645 ;;
12646 esac
12647 # Ok, now we have the path, separated by spaces, we can step through it
12648 # and add multilib dir if necessary...
12649 lt_tmp_lt_search_path_spec=
12650 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12651 # ...but if some path component already ends with the multilib dir we assume
12652 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12653 case "$lt_multi_os_dir; $lt_search_path_spec " in
12654 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12655 lt_multi_os_dir=
12656 ;;
12657 esac
12658 for lt_sys_path in $lt_search_path_spec; do
12659 if test -d "$lt_sys_path$lt_multi_os_dir"; then
12660 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12661 elif test -n "$lt_multi_os_dir"; then
12662 test -d "$lt_sys_path" && \
12663 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12664 fi
12665 done
12666 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12667 BEGIN {RS = " "; FS = "/|\n";} {
12668 lt_foo = "";
12669 lt_count = 0;
12670 for (lt_i = NF; lt_i > 0; lt_i--) {
12671 if ($lt_i != "" && $lt_i != ".") {
12672 if ($lt_i == "..") {
12673 lt_count++;
12674 } else {
12675 if (lt_count == 0) {
12676 lt_foo = "/" $lt_i lt_foo;
12677 } else {
12678 lt_count--;
12679 }
12680 }
12681 }
12682 }
12683 if (lt_foo != "") { lt_freq[lt_foo]++; }
12684 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12685 }'`
12686 # AWK program above erroneously prepends '/' to C:/dos/paths
12687 # for these hosts.
12688 case $host_os in
12689 mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12690 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12691 esac
12692 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12693 else
12694 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12695 fi
12696 library_names_spec=
12697 libname_spec='lib$name'
12698 soname_spec=
12699 shrext_cmds=.so
12700 postinstall_cmds=
12701 postuninstall_cmds=
12702 finish_cmds=
12703 finish_eval=
12704 shlibpath_var=
12705 shlibpath_overrides_runpath=unknown
12706 version_type=none
12707 dynamic_linker="$host_os ld.so"
12708 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12709 need_lib_prefix=unknown
12710 hardcode_into_libs=no
12711
12712 # when you set need_version to no, make sure it does not cause -set_version
12713 # flags to be left without arguments
12714 need_version=unknown
12715
12716
12717
12718 case $host_os in
12719 aix3*)
12720 version_type=linux # correct to gnu/linux during the next big refactor
12721 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12722 shlibpath_var=LIBPATH
12723
12724 # AIX 3 has no versioning support, so we append a major version to the name.
12725 soname_spec='$libname$release$shared_ext$major'
12726 ;;
12727
12728 aix[4-9]*)
12729 version_type=linux # correct to gnu/linux during the next big refactor
12730 need_lib_prefix=no
12731 need_version=no
12732 hardcode_into_libs=yes
12733 if test ia64 = "$host_cpu"; then
12734 # AIX 5 supports IA64
12735 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12736 shlibpath_var=LD_LIBRARY_PATH
12737 else
12738 # With GCC up to 2.95.x, collect2 would create an import file
12739 # for dependence libraries. The import file would start with
12740 # the line '#! .'. This would cause the generated library to
12741 # depend on '.', always an invalid library. This was fixed in
12742 # development snapshots of GCC prior to 3.0.
12743 case $host_os in
12744 aix4 | aix4.[01] | aix4.[01].*)
12745 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12746 echo ' yes '
12747 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12748 :
12749 else
12750 can_build_shared=no
12751 fi
12752 ;;
12753 esac
12754 # Using Import Files as archive members, it is possible to support
12755 # filename-based versioning of shared library archives on AIX. While
12756 # this would work for both with and without runtime linking, it will
12757 # prevent static linking of such archives. So we do filename-based
12758 # shared library versioning with .so extension only, which is used
12759 # when both runtime linking and shared linking is enabled.
12760 # Unfortunately, runtime linking may impact performance, so we do
12761 # not want this to be the default eventually. Also, we use the
12762 # versioned .so libs for executables only if there is the -brtl
12763 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
12764 # To allow for filename-based versioning support, we need to create
12765 # libNAME.so.V as an archive file, containing:
12766 # *) an Import File, referring to the versioned filename of the
12767 # archive as well as the shared archive member, telling the
12768 # bitwidth (32 or 64) of that shared object, and providing the
12769 # list of exported symbols of that shared object, eventually
12770 # decorated with the 'weak' keyword
12771 # *) the shared object with the F_LOADONLY flag set, to really avoid
12772 # it being seen by the linker.
12773 # At run time we better use the real file rather than another symlink,
12774 # but for link time we create the symlink libNAME.so -> libNAME.so.V
12775
12776 case $with_aix_soname,$aix_use_runtimelinking in
12777 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12778 # soname into executable. Probably we can add versioning support to
12779 # collect2, so additional links can be useful in future.
12780 aix,yes) # traditional libtool
12781 dynamic_linker='AIX unversionable lib.so'
12782 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12783 # instead of lib<name>.a to let people know that these are not
12784 # typical AIX shared libraries.
12785 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12786 ;;
12787 aix,no) # traditional AIX only
12788 dynamic_linker='AIX lib.a(lib.so.V)'
12789 # We preserve .a as extension for shared libraries through AIX4.2
12790 # and later when we are not doing run time linking.
12791 library_names_spec='$libname$release.a $libname.a'
12792 soname_spec='$libname$release$shared_ext$major'
12793 ;;
12794 svr4,*) # full svr4 only
12795 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12796 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12797 # We do not specify a path in Import Files, so LIBPATH fires.
12798 shlibpath_overrides_runpath=yes
12799 ;;
12800 *,yes) # both, prefer svr4
12801 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12802 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12803 # unpreferred sharedlib libNAME.a needs extra handling
12804 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"'
12805 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"'
12806 # We do not specify a path in Import Files, so LIBPATH fires.
12807 shlibpath_overrides_runpath=yes
12808 ;;
12809 *,no) # both, prefer aix
12810 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12811 library_names_spec='$libname$release.a $libname.a'
12812 soname_spec='$libname$release$shared_ext$major'
12813 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12814 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)'
12815 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"'
12816 ;;
12817 esac
12818 shlibpath_var=LIBPATH
12819 fi
12820 ;;
12821
12822 amigaos*)
12823 case $host_cpu in
12824 powerpc)
12825 # Since July 2007 AmigaOS4 officially supports .so libraries.
12826 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12827 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12828 ;;
12829 m68k)
12830 library_names_spec='$libname.ixlibrary $libname.a'
12831 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12832 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'
12833 ;;
12834 esac
12835 ;;
12836
12837 beos*)
12838 library_names_spec='$libname$shared_ext'
12839 dynamic_linker="$host_os ld.so"
12840 shlibpath_var=LIBRARY_PATH
12841 ;;
12842
12843 bsdi[45]*)
12844 version_type=linux # correct to gnu/linux during the next big refactor
12845 need_version=no
12846 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12847 soname_spec='$libname$release$shared_ext$major'
12848 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12849 shlibpath_var=LD_LIBRARY_PATH
12850 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12851 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12852 # the default ld.so.conf also contains /usr/contrib/lib and
12853 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12854 # libtool to hard-code these into programs
12855 ;;
12856
12857 cygwin* | mingw* | windows* | pw32* | cegcc*)
12858 version_type=windows
12859 shrext_cmds=.dll
12860 need_version=no
12861 need_lib_prefix=no
12862
12863 case $GCC,$cc_basename in
12864 yes,*)
12865 # gcc
12866 library_names_spec='$libname.dll.a'
12867 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12868 # If user builds GCC with multilib enabled,
12869 # it should just install on $(libdir)
12870 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
12871 if test xyes = x"$multilib"; then
12872 postinstall_cmds='base_file=`basename \$file`~
12873 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12874 dldir=$destdir/`dirname \$dlpath`~
12875 $install_prog $dir/$dlname $destdir/$dlname~
12876 chmod a+x $destdir/$dlname~
12877 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12878 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
12879 fi'
12880 else
12881 postinstall_cmds='base_file=`basename \$file`~
12882 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12883 dldir=$destdir/`dirname \$dlpath`~
12884 test -d \$dldir || mkdir -p \$dldir~
12885 $install_prog $dir/$dlname \$dldir/$dlname~
12886 chmod a+x \$dldir/$dlname~
12887 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12888 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12889 fi'
12890 fi
12891 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12892 dlpath=$dir/\$dldll~
12893 $RM \$dlpath'
12894 shlibpath_overrides_runpath=yes
12895
12896 case $host_os in
12897 cygwin*)
12898 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12899 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12900
12901 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12902 ;;
12903 mingw* | windows* | cegcc*)
12904 # MinGW DLLs use traditional 'lib' prefix
12905 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12906 ;;
12907 pw32*)
12908 # pw32 DLLs use 'pw' prefix rather than 'lib'
12909 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12910 ;;
12911 esac
12912 dynamic_linker='Win32 ld.exe'
12913 ;;
12914
12915 *,cl* | *,icl*)
12916 # Native MSVC or ICC
12917 libname_spec='$name'
12918 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12919 library_names_spec='$libname.dll.lib'
12920
12921 case $build_os in
12922 mingw* | windows*)
12923 sys_lib_search_path_spec=
12924 lt_save_ifs=$IFS
12925 IFS=';'
12926 for lt_path in $LIB
12927 do
12928 IFS=$lt_save_ifs
12929 # Let DOS variable expansion print the short 8.3 style file name.
12930 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12931 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12932 done
12933 IFS=$lt_save_ifs
12934 # Convert to MSYS style.
12935 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12936 ;;
12937 cygwin*)
12938 # Convert to unix form, then to dos form, then back to unix form
12939 # but this time dos style (no spaces!) so that the unix form looks
12940 # like /cygdrive/c/PROGRA~1:/cygdr...
12941 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12942 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12943 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12944 ;;
12945 *)
12946 sys_lib_search_path_spec=$LIB
12947 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12948 # It is most probably a Windows format PATH.
12949 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12950 else
12951 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12952 fi
12953 # FIXME: find the short name or the path components, as spaces are
12954 # common. (e.g. "Program Files" -> "PROGRA~1")
12955 ;;
12956 esac
12957
12958 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12959 postinstall_cmds='base_file=`basename \$file`~
12960 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12961 dldir=$destdir/`dirname \$dlpath`~
12962 test -d \$dldir || mkdir -p \$dldir~
12963 $install_prog $dir/$dlname \$dldir/$dlname'
12964 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12965 dlpath=$dir/\$dldll~
12966 $RM \$dlpath'
12967 shlibpath_overrides_runpath=yes
12968 dynamic_linker='Win32 link.exe'
12969 ;;
12970
12971 *)
12972 # Assume MSVC and ICC wrapper
12973 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12974 dynamic_linker='Win32 ld.exe'
12975 ;;
12976 esac
12977 # FIXME: first we should search . and the directory the executable is in
12978 shlibpath_var=PATH
12979 ;;
12980
12981 darwin* | rhapsody*)
12982 dynamic_linker="$host_os dyld"
12983 version_type=darwin
12984 need_lib_prefix=no
12985 need_version=no
12986 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12987 soname_spec='$libname$release$major$shared_ext'
12988 shlibpath_overrides_runpath=yes
12989 shlibpath_var=DYLD_LIBRARY_PATH
12990 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12991
12992 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12993 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12994 ;;
12995
12996 dgux*)
12997 version_type=linux # correct to gnu/linux during the next big refactor
12998 need_lib_prefix=no
12999 need_version=no
13000 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13001 soname_spec='$libname$release$shared_ext$major'
13002 shlibpath_var=LD_LIBRARY_PATH
13003 ;;
13004
13005 freebsd* | dragonfly* | midnightbsd*)
13006 # DragonFly does not have aout. When/if they implement a new
13007 # versioning mechanism, adjust this.
13008 if test -x /usr/bin/objformat; then
13009 objformat=`/usr/bin/objformat`
13010 else
13011 case $host_os in
13012 freebsd[23].*) objformat=aout ;;
13013 *) objformat=elf ;;
13014 esac
13015 fi
13016 version_type=freebsd-$objformat
13017 case $version_type in
13018 freebsd-elf*)
13019 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13020 soname_spec='$libname$release$shared_ext$major'
13021 need_version=no
13022 need_lib_prefix=no
13023 ;;
13024 freebsd-*)
13025 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13026 need_version=yes
13027 ;;
13028 esac
13029 case $host_cpu in
13030 powerpc64)
13031 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
13032 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
13033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13034 /* end confdefs.h. */
13035 int test_pointer_size[sizeof (void *) - 5];
13036
13037 _ACEOF
13038 if ac_fn_c_try_compile "$LINENO"
13039 then :
13040 shlibpath_var=LD_LIBRARY_PATH
13041 else case e in #(
13042 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
13043 esac
13044 fi
13045 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13046 ;;
13047 *)
13048 shlibpath_var=LD_LIBRARY_PATH
13049 ;;
13050 esac
13051 case $host_os in
13052 freebsd2.*)
13053 shlibpath_overrides_runpath=yes
13054 ;;
13055 freebsd3.[01]* | freebsdelf3.[01]*)
13056 shlibpath_overrides_runpath=yes
13057 hardcode_into_libs=yes
13058 ;;
13059 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13060 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13061 shlibpath_overrides_runpath=no
13062 hardcode_into_libs=yes
13063 ;;
13064 *) # from 4.6 on, and DragonFly
13065 shlibpath_overrides_runpath=yes
13066 hardcode_into_libs=yes
13067 ;;
13068 esac
13069 ;;
13070
13071 haiku*)
13072 version_type=linux # correct to gnu/linux during the next big refactor
13073 need_lib_prefix=no
13074 need_version=no
13075 dynamic_linker="$host_os runtime_loader"
13076 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13077 soname_spec='$libname$release$shared_ext$major'
13078 shlibpath_var=LIBRARY_PATH
13079 shlibpath_overrides_runpath=no
13080 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
13081 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
13082 hardcode_into_libs=no
13083 ;;
13084
13085 hpux9* | hpux10* | hpux11*)
13086 # Give a soname corresponding to the major version so that dld.sl refuses to
13087 # link against other versions.
13088 version_type=sunos
13089 need_lib_prefix=no
13090 need_version=no
13091 case $host_cpu in
13092 ia64*)
13093 shrext_cmds='.so'
13094 hardcode_into_libs=yes
13095 dynamic_linker="$host_os dld.so"
13096 shlibpath_var=LD_LIBRARY_PATH
13097 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13098 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13099 soname_spec='$libname$release$shared_ext$major'
13100 if test 32 = "$HPUX_IA64_MODE"; then
13101 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13102 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
13103 else
13104 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13105 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
13106 fi
13107 ;;
13108 hppa*64*)
13109 shrext_cmds='.sl'
13110 hardcode_into_libs=yes
13111 dynamic_linker="$host_os dld.sl"
13112 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13113 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13114 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13115 soname_spec='$libname$release$shared_ext$major'
13116 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13117 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13118 ;;
13119 *)
13120 shrext_cmds='.sl'
13121 dynamic_linker="$host_os dld.sl"
13122 shlibpath_var=SHLIB_PATH
13123 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13124 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13125 soname_spec='$libname$release$shared_ext$major'
13126 ;;
13127 esac
13128 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13129 postinstall_cmds='chmod 555 $lib'
13130 # or fails outright, so override atomically:
13131 install_override_mode=555
13132 ;;
13133
13134 interix[3-9]*)
13135 version_type=linux # correct to gnu/linux during the next big refactor
13136 need_lib_prefix=no
13137 need_version=no
13138 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13139 soname_spec='$libname$release$shared_ext$major'
13140 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13141 shlibpath_var=LD_LIBRARY_PATH
13142 shlibpath_overrides_runpath=no
13143 hardcode_into_libs=yes
13144 ;;
13145
13146 irix5* | irix6* | nonstopux*)
13147 case $host_os in
13148 nonstopux*) version_type=nonstopux ;;
13149 *)
13150 if test yes = "$lt_cv_prog_gnu_ld"; then
13151 version_type=linux # correct to gnu/linux during the next big refactor
13152 else
13153 version_type=irix
13154 fi ;;
13155 esac
13156 need_lib_prefix=no
13157 need_version=no
13158 soname_spec='$libname$release$shared_ext$major'
13159 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
13160 case $host_os in
13161 irix5* | nonstopux*)
13162 libsuff= shlibsuff=
13163 ;;
13164 *)
13165 case $LD in # libtool.m4 will add one of these switches to LD
13166 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13167 libsuff= shlibsuff= libmagic=32-bit;;
13168 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13169 libsuff=32 shlibsuff=N32 libmagic=N32;;
13170 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13171 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13172 *) libsuff= shlibsuff= libmagic=never-match;;
13173 esac
13174 ;;
13175 esac
13176 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13177 shlibpath_overrides_runpath=no
13178 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13179 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
13180 hardcode_into_libs=yes
13181 ;;
13182
13183 # No shared lib support for Linux oldld, aout, or coff.
13184 linux*oldld* | linux*aout* | linux*coff*)
13185 dynamic_linker=no
13186 ;;
13187
13188 linux*android*)
13189 version_type=none # Android doesn't support versioned libraries.
13190 need_lib_prefix=no
13191 need_version=no
13192 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
13193 soname_spec='$libname$release$shared_ext'
13194 finish_cmds=
13195 shlibpath_var=LD_LIBRARY_PATH
13196 shlibpath_overrides_runpath=yes
13197
13198 # This implies no fast_install, which is unacceptable.
13199 # Some rework will be needed to allow for fast_install
13200 # before this can be enabled.
13201 hardcode_into_libs=yes
13202
13203 dynamic_linker='Android linker'
13204 # -rpath works at least for libraries that are not overridden by
13205 # libraries installed in system locations.
13206 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13207 ;;
13208
13209 # This must be glibc/ELF.
13210 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13211 version_type=linux # correct to gnu/linux during the next big refactor
13212 need_lib_prefix=no
13213 need_version=no
13214 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13215 soname_spec='$libname$release$shared_ext$major'
13216 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13217 shlibpath_var=LD_LIBRARY_PATH
13218 shlibpath_overrides_runpath=no
13219
13220 # Some binutils ld are patched to set DT_RUNPATH
13221 if test ${lt_cv_shlibpath_overrides_runpath+y}
13222 then :
13223 printf %s "(cached) " >&6
13224 else case e in #(
13225 e) lt_cv_shlibpath_overrides_runpath=no
13226 save_LDFLAGS=$LDFLAGS
13227 save_libdir=$libdir
13228 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13229 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13231 /* end confdefs.h. */
13232
13233 int
13234 main (void)
13235 {
13236
13237 ;
13238 return 0;
13239 }
13240 _ACEOF
13241 if ac_fn_c_try_link "$LINENO"
13242 then :
13243 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
13244 then :
13245 lt_cv_shlibpath_overrides_runpath=yes
13246 fi
13247 fi
13248 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13249 conftest$ac_exeext conftest.$ac_ext
13250 LDFLAGS=$save_LDFLAGS
13251 libdir=$save_libdir
13252 ;;
13253 esac
13254 fi
13255
13256 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13257
13258 # This implies no fast_install, which is unacceptable.
13259 # Some rework will be needed to allow for fast_install
13260 # before this can be enabled.
13261 hardcode_into_libs=yes
13262
13263 # Ideally, we could use ldconfig to report *all* directories which are
13264 # searched for libraries, however this is still not possible. Aside from not
13265 # being certain /sbin/ldconfig is available, command
13266 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13267 # even though it is searched at run-time. Try to do the best guess by
13268 # appending ld.so.conf contents (and includes) to the search path.
13269 if test -f /etc/ld.so.conf; then
13270 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' ' '`
13271 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13272 fi
13273
13274 # We used to test for /lib/ld.so.1 and disable shared libraries on
13275 # powerpc, because MkLinux only supported shared libraries with the
13276 # GNU dynamic linker. Since this was broken with cross compilers,
13277 # most powerpc-linux boxes support dynamic linking these days and
13278 # people can always --disable-shared, the test was removed, and we
13279 # assume the GNU/Linux dynamic linker is in use.
13280 dynamic_linker='GNU/Linux ld.so'
13281 ;;
13282
13283 netbsdelf*-gnu)
13284 version_type=linux
13285 need_lib_prefix=no
13286 need_version=no
13287 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13288 soname_spec='$libname$release$shared_ext$major'
13289 shlibpath_var=LD_LIBRARY_PATH
13290 shlibpath_overrides_runpath=no
13291 hardcode_into_libs=yes
13292 dynamic_linker='NetBSD ld.elf_so'
13293 ;;
13294
13295 netbsd*)
13296 version_type=sunos
13297 need_lib_prefix=no
13298 need_version=no
13299 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13300 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13301 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13302 dynamic_linker='NetBSD (a.out) ld.so'
13303 else
13304 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13305 soname_spec='$libname$release$shared_ext$major'
13306 dynamic_linker='NetBSD ld.elf_so'
13307 fi
13308 shlibpath_var=LD_LIBRARY_PATH
13309 shlibpath_overrides_runpath=yes
13310 hardcode_into_libs=yes
13311 ;;
13312
13313 *-mlibc)
13314 version_type=linux # correct to gnu/linux during the next big refactor
13315 need_lib_prefix=no
13316 need_version=no
13317 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13318 soname_spec='$libname$release$shared_ext$major'
13319 dynamic_linker='mlibc ld.so'
13320 shlibpath_var=LD_LIBRARY_PATH
13321 shlibpath_overrides_runpath=no
13322 hardcode_into_libs=yes
13323 ;;
13324
13325 newsos6)
13326 version_type=linux # correct to gnu/linux during the next big refactor
13327 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13328 shlibpath_var=LD_LIBRARY_PATH
13329 shlibpath_overrides_runpath=yes
13330 ;;
13331
13332 *nto* | *qnx*)
13333 version_type=qnx
13334 need_lib_prefix=no
13335 need_version=no
13336 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13337 soname_spec='$libname$release$shared_ext$major'
13338 shlibpath_var=LD_LIBRARY_PATH
13339 shlibpath_overrides_runpath=no
13340 hardcode_into_libs=yes
13341 dynamic_linker='ldqnx.so'
13342 ;;
13343
13344 openbsd*)
13345 version_type=sunos
13346 sys_lib_dlsearch_path_spec=/usr/lib
13347 need_lib_prefix=no
13348 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13349 need_version=no
13350 else
13351 need_version=yes
13352 fi
13353 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13354 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13355 shlibpath_var=LD_LIBRARY_PATH
13356 shlibpath_overrides_runpath=yes
13357 ;;
13358
13359 os2*)
13360 libname_spec='$name'
13361 version_type=windows
13362 shrext_cmds=.dll
13363 need_version=no
13364 need_lib_prefix=no
13365 # OS/2 can only load a DLL with a base name of 8 characters or less.
13366 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13367 v=$($ECHO $release$versuffix | tr -d .-);
13368 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13369 $ECHO $n$v`$shared_ext'
13370 library_names_spec='${libname}_dll.$libext'
13371 dynamic_linker='OS/2 ld.exe'
13372 shlibpath_var=BEGINLIBPATH
13373 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13374 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13375 postinstall_cmds='base_file=`basename \$file`~
13376 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13377 dldir=$destdir/`dirname \$dlpath`~
13378 test -d \$dldir || mkdir -p \$dldir~
13379 $install_prog $dir/$dlname \$dldir/$dlname~
13380 chmod a+x \$dldir/$dlname~
13381 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13382 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13383 fi'
13384 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13385 dlpath=$dir/\$dldll~
13386 $RM \$dlpath'
13387 ;;
13388
13389 osf3* | osf4* | osf5*)
13390 version_type=osf
13391 need_lib_prefix=no
13392 need_version=no
13393 soname_spec='$libname$release$shared_ext$major'
13394 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13395 shlibpath_var=LD_LIBRARY_PATH
13396 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13397 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13398 ;;
13399
13400 rdos*)
13401 dynamic_linker=no
13402 ;;
13403
13404 serenity*)
13405 version_type=linux # correct to gnu/linux during the next big refactor
13406 need_lib_prefix=no
13407 need_version=no
13408 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13409 soname_spec='$libname$release$shared_ext$major'
13410 shlibpath_var=LD_LIBRARY_PATH
13411 shlibpath_overrides_runpath=no
13412 dynamic_linker='SerenityOS LibELF'
13413 ;;
13414
13415 solaris*)
13416 version_type=linux # correct to gnu/linux during the next big refactor
13417 need_lib_prefix=no
13418 need_version=no
13419 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13420 soname_spec='$libname$release$shared_ext$major'
13421 shlibpath_var=LD_LIBRARY_PATH
13422 shlibpath_overrides_runpath=yes
13423 hardcode_into_libs=yes
13424 # ldd complains unless libraries are executable
13425 postinstall_cmds='chmod +x $lib'
13426 ;;
13427
13428 sunos4*)
13429 version_type=sunos
13430 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13431 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13432 shlibpath_var=LD_LIBRARY_PATH
13433 shlibpath_overrides_runpath=yes
13434 if test yes = "$with_gnu_ld"; then
13435 need_lib_prefix=no
13436 fi
13437 need_version=yes
13438 ;;
13439
13440 sysv4 | sysv4.3*)
13441 version_type=linux # correct to gnu/linux during the next big refactor
13442 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13443 soname_spec='$libname$release$shared_ext$major'
13444 shlibpath_var=LD_LIBRARY_PATH
13445 case $host_vendor in
13446 sni)
13447 shlibpath_overrides_runpath=no
13448 need_lib_prefix=no
13449 runpath_var=LD_RUN_PATH
13450 ;;
13451 siemens)
13452 need_lib_prefix=no
13453 ;;
13454 motorola)
13455 need_lib_prefix=no
13456 need_version=no
13457 shlibpath_overrides_runpath=no
13458 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13459 ;;
13460 esac
13461 ;;
13462
13463 sysv4*MP*)
13464 if test -d /usr/nec; then
13465 version_type=linux # correct to gnu/linux during the next big refactor
13466 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13467 soname_spec='$libname$shared_ext.$major'
13468 shlibpath_var=LD_LIBRARY_PATH
13469 fi
13470 ;;
13471
13472 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13473 version_type=sco
13474 need_lib_prefix=no
13475 need_version=no
13476 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13477 soname_spec='$libname$release$shared_ext$major'
13478 shlibpath_var=LD_LIBRARY_PATH
13479 shlibpath_overrides_runpath=yes
13480 hardcode_into_libs=yes
13481 if test yes = "$with_gnu_ld"; then
13482 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13483 else
13484 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13485 case $host_os in
13486 sco3.2v5*)
13487 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13488 ;;
13489 esac
13490 fi
13491 sys_lib_dlsearch_path_spec='/usr/lib'
13492 ;;
13493
13494 tpf*)
13495 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13496 version_type=linux # correct to gnu/linux during the next big refactor
13497 need_lib_prefix=no
13498 need_version=no
13499 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13500 shlibpath_var=LD_LIBRARY_PATH
13501 shlibpath_overrides_runpath=no
13502 hardcode_into_libs=yes
13503 ;;
13504
13505 uts4*)
13506 version_type=linux # correct to gnu/linux during the next big refactor
13507 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13508 soname_spec='$libname$release$shared_ext$major'
13509 shlibpath_var=LD_LIBRARY_PATH
13510 ;;
13511
13512 emscripten*)
13513 version_type=none
13514 need_lib_prefix=no
13515 need_version=no
13516 library_names_spec='$libname$release$shared_ext'
13517 soname_spec='$libname$release$shared_ext'
13518 finish_cmds=
13519 dynamic_linker="Emscripten linker"
13520 lt_prog_compiler_wl=
13521 lt_prog_compiler_pic=
13522 lt_prog_compiler_static=
13523
13524
13525 if test yes = "$GCC"; then
13526 lt_prog_compiler_wl='-Wl,'
13527 lt_prog_compiler_static='-static'
13528
13529 case $host_os in
13530 aix*)
13531 # All AIX code is PIC.
13532 if test ia64 = "$host_cpu"; then
13533 # AIX 5 now supports IA64 processor
13534 lt_prog_compiler_static='-Bstatic'
13535 fi
13536 lt_prog_compiler_pic='-fPIC'
13537 ;;
13538
13539 amigaos*)
13540 case $host_cpu in
13541 powerpc)
13542 # see comment about AmigaOS4 .so support
13543 lt_prog_compiler_pic='-fPIC'
13544 ;;
13545 m68k)
13546 # FIXME: we need at least 68020 code to build shared libraries, but
13547 # adding the '-m68020' flag to GCC prevents building anything better,
13548 # like '-m68040'.
13549 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13550 ;;
13551 esac
13552 ;;
13553
13554 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13555 # PIC is the default for these OSes.
13556 ;;
13557
13558 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
13559 # This hack is so that the source file can tell whether it is being
13560 # built for inclusion in a dll (and should export symbols for example).
13561 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13562 # (--disable-auto-import) libraries
13563 lt_prog_compiler_pic='-DDLL_EXPORT'
13564 case $host_os in
13565 os2*)
13566 lt_prog_compiler_static='$wl-static'
13567 ;;
13568 esac
13569 ;;
13570
13571 darwin* | rhapsody*)
13572 # PIC is the default on this platform
13573 # Common symbols not allowed in MH_DYLIB files
13574 lt_prog_compiler_pic='-fno-common'
13575 ;;
13576
13577 haiku*)
13578 # PIC is the default for Haiku.
13579 # The "-static" flag exists, but is broken.
13580 lt_prog_compiler_static=
13581 ;;
13582
13583 hpux*)
13584 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13585 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13586 # sets the default TLS model and affects inlining.
13587 case $host_cpu in
13588 hppa*64*)
13589 # +Z the default
13590 ;;
13591 *)
13592 lt_prog_compiler_pic='-fPIC'
13593 ;;
13594 esac
13595 ;;
13596
13597 interix[3-9]*)
13598 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13599 # Instead, we relocate shared libraries at runtime.
13600 ;;
13601
13602 msdosdjgpp*)
13603 # Just because we use GCC doesn't mean we suddenly get shared libraries
13604 # on systems that don't support them.
13605 lt_prog_compiler_can_build_shared=no
13606 enable_shared=no
13607 ;;
13608
13609 *nto* | *qnx*)
13610 # QNX uses GNU C++, but need to define -shared option too, otherwise
13611 # it will coredump.
13612 lt_prog_compiler_pic='-fPIC -shared'
13613 ;;
13614
13615 sysv4*MP*)
13616 if test -d /usr/nec; then
13617 lt_prog_compiler_pic=-Kconform_pic
13618 fi
13619 ;;
13620
13621 *)
13622 lt_prog_compiler_pic='-fPIC'
13623 ;;
13624 esac
13625
13626 case $cc_basename in
13627 nvcc*) # Cuda Compiler Driver 2.2
13628 lt_prog_compiler_wl='-Xlinker '
13629 if test -n "$lt_prog_compiler_pic"; then
13630 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
13631 fi
13632 ;;
13633 esac
13634 else
13635 # PORTME Check for flag to pass linker flags through the system compiler.
13636 case $host_os in
13637 aix*)
13638 lt_prog_compiler_wl='-Wl,'
13639 if test ia64 = "$host_cpu"; then
13640 # AIX 5 now supports IA64 processor
13641 lt_prog_compiler_static='-Bstatic'
13642 else
13643 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13644 fi
13645 ;;
13646
13647 darwin* | rhapsody*)
13648 # PIC is the default on this platform
13649 # Common symbols not allowed in MH_DYLIB files
13650 lt_prog_compiler_pic='-fno-common'
13651 case $cc_basename in
13652 nagfor*)
13653 # NAG Fortran compiler
13654 lt_prog_compiler_wl='-Wl,-Wl,,'
13655 lt_prog_compiler_pic='-PIC'
13656 lt_prog_compiler_static='-Bstatic'
13657 ;;
13658 esac
13659 ;;
13660
13661 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
13662 # This hack is so that the source file can tell whether it is being
13663 # built for inclusion in a dll (and should export symbols for example).
13664 lt_prog_compiler_pic='-DDLL_EXPORT'
13665 case $host_os in
13666 os2*)
13667 lt_prog_compiler_static='$wl-static'
13668 ;;
13669 esac
13670 ;;
13671
13672 hpux9* | hpux10* | hpux11*)
13673 lt_prog_compiler_wl='-Wl,'
13674 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13675 # not for PA HP-UX.
13676 case $host_cpu in
13677 hppa*64*|ia64*)
13678 # +Z the default
13679 ;;
13680 *)
13681 lt_prog_compiler_pic='+Z'
13682 ;;
13683 esac
13684 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13685 lt_prog_compiler_static='$wl-a ${wl}archive'
13686 ;;
13687
13688 irix5* | irix6* | nonstopux*)
13689 lt_prog_compiler_wl='-Wl,'
13690 # PIC (with -KPIC) is the default.
13691 lt_prog_compiler_static='-non_shared'
13692 ;;
13693
13694 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13695 case $cc_basename in
13696 # old Intel for x86_64, which still supported -KPIC.
13697 ecc*)
13698 lt_prog_compiler_wl='-Wl,'
13699 lt_prog_compiler_pic='-KPIC'
13700 lt_prog_compiler_static='-static'
13701 ;;
13702 *flang* | ftn | f18* | f95*)
13703 # Flang compiler.
13704 lt_prog_compiler_wl='-Wl,'
13705 lt_prog_compiler_pic='-fPIC'
13706 lt_prog_compiler_static='-static'
13707 ;;
13708 # icc used to be incompatible with GCC.
13709 # ICC 10 doesn't accept -KPIC any more.
13710 icc* | ifort*)
13711 lt_prog_compiler_wl='-Wl,'
13712 lt_prog_compiler_pic='-fPIC'
13713 lt_prog_compiler_static='-static'
13714 ;;
13715 # Lahey Fortran 8.1.
13716 lf95*)
13717 lt_prog_compiler_wl='-Wl,'
13718 lt_prog_compiler_pic='--shared'
13719 lt_prog_compiler_static='--static'
13720 ;;
13721 nagfor*)
13722 # NAG Fortran compiler
13723 lt_prog_compiler_wl='-Wl,-Wl,,'
13724 lt_prog_compiler_pic='-PIC'
13725 lt_prog_compiler_static='-Bstatic'
13726 ;;
13727 tcc*)
13728 # Fabrice Bellard et al's Tiny C Compiler
13729 lt_prog_compiler_wl='-Wl,'
13730 lt_prog_compiler_pic='-fPIC'
13731 lt_prog_compiler_static='-static'
13732 ;;
13733 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
13734 # Portland Group compilers (*not* the Pentium gcc compiler,
13735 # which looks to be a dead project)
13736 lt_prog_compiler_wl='-Wl,'
13737 lt_prog_compiler_pic='-fpic'
13738 lt_prog_compiler_static='-Bstatic'
13739 ;;
13740 ccc*)
13741 lt_prog_compiler_wl='-Wl,'
13742 # All Alpha code is PIC.
13743 lt_prog_compiler_static='-non_shared'
13744 ;;
13745 xl* | bgxl* | bgf* | mpixl*)
13746 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
13747 lt_prog_compiler_wl='-Wl,'
13748 lt_prog_compiler_pic='-qpic'
13749 lt_prog_compiler_static='-qstaticlink'
13750 ;;
13751 *)
13752 case `$CC -V 2>&1 | $SED 5q` in
13753 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
13754 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13755 lt_prog_compiler_pic='-KPIC'
13756 lt_prog_compiler_static='-Bstatic'
13757 lt_prog_compiler_wl=''
13758 ;;
13759 *Sun\ F* | *Sun*Fortran*)
13760 lt_prog_compiler_pic='-KPIC'
13761 lt_prog_compiler_static='-Bstatic'
13762 lt_prog_compiler_wl='-Qoption ld '
13763 ;;
13764 *Sun\ C*)
13765 # Sun C 5.9
13766 lt_prog_compiler_pic='-KPIC'
13767 lt_prog_compiler_static='-Bstatic'
13768 lt_prog_compiler_wl='-Wl,'
13769 ;;
13770 *Intel*\ [CF]*Compiler*)
13771 lt_prog_compiler_wl='-Wl,'
13772 lt_prog_compiler_pic='-fPIC'
13773 lt_prog_compiler_static='-static'
13774 ;;
13775 *Portland\ Group*)
13776 lt_prog_compiler_wl='-Wl,'
13777 lt_prog_compiler_pic='-fpic'
13778 lt_prog_compiler_static='-Bstatic'
13779 ;;
13780 esac
13781 ;;
13782 esac
13783 ;;
13784
13785 newsos6)
13786 lt_prog_compiler_pic='-KPIC'
13787 lt_prog_compiler_static='-Bstatic'
13788 ;;
13789
13790 *-mlibc)
13791 lt_prog_compiler_wl='-Wl,'
13792 lt_prog_compiler_pic='-fPIC'
13793 lt_prog_compiler_static='-static'
13794 ;;
13795
13796 *nto* | *qnx*)
13797 # QNX uses GNU C++, but need to define -shared option too, otherwise
13798 # it will coredump.
13799 lt_prog_compiler_pic='-fPIC -shared'
13800 ;;
13801
13802 osf3* | osf4* | osf5*)
13803 lt_prog_compiler_wl='-Wl,'
13804 # All OSF/1 code is PIC.
13805 lt_prog_compiler_static='-non_shared'
13806 ;;
13807
13808 rdos*)
13809 lt_prog_compiler_static='-non_shared'
13810 ;;
13811
13812 serenity*)
13813 ;;
13814
13815 solaris*)
13816 lt_prog_compiler_pic='-KPIC'
13817 lt_prog_compiler_static='-Bstatic'
13818 case $cc_basename in
13819 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
13820 lt_prog_compiler_wl='-Qoption ld ';;
13821 *)
13822 lt_prog_compiler_wl='-Wl,';;
13823 esac
13824 ;;
13825
13826 sunos4*)
13827 lt_prog_compiler_wl='-Qoption ld '
13828 lt_prog_compiler_pic='-PIC'
13829 lt_prog_compiler_static='-Bstatic'
13830 ;;
13831
13832 sysv4 | sysv4.2uw2* | sysv4.3*)
13833 lt_prog_compiler_wl='-Wl,'
13834 lt_prog_compiler_pic='-KPIC'
13835 lt_prog_compiler_static='-Bstatic'
13836 ;;
13837
13838 sysv4*MP*)
13839 if test -d /usr/nec; then
13840 lt_prog_compiler_pic='-Kconform_pic'
13841 lt_prog_compiler_static='-Bstatic'
13842 fi
13843 ;;
13844
13845 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13846 lt_prog_compiler_wl='-Wl,'
13847 lt_prog_compiler_pic='-KPIC'
13848 lt_prog_compiler_static='-Bstatic'
13849 ;;
13850
13851 unicos*)
13852 lt_prog_compiler_wl='-Wl,'
13853 lt_prog_compiler_can_build_shared=no
13854 ;;
13855
13856 uts4*)
13857 lt_prog_compiler_pic='-pic'
13858 lt_prog_compiler_static='-Bstatic'
13859 ;;
13860
13861 *)
13862 lt_prog_compiler_can_build_shared=no
13863 ;;
13864 esac
13865 fi
13866
13867 case $host_os in
13868 # For platforms that do not support PIC, -DPIC is meaningless:
13869 *djgpp*)
13870 lt_prog_compiler_pic=
13871 ;;
13872 *)
13873 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13874 ;;
13875 esac
13876
13877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13878 printf %s "checking for $compiler option to produce PIC... " >&6; }
13879 if test ${lt_cv_prog_compiler_pic+y}
13880 then :
13881 printf %s "(cached) " >&6
13882 else case e in #(
13883 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
13884 esac
13885 fi
13886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13887 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
13888 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
13889
13890 #
13891 # Check to make sure the PIC flag actually works.
13892 #
13893 if test -n "$lt_prog_compiler_pic"; then
13894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13895 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
13896 if test ${lt_cv_prog_compiler_pic_works+y}
13897 then :
13898 printf %s "(cached) " >&6
13899 else case e in #(
13900 e) lt_cv_prog_compiler_pic_works=no
13901 ac_outfile=conftest.$ac_objext
13902 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13903 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
13904 # Insert the option either (1) after the last *FLAGS variable, or
13905 # (2) before a word containing "conftest.", or (3) at the end.
13906 # Note that $ac_compile itself does not contain backslashes and begins
13907 # with a dollar sign (not a hyphen), so the echo should work correctly.
13908 # The option is referenced via a variable to avoid confusing sed.
13909 lt_compile=`echo "$ac_compile" | $SED \
13910 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13911 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13912 -e 's:$: $lt_compiler_flag:'`
13913 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13914 (eval "$lt_compile" 2>conftest.err)
13915 ac_status=$?
13916 cat conftest.err >&5
13917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13918 if (exit $ac_status) && test -s "$ac_outfile"; then
13919 # The compiler can only warn and ignore the option if not recognized
13920 # So say no if there are warnings other than the usual output.
13921 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13922 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13923 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13924 lt_cv_prog_compiler_pic_works=yes
13925 fi
13926 fi
13927 $RM conftest*
13928 ;;
13929 esac
13930 fi
13931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13932 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
13933
13934 if test yes = "$lt_cv_prog_compiler_pic_works"; then
13935 case $lt_prog_compiler_pic in
13936 "" | " "*) ;;
13937 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13938 esac
13939 else
13940 lt_prog_compiler_pic=
13941 lt_prog_compiler_can_build_shared=no
13942 fi
13943
13944 fi
13945
13946
13947
13948
13949
13950 #
13951 # Check to make sure the static flag actually works.
13952 #
13953 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13955 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13956 if test ${lt_cv_prog_compiler_static_works+y}
13957 then :
13958 printf %s "(cached) " >&6
13959 else case e in #(
13960 e) lt_cv_prog_compiler_static_works=no
13961 save_LDFLAGS=$LDFLAGS
13962 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13963 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13964 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13965 # The linker can only warn and ignore the option if not recognized
13966 # So say no if there are warnings
13967 if test -s conftest.err; then
13968 # Append any errors to the config.log.
13969 cat conftest.err 1>&5
13970 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13971 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13972 if diff conftest.exp conftest.er2 >/dev/null; then
13973 lt_cv_prog_compiler_static_works=yes
13974 fi
13975 else
13976 lt_cv_prog_compiler_static_works=yes
13977 fi
13978 fi
13979 $RM -r conftest*
13980 LDFLAGS=$save_LDFLAGS
13981 ;;
13982 esac
13983 fi
13984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13985 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
13986
13987 if test yes = "$lt_cv_prog_compiler_static_works"; then
13988 :
13989 else
13990 lt_prog_compiler_static=
13991 fi
13992
13993
13994
13995 ='-fPIC'
13996 archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
13997 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'
13998 archive_cmds_need_lc=no
13999 no_undefined_flag=
14000 ;;
14001
14002 *)
14003 dynamic_linker=no
14004 ;;
14005 esac
14006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14007 printf "%s\n" "$dynamic_linker" >&6; }
14008 test no = "$dynamic_linker" && can_build_shared=no
14009
14010 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14011 if test yes = "$GCC"; then
14012 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14013 fi
14014
14015 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14016 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
14017 fi
14018
14019 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14020 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
14021 fi
14022
14023 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14024 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14025
14026 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14027 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14028
14029 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14030 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
14031
14032
14033
14034
14035
14036
14037
14038
14039
14040
14041
14042
14043
14044
14045
14046
14047
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108
14109
14110
14111
14112
14113
14114
14115
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14129 printf %s "checking how to hardcode library paths into programs... " >&6; }
14130 hardcode_action=
14131 if test -n "$hardcode_libdir_flag_spec" ||
14132 test -n "$runpath_var" ||
14133 test yes = "$hardcode_automatic"; then
14134
14135 # We can hardcode non-existent directories.
14136 if test no != "$hardcode_direct" &&
14137 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14138 # have to relink, otherwise we might link with an installed library
14139 # when we should be linking with a yet-to-be-installed one
14140 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
14141 test no != "$hardcode_minus_L"; then
14142 # Linking always hardcodes the temporary library directory.
14143 hardcode_action=relink
14144 else
14145 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14146 hardcode_action=immediate
14147 fi
14148 else
14149 # We cannot hardcode anything, or else we can only hardcode existing
14150 # directories.
14151 hardcode_action=unsupported
14152 fi
14153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14154 printf "%s\n" "$hardcode_action" >&6; }
14155
14156 if test relink = "$hardcode_action" ||
14157 test yes = "$inherit_rpath"; then
14158 # Fast installation is not supported
14159 enable_fast_install=no
14160 elif test yes = "$shlibpath_overrides_runpath" ||
14161 test no = "$enable_shared"; then
14162 # Fast installation is not necessary
14163 enable_fast_install=needless
14164 fi
14165
14166
14167
14168
14169
14170
14171 if test yes != "$enable_dlopen"; then
14172 enable_dlopen=unknown
14173 enable_dlopen_self=unknown
14174 enable_dlopen_self_static=unknown
14175 else
14176 lt_cv_dlopen=no
14177 lt_cv_dlopen_libs=
14178
14179 case $host_os in
14180 beos*)
14181 lt_cv_dlopen=load_add_on
14182 lt_cv_dlopen_libs=
14183 lt_cv_dlopen_self=yes
14184 ;;
14185
14186 mingw* | windows* | pw32* | cegcc*)
14187 lt_cv_dlopen=LoadLibrary
14188 lt_cv_dlopen_libs=
14189 ;;
14190
14191 cygwin*)
14192 lt_cv_dlopen=dlopen
14193 lt_cv_dlopen_libs=
14194 ;;
14195
14196 darwin*)
14197 # if libdl is installed we need to link against it
14198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14199 printf %s "checking for dlopen in -ldl... " >&6; }
14200 if test ${ac_cv_lib_dl_dlopen+y}
14201 then :
14202 printf %s "(cached) " >&6
14203 else case e in #(
14204 e) ac_check_lib_save_LIBS=$LIBS
14205 LIBS="-ldl $LIBS"
14206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14207 /* end confdefs.h. */
14208
14209 /* Override any GCC internal prototype to avoid an error.
14210 Use char because int might match the return type of a GCC
14211 builtin and then its argument prototype would still apply.
14212 The 'extern "C"' is for builds by C++ compilers;
14213 although this is not generally supported in C code supporting it here
14214 has little cost and some practical benefit (sr 110532). */
14215 #ifdef __cplusplus
14216 extern "C"
14217 #endif
14218 char dlopen (void);
14219 int
14220 main (void)
14221 {
14222 return dlopen ();
14223 ;
14224 return 0;
14225 }
14226 _ACEOF
14227 if ac_fn_c_try_link "$LINENO"
14228 then :
14229 ac_cv_lib_dl_dlopen=yes
14230 else case e in #(
14231 e) ac_cv_lib_dl_dlopen=no ;;
14232 esac
14233 fi
14234 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14235 conftest$ac_exeext conftest.$ac_ext
14236 LIBS=$ac_check_lib_save_LIBS ;;
14237 esac
14238 fi
14239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14240 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
14241 if test "x$ac_cv_lib_dl_dlopen" = xyes
14242 then :
14243 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14244 else case e in #(
14245 e)
14246 lt_cv_dlopen=dyld
14247 lt_cv_dlopen_libs=
14248 lt_cv_dlopen_self=yes
14249 ;;
14250 esac
14251 fi
14252
14253 ;;
14254
14255 tpf*)
14256 # Don't try to run any link tests for TPF. We know it's impossible
14257 # because TPF is a cross-compiler, and we know how we open DSOs.
14258 lt_cv_dlopen=dlopen
14259 lt_cv_dlopen_libs=
14260 lt_cv_dlopen_self=no
14261 ;;
14262
14263 *)
14264 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14265 if test "x$ac_cv_func_shl_load" = xyes
14266 then :
14267 lt_cv_dlopen=shl_load
14268 else case e in #(
14269 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14270 printf %s "checking for shl_load in -ldld... " >&6; }
14271 if test ${ac_cv_lib_dld_shl_load+y}
14272 then :
14273 printf %s "(cached) " >&6
14274 else case e in #(
14275 e) ac_check_lib_save_LIBS=$LIBS
14276 LIBS="-ldld $LIBS"
14277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14278 /* end confdefs.h. */
14279
14280 /* Override any GCC internal prototype to avoid an error.
14281 Use char because int might match the return type of a GCC
14282 builtin and then its argument prototype would still apply.
14283 The 'extern "C"' is for builds by C++ compilers;
14284 although this is not generally supported in C code supporting it here
14285 has little cost and some practical benefit (sr 110532). */
14286 #ifdef __cplusplus
14287 extern "C"
14288 #endif
14289 char shl_load (void);
14290 int
14291 main (void)
14292 {
14293 return shl_load ();
14294 ;
14295 return 0;
14296 }
14297 _ACEOF
14298 if ac_fn_c_try_link "$LINENO"
14299 then :
14300 ac_cv_lib_dld_shl_load=yes
14301 else case e in #(
14302 e) ac_cv_lib_dld_shl_load=no ;;
14303 esac
14304 fi
14305 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14306 conftest$ac_exeext conftest.$ac_ext
14307 LIBS=$ac_check_lib_save_LIBS ;;
14308 esac
14309 fi
14310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14311 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
14312 if test "x$ac_cv_lib_dld_shl_load" = xyes
14313 then :
14314 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
14315 else case e in #(
14316 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14317 if test "x$ac_cv_func_dlopen" = xyes
14318 then :
14319 lt_cv_dlopen=dlopen
14320 else case e in #(
14321 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14322 printf %s "checking for dlopen in -ldl... " >&6; }
14323 if test ${ac_cv_lib_dl_dlopen+y}
14324 then :
14325 printf %s "(cached) " >&6
14326 else case e in #(
14327 e) ac_check_lib_save_LIBS=$LIBS
14328 LIBS="-ldl $LIBS"
14329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14330 /* end confdefs.h. */
14331
14332 /* Override any GCC internal prototype to avoid an error.
14333 Use char because int might match the return type of a GCC
14334 builtin and then its argument prototype would still apply.
14335 The 'extern "C"' is for builds by C++ compilers;
14336 although this is not generally supported in C code supporting it here
14337 has little cost and some practical benefit (sr 110532). */
14338 #ifdef __cplusplus
14339 extern "C"
14340 #endif
14341 char dlopen (void);
14342 int
14343 main (void)
14344 {
14345 return dlopen ();
14346 ;
14347 return 0;
14348 }
14349 _ACEOF
14350 if ac_fn_c_try_link "$LINENO"
14351 then :
14352 ac_cv_lib_dl_dlopen=yes
14353 else case e in #(
14354 e) ac_cv_lib_dl_dlopen=no ;;
14355 esac
14356 fi
14357 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14358 conftest$ac_exeext conftest.$ac_ext
14359 LIBS=$ac_check_lib_save_LIBS ;;
14360 esac
14361 fi
14362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14363 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
14364 if test "x$ac_cv_lib_dl_dlopen" = xyes
14365 then :
14366 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14367 else case e in #(
14368 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14369 printf %s "checking for dlopen in -lsvld... " >&6; }
14370 if test ${ac_cv_lib_svld_dlopen+y}
14371 then :
14372 printf %s "(cached) " >&6
14373 else case e in #(
14374 e) ac_check_lib_save_LIBS=$LIBS
14375 LIBS="-lsvld $LIBS"
14376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14377 /* end confdefs.h. */
14378
14379 /* Override any GCC internal prototype to avoid an error.
14380 Use char because int might match the return type of a GCC
14381 builtin and then its argument prototype would still apply.
14382 The 'extern "C"' is for builds by C++ compilers;
14383 although this is not generally supported in C code supporting it here
14384 has little cost and some practical benefit (sr 110532). */
14385 #ifdef __cplusplus
14386 extern "C"
14387 #endif
14388 char dlopen (void);
14389 int
14390 main (void)
14391 {
14392 return dlopen ();
14393 ;
14394 return 0;
14395 }
14396 _ACEOF
14397 if ac_fn_c_try_link "$LINENO"
14398 then :
14399 ac_cv_lib_svld_dlopen=yes
14400 else case e in #(
14401 e) ac_cv_lib_svld_dlopen=no ;;
14402 esac
14403 fi
14404 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14405 conftest$ac_exeext conftest.$ac_ext
14406 LIBS=$ac_check_lib_save_LIBS ;;
14407 esac
14408 fi
14409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14410 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
14411 if test "x$ac_cv_lib_svld_dlopen" = xyes
14412 then :
14413 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
14414 else case e in #(
14415 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14416 printf %s "checking for dld_link in -ldld... " >&6; }
14417 if test ${ac_cv_lib_dld_dld_link+y}
14418 then :
14419 printf %s "(cached) " >&6
14420 else case e in #(
14421 e) ac_check_lib_save_LIBS=$LIBS
14422 LIBS="-ldld $LIBS"
14423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14424 /* end confdefs.h. */
14425
14426 /* Override any GCC internal prototype to avoid an error.
14427 Use char because int might match the return type of a GCC
14428 builtin and then its argument prototype would still apply.
14429 The 'extern "C"' is for builds by C++ compilers;
14430 although this is not generally supported in C code supporting it here
14431 has little cost and some practical benefit (sr 110532). */
14432 #ifdef __cplusplus
14433 extern "C"
14434 #endif
14435 char dld_link (void);
14436 int
14437 main (void)
14438 {
14439 return dld_link ();
14440 ;
14441 return 0;
14442 }
14443 _ACEOF
14444 if ac_fn_c_try_link "$LINENO"
14445 then :
14446 ac_cv_lib_dld_dld_link=yes
14447 else case e in #(
14448 e) ac_cv_lib_dld_dld_link=no ;;
14449 esac
14450 fi
14451 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14452 conftest$ac_exeext conftest.$ac_ext
14453 LIBS=$ac_check_lib_save_LIBS ;;
14454 esac
14455 fi
14456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14457 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
14458 if test "x$ac_cv_lib_dld_dld_link" = xyes
14459 then :
14460 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
14461 fi
14462
14463 ;;
14464 esac
14465 fi
14466
14467 ;;
14468 esac
14469 fi
14470
14471 ;;
14472 esac
14473 fi
14474
14475 ;;
14476 esac
14477 fi
14478
14479 ;;
14480 esac
14481 fi
14482
14483 ;;
14484 esac
14485
14486 if test no = "$lt_cv_dlopen"; then
14487 enable_dlopen=no
14488 else
14489 enable_dlopen=yes
14490 fi
14491
14492 case $lt_cv_dlopen in
14493 dlopen)
14494 save_CPPFLAGS=$CPPFLAGS
14495 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14496
14497 save_LDFLAGS=$LDFLAGS
14498 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14499
14500 save_LIBS=$LIBS
14501 LIBS="$lt_cv_dlopen_libs $LIBS"
14502
14503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14504 printf %s "checking whether a program can dlopen itself... " >&6; }
14505 if test ${lt_cv_dlopen_self+y}
14506 then :
14507 printf %s "(cached) " >&6
14508 else case e in #(
14509 e) if test yes = "$cross_compiling"; then :
14510 lt_cv_dlopen_self=cross
14511 else
14512 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14513 lt_status=$lt_dlunknown
14514 cat > conftest.$ac_ext <<_LT_EOF
14515 #line $LINENO "configure"
14516 #include "confdefs.h"
14517
14518 #if HAVE_DLFCN_H
14519 #include <dlfcn.h>
14520 #endif
14521
14522 #include <stdio.h>
14523
14524 #ifdef RTLD_GLOBAL
14525 # define LT_DLGLOBAL RTLD_GLOBAL
14526 #else
14527 # ifdef DL_GLOBAL
14528 # define LT_DLGLOBAL DL_GLOBAL
14529 # else
14530 # define LT_DLGLOBAL 0
14531 # endif
14532 #endif
14533
14534 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14535 find out it does not work in some platform. */
14536 #ifndef LT_DLLAZY_OR_NOW
14537 # ifdef RTLD_LAZY
14538 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14539 # else
14540 # ifdef DL_LAZY
14541 # define LT_DLLAZY_OR_NOW DL_LAZY
14542 # else
14543 # ifdef RTLD_NOW
14544 # define LT_DLLAZY_OR_NOW RTLD_NOW
14545 # else
14546 # ifdef DL_NOW
14547 # define LT_DLLAZY_OR_NOW DL_NOW
14548 # else
14549 # define LT_DLLAZY_OR_NOW 0
14550 # endif
14551 # endif
14552 # endif
14553 # endif
14554 #endif
14555
14556 /* When -fvisibility=hidden is used, assume the code has been annotated
14557 correspondingly for the symbols needed. */
14558 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14559 int fnord (void) __attribute__((visibility("default")));
14560 #endif
14561
14562 int fnord (void) { return 42; }
14563 int main (void)
14564 {
14565 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14566 int status = $lt_dlunknown;
14567
14568 if (self)
14569 {
14570 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14571 else
14572 {
14573 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14574 else puts (dlerror ());
14575 }
14576 /* dlclose (self); */
14577 }
14578 else
14579 puts (dlerror ());
14580
14581 return status;
14582 }
14583 _LT_EOF
14584 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14585 (eval $ac_link) 2>&5
14586 ac_status=$?
14587 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14588 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14589 (./conftest; exit; ) >&5 2>/dev/null
14590 lt_status=$?
14591 case x$lt_status in
14592 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14593 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14594 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14595 esac
14596 else :
14597 # compilation failed
14598 lt_cv_dlopen_self=no
14599 fi
14600 fi
14601 rm -fr conftest*
14602
14603 ;;
14604 esac
14605 fi
14606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14607 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
14608
14609 if test yes = "$lt_cv_dlopen_self"; then
14610 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14612 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
14613 if test ${lt_cv_dlopen_self_static+y}
14614 then :
14615 printf %s "(cached) " >&6
14616 else case e in #(
14617 e) if test yes = "$cross_compiling"; then :
14618 lt_cv_dlopen_self_static=cross
14619 else
14620 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14621 lt_status=$lt_dlunknown
14622 cat > conftest.$ac_ext <<_LT_EOF
14623 #line $LINENO "configure"
14624 #include "confdefs.h"
14625
14626 #if HAVE_DLFCN_H
14627 #include <dlfcn.h>
14628 #endif
14629
14630 #include <stdio.h>
14631
14632 #ifdef RTLD_GLOBAL
14633 # define LT_DLGLOBAL RTLD_GLOBAL
14634 #else
14635 # ifdef DL_GLOBAL
14636 # define LT_DLGLOBAL DL_GLOBAL
14637 # else
14638 # define LT_DLGLOBAL 0
14639 # endif
14640 #endif
14641
14642 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14643 find out it does not work in some platform. */
14644 #ifndef LT_DLLAZY_OR_NOW
14645 # ifdef RTLD_LAZY
14646 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14647 # else
14648 # ifdef DL_LAZY
14649 # define LT_DLLAZY_OR_NOW DL_LAZY
14650 # else
14651 # ifdef RTLD_NOW
14652 # define LT_DLLAZY_OR_NOW RTLD_NOW
14653 # else
14654 # ifdef DL_NOW
14655 # define LT_DLLAZY_OR_NOW DL_NOW
14656 # else
14657 # define LT_DLLAZY_OR_NOW 0
14658 # endif
14659 # endif
14660 # endif
14661 # endif
14662 #endif
14663
14664 /* When -fvisibility=hidden is used, assume the code has been annotated
14665 correspondingly for the symbols needed. */
14666 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14667 int fnord (void) __attribute__((visibility("default")));
14668 #endif
14669
14670 int fnord (void) { return 42; }
14671 int main (void)
14672 {
14673 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14674 int status = $lt_dlunknown;
14675
14676 if (self)
14677 {
14678 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14679 else
14680 {
14681 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14682 else puts (dlerror ());
14683 }
14684 /* dlclose (self); */
14685 }
14686 else
14687 puts (dlerror ());
14688
14689 return status;
14690 }
14691 _LT_EOF
14692 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14693 (eval $ac_link) 2>&5
14694 ac_status=$?
14695 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14696 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14697 (./conftest; exit; ) >&5 2>/dev/null
14698 lt_status=$?
14699 case x$lt_status in
14700 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14701 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14702 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14703 esac
14704 else :
14705 # compilation failed
14706 lt_cv_dlopen_self_static=no
14707 fi
14708 fi
14709 rm -fr conftest*
14710
14711 ;;
14712 esac
14713 fi
14714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14715 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
14716 fi
14717
14718 CPPFLAGS=$save_CPPFLAGS
14719 LDFLAGS=$save_LDFLAGS
14720 LIBS=$save_LIBS
14721 ;;
14722 esac
14723
14724 case $lt_cv_dlopen_self in
14725 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14726 *) enable_dlopen_self=unknown ;;
14727 esac
14728
14729 case $lt_cv_dlopen_self_static in
14730 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14731 *) enable_dlopen_self_static=unknown ;;
14732 esac
14733 fi
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745
14746
14747
14748
14749
14750
14751 striplib=
14752 old_striplib=
14753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14754 printf %s "checking whether stripping libraries is possible... " >&6; }
14755 if test -z "$STRIP"; then
14756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14757 printf "%s\n" "no" >&6; }
14758 else
14759 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14760 old_striplib="$STRIP --strip-debug"
14761 striplib="$STRIP --strip-unneeded"
14762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14763 printf "%s\n" "yes" >&6; }
14764 else
14765 case $host_os in
14766 darwin*)
14767 # FIXME - insert some real tests, host_os isn't really good enough
14768 striplib="$STRIP -x"
14769 old_striplib="$STRIP -S"
14770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14771 printf "%s\n" "yes" >&6; }
14772 ;;
14773 freebsd*)
14774 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
14775 old_striplib="$STRIP --strip-debug"
14776 striplib="$STRIP --strip-unneeded"
14777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14778 printf "%s\n" "yes" >&6; }
14779 else
14780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14781 printf "%s\n" "no" >&6; }
14782 fi
14783 ;;
14784 *)
14785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14786 printf "%s\n" "no" >&6; }
14787 ;;
14788 esac
14789 fi
14790 fi
14791
14792
14793
14794
14795
14796
14797
14798
14799
14800
14801
14802
14803 # Report what library types will actually be built
14804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14805 printf %s "checking if libtool supports shared libraries... " >&6; }
14806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14807 printf "%s\n" "$can_build_shared" >&6; }
14808
14809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14810 printf %s "checking whether to build shared libraries... " >&6; }
14811 test no = "$can_build_shared" && enable_shared=no
14812
14813 # On AIX, shared libraries and static libraries use the same namespace, and
14814 # are all built from PIC.
14815 case $host_os in
14816 aix3*)
14817 test yes = "$enable_shared" && enable_static=no
14818 if test -n "$RANLIB"; then
14819 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14820 postinstall_cmds='$RANLIB $lib'
14821 fi
14822 ;;
14823
14824 aix[4-9]*)
14825 if test ia64 != "$host_cpu"; then
14826 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14827 yes,aix,yes) ;; # shared object as lib.so file only
14828 yes,svr4,*) ;; # shared object as lib.so archive member only
14829 yes,*) enable_static=no ;; # shared object in lib.a archive as well
14830 esac
14831 fi
14832 ;;
14833 esac
14834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14835 printf "%s\n" "$enable_shared" >&6; }
14836
14837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14838 printf %s "checking whether to build static libraries... " >&6; }
14839 # Make sure either enable_shared or enable_static is yes.
14840 test yes = "$enable_shared" || enable_static=yes
14841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14842 printf "%s\n" "$enable_static" >&6; }
14843
14844
14845
14846
14847 fi
14848 ac_ext=c
14849 ac_cpp='$CPP $CPPFLAGS'
14850 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14851 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14852 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14853
14854 CC=$lt_save_CC
14855
14856
14857
14858
14859
14860
14861
14862
14863
14864
14865
14866
14867
14868
14869
14870 ac_config_commands="$ac_config_commands libtool"
14871
14872
14873
14874
14875 # Only expand once:
14876
14877
14878 # (end lt_init)
14879 # Check whether --enable-largefile was given.
14880 if test ${enable_largefile+y}
14881 then :
14882 enableval=$enable_largefile;
14883 fi
14884 if test "$enable_largefile,$enable_year2038" != no,no
14885 then :
14886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5
14887 printf %s "checking for $CC option to enable large file support... " >&6; }
14888 if test ${ac_cv_sys_largefile_opts+y}
14889 then :
14890 printf %s "(cached) " >&6
14891 else case e in #(
14892 e) ac_save_CC="$CC"
14893 ac_opt_found=no
14894 for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do
14895 if test x"$ac_opt" != x"none needed"
14896 then :
14897 CC="$ac_save_CC $ac_opt"
14898 fi
14899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14900 /* end confdefs.h. */
14901 #include <sys/types.h>
14902 #ifndef FTYPE
14903 # define FTYPE off_t
14904 #endif
14905 /* Check that FTYPE can represent 2**63 - 1 correctly.
14906 We can't simply define LARGE_FTYPE to be 9223372036854775807,
14907 since some C++ compilers masquerading as C compilers
14908 incorrectly reject 9223372036854775807. */
14909 #define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31))
14910 int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721
14911 && LARGE_FTYPE % 2147483647 == 1)
14912 ? 1 : -1];
14913 int
14914 main (void)
14915 {
14916
14917 ;
14918 return 0;
14919 }
14920 _ACEOF
14921 if ac_fn_c_try_compile "$LINENO"
14922 then :
14923 if test x"$ac_opt" = x"none needed"
14924 then :
14925 # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t.
14926 CC="$CC -DFTYPE=ino_t"
14927 if ac_fn_c_try_compile "$LINENO"
14928 then :
14929
14930 else case e in #(
14931 e) CC="$CC -D_FILE_OFFSET_BITS=64"
14932 if ac_fn_c_try_compile "$LINENO"
14933 then :
14934 ac_opt='-D_FILE_OFFSET_BITS=64'
14935 fi
14936 rm -f core conftest.err conftest.$ac_objext conftest.beam ;;
14937 esac
14938 fi
14939 rm -f core conftest.err conftest.$ac_objext conftest.beam
14940 fi
14941 ac_cv_sys_largefile_opts=$ac_opt
14942 ac_opt_found=yes
14943 fi
14944 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14945 test $ac_opt_found = no || break
14946 done
14947 CC="$ac_save_CC"
14948
14949 test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;;
14950 esac
14951 fi
14952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5
14953 printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; }
14954
14955 ac_have_largefile=yes
14956 case $ac_cv_sys_largefile_opts in #(
14957 "none needed") :
14958 ;; #(
14959 "supported through gnulib") :
14960 ;; #(
14961 "support not detected") :
14962 ac_have_largefile=no ;; #(
14963 "-D_FILE_OFFSET_BITS=64") :
14964
14965 printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
14966 ;; #(
14967 "-D_LARGE_FILES=1") :
14968
14969 printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h
14970 ;; #(
14971 "-n32") :
14972 CC="$CC -n32" ;; #(
14973 *) :
14974 as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;;
14975 esac
14976
14977 if test "$enable_year2038" != no
14978 then :
14979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option for timestamps after 2038" >&5
14980 printf %s "checking for $CC option for timestamps after 2038... " >&6; }
14981 if test ${ac_cv_sys_year2038_opts+y}
14982 then :
14983 printf %s "(cached) " >&6
14984 else case e in #(
14985 e) ac_save_CPPFLAGS="$CPPFLAGS"
14986 ac_opt_found=no
14987 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
14988 if test x"$ac_opt" != x"none needed"
14989 then :
14990 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
14991 fi
14992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14993 /* end confdefs.h. */
14994
14995 #include <time.h>
14996 /* Check that time_t can represent 2**32 - 1 correctly. */
14997 #define LARGE_TIME_T \\
14998 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
14999 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
15000 && LARGE_TIME_T % 65537 == 0)
15001 ? 1 : -1];
15002
15003 int
15004 main (void)
15005 {
15006
15007 ;
15008 return 0;
15009 }
15010 _ACEOF
15011 if ac_fn_c_try_compile "$LINENO"
15012 then :
15013 ac_cv_sys_year2038_opts="$ac_opt"
15014 ac_opt_found=yes
15015 fi
15016 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15017 test $ac_opt_found = no || break
15018 done
15019 CPPFLAGS="$ac_save_CPPFLAGS"
15020 test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;;
15021 esac
15022 fi
15023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5
15024 printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; }
15025
15026 ac_have_year2038=yes
15027 case $ac_cv_sys_year2038_opts in #(
15028 "none needed") :
15029 ;; #(
15030 "support not detected") :
15031 ac_have_year2038=no ;; #(
15032 "-D_TIME_BITS=64") :
15033
15034 printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h
15035 ;; #(
15036 "-D__MINGW_USE_VC2005_COMPAT") :
15037
15038 printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h
15039 ;; #(
15040 "-U_USE_32_BIT_TIME_T"*) :
15041 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
15042 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
15043 as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It
15044 will stop working after mid-January 2038. Remove
15045 _USE_32BIT_TIME_T from the compiler flags.
15046 See 'config.log' for more details" "$LINENO" 5; } ;; #(
15047 *) :
15048 as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;;
15049 esac
15050
15051 fi
15052
15053 fi
15054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for declarations of fseeko and ftello" >&5
15055 printf %s "checking for declarations of fseeko and ftello... " >&6; }
15056 if test ${ac_cv_func_fseeko_ftello+y}
15057 then :
15058 printf %s "(cached) " >&6
15059 else case e in #(
15060 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15061 /* end confdefs.h. */
15062
15063 #if defined __hpux && !defined _LARGEFILE_SOURCE
15064 # include <limits.h>
15065 # if LONG_MAX >> 31 == 0
15066 # error "32-bit HP-UX 11/ia64 needs _LARGEFILE_SOURCE for fseeko in C++"
15067 # endif
15068 #endif
15069 #include <sys/types.h> /* for off_t */
15070 #include <stdio.h>
15071
15072 int
15073 main (void)
15074 {
15075
15076 int (*fp1) (FILE *, off_t, int) = fseeko;
15077 off_t (*fp2) (FILE *) = ftello;
15078 return fseeko (stdin, 0, 0)
15079 && fp1 (stdin, 0, 0)
15080 && ftello (stdin) >= 0
15081 && fp2 (stdin) >= 0;
15082
15083 ;
15084 return 0;
15085 }
15086 _ACEOF
15087 if ac_fn_c_try_compile "$LINENO"
15088 then :
15089 ac_cv_func_fseeko_ftello=yes
15090 else case e in #(
15091 e) ac_save_CPPFLAGS="$CPPFLAGS"
15092 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE=1"
15093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15094 /* end confdefs.h. */
15095
15096 #if defined __hpux && !defined _LARGEFILE_SOURCE
15097 # include <limits.h>
15098 # if LONG_MAX >> 31 == 0
15099 # error "32-bit HP-UX 11/ia64 needs _LARGEFILE_SOURCE for fseeko in C++"
15100 # endif
15101 #endif
15102 #include <sys/types.h> /* for off_t */
15103 #include <stdio.h>
15104
15105 int
15106 main (void)
15107 {
15108
15109 int (*fp1) (FILE *, off_t, int) = fseeko;
15110 off_t (*fp2) (FILE *) = ftello;
15111 return fseeko (stdin, 0, 0)
15112 && fp1 (stdin, 0, 0)
15113 && ftello (stdin) >= 0
15114 && fp2 (stdin) >= 0;
15115
15116 ;
15117 return 0;
15118 }
15119 _ACEOF
15120 if ac_fn_c_try_compile "$LINENO"
15121 then :
15122 ac_cv_func_fseeko_ftello="need _LARGEFILE_SOURCE"
15123 else case e in #(
15124 e) ac_cv_func_fseeko_ftello=no ;;
15125 esac
15126 fi
15127 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15128 esac
15129 fi
15130 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15131 esac
15132 fi
15133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fseeko_ftello" >&5
15134 printf "%s\n" "$ac_cv_func_fseeko_ftello" >&6; }
15135 if test "$ac_cv_func_fseeko_ftello" != no
15136 then :
15137
15138 printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h
15139
15140 fi
15141 if test "$ac_cv_func_fseeko_ftello" = "need _LARGEFILE_SOURCE"
15142 then :
15143
15144 printf "%s\n" "#define _LARGEFILE_SOURCE 1" >>confdefs.h
15145
15146 fi
15147
15148 ac_header_dirent=no
15149 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15150 as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | sed "$as_sed_sh"`
15151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
15152 printf %s "checking for $ac_hdr that defines DIR... " >&6; }
15153 if eval test \${$as_ac_Header+y}
15154 then :
15155 printf %s "(cached) " >&6
15156 else case e in #(
15157 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15158 /* end confdefs.h. */
15159 #include <sys/types.h>
15160 #include <$ac_hdr>
15161
15162 int
15163 main (void)
15164 {
15165 if ((DIR *) 0)
15166 return 0;
15167 ;
15168 return 0;
15169 }
15170 _ACEOF
15171 if ac_fn_c_try_compile "$LINENO"
15172 then :
15173 eval "$as_ac_Header=yes"
15174 else case e in #(
15175 e) eval "$as_ac_Header=no" ;;
15176 esac
15177 fi
15178 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15179 esac
15180 fi
15181 eval ac_res=\$$as_ac_Header
15182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15183 printf "%s\n" "$ac_res" >&6; }
15184 if eval test \"x\$"$as_ac_Header"\" = x"yes"
15185 then :
15186 cat >>confdefs.h <<_ACEOF
15187 #define `printf "%s\n" "HAVE_$ac_hdr" | sed "$as_sed_cpp"` 1
15188 _ACEOF
15189
15190 ac_header_dirent=$ac_hdr; break
15191 fi
15192
15193 done
15194 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15195 if test $ac_header_dirent = dirent.h; then
15196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
15197 printf %s "checking for library containing opendir... " >&6; }
15198 if test ${ac_cv_search_opendir+y}
15199 then :
15200 printf %s "(cached) " >&6
15201 else case e in #(
15202 e) ac_func_search_save_LIBS=$LIBS
15203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15204 /* end confdefs.h. */
15205
15206 /* Override any GCC internal prototype to avoid an error.
15207 Use char because int might match the return type of a GCC
15208 builtin and then its argument prototype would still apply.
15209 The 'extern "C"' is for builds by C++ compilers;
15210 although this is not generally supported in C code supporting it here
15211 has little cost and some practical benefit (sr 110532). */
15212 #ifdef __cplusplus
15213 extern "C"
15214 #endif
15215 char opendir (void);
15216 int
15217 main (void)
15218 {
15219 return opendir ();
15220 ;
15221 return 0;
15222 }
15223 _ACEOF
15224 for ac_lib in '' dir
15225 do
15226 if test -z "$ac_lib"; then
15227 ac_res="none required"
15228 else
15229 ac_res=-l$ac_lib
15230 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15231 fi
15232 if ac_fn_c_try_link "$LINENO"
15233 then :
15234 ac_cv_search_opendir=$ac_res
15235 fi
15236 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15237 conftest$ac_exeext
15238 if test ${ac_cv_search_opendir+y}
15239 then :
15240 break
15241 fi
15242 done
15243 if test ${ac_cv_search_opendir+y}
15244 then :
15245
15246 else case e in #(
15247 e) ac_cv_search_opendir=no ;;
15248 esac
15249 fi
15250 rm conftest.$ac_ext
15251 LIBS=$ac_func_search_save_LIBS ;;
15252 esac
15253 fi
15254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15255 printf "%s\n" "$ac_cv_search_opendir" >&6; }
15256 ac_res=$ac_cv_search_opendir
15257 if test "$ac_res" != no
15258 then :
15259 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15260
15261 fi
15262
15263 else
15264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
15265 printf %s "checking for library containing opendir... " >&6; }
15266 if test ${ac_cv_search_opendir+y}
15267 then :
15268 printf %s "(cached) " >&6
15269 else case e in #(
15270 e) ac_func_search_save_LIBS=$LIBS
15271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15272 /* end confdefs.h. */
15273
15274 /* Override any GCC internal prototype to avoid an error.
15275 Use char because int might match the return type of a GCC
15276 builtin and then its argument prototype would still apply.
15277 The 'extern "C"' is for builds by C++ compilers;
15278 although this is not generally supported in C code supporting it here
15279 has little cost and some practical benefit (sr 110532). */
15280 #ifdef __cplusplus
15281 extern "C"
15282 #endif
15283 char opendir (void);
15284 int
15285 main (void)
15286 {
15287 return opendir ();
15288 ;
15289 return 0;
15290 }
15291 _ACEOF
15292 for ac_lib in '' x
15293 do
15294 if test -z "$ac_lib"; then
15295 ac_res="none required"
15296 else
15297 ac_res=-l$ac_lib
15298 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15299 fi
15300 if ac_fn_c_try_link "$LINENO"
15301 then :
15302 ac_cv_search_opendir=$ac_res
15303 fi
15304 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15305 conftest$ac_exeext
15306 if test ${ac_cv_search_opendir+y}
15307 then :
15308 break
15309 fi
15310 done
15311 if test ${ac_cv_search_opendir+y}
15312 then :
15313
15314 else case e in #(
15315 e) ac_cv_search_opendir=no ;;
15316 esac
15317 fi
15318 rm conftest.$ac_ext
15319 LIBS=$ac_func_search_save_LIBS ;;
15320 esac
15321 fi
15322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15323 printf "%s\n" "$ac_cv_search_opendir" >&6; }
15324 ac_res=$ac_cv_search_opendir
15325 if test "$ac_res" != no
15326 then :
15327 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15328
15329 fi
15330
15331 fi
15332
15333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
15334 printf %s "checking whether closedir returns void... " >&6; }
15335 if test ${ac_cv_func_closedir_void+y}
15336 then :
15337 printf %s "(cached) " >&6
15338 else case e in #(
15339 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15340 /* end confdefs.h. */
15341
15342 #include <$ac_header_dirent>
15343
15344 int
15345 main (void)
15346 {
15347
15348 return closedir(0);
15349
15350 ;
15351 return 0;
15352 }
15353 _ACEOF
15354 if ac_fn_c_try_compile "$LINENO"
15355 then :
15356 ac_cv_func_closedir_void=no
15357 else case e in #(
15358 e) ac_cv_func_closedir_void=yes ;;
15359 esac
15360 fi
15361 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15362 esac
15363 fi
15364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
15365 printf "%s\n" "$ac_cv_func_closedir_void" >&6; }
15366 if test $ac_cv_func_closedir_void = yes; then
15367
15368 printf "%s\n" "#define CLOSEDIR_VOID 1" >>confdefs.h
15369
15370 fi
15371
15372 ac_fn_c_check_header_compile "$LINENO" "assert.h" "ac_cv_header_assert_h" "$ac_includes_default"
15373 if test "x$ac_cv_header_assert_h" = xyes
15374 then :
15375 printf "%s\n" "#define HAVE_ASSERT_H 1" >>confdefs.h
15376
15377 fi
15378 ac_fn_c_check_header_compile "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
15379 if test "x$ac_cv_header_float_h" = xyes
15380 then :
15381 printf "%s\n" "#define HAVE_FLOAT_H 1" >>confdefs.h
15382
15383 fi
15384 ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
15385 if test "x$ac_cv_header_limits_h" = xyes
15386 then :
15387 printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
15388
15389 fi
15390 ac_fn_c_check_header_compile "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default"
15391 if test "x$ac_cv_header_pwd_h" = xyes
15392 then :
15393 printf "%s\n" "#define HAVE_PWD_H 1" >>confdefs.h
15394
15395 fi
15396 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
15397 if test "x$ac_cv_header_stdlib_h" = xyes
15398 then :
15399 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
15400
15401 fi
15402 ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
15403 if test "x$ac_cv_header_sys_param_h" = xyes
15404 then :
15405 printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
15406
15407 fi
15408
15409 ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
15410 if test "x$ac_cv_func_putenv" = xyes
15411 then :
15412 printf "%s\n" "#define HAVE_PUTENV 1" >>confdefs.h
15413
15414 fi
15415
15416 ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
15417 if test "x$ac_cv_func_getcwd" = xyes
15418 then :
15419 printf "%s\n" "#define HAVE_GETCWD 1" >>confdefs.h
15420
15421 fi
15422 ac_fn_c_check_func "$LINENO" "memcmp" "ac_cv_func_memcmp"
15423 if test "x$ac_cv_func_memcmp" = xyes
15424 then :
15425 printf "%s\n" "#define HAVE_MEMCMP 1" >>confdefs.h
15426
15427 fi
15428 ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
15429 if test "x$ac_cv_func_memcpy" = xyes
15430 then :
15431 printf "%s\n" "#define HAVE_MEMCPY 1" >>confdefs.h
15432
15433 fi
15434 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
15435 if test "x$ac_cv_func_mkstemp" = xyes
15436 then :
15437 printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h
15438
15439 fi
15440 ac_fn_c_check_func "$LINENO" "mktemp" "ac_cv_func_mktemp"
15441 if test "x$ac_cv_func_mktemp" = xyes
15442 then :
15443 printf "%s\n" "#define HAVE_MKTEMP 1" >>confdefs.h
15444
15445 fi
15446 ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
15447 if test "x$ac_cv_func_strchr" = xyes
15448 then :
15449 printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
15450
15451 fi
15452 ac_fn_c_check_func "$LINENO" "strrchr" "ac_cv_func_strrchr"
15453 if test "x$ac_cv_func_strrchr" = xyes
15454 then :
15455 printf "%s\n" "#define HAVE_STRRCHR 1" >>confdefs.h
15456
15457 fi
15458
15459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
15460 printf %s "checking for an ANSI C-conforming const... " >&6; }
15461 if test ${ac_cv_c_const+y}
15462 then :
15463 printf %s "(cached) " >&6
15464 else case e in #(
15465 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15466 /* end confdefs.h. */
15467
15468 int
15469 main (void)
15470 {
15471
15472 #ifndef __cplusplus
15473 /* Ultrix mips cc rejects this sort of thing. */
15474 typedef int charset[2];
15475 const charset cs = { 0, 0 };
15476 /* SunOS 4.1.1 cc rejects this. */
15477 char const *const *pcpcc;
15478 char **ppc;
15479 /* NEC SVR4.0.2 mips cc rejects this. */
15480 struct point {int x, y;};
15481 static struct point const zero = {0,0};
15482 /* IBM XL C 1.02.0.0 rejects this.
15483 It does not let you subtract one const X* pointer from another in
15484 an arm of an if-expression whose if-part is not a constant
15485 expression */
15486 const char *g = "string";
15487 pcpcc = &g + (g ? g-g : 0);
15488 /* HPUX 7.0 cc rejects these. */
15489 ++pcpcc;
15490 ppc = (char**) pcpcc;
15491 pcpcc = (char const *const *) ppc;
15492 { /* SCO 3.2v4 cc rejects this sort of thing. */
15493 char tx;
15494 char *t = &tx;
15495 char const *s = 0 ? (char *) 0 : (char const *) 0;
15496
15497 *t++ = 0;
15498 if (s) return 0;
15499 }
15500 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15501 int x[] = {25, 17};
15502 const int *foo = &x[0];
15503 ++foo;
15504 }
15505 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15506 typedef const int *iptr;
15507 iptr p = 0;
15508 ++p;
15509 }
15510 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
15511 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15512 struct s { int j; const int *ap[3]; } bx;
15513 struct s *b = &bx; b->j = 5;
15514 }
15515 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15516 const int foo = 10;
15517 if (!foo) return 0;
15518 }
15519 return !cs[0] && !zero.x;
15520 #endif
15521
15522 ;
15523 return 0;
15524 }
15525 _ACEOF
15526 if ac_fn_c_try_compile "$LINENO"
15527 then :
15528 ac_cv_c_const=yes
15529 else case e in #(
15530 e) ac_cv_c_const=no ;;
15531 esac
15532 fi
15533 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15534 esac
15535 fi
15536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
15537 printf "%s\n" "$ac_cv_c_const" >&6; }
15538 if test $ac_cv_c_const = no; then
15539
15540 printf "%s\n" "#define const /**/" >>confdefs.h
15541
15542 fi
15543
15544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15545 printf %s "checking for inline... " >&6; }
15546 if test ${ac_cv_c_inline+y}
15547 then :
15548 printf %s "(cached) " >&6
15549 else case e in #(
15550 e) ac_cv_c_inline=no
15551 for ac_kw in inline __inline__ __inline; do
15552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15553 /* end confdefs.h. */
15554 #ifndef __cplusplus
15555 typedef int foo_t;
15556 static $ac_kw foo_t static_foo (void) {return 0; }
15557 $ac_kw foo_t foo (void) {return 0; }
15558 #endif
15559
15560 _ACEOF
15561 if ac_fn_c_try_compile "$LINENO"
15562 then :
15563 ac_cv_c_inline=$ac_kw
15564 fi
15565 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15566 test "$ac_cv_c_inline" != no && break
15567 done
15568 ;;
15569 esac
15570 fi
15571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15572 printf "%s\n" "$ac_cv_c_inline" >&6; }
15573
15574 case $ac_cv_c_inline in
15575 inline | yes) ;;
15576 *)
15577 case $ac_cv_c_inline in
15578 no) ac_val=;;
15579 *) ac_val=$ac_cv_c_inline;;
15580 esac
15581 cat >>confdefs.h <<_ACEOF
15582 #ifndef __cplusplus
15583 #define inline $ac_val
15584 #endif
15585 _ACEOF
15586 ;;
15587 esac
15588
15589 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15590 if test "x$ac_cv_type_size_t" = xyes
15591 then :
15592
15593 else case e in #(
15594 e)
15595 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
15596 ;;
15597 esac
15598 fi
15599
15600 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
15601 case $ac_cv_c_int64_t in #(
15602 no|yes) ;; #(
15603 *)
15604
15605 printf "%s\n" "#define int64_t $ac_cv_c_int64_t" >>confdefs.h
15606 ;;
15607 esac
15608
15609 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
15610 case $ac_cv_c_uint64_t in #(
15611 no|yes) ;; #(
15612 *)
15613
15614 printf "%s\n" "#define _UINT64_T 1" >>confdefs.h
15615
15616
15617 printf "%s\n" "#define uint64_t $ac_cv_c_uint64_t" >>confdefs.h
15618 ;;
15619 esac
15620
15621 case :$ac_cv_c_int64_t:$ac_cv_c_int64_t: in #(
15622 *':no:'*) :
15623 as_fn_error $? "Sorry, your compiler does not support 64-bit integer types." "$LINENO" 5 ;; #(
15624 *) :
15625 ;;
15626 esac
15627 ac_fn_check_decl "$LINENO" "isascii" "ac_cv_have_decl_isascii" "#include <ctype.h>
15628 " "$ac_c_undeclared_builtin_options" "CFLAGS"
15629 if test "x$ac_cv_have_decl_isascii" = xyes
15630 then :
15631 ac_have_decl=1
15632 else case e in #(
15633 e) ac_have_decl=0 ;;
15634 esac
15635 fi
15636 printf "%s\n" "#define HAVE_DECL_ISASCII $ac_have_decl" >>confdefs.h
15637
15638 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
15639 if test "x$ac_cv_member_struct_stat_st_mtim" = xyes
15640 then :
15641
15642 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_MTIM 1" >>confdefs.h
15643
15644
15645 fi
15646
15647
15648
15649 ac_config_headers="$ac_config_headers c-auto.h:c-auto.in"
15650
15651
15652
15653
15654 printf "%s\n" "#define TL_VERSION \"TeX Live 2026\"" >>confdefs.h
15655
15656
15657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C99 variadic macros are supported" >&5
15658 printf %s "checking if C99 variadic macros are supported... " >&6; }
15659 if test ${kpse_cv_have___VA_ARGS__+y}
15660 then :
15661 printf %s "(cached) " >&6
15662 else case e in #(
15663 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15664 /* end confdefs.h. */
15665 #include <stdio.h>
15666 #define foo(format, ...) printf(format, __VA_ARGS__)
15667 int
15668 main (void)
15669 {
15670 foo("%s\n", "Hi, there");
15671 ;
15672 return 0;
15673 }
15674 _ACEOF
15675 if ac_fn_c_try_compile "$LINENO"
15676 then :
15677 kpse_cv_have___VA_ARGS__=yes
15678 else case e in #(
15679 e) kpse_cv_have___VA_ARGS__=no ;;
15680 esac
15681 fi
15682 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15683 esac
15684 fi
15685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_have___VA_ARGS__" >&5
15686 printf "%s\n" "$kpse_cv_have___VA_ARGS__" >&6; }
15687 case $kpse_cv_have___VA_ARGS__ in #(
15688 yes) :
15689
15690 printf "%s\n" "#define HAVE___VA_ARGS__ 1" >>confdefs.h
15691 ;; #(
15692 *) :
15693 ;;
15694 esac
15695
15696 kpse_save_CPPFLAGS=$CPPFLAGS
15697 kpse_save_LIBS=$LIBS
15698
15699 ##tldbg _KPSE_INIT: Initialize TL infrastructure.
15700 kpse_BLD=`(cd "./../../." && pwd)`
15701 kpse_SRC=`(cd "$srcdir/../../." && pwd)`
15702
15703 echo 'tldbg:_KPSE_USE_LIBTOOL called, libtool package version: 2.5.4' >&5
15704 : ${CONFIG_LT=./config.lt}
15705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_LT" >&5
15706 printf "%s\n" "$as_me: creating $CONFIG_LT" >&6;}
15707 as_write_fail=0
15708 cat >"$CONFIG_LT" <<_ASEOF || as_write_fail=1
15709 #! $SHELL
15710 # Generated by $as_me.
15711 # Run this file to recreate a libtool stub with the current configuration.
15712 SHELL=\${CONFIG_SHELL-$SHELL}
15713 export SHELL
15714 _ASEOF
15715 cat >>"$CONFIG_LT" <<\_ASEOF || as_write_fail=1
15716 ## -------------------- ##
15717 ## M4sh Initialization. ##
15718 ## -------------------- ##
15719
15720 # Be more Bourne compatible
15721 DUALCASE=1; export DUALCASE # for MKS sh
15722 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
15723 then :
15724 emulate sh
15725 NULLCMD=:
15726 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15727 # is contrary to our usage. Disable this feature.
15728 alias -g '${1+"$@"}'='"$@"'
15729 setopt NO_GLOB_SUBST
15730 else case e in #(
15731 e) case `(set -o) 2>/dev/null` in #(
15732 *posix*) :
15733 set -o posix ;; #(
15734 *) :
15735 ;;
15736 esac ;;
15737 esac
15738 fi
15739
15740
15741
15742 # Reset variables that may have inherited troublesome values from
15743 # the environment.
15744
15745 # IFS needs to be set, to space, tab, and newline, in precisely that order.
15746 # (If _AS_PATH_WALK were called with IFS unset, it would have the
15747 # side effect of setting IFS to empty, thus disabling word splitting.)
15748 # Quoting is to prevent editors from complaining about space-tab.
15749 as_nl='
15750 '
15751 export as_nl
15752 IFS=" "" $as_nl"
15753
15754 PS1='$ '
15755 PS2='> '
15756 PS4='+ '
15757
15758 # Ensure predictable behavior from utilities with locale-dependent output.
15759 LC_ALL=C
15760 export LC_ALL
15761 LANGUAGE=C
15762 export LANGUAGE
15763
15764 # We cannot yet rely on "unset" to work, but we need these variables
15765 # to be unset--not just set to an empty or harmless value--now, to
15766 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
15767 # also avoids known problems related to "unset" and subshell syntax
15768 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
15769 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
15770 do eval test \${$as_var+y} \
15771 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15772 done
15773
15774 # Ensure that fds 0, 1, and 2 are open.
15775 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
15776 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
15777 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
15778
15779 # The user is always right.
15780 if ${PATH_SEPARATOR+false} :; then
15781 PATH_SEPARATOR=:
15782 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15783 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15784 PATH_SEPARATOR=';'
15785 }
15786 fi
15787
15788
15789 # Find who we are. Look in the path if we contain no directory separator.
15790 as_myself=
15791 case $0 in #((
15792 *[\\/]* ) as_myself=$0 ;;
15793 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15794 for as_dir in $PATH
15795 do
15796 IFS=$as_save_IFS
15797 case $as_dir in #(((
15798 '') as_dir=./ ;;
15799 */) ;;
15800 *) as_dir=$as_dir/ ;;
15801 esac
15802 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
15803 done
15804 IFS=$as_save_IFS
15805
15806 ;;
15807 esac
15808 # We did not find ourselves, most probably we were run as 'sh COMMAND'
15809 # in which case we are not to be found in the path.
15810 if test "x$as_myself" = x; then
15811 as_myself=$0
15812 fi
15813 if test ! -f "$as_myself"; then
15814 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15815 exit 1
15816 fi
15817
15818
15819
15820 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15821 # ----------------------------------------
15822 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15823 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15824 # script with STATUS, using 1 if that was 0.
15825 as_fn_error ()
15826 {
15827 as_status=$1; test $as_status -eq 0 && as_status=1
15828 if test "$4"; then
15829 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15830 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15831 fi
15832 printf "%s\n" "$as_me: error: $2" >&2
15833 as_fn_exit $as_status
15834 } # as_fn_error
15835
15836
15837 # as_fn_set_status STATUS
15838 # -----------------------
15839 # Set $? to STATUS, without forking.
15840 as_fn_set_status ()
15841 {
15842 return $1
15843 } # as_fn_set_status
15844
15845 # as_fn_exit STATUS
15846 # -----------------
15847 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15848 as_fn_exit ()
15849 {
15850 set +e
15851 as_fn_set_status $1
15852 exit $1
15853 } # as_fn_exit
15854
15855 # as_fn_unset VAR
15856 # ---------------
15857 # Portably unset VAR.
15858 as_fn_unset ()
15859 {
15860 { eval $1=; unset $1;}
15861 }
15862 as_unset=as_fn_unset
15863
15864 # as_fn_append VAR VALUE
15865 # ----------------------
15866 # Append the text in VALUE to the end of the definition contained in VAR. Take
15867 # advantage of any shell optimizations that allow amortized linear growth over
15868 # repeated appends, instead of the typical quadratic growth present in naive
15869 # implementations.
15870 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
15871 then :
15872 eval 'as_fn_append ()
15873 {
15874 eval $1+=\$2
15875 }'
15876 else case e in #(
15877 e) as_fn_append ()
15878 {
15879 eval $1=\$$1\$2
15880 } ;;
15881 esac
15882 fi # as_fn_append
15883
15884 # as_fn_arith ARG...
15885 # ------------------
15886 # Perform arithmetic evaluation on the ARGs, and store the result in the
15887 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15888 # must be portable across $(()) and expr.
15889 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
15890 then :
15891 eval 'as_fn_arith ()
15892 {
15893 as_val=$(( $* ))
15894 }'
15895 else case e in #(
15896 e) as_fn_arith ()
15897 {
15898 as_val=`expr "$@" || test $? -eq 1`
15899 } ;;
15900 esac
15901 fi # as_fn_arith
15902
15903
15904 if expr a : '\(a\)' >/dev/null 2>&1 &&
15905 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15906 as_expr=expr
15907 else
15908 as_expr=false
15909 fi
15910
15911 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15912 as_basename=basename
15913 else
15914 as_basename=false
15915 fi
15916
15917 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15918 as_dirname=dirname
15919 else
15920 as_dirname=false
15921 fi
15922
15923 as_me=`$as_basename -- "$0" ||
15924 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15925 X"$0" : 'X\(//\)$' \| \
15926 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15927 printf "%s\n" X/"$0" |
15928 sed '/^.*\/\([^/][^/]*\)\/*$/{
15929 s//\1/
15930 q
15931 }
15932 /^X\/\(\/\/\)$/{
15933 s//\1/
15934 q
15935 }
15936 /^X\/\(\/\).*/{
15937 s//\1/
15938 q
15939 }
15940 s/.*/./; q'`
15941
15942 # Avoid depending upon Character Ranges.
15943 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15944 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15945 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15946 as_cr_digits='0123456789'
15947 as_cr_alnum=$as_cr_Letters$as_cr_digits
15948
15949
15950 # Determine whether it's possible to make 'echo' print without a newline.
15951 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
15952 # for compatibility with existing Makefiles.
15953 ECHO_C= ECHO_N= ECHO_T=
15954 case `echo -n x` in #(((((
15955 -n*)
15956 case `echo 'xy\c'` in
15957 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15958 xy) ECHO_C='\c';;
15959 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15960 ECHO_T=' ';;
15961 esac;;
15962 *)
15963 ECHO_N='-n';;
15964 esac
15965
15966 # For backward compatibility with old third-party macros, we provide
15967 # the shell variables $as_echo and $as_echo_n. New code should use
15968 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
15969 as_echo='printf %s\n'
15970 as_echo_n='printf %s'
15971
15972 rm -f conf$$ conf$$.exe conf$$.file
15973 if test -d conf$$.dir; then
15974 rm -f conf$$.dir/conf$$.file
15975 else
15976 rm -f conf$$.dir
15977 mkdir conf$$.dir 2>/dev/null
15978 fi
15979 if (echo >conf$$.file) 2>/dev/null; then
15980 if ln -s conf$$.file conf$$ 2>/dev/null; then
15981 as_ln_s='ln -s'
15982 # ... but there are two gotchas:
15983 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
15984 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
15985 # In both cases, we have to default to 'cp -pR'.
15986 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15987 as_ln_s='cp -pR'
15988 elif ln conf$$.file conf$$ 2>/dev/null; then
15989 as_ln_s=ln
15990 else
15991 as_ln_s='cp -pR'
15992 fi
15993 else
15994 as_ln_s='cp -pR'
15995 fi
15996 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15997 rmdir conf$$.dir 2>/dev/null
15998
15999
16000 # as_fn_mkdir_p
16001 # -------------
16002 # Create "$as_dir" as a directory, including parents if necessary.
16003 as_fn_mkdir_p ()
16004 {
16005
16006 case $as_dir in #(
16007 -*) as_dir=./$as_dir;;
16008 esac
16009 test -d "$as_dir" || eval $as_mkdir_p || {
16010 as_dirs=
16011 while :; do
16012 case $as_dir in #(
16013 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16014 *) as_qdir=$as_dir;;
16015 esac
16016 as_dirs="'$as_qdir' $as_dirs"
16017 as_dir=`$as_dirname -- "$as_dir" ||
16018 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16019 X"$as_dir" : 'X\(//\)[^/]' \| \
16020 X"$as_dir" : 'X\(//\)$' \| \
16021 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16022 printf "%s\n" X"$as_dir" |
16023 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16024 s//\1/
16025 q
16026 }
16027 /^X\(\/\/\)[^/].*/{
16028 s//\1/
16029 q
16030 }
16031 /^X\(\/\/\)$/{
16032 s//\1/
16033 q
16034 }
16035 /^X\(\/\).*/{
16036 s//\1/
16037 q
16038 }
16039 s/.*/./; q'`
16040 test -d "$as_dir" && break
16041 done
16042 test -z "$as_dirs" || eval "mkdir $as_dirs"
16043 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16044
16045
16046 } # as_fn_mkdir_p
16047 if mkdir -p . 2>/dev/null; then
16048 as_mkdir_p='mkdir -p "$as_dir"'
16049 else
16050 test -d ./-p && rmdir ./-p
16051 as_mkdir_p=false
16052 fi
16053
16054
16055 # as_fn_executable_p FILE
16056 # -----------------------
16057 # Test if FILE is an executable regular file.
16058 as_fn_executable_p ()
16059 {
16060 test -f "$1" && test -x "$1"
16061 } # as_fn_executable_p
16062 as_test_x='test -x'
16063 as_executable_p=as_fn_executable_p
16064
16065 # Sed expression to map a string onto a valid CPP name.
16066 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
16067 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
16068
16069 # Sed expression to map a string onto a valid variable name.
16070 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
16071 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
16072
16073
16074 exec 6>&1
16075 ## --------------------------------- ##
16076 ## Main body of "$CONFIG_LT" script. ##
16077 ## --------------------------------- ##
16078 _ASEOF
16079 test $as_write_fail = 0 && chmod +x "$CONFIG_LT"
16080
16081 cat >>"$CONFIG_LT" <<\_LTEOF
16082 lt_cl_silent=false
16083 exec 5>>config.log
16084 {
16085 echo
16086 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16087 ## Running $as_me. ##
16088 _ASBOX
16089 } >&5
16090
16091 lt_cl_help="\
16092 '$as_me' creates a local libtool stub from the current configuration,
16093 for use in further configure time tests before the real libtool is
16094 generated.
16095
16096 Usage: $0 [OPTIONS]
16097
16098 -h, --help print this help, then exit
16099 -V, --version print version number, then exit
16100 -q, --quiet do not print progress messages
16101 -d, --debug don't remove temporary files
16102
16103 Report bugs to <[email protected]>."
16104
16105 lt_cl_version="\
16106 mendex (TeX Live) config.lt 3.10
16107 configured by $0, generated by GNU Autoconf 2.72.
16108
16109 Copyright (C) 2024 Free Software Foundation, Inc.
16110 This config.lt script is free software; the Free Software Foundation
16111 gives unlimited permission to copy, distribute and modify it."
16112
16113 while test 0 != $#
16114 do
16115 case $1 in
16116 --version | --v* | -V )
16117 echo "$lt_cl_version"; exit 0 ;;
16118 --help | --h* | -h )
16119 echo "$lt_cl_help"; exit 0 ;;
16120 --debug | --d* | -d )
16121 debug=: ;;
16122 --quiet | --q* | --silent | --s* | -q )
16123 lt_cl_silent=: ;;
16124
16125 -*) as_fn_error $? "unrecognized option: $1
16126 Try '$0 --help' for more information." "$LINENO" 5 ;;
16127
16128 *) as_fn_error $? "unrecognized argument: $1
16129 Try '$0 --help' for more information." "$LINENO" 5 ;;
16130 esac
16131 shift
16132 done
16133
16134 if $lt_cl_silent; then
16135 exec 6>/dev/null
16136 fi
16137 _LTEOF
16138
16139 cat >>"$CONFIG_LT" <<_LTEOF
16140
16141
16142 # The HP-UX ksh and POSIX shell print the target directory to stdout
16143 # if CDPATH is set.
16144 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16145
16146 sed_quote_subst='$sed_quote_subst'
16147 double_quote_subst='$double_quote_subst'
16148 delay_variable_subst='$delay_variable_subst'
16149 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16150 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16151 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
16152 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16153 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16154 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16155 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16156 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16157 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16158 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
16159 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16160 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16161 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16162 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16163 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16164 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16165 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16166 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16167 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16168 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16169 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16170 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16171 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16172 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16173 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16174 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16175 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16176 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16177 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16178 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16179 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16180 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16181 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16182 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16183 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16184 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16185 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16186 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
16187 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16188 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16189 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16190 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16191 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16192 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16193 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
16194 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16195 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16196 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16197 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16198 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16199 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16200 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16201 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16202 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16203 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16204 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16205 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16206 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16207 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16208 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
16209 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16210 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"`'
16211 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
16212 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16213 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16214 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
16215 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16216 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16217 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16218 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16219 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16220 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16221 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16222 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16223 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16224 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16225 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16226 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16227 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16228 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16229 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16230 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16231 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16232 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16233 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16234 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16235 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16236 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16237 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16238 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16239 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16240 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16241 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16242 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16243 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16244 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16245 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16246 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16247 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16248 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16249 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16250 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16251 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16252 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16253 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16254 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16255 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16256 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16257 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16258 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16259 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16260 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16261 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16262 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16263 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16264 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16265 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16266 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16267 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16268 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16269 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16270 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16271 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16272 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16273 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16274 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16275 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16276 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16277 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16278 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16279 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
16280 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
16281 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16282 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16283 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16284 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16285 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16286 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16287
16288 LTCC='$LTCC'
16289 LTCFLAGS='$LTCFLAGS'
16290 compiler='$compiler_DEFAULT'
16291
16292 # A function that is used when there is no print builtin or printf.
16293 func_fallback_echo ()
16294 {
16295 eval 'cat <<_LTECHO_EOF
16296 \$1
16297 _LTECHO_EOF'
16298 }
16299
16300 # Quote evaled strings.
16301 for var in AS \
16302 DLLTOOL \
16303 OBJDUMP \
16304 SHELL \
16305 ECHO \
16306 PATH_SEPARATOR \
16307 SED \
16308 GREP \
16309 EGREP \
16310 FGREP \
16311 LD \
16312 NM \
16313 LN_S \
16314 lt_SP2NL \
16315 lt_NL2SP \
16316 reload_flag \
16317 FILECMD \
16318 deplibs_check_method \
16319 file_magic_cmd \
16320 file_magic_glob \
16321 want_nocaseglob \
16322 sharedlib_from_linklib_cmd \
16323 AR \
16324 archiver_list_spec \
16325 STRIP \
16326 RANLIB \
16327 CC \
16328 CFLAGS \
16329 compiler \
16330 lt_cv_sys_global_symbol_pipe \
16331 lt_cv_sys_global_symbol_to_cdecl \
16332 lt_cv_sys_global_symbol_to_import \
16333 lt_cv_sys_global_symbol_to_c_name_address \
16334 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16335 lt_cv_nm_interface \
16336 nm_file_list_spec \
16337 lt_cv_truncate_bin \
16338 lt_prog_compiler_no_builtin_flag \
16339 lt_prog_compiler_pic \
16340 lt_prog_compiler_wl \
16341 lt_prog_compiler_static \
16342 lt_cv_prog_compiler_c_o \
16343 need_locks \
16344 MANIFEST_TOOL \
16345 DSYMUTIL \
16346 NMEDIT \
16347 LIPO \
16348 OTOOL \
16349 OTOOL64 \
16350 shrext_cmds \
16351 export_dynamic_flag_spec \
16352 whole_archive_flag_spec \
16353 compiler_needs_object \
16354 with_gnu_ld \
16355 allow_undefined_flag \
16356 no_undefined_flag \
16357 hardcode_libdir_flag_spec \
16358 hardcode_libdir_separator \
16359 exclude_expsyms \
16360 include_expsyms \
16361 file_list_spec \
16362 variables_saved_for_relink \
16363 libname_spec \
16364 library_names_spec \
16365 soname_spec \
16366 install_override_mode \
16367 finish_eval \
16368 old_striplib \
16369 striplib; do
16370 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16371 *[\\\\\\\`\\"\\\$]*)
16372 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16373 ;;
16374 *)
16375 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16376 ;;
16377 esac
16378 done
16379
16380 # Double-quote double-evaled strings.
16381 for var in reload_cmds \
16382 old_postinstall_cmds \
16383 old_postuninstall_cmds \
16384 old_archive_cmds \
16385 extract_expsyms_cmds \
16386 old_archive_from_new_cmds \
16387 old_archive_from_expsyms_cmds \
16388 archive_cmds \
16389 archive_expsym_cmds \
16390 module_cmds \
16391 module_expsym_cmds \
16392 export_symbols_cmds \
16393 prelink_cmds \
16394 postlink_cmds \
16395 postinstall_cmds \
16396 postuninstall_cmds \
16397 finish_cmds \
16398 sys_lib_search_path_spec \
16399 configure_time_dlsearch_path \
16400 configure_time_lt_sys_library_path; do
16401 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16402 *[\\\\\\\`\\"\\\$]*)
16403 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16404 ;;
16405 *)
16406 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16407 ;;
16408 esac
16409 done
16410
16411 ac_aux_dir='$ac_aux_dir'
16412
16413 # See if we are running on zsh, and set the options that allow our
16414 # commands through without removal of \ escapes INIT.
16415 if test -n "\${ZSH_VERSION+set}"; then
16416 setopt NO_GLOB_SUBST
16417 fi
16418
16419
16420 PACKAGE='$PACKAGE'
16421 VERSION='$VERSION'
16422 RM='$RM'
16423 ofile='$ofile'
16424
16425
16426
16427 _LTEOF
16428
16429 cat >>"$CONFIG_LT" <<\_LTEOF
16430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
16431 printf "%s\n" "$as_me: creating $ofile" >&6;}
16432
16433
16434 # See if we are running on zsh, and set the options that allow our
16435 # commands through without removal of \ escapes.
16436 if test -n "${ZSH_VERSION+set}"; then
16437 setopt NO_GLOB_SUBST
16438 fi
16439
16440 cfgfile=${ofile}T
16441 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16442 $RM "$cfgfile"
16443
16444 cat <<_LT_EOF >> "$cfgfile"
16445 #! $SHELL
16446 # Generated automatically by $as_me ($PACKAGE) $VERSION
16447 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16448
16449 # Provide generalized library-building support services.
16450 # Written by Gordon Matzigkeit, 1996
16451
16452 # Copyright (C) 2024 Free Software Foundation, Inc.
16453 # This is free software; see the source for copying conditions. There is NO
16454 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16455
16456 # GNU Libtool is free software; you can redistribute it and/or modify
16457 # it under the terms of the GNU General Public License as published by
16458 # the Free Software Foundation; either version 2 of the License, or
16459 # (at your option) any later version.
16460 #
16461 # As a special exception to the GNU General Public License, if you
16462 # distribute this file as part of a program or library that is built
16463 # using GNU Libtool, you may include this file under the same
16464 # distribution terms that you use for the rest of that program.
16465 #
16466 # GNU Libtool is distributed in the hope that it will be useful, but
16467 # WITHOUT ANY WARRANTY; without even the implied warranty of
16468 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16469 # GNU General Public License for more details.
16470 #
16471 # You should have received a copy of the GNU General Public License
16472 # along with this program. If not, see <http://www.gnu.org/licenses/>.
16473
16474
16475 # The names of the tagged configurations supported by this script.
16476 available_tags=''
16477
16478 # Configured defaults for sys_lib_dlsearch_path munging.
16479 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
16480
16481 # ### BEGIN LIBTOOL CONFIG
16482
16483 # Which release of libtool.m4 was used?
16484 macro_version=$macro_version
16485 macro_revision=$macro_revision
16486
16487 # Assembler program.
16488 AS=$lt_AS
16489
16490 # DLL creation program.
16491 DLLTOOL=$lt_DLLTOOL
16492
16493 # Object dumper program.
16494 OBJDUMP=$lt_OBJDUMP
16495
16496 # Whether or not to build shared libraries.
16497 build_libtool_libs=$enable_shared
16498
16499 # Whether or not to build static libraries.
16500 build_old_libs=$enable_static
16501
16502 # What type of objects to build.
16503 pic_mode=$pic_mode
16504
16505 # Whether or not to optimize for fast installation.
16506 fast_install=$enable_fast_install
16507
16508 # Shared archive member basename,for filename based shared library versioning on AIX.
16509 shared_archive_member_spec=$shared_archive_member_spec
16510
16511 # Shell to use when invoking shell scripts.
16512 SHELL=$lt_SHELL
16513
16514 # An echo program that protects backslashes.
16515 ECHO=$lt_ECHO
16516
16517 # The PATH separator for the build system.
16518 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16519
16520 # The host system.
16521 host_alias=$host_alias
16522 host=$host
16523 host_os=$host_os
16524
16525 # The build system.
16526 build_alias=$build_alias
16527 build=$build
16528 build_os=$build_os
16529
16530 # A sed program that does not truncate output.
16531 SED=$lt_SED
16532
16533 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16534 Xsed="\$SED -e 1s/^X//"
16535
16536 # A grep program that handles long lines.
16537 GREP=$lt_GREP
16538
16539 # An ERE matcher.
16540 EGREP=$lt_EGREP
16541
16542 # A literal string matcher.
16543 FGREP=$lt_FGREP
16544
16545 # A BSD- or MS-compatible name lister.
16546 NM=$lt_NM
16547
16548 # Whether we need soft or hard links.
16549 LN_S=$lt_LN_S
16550
16551 # What is the maximum length of a command?
16552 max_cmd_len=$max_cmd_len
16553
16554 # Object file suffix (normally "o").
16555 objext=$ac_objext
16556
16557 # Executable file suffix (normally "").
16558 exeext=$exeext
16559
16560 # whether the shell understands "unset".
16561 lt_unset=$lt_unset
16562
16563 # turn spaces into newlines.
16564 SP2NL=$lt_lt_SP2NL
16565
16566 # turn newlines into spaces.
16567 NL2SP=$lt_lt_NL2SP
16568
16569 # convert \$build file names to \$host format.
16570 to_host_file_cmd=$lt_cv_to_host_file_cmd
16571
16572 # convert \$build files to toolchain format.
16573 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16574
16575 # A file(cmd) program that detects file types.
16576 FILECMD=$lt_FILECMD
16577
16578 # Method to check whether dependent libraries are shared objects.
16579 deplibs_check_method=$lt_deplibs_check_method
16580
16581 # Command to use when deplibs_check_method = "file_magic".
16582 file_magic_cmd=$lt_file_magic_cmd
16583
16584 # How to find potential files when deplibs_check_method = "file_magic".
16585 file_magic_glob=$lt_file_magic_glob
16586
16587 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16588 want_nocaseglob=$lt_want_nocaseglob
16589
16590 # Command to associate shared and link libraries.
16591 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16592
16593 # The archiver.
16594 AR=$lt_AR
16595
16596 # Flags to create an archive (by configure).
16597 lt_ar_flags=$lt_ar_flags
16598
16599 # Flags to create an archive.
16600 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
16601
16602 # How to feed a file listing to the archiver.
16603 archiver_list_spec=$lt_archiver_list_spec
16604
16605 # A symbol stripping program.
16606 STRIP=$lt_STRIP
16607
16608 # Commands used to install an old-style archive.
16609 RANLIB=$lt_RANLIB
16610 old_postinstall_cmds=$lt_old_postinstall_cmds
16611 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16612
16613 # Whether to use a lock for old archive extraction.
16614 lock_old_archive_extraction=$lock_old_archive_extraction
16615
16616 # A C compiler.
16617 LTCC=$lt_CC
16618
16619 # LTCC compiler flags.
16620 LTCFLAGS=$lt_CFLAGS
16621
16622 # Take the output of nm and produce a listing of raw symbols and C names.
16623 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16624
16625 # Transform the output of nm in a proper C declaration.
16626 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16627
16628 # Transform the output of nm into a list of symbols to manually relocate.
16629 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
16630
16631 # Transform the output of nm in a C name address pair.
16632 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16633
16634 # Transform the output of nm in a C name address pair when lib prefix is needed.
16635 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16636
16637 # The name lister interface.
16638 nm_interface=$lt_lt_cv_nm_interface
16639
16640 # Specify filename containing input files for \$NM.
16641 nm_file_list_spec=$lt_nm_file_list_spec
16642
16643 # The root where to search for dependent libraries,and where our libraries should be installed.
16644 lt_sysroot=$lt_sysroot
16645
16646 # Command to truncate a binary pipe.
16647 lt_truncate_bin=$lt_lt_cv_truncate_bin
16648
16649 # The name of the directory that contains temporary libtool files.
16650 objdir=$objdir
16651
16652 # Used to examine libraries when file_magic_cmd begins with "file".
16653 MAGIC_CMD=$MAGIC_CMD
16654
16655 # Must we lock files when doing compilation?
16656 need_locks=$lt_need_locks
16657
16658 # Manifest tool.
16659 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16660
16661 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16662 DSYMUTIL=$lt_DSYMUTIL
16663
16664 # Tool to change global to local symbols on Mac OS X.
16665 NMEDIT=$lt_NMEDIT
16666
16667 # Tool to manipulate fat objects and archives on Mac OS X.
16668 LIPO=$lt_LIPO
16669
16670 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16671 OTOOL=$lt_OTOOL
16672
16673 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16674 OTOOL64=$lt_OTOOL64
16675
16676 # Old archive suffix (normally "a").
16677 libext=$libext
16678
16679 # Shared library suffix (normally ".so").
16680 shrext_cmds=$lt_shrext_cmds
16681
16682 # The commands to extract the exported symbol list from a shared archive.
16683 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16684
16685 # Variables whose values should be saved in libtool wrapper scripts and
16686 # restored at link time.
16687 variables_saved_for_relink=$lt_variables_saved_for_relink
16688
16689 # Do we need the "lib" prefix for modules?
16690 need_lib_prefix=$need_lib_prefix
16691
16692 # Do we need a version for libraries?
16693 need_version=$need_version
16694
16695 # Library versioning type.
16696 version_type=$version_type
16697
16698 # Shared library runtime path variable.
16699 runpath_var=$runpath_var
16700
16701 # Shared library path variable.
16702 shlibpath_var=$shlibpath_var
16703
16704 # Is shlibpath searched before the hard-coded library search path?
16705 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16706
16707 # Format of library name prefix.
16708 libname_spec=$lt_libname_spec
16709
16710 # List of archive names. First name is the real one, the rest are links.
16711 # The last name is the one that the linker finds with -lNAME
16712 library_names_spec=$lt_library_names_spec
16713
16714 # The coded name of the library, if different from the real name.
16715 soname_spec=$lt_soname_spec
16716
16717 # Permission mode override for installation of shared libraries.
16718 install_override_mode=$lt_install_override_mode
16719
16720 # Command to use after installation of a shared archive.
16721 postinstall_cmds=$lt_postinstall_cmds
16722
16723 # Command to use after uninstallation of a shared archive.
16724 postuninstall_cmds=$lt_postuninstall_cmds
16725
16726 # Commands used to finish a libtool library installation in a directory.
16727 finish_cmds=$lt_finish_cmds
16728
16729 # As "finish_cmds", except a single script fragment to be evaled but
16730 # not shown.
16731 finish_eval=$lt_finish_eval
16732
16733 # Whether we should hardcode library paths into libraries.
16734 hardcode_into_libs=$hardcode_into_libs
16735
16736 # Compile-time system search path for libraries.
16737 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16738
16739 # Detected run-time system search path for libraries.
16740 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
16741
16742 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
16743 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
16744
16745 # Whether dlopen is supported.
16746 dlopen_support=$enable_dlopen
16747
16748 # Whether dlopen of programs is supported.
16749 dlopen_self=$enable_dlopen_self
16750
16751 # Whether dlopen of statically linked programs is supported.
16752 dlopen_self_static=$enable_dlopen_self_static
16753
16754 # Commands to strip libraries.
16755 old_striplib=$lt_old_striplib
16756 striplib=$lt_striplib
16757
16758
16759 # The linker used to build libraries.
16760 LD=$lt_LD
16761
16762 # How to create reloadable object files.
16763 reload_flag=$lt_reload_flag
16764 reload_cmds=$lt_reload_cmds
16765
16766 # Commands used to build an old-style archive.
16767 old_archive_cmds=$lt_old_archive_cmds
16768
16769 # A language specific compiler.
16770 CC=$lt_compiler
16771
16772 # Is the compiler the GNU compiler?
16773 with_gcc=$GCC
16774
16775 # Compiler flag to turn off builtin functions.
16776 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16777
16778 # Additional compiler flags for building library objects.
16779 pic_flag=$lt_lt_prog_compiler_pic
16780
16781 # How to pass a linker flag through the compiler.
16782 wl=$lt_lt_prog_compiler_wl
16783
16784 # Compiler flag to prevent dynamic linking.
16785 link_static_flag=$lt_lt_prog_compiler_static
16786
16787 # Does compiler simultaneously support -c and -o options?
16788 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16789
16790 # Whether or not to add -lc for building shared libraries.
16791 build_libtool_need_lc=$archive_cmds_need_lc
16792
16793 # Whether or not to disallow shared libs when runtime libs are static.
16794 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16795
16796 # Compiler flag to allow reflexive dlopens.
16797 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16798
16799 # Compiler flag to generate shared objects directly from archives.
16800 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16801
16802 # Whether the compiler copes with passing no objects directly.
16803 compiler_needs_object=$lt_compiler_needs_object
16804
16805 # Create an old-style archive from a shared archive.
16806 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16807
16808 # Create a temporary old-style archive to link instead of a shared archive.
16809 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16810
16811 # Commands used to build a shared archive.
16812 archive_cmds=$lt_archive_cmds
16813 archive_expsym_cmds=$lt_archive_expsym_cmds
16814
16815 # Commands used to build a loadable module if different from building
16816 # a shared archive.
16817 module_cmds=$lt_module_cmds
16818 module_expsym_cmds=$lt_module_expsym_cmds
16819
16820 # Whether we are building with GNU ld or not.
16821 with_gnu_ld=$lt_with_gnu_ld
16822
16823 # Flag that allows shared libraries with undefined symbols to be built.
16824 allow_undefined_flag=$lt_allow_undefined_flag
16825
16826 # Flag that enforces no undefined symbols.
16827 no_undefined_flag=$lt_no_undefined_flag
16828
16829 # Flag to hardcode \$libdir into a binary during linking.
16830 # This must work even if \$libdir does not exist
16831 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16832
16833 # Whether we need a single "-rpath" flag with a separated argument.
16834 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16835
16836 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16837 # DIR into the resulting binary.
16838 hardcode_direct=$hardcode_direct
16839
16840 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16841 # DIR into the resulting binary and the resulting library dependency is
16842 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
16843 # library is relocated.
16844 hardcode_direct_absolute=$hardcode_direct_absolute
16845
16846 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16847 # into the resulting binary.
16848 hardcode_minus_L=$hardcode_minus_L
16849
16850 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16851 # into the resulting binary.
16852 hardcode_shlibpath_var=$hardcode_shlibpath_var
16853
16854 # Set to "yes" if building a shared library automatically hardcodes DIR
16855 # into the library and all subsequent libraries and executables linked
16856 # against it.
16857 hardcode_automatic=$hardcode_automatic
16858
16859 # Set to yes if linker adds runtime paths of dependent libraries
16860 # to runtime path list.
16861 inherit_rpath=$inherit_rpath
16862
16863 # Whether libtool must link a program against all its dependency libraries.
16864 link_all_deplibs=$link_all_deplibs
16865
16866 # Set to "yes" if exported symbols are required.
16867 always_export_symbols=$always_export_symbols
16868
16869 # The commands to list exported symbols.
16870 export_symbols_cmds=$lt_export_symbols_cmds
16871
16872 # Symbols that should not be listed in the preloaded symbols.
16873 exclude_expsyms=$lt_exclude_expsyms
16874
16875 # Symbols that must always be exported.
16876 include_expsyms=$lt_include_expsyms
16877
16878 # Commands necessary for linking programs (against libraries) with templates.
16879 prelink_cmds=$lt_prelink_cmds
16880
16881 # Commands necessary for finishing linking programs.
16882 postlink_cmds=$lt_postlink_cmds
16883
16884 # Specify filename containing input files.
16885 file_list_spec=$lt_file_list_spec
16886
16887 # How to hardcode a shared library path into an executable.
16888 hardcode_action=$hardcode_action
16889
16890 # ### END LIBTOOL CONFIG
16891
16892 _LT_EOF
16893
16894 cat <<'_LT_EOF' >> "$cfgfile"
16895
16896 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
16897
16898 # func_munge_path_list VARIABLE PATH
16899 # -----------------------------------
16900 # VARIABLE is name of variable containing _space_ separated list of
16901 # directories to be munged by the contents of PATH, which is string
16902 # having a format:
16903 # "DIR[:DIR]:"
16904 # string "DIR[ DIR]" will be prepended to VARIABLE
16905 # ":DIR[:DIR]"
16906 # string "DIR[ DIR]" will be appended to VARIABLE
16907 # "DIRP[:DIRP]::[DIRA:]DIRA"
16908 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
16909 # "DIRA[ DIRA]" will be appended to VARIABLE
16910 # "DIR[:DIR]"
16911 # VARIABLE will be replaced by "DIR[ DIR]"
16912 func_munge_path_list ()
16913 {
16914 case x$2 in
16915 x)
16916 ;;
16917 *:)
16918 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
16919 ;;
16920 x:*)
16921 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
16922 ;;
16923 *::*)
16924 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
16925 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
16926 ;;
16927 *)
16928 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
16929 ;;
16930 esac
16931 }
16932
16933
16934 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
16935 func_cc_basename ()
16936 {
16937 for cc_temp in $*""; do
16938 case $cc_temp in
16939 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16940 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16941 \-*) ;;
16942 *) break;;
16943 esac
16944 done
16945 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16946 }
16947
16948
16949 # ### END FUNCTIONS SHARED WITH CONFIGURE
16950
16951 _LT_EOF
16952
16953 case $host_os in
16954 aix3*)
16955 cat <<\_LT_EOF >> "$cfgfile"
16956 # AIX sometimes has problems with the GCC collect2 program. For some
16957 # reason, if we set the COLLECT_NAMES environment variable, the problems
16958 # vanish in a puff of smoke.
16959 if test set != "${COLLECT_NAMES+set}"; then
16960 COLLECT_NAMES=
16961 export COLLECT_NAMES
16962 fi
16963 _LT_EOF
16964 ;;
16965 esac
16966
16967
16968
16969 ltmain=$ac_aux_dir/ltmain.sh
16970
16971
16972 # We use sed instead of cat because bash on DJGPP gets confused if
16973 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16974 # text mode, it properly converts lines to CR/LF. This bash problem
16975 # is reportedly fixed, but why not run on old versions too?
16976 $SED '$q' "$ltmain" >> "$cfgfile" \
16977 || (rm -f "$cfgfile"; exit 1)
16978
16979 mv -f "$cfgfile" "$ofile" ||
16980 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16981 chmod +x "$ofile"
16982
16983
16984 as_fn_exit 0
16985 _LTEOF
16986 chmod +x "$CONFIG_LT"
16987
16988 # configure is writing to config.log, but config.lt does its own redirection,
16989 # appending to config.log, which fails on DOS, as config.log is still kept
16990 # open by configure. Here we exec the FD to /dev/null, effectively closing
16991 # config.log, so it can be properly (re)opened and appended to by config.lt.
16992 lt_cl_success=:
16993 test yes = "$silent" &&
16994 lt_config_lt_args="$lt_config_lt_args --quiet"
16995 exec 5>/dev/null
16996 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
16997 exec 5>>config.log
16998 $lt_cl_success || as_fn_exit 1
16999
17000 #
17001 #
17002 ac_ext=c
17003 ac_cpp='$CPP $CPPFLAGS'
17004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17007 ac_link="./libtool --mode=link --tag=CC $ac_link"
17008
17009 if test -n "$ac_tool_prefix"; then
17010 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
17011 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
17012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17013 printf %s "checking for $ac_word... " >&6; }
17014 if test ${ac_cv_prog_PKG_CONFIG+y}
17015 then :
17016 printf %s "(cached) " >&6
17017 else case e in #(
17018 e) if test -n "$PKG_CONFIG"; then
17019 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
17020 else
17021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17022 for as_dir in $PATH
17023 do
17024 IFS=$as_save_IFS
17025 case $as_dir in #(((
17026 '') as_dir=./ ;;
17027 */) ;;
17028 *) as_dir=$as_dir/ ;;
17029 esac
17030 for ac_exec_ext in '' $ac_executable_extensions; do
17031 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17032 ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
17033 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17034 break 2
17035 fi
17036 done
17037 done
17038 IFS=$as_save_IFS
17039
17040 fi ;;
17041 esac
17042 fi
17043 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
17044 if test -n "$PKG_CONFIG"; then
17045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
17046 printf "%s\n" "$PKG_CONFIG" >&6; }
17047 else
17048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17049 printf "%s\n" "no" >&6; }
17050 fi
17051
17052
17053 fi
17054 if test -z "$ac_cv_prog_PKG_CONFIG"; then
17055 ac_ct_PKG_CONFIG=$PKG_CONFIG
17056 # Extract the first word of "pkg-config", so it can be a program name with args.
17057 set dummy pkg-config; ac_word=$2
17058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17059 printf %s "checking for $ac_word... " >&6; }
17060 if test ${ac_cv_prog_ac_ct_PKG_CONFIG+y}
17061 then :
17062 printf %s "(cached) " >&6
17063 else case e in #(
17064 e) if test -n "$ac_ct_PKG_CONFIG"; then
17065 ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
17066 else
17067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17068 for as_dir in $PATH
17069 do
17070 IFS=$as_save_IFS
17071 case $as_dir in #(((
17072 '') as_dir=./ ;;
17073 */) ;;
17074 *) as_dir=$as_dir/ ;;
17075 esac
17076 for ac_exec_ext in '' $ac_executable_extensions; do
17077 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17078 ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
17079 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17080 break 2
17081 fi
17082 done
17083 done
17084 IFS=$as_save_IFS
17085
17086 fi ;;
17087 esac
17088 fi
17089 ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
17090 if test -n "$ac_ct_PKG_CONFIG"; then
17091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PKG_CONFIG" >&5
17092 printf "%s\n" "$ac_ct_PKG_CONFIG" >&6; }
17093 else
17094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17095 printf "%s\n" "no" >&6; }
17096 fi
17097
17098 if test "x$ac_ct_PKG_CONFIG" = x; then
17099 PKG_CONFIG="false"
17100 else
17101 case $cross_compiling:$ac_tool_warned in
17102 yes:)
17103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17104 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17105 ac_tool_warned=yes ;;
17106 esac
17107 PKG_CONFIG=$ac_ct_PKG_CONFIG
17108 fi
17109 else
17110 PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
17111 fi
17112
17113 ##tldbg _KPSE_LIB_FLAGS: Setup kpathsea (-lkpathsea) flags.
17114 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
17115 ##tldbg _KPSE_LIB_FLAGS_TL: kpathsea (kpathsea) lt.
17116
17117 # Check whether --with-system-kpathsea was given.
17118 if test ${with_system_kpathsea+y}
17119 then :
17120 withval=$with_system_kpathsea;
17121 fi
17122 if test "x$with_system_kpathsea" = xyes; then
17123 if $PKG_CONFIG kpathsea; then
17124 KPATHSEA_INCLUDES=`$PKG_CONFIG kpathsea --cflags`
17125 KPATHSEA_LIBS=`$PKG_CONFIG kpathsea --libs`
17126 elif test "x$need_kpathsea:$with_system_kpathsea" = xyes:yes; then
17127 as_fn_error $? "did not find kpathsea" "$LINENO" 5
17128 fi
17129 else
17130 KPATHSEA_INCLUDES="-I$kpse_BLD/texk -I$kpse_SRC/texk"
17131 KPATHSEA_LIBS="$kpse_BLD/texk/kpathsea/libkpathsea.la"
17132 KPATHSEA_DEPEND='${top_builddir}/../kpathsea/libkpathsea.la'
17133 KPATHSEA_RULE='# Rebuild libkpathsea
17134 $(KPATHSEA_DEPEND): ${top_srcdir}/../kpathsea/*.[ch] ${top_builddir}/../kpathsea/paths.h
17135 cd ${top_builddir}/../kpathsea && $(MAKE) $(AM_MAKEFLAGS) rebuild
17136 ${top_builddir}/../kpathsea/paths.h:
17137 cd ${top_builddir}/../kpathsea && $(MAKE) $(AM_MAKEFLAGS) rebuild'
17138 fi
17139
17140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libkpathsea supports debugging" >&5
17141 printf %s "checking if libkpathsea supports debugging... " >&6; }
17142 if test ${kpse_cv_kpse_debug+y}
17143 then :
17144 printf %s "(cached) " >&6
17145 else case e in #(
17146 e) eval CPPFLAGS=\"$KPATHSEA_INCLUDES \$CPPFLAGS\"
17147 eval LIBS=\"$KPATHSEA_LIBS \$LIBS\"
17148
17149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17150 /* end confdefs.h. */
17151 #include <kpathsea/kpathsea.h>
17152 int
17153 main (void)
17154 {
17155 FILE *f = fopen("f", "r")
17156 ;
17157 return 0;
17158 }
17159 _ACEOF
17160 if ac_fn_c_try_link "$LINENO"
17161 then :
17162 kpse_cv_kpse_debug=yes
17163 else case e in #(
17164 e) kpse_cv_kpse_debug=no ;;
17165 esac
17166 fi
17167 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17168 conftest$ac_exeext conftest.$ac_ext
17169 CPPFLAGS=$kpse_save_CPPFLAGS
17170 LIBS=$kpse_save_LIBS
17171 ;;
17172 esac
17173 fi
17174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_kpse_debug" >&5
17175 printf "%s\n" "$kpse_cv_kpse_debug" >&6; }
17176 if test "x$kpse_cv_kpse_debug" != xyes
17177 then :
17178 KPATHSEA_INCLUDES="$KPATHSEA_INCLUDES -DNO_DEBUG"
17179 fi
17180
17181 ##tldbg _KPSE_LIB_FLAGS: Setup ptexenc (-lptexenc) flags.
17182 echo 'tldbg:_KPSE_LIB_FLAGS called: libdir=ptexenc, libname=ptexenc, options=lt, tlincl=-IBLD/texk/ptexenc -ISRC/texk/ptexenc, tllib=BLD/texk/ptexenc/libptexenc.la, tlextra=, rebuildsrcdeps=${top_srcdir}/../ptexenc/*.c ${top_srcdir}/../ptexenc/ptexenc/*.h, rebuildblddeps=.' >&5
17183 ##tldbg _KPSE_LIB_FLAGS_TL: ptexenc (ptexenc) lt.
17184
17185 # Check whether --with-system-ptexenc was given.
17186 if test ${with_system_ptexenc+y}
17187 then :
17188 withval=$with_system_ptexenc;
17189 fi
17190 if test "x$with_system_ptexenc" = xyes; then
17191 if $PKG_CONFIG ptexenc; then
17192 PTEXENC_INCLUDES=`$PKG_CONFIG ptexenc --cflags`
17193 PTEXENC_LIBS=`$PKG_CONFIG ptexenc --libs`
17194 elif test "x$need_ptexenc:$with_system_ptexenc" = xyes:yes; then
17195 as_fn_error $? "did not find ptexenc" "$LINENO" 5
17196 fi
17197 else
17198 PTEXENC_INCLUDES="-I$kpse_BLD/texk/ptexenc -I$kpse_SRC/texk/ptexenc"
17199 PTEXENC_LIBS="$kpse_BLD/texk/ptexenc/libptexenc.la"
17200 PTEXENC_DEPEND='${top_builddir}/../ptexenc/libptexenc.la'
17201 PTEXENC_RULE='# Rebuild libptexenc
17202 $(PTEXENC_DEPEND): ${top_srcdir}/../ptexenc/*.c ${top_srcdir}/../ptexenc/ptexenc/*.h
17203 cd ${top_builddir}/../ptexenc && $(MAKE) $(AM_MAKEFLAGS) rebuild'
17204 fi
17205
17206
17207 ac_config_files="$ac_config_files Makefile"
17208
17209
17210 cat >confcache <<\_ACEOF
17211 # This file is a shell script that caches the results of configure
17212 # tests run on this system so they can be shared between configure
17213 # scripts and configure runs, see configure's option --config-cache.
17214 # It is not useful on other systems. If it contains results you don't
17215 # want to keep, you may remove or edit it.
17216 #
17217 # config.status only pays attention to the cache file if you give it
17218 # the --recheck option to rerun configure.
17219 #
17220 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
17221 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
17222 # following values.
17223
17224 _ACEOF
17225
17226 # The following way of writing the cache mishandles newlines in values,
17227 # but we know of no workaround that is simple, portable, and efficient.
17228 # So, we kill variables containing newlines.
17229 # Ultrix sh set writes to stderr and can't be redirected directly,
17230 # and sets the high bit in the cache file unless we assign to the vars.
17231 (
17232 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17233 eval ac_val=\$$ac_var
17234 case $ac_val in #(
17235 *${as_nl}*)
17236 case $ac_var in #(
17237 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17238 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17239 esac
17240 case $ac_var in #(
17241 _ | IFS | as_nl) ;; #(
17242 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17243 *) { eval $ac_var=; unset $ac_var;} ;;
17244 esac ;;
17245 esac
17246 done
17247
17248 (set) 2>&1 |
17249 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17250 *${as_nl}ac_space=\ *)
17251 # 'set' does not quote correctly, so add quotes: double-quote
17252 # substitution turns \\\\ into \\, and sed turns \\ into \.
17253 sed -n \
17254 "s/'/'\\\\''/g;
17255 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17256 ;; #(
17257 *)
17258 # 'set' quotes correctly as required by POSIX, so do not add quotes.
17259 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17260 ;;
17261 esac |
17262 sort
17263 ) |
17264 sed '
17265 /^ac_cv_env_/b end
17266 t clear
17267 :clear
17268 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
17269 t end
17270 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17271 :end' >>confcache
17272 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17273 if test -w "$cache_file"; then
17274 if test "x$cache_file" != "x/dev/null"; then
17275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17276 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
17277 if test ! -f "$cache_file" || test -h "$cache_file"; then
17278 cat confcache >"$cache_file"
17279 else
17280 case $cache_file in #(
17281 */* | ?:*)
17282 mv -f confcache "$cache_file"$$ &&
17283 mv -f "$cache_file"$$ "$cache_file" ;; #(
17284 *)
17285 mv -f confcache "$cache_file" ;;
17286 esac
17287 fi
17288 fi
17289 else
17290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17291 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
17292 fi
17293 fi
17294 rm -f confcache
17295
17296 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17297 # Let make expand exec_prefix.
17298 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17299
17300 DEFS=-DHAVE_CONFIG_H
17301
17302 ac_libobjs=
17303 ac_ltlibobjs=
17304 U=
17305 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17306 # 1. Remove the extension, and $U if already installed.
17307 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17308 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
17309 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17310 # will be set to the directory where LIBOBJS objects are built.
17311 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17312 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17313 done
17314 LIBOBJS=$ac_libobjs
17315
17316 LTLIBOBJS=$ac_ltlibobjs
17317
17318
17319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17320 printf %s "checking that generated files are newer than configure... " >&6; }
17321 if test -n "$am_sleep_pid"; then
17322 # Hide warnings about reused PIDs.
17323 wait $am_sleep_pid 2>/dev/null
17324 fi
17325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
17326 printf "%s\n" "done" >&6; }
17327 case $enable_silent_rules in # (((
17328 yes) AM_DEFAULT_VERBOSITY=0;;
17329 no) AM_DEFAULT_VERBOSITY=1;;
17330 esac
17331 if test $am_cv_make_support_nested_variables = yes; then
17332 AM_V='$(V)'
17333 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
17334 else
17335 AM_V=$AM_DEFAULT_VERBOSITY
17336 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
17337 fi
17338
17339 if test -n "$EXEEXT"; then
17340 am__EXEEXT_TRUE=
17341 am__EXEEXT_FALSE='#'
17342 else
17343 am__EXEEXT_TRUE='#'
17344 am__EXEEXT_FALSE=
17345 fi
17346
17347 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17348 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17349 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17350 fi
17351 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17352 as_fn_error $? "conditional \"AMDEP\" was never defined.
17353 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17354 fi
17355 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17356 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17357 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17358 fi
17359 # Check whether --enable-year2038 was given.
17360 if test ${enable_year2038+y}
17361 then :
17362 enableval=$enable_year2038;
17363 fi
17364
17365
17366 : "${CONFIG_STATUS=./config.status}"
17367 ac_write_fail=0
17368 ac_clean_files_save=$ac_clean_files
17369 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17371 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
17372 as_write_fail=0
17373 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17374 #! $SHELL
17375 # Generated by $as_me.
17376 # Run this file to recreate the current configuration.
17377 # Compiler output produced by configure, useful for debugging
17378 # configure, is in config.log if it exists.
17379
17380 debug=false
17381 ac_cs_recheck=false
17382 ac_cs_silent=false
17383
17384 SHELL=\${CONFIG_SHELL-$SHELL}
17385 export SHELL
17386 _ASEOF
17387 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17388 ## -------------------- ##
17389 ## M4sh Initialization. ##
17390 ## -------------------- ##
17391
17392 # Be more Bourne compatible
17393 DUALCASE=1; export DUALCASE # for MKS sh
17394 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
17395 then :
17396 emulate sh
17397 NULLCMD=:
17398 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17399 # is contrary to our usage. Disable this feature.
17400 alias -g '${1+"$@"}'='"$@"'
17401 setopt NO_GLOB_SUBST
17402 else case e in #(
17403 e) case `(set -o) 2>/dev/null` in #(
17404 *posix*) :
17405 set -o posix ;; #(
17406 *) :
17407 ;;
17408 esac ;;
17409 esac
17410 fi
17411
17412
17413
17414 # Reset variables that may have inherited troublesome values from
17415 # the environment.
17416
17417 # IFS needs to be set, to space, tab, and newline, in precisely that order.
17418 # (If _AS_PATH_WALK were called with IFS unset, it would have the
17419 # side effect of setting IFS to empty, thus disabling word splitting.)
17420 # Quoting is to prevent editors from complaining about space-tab.
17421 as_nl='
17422 '
17423 export as_nl
17424 IFS=" "" $as_nl"
17425
17426 PS1='$ '
17427 PS2='> '
17428 PS4='+ '
17429
17430 # Ensure predictable behavior from utilities with locale-dependent output.
17431 LC_ALL=C
17432 export LC_ALL
17433 LANGUAGE=C
17434 export LANGUAGE
17435
17436 # We cannot yet rely on "unset" to work, but we need these variables
17437 # to be unset--not just set to an empty or harmless value--now, to
17438 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
17439 # also avoids known problems related to "unset" and subshell syntax
17440 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
17441 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
17442 do eval test \${$as_var+y} \
17443 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17444 done
17445
17446 # Ensure that fds 0, 1, and 2 are open.
17447 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
17448 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
17449 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
17450
17451 # The user is always right.
17452 if ${PATH_SEPARATOR+false} :; then
17453 PATH_SEPARATOR=:
17454 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17455 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17456 PATH_SEPARATOR=';'
17457 }
17458 fi
17459
17460
17461 # Find who we are. Look in the path if we contain no directory separator.
17462 as_myself=
17463 case $0 in #((
17464 *[\\/]* ) as_myself=$0 ;;
17465 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17466 for as_dir in $PATH
17467 do
17468 IFS=$as_save_IFS
17469 case $as_dir in #(((
17470 '') as_dir=./ ;;
17471 */) ;;
17472 *) as_dir=$as_dir/ ;;
17473 esac
17474 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
17475 done
17476 IFS=$as_save_IFS
17477
17478 ;;
17479 esac
17480 # We did not find ourselves, most probably we were run as 'sh COMMAND'
17481 # in which case we are not to be found in the path.
17482 if test "x$as_myself" = x; then
17483 as_myself=$0
17484 fi
17485 if test ! -f "$as_myself"; then
17486 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17487 exit 1
17488 fi
17489
17490
17491
17492 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17493 # ----------------------------------------
17494 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17495 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17496 # script with STATUS, using 1 if that was 0.
17497 as_fn_error ()
17498 {
17499 as_status=$1; test $as_status -eq 0 && as_status=1
17500 if test "$4"; then
17501 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17502 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17503 fi
17504 printf "%s\n" "$as_me: error: $2" >&2
17505 as_fn_exit $as_status
17506 } # as_fn_error
17507
17508
17509 # as_fn_set_status STATUS
17510 # -----------------------
17511 # Set $? to STATUS, without forking.
17512 as_fn_set_status ()
17513 {
17514 return $1
17515 } # as_fn_set_status
17516
17517 # as_fn_exit STATUS
17518 # -----------------
17519 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17520 as_fn_exit ()
17521 {
17522 set +e
17523 as_fn_set_status $1
17524 exit $1
17525 } # as_fn_exit
17526
17527 # as_fn_unset VAR
17528 # ---------------
17529 # Portably unset VAR.
17530 as_fn_unset ()
17531 {
17532 { eval $1=; unset $1;}
17533 }
17534 as_unset=as_fn_unset
17535
17536 # as_fn_append VAR VALUE
17537 # ----------------------
17538 # Append the text in VALUE to the end of the definition contained in VAR. Take
17539 # advantage of any shell optimizations that allow amortized linear growth over
17540 # repeated appends, instead of the typical quadratic growth present in naive
17541 # implementations.
17542 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
17543 then :
17544 eval 'as_fn_append ()
17545 {
17546 eval $1+=\$2
17547 }'
17548 else case e in #(
17549 e) as_fn_append ()
17550 {
17551 eval $1=\$$1\$2
17552 } ;;
17553 esac
17554 fi # as_fn_append
17555
17556 # as_fn_arith ARG...
17557 # ------------------
17558 # Perform arithmetic evaluation on the ARGs, and store the result in the
17559 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17560 # must be portable across $(()) and expr.
17561 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
17562 then :
17563 eval 'as_fn_arith ()
17564 {
17565 as_val=$(( $* ))
17566 }'
17567 else case e in #(
17568 e) as_fn_arith ()
17569 {
17570 as_val=`expr "$@" || test $? -eq 1`
17571 } ;;
17572 esac
17573 fi # as_fn_arith
17574
17575
17576 if expr a : '\(a\)' >/dev/null 2>&1 &&
17577 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17578 as_expr=expr
17579 else
17580 as_expr=false
17581 fi
17582
17583 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17584 as_basename=basename
17585 else
17586 as_basename=false
17587 fi
17588
17589 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17590 as_dirname=dirname
17591 else
17592 as_dirname=false
17593 fi
17594
17595 as_me=`$as_basename -- "$0" ||
17596 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17597 X"$0" : 'X\(//\)$' \| \
17598 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17599 printf "%s\n" X/"$0" |
17600 sed '/^.*\/\([^/][^/]*\)\/*$/{
17601 s//\1/
17602 q
17603 }
17604 /^X\/\(\/\/\)$/{
17605 s//\1/
17606 q
17607 }
17608 /^X\/\(\/\).*/{
17609 s//\1/
17610 q
17611 }
17612 s/.*/./; q'`
17613
17614 # Avoid depending upon Character Ranges.
17615 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17616 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17617 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17618 as_cr_digits='0123456789'
17619 as_cr_alnum=$as_cr_Letters$as_cr_digits
17620
17621
17622 # Determine whether it's possible to make 'echo' print without a newline.
17623 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
17624 # for compatibility with existing Makefiles.
17625 ECHO_C= ECHO_N= ECHO_T=
17626 case `echo -n x` in #(((((
17627 -n*)
17628 case `echo 'xy\c'` in
17629 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17630 xy) ECHO_C='\c';;
17631 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17632 ECHO_T=' ';;
17633 esac;;
17634 *)
17635 ECHO_N='-n';;
17636 esac
17637
17638 # For backward compatibility with old third-party macros, we provide
17639 # the shell variables $as_echo and $as_echo_n. New code should use
17640 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
17641 as_echo='printf %s\n'
17642 as_echo_n='printf %s'
17643
17644 rm -f conf$$ conf$$.exe conf$$.file
17645 if test -d conf$$.dir; then
17646 rm -f conf$$.dir/conf$$.file
17647 else
17648 rm -f conf$$.dir
17649 mkdir conf$$.dir 2>/dev/null
17650 fi
17651 if (echo >conf$$.file) 2>/dev/null; then
17652 if ln -s conf$$.file conf$$ 2>/dev/null; then
17653 as_ln_s='ln -s'
17654 # ... but there are two gotchas:
17655 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
17656 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
17657 # In both cases, we have to default to 'cp -pR'.
17658 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17659 as_ln_s='cp -pR'
17660 elif ln conf$$.file conf$$ 2>/dev/null; then
17661 as_ln_s=ln
17662 else
17663 as_ln_s='cp -pR'
17664 fi
17665 else
17666 as_ln_s='cp -pR'
17667 fi
17668 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17669 rmdir conf$$.dir 2>/dev/null
17670
17671
17672 # as_fn_mkdir_p
17673 # -------------
17674 # Create "$as_dir" as a directory, including parents if necessary.
17675 as_fn_mkdir_p ()
17676 {
17677
17678 case $as_dir in #(
17679 -*) as_dir=./$as_dir;;
17680 esac
17681 test -d "$as_dir" || eval $as_mkdir_p || {
17682 as_dirs=
17683 while :; do
17684 case $as_dir in #(
17685 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17686 *) as_qdir=$as_dir;;
17687 esac
17688 as_dirs="'$as_qdir' $as_dirs"
17689 as_dir=`$as_dirname -- "$as_dir" ||
17690 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17691 X"$as_dir" : 'X\(//\)[^/]' \| \
17692 X"$as_dir" : 'X\(//\)$' \| \
17693 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17694 printf "%s\n" X"$as_dir" |
17695 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17696 s//\1/
17697 q
17698 }
17699 /^X\(\/\/\)[^/].*/{
17700 s//\1/
17701 q
17702 }
17703 /^X\(\/\/\)$/{
17704 s//\1/
17705 q
17706 }
17707 /^X\(\/\).*/{
17708 s//\1/
17709 q
17710 }
17711 s/.*/./; q'`
17712 test -d "$as_dir" && break
17713 done
17714 test -z "$as_dirs" || eval "mkdir $as_dirs"
17715 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17716
17717
17718 } # as_fn_mkdir_p
17719 if mkdir -p . 2>/dev/null; then
17720 as_mkdir_p='mkdir -p "$as_dir"'
17721 else
17722 test -d ./-p && rmdir ./-p
17723 as_mkdir_p=false
17724 fi
17725
17726
17727 # as_fn_executable_p FILE
17728 # -----------------------
17729 # Test if FILE is an executable regular file.
17730 as_fn_executable_p ()
17731 {
17732 test -f "$1" && test -x "$1"
17733 } # as_fn_executable_p
17734 as_test_x='test -x'
17735 as_executable_p=as_fn_executable_p
17736
17737 # Sed expression to map a string onto a valid CPP name.
17738 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
17739 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
17740
17741 # Sed expression to map a string onto a valid variable name.
17742 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
17743 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
17744
17745
17746 exec 6>&1
17747 ## ----------------------------------- ##
17748 ## Main body of $CONFIG_STATUS script. ##
17749 ## ----------------------------------- ##
17750 _ASEOF
17751 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17752
17753 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17754 # Save the log message, to keep $0 and so on meaningful, and to
17755 # report actual input values of CONFIG_FILES etc. instead of their
17756 # values after options handling.
17757 ac_log="
17758 This file was extended by mendex (TeX Live) $as_me 3.10, which was
17759 generated by GNU Autoconf 2.72. Invocation command line was
17760
17761 CONFIG_FILES = $CONFIG_FILES
17762 CONFIG_HEADERS = $CONFIG_HEADERS
17763 CONFIG_LINKS = $CONFIG_LINKS
17764 CONFIG_COMMANDS = $CONFIG_COMMANDS
17765 $ $0 $@
17766
17767 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17768 "
17769
17770 _ACEOF
17771
17772 case $ac_config_files in *"
17773 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17774 esac
17775
17776 case $ac_config_headers in *"
17777 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17778 esac
17779
17780
17781 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17782 # Files that config.status was made for.
17783 config_files="$ac_config_files"
17784 config_headers="$ac_config_headers"
17785 config_commands="$ac_config_commands"
17786
17787 _ACEOF
17788
17789 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17790 ac_cs_usage="\
17791 '$as_me' instantiates files and other configuration actions
17792 from templates according to the current configuration. Unless the files
17793 and actions are specified as TAGs, all are instantiated by default.
17794
17795 Usage: $0 [OPTION]... [TAG]...
17796
17797 -h, --help print this help, then exit
17798 -V, --version print version number and configuration settings, then exit
17799 --config print configuration, then exit
17800 -q, --quiet, --silent
17801 do not print progress messages
17802 -d, --debug don't remove temporary files
17803 --recheck update $as_me by reconfiguring in the same conditions
17804 --file=FILE[:TEMPLATE]
17805 instantiate the configuration file FILE
17806 --header=FILE[:TEMPLATE]
17807 instantiate the configuration header FILE
17808
17809 Configuration files:
17810 $config_files
17811
17812 Configuration headers:
17813 $config_headers
17814
17815 Configuration commands:
17816 $config_commands
17817
17818 Report bugs to the package provider."
17819
17820 _ACEOF
17821 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
17822 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
17823 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17824 ac_cs_config='$ac_cs_config_escaped'
17825 ac_cs_version="\\
17826 mendex (TeX Live) config.status 3.10
17827 configured by $0, generated by GNU Autoconf 2.72,
17828 with options \\"\$ac_cs_config\\"
17829
17830 Copyright (C) 2023 Free Software Foundation, Inc.
17831 This config.status script is free software; the Free Software Foundation
17832 gives unlimited permission to copy, distribute and modify it."
17833
17834 ac_pwd='$ac_pwd'
17835 srcdir='$srcdir'
17836 INSTALL='$INSTALL'
17837 MKDIR_P='$MKDIR_P'
17838 AWK='$AWK'
17839 test -n "\$AWK" || AWK=awk
17840 _ACEOF
17841
17842 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17843 # The default lists apply if the user does not specify any file.
17844 ac_need_defaults=:
17845 while test $# != 0
17846 do
17847 case $1 in
17848 --*=?*)
17849 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17850 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17851 ac_shift=:
17852 ;;
17853 --*=)
17854 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17855 ac_optarg=
17856 ac_shift=:
17857 ;;
17858 *)
17859 ac_option=$1
17860 ac_optarg=$2
17861 ac_shift=shift
17862 ;;
17863 esac
17864
17865 case $ac_option in
17866 # Handling of the options.
17867 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17868 ac_cs_recheck=: ;;
17869 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17870 printf "%s\n" "$ac_cs_version"; exit ;;
17871 --config | --confi | --conf | --con | --co | --c )
17872 printf "%s\n" "$ac_cs_config"; exit ;;
17873 --debug | --debu | --deb | --de | --d | -d )
17874 debug=: ;;
17875 --file | --fil | --fi | --f )
17876 $ac_shift
17877 case $ac_optarg in
17878 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17879 '') as_fn_error $? "missing file argument" ;;
17880 esac
17881 as_fn_append CONFIG_FILES " '$ac_optarg'"
17882 ac_need_defaults=false;;
17883 --header | --heade | --head | --hea )
17884 $ac_shift
17885 case $ac_optarg in
17886 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17887 esac
17888 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17889 ac_need_defaults=false;;
17890 --he | --h)
17891 # Conflict between --help and --header
17892 as_fn_error $? "ambiguous option: '$1'
17893 Try '$0 --help' for more information.";;
17894 --help | --hel | -h )
17895 printf "%s\n" "$ac_cs_usage"; exit ;;
17896 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17897 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17898 ac_cs_silent=: ;;
17899
17900 # This is an error.
17901 -*) as_fn_error $? "unrecognized option: '$1'
17902 Try '$0 --help' for more information." ;;
17903
17904 *) as_fn_append ac_config_targets " $1"
17905 ac_need_defaults=false ;;
17906
17907 esac
17908 shift
17909 done
17910
17911 ac_configure_extra_args=
17912
17913 if $ac_cs_silent; then
17914 exec 6>/dev/null
17915 ac_configure_extra_args="$ac_configure_extra_args --silent"
17916 fi
17917
17918 _ACEOF
17919 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17920 if \$ac_cs_recheck; then
17921 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17922 shift
17923 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
17924 CONFIG_SHELL='$SHELL'
17925 export CONFIG_SHELL
17926 exec "\$@"
17927 fi
17928
17929 _ACEOF
17930 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17931 exec 5>>config.log
17932 {
17933 echo
17934 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17935 ## Running $as_me. ##
17936 _ASBOX
17937 printf "%s\n" "$ac_log"
17938 } >&5
17939
17940 _ACEOF
17941 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17942 #
17943 # INIT-COMMANDS
17944 #
17945 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
17946
17947
17948 # The HP-UX ksh and POSIX shell print the target directory to stdout
17949 # if CDPATH is set.
17950 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17951
17952 sed_quote_subst='$sed_quote_subst'
17953 double_quote_subst='$double_quote_subst'
17954 delay_variable_subst='$delay_variable_subst'
17955 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17956 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17957 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
17958 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17959 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17960 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17961 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17962 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17963 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17964 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
17965 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17966 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17967 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17968 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17969 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17970 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17971 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17972 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17973 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17974 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17975 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17976 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17977 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17978 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17979 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17980 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17981 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17982 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17983 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17984 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17985 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17986 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17987 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17988 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17989 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17990 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17991 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17992 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
17993 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17994 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17995 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17996 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17997 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17998 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17999 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
18000 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18001 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18002 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18003 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18004 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18005 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18006 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18007 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18008 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18009 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18010 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18011 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18012 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18013 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18014 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
18015 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18016 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"`'
18017 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
18018 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18019 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18020 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
18021 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18022 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18023 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18024 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18025 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18026 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18027 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18028 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18029 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18030 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18031 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18032 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18033 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18034 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18035 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18036 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18037 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18038 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18039 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18040 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18041 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18042 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18043 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18044 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18045 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18046 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18047 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18048 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18049 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18050 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18051 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18052 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18053 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18054 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18055 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18056 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18057 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18058 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18059 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18060 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18061 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18062 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18063 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18064 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18065 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18066 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18067 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18068 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18069 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18070 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18071 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18072 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18073 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18074 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18075 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18076 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18077 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18078 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18079 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18080 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18081 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18082 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18083 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18084 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18085 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
18086 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
18087 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18088 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18089 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18090 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18091 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18092 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18093
18094 LTCC='$LTCC'
18095 LTCFLAGS='$LTCFLAGS'
18096 compiler='$compiler_DEFAULT'
18097
18098 # A function that is used when there is no print builtin or printf.
18099 func_fallback_echo ()
18100 {
18101 eval 'cat <<_LTECHO_EOF
18102 \$1
18103 _LTECHO_EOF'
18104 }
18105
18106 # Quote evaled strings.
18107 for var in AS \
18108 DLLTOOL \
18109 OBJDUMP \
18110 SHELL \
18111 ECHO \
18112 PATH_SEPARATOR \
18113 SED \
18114 GREP \
18115 EGREP \
18116 FGREP \
18117 LD \
18118 NM \
18119 LN_S \
18120 lt_SP2NL \
18121 lt_NL2SP \
18122 reload_flag \
18123 FILECMD \
18124 deplibs_check_method \
18125 file_magic_cmd \
18126 file_magic_glob \
18127 want_nocaseglob \
18128 sharedlib_from_linklib_cmd \
18129 AR \
18130 archiver_list_spec \
18131 STRIP \
18132 RANLIB \
18133 CC \
18134 CFLAGS \
18135 compiler \
18136 lt_cv_sys_global_symbol_pipe \
18137 lt_cv_sys_global_symbol_to_cdecl \
18138 lt_cv_sys_global_symbol_to_import \
18139 lt_cv_sys_global_symbol_to_c_name_address \
18140 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18141 lt_cv_nm_interface \
18142 nm_file_list_spec \
18143 lt_cv_truncate_bin \
18144 lt_prog_compiler_no_builtin_flag \
18145 lt_prog_compiler_pic \
18146 lt_prog_compiler_wl \
18147 lt_prog_compiler_static \
18148 lt_cv_prog_compiler_c_o \
18149 need_locks \
18150 MANIFEST_TOOL \
18151 DSYMUTIL \
18152 NMEDIT \
18153 LIPO \
18154 OTOOL \
18155 OTOOL64 \
18156 shrext_cmds \
18157 export_dynamic_flag_spec \
18158 whole_archive_flag_spec \
18159 compiler_needs_object \
18160 with_gnu_ld \
18161 allow_undefined_flag \
18162 no_undefined_flag \
18163 hardcode_libdir_flag_spec \
18164 hardcode_libdir_separator \
18165 exclude_expsyms \
18166 include_expsyms \
18167 file_list_spec \
18168 variables_saved_for_relink \
18169 libname_spec \
18170 library_names_spec \
18171 soname_spec \
18172 install_override_mode \
18173 finish_eval \
18174 old_striplib \
18175 striplib; do
18176 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18177 *[\\\\\\\`\\"\\\$]*)
18178 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18179 ;;
18180 *)
18181 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18182 ;;
18183 esac
18184 done
18185
18186 # Double-quote double-evaled strings.
18187 for var in reload_cmds \
18188 old_postinstall_cmds \
18189 old_postuninstall_cmds \
18190 old_archive_cmds \
18191 extract_expsyms_cmds \
18192 old_archive_from_new_cmds \
18193 old_archive_from_expsyms_cmds \
18194 archive_cmds \
18195 archive_expsym_cmds \
18196 module_cmds \
18197 module_expsym_cmds \
18198 export_symbols_cmds \
18199 prelink_cmds \
18200 postlink_cmds \
18201 postinstall_cmds \
18202 postuninstall_cmds \
18203 finish_cmds \
18204 sys_lib_search_path_spec \
18205 configure_time_dlsearch_path \
18206 configure_time_lt_sys_library_path; do
18207 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18208 *[\\\\\\\`\\"\\\$]*)
18209 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18210 ;;
18211 *)
18212 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18213 ;;
18214 esac
18215 done
18216
18217 ac_aux_dir='$ac_aux_dir'
18218
18219 # See if we are running on zsh, and set the options that allow our
18220 # commands through without removal of \ escapes INIT.
18221 if test -n "\${ZSH_VERSION+set}"; then
18222 setopt NO_GLOB_SUBST
18223 fi
18224
18225
18226 PACKAGE='$PACKAGE'
18227 VERSION='$VERSION'
18228 RM='$RM'
18229 ofile='$ofile'
18230
18231 ac_aux_dir='$ac_aux_dir'
18232
18233
18234
18235 _ACEOF
18236
18237 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18238
18239 # Handling of arguments.
18240 for ac_config_target in $ac_config_targets
18241 do
18242 case $ac_config_target in
18243 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18244 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18245 "c-auto.h") CONFIG_HEADERS="$CONFIG_HEADERS c-auto.h:c-auto.in" ;;
18246 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18247
18248 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
18249 esac
18250 done
18251
18252
18253 # If the user did not use the arguments to specify the items to instantiate,
18254 # then the envvar interface is used. Set only those that are not.
18255 # We use the long form for the default assignment because of an extremely
18256 # bizarre bug on SunOS 4.1.3.
18257 if $ac_need_defaults; then
18258 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
18259 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
18260 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
18261 fi
18262
18263 # Have a temporary directory for convenience. Make it in the build tree
18264 # simply because there is no reason against having it here, and in addition,
18265 # creating and moving files from /tmp can sometimes cause problems.
18266 # Hook for its removal unless debugging.
18267 # Note that there is a small window in which the directory will not be cleaned:
18268 # after its creation but before its name has been assigned to '$tmp'.
18269 $debug ||
18270 {
18271 tmp= ac_tmp=
18272 trap 'exit_status=$?
18273 : "${ac_tmp:=$tmp}"
18274 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18275 ' 0
18276 trap 'as_fn_exit 1' 1 2 13 15
18277 }
18278 # Create a (secure) tmp directory for tmp files.
18279
18280 {
18281 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18282 test -d "$tmp"
18283 } ||
18284 {
18285 tmp=./conf$$-$RANDOM
18286 (umask 077 && mkdir "$tmp")
18287 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18288 ac_tmp=$tmp
18289
18290 # Set up the scripts for CONFIG_FILES section.
18291 # No need to generate them if there are no CONFIG_FILES.
18292 # This happens for instance with './config.status config.h'.
18293 if test -n "$CONFIG_FILES"; then
18294
18295
18296 ac_cr=`echo X | tr X '\015'`
18297 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18298 # But we know of no other shell where ac_cr would be empty at this
18299 # point, so we can use a bashism as a fallback.
18300 if test "x$ac_cr" = x; then
18301 eval ac_cr=\$\'\\r\'
18302 fi
18303 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18304 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18305 ac_cs_awk_cr='\\r'
18306 else
18307 ac_cs_awk_cr=$ac_cr
18308 fi
18309
18310 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18311 _ACEOF
18312
18313
18314 {
18315 echo "cat >conf$$subs.awk <<_ACEOF" &&
18316 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18317 echo "_ACEOF"
18318 } >conf$$subs.sh ||
18319 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18320 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18321 ac_delim='%!_!# '
18322 for ac_last_try in false false false false false :; do
18323 . ./conf$$subs.sh ||
18324 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18325
18326 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18327 if test $ac_delim_n = $ac_delim_num; then
18328 break
18329 elif $ac_last_try; then
18330 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18331 else
18332 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18333 fi
18334 done
18335 rm -f conf$$subs.sh
18336
18337 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18338 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18339 _ACEOF
18340 sed -n '
18341 h
18342 s/^/S["/; s/!.*/"]=/
18343 p
18344 g
18345 s/^[^!]*!//
18346 :repl
18347 t repl
18348 s/'"$ac_delim"'$//
18349 t delim
18350 :nl
18351 h
18352 s/\(.\{148\}\)..*/\1/
18353 t more1
18354 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18355 p
18356 n
18357 b repl
18358 :more1
18359 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18360 p
18361 g
18362 s/.\{148\}//
18363 t nl
18364 :delim
18365 h
18366 s/\(.\{148\}\)..*/\1/
18367 t more2
18368 s/["\\]/\\&/g; s/^/"/; s/$/"/
18369 p
18370 b
18371 :more2
18372 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18373 p
18374 g
18375 s/.\{148\}//
18376 t delim
18377 ' <conf$$subs.awk | sed '
18378 /^[^""]/{
18379 N
18380 s/\n//
18381 }
18382 ' >>$CONFIG_STATUS || ac_write_fail=1
18383 rm -f conf$$subs.awk
18384 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18385 _ACAWK
18386 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18387 for (key in S) S_is_set[key] = 1
18388 FS = ""
18389
18390 }
18391 {
18392 line = $ 0
18393 nfields = split(line, field, "@")
18394 substed = 0
18395 len = length(field[1])
18396 for (i = 2; i < nfields; i++) {
18397 key = field[i]
18398 keylen = length(key)
18399 if (S_is_set[key]) {
18400 value = S[key]
18401 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18402 len += length(value) + length(field[++i])
18403 substed = 1
18404 } else
18405 len += 1 + keylen
18406 }
18407
18408 print line
18409 }
18410
18411 _ACAWK
18412 _ACEOF
18413 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18414 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18415 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18416 else
18417 cat
18418 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18419 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18420 _ACEOF
18421
18422 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18423 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18424 # trailing colons and then remove the whole line if VPATH becomes empty
18425 # (actually we leave an empty line to preserve line numbers).
18426 if test "x$srcdir" = x.; then
18427 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18428 h
18429 s///
18430 s/^/:/
18431 s/[ ]*$/:/
18432 s/:\$(srcdir):/:/g
18433 s/:\${srcdir}:/:/g
18434 s/:@srcdir@:/:/g
18435 s/^:*//
18436 s/:*$//
18437 x
18438 s/\(=[ ]*\).*/\1/
18439 G
18440 s/\n//
18441 s/^[^=]*=[ ]*$//
18442 }'
18443 fi
18444
18445 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18446 fi # test -n "$CONFIG_FILES"
18447
18448 # Set up the scripts for CONFIG_HEADERS section.
18449 # No need to generate them if there are no CONFIG_HEADERS.
18450 # This happens for instance with './config.status Makefile'.
18451 if test -n "$CONFIG_HEADERS"; then
18452 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18453 BEGIN {
18454 _ACEOF
18455
18456 # Transform confdefs.h into an awk script 'defines.awk', embedded as
18457 # here-document in config.status, that substitutes the proper values into
18458 # config.h.in to produce config.h.
18459
18460 # Create a delimiter string that does not exist in confdefs.h, to ease
18461 # handling of long lines.
18462 ac_delim='%!_!# '
18463 for ac_last_try in false false :; do
18464 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18465 if test -z "$ac_tt"; then
18466 break
18467 elif $ac_last_try; then
18468 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18469 else
18470 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18471 fi
18472 done
18473
18474 # For the awk script, D is an array of macro values keyed by name,
18475 # likewise P contains macro parameters if any. Preserve backslash
18476 # newline sequences.
18477
18478 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18479 sed -n '
18480 s/.\{148\}/&'"$ac_delim"'/g
18481 t rset
18482 :rset
18483 s/^[ ]*#[ ]*define[ ][ ]*/ /
18484 t def
18485 d
18486 :def
18487 s/\\$//
18488 t bsnl
18489 s/["\\]/\\&/g
18490 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18491 D["\1"]=" \3"/p
18492 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18493 d
18494 :bsnl
18495 s/["\\]/\\&/g
18496 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18497 D["\1"]=" \3\\\\\\n"\\/p
18498 t cont
18499 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18500 t cont
18501 d
18502 :cont
18503 n
18504 s/.\{148\}/&'"$ac_delim"'/g
18505 t clear
18506 :clear
18507 s/\\$//
18508 t bsnlc
18509 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18510 d
18511 :bsnlc
18512 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18513 b cont
18514 ' <confdefs.h | sed '
18515 s/'"$ac_delim"'/"\\\
18516 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18517
18518 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18519 for (key in D) D_is_set[key] = 1
18520 FS = ""
18521 }
18522 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18523 line = \$ 0
18524 split(line, arg, " ")
18525 if (arg[1] == "#") {
18526 defundef = arg[2]
18527 mac1 = arg[3]
18528 } else {
18529 defundef = substr(arg[1], 2)
18530 mac1 = arg[2]
18531 }
18532 split(mac1, mac2, "(") #)
18533 macro = mac2[1]
18534 prefix = substr(line, 1, index(line, defundef) - 1)
18535 if (D_is_set[macro]) {
18536 # Preserve the white space surrounding the "#".
18537 print prefix "define", macro P[macro] D[macro]
18538 next
18539 } else {
18540 # Replace #undef with comments. This is necessary, for example,
18541 # in the case of _POSIX_SOURCE, which is predefined and required
18542 # on some systems where configure will not decide to define it.
18543 if (defundef == "undef") {
18544 print "/*", prefix defundef, macro, "*/"
18545 next
18546 }
18547 }
18548 }
18549 { print }
18550 _ACAWK
18551 _ACEOF
18552 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18553 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18554 fi # test -n "$CONFIG_HEADERS"
18555
18556
18557 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18558 shift
18559 for ac_tag
18560 do
18561 case $ac_tag in
18562 :[FHLC]) ac_mode=$ac_tag; continue;;
18563 esac
18564 case $ac_mode$ac_tag in
18565 :[FHL]*:*);;
18566 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
18567 :[FH]-) ac_tag=-:-;;
18568 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18569 esac
18570 ac_save_IFS=$IFS
18571 IFS=:
18572 set x $ac_tag
18573 IFS=$ac_save_IFS
18574 shift
18575 ac_file=$1
18576 shift
18577
18578 case $ac_mode in
18579 :L) ac_source=$1;;
18580 :[FH])
18581 ac_file_inputs=
18582 for ac_f
18583 do
18584 case $ac_f in
18585 -) ac_f="$ac_tmp/stdin";;
18586 *) # Look for the file first in the build tree, then in the source tree
18587 # (if the path is not absolute). The absolute path cannot be DOS-style,
18588 # because $ac_f cannot contain ':'.
18589 test -f "$ac_f" ||
18590 case $ac_f in
18591 [\\/$]*) false;;
18592 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18593 esac ||
18594 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
18595 esac
18596 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18597 as_fn_append ac_file_inputs " '$ac_f'"
18598 done
18599
18600 # Let's still pretend it is 'configure' which instantiates (i.e., don't
18601 # use $as_me), people would be surprised to read:
18602 # /* config.h. Generated by config.status. */
18603 configure_input='Generated from '`
18604 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18605 `' by configure.'
18606 if test x"$ac_file" != x-; then
18607 configure_input="$ac_file. $configure_input"
18608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18609 printf "%s\n" "$as_me: creating $ac_file" >&6;}
18610 fi
18611 # Neutralize special characters interpreted by sed in replacement strings.
18612 case $configure_input in #(
18613 *\&* | *\|* | *\\* )
18614 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
18615 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18616 *) ac_sed_conf_input=$configure_input;;
18617 esac
18618
18619 case $ac_tag in
18620 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18621 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18622 esac
18623 ;;
18624 esac
18625
18626 ac_dir=`$as_dirname -- "$ac_file" ||
18627 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18628 X"$ac_file" : 'X\(//\)[^/]' \| \
18629 X"$ac_file" : 'X\(//\)$' \| \
18630 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18631 printf "%s\n" X"$ac_file" |
18632 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18633 s//\1/
18634 q
18635 }
18636 /^X\(\/\/\)[^/].*/{
18637 s//\1/
18638 q
18639 }
18640 /^X\(\/\/\)$/{
18641 s//\1/
18642 q
18643 }
18644 /^X\(\/\).*/{
18645 s//\1/
18646 q
18647 }
18648 s/.*/./; q'`
18649 as_dir="$ac_dir"; as_fn_mkdir_p
18650 ac_builddir=.
18651
18652 case "$ac_dir" in
18653 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18654 *)
18655 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
18656 # A ".." for each directory in $ac_dir_suffix.
18657 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18658 case $ac_top_builddir_sub in
18659 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18660 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18661 esac ;;
18662 esac
18663 ac_abs_top_builddir=$ac_pwd
18664 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18665 # for backward compatibility:
18666 ac_top_builddir=$ac_top_build_prefix
18667
18668 case $srcdir in
18669 .) # We are building in place.
18670 ac_srcdir=.
18671 ac_top_srcdir=$ac_top_builddir_sub
18672 ac_abs_top_srcdir=$ac_pwd ;;
18673 [\\/]* | ?:[\\/]* ) # Absolute name.
18674 ac_srcdir=$srcdir$ac_dir_suffix;
18675 ac_top_srcdir=$srcdir
18676 ac_abs_top_srcdir=$srcdir ;;
18677 *) # Relative name.
18678 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18679 ac_top_srcdir=$ac_top_build_prefix$srcdir
18680 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18681 esac
18682 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18683
18684
18685 case $ac_mode in
18686 :F)
18687 #
18688 # CONFIG_FILE
18689 #
18690
18691 case $INSTALL in
18692 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18693 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18694 esac
18695 ac_MKDIR_P=$MKDIR_P
18696 case $MKDIR_P in
18697 [\\/$]* | ?:[\\/]* ) ;;
18698 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18699 esac
18700 _ACEOF
18701
18702 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18703 # If the template does not know about datarootdir, expand it.
18704 # FIXME: This hack should be removed a few years after 2.60.
18705 ac_datarootdir_hack=; ac_datarootdir_seen=
18706 ac_sed_dataroot='
18707 /datarootdir/ {
18708 p
18709 q
18710 }
18711 /@datadir@/p
18712 /@docdir@/p
18713 /@infodir@/p
18714 /@localedir@/p
18715 /@mandir@/p'
18716 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18717 *datarootdir*) ac_datarootdir_seen=yes;;
18718 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18720 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18721 _ACEOF
18722 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18723 ac_datarootdir_hack='
18724 s&@datadir@&$datadir&g
18725 s&@docdir@&$docdir&g
18726 s&@infodir@&$infodir&g
18727 s&@localedir@&$localedir&g
18728 s&@mandir@&$mandir&g
18729 s&\\\${datarootdir}&$datarootdir&g' ;;
18730 esac
18731 _ACEOF
18732
18733 # Neutralize VPATH when '$srcdir' = '.'.
18734 # Shell code in configure.ac might set extrasub.
18735 # FIXME: do we really want to maintain this feature?
18736 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18737 ac_sed_extra="$ac_vpsub
18738 $extrasub
18739 _ACEOF
18740 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18741 :t
18742 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18743 s|@configure_input@|$ac_sed_conf_input|;t t
18744 s&@top_builddir@&$ac_top_builddir_sub&;t t
18745 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18746 s&@srcdir@&$ac_srcdir&;t t
18747 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18748 s&@top_srcdir@&$ac_top_srcdir&;t t
18749 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18750 s&@builddir@&$ac_builddir&;t t
18751 s&@abs_builddir@&$ac_abs_builddir&;t t
18752 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18753 s&@INSTALL@&$ac_INSTALL&;t t
18754 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18755 $ac_datarootdir_hack
18756 "
18757 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18758 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18759
18760 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18761 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18762 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18763 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
18765 which seems to be undefined. Please make sure it is defined" >&5
18766 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
18767 which seems to be undefined. Please make sure it is defined" >&2;}
18768
18769 rm -f "$ac_tmp/stdin"
18770 case $ac_file in
18771 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18772 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18773 esac \
18774 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18775 ;;
18776 :H)
18777 #
18778 # CONFIG_HEADER
18779 #
18780 if test x"$ac_file" != x-; then
18781 {
18782 printf "%s\n" "/* $configure_input */" >&1 \
18783 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18784 } >"$ac_tmp/config.h" \
18785 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18786 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18788 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
18789 else
18790 rm -f "$ac_file"
18791 mv "$ac_tmp/config.h" "$ac_file" \
18792 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18793 fi
18794 else
18795 printf "%s\n" "/* $configure_input */" >&1 \
18796 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18797 || as_fn_error $? "could not create -" "$LINENO" 5
18798 fi
18799 # Compute "$ac_file"'s index in $config_headers.
18800 _am_arg="$ac_file"
18801 _am_stamp_count=1
18802 for _am_header in $config_headers :; do
18803 case $_am_header in
18804 $_am_arg | $_am_arg:* )
18805 break ;;
18806 * )
18807 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18808 esac
18809 done
18810 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18811 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18812 X"$_am_arg" : 'X\(//\)[^/]' \| \
18813 X"$_am_arg" : 'X\(//\)$' \| \
18814 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18815 printf "%s\n" X"$_am_arg" |
18816 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18817 s//\1/
18818 q
18819 }
18820 /^X\(\/\/\)[^/].*/{
18821 s//\1/
18822 q
18823 }
18824 /^X\(\/\/\)$/{
18825 s//\1/
18826 q
18827 }
18828 /^X\(\/\).*/{
18829 s//\1/
18830 q
18831 }
18832 s/.*/./; q'`/stamp-h$_am_stamp_count
18833 ;;
18834
18835 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18836 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
18837 ;;
18838 esac
18839
18840
18841 case $ac_file$ac_mode in
18842 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18843 # Older Autoconf quotes --file arguments for eval, but not when files
18844 # are listed without --file. Let's play safe and only enable the eval
18845 # if we detect the quoting.
18846 # TODO: see whether this extra hack can be removed once we start
18847 # requiring Autoconf 2.70 or later.
18848 case $CONFIG_FILES in #(
18849 *\'*) :
18850 eval set x "$CONFIG_FILES" ;; #(
18851 *) :
18852 set x $CONFIG_FILES ;; #(
18853 *) :
18854 ;;
18855 esac
18856 shift
18857 # Used to flag and report bootstrapping failures.
18858 am_rc=0
18859 for am_mf
18860 do
18861 # Strip MF so we end up with the name of the file.
18862 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
18863 # Check whether this is an Automake generated Makefile which includes
18864 # dependency-tracking related rules and includes.
18865 # Grep'ing the whole file directly is not great: AIX grep has a line
18866 # limit of 2048, but all sed's we know have understand at least 4000.
18867 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
18868 || continue
18869 am_dirpart=`$as_dirname -- "$am_mf" ||
18870 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18871 X"$am_mf" : 'X\(//\)[^/]' \| \
18872 X"$am_mf" : 'X\(//\)$' \| \
18873 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
18874 printf "%s\n" X"$am_mf" |
18875 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18876 s//\1/
18877 q
18878 }
18879 /^X\(\/\/\)[^/].*/{
18880 s//\1/
18881 q
18882 }
18883 /^X\(\/\/\)$/{
18884 s//\1/
18885 q
18886 }
18887 /^X\(\/\).*/{
18888 s//\1/
18889 q
18890 }
18891 s/.*/./; q'`
18892 am_filepart=`$as_basename -- "$am_mf" ||
18893 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
18894 X"$am_mf" : 'X\(//\)$' \| \
18895 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
18896 printf "%s\n" X/"$am_mf" |
18897 sed '/^.*\/\([^/][^/]*\)\/*$/{
18898 s//\1/
18899 q
18900 }
18901 /^X\/\(\/\/\)$/{
18902 s//\1/
18903 q
18904 }
18905 /^X\/\(\/\).*/{
18906 s//\1/
18907 q
18908 }
18909 s/.*/./; q'`
18910 { echo "$as_me:$LINENO: cd "$am_dirpart" \
18911 && sed -e '/# am--include-marker/d' "$am_filepart" \
18912 | $MAKE -f - am--depfiles" >&5
18913 (cd "$am_dirpart" \
18914 && sed -e '/# am--include-marker/d' "$am_filepart" \
18915 | $MAKE -f - am--depfiles) >&5 2>&5
18916 ac_status=$?
18917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18918 (exit $ac_status); } || am_rc=$?
18919 done
18920 if test $am_rc -ne 0; then
18921 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
18922 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
18923 as_fn_error $? "Something went wrong bootstrapping makefile fragments
18924 for automatic dependency tracking. If GNU make was not used, consider
18925 re-running the configure script with MAKE=\"gmake\" (or whatever is
18926 necessary). You can also try re-running configure with the
18927 '--disable-dependency-tracking' option to at least be able to build
18928 the package (albeit without support for automatic dependency tracking).
18929 See 'config.log' for more details" "$LINENO" 5; }
18930 fi
18931 { am_dirpart=; unset am_dirpart;}
18932 { am_filepart=; unset am_filepart;}
18933 { am_mf=; unset am_mf;}
18934 { am_rc=; unset am_rc;}
18935 rm -f conftest-deps.mk
18936 }
18937 ;;
18938 "libtool":C)
18939
18940 # See if we are running on zsh, and set the options that allow our
18941 # commands through without removal of \ escapes.
18942 if test -n "${ZSH_VERSION+set}"; then
18943 setopt NO_GLOB_SUBST
18944 fi
18945
18946 cfgfile=${ofile}T
18947 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18948 $RM "$cfgfile"
18949
18950 cat <<_LT_EOF >> "$cfgfile"
18951 #! $SHELL
18952 # Generated automatically by $as_me ($PACKAGE) $VERSION
18953 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18954
18955 # Provide generalized library-building support services.
18956 # Written by Gordon Matzigkeit, 1996
18957
18958 # Copyright (C) 2024 Free Software Foundation, Inc.
18959 # This is free software; see the source for copying conditions. There is NO
18960 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18961
18962 # GNU Libtool is free software; you can redistribute it and/or modify
18963 # it under the terms of the GNU General Public License as published by
18964 # the Free Software Foundation; either version 2 of the License, or
18965 # (at your option) any later version.
18966 #
18967 # As a special exception to the GNU General Public License, if you
18968 # distribute this file as part of a program or library that is built
18969 # using GNU Libtool, you may include this file under the same
18970 # distribution terms that you use for the rest of that program.
18971 #
18972 # GNU Libtool is distributed in the hope that it will be useful, but
18973 # WITHOUT ANY WARRANTY; without even the implied warranty of
18974 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18975 # GNU General Public License for more details.
18976 #
18977 # You should have received a copy of the GNU General Public License
18978 # along with this program. If not, see <http://www.gnu.org/licenses/>.
18979
18980
18981 # The names of the tagged configurations supported by this script.
18982 available_tags=''
18983
18984 # Configured defaults for sys_lib_dlsearch_path munging.
18985 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
18986
18987 # ### BEGIN LIBTOOL CONFIG
18988
18989 # Which release of libtool.m4 was used?
18990 macro_version=$macro_version
18991 macro_revision=$macro_revision
18992
18993 # Assembler program.
18994 AS=$lt_AS
18995
18996 # DLL creation program.
18997 DLLTOOL=$lt_DLLTOOL
18998
18999 # Object dumper program.
19000 OBJDUMP=$lt_OBJDUMP
19001
19002 # Whether or not to build shared libraries.
19003 build_libtool_libs=$enable_shared
19004
19005 # Whether or not to build static libraries.
19006 build_old_libs=$enable_static
19007
19008 # What type of objects to build.
19009 pic_mode=$pic_mode
19010
19011 # Whether or not to optimize for fast installation.
19012 fast_install=$enable_fast_install
19013
19014 # Shared archive member basename,for filename based shared library versioning on AIX.
19015 shared_archive_member_spec=$shared_archive_member_spec
19016
19017 # Shell to use when invoking shell scripts.
19018 SHELL=$lt_SHELL
19019
19020 # An echo program that protects backslashes.
19021 ECHO=$lt_ECHO
19022
19023 # The PATH separator for the build system.
19024 PATH_SEPARATOR=$lt_PATH_SEPARATOR
19025
19026 # The host system.
19027 host_alias=$host_alias
19028 host=$host
19029 host_os=$host_os
19030
19031 # The build system.
19032 build_alias=$build_alias
19033 build=$build
19034 build_os=$build_os
19035
19036 # A sed program that does not truncate output.
19037 SED=$lt_SED
19038
19039 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19040 Xsed="\$SED -e 1s/^X//"
19041
19042 # A grep program that handles long lines.
19043 GREP=$lt_GREP
19044
19045 # An ERE matcher.
19046 EGREP=$lt_EGREP
19047
19048 # A literal string matcher.
19049 FGREP=$lt_FGREP
19050
19051 # A BSD- or MS-compatible name lister.
19052 NM=$lt_NM
19053
19054 # Whether we need soft or hard links.
19055 LN_S=$lt_LN_S
19056
19057 # What is the maximum length of a command?
19058 max_cmd_len=$max_cmd_len
19059
19060 # Object file suffix (normally "o").
19061 objext=$ac_objext
19062
19063 # Executable file suffix (normally "").
19064 exeext=$exeext
19065
19066 # whether the shell understands "unset".
19067 lt_unset=$lt_unset
19068
19069 # turn spaces into newlines.
19070 SP2NL=$lt_lt_SP2NL
19071
19072 # turn newlines into spaces.
19073 NL2SP=$lt_lt_NL2SP
19074
19075 # convert \$build file names to \$host format.
19076 to_host_file_cmd=$lt_cv_to_host_file_cmd
19077
19078 # convert \$build files to toolchain format.
19079 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19080
19081 # A file(cmd) program that detects file types.
19082 FILECMD=$lt_FILECMD
19083
19084 # Method to check whether dependent libraries are shared objects.
19085 deplibs_check_method=$lt_deplibs_check_method
19086
19087 # Command to use when deplibs_check_method = "file_magic".
19088 file_magic_cmd=$lt_file_magic_cmd
19089
19090 # How to find potential files when deplibs_check_method = "file_magic".
19091 file_magic_glob=$lt_file_magic_glob
19092
19093 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19094 want_nocaseglob=$lt_want_nocaseglob
19095
19096 # Command to associate shared and link libraries.
19097 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19098
19099 # The archiver.
19100 AR=$lt_AR
19101
19102 # Flags to create an archive (by configure).
19103 lt_ar_flags=$lt_ar_flags
19104
19105 # Flags to create an archive.
19106 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
19107
19108 # How to feed a file listing to the archiver.
19109 archiver_list_spec=$lt_archiver_list_spec
19110
19111 # A symbol stripping program.
19112 STRIP=$lt_STRIP
19113
19114 # Commands used to install an old-style archive.
19115 RANLIB=$lt_RANLIB
19116 old_postinstall_cmds=$lt_old_postinstall_cmds
19117 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19118
19119 # Whether to use a lock for old archive extraction.
19120 lock_old_archive_extraction=$lock_old_archive_extraction
19121
19122 # A C compiler.
19123 LTCC=$lt_CC
19124
19125 # LTCC compiler flags.
19126 LTCFLAGS=$lt_CFLAGS
19127
19128 # Take the output of nm and produce a listing of raw symbols and C names.
19129 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19130
19131 # Transform the output of nm in a proper C declaration.
19132 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19133
19134 # Transform the output of nm into a list of symbols to manually relocate.
19135 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
19136
19137 # Transform the output of nm in a C name address pair.
19138 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19139
19140 # Transform the output of nm in a C name address pair when lib prefix is needed.
19141 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19142
19143 # The name lister interface.
19144 nm_interface=$lt_lt_cv_nm_interface
19145
19146 # Specify filename containing input files for \$NM.
19147 nm_file_list_spec=$lt_nm_file_list_spec
19148
19149 # The root where to search for dependent libraries,and where our libraries should be installed.
19150 lt_sysroot=$lt_sysroot
19151
19152 # Command to truncate a binary pipe.
19153 lt_truncate_bin=$lt_lt_cv_truncate_bin
19154
19155 # The name of the directory that contains temporary libtool files.
19156 objdir=$objdir
19157
19158 # Used to examine libraries when file_magic_cmd begins with "file".
19159 MAGIC_CMD=$MAGIC_CMD
19160
19161 # Must we lock files when doing compilation?
19162 need_locks=$lt_need_locks
19163
19164 # Manifest tool.
19165 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19166
19167 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19168 DSYMUTIL=$lt_DSYMUTIL
19169
19170 # Tool to change global to local symbols on Mac OS X.
19171 NMEDIT=$lt_NMEDIT
19172
19173 # Tool to manipulate fat objects and archives on Mac OS X.
19174 LIPO=$lt_LIPO
19175
19176 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19177 OTOOL=$lt_OTOOL
19178
19179 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19180 OTOOL64=$lt_OTOOL64
19181
19182 # Old archive suffix (normally "a").
19183 libext=$libext
19184
19185 # Shared library suffix (normally ".so").
19186 shrext_cmds=$lt_shrext_cmds
19187
19188 # The commands to extract the exported symbol list from a shared archive.
19189 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19190
19191 # Variables whose values should be saved in libtool wrapper scripts and
19192 # restored at link time.
19193 variables_saved_for_relink=$lt_variables_saved_for_relink
19194
19195 # Do we need the "lib" prefix for modules?
19196 need_lib_prefix=$need_lib_prefix
19197
19198 # Do we need a version for libraries?
19199 need_version=$need_version
19200
19201 # Library versioning type.
19202 version_type=$version_type
19203
19204 # Shared library runtime path variable.
19205 runpath_var=$runpath_var
19206
19207 # Shared library path variable.
19208 shlibpath_var=$shlibpath_var
19209
19210 # Is shlibpath searched before the hard-coded library search path?
19211 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19212
19213 # Format of library name prefix.
19214 libname_spec=$lt_libname_spec
19215
19216 # List of archive names. First name is the real one, the rest are links.
19217 # The last name is the one that the linker finds with -lNAME
19218 library_names_spec=$lt_library_names_spec
19219
19220 # The coded name of the library, if different from the real name.
19221 soname_spec=$lt_soname_spec
19222
19223 # Permission mode override for installation of shared libraries.
19224 install_override_mode=$lt_install_override_mode
19225
19226 # Command to use after installation of a shared archive.
19227 postinstall_cmds=$lt_postinstall_cmds
19228
19229 # Command to use after uninstallation of a shared archive.
19230 postuninstall_cmds=$lt_postuninstall_cmds
19231
19232 # Commands used to finish a libtool library installation in a directory.
19233 finish_cmds=$lt_finish_cmds
19234
19235 # As "finish_cmds", except a single script fragment to be evaled but
19236 # not shown.
19237 finish_eval=$lt_finish_eval
19238
19239 # Whether we should hardcode library paths into libraries.
19240 hardcode_into_libs=$hardcode_into_libs
19241
19242 # Compile-time system search path for libraries.
19243 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19244
19245 # Detected run-time system search path for libraries.
19246 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
19247
19248 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
19249 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
19250
19251 # Whether dlopen is supported.
19252 dlopen_support=$enable_dlopen
19253
19254 # Whether dlopen of programs is supported.
19255 dlopen_self=$enable_dlopen_self
19256
19257 # Whether dlopen of statically linked programs is supported.
19258 dlopen_self_static=$enable_dlopen_self_static
19259
19260 # Commands to strip libraries.
19261 old_striplib=$lt_old_striplib
19262 striplib=$lt_striplib
19263
19264
19265 # The linker used to build libraries.
19266 LD=$lt_LD
19267
19268 # How to create reloadable object files.
19269 reload_flag=$lt_reload_flag
19270 reload_cmds=$lt_reload_cmds
19271
19272 # Commands used to build an old-style archive.
19273 old_archive_cmds=$lt_old_archive_cmds
19274
19275 # A language specific compiler.
19276 CC=$lt_compiler
19277
19278 # Is the compiler the GNU compiler?
19279 with_gcc=$GCC
19280
19281 # Compiler flag to turn off builtin functions.
19282 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19283
19284 # Additional compiler flags for building library objects.
19285 pic_flag=$lt_lt_prog_compiler_pic
19286
19287 # How to pass a linker flag through the compiler.
19288 wl=$lt_lt_prog_compiler_wl
19289
19290 # Compiler flag to prevent dynamic linking.
19291 link_static_flag=$lt_lt_prog_compiler_static
19292
19293 # Does compiler simultaneously support -c and -o options?
19294 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19295
19296 # Whether or not to add -lc for building shared libraries.
19297 build_libtool_need_lc=$archive_cmds_need_lc
19298
19299 # Whether or not to disallow shared libs when runtime libs are static.
19300 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19301
19302 # Compiler flag to allow reflexive dlopens.
19303 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19304
19305 # Compiler flag to generate shared objects directly from archives.
19306 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19307
19308 # Whether the compiler copes with passing no objects directly.
19309 compiler_needs_object=$lt_compiler_needs_object
19310
19311 # Create an old-style archive from a shared archive.
19312 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19313
19314 # Create a temporary old-style archive to link instead of a shared archive.
19315 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19316
19317 # Commands used to build a shared archive.
19318 archive_cmds=$lt_archive_cmds
19319 archive_expsym_cmds=$lt_archive_expsym_cmds
19320
19321 # Commands used to build a loadable module if different from building
19322 # a shared archive.
19323 module_cmds=$lt_module_cmds
19324 module_expsym_cmds=$lt_module_expsym_cmds
19325
19326 # Whether we are building with GNU ld or not.
19327 with_gnu_ld=$lt_with_gnu_ld
19328
19329 # Flag that allows shared libraries with undefined symbols to be built.
19330 allow_undefined_flag=$lt_allow_undefined_flag
19331
19332 # Flag that enforces no undefined symbols.
19333 no_undefined_flag=$lt_no_undefined_flag
19334
19335 # Flag to hardcode \$libdir into a binary during linking.
19336 # This must work even if \$libdir does not exist
19337 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19338
19339 # Whether we need a single "-rpath" flag with a separated argument.
19340 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19341
19342 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19343 # DIR into the resulting binary.
19344 hardcode_direct=$hardcode_direct
19345
19346 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19347 # DIR into the resulting binary and the resulting library dependency is
19348 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
19349 # library is relocated.
19350 hardcode_direct_absolute=$hardcode_direct_absolute
19351
19352 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19353 # into the resulting binary.
19354 hardcode_minus_L=$hardcode_minus_L
19355
19356 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19357 # into the resulting binary.
19358 hardcode_shlibpath_var=$hardcode_shlibpath_var
19359
19360 # Set to "yes" if building a shared library automatically hardcodes DIR
19361 # into the library and all subsequent libraries and executables linked
19362 # against it.
19363 hardcode_automatic=$hardcode_automatic
19364
19365 # Set to yes if linker adds runtime paths of dependent libraries
19366 # to runtime path list.
19367 inherit_rpath=$inherit_rpath
19368
19369 # Whether libtool must link a program against all its dependency libraries.
19370 link_all_deplibs=$link_all_deplibs
19371
19372 # Set to "yes" if exported symbols are required.
19373 always_export_symbols=$always_export_symbols
19374
19375 # The commands to list exported symbols.
19376 export_symbols_cmds=$lt_export_symbols_cmds
19377
19378 # Symbols that should not be listed in the preloaded symbols.
19379 exclude_expsyms=$lt_exclude_expsyms
19380
19381 # Symbols that must always be exported.
19382 include_expsyms=$lt_include_expsyms
19383
19384 # Commands necessary for linking programs (against libraries) with templates.
19385 prelink_cmds=$lt_prelink_cmds
19386
19387 # Commands necessary for finishing linking programs.
19388 postlink_cmds=$lt_postlink_cmds
19389
19390 # Specify filename containing input files.
19391 file_list_spec=$lt_file_list_spec
19392
19393 # How to hardcode a shared library path into an executable.
19394 hardcode_action=$hardcode_action
19395
19396 # ### END LIBTOOL CONFIG
19397
19398 _LT_EOF
19399
19400 cat <<'_LT_EOF' >> "$cfgfile"
19401
19402 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
19403
19404 # func_munge_path_list VARIABLE PATH
19405 # -----------------------------------
19406 # VARIABLE is name of variable containing _space_ separated list of
19407 # directories to be munged by the contents of PATH, which is string
19408 # having a format:
19409 # "DIR[:DIR]:"
19410 # string "DIR[ DIR]" will be prepended to VARIABLE
19411 # ":DIR[:DIR]"
19412 # string "DIR[ DIR]" will be appended to VARIABLE
19413 # "DIRP[:DIRP]::[DIRA:]DIRA"
19414 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
19415 # "DIRA[ DIRA]" will be appended to VARIABLE
19416 # "DIR[:DIR]"
19417 # VARIABLE will be replaced by "DIR[ DIR]"
19418 func_munge_path_list ()
19419 {
19420 case x$2 in
19421 x)
19422 ;;
19423 *:)
19424 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
19425 ;;
19426 x:*)
19427 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
19428 ;;
19429 *::*)
19430 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
19431 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
19432 ;;
19433 *)
19434 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
19435 ;;
19436 esac
19437 }
19438
19439
19440 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
19441 func_cc_basename ()
19442 {
19443 for cc_temp in $*""; do
19444 case $cc_temp in
19445 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19446 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19447 \-*) ;;
19448 *) break;;
19449 esac
19450 done
19451 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19452 }
19453
19454
19455 # ### END FUNCTIONS SHARED WITH CONFIGURE
19456
19457 _LT_EOF
19458
19459 case $host_os in
19460 aix3*)
19461 cat <<\_LT_EOF >> "$cfgfile"
19462 # AIX sometimes has problems with the GCC collect2 program. For some
19463 # reason, if we set the COLLECT_NAMES environment variable, the problems
19464 # vanish in a puff of smoke.
19465 if test set != "${COLLECT_NAMES+set}"; then
19466 COLLECT_NAMES=
19467 export COLLECT_NAMES
19468 fi
19469 _LT_EOF
19470 ;;
19471 esac
19472
19473
19474
19475 ltmain=$ac_aux_dir/ltmain.sh
19476
19477
19478 # We use sed instead of cat because bash on DJGPP gets confused if
19479 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19480 # text mode, it properly converts lines to CR/LF. This bash problem
19481 # is reportedly fixed, but why not run on old versions too?
19482 $SED '$q' "$ltmain" >> "$cfgfile" \
19483 || (rm -f "$cfgfile"; exit 1)
19484
19485 mv -f "$cfgfile" "$ofile" ||
19486 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19487 chmod +x "$ofile"
19488
19489 ;;
19490
19491 esac
19492 done # for ac_tag
19493
19494
19495 as_fn_exit 0
19496 _ACEOF
19497 ac_clean_files=$ac_clean_files_save
19498
19499 test $ac_write_fail = 0 ||
19500 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19501
19502
19503 # configure is writing to config.log, and then calls config.status.
19504 # config.status does its own redirection, appending to config.log.
19505 # Unfortunately, on DOS this fails, as config.log is still kept open
19506 # by configure, so config.status won't be able to write to it; its
19507 # output is simply discarded. So we exec the FD to /dev/null,
19508 # effectively closing config.log, so it can be properly (re)opened and
19509 # appended to by config.status. When coming back to configure, we
19510 # need to make the FD available again.
19511 if test "$no_create" != yes; then
19512 ac_cs_success=:
19513 ac_config_status_args=
19514 test "$silent" = yes &&
19515 ac_config_status_args="$ac_config_status_args --quiet"
19516 exec 5>/dev/null
19517 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19518 exec 5>>config.log
19519 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19520 # would make configure fail if this is the last instruction.
19521 $ac_cs_success || as_fn_exit 1
19522 fi
19523 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19525 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19526 fi
19527
19528