Debian Codegraph @

texk/kpathsea/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 Kpathsea 6.4.2.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21 then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else case e in #(
29 e) case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as 'sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed 'exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
144 then :
145 emulate sh
146 NULLCMD=:
147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
148 # is contrary to our usage. Disable this feature.
149 alias -g '\${1+\"\$@\"}'='\"\$@\"'
150 setopt NO_GLOB_SUBST
151 else case e in #(
152 e) case \`(set -o) 2>/dev/null\` in #(
153 *posix*) :
154 set -o posix ;; #(
155 *) :
156 ;;
157 esac ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else case e in #(
176 e) exitcode=1; echo positional parameters were not saved. ;;
177 esac
178 fi
179 test x\$exitcode = x0 || exit 1
180 blah=\$(echo \$(echo blah))
181 test x\"\$blah\" = xblah || exit 1
182 test -x / || exit 1"
183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
187
188 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
189 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
192 PATH=/empty FPATH=/empty; export PATH FPATH
193 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
194 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
195 test \$(( 1 + 1 )) = 2 || exit 1"
196 if (eval "$as_required") 2>/dev/null
197 then :
198 as_have_required=yes
199 else case e in #(
200 e) as_have_required=no ;;
201 esac
202 fi
203 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
204 then :
205
206 else case e in #(
207 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
208 as_found=false
209 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
210 do
211 IFS=$as_save_IFS
212 case $as_dir in #(((
213 '') as_dir=./ ;;
214 */) ;;
215 *) as_dir=$as_dir/ ;;
216 esac
217 as_found=:
218 case $as_dir in #(
219 /*)
220 for as_base in sh bash ksh sh5; do
221 # Try only shells that exist, to save several forks.
222 as_shell=$as_dir$as_base
223 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
224 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
225 then :
226 CONFIG_SHELL=$as_shell as_have_required=yes
227 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
228 then :
229 break 2
230 fi
231 fi
232 done;;
233 esac
234 as_found=false
235 done
236 IFS=$as_save_IFS
237 if $as_found
238 then :
239
240 else case e in #(
241 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
243 then :
244 CONFIG_SHELL=$SHELL as_have_required=yes
245 fi ;;
246 esac
247 fi
248
249
250 if test "x$CONFIG_SHELL" != x
251 then :
252 export CONFIG_SHELL
253 # We cannot yet assume a decent shell, so we have to provide a
254 # neutralization value for shells without unset; and this also
255 # works around shells that cannot unset nonexistent variables.
256 # Preserve -v and -x to the replacement shell.
257 BASH_ENV=/dev/null
258 ENV=/dev/null
259 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
260 case $- in # ((((
261 *v*x* | *x*v* ) as_opts=-vx ;;
262 *v* ) as_opts=-v ;;
263 *x* ) as_opts=-x ;;
264 * ) as_opts= ;;
265 esac
266 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
267 # Admittedly, this is quite paranoid, since all the known shells bail
268 # out after a failed 'exec'.
269 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
270 exit 255
271 fi
272
273 if test x$as_have_required = xno
274 then :
275 printf "%s\n" "$0: This script requires a shell more modern than all"
276 printf "%s\n" "$0: the shells that I found on your system."
277 if test ${ZSH_VERSION+y} ; then
278 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
279 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
280 else
281 printf "%s\n" "$0: Please tell [email protected] and [email protected]
282 $0: about your system, including any error possibly output
283 $0: before this message. Then install a modern shell, or
284 $0: manually run the script under such a shell if you do
285 $0: have one."
286 fi
287 exit 1
288 fi ;;
289 esac
290 fi
291 fi
292 SHELL=${CONFIG_SHELL-/bin/sh}
293 export SHELL
294 # Unset more variables known to interfere with behavior of common tools.
295 CLICOLOR_FORCE= GREP_OPTIONS=
296 unset CLICOLOR_FORCE GREP_OPTIONS
297
298 ## --------------------- ##
299 ## M4sh Shell Functions. ##
300 ## --------------------- ##
301 # as_fn_unset VAR
302 # ---------------
303 # Portably unset VAR.
304 as_fn_unset ()
305 {
306 { eval $1=; unset $1;}
307 }
308 as_unset=as_fn_unset
309
310
311 # as_fn_set_status STATUS
312 # -----------------------
313 # Set $? to STATUS, without forking.
314 as_fn_set_status ()
315 {
316 return $1
317 } # as_fn_set_status
318
319 # as_fn_exit STATUS
320 # -----------------
321 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
322 as_fn_exit ()
323 {
324 set +e
325 as_fn_set_status $1
326 exit $1
327 } # as_fn_exit
328
329 # as_fn_mkdir_p
330 # -------------
331 # Create "$as_dir" as a directory, including parents if necessary.
332 as_fn_mkdir_p ()
333 {
334
335 case $as_dir in #(
336 -*) as_dir=./$as_dir;;
337 esac
338 test -d "$as_dir" || eval $as_mkdir_p || {
339 as_dirs=
340 while :; do
341 case $as_dir in #(
342 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
343 *) as_qdir=$as_dir;;
344 esac
345 as_dirs="'$as_qdir' $as_dirs"
346 as_dir=`$as_dirname -- "$as_dir" ||
347 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
348 X"$as_dir" : 'X\(//\)[^/]' \| \
349 X"$as_dir" : 'X\(//\)$' \| \
350 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
351 printf "%s\n" X"$as_dir" |
352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
353 s//\1/
354 q
355 }
356 /^X\(\/\/\)[^/].*/{
357 s//\1/
358 q
359 }
360 /^X\(\/\/\)$/{
361 s//\1/
362 q
363 }
364 /^X\(\/\).*/{
365 s//\1/
366 q
367 }
368 s/.*/./; q'`
369 test -d "$as_dir" && break
370 done
371 test -z "$as_dirs" || eval "mkdir $as_dirs"
372 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
373
374
375 } # as_fn_mkdir_p
376
377 # as_fn_executable_p FILE
378 # -----------------------
379 # Test if FILE is an executable regular file.
380 as_fn_executable_p ()
381 {
382 test -f "$1" && test -x "$1"
383 } # as_fn_executable_p
384 # as_fn_append VAR VALUE
385 # ----------------------
386 # Append the text in VALUE to the end of the definition contained in VAR. Take
387 # advantage of any shell optimizations that allow amortized linear growth over
388 # repeated appends, instead of the typical quadratic growth present in naive
389 # implementations.
390 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
391 then :
392 eval 'as_fn_append ()
393 {
394 eval $1+=\$2
395 }'
396 else case e in #(
397 e) as_fn_append ()
398 {
399 eval $1=\$$1\$2
400 } ;;
401 esac
402 fi # as_fn_append
403
404 # as_fn_arith ARG...
405 # ------------------
406 # Perform arithmetic evaluation on the ARGs, and store the result in the
407 # global $as_val. Take advantage of shells that can avoid forks. The arguments
408 # must be portable across $(()) and expr.
409 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
410 then :
411 eval 'as_fn_arith ()
412 {
413 as_val=$(( $* ))
414 }'
415 else case e in #(
416 e) as_fn_arith ()
417 {
418 as_val=`expr "$@" || test $? -eq 1`
419 } ;;
420 esac
421 fi # as_fn_arith
422
423
424 # as_fn_error STATUS ERROR [LINENO LOG_FD]
425 # ----------------------------------------
426 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
427 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
428 # script with STATUS, using 1 if that was 0.
429 as_fn_error ()
430 {
431 as_status=$1; test $as_status -eq 0 && as_status=1
432 if test "$4"; then
433 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
434 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
435 fi
436 printf "%s\n" "$as_me: error: $2" >&2
437 as_fn_exit $as_status
438 } # as_fn_error
439
440 if expr a : '\(a\)' >/dev/null 2>&1 &&
441 test "X`expr 00001 : '.*\(...\)'`" = X001; then
442 as_expr=expr
443 else
444 as_expr=false
445 fi
446
447 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
448 as_basename=basename
449 else
450 as_basename=false
451 fi
452
453 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
454 as_dirname=dirname
455 else
456 as_dirname=false
457 fi
458
459 as_me=`$as_basename -- "$0" ||
460 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
461 X"$0" : 'X\(//\)$' \| \
462 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
463 printf "%s\n" X/"$0" |
464 sed '/^.*\/\([^/][^/]*\)\/*$/{
465 s//\1/
466 q
467 }
468 /^X\/\(\/\/\)$/{
469 s//\1/
470 q
471 }
472 /^X\/\(\/\).*/{
473 s//\1/
474 q
475 }
476 s/.*/./; q'`
477
478 # Avoid depending upon Character Ranges.
479 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
480 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
481 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
482 as_cr_digits='0123456789'
483 as_cr_alnum=$as_cr_Letters$as_cr_digits
484
485
486 as_lineno_1=$LINENO as_lineno_1a=$LINENO
487 as_lineno_2=$LINENO as_lineno_2a=$LINENO
488 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
489 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
490 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
491 sed -n '
492 p
493 /[$]LINENO/=
494 ' <$as_myself |
495 sed '
496 t clear
497 :clear
498 s/[$]LINENO.*/&-/
499 t lineno
500 b
501 :lineno
502 N
503 :loop
504 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
505 t loop
506 s/-\n.*//
507 ' >$as_me.lineno &&
508 chmod +x "$as_me.lineno" ||
509 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
510
511 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
512 # already done that, so ensure we don't try to do so again and fall
513 # in an infinite loop. This has already happened in practice.
514 _as_can_reexec=no; export _as_can_reexec
515 # Don't try to exec as it changes $[0], causing all sort of problems
516 # (the dirname of $[0] is not the place where we might find the
517 # original and so on. Autoconf is especially sensitive to this).
518 . "./$as_me.lineno"
519 # Exit status is that of the last command.
520 exit
521 }
522
523
524 # Determine whether it's possible to make 'echo' print without a newline.
525 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
526 # for compatibility with existing Makefiles.
527 ECHO_C= ECHO_N= ECHO_T=
528 case `echo -n x` in #(((((
529 -n*)
530 case `echo 'xy\c'` in
531 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
532 xy) ECHO_C='\c';;
533 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
534 ECHO_T=' ';;
535 esac;;
536 *)
537 ECHO_N='-n';;
538 esac
539
540 # For backward compatibility with old third-party macros, we provide
541 # the shell variables $as_echo and $as_echo_n. New code should use
542 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
543 as_echo='printf %s\n'
544 as_echo_n='printf %s'
545
546 rm -f conf$$ conf$$.exe conf$$.file
547 if test -d conf$$.dir; then
548 rm -f conf$$.dir/conf$$.file
549 else
550 rm -f conf$$.dir
551 mkdir conf$$.dir 2>/dev/null
552 fi
553 if (echo >conf$$.file) 2>/dev/null; then
554 if ln -s conf$$.file conf$$ 2>/dev/null; then
555 as_ln_s='ln -s'
556 # ... but there are two gotchas:
557 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
558 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
559 # In both cases, we have to default to 'cp -pR'.
560 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
561 as_ln_s='cp -pR'
562 elif ln conf$$.file conf$$ 2>/dev/null; then
563 as_ln_s=ln
564 else
565 as_ln_s='cp -pR'
566 fi
567 else
568 as_ln_s='cp -pR'
569 fi
570 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
571 rmdir conf$$.dir 2>/dev/null
572
573 if mkdir -p . 2>/dev/null; then
574 as_mkdir_p='mkdir -p "$as_dir"'
575 else
576 test -d ./-p && rmdir ./-p
577 as_mkdir_p=false
578 fi
579
580 as_test_x='test -x'
581 as_executable_p=as_fn_executable_p
582
583 # Sed expression to map a string onto a valid CPP name.
584 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
585 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
586
587 # Sed expression to map a string onto a valid variable name.
588 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
589 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
590
591 SHELL=${CONFIG_SHELL-/bin/sh}
592
593
594 test -n "$DJDIR" || exec 7<&0 </dev/null
595 exec 6>&1
596
597 # Name of the host.
598 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
599 # so uname gets run too.
600 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
601
602 #
603 # Initializations.
604 #
605 ac_default_prefix=/usr/local
606 ac_clean_files=
607 ac_config_libobj_dir=.
608 LIBOBJS=
609 cross_compiling=no
610 subdirs=
611 MFLAGS=
612 MAKEFLAGS=
613
614 # Identity of this package.
615 PACKAGE_NAME='Kpathsea'
616 PACKAGE_TARNAME='kpathsea'
617 PACKAGE_VERSION='6.4.2'
618 PACKAGE_STRING='Kpathsea 6.4.2'
619 PACKAGE_BUGREPORT='[email protected]'
620 PACKAGE_URL=''
621
622 ac_unique_file="pathsearch.c"
623 # Factoring default headers for most tests.
624 ac_includes_default="\
625 #include <stddef.h>
626 #ifdef HAVE_STDIO_H
627 # include <stdio.h>
628 #endif
629 #ifdef HAVE_STDLIB_H
630 # include <stdlib.h>
631 #endif
632 #ifdef HAVE_STRING_H
633 # include <string.h>
634 #endif
635 #ifdef HAVE_INTTYPES_H
636 # include <inttypes.h>
637 #endif
638 #ifdef HAVE_STDINT_H
639 # include <stdint.h>
640 #endif
641 #ifdef HAVE_STRINGS_H
642 # include <strings.h>
643 #endif
644 #ifdef HAVE_SYS_TYPES_H
645 # include <sys/types.h>
646 #endif
647 #ifdef HAVE_SYS_STAT_H
648 # include <sys/stat.h>
649 #endif
650 #ifdef HAVE_UNISTD_H
651 # include <unistd.h>
652 #endif"
653
654 ac_header_c_list=
655 enable_year2038=no
656 ac_subst_vars='am__EXEEXT_FALSE
657 am__EXEEXT_TRUE
658 LTLIBOBJS
659 have_EXEEXT_FALSE
660 have_EXEEXT_TRUE
661 LT_OBJDIR
662 MINGW32_FALSE
663 MINGW32_TRUE
664 WIN32_FALSE
665 WIN32_TRUE
666 LIBOBJS
667 LT_SYS_LIBRARY_PATH
668 OTOOL64
669 OTOOL
670 LIPO
671 NMEDIT
672 DSYMUTIL
673 MANIFEST_TOOL
674 RANLIB
675 FILECMD
676 LN_S
677 NM
678 ac_ct_DUMPBIN
679 DUMPBIN
680 LD
681 FGREP
682 EGREP
683 GREP
684 SED
685 host_os
686 host_vendor
687 host_cpu
688 host
689 build_os
690 build_vendor
691 build_cpu
692 build
693 LIBTOOL
694 OBJDUMP
695 DLLTOOL
696 AS
697 ac_ct_AR
698 AR
699 WARNING_CFLAGS
700 am__fastdepCC_FALSE
701 am__fastdepCC_TRUE
702 CCDEPMODE
703 am__nodep
704 AMDEPBACKSLASH
705 AMDEP_FALSE
706 AMDEP_TRUE
707 am__include
708 DEPDIR
709 OBJEXT
710 EXEEXT
711 ac_ct_CC
712 CPPFLAGS
713 LDFLAGS
714 CFLAGS
715 CC
716 MAINT
717 MAINTAINER_MODE_FALSE
718 MAINTAINER_MODE_TRUE
719 am__xargs_n
720 am__rm_f_notfound
721 AM_BACKSLASH
722 AM_DEFAULT_VERBOSITY
723 AM_DEFAULT_V
724 AM_V
725 CSCOPE
726 ETAGS
727 CTAGS
728 am__untar
729 am__tar
730 AMTAR
731 am__leading_dot
732 SET_MAKE
733 AWK
734 mkdir_p
735 MKDIR_P
736 INSTALL_STRIP_PROGRAM
737 STRIP
738 install_sh
739 MAKEINFO
740 AUTOHEADER
741 AUTOMAKE
742 AUTOCONF
743 ACLOCAL
744 VERSION
745 PACKAGE
746 CYGPATH_W
747 am__isrc
748 INSTALL_DATA
749 INSTALL_SCRIPT
750 INSTALL_PROGRAM
751 WEB2CVERSION
752 KPSE_LT_VERSINFO
753 KPSEVERSION
754 target_alias
755 host_alias
756 build_alias
757 LIBS
758 ECHO_T
759 ECHO_N
760 ECHO_C
761 DEFS
762 mandir
763 localedir
764 libdir
765 psdir
766 pdfdir
767 dvidir
768 htmldir
769 infodir
770 docdir
771 oldincludedir
772 includedir
773 runstatedir
774 localstatedir
775 sharedstatedir
776 sysconfdir
777 datadir
778 datarootdir
779 libexecdir
780 sbindir
781 bindir
782 program_transform_name
783 prefix
784 exec_prefix
785 PACKAGE_URL
786 PACKAGE_BUGREPORT
787 PACKAGE_STRING
788 PACKAGE_VERSION
789 PACKAGE_TARNAME
790 PACKAGE_NAME
791 PATH_SEPARATOR
792 SHELL
793 am__quote'
794 ac_subst_files=''
795 ac_user_opts='
796 enable_option_checking
797 enable_silent_rules
798 enable_maintainer_mode
799 enable_dependency_tracking
800 enable_compiler_warnings
801 enable_shared
802 enable_static
803 enable_pic
804 with_pic
805 enable_fast_install
806 enable_aix_soname
807 with_aix_soname
808 with_gnu_ld
809 with_sysroot
810 enable_libtool_lock
811 enable_largefile
812 enable_mktexmf_default
813 enable_mktexpk_default
814 enable_mktextfm_default
815 enable_mkocp_default
816 enable_mkofm_default
817 enable_mktexfmt_default
818 enable_mktextex_default
819 with_snprintf_wrapper
820 enable_year2038
821 '
822 ac_precious_vars='build_alias
823 host_alias
824 target_alias
825 CC
826 CFLAGS
827 LDFLAGS
828 LIBS
829 CPPFLAGS
830 LT_SYS_LIBRARY_PATH'
831
832
833 # Initialize some variables set by options.
834 ac_init_help=
835 ac_init_version=false
836 ac_unrecognized_opts=
837 ac_unrecognized_sep=
838 # The variables have the same names as the options, with
839 # dashes changed to underlines.
840 cache_file=/dev/null
841 exec_prefix=NONE
842 no_create=
843 no_recursion=
844 prefix=NONE
845 program_prefix=NONE
846 program_suffix=NONE
847 program_transform_name=s,x,x,
848 silent=
849 site=
850 srcdir=
851 verbose=
852 x_includes=NONE
853 x_libraries=NONE
854
855 # Installation directory options.
856 # These are left unexpanded so users can "make install exec_prefix=/foo"
857 # and all the variables that are supposed to be based on exec_prefix
858 # by default will actually change.
859 # Use braces instead of parens because sh, perl, etc. also accept them.
860 # (The list follows the same order as the GNU Coding Standards.)
861 bindir='${exec_prefix}/bin'
862 sbindir='${exec_prefix}/sbin'
863 libexecdir='${exec_prefix}/libexec'
864 datarootdir='${prefix}/share'
865 datadir='${datarootdir}'
866 sysconfdir='${prefix}/etc'
867 sharedstatedir='${prefix}/com'
868 localstatedir='${prefix}/var'
869 runstatedir='${localstatedir}/run'
870 includedir='${prefix}/include'
871 oldincludedir='/usr/include'
872 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
873 infodir='${datarootdir}/info'
874 htmldir='${docdir}'
875 dvidir='${docdir}'
876 pdfdir='${docdir}'
877 psdir='${docdir}'
878 libdir='${exec_prefix}/lib'
879 localedir='${datarootdir}/locale'
880 mandir='${datarootdir}/man'
881
882 ac_prev=
883 ac_dashdash=
884 for ac_option
885 do
886 # If the previous option needs an argument, assign it.
887 if test -n "$ac_prev"; then
888 eval $ac_prev=\$ac_option
889 ac_prev=
890 continue
891 fi
892
893 case $ac_option in
894 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
895 *=) ac_optarg= ;;
896 *) ac_optarg=yes ;;
897 esac
898
899 case $ac_dashdash$ac_option in
900 --)
901 ac_dashdash=yes ;;
902
903 -bindir | --bindir | --bindi | --bind | --bin | --bi)
904 ac_prev=bindir ;;
905 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
906 bindir=$ac_optarg ;;
907
908 -build | --build | --buil | --bui | --bu)
909 ac_prev=build_alias ;;
910 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
911 build_alias=$ac_optarg ;;
912
913 -cache-file | --cache-file | --cache-fil | --cache-fi \
914 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
915 ac_prev=cache_file ;;
916 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
917 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
918 cache_file=$ac_optarg ;;
919
920 --config-cache | -C)
921 cache_file=config.cache ;;
922
923 -datadir | --datadir | --datadi | --datad)
924 ac_prev=datadir ;;
925 -datadir=* | --datadir=* | --datadi=* | --datad=*)
926 datadir=$ac_optarg ;;
927
928 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
929 | --dataroo | --dataro | --datar)
930 ac_prev=datarootdir ;;
931 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
932 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
933 datarootdir=$ac_optarg ;;
934
935 -disable-* | --disable-*)
936 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
937 # Reject names that are not valid shell variable names.
938 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
939 as_fn_error $? "invalid feature name: '$ac_useropt'"
940 ac_useropt_orig=$ac_useropt
941 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
942 case $ac_user_opts in
943 *"
944 "enable_$ac_useropt"
945 "*) ;;
946 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
947 ac_unrecognized_sep=', ';;
948 esac
949 eval enable_$ac_useropt=no ;;
950
951 -docdir | --docdir | --docdi | --doc | --do)
952 ac_prev=docdir ;;
953 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
954 docdir=$ac_optarg ;;
955
956 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
957 ac_prev=dvidir ;;
958 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
959 dvidir=$ac_optarg ;;
960
961 -enable-* | --enable-*)
962 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
963 # Reject names that are not valid shell variable names.
964 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
965 as_fn_error $? "invalid feature name: '$ac_useropt'"
966 ac_useropt_orig=$ac_useropt
967 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
968 case $ac_user_opts in
969 *"
970 "enable_$ac_useropt"
971 "*) ;;
972 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
973 ac_unrecognized_sep=', ';;
974 esac
975 eval enable_$ac_useropt=\$ac_optarg ;;
976
977 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
978 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
979 | --exec | --exe | --ex)
980 ac_prev=exec_prefix ;;
981 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
982 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
983 | --exec=* | --exe=* | --ex=*)
984 exec_prefix=$ac_optarg ;;
985
986 -gas | --gas | --ga | --g)
987 # Obsolete; use --with-gas.
988 with_gas=yes ;;
989
990 -help | --help | --hel | --he | -h)
991 ac_init_help=long ;;
992 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
993 ac_init_help=recursive ;;
994 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
995 ac_init_help=short ;;
996
997 -host | --host | --hos | --ho)
998 ac_prev=host_alias ;;
999 -host=* | --host=* | --hos=* | --ho=*)
1000 host_alias=$ac_optarg ;;
1001
1002 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1003 ac_prev=htmldir ;;
1004 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1005 | --ht=*)
1006 htmldir=$ac_optarg ;;
1007
1008 -includedir | --includedir | --includedi | --included | --include \
1009 | --includ | --inclu | --incl | --inc)
1010 ac_prev=includedir ;;
1011 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1012 | --includ=* | --inclu=* | --incl=* | --inc=*)
1013 includedir=$ac_optarg ;;
1014
1015 -infodir | --infodir | --infodi | --infod | --info | --inf)
1016 ac_prev=infodir ;;
1017 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1018 infodir=$ac_optarg ;;
1019
1020 -libdir | --libdir | --libdi | --libd)
1021 ac_prev=libdir ;;
1022 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1023 libdir=$ac_optarg ;;
1024
1025 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1026 | --libexe | --libex | --libe)
1027 ac_prev=libexecdir ;;
1028 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1029 | --libexe=* | --libex=* | --libe=*)
1030 libexecdir=$ac_optarg ;;
1031
1032 -localedir | --localedir | --localedi | --localed | --locale)
1033 ac_prev=localedir ;;
1034 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1035 localedir=$ac_optarg ;;
1036
1037 -localstatedir | --localstatedir | --localstatedi | --localstated \
1038 | --localstate | --localstat | --localsta | --localst | --locals)
1039 ac_prev=localstatedir ;;
1040 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1041 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1042 localstatedir=$ac_optarg ;;
1043
1044 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1045 ac_prev=mandir ;;
1046 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1047 mandir=$ac_optarg ;;
1048
1049 -nfp | --nfp | --nf)
1050 # Obsolete; use --without-fp.
1051 with_fp=no ;;
1052
1053 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1054 | --no-cr | --no-c | -n)
1055 no_create=yes ;;
1056
1057 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1058 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1059 no_recursion=yes ;;
1060
1061 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1062 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1063 | --oldin | --oldi | --old | --ol | --o)
1064 ac_prev=oldincludedir ;;
1065 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1066 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1067 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1068 oldincludedir=$ac_optarg ;;
1069
1070 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1071 ac_prev=prefix ;;
1072 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1073 prefix=$ac_optarg ;;
1074
1075 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1076 | --program-pre | --program-pr | --program-p)
1077 ac_prev=program_prefix ;;
1078 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1079 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1080 program_prefix=$ac_optarg ;;
1081
1082 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1083 | --program-suf | --program-su | --program-s)
1084 ac_prev=program_suffix ;;
1085 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1086 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1087 program_suffix=$ac_optarg ;;
1088
1089 -program-transform-name | --program-transform-name \
1090 | --program-transform-nam | --program-transform-na \
1091 | --program-transform-n | --program-transform- \
1092 | --program-transform | --program-transfor \
1093 | --program-transfo | --program-transf \
1094 | --program-trans | --program-tran \
1095 | --progr-tra | --program-tr | --program-t)
1096 ac_prev=program_transform_name ;;
1097 -program-transform-name=* | --program-transform-name=* \
1098 | --program-transform-nam=* | --program-transform-na=* \
1099 | --program-transform-n=* | --program-transform-=* \
1100 | --program-transform=* | --program-transfor=* \
1101 | --program-transfo=* | --program-transf=* \
1102 | --program-trans=* | --program-tran=* \
1103 | --progr-tra=* | --program-tr=* | --program-t=*)
1104 program_transform_name=$ac_optarg ;;
1105
1106 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1107 ac_prev=pdfdir ;;
1108 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1109 pdfdir=$ac_optarg ;;
1110
1111 -psdir | --psdir | --psdi | --psd | --ps)
1112 ac_prev=psdir ;;
1113 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1114 psdir=$ac_optarg ;;
1115
1116 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1117 | -silent | --silent | --silen | --sile | --sil)
1118 silent=yes ;;
1119
1120 -runstatedir | --runstatedir | --runstatedi | --runstated \
1121 | --runstate | --runstat | --runsta | --runst | --runs \
1122 | --run | --ru | --r)
1123 ac_prev=runstatedir ;;
1124 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1125 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1126 | --run=* | --ru=* | --r=*)
1127 runstatedir=$ac_optarg ;;
1128
1129 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1130 ac_prev=sbindir ;;
1131 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1132 | --sbi=* | --sb=*)
1133 sbindir=$ac_optarg ;;
1134
1135 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1136 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1137 | --sharedst | --shareds | --shared | --share | --shar \
1138 | --sha | --sh)
1139 ac_prev=sharedstatedir ;;
1140 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1141 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1142 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1143 | --sha=* | --sh=*)
1144 sharedstatedir=$ac_optarg ;;
1145
1146 -site | --site | --sit)
1147 ac_prev=site ;;
1148 -site=* | --site=* | --sit=*)
1149 site=$ac_optarg ;;
1150
1151 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1152 ac_prev=srcdir ;;
1153 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1154 srcdir=$ac_optarg ;;
1155
1156 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1157 | --syscon | --sysco | --sysc | --sys | --sy)
1158 ac_prev=sysconfdir ;;
1159 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1160 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1161 sysconfdir=$ac_optarg ;;
1162
1163 -target | --target | --targe | --targ | --tar | --ta | --t)
1164 ac_prev=target_alias ;;
1165 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1166 target_alias=$ac_optarg ;;
1167
1168 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1169 verbose=yes ;;
1170
1171 -version | --version | --versio | --versi | --vers | -V)
1172 ac_init_version=: ;;
1173
1174 -with-* | --with-*)
1175 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1176 # Reject names that are not valid shell variable names.
1177 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1178 as_fn_error $? "invalid package name: '$ac_useropt'"
1179 ac_useropt_orig=$ac_useropt
1180 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1181 case $ac_user_opts in
1182 *"
1183 "with_$ac_useropt"
1184 "*) ;;
1185 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1186 ac_unrecognized_sep=', ';;
1187 esac
1188 eval with_$ac_useropt=\$ac_optarg ;;
1189
1190 -without-* | --without-*)
1191 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1192 # Reject names that are not valid shell variable names.
1193 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1194 as_fn_error $? "invalid package name: '$ac_useropt'"
1195 ac_useropt_orig=$ac_useropt
1196 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1197 case $ac_user_opts in
1198 *"
1199 "with_$ac_useropt"
1200 "*) ;;
1201 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1202 ac_unrecognized_sep=', ';;
1203 esac
1204 eval with_$ac_useropt=no ;;
1205
1206 --x)
1207 # Obsolete; use --with-x.
1208 with_x=yes ;;
1209
1210 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1211 | --x-incl | --x-inc | --x-in | --x-i)
1212 ac_prev=x_includes ;;
1213 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1214 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1215 x_includes=$ac_optarg ;;
1216
1217 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1218 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1219 ac_prev=x_libraries ;;
1220 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1221 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1222 x_libraries=$ac_optarg ;;
1223
1224 -*) as_fn_error $? "unrecognized option: '$ac_option'
1225 Try '$0 --help' for more information"
1226 ;;
1227
1228 *=*)
1229 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1230 # Reject names that are not valid shell variable names.
1231 case $ac_envvar in #(
1232 '' | [0-9]* | *[!_$as_cr_alnum]* )
1233 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1234 esac
1235 eval $ac_envvar=\$ac_optarg
1236 export $ac_envvar ;;
1237
1238 *)
1239 # FIXME: should be removed in autoconf 3.0.
1240 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1241 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1242 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1243 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1244 ;;
1245
1246 esac
1247 done
1248
1249 if test -n "$ac_prev"; then
1250 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1251 as_fn_error $? "missing argument to $ac_option"
1252 fi
1253
1254 if test -n "$ac_unrecognized_opts"; then
1255 case $enable_option_checking in
1256 no) ;;
1257 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1258 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1259 esac
1260 fi
1261
1262 # Check all directory arguments for consistency.
1263 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1264 datadir sysconfdir sharedstatedir localstatedir includedir \
1265 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1266 libdir localedir mandir runstatedir
1267 do
1268 eval ac_val=\$$ac_var
1269 # Remove trailing slashes.
1270 case $ac_val in
1271 */ )
1272 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1273 eval $ac_var=\$ac_val;;
1274 esac
1275 # Be sure to have absolute directory names.
1276 case $ac_val in
1277 [\\/$]* | ?:[\\/]* ) continue;;
1278 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1279 esac
1280 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1281 done
1282
1283 # There might be people who depend on the old broken behavior: '$host'
1284 # used to hold the argument of --host etc.
1285 # FIXME: To remove some day.
1286 build=$build_alias
1287 host=$host_alias
1288 target=$target_alias
1289
1290 # FIXME: To remove some day.
1291 if test "x$host_alias" != x; then
1292 if test "x$build_alias" = x; then
1293 cross_compiling=maybe
1294 elif test "x$build_alias" != "x$host_alias"; then
1295 cross_compiling=yes
1296 fi
1297 fi
1298
1299 ac_tool_prefix=
1300 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1301
1302 test "$silent" = yes && exec 6>/dev/null
1303
1304
1305 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1306 ac_ls_di=`ls -di .` &&
1307 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1308 as_fn_error $? "working directory cannot be determined"
1309 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1310 as_fn_error $? "pwd does not report name of working directory"
1311
1312
1313 # Find the source files, if location was not specified.
1314 if test -z "$srcdir"; then
1315 ac_srcdir_defaulted=yes
1316 # Try the directory containing this script, then the parent directory.
1317 ac_confdir=`$as_dirname -- "$as_myself" ||
1318 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1319 X"$as_myself" : 'X\(//\)[^/]' \| \
1320 X"$as_myself" : 'X\(//\)$' \| \
1321 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1322 printf "%s\n" X"$as_myself" |
1323 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1324 s//\1/
1325 q
1326 }
1327 /^X\(\/\/\)[^/].*/{
1328 s//\1/
1329 q
1330 }
1331 /^X\(\/\/\)$/{
1332 s//\1/
1333 q
1334 }
1335 /^X\(\/\).*/{
1336 s//\1/
1337 q
1338 }
1339 s/.*/./; q'`
1340 srcdir=$ac_confdir
1341 if test ! -r "$srcdir/$ac_unique_file"; then
1342 srcdir=..
1343 fi
1344 else
1345 ac_srcdir_defaulted=no
1346 fi
1347 if test ! -r "$srcdir/$ac_unique_file"; then
1348 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1349 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1350 fi
1351 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1352 ac_abs_confdir=`(
1353 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1354 pwd)`
1355 # When building in place, set srcdir=.
1356 if test "$ac_abs_confdir" = "$ac_pwd"; then
1357 srcdir=.
1358 fi
1359 # Remove unnecessary trailing slashes from srcdir.
1360 # Double slashes in file names in object file debugging info
1361 # mess up M-x gdb in Emacs.
1362 case $srcdir in
1363 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1364 esac
1365 for ac_var in $ac_precious_vars; do
1366 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1367 eval ac_env_${ac_var}_value=\$${ac_var}
1368 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1369 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1370 done
1371
1372 #
1373 # Report the --help message.
1374 #
1375 if test "$ac_init_help" = "long"; then
1376 # Omit some internal or obsolete options to make the list less imposing.
1377 # This message is too long to be a string in the A/UX 3.1 sh.
1378 cat <<_ACEOF
1379 'configure' configures Kpathsea 6.4.2 to adapt to many kinds of systems.
1380
1381 Usage: $0 [OPTION]... [VAR=VALUE]...
1382
1383 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1384 VAR=VALUE. See below for descriptions of some of the useful variables.
1385
1386 Defaults for the options are specified in brackets.
1387
1388 Configuration:
1389 -h, --help display this help and exit
1390 --help=short display options specific to this package
1391 --help=recursive display the short help of all the included packages
1392 -V, --version display version information and exit
1393 -q, --quiet, --silent do not print 'checking ...' messages
1394 --cache-file=FILE cache test results in FILE [disabled]
1395 -C, --config-cache alias for '--cache-file=config.cache'
1396 -n, --no-create do not create output files
1397 --srcdir=DIR find the sources in DIR [configure dir or '..']
1398
1399 Installation directories:
1400 --prefix=PREFIX install architecture-independent files in PREFIX
1401 [$ac_default_prefix]
1402 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1403 [PREFIX]
1404
1405 By default, 'make install' will install all the files in
1406 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1407 an installation prefix other than '$ac_default_prefix' using '--prefix',
1408 for instance '--prefix=\$HOME'.
1409
1410 For better control, use the options below.
1411
1412 Fine tuning of the installation directories:
1413 --bindir=DIR user executables [EPREFIX/bin]
1414 --sbindir=DIR system admin executables [EPREFIX/sbin]
1415 --libexecdir=DIR program executables [EPREFIX/libexec]
1416 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1417 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1418 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1419 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1420 --libdir=DIR object code libraries [EPREFIX/lib]
1421 --includedir=DIR C header files [PREFIX/include]
1422 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1423 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1424 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1425 --infodir=DIR info documentation [DATAROOTDIR/info]
1426 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1427 --mandir=DIR man documentation [DATAROOTDIR/man]
1428 --docdir=DIR documentation root [DATAROOTDIR/doc/kpathsea]
1429 --htmldir=DIR html documentation [DOCDIR]
1430 --dvidir=DIR dvi documentation [DOCDIR]
1431 --pdfdir=DIR pdf documentation [DOCDIR]
1432 --psdir=DIR ps documentation [DOCDIR]
1433 _ACEOF
1434
1435 cat <<\_ACEOF
1436
1437 Program names:
1438 --program-prefix=PREFIX prepend PREFIX to installed program names
1439 --program-suffix=SUFFIX append SUFFIX to installed program names
1440 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1441
1442 System types:
1443 --build=BUILD configure for building on BUILD [guessed]
1444 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1445 _ACEOF
1446 fi
1447
1448 if test -n "$ac_init_help"; then
1449 case $ac_init_help in
1450 short | recursive ) echo "Configuration of Kpathsea 6.4.2:";;
1451 esac
1452 cat <<\_ACEOF
1453
1454 Optional Features:
1455 --disable-option-checking ignore unrecognized --enable/--with options
1456 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1457 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1458 --enable-silent-rules less verbose build output (undo: "make V=1")
1459 --disable-silent-rules verbose build output (undo: "make V=0")
1460 --enable-maintainer-mode
1461 enable make rules and dependencies not useful (and
1462 sometimes confusing) to the casual installer
1463 --enable-dependency-tracking
1464 do not reject slow dependency extractors
1465 --disable-dependency-tracking
1466 speeds up one-time build
1467 --enable-compiler-warnings=[no|min|yes|max|all]
1468 Turn on compiler warnings [default: yes if
1469 maintainer-mode, min otherwise]
1470 --enable-shared[=PKGS] build shared libraries [default=yes]
1471 --enable-static[=PKGS] build static libraries [default=yes]
1472 --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1473 both]
1474 --enable-fast-install[=PKGS]
1475 optimize for fast installation [default=yes]
1476 --enable-aix-soname=aix|svr4|both
1477 shared library versioning (aka "SONAME") variant to
1478 provide on AIX, [default=aix].
1479 --disable-libtool-lock avoid locking (might break parallel builds)
1480 --disable-largefile omit support for large files
1481 --disable-mktexmf-default do not run mktexmf if MF source missing
1482 --disable-mktexpk-default do not run mktexpk if PK font missing
1483 --disable-mktextfm-default
1484 do not run mktextfm if TFM file missing
1485 --disable-mkocp-default do not run mkocp if OCP file missing
1486 --disable-mkofm-default do not run mkofm if OFM file missing
1487 --disable-mktexfmt-default
1488 do not run mktexfmt if format file missing
1489 --enable-mktextex-default run mktextex if TeX source missing
1490 --enable-year2038 support timestamps after 2038
1491
1492 Optional Packages:
1493 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1494 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1495 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1496 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1497 compiler's sysroot if not specified).
1498 --with-snprintf-wrapper use (v)snprintf wrapper functions [automatic for
1499 native compilation or Windows]
1500
1501 Some influential environment variables:
1502 CC C compiler command
1503 CFLAGS C compiler flags
1504 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1505 nonstandard directory <lib dir>
1506 LIBS libraries to pass to the linker, e.g. -l<library>
1507 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1508 you have headers in a nonstandard directory <include dir>
1509 LT_SYS_LIBRARY_PATH
1510 User-defined run-time library search path.
1511
1512 Use these variables to override the choices made by 'configure' or to help
1513 it to find libraries and programs with nonstandard names/locations.
1514
1515 Report bugs to <[email protected]>.
1516 _ACEOF
1517 ac_status=$?
1518 fi
1519
1520 if test "$ac_init_help" = "recursive"; then
1521 # If there are subdirs, report their specific --help.
1522 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1523 test -d "$ac_dir" ||
1524 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1525 continue
1526 ac_builddir=.
1527
1528 case "$ac_dir" in
1529 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1530 *)
1531 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1532 # A ".." for each directory in $ac_dir_suffix.
1533 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1534 case $ac_top_builddir_sub in
1535 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1536 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1537 esac ;;
1538 esac
1539 ac_abs_top_builddir=$ac_pwd
1540 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1541 # for backward compatibility:
1542 ac_top_builddir=$ac_top_build_prefix
1543
1544 case $srcdir in
1545 .) # We are building in place.
1546 ac_srcdir=.
1547 ac_top_srcdir=$ac_top_builddir_sub
1548 ac_abs_top_srcdir=$ac_pwd ;;
1549 [\\/]* | ?:[\\/]* ) # Absolute name.
1550 ac_srcdir=$srcdir$ac_dir_suffix;
1551 ac_top_srcdir=$srcdir
1552 ac_abs_top_srcdir=$srcdir ;;
1553 *) # Relative name.
1554 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1555 ac_top_srcdir=$ac_top_build_prefix$srcdir
1556 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1557 esac
1558 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1559
1560 cd "$ac_dir" || { ac_status=$?; continue; }
1561 # Check for configure.gnu first; this name is used for a wrapper for
1562 # Metaconfig's "Configure" on case-insensitive file systems.
1563 if test -f "$ac_srcdir/configure.gnu"; then
1564 echo &&
1565 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1566 elif test -f "$ac_srcdir/configure"; then
1567 echo &&
1568 $SHELL "$ac_srcdir/configure" --help=recursive
1569 else
1570 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1571 fi || ac_status=$?
1572 cd "$ac_pwd" || { ac_status=$?; break; }
1573 done
1574 fi
1575
1576 test -n "$ac_init_help" && exit $ac_status
1577 if $ac_init_version; then
1578 cat <<\_ACEOF
1579 Kpathsea configure 6.4.2
1580 generated by GNU Autoconf 2.72
1581
1582 Copyright (C) 2023 Free Software Foundation, Inc.
1583 This configure script is free software; the Free Software Foundation
1584 gives unlimited permission to copy, distribute and modify it.
1585 _ACEOF
1586 exit
1587 fi
1588
1589 ## ------------------------ ##
1590 ## Autoconf initialization. ##
1591 ## ------------------------ ##
1592
1593 # ac_fn_c_try_compile LINENO
1594 # --------------------------
1595 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1596 ac_fn_c_try_compile ()
1597 {
1598 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1599 rm -f conftest.$ac_objext conftest.beam
1600 if { { ac_try="$ac_compile"
1601 case "(($ac_try" in
1602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1603 *) ac_try_echo=$ac_try;;
1604 esac
1605 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1606 printf "%s\n" "$ac_try_echo"; } >&5
1607 (eval "$ac_compile") 2>conftest.err
1608 ac_status=$?
1609 if test -s conftest.err; then
1610 grep -v '^ *+' conftest.err >conftest.er1
1611 cat conftest.er1 >&5
1612 mv -f conftest.er1 conftest.err
1613 fi
1614 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1615 test $ac_status = 0; } && {
1616 test -z "$ac_c_werror_flag" ||
1617 test ! -s conftest.err
1618 } && test -s conftest.$ac_objext
1619 then :
1620 ac_retval=0
1621 else case e in #(
1622 e) printf "%s\n" "$as_me: failed program was:" >&5
1623 sed 's/^/| /' conftest.$ac_ext >&5
1624
1625 ac_retval=1 ;;
1626 esac
1627 fi
1628 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1629 as_fn_set_status $ac_retval
1630
1631 } # ac_fn_c_try_compile
1632
1633 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1634 # -------------------------------------------------------
1635 # Tests whether HEADER exists and can be compiled using the include files in
1636 # INCLUDES, setting the cache variable VAR accordingly.
1637 ac_fn_c_check_header_compile ()
1638 {
1639 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1641 printf %s "checking for $2... " >&6; }
1642 if eval test \${$3+y}
1643 then :
1644 printf %s "(cached) " >&6
1645 else case e in #(
1646 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1647 /* end confdefs.h. */
1648 $4
1649 #include <$2>
1650 _ACEOF
1651 if ac_fn_c_try_compile "$LINENO"
1652 then :
1653 eval "$3=yes"
1654 else case e in #(
1655 e) eval "$3=no" ;;
1656 esac
1657 fi
1658 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1659 esac
1660 fi
1661 eval ac_res=\$$3
1662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1663 printf "%s\n" "$ac_res" >&6; }
1664 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1665
1666 } # ac_fn_c_check_header_compile
1667
1668 # ac_fn_c_try_link LINENO
1669 # -----------------------
1670 # Try to link conftest.$ac_ext, and return whether this succeeded.
1671 ac_fn_c_try_link ()
1672 {
1673 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1674 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1675 if { { ac_try="$ac_link"
1676 case "(($ac_try" in
1677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1678 *) ac_try_echo=$ac_try;;
1679 esac
1680 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1681 printf "%s\n" "$ac_try_echo"; } >&5
1682 (eval "$ac_link") 2>conftest.err
1683 ac_status=$?
1684 if test -s conftest.err; then
1685 grep -v '^ *+' conftest.err >conftest.er1
1686 cat conftest.er1 >&5
1687 mv -f conftest.er1 conftest.err
1688 fi
1689 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1690 test $ac_status = 0; } && {
1691 test -z "$ac_c_werror_flag" ||
1692 test ! -s conftest.err
1693 } && test -s conftest$ac_exeext && {
1694 test "$cross_compiling" = yes ||
1695 test -x conftest$ac_exeext
1696 }
1697 then :
1698 ac_retval=0
1699 else case e in #(
1700 e) printf "%s\n" "$as_me: failed program was:" >&5
1701 sed 's/^/| /' conftest.$ac_ext >&5
1702
1703 ac_retval=1 ;;
1704 esac
1705 fi
1706 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1707 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1708 # interfere with the next link command; also delete a directory that is
1709 # left behind by Apple's compiler. We do this before executing the actions.
1710 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1711 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1712 as_fn_set_status $ac_retval
1713
1714 } # ac_fn_c_try_link
1715
1716 # ac_fn_c_check_func LINENO FUNC VAR
1717 # ----------------------------------
1718 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1719 ac_fn_c_check_func ()
1720 {
1721 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1723 printf %s "checking for $2... " >&6; }
1724 if eval test \${$3+y}
1725 then :
1726 printf %s "(cached) " >&6
1727 else case e in #(
1728 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1729 /* end confdefs.h. */
1730 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1731 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1732 #define $2 innocuous_$2
1733
1734 /* System header to define __stub macros and hopefully few prototypes,
1735 which can conflict with char $2 (void); below. */
1736
1737 #include <limits.h>
1738 #undef $2
1739
1740 /* Override any GCC internal prototype to avoid an error.
1741 Use char because int might match the return type of a GCC
1742 builtin and then its argument prototype would still apply. */
1743 #ifdef __cplusplus
1744 extern "C"
1745 #endif
1746 char $2 (void);
1747 /* The GNU C library defines this for functions which it implements
1748 to always fail with ENOSYS. Some functions are actually named
1749 something starting with __ and the normal name is an alias. */
1750 #if defined __stub_$2 || defined __stub___$2
1751 choke me
1752 #endif
1753
1754 int
1755 main (void)
1756 {
1757 return $2 ();
1758 ;
1759 return 0;
1760 }
1761 _ACEOF
1762 if ac_fn_c_try_link "$LINENO"
1763 then :
1764 eval "$3=yes"
1765 else case e in #(
1766 e) eval "$3=no" ;;
1767 esac
1768 fi
1769 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1770 conftest$ac_exeext conftest.$ac_ext ;;
1771 esac
1772 fi
1773 eval ac_res=\$$3
1774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1775 printf "%s\n" "$ac_res" >&6; }
1776 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1777
1778 } # ac_fn_c_check_func
1779
1780 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1781 # -------------------------------------------
1782 # Tests whether TYPE exists after having included INCLUDES, setting cache
1783 # variable VAR accordingly.
1784 ac_fn_c_check_type ()
1785 {
1786 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1788 printf %s "checking for $2... " >&6; }
1789 if eval test \${$3+y}
1790 then :
1791 printf %s "(cached) " >&6
1792 else case e in #(
1793 e) eval "$3=no"
1794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1795 /* end confdefs.h. */
1796 $4
1797 int
1798 main (void)
1799 {
1800 if (sizeof ($2))
1801 return 0;
1802 ;
1803 return 0;
1804 }
1805 _ACEOF
1806 if ac_fn_c_try_compile "$LINENO"
1807 then :
1808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1809 /* end confdefs.h. */
1810 $4
1811 int
1812 main (void)
1813 {
1814 if (sizeof (($2)))
1815 return 0;
1816 ;
1817 return 0;
1818 }
1819 _ACEOF
1820 if ac_fn_c_try_compile "$LINENO"
1821 then :
1822
1823 else case e in #(
1824 e) eval "$3=yes" ;;
1825 esac
1826 fi
1827 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1828 fi
1829 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1830 esac
1831 fi
1832 eval ac_res=\$$3
1833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1834 printf "%s\n" "$ac_res" >&6; }
1835 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1836
1837 } # ac_fn_c_check_type
1838
1839 # ac_fn_c_find_intX_t LINENO BITS VAR
1840 # -----------------------------------
1841 # Finds a signed integer type with width BITS, setting cache variable VAR
1842 # accordingly.
1843 ac_fn_c_find_intX_t ()
1844 {
1845 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1847 printf %s "checking for int$2_t... " >&6; }
1848 if eval test \${$3+y}
1849 then :
1850 printf %s "(cached) " >&6
1851 else case e in #(
1852 e) eval "$3=no"
1853 # Order is important - never check a type that is potentially smaller
1854 # than half of the expected target width.
1855 for ac_type in int$2_t 'int' 'long int' \
1856 'long long int' 'short int' 'signed char'; do
1857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1858 /* end confdefs.h. */
1859 $ac_includes_default
1860 enum { N = $2 / 2 - 1 };
1861 int
1862 main (void)
1863 {
1864 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
1865 test_array [0] = 0;
1866 return test_array [0];
1867
1868 ;
1869 return 0;
1870 }
1871 _ACEOF
1872 if ac_fn_c_try_compile "$LINENO"
1873 then :
1874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1875 /* end confdefs.h. */
1876 $ac_includes_default
1877 enum { N = $2 / 2 - 1 };
1878 int
1879 main (void)
1880 {
1881 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
1882 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
1883 test_array [0] = 0;
1884 return test_array [0];
1885
1886 ;
1887 return 0;
1888 }
1889 _ACEOF
1890 if ac_fn_c_try_compile "$LINENO"
1891 then :
1892
1893 else case e in #(
1894 e) case $ac_type in #(
1895 int$2_t) :
1896 eval "$3=yes" ;; #(
1897 *) :
1898 eval "$3=\$ac_type" ;;
1899 esac ;;
1900 esac
1901 fi
1902 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1903 fi
1904 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1905 if eval test \"x\$"$3"\" = x"no"
1906 then :
1907
1908 else case e in #(
1909 e) break ;;
1910 esac
1911 fi
1912 done ;;
1913 esac
1914 fi
1915 eval ac_res=\$$3
1916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1917 printf "%s\n" "$ac_res" >&6; }
1918 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1919
1920 } # ac_fn_c_find_intX_t
1921
1922 # ac_fn_c_find_uintX_t LINENO BITS VAR
1923 # ------------------------------------
1924 # Finds an unsigned integer type with width BITS, setting cache variable VAR
1925 # accordingly.
1926 ac_fn_c_find_uintX_t ()
1927 {
1928 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1930 printf %s "checking for uint$2_t... " >&6; }
1931 if eval test \${$3+y}
1932 then :
1933 printf %s "(cached) " >&6
1934 else case e in #(
1935 e) eval "$3=no"
1936 # Order is important - never check a type that is potentially smaller
1937 # than half of the expected target width.
1938 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1939 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1941 /* end confdefs.h. */
1942 $ac_includes_default
1943 int
1944 main (void)
1945 {
1946 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1947 test_array [0] = 0;
1948 return test_array [0];
1949
1950 ;
1951 return 0;
1952 }
1953 _ACEOF
1954 if ac_fn_c_try_compile "$LINENO"
1955 then :
1956 case $ac_type in #(
1957 uint$2_t) :
1958 eval "$3=yes" ;; #(
1959 *) :
1960 eval "$3=\$ac_type" ;;
1961 esac
1962 fi
1963 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1964 if eval test \"x\$"$3"\" = x"no"
1965 then :
1966
1967 else case e in #(
1968 e) break ;;
1969 esac
1970 fi
1971 done ;;
1972 esac
1973 fi
1974 eval ac_res=\$$3
1975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1976 printf "%s\n" "$ac_res" >&6; }
1977 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1978
1979 } # ac_fn_c_find_uintX_t
1980
1981 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1982 # ------------------------------------------------------------------
1983 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1984 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1985 ac_fn_check_decl ()
1986 {
1987 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1988 as_decl_name=`echo $2|sed 's/ *(.*//'`
1989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1990 printf %s "checking whether $as_decl_name is declared... " >&6; }
1991 if eval test \${$3+y}
1992 then :
1993 printf %s "(cached) " >&6
1994 else case e in #(
1995 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1996 eval ac_save_FLAGS=\$$6
1997 as_fn_append $6 " $5"
1998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1999 /* end confdefs.h. */
2000 $4
2001 int
2002 main (void)
2003 {
2004 #ifndef $as_decl_name
2005 #ifdef __cplusplus
2006 (void) $as_decl_use;
2007 #else
2008 (void) $as_decl_name;
2009 #endif
2010 #endif
2011
2012 ;
2013 return 0;
2014 }
2015 _ACEOF
2016 if ac_fn_c_try_compile "$LINENO"
2017 then :
2018 eval "$3=yes"
2019 else case e in #(
2020 e) eval "$3=no" ;;
2021 esac
2022 fi
2023 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2024 eval $6=\$ac_save_FLAGS
2025 ;;
2026 esac
2027 fi
2028 eval ac_res=\$$3
2029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2030 printf "%s\n" "$ac_res" >&6; }
2031 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2032
2033 } # ac_fn_check_decl
2034
2035 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2036 # ----------------------------------------------------
2037 # Tries to find if the field MEMBER exists in type AGGR, after including
2038 # INCLUDES, setting cache variable VAR accordingly.
2039 ac_fn_c_check_member ()
2040 {
2041 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2043 printf %s "checking for $2.$3... " >&6; }
2044 if eval test \${$4+y}
2045 then :
2046 printf %s "(cached) " >&6
2047 else case e in #(
2048 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2049 /* end confdefs.h. */
2050 $5
2051 int
2052 main (void)
2053 {
2054 static $2 ac_aggr;
2055 if (ac_aggr.$3)
2056 return 0;
2057 ;
2058 return 0;
2059 }
2060 _ACEOF
2061 if ac_fn_c_try_compile "$LINENO"
2062 then :
2063 eval "$4=yes"
2064 else case e in #(
2065 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2066 /* end confdefs.h. */
2067 $5
2068 int
2069 main (void)
2070 {
2071 static $2 ac_aggr;
2072 if (sizeof ac_aggr.$3)
2073 return 0;
2074 ;
2075 return 0;
2076 }
2077 _ACEOF
2078 if ac_fn_c_try_compile "$LINENO"
2079 then :
2080 eval "$4=yes"
2081 else case e in #(
2082 e) eval "$4=no" ;;
2083 esac
2084 fi
2085 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2086 esac
2087 fi
2088 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2089 esac
2090 fi
2091 eval ac_res=\$$4
2092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2093 printf "%s\n" "$ac_res" >&6; }
2094 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2095
2096 } # ac_fn_c_check_member
2097
2098 # ac_fn_c_try_run LINENO
2099 # ----------------------
2100 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
2101 # executables *can* be run.
2102 ac_fn_c_try_run ()
2103 {
2104 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2105 if { { ac_try="$ac_link"
2106 case "(($ac_try" in
2107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2108 *) ac_try_echo=$ac_try;;
2109 esac
2110 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2111 printf "%s\n" "$ac_try_echo"; } >&5
2112 (eval "$ac_link") 2>&5
2113 ac_status=$?
2114 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2115 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2116 { { case "(($ac_try" in
2117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2118 *) ac_try_echo=$ac_try;;
2119 esac
2120 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2121 printf "%s\n" "$ac_try_echo"; } >&5
2122 (eval "$ac_try") 2>&5
2123 ac_status=$?
2124 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2125 test $ac_status = 0; }; }
2126 then :
2127 ac_retval=0
2128 else case e in #(
2129 e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2130 printf "%s\n" "$as_me: failed program was:" >&5
2131 sed 's/^/| /' conftest.$ac_ext >&5
2132
2133 ac_retval=$ac_status ;;
2134 esac
2135 fi
2136 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2137 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2138 as_fn_set_status $ac_retval
2139
2140 } # ac_fn_c_try_run
2141
2142 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2143 # --------------------------------------------
2144 # Tries to find the compile-time value of EXPR in a program that includes
2145 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2146 # computed
2147 ac_fn_c_compute_int ()
2148 {
2149 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2150 if test "$cross_compiling" = yes; then
2151 # Depending upon the size, compute the lo and hi bounds.
2152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2153 /* end confdefs.h. */
2154 $4
2155 int
2156 main (void)
2157 {
2158 static int test_array [1 - 2 * !(($2) >= 0)];
2159 test_array [0] = 0;
2160 return test_array [0];
2161
2162 ;
2163 return 0;
2164 }
2165 _ACEOF
2166 if ac_fn_c_try_compile "$LINENO"
2167 then :
2168 ac_lo=0 ac_mid=0
2169 while :; do
2170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2171 /* end confdefs.h. */
2172 $4
2173 int
2174 main (void)
2175 {
2176 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2177 test_array [0] = 0;
2178 return test_array [0];
2179
2180 ;
2181 return 0;
2182 }
2183 _ACEOF
2184 if ac_fn_c_try_compile "$LINENO"
2185 then :
2186 ac_hi=$ac_mid; break
2187 else case e in #(
2188 e) as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2189 if test $ac_lo -le $ac_mid; then
2190 ac_lo= ac_hi=
2191 break
2192 fi
2193 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val ;;
2194 esac
2195 fi
2196 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2197 done
2198 else case e in #(
2199 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2200 /* end confdefs.h. */
2201 $4
2202 int
2203 main (void)
2204 {
2205 static int test_array [1 - 2 * !(($2) < 0)];
2206 test_array [0] = 0;
2207 return test_array [0];
2208
2209 ;
2210 return 0;
2211 }
2212 _ACEOF
2213 if ac_fn_c_try_compile "$LINENO"
2214 then :
2215 ac_hi=-1 ac_mid=-1
2216 while :; do
2217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2218 /* end confdefs.h. */
2219 $4
2220 int
2221 main (void)
2222 {
2223 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2224 test_array [0] = 0;
2225 return test_array [0];
2226
2227 ;
2228 return 0;
2229 }
2230 _ACEOF
2231 if ac_fn_c_try_compile "$LINENO"
2232 then :
2233 ac_lo=$ac_mid; break
2234 else case e in #(
2235 e) as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2236 if test $ac_mid -le $ac_hi; then
2237 ac_lo= ac_hi=
2238 break
2239 fi
2240 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val ;;
2241 esac
2242 fi
2243 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2244 done
2245 else case e in #(
2246 e) ac_lo= ac_hi= ;;
2247 esac
2248 fi
2249 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2250 esac
2251 fi
2252 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2253 # Binary search between lo and hi bounds.
2254 while test "x$ac_lo" != "x$ac_hi"; do
2255 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2257 /* end confdefs.h. */
2258 $4
2259 int
2260 main (void)
2261 {
2262 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2263 test_array [0] = 0;
2264 return test_array [0];
2265
2266 ;
2267 return 0;
2268 }
2269 _ACEOF
2270 if ac_fn_c_try_compile "$LINENO"
2271 then :
2272 ac_hi=$ac_mid
2273 else case e in #(
2274 e) as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val ;;
2275 esac
2276 fi
2277 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2278 done
2279 case $ac_lo in #((
2280 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2281 '') ac_retval=1 ;;
2282 esac
2283 else
2284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2285 /* end confdefs.h. */
2286 $4
2287 static long int longval (void) { return $2; }
2288 static unsigned long int ulongval (void) { return $2; }
2289 #include <stdio.h>
2290 #include <stdlib.h>
2291 int
2292 main (void)
2293 {
2294
2295 FILE *f = fopen ("conftest.val", "w");
2296 if (! f)
2297 return 1;
2298 if (($2) < 0)
2299 {
2300 long int i = longval ();
2301 if (i != ($2))
2302 return 1;
2303 fprintf (f, "%ld", i);
2304 }
2305 else
2306 {
2307 unsigned long int i = ulongval ();
2308 if (i != ($2))
2309 return 1;
2310 fprintf (f, "%lu", i);
2311 }
2312 /* Do not output a trailing newline, as this causes \r\n confusion
2313 on some platforms. */
2314 return ferror (f) || fclose (f) != 0;
2315
2316 ;
2317 return 0;
2318 }
2319 _ACEOF
2320 if ac_fn_c_try_run "$LINENO"
2321 then :
2322 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2323 else case e in #(
2324 e) ac_retval=1 ;;
2325 esac
2326 fi
2327 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2328 conftest.$ac_objext conftest.beam conftest.$ac_ext
2329 rm -f conftest.val
2330
2331 fi
2332 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2333 as_fn_set_status $ac_retval
2334
2335 } # ac_fn_c_compute_int
2336 ac_configure_args_raw=
2337 for ac_arg
2338 do
2339 case $ac_arg in
2340 *\'*)
2341 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2342 esac
2343 as_fn_append ac_configure_args_raw " '$ac_arg'"
2344 done
2345
2346 case $ac_configure_args_raw in
2347 *$as_nl*)
2348 ac_safe_unquote= ;;
2349 *)
2350 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2351 ac_unsafe_a="$ac_unsafe_z#~"
2352 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2353 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2354 esac
2355
2356 cat >config.log <<_ACEOF
2357 This file contains any messages produced by compilers while
2358 running configure, to aid debugging if configure makes a mistake.
2359
2360 It was created by Kpathsea $as_me 6.4.2, which was
2361 generated by GNU Autoconf 2.72. Invocation command line was
2362
2363 $ $0$ac_configure_args_raw
2364
2365 _ACEOF
2366 exec 5>>config.log
2367 {
2368 cat <<_ASUNAME
2369 ## --------- ##
2370 ## Platform. ##
2371 ## --------- ##
2372
2373 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2374 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2375 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2376 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2377 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2378
2379 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2380 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2381
2382 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2383 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2384 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2385 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2386 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2387 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2388 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2389
2390 _ASUNAME
2391
2392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2393 for as_dir in $PATH
2394 do
2395 IFS=$as_save_IFS
2396 case $as_dir in #(((
2397 '') as_dir=./ ;;
2398 */) ;;
2399 *) as_dir=$as_dir/ ;;
2400 esac
2401 printf "%s\n" "PATH: $as_dir"
2402 done
2403 IFS=$as_save_IFS
2404
2405 } >&5
2406
2407 cat >&5 <<_ACEOF
2408
2409
2410 ## ----------- ##
2411 ## Core tests. ##
2412 ## ----------- ##
2413
2414 _ACEOF
2415
2416
2417 # Keep a trace of the command line.
2418 # Strip out --no-create and --no-recursion so they do not pile up.
2419 # Strip out --silent because we don't want to record it for future runs.
2420 # Also quote any args containing shell meta-characters.
2421 # Make two passes to allow for proper duplicate-argument suppression.
2422 ac_configure_args=
2423 ac_configure_args0=
2424 ac_configure_args1=
2425 ac_must_keep_next=false
2426 for ac_pass in 1 2
2427 do
2428 for ac_arg
2429 do
2430 case $ac_arg in
2431 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2432 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2433 | -silent | --silent | --silen | --sile | --sil)
2434 continue ;;
2435 *\'*)
2436 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2437 esac
2438 case $ac_pass in
2439 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2440 2)
2441 as_fn_append ac_configure_args1 " '$ac_arg'"
2442 if test $ac_must_keep_next = true; then
2443 ac_must_keep_next=false # Got value, back to normal.
2444 else
2445 case $ac_arg in
2446 *=* | --config-cache | -C | -disable-* | --disable-* \
2447 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2448 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2449 | -with-* | --with-* | -without-* | --without-* | --x)
2450 case "$ac_configure_args0 " in
2451 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2452 esac
2453 ;;
2454 -* ) ac_must_keep_next=true ;;
2455 esac
2456 fi
2457 as_fn_append ac_configure_args " '$ac_arg'"
2458 ;;
2459 esac
2460 done
2461 done
2462 { ac_configure_args0=; unset ac_configure_args0;}
2463 { ac_configure_args1=; unset ac_configure_args1;}
2464
2465 # When interrupted or exit'd, cleanup temporary files, and complete
2466 # config.log. We remove comments because anyway the quotes in there
2467 # would cause problems or look ugly.
2468 # WARNING: Use '\'' to represent an apostrophe within the trap.
2469 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2470 trap 'exit_status=$?
2471 # Sanitize IFS.
2472 IFS=" "" $as_nl"
2473 # Save into config.log some information that might help in debugging.
2474 {
2475 echo
2476
2477 printf "%s\n" "## ---------------- ##
2478 ## Cache variables. ##
2479 ## ---------------- ##"
2480 echo
2481 # The following way of writing the cache mishandles newlines in values,
2482 (
2483 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2484 eval ac_val=\$$ac_var
2485 case $ac_val in #(
2486 *${as_nl}*)
2487 case $ac_var in #(
2488 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2489 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2490 esac
2491 case $ac_var in #(
2492 _ | IFS | as_nl) ;; #(
2493 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2494 *) { eval $ac_var=; unset $ac_var;} ;;
2495 esac ;;
2496 esac
2497 done
2498 (set) 2>&1 |
2499 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2500 *${as_nl}ac_space=\ *)
2501 sed -n \
2502 "s/'\''/'\''\\\\'\'''\''/g;
2503 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2504 ;; #(
2505 *)
2506 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2507 ;;
2508 esac |
2509 sort
2510 )
2511 echo
2512
2513 printf "%s\n" "## ----------------- ##
2514 ## Output variables. ##
2515 ## ----------------- ##"
2516 echo
2517 for ac_var in $ac_subst_vars
2518 do
2519 eval ac_val=\$$ac_var
2520 case $ac_val in
2521 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2522 esac
2523 printf "%s\n" "$ac_var='\''$ac_val'\''"
2524 done | sort
2525 echo
2526
2527 if test -n "$ac_subst_files"; then
2528 printf "%s\n" "## ------------------- ##
2529 ## File substitutions. ##
2530 ## ------------------- ##"
2531 echo
2532 for ac_var in $ac_subst_files
2533 do
2534 eval ac_val=\$$ac_var
2535 case $ac_val in
2536 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2537 esac
2538 printf "%s\n" "$ac_var='\''$ac_val'\''"
2539 done | sort
2540 echo
2541 fi
2542
2543 if test -s confdefs.h; then
2544 printf "%s\n" "## ----------- ##
2545 ## confdefs.h. ##
2546 ## ----------- ##"
2547 echo
2548 cat confdefs.h
2549 echo
2550 fi
2551 test "$ac_signal" != 0 &&
2552 printf "%s\n" "$as_me: caught signal $ac_signal"
2553 printf "%s\n" "$as_me: exit $exit_status"
2554 } >&5
2555 rm -f core *.core core.conftest.* &&
2556 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2557 exit $exit_status
2558 ' 0
2559 for ac_signal in 1 2 13 15; do
2560 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2561 done
2562 ac_signal=0
2563
2564 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2565 rm -f -r conftest* confdefs.h
2566
2567 printf "%s\n" "/* confdefs.h */" > confdefs.h
2568
2569 # Predefined preprocessor variables.
2570
2571 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2572
2573 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2574
2575 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2576
2577 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2578
2579 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2580
2581 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2582
2583
2584 # Let the site file select an alternate cache file if it wants to.
2585 # Prefer an explicitly selected file to automatically selected ones.
2586 if test -n "$CONFIG_SITE"; then
2587 ac_site_files="$CONFIG_SITE"
2588 elif test "x$prefix" != xNONE; then
2589 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2590 else
2591 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2592 fi
2593
2594 for ac_site_file in $ac_site_files
2595 do
2596 case $ac_site_file in #(
2597 */*) :
2598 ;; #(
2599 *) :
2600 ac_site_file=./$ac_site_file ;;
2601 esac
2602 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2604 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2605 sed 's/^/| /' "$ac_site_file" >&5
2606 . "$ac_site_file" \
2607 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2608 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2609 as_fn_error $? "failed to load site script $ac_site_file
2610 See 'config.log' for more details" "$LINENO" 5; }
2611 fi
2612 done
2613
2614 if test -r "$cache_file"; then
2615 # Some versions of bash will fail to source /dev/null (special files
2616 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2617 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2619 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2620 case $cache_file in
2621 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2622 *) . "./$cache_file";;
2623 esac
2624 fi
2625 else
2626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2627 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2628 >$cache_file
2629 fi
2630
2631 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2632 # Test code for whether the C compiler supports C89 (global declarations)
2633 ac_c_conftest_c89_globals='
2634 /* Does the compiler advertise C89 conformance?
2635 Do not test the value of __STDC__, because some compilers set it to 0
2636 while being otherwise adequately conformant. */
2637 #if !defined __STDC__
2638 # error "Compiler does not advertise C89 conformance"
2639 #endif
2640
2641 #include <stddef.h>
2642 #include <stdarg.h>
2643 struct stat;
2644 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2645 struct buf { int x; };
2646 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2647 static char *e (char **p, int i)
2648 {
2649 return p[i];
2650 }
2651 static char *f (char * (*g) (char **, int), char **p, ...)
2652 {
2653 char *s;
2654 va_list v;
2655 va_start (v,p);
2656 s = g (p, va_arg (v,int));
2657 va_end (v);
2658 return s;
2659 }
2660
2661 /* C89 style stringification. */
2662 #define noexpand_stringify(a) #a
2663 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2664
2665 /* C89 style token pasting. Exercises some of the corner cases that
2666 e.g. old MSVC gets wrong, but not very hard. */
2667 #define noexpand_concat(a,b) a##b
2668 #define expand_concat(a,b) noexpand_concat(a,b)
2669 extern int vA;
2670 extern int vbee;
2671 #define aye A
2672 #define bee B
2673 int *pvA = &expand_concat(v,aye);
2674 int *pvbee = &noexpand_concat(v,bee);
2675
2676 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2677 function prototypes and stuff, but not \xHH hex character constants.
2678 These do not provoke an error unfortunately, instead are silently treated
2679 as an "x". The following induces an error, until -std is added to get
2680 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2681 array size at least. It is necessary to write \x00 == 0 to get something
2682 that is true only with -std. */
2683 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2684
2685 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2686 inside strings and character constants. */
2687 #define FOO(x) '\''x'\''
2688 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2689
2690 int test (int i, double x);
2691 struct s1 {int (*f) (int a);};
2692 struct s2 {int (*f) (double a);};
2693 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2694 int, int);'
2695
2696 # Test code for whether the C compiler supports C89 (body of main).
2697 ac_c_conftest_c89_main='
2698 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2699 '
2700
2701 # Test code for whether the C compiler supports C99 (global declarations)
2702 ac_c_conftest_c99_globals='
2703 /* Does the compiler advertise C99 conformance? */
2704 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2705 # error "Compiler does not advertise C99 conformance"
2706 #endif
2707
2708 // See if C++-style comments work.
2709
2710 #include <stdbool.h>
2711 extern int puts (const char *);
2712 extern int printf (const char *, ...);
2713 extern int dprintf (int, const char *, ...);
2714 extern void *malloc (size_t);
2715 extern void free (void *);
2716
2717 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2718 // dprintf is used instead of fprintf to avoid needing to declare
2719 // FILE and stderr.
2720 #define debug(...) dprintf (2, __VA_ARGS__)
2721 #define showlist(...) puts (#__VA_ARGS__)
2722 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2723 static void
2724 test_varargs_macros (void)
2725 {
2726 int x = 1234;
2727 int y = 5678;
2728 debug ("Flag");
2729 debug ("X = %d\n", x);
2730 showlist (The first, second, and third items.);
2731 report (x>y, "x is %d but y is %d", x, y);
2732 }
2733
2734 // Check long long types.
2735 #define BIG64 18446744073709551615ull
2736 #define BIG32 4294967295ul
2737 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2738 #if !BIG_OK
2739 #error "your preprocessor is broken"
2740 #endif
2741 #if BIG_OK
2742 #else
2743 #error "your preprocessor is broken"
2744 #endif
2745 static long long int bignum = -9223372036854775807LL;
2746 static unsigned long long int ubignum = BIG64;
2747
2748 struct incomplete_array
2749 {
2750 int datasize;
2751 double data[];
2752 };
2753
2754 struct named_init {
2755 int number;
2756 const wchar_t *name;
2757 double average;
2758 };
2759
2760 typedef const char *ccp;
2761
2762 static inline int
2763 test_restrict (ccp restrict text)
2764 {
2765 // Iterate through items via the restricted pointer.
2766 // Also check for declarations in for loops.
2767 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2768 continue;
2769 return 0;
2770 }
2771
2772 // Check varargs and va_copy.
2773 static bool
2774 test_varargs (const char *format, ...)
2775 {
2776 va_list args;
2777 va_start (args, format);
2778 va_list args_copy;
2779 va_copy (args_copy, args);
2780
2781 const char *str = "";
2782 int number = 0;
2783 float fnumber = 0;
2784
2785 while (*format)
2786 {
2787 switch (*format++)
2788 {
2789 case '\''s'\'': // string
2790 str = va_arg (args_copy, const char *);
2791 break;
2792 case '\''d'\'': // int
2793 number = va_arg (args_copy, int);
2794 break;
2795 case '\''f'\'': // float
2796 fnumber = va_arg (args_copy, double);
2797 break;
2798 default:
2799 break;
2800 }
2801 }
2802 va_end (args_copy);
2803 va_end (args);
2804
2805 return *str && number && fnumber;
2806 }
2807 '
2808
2809 # Test code for whether the C compiler supports C99 (body of main).
2810 ac_c_conftest_c99_main='
2811 // Check bool.
2812 _Bool success = false;
2813 success |= (argc != 0);
2814
2815 // Check restrict.
2816 if (test_restrict ("String literal") == 0)
2817 success = true;
2818 char *restrict newvar = "Another string";
2819
2820 // Check varargs.
2821 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2822 test_varargs_macros ();
2823
2824 // Check flexible array members.
2825 struct incomplete_array *ia =
2826 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2827 ia->datasize = 10;
2828 for (int i = 0; i < ia->datasize; ++i)
2829 ia->data[i] = i * 1.234;
2830 // Work around memory leak warnings.
2831 free (ia);
2832
2833 // Check named initializers.
2834 struct named_init ni = {
2835 .number = 34,
2836 .name = L"Test wide string",
2837 .average = 543.34343,
2838 };
2839
2840 ni.number = 58;
2841
2842 int dynamic_array[ni.number];
2843 dynamic_array[0] = argv[0][0];
2844 dynamic_array[ni.number - 1] = 543;
2845
2846 // work around unused variable warnings
2847 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2848 || dynamic_array[ni.number - 1] != 543);
2849 '
2850
2851 # Test code for whether the C compiler supports C11 (global declarations)
2852 ac_c_conftest_c11_globals='
2853 /* Does the compiler advertise C11 conformance? */
2854 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2855 # error "Compiler does not advertise C11 conformance"
2856 #endif
2857
2858 // Check _Alignas.
2859 char _Alignas (double) aligned_as_double;
2860 char _Alignas (0) no_special_alignment;
2861 extern char aligned_as_int;
2862 char _Alignas (0) _Alignas (int) aligned_as_int;
2863
2864 // Check _Alignof.
2865 enum
2866 {
2867 int_alignment = _Alignof (int),
2868 int_array_alignment = _Alignof (int[100]),
2869 char_alignment = _Alignof (char)
2870 };
2871 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2872
2873 // Check _Noreturn.
2874 int _Noreturn does_not_return (void) { for (;;) continue; }
2875
2876 // Check _Static_assert.
2877 struct test_static_assert
2878 {
2879 int x;
2880 _Static_assert (sizeof (int) <= sizeof (long int),
2881 "_Static_assert does not work in struct");
2882 long int y;
2883 };
2884
2885 // Check UTF-8 literals.
2886 #define u8 syntax error!
2887 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2888
2889 // Check duplicate typedefs.
2890 typedef long *long_ptr;
2891 typedef long int *long_ptr;
2892 typedef long_ptr long_ptr;
2893
2894 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2895 struct anonymous
2896 {
2897 union {
2898 struct { int i; int j; };
2899 struct { int k; long int l; } w;
2900 };
2901 int m;
2902 } v1;
2903 '
2904
2905 # Test code for whether the C compiler supports C11 (body of main).
2906 ac_c_conftest_c11_main='
2907 _Static_assert ((offsetof (struct anonymous, i)
2908 == offsetof (struct anonymous, w.k)),
2909 "Anonymous union alignment botch");
2910 v1.i = 2;
2911 v1.w.k = 5;
2912 ok |= v1.i != 5;
2913 '
2914
2915 # Test code for whether the C compiler supports C11 (complete).
2916 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2917 ${ac_c_conftest_c99_globals}
2918 ${ac_c_conftest_c11_globals}
2919
2920 int
2921 main (int argc, char **argv)
2922 {
2923 int ok = 0;
2924 ${ac_c_conftest_c89_main}
2925 ${ac_c_conftest_c99_main}
2926 ${ac_c_conftest_c11_main}
2927 return ok;
2928 }
2929 "
2930
2931 # Test code for whether the C compiler supports C99 (complete).
2932 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2933 ${ac_c_conftest_c99_globals}
2934
2935 int
2936 main (int argc, char **argv)
2937 {
2938 int ok = 0;
2939 ${ac_c_conftest_c89_main}
2940 ${ac_c_conftest_c99_main}
2941 return ok;
2942 }
2943 "
2944
2945 # Test code for whether the C compiler supports C89 (complete).
2946 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2947
2948 int
2949 main (int argc, char **argv)
2950 {
2951 int ok = 0;
2952 ${ac_c_conftest_c89_main}
2953 return ok;
2954 }
2955 "
2956
2957 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2958 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2959 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2960 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2961 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2962 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2963 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2964 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2965 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2966 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2967
2968 # Auxiliary files required by this configure script.
2969 ac_aux_files="config.guess config.sub ltmain.sh ar-lib compile missing install-sh"
2970
2971 # Locations in which to look for auxiliary files.
2972 ac_aux_dir_candidates="${srcdir}/../../build-aux"
2973
2974 # Search for a directory containing all of the required auxiliary files,
2975 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2976 # If we don't find one directory that contains all the files we need,
2977 # we report the set of missing files from the *first* directory in
2978 # $ac_aux_dir_candidates and give up.
2979 ac_missing_aux_files=""
2980 ac_first_candidate=:
2981 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2983 as_found=false
2984 for as_dir in $ac_aux_dir_candidates
2985 do
2986 IFS=$as_save_IFS
2987 case $as_dir in #(((
2988 '') as_dir=./ ;;
2989 */) ;;
2990 *) as_dir=$as_dir/ ;;
2991 esac
2992 as_found=:
2993
2994 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2995 ac_aux_dir_found=yes
2996 ac_install_sh=
2997 for ac_aux in $ac_aux_files
2998 do
2999 # As a special case, if "install-sh" is required, that requirement
3000 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3001 # and $ac_install_sh is set appropriately for whichever one is found.
3002 if test x"$ac_aux" = x"install-sh"
3003 then
3004 if test -f "${as_dir}install-sh"; then
3005 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
3006 ac_install_sh="${as_dir}install-sh -c"
3007 elif test -f "${as_dir}install.sh"; then
3008 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
3009 ac_install_sh="${as_dir}install.sh -c"
3010 elif test -f "${as_dir}shtool"; then
3011 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
3012 ac_install_sh="${as_dir}shtool install -c"
3013 else
3014 ac_aux_dir_found=no
3015 if $ac_first_candidate; then
3016 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3017 else
3018 break
3019 fi
3020 fi
3021 else
3022 if test -f "${as_dir}${ac_aux}"; then
3023 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
3024 else
3025 ac_aux_dir_found=no
3026 if $ac_first_candidate; then
3027 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3028 else
3029 break
3030 fi
3031 fi
3032 fi
3033 done
3034 if test "$ac_aux_dir_found" = yes; then
3035 ac_aux_dir="$as_dir"
3036 break
3037 fi
3038 ac_first_candidate=false
3039
3040 as_found=false
3041 done
3042 IFS=$as_save_IFS
3043 if $as_found
3044 then :
3045
3046 else case e in #(
3047 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
3048 esac
3049 fi
3050
3051
3052 # These three variables are undocumented and unsupported,
3053 # and are intended to be withdrawn in a future Autoconf release.
3054 # They can cause serious problems if a builder's source tree is in a directory
3055 # whose full name contains unusual characters.
3056 if test -f "${ac_aux_dir}config.guess"; then
3057 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3058 fi
3059 if test -f "${ac_aux_dir}config.sub"; then
3060 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3061 fi
3062 if test -f "$ac_aux_dir/configure"; then
3063 ac_configure="$SHELL ${ac_aux_dir}configure"
3064 fi
3065
3066 # Check that the precious variables saved in the cache have kept the same
3067 # value.
3068 ac_cache_corrupted=false
3069 for ac_var in $ac_precious_vars; do
3070 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3071 eval ac_new_set=\$ac_env_${ac_var}_set
3072 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3073 eval ac_new_val=\$ac_env_${ac_var}_value
3074 case $ac_old_set,$ac_new_set in
3075 set,)
3076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
3077 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
3078 ac_cache_corrupted=: ;;
3079 ,set)
3080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
3081 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
3082 ac_cache_corrupted=: ;;
3083 ,);;
3084 *)
3085 if test "x$ac_old_val" != "x$ac_new_val"; then
3086 # differences in whitespace do not lead to failure.
3087 ac_old_val_w=`echo x $ac_old_val`
3088 ac_new_val_w=`echo x $ac_new_val`
3089 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
3091 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
3092 ac_cache_corrupted=:
3093 else
3094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
3095 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
3096 eval $ac_var=\$ac_old_val
3097 fi
3098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
3099 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
3100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
3101 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
3102 fi;;
3103 esac
3104 # Pass precious variables to config.status.
3105 if test "$ac_new_set" = set; then
3106 case $ac_new_val in
3107 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3108 *) ac_arg=$ac_var=$ac_new_val ;;
3109 esac
3110 case " $ac_configure_args " in
3111 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3112 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3113 esac
3114 fi
3115 done
3116 if $ac_cache_corrupted; then
3117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3118 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3120 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3121 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
3122 and start over" "$LINENO" 5
3123 fi
3124 ## -------------------- ##
3125 ## Main body of script. ##
3126 ## -------------------- ##
3127
3128 ac_ext=c
3129 ac_cpp='$CPP $CPPFLAGS'
3130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3133
3134
3135
3136
3137
3138
3139
3140 KPSEVERSION=6.4.2
3141
3142
3143 KPSE_LT_VERSINFO=10:2:4
3144
3145
3146
3147 WEB2CVERSION=" (TeX Live 2026)"
3148
3149
3150 am__api_version='1.18'
3151
3152
3153
3154 # Find a good install program. We prefer a C program (faster),
3155 # so one script is as good as another. But avoid the broken or
3156 # incompatible versions:
3157 # SysV /etc/install, /usr/sbin/install
3158 # SunOS /usr/etc/install
3159 # IRIX /sbin/install
3160 # AIX /bin/install
3161 # AmigaOS /C/install, which installs bootblocks on floppy discs
3162 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3163 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3164 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3165 # OS/2's system install, which has a completely different semantic
3166 # ./install, which can be erroneously created by make from ./install.sh.
3167 # Reject install programs that cannot install multiple files.
3168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3169 printf %s "checking for a BSD-compatible install... " >&6; }
3170 if test -z "$INSTALL"; then
3171 if test ${ac_cv_path_install+y}
3172 then :
3173 printf %s "(cached) " >&6
3174 else case e in #(
3175 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3176 for as_dir in $PATH
3177 do
3178 IFS=$as_save_IFS
3179 case $as_dir in #(((
3180 '') as_dir=./ ;;
3181 */) ;;
3182 *) as_dir=$as_dir/ ;;
3183 esac
3184 # Account for fact that we put trailing slashes in our PATH walk.
3185 case $as_dir in #((
3186 ./ | /[cC]/* | \
3187 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3188 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3189 /usr/ucb/* ) ;;
3190 *)
3191 # OSF1 and SCO ODT 3.0 have their own names for install.
3192 # Don't use installbsd from OSF since it installs stuff as root
3193 # by default.
3194 for ac_prog in ginstall scoinst install; do
3195 for ac_exec_ext in '' $ac_executable_extensions; do
3196 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3197 if test $ac_prog = install &&
3198 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3199 # AIX install. It has an incompatible calling convention.
3200 :
3201 elif test $ac_prog = install &&
3202 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3203 # program-specific install script used by HP pwplus--don't use.
3204 :
3205 else
3206 rm -rf conftest.one conftest.two conftest.dir
3207 echo one > conftest.one
3208 echo two > conftest.two
3209 mkdir conftest.dir
3210 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3211 test -s conftest.one && test -s conftest.two &&
3212 test -s conftest.dir/conftest.one &&
3213 test -s conftest.dir/conftest.two
3214 then
3215 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3216 break 3
3217 fi
3218 fi
3219 fi
3220 done
3221 done
3222 ;;
3223 esac
3224
3225 done
3226 IFS=$as_save_IFS
3227
3228 rm -rf conftest.one conftest.two conftest.dir
3229 ;;
3230 esac
3231 fi
3232 if test ${ac_cv_path_install+y}; then
3233 INSTALL=$ac_cv_path_install
3234 else
3235 # As a last resort, use the slow shell script. Don't cache a
3236 # value for INSTALL within a source directory, because that will
3237 # break other packages using the cache if that directory is
3238 # removed, or if the value is a relative name.
3239 INSTALL=$ac_install_sh
3240 fi
3241 fi
3242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3243 printf "%s\n" "$INSTALL" >&6; }
3244
3245 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3246 # It thinks the first close brace ends the variable substitution.
3247 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3248
3249 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3250
3251 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3252
3253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
3254 printf %s "checking whether sleep supports fractional seconds... " >&6; }
3255 if test ${am_cv_sleep_fractional_seconds+y}
3256 then :
3257 printf %s "(cached) " >&6
3258 else case e in #(
3259 e) if sleep 0.001 2>/dev/null
3260 then :
3261 am_cv_sleep_fractional_seconds=yes
3262 else case e in #(
3263 e) am_cv_sleep_fractional_seconds=no ;;
3264 esac
3265 fi
3266 ;;
3267 esac
3268 fi
3269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
3270 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
3271
3272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
3273 printf %s "checking filesystem timestamp resolution... " >&6; }
3274 if test ${am_cv_filesystem_timestamp_resolution+y}
3275 then :
3276 printf %s "(cached) " >&6
3277 else case e in #(
3278 e) # Default to the worst case.
3279 am_cv_filesystem_timestamp_resolution=2
3280
3281 # Only try to go finer than 1 sec if sleep can do it.
3282 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
3283 # - 1 sec is not much of a win compared to 2 sec, and
3284 # - it takes 2 seconds to perform the test whether 1 sec works.
3285 #
3286 # Instead, just use the default 2s on platforms that have 1s resolution,
3287 # accept the extra 1s delay when using $sleep in the Automake tests, in
3288 # exchange for not incurring the 2s delay for running the test for all
3289 # packages.
3290 #
3291 am_try_resolutions=
3292 if test "$am_cv_sleep_fractional_seconds" = yes; then
3293 # Even a millisecond often causes a bunch of false positives,
3294 # so just try a hundredth of a second. The time saved between .001 and
3295 # .01 is not terribly consequential.
3296 am_try_resolutions="0.01 0.1 $am_try_resolutions"
3297 fi
3298
3299 # In order to catch current-generation FAT out, we must *modify* files
3300 # that already exist; the *creation* timestamp is finer. Use names
3301 # that make ls -t sort them differently when they have equal
3302 # timestamps than when they have distinct timestamps, keeping
3303 # in mind that ls -t prints the *newest* file first.
3304 rm -f conftest.ts?
3305 : > conftest.ts1
3306 : > conftest.ts2
3307 : > conftest.ts3
3308
3309 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
3310 # clobber the current shell's arguments. (Outer-level square brackets
3311 # are removed by m4; they're present so that m4 does not expand
3312 # <dollar><star>; be careful, easy to get confused.)
3313 if (
3314 set X `ls -t conftest.ts[12]` &&
3315 {
3316 test "$*" != "X conftest.ts1 conftest.ts2" ||
3317 test "$*" != "X conftest.ts2 conftest.ts1";
3318 }
3319 ); then :; else
3320 # If neither matched, then we have a broken ls. This can happen
3321 # if, for instance, CONFIG_SHELL is bash and it inherits a
3322 # broken ls alias from the environment. This has actually
3323 # happened. Such a system could not be considered "sane".
3324 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
3325 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3326 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3327 as_fn_error $? "ls -t produces unexpected output.
3328 Make sure there is not a broken ls alias in your environment.
3329 See 'config.log' for more details" "$LINENO" 5; }
3330 fi
3331
3332 for am_try_res in $am_try_resolutions; do
3333 # Any one fine-grained sleep might happen to cross the boundary
3334 # between two values of a coarser actual resolution, but if we do
3335 # two fine-grained sleeps in a row, at least one of them will fall
3336 # entirely within a coarse interval.
3337 echo alpha > conftest.ts1
3338 sleep $am_try_res
3339 echo beta > conftest.ts2
3340 sleep $am_try_res
3341 echo gamma > conftest.ts3
3342
3343 # We assume that 'ls -t' will make use of high-resolution
3344 # timestamps if the operating system supports them at all.
3345 if (set X `ls -t conftest.ts?` &&
3346 test "$2" = conftest.ts3 &&
3347 test "$3" = conftest.ts2 &&
3348 test "$4" = conftest.ts1); then
3349 #
3350 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
3351 # because we don't need to test make.
3352 make_ok=true
3353 if test $am_try_res != 1; then
3354 # But if we've succeeded so far with a subsecond resolution, we
3355 # have one more thing to check: make. It can happen that
3356 # everything else supports the subsecond mtimes, but make doesn't;
3357 # notably on macOS, which ships make 3.81 from 2006 (the last one
3358 # released under GPLv2). https://bugs.gnu.org/68808
3359 #
3360 # We test $MAKE if it is defined in the environment, else "make".
3361 # It might get overridden later, but our hope is that in practice
3362 # it does not matter: it is the system "make" which is (by far)
3363 # the most likely to be broken, whereas if the user overrides it,
3364 # probably they did so with a better, or at least not worse, make.
3365 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
3366 #
3367 # Create a Makefile (real tab character here):
3368 rm -f conftest.mk
3369 echo 'conftest.ts1: conftest.ts2' >conftest.mk
3370 echo ' touch conftest.ts2' >>conftest.mk
3371 #
3372 # Now, running
3373 # touch conftest.ts1; touch conftest.ts2; make
3374 # should touch ts1 because ts2 is newer. This could happen by luck,
3375 # but most often, it will fail if make's support is insufficient. So
3376 # test for several consecutive successes.
3377 #
3378 # (We reuse conftest.ts[12] because we still want to modify existing
3379 # files, not create new ones, per above.)
3380 n=0
3381 make=${MAKE-make}
3382 until test $n -eq 3; do
3383 echo one > conftest.ts1
3384 sleep $am_try_res
3385 echo two > conftest.ts2 # ts2 should now be newer than ts1
3386 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
3387 make_ok=false
3388 break # out of $n loop
3389 fi
3390 n=`expr $n + 1`
3391 done
3392 fi
3393 #
3394 if $make_ok; then
3395 # Everything we know to check worked out, so call this resolution good.
3396 am_cv_filesystem_timestamp_resolution=$am_try_res
3397 break # out of $am_try_res loop
3398 fi
3399 # Otherwise, we'll go on to check the next resolution.
3400 fi
3401 done
3402 rm -f conftest.ts?
3403 # (end _am_filesystem_timestamp_resolution)
3404 ;;
3405 esac
3406 fi
3407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
3408 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
3409
3410 # This check should not be cached, as it may vary across builds of
3411 # different projects.
3412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3413 printf %s "checking whether build environment is sane... " >&6; }
3414 # Reject unsafe characters in $srcdir or the absolute working directory
3415 # name. Accept space and tab only in the latter.
3416 am_lf='
3417 '
3418 case `pwd` in
3419 *[\\\"\#\$\&\'\`$am_lf]*)
3420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3421 printf "%s\n" "no" >&6; }
3422 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3423 esac
3424 case $srcdir in
3425 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3427 printf "%s\n" "no" >&6; }
3428 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3429 esac
3430
3431 # Do 'set' in a subshell so we don't clobber the current shell's
3432 # arguments. Must try -L first in case configure is actually a
3433 # symlink; some systems play weird games with the mod time of symlinks
3434 # (eg FreeBSD returns the mod time of the symlink's containing
3435 # directory).
3436 am_build_env_is_sane=no
3437 am_has_slept=no
3438 rm -f conftest.file
3439 for am_try in 1 2; do
3440 echo "timestamp, slept: $am_has_slept" > conftest.file
3441 if (
3442 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3443 if test "$*" = "X"; then
3444 # -L didn't work.
3445 set X `ls -t "$srcdir/configure" conftest.file`
3446 fi
3447 test "$2" = conftest.file
3448 ); then
3449 am_build_env_is_sane=yes
3450 break
3451 fi
3452 # Just in case.
3453 sleep "$am_cv_filesystem_timestamp_resolution"
3454 am_has_slept=yes
3455 done
3456
3457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
3458 printf "%s\n" "$am_build_env_is_sane" >&6; }
3459 if test "$am_build_env_is_sane" = no; then
3460 as_fn_error $? "newly created file is older than distributed files!
3461 Check your system clock" "$LINENO" 5
3462 fi
3463
3464 # If we didn't sleep, we still need to ensure time stamps of config.status and
3465 # generated files are strictly newer.
3466 am_sleep_pid=
3467 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
3468 then :
3469
3470 else case e in #(
3471 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
3472 am_sleep_pid=$!
3473 ;;
3474 esac
3475 fi
3476
3477 rm -f conftest.file
3478
3479 test "$program_prefix" != NONE &&
3480 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3481 # Use a double $ so make ignores it.
3482 test "$program_suffix" != NONE &&
3483 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3484 # Double any \ or $.
3485 # By default was 's,x,x', remove it if useless.
3486 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3487 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3488
3489
3490 # Expand $ac_aux_dir to an absolute path.
3491 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3492
3493
3494 if test x"${MISSING+set}" != xset; then
3495 MISSING="\${SHELL} '$am_aux_dir/missing'"
3496 fi
3497 # Use eval to expand $SHELL
3498 if eval "$MISSING --is-lightweight"; then
3499 am_missing_run="$MISSING "
3500 else
3501 am_missing_run=
3502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3503 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3504 fi
3505
3506 if test x"${install_sh+set}" != xset; then
3507 case $am_aux_dir in
3508 *\ * | *\ *)
3509 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3510 *)
3511 install_sh="\${SHELL} $am_aux_dir/install-sh"
3512 esac
3513 fi
3514
3515 # Installed binaries are usually stripped using 'strip' when the user
3516 # run "make install-strip". However 'strip' might not be the right
3517 # tool to use in cross-compilation environments, therefore Automake
3518 # will honor the 'STRIP' environment variable to overrule this program.
3519 if test "$cross_compiling" != no; then
3520 if test -n "$ac_tool_prefix"; then
3521 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3522 set dummy ${ac_tool_prefix}strip; ac_word=$2
3523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3524 printf %s "checking for $ac_word... " >&6; }
3525 if test ${ac_cv_prog_STRIP+y}
3526 then :
3527 printf %s "(cached) " >&6
3528 else case e in #(
3529 e) if test -n "$STRIP"; then
3530 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3531 else
3532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3533 for as_dir in $PATH
3534 do
3535 IFS=$as_save_IFS
3536 case $as_dir in #(((
3537 '') as_dir=./ ;;
3538 */) ;;
3539 *) as_dir=$as_dir/ ;;
3540 esac
3541 for ac_exec_ext in '' $ac_executable_extensions; do
3542 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3543 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3544 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3545 break 2
3546 fi
3547 done
3548 done
3549 IFS=$as_save_IFS
3550
3551 fi ;;
3552 esac
3553 fi
3554 STRIP=$ac_cv_prog_STRIP
3555 if test -n "$STRIP"; then
3556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3557 printf "%s\n" "$STRIP" >&6; }
3558 else
3559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3560 printf "%s\n" "no" >&6; }
3561 fi
3562
3563
3564 fi
3565 if test -z "$ac_cv_prog_STRIP"; then
3566 ac_ct_STRIP=$STRIP
3567 # Extract the first word of "strip", so it can be a program name with args.
3568 set dummy strip; ac_word=$2
3569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3570 printf %s "checking for $ac_word... " >&6; }
3571 if test ${ac_cv_prog_ac_ct_STRIP+y}
3572 then :
3573 printf %s "(cached) " >&6
3574 else case e in #(
3575 e) if test -n "$ac_ct_STRIP"; then
3576 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3577 else
3578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3579 for as_dir in $PATH
3580 do
3581 IFS=$as_save_IFS
3582 case $as_dir in #(((
3583 '') as_dir=./ ;;
3584 */) ;;
3585 *) as_dir=$as_dir/ ;;
3586 esac
3587 for ac_exec_ext in '' $ac_executable_extensions; do
3588 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3589 ac_cv_prog_ac_ct_STRIP="strip"
3590 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3591 break 2
3592 fi
3593 done
3594 done
3595 IFS=$as_save_IFS
3596
3597 fi ;;
3598 esac
3599 fi
3600 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3601 if test -n "$ac_ct_STRIP"; then
3602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3603 printf "%s\n" "$ac_ct_STRIP" >&6; }
3604 else
3605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3606 printf "%s\n" "no" >&6; }
3607 fi
3608
3609 if test "x$ac_ct_STRIP" = x; then
3610 STRIP=":"
3611 else
3612 case $cross_compiling:$ac_tool_warned in
3613 yes:)
3614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3615 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3616 ac_tool_warned=yes ;;
3617 esac
3618 STRIP=$ac_ct_STRIP
3619 fi
3620 else
3621 STRIP="$ac_cv_prog_STRIP"
3622 fi
3623
3624 fi
3625 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3626
3627
3628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3629 printf %s "checking for a race-free mkdir -p... " >&6; }
3630 if test -z "$MKDIR_P"; then
3631 if test ${ac_cv_path_mkdir+y}
3632 then :
3633 printf %s "(cached) " >&6
3634 else case e in #(
3635 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3636 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3637 do
3638 IFS=$as_save_IFS
3639 case $as_dir in #(((
3640 '') as_dir=./ ;;
3641 */) ;;
3642 *) as_dir=$as_dir/ ;;
3643 esac
3644 for ac_prog in mkdir gmkdir; do
3645 for ac_exec_ext in '' $ac_executable_extensions; do
3646 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3647 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3648 'mkdir ('*'coreutils) '* | \
3649 *'BusyBox '* | \
3650 'mkdir (fileutils) '4.1*)
3651 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3652 break 3;;
3653 esac
3654 done
3655 done
3656 done
3657 IFS=$as_save_IFS
3658 ;;
3659 esac
3660 fi
3661
3662 test -d ./--version && rmdir ./--version
3663 if test ${ac_cv_path_mkdir+y}; then
3664 MKDIR_P="$ac_cv_path_mkdir -p"
3665 else
3666 # As a last resort, use plain mkdir -p,
3667 # in the hope it doesn't have the bugs of ancient mkdir.
3668 MKDIR_P='mkdir -p'
3669 fi
3670 fi
3671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3672 printf "%s\n" "$MKDIR_P" >&6; }
3673
3674 for ac_prog in gawk mawk nawk awk
3675 do
3676 # Extract the first word of "$ac_prog", so it can be a program name with args.
3677 set dummy $ac_prog; ac_word=$2
3678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3679 printf %s "checking for $ac_word... " >&6; }
3680 if test ${ac_cv_prog_AWK+y}
3681 then :
3682 printf %s "(cached) " >&6
3683 else case e in #(
3684 e) if test -n "$AWK"; then
3685 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3686 else
3687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3688 for as_dir in $PATH
3689 do
3690 IFS=$as_save_IFS
3691 case $as_dir in #(((
3692 '') as_dir=./ ;;
3693 */) ;;
3694 *) as_dir=$as_dir/ ;;
3695 esac
3696 for ac_exec_ext in '' $ac_executable_extensions; do
3697 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3698 ac_cv_prog_AWK="$ac_prog"
3699 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3700 break 2
3701 fi
3702 done
3703 done
3704 IFS=$as_save_IFS
3705
3706 fi ;;
3707 esac
3708 fi
3709 AWK=$ac_cv_prog_AWK
3710 if test -n "$AWK"; then
3711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3712 printf "%s\n" "$AWK" >&6; }
3713 else
3714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3715 printf "%s\n" "no" >&6; }
3716 fi
3717
3718
3719 test -n "$AWK" && break
3720 done
3721
3722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3723 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3724 set x ${MAKE-make}
3725 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3726 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3727 then :
3728 printf %s "(cached) " >&6
3729 else case e in #(
3730 e) cat >conftest.make <<\_ACEOF
3731 SHELL = /bin/sh
3732 all:
3733 @echo '@@@%%%=$(MAKE)=@@@%%%'
3734 _ACEOF
3735 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3736 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3737 *@@@%%%=?*=@@@%%%*)
3738 eval ac_cv_prog_make_${ac_make}_set=yes;;
3739 *)
3740 eval ac_cv_prog_make_${ac_make}_set=no;;
3741 esac
3742 rm -f conftest.make ;;
3743 esac
3744 fi
3745 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3747 printf "%s\n" "yes" >&6; }
3748 SET_MAKE=
3749 else
3750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3751 printf "%s\n" "no" >&6; }
3752 SET_MAKE="MAKE=${MAKE-make}"
3753 fi
3754
3755 rm -rf .tst 2>/dev/null
3756 mkdir .tst 2>/dev/null
3757 if test -d .tst; then
3758 am__leading_dot=.
3759 else
3760 am__leading_dot=_
3761 fi
3762 rmdir .tst 2>/dev/null
3763
3764 AM_DEFAULT_VERBOSITY=1
3765 # Check whether --enable-silent-rules was given.
3766 if test ${enable_silent_rules+y}
3767 then :
3768 enableval=$enable_silent_rules;
3769 fi
3770
3771 am_make=${MAKE-make}
3772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3773 printf %s "checking whether $am_make supports nested variables... " >&6; }
3774 if test ${am_cv_make_support_nested_variables+y}
3775 then :
3776 printf %s "(cached) " >&6
3777 else case e in #(
3778 e) if printf "%s\n" 'TRUE=$(BAR$(V))
3779 BAR0=false
3780 BAR1=true
3781 V=1
3782 am__doit:
3783 @$(TRUE)
3784 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3785 am_cv_make_support_nested_variables=yes
3786 else
3787 am_cv_make_support_nested_variables=no
3788 fi ;;
3789 esac
3790 fi
3791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3792 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3793 AM_BACKSLASH='\'
3794
3795 am__rm_f_notfound=
3796 if (rm -f && rm -fr && rm -rf) 2>/dev/null
3797 then :
3798
3799 else case e in #(
3800 e) am__rm_f_notfound='""' ;;
3801 esac
3802 fi
3803
3804
3805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
3806 printf %s "checking xargs -n works... " >&6; }
3807 if test ${am_cv_xargs_n_works+y}
3808 then :
3809 printf %s "(cached) " >&6
3810 else case e in #(
3811 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
3812 3"
3813 then :
3814 am_cv_xargs_n_works=yes
3815 else case e in #(
3816 e) am_cv_xargs_n_works=no ;;
3817 esac
3818 fi ;;
3819 esac
3820 fi
3821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
3822 printf "%s\n" "$am_cv_xargs_n_works" >&6; }
3823 if test "$am_cv_xargs_n_works" = yes
3824 then :
3825 am__xargs_n='xargs -n'
3826 else case e in #(
3827 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
3828 ;;
3829 esac
3830 fi
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841 DEPDIR="${am__leading_dot}deps"
3842
3843 ac_config_commands="$ac_config_commands depfiles"
3844
3845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3846 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3847 cat > confinc.mk << 'END'
3848 am__doit:
3849 @echo this is the am__doit target >confinc.out
3850 .PHONY: am__doit
3851 END
3852 am__include="#"
3853 am__quote=
3854 # BSD make does it like this.
3855 echo '.include "confinc.mk" # ignored' > confmf.BSD
3856 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3857 echo 'include confinc.mk # ignored' > confmf.GNU
3858 _am_result=no
3859 for s in GNU BSD; do
3860 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3861 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3862 ac_status=$?
3863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864 (exit $ac_status); }
3865 case $?:`cat confinc.out 2>/dev/null` in #(
3866 '0:this is the am__doit target') :
3867 case $s in #(
3868 BSD) :
3869 am__include='.include' am__quote='"' ;; #(
3870 *) :
3871 am__include='include' am__quote='' ;;
3872 esac ;; #(
3873 *) :
3874 ;;
3875 esac
3876 if test "$am__include" != "#"; then
3877 _am_result="yes ($s style)"
3878 break
3879 fi
3880 done
3881 rm -f confinc.* confmf.*
3882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3883 printf "%s\n" "${_am_result}" >&6; }
3884
3885 # Check whether --enable-dependency-tracking was given.
3886 if test ${enable_dependency_tracking+y}
3887 then :
3888 enableval=$enable_dependency_tracking;
3889 fi
3890
3891 if test "x$enable_dependency_tracking" != xno; then
3892 am_depcomp="$ac_aux_dir/depcomp"
3893 AMDEPBACKSLASH='\'
3894 am__nodep='_no'
3895 fi
3896 if test "x$enable_dependency_tracking" != xno; then
3897 AMDEP_TRUE=
3898 AMDEP_FALSE='#'
3899 else
3900 AMDEP_TRUE='#'
3901 AMDEP_FALSE=
3902 fi
3903
3904
3905 ac_ext=c
3906 ac_cpp='$CPP $CPPFLAGS'
3907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3910 if test -n "$ac_tool_prefix"; then
3911 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3912 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3914 printf %s "checking for $ac_word... " >&6; }
3915 if test ${ac_cv_prog_CC+y}
3916 then :
3917 printf %s "(cached) " >&6
3918 else case e in #(
3919 e) if test -n "$CC"; then
3920 ac_cv_prog_CC="$CC" # Let the user override the test.
3921 else
3922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3923 for as_dir in $PATH
3924 do
3925 IFS=$as_save_IFS
3926 case $as_dir in #(((
3927 '') as_dir=./ ;;
3928 */) ;;
3929 *) as_dir=$as_dir/ ;;
3930 esac
3931 for ac_exec_ext in '' $ac_executable_extensions; do
3932 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3933 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3934 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3935 break 2
3936 fi
3937 done
3938 done
3939 IFS=$as_save_IFS
3940
3941 fi ;;
3942 esac
3943 fi
3944 CC=$ac_cv_prog_CC
3945 if test -n "$CC"; then
3946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3947 printf "%s\n" "$CC" >&6; }
3948 else
3949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3950 printf "%s\n" "no" >&6; }
3951 fi
3952
3953
3954 fi
3955 if test -z "$ac_cv_prog_CC"; then
3956 ac_ct_CC=$CC
3957 # Extract the first word of "gcc", so it can be a program name with args.
3958 set dummy gcc; ac_word=$2
3959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3960 printf %s "checking for $ac_word... " >&6; }
3961 if test ${ac_cv_prog_ac_ct_CC+y}
3962 then :
3963 printf %s "(cached) " >&6
3964 else case e in #(
3965 e) if test -n "$ac_ct_CC"; then
3966 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3967 else
3968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3969 for as_dir in $PATH
3970 do
3971 IFS=$as_save_IFS
3972 case $as_dir in #(((
3973 '') as_dir=./ ;;
3974 */) ;;
3975 *) as_dir=$as_dir/ ;;
3976 esac
3977 for ac_exec_ext in '' $ac_executable_extensions; do
3978 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3979 ac_cv_prog_ac_ct_CC="gcc"
3980 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3981 break 2
3982 fi
3983 done
3984 done
3985 IFS=$as_save_IFS
3986
3987 fi ;;
3988 esac
3989 fi
3990 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3991 if test -n "$ac_ct_CC"; then
3992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3993 printf "%s\n" "$ac_ct_CC" >&6; }
3994 else
3995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3996 printf "%s\n" "no" >&6; }
3997 fi
3998
3999 if test "x$ac_ct_CC" = x; then
4000 CC=""
4001 else
4002 case $cross_compiling:$ac_tool_warned in
4003 yes:)
4004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4005 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4006 ac_tool_warned=yes ;;
4007 esac
4008 CC=$ac_ct_CC
4009 fi
4010 else
4011 CC="$ac_cv_prog_CC"
4012 fi
4013
4014 if test -z "$CC"; then
4015 if test -n "$ac_tool_prefix"; then
4016 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4017 set dummy ${ac_tool_prefix}cc; ac_word=$2
4018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4019 printf %s "checking for $ac_word... " >&6; }
4020 if test ${ac_cv_prog_CC+y}
4021 then :
4022 printf %s "(cached) " >&6
4023 else case e in #(
4024 e) if test -n "$CC"; then
4025 ac_cv_prog_CC="$CC" # Let the user override the test.
4026 else
4027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4028 for as_dir in $PATH
4029 do
4030 IFS=$as_save_IFS
4031 case $as_dir in #(((
4032 '') as_dir=./ ;;
4033 */) ;;
4034 *) as_dir=$as_dir/ ;;
4035 esac
4036 for ac_exec_ext in '' $ac_executable_extensions; do
4037 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4038 ac_cv_prog_CC="${ac_tool_prefix}cc"
4039 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4040 break 2
4041 fi
4042 done
4043 done
4044 IFS=$as_save_IFS
4045
4046 fi ;;
4047 esac
4048 fi
4049 CC=$ac_cv_prog_CC
4050 if test -n "$CC"; then
4051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4052 printf "%s\n" "$CC" >&6; }
4053 else
4054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4055 printf "%s\n" "no" >&6; }
4056 fi
4057
4058
4059 fi
4060 fi
4061 if test -z "$CC"; then
4062 # Extract the first word of "cc", so it can be a program name with args.
4063 set dummy cc; ac_word=$2
4064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4065 printf %s "checking for $ac_word... " >&6; }
4066 if test ${ac_cv_prog_CC+y}
4067 then :
4068 printf %s "(cached) " >&6
4069 else case e in #(
4070 e) if test -n "$CC"; then
4071 ac_cv_prog_CC="$CC" # Let the user override the test.
4072 else
4073 ac_prog_rejected=no
4074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4075 for as_dir in $PATH
4076 do
4077 IFS=$as_save_IFS
4078 case $as_dir in #(((
4079 '') as_dir=./ ;;
4080 */) ;;
4081 *) as_dir=$as_dir/ ;;
4082 esac
4083 for ac_exec_ext in '' $ac_executable_extensions; do
4084 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4085 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4086 ac_prog_rejected=yes
4087 continue
4088 fi
4089 ac_cv_prog_CC="cc"
4090 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4091 break 2
4092 fi
4093 done
4094 done
4095 IFS=$as_save_IFS
4096
4097 if test $ac_prog_rejected = yes; then
4098 # We found a bogon in the path, so make sure we never use it.
4099 set dummy $ac_cv_prog_CC
4100 shift
4101 if test $# != 0; then
4102 # We chose a different compiler from the bogus one.
4103 # However, it has the same basename, so the bogon will be chosen
4104 # first if we set CC to just the basename; use the full file name.
4105 shift
4106 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4107 fi
4108 fi
4109 fi ;;
4110 esac
4111 fi
4112 CC=$ac_cv_prog_CC
4113 if test -n "$CC"; then
4114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4115 printf "%s\n" "$CC" >&6; }
4116 else
4117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4118 printf "%s\n" "no" >&6; }
4119 fi
4120
4121
4122 fi
4123 if test -z "$CC"; then
4124 if test -n "$ac_tool_prefix"; then
4125 for ac_prog in cl.exe
4126 do
4127 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4128 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4130 printf %s "checking for $ac_word... " >&6; }
4131 if test ${ac_cv_prog_CC+y}
4132 then :
4133 printf %s "(cached) " >&6
4134 else case e in #(
4135 e) if test -n "$CC"; then
4136 ac_cv_prog_CC="$CC" # Let the user override the test.
4137 else
4138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4139 for as_dir in $PATH
4140 do
4141 IFS=$as_save_IFS
4142 case $as_dir in #(((
4143 '') as_dir=./ ;;
4144 */) ;;
4145 *) as_dir=$as_dir/ ;;
4146 esac
4147 for ac_exec_ext in '' $ac_executable_extensions; do
4148 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4149 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4150 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4151 break 2
4152 fi
4153 done
4154 done
4155 IFS=$as_save_IFS
4156
4157 fi ;;
4158 esac
4159 fi
4160 CC=$ac_cv_prog_CC
4161 if test -n "$CC"; then
4162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4163 printf "%s\n" "$CC" >&6; }
4164 else
4165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4166 printf "%s\n" "no" >&6; }
4167 fi
4168
4169
4170 test -n "$CC" && break
4171 done
4172 fi
4173 if test -z "$CC"; then
4174 ac_ct_CC=$CC
4175 for ac_prog in cl.exe
4176 do
4177 # Extract the first word of "$ac_prog", so it can be a program name with args.
4178 set dummy $ac_prog; ac_word=$2
4179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4180 printf %s "checking for $ac_word... " >&6; }
4181 if test ${ac_cv_prog_ac_ct_CC+y}
4182 then :
4183 printf %s "(cached) " >&6
4184 else case e in #(
4185 e) if test -n "$ac_ct_CC"; then
4186 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4187 else
4188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4189 for as_dir in $PATH
4190 do
4191 IFS=$as_save_IFS
4192 case $as_dir in #(((
4193 '') as_dir=./ ;;
4194 */) ;;
4195 *) as_dir=$as_dir/ ;;
4196 esac
4197 for ac_exec_ext in '' $ac_executable_extensions; do
4198 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4199 ac_cv_prog_ac_ct_CC="$ac_prog"
4200 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4201 break 2
4202 fi
4203 done
4204 done
4205 IFS=$as_save_IFS
4206
4207 fi ;;
4208 esac
4209 fi
4210 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4211 if test -n "$ac_ct_CC"; then
4212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4213 printf "%s\n" "$ac_ct_CC" >&6; }
4214 else
4215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4216 printf "%s\n" "no" >&6; }
4217 fi
4218
4219
4220 test -n "$ac_ct_CC" && break
4221 done
4222
4223 if test "x$ac_ct_CC" = x; then
4224 CC=""
4225 else
4226 case $cross_compiling:$ac_tool_warned in
4227 yes:)
4228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4229 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4230 ac_tool_warned=yes ;;
4231 esac
4232 CC=$ac_ct_CC
4233 fi
4234 fi
4235
4236 fi
4237 if test -z "$CC"; then
4238 if test -n "$ac_tool_prefix"; then
4239 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4240 set dummy ${ac_tool_prefix}clang; ac_word=$2
4241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4242 printf %s "checking for $ac_word... " >&6; }
4243 if test ${ac_cv_prog_CC+y}
4244 then :
4245 printf %s "(cached) " >&6
4246 else case e in #(
4247 e) if test -n "$CC"; then
4248 ac_cv_prog_CC="$CC" # Let the user override the test.
4249 else
4250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4251 for as_dir in $PATH
4252 do
4253 IFS=$as_save_IFS
4254 case $as_dir in #(((
4255 '') as_dir=./ ;;
4256 */) ;;
4257 *) as_dir=$as_dir/ ;;
4258 esac
4259 for ac_exec_ext in '' $ac_executable_extensions; do
4260 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4261 ac_cv_prog_CC="${ac_tool_prefix}clang"
4262 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4263 break 2
4264 fi
4265 done
4266 done
4267 IFS=$as_save_IFS
4268
4269 fi ;;
4270 esac
4271 fi
4272 CC=$ac_cv_prog_CC
4273 if test -n "$CC"; then
4274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4275 printf "%s\n" "$CC" >&6; }
4276 else
4277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4278 printf "%s\n" "no" >&6; }
4279 fi
4280
4281
4282 fi
4283 if test -z "$ac_cv_prog_CC"; then
4284 ac_ct_CC=$CC
4285 # Extract the first word of "clang", so it can be a program name with args.
4286 set dummy clang; ac_word=$2
4287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4288 printf %s "checking for $ac_word... " >&6; }
4289 if test ${ac_cv_prog_ac_ct_CC+y}
4290 then :
4291 printf %s "(cached) " >&6
4292 else case e in #(
4293 e) if test -n "$ac_ct_CC"; then
4294 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4295 else
4296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4297 for as_dir in $PATH
4298 do
4299 IFS=$as_save_IFS
4300 case $as_dir in #(((
4301 '') as_dir=./ ;;
4302 */) ;;
4303 *) as_dir=$as_dir/ ;;
4304 esac
4305 for ac_exec_ext in '' $ac_executable_extensions; do
4306 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4307 ac_cv_prog_ac_ct_CC="clang"
4308 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4309 break 2
4310 fi
4311 done
4312 done
4313 IFS=$as_save_IFS
4314
4315 fi ;;
4316 esac
4317 fi
4318 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4319 if test -n "$ac_ct_CC"; then
4320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4321 printf "%s\n" "$ac_ct_CC" >&6; }
4322 else
4323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4324 printf "%s\n" "no" >&6; }
4325 fi
4326
4327 if test "x$ac_ct_CC" = x; then
4328 CC=""
4329 else
4330 case $cross_compiling:$ac_tool_warned in
4331 yes:)
4332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4333 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4334 ac_tool_warned=yes ;;
4335 esac
4336 CC=$ac_ct_CC
4337 fi
4338 else
4339 CC="$ac_cv_prog_CC"
4340 fi
4341
4342 fi
4343
4344
4345 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4346 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4347 as_fn_error $? "no acceptable C compiler found in \$PATH
4348 See 'config.log' for more details" "$LINENO" 5; }
4349
4350 # Provide some information about the compiler.
4351 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4352 set X $ac_compile
4353 ac_compiler=$2
4354 for ac_option in --version -v -V -qversion -version; do
4355 { { ac_try="$ac_compiler $ac_option >&5"
4356 case "(($ac_try" in
4357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4358 *) ac_try_echo=$ac_try;;
4359 esac
4360 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4361 printf "%s\n" "$ac_try_echo"; } >&5
4362 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4363 ac_status=$?
4364 if test -s conftest.err; then
4365 sed '10a\
4366 ... rest of stderr output deleted ...
4367 10q' conftest.err >conftest.er1
4368 cat conftest.er1 >&5
4369 fi
4370 rm -f conftest.er1 conftest.err
4371 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4372 test $ac_status = 0; }
4373 done
4374
4375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4376 /* end confdefs.h. */
4377
4378 int
4379 main (void)
4380 {
4381
4382 ;
4383 return 0;
4384 }
4385 _ACEOF
4386 ac_clean_files_save=$ac_clean_files
4387 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4388 # Try to create an executable without -o first, disregard a.out.
4389 # It will help us diagnose broken compilers, and finding out an intuition
4390 # of exeext.
4391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4392 printf %s "checking whether the C compiler works... " >&6; }
4393 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4394
4395 # The possible output files:
4396 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4397
4398 ac_rmfiles=
4399 for ac_file in $ac_files
4400 do
4401 case $ac_file in
4402 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4403 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4404 esac
4405 done
4406 rm -f $ac_rmfiles
4407
4408 if { { ac_try="$ac_link_default"
4409 case "(($ac_try" in
4410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4411 *) ac_try_echo=$ac_try;;
4412 esac
4413 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4414 printf "%s\n" "$ac_try_echo"; } >&5
4415 (eval "$ac_link_default") 2>&5
4416 ac_status=$?
4417 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4418 test $ac_status = 0; }
4419 then :
4420 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
4421 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
4422 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4423 # so that the user can short-circuit this test for compilers unknown to
4424 # Autoconf.
4425 for ac_file in $ac_files ''
4426 do
4427 test -f "$ac_file" || continue
4428 case $ac_file in
4429 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4430 ;;
4431 [ab].out )
4432 # We found the default executable, but exeext='' is most
4433 # certainly right.
4434 break;;
4435 *.* )
4436 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4437 then :; else
4438 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4439 fi
4440 # We set ac_cv_exeext here because the later test for it is not
4441 # safe: cross compilers may not add the suffix if given an '-o'
4442 # argument, so we may need to know it at that point already.
4443 # Even if this section looks crufty: it has the advantage of
4444 # actually working.
4445 break;;
4446 * )
4447 break;;
4448 esac
4449 done
4450 test "$ac_cv_exeext" = no && ac_cv_exeext=
4451
4452 else case e in #(
4453 e) ac_file='' ;;
4454 esac
4455 fi
4456 if test -z "$ac_file"
4457 then :
4458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4459 printf "%s\n" "no" >&6; }
4460 printf "%s\n" "$as_me: failed program was:" >&5
4461 sed 's/^/| /' conftest.$ac_ext >&5
4462
4463 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4464 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4465 as_fn_error 77 "C compiler cannot create executables
4466 See 'config.log' for more details" "$LINENO" 5; }
4467 else case e in #(
4468 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4469 printf "%s\n" "yes" >&6; } ;;
4470 esac
4471 fi
4472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4473 printf %s "checking for C compiler default output file name... " >&6; }
4474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4475 printf "%s\n" "$ac_file" >&6; }
4476 ac_exeext=$ac_cv_exeext
4477
4478 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4479 ac_clean_files=$ac_clean_files_save
4480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4481 printf %s "checking for suffix of executables... " >&6; }
4482 if { { ac_try="$ac_link"
4483 case "(($ac_try" in
4484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4485 *) ac_try_echo=$ac_try;;
4486 esac
4487 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4488 printf "%s\n" "$ac_try_echo"; } >&5
4489 (eval "$ac_link") 2>&5
4490 ac_status=$?
4491 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4492 test $ac_status = 0; }
4493 then :
4494 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
4495 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
4496 # work properly (i.e., refer to 'conftest.exe'), while it won't with
4497 # 'rm'.
4498 for ac_file in conftest.exe conftest conftest.*; do
4499 test -f "$ac_file" || continue
4500 case $ac_file in
4501 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4502 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4503 break;;
4504 * ) break;;
4505 esac
4506 done
4507 else case e in #(
4508 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4509 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4510 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4511 See 'config.log' for more details" "$LINENO" 5; } ;;
4512 esac
4513 fi
4514 rm -f conftest conftest$ac_cv_exeext
4515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4516 printf "%s\n" "$ac_cv_exeext" >&6; }
4517
4518 rm -f conftest.$ac_ext
4519 EXEEXT=$ac_cv_exeext
4520 ac_exeext=$EXEEXT
4521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4522 /* end confdefs.h. */
4523 #include <stdio.h>
4524 int
4525 main (void)
4526 {
4527 FILE *f = fopen ("conftest.out", "w");
4528 if (!f)
4529 return 1;
4530 return ferror (f) || fclose (f) != 0;
4531
4532 ;
4533 return 0;
4534 }
4535 _ACEOF
4536 ac_clean_files="$ac_clean_files conftest.out"
4537 # Check that the compiler produces executables we can run. If not, either
4538 # the compiler is broken, or we cross compile.
4539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4540 printf %s "checking whether we are cross compiling... " >&6; }
4541 if test "$cross_compiling" != yes; then
4542 { { ac_try="$ac_link"
4543 case "(($ac_try" in
4544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4545 *) ac_try_echo=$ac_try;;
4546 esac
4547 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4548 printf "%s\n" "$ac_try_echo"; } >&5
4549 (eval "$ac_link") 2>&5
4550 ac_status=$?
4551 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4552 test $ac_status = 0; }
4553 if { ac_try='./conftest$ac_cv_exeext'
4554 { { case "(($ac_try" in
4555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4556 *) ac_try_echo=$ac_try;;
4557 esac
4558 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4559 printf "%s\n" "$ac_try_echo"; } >&5
4560 (eval "$ac_try") 2>&5
4561 ac_status=$?
4562 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4563 test $ac_status = 0; }; }; then
4564 cross_compiling=no
4565 else
4566 if test "$cross_compiling" = maybe; then
4567 cross_compiling=yes
4568 else
4569 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4570 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4571 as_fn_error 77 "cannot run C compiled programs.
4572 If you meant to cross compile, use '--host'.
4573 See 'config.log' for more details" "$LINENO" 5; }
4574 fi
4575 fi
4576 fi
4577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4578 printf "%s\n" "$cross_compiling" >&6; }
4579
4580 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4581 conftest.o conftest.obj conftest.out
4582 ac_clean_files=$ac_clean_files_save
4583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4584 printf %s "checking for suffix of object files... " >&6; }
4585 if test ${ac_cv_objext+y}
4586 then :
4587 printf %s "(cached) " >&6
4588 else case e in #(
4589 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4590 /* end confdefs.h. */
4591
4592 int
4593 main (void)
4594 {
4595
4596 ;
4597 return 0;
4598 }
4599 _ACEOF
4600 rm -f conftest.o conftest.obj
4601 if { { ac_try="$ac_compile"
4602 case "(($ac_try" in
4603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4604 *) ac_try_echo=$ac_try;;
4605 esac
4606 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4607 printf "%s\n" "$ac_try_echo"; } >&5
4608 (eval "$ac_compile") 2>&5
4609 ac_status=$?
4610 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4611 test $ac_status = 0; }
4612 then :
4613 for ac_file in conftest.o conftest.obj conftest.*; do
4614 test -f "$ac_file" || continue;
4615 case $ac_file in
4616 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4617 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4618 break;;
4619 esac
4620 done
4621 else case e in #(
4622 e) printf "%s\n" "$as_me: failed program was:" >&5
4623 sed 's/^/| /' conftest.$ac_ext >&5
4624
4625 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4626 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4627 as_fn_error $? "cannot compute suffix of object files: cannot compile
4628 See 'config.log' for more details" "$LINENO" 5; } ;;
4629 esac
4630 fi
4631 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4632 esac
4633 fi
4634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4635 printf "%s\n" "$ac_cv_objext" >&6; }
4636 OBJEXT=$ac_cv_objext
4637 ac_objext=$OBJEXT
4638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4639 printf %s "checking whether the compiler supports GNU C... " >&6; }
4640 if test ${ac_cv_c_compiler_gnu+y}
4641 then :
4642 printf %s "(cached) " >&6
4643 else case e in #(
4644 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4645 /* end confdefs.h. */
4646
4647 int
4648 main (void)
4649 {
4650 #ifndef __GNUC__
4651 choke me
4652 #endif
4653
4654 ;
4655 return 0;
4656 }
4657 _ACEOF
4658 if ac_fn_c_try_compile "$LINENO"
4659 then :
4660 ac_compiler_gnu=yes
4661 else case e in #(
4662 e) ac_compiler_gnu=no ;;
4663 esac
4664 fi
4665 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4666 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4667 ;;
4668 esac
4669 fi
4670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4671 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4673
4674 if test $ac_compiler_gnu = yes; then
4675 GCC=yes
4676 else
4677 GCC=
4678 fi
4679 ac_test_CFLAGS=${CFLAGS+y}
4680 ac_save_CFLAGS=$CFLAGS
4681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4682 printf %s "checking whether $CC accepts -g... " >&6; }
4683 if test ${ac_cv_prog_cc_g+y}
4684 then :
4685 printf %s "(cached) " >&6
4686 else case e in #(
4687 e) ac_save_c_werror_flag=$ac_c_werror_flag
4688 ac_c_werror_flag=yes
4689 ac_cv_prog_cc_g=no
4690 CFLAGS="-g"
4691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4692 /* end confdefs.h. */
4693
4694 int
4695 main (void)
4696 {
4697
4698 ;
4699 return 0;
4700 }
4701 _ACEOF
4702 if ac_fn_c_try_compile "$LINENO"
4703 then :
4704 ac_cv_prog_cc_g=yes
4705 else case e in #(
4706 e) CFLAGS=""
4707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4708 /* end confdefs.h. */
4709
4710 int
4711 main (void)
4712 {
4713
4714 ;
4715 return 0;
4716 }
4717 _ACEOF
4718 if ac_fn_c_try_compile "$LINENO"
4719 then :
4720
4721 else case e in #(
4722 e) ac_c_werror_flag=$ac_save_c_werror_flag
4723 CFLAGS="-g"
4724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4725 /* end confdefs.h. */
4726
4727 int
4728 main (void)
4729 {
4730
4731 ;
4732 return 0;
4733 }
4734 _ACEOF
4735 if ac_fn_c_try_compile "$LINENO"
4736 then :
4737 ac_cv_prog_cc_g=yes
4738 fi
4739 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4740 esac
4741 fi
4742 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4743 esac
4744 fi
4745 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4746 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4747 esac
4748 fi
4749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4750 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4751 if test $ac_test_CFLAGS; then
4752 CFLAGS=$ac_save_CFLAGS
4753 elif test $ac_cv_prog_cc_g = yes; then
4754 if test "$GCC" = yes; then
4755 CFLAGS="-g -O2"
4756 else
4757 CFLAGS="-g"
4758 fi
4759 else
4760 if test "$GCC" = yes; then
4761 CFLAGS="-O2"
4762 else
4763 CFLAGS=
4764 fi
4765 fi
4766 ac_prog_cc_stdc=no
4767 if test x$ac_prog_cc_stdc = xno
4768 then :
4769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4770 printf %s "checking for $CC option to enable C11 features... " >&6; }
4771 if test ${ac_cv_prog_cc_c11+y}
4772 then :
4773 printf %s "(cached) " >&6
4774 else case e in #(
4775 e) ac_cv_prog_cc_c11=no
4776 ac_save_CC=$CC
4777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4778 /* end confdefs.h. */
4779 $ac_c_conftest_c11_program
4780 _ACEOF
4781 for ac_arg in '' -std=gnu11
4782 do
4783 CC="$ac_save_CC $ac_arg"
4784 if ac_fn_c_try_compile "$LINENO"
4785 then :
4786 ac_cv_prog_cc_c11=$ac_arg
4787 fi
4788 rm -f core conftest.err conftest.$ac_objext conftest.beam
4789 test "x$ac_cv_prog_cc_c11" != "xno" && break
4790 done
4791 rm -f conftest.$ac_ext
4792 CC=$ac_save_CC ;;
4793 esac
4794 fi
4795
4796 if test "x$ac_cv_prog_cc_c11" = xno
4797 then :
4798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4799 printf "%s\n" "unsupported" >&6; }
4800 else case e in #(
4801 e) if test "x$ac_cv_prog_cc_c11" = x
4802 then :
4803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4804 printf "%s\n" "none needed" >&6; }
4805 else case e in #(
4806 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4807 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4808 CC="$CC $ac_cv_prog_cc_c11" ;;
4809 esac
4810 fi
4811 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4812 ac_prog_cc_stdc=c11 ;;
4813 esac
4814 fi
4815 fi
4816 if test x$ac_prog_cc_stdc = xno
4817 then :
4818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4819 printf %s "checking for $CC option to enable C99 features... " >&6; }
4820 if test ${ac_cv_prog_cc_c99+y}
4821 then :
4822 printf %s "(cached) " >&6
4823 else case e in #(
4824 e) ac_cv_prog_cc_c99=no
4825 ac_save_CC=$CC
4826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4827 /* end confdefs.h. */
4828 $ac_c_conftest_c99_program
4829 _ACEOF
4830 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4831 do
4832 CC="$ac_save_CC $ac_arg"
4833 if ac_fn_c_try_compile "$LINENO"
4834 then :
4835 ac_cv_prog_cc_c99=$ac_arg
4836 fi
4837 rm -f core conftest.err conftest.$ac_objext conftest.beam
4838 test "x$ac_cv_prog_cc_c99" != "xno" && break
4839 done
4840 rm -f conftest.$ac_ext
4841 CC=$ac_save_CC ;;
4842 esac
4843 fi
4844
4845 if test "x$ac_cv_prog_cc_c99" = xno
4846 then :
4847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4848 printf "%s\n" "unsupported" >&6; }
4849 else case e in #(
4850 e) if test "x$ac_cv_prog_cc_c99" = x
4851 then :
4852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4853 printf "%s\n" "none needed" >&6; }
4854 else case e in #(
4855 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4856 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4857 CC="$CC $ac_cv_prog_cc_c99" ;;
4858 esac
4859 fi
4860 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4861 ac_prog_cc_stdc=c99 ;;
4862 esac
4863 fi
4864 fi
4865 if test x$ac_prog_cc_stdc = xno
4866 then :
4867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4868 printf %s "checking for $CC option to enable C89 features... " >&6; }
4869 if test ${ac_cv_prog_cc_c89+y}
4870 then :
4871 printf %s "(cached) " >&6
4872 else case e in #(
4873 e) ac_cv_prog_cc_c89=no
4874 ac_save_CC=$CC
4875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4876 /* end confdefs.h. */
4877 $ac_c_conftest_c89_program
4878 _ACEOF
4879 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4880 do
4881 CC="$ac_save_CC $ac_arg"
4882 if ac_fn_c_try_compile "$LINENO"
4883 then :
4884 ac_cv_prog_cc_c89=$ac_arg
4885 fi
4886 rm -f core conftest.err conftest.$ac_objext conftest.beam
4887 test "x$ac_cv_prog_cc_c89" != "xno" && break
4888 done
4889 rm -f conftest.$ac_ext
4890 CC=$ac_save_CC ;;
4891 esac
4892 fi
4893
4894 if test "x$ac_cv_prog_cc_c89" = xno
4895 then :
4896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4897 printf "%s\n" "unsupported" >&6; }
4898 else case e in #(
4899 e) if test "x$ac_cv_prog_cc_c89" = x
4900 then :
4901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4902 printf "%s\n" "none needed" >&6; }
4903 else case e in #(
4904 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4905 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4906 CC="$CC $ac_cv_prog_cc_c89" ;;
4907 esac
4908 fi
4909 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4910 ac_prog_cc_stdc=c89 ;;
4911 esac
4912 fi
4913 fi
4914
4915 ac_ext=c
4916 ac_cpp='$CPP $CPPFLAGS'
4917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4920
4921
4922 ac_ext=c
4923 ac_cpp='$CPP $CPPFLAGS'
4924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4928 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4929 if test ${am_cv_prog_cc_c_o+y}
4930 then :
4931 printf %s "(cached) " >&6
4932 else case e in #(
4933 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4934 /* end confdefs.h. */
4935
4936 int
4937 main (void)
4938 {
4939
4940 ;
4941 return 0;
4942 }
4943 _ACEOF
4944 # Make sure it works both with $CC and with simple cc.
4945 # Following AC_PROG_CC_C_O, we do the test twice because some
4946 # compilers refuse to overwrite an existing .o file with -o,
4947 # though they will create one.
4948 am_cv_prog_cc_c_o=yes
4949 for am_i in 1 2; do
4950 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4951 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4952 ac_status=$?
4953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954 (exit $ac_status); } \
4955 && test -f conftest2.$ac_objext; then
4956 : OK
4957 else
4958 am_cv_prog_cc_c_o=no
4959 break
4960 fi
4961 done
4962 # aligned with autoconf, so not including core; see bug#72225.
4963 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \
4964 conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \
4965 conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM
4966 unset am_i ;;
4967 esac
4968 fi
4969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4970 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4971 if test "$am_cv_prog_cc_c_o" != yes; then
4972 # Losing compiler, so override with the script.
4973 # FIXME: It is wrong to rewrite CC.
4974 # But if we don't then we get into trouble of one sort or another.
4975 # A longer-term fix would be to have automake use am__CC in this case,
4976 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4977 CC="$am_aux_dir/compile $CC"
4978 fi
4979 ac_ext=c
4980 ac_cpp='$CPP $CPPFLAGS'
4981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4984
4985
4986 depcc="$CC" am_compiler_list=
4987
4988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4989 printf %s "checking dependency style of $depcc... " >&6; }
4990 if test ${am_cv_CC_dependencies_compiler_type+y}
4991 then :
4992 printf %s "(cached) " >&6
4993 else case e in #(
4994 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4995 # We make a subdir and do the tests there. Otherwise we can end up
4996 # making bogus files that we don't know about and never remove. For
4997 # instance it was reported that on HP-UX the gcc test will end up
4998 # making a dummy file named 'D' -- because '-MD' means "put the output
4999 # in D".
5000 rm -rf conftest.dir
5001 mkdir conftest.dir
5002 # Copy depcomp to subdir because otherwise we won't find it if we're
5003 # using a relative directory.
5004 cp "$am_depcomp" conftest.dir
5005 cd conftest.dir
5006 # We will build objects and dependencies in a subdirectory because
5007 # it helps to detect inapplicable dependency modes. For instance
5008 # both Tru64's cc and ICC support -MD to output dependencies as a
5009 # side effect of compilation, but ICC will put the dependencies in
5010 # the current directory while Tru64 will put them in the object
5011 # directory.
5012 mkdir sub
5013
5014 am_cv_CC_dependencies_compiler_type=none
5015 if test "$am_compiler_list" = ""; then
5016 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5017 fi
5018 am__universal=false
5019 case " $depcc " in #(
5020 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5021 esac
5022
5023 for depmode in $am_compiler_list; do
5024 # Setup a source with many dependencies, because some compilers
5025 # like to wrap large dependency lists on column 80 (with \), and
5026 # we should not choose a depcomp mode which is confused by this.
5027 #
5028 # We need to recreate these files for each test, as the compiler may
5029 # overwrite some of them when testing with obscure command lines.
5030 # This happens at least with the AIX C compiler.
5031 : > sub/conftest.c
5032 for i in 1 2 3 4 5 6; do
5033 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5034 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5035 # Solaris 10 /bin/sh.
5036 echo '/* dummy */' > sub/conftst$i.h
5037 done
5038 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5039
5040 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5041 # mode. It turns out that the SunPro C++ compiler does not properly
5042 # handle '-M -o', and we need to detect this. Also, some Intel
5043 # versions had trouble with output in subdirs.
5044 am__obj=sub/conftest.${OBJEXT-o}
5045 am__minus_obj="-o $am__obj"
5046 case $depmode in
5047 gcc)
5048 # This depmode causes a compiler race in universal mode.
5049 test "$am__universal" = false || continue
5050 ;;
5051 nosideeffect)
5052 # After this tag, mechanisms are not by side-effect, so they'll
5053 # only be used when explicitly requested.
5054 if test "x$enable_dependency_tracking" = xyes; then
5055 continue
5056 else
5057 break
5058 fi
5059 ;;
5060 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5061 # This compiler won't grok '-c -o', but also, the minuso test has
5062 # not run yet. These depmodes are late enough in the game, and
5063 # so weak that their functioning should not be impacted.
5064 am__obj=conftest.${OBJEXT-o}
5065 am__minus_obj=
5066 ;;
5067 none) break ;;
5068 esac
5069 if depmode=$depmode \
5070 source=sub/conftest.c object=$am__obj \
5071 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5072 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5073 >/dev/null 2>conftest.err &&
5074 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5075 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5076 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5077 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5078 # icc doesn't choke on unknown options, it will just issue warnings
5079 # or remarks (even with -Werror). So we grep stderr for any message
5080 # that says an option was ignored or not supported.
5081 # When given -MP, icc 7.0 and 7.1 complain thus:
5082 # icc: Command line warning: ignoring option '-M'; no argument required
5083 # The diagnosis changed in icc 8.0:
5084 # icc: Command line remark: option '-MP' not supported
5085 if (grep 'ignoring option' conftest.err ||
5086 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5087 am_cv_CC_dependencies_compiler_type=$depmode
5088 break
5089 fi
5090 fi
5091 done
5092
5093 cd ..
5094 rm -rf conftest.dir
5095 else
5096 am_cv_CC_dependencies_compiler_type=none
5097 fi
5098 ;;
5099 esac
5100 fi
5101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5102 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5103 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5104
5105 if
5106 test "x$enable_dependency_tracking" != xno \
5107 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5108 am__fastdepCC_TRUE=
5109 am__fastdepCC_FALSE='#'
5110 else
5111 am__fastdepCC_TRUE='#'
5112 am__fastdepCC_FALSE=
5113 fi
5114
5115
5116
5117 ac_header= ac_cache=
5118 for ac_item in $ac_header_c_list
5119 do
5120 if test $ac_cache; then
5121 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
5122 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
5123 printf "%s\n" "#define $ac_item 1" >> confdefs.h
5124 fi
5125 ac_header= ac_cache=
5126 elif test $ac_header; then
5127 ac_cache=$ac_item
5128 else
5129 ac_header=$ac_item
5130 fi
5131 done
5132
5133
5134
5135
5136
5137
5138
5139
5140 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5141 then :
5142
5143 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5144
5145 fi
5146
5147
5148
5149
5150
5151
5152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5153 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5154 if test ${ac_cv_safe_to_define___extensions__+y}
5155 then :
5156 printf %s "(cached) " >&6
5157 else case e in #(
5158 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5159 /* end confdefs.h. */
5160
5161 # define __EXTENSIONS__ 1
5162 $ac_includes_default
5163 int
5164 main (void)
5165 {
5166
5167 ;
5168 return 0;
5169 }
5170 _ACEOF
5171 if ac_fn_c_try_compile "$LINENO"
5172 then :
5173 ac_cv_safe_to_define___extensions__=yes
5174 else case e in #(
5175 e) ac_cv_safe_to_define___extensions__=no ;;
5176 esac
5177 fi
5178 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5179 esac
5180 fi
5181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5182 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
5183
5184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
5185 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
5186 if test ${ac_cv_should_define__xopen_source+y}
5187 then :
5188 printf %s "(cached) " >&6
5189 else case e in #(
5190 e) ac_cv_should_define__xopen_source=no
5191 if test $ac_cv_header_wchar_h = yes
5192 then :
5193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5194 /* end confdefs.h. */
5195
5196 #include <wchar.h>
5197 mbstate_t x;
5198 int
5199 main (void)
5200 {
5201
5202 ;
5203 return 0;
5204 }
5205 _ACEOF
5206 if ac_fn_c_try_compile "$LINENO"
5207 then :
5208
5209 else case e in #(
5210 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5211 /* end confdefs.h. */
5212
5213 #define _XOPEN_SOURCE 500
5214 #include <wchar.h>
5215 mbstate_t x;
5216 int
5217 main (void)
5218 {
5219
5220 ;
5221 return 0;
5222 }
5223 _ACEOF
5224 if ac_fn_c_try_compile "$LINENO"
5225 then :
5226 ac_cv_should_define__xopen_source=yes
5227 fi
5228 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5229 esac
5230 fi
5231 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5232 fi ;;
5233 esac
5234 fi
5235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5236 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
5237
5238 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
5239
5240 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5241
5242 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
5243
5244 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
5245
5246 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
5247
5248 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
5249
5250 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5251
5252 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
5253
5254 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
5255
5256 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
5257
5258 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
5259
5260 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
5261
5262 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
5263
5264 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
5265
5266 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
5267
5268 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
5269
5270 if test $ac_cv_header_minix_config_h = yes
5271 then :
5272 MINIX=yes
5273 printf "%s\n" "#define _MINIX 1" >>confdefs.h
5274
5275 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
5276
5277 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
5278
5279 else case e in #(
5280 e) MINIX= ;;
5281 esac
5282 fi
5283 if test $ac_cv_safe_to_define___extensions__ = yes
5284 then :
5285 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
5286
5287 fi
5288 if test $ac_cv_should_define__xopen_source = yes
5289 then :
5290 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
5291
5292 fi
5293
5294 # Check whether --enable-compiler-warnings was given.
5295 if test ${enable_compiler_warnings+y}
5296 then :
5297 enableval=$enable_compiler_warnings;
5298 fi
5299 case $enable_compiler_warnings in #(
5300 no | min | yes | max | all) :
5301 ;; #(
5302 *) :
5303 if test "x$enable_maintainer_mode" = xyes
5304 then :
5305 enable_compiler_warnings=yes
5306 else case e in #(
5307 e) enable_compiler_warnings=min ;;
5308 esac
5309 fi ;;
5310 esac
5311
5312 case `pwd` in
5313 *\ * | *\ *)
5314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5315 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5316 esac
5317
5318
5319
5320 macro_version='2.5.4'
5321 macro_revision='2.5.4'
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336 ltmain=$ac_aux_dir/ltmain.sh
5337
5338
5339
5340 # Make sure we can run config.sub.
5341 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
5342 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
5343
5344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5345 printf %s "checking build system type... " >&6; }
5346 if test ${ac_cv_build+y}
5347 then :
5348 printf %s "(cached) " >&6
5349 else case e in #(
5350 e) ac_build_alias=$build_alias
5351 test "x$ac_build_alias" = x &&
5352 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
5353 test "x$ac_build_alias" = x &&
5354 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5355 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
5356 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
5357 ;;
5358 esac
5359 fi
5360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5361 printf "%s\n" "$ac_cv_build" >&6; }
5362 case $ac_cv_build in
5363 *-*-*) ;;
5364 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5365 esac
5366 build=$ac_cv_build
5367 ac_save_IFS=$IFS; IFS='-'
5368 set x $ac_cv_build
5369 shift
5370 build_cpu=$1
5371 build_vendor=$2
5372 shift; shift
5373 # Remember, the first character of IFS is used to create $*,
5374 # except with old shells:
5375 build_os=$*
5376 IFS=$ac_save_IFS
5377 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5378
5379
5380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5381 printf %s "checking host system type... " >&6; }
5382 if test ${ac_cv_host+y}
5383 then :
5384 printf %s "(cached) " >&6
5385 else case e in #(
5386 e) if test "x$host_alias" = x; then
5387 ac_cv_host=$ac_cv_build
5388 else
5389 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
5390 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
5391 fi
5392 ;;
5393 esac
5394 fi
5395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5396 printf "%s\n" "$ac_cv_host" >&6; }
5397 case $ac_cv_host in
5398 *-*-*) ;;
5399 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5400 esac
5401 host=$ac_cv_host
5402 ac_save_IFS=$IFS; IFS='-'
5403 set x $ac_cv_host
5404 shift
5405 host_cpu=$1
5406 host_vendor=$2
5407 shift; shift
5408 # Remember, the first character of IFS is used to create $*,
5409 # except with old shells:
5410 host_os=$*
5411 IFS=$ac_save_IFS
5412 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5413
5414
5415 # Backslashify metacharacters that are still active within
5416 # double-quoted strings.
5417 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5418
5419 # Same as above, but do not quote variable references.
5420 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5421
5422 # Sed substitution to delay expansion of an escaped shell variable in a
5423 # double_quote_subst'ed string.
5424 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5425
5426 # Sed substitution to delay expansion of an escaped single quote.
5427 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5428
5429 # Sed substitution to avoid accidental globbing in evaled expressions
5430 no_glob_subst='s/\*/\\\*/g'
5431
5432 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5433 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5434 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5435
5436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5437 printf %s "checking how to print strings... " >&6; }
5438 # Test print first, because it will be a builtin if present.
5439 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5440 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5441 ECHO='print -r --'
5442 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5443 ECHO='printf %s\n'
5444 else
5445 # Use this function as a fallback that always works.
5446 func_fallback_echo ()
5447 {
5448 eval 'cat <<_LTECHO_EOF
5449 $1
5450 _LTECHO_EOF'
5451 }
5452 ECHO='func_fallback_echo'
5453 fi
5454
5455 # func_echo_all arg...
5456 # Invoke $ECHO with all args, space-separated.
5457 func_echo_all ()
5458 {
5459 $ECHO ""
5460 }
5461
5462 case $ECHO in
5463 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5464 printf "%s\n" "printf" >&6; } ;;
5465 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5466 printf "%s\n" "print -r" >&6; } ;;
5467 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5468 printf "%s\n" "cat" >&6; } ;;
5469 esac
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5485 printf %s "checking for a sed that does not truncate output... " >&6; }
5486 if test ${ac_cv_path_SED+y}
5487 then :
5488 printf %s "(cached) " >&6
5489 else case e in #(
5490 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5491 for ac_i in 1 2 3 4 5 6 7; do
5492 ac_script="$ac_script$as_nl$ac_script"
5493 done
5494 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5495 { ac_script=; unset ac_script;}
5496 if test -z "$SED"; then
5497 ac_path_SED_found=false
5498 # Loop through the user's path and test for each of PROGNAME-LIST
5499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5500 for as_dir in $PATH
5501 do
5502 IFS=$as_save_IFS
5503 case $as_dir in #(((
5504 '') as_dir=./ ;;
5505 */) ;;
5506 *) as_dir=$as_dir/ ;;
5507 esac
5508 for ac_prog in sed gsed
5509 do
5510 for ac_exec_ext in '' $ac_executable_extensions; do
5511 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5512 as_fn_executable_p "$ac_path_SED" || continue
5513 # Check for GNU ac_path_SED and select it if it is found.
5514 # Check for GNU $ac_path_SED
5515 case `"$ac_path_SED" --version 2>&1` in #(
5516 *GNU*)
5517 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5518 #(
5519 *)
5520 ac_count=0
5521 printf %s 0123456789 >"conftest.in"
5522 while :
5523 do
5524 cat "conftest.in" "conftest.in" >"conftest.tmp"
5525 mv "conftest.tmp" "conftest.in"
5526 cp "conftest.in" "conftest.nl"
5527 printf "%s\n" '' >> "conftest.nl"
5528 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5529 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5530 as_fn_arith $ac_count + 1 && ac_count=$as_val
5531 if test $ac_count -gt ${ac_path_SED_max-0}; then
5532 # Best one so far, save it but keep looking for a better one
5533 ac_cv_path_SED="$ac_path_SED"
5534 ac_path_SED_max=$ac_count
5535 fi
5536 # 10*(2^10) chars as input seems more than enough
5537 test $ac_count -gt 10 && break
5538 done
5539 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5540 esac
5541
5542 $ac_path_SED_found && break 3
5543 done
5544 done
5545 done
5546 IFS=$as_save_IFS
5547 if test -z "$ac_cv_path_SED"; then
5548 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5549 fi
5550 else
5551 ac_cv_path_SED=$SED
5552 fi
5553 ;;
5554 esac
5555 fi
5556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5557 printf "%s\n" "$ac_cv_path_SED" >&6; }
5558 SED="$ac_cv_path_SED"
5559 rm -f conftest.sed
5560
5561 test -z "$SED" && SED=sed
5562 Xsed="$SED -e 1s/^X//"
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5575 printf %s "checking for grep that handles long lines and -e... " >&6; }
5576 if test ${ac_cv_path_GREP+y}
5577 then :
5578 printf %s "(cached) " >&6
5579 else case e in #(
5580 e) if test -z "$GREP"; then
5581 ac_path_GREP_found=false
5582 # Loop through the user's path and test for each of PROGNAME-LIST
5583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5584 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5585 do
5586 IFS=$as_save_IFS
5587 case $as_dir in #(((
5588 '') as_dir=./ ;;
5589 */) ;;
5590 *) as_dir=$as_dir/ ;;
5591 esac
5592 for ac_prog in grep ggrep
5593 do
5594 for ac_exec_ext in '' $ac_executable_extensions; do
5595 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5596 as_fn_executable_p "$ac_path_GREP" || continue
5597 # Check for GNU ac_path_GREP and select it if it is found.
5598 # Check for GNU $ac_path_GREP
5599 case `"$ac_path_GREP" --version 2>&1` in #(
5600 *GNU*)
5601 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5602 #(
5603 *)
5604 ac_count=0
5605 printf %s 0123456789 >"conftest.in"
5606 while :
5607 do
5608 cat "conftest.in" "conftest.in" >"conftest.tmp"
5609 mv "conftest.tmp" "conftest.in"
5610 cp "conftest.in" "conftest.nl"
5611 printf "%s\n" 'GREP' >> "conftest.nl"
5612 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5613 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5614 as_fn_arith $ac_count + 1 && ac_count=$as_val
5615 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5616 # Best one so far, save it but keep looking for a better one
5617 ac_cv_path_GREP="$ac_path_GREP"
5618 ac_path_GREP_max=$ac_count
5619 fi
5620 # 10*(2^10) chars as input seems more than enough
5621 test $ac_count -gt 10 && break
5622 done
5623 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5624 esac
5625
5626 $ac_path_GREP_found && break 3
5627 done
5628 done
5629 done
5630 IFS=$as_save_IFS
5631 if test -z "$ac_cv_path_GREP"; then
5632 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5633 fi
5634 else
5635 ac_cv_path_GREP=$GREP
5636 fi
5637 ;;
5638 esac
5639 fi
5640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5641 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5642 GREP="$ac_cv_path_GREP"
5643
5644
5645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5646 printf %s "checking for egrep... " >&6; }
5647 if test ${ac_cv_path_EGREP+y}
5648 then :
5649 printf %s "(cached) " >&6
5650 else case e in #(
5651 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5652 then ac_cv_path_EGREP="$GREP -E"
5653 else
5654 if test -z "$EGREP"; then
5655 ac_path_EGREP_found=false
5656 # Loop through the user's path and test for each of PROGNAME-LIST
5657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5658 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5659 do
5660 IFS=$as_save_IFS
5661 case $as_dir in #(((
5662 '') as_dir=./ ;;
5663 */) ;;
5664 *) as_dir=$as_dir/ ;;
5665 esac
5666 for ac_prog in egrep
5667 do
5668 for ac_exec_ext in '' $ac_executable_extensions; do
5669 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5670 as_fn_executable_p "$ac_path_EGREP" || continue
5671 # Check for GNU ac_path_EGREP and select it if it is found.
5672 # Check for GNU $ac_path_EGREP
5673 case `"$ac_path_EGREP" --version 2>&1` in #(
5674 *GNU*)
5675 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5676 #(
5677 *)
5678 ac_count=0
5679 printf %s 0123456789 >"conftest.in"
5680 while :
5681 do
5682 cat "conftest.in" "conftest.in" >"conftest.tmp"
5683 mv "conftest.tmp" "conftest.in"
5684 cp "conftest.in" "conftest.nl"
5685 printf "%s\n" 'EGREP' >> "conftest.nl"
5686 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5687 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5688 as_fn_arith $ac_count + 1 && ac_count=$as_val
5689 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5690 # Best one so far, save it but keep looking for a better one
5691 ac_cv_path_EGREP="$ac_path_EGREP"
5692 ac_path_EGREP_max=$ac_count
5693 fi
5694 # 10*(2^10) chars as input seems more than enough
5695 test $ac_count -gt 10 && break
5696 done
5697 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5698 esac
5699
5700 $ac_path_EGREP_found && break 3
5701 done
5702 done
5703 done
5704 IFS=$as_save_IFS
5705 if test -z "$ac_cv_path_EGREP"; then
5706 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5707 fi
5708 else
5709 ac_cv_path_EGREP=$EGREP
5710 fi
5711
5712 fi ;;
5713 esac
5714 fi
5715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5716 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5717 EGREP="$ac_cv_path_EGREP"
5718
5719 EGREP_TRADITIONAL=$EGREP
5720 ac_cv_path_EGREP_TRADITIONAL=$EGREP
5721
5722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5723 printf %s "checking for fgrep... " >&6; }
5724 if test ${ac_cv_path_FGREP+y}
5725 then :
5726 printf %s "(cached) " >&6
5727 else case e in #(
5728 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5729 then ac_cv_path_FGREP="$GREP -F"
5730 else
5731 if test -z "$FGREP"; then
5732 ac_path_FGREP_found=false
5733 # Loop through the user's path and test for each of PROGNAME-LIST
5734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5735 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5736 do
5737 IFS=$as_save_IFS
5738 case $as_dir in #(((
5739 '') as_dir=./ ;;
5740 */) ;;
5741 *) as_dir=$as_dir/ ;;
5742 esac
5743 for ac_prog in fgrep
5744 do
5745 for ac_exec_ext in '' $ac_executable_extensions; do
5746 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5747 as_fn_executable_p "$ac_path_FGREP" || continue
5748 # Check for GNU ac_path_FGREP and select it if it is found.
5749 # Check for GNU $ac_path_FGREP
5750 case `"$ac_path_FGREP" --version 2>&1` in #(
5751 *GNU*)
5752 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5753 #(
5754 *)
5755 ac_count=0
5756 printf %s 0123456789 >"conftest.in"
5757 while :
5758 do
5759 cat "conftest.in" "conftest.in" >"conftest.tmp"
5760 mv "conftest.tmp" "conftest.in"
5761 cp "conftest.in" "conftest.nl"
5762 printf "%s\n" 'FGREP' >> "conftest.nl"
5763 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5764 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5765 as_fn_arith $ac_count + 1 && ac_count=$as_val
5766 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5767 # Best one so far, save it but keep looking for a better one
5768 ac_cv_path_FGREP="$ac_path_FGREP"
5769 ac_path_FGREP_max=$ac_count
5770 fi
5771 # 10*(2^10) chars as input seems more than enough
5772 test $ac_count -gt 10 && break
5773 done
5774 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5775 esac
5776
5777 $ac_path_FGREP_found && break 3
5778 done
5779 done
5780 done
5781 IFS=$as_save_IFS
5782 if test -z "$ac_cv_path_FGREP"; then
5783 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5784 fi
5785 else
5786 ac_cv_path_FGREP=$FGREP
5787 fi
5788
5789 fi ;;
5790 esac
5791 fi
5792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5793 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5794 FGREP="$ac_cv_path_FGREP"
5795
5796
5797 test -z "$GREP" && GREP=grep
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817 # Check whether --with-gnu-ld was given.
5818 if test ${with_gnu_ld+y}
5819 then :
5820 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5821 else case e in #(
5822 e) with_gnu_ld=no ;;
5823 esac
5824 fi
5825
5826 ac_prog=ld
5827 if test yes = "$GCC"; then
5828 # Check if gcc -print-prog-name=ld gives a path.
5829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5830 printf %s "checking for ld used by $CC... " >&6; }
5831 case $host in
5832 *-*-mingw* | *-*-windows*)
5833 # gcc leaves a trailing carriage return, which upsets mingw
5834 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5835 *)
5836 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5837 esac
5838 case $ac_prog in
5839 # Accept absolute paths.
5840 [\\/]* | ?:[\\/]*)
5841 re_direlt='/[^/][^/]*/\.\./'
5842 # Canonicalize the pathname of ld
5843 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5844 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5845 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5846 done
5847 test -z "$LD" && LD=$ac_prog
5848 ;;
5849 "")
5850 # If it fails, then pretend we aren't using GCC.
5851 ac_prog=ld
5852 ;;
5853 *)
5854 # If it is relative, then search for the first ld in PATH.
5855 with_gnu_ld=unknown
5856 ;;
5857 esac
5858 elif test yes = "$with_gnu_ld"; then
5859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5860 printf %s "checking for GNU ld... " >&6; }
5861 else
5862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5863 printf %s "checking for non-GNU ld... " >&6; }
5864 fi
5865 if test ${lt_cv_path_LD+y}
5866 then :
5867 printf %s "(cached) " >&6
5868 else case e in #(
5869 e) if test -z "$LD"; then
5870 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5871 for ac_dir in $PATH; do
5872 IFS=$lt_save_ifs
5873 test -z "$ac_dir" && ac_dir=.
5874 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5875 lt_cv_path_LD=$ac_dir/$ac_prog
5876 # Check to see if the program is GNU ld. I'd rather use --version,
5877 # but apparently some variants of GNU ld only accept -v.
5878 # Break only if it was the GNU/non-GNU ld that we prefer.
5879 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5880 *GNU* | *'with BFD'*)
5881 test no != "$with_gnu_ld" && break
5882 ;;
5883 *)
5884 test yes != "$with_gnu_ld" && break
5885 ;;
5886 esac
5887 fi
5888 done
5889 IFS=$lt_save_ifs
5890 else
5891 lt_cv_path_LD=$LD # Let the user override the test with a path.
5892 fi ;;
5893 esac
5894 fi
5895
5896 LD=$lt_cv_path_LD
5897 if test -n "$LD"; then
5898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5899 printf "%s\n" "$LD" >&6; }
5900 else
5901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5902 printf "%s\n" "no" >&6; }
5903 fi
5904 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5906 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5907 if test ${lt_cv_prog_gnu_ld+y}
5908 then :
5909 printf %s "(cached) " >&6
5910 else case e in #(
5911 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
5912 case `$LD -v 2>&1 </dev/null` in
5913 *GNU* | *'with BFD'*)
5914 lt_cv_prog_gnu_ld=yes
5915 ;;
5916 *)
5917 lt_cv_prog_gnu_ld=no
5918 ;;
5919 esac ;;
5920 esac
5921 fi
5922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5923 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5924 with_gnu_ld=$lt_cv_prog_gnu_ld
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5935 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5936 if test ${lt_cv_path_NM+y}
5937 then :
5938 printf %s "(cached) " >&6
5939 else case e in #(
5940 e) if test -n "$NM"; then
5941 # Let the user override the test.
5942 lt_cv_path_NM=$NM
5943 else
5944 lt_nm_to_check=${ac_tool_prefix}nm
5945 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5946 lt_nm_to_check="$lt_nm_to_check nm"
5947 fi
5948 for lt_tmp_nm in $lt_nm_to_check; do
5949 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5950 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5951 IFS=$lt_save_ifs
5952 test -z "$ac_dir" && ac_dir=.
5953 tmp_nm=$ac_dir/$lt_tmp_nm
5954 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5955 # Check to see if the nm accepts a BSD-compat flag.
5956 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5957 # nm: unknown option "B" ignored
5958 # Tru64's nm complains that /dev/null is an invalid object file
5959 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5960 case $build_os in
5961 mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
5962 *) lt_bad_file=/dev/null ;;
5963 esac
5964 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5965 *$lt_bad_file* | *'Invalid file or object type'*)
5966 lt_cv_path_NM="$tmp_nm -B"
5967 break 2
5968 ;;
5969 *)
5970 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5971 */dev/null*)
5972 lt_cv_path_NM="$tmp_nm -p"
5973 break 2
5974 ;;
5975 *)
5976 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5977 continue # so that we can try to find one that supports BSD flags
5978 ;;
5979 esac
5980 ;;
5981 esac
5982 fi
5983 done
5984 IFS=$lt_save_ifs
5985 done
5986 : ${lt_cv_path_NM=no}
5987 fi ;;
5988 esac
5989 fi
5990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5991 printf "%s\n" "$lt_cv_path_NM" >&6; }
5992 if test no != "$lt_cv_path_NM"; then
5993 NM=$lt_cv_path_NM
5994 else
5995 # Didn't find any BSD compatible name lister, look for dumpbin.
5996 if test -n "$DUMPBIN"; then :
5997 # Let the user override the test.
5998 else
5999 if test -n "$ac_tool_prefix"; then
6000 for ac_prog in dumpbin "link -dump"
6001 do
6002 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6003 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6005 printf %s "checking for $ac_word... " >&6; }
6006 if test ${ac_cv_prog_DUMPBIN+y}
6007 then :
6008 printf %s "(cached) " >&6
6009 else case e in #(
6010 e) if test -n "$DUMPBIN"; then
6011 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6012 else
6013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6014 for as_dir in $PATH
6015 do
6016 IFS=$as_save_IFS
6017 case $as_dir in #(((
6018 '') as_dir=./ ;;
6019 */) ;;
6020 *) as_dir=$as_dir/ ;;
6021 esac
6022 for ac_exec_ext in '' $ac_executable_extensions; do
6023 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6024 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6025 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6026 break 2
6027 fi
6028 done
6029 done
6030 IFS=$as_save_IFS
6031
6032 fi ;;
6033 esac
6034 fi
6035 DUMPBIN=$ac_cv_prog_DUMPBIN
6036 if test -n "$DUMPBIN"; then
6037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6038 printf "%s\n" "$DUMPBIN" >&6; }
6039 else
6040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6041 printf "%s\n" "no" >&6; }
6042 fi
6043
6044
6045 test -n "$DUMPBIN" && break
6046 done
6047 fi
6048 if test -z "$DUMPBIN"; then
6049 ac_ct_DUMPBIN=$DUMPBIN
6050 for ac_prog in dumpbin "link -dump"
6051 do
6052 # Extract the first word of "$ac_prog", so it can be a program name with args.
6053 set dummy $ac_prog; ac_word=$2
6054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6055 printf %s "checking for $ac_word... " >&6; }
6056 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
6057 then :
6058 printf %s "(cached) " >&6
6059 else case e in #(
6060 e) if test -n "$ac_ct_DUMPBIN"; then
6061 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6062 else
6063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6064 for as_dir in $PATH
6065 do
6066 IFS=$as_save_IFS
6067 case $as_dir in #(((
6068 '') as_dir=./ ;;
6069 */) ;;
6070 *) as_dir=$as_dir/ ;;
6071 esac
6072 for ac_exec_ext in '' $ac_executable_extensions; do
6073 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6074 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6075 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6076 break 2
6077 fi
6078 done
6079 done
6080 IFS=$as_save_IFS
6081
6082 fi ;;
6083 esac
6084 fi
6085 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6086 if test -n "$ac_ct_DUMPBIN"; then
6087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6088 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
6089 else
6090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6091 printf "%s\n" "no" >&6; }
6092 fi
6093
6094
6095 test -n "$ac_ct_DUMPBIN" && break
6096 done
6097
6098 if test "x$ac_ct_DUMPBIN" = x; then
6099 DUMPBIN=":"
6100 else
6101 case $cross_compiling:$ac_tool_warned in
6102 yes:)
6103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6104 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6105 ac_tool_warned=yes ;;
6106 esac
6107 DUMPBIN=$ac_ct_DUMPBIN
6108 fi
6109 fi
6110
6111 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
6112 *COFF*)
6113 DUMPBIN="$DUMPBIN -symbols -headers"
6114 ;;
6115 *)
6116 DUMPBIN=:
6117 ;;
6118 esac
6119 fi
6120
6121 if test : != "$DUMPBIN"; then
6122 NM=$DUMPBIN
6123 fi
6124 fi
6125 test -z "$NM" && NM=nm
6126
6127
6128
6129
6130
6131
6132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6133 printf %s "checking the name lister ($NM) interface... " >&6; }
6134 if test ${lt_cv_nm_interface+y}
6135 then :
6136 printf %s "(cached) " >&6
6137 else case e in #(
6138 e) lt_cv_nm_interface="BSD nm"
6139 echo "int some_variable = 0;" > conftest.$ac_ext
6140 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6141 (eval "$ac_compile" 2>conftest.err)
6142 cat conftest.err >&5
6143 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6144 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6145 cat conftest.err >&5
6146 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6147 cat conftest.out >&5
6148 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6149 lt_cv_nm_interface="MS dumpbin"
6150 fi
6151 rm -f conftest* ;;
6152 esac
6153 fi
6154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6155 printf "%s\n" "$lt_cv_nm_interface" >&6; }
6156
6157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6158 printf %s "checking whether ln -s works... " >&6; }
6159 LN_S=$as_ln_s
6160 if test "$LN_S" = "ln -s"; then
6161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6162 printf "%s\n" "yes" >&6; }
6163 else
6164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6165 printf "%s\n" "no, using $LN_S" >&6; }
6166 fi
6167
6168 # find the maximum length of command line arguments
6169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6170 printf %s "checking the maximum length of command line arguments... " >&6; }
6171 if test ${lt_cv_sys_max_cmd_len+y}
6172 then :
6173 printf %s "(cached) " >&6
6174 else case e in #(
6175 e) i=0
6176 teststring=ABCD
6177
6178 case $build_os in
6179 msdosdjgpp*)
6180 # On DJGPP, this test can blow up pretty badly due to problems in libc
6181 # (any single argument exceeding 2000 bytes causes a buffer overrun
6182 # during glob expansion). Even if it were fixed, the result of this
6183 # check would be larger than it should be.
6184 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6185 ;;
6186
6187 gnu* | ironclad*)
6188 # Under GNU Hurd and Ironclad, this test is not required because there
6189 # is no limit to the length of command line arguments.
6190 # Libtool will interpret -1 as no limit whatsoever
6191 lt_cv_sys_max_cmd_len=-1;
6192 ;;
6193
6194 cygwin* | mingw* | windows* | cegcc*)
6195 # On Win9x/ME, this test blows up -- it succeeds, but takes
6196 # about 5 minutes as the teststring grows exponentially.
6197 # Worse, since 9x/ME are not pre-emptively multitasking,
6198 # you end up with a "frozen" computer, even though with patience
6199 # the test eventually succeeds (with a max line length of 256k).
6200 # Instead, let's just punt: use the minimum linelength reported by
6201 # all of the supported platforms: 8192 (on NT/2K/XP).
6202 lt_cv_sys_max_cmd_len=8192;
6203 ;;
6204
6205 mint*)
6206 # On MiNT this can take a long time and run out of memory.
6207 lt_cv_sys_max_cmd_len=8192;
6208 ;;
6209
6210 amigaos*)
6211 # On AmigaOS with pdksh, this test takes hours, literally.
6212 # So we just punt and use a minimum line length of 8192.
6213 lt_cv_sys_max_cmd_len=8192;
6214 ;;
6215
6216 darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
6217 # This has been around since 386BSD, at least. Likely further.
6218 if test -x /sbin/sysctl; then
6219 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6220 elif test -x /usr/sbin/sysctl; then
6221 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6222 else
6223 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6224 fi
6225 # And add a safety zone
6226 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6227 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6228 ;;
6229
6230 interix*)
6231 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6232 lt_cv_sys_max_cmd_len=196608
6233 ;;
6234
6235 os2*)
6236 # The test takes a long time on OS/2.
6237 lt_cv_sys_max_cmd_len=8192
6238 ;;
6239
6240 osf*)
6241 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6242 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6243 # nice to cause kernel panics so lets avoid the loop below.
6244 # First set a reasonable default.
6245 lt_cv_sys_max_cmd_len=16384
6246 #
6247 if test -x /sbin/sysconfig; then
6248 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6249 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6250 esac
6251 fi
6252 ;;
6253 sco3.2v5*)
6254 lt_cv_sys_max_cmd_len=102400
6255 ;;
6256 sysv5* | sco5v6* | sysv4.2uw2*)
6257 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6258 if test -n "$kargmax"; then
6259 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
6260 else
6261 lt_cv_sys_max_cmd_len=32768
6262 fi
6263 ;;
6264 *)
6265 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6266 if test -n "$lt_cv_sys_max_cmd_len" && \
6267 test undefined != "$lt_cv_sys_max_cmd_len"; then
6268 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6269 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6270 else
6271 # Make teststring a little bigger before we do anything with it.
6272 # a 1K string should be a reasonable start.
6273 for i in 1 2 3 4 5 6 7 8; do
6274 teststring=$teststring$teststring
6275 done
6276 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6277 # If test is not a shell built-in, we'll probably end up computing a
6278 # maximum length that is only half of the actual maximum length, but
6279 # we can't tell.
6280 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6281 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6282 test 17 != "$i" # 1/2 MB should be enough
6283 do
6284 i=`expr $i + 1`
6285 teststring=$teststring$teststring
6286 done
6287 # Only check the string length outside the loop.
6288 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6289 teststring=
6290 # Add a significant safety factor because C++ compilers can tack on
6291 # massive amounts of additional arguments before passing them to the
6292 # linker. It appears as though 1/2 is a usable value.
6293 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6294 fi
6295 ;;
6296 esac
6297 ;;
6298 esac
6299 fi
6300
6301 if test -n "$lt_cv_sys_max_cmd_len"; then
6302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6303 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6304 else
6305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6306 printf "%s\n" "none" >&6; }
6307 fi
6308 max_cmd_len=$lt_cv_sys_max_cmd_len
6309
6310
6311
6312
6313
6314
6315 : ${CP="cp -f"}
6316 : ${MV="mv -f"}
6317 : ${RM="rm -f"}
6318
6319 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6320 lt_unset=unset
6321 else
6322 lt_unset=false
6323 fi
6324
6325
6326
6327
6328
6329 # test EBCDIC or ASCII
6330 case `echo X|tr X '\101'` in
6331 A) # ASCII based system
6332 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6333 lt_SP2NL='tr \040 \012'
6334 lt_NL2SP='tr \015\012 \040\040'
6335 ;;
6336 *) # EBCDIC based system
6337 lt_SP2NL='tr \100 \n'
6338 lt_NL2SP='tr \r\n \100\100'
6339 ;;
6340 esac
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6351 printf %s "checking how to convert $build file names to $host format... " >&6; }
6352 if test ${lt_cv_to_host_file_cmd+y}
6353 then :
6354 printf %s "(cached) " >&6
6355 else case e in #(
6356 e) case $host in
6357 *-*-mingw* )
6358 case $build in
6359 *-*-mingw* | *-*-windows* ) # actually msys
6360 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6361 ;;
6362 *-*-cygwin* )
6363 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6364 ;;
6365 * ) # otherwise, assume *nix
6366 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6367 ;;
6368 esac
6369 ;;
6370 *-*-cygwin* )
6371 case $build in
6372 *-*-mingw* | *-*-windows* ) # actually msys
6373 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6374 ;;
6375 *-*-cygwin* )
6376 lt_cv_to_host_file_cmd=func_convert_file_noop
6377 ;;
6378 * ) # otherwise, assume *nix
6379 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6380 ;;
6381 esac
6382 ;;
6383 * ) # unhandled hosts (and "normal" native builds)
6384 lt_cv_to_host_file_cmd=func_convert_file_noop
6385 ;;
6386 esac
6387 ;;
6388 esac
6389 fi
6390
6391 to_host_file_cmd=$lt_cv_to_host_file_cmd
6392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6393 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6394
6395
6396
6397
6398
6399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6400 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6401 if test ${lt_cv_to_tool_file_cmd+y}
6402 then :
6403 printf %s "(cached) " >&6
6404 else case e in #(
6405 e) #assume ordinary cross tools, or native build.
6406 lt_cv_to_tool_file_cmd=func_convert_file_noop
6407 case $host in
6408 *-*-mingw* | *-*-windows* )
6409 case $build in
6410 *-*-mingw* | *-*-windows* ) # actually msys
6411 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6412 ;;
6413 esac
6414 ;;
6415 esac
6416 ;;
6417 esac
6418 fi
6419
6420 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6422 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6423
6424
6425
6426
6427
6428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6429 printf %s "checking for $LD option to reload object files... " >&6; }
6430 if test ${lt_cv_ld_reload_flag+y}
6431 then :
6432 printf %s "(cached) " >&6
6433 else case e in #(
6434 e) lt_cv_ld_reload_flag='-r' ;;
6435 esac
6436 fi
6437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6438 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6439 reload_flag=$lt_cv_ld_reload_flag
6440 case $reload_flag in
6441 "" | " "*) ;;
6442 *) reload_flag=" $reload_flag" ;;
6443 esac
6444 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6445 case $host_os in
6446 cygwin* | mingw* | windows* | pw32* | cegcc*)
6447 if test yes != "$GCC"; then
6448 reload_cmds=false
6449 fi
6450 ;;
6451 darwin*)
6452 if test yes = "$GCC"; then
6453 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6454 else
6455 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6456 fi
6457 ;;
6458 esac
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468 # Extract the first word of "file", so it can be a program name with args.
6469 set dummy file; ac_word=$2
6470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6471 printf %s "checking for $ac_word... " >&6; }
6472 if test ${ac_cv_prog_FILECMD+y}
6473 then :
6474 printf %s "(cached) " >&6
6475 else case e in #(
6476 e) if test -n "$FILECMD"; then
6477 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
6478 else
6479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6480 for as_dir in $PATH
6481 do
6482 IFS=$as_save_IFS
6483 case $as_dir in #(((
6484 '') as_dir=./ ;;
6485 */) ;;
6486 *) as_dir=$as_dir/ ;;
6487 esac
6488 for ac_exec_ext in '' $ac_executable_extensions; do
6489 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6490 ac_cv_prog_FILECMD="file"
6491 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6492 break 2
6493 fi
6494 done
6495 done
6496 IFS=$as_save_IFS
6497
6498 test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":"
6499 fi ;;
6500 esac
6501 fi
6502 FILECMD=$ac_cv_prog_FILECMD
6503 if test -n "$FILECMD"; then
6504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6505 printf "%s\n" "$FILECMD" >&6; }
6506 else
6507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6508 printf "%s\n" "no" >&6; }
6509 fi
6510
6511
6512
6513
6514
6515
6516
6517
6518 if test -n "$ac_tool_prefix"; then
6519 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6520 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6522 printf %s "checking for $ac_word... " >&6; }
6523 if test ${ac_cv_prog_OBJDUMP+y}
6524 then :
6525 printf %s "(cached) " >&6
6526 else case e in #(
6527 e) if test -n "$OBJDUMP"; then
6528 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6529 else
6530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6531 for as_dir in $PATH
6532 do
6533 IFS=$as_save_IFS
6534 case $as_dir in #(((
6535 '') as_dir=./ ;;
6536 */) ;;
6537 *) as_dir=$as_dir/ ;;
6538 esac
6539 for ac_exec_ext in '' $ac_executable_extensions; do
6540 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6541 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6542 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6543 break 2
6544 fi
6545 done
6546 done
6547 IFS=$as_save_IFS
6548
6549 fi ;;
6550 esac
6551 fi
6552 OBJDUMP=$ac_cv_prog_OBJDUMP
6553 if test -n "$OBJDUMP"; then
6554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6555 printf "%s\n" "$OBJDUMP" >&6; }
6556 else
6557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6558 printf "%s\n" "no" >&6; }
6559 fi
6560
6561
6562 fi
6563 if test -z "$ac_cv_prog_OBJDUMP"; then
6564 ac_ct_OBJDUMP=$OBJDUMP
6565 # Extract the first word of "objdump", so it can be a program name with args.
6566 set dummy objdump; ac_word=$2
6567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6568 printf %s "checking for $ac_word... " >&6; }
6569 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6570 then :
6571 printf %s "(cached) " >&6
6572 else case e in #(
6573 e) if test -n "$ac_ct_OBJDUMP"; then
6574 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6575 else
6576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6577 for as_dir in $PATH
6578 do
6579 IFS=$as_save_IFS
6580 case $as_dir in #(((
6581 '') as_dir=./ ;;
6582 */) ;;
6583 *) as_dir=$as_dir/ ;;
6584 esac
6585 for ac_exec_ext in '' $ac_executable_extensions; do
6586 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6587 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6588 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6589 break 2
6590 fi
6591 done
6592 done
6593 IFS=$as_save_IFS
6594
6595 fi ;;
6596 esac
6597 fi
6598 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6599 if test -n "$ac_ct_OBJDUMP"; then
6600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6601 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6602 else
6603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6604 printf "%s\n" "no" >&6; }
6605 fi
6606
6607 if test "x$ac_ct_OBJDUMP" = x; then
6608 OBJDUMP="false"
6609 else
6610 case $cross_compiling:$ac_tool_warned in
6611 yes:)
6612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6613 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6614 ac_tool_warned=yes ;;
6615 esac
6616 OBJDUMP=$ac_ct_OBJDUMP
6617 fi
6618 else
6619 OBJDUMP="$ac_cv_prog_OBJDUMP"
6620 fi
6621
6622 test -z "$OBJDUMP" && OBJDUMP=objdump
6623
6624
6625
6626
6627
6628
6629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6630 printf %s "checking how to recognize dependent libraries... " >&6; }
6631 if test ${lt_cv_deplibs_check_method+y}
6632 then :
6633 printf %s "(cached) " >&6
6634 else case e in #(
6635 e) lt_cv_file_magic_cmd='$MAGIC_CMD'
6636 lt_cv_file_magic_test_file=
6637 lt_cv_deplibs_check_method='unknown'
6638 # Need to set the preceding variable on all platforms that support
6639 # interlibrary dependencies.
6640 # 'none' -- dependencies not supported.
6641 # 'unknown' -- same as none, but documents that we really don't know.
6642 # 'pass_all' -- all dependencies passed with no checks.
6643 # 'file_magic [[regex]]' -- check by looking for files in library path
6644 # that responds to the $file_magic_cmd with a given extended regex.
6645 # If you have 'file' or equivalent on your system and you're not sure
6646 # whether 'pass_all' will *always* work, you probably want this one.
6647
6648 case $host_os in
6649 aix[4-9]*)
6650 lt_cv_deplibs_check_method=pass_all
6651 ;;
6652
6653 beos*)
6654 lt_cv_deplibs_check_method=pass_all
6655 ;;
6656
6657 bsdi[45]*)
6658 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6659 lt_cv_file_magic_cmd='$FILECMD -L'
6660 lt_cv_file_magic_test_file=/shlib/libc.so
6661 ;;
6662
6663 cygwin*)
6664 # func_win32_libid is a shell function defined in ltmain.sh
6665 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6666 lt_cv_file_magic_cmd='func_win32_libid'
6667 ;;
6668
6669 mingw* | windows* | pw32*)
6670 # Base MSYS/MinGW do not provide the 'file' command needed by
6671 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6672 # unless we find 'file', for example because we are cross-compiling.
6673 if ( file / ) >/dev/null 2>&1; then
6674 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6675 lt_cv_file_magic_cmd='func_win32_libid'
6676 else
6677 # Keep this pattern in sync with the one in func_win32_libid.
6678 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
6679 lt_cv_file_magic_cmd='$OBJDUMP -f'
6680 fi
6681 ;;
6682
6683 cegcc*)
6684 # use the weaker test based on 'objdump'. See mingw*.
6685 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6686 lt_cv_file_magic_cmd='$OBJDUMP -f'
6687 ;;
6688
6689 darwin* | rhapsody*)
6690 lt_cv_deplibs_check_method=pass_all
6691 ;;
6692
6693 freebsd* | dragonfly* | midnightbsd*)
6694 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6695 case $host_cpu in
6696 i*86 )
6697 # Not sure whether the presence of OpenBSD here was a mistake.
6698 # Let's accept both of them until this is cleared up.
6699 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6700 lt_cv_file_magic_cmd=$FILECMD
6701 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6702 ;;
6703 esac
6704 else
6705 lt_cv_deplibs_check_method=pass_all
6706 fi
6707 ;;
6708
6709 haiku*)
6710 lt_cv_deplibs_check_method=pass_all
6711 ;;
6712
6713 hpux10.20* | hpux11*)
6714 lt_cv_file_magic_cmd=$FILECMD
6715 case $host_cpu in
6716 ia64*)
6717 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6718 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6719 ;;
6720 hppa*64*)
6721 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]'
6722 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6723 ;;
6724 *)
6725 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6726 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6727 ;;
6728 esac
6729 ;;
6730
6731 interix[3-9]*)
6732 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6733 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6734 ;;
6735
6736 irix5* | irix6* | nonstopux*)
6737 case $LD in
6738 *-32|*"-32 ") libmagic=32-bit;;
6739 *-n32|*"-n32 ") libmagic=N32;;
6740 *-64|*"-64 ") libmagic=64-bit;;
6741 *) libmagic=never-match;;
6742 esac
6743 lt_cv_deplibs_check_method=pass_all
6744 ;;
6745
6746 # This must be glibc/ELF.
6747 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6748 lt_cv_deplibs_check_method=pass_all
6749 ;;
6750
6751 *-mlibc)
6752 lt_cv_deplibs_check_method=pass_all
6753 ;;
6754
6755 netbsd* | netbsdelf*-gnu)
6756 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6757 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6758 else
6759 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6760 fi
6761 ;;
6762
6763 newos6*)
6764 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6765 lt_cv_file_magic_cmd=$FILECMD
6766 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6767 ;;
6768
6769 *nto* | *qnx*)
6770 lt_cv_deplibs_check_method=pass_all
6771 ;;
6772
6773 openbsd*)
6774 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6775 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6776 else
6777 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6778 fi
6779 ;;
6780
6781 osf3* | osf4* | osf5*)
6782 lt_cv_deplibs_check_method=pass_all
6783 ;;
6784
6785 rdos*)
6786 lt_cv_deplibs_check_method=pass_all
6787 ;;
6788
6789 serenity*)
6790 lt_cv_deplibs_check_method=pass_all
6791 ;;
6792
6793 solaris*)
6794 lt_cv_deplibs_check_method=pass_all
6795 ;;
6796
6797 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6798 lt_cv_deplibs_check_method=pass_all
6799 ;;
6800
6801 sysv4 | sysv4.3*)
6802 case $host_vendor in
6803 motorola)
6804 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]'
6805 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6806 ;;
6807 ncr)
6808 lt_cv_deplibs_check_method=pass_all
6809 ;;
6810 sequent)
6811 lt_cv_file_magic_cmd='/bin/file'
6812 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6813 ;;
6814 sni)
6815 lt_cv_file_magic_cmd='/bin/file'
6816 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6817 lt_cv_file_magic_test_file=/lib/libc.so
6818 ;;
6819 siemens)
6820 lt_cv_deplibs_check_method=pass_all
6821 ;;
6822 pc)
6823 lt_cv_deplibs_check_method=pass_all
6824 ;;
6825 esac
6826 ;;
6827
6828 tpf*)
6829 lt_cv_deplibs_check_method=pass_all
6830 ;;
6831 os2*)
6832 lt_cv_deplibs_check_method=pass_all
6833 ;;
6834 esac
6835 ;;
6836 esac
6837 fi
6838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6839 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6840
6841 file_magic_glob=
6842 want_nocaseglob=no
6843 if test "$build" = "$host"; then
6844 case $host_os in
6845 mingw* | windows* | pw32*)
6846 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6847 want_nocaseglob=yes
6848 else
6849 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6850 fi
6851 ;;
6852 esac
6853 fi
6854
6855 file_magic_cmd=$lt_cv_file_magic_cmd
6856 deplibs_check_method=$lt_cv_deplibs_check_method
6857 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880 if test -n "$ac_tool_prefix"; then
6881 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6882 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6884 printf %s "checking for $ac_word... " >&6; }
6885 if test ${ac_cv_prog_DLLTOOL+y}
6886 then :
6887 printf %s "(cached) " >&6
6888 else case e in #(
6889 e) if test -n "$DLLTOOL"; then
6890 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6891 else
6892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6893 for as_dir in $PATH
6894 do
6895 IFS=$as_save_IFS
6896 case $as_dir in #(((
6897 '') as_dir=./ ;;
6898 */) ;;
6899 *) as_dir=$as_dir/ ;;
6900 esac
6901 for ac_exec_ext in '' $ac_executable_extensions; do
6902 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6903 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6904 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6905 break 2
6906 fi
6907 done
6908 done
6909 IFS=$as_save_IFS
6910
6911 fi ;;
6912 esac
6913 fi
6914 DLLTOOL=$ac_cv_prog_DLLTOOL
6915 if test -n "$DLLTOOL"; then
6916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6917 printf "%s\n" "$DLLTOOL" >&6; }
6918 else
6919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6920 printf "%s\n" "no" >&6; }
6921 fi
6922
6923
6924 fi
6925 if test -z "$ac_cv_prog_DLLTOOL"; then
6926 ac_ct_DLLTOOL=$DLLTOOL
6927 # Extract the first word of "dlltool", so it can be a program name with args.
6928 set dummy dlltool; ac_word=$2
6929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6930 printf %s "checking for $ac_word... " >&6; }
6931 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6932 then :
6933 printf %s "(cached) " >&6
6934 else case e in #(
6935 e) if test -n "$ac_ct_DLLTOOL"; then
6936 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6937 else
6938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6939 for as_dir in $PATH
6940 do
6941 IFS=$as_save_IFS
6942 case $as_dir in #(((
6943 '') as_dir=./ ;;
6944 */) ;;
6945 *) as_dir=$as_dir/ ;;
6946 esac
6947 for ac_exec_ext in '' $ac_executable_extensions; do
6948 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6949 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6950 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6951 break 2
6952 fi
6953 done
6954 done
6955 IFS=$as_save_IFS
6956
6957 fi ;;
6958 esac
6959 fi
6960 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6961 if test -n "$ac_ct_DLLTOOL"; then
6962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6963 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6964 else
6965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6966 printf "%s\n" "no" >&6; }
6967 fi
6968
6969 if test "x$ac_ct_DLLTOOL" = x; then
6970 DLLTOOL="false"
6971 else
6972 case $cross_compiling:$ac_tool_warned in
6973 yes:)
6974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6975 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6976 ac_tool_warned=yes ;;
6977 esac
6978 DLLTOOL=$ac_ct_DLLTOOL
6979 fi
6980 else
6981 DLLTOOL="$ac_cv_prog_DLLTOOL"
6982 fi
6983
6984 test -z "$DLLTOOL" && DLLTOOL=dlltool
6985
6986
6987
6988
6989
6990
6991
6992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6993 printf %s "checking how to associate runtime and link libraries... " >&6; }
6994 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6995 then :
6996 printf %s "(cached) " >&6
6997 else case e in #(
6998 e) lt_cv_sharedlib_from_linklib_cmd='unknown'
6999
7000 case $host_os in
7001 cygwin* | mingw* | windows* | pw32* | cegcc*)
7002 # two different shell functions defined in ltmain.sh;
7003 # decide which one to use based on capabilities of $DLLTOOL
7004 case `$DLLTOOL --help 2>&1` in
7005 *--identify-strict*)
7006 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7007 ;;
7008 *)
7009 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7010 ;;
7011 esac
7012 ;;
7013 *)
7014 # fallback: assume linklib IS sharedlib
7015 lt_cv_sharedlib_from_linklib_cmd=$ECHO
7016 ;;
7017 esac
7018 ;;
7019 esac
7020 fi
7021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7022 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7023 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7024 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7025
7026
7027
7028
7029
7030
7031
7032 if test -n "$ac_tool_prefix"; then
7033 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7034 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7036 printf %s "checking for $ac_word... " >&6; }
7037 if test ${ac_cv_prog_RANLIB+y}
7038 then :
7039 printf %s "(cached) " >&6
7040 else case e in #(
7041 e) if test -n "$RANLIB"; then
7042 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7043 else
7044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7045 for as_dir in $PATH
7046 do
7047 IFS=$as_save_IFS
7048 case $as_dir in #(((
7049 '') as_dir=./ ;;
7050 */) ;;
7051 *) as_dir=$as_dir/ ;;
7052 esac
7053 for ac_exec_ext in '' $ac_executable_extensions; do
7054 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7055 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7056 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7057 break 2
7058 fi
7059 done
7060 done
7061 IFS=$as_save_IFS
7062
7063 fi ;;
7064 esac
7065 fi
7066 RANLIB=$ac_cv_prog_RANLIB
7067 if test -n "$RANLIB"; then
7068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7069 printf "%s\n" "$RANLIB" >&6; }
7070 else
7071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7072 printf "%s\n" "no" >&6; }
7073 fi
7074
7075
7076 fi
7077 if test -z "$ac_cv_prog_RANLIB"; then
7078 ac_ct_RANLIB=$RANLIB
7079 # Extract the first word of "ranlib", so it can be a program name with args.
7080 set dummy ranlib; ac_word=$2
7081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7082 printf %s "checking for $ac_word... " >&6; }
7083 if test ${ac_cv_prog_ac_ct_RANLIB+y}
7084 then :
7085 printf %s "(cached) " >&6
7086 else case e in #(
7087 e) if test -n "$ac_ct_RANLIB"; then
7088 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7089 else
7090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7091 for as_dir in $PATH
7092 do
7093 IFS=$as_save_IFS
7094 case $as_dir in #(((
7095 '') as_dir=./ ;;
7096 */) ;;
7097 *) as_dir=$as_dir/ ;;
7098 esac
7099 for ac_exec_ext in '' $ac_executable_extensions; do
7100 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7101 ac_cv_prog_ac_ct_RANLIB="ranlib"
7102 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7103 break 2
7104 fi
7105 done
7106 done
7107 IFS=$as_save_IFS
7108
7109 fi ;;
7110 esac
7111 fi
7112 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7113 if test -n "$ac_ct_RANLIB"; then
7114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7115 printf "%s\n" "$ac_ct_RANLIB" >&6; }
7116 else
7117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7118 printf "%s\n" "no" >&6; }
7119 fi
7120
7121 if test "x$ac_ct_RANLIB" = x; then
7122 RANLIB=":"
7123 else
7124 case $cross_compiling:$ac_tool_warned in
7125 yes:)
7126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7127 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7128 ac_tool_warned=yes ;;
7129 esac
7130 RANLIB=$ac_ct_RANLIB
7131 fi
7132 else
7133 RANLIB="$ac_cv_prog_RANLIB"
7134 fi
7135
7136 if test -n "$ac_tool_prefix"; then
7137 for ac_prog in ar
7138 do
7139 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7140 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7142 printf %s "checking for $ac_word... " >&6; }
7143 if test ${ac_cv_prog_AR+y}
7144 then :
7145 printf %s "(cached) " >&6
7146 else case e in #(
7147 e) if test -n "$AR"; then
7148 ac_cv_prog_AR="$AR" # Let the user override the test.
7149 else
7150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7151 for as_dir in $PATH
7152 do
7153 IFS=$as_save_IFS
7154 case $as_dir in #(((
7155 '') as_dir=./ ;;
7156 */) ;;
7157 *) as_dir=$as_dir/ ;;
7158 esac
7159 for ac_exec_ext in '' $ac_executable_extensions; do
7160 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7161 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7162 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7163 break 2
7164 fi
7165 done
7166 done
7167 IFS=$as_save_IFS
7168
7169 fi ;;
7170 esac
7171 fi
7172 AR=$ac_cv_prog_AR
7173 if test -n "$AR"; then
7174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7175 printf "%s\n" "$AR" >&6; }
7176 else
7177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7178 printf "%s\n" "no" >&6; }
7179 fi
7180
7181
7182 test -n "$AR" && break
7183 done
7184 fi
7185 if test -z "$AR"; then
7186 ac_ct_AR=$AR
7187 for ac_prog in ar
7188 do
7189 # Extract the first word of "$ac_prog", so it can be a program name with args.
7190 set dummy $ac_prog; ac_word=$2
7191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7192 printf %s "checking for $ac_word... " >&6; }
7193 if test ${ac_cv_prog_ac_ct_AR+y}
7194 then :
7195 printf %s "(cached) " >&6
7196 else case e in #(
7197 e) if test -n "$ac_ct_AR"; then
7198 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7199 else
7200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7201 for as_dir in $PATH
7202 do
7203 IFS=$as_save_IFS
7204 case $as_dir in #(((
7205 '') as_dir=./ ;;
7206 */) ;;
7207 *) as_dir=$as_dir/ ;;
7208 esac
7209 for ac_exec_ext in '' $ac_executable_extensions; do
7210 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7211 ac_cv_prog_ac_ct_AR="$ac_prog"
7212 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7213 break 2
7214 fi
7215 done
7216 done
7217 IFS=$as_save_IFS
7218
7219 fi ;;
7220 esac
7221 fi
7222 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7223 if test -n "$ac_ct_AR"; then
7224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7225 printf "%s\n" "$ac_ct_AR" >&6; }
7226 else
7227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7228 printf "%s\n" "no" >&6; }
7229 fi
7230
7231
7232 test -n "$ac_ct_AR" && break
7233 done
7234
7235 if test "x$ac_ct_AR" = x; then
7236 AR="false"
7237 else
7238 case $cross_compiling:$ac_tool_warned in
7239 yes:)
7240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7241 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7242 ac_tool_warned=yes ;;
7243 esac
7244 AR=$ac_ct_AR
7245 fi
7246 fi
7247
7248 : ${AR=ar}
7249
7250
7251
7252
7253
7254
7255 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
7256 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
7257 # higher priority because that's what people were doing historically (setting
7258 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
7259 # variable obsoleted/removed.
7260
7261 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
7262 lt_ar_flags=$AR_FLAGS
7263
7264
7265
7266
7267
7268
7269 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
7270 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
7271
7272
7273
7274
7275
7276
7277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7278 printf %s "checking for archiver @FILE support... " >&6; }
7279 if test ${lt_cv_ar_at_file+y}
7280 then :
7281 printf %s "(cached) " >&6
7282 else case e in #(
7283 e) lt_cv_ar_at_file=no
7284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7285 /* end confdefs.h. */
7286
7287 int
7288 main (void)
7289 {
7290
7291 ;
7292 return 0;
7293 }
7294 _ACEOF
7295 if ac_fn_c_try_compile "$LINENO"
7296 then :
7297 echo conftest.$ac_objext > conftest.lst
7298 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7299 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7300 (eval $lt_ar_try) 2>&5
7301 ac_status=$?
7302 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7303 test $ac_status = 0; }
7304 if test 0 -eq "$ac_status"; then
7305 # Ensure the archiver fails upon bogus file names.
7306 rm -f conftest.$ac_objext libconftest.a
7307 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7308 (eval $lt_ar_try) 2>&5
7309 ac_status=$?
7310 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7311 test $ac_status = 0; }
7312 if test 0 -ne "$ac_status"; then
7313 lt_cv_ar_at_file=@
7314 fi
7315 fi
7316 rm -f conftest.* libconftest.a
7317
7318 fi
7319 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7320 ;;
7321 esac
7322 fi
7323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7324 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
7325
7326 if test no = "$lt_cv_ar_at_file"; then
7327 archiver_list_spec=
7328 else
7329 archiver_list_spec=$lt_cv_ar_at_file
7330 fi
7331
7332
7333
7334
7335
7336
7337
7338 if test -n "$ac_tool_prefix"; then
7339 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7340 set dummy ${ac_tool_prefix}strip; ac_word=$2
7341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7342 printf %s "checking for $ac_word... " >&6; }
7343 if test ${ac_cv_prog_STRIP+y}
7344 then :
7345 printf %s "(cached) " >&6
7346 else case e in #(
7347 e) if test -n "$STRIP"; then
7348 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7349 else
7350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7351 for as_dir in $PATH
7352 do
7353 IFS=$as_save_IFS
7354 case $as_dir in #(((
7355 '') as_dir=./ ;;
7356 */) ;;
7357 *) as_dir=$as_dir/ ;;
7358 esac
7359 for ac_exec_ext in '' $ac_executable_extensions; do
7360 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7361 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7362 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7363 break 2
7364 fi
7365 done
7366 done
7367 IFS=$as_save_IFS
7368
7369 fi ;;
7370 esac
7371 fi
7372 STRIP=$ac_cv_prog_STRIP
7373 if test -n "$STRIP"; then
7374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7375 printf "%s\n" "$STRIP" >&6; }
7376 else
7377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7378 printf "%s\n" "no" >&6; }
7379 fi
7380
7381
7382 fi
7383 if test -z "$ac_cv_prog_STRIP"; then
7384 ac_ct_STRIP=$STRIP
7385 # Extract the first word of "strip", so it can be a program name with args.
7386 set dummy strip; ac_word=$2
7387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7388 printf %s "checking for $ac_word... " >&6; }
7389 if test ${ac_cv_prog_ac_ct_STRIP+y}
7390 then :
7391 printf %s "(cached) " >&6
7392 else case e in #(
7393 e) if test -n "$ac_ct_STRIP"; then
7394 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7395 else
7396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7397 for as_dir in $PATH
7398 do
7399 IFS=$as_save_IFS
7400 case $as_dir in #(((
7401 '') as_dir=./ ;;
7402 */) ;;
7403 *) as_dir=$as_dir/ ;;
7404 esac
7405 for ac_exec_ext in '' $ac_executable_extensions; do
7406 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7407 ac_cv_prog_ac_ct_STRIP="strip"
7408 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7409 break 2
7410 fi
7411 done
7412 done
7413 IFS=$as_save_IFS
7414
7415 fi ;;
7416 esac
7417 fi
7418 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7419 if test -n "$ac_ct_STRIP"; then
7420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7421 printf "%s\n" "$ac_ct_STRIP" >&6; }
7422 else
7423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7424 printf "%s\n" "no" >&6; }
7425 fi
7426
7427 if test "x$ac_ct_STRIP" = x; then
7428 STRIP=":"
7429 else
7430 case $cross_compiling:$ac_tool_warned in
7431 yes:)
7432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7433 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7434 ac_tool_warned=yes ;;
7435 esac
7436 STRIP=$ac_ct_STRIP
7437 fi
7438 else
7439 STRIP="$ac_cv_prog_STRIP"
7440 fi
7441
7442 test -z "$STRIP" && STRIP=:
7443
7444
7445
7446
7447
7448
7449
7450 test -z "$RANLIB" && RANLIB=:
7451
7452
7453
7454
7455
7456
7457 # Determine commands to create old-style static archives.
7458 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7459 old_postinstall_cmds='chmod 644 $oldlib'
7460 old_postuninstall_cmds=
7461
7462 if test -n "$RANLIB"; then
7463 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7464 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7465 fi
7466
7467 case $host_os in
7468 darwin*)
7469 lock_old_archive_extraction=yes ;;
7470 *)
7471 lock_old_archive_extraction=no ;;
7472 esac
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512 # If no C compiler was specified, use CC.
7513 LTCC=${LTCC-"$CC"}
7514
7515 # If no C compiler flags were specified, use CFLAGS.
7516 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7517
7518 # Allow CC to be a program name with arguments.
7519 compiler=$CC
7520
7521
7522 # Check for command to grab the raw symbol name followed by C symbol from nm.
7523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7524 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7525 if test ${lt_cv_sys_global_symbol_pipe+y}
7526 then :
7527 printf %s "(cached) " >&6
7528 else case e in #(
7529 e)
7530 # These are sane defaults that work on at least a few old systems.
7531 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7532
7533 # Character class describing NM global symbol codes.
7534 symcode='[BCDEGRST]'
7535
7536 # Regexp to match symbols that can be accessed directly from C.
7537 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7538
7539 # Define system-specific variables.
7540 case $host_os in
7541 aix*)
7542 symcode='[BCDT]'
7543 ;;
7544 cygwin* | mingw* | windows* | pw32* | cegcc*)
7545 symcode='[ABCDGISTW]'
7546 ;;
7547 hpux*)
7548 if test ia64 = "$host_cpu"; then
7549 symcode='[ABCDEGRST]'
7550 fi
7551 ;;
7552 irix* | nonstopux*)
7553 symcode='[BCDEGRST]'
7554 ;;
7555 osf*)
7556 symcode='[BCDEGQRST]'
7557 ;;
7558 solaris*)
7559 symcode='[BCDRT]'
7560 ;;
7561 sco3.2v5*)
7562 symcode='[DT]'
7563 ;;
7564 sysv4.2uw2*)
7565 symcode='[DT]'
7566 ;;
7567 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7568 symcode='[ABDT]'
7569 ;;
7570 sysv4)
7571 symcode='[DFNSTU]'
7572 ;;
7573 esac
7574
7575 # If we're using GNU nm, then use its standard symbol codes.
7576 case `$NM -V 2>&1` in
7577 *GNU* | *'with BFD'*)
7578 symcode='[ABCDGIRSTW]' ;;
7579 esac
7580
7581 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7582 # Gets list of data symbols to import.
7583 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7584 # Adjust the below global symbol transforms to fixup imported variables.
7585 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7586 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7587 lt_c_name_lib_hook="\
7588 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7589 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7590 else
7591 # Disable hooks by default.
7592 lt_cv_sys_global_symbol_to_import=
7593 lt_cdecl_hook=
7594 lt_c_name_hook=
7595 lt_c_name_lib_hook=
7596 fi
7597
7598 # Transform an extracted symbol line into a proper C declaration.
7599 # Some systems (esp. on ia64) link data and code symbols differently,
7600 # so use this general approach.
7601 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7602 $lt_cdecl_hook\
7603 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7604 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7605
7606 # Transform an extracted symbol line into symbol name and symbol address
7607 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7608 $lt_c_name_hook\
7609 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7610 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7611
7612 # Transform an extracted symbol line into symbol name with lib prefix and
7613 # symbol address.
7614 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7615 $lt_c_name_lib_hook\
7616 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7617 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7618 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7619
7620 # Handle CRLF in mingw tool chain
7621 opt_cr=
7622 case $build_os in
7623 mingw* | windows*)
7624 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7625 ;;
7626 esac
7627
7628 # Try without a prefix underscore, then with it.
7629 for ac_symprfx in "" "_"; do
7630
7631 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7632 symxfrm="\\1 $ac_symprfx\\2 \\2"
7633
7634 # Write the raw and C identifiers.
7635 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7636 # Fake it for dumpbin and say T for any non-static function,
7637 # D for any global variable and I for any imported variable.
7638 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7639 # which start with @ or ?.
7640 lt_cv_sys_global_symbol_pipe="$AWK '"\
7641 " {last_section=section; section=\$ 3};"\
7642 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7643 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7644 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7645 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7646 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7647 " \$ 0!~/External *\|/{next};"\
7648 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7649 " {if(hide[section]) next};"\
7650 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7651 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7652 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7653 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7654 " ' prfx=^$ac_symprfx"
7655 else
7656 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7657 fi
7658 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7659
7660 # Check to see that the pipe works correctly.
7661 pipe_works=no
7662
7663 rm -f conftest*
7664 cat > conftest.$ac_ext <<_LT_EOF
7665 #ifdef __cplusplus
7666 extern "C" {
7667 #endif
7668 char nm_test_var;
7669 void nm_test_func(void);
7670 void nm_test_func(void){}
7671 #ifdef __cplusplus
7672 }
7673 #endif
7674 int main(void){nm_test_var='a';nm_test_func();return(0);}
7675 _LT_EOF
7676
7677 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7678 (eval $ac_compile) 2>&5
7679 ac_status=$?
7680 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7681 test $ac_status = 0; }; then
7682 # Now try to grab the symbols.
7683 nlist=conftest.nm
7684 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7685 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7686 # Try sorting and uniquifying the output.
7687 if sort "$nlist" | uniq > "$nlist"T; then
7688 mv -f "$nlist"T "$nlist"
7689 else
7690 rm -f "$nlist"T
7691 fi
7692
7693 # Make sure that we snagged all the symbols we need.
7694 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7695 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7696 cat <<_LT_EOF > conftest.$ac_ext
7697 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7698 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7699 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7700 relocations are performed -- see ld's documentation on pseudo-relocs. */
7701 # define LT_DLSYM_CONST
7702 #elif defined __osf__
7703 /* This system does not cope well with relocations in const data. */
7704 # define LT_DLSYM_CONST
7705 #else
7706 # define LT_DLSYM_CONST const
7707 #endif
7708
7709 #ifdef __cplusplus
7710 extern "C" {
7711 #endif
7712
7713 _LT_EOF
7714 # Now generate the symbol file.
7715 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7716
7717 cat <<_LT_EOF >> conftest.$ac_ext
7718
7719 /* The mapping between symbol names and symbols. */
7720 LT_DLSYM_CONST struct {
7721 const char *name;
7722 void *address;
7723 }
7724 lt__PROGRAM__LTX_preloaded_symbols[] =
7725 {
7726 { "@PROGRAM@", (void *) 0 },
7727 _LT_EOF
7728 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7729 cat <<\_LT_EOF >> conftest.$ac_ext
7730 {0, (void *) 0}
7731 };
7732
7733 /* This works around a problem in FreeBSD linker */
7734 #ifdef FREEBSD_WORKAROUND
7735 static const void *lt_preloaded_setup() {
7736 return lt__PROGRAM__LTX_preloaded_symbols;
7737 }
7738 #endif
7739
7740 #ifdef __cplusplus
7741 }
7742 #endif
7743 _LT_EOF
7744 # Now try linking the two files.
7745 mv conftest.$ac_objext conftstm.$ac_objext
7746 lt_globsym_save_LIBS=$LIBS
7747 lt_globsym_save_CFLAGS=$CFLAGS
7748 LIBS=conftstm.$ac_objext
7749 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7750 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7751 (eval $ac_link) 2>&5
7752 ac_status=$?
7753 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7754 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7755 pipe_works=yes
7756 fi
7757 LIBS=$lt_globsym_save_LIBS
7758 CFLAGS=$lt_globsym_save_CFLAGS
7759 else
7760 echo "cannot find nm_test_func in $nlist" >&5
7761 fi
7762 else
7763 echo "cannot find nm_test_var in $nlist" >&5
7764 fi
7765 else
7766 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7767 fi
7768 else
7769 echo "$progname: failed program was:" >&5
7770 cat conftest.$ac_ext >&5
7771 fi
7772 rm -rf conftest* conftst*
7773
7774 # Do not use the global_symbol_pipe unless it works.
7775 if test yes = "$pipe_works"; then
7776 break
7777 else
7778 lt_cv_sys_global_symbol_pipe=
7779 fi
7780 done
7781 ;;
7782 esac
7783 fi
7784
7785 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7786 lt_cv_sys_global_symbol_to_cdecl=
7787 fi
7788 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7790 printf "%s\n" "failed" >&6; }
7791 else
7792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7793 printf "%s\n" "ok" >&6; }
7794 fi
7795
7796 # Response file support.
7797 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7798 nm_file_list_spec='@'
7799 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7800 nm_file_list_spec='@'
7801 fi
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7840 printf %s "checking for sysroot... " >&6; }
7841
7842 # Check whether --with-sysroot was given.
7843 if test ${with_sysroot+y}
7844 then :
7845 withval=$with_sysroot;
7846 else case e in #(
7847 e) with_sysroot=no ;;
7848 esac
7849 fi
7850
7851
7852 lt_sysroot=
7853 case $with_sysroot in #(
7854 yes)
7855 if test yes = "$GCC"; then
7856 # Trim trailing / since we'll always append absolute paths and we want
7857 # to avoid //, if only for less confusing output for the user.
7858 lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`
7859 fi
7860 ;; #(
7861 /*)
7862 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7863 ;; #(
7864 no|'')
7865 ;; #(
7866 *)
7867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7868 printf "%s\n" "$with_sysroot" >&6; }
7869 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7870 ;;
7871 esac
7872
7873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7874 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7875
7876
7877
7878
7879
7880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7881 printf %s "checking for a working dd... " >&6; }
7882 if test ${ac_cv_path_lt_DD+y}
7883 then :
7884 printf %s "(cached) " >&6
7885 else case e in #(
7886 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7887 cat conftest.i conftest.i >conftest2.i
7888 : ${lt_DD:=$DD}
7889 if test -z "$lt_DD"; then
7890 ac_path_lt_DD_found=false
7891 # Loop through the user's path and test for each of PROGNAME-LIST
7892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7893 for as_dir in $PATH
7894 do
7895 IFS=$as_save_IFS
7896 case $as_dir in #(((
7897 '') as_dir=./ ;;
7898 */) ;;
7899 *) as_dir=$as_dir/ ;;
7900 esac
7901 for ac_prog in dd
7902 do
7903 for ac_exec_ext in '' $ac_executable_extensions; do
7904 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7905 as_fn_executable_p "$ac_path_lt_DD" || continue
7906 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7907 cmp -s conftest.i conftest.out \
7908 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7909 fi
7910 $ac_path_lt_DD_found && break 3
7911 done
7912 done
7913 done
7914 IFS=$as_save_IFS
7915 if test -z "$ac_cv_path_lt_DD"; then
7916 :
7917 fi
7918 else
7919 ac_cv_path_lt_DD=$lt_DD
7920 fi
7921
7922 rm -f conftest.i conftest2.i conftest.out ;;
7923 esac
7924 fi
7925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7926 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7927
7928
7929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7930 printf %s "checking how to truncate binary pipes... " >&6; }
7931 if test ${lt_cv_truncate_bin+y}
7932 then :
7933 printf %s "(cached) " >&6
7934 else case e in #(
7935 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7936 cat conftest.i conftest.i >conftest2.i
7937 lt_cv_truncate_bin=
7938 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7939 cmp -s conftest.i conftest.out \
7940 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7941 fi
7942 rm -f conftest.i conftest2.i conftest.out
7943 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
7944 esac
7945 fi
7946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7947 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7948
7949
7950
7951
7952
7953
7954
7955 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7956 func_cc_basename ()
7957 {
7958 for cc_temp in $*""; do
7959 case $cc_temp in
7960 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7961 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7962 \-*) ;;
7963 *) break;;
7964 esac
7965 done
7966 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7967 }
7968
7969 # Check whether --enable-libtool-lock was given.
7970 if test ${enable_libtool_lock+y}
7971 then :
7972 enableval=$enable_libtool_lock;
7973 fi
7974
7975 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7976
7977 # Some flags need to be propagated to the compiler or linker for good
7978 # libtool support.
7979 case $host in
7980 ia64-*-hpux*)
7981 # Find out what ABI is being produced by ac_compile, and set mode
7982 # options accordingly.
7983 echo 'int i;' > conftest.$ac_ext
7984 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7985 (eval $ac_compile) 2>&5
7986 ac_status=$?
7987 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7988 test $ac_status = 0; }; then
7989 case `$FILECMD conftest.$ac_objext` in
7990 *ELF-32*)
7991 HPUX_IA64_MODE=32
7992 ;;
7993 *ELF-64*)
7994 HPUX_IA64_MODE=64
7995 ;;
7996 esac
7997 fi
7998 rm -rf conftest*
7999 ;;
8000 *-*-irix6*)
8001 # Find out what ABI is being produced by ac_compile, and set linker
8002 # options accordingly.
8003 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8004 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8005 (eval $ac_compile) 2>&5
8006 ac_status=$?
8007 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8008 test $ac_status = 0; }; then
8009 if test yes = "$lt_cv_prog_gnu_ld"; then
8010 case `$FILECMD conftest.$ac_objext` in
8011 *32-bit*)
8012 LD="${LD-ld} -melf32bsmip"
8013 ;;
8014 *N32*)
8015 LD="${LD-ld} -melf32bmipn32"
8016 ;;
8017 *64-bit*)
8018 LD="${LD-ld} -melf64bmip"
8019 ;;
8020 esac
8021 else
8022 case `$FILECMD conftest.$ac_objext` in
8023 *32-bit*)
8024 LD="${LD-ld} -32"
8025 ;;
8026 *N32*)
8027 LD="${LD-ld} -n32"
8028 ;;
8029 *64-bit*)
8030 LD="${LD-ld} -64"
8031 ;;
8032 esac
8033 fi
8034 fi
8035 rm -rf conftest*
8036 ;;
8037
8038 mips64*-*linux*)
8039 # Find out what ABI is being produced by ac_compile, and set linker
8040 # options accordingly.
8041 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8042 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8043 (eval $ac_compile) 2>&5
8044 ac_status=$?
8045 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8046 test $ac_status = 0; }; then
8047 emul=elf
8048 case `$FILECMD conftest.$ac_objext` in
8049 *32-bit*)
8050 emul="${emul}32"
8051 ;;
8052 *64-bit*)
8053 emul="${emul}64"
8054 ;;
8055 esac
8056 case `$FILECMD conftest.$ac_objext` in
8057 *MSB*)
8058 emul="${emul}btsmip"
8059 ;;
8060 *LSB*)
8061 emul="${emul}ltsmip"
8062 ;;
8063 esac
8064 case `$FILECMD conftest.$ac_objext` in
8065 *N32*)
8066 emul="${emul}n32"
8067 ;;
8068 esac
8069 LD="${LD-ld} -m $emul"
8070 fi
8071 rm -rf conftest*
8072 ;;
8073
8074 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8075 s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
8076 # Find out what ABI is being produced by ac_compile, and set linker
8077 # options accordingly. Note that the listed cases only cover the
8078 # situations where additional linker options are needed (such as when
8079 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8080 # vice versa); the common cases where no linker options are needed do
8081 # not appear in the list.
8082 echo 'int i;' > conftest.$ac_ext
8083 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8084 (eval $ac_compile) 2>&5
8085 ac_status=$?
8086 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8087 test $ac_status = 0; }; then
8088 case `$FILECMD conftest.o` in
8089 *32-bit*)
8090 case $host in
8091 x86_64-*kfreebsd*-gnu)
8092 LD="${LD-ld} -m elf_i386_fbsd"
8093 ;;
8094 x86_64-*linux*|x86_64-gnu*)
8095 case `$FILECMD conftest.o` in
8096 *x86-64*)
8097 LD="${LD-ld} -m elf32_x86_64"
8098 ;;
8099 *)
8100 LD="${LD-ld} -m elf_i386"
8101 ;;
8102 esac
8103 ;;
8104 powerpc64le-*linux*)
8105 LD="${LD-ld} -m elf32lppclinux"
8106 ;;
8107 powerpc64-*linux*)
8108 LD="${LD-ld} -m elf32ppclinux"
8109 ;;
8110 s390x-*linux*)
8111 LD="${LD-ld} -m elf_s390"
8112 ;;
8113 sparc64-*linux*)
8114 LD="${LD-ld} -m elf32_sparc"
8115 ;;
8116 esac
8117 ;;
8118 *64-bit*)
8119 case $host in
8120 x86_64-*kfreebsd*-gnu)
8121 LD="${LD-ld} -m elf_x86_64_fbsd"
8122 ;;
8123 x86_64-*linux*|x86_64-gnu*)
8124 LD="${LD-ld} -m elf_x86_64"
8125 ;;
8126 powerpcle-*linux*)
8127 LD="${LD-ld} -m elf64lppc"
8128 ;;
8129 powerpc-*linux*)
8130 LD="${LD-ld} -m elf64ppc"
8131 ;;
8132 s390*-*linux*|s390*-*tpf*)
8133 LD="${LD-ld} -m elf64_s390"
8134 ;;
8135 sparc*-*linux*)
8136 LD="${LD-ld} -m elf64_sparc"
8137 ;;
8138 esac
8139 ;;
8140 esac
8141 fi
8142 rm -rf conftest*
8143 ;;
8144
8145 *-*-sco3.2v5*)
8146 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8147 SAVE_CFLAGS=$CFLAGS
8148 CFLAGS="$CFLAGS -belf"
8149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8150 printf %s "checking whether the C compiler needs -belf... " >&6; }
8151 if test ${lt_cv_cc_needs_belf+y}
8152 then :
8153 printf %s "(cached) " >&6
8154 else case e in #(
8155 e) ac_ext=c
8156 ac_cpp='$CPP $CPPFLAGS'
8157 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8158 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8159 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8160
8161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8162 /* end confdefs.h. */
8163
8164 int
8165 main (void)
8166 {
8167
8168 ;
8169 return 0;
8170 }
8171 _ACEOF
8172 if ac_fn_c_try_link "$LINENO"
8173 then :
8174 lt_cv_cc_needs_belf=yes
8175 else case e in #(
8176 e) lt_cv_cc_needs_belf=no ;;
8177 esac
8178 fi
8179 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8180 conftest$ac_exeext conftest.$ac_ext
8181 ac_ext=c
8182 ac_cpp='$CPP $CPPFLAGS'
8183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8186 ;;
8187 esac
8188 fi
8189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8190 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
8191 if test yes != "$lt_cv_cc_needs_belf"; then
8192 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8193 CFLAGS=$SAVE_CFLAGS
8194 fi
8195 ;;
8196 *-*solaris*)
8197 # Find out what ABI is being produced by ac_compile, and set linker
8198 # options accordingly.
8199 echo 'int i;' > conftest.$ac_ext
8200 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8201 (eval $ac_compile) 2>&5
8202 ac_status=$?
8203 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8204 test $ac_status = 0; }; then
8205 case `$FILECMD conftest.o` in
8206 *64-bit*)
8207 case $lt_cv_prog_gnu_ld in
8208 yes*)
8209 case $host in
8210 i?86-*-solaris*|x86_64-*-solaris*)
8211 LD="${LD-ld} -m elf_x86_64"
8212 ;;
8213 sparc*-*-solaris*)
8214 LD="${LD-ld} -m elf64_sparc"
8215 ;;
8216 esac
8217 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8218 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8219 LD=${LD-ld}_sol2
8220 fi
8221 ;;
8222 *)
8223 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8224 LD="${LD-ld} -64"
8225 fi
8226 ;;
8227 esac
8228 ;;
8229 esac
8230 fi
8231 rm -rf conftest*
8232 ;;
8233 esac
8234
8235 need_locks=$enable_libtool_lock
8236
8237 if test -n "$ac_tool_prefix"; then
8238 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8239 set dummy ${ac_tool_prefix}mt; ac_word=$2
8240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8241 printf %s "checking for $ac_word... " >&6; }
8242 if test ${ac_cv_prog_MANIFEST_TOOL+y}
8243 then :
8244 printf %s "(cached) " >&6
8245 else case e in #(
8246 e) if test -n "$MANIFEST_TOOL"; then
8247 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8248 else
8249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8250 for as_dir in $PATH
8251 do
8252 IFS=$as_save_IFS
8253 case $as_dir in #(((
8254 '') as_dir=./ ;;
8255 */) ;;
8256 *) as_dir=$as_dir/ ;;
8257 esac
8258 for ac_exec_ext in '' $ac_executable_extensions; do
8259 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8260 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8261 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8262 break 2
8263 fi
8264 done
8265 done
8266 IFS=$as_save_IFS
8267
8268 fi ;;
8269 esac
8270 fi
8271 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8272 if test -n "$MANIFEST_TOOL"; then
8273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8274 printf "%s\n" "$MANIFEST_TOOL" >&6; }
8275 else
8276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8277 printf "%s\n" "no" >&6; }
8278 fi
8279
8280
8281 fi
8282 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8283 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8284 # Extract the first word of "mt", so it can be a program name with args.
8285 set dummy mt; ac_word=$2
8286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8287 printf %s "checking for $ac_word... " >&6; }
8288 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8289 then :
8290 printf %s "(cached) " >&6
8291 else case e in #(
8292 e) if test -n "$ac_ct_MANIFEST_TOOL"; then
8293 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8294 else
8295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8296 for as_dir in $PATH
8297 do
8298 IFS=$as_save_IFS
8299 case $as_dir in #(((
8300 '') as_dir=./ ;;
8301 */) ;;
8302 *) as_dir=$as_dir/ ;;
8303 esac
8304 for ac_exec_ext in '' $ac_executable_extensions; do
8305 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8306 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8307 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8308 break 2
8309 fi
8310 done
8311 done
8312 IFS=$as_save_IFS
8313
8314 fi ;;
8315 esac
8316 fi
8317 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8318 if test -n "$ac_ct_MANIFEST_TOOL"; then
8319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8320 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
8321 else
8322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8323 printf "%s\n" "no" >&6; }
8324 fi
8325
8326 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8327 MANIFEST_TOOL=":"
8328 else
8329 case $cross_compiling:$ac_tool_warned in
8330 yes:)
8331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8332 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8333 ac_tool_warned=yes ;;
8334 esac
8335 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8336 fi
8337 else
8338 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8339 fi
8340
8341 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8343 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8344 if test ${lt_cv_path_manifest_tool+y}
8345 then :
8346 printf %s "(cached) " >&6
8347 else case e in #(
8348 e) lt_cv_path_manifest_tool=no
8349 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8350 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8351 cat conftest.err >&5
8352 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8353 lt_cv_path_manifest_tool=yes
8354 fi
8355 rm -f conftest* ;;
8356 esac
8357 fi
8358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5
8359 printf "%s\n" "$lt_cv_path_manifest_tool" >&6; }
8360 if test yes != "$lt_cv_path_manifest_tool"; then
8361 MANIFEST_TOOL=:
8362 fi
8363
8364
8365
8366
8367
8368
8369 case $host_os in
8370 rhapsody* | darwin*)
8371 if test -n "$ac_tool_prefix"; then
8372 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8373 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8375 printf %s "checking for $ac_word... " >&6; }
8376 if test ${ac_cv_prog_DSYMUTIL+y}
8377 then :
8378 printf %s "(cached) " >&6
8379 else case e in #(
8380 e) if test -n "$DSYMUTIL"; then
8381 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8382 else
8383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8384 for as_dir in $PATH
8385 do
8386 IFS=$as_save_IFS
8387 case $as_dir in #(((
8388 '') as_dir=./ ;;
8389 */) ;;
8390 *) as_dir=$as_dir/ ;;
8391 esac
8392 for ac_exec_ext in '' $ac_executable_extensions; do
8393 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8394 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8395 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8396 break 2
8397 fi
8398 done
8399 done
8400 IFS=$as_save_IFS
8401
8402 fi ;;
8403 esac
8404 fi
8405 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8406 if test -n "$DSYMUTIL"; then
8407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8408 printf "%s\n" "$DSYMUTIL" >&6; }
8409 else
8410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8411 printf "%s\n" "no" >&6; }
8412 fi
8413
8414
8415 fi
8416 if test -z "$ac_cv_prog_DSYMUTIL"; then
8417 ac_ct_DSYMUTIL=$DSYMUTIL
8418 # Extract the first word of "dsymutil", so it can be a program name with args.
8419 set dummy dsymutil; ac_word=$2
8420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8421 printf %s "checking for $ac_word... " >&6; }
8422 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8423 then :
8424 printf %s "(cached) " >&6
8425 else case e in #(
8426 e) if test -n "$ac_ct_DSYMUTIL"; then
8427 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8428 else
8429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8430 for as_dir in $PATH
8431 do
8432 IFS=$as_save_IFS
8433 case $as_dir in #(((
8434 '') as_dir=./ ;;
8435 */) ;;
8436 *) as_dir=$as_dir/ ;;
8437 esac
8438 for ac_exec_ext in '' $ac_executable_extensions; do
8439 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8440 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8441 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8442 break 2
8443 fi
8444 done
8445 done
8446 IFS=$as_save_IFS
8447
8448 fi ;;
8449 esac
8450 fi
8451 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8452 if test -n "$ac_ct_DSYMUTIL"; then
8453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8454 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8455 else
8456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8457 printf "%s\n" "no" >&6; }
8458 fi
8459
8460 if test "x$ac_ct_DSYMUTIL" = x; then
8461 DSYMUTIL=":"
8462 else
8463 case $cross_compiling:$ac_tool_warned in
8464 yes:)
8465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8466 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8467 ac_tool_warned=yes ;;
8468 esac
8469 DSYMUTIL=$ac_ct_DSYMUTIL
8470 fi
8471 else
8472 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8473 fi
8474
8475 if test -n "$ac_tool_prefix"; then
8476 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8477 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8479 printf %s "checking for $ac_word... " >&6; }
8480 if test ${ac_cv_prog_NMEDIT+y}
8481 then :
8482 printf %s "(cached) " >&6
8483 else case e in #(
8484 e) if test -n "$NMEDIT"; then
8485 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8486 else
8487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8488 for as_dir in $PATH
8489 do
8490 IFS=$as_save_IFS
8491 case $as_dir in #(((
8492 '') as_dir=./ ;;
8493 */) ;;
8494 *) as_dir=$as_dir/ ;;
8495 esac
8496 for ac_exec_ext in '' $ac_executable_extensions; do
8497 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8498 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8499 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8500 break 2
8501 fi
8502 done
8503 done
8504 IFS=$as_save_IFS
8505
8506 fi ;;
8507 esac
8508 fi
8509 NMEDIT=$ac_cv_prog_NMEDIT
8510 if test -n "$NMEDIT"; then
8511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8512 printf "%s\n" "$NMEDIT" >&6; }
8513 else
8514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8515 printf "%s\n" "no" >&6; }
8516 fi
8517
8518
8519 fi
8520 if test -z "$ac_cv_prog_NMEDIT"; then
8521 ac_ct_NMEDIT=$NMEDIT
8522 # Extract the first word of "nmedit", so it can be a program name with args.
8523 set dummy nmedit; ac_word=$2
8524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8525 printf %s "checking for $ac_word... " >&6; }
8526 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8527 then :
8528 printf %s "(cached) " >&6
8529 else case e in #(
8530 e) if test -n "$ac_ct_NMEDIT"; then
8531 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8532 else
8533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8534 for as_dir in $PATH
8535 do
8536 IFS=$as_save_IFS
8537 case $as_dir in #(((
8538 '') as_dir=./ ;;
8539 */) ;;
8540 *) as_dir=$as_dir/ ;;
8541 esac
8542 for ac_exec_ext in '' $ac_executable_extensions; do
8543 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8544 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8545 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8546 break 2
8547 fi
8548 done
8549 done
8550 IFS=$as_save_IFS
8551
8552 fi ;;
8553 esac
8554 fi
8555 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8556 if test -n "$ac_ct_NMEDIT"; then
8557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8558 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8559 else
8560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8561 printf "%s\n" "no" >&6; }
8562 fi
8563
8564 if test "x$ac_ct_NMEDIT" = x; then
8565 NMEDIT=":"
8566 else
8567 case $cross_compiling:$ac_tool_warned in
8568 yes:)
8569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8570 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8571 ac_tool_warned=yes ;;
8572 esac
8573 NMEDIT=$ac_ct_NMEDIT
8574 fi
8575 else
8576 NMEDIT="$ac_cv_prog_NMEDIT"
8577 fi
8578
8579 if test -n "$ac_tool_prefix"; then
8580 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8581 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8583 printf %s "checking for $ac_word... " >&6; }
8584 if test ${ac_cv_prog_LIPO+y}
8585 then :
8586 printf %s "(cached) " >&6
8587 else case e in #(
8588 e) if test -n "$LIPO"; then
8589 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8590 else
8591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8592 for as_dir in $PATH
8593 do
8594 IFS=$as_save_IFS
8595 case $as_dir in #(((
8596 '') as_dir=./ ;;
8597 */) ;;
8598 *) as_dir=$as_dir/ ;;
8599 esac
8600 for ac_exec_ext in '' $ac_executable_extensions; do
8601 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8602 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8603 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8604 break 2
8605 fi
8606 done
8607 done
8608 IFS=$as_save_IFS
8609
8610 fi ;;
8611 esac
8612 fi
8613 LIPO=$ac_cv_prog_LIPO
8614 if test -n "$LIPO"; then
8615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8616 printf "%s\n" "$LIPO" >&6; }
8617 else
8618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8619 printf "%s\n" "no" >&6; }
8620 fi
8621
8622
8623 fi
8624 if test -z "$ac_cv_prog_LIPO"; then
8625 ac_ct_LIPO=$LIPO
8626 # Extract the first word of "lipo", so it can be a program name with args.
8627 set dummy lipo; ac_word=$2
8628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8629 printf %s "checking for $ac_word... " >&6; }
8630 if test ${ac_cv_prog_ac_ct_LIPO+y}
8631 then :
8632 printf %s "(cached) " >&6
8633 else case e in #(
8634 e) if test -n "$ac_ct_LIPO"; then
8635 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8636 else
8637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8638 for as_dir in $PATH
8639 do
8640 IFS=$as_save_IFS
8641 case $as_dir in #(((
8642 '') as_dir=./ ;;
8643 */) ;;
8644 *) as_dir=$as_dir/ ;;
8645 esac
8646 for ac_exec_ext in '' $ac_executable_extensions; do
8647 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8648 ac_cv_prog_ac_ct_LIPO="lipo"
8649 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8650 break 2
8651 fi
8652 done
8653 done
8654 IFS=$as_save_IFS
8655
8656 fi ;;
8657 esac
8658 fi
8659 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8660 if test -n "$ac_ct_LIPO"; then
8661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8662 printf "%s\n" "$ac_ct_LIPO" >&6; }
8663 else
8664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8665 printf "%s\n" "no" >&6; }
8666 fi
8667
8668 if test "x$ac_ct_LIPO" = x; then
8669 LIPO=":"
8670 else
8671 case $cross_compiling:$ac_tool_warned in
8672 yes:)
8673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8674 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8675 ac_tool_warned=yes ;;
8676 esac
8677 LIPO=$ac_ct_LIPO
8678 fi
8679 else
8680 LIPO="$ac_cv_prog_LIPO"
8681 fi
8682
8683 if test -n "$ac_tool_prefix"; then
8684 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8685 set dummy ${ac_tool_prefix}otool; ac_word=$2
8686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8687 printf %s "checking for $ac_word... " >&6; }
8688 if test ${ac_cv_prog_OTOOL+y}
8689 then :
8690 printf %s "(cached) " >&6
8691 else case e in #(
8692 e) if test -n "$OTOOL"; then
8693 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8694 else
8695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8696 for as_dir in $PATH
8697 do
8698 IFS=$as_save_IFS
8699 case $as_dir in #(((
8700 '') as_dir=./ ;;
8701 */) ;;
8702 *) as_dir=$as_dir/ ;;
8703 esac
8704 for ac_exec_ext in '' $ac_executable_extensions; do
8705 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8706 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8707 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8708 break 2
8709 fi
8710 done
8711 done
8712 IFS=$as_save_IFS
8713
8714 fi ;;
8715 esac
8716 fi
8717 OTOOL=$ac_cv_prog_OTOOL
8718 if test -n "$OTOOL"; then
8719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8720 printf "%s\n" "$OTOOL" >&6; }
8721 else
8722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8723 printf "%s\n" "no" >&6; }
8724 fi
8725
8726
8727 fi
8728 if test -z "$ac_cv_prog_OTOOL"; then
8729 ac_ct_OTOOL=$OTOOL
8730 # Extract the first word of "otool", so it can be a program name with args.
8731 set dummy otool; ac_word=$2
8732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8733 printf %s "checking for $ac_word... " >&6; }
8734 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8735 then :
8736 printf %s "(cached) " >&6
8737 else case e in #(
8738 e) if test -n "$ac_ct_OTOOL"; then
8739 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8740 else
8741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8742 for as_dir in $PATH
8743 do
8744 IFS=$as_save_IFS
8745 case $as_dir in #(((
8746 '') as_dir=./ ;;
8747 */) ;;
8748 *) as_dir=$as_dir/ ;;
8749 esac
8750 for ac_exec_ext in '' $ac_executable_extensions; do
8751 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8752 ac_cv_prog_ac_ct_OTOOL="otool"
8753 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8754 break 2
8755 fi
8756 done
8757 done
8758 IFS=$as_save_IFS
8759
8760 fi ;;
8761 esac
8762 fi
8763 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8764 if test -n "$ac_ct_OTOOL"; then
8765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8766 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8767 else
8768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8769 printf "%s\n" "no" >&6; }
8770 fi
8771
8772 if test "x$ac_ct_OTOOL" = x; then
8773 OTOOL=":"
8774 else
8775 case $cross_compiling:$ac_tool_warned in
8776 yes:)
8777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8778 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8779 ac_tool_warned=yes ;;
8780 esac
8781 OTOOL=$ac_ct_OTOOL
8782 fi
8783 else
8784 OTOOL="$ac_cv_prog_OTOOL"
8785 fi
8786
8787 if test -n "$ac_tool_prefix"; then
8788 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8789 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8791 printf %s "checking for $ac_word... " >&6; }
8792 if test ${ac_cv_prog_OTOOL64+y}
8793 then :
8794 printf %s "(cached) " >&6
8795 else case e in #(
8796 e) if test -n "$OTOOL64"; then
8797 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8798 else
8799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8800 for as_dir in $PATH
8801 do
8802 IFS=$as_save_IFS
8803 case $as_dir in #(((
8804 '') as_dir=./ ;;
8805 */) ;;
8806 *) as_dir=$as_dir/ ;;
8807 esac
8808 for ac_exec_ext in '' $ac_executable_extensions; do
8809 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8810 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8811 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8812 break 2
8813 fi
8814 done
8815 done
8816 IFS=$as_save_IFS
8817
8818 fi ;;
8819 esac
8820 fi
8821 OTOOL64=$ac_cv_prog_OTOOL64
8822 if test -n "$OTOOL64"; then
8823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8824 printf "%s\n" "$OTOOL64" >&6; }
8825 else
8826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8827 printf "%s\n" "no" >&6; }
8828 fi
8829
8830
8831 fi
8832 if test -z "$ac_cv_prog_OTOOL64"; then
8833 ac_ct_OTOOL64=$OTOOL64
8834 # Extract the first word of "otool64", so it can be a program name with args.
8835 set dummy otool64; ac_word=$2
8836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8837 printf %s "checking for $ac_word... " >&6; }
8838 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8839 then :
8840 printf %s "(cached) " >&6
8841 else case e in #(
8842 e) if test -n "$ac_ct_OTOOL64"; then
8843 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8844 else
8845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8846 for as_dir in $PATH
8847 do
8848 IFS=$as_save_IFS
8849 case $as_dir in #(((
8850 '') as_dir=./ ;;
8851 */) ;;
8852 *) as_dir=$as_dir/ ;;
8853 esac
8854 for ac_exec_ext in '' $ac_executable_extensions; do
8855 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8856 ac_cv_prog_ac_ct_OTOOL64="otool64"
8857 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8858 break 2
8859 fi
8860 done
8861 done
8862 IFS=$as_save_IFS
8863
8864 fi ;;
8865 esac
8866 fi
8867 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8868 if test -n "$ac_ct_OTOOL64"; then
8869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8870 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8871 else
8872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8873 printf "%s\n" "no" >&6; }
8874 fi
8875
8876 if test "x$ac_ct_OTOOL64" = x; then
8877 OTOOL64=":"
8878 else
8879 case $cross_compiling:$ac_tool_warned in
8880 yes:)
8881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8882 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8883 ac_tool_warned=yes ;;
8884 esac
8885 OTOOL64=$ac_ct_OTOOL64
8886 fi
8887 else
8888 OTOOL64="$ac_cv_prog_OTOOL64"
8889 fi
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8918 printf %s "checking for -single_module linker flag... " >&6; }
8919 if test ${lt_cv_apple_cc_single_mod+y}
8920 then :
8921 printf %s "(cached) " >&6
8922 else case e in #(
8923 e) lt_cv_apple_cc_single_mod=no
8924 if test -z "$LT_MULTI_MODULE"; then
8925 # By default we will add the -single_module flag. You can override
8926 # by either setting the environment variable LT_MULTI_MODULE
8927 # non-empty at configure time, or by adding -multi_module to the
8928 # link flags.
8929 rm -rf libconftest.dylib*
8930 echo "int foo(void){return 1;}" > conftest.c
8931 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8932 -dynamiclib -Wl,-single_module conftest.c" >&5
8933 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8934 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8935 _lt_result=$?
8936 # If there is a non-empty error log, and "single_module"
8937 # appears in it, assume the flag caused a linker warning
8938 if test -s conftest.err && $GREP single_module conftest.err; then
8939 cat conftest.err >&5
8940 # Otherwise, if the output was created with a 0 exit code from
8941 # the compiler, it worked.
8942 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8943 lt_cv_apple_cc_single_mod=yes
8944 else
8945 cat conftest.err >&5
8946 fi
8947 rm -rf libconftest.dylib*
8948 rm -f conftest.*
8949 fi ;;
8950 esac
8951 fi
8952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8953 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8954
8955 # Feature test to disable chained fixups since it is not
8956 # compatible with '-undefined dynamic_lookup'
8957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
8958 printf %s "checking for -no_fixup_chains linker flag... " >&6; }
8959 if test ${lt_cv_support_no_fixup_chains+y}
8960 then :
8961 printf %s "(cached) " >&6
8962 else case e in #(
8963 e) save_LDFLAGS=$LDFLAGS
8964 LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
8965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8966 /* end confdefs.h. */
8967
8968 int
8969 main (void)
8970 {
8971
8972 ;
8973 return 0;
8974 }
8975 _ACEOF
8976 if ac_fn_c_try_link "$LINENO"
8977 then :
8978 lt_cv_support_no_fixup_chains=yes
8979 else case e in #(
8980 e) lt_cv_support_no_fixup_chains=no
8981 ;;
8982 esac
8983 fi
8984 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8985 conftest$ac_exeext conftest.$ac_ext
8986 LDFLAGS=$save_LDFLAGS
8987
8988 ;;
8989 esac
8990 fi
8991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
8992 printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; }
8993
8994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8995 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8996 if test ${lt_cv_ld_exported_symbols_list+y}
8997 then :
8998 printf %s "(cached) " >&6
8999 else case e in #(
9000 e) lt_cv_ld_exported_symbols_list=no
9001 save_LDFLAGS=$LDFLAGS
9002 echo "_main" > conftest.sym
9003 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9005 /* end confdefs.h. */
9006
9007 int
9008 main (void)
9009 {
9010
9011 ;
9012 return 0;
9013 }
9014 _ACEOF
9015 if ac_fn_c_try_link "$LINENO"
9016 then :
9017 lt_cv_ld_exported_symbols_list=yes
9018 else case e in #(
9019 e) lt_cv_ld_exported_symbols_list=no ;;
9020 esac
9021 fi
9022 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9023 conftest$ac_exeext conftest.$ac_ext
9024 LDFLAGS=$save_LDFLAGS
9025 ;;
9026 esac
9027 fi
9028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9029 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
9030
9031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9032 printf %s "checking for -force_load linker flag... " >&6; }
9033 if test ${lt_cv_ld_force_load+y}
9034 then :
9035 printf %s "(cached) " >&6
9036 else case e in #(
9037 e) lt_cv_ld_force_load=no
9038 cat > conftest.c << _LT_EOF
9039 int forced_loaded() { return 2;}
9040 _LT_EOF
9041 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9042 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9043 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
9044 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
9045 echo "$RANLIB libconftest.a" >&5
9046 $RANLIB libconftest.a 2>&5
9047 cat > conftest.c << _LT_EOF
9048 int main(void) { return 0;}
9049 _LT_EOF
9050 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9051 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9052 _lt_result=$?
9053 if test -s conftest.err && $GREP force_load conftest.err; then
9054 cat conftest.err >&5
9055 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9056 lt_cv_ld_force_load=yes
9057 else
9058 cat conftest.err >&5
9059 fi
9060 rm -f conftest.err libconftest.a conftest conftest.c
9061 rm -rf conftest.dSYM
9062 ;;
9063 esac
9064 fi
9065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9066 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
9067 case $host_os in
9068 rhapsody* | darwin1.[012])
9069 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9070 darwin1.*)
9071 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9072 darwin*)
9073 case $MACOSX_DEPLOYMENT_TARGET,$host in
9074 10.[012],*|,*powerpc*-darwin[5-8]*)
9075 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9076 *)
9077 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
9078 if test yes = "$lt_cv_support_no_fixup_chains"; then
9079 as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'
9080 fi
9081 ;;
9082 esac
9083 ;;
9084 esac
9085 if test yes = "$lt_cv_apple_cc_single_mod"; then
9086 _lt_dar_single_mod='$single_module'
9087 fi
9088 _lt_dar_needs_single_mod=no
9089 case $host_os in
9090 rhapsody* | darwin1.*)
9091 _lt_dar_needs_single_mod=yes ;;
9092 darwin*)
9093 # When targeting Mac OS X 10.4 (darwin 8) or later,
9094 # -single_module is the default and -multi_module is unsupported.
9095 # The toolchain on macOS 10.14 (darwin 18) and later cannot
9096 # target any OS version that needs -single_module.
9097 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9098 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*)
9099 _lt_dar_needs_single_mod=yes ;;
9100 esac
9101 ;;
9102 esac
9103 if test yes = "$lt_cv_ld_exported_symbols_list"; then
9104 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9105 else
9106 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9107 fi
9108 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9109 _lt_dsymutil='~$DSYMUTIL $lib || :'
9110 else
9111 _lt_dsymutil=
9112 fi
9113 ;;
9114 esac
9115
9116 # func_munge_path_list VARIABLE PATH
9117 # -----------------------------------
9118 # VARIABLE is name of variable containing _space_ separated list of
9119 # directories to be munged by the contents of PATH, which is string
9120 # having a format:
9121 # "DIR[:DIR]:"
9122 # string "DIR[ DIR]" will be prepended to VARIABLE
9123 # ":DIR[:DIR]"
9124 # string "DIR[ DIR]" will be appended to VARIABLE
9125 # "DIRP[:DIRP]::[DIRA:]DIRA"
9126 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9127 # "DIRA[ DIRA]" will be appended to VARIABLE
9128 # "DIR[:DIR]"
9129 # VARIABLE will be replaced by "DIR[ DIR]"
9130 func_munge_path_list ()
9131 {
9132 case x$2 in
9133 x)
9134 ;;
9135 *:)
9136 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9137 ;;
9138 x:*)
9139 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9140 ;;
9141 *::*)
9142 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9143 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9144 ;;
9145 *)
9146 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9147 ;;
9148 esac
9149 }
9150
9151 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9152 "
9153 if test "x$ac_cv_header_dlfcn_h" = xyes
9154 then :
9155 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
9156
9157 fi
9158
9159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
9160 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
9161 if test ${ac_cv_c_undeclared_builtin_options+y}
9162 then :
9163 printf %s "(cached) " >&6
9164 else case e in #(
9165 e) ac_save_CFLAGS=$CFLAGS
9166 ac_cv_c_undeclared_builtin_options='cannot detect'
9167 for ac_arg in '' -fno-builtin; do
9168 CFLAGS="$ac_save_CFLAGS $ac_arg"
9169 # This test program should *not* compile successfully.
9170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9171 /* end confdefs.h. */
9172
9173 int
9174 main (void)
9175 {
9176 (void) strchr;
9177 ;
9178 return 0;
9179 }
9180 _ACEOF
9181 if ac_fn_c_try_compile "$LINENO"
9182 then :
9183
9184 else case e in #(
9185 e) # This test program should compile successfully.
9186 # No library function is consistently available on
9187 # freestanding implementations, so test against a dummy
9188 # declaration. Include always-available headers on the
9189 # off chance that they somehow elicit warnings.
9190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9191 /* end confdefs.h. */
9192 #include <float.h>
9193 #include <limits.h>
9194 #include <stdarg.h>
9195 #include <stddef.h>
9196 extern void ac_decl (int, char *);
9197
9198 int
9199 main (void)
9200 {
9201 (void) ac_decl (0, (char *) 0);
9202 (void) ac_decl;
9203
9204 ;
9205 return 0;
9206 }
9207 _ACEOF
9208 if ac_fn_c_try_compile "$LINENO"
9209 then :
9210 if test x"$ac_arg" = x
9211 then :
9212 ac_cv_c_undeclared_builtin_options='none needed'
9213 else case e in #(
9214 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
9215 esac
9216 fi
9217 break
9218 fi
9219 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9220 esac
9221 fi
9222 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9223 done
9224 CFLAGS=$ac_save_CFLAGS
9225 ;;
9226 esac
9227 fi
9228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
9229 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
9230 case $ac_cv_c_undeclared_builtin_options in #(
9231 'cannot detect') :
9232 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
9233 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
9234 as_fn_error $? "cannot make $CC report undeclared builtins
9235 See 'config.log' for more details" "$LINENO" 5; } ;; #(
9236 'none needed') :
9237 ac_c_undeclared_builtin_options='' ;; #(
9238 *) :
9239 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
9240 esac
9241
9242 echo 'tldbg:KPSE_COMMON called (pkg=kpathsea, amopt=)' >&5
9243 echo 'tldbg:KPSE_BASIC called (pkg=kpathsea, amopt=)' >&5
9244
9245 #
9246 # am_init_automake
9247 if test "`cd $srcdir && pwd`" != "`pwd`"; then
9248 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
9249 # is not polluted with repeated "-I."
9250 am__isrc=' -I$(srcdir)'
9251 # test to see if srcdir already configured
9252 if test -f $srcdir/config.status; then
9253 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
9254 fi
9255 fi
9256
9257 # test whether we have cygpath
9258 if test -z "$CYGPATH_W"; then
9259 if (cygpath --version) >/dev/null 2>/dev/null; then
9260 CYGPATH_W='cygpath -w'
9261 else
9262 CYGPATH_W=echo
9263 fi
9264 fi
9265
9266
9267 # Define the identity of the package.
9268 PACKAGE='kpathsea'
9269 VERSION='6.4.2'
9270
9271
9272 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
9273
9274
9275 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
9276
9277 # Some tools Automake needs.
9278
9279 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
9280
9281
9282 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
9283
9284
9285 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
9286
9287
9288 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
9289
9290
9291 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
9292
9293 # For better backward compatibility. To be removed once Automake 1.9.x
9294 # dies out for good. For more background, see:
9295 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
9296 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
9297 mkdir_p='$(MKDIR_P)'
9298
9299 # We need awk for the "check" target (and possibly the TAP driver). The
9300 # system "awk" is bad on some platforms.
9301 # Always define AMTAR for backward compatibility. Yes, it's still used
9302 # in the wild :-( We should find a proper way to deprecate it ...
9303 AMTAR='$${TAR-tar}'
9304
9305
9306 # We'll loop over all known methods to create a tar archive until one works.
9307 _am_tools='gnutar plaintar pax cpio none'
9308
9309 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
9310 # There is notably a 21 bits limit for the UID and the GID. In fact,
9311 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
9312 # and bug#13588).
9313 am_max_uid=2097151 # 2^21 - 1
9314 am_max_gid=$am_max_uid
9315 # The $UID and $GID variables are not portable, so we need to resort
9316 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
9317 # below are definitely unexpected, so allow the users to see them
9318 # (that is, avoid stderr redirection).
9319 am_uid=`id -u || echo unknown`
9320 am_gid=`id -g || echo unknown`
9321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
9322 printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
9323 if test x$am_uid = xunknown; then
9324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&5
9325 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&2;}
9326 elif test $am_uid -le $am_max_uid; then
9327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9328 printf "%s\n" "yes" >&6; }
9329 else
9330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9331 printf "%s\n" "no" >&6; }
9332 _am_tools=none
9333 fi
9334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
9335 printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
9336 if test x$gm_gid = xunknown; then
9337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&5
9338 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&2;}
9339 elif test $am_gid -le $am_max_gid; then
9340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9341 printf "%s\n" "yes" >&6; }
9342 else
9343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9344 printf "%s\n" "no" >&6; }
9345 _am_tools=none
9346 fi
9347
9348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
9349 printf %s "checking how to create a ustar tar archive... " >&6; }
9350
9351 # Go ahead even if we have the value already cached. We do so because we
9352 # need to set the values for the 'am__tar' and 'am__untar' variables.
9353 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
9354
9355 for _am_tool in $_am_tools; do
9356 case $_am_tool in
9357 gnutar)
9358 for _am_tar in tar gnutar gtar; do
9359 { echo "$as_me:$LINENO: $_am_tar --version" >&5
9360 ($_am_tar --version) >&5 2>&5
9361 ac_status=$?
9362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9363 (exit $ac_status); } && break
9364 done
9365 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
9366 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
9367 am__untar="$_am_tar -xf -"
9368 ;;
9369 plaintar)
9370 # Must skip GNU tar: if it does not support --format= it doesn't create
9371 # ustar tarball either.
9372 (tar --version) >/dev/null 2>&1 && continue
9373 am__tar='tar chf - "$$tardir"'
9374 am__tar_='tar chf - "$tardir"'
9375 am__untar='tar xf -'
9376 ;;
9377 pax)
9378 am__tar='pax -L -x ustar -w "$$tardir"'
9379 am__tar_='pax -L -x ustar -w "$tardir"'
9380 am__untar='pax -r'
9381 ;;
9382 cpio)
9383 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
9384 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
9385 am__untar='cpio -i -H ustar -d'
9386 ;;
9387 none)
9388 am__tar=false
9389 am__tar_=false
9390 am__untar=false
9391 ;;
9392 esac
9393
9394 # If the value was cached, stop now. We just wanted to have am__tar
9395 # and am__untar set.
9396 test -n "${am_cv_prog_tar_ustar}" && break
9397
9398 # tar/untar a dummy directory, and stop if the command works.
9399 rm -rf conftest.dir
9400 mkdir conftest.dir
9401 echo GrepMe > conftest.dir/file
9402 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
9403 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
9404 ac_status=$?
9405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9406 (exit $ac_status); }
9407 rm -rf conftest.dir
9408 if test -s conftest.tar; then
9409 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
9410 ($am__untar <conftest.tar) >&5 2>&5
9411 ac_status=$?
9412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9413 (exit $ac_status); }
9414 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
9415 (cat conftest.dir/file) >&5 2>&5
9416 ac_status=$?
9417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9418 (exit $ac_status); }
9419 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
9420 fi
9421 done
9422 rm -rf conftest.dir
9423
9424 if test ${am_cv_prog_tar_ustar+y}
9425 then :
9426 printf %s "(cached) " >&6
9427 else case e in #(
9428 e) am_cv_prog_tar_ustar=$_am_tool ;;
9429 esac
9430 fi
9431
9432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
9433 printf "%s\n" "$am_cv_prog_tar_ustar" >&6; }
9434
9435
9436
9437
9438
9439 # Variables for tags utilities; see am/tags.am
9440 if test -z "$CTAGS"; then
9441 CTAGS=ctags
9442 fi
9443
9444 if test -z "$ETAGS"; then
9445 ETAGS=etags
9446 fi
9447
9448 if test -z "$CSCOPE"; then
9449 CSCOPE=cscope
9450 fi
9451
9452
9453
9454
9455
9456
9457
9458
9459 # am_maintainer_mode
9460
9461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
9462 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
9463 # Check whether --enable-maintainer-mode was given.
9464 if test ${enable_maintainer_mode+y}
9465 then :
9466 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
9467 else case e in #(
9468 e) USE_MAINTAINER_MODE=no ;;
9469 esac
9470 fi
9471
9472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
9473 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
9474 if test $USE_MAINTAINER_MODE = yes; then
9475 MAINTAINER_MODE_TRUE=
9476 MAINTAINER_MODE_FALSE='#'
9477 else
9478 MAINTAINER_MODE_TRUE='#'
9479 MAINTAINER_MODE_FALSE=
9480 fi
9481
9482 MAINT=$MAINTAINER_MODE_TRUE
9483
9484
9485
9486 # See comments in kpse-setup.m4 about system extensions.
9487
9488
9489 # Check whether prototypes work.
9490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts prototypes" >&5
9491 printf %s "checking whether the compiler accepts prototypes... " >&6; }
9492 if test ${kb_cv_c_prototypes+y}
9493 then :
9494 printf %s "(cached) " >&6
9495 else case e in #(
9496 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9497 /* end confdefs.h. */
9498 #include <stdarg.h>
9499 int
9500 main (void)
9501 {
9502 extern void foo(int i,...);
9503 ;
9504 return 0;
9505 }
9506 _ACEOF
9507 if ac_fn_c_try_link "$LINENO"
9508 then :
9509 kb_cv_c_prototypes=yes
9510 else case e in #(
9511 e) kb_cv_c_prototypes=no ;;
9512 esac
9513 fi
9514 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9515 conftest$ac_exeext conftest.$ac_ext ;;
9516 esac
9517 fi
9518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kb_cv_c_prototypes" >&5
9519 printf "%s\n" "$kb_cv_c_prototypes" >&6; }
9520 if test "x$kb_cv_c_prototypes" = xno; then
9521 as_fn_error $? "Sorry, your compiler does not understand prototypes." "$LINENO" 5
9522 fi
9523
9524 # kpse_compiler_warnings options.
9525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking what warning flags to pass to the C compiler" >&5
9526 printf %s "checking what warning flags to pass to the C compiler... " >&6; }
9527 if test ${kpse_cv_warning_cflags+y}
9528 then :
9529 printf %s "(cached) " >&6
9530 else case e in #(
9531 e) if test "x$GCC" = xyes; then
9532 kpse_cv_warning_cflags=
9533 if test "x$enable_compiler_warnings" != xno; then
9534 kpse_cv_warning_cflags="-Wimplicit -Wreturn-type"
9535 case `$CC -dumpversion` in #(
9536 3.4.* | 4.* | 5.*) :
9537 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wdeclaration-after-statement" ;; #(
9538 *) :
9539 ;;
9540 esac
9541 case `$CC -dumpversion` in #(
9542 3.[234].* | 4.* | 5.*) :
9543 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wno-unknown-pragmas" ;; #(
9544 *) :
9545 ;;
9546 esac
9547 if test "x$enable_compiler_warnings" != xmin; then
9548 kpse_cv_warning_cflags="-Wall -Wunused $kpse_cv_warning_cflags"
9549 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wmissing-prototypes -Wmissing-declarations"
9550 if test "x$enable_compiler_warnings" != xyes; then
9551 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wparentheses -Wswitch -Wtrigraphs -Wpointer-arith"
9552 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wcast-qual -Wcast-align -Wwrite-strings"
9553 case `$CC -dumpversion` in #(
9554 3.4.* | 4.* | 5.*) :
9555 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wold-style-definition" ;; #(
9556 *) :
9557 ;;
9558 esac
9559 if test "x$enable_compiler_warnings" != xmax; then
9560 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wshadow"
9561 fi
9562 fi
9563 fi
9564 fi
9565 elif test "x$enable_compiler_warnings" = xno; then
9566 kpse_cv_warning_cflags=
9567 else
9568 kpse_cv_warning_cflags= # FIXME: warning flags for non-GNU C compilers
9569 fi ;;
9570 esac
9571 fi
9572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_warning_cflags" >&5
9573 printf "%s\n" "$kpse_cv_warning_cflags" >&6; }
9574 WARNING_CFLAGS=$kpse_cv_warning_cflags
9575
9576
9577
9578
9579
9580
9581
9582 # end of kpse_basic macro.
9583 echo 'tldbg:KPSE_BASIC done (pkg=kpathsea, amopt=)' >&5
9584
9585 # am_prog_ar must be called before lt_init.
9586
9587 if test -n "$ac_tool_prefix"; then
9588 for ac_prog in ar lib "link -lib"
9589 do
9590 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9591 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9593 printf %s "checking for $ac_word... " >&6; }
9594 if test ${ac_cv_prog_AR+y}
9595 then :
9596 printf %s "(cached) " >&6
9597 else case e in #(
9598 e) if test -n "$AR"; then
9599 ac_cv_prog_AR="$AR" # Let the user override the test.
9600 else
9601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9602 for as_dir in $PATH
9603 do
9604 IFS=$as_save_IFS
9605 case $as_dir in #(((
9606 '') as_dir=./ ;;
9607 */) ;;
9608 *) as_dir=$as_dir/ ;;
9609 esac
9610 for ac_exec_ext in '' $ac_executable_extensions; do
9611 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9612 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
9613 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9614 break 2
9615 fi
9616 done
9617 done
9618 IFS=$as_save_IFS
9619
9620 fi ;;
9621 esac
9622 fi
9623 AR=$ac_cv_prog_AR
9624 if test -n "$AR"; then
9625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9626 printf "%s\n" "$AR" >&6; }
9627 else
9628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9629 printf "%s\n" "no" >&6; }
9630 fi
9631
9632
9633 test -n "$AR" && break
9634 done
9635 fi
9636 if test -z "$AR"; then
9637 ac_ct_AR=$AR
9638 for ac_prog in ar lib "link -lib"
9639 do
9640 # Extract the first word of "$ac_prog", so it can be a program name with args.
9641 set dummy $ac_prog; ac_word=$2
9642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9643 printf %s "checking for $ac_word... " >&6; }
9644 if test ${ac_cv_prog_ac_ct_AR+y}
9645 then :
9646 printf %s "(cached) " >&6
9647 else case e in #(
9648 e) if test -n "$ac_ct_AR"; then
9649 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9650 else
9651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9652 for as_dir in $PATH
9653 do
9654 IFS=$as_save_IFS
9655 case $as_dir in #(((
9656 '') as_dir=./ ;;
9657 */) ;;
9658 *) as_dir=$as_dir/ ;;
9659 esac
9660 for ac_exec_ext in '' $ac_executable_extensions; do
9661 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9662 ac_cv_prog_ac_ct_AR="$ac_prog"
9663 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9664 break 2
9665 fi
9666 done
9667 done
9668 IFS=$as_save_IFS
9669
9670 fi ;;
9671 esac
9672 fi
9673 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9674 if test -n "$ac_ct_AR"; then
9675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9676 printf "%s\n" "$ac_ct_AR" >&6; }
9677 else
9678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9679 printf "%s\n" "no" >&6; }
9680 fi
9681
9682
9683 test -n "$ac_ct_AR" && break
9684 done
9685
9686 if test "x$ac_ct_AR" = x; then
9687 AR="false"
9688 else
9689 case $cross_compiling:$ac_tool_warned in
9690 yes:)
9691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9692 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9693 ac_tool_warned=yes ;;
9694 esac
9695 AR=$ac_ct_AR
9696 fi
9697 fi
9698
9699 : ${AR=ar}
9700 : ${ARFLAGS=cr}
9701
9702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
9703 printf %s "checking the archiver ($AR) interface... " >&6; }
9704 if test ${am_cv_ar_interface+y}
9705 then :
9706 printf %s "(cached) " >&6
9707 else case e in #(
9708 e) ac_ext=c
9709 ac_cpp='$CPP $CPPFLAGS'
9710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9713
9714 am_cv_ar_interface=ar
9715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9716 /* end confdefs.h. */
9717 int some_variable = 0;
9718 _ACEOF
9719 if ac_fn_c_try_compile "$LINENO"
9720 then :
9721 am_ar_try='$AR $ARFLAGS libconftest.a conftest.$ac_objext >&5'
9722 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
9723 (eval $am_ar_try) 2>&5
9724 ac_status=$?
9725 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9726 test $ac_status = 0; }
9727 if test "$ac_status" -eq 0; then
9728 am_cv_ar_interface=ar
9729 else
9730 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
9731 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
9732 (eval $am_ar_try) 2>&5
9733 ac_status=$?
9734 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9735 test $ac_status = 0; }
9736 if test "$ac_status" -eq 0; then
9737 am_cv_ar_interface=lib
9738 else
9739 am_cv_ar_interface=unknown
9740 fi
9741 fi
9742 rm -f conftest.lib libconftest.a
9743
9744 fi
9745 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9746 ac_ext=c
9747 ac_cpp='$CPP $CPPFLAGS'
9748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9751 ;;
9752 esac
9753 fi
9754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
9755 printf "%s\n" "$am_cv_ar_interface" >&6; }
9756
9757 case $am_cv_ar_interface in
9758 ar)
9759 ;;
9760 lib)
9761 # Microsoft lib, so override with the ar-lib wrapper script.
9762 # FIXME: It is wrong to rewrite AR.
9763 # But if we don't then we get into trouble of one sort or another.
9764 # A longer-term fix would be to have automake use am__AR in this case,
9765 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
9766 # similar.
9767 AR="$am_aux_dir/ar-lib $AR"
9768 ;;
9769 unknown)
9770 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
9771 ;;
9772 esac
9773
9774 # (end am_prog_ar)
9775 # starting lt_prereq + lt_init.
9776
9777
9778
9779
9780
9781 # Set options
9782 enable_win32_dll=yes
9783
9784 case $host in
9785 *-*-cygwin* | *-*-mingw* | *-*-windows* | *-*-pw32* | *-*-cegcc*)
9786 if test -n "$ac_tool_prefix"; then
9787 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
9788 set dummy ${ac_tool_prefix}as; ac_word=$2
9789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9790 printf %s "checking for $ac_word... " >&6; }
9791 if test ${ac_cv_prog_AS+y}
9792 then :
9793 printf %s "(cached) " >&6
9794 else case e in #(
9795 e) if test -n "$AS"; then
9796 ac_cv_prog_AS="$AS" # Let the user override the test.
9797 else
9798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9799 for as_dir in $PATH
9800 do
9801 IFS=$as_save_IFS
9802 case $as_dir in #(((
9803 '') as_dir=./ ;;
9804 */) ;;
9805 *) as_dir=$as_dir/ ;;
9806 esac
9807 for ac_exec_ext in '' $ac_executable_extensions; do
9808 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9809 ac_cv_prog_AS="${ac_tool_prefix}as"
9810 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9811 break 2
9812 fi
9813 done
9814 done
9815 IFS=$as_save_IFS
9816
9817 fi ;;
9818 esac
9819 fi
9820 AS=$ac_cv_prog_AS
9821 if test -n "$AS"; then
9822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
9823 printf "%s\n" "$AS" >&6; }
9824 else
9825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9826 printf "%s\n" "no" >&6; }
9827 fi
9828
9829
9830 fi
9831 if test -z "$ac_cv_prog_AS"; then
9832 ac_ct_AS=$AS
9833 # Extract the first word of "as", so it can be a program name with args.
9834 set dummy as; ac_word=$2
9835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9836 printf %s "checking for $ac_word... " >&6; }
9837 if test ${ac_cv_prog_ac_ct_AS+y}
9838 then :
9839 printf %s "(cached) " >&6
9840 else case e in #(
9841 e) if test -n "$ac_ct_AS"; then
9842 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
9843 else
9844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9845 for as_dir in $PATH
9846 do
9847 IFS=$as_save_IFS
9848 case $as_dir in #(((
9849 '') as_dir=./ ;;
9850 */) ;;
9851 *) as_dir=$as_dir/ ;;
9852 esac
9853 for ac_exec_ext in '' $ac_executable_extensions; do
9854 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9855 ac_cv_prog_ac_ct_AS="as"
9856 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9857 break 2
9858 fi
9859 done
9860 done
9861 IFS=$as_save_IFS
9862
9863 fi ;;
9864 esac
9865 fi
9866 ac_ct_AS=$ac_cv_prog_ac_ct_AS
9867 if test -n "$ac_ct_AS"; then
9868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
9869 printf "%s\n" "$ac_ct_AS" >&6; }
9870 else
9871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9872 printf "%s\n" "no" >&6; }
9873 fi
9874
9875 if test "x$ac_ct_AS" = x; then
9876 AS="false"
9877 else
9878 case $cross_compiling:$ac_tool_warned in
9879 yes:)
9880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9881 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9882 ac_tool_warned=yes ;;
9883 esac
9884 AS=$ac_ct_AS
9885 fi
9886 else
9887 AS="$ac_cv_prog_AS"
9888 fi
9889
9890 if test -n "$ac_tool_prefix"; then
9891 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9892 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9894 printf %s "checking for $ac_word... " >&6; }
9895 if test ${ac_cv_prog_DLLTOOL+y}
9896 then :
9897 printf %s "(cached) " >&6
9898 else case e in #(
9899 e) if test -n "$DLLTOOL"; then
9900 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9901 else
9902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9903 for as_dir in $PATH
9904 do
9905 IFS=$as_save_IFS
9906 case $as_dir in #(((
9907 '') as_dir=./ ;;
9908 */) ;;
9909 *) as_dir=$as_dir/ ;;
9910 esac
9911 for ac_exec_ext in '' $ac_executable_extensions; do
9912 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9913 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9914 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9915 break 2
9916 fi
9917 done
9918 done
9919 IFS=$as_save_IFS
9920
9921 fi ;;
9922 esac
9923 fi
9924 DLLTOOL=$ac_cv_prog_DLLTOOL
9925 if test -n "$DLLTOOL"; then
9926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9927 printf "%s\n" "$DLLTOOL" >&6; }
9928 else
9929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9930 printf "%s\n" "no" >&6; }
9931 fi
9932
9933
9934 fi
9935 if test -z "$ac_cv_prog_DLLTOOL"; then
9936 ac_ct_DLLTOOL=$DLLTOOL
9937 # Extract the first word of "dlltool", so it can be a program name with args.
9938 set dummy dlltool; ac_word=$2
9939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9940 printf %s "checking for $ac_word... " >&6; }
9941 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
9942 then :
9943 printf %s "(cached) " >&6
9944 else case e in #(
9945 e) if test -n "$ac_ct_DLLTOOL"; then
9946 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9947 else
9948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9949 for as_dir in $PATH
9950 do
9951 IFS=$as_save_IFS
9952 case $as_dir in #(((
9953 '') as_dir=./ ;;
9954 */) ;;
9955 *) as_dir=$as_dir/ ;;
9956 esac
9957 for ac_exec_ext in '' $ac_executable_extensions; do
9958 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9959 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9960 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9961 break 2
9962 fi
9963 done
9964 done
9965 IFS=$as_save_IFS
9966
9967 fi ;;
9968 esac
9969 fi
9970 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9971 if test -n "$ac_ct_DLLTOOL"; then
9972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9973 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
9974 else
9975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9976 printf "%s\n" "no" >&6; }
9977 fi
9978
9979 if test "x$ac_ct_DLLTOOL" = x; then
9980 DLLTOOL="false"
9981 else
9982 case $cross_compiling:$ac_tool_warned in
9983 yes:)
9984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9985 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9986 ac_tool_warned=yes ;;
9987 esac
9988 DLLTOOL=$ac_ct_DLLTOOL
9989 fi
9990 else
9991 DLLTOOL="$ac_cv_prog_DLLTOOL"
9992 fi
9993
9994 if test -n "$ac_tool_prefix"; then
9995 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9996 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9998 printf %s "checking for $ac_word... " >&6; }
9999 if test ${ac_cv_prog_OBJDUMP+y}
10000 then :
10001 printf %s "(cached) " >&6
10002 else case e in #(
10003 e) if test -n "$OBJDUMP"; then
10004 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10005 else
10006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10007 for as_dir in $PATH
10008 do
10009 IFS=$as_save_IFS
10010 case $as_dir in #(((
10011 '') as_dir=./ ;;
10012 */) ;;
10013 *) as_dir=$as_dir/ ;;
10014 esac
10015 for ac_exec_ext in '' $ac_executable_extensions; do
10016 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10017 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10018 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10019 break 2
10020 fi
10021 done
10022 done
10023 IFS=$as_save_IFS
10024
10025 fi ;;
10026 esac
10027 fi
10028 OBJDUMP=$ac_cv_prog_OBJDUMP
10029 if test -n "$OBJDUMP"; then
10030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10031 printf "%s\n" "$OBJDUMP" >&6; }
10032 else
10033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10034 printf "%s\n" "no" >&6; }
10035 fi
10036
10037
10038 fi
10039 if test -z "$ac_cv_prog_OBJDUMP"; then
10040 ac_ct_OBJDUMP=$OBJDUMP
10041 # Extract the first word of "objdump", so it can be a program name with args.
10042 set dummy objdump; ac_word=$2
10043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10044 printf %s "checking for $ac_word... " >&6; }
10045 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
10046 then :
10047 printf %s "(cached) " >&6
10048 else case e in #(
10049 e) if test -n "$ac_ct_OBJDUMP"; then
10050 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10051 else
10052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10053 for as_dir in $PATH
10054 do
10055 IFS=$as_save_IFS
10056 case $as_dir in #(((
10057 '') as_dir=./ ;;
10058 */) ;;
10059 *) as_dir=$as_dir/ ;;
10060 esac
10061 for ac_exec_ext in '' $ac_executable_extensions; do
10062 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10063 ac_cv_prog_ac_ct_OBJDUMP="objdump"
10064 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10065 break 2
10066 fi
10067 done
10068 done
10069 IFS=$as_save_IFS
10070
10071 fi ;;
10072 esac
10073 fi
10074 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10075 if test -n "$ac_ct_OBJDUMP"; then
10076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10077 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
10078 else
10079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10080 printf "%s\n" "no" >&6; }
10081 fi
10082
10083 if test "x$ac_ct_OBJDUMP" = x; then
10084 OBJDUMP="false"
10085 else
10086 case $cross_compiling:$ac_tool_warned in
10087 yes:)
10088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10089 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10090 ac_tool_warned=yes ;;
10091 esac
10092 OBJDUMP=$ac_ct_OBJDUMP
10093 fi
10094 else
10095 OBJDUMP="$ac_cv_prog_OBJDUMP"
10096 fi
10097
10098 ;;
10099 esac
10100
10101 test -z "$AS" && AS=as
10102
10103
10104
10105
10106
10107 test -z "$DLLTOOL" && DLLTOOL=dlltool
10108
10109
10110
10111
10112
10113 test -z "$OBJDUMP" && OBJDUMP=objdump
10114
10115
10116
10117
10118
10119
10120
10121 enable_dlopen=no
10122
10123
10124
10125 # Check whether --enable-shared was given.
10126 if test ${enable_shared+y}
10127 then :
10128 enableval=$enable_shared; p=${PACKAGE-default}
10129 case $enableval in
10130 yes) enable_shared=yes ;;
10131 no) enable_shared=no ;;
10132 *)
10133 enable_shared=no
10134 # Look at the argument we got. We use all the common list separators.
10135 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10136 for pkg in $enableval; do
10137 IFS=$lt_save_ifs
10138 if test "X$pkg" = "X$p"; then
10139 enable_shared=yes
10140 fi
10141 done
10142 IFS=$lt_save_ifs
10143 ;;
10144 esac
10145 else case e in #(
10146 e) enable_shared=yes ;;
10147 esac
10148 fi
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158 # Check whether --enable-static was given.
10159 if test ${enable_static+y}
10160 then :
10161 enableval=$enable_static; p=${PACKAGE-default}
10162 case $enableval in
10163 yes) enable_static=yes ;;
10164 no) enable_static=no ;;
10165 *)
10166 enable_static=no
10167 # Look at the argument we got. We use all the common list separators.
10168 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10169 for pkg in $enableval; do
10170 IFS=$lt_save_ifs
10171 if test "X$pkg" = "X$p"; then
10172 enable_static=yes
10173 fi
10174 done
10175 IFS=$lt_save_ifs
10176 ;;
10177 esac
10178 else case e in #(
10179 e) enable_static=yes ;;
10180 esac
10181 fi
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191 # Check whether --enable-pic was given.
10192 if test ${enable_pic+y}
10193 then :
10194 enableval=$enable_pic; lt_p=${PACKAGE-default}
10195 case $enableval in
10196 yes|no) pic_mode=$enableval ;;
10197 *)
10198 pic_mode=default
10199 # Look at the argument we got. We use all the common list separators.
10200 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10201 for lt_pkg in $enableval; do
10202 IFS=$lt_save_ifs
10203 if test "X$lt_pkg" = "X$lt_p"; then
10204 pic_mode=yes
10205 fi
10206 done
10207 IFS=$lt_save_ifs
10208 ;;
10209 esac
10210 else case e in #(
10211 e) # Check whether --with-pic was given.
10212 if test ${with_pic+y}
10213 then :
10214 withval=$with_pic; lt_p=${PACKAGE-default}
10215 case $withval in
10216 yes|no) pic_mode=$withval ;;
10217 *)
10218 pic_mode=default
10219 # Look at the argument we got. We use all the common list separators.
10220 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10221 for lt_pkg in $withval; do
10222 IFS=$lt_save_ifs
10223 if test "X$lt_pkg" = "X$lt_p"; then
10224 pic_mode=yes
10225 fi
10226 done
10227 IFS=$lt_save_ifs
10228 ;;
10229 esac
10230 else case e in #(
10231 e) pic_mode=default ;;
10232 esac
10233 fi
10234
10235 ;;
10236 esac
10237 fi
10238
10239
10240
10241
10242
10243
10244
10245
10246 # Check whether --enable-fast-install was given.
10247 if test ${enable_fast_install+y}
10248 then :
10249 enableval=$enable_fast_install; p=${PACKAGE-default}
10250 case $enableval in
10251 yes) enable_fast_install=yes ;;
10252 no) enable_fast_install=no ;;
10253 *)
10254 enable_fast_install=no
10255 # Look at the argument we got. We use all the common list separators.
10256 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10257 for pkg in $enableval; do
10258 IFS=$lt_save_ifs
10259 if test "X$pkg" = "X$p"; then
10260 enable_fast_install=yes
10261 fi
10262 done
10263 IFS=$lt_save_ifs
10264 ;;
10265 esac
10266 else case e in #(
10267 e) enable_fast_install=yes ;;
10268 esac
10269 fi
10270
10271
10272
10273
10274
10275
10276
10277
10278 shared_archive_member_spec=
10279 case $host,$enable_shared in
10280 power*-*-aix[5-9]*,yes)
10281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
10282 printf %s "checking which variant of shared library versioning to provide... " >&6; }
10283 # Check whether --enable-aix-soname was given.
10284 if test ${enable_aix_soname+y}
10285 then :
10286 enableval=$enable_aix_soname; case $enableval in
10287 aix|svr4|both)
10288 ;;
10289 *)
10290 as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5
10291 ;;
10292 esac
10293 lt_cv_with_aix_soname=$enable_aix_soname
10294 else case e in #(
10295 e) # Check whether --with-aix-soname was given.
10296 if test ${with_aix_soname+y}
10297 then :
10298 withval=$with_aix_soname; case $withval in
10299 aix|svr4|both)
10300 ;;
10301 *)
10302 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
10303 ;;
10304 esac
10305 lt_cv_with_aix_soname=$with_aix_soname
10306 else case e in #(
10307 e) if test ${lt_cv_with_aix_soname+y}
10308 then :
10309 printf %s "(cached) " >&6
10310 else case e in #(
10311 e) lt_cv_with_aix_soname=aix ;;
10312 esac
10313 fi
10314 ;;
10315 esac
10316 fi
10317
10318 enable_aix_soname=$lt_cv_with_aix_soname ;;
10319 esac
10320 fi
10321
10322 with_aix_soname=$enable_aix_soname
10323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
10324 printf "%s\n" "$with_aix_soname" >&6; }
10325 if test aix != "$with_aix_soname"; then
10326 # For the AIX way of multilib, we name the shared archive member
10327 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10328 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10329 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10330 # the AIX toolchain works better with OBJECT_MODE set (default 32).
10331 if test 64 = "${OBJECT_MODE-32}"; then
10332 shared_archive_member_spec=shr_64
10333 else
10334 shared_archive_member_spec=shr
10335 fi
10336 fi
10337 ;;
10338 *)
10339 with_aix_soname=aix
10340 ;;
10341 esac
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352 # This can be used to rebuild libtool when needed
10353 LIBTOOL_DEPS=$ltmain
10354
10355 # Always use our own libtool.
10356 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387 test -z "$LN_S" && LN_S="ln -s"
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402 if test -n "${ZSH_VERSION+set}"; then
10403 setopt NO_GLOB_SUBST
10404 fi
10405
10406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10407 printf %s "checking for objdir... " >&6; }
10408 if test ${lt_cv_objdir+y}
10409 then :
10410 printf %s "(cached) " >&6
10411 else case e in #(
10412 e) rm -f .libs 2>/dev/null
10413 mkdir .libs 2>/dev/null
10414 if test -d .libs; then
10415 lt_cv_objdir=.libs
10416 else
10417 # MS-DOS does not allow filenames that begin with a dot.
10418 lt_cv_objdir=_libs
10419 fi
10420 rmdir .libs 2>/dev/null ;;
10421 esac
10422 fi
10423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10424 printf "%s\n" "$lt_cv_objdir" >&6; }
10425 objdir=$lt_cv_objdir
10426
10427
10428
10429
10430
10431 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
10432
10433
10434
10435
10436 case $host_os in
10437 aix3*)
10438 # AIX sometimes has problems with the GCC collect2 program. For some
10439 # reason, if we set the COLLECT_NAMES environment variable, the problems
10440 # vanish in a puff of smoke.
10441 if test set != "${COLLECT_NAMES+set}"; then
10442 COLLECT_NAMES=
10443 export COLLECT_NAMES
10444 fi
10445 ;;
10446 esac
10447
10448 # Global variables:
10449 ofile=libtool
10450 can_build_shared=yes
10451
10452 # All known linkers require a '.a' archive for static linking (except MSVC and
10453 # ICC, which need '.lib').
10454 libext=a
10455
10456 with_gnu_ld=$lt_cv_prog_gnu_ld
10457
10458 old_CC=$CC
10459 old_CFLAGS=$CFLAGS
10460
10461 # Set sane defaults for various variables
10462 test -z "$CC" && CC=cc
10463 test -z "$LTCC" && LTCC=$CC
10464 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10465 test -z "$LD" && LD=ld
10466 test -z "$ac_objext" && ac_objext=o
10467
10468 func_cc_basename $compiler
10469 cc_basename=$func_cc_basename_result
10470
10471
10472 # Only perform the check for file, if the check method requires it
10473 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10474 case $deplibs_check_method in
10475 file_magic*)
10476 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10478 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
10479 if test ${lt_cv_path_MAGIC_CMD+y}
10480 then :
10481 printf %s "(cached) " >&6
10482 else case e in #(
10483 e) case $MAGIC_CMD in
10484 [\\/*] | ?:[\\/]*)
10485 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10486 ;;
10487 *)
10488 lt_save_MAGIC_CMD=$MAGIC_CMD
10489 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10490 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10491 for ac_dir in $ac_dummy; do
10492 IFS=$lt_save_ifs
10493 test -z "$ac_dir" && ac_dir=.
10494 if test -f "$ac_dir/${ac_tool_prefix}file"; then
10495 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10496 if test -n "$file_magic_test_file"; then
10497 case $deplibs_check_method in
10498 "file_magic "*)
10499 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10500 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10501 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10502 $EGREP "$file_magic_regex" > /dev/null; then
10503 :
10504 else
10505 cat <<_LT_EOF 1>&2
10506
10507 *** Warning: the command libtool uses to detect shared libraries,
10508 *** $file_magic_cmd, produces output that libtool cannot recognize.
10509 *** The result is that libtool may fail to recognize shared libraries
10510 *** as such. This will affect the creation of libtool libraries that
10511 *** depend on shared libraries, but programs linked with such libtool
10512 *** libraries will work regardless of this problem. Nevertheless, you
10513 *** may want to report the problem to your system manager and/or to
10514 *** [email protected]
10515
10516 _LT_EOF
10517 fi ;;
10518 esac
10519 fi
10520 break
10521 fi
10522 done
10523 IFS=$lt_save_ifs
10524 MAGIC_CMD=$lt_save_MAGIC_CMD
10525 ;;
10526 esac ;;
10527 esac
10528 fi
10529
10530 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10531 if test -n "$MAGIC_CMD"; then
10532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10533 printf "%s\n" "$MAGIC_CMD" >&6; }
10534 else
10535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10536 printf "%s\n" "no" >&6; }
10537 fi
10538
10539
10540
10541
10542
10543 if test -z "$lt_cv_path_MAGIC_CMD"; then
10544 if test -n "$ac_tool_prefix"; then
10545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10546 printf %s "checking for file... " >&6; }
10547 if test ${lt_cv_path_MAGIC_CMD+y}
10548 then :
10549 printf %s "(cached) " >&6
10550 else case e in #(
10551 e) case $MAGIC_CMD in
10552 [\\/*] | ?:[\\/]*)
10553 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10554 ;;
10555 *)
10556 lt_save_MAGIC_CMD=$MAGIC_CMD
10557 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10558 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10559 for ac_dir in $ac_dummy; do
10560 IFS=$lt_save_ifs
10561 test -z "$ac_dir" && ac_dir=.
10562 if test -f "$ac_dir/file"; then
10563 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10564 if test -n "$file_magic_test_file"; then
10565 case $deplibs_check_method in
10566 "file_magic "*)
10567 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10568 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10569 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10570 $EGREP "$file_magic_regex" > /dev/null; then
10571 :
10572 else
10573 cat <<_LT_EOF 1>&2
10574
10575 *** Warning: the command libtool uses to detect shared libraries,
10576 *** $file_magic_cmd, produces output that libtool cannot recognize.
10577 *** The result is that libtool may fail to recognize shared libraries
10578 *** as such. This will affect the creation of libtool libraries that
10579 *** depend on shared libraries, but programs linked with such libtool
10580 *** libraries will work regardless of this problem. Nevertheless, you
10581 *** may want to report the problem to your system manager and/or to
10582 *** [email protected]
10583
10584 _LT_EOF
10585 fi ;;
10586 esac
10587 fi
10588 break
10589 fi
10590 done
10591 IFS=$lt_save_ifs
10592 MAGIC_CMD=$lt_save_MAGIC_CMD
10593 ;;
10594 esac ;;
10595 esac
10596 fi
10597
10598 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10599 if test -n "$MAGIC_CMD"; then
10600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10601 printf "%s\n" "$MAGIC_CMD" >&6; }
10602 else
10603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10604 printf "%s\n" "no" >&6; }
10605 fi
10606
10607
10608 else
10609 MAGIC_CMD=:
10610 fi
10611 fi
10612
10613 fi
10614 ;;
10615 esac
10616
10617 # Use C for the default configuration in the libtool script
10618
10619 lt_save_CC=$CC
10620 ac_ext=c
10621 ac_cpp='$CPP $CPPFLAGS'
10622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10625
10626
10627 # Source file extension for C test sources.
10628 ac_ext=c
10629
10630 # Object file extension for compiled C test sources.
10631 objext=o
10632 objext=$objext
10633
10634 # Code to be used in simple compile tests
10635 lt_simple_compile_test_code="int some_variable = 0;"
10636
10637 # Code to be used in simple link tests
10638 lt_simple_link_test_code='int main(void){return(0);}'
10639
10640
10641
10642
10643
10644
10645
10646 # If no C compiler was specified, use CC.
10647 LTCC=${LTCC-"$CC"}
10648
10649 # If no C compiler flags were specified, use CFLAGS.
10650 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10651
10652 # Allow CC to be a program name with arguments.
10653 compiler=$CC
10654
10655 # Save the default compiler, since it gets overwritten when the other
10656 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10657 compiler_DEFAULT=$CC
10658
10659 # save warnings/boilerplate of simple test code
10660 ac_outfile=conftest.$ac_objext
10661 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10662 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10663 _lt_compiler_boilerplate=`cat conftest.err`
10664 $RM conftest*
10665
10666 ac_outfile=conftest.$ac_objext
10667 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10668 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10669 _lt_linker_boilerplate=`cat conftest.err`
10670 $RM -r conftest*
10671
10672
10673 ## CAVEAT EMPTOR:
10674 ## There is no encapsulation within the following macros, do not change
10675 ## the running order or otherwise move them around unless you know exactly
10676 ## what you are doing...
10677 if test -n "$compiler"; then
10678
10679 lt_prog_compiler_no_builtin_flag=
10680
10681 if test yes = "$GCC"; then
10682 case $cc_basename in
10683 nvcc*)
10684 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10685 *)
10686 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10687 esac
10688
10689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10690 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10691 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
10692 then :
10693 printf %s "(cached) " >&6
10694 else case e in #(
10695 e) lt_cv_prog_compiler_rtti_exceptions=no
10696 ac_outfile=conftest.$ac_objext
10697 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10698 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
10699 # Insert the option either (1) after the last *FLAGS variable, or
10700 # (2) before a word containing "conftest.", or (3) at the end.
10701 # Note that $ac_compile itself does not contain backslashes and begins
10702 # with a dollar sign (not a hyphen), so the echo should work correctly.
10703 # The option is referenced via a variable to avoid confusing sed.
10704 lt_compile=`echo "$ac_compile" | $SED \
10705 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10706 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10707 -e 's:$: $lt_compiler_flag:'`
10708 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10709 (eval "$lt_compile" 2>conftest.err)
10710 ac_status=$?
10711 cat conftest.err >&5
10712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10713 if (exit $ac_status) && test -s "$ac_outfile"; then
10714 # The compiler can only warn and ignore the option if not recognized
10715 # So say no if there are warnings other than the usual output.
10716 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10717 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10718 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10719 lt_cv_prog_compiler_rtti_exceptions=yes
10720 fi
10721 fi
10722 $RM conftest*
10723 ;;
10724 esac
10725 fi
10726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10727 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10728
10729 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10730 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10731 else
10732 :
10733 fi
10734
10735 fi
10736
10737
10738
10739
10740
10741
10742 lt_prog_compiler_wl=
10743 lt_prog_compiler_pic=
10744 lt_prog_compiler_static=
10745
10746
10747 if test yes = "$GCC"; then
10748 lt_prog_compiler_wl='-Wl,'
10749 lt_prog_compiler_static='-static'
10750
10751 case $host_os in
10752 aix*)
10753 # All AIX code is PIC.
10754 if test ia64 = "$host_cpu"; then
10755 # AIX 5 now supports IA64 processor
10756 lt_prog_compiler_static='-Bstatic'
10757 fi
10758 lt_prog_compiler_pic='-fPIC'
10759 ;;
10760
10761 amigaos*)
10762 case $host_cpu in
10763 powerpc)
10764 # see comment about AmigaOS4 .so support
10765 lt_prog_compiler_pic='-fPIC'
10766 ;;
10767 m68k)
10768 # FIXME: we need at least 68020 code to build shared libraries, but
10769 # adding the '-m68020' flag to GCC prevents building anything better,
10770 # like '-m68040'.
10771 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10772 ;;
10773 esac
10774 ;;
10775
10776 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10777 # PIC is the default for these OSes.
10778 ;;
10779
10780 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
10781 # This hack is so that the source file can tell whether it is being
10782 # built for inclusion in a dll (and should export symbols for example).
10783 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10784 # (--disable-auto-import) libraries
10785 lt_prog_compiler_pic='-DDLL_EXPORT'
10786 case $host_os in
10787 os2*)
10788 lt_prog_compiler_static='$wl-static'
10789 ;;
10790 esac
10791 ;;
10792
10793 darwin* | rhapsody*)
10794 # PIC is the default on this platform
10795 # Common symbols not allowed in MH_DYLIB files
10796 lt_prog_compiler_pic='-fno-common'
10797 ;;
10798
10799 haiku*)
10800 # PIC is the default for Haiku.
10801 # The "-static" flag exists, but is broken.
10802 lt_prog_compiler_static=
10803 ;;
10804
10805 hpux*)
10806 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10807 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10808 # sets the default TLS model and affects inlining.
10809 case $host_cpu in
10810 hppa*64*)
10811 # +Z the default
10812 ;;
10813 *)
10814 lt_prog_compiler_pic='-fPIC'
10815 ;;
10816 esac
10817 ;;
10818
10819 interix[3-9]*)
10820 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10821 # Instead, we relocate shared libraries at runtime.
10822 ;;
10823
10824 msdosdjgpp*)
10825 # Just because we use GCC doesn't mean we suddenly get shared libraries
10826 # on systems that don't support them.
10827 lt_prog_compiler_can_build_shared=no
10828 enable_shared=no
10829 ;;
10830
10831 *nto* | *qnx*)
10832 # QNX uses GNU C++, but need to define -shared option too, otherwise
10833 # it will coredump.
10834 lt_prog_compiler_pic='-fPIC -shared'
10835 ;;
10836
10837 sysv4*MP*)
10838 if test -d /usr/nec; then
10839 lt_prog_compiler_pic=-Kconform_pic
10840 fi
10841 ;;
10842
10843 *)
10844 lt_prog_compiler_pic='-fPIC'
10845 ;;
10846 esac
10847
10848 case $cc_basename in
10849 nvcc*) # Cuda Compiler Driver 2.2
10850 lt_prog_compiler_wl='-Xlinker '
10851 if test -n "$lt_prog_compiler_pic"; then
10852 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10853 fi
10854 ;;
10855 esac
10856 else
10857 # PORTME Check for flag to pass linker flags through the system compiler.
10858 case $host_os in
10859 aix*)
10860 lt_prog_compiler_wl='-Wl,'
10861 if test ia64 = "$host_cpu"; then
10862 # AIX 5 now supports IA64 processor
10863 lt_prog_compiler_static='-Bstatic'
10864 else
10865 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10866 fi
10867 ;;
10868
10869 darwin* | rhapsody*)
10870 # PIC is the default on this platform
10871 # Common symbols not allowed in MH_DYLIB files
10872 lt_prog_compiler_pic='-fno-common'
10873 case $cc_basename in
10874 nagfor*)
10875 # NAG Fortran compiler
10876 lt_prog_compiler_wl='-Wl,-Wl,,'
10877 lt_prog_compiler_pic='-PIC'
10878 lt_prog_compiler_static='-Bstatic'
10879 ;;
10880 esac
10881 ;;
10882
10883 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
10884 # This hack is so that the source file can tell whether it is being
10885 # built for inclusion in a dll (and should export symbols for example).
10886 lt_prog_compiler_pic='-DDLL_EXPORT'
10887 case $host_os in
10888 os2*)
10889 lt_prog_compiler_static='$wl-static'
10890 ;;
10891 esac
10892 ;;
10893
10894 hpux9* | hpux10* | hpux11*)
10895 lt_prog_compiler_wl='-Wl,'
10896 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10897 # not for PA HP-UX.
10898 case $host_cpu in
10899 hppa*64*|ia64*)
10900 # +Z the default
10901 ;;
10902 *)
10903 lt_prog_compiler_pic='+Z'
10904 ;;
10905 esac
10906 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10907 lt_prog_compiler_static='$wl-a ${wl}archive'
10908 ;;
10909
10910 irix5* | irix6* | nonstopux*)
10911 lt_prog_compiler_wl='-Wl,'
10912 # PIC (with -KPIC) is the default.
10913 lt_prog_compiler_static='-non_shared'
10914 ;;
10915
10916 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10917 case $cc_basename in
10918 # old Intel for x86_64, which still supported -KPIC.
10919 ecc*)
10920 lt_prog_compiler_wl='-Wl,'
10921 lt_prog_compiler_pic='-KPIC'
10922 lt_prog_compiler_static='-static'
10923 ;;
10924 *flang* | ftn | f18* | f95*)
10925 # Flang compiler.
10926 lt_prog_compiler_wl='-Wl,'
10927 lt_prog_compiler_pic='-fPIC'
10928 lt_prog_compiler_static='-static'
10929 ;;
10930 # icc used to be incompatible with GCC.
10931 # ICC 10 doesn't accept -KPIC any more.
10932 icc* | ifort*)
10933 lt_prog_compiler_wl='-Wl,'
10934 lt_prog_compiler_pic='-fPIC'
10935 lt_prog_compiler_static='-static'
10936 ;;
10937 # Lahey Fortran 8.1.
10938 lf95*)
10939 lt_prog_compiler_wl='-Wl,'
10940 lt_prog_compiler_pic='--shared'
10941 lt_prog_compiler_static='--static'
10942 ;;
10943 nagfor*)
10944 # NAG Fortran compiler
10945 lt_prog_compiler_wl='-Wl,-Wl,,'
10946 lt_prog_compiler_pic='-PIC'
10947 lt_prog_compiler_static='-Bstatic'
10948 ;;
10949 tcc*)
10950 # Fabrice Bellard et al's Tiny C Compiler
10951 lt_prog_compiler_wl='-Wl,'
10952 lt_prog_compiler_pic='-fPIC'
10953 lt_prog_compiler_static='-static'
10954 ;;
10955 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10956 # Portland Group compilers (*not* the Pentium gcc compiler,
10957 # which looks to be a dead project)
10958 lt_prog_compiler_wl='-Wl,'
10959 lt_prog_compiler_pic='-fpic'
10960 lt_prog_compiler_static='-Bstatic'
10961 ;;
10962 ccc*)
10963 lt_prog_compiler_wl='-Wl,'
10964 # All Alpha code is PIC.
10965 lt_prog_compiler_static='-non_shared'
10966 ;;
10967 xl* | bgxl* | bgf* | mpixl*)
10968 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10969 lt_prog_compiler_wl='-Wl,'
10970 lt_prog_compiler_pic='-qpic'
10971 lt_prog_compiler_static='-qstaticlink'
10972 ;;
10973 *)
10974 case `$CC -V 2>&1 | $SED 5q` in
10975 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10976 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10977 lt_prog_compiler_pic='-KPIC'
10978 lt_prog_compiler_static='-Bstatic'
10979 lt_prog_compiler_wl=''
10980 ;;
10981 *Sun\ F* | *Sun*Fortran*)
10982 lt_prog_compiler_pic='-KPIC'
10983 lt_prog_compiler_static='-Bstatic'
10984 lt_prog_compiler_wl='-Qoption ld '
10985 ;;
10986 *Sun\ C*)
10987 # Sun C 5.9
10988 lt_prog_compiler_pic='-KPIC'
10989 lt_prog_compiler_static='-Bstatic'
10990 lt_prog_compiler_wl='-Wl,'
10991 ;;
10992 *Intel*\ [CF]*Compiler*)
10993 lt_prog_compiler_wl='-Wl,'
10994 lt_prog_compiler_pic='-fPIC'
10995 lt_prog_compiler_static='-static'
10996 ;;
10997 *Portland\ Group*)
10998 lt_prog_compiler_wl='-Wl,'
10999 lt_prog_compiler_pic='-fpic'
11000 lt_prog_compiler_static='-Bstatic'
11001 ;;
11002 esac
11003 ;;
11004 esac
11005 ;;
11006
11007 newsos6)
11008 lt_prog_compiler_pic='-KPIC'
11009 lt_prog_compiler_static='-Bstatic'
11010 ;;
11011
11012 *-mlibc)
11013 lt_prog_compiler_wl='-Wl,'
11014 lt_prog_compiler_pic='-fPIC'
11015 lt_prog_compiler_static='-static'
11016 ;;
11017
11018 *nto* | *qnx*)
11019 # QNX uses GNU C++, but need to define -shared option too, otherwise
11020 # it will coredump.
11021 lt_prog_compiler_pic='-fPIC -shared'
11022 ;;
11023
11024 osf3* | osf4* | osf5*)
11025 lt_prog_compiler_wl='-Wl,'
11026 # All OSF/1 code is PIC.
11027 lt_prog_compiler_static='-non_shared'
11028 ;;
11029
11030 rdos*)
11031 lt_prog_compiler_static='-non_shared'
11032 ;;
11033
11034 serenity*)
11035 ;;
11036
11037 solaris*)
11038 lt_prog_compiler_pic='-KPIC'
11039 lt_prog_compiler_static='-Bstatic'
11040 case $cc_basename in
11041 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11042 lt_prog_compiler_wl='-Qoption ld ';;
11043 *)
11044 lt_prog_compiler_wl='-Wl,';;
11045 esac
11046 ;;
11047
11048 sunos4*)
11049 lt_prog_compiler_wl='-Qoption ld '
11050 lt_prog_compiler_pic='-PIC'
11051 lt_prog_compiler_static='-Bstatic'
11052 ;;
11053
11054 sysv4 | sysv4.2uw2* | sysv4.3*)
11055 lt_prog_compiler_wl='-Wl,'
11056 lt_prog_compiler_pic='-KPIC'
11057 lt_prog_compiler_static='-Bstatic'
11058 ;;
11059
11060 sysv4*MP*)
11061 if test -d /usr/nec; then
11062 lt_prog_compiler_pic='-Kconform_pic'
11063 lt_prog_compiler_static='-Bstatic'
11064 fi
11065 ;;
11066
11067 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11068 lt_prog_compiler_wl='-Wl,'
11069 lt_prog_compiler_pic='-KPIC'
11070 lt_prog_compiler_static='-Bstatic'
11071 ;;
11072
11073 unicos*)
11074 lt_prog_compiler_wl='-Wl,'
11075 lt_prog_compiler_can_build_shared=no
11076 ;;
11077
11078 uts4*)
11079 lt_prog_compiler_pic='-pic'
11080 lt_prog_compiler_static='-Bstatic'
11081 ;;
11082
11083 *)
11084 lt_prog_compiler_can_build_shared=no
11085 ;;
11086 esac
11087 fi
11088
11089 case $host_os in
11090 # For platforms that do not support PIC, -DPIC is meaningless:
11091 *djgpp*)
11092 lt_prog_compiler_pic=
11093 ;;
11094 *)
11095 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11096 ;;
11097 esac
11098
11099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11100 printf %s "checking for $compiler option to produce PIC... " >&6; }
11101 if test ${lt_cv_prog_compiler_pic+y}
11102 then :
11103 printf %s "(cached) " >&6
11104 else case e in #(
11105 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
11106 esac
11107 fi
11108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11109 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
11110 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11111
11112 #
11113 # Check to make sure the PIC flag actually works.
11114 #
11115 if test -n "$lt_prog_compiler_pic"; then
11116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11117 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11118 if test ${lt_cv_prog_compiler_pic_works+y}
11119 then :
11120 printf %s "(cached) " >&6
11121 else case e in #(
11122 e) lt_cv_prog_compiler_pic_works=no
11123 ac_outfile=conftest.$ac_objext
11124 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11125 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
11126 # Insert the option either (1) after the last *FLAGS variable, or
11127 # (2) before a word containing "conftest.", or (3) at the end.
11128 # Note that $ac_compile itself does not contain backslashes and begins
11129 # with a dollar sign (not a hyphen), so the echo should work correctly.
11130 # The option is referenced via a variable to avoid confusing sed.
11131 lt_compile=`echo "$ac_compile" | $SED \
11132 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11133 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11134 -e 's:$: $lt_compiler_flag:'`
11135 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11136 (eval "$lt_compile" 2>conftest.err)
11137 ac_status=$?
11138 cat conftest.err >&5
11139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11140 if (exit $ac_status) && test -s "$ac_outfile"; then
11141 # The compiler can only warn and ignore the option if not recognized
11142 # So say no if there are warnings other than the usual output.
11143 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11144 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11145 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11146 lt_cv_prog_compiler_pic_works=yes
11147 fi
11148 fi
11149 $RM conftest*
11150 ;;
11151 esac
11152 fi
11153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11154 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
11155
11156 if test yes = "$lt_cv_prog_compiler_pic_works"; then
11157 case $lt_prog_compiler_pic in
11158 "" | " "*) ;;
11159 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11160 esac
11161 else
11162 lt_prog_compiler_pic=
11163 lt_prog_compiler_can_build_shared=no
11164 fi
11165
11166 fi
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178 #
11179 # Check to make sure the static flag actually works.
11180 #
11181 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11183 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11184 if test ${lt_cv_prog_compiler_static_works+y}
11185 then :
11186 printf %s "(cached) " >&6
11187 else case e in #(
11188 e) lt_cv_prog_compiler_static_works=no
11189 save_LDFLAGS=$LDFLAGS
11190 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11191 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11192 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11193 # The linker can only warn and ignore the option if not recognized
11194 # So say no if there are warnings
11195 if test -s conftest.err; then
11196 # Append any errors to the config.log.
11197 cat conftest.err 1>&5
11198 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11199 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11200 if diff conftest.exp conftest.er2 >/dev/null; then
11201 lt_cv_prog_compiler_static_works=yes
11202 fi
11203 else
11204 lt_cv_prog_compiler_static_works=yes
11205 fi
11206 fi
11207 $RM -r conftest*
11208 LDFLAGS=$save_LDFLAGS
11209 ;;
11210 esac
11211 fi
11212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11213 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
11214
11215 if test yes = "$lt_cv_prog_compiler_static_works"; then
11216 :
11217 else
11218 lt_prog_compiler_static=
11219 fi
11220
11221
11222
11223
11224
11225
11226
11227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11228 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11229 if test ${lt_cv_prog_compiler_c_o+y}
11230 then :
11231 printf %s "(cached) " >&6
11232 else case e in #(
11233 e) lt_cv_prog_compiler_c_o=no
11234 $RM -r conftest 2>/dev/null
11235 mkdir conftest
11236 cd conftest
11237 mkdir out
11238 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11239
11240 lt_compiler_flag="-o out/conftest2.$ac_objext"
11241 # Insert the option either (1) after the last *FLAGS variable, or
11242 # (2) before a word containing "conftest.", or (3) at the end.
11243 # Note that $ac_compile itself does not contain backslashes and begins
11244 # with a dollar sign (not a hyphen), so the echo should work correctly.
11245 lt_compile=`echo "$ac_compile" | $SED \
11246 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11247 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11248 -e 's:$: $lt_compiler_flag:'`
11249 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11250 (eval "$lt_compile" 2>out/conftest.err)
11251 ac_status=$?
11252 cat out/conftest.err >&5
11253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11254 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11255 then
11256 # The compiler can only warn and ignore the option if not recognized
11257 # So say no if there are warnings
11258 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11259 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11260 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11261 lt_cv_prog_compiler_c_o=yes
11262 fi
11263 fi
11264 chmod u+w . 2>&5
11265 $RM conftest*
11266 # SGI C++ compiler will create directory out/ii_files/ for
11267 # template instantiation
11268 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11269 $RM out/* && rmdir out
11270 cd ..
11271 $RM -r conftest
11272 $RM conftest*
11273 ;;
11274 esac
11275 fi
11276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11277 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
11278
11279
11280
11281
11282
11283
11284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11285 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11286 if test ${lt_cv_prog_compiler_c_o+y}
11287 then :
11288 printf %s "(cached) " >&6
11289 else case e in #(
11290 e) lt_cv_prog_compiler_c_o=no
11291 $RM -r conftest 2>/dev/null
11292 mkdir conftest
11293 cd conftest
11294 mkdir out
11295 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11296
11297 lt_compiler_flag="-o out/conftest2.$ac_objext"
11298 # Insert the option either (1) after the last *FLAGS variable, or
11299 # (2) before a word containing "conftest.", or (3) at the end.
11300 # Note that $ac_compile itself does not contain backslashes and begins
11301 # with a dollar sign (not a hyphen), so the echo should work correctly.
11302 lt_compile=`echo "$ac_compile" | $SED \
11303 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11304 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11305 -e 's:$: $lt_compiler_flag:'`
11306 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11307 (eval "$lt_compile" 2>out/conftest.err)
11308 ac_status=$?
11309 cat out/conftest.err >&5
11310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11312 then
11313 # The compiler can only warn and ignore the option if not recognized
11314 # So say no if there are warnings
11315 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11316 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11317 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11318 lt_cv_prog_compiler_c_o=yes
11319 fi
11320 fi
11321 chmod u+w . 2>&5
11322 $RM conftest*
11323 # SGI C++ compiler will create directory out/ii_files/ for
11324 # template instantiation
11325 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11326 $RM out/* && rmdir out
11327 cd ..
11328 $RM -r conftest
11329 $RM conftest*
11330 ;;
11331 esac
11332 fi
11333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11334 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
11335
11336
11337
11338
11339 hard_links=nottested
11340 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
11341 # do not overwrite the value of need_locks provided by the user
11342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11343 printf %s "checking if we can lock with hard links... " >&6; }
11344 hard_links=yes
11345 $RM conftest*
11346 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11347 touch conftest.a
11348 ln conftest.a conftest.b 2>&5 || hard_links=no
11349 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11351 printf "%s\n" "$hard_links" >&6; }
11352 if test no = "$hard_links"; then
11353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11354 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
11355 need_locks=warn
11356 fi
11357 else
11358 need_locks=no
11359 fi
11360
11361
11362
11363
11364
11365
11366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11367 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11368
11369 runpath_var=
11370 allow_undefined_flag=
11371 always_export_symbols=no
11372 archive_cmds=
11373 archive_expsym_cmds=
11374 compiler_needs_object=no
11375 enable_shared_with_static_runtimes=no
11376 export_dynamic_flag_spec=
11377 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11378 hardcode_automatic=no
11379 hardcode_direct=no
11380 hardcode_direct_absolute=no
11381 hardcode_libdir_flag_spec=
11382 hardcode_libdir_separator=
11383 hardcode_minus_L=no
11384 hardcode_shlibpath_var=unsupported
11385 inherit_rpath=no
11386 link_all_deplibs=unknown
11387 module_cmds=
11388 module_expsym_cmds=
11389 old_archive_from_new_cmds=
11390 old_archive_from_expsyms_cmds=
11391 thread_safe_flag_spec=
11392 whole_archive_flag_spec=
11393 # include_expsyms should be a list of space-separated symbols to be *always*
11394 # included in the symbol list
11395 include_expsyms=
11396 # exclude_expsyms can be an extended regexp of symbols to exclude
11397 # it will be wrapped by ' (' and ')$', so one must not match beginning or
11398 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11399 # as well as any symbol that contains 'd'.
11400 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11401 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11402 # platforms (ab)use it in PIC code, but their linkers get confused if
11403 # the symbol is explicitly referenced. Since portable code cannot
11404 # rely on this symbol name, it's probably fine to never include it in
11405 # preloaded symbol tables.
11406 # Exclude shared library initialization/finalization symbols.
11407 extract_expsyms_cmds=
11408
11409 case $host_os in
11410 cygwin* | mingw* | windows* | pw32* | cegcc*)
11411 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
11412 # When not using gcc, we currently assume that we are using
11413 # Microsoft Visual C++ or Intel C++ Compiler.
11414 if test yes != "$GCC"; then
11415 with_gnu_ld=no
11416 fi
11417 ;;
11418 interix*)
11419 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
11420 with_gnu_ld=yes
11421 ;;
11422 esac
11423
11424 ld_shlibs=yes
11425
11426 # On some targets, GNU ld is compatible enough with the native linker
11427 # that we're better off using the native interface for both.
11428 lt_use_gnu_ld_interface=no
11429 if test yes = "$with_gnu_ld"; then
11430 case $host_os in
11431 aix*)
11432 # The AIX port of GNU ld has always aspired to compatibility
11433 # with the native linker. However, as the warning in the GNU ld
11434 # block says, versions before 2.19.5* couldn't really create working
11435 # shared libraries, regardless of the interface used.
11436 case `$LD -v 2>&1` in
11437 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11438 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11439 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11440 *)
11441 lt_use_gnu_ld_interface=yes
11442 ;;
11443 esac
11444 ;;
11445 *)
11446 lt_use_gnu_ld_interface=yes
11447 ;;
11448 esac
11449 fi
11450
11451 if test yes = "$lt_use_gnu_ld_interface"; then
11452 # If archive_cmds runs LD, not CC, wlarc should be empty
11453 wlarc='$wl'
11454
11455 # Set some defaults for GNU ld with shared library support. These
11456 # are reset later if shared libraries are not supported. Putting them
11457 # here allows them to be overridden if necessary.
11458 runpath_var=LD_RUN_PATH
11459 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11460 export_dynamic_flag_spec='$wl--export-dynamic'
11461 # ancient GNU ld didn't support --whole-archive et. al.
11462 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11463 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11464 else
11465 whole_archive_flag_spec=
11466 fi
11467 supports_anon_versioning=no
11468 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
11469 *GNU\ gold*) supports_anon_versioning=yes ;;
11470 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11471 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11472 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11473 *\ 2.11.*) ;; # other 2.11 versions
11474 *) supports_anon_versioning=yes ;;
11475 esac
11476
11477 # See if GNU ld supports shared libraries.
11478 case $host_os in
11479 aix[3-9]*)
11480 # On AIX/PPC, the GNU linker is very broken
11481 if test ia64 != "$host_cpu"; then
11482 ld_shlibs=no
11483 cat <<_LT_EOF 1>&2
11484
11485 *** Warning: the GNU linker, at least up to release 2.19, is reported
11486 *** to be unable to reliably create shared libraries on AIX.
11487 *** Therefore, libtool is disabling shared libraries support. If you
11488 *** really care for shared libraries, you may want to install binutils
11489 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11490 *** You will then need to restart the configuration process.
11491
11492 _LT_EOF
11493 fi
11494 ;;
11495
11496 amigaos*)
11497 case $host_cpu in
11498 powerpc)
11499 # see comment about AmigaOS4 .so support
11500 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11501 archive_expsym_cmds=''
11502 ;;
11503 m68k)
11504 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)'
11505 hardcode_libdir_flag_spec='-L$libdir'
11506 hardcode_minus_L=yes
11507 ;;
11508 esac
11509 ;;
11510
11511 beos*)
11512 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11513 allow_undefined_flag=unsupported
11514 # Joseph Beckenbach <[email protected]> says some releases of gcc
11515 # support --undefined. This deserves some investigation. FIXME
11516 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11517 else
11518 ld_shlibs=no
11519 fi
11520 ;;
11521
11522 cygwin* | mingw* | windows* | pw32* | cegcc*)
11523 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11524 # as there is no search path for DLLs.
11525 hardcode_libdir_flag_spec='-L$libdir'
11526 export_dynamic_flag_spec='$wl--export-all-symbols'
11527 allow_undefined_flag=unsupported
11528 always_export_symbols=no
11529 enable_shared_with_static_runtimes=yes
11530 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'
11531 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11532 file_list_spec='@'
11533
11534 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11535 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11536 # If the export-symbols file already is a .def file, use it as
11537 # is; otherwise, prepend EXPORTS...
11538 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11539 cp $export_symbols $output_objdir/$soname.def;
11540 else
11541 echo EXPORTS > $output_objdir/$soname.def;
11542 cat $export_symbols >> $output_objdir/$soname.def;
11543 fi~
11544 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11545 else
11546 ld_shlibs=no
11547 fi
11548 ;;
11549
11550 haiku*)
11551 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11552 link_all_deplibs=no
11553 ;;
11554
11555 os2*)
11556 hardcode_libdir_flag_spec='-L$libdir'
11557 hardcode_minus_L=yes
11558 allow_undefined_flag=unsupported
11559 shrext_cmds=.dll
11560 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11561 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11562 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11563 $ECHO EXPORTS >> $output_objdir/$libname.def~
11564 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11565 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11566 emximp -o $lib $output_objdir/$libname.def'
11567 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11568 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11569 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11570 $ECHO EXPORTS >> $output_objdir/$libname.def~
11571 prefix_cmds="$SED"~
11572 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11573 prefix_cmds="$prefix_cmds -e 1d";
11574 fi~
11575 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11576 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11577 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11578 emximp -o $lib $output_objdir/$libname.def'
11579 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11580 enable_shared_with_static_runtimes=yes
11581 file_list_spec='@'
11582 ;;
11583
11584 interix[3-9]*)
11585 hardcode_direct=no
11586 hardcode_shlibpath_var=no
11587 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11588 export_dynamic_flag_spec='$wl-E'
11589 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11590 # Instead, shared libraries are loaded at an image base (0x10000000 by
11591 # default) and relocated if they conflict, which is a slow very memory
11592 # consuming and fragmenting process. To avoid this, we pick a random,
11593 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11594 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11595 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11596 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'
11597 ;;
11598
11599 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11600 tmp_diet=no
11601 if test linux-dietlibc = "$host_os"; then
11602 case $cc_basename in
11603 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11604 esac
11605 fi
11606 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11607 && test no = "$tmp_diet"
11608 then
11609 tmp_addflag=' $pic_flag'
11610 tmp_sharedflag='-shared'
11611 case $cc_basename,$host_cpu in
11612 pgcc*) # Portland Group C compiler
11613 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'
11614 tmp_addflag=' $pic_flag'
11615 ;;
11616 pgf77* | pgf90* | pgf95* | pgfortran*)
11617 # Portland Group f77 and f90 compilers
11618 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'
11619 tmp_addflag=' $pic_flag -Mnomain' ;;
11620 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11621 tmp_addflag=' -i_dynamic' ;;
11622 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11623 tmp_addflag=' -i_dynamic -nofor_main' ;;
11624 ifc* | ifort*) # Intel Fortran compiler
11625 tmp_addflag=' -nofor_main' ;;
11626 lf95*) # Lahey Fortran 8.1
11627 whole_archive_flag_spec=
11628 tmp_sharedflag='--shared' ;;
11629 nagfor*) # NAGFOR 5.3
11630 tmp_sharedflag='-Wl,-shared' ;;
11631 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11632 tmp_sharedflag='-qmkshrobj'
11633 tmp_addflag= ;;
11634 nvcc*) # Cuda Compiler Driver 2.2
11635 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'
11636 compiler_needs_object=yes
11637 ;;
11638 esac
11639 case `$CC -V 2>&1 | $SED 5q` in
11640 *Sun\ C*) # Sun C 5.9
11641 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'
11642 compiler_needs_object=yes
11643 tmp_sharedflag='-G' ;;
11644 *Sun\ F*) # Sun Fortran 8.3
11645 tmp_sharedflag='-G' ;;
11646 esac
11647 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11648
11649 if test yes = "$supports_anon_versioning"; then
11650 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11651 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11652 echo "local: *; };" >> $output_objdir/$libname.ver~
11653 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11654 fi
11655
11656 case $cc_basename in
11657 tcc*)
11658 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11659 export_dynamic_flag_spec='-rdynamic'
11660 ;;
11661 xlf* | bgf* | bgxlf* | mpixlf*)
11662 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11663 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11664 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11665 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11666 if test yes = "$supports_anon_versioning"; then
11667 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11668 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11669 echo "local: *; };" >> $output_objdir/$libname.ver~
11670 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11671 fi
11672 ;;
11673 esac
11674 else
11675 ld_shlibs=no
11676 fi
11677 ;;
11678
11679 *-mlibc)
11680 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11681 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11682 ;;
11683
11684 netbsd* | netbsdelf*-gnu)
11685 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11686 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11687 wlarc=
11688 else
11689 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11690 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11691 fi
11692 ;;
11693
11694 solaris*)
11695 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11696 ld_shlibs=no
11697 cat <<_LT_EOF 1>&2
11698
11699 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11700 *** create shared libraries on Solaris systems. Therefore, libtool
11701 *** is disabling shared libraries support. We urge you to upgrade GNU
11702 *** binutils to release 2.9.1 or newer. Another option is to modify
11703 *** your PATH or compiler configuration so that the native linker is
11704 *** used, and then restart.
11705
11706 _LT_EOF
11707 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11708 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11709 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11710 else
11711 ld_shlibs=no
11712 fi
11713 ;;
11714
11715 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11716 case `$LD -v 2>&1` in
11717 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11718 ld_shlibs=no
11719 cat <<_LT_EOF 1>&2
11720
11721 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11722 *** reliably create shared libraries on SCO systems. Therefore, libtool
11723 *** is disabling shared libraries support. We urge you to upgrade GNU
11724 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11725 *** your PATH or compiler configuration so that the native linker is
11726 *** used, and then restart.
11727
11728 _LT_EOF
11729 ;;
11730 *)
11731 # For security reasons, it is highly recommended that you always
11732 # use absolute paths for naming shared libraries, and exclude the
11733 # DT_RUNPATH tag from executables and libraries. But doing so
11734 # requires that you compile everything twice, which is a pain.
11735 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11736 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11737 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11738 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11739 else
11740 ld_shlibs=no
11741 fi
11742 ;;
11743 esac
11744 ;;
11745
11746 sunos4*)
11747 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11748 wlarc=
11749 hardcode_direct=yes
11750 hardcode_shlibpath_var=no
11751 ;;
11752
11753 *)
11754 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11755 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11756 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11757 else
11758 ld_shlibs=no
11759 fi
11760 ;;
11761 esac
11762
11763 if test no = "$ld_shlibs"; then
11764 runpath_var=
11765 hardcode_libdir_flag_spec=
11766 export_dynamic_flag_spec=
11767 whole_archive_flag_spec=
11768 fi
11769 else
11770 # PORTME fill in a description of your system's linker (not GNU ld)
11771 case $host_os in
11772 aix3*)
11773 allow_undefined_flag=unsupported
11774 always_export_symbols=yes
11775 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'
11776 # Note: this linker hardcodes the directories in LIBPATH if there
11777 # are no directories specified by -L.
11778 hardcode_minus_L=yes
11779 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11780 # Neither direct hardcoding nor static linking is supported with a
11781 # broken collect2.
11782 hardcode_direct=unsupported
11783 fi
11784 ;;
11785
11786 aix[4-9]*)
11787 if test ia64 = "$host_cpu"; then
11788 # On IA64, the linker does run time linking by default, so we don't
11789 # have to do anything special.
11790 aix_use_runtimelinking=no
11791 exp_sym_flag='-Bexport'
11792 no_entry_flag=
11793 else
11794 # If we're using GNU nm, then we don't want the "-C" option.
11795 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
11796 # Without the "-l" option, or with the "-B" option, AIX nm treats
11797 # weak defined symbols like other global defined symbols, whereas
11798 # GNU nm marks them as "W".
11799 # While the 'weak' keyword is ignored in the Export File, we need
11800 # it in the Import File for the 'aix-soname' feature, so we have
11801 # to replace the "-B" option with "-P" for AIX nm.
11802 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11803 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'
11804 else
11805 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'
11806 fi
11807 aix_use_runtimelinking=no
11808
11809 # Test if we are trying to use run time linking or normal
11810 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11811 # have runtime linking enabled, and use it for executables.
11812 # For shared libraries, we enable/disable runtime linking
11813 # depending on the kind of the shared library created -
11814 # when "with_aix_soname,aix_use_runtimelinking" is:
11815 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
11816 # "aix,yes" lib.so shared, rtl:yes, for executables
11817 # lib.a static archive
11818 # "both,no" lib.so.V(shr.o) shared, rtl:yes
11819 # lib.a(lib.so.V) shared, rtl:no, for executables
11820 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11821 # lib.a(lib.so.V) shared, rtl:no
11822 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
11823 # lib.a static archive
11824 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11825 for ld_flag in $LDFLAGS; do
11826 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11827 aix_use_runtimelinking=yes
11828 break
11829 fi
11830 done
11831 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11832 # With aix-soname=svr4, we create the lib.so.V shared archives only,
11833 # so we don't have lib.a shared libs to link our executables.
11834 # We have to force runtime linking in this case.
11835 aix_use_runtimelinking=yes
11836 LDFLAGS="$LDFLAGS -Wl,-brtl"
11837 fi
11838 ;;
11839 esac
11840
11841 exp_sym_flag='-bexport'
11842 no_entry_flag='-bnoentry'
11843 fi
11844
11845 # When large executables or shared objects are built, AIX ld can
11846 # have problems creating the table of contents. If linking a library
11847 # or program results in "error TOC overflow" add -mminimal-toc to
11848 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11849 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11850
11851 archive_cmds=''
11852 hardcode_direct=yes
11853 hardcode_direct_absolute=yes
11854 hardcode_libdir_separator=':'
11855 link_all_deplibs=yes
11856 file_list_spec='$wl-f,'
11857 case $with_aix_soname,$aix_use_runtimelinking in
11858 aix,*) ;; # traditional, no import file
11859 svr4,* | *,yes) # use import file
11860 # The Import File defines what to hardcode.
11861 hardcode_direct=no
11862 hardcode_direct_absolute=no
11863 ;;
11864 esac
11865
11866 if test yes = "$GCC"; then
11867 case $host_os in aix4.[012]|aix4.[012].*)
11868 # We only want to do this on AIX 4.2 and lower, the check
11869 # below for broken collect2 doesn't work under 4.3+
11870 collect2name=`$CC -print-prog-name=collect2`
11871 if test -f "$collect2name" &&
11872 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11873 then
11874 # We have reworked collect2
11875 :
11876 else
11877 # We have old collect2
11878 hardcode_direct=unsupported
11879 # It fails to find uninstalled libraries when the uninstalled
11880 # path is not listed in the libpath. Setting hardcode_minus_L
11881 # to unsupported forces relinking
11882 hardcode_minus_L=yes
11883 hardcode_libdir_flag_spec='-L$libdir'
11884 hardcode_libdir_separator=
11885 fi
11886 ;;
11887 esac
11888 shared_flag='-shared'
11889 if test yes = "$aix_use_runtimelinking"; then
11890 shared_flag="$shared_flag "'$wl-G'
11891 fi
11892 # Need to ensure runtime linking is disabled for the traditional
11893 # shared library, or the linker may eventually find shared libraries
11894 # /with/ Import File - we do not want to mix them.
11895 shared_flag_aix='-shared'
11896 shared_flag_svr4='-shared $wl-G'
11897 else
11898 # not using gcc
11899 if test ia64 = "$host_cpu"; then
11900 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11901 # chokes on -Wl,-G. The following line is correct:
11902 shared_flag='-G'
11903 else
11904 if test yes = "$aix_use_runtimelinking"; then
11905 shared_flag='$wl-G'
11906 else
11907 shared_flag='$wl-bM:SRE'
11908 fi
11909 shared_flag_aix='$wl-bM:SRE'
11910 shared_flag_svr4='$wl-G'
11911 fi
11912 fi
11913
11914 export_dynamic_flag_spec='$wl-bexpall'
11915 # It seems that -bexpall does not export symbols beginning with
11916 # underscore (_), so it is better to generate a list of symbols to export.
11917 always_export_symbols=yes
11918 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11919 # Warning - without using the other runtime loading flags (-brtl),
11920 # -berok will link without error, but may produce a broken library.
11921 allow_undefined_flag='-berok'
11922 # Determine the default libpath from the value encoded in an
11923 # empty executable.
11924 if test set = "${lt_cv_aix_libpath+set}"; then
11925 aix_libpath=$lt_cv_aix_libpath
11926 else
11927 if test ${lt_cv_aix_libpath_+y}
11928 then :
11929 printf %s "(cached) " >&6
11930 else case e in #(
11931 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11932 /* end confdefs.h. */
11933
11934 int
11935 main (void)
11936 {
11937
11938 ;
11939 return 0;
11940 }
11941 _ACEOF
11942 if ac_fn_c_try_link "$LINENO"
11943 then :
11944
11945 lt_aix_libpath_sed='
11946 /Import File Strings/,/^$/ {
11947 /^0/ {
11948 s/^0 *\([^ ]*\) *$/\1/
11949 p
11950 }
11951 }'
11952 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11953 # Check for a 64-bit object if we didn't find anything.
11954 if test -z "$lt_cv_aix_libpath_"; then
11955 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11956 fi
11957 fi
11958 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11959 conftest$ac_exeext conftest.$ac_ext
11960 if test -z "$lt_cv_aix_libpath_"; then
11961 lt_cv_aix_libpath_=/usr/lib:/lib
11962 fi
11963 ;;
11964 esac
11965 fi
11966
11967 aix_libpath=$lt_cv_aix_libpath_
11968 fi
11969
11970 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11971 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
11972 else
11973 if test ia64 = "$host_cpu"; then
11974 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11975 allow_undefined_flag="-z nodefs"
11976 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"
11977 else
11978 # Determine the default libpath from the value encoded in an
11979 # empty executable.
11980 if test set = "${lt_cv_aix_libpath+set}"; then
11981 aix_libpath=$lt_cv_aix_libpath
11982 else
11983 if test ${lt_cv_aix_libpath_+y}
11984 then :
11985 printf %s "(cached) " >&6
11986 else case e in #(
11987 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11988 /* end confdefs.h. */
11989
11990 int
11991 main (void)
11992 {
11993
11994 ;
11995 return 0;
11996 }
11997 _ACEOF
11998 if ac_fn_c_try_link "$LINENO"
11999 then :
12000
12001 lt_aix_libpath_sed='
12002 /Import File Strings/,/^$/ {
12003 /^0/ {
12004 s/^0 *\([^ ]*\) *$/\1/
12005 p
12006 }
12007 }'
12008 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12009 # Check for a 64-bit object if we didn't find anything.
12010 if test -z "$lt_cv_aix_libpath_"; then
12011 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12012 fi
12013 fi
12014 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12015 conftest$ac_exeext conftest.$ac_ext
12016 if test -z "$lt_cv_aix_libpath_"; then
12017 lt_cv_aix_libpath_=/usr/lib:/lib
12018 fi
12019 ;;
12020 esac
12021 fi
12022
12023 aix_libpath=$lt_cv_aix_libpath_
12024 fi
12025
12026 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12027 # Warning - without using the other run time loading flags,
12028 # -berok will link without error, but may produce a broken library.
12029 no_undefined_flag=' $wl-bernotok'
12030 allow_undefined_flag=' $wl-berok'
12031 if test yes = "$with_gnu_ld"; then
12032 # We only use this code for GNU lds that support --whole-archive.
12033 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
12034 else
12035 # Exported symbols can be pulled into shared objects from archives
12036 whole_archive_flag_spec='$convenience'
12037 fi
12038 archive_cmds_need_lc=yes
12039 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
12040 # -brtl affects multiple linker settings, -berok does not and is overridden later
12041 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
12042 if test svr4 != "$with_aix_soname"; then
12043 # This is similar to how AIX traditionally builds its shared libraries.
12044 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'
12045 fi
12046 if test aix != "$with_aix_soname"; then
12047 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'
12048 else
12049 # used by -dlpreopen to get the symbols
12050 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
12051 fi
12052 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
12053 fi
12054 fi
12055 ;;
12056
12057 amigaos*)
12058 case $host_cpu in
12059 powerpc)
12060 # see comment about AmigaOS4 .so support
12061 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12062 archive_expsym_cmds=''
12063 ;;
12064 m68k)
12065 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)'
12066 hardcode_libdir_flag_spec='-L$libdir'
12067 hardcode_minus_L=yes
12068 ;;
12069 esac
12070 ;;
12071
12072 bsdi[45]*)
12073 export_dynamic_flag_spec=-rdynamic
12074 ;;
12075
12076 cygwin* | mingw* | windows* | pw32* | cegcc*)
12077 # When not using gcc, we currently assume that we are using
12078 # Microsoft Visual C++ or Intel C++ Compiler.
12079 # hardcode_libdir_flag_spec is actually meaningless, as there is
12080 # no search path for DLLs.
12081 case $cc_basename in
12082 cl* | icl*)
12083 # Native MSVC or ICC
12084 hardcode_libdir_flag_spec=' '
12085 allow_undefined_flag=unsupported
12086 always_export_symbols=yes
12087 file_list_spec='@'
12088 # Tell ltmain to make .lib files, not .a files.
12089 libext=lib
12090 # Tell ltmain to make .dll files, not .so files.
12091 shrext_cmds=.dll
12092 # FIXME: Setting linknames here is a bad hack.
12093 archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
12094 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12095 cp "$export_symbols" "$output_objdir/$soname.def";
12096 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
12097 else
12098 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
12099 fi~
12100 $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12101 linknames='
12102 # The linker will not automatically build a static lib if we build a DLL.
12103 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12104 enable_shared_with_static_runtimes=yes
12105 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12106 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12107 # Don't use ranlib
12108 old_postinstall_cmds='chmod 644 $oldlib'
12109 postlink_cmds='lt_outputfile="@OUTPUT@"~
12110 lt_tool_outputfile="@TOOL_OUTPUT@"~
12111 case $lt_outputfile in
12112 *.exe|*.EXE) ;;
12113 *)
12114 lt_outputfile=$lt_outputfile.exe
12115 lt_tool_outputfile=$lt_tool_outputfile.exe
12116 ;;
12117 esac~
12118 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
12119 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12120 $RM "$lt_outputfile.manifest";
12121 fi'
12122 ;;
12123 *)
12124 # Assume MSVC and ICC wrapper
12125 hardcode_libdir_flag_spec=' '
12126 allow_undefined_flag=unsupported
12127 # Tell ltmain to make .lib files, not .a files.
12128 libext=lib
12129 # Tell ltmain to make .dll files, not .so files.
12130 shrext_cmds=.dll
12131 # FIXME: Setting linknames here is a bad hack.
12132 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12133 # The linker will automatically build a .lib file if we build a DLL.
12134 old_archive_from_new_cmds='true'
12135 # FIXME: Should let the user specify the lib program.
12136 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12137 enable_shared_with_static_runtimes=yes
12138 ;;
12139 esac
12140 ;;
12141
12142 darwin* | rhapsody*)
12143
12144
12145 archive_cmds_need_lc=no
12146 hardcode_direct=no
12147 hardcode_automatic=yes
12148 hardcode_shlibpath_var=unsupported
12149 if test yes = "$lt_cv_ld_force_load"; then
12150 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\"`'
12151
12152 else
12153 whole_archive_flag_spec=''
12154 fi
12155 link_all_deplibs=yes
12156 allow_undefined_flag=$_lt_dar_allow_undefined
12157 case $cc_basename in
12158 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
12159 *) _lt_dar_can_shared=$GCC ;;
12160 esac
12161 if test yes = "$_lt_dar_can_shared"; then
12162 output_verbose_link_cmd=func_echo_all
12163 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
12164 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
12165 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"
12166 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"
12167
12168 else
12169 ld_shlibs=no
12170 fi
12171
12172 ;;
12173
12174 dgux*)
12175 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12176 hardcode_libdir_flag_spec='-L$libdir'
12177 hardcode_shlibpath_var=no
12178 ;;
12179
12180 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12181 # support. Future versions do this automatically, but an explicit c++rt0.o
12182 # does not break anything, and helps significantly (at the cost of a little
12183 # extra space).
12184 freebsd2.2*)
12185 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12186 hardcode_libdir_flag_spec='-R$libdir'
12187 hardcode_direct=yes
12188 hardcode_shlibpath_var=no
12189 ;;
12190
12191 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12192 freebsd2.*)
12193 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12194 hardcode_direct=yes
12195 hardcode_minus_L=yes
12196 hardcode_shlibpath_var=no
12197 ;;
12198
12199 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12200 freebsd* | dragonfly* | midnightbsd*)
12201 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12202 hardcode_libdir_flag_spec='-R$libdir'
12203 hardcode_direct=yes
12204 hardcode_shlibpath_var=no
12205 ;;
12206
12207 hpux9*)
12208 if test yes = "$GCC"; then
12209 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'
12210 else
12211 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'
12212 fi
12213 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12214 hardcode_libdir_separator=:
12215 hardcode_direct=yes
12216
12217 # hardcode_minus_L: Not really in the search PATH,
12218 # but as the default location of the library.
12219 hardcode_minus_L=yes
12220 export_dynamic_flag_spec='$wl-E'
12221 ;;
12222
12223 hpux10*)
12224 if test yes,no = "$GCC,$with_gnu_ld"; then
12225 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12226 else
12227 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12228 fi
12229 if test no = "$with_gnu_ld"; then
12230 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12231 hardcode_libdir_separator=:
12232 hardcode_direct=yes
12233 hardcode_direct_absolute=yes
12234 export_dynamic_flag_spec='$wl-E'
12235 # hardcode_minus_L: Not really in the search PATH,
12236 # but as the default location of the library.
12237 hardcode_minus_L=yes
12238 fi
12239 ;;
12240
12241 hpux11*)
12242 if test yes,no = "$GCC,$with_gnu_ld"; then
12243 case $host_cpu in
12244 hppa*64*)
12245 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12246 ;;
12247 ia64*)
12248 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12249 ;;
12250 *)
12251 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12252 ;;
12253 esac
12254 else
12255 case $host_cpu in
12256 hppa*64*)
12257 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12258 ;;
12259 ia64*)
12260 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12261 ;;
12262 *)
12263
12264 # Older versions of the 11.00 compiler do not understand -b yet
12265 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12267 printf %s "checking if $CC understands -b... " >&6; }
12268 if test ${lt_cv_prog_compiler__b+y}
12269 then :
12270 printf %s "(cached) " >&6
12271 else case e in #(
12272 e) lt_cv_prog_compiler__b=no
12273 save_LDFLAGS=$LDFLAGS
12274 LDFLAGS="$LDFLAGS -b"
12275 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12276 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12277 # The linker can only warn and ignore the option if not recognized
12278 # So say no if there are warnings
12279 if test -s conftest.err; then
12280 # Append any errors to the config.log.
12281 cat conftest.err 1>&5
12282 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12283 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12284 if diff conftest.exp conftest.er2 >/dev/null; then
12285 lt_cv_prog_compiler__b=yes
12286 fi
12287 else
12288 lt_cv_prog_compiler__b=yes
12289 fi
12290 fi
12291 $RM -r conftest*
12292 LDFLAGS=$save_LDFLAGS
12293 ;;
12294 esac
12295 fi
12296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12297 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
12298
12299 if test yes = "$lt_cv_prog_compiler__b"; then
12300 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12301 else
12302 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12303 fi
12304
12305 ;;
12306 esac
12307 fi
12308 if test no = "$with_gnu_ld"; then
12309 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12310 hardcode_libdir_separator=:
12311
12312 case $host_cpu in
12313 hppa*64*|ia64*)
12314 hardcode_direct=no
12315 hardcode_shlibpath_var=no
12316 ;;
12317 *)
12318 hardcode_direct=yes
12319 hardcode_direct_absolute=yes
12320 export_dynamic_flag_spec='$wl-E'
12321
12322 # hardcode_minus_L: Not really in the search PATH,
12323 # but as the default location of the library.
12324 hardcode_minus_L=yes
12325 ;;
12326 esac
12327 fi
12328 ;;
12329
12330 irix5* | irix6* | nonstopux*)
12331 if test yes = "$GCC"; then
12332 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'
12333 # Try to use the -exported_symbol ld option, if it does not
12334 # work, assume that -exports_file does not work either and
12335 # implicitly export all symbols.
12336 # This should be the same for all languages, so no per-tag cache variable.
12337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12338 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12339 if test ${lt_cv_irix_exported_symbol+y}
12340 then :
12341 printf %s "(cached) " >&6
12342 else case e in #(
12343 e) save_LDFLAGS=$LDFLAGS
12344 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
12345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12346 /* end confdefs.h. */
12347 int foo (void) { return 0; }
12348 _ACEOF
12349 if ac_fn_c_try_link "$LINENO"
12350 then :
12351 lt_cv_irix_exported_symbol=yes
12352 else case e in #(
12353 e) lt_cv_irix_exported_symbol=no ;;
12354 esac
12355 fi
12356 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12357 conftest$ac_exeext conftest.$ac_ext
12358 LDFLAGS=$save_LDFLAGS ;;
12359 esac
12360 fi
12361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12362 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
12363 if test yes = "$lt_cv_irix_exported_symbol"; then
12364 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'
12365 fi
12366 else
12367 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'
12368 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'
12369 fi
12370 archive_cmds_need_lc='no'
12371 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12372 hardcode_libdir_separator=:
12373 inherit_rpath=yes
12374 link_all_deplibs=yes
12375 ;;
12376
12377 linux*)
12378 case $cc_basename in
12379 tcc*)
12380 # Fabrice Bellard et al's Tiny C Compiler
12381 ld_shlibs=yes
12382 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12383 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12384 ;;
12385 esac
12386 ;;
12387
12388 *-mlibc)
12389 ;;
12390
12391 netbsd* | netbsdelf*-gnu)
12392 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12393 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12394 else
12395 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12396 fi
12397 hardcode_libdir_flag_spec='-R$libdir'
12398 hardcode_direct=yes
12399 hardcode_shlibpath_var=no
12400 ;;
12401
12402 newsos6)
12403 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12404 hardcode_direct=yes
12405 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12406 hardcode_libdir_separator=:
12407 hardcode_shlibpath_var=no
12408 ;;
12409
12410 *nto* | *qnx*)
12411 ;;
12412
12413 openbsd*)
12414 if test -f /usr/libexec/ld.so; then
12415 hardcode_direct=yes
12416 hardcode_shlibpath_var=no
12417 hardcode_direct_absolute=yes
12418 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12419 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12420 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12421 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12422 export_dynamic_flag_spec='$wl-E'
12423 else
12424 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12425 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12426 fi
12427 else
12428 ld_shlibs=no
12429 fi
12430 ;;
12431
12432 os2*)
12433 hardcode_libdir_flag_spec='-L$libdir'
12434 hardcode_minus_L=yes
12435 allow_undefined_flag=unsupported
12436 shrext_cmds=.dll
12437 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12438 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12439 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12440 $ECHO EXPORTS >> $output_objdir/$libname.def~
12441 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12442 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12443 emximp -o $lib $output_objdir/$libname.def'
12444 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12445 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12446 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12447 $ECHO EXPORTS >> $output_objdir/$libname.def~
12448 prefix_cmds="$SED"~
12449 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12450 prefix_cmds="$prefix_cmds -e 1d";
12451 fi~
12452 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12453 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12454 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12455 emximp -o $lib $output_objdir/$libname.def'
12456 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12457 enable_shared_with_static_runtimes=yes
12458 file_list_spec='@'
12459 ;;
12460
12461 osf3*)
12462 if test yes = "$GCC"; then
12463 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12464 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'
12465 else
12466 allow_undefined_flag=' -expect_unresolved \*'
12467 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'
12468 fi
12469 archive_cmds_need_lc='no'
12470 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12471 hardcode_libdir_separator=:
12472 ;;
12473
12474 osf4* | osf5*) # as osf3* with the addition of -msym flag
12475 if test yes = "$GCC"; then
12476 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12477 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'
12478 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12479 else
12480 allow_undefined_flag=' -expect_unresolved \*'
12481 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'
12482 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~
12483 $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'
12484
12485 # Both c and cxx compiler support -rpath directly
12486 hardcode_libdir_flag_spec='-rpath $libdir'
12487 fi
12488 archive_cmds_need_lc='no'
12489 hardcode_libdir_separator=:
12490 ;;
12491
12492 serenity*)
12493 ;;
12494
12495 solaris*)
12496 no_undefined_flag=' -z defs'
12497 if test yes = "$GCC"; then
12498 wlarc='$wl'
12499 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12500 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12501 $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'
12502 else
12503 case `$CC -V 2>&1` in
12504 *"Compilers 5.0"*)
12505 wlarc=''
12506 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12507 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12508 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12509 ;;
12510 *)
12511 wlarc='$wl'
12512 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12513 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12514 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12515 ;;
12516 esac
12517 fi
12518 hardcode_libdir_flag_spec='-R$libdir'
12519 hardcode_shlibpath_var=no
12520 case $host_os in
12521 solaris2.[0-5] | solaris2.[0-5].*) ;;
12522 *)
12523 # The compiler driver will combine and reorder linker options,
12524 # but understands '-z linker_flag'. GCC discards it without '$wl',
12525 # but is careful enough not to reorder.
12526 # Supported since Solaris 2.6 (maybe 2.5.1?)
12527 if test yes = "$GCC"; then
12528 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12529 else
12530 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12531 fi
12532 ;;
12533 esac
12534 link_all_deplibs=yes
12535 ;;
12536
12537 sunos4*)
12538 if test sequent = "$host_vendor"; then
12539 # Use $CC to link under sequent, because it throws in some extra .o
12540 # files that make .init and .fini sections work.
12541 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12542 else
12543 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12544 fi
12545 hardcode_libdir_flag_spec='-L$libdir'
12546 hardcode_direct=yes
12547 hardcode_minus_L=yes
12548 hardcode_shlibpath_var=no
12549 ;;
12550
12551 sysv4)
12552 case $host_vendor in
12553 sni)
12554 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12555 hardcode_direct=yes # is this really true???
12556 ;;
12557 siemens)
12558 ## LD is ld it makes a PLAMLIB
12559 ## CC just makes a GrossModule.
12560 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12561 reload_cmds='$CC -r -o $output$reload_objs'
12562 hardcode_direct=no
12563 ;;
12564 motorola)
12565 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12566 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12567 ;;
12568 esac
12569 runpath_var='LD_RUN_PATH'
12570 hardcode_shlibpath_var=no
12571 ;;
12572
12573 sysv4.3*)
12574 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12575 hardcode_shlibpath_var=no
12576 export_dynamic_flag_spec='-Bexport'
12577 ;;
12578
12579 sysv4*MP*)
12580 if test -d /usr/nec; then
12581 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12582 hardcode_shlibpath_var=no
12583 runpath_var=LD_RUN_PATH
12584 hardcode_runpath_var=yes
12585 ld_shlibs=yes
12586 fi
12587 ;;
12588
12589 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12590 no_undefined_flag='$wl-z,text'
12591 archive_cmds_need_lc=no
12592 hardcode_shlibpath_var=no
12593 runpath_var='LD_RUN_PATH'
12594
12595 if test yes = "$GCC"; then
12596 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12597 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12598 else
12599 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12600 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12601 fi
12602 ;;
12603
12604 sysv5* | sco3.2v5* | sco5v6*)
12605 # Note: We CANNOT use -z defs as we might desire, because we do not
12606 # link with -lc, and that would cause any symbols used from libc to
12607 # always be unresolved, which means just about no library would
12608 # ever link correctly. If we're not using GNU ld we use -z text
12609 # though, which does catch some bad symbols but isn't as heavy-handed
12610 # as -z defs.
12611 no_undefined_flag='$wl-z,text'
12612 allow_undefined_flag='$wl-z,nodefs'
12613 archive_cmds_need_lc=no
12614 hardcode_shlibpath_var=no
12615 hardcode_libdir_flag_spec='$wl-R,$libdir'
12616 hardcode_libdir_separator=':'
12617 link_all_deplibs=yes
12618 export_dynamic_flag_spec='$wl-Bexport'
12619 runpath_var='LD_RUN_PATH'
12620
12621 if test yes = "$GCC"; then
12622 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12623 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12624 else
12625 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12626 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12627 fi
12628 ;;
12629
12630 uts4*)
12631 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12632 hardcode_libdir_flag_spec='-L$libdir'
12633 hardcode_shlibpath_var=no
12634 ;;
12635
12636 *)
12637 ld_shlibs=no
12638 ;;
12639 esac
12640
12641 if test sni = "$host_vendor"; then
12642 case $host in
12643 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12644 export_dynamic_flag_spec='$wl-Blargedynsym'
12645 ;;
12646 esac
12647 fi
12648 fi
12649
12650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12651 printf "%s\n" "$ld_shlibs" >&6; }
12652 test no = "$ld_shlibs" && can_build_shared=no
12653
12654 with_gnu_ld=$with_gnu_ld
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670 #
12671 # Do we need to explicitly link libc?
12672 #
12673 case "x$archive_cmds_need_lc" in
12674 x|xyes)
12675 # Assume -lc should be added
12676 archive_cmds_need_lc=yes
12677
12678 if test yes,yes = "$GCC,$enable_shared"; then
12679 case $archive_cmds in
12680 *'~'*)
12681 # FIXME: we may have to deal with multi-command sequences.
12682 ;;
12683 '$CC '*)
12684 # Test whether the compiler implicitly links with -lc since on some
12685 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12686 # to ld, don't add -lc before -lgcc.
12687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12688 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
12689 if test ${lt_cv_archive_cmds_need_lc+y}
12690 then :
12691 printf %s "(cached) " >&6
12692 else case e in #(
12693 e) $RM conftest*
12694 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12695
12696 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12697 (eval $ac_compile) 2>&5
12698 ac_status=$?
12699 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12700 test $ac_status = 0; } 2>conftest.err; then
12701 soname=conftest
12702 lib=conftest
12703 libobjs=conftest.$ac_objext
12704 deplibs=
12705 wl=$lt_prog_compiler_wl
12706 pic_flag=$lt_prog_compiler_pic
12707 compiler_flags=-v
12708 linker_flags=-v
12709 verstring=
12710 output_objdir=.
12711 libname=conftest
12712 lt_save_allow_undefined_flag=$allow_undefined_flag
12713 allow_undefined_flag=
12714 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12715 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12716 ac_status=$?
12717 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12718 test $ac_status = 0; }
12719 then
12720 lt_cv_archive_cmds_need_lc=no
12721 else
12722 lt_cv_archive_cmds_need_lc=yes
12723 fi
12724 allow_undefined_flag=$lt_save_allow_undefined_flag
12725 else
12726 cat conftest.err 1>&5
12727 fi
12728 $RM conftest*
12729 ;;
12730 esac
12731 fi
12732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12733 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
12734 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12735 ;;
12736 esac
12737 fi
12738 ;;
12739 esac
12740
12741
12742
12743
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802
12803
12804
12805
12806
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819
12820
12821
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860
12861
12862
12863
12864
12865
12866
12867
12868
12869
12870
12871
12872
12873
12874
12875
12876
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890
12891
12892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12893 printf %s "checking dynamic linker characteristics... " >&6; }
12894
12895 if test yes = "$GCC"; then
12896 case $host_os in
12897 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12898 *) lt_awk_arg='/^libraries:/' ;;
12899 esac
12900 case $host_os in
12901 mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12902 *) lt_sed_strip_eq='s|=/|/|g' ;;
12903 esac
12904 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12905 case $lt_search_path_spec in
12906 *\;*)
12907 # if the path contains ";" then we assume it to be the separator
12908 # otherwise default to the standard path separator (i.e. ":") - it is
12909 # assumed that no part of a normal pathname contains ";" but that should
12910 # okay in the real world where ";" in dirpaths is itself problematic.
12911 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12912 ;;
12913 *)
12914 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12915 ;;
12916 esac
12917 # Ok, now we have the path, separated by spaces, we can step through it
12918 # and add multilib dir if necessary...
12919 lt_tmp_lt_search_path_spec=
12920 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12921 # ...but if some path component already ends with the multilib dir we assume
12922 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12923 case "$lt_multi_os_dir; $lt_search_path_spec " in
12924 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12925 lt_multi_os_dir=
12926 ;;
12927 esac
12928 for lt_sys_path in $lt_search_path_spec; do
12929 if test -d "$lt_sys_path$lt_multi_os_dir"; then
12930 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12931 elif test -n "$lt_multi_os_dir"; then
12932 test -d "$lt_sys_path" && \
12933 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12934 fi
12935 done
12936 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12937 BEGIN {RS = " "; FS = "/|\n";} {
12938 lt_foo = "";
12939 lt_count = 0;
12940 for (lt_i = NF; lt_i > 0; lt_i--) {
12941 if ($lt_i != "" && $lt_i != ".") {
12942 if ($lt_i == "..") {
12943 lt_count++;
12944 } else {
12945 if (lt_count == 0) {
12946 lt_foo = "/" $lt_i lt_foo;
12947 } else {
12948 lt_count--;
12949 }
12950 }
12951 }
12952 }
12953 if (lt_foo != "") { lt_freq[lt_foo]++; }
12954 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12955 }'`
12956 # AWK program above erroneously prepends '/' to C:/dos/paths
12957 # for these hosts.
12958 case $host_os in
12959 mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12960 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12961 esac
12962 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12963 else
12964 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12965 fi
12966 library_names_spec=
12967 libname_spec='lib$name'
12968 soname_spec=
12969 shrext_cmds=.so
12970 postinstall_cmds=
12971 postuninstall_cmds=
12972 finish_cmds=
12973 finish_eval=
12974 shlibpath_var=
12975 shlibpath_overrides_runpath=unknown
12976 version_type=none
12977 dynamic_linker="$host_os ld.so"
12978 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12979 need_lib_prefix=unknown
12980 hardcode_into_libs=no
12981
12982 # when you set need_version to no, make sure it does not cause -set_version
12983 # flags to be left without arguments
12984 need_version=unknown
12985
12986
12987
12988 case $host_os in
12989 aix3*)
12990 version_type=linux # correct to gnu/linux during the next big refactor
12991 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12992 shlibpath_var=LIBPATH
12993
12994 # AIX 3 has no versioning support, so we append a major version to the name.
12995 soname_spec='$libname$release$shared_ext$major'
12996 ;;
12997
12998 aix[4-9]*)
12999 version_type=linux # correct to gnu/linux during the next big refactor
13000 need_lib_prefix=no
13001 need_version=no
13002 hardcode_into_libs=yes
13003 if test ia64 = "$host_cpu"; then
13004 # AIX 5 supports IA64
13005 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
13006 shlibpath_var=LD_LIBRARY_PATH
13007 else
13008 # With GCC up to 2.95.x, collect2 would create an import file
13009 # for dependence libraries. The import file would start with
13010 # the line '#! .'. This would cause the generated library to
13011 # depend on '.', always an invalid library. This was fixed in
13012 # development snapshots of GCC prior to 3.0.
13013 case $host_os in
13014 aix4 | aix4.[01] | aix4.[01].*)
13015 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13016 echo ' yes '
13017 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
13018 :
13019 else
13020 can_build_shared=no
13021 fi
13022 ;;
13023 esac
13024 # Using Import Files as archive members, it is possible to support
13025 # filename-based versioning of shared library archives on AIX. While
13026 # this would work for both with and without runtime linking, it will
13027 # prevent static linking of such archives. So we do filename-based
13028 # shared library versioning with .so extension only, which is used
13029 # when both runtime linking and shared linking is enabled.
13030 # Unfortunately, runtime linking may impact performance, so we do
13031 # not want this to be the default eventually. Also, we use the
13032 # versioned .so libs for executables only if there is the -brtl
13033 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
13034 # To allow for filename-based versioning support, we need to create
13035 # libNAME.so.V as an archive file, containing:
13036 # *) an Import File, referring to the versioned filename of the
13037 # archive as well as the shared archive member, telling the
13038 # bitwidth (32 or 64) of that shared object, and providing the
13039 # list of exported symbols of that shared object, eventually
13040 # decorated with the 'weak' keyword
13041 # *) the shared object with the F_LOADONLY flag set, to really avoid
13042 # it being seen by the linker.
13043 # At run time we better use the real file rather than another symlink,
13044 # but for link time we create the symlink libNAME.so -> libNAME.so.V
13045
13046 case $with_aix_soname,$aix_use_runtimelinking in
13047 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
13048 # soname into executable. Probably we can add versioning support to
13049 # collect2, so additional links can be useful in future.
13050 aix,yes) # traditional libtool
13051 dynamic_linker='AIX unversionable lib.so'
13052 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13053 # instead of lib<name>.a to let people know that these are not
13054 # typical AIX shared libraries.
13055 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13056 ;;
13057 aix,no) # traditional AIX only
13058 dynamic_linker='AIX lib.a(lib.so.V)'
13059 # We preserve .a as extension for shared libraries through AIX4.2
13060 # and later when we are not doing run time linking.
13061 library_names_spec='$libname$release.a $libname.a'
13062 soname_spec='$libname$release$shared_ext$major'
13063 ;;
13064 svr4,*) # full svr4 only
13065 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
13066 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13067 # We do not specify a path in Import Files, so LIBPATH fires.
13068 shlibpath_overrides_runpath=yes
13069 ;;
13070 *,yes) # both, prefer svr4
13071 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
13072 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13073 # unpreferred sharedlib libNAME.a needs extra handling
13074 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"'
13075 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"'
13076 # We do not specify a path in Import Files, so LIBPATH fires.
13077 shlibpath_overrides_runpath=yes
13078 ;;
13079 *,no) # both, prefer aix
13080 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
13081 library_names_spec='$libname$release.a $libname.a'
13082 soname_spec='$libname$release$shared_ext$major'
13083 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
13084 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)'
13085 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"'
13086 ;;
13087 esac
13088 shlibpath_var=LIBPATH
13089 fi
13090 ;;
13091
13092 amigaos*)
13093 case $host_cpu in
13094 powerpc)
13095 # Since July 2007 AmigaOS4 officially supports .so libraries.
13096 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13097 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13098 ;;
13099 m68k)
13100 library_names_spec='$libname.ixlibrary $libname.a'
13101 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13102 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'
13103 ;;
13104 esac
13105 ;;
13106
13107 beos*)
13108 library_names_spec='$libname$shared_ext'
13109 dynamic_linker="$host_os ld.so"
13110 shlibpath_var=LIBRARY_PATH
13111 ;;
13112
13113 bsdi[45]*)
13114 version_type=linux # correct to gnu/linux during the next big refactor
13115 need_version=no
13116 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13117 soname_spec='$libname$release$shared_ext$major'
13118 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13119 shlibpath_var=LD_LIBRARY_PATH
13120 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13121 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13122 # the default ld.so.conf also contains /usr/contrib/lib and
13123 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13124 # libtool to hard-code these into programs
13125 ;;
13126
13127 cygwin* | mingw* | windows* | pw32* | cegcc*)
13128 version_type=windows
13129 shrext_cmds=.dll
13130 need_version=no
13131 need_lib_prefix=no
13132
13133 case $GCC,$cc_basename in
13134 yes,*)
13135 # gcc
13136 library_names_spec='$libname.dll.a'
13137 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13138 # If user builds GCC with multilib enabled,
13139 # it should just install on $(libdir)
13140 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
13141 if test xyes = x"$multilib"; then
13142 postinstall_cmds='base_file=`basename \$file`~
13143 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13144 dldir=$destdir/`dirname \$dlpath`~
13145 $install_prog $dir/$dlname $destdir/$dlname~
13146 chmod a+x $destdir/$dlname~
13147 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13148 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
13149 fi'
13150 else
13151 postinstall_cmds='base_file=`basename \$file`~
13152 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13153 dldir=$destdir/`dirname \$dlpath`~
13154 test -d \$dldir || mkdir -p \$dldir~
13155 $install_prog $dir/$dlname \$dldir/$dlname~
13156 chmod a+x \$dldir/$dlname~
13157 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13158 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13159 fi'
13160 fi
13161 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13162 dlpath=$dir/\$dldll~
13163 $RM \$dlpath'
13164 shlibpath_overrides_runpath=yes
13165
13166 case $host_os in
13167 cygwin*)
13168 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13169 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13170
13171 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13172 ;;
13173 mingw* | windows* | cegcc*)
13174 # MinGW DLLs use traditional 'lib' prefix
13175 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13176 ;;
13177 pw32*)
13178 # pw32 DLLs use 'pw' prefix rather than 'lib'
13179 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13180 ;;
13181 esac
13182 dynamic_linker='Win32 ld.exe'
13183 ;;
13184
13185 *,cl* | *,icl*)
13186 # Native MSVC or ICC
13187 libname_spec='$name'
13188 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13189 library_names_spec='$libname.dll.lib'
13190
13191 case $build_os in
13192 mingw* | windows*)
13193 sys_lib_search_path_spec=
13194 lt_save_ifs=$IFS
13195 IFS=';'
13196 for lt_path in $LIB
13197 do
13198 IFS=$lt_save_ifs
13199 # Let DOS variable expansion print the short 8.3 style file name.
13200 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13201 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13202 done
13203 IFS=$lt_save_ifs
13204 # Convert to MSYS style.
13205 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13206 ;;
13207 cygwin*)
13208 # Convert to unix form, then to dos form, then back to unix form
13209 # but this time dos style (no spaces!) so that the unix form looks
13210 # like /cygdrive/c/PROGRA~1:/cygdr...
13211 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13212 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13213 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13214 ;;
13215 *)
13216 sys_lib_search_path_spec=$LIB
13217 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13218 # It is most probably a Windows format PATH.
13219 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13220 else
13221 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13222 fi
13223 # FIXME: find the short name or the path components, as spaces are
13224 # common. (e.g. "Program Files" -> "PROGRA~1")
13225 ;;
13226 esac
13227
13228 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13229 postinstall_cmds='base_file=`basename \$file`~
13230 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13231 dldir=$destdir/`dirname \$dlpath`~
13232 test -d \$dldir || mkdir -p \$dldir~
13233 $install_prog $dir/$dlname \$dldir/$dlname'
13234 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13235 dlpath=$dir/\$dldll~
13236 $RM \$dlpath'
13237 shlibpath_overrides_runpath=yes
13238 dynamic_linker='Win32 link.exe'
13239 ;;
13240
13241 *)
13242 # Assume MSVC and ICC wrapper
13243 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
13244 dynamic_linker='Win32 ld.exe'
13245 ;;
13246 esac
13247 # FIXME: first we should search . and the directory the executable is in
13248 shlibpath_var=PATH
13249 ;;
13250
13251 darwin* | rhapsody*)
13252 dynamic_linker="$host_os dyld"
13253 version_type=darwin
13254 need_lib_prefix=no
13255 need_version=no
13256 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
13257 soname_spec='$libname$release$major$shared_ext'
13258 shlibpath_overrides_runpath=yes
13259 shlibpath_var=DYLD_LIBRARY_PATH
13260 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13261
13262 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13263 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13264 ;;
13265
13266 dgux*)
13267 version_type=linux # correct to gnu/linux during the next big refactor
13268 need_lib_prefix=no
13269 need_version=no
13270 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13271 soname_spec='$libname$release$shared_ext$major'
13272 shlibpath_var=LD_LIBRARY_PATH
13273 ;;
13274
13275 freebsd* | dragonfly* | midnightbsd*)
13276 # DragonFly does not have aout. When/if they implement a new
13277 # versioning mechanism, adjust this.
13278 if test -x /usr/bin/objformat; then
13279 objformat=`/usr/bin/objformat`
13280 else
13281 case $host_os in
13282 freebsd[23].*) objformat=aout ;;
13283 *) objformat=elf ;;
13284 esac
13285 fi
13286 version_type=freebsd-$objformat
13287 case $version_type in
13288 freebsd-elf*)
13289 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13290 soname_spec='$libname$release$shared_ext$major'
13291 need_version=no
13292 need_lib_prefix=no
13293 ;;
13294 freebsd-*)
13295 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13296 need_version=yes
13297 ;;
13298 esac
13299 case $host_cpu in
13300 powerpc64)
13301 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
13302 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
13303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13304 /* end confdefs.h. */
13305 int test_pointer_size[sizeof (void *) - 5];
13306
13307 _ACEOF
13308 if ac_fn_c_try_compile "$LINENO"
13309 then :
13310 shlibpath_var=LD_LIBRARY_PATH
13311 else case e in #(
13312 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
13313 esac
13314 fi
13315 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13316 ;;
13317 *)
13318 shlibpath_var=LD_LIBRARY_PATH
13319 ;;
13320 esac
13321 case $host_os in
13322 freebsd2.*)
13323 shlibpath_overrides_runpath=yes
13324 ;;
13325 freebsd3.[01]* | freebsdelf3.[01]*)
13326 shlibpath_overrides_runpath=yes
13327 hardcode_into_libs=yes
13328 ;;
13329 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13330 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13331 shlibpath_overrides_runpath=no
13332 hardcode_into_libs=yes
13333 ;;
13334 *) # from 4.6 on, and DragonFly
13335 shlibpath_overrides_runpath=yes
13336 hardcode_into_libs=yes
13337 ;;
13338 esac
13339 ;;
13340
13341 haiku*)
13342 version_type=linux # correct to gnu/linux during the next big refactor
13343 need_lib_prefix=no
13344 need_version=no
13345 dynamic_linker="$host_os runtime_loader"
13346 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13347 soname_spec='$libname$release$shared_ext$major'
13348 shlibpath_var=LIBRARY_PATH
13349 shlibpath_overrides_runpath=no
13350 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
13351 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
13352 hardcode_into_libs=no
13353 ;;
13354
13355 hpux9* | hpux10* | hpux11*)
13356 # Give a soname corresponding to the major version so that dld.sl refuses to
13357 # link against other versions.
13358 version_type=sunos
13359 need_lib_prefix=no
13360 need_version=no
13361 case $host_cpu in
13362 ia64*)
13363 shrext_cmds='.so'
13364 hardcode_into_libs=yes
13365 dynamic_linker="$host_os dld.so"
13366 shlibpath_var=LD_LIBRARY_PATH
13367 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13368 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13369 soname_spec='$libname$release$shared_ext$major'
13370 if test 32 = "$HPUX_IA64_MODE"; then
13371 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13372 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
13373 else
13374 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13375 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
13376 fi
13377 ;;
13378 hppa*64*)
13379 shrext_cmds='.sl'
13380 hardcode_into_libs=yes
13381 dynamic_linker="$host_os dld.sl"
13382 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13383 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13384 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13385 soname_spec='$libname$release$shared_ext$major'
13386 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13387 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13388 ;;
13389 *)
13390 shrext_cmds='.sl'
13391 dynamic_linker="$host_os dld.sl"
13392 shlibpath_var=SHLIB_PATH
13393 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13394 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13395 soname_spec='$libname$release$shared_ext$major'
13396 ;;
13397 esac
13398 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13399 postinstall_cmds='chmod 555 $lib'
13400 # or fails outright, so override atomically:
13401 install_override_mode=555
13402 ;;
13403
13404 interix[3-9]*)
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 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13411 shlibpath_var=LD_LIBRARY_PATH
13412 shlibpath_overrides_runpath=no
13413 hardcode_into_libs=yes
13414 ;;
13415
13416 irix5* | irix6* | nonstopux*)
13417 case $host_os in
13418 nonstopux*) version_type=nonstopux ;;
13419 *)
13420 if test yes = "$lt_cv_prog_gnu_ld"; then
13421 version_type=linux # correct to gnu/linux during the next big refactor
13422 else
13423 version_type=irix
13424 fi ;;
13425 esac
13426 need_lib_prefix=no
13427 need_version=no
13428 soname_spec='$libname$release$shared_ext$major'
13429 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
13430 case $host_os in
13431 irix5* | nonstopux*)
13432 libsuff= shlibsuff=
13433 ;;
13434 *)
13435 case $LD in # libtool.m4 will add one of these switches to LD
13436 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13437 libsuff= shlibsuff= libmagic=32-bit;;
13438 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13439 libsuff=32 shlibsuff=N32 libmagic=N32;;
13440 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13441 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13442 *) libsuff= shlibsuff= libmagic=never-match;;
13443 esac
13444 ;;
13445 esac
13446 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13447 shlibpath_overrides_runpath=no
13448 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13449 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
13450 hardcode_into_libs=yes
13451 ;;
13452
13453 # No shared lib support for Linux oldld, aout, or coff.
13454 linux*oldld* | linux*aout* | linux*coff*)
13455 dynamic_linker=no
13456 ;;
13457
13458 linux*android*)
13459 version_type=none # Android doesn't support versioned libraries.
13460 need_lib_prefix=no
13461 need_version=no
13462 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
13463 soname_spec='$libname$release$shared_ext'
13464 finish_cmds=
13465 shlibpath_var=LD_LIBRARY_PATH
13466 shlibpath_overrides_runpath=yes
13467
13468 # This implies no fast_install, which is unacceptable.
13469 # Some rework will be needed to allow for fast_install
13470 # before this can be enabled.
13471 hardcode_into_libs=yes
13472
13473 dynamic_linker='Android linker'
13474 # -rpath works at least for libraries that are not overridden by
13475 # libraries installed in system locations.
13476 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13477 ;;
13478
13479 # This must be glibc/ELF.
13480 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13481 version_type=linux # correct to gnu/linux during the next big refactor
13482 need_lib_prefix=no
13483 need_version=no
13484 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13485 soname_spec='$libname$release$shared_ext$major'
13486 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13487 shlibpath_var=LD_LIBRARY_PATH
13488 shlibpath_overrides_runpath=no
13489
13490 # Some binutils ld are patched to set DT_RUNPATH
13491 if test ${lt_cv_shlibpath_overrides_runpath+y}
13492 then :
13493 printf %s "(cached) " >&6
13494 else case e in #(
13495 e) lt_cv_shlibpath_overrides_runpath=no
13496 save_LDFLAGS=$LDFLAGS
13497 save_libdir=$libdir
13498 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13499 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13501 /* end confdefs.h. */
13502
13503 int
13504 main (void)
13505 {
13506
13507 ;
13508 return 0;
13509 }
13510 _ACEOF
13511 if ac_fn_c_try_link "$LINENO"
13512 then :
13513 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
13514 then :
13515 lt_cv_shlibpath_overrides_runpath=yes
13516 fi
13517 fi
13518 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13519 conftest$ac_exeext conftest.$ac_ext
13520 LDFLAGS=$save_LDFLAGS
13521 libdir=$save_libdir
13522 ;;
13523 esac
13524 fi
13525
13526 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13527
13528 # This implies no fast_install, which is unacceptable.
13529 # Some rework will be needed to allow for fast_install
13530 # before this can be enabled.
13531 hardcode_into_libs=yes
13532
13533 # Ideally, we could use ldconfig to report *all* directories which are
13534 # searched for libraries, however this is still not possible. Aside from not
13535 # being certain /sbin/ldconfig is available, command
13536 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13537 # even though it is searched at run-time. Try to do the best guess by
13538 # appending ld.so.conf contents (and includes) to the search path.
13539 if test -f /etc/ld.so.conf; then
13540 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' ' '`
13541 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13542 fi
13543
13544 # We used to test for /lib/ld.so.1 and disable shared libraries on
13545 # powerpc, because MkLinux only supported shared libraries with the
13546 # GNU dynamic linker. Since this was broken with cross compilers,
13547 # most powerpc-linux boxes support dynamic linking these days and
13548 # people can always --disable-shared, the test was removed, and we
13549 # assume the GNU/Linux dynamic linker is in use.
13550 dynamic_linker='GNU/Linux ld.so'
13551 ;;
13552
13553 netbsdelf*-gnu)
13554 version_type=linux
13555 need_lib_prefix=no
13556 need_version=no
13557 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13558 soname_spec='$libname$release$shared_ext$major'
13559 shlibpath_var=LD_LIBRARY_PATH
13560 shlibpath_overrides_runpath=no
13561 hardcode_into_libs=yes
13562 dynamic_linker='NetBSD ld.elf_so'
13563 ;;
13564
13565 netbsd*)
13566 version_type=sunos
13567 need_lib_prefix=no
13568 need_version=no
13569 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13570 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13571 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13572 dynamic_linker='NetBSD (a.out) ld.so'
13573 else
13574 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13575 soname_spec='$libname$release$shared_ext$major'
13576 dynamic_linker='NetBSD ld.elf_so'
13577 fi
13578 shlibpath_var=LD_LIBRARY_PATH
13579 shlibpath_overrides_runpath=yes
13580 hardcode_into_libs=yes
13581 ;;
13582
13583 *-mlibc)
13584 version_type=linux # correct to gnu/linux during the next big refactor
13585 need_lib_prefix=no
13586 need_version=no
13587 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13588 soname_spec='$libname$release$shared_ext$major'
13589 dynamic_linker='mlibc ld.so'
13590 shlibpath_var=LD_LIBRARY_PATH
13591 shlibpath_overrides_runpath=no
13592 hardcode_into_libs=yes
13593 ;;
13594
13595 newsos6)
13596 version_type=linux # correct to gnu/linux during the next big refactor
13597 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13598 shlibpath_var=LD_LIBRARY_PATH
13599 shlibpath_overrides_runpath=yes
13600 ;;
13601
13602 *nto* | *qnx*)
13603 version_type=qnx
13604 need_lib_prefix=no
13605 need_version=no
13606 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13607 soname_spec='$libname$release$shared_ext$major'
13608 shlibpath_var=LD_LIBRARY_PATH
13609 shlibpath_overrides_runpath=no
13610 hardcode_into_libs=yes
13611 dynamic_linker='ldqnx.so'
13612 ;;
13613
13614 openbsd*)
13615 version_type=sunos
13616 sys_lib_dlsearch_path_spec=/usr/lib
13617 need_lib_prefix=no
13618 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13619 need_version=no
13620 else
13621 need_version=yes
13622 fi
13623 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13624 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13625 shlibpath_var=LD_LIBRARY_PATH
13626 shlibpath_overrides_runpath=yes
13627 ;;
13628
13629 os2*)
13630 libname_spec='$name'
13631 version_type=windows
13632 shrext_cmds=.dll
13633 need_version=no
13634 need_lib_prefix=no
13635 # OS/2 can only load a DLL with a base name of 8 characters or less.
13636 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13637 v=$($ECHO $release$versuffix | tr -d .-);
13638 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13639 $ECHO $n$v`$shared_ext'
13640 library_names_spec='${libname}_dll.$libext'
13641 dynamic_linker='OS/2 ld.exe'
13642 shlibpath_var=BEGINLIBPATH
13643 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13644 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13645 postinstall_cmds='base_file=`basename \$file`~
13646 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13647 dldir=$destdir/`dirname \$dlpath`~
13648 test -d \$dldir || mkdir -p \$dldir~
13649 $install_prog $dir/$dlname \$dldir/$dlname~
13650 chmod a+x \$dldir/$dlname~
13651 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13652 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13653 fi'
13654 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13655 dlpath=$dir/\$dldll~
13656 $RM \$dlpath'
13657 ;;
13658
13659 osf3* | osf4* | osf5*)
13660 version_type=osf
13661 need_lib_prefix=no
13662 need_version=no
13663 soname_spec='$libname$release$shared_ext$major'
13664 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13665 shlibpath_var=LD_LIBRARY_PATH
13666 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13667 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13668 ;;
13669
13670 rdos*)
13671 dynamic_linker=no
13672 ;;
13673
13674 serenity*)
13675 version_type=linux # correct to gnu/linux during the next big refactor
13676 need_lib_prefix=no
13677 need_version=no
13678 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13679 soname_spec='$libname$release$shared_ext$major'
13680 shlibpath_var=LD_LIBRARY_PATH
13681 shlibpath_overrides_runpath=no
13682 dynamic_linker='SerenityOS LibELF'
13683 ;;
13684
13685 solaris*)
13686 version_type=linux # correct to gnu/linux during the next big refactor
13687 need_lib_prefix=no
13688 need_version=no
13689 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13690 soname_spec='$libname$release$shared_ext$major'
13691 shlibpath_var=LD_LIBRARY_PATH
13692 shlibpath_overrides_runpath=yes
13693 hardcode_into_libs=yes
13694 # ldd complains unless libraries are executable
13695 postinstall_cmds='chmod +x $lib'
13696 ;;
13697
13698 sunos4*)
13699 version_type=sunos
13700 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13701 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13702 shlibpath_var=LD_LIBRARY_PATH
13703 shlibpath_overrides_runpath=yes
13704 if test yes = "$with_gnu_ld"; then
13705 need_lib_prefix=no
13706 fi
13707 need_version=yes
13708 ;;
13709
13710 sysv4 | sysv4.3*)
13711 version_type=linux # correct to gnu/linux during the next big refactor
13712 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13713 soname_spec='$libname$release$shared_ext$major'
13714 shlibpath_var=LD_LIBRARY_PATH
13715 case $host_vendor in
13716 sni)
13717 shlibpath_overrides_runpath=no
13718 need_lib_prefix=no
13719 runpath_var=LD_RUN_PATH
13720 ;;
13721 siemens)
13722 need_lib_prefix=no
13723 ;;
13724 motorola)
13725 need_lib_prefix=no
13726 need_version=no
13727 shlibpath_overrides_runpath=no
13728 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13729 ;;
13730 esac
13731 ;;
13732
13733 sysv4*MP*)
13734 if test -d /usr/nec; then
13735 version_type=linux # correct to gnu/linux during the next big refactor
13736 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13737 soname_spec='$libname$shared_ext.$major'
13738 shlibpath_var=LD_LIBRARY_PATH
13739 fi
13740 ;;
13741
13742 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13743 version_type=sco
13744 need_lib_prefix=no
13745 need_version=no
13746 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13747 soname_spec='$libname$release$shared_ext$major'
13748 shlibpath_var=LD_LIBRARY_PATH
13749 shlibpath_overrides_runpath=yes
13750 hardcode_into_libs=yes
13751 if test yes = "$with_gnu_ld"; then
13752 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13753 else
13754 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13755 case $host_os in
13756 sco3.2v5*)
13757 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13758 ;;
13759 esac
13760 fi
13761 sys_lib_dlsearch_path_spec='/usr/lib'
13762 ;;
13763
13764 tpf*)
13765 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13766 version_type=linux # correct to gnu/linux during the next big refactor
13767 need_lib_prefix=no
13768 need_version=no
13769 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13770 shlibpath_var=LD_LIBRARY_PATH
13771 shlibpath_overrides_runpath=no
13772 hardcode_into_libs=yes
13773 ;;
13774
13775 uts4*)
13776 version_type=linux # correct to gnu/linux during the next big refactor
13777 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13778 soname_spec='$libname$release$shared_ext$major'
13779 shlibpath_var=LD_LIBRARY_PATH
13780 ;;
13781
13782 emscripten*)
13783 version_type=none
13784 need_lib_prefix=no
13785 need_version=no
13786 library_names_spec='$libname$release$shared_ext'
13787 soname_spec='$libname$release$shared_ext'
13788 finish_cmds=
13789 dynamic_linker="Emscripten linker"
13790 lt_prog_compiler_wl=
13791 lt_prog_compiler_pic=
13792 lt_prog_compiler_static=
13793
13794
13795 if test yes = "$GCC"; then
13796 lt_prog_compiler_wl='-Wl,'
13797 lt_prog_compiler_static='-static'
13798
13799 case $host_os in
13800 aix*)
13801 # All AIX code is PIC.
13802 if test ia64 = "$host_cpu"; then
13803 # AIX 5 now supports IA64 processor
13804 lt_prog_compiler_static='-Bstatic'
13805 fi
13806 lt_prog_compiler_pic='-fPIC'
13807 ;;
13808
13809 amigaos*)
13810 case $host_cpu in
13811 powerpc)
13812 # see comment about AmigaOS4 .so support
13813 lt_prog_compiler_pic='-fPIC'
13814 ;;
13815 m68k)
13816 # FIXME: we need at least 68020 code to build shared libraries, but
13817 # adding the '-m68020' flag to GCC prevents building anything better,
13818 # like '-m68040'.
13819 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13820 ;;
13821 esac
13822 ;;
13823
13824 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13825 # PIC is the default for these OSes.
13826 ;;
13827
13828 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
13829 # This hack is so that the source file can tell whether it is being
13830 # built for inclusion in a dll (and should export symbols for example).
13831 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13832 # (--disable-auto-import) libraries
13833 lt_prog_compiler_pic='-DDLL_EXPORT'
13834 case $host_os in
13835 os2*)
13836 lt_prog_compiler_static='$wl-static'
13837 ;;
13838 esac
13839 ;;
13840
13841 darwin* | rhapsody*)
13842 # PIC is the default on this platform
13843 # Common symbols not allowed in MH_DYLIB files
13844 lt_prog_compiler_pic='-fno-common'
13845 ;;
13846
13847 haiku*)
13848 # PIC is the default for Haiku.
13849 # The "-static" flag exists, but is broken.
13850 lt_prog_compiler_static=
13851 ;;
13852
13853 hpux*)
13854 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13855 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13856 # sets the default TLS model and affects inlining.
13857 case $host_cpu in
13858 hppa*64*)
13859 # +Z the default
13860 ;;
13861 *)
13862 lt_prog_compiler_pic='-fPIC'
13863 ;;
13864 esac
13865 ;;
13866
13867 interix[3-9]*)
13868 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13869 # Instead, we relocate shared libraries at runtime.
13870 ;;
13871
13872 msdosdjgpp*)
13873 # Just because we use GCC doesn't mean we suddenly get shared libraries
13874 # on systems that don't support them.
13875 lt_prog_compiler_can_build_shared=no
13876 enable_shared=no
13877 ;;
13878
13879 *nto* | *qnx*)
13880 # QNX uses GNU C++, but need to define -shared option too, otherwise
13881 # it will coredump.
13882 lt_prog_compiler_pic='-fPIC -shared'
13883 ;;
13884
13885 sysv4*MP*)
13886 if test -d /usr/nec; then
13887 lt_prog_compiler_pic=-Kconform_pic
13888 fi
13889 ;;
13890
13891 *)
13892 lt_prog_compiler_pic='-fPIC'
13893 ;;
13894 esac
13895
13896 case $cc_basename in
13897 nvcc*) # Cuda Compiler Driver 2.2
13898 lt_prog_compiler_wl='-Xlinker '
13899 if test -n "$lt_prog_compiler_pic"; then
13900 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
13901 fi
13902 ;;
13903 esac
13904 else
13905 # PORTME Check for flag to pass linker flags through the system compiler.
13906 case $host_os in
13907 aix*)
13908 lt_prog_compiler_wl='-Wl,'
13909 if test ia64 = "$host_cpu"; then
13910 # AIX 5 now supports IA64 processor
13911 lt_prog_compiler_static='-Bstatic'
13912 else
13913 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13914 fi
13915 ;;
13916
13917 darwin* | rhapsody*)
13918 # PIC is the default on this platform
13919 # Common symbols not allowed in MH_DYLIB files
13920 lt_prog_compiler_pic='-fno-common'
13921 case $cc_basename in
13922 nagfor*)
13923 # NAG Fortran compiler
13924 lt_prog_compiler_wl='-Wl,-Wl,,'
13925 lt_prog_compiler_pic='-PIC'
13926 lt_prog_compiler_static='-Bstatic'
13927 ;;
13928 esac
13929 ;;
13930
13931 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
13932 # This hack is so that the source file can tell whether it is being
13933 # built for inclusion in a dll (and should export symbols for example).
13934 lt_prog_compiler_pic='-DDLL_EXPORT'
13935 case $host_os in
13936 os2*)
13937 lt_prog_compiler_static='$wl-static'
13938 ;;
13939 esac
13940 ;;
13941
13942 hpux9* | hpux10* | hpux11*)
13943 lt_prog_compiler_wl='-Wl,'
13944 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13945 # not for PA HP-UX.
13946 case $host_cpu in
13947 hppa*64*|ia64*)
13948 # +Z the default
13949 ;;
13950 *)
13951 lt_prog_compiler_pic='+Z'
13952 ;;
13953 esac
13954 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13955 lt_prog_compiler_static='$wl-a ${wl}archive'
13956 ;;
13957
13958 irix5* | irix6* | nonstopux*)
13959 lt_prog_compiler_wl='-Wl,'
13960 # PIC (with -KPIC) is the default.
13961 lt_prog_compiler_static='-non_shared'
13962 ;;
13963
13964 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13965 case $cc_basename in
13966 # old Intel for x86_64, which still supported -KPIC.
13967 ecc*)
13968 lt_prog_compiler_wl='-Wl,'
13969 lt_prog_compiler_pic='-KPIC'
13970 lt_prog_compiler_static='-static'
13971 ;;
13972 *flang* | ftn | f18* | f95*)
13973 # Flang compiler.
13974 lt_prog_compiler_wl='-Wl,'
13975 lt_prog_compiler_pic='-fPIC'
13976 lt_prog_compiler_static='-static'
13977 ;;
13978 # icc used to be incompatible with GCC.
13979 # ICC 10 doesn't accept -KPIC any more.
13980 icc* | ifort*)
13981 lt_prog_compiler_wl='-Wl,'
13982 lt_prog_compiler_pic='-fPIC'
13983 lt_prog_compiler_static='-static'
13984 ;;
13985 # Lahey Fortran 8.1.
13986 lf95*)
13987 lt_prog_compiler_wl='-Wl,'
13988 lt_prog_compiler_pic='--shared'
13989 lt_prog_compiler_static='--static'
13990 ;;
13991 nagfor*)
13992 # NAG Fortran compiler
13993 lt_prog_compiler_wl='-Wl,-Wl,,'
13994 lt_prog_compiler_pic='-PIC'
13995 lt_prog_compiler_static='-Bstatic'
13996 ;;
13997 tcc*)
13998 # Fabrice Bellard et al's Tiny C Compiler
13999 lt_prog_compiler_wl='-Wl,'
14000 lt_prog_compiler_pic='-fPIC'
14001 lt_prog_compiler_static='-static'
14002 ;;
14003 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14004 # Portland Group compilers (*not* the Pentium gcc compiler,
14005 # which looks to be a dead project)
14006 lt_prog_compiler_wl='-Wl,'
14007 lt_prog_compiler_pic='-fpic'
14008 lt_prog_compiler_static='-Bstatic'
14009 ;;
14010 ccc*)
14011 lt_prog_compiler_wl='-Wl,'
14012 # All Alpha code is PIC.
14013 lt_prog_compiler_static='-non_shared'
14014 ;;
14015 xl* | bgxl* | bgf* | mpixl*)
14016 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14017 lt_prog_compiler_wl='-Wl,'
14018 lt_prog_compiler_pic='-qpic'
14019 lt_prog_compiler_static='-qstaticlink'
14020 ;;
14021 *)
14022 case `$CC -V 2>&1 | $SED 5q` in
14023 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
14024 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14025 lt_prog_compiler_pic='-KPIC'
14026 lt_prog_compiler_static='-Bstatic'
14027 lt_prog_compiler_wl=''
14028 ;;
14029 *Sun\ F* | *Sun*Fortran*)
14030 lt_prog_compiler_pic='-KPIC'
14031 lt_prog_compiler_static='-Bstatic'
14032 lt_prog_compiler_wl='-Qoption ld '
14033 ;;
14034 *Sun\ C*)
14035 # Sun C 5.9
14036 lt_prog_compiler_pic='-KPIC'
14037 lt_prog_compiler_static='-Bstatic'
14038 lt_prog_compiler_wl='-Wl,'
14039 ;;
14040 *Intel*\ [CF]*Compiler*)
14041 lt_prog_compiler_wl='-Wl,'
14042 lt_prog_compiler_pic='-fPIC'
14043 lt_prog_compiler_static='-static'
14044 ;;
14045 *Portland\ Group*)
14046 lt_prog_compiler_wl='-Wl,'
14047 lt_prog_compiler_pic='-fpic'
14048 lt_prog_compiler_static='-Bstatic'
14049 ;;
14050 esac
14051 ;;
14052 esac
14053 ;;
14054
14055 newsos6)
14056 lt_prog_compiler_pic='-KPIC'
14057 lt_prog_compiler_static='-Bstatic'
14058 ;;
14059
14060 *-mlibc)
14061 lt_prog_compiler_wl='-Wl,'
14062 lt_prog_compiler_pic='-fPIC'
14063 lt_prog_compiler_static='-static'
14064 ;;
14065
14066 *nto* | *qnx*)
14067 # QNX uses GNU C++, but need to define -shared option too, otherwise
14068 # it will coredump.
14069 lt_prog_compiler_pic='-fPIC -shared'
14070 ;;
14071
14072 osf3* | osf4* | osf5*)
14073 lt_prog_compiler_wl='-Wl,'
14074 # All OSF/1 code is PIC.
14075 lt_prog_compiler_static='-non_shared'
14076 ;;
14077
14078 rdos*)
14079 lt_prog_compiler_static='-non_shared'
14080 ;;
14081
14082 serenity*)
14083 ;;
14084
14085 solaris*)
14086 lt_prog_compiler_pic='-KPIC'
14087 lt_prog_compiler_static='-Bstatic'
14088 case $cc_basename in
14089 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
14090 lt_prog_compiler_wl='-Qoption ld ';;
14091 *)
14092 lt_prog_compiler_wl='-Wl,';;
14093 esac
14094 ;;
14095
14096 sunos4*)
14097 lt_prog_compiler_wl='-Qoption ld '
14098 lt_prog_compiler_pic='-PIC'
14099 lt_prog_compiler_static='-Bstatic'
14100 ;;
14101
14102 sysv4 | sysv4.2uw2* | sysv4.3*)
14103 lt_prog_compiler_wl='-Wl,'
14104 lt_prog_compiler_pic='-KPIC'
14105 lt_prog_compiler_static='-Bstatic'
14106 ;;
14107
14108 sysv4*MP*)
14109 if test -d /usr/nec; then
14110 lt_prog_compiler_pic='-Kconform_pic'
14111 lt_prog_compiler_static='-Bstatic'
14112 fi
14113 ;;
14114
14115 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14116 lt_prog_compiler_wl='-Wl,'
14117 lt_prog_compiler_pic='-KPIC'
14118 lt_prog_compiler_static='-Bstatic'
14119 ;;
14120
14121 unicos*)
14122 lt_prog_compiler_wl='-Wl,'
14123 lt_prog_compiler_can_build_shared=no
14124 ;;
14125
14126 uts4*)
14127 lt_prog_compiler_pic='-pic'
14128 lt_prog_compiler_static='-Bstatic'
14129 ;;
14130
14131 *)
14132 lt_prog_compiler_can_build_shared=no
14133 ;;
14134 esac
14135 fi
14136
14137 case $host_os in
14138 # For platforms that do not support PIC, -DPIC is meaningless:
14139 *djgpp*)
14140 lt_prog_compiler_pic=
14141 ;;
14142 *)
14143 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14144 ;;
14145 esac
14146
14147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14148 printf %s "checking for $compiler option to produce PIC... " >&6; }
14149 if test ${lt_cv_prog_compiler_pic+y}
14150 then :
14151 printf %s "(cached) " >&6
14152 else case e in #(
14153 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
14154 esac
14155 fi
14156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14157 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
14158 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
14159
14160 #
14161 # Check to make sure the PIC flag actually works.
14162 #
14163 if test -n "$lt_prog_compiler_pic"; then
14164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14165 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14166 if test ${lt_cv_prog_compiler_pic_works+y}
14167 then :
14168 printf %s "(cached) " >&6
14169 else case e in #(
14170 e) lt_cv_prog_compiler_pic_works=no
14171 ac_outfile=conftest.$ac_objext
14172 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14173 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
14174 # Insert the option either (1) after the last *FLAGS variable, or
14175 # (2) before a word containing "conftest.", or (3) at the end.
14176 # Note that $ac_compile itself does not contain backslashes and begins
14177 # with a dollar sign (not a hyphen), so the echo should work correctly.
14178 # The option is referenced via a variable to avoid confusing sed.
14179 lt_compile=`echo "$ac_compile" | $SED \
14180 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14181 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14182 -e 's:$: $lt_compiler_flag:'`
14183 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14184 (eval "$lt_compile" 2>conftest.err)
14185 ac_status=$?
14186 cat conftest.err >&5
14187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14188 if (exit $ac_status) && test -s "$ac_outfile"; then
14189 # The compiler can only warn and ignore the option if not recognized
14190 # So say no if there are warnings other than the usual output.
14191 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14192 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14193 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14194 lt_cv_prog_compiler_pic_works=yes
14195 fi
14196 fi
14197 $RM conftest*
14198 ;;
14199 esac
14200 fi
14201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14202 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
14203
14204 if test yes = "$lt_cv_prog_compiler_pic_works"; then
14205 case $lt_prog_compiler_pic in
14206 "" | " "*) ;;
14207 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14208 esac
14209 else
14210 lt_prog_compiler_pic=
14211 lt_prog_compiler_can_build_shared=no
14212 fi
14213
14214 fi
14215
14216
14217
14218
14219
14220 #
14221 # Check to make sure the static flag actually works.
14222 #
14223 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14225 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14226 if test ${lt_cv_prog_compiler_static_works+y}
14227 then :
14228 printf %s "(cached) " >&6
14229 else case e in #(
14230 e) lt_cv_prog_compiler_static_works=no
14231 save_LDFLAGS=$LDFLAGS
14232 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14233 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14234 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14235 # The linker can only warn and ignore the option if not recognized
14236 # So say no if there are warnings
14237 if test -s conftest.err; then
14238 # Append any errors to the config.log.
14239 cat conftest.err 1>&5
14240 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14241 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14242 if diff conftest.exp conftest.er2 >/dev/null; then
14243 lt_cv_prog_compiler_static_works=yes
14244 fi
14245 else
14246 lt_cv_prog_compiler_static_works=yes
14247 fi
14248 fi
14249 $RM -r conftest*
14250 LDFLAGS=$save_LDFLAGS
14251 ;;
14252 esac
14253 fi
14254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14255 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
14256
14257 if test yes = "$lt_cv_prog_compiler_static_works"; then
14258 :
14259 else
14260 lt_prog_compiler_static=
14261 fi
14262
14263
14264
14265 ='-fPIC'
14266 archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
14267 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'
14268 archive_cmds_need_lc=no
14269 no_undefined_flag=
14270 ;;
14271
14272 *)
14273 dynamic_linker=no
14274 ;;
14275 esac
14276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14277 printf "%s\n" "$dynamic_linker" >&6; }
14278 test no = "$dynamic_linker" && can_build_shared=no
14279
14280 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14281 if test yes = "$GCC"; then
14282 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14283 fi
14284
14285 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14286 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
14287 fi
14288
14289 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14290 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
14291 fi
14292
14293 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14294 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14295
14296 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14297 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14298
14299 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14300 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
14301
14302
14303
14304
14305
14306
14307
14308
14309
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320
14321
14322
14323
14324
14325
14326
14327
14328
14329
14330
14331
14332
14333
14334
14335
14336
14337
14338
14339
14340
14341
14342
14343
14344
14345
14346
14347
14348
14349
14350
14351
14352
14353
14354
14355
14356
14357
14358
14359
14360
14361
14362
14363
14364
14365
14366
14367
14368
14369
14370
14371
14372
14373
14374
14375
14376
14377
14378
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392
14393
14394
14395
14396
14397
14398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14399 printf %s "checking how to hardcode library paths into programs... " >&6; }
14400 hardcode_action=
14401 if test -n "$hardcode_libdir_flag_spec" ||
14402 test -n "$runpath_var" ||
14403 test yes = "$hardcode_automatic"; then
14404
14405 # We can hardcode non-existent directories.
14406 if test no != "$hardcode_direct" &&
14407 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14408 # have to relink, otherwise we might link with an installed library
14409 # when we should be linking with a yet-to-be-installed one
14410 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
14411 test no != "$hardcode_minus_L"; then
14412 # Linking always hardcodes the temporary library directory.
14413 hardcode_action=relink
14414 else
14415 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14416 hardcode_action=immediate
14417 fi
14418 else
14419 # We cannot hardcode anything, or else we can only hardcode existing
14420 # directories.
14421 hardcode_action=unsupported
14422 fi
14423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14424 printf "%s\n" "$hardcode_action" >&6; }
14425
14426 if test relink = "$hardcode_action" ||
14427 test yes = "$inherit_rpath"; then
14428 # Fast installation is not supported
14429 enable_fast_install=no
14430 elif test yes = "$shlibpath_overrides_runpath" ||
14431 test no = "$enable_shared"; then
14432 # Fast installation is not necessary
14433 enable_fast_install=needless
14434 fi
14435
14436
14437
14438
14439
14440
14441 if test yes != "$enable_dlopen"; then
14442 enable_dlopen=unknown
14443 enable_dlopen_self=unknown
14444 enable_dlopen_self_static=unknown
14445 else
14446 lt_cv_dlopen=no
14447 lt_cv_dlopen_libs=
14448
14449 case $host_os in
14450 beos*)
14451 lt_cv_dlopen=load_add_on
14452 lt_cv_dlopen_libs=
14453 lt_cv_dlopen_self=yes
14454 ;;
14455
14456 mingw* | windows* | pw32* | cegcc*)
14457 lt_cv_dlopen=LoadLibrary
14458 lt_cv_dlopen_libs=
14459 ;;
14460
14461 cygwin*)
14462 lt_cv_dlopen=dlopen
14463 lt_cv_dlopen_libs=
14464 ;;
14465
14466 darwin*)
14467 # if libdl is installed we need to link against it
14468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14469 printf %s "checking for dlopen in -ldl... " >&6; }
14470 if test ${ac_cv_lib_dl_dlopen+y}
14471 then :
14472 printf %s "(cached) " >&6
14473 else case e in #(
14474 e) ac_check_lib_save_LIBS=$LIBS
14475 LIBS="-ldl $LIBS"
14476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14477 /* end confdefs.h. */
14478
14479 /* Override any GCC internal prototype to avoid an error.
14480 Use char because int might match the return type of a GCC
14481 builtin and then its argument prototype would still apply.
14482 The 'extern "C"' is for builds by C++ compilers;
14483 although this is not generally supported in C code supporting it here
14484 has little cost and some practical benefit (sr 110532). */
14485 #ifdef __cplusplus
14486 extern "C"
14487 #endif
14488 char dlopen (void);
14489 int
14490 main (void)
14491 {
14492 return dlopen ();
14493 ;
14494 return 0;
14495 }
14496 _ACEOF
14497 if ac_fn_c_try_link "$LINENO"
14498 then :
14499 ac_cv_lib_dl_dlopen=yes
14500 else case e in #(
14501 e) ac_cv_lib_dl_dlopen=no ;;
14502 esac
14503 fi
14504 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14505 conftest$ac_exeext conftest.$ac_ext
14506 LIBS=$ac_check_lib_save_LIBS ;;
14507 esac
14508 fi
14509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14510 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
14511 if test "x$ac_cv_lib_dl_dlopen" = xyes
14512 then :
14513 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14514 else case e in #(
14515 e)
14516 lt_cv_dlopen=dyld
14517 lt_cv_dlopen_libs=
14518 lt_cv_dlopen_self=yes
14519 ;;
14520 esac
14521 fi
14522
14523 ;;
14524
14525 tpf*)
14526 # Don't try to run any link tests for TPF. We know it's impossible
14527 # because TPF is a cross-compiler, and we know how we open DSOs.
14528 lt_cv_dlopen=dlopen
14529 lt_cv_dlopen_libs=
14530 lt_cv_dlopen_self=no
14531 ;;
14532
14533 *)
14534 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14535 if test "x$ac_cv_func_shl_load" = xyes
14536 then :
14537 lt_cv_dlopen=shl_load
14538 else case e in #(
14539 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14540 printf %s "checking for shl_load in -ldld... " >&6; }
14541 if test ${ac_cv_lib_dld_shl_load+y}
14542 then :
14543 printf %s "(cached) " >&6
14544 else case e in #(
14545 e) ac_check_lib_save_LIBS=$LIBS
14546 LIBS="-ldld $LIBS"
14547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14548 /* end confdefs.h. */
14549
14550 /* Override any GCC internal prototype to avoid an error.
14551 Use char because int might match the return type of a GCC
14552 builtin and then its argument prototype would still apply.
14553 The 'extern "C"' is for builds by C++ compilers;
14554 although this is not generally supported in C code supporting it here
14555 has little cost and some practical benefit (sr 110532). */
14556 #ifdef __cplusplus
14557 extern "C"
14558 #endif
14559 char shl_load (void);
14560 int
14561 main (void)
14562 {
14563 return shl_load ();
14564 ;
14565 return 0;
14566 }
14567 _ACEOF
14568 if ac_fn_c_try_link "$LINENO"
14569 then :
14570 ac_cv_lib_dld_shl_load=yes
14571 else case e in #(
14572 e) ac_cv_lib_dld_shl_load=no ;;
14573 esac
14574 fi
14575 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14576 conftest$ac_exeext conftest.$ac_ext
14577 LIBS=$ac_check_lib_save_LIBS ;;
14578 esac
14579 fi
14580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14581 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
14582 if test "x$ac_cv_lib_dld_shl_load" = xyes
14583 then :
14584 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
14585 else case e in #(
14586 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14587 if test "x$ac_cv_func_dlopen" = xyes
14588 then :
14589 lt_cv_dlopen=dlopen
14590 else case e in #(
14591 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14592 printf %s "checking for dlopen in -ldl... " >&6; }
14593 if test ${ac_cv_lib_dl_dlopen+y}
14594 then :
14595 printf %s "(cached) " >&6
14596 else case e in #(
14597 e) ac_check_lib_save_LIBS=$LIBS
14598 LIBS="-ldl $LIBS"
14599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14600 /* end confdefs.h. */
14601
14602 /* Override any GCC internal prototype to avoid an error.
14603 Use char because int might match the return type of a GCC
14604 builtin and then its argument prototype would still apply.
14605 The 'extern "C"' is for builds by C++ compilers;
14606 although this is not generally supported in C code supporting it here
14607 has little cost and some practical benefit (sr 110532). */
14608 #ifdef __cplusplus
14609 extern "C"
14610 #endif
14611 char dlopen (void);
14612 int
14613 main (void)
14614 {
14615 return dlopen ();
14616 ;
14617 return 0;
14618 }
14619 _ACEOF
14620 if ac_fn_c_try_link "$LINENO"
14621 then :
14622 ac_cv_lib_dl_dlopen=yes
14623 else case e in #(
14624 e) ac_cv_lib_dl_dlopen=no ;;
14625 esac
14626 fi
14627 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14628 conftest$ac_exeext conftest.$ac_ext
14629 LIBS=$ac_check_lib_save_LIBS ;;
14630 esac
14631 fi
14632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14633 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
14634 if test "x$ac_cv_lib_dl_dlopen" = xyes
14635 then :
14636 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14637 else case e in #(
14638 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14639 printf %s "checking for dlopen in -lsvld... " >&6; }
14640 if test ${ac_cv_lib_svld_dlopen+y}
14641 then :
14642 printf %s "(cached) " >&6
14643 else case e in #(
14644 e) ac_check_lib_save_LIBS=$LIBS
14645 LIBS="-lsvld $LIBS"
14646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14647 /* end confdefs.h. */
14648
14649 /* Override any GCC internal prototype to avoid an error.
14650 Use char because int might match the return type of a GCC
14651 builtin and then its argument prototype would still apply.
14652 The 'extern "C"' is for builds by C++ compilers;
14653 although this is not generally supported in C code supporting it here
14654 has little cost and some practical benefit (sr 110532). */
14655 #ifdef __cplusplus
14656 extern "C"
14657 #endif
14658 char dlopen (void);
14659 int
14660 main (void)
14661 {
14662 return dlopen ();
14663 ;
14664 return 0;
14665 }
14666 _ACEOF
14667 if ac_fn_c_try_link "$LINENO"
14668 then :
14669 ac_cv_lib_svld_dlopen=yes
14670 else case e in #(
14671 e) ac_cv_lib_svld_dlopen=no ;;
14672 esac
14673 fi
14674 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14675 conftest$ac_exeext conftest.$ac_ext
14676 LIBS=$ac_check_lib_save_LIBS ;;
14677 esac
14678 fi
14679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14680 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
14681 if test "x$ac_cv_lib_svld_dlopen" = xyes
14682 then :
14683 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
14684 else case e in #(
14685 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14686 printf %s "checking for dld_link in -ldld... " >&6; }
14687 if test ${ac_cv_lib_dld_dld_link+y}
14688 then :
14689 printf %s "(cached) " >&6
14690 else case e in #(
14691 e) ac_check_lib_save_LIBS=$LIBS
14692 LIBS="-ldld $LIBS"
14693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14694 /* end confdefs.h. */
14695
14696 /* Override any GCC internal prototype to avoid an error.
14697 Use char because int might match the return type of a GCC
14698 builtin and then its argument prototype would still apply.
14699 The 'extern "C"' is for builds by C++ compilers;
14700 although this is not generally supported in C code supporting it here
14701 has little cost and some practical benefit (sr 110532). */
14702 #ifdef __cplusplus
14703 extern "C"
14704 #endif
14705 char dld_link (void);
14706 int
14707 main (void)
14708 {
14709 return dld_link ();
14710 ;
14711 return 0;
14712 }
14713 _ACEOF
14714 if ac_fn_c_try_link "$LINENO"
14715 then :
14716 ac_cv_lib_dld_dld_link=yes
14717 else case e in #(
14718 e) ac_cv_lib_dld_dld_link=no ;;
14719 esac
14720 fi
14721 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14722 conftest$ac_exeext conftest.$ac_ext
14723 LIBS=$ac_check_lib_save_LIBS ;;
14724 esac
14725 fi
14726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14727 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
14728 if test "x$ac_cv_lib_dld_dld_link" = xyes
14729 then :
14730 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
14731 fi
14732
14733 ;;
14734 esac
14735 fi
14736
14737 ;;
14738 esac
14739 fi
14740
14741 ;;
14742 esac
14743 fi
14744
14745 ;;
14746 esac
14747 fi
14748
14749 ;;
14750 esac
14751 fi
14752
14753 ;;
14754 esac
14755
14756 if test no = "$lt_cv_dlopen"; then
14757 enable_dlopen=no
14758 else
14759 enable_dlopen=yes
14760 fi
14761
14762 case $lt_cv_dlopen in
14763 dlopen)
14764 save_CPPFLAGS=$CPPFLAGS
14765 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14766
14767 save_LDFLAGS=$LDFLAGS
14768 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14769
14770 save_LIBS=$LIBS
14771 LIBS="$lt_cv_dlopen_libs $LIBS"
14772
14773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14774 printf %s "checking whether a program can dlopen itself... " >&6; }
14775 if test ${lt_cv_dlopen_self+y}
14776 then :
14777 printf %s "(cached) " >&6
14778 else case e in #(
14779 e) if test yes = "$cross_compiling"; then :
14780 lt_cv_dlopen_self=cross
14781 else
14782 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14783 lt_status=$lt_dlunknown
14784 cat > conftest.$ac_ext <<_LT_EOF
14785 #line $LINENO "configure"
14786 #include "confdefs.h"
14787
14788 #if HAVE_DLFCN_H
14789 #include <dlfcn.h>
14790 #endif
14791
14792 #include <stdio.h>
14793
14794 #ifdef RTLD_GLOBAL
14795 # define LT_DLGLOBAL RTLD_GLOBAL
14796 #else
14797 # ifdef DL_GLOBAL
14798 # define LT_DLGLOBAL DL_GLOBAL
14799 # else
14800 # define LT_DLGLOBAL 0
14801 # endif
14802 #endif
14803
14804 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14805 find out it does not work in some platform. */
14806 #ifndef LT_DLLAZY_OR_NOW
14807 # ifdef RTLD_LAZY
14808 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14809 # else
14810 # ifdef DL_LAZY
14811 # define LT_DLLAZY_OR_NOW DL_LAZY
14812 # else
14813 # ifdef RTLD_NOW
14814 # define LT_DLLAZY_OR_NOW RTLD_NOW
14815 # else
14816 # ifdef DL_NOW
14817 # define LT_DLLAZY_OR_NOW DL_NOW
14818 # else
14819 # define LT_DLLAZY_OR_NOW 0
14820 # endif
14821 # endif
14822 # endif
14823 # endif
14824 #endif
14825
14826 /* When -fvisibility=hidden is used, assume the code has been annotated
14827 correspondingly for the symbols needed. */
14828 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14829 int fnord (void) __attribute__((visibility("default")));
14830 #endif
14831
14832 int fnord (void) { return 42; }
14833 int main (void)
14834 {
14835 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14836 int status = $lt_dlunknown;
14837
14838 if (self)
14839 {
14840 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14841 else
14842 {
14843 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14844 else puts (dlerror ());
14845 }
14846 /* dlclose (self); */
14847 }
14848 else
14849 puts (dlerror ());
14850
14851 return status;
14852 }
14853 _LT_EOF
14854 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14855 (eval $ac_link) 2>&5
14856 ac_status=$?
14857 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14858 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14859 (./conftest; exit; ) >&5 2>/dev/null
14860 lt_status=$?
14861 case x$lt_status in
14862 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14863 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14864 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14865 esac
14866 else :
14867 # compilation failed
14868 lt_cv_dlopen_self=no
14869 fi
14870 fi
14871 rm -fr conftest*
14872
14873 ;;
14874 esac
14875 fi
14876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14877 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
14878
14879 if test yes = "$lt_cv_dlopen_self"; then
14880 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14882 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
14883 if test ${lt_cv_dlopen_self_static+y}
14884 then :
14885 printf %s "(cached) " >&6
14886 else case e in #(
14887 e) if test yes = "$cross_compiling"; then :
14888 lt_cv_dlopen_self_static=cross
14889 else
14890 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14891 lt_status=$lt_dlunknown
14892 cat > conftest.$ac_ext <<_LT_EOF
14893 #line $LINENO "configure"
14894 #include "confdefs.h"
14895
14896 #if HAVE_DLFCN_H
14897 #include <dlfcn.h>
14898 #endif
14899
14900 #include <stdio.h>
14901
14902 #ifdef RTLD_GLOBAL
14903 # define LT_DLGLOBAL RTLD_GLOBAL
14904 #else
14905 # ifdef DL_GLOBAL
14906 # define LT_DLGLOBAL DL_GLOBAL
14907 # else
14908 # define LT_DLGLOBAL 0
14909 # endif
14910 #endif
14911
14912 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14913 find out it does not work in some platform. */
14914 #ifndef LT_DLLAZY_OR_NOW
14915 # ifdef RTLD_LAZY
14916 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14917 # else
14918 # ifdef DL_LAZY
14919 # define LT_DLLAZY_OR_NOW DL_LAZY
14920 # else
14921 # ifdef RTLD_NOW
14922 # define LT_DLLAZY_OR_NOW RTLD_NOW
14923 # else
14924 # ifdef DL_NOW
14925 # define LT_DLLAZY_OR_NOW DL_NOW
14926 # else
14927 # define LT_DLLAZY_OR_NOW 0
14928 # endif
14929 # endif
14930 # endif
14931 # endif
14932 #endif
14933
14934 /* When -fvisibility=hidden is used, assume the code has been annotated
14935 correspondingly for the symbols needed. */
14936 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14937 int fnord (void) __attribute__((visibility("default")));
14938 #endif
14939
14940 int fnord (void) { return 42; }
14941 int main (void)
14942 {
14943 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14944 int status = $lt_dlunknown;
14945
14946 if (self)
14947 {
14948 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14949 else
14950 {
14951 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14952 else puts (dlerror ());
14953 }
14954 /* dlclose (self); */
14955 }
14956 else
14957 puts (dlerror ());
14958
14959 return status;
14960 }
14961 _LT_EOF
14962 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14963 (eval $ac_link) 2>&5
14964 ac_status=$?
14965 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14966 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14967 (./conftest; exit; ) >&5 2>/dev/null
14968 lt_status=$?
14969 case x$lt_status in
14970 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14971 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14972 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14973 esac
14974 else :
14975 # compilation failed
14976 lt_cv_dlopen_self_static=no
14977 fi
14978 fi
14979 rm -fr conftest*
14980
14981 ;;
14982 esac
14983 fi
14984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14985 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
14986 fi
14987
14988 CPPFLAGS=$save_CPPFLAGS
14989 LDFLAGS=$save_LDFLAGS
14990 LIBS=$save_LIBS
14991 ;;
14992 esac
14993
14994 case $lt_cv_dlopen_self in
14995 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14996 *) enable_dlopen_self=unknown ;;
14997 esac
14998
14999 case $lt_cv_dlopen_self_static in
15000 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15001 *) enable_dlopen_self_static=unknown ;;
15002 esac
15003 fi
15004
15005
15006
15007
15008
15009
15010
15011
15012
15013
15014
15015
15016
15017
15018
15019
15020
15021 striplib=
15022 old_striplib=
15023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15024 printf %s "checking whether stripping libraries is possible... " >&6; }
15025 if test -z "$STRIP"; then
15026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15027 printf "%s\n" "no" >&6; }
15028 else
15029 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15030 old_striplib="$STRIP --strip-debug"
15031 striplib="$STRIP --strip-unneeded"
15032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15033 printf "%s\n" "yes" >&6; }
15034 else
15035 case $host_os in
15036 darwin*)
15037 # FIXME - insert some real tests, host_os isn't really good enough
15038 striplib="$STRIP -x"
15039 old_striplib="$STRIP -S"
15040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15041 printf "%s\n" "yes" >&6; }
15042 ;;
15043 freebsd*)
15044 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
15045 old_striplib="$STRIP --strip-debug"
15046 striplib="$STRIP --strip-unneeded"
15047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15048 printf "%s\n" "yes" >&6; }
15049 else
15050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15051 printf "%s\n" "no" >&6; }
15052 fi
15053 ;;
15054 *)
15055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15056 printf "%s\n" "no" >&6; }
15057 ;;
15058 esac
15059 fi
15060 fi
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073 # Report what library types will actually be built
15074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15075 printf %s "checking if libtool supports shared libraries... " >&6; }
15076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15077 printf "%s\n" "$can_build_shared" >&6; }
15078
15079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15080 printf %s "checking whether to build shared libraries... " >&6; }
15081 test no = "$can_build_shared" && enable_shared=no
15082
15083 # On AIX, shared libraries and static libraries use the same namespace, and
15084 # are all built from PIC.
15085 case $host_os in
15086 aix3*)
15087 test yes = "$enable_shared" && enable_static=no
15088 if test -n "$RANLIB"; then
15089 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15090 postinstall_cmds='$RANLIB $lib'
15091 fi
15092 ;;
15093
15094 aix[4-9]*)
15095 if test ia64 != "$host_cpu"; then
15096 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
15097 yes,aix,yes) ;; # shared object as lib.so file only
15098 yes,svr4,*) ;; # shared object as lib.so archive member only
15099 yes,*) enable_static=no ;; # shared object in lib.a archive as well
15100 esac
15101 fi
15102 ;;
15103 esac
15104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15105 printf "%s\n" "$enable_shared" >&6; }
15106
15107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15108 printf %s "checking whether to build static libraries... " >&6; }
15109 # Make sure either enable_shared or enable_static is yes.
15110 test yes = "$enable_shared" || enable_static=yes
15111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15112 printf "%s\n" "$enable_static" >&6; }
15113
15114
15115
15116
15117 fi
15118 ac_ext=c
15119 ac_cpp='$CPP $CPPFLAGS'
15120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15123
15124 CC=$lt_save_CC
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140 ac_config_commands="$ac_config_commands libtool"
15141
15142
15143
15144
15145 # Only expand once:
15146
15147
15148 # (end lt_init)
15149 # Check whether --enable-largefile was given.
15150 if test ${enable_largefile+y}
15151 then :
15152 enableval=$enable_largefile;
15153 fi
15154 if test "$enable_largefile,$enable_year2038" != no,no
15155 then :
15156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5
15157 printf %s "checking for $CC option to enable large file support... " >&6; }
15158 if test ${ac_cv_sys_largefile_opts+y}
15159 then :
15160 printf %s "(cached) " >&6
15161 else case e in #(
15162 e) ac_save_CC="$CC"
15163 ac_opt_found=no
15164 for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do
15165 if test x"$ac_opt" != x"none needed"
15166 then :
15167 CC="$ac_save_CC $ac_opt"
15168 fi
15169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15170 /* end confdefs.h. */
15171 #include <sys/types.h>
15172 #ifndef FTYPE
15173 # define FTYPE off_t
15174 #endif
15175 /* Check that FTYPE can represent 2**63 - 1 correctly.
15176 We can't simply define LARGE_FTYPE to be 9223372036854775807,
15177 since some C++ compilers masquerading as C compilers
15178 incorrectly reject 9223372036854775807. */
15179 #define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31))
15180 int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721
15181 && LARGE_FTYPE % 2147483647 == 1)
15182 ? 1 : -1];
15183 int
15184 main (void)
15185 {
15186
15187 ;
15188 return 0;
15189 }
15190 _ACEOF
15191 if ac_fn_c_try_compile "$LINENO"
15192 then :
15193 if test x"$ac_opt" = x"none needed"
15194 then :
15195 # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t.
15196 CC="$CC -DFTYPE=ino_t"
15197 if ac_fn_c_try_compile "$LINENO"
15198 then :
15199
15200 else case e in #(
15201 e) CC="$CC -D_FILE_OFFSET_BITS=64"
15202 if ac_fn_c_try_compile "$LINENO"
15203 then :
15204 ac_opt='-D_FILE_OFFSET_BITS=64'
15205 fi
15206 rm -f core conftest.err conftest.$ac_objext conftest.beam ;;
15207 esac
15208 fi
15209 rm -f core conftest.err conftest.$ac_objext conftest.beam
15210 fi
15211 ac_cv_sys_largefile_opts=$ac_opt
15212 ac_opt_found=yes
15213 fi
15214 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15215 test $ac_opt_found = no || break
15216 done
15217 CC="$ac_save_CC"
15218
15219 test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;;
15220 esac
15221 fi
15222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5
15223 printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; }
15224
15225 ac_have_largefile=yes
15226 case $ac_cv_sys_largefile_opts in #(
15227 "none needed") :
15228 ;; #(
15229 "supported through gnulib") :
15230 ;; #(
15231 "support not detected") :
15232 ac_have_largefile=no ;; #(
15233 "-D_FILE_OFFSET_BITS=64") :
15234
15235 printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
15236 ;; #(
15237 "-D_LARGE_FILES=1") :
15238
15239 printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h
15240 ;; #(
15241 "-n32") :
15242 CC="$CC -n32" ;; #(
15243 *) :
15244 as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;;
15245 esac
15246
15247 if test "$enable_year2038" != no
15248 then :
15249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option for timestamps after 2038" >&5
15250 printf %s "checking for $CC option for timestamps after 2038... " >&6; }
15251 if test ${ac_cv_sys_year2038_opts+y}
15252 then :
15253 printf %s "(cached) " >&6
15254 else case e in #(
15255 e) ac_save_CPPFLAGS="$CPPFLAGS"
15256 ac_opt_found=no
15257 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
15258 if test x"$ac_opt" != x"none needed"
15259 then :
15260 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
15261 fi
15262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15263 /* end confdefs.h. */
15264
15265 #include <time.h>
15266 /* Check that time_t can represent 2**32 - 1 correctly. */
15267 #define LARGE_TIME_T \\
15268 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
15269 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
15270 && LARGE_TIME_T % 65537 == 0)
15271 ? 1 : -1];
15272
15273 int
15274 main (void)
15275 {
15276
15277 ;
15278 return 0;
15279 }
15280 _ACEOF
15281 if ac_fn_c_try_compile "$LINENO"
15282 then :
15283 ac_cv_sys_year2038_opts="$ac_opt"
15284 ac_opt_found=yes
15285 fi
15286 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15287 test $ac_opt_found = no || break
15288 done
15289 CPPFLAGS="$ac_save_CPPFLAGS"
15290 test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;;
15291 esac
15292 fi
15293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5
15294 printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; }
15295
15296 ac_have_year2038=yes
15297 case $ac_cv_sys_year2038_opts in #(
15298 "none needed") :
15299 ;; #(
15300 "support not detected") :
15301 ac_have_year2038=no ;; #(
15302 "-D_TIME_BITS=64") :
15303
15304 printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h
15305 ;; #(
15306 "-D__MINGW_USE_VC2005_COMPAT") :
15307
15308 printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h
15309 ;; #(
15310 "-U_USE_32_BIT_TIME_T"*) :
15311 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
15312 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
15313 as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It
15314 will stop working after mid-January 2038. Remove
15315 _USE_32BIT_TIME_T from the compiler flags.
15316 See 'config.log' for more details" "$LINENO" 5; } ;; #(
15317 *) :
15318 as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;;
15319 esac
15320
15321 fi
15322
15323 fi
15324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for declarations of fseeko and ftello" >&5
15325 printf %s "checking for declarations of fseeko and ftello... " >&6; }
15326 if test ${ac_cv_func_fseeko_ftello+y}
15327 then :
15328 printf %s "(cached) " >&6
15329 else case e in #(
15330 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15331 /* end confdefs.h. */
15332
15333 #if defined __hpux && !defined _LARGEFILE_SOURCE
15334 # include <limits.h>
15335 # if LONG_MAX >> 31 == 0
15336 # error "32-bit HP-UX 11/ia64 needs _LARGEFILE_SOURCE for fseeko in C++"
15337 # endif
15338 #endif
15339 #include <sys/types.h> /* for off_t */
15340 #include <stdio.h>
15341
15342 int
15343 main (void)
15344 {
15345
15346 int (*fp1) (FILE *, off_t, int) = fseeko;
15347 off_t (*fp2) (FILE *) = ftello;
15348 return fseeko (stdin, 0, 0)
15349 && fp1 (stdin, 0, 0)
15350 && ftello (stdin) >= 0
15351 && fp2 (stdin) >= 0;
15352
15353 ;
15354 return 0;
15355 }
15356 _ACEOF
15357 if ac_fn_c_try_compile "$LINENO"
15358 then :
15359 ac_cv_func_fseeko_ftello=yes
15360 else case e in #(
15361 e) ac_save_CPPFLAGS="$CPPFLAGS"
15362 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE=1"
15363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15364 /* end confdefs.h. */
15365
15366 #if defined __hpux && !defined _LARGEFILE_SOURCE
15367 # include <limits.h>
15368 # if LONG_MAX >> 31 == 0
15369 # error "32-bit HP-UX 11/ia64 needs _LARGEFILE_SOURCE for fseeko in C++"
15370 # endif
15371 #endif
15372 #include <sys/types.h> /* for off_t */
15373 #include <stdio.h>
15374
15375 int
15376 main (void)
15377 {
15378
15379 int (*fp1) (FILE *, off_t, int) = fseeko;
15380 off_t (*fp2) (FILE *) = ftello;
15381 return fseeko (stdin, 0, 0)
15382 && fp1 (stdin, 0, 0)
15383 && ftello (stdin) >= 0
15384 && fp2 (stdin) >= 0;
15385
15386 ;
15387 return 0;
15388 }
15389 _ACEOF
15390 if ac_fn_c_try_compile "$LINENO"
15391 then :
15392 ac_cv_func_fseeko_ftello="need _LARGEFILE_SOURCE"
15393 else case e in #(
15394 e) ac_cv_func_fseeko_ftello=no ;;
15395 esac
15396 fi
15397 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15398 esac
15399 fi
15400 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15401 esac
15402 fi
15403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fseeko_ftello" >&5
15404 printf "%s\n" "$ac_cv_func_fseeko_ftello" >&6; }
15405 if test "$ac_cv_func_fseeko_ftello" != no
15406 then :
15407
15408 printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h
15409
15410 fi
15411 if test "$ac_cv_func_fseeko_ftello" = "need _LARGEFILE_SOURCE"
15412 then :
15413
15414 printf "%s\n" "#define _LARGEFILE_SOURCE 1" >>confdefs.h
15415
15416 fi
15417
15418 ac_header_dirent=no
15419 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15420 as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | sed "$as_sed_sh"`
15421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
15422 printf %s "checking for $ac_hdr that defines DIR... " >&6; }
15423 if eval test \${$as_ac_Header+y}
15424 then :
15425 printf %s "(cached) " >&6
15426 else case e in #(
15427 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15428 /* end confdefs.h. */
15429 #include <sys/types.h>
15430 #include <$ac_hdr>
15431
15432 int
15433 main (void)
15434 {
15435 if ((DIR *) 0)
15436 return 0;
15437 ;
15438 return 0;
15439 }
15440 _ACEOF
15441 if ac_fn_c_try_compile "$LINENO"
15442 then :
15443 eval "$as_ac_Header=yes"
15444 else case e in #(
15445 e) eval "$as_ac_Header=no" ;;
15446 esac
15447 fi
15448 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15449 esac
15450 fi
15451 eval ac_res=\$$as_ac_Header
15452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15453 printf "%s\n" "$ac_res" >&6; }
15454 if eval test \"x\$"$as_ac_Header"\" = x"yes"
15455 then :
15456 cat >>confdefs.h <<_ACEOF
15457 #define `printf "%s\n" "HAVE_$ac_hdr" | sed "$as_sed_cpp"` 1
15458 _ACEOF
15459
15460 ac_header_dirent=$ac_hdr; break
15461 fi
15462
15463 done
15464 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15465 if test $ac_header_dirent = dirent.h; then
15466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
15467 printf %s "checking for library containing opendir... " >&6; }
15468 if test ${ac_cv_search_opendir+y}
15469 then :
15470 printf %s "(cached) " >&6
15471 else case e in #(
15472 e) ac_func_search_save_LIBS=$LIBS
15473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15474 /* end confdefs.h. */
15475
15476 /* Override any GCC internal prototype to avoid an error.
15477 Use char because int might match the return type of a GCC
15478 builtin and then its argument prototype would still apply.
15479 The 'extern "C"' is for builds by C++ compilers;
15480 although this is not generally supported in C code supporting it here
15481 has little cost and some practical benefit (sr 110532). */
15482 #ifdef __cplusplus
15483 extern "C"
15484 #endif
15485 char opendir (void);
15486 int
15487 main (void)
15488 {
15489 return opendir ();
15490 ;
15491 return 0;
15492 }
15493 _ACEOF
15494 for ac_lib in '' dir
15495 do
15496 if test -z "$ac_lib"; then
15497 ac_res="none required"
15498 else
15499 ac_res=-l$ac_lib
15500 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15501 fi
15502 if ac_fn_c_try_link "$LINENO"
15503 then :
15504 ac_cv_search_opendir=$ac_res
15505 fi
15506 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15507 conftest$ac_exeext
15508 if test ${ac_cv_search_opendir+y}
15509 then :
15510 break
15511 fi
15512 done
15513 if test ${ac_cv_search_opendir+y}
15514 then :
15515
15516 else case e in #(
15517 e) ac_cv_search_opendir=no ;;
15518 esac
15519 fi
15520 rm conftest.$ac_ext
15521 LIBS=$ac_func_search_save_LIBS ;;
15522 esac
15523 fi
15524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15525 printf "%s\n" "$ac_cv_search_opendir" >&6; }
15526 ac_res=$ac_cv_search_opendir
15527 if test "$ac_res" != no
15528 then :
15529 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15530
15531 fi
15532
15533 else
15534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
15535 printf %s "checking for library containing opendir... " >&6; }
15536 if test ${ac_cv_search_opendir+y}
15537 then :
15538 printf %s "(cached) " >&6
15539 else case e in #(
15540 e) ac_func_search_save_LIBS=$LIBS
15541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15542 /* end confdefs.h. */
15543
15544 /* Override any GCC internal prototype to avoid an error.
15545 Use char because int might match the return type of a GCC
15546 builtin and then its argument prototype would still apply.
15547 The 'extern "C"' is for builds by C++ compilers;
15548 although this is not generally supported in C code supporting it here
15549 has little cost and some practical benefit (sr 110532). */
15550 #ifdef __cplusplus
15551 extern "C"
15552 #endif
15553 char opendir (void);
15554 int
15555 main (void)
15556 {
15557 return opendir ();
15558 ;
15559 return 0;
15560 }
15561 _ACEOF
15562 for ac_lib in '' x
15563 do
15564 if test -z "$ac_lib"; then
15565 ac_res="none required"
15566 else
15567 ac_res=-l$ac_lib
15568 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15569 fi
15570 if ac_fn_c_try_link "$LINENO"
15571 then :
15572 ac_cv_search_opendir=$ac_res
15573 fi
15574 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15575 conftest$ac_exeext
15576 if test ${ac_cv_search_opendir+y}
15577 then :
15578 break
15579 fi
15580 done
15581 if test ${ac_cv_search_opendir+y}
15582 then :
15583
15584 else case e in #(
15585 e) ac_cv_search_opendir=no ;;
15586 esac
15587 fi
15588 rm conftest.$ac_ext
15589 LIBS=$ac_func_search_save_LIBS ;;
15590 esac
15591 fi
15592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15593 printf "%s\n" "$ac_cv_search_opendir" >&6; }
15594 ac_res=$ac_cv_search_opendir
15595 if test "$ac_res" != no
15596 then :
15597 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15598
15599 fi
15600
15601 fi
15602
15603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
15604 printf %s "checking whether closedir returns void... " >&6; }
15605 if test ${ac_cv_func_closedir_void+y}
15606 then :
15607 printf %s "(cached) " >&6
15608 else case e in #(
15609 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15610 /* end confdefs.h. */
15611
15612 #include <$ac_header_dirent>
15613
15614 int
15615 main (void)
15616 {
15617
15618 return closedir(0);
15619
15620 ;
15621 return 0;
15622 }
15623 _ACEOF
15624 if ac_fn_c_try_compile "$LINENO"
15625 then :
15626 ac_cv_func_closedir_void=no
15627 else case e in #(
15628 e) ac_cv_func_closedir_void=yes ;;
15629 esac
15630 fi
15631 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15632 esac
15633 fi
15634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
15635 printf "%s\n" "$ac_cv_func_closedir_void" >&6; }
15636 if test $ac_cv_func_closedir_void = yes; then
15637
15638 printf "%s\n" "#define CLOSEDIR_VOID 1" >>confdefs.h
15639
15640 fi
15641
15642 ac_fn_c_check_header_compile "$LINENO" "assert.h" "ac_cv_header_assert_h" "$ac_includes_default"
15643 if test "x$ac_cv_header_assert_h" = xyes
15644 then :
15645 printf "%s\n" "#define HAVE_ASSERT_H 1" >>confdefs.h
15646
15647 fi
15648 ac_fn_c_check_header_compile "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
15649 if test "x$ac_cv_header_float_h" = xyes
15650 then :
15651 printf "%s\n" "#define HAVE_FLOAT_H 1" >>confdefs.h
15652
15653 fi
15654 ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
15655 if test "x$ac_cv_header_limits_h" = xyes
15656 then :
15657 printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
15658
15659 fi
15660 ac_fn_c_check_header_compile "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default"
15661 if test "x$ac_cv_header_pwd_h" = xyes
15662 then :
15663 printf "%s\n" "#define HAVE_PWD_H 1" >>confdefs.h
15664
15665 fi
15666 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
15667 if test "x$ac_cv_header_stdlib_h" = xyes
15668 then :
15669 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
15670
15671 fi
15672 ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
15673 if test "x$ac_cv_header_sys_param_h" = xyes
15674 then :
15675 printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
15676
15677 fi
15678
15679 ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
15680 if test "x$ac_cv_func_putenv" = xyes
15681 then :
15682 printf "%s\n" "#define HAVE_PUTENV 1" >>confdefs.h
15683
15684 fi
15685
15686 ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
15687 if test "x$ac_cv_func_getcwd" = xyes
15688 then :
15689 printf "%s\n" "#define HAVE_GETCWD 1" >>confdefs.h
15690
15691 fi
15692 ac_fn_c_check_func "$LINENO" "memcmp" "ac_cv_func_memcmp"
15693 if test "x$ac_cv_func_memcmp" = xyes
15694 then :
15695 printf "%s\n" "#define HAVE_MEMCMP 1" >>confdefs.h
15696
15697 fi
15698 ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
15699 if test "x$ac_cv_func_memcpy" = xyes
15700 then :
15701 printf "%s\n" "#define HAVE_MEMCPY 1" >>confdefs.h
15702
15703 fi
15704 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
15705 if test "x$ac_cv_func_mkstemp" = xyes
15706 then :
15707 printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h
15708
15709 fi
15710 ac_fn_c_check_func "$LINENO" "mktemp" "ac_cv_func_mktemp"
15711 if test "x$ac_cv_func_mktemp" = xyes
15712 then :
15713 printf "%s\n" "#define HAVE_MKTEMP 1" >>confdefs.h
15714
15715 fi
15716 ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
15717 if test "x$ac_cv_func_strchr" = xyes
15718 then :
15719 printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
15720
15721 fi
15722 ac_fn_c_check_func "$LINENO" "strrchr" "ac_cv_func_strrchr"
15723 if test "x$ac_cv_func_strrchr" = xyes
15724 then :
15725 printf "%s\n" "#define HAVE_STRRCHR 1" >>confdefs.h
15726
15727 fi
15728
15729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
15730 printf %s "checking for an ANSI C-conforming const... " >&6; }
15731 if test ${ac_cv_c_const+y}
15732 then :
15733 printf %s "(cached) " >&6
15734 else case e in #(
15735 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15736 /* end confdefs.h. */
15737
15738 int
15739 main (void)
15740 {
15741
15742 #ifndef __cplusplus
15743 /* Ultrix mips cc rejects this sort of thing. */
15744 typedef int charset[2];
15745 const charset cs = { 0, 0 };
15746 /* SunOS 4.1.1 cc rejects this. */
15747 char const *const *pcpcc;
15748 char **ppc;
15749 /* NEC SVR4.0.2 mips cc rejects this. */
15750 struct point {int x, y;};
15751 static struct point const zero = {0,0};
15752 /* IBM XL C 1.02.0.0 rejects this.
15753 It does not let you subtract one const X* pointer from another in
15754 an arm of an if-expression whose if-part is not a constant
15755 expression */
15756 const char *g = "string";
15757 pcpcc = &g + (g ? g-g : 0);
15758 /* HPUX 7.0 cc rejects these. */
15759 ++pcpcc;
15760 ppc = (char**) pcpcc;
15761 pcpcc = (char const *const *) ppc;
15762 { /* SCO 3.2v4 cc rejects this sort of thing. */
15763 char tx;
15764 char *t = &tx;
15765 char const *s = 0 ? (char *) 0 : (char const *) 0;
15766
15767 *t++ = 0;
15768 if (s) return 0;
15769 }
15770 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15771 int x[] = {25, 17};
15772 const int *foo = &x[0];
15773 ++foo;
15774 }
15775 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15776 typedef const int *iptr;
15777 iptr p = 0;
15778 ++p;
15779 }
15780 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
15781 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15782 struct s { int j; const int *ap[3]; } bx;
15783 struct s *b = &bx; b->j = 5;
15784 }
15785 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15786 const int foo = 10;
15787 if (!foo) return 0;
15788 }
15789 return !cs[0] && !zero.x;
15790 #endif
15791
15792 ;
15793 return 0;
15794 }
15795 _ACEOF
15796 if ac_fn_c_try_compile "$LINENO"
15797 then :
15798 ac_cv_c_const=yes
15799 else case e in #(
15800 e) ac_cv_c_const=no ;;
15801 esac
15802 fi
15803 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15804 esac
15805 fi
15806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
15807 printf "%s\n" "$ac_cv_c_const" >&6; }
15808 if test $ac_cv_c_const = no; then
15809
15810 printf "%s\n" "#define const /**/" >>confdefs.h
15811
15812 fi
15813
15814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15815 printf %s "checking for inline... " >&6; }
15816 if test ${ac_cv_c_inline+y}
15817 then :
15818 printf %s "(cached) " >&6
15819 else case e in #(
15820 e) ac_cv_c_inline=no
15821 for ac_kw in inline __inline__ __inline; do
15822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15823 /* end confdefs.h. */
15824 #ifndef __cplusplus
15825 typedef int foo_t;
15826 static $ac_kw foo_t static_foo (void) {return 0; }
15827 $ac_kw foo_t foo (void) {return 0; }
15828 #endif
15829
15830 _ACEOF
15831 if ac_fn_c_try_compile "$LINENO"
15832 then :
15833 ac_cv_c_inline=$ac_kw
15834 fi
15835 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15836 test "$ac_cv_c_inline" != no && break
15837 done
15838 ;;
15839 esac
15840 fi
15841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15842 printf "%s\n" "$ac_cv_c_inline" >&6; }
15843
15844 case $ac_cv_c_inline in
15845 inline | yes) ;;
15846 *)
15847 case $ac_cv_c_inline in
15848 no) ac_val=;;
15849 *) ac_val=$ac_cv_c_inline;;
15850 esac
15851 cat >>confdefs.h <<_ACEOF
15852 #ifndef __cplusplus
15853 #define inline $ac_val
15854 #endif
15855 _ACEOF
15856 ;;
15857 esac
15858
15859 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15860 if test "x$ac_cv_type_size_t" = xyes
15861 then :
15862
15863 else case e in #(
15864 e)
15865 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
15866 ;;
15867 esac
15868 fi
15869
15870 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
15871 case $ac_cv_c_int64_t in #(
15872 no|yes) ;; #(
15873 *)
15874
15875 printf "%s\n" "#define int64_t $ac_cv_c_int64_t" >>confdefs.h
15876 ;;
15877 esac
15878
15879 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
15880 case $ac_cv_c_uint64_t in #(
15881 no|yes) ;; #(
15882 *)
15883
15884 printf "%s\n" "#define _UINT64_T 1" >>confdefs.h
15885
15886
15887 printf "%s\n" "#define uint64_t $ac_cv_c_uint64_t" >>confdefs.h
15888 ;;
15889 esac
15890
15891 case :$ac_cv_c_int64_t:$ac_cv_c_int64_t: in #(
15892 *':no:'*) :
15893 as_fn_error $? "Sorry, your compiler does not support 64-bit integer types." "$LINENO" 5 ;; #(
15894 *) :
15895 ;;
15896 esac
15897 ac_fn_check_decl "$LINENO" "isascii" "ac_cv_have_decl_isascii" "#include <ctype.h>
15898 " "$ac_c_undeclared_builtin_options" "CFLAGS"
15899 if test "x$ac_cv_have_decl_isascii" = xyes
15900 then :
15901 ac_have_decl=1
15902 else case e in #(
15903 e) ac_have_decl=0 ;;
15904 esac
15905 fi
15906 printf "%s\n" "#define HAVE_DECL_ISASCII $ac_have_decl" >>confdefs.h
15907
15908 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
15909 if test "x$ac_cv_member_struct_stat_st_mtim" = xyes
15910 then :
15911
15912 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_MTIM 1" >>confdefs.h
15913
15914
15915 fi
15916
15917
15918
15919 ## texk/kpathsea/ac/mktex.ac: configure.ac fragment for the TeX Live
15920 ## subdirectory texk/kpathsea.
15921 ## configure defaults for mktexfmt & Co.
15922 # Check whether --enable-mktexmf-default was given.
15923 if test ${enable_mktexmf_default+y}
15924 then :
15925 enableval=$enable_mktexmf_default;
15926 fi
15927 # Check whether --enable-mktexpk-default was given.
15928 if test ${enable_mktexpk_default+y}
15929 then :
15930 enableval=$enable_mktexpk_default;
15931 fi
15932 # Check whether --enable-mktextfm-default was given.
15933 if test ${enable_mktextfm_default+y}
15934 then :
15935 enableval=$enable_mktextfm_default;
15936 fi
15937 # Check whether --enable-mkocp-default was given.
15938 if test ${enable_mkocp_default+y}
15939 then :
15940 enableval=$enable_mkocp_default;
15941 fi
15942 # Check whether --enable-mkofm-default was given.
15943 if test ${enable_mkofm_default+y}
15944 then :
15945 enableval=$enable_mkofm_default;
15946 fi
15947 # Check whether --enable-mktexfmt-default was given.
15948 if test ${enable_mktexfmt_default+y}
15949 then :
15950 enableval=$enable_mktexfmt_default;
15951 fi
15952 # Check whether --enable-mktextex-default was given.
15953 if test ${enable_mktextex_default+y}
15954 then :
15955 enableval=$enable_mktextex_default;
15956 fi
15957
15958
15959 case $enable_mktexmf_default in #(
15960 yes | no) :
15961 ;; #(
15962 *) :
15963 enable_mktexmf_default=yes ;;
15964 esac
15965 if test "x$enable_mktexmf_default" = xyes
15966 then :
15967
15968 printf "%s\n" "#define MAKE_TEX_MF_BY_DEFAULT 1" >>confdefs.h
15969
15970 else case e in #(
15971 e) printf "%s\n" "#define MAKE_TEX_MF_BY_DEFAULT 0" >>confdefs.h
15972 ;;
15973 esac
15974 fi
15975 case $enable_mktexpk_default in #(
15976 yes | no) :
15977 ;; #(
15978 *) :
15979 enable_mktexpk_default=yes ;;
15980 esac
15981 if test "x$enable_mktexpk_default" = xyes
15982 then :
15983
15984 printf "%s\n" "#define MAKE_TEX_PK_BY_DEFAULT 1" >>confdefs.h
15985
15986 else case e in #(
15987 e) printf "%s\n" "#define MAKE_TEX_PK_BY_DEFAULT 0" >>confdefs.h
15988 ;;
15989 esac
15990 fi
15991 case $enable_mktextfm_default in #(
15992 yes | no) :
15993 ;; #(
15994 *) :
15995 enable_mktextfm_default=yes ;;
15996 esac
15997 if test "x$enable_mktextfm_default" = xyes
15998 then :
15999
16000 printf "%s\n" "#define MAKE_TEX_TFM_BY_DEFAULT 1" >>confdefs.h
16001
16002 else case e in #(
16003 e) printf "%s\n" "#define MAKE_TEX_TFM_BY_DEFAULT 0" >>confdefs.h
16004 ;;
16005 esac
16006 fi
16007 case $enable_mkocp_default in #(
16008 yes | no) :
16009 ;; #(
16010 *) :
16011 enable_mkocp_default=yes ;;
16012 esac
16013 if test "x$enable_mkocp_default" = xyes
16014 then :
16015
16016 printf "%s\n" "#define MAKE_OMEGA_OCP_BY_DEFAULT 1" >>confdefs.h
16017
16018 else case e in #(
16019 e) printf "%s\n" "#define MAKE_OMEGA_OCP_BY_DEFAULT 0" >>confdefs.h
16020 ;;
16021 esac
16022 fi
16023 case $enable_mkofm_default in #(
16024 yes | no) :
16025 ;; #(
16026 *) :
16027 enable_mkofm_default=yes ;;
16028 esac
16029 if test "x$enable_mkofm_default" = xyes
16030 then :
16031
16032 printf "%s\n" "#define MAKE_OMEGA_OFM_BY_DEFAULT 1" >>confdefs.h
16033
16034 else case e in #(
16035 e) printf "%s\n" "#define MAKE_OMEGA_OFM_BY_DEFAULT 0" >>confdefs.h
16036 ;;
16037 esac
16038 fi
16039 case $enable_mktexfmt_default in #(
16040 yes | no) :
16041 ;; #(
16042 *) :
16043 enable_mktexfmt_default=yes ;;
16044 esac
16045 if test "x$enable_mktexfmt_default" = xyes
16046 then :
16047
16048 printf "%s\n" "#define MAKE_TEX_FMT_BY_DEFAULT 1" >>confdefs.h
16049
16050 else case e in #(
16051 e) printf "%s\n" "#define MAKE_TEX_FMT_BY_DEFAULT 0" >>confdefs.h
16052 ;;
16053 esac
16054 fi
16055 case $enable_mktextex_default in #(
16056 yes | no) :
16057 ;; #(
16058 *) :
16059 enable_mktextex_default=no ;;
16060 esac
16061 if test "x$enable_mktextex_default" = xyes
16062 then :
16063
16064 printf "%s\n" "#define MAKE_TEX_TEX_BY_DEFAULT 1" >>confdefs.h
16065
16066 else case e in #(
16067 e) printf "%s\n" "#define MAKE_TEX_TEX_BY_DEFAULT 0" >>confdefs.h
16068 ;;
16069 esac
16070 fi
16071
16072 # So we can use reasonable awk in the Makefile.
16073 for ac_prog in gawk mawk nawk awk
16074 do
16075 # Extract the first word of "$ac_prog", so it can be a program name with args.
16076 set dummy $ac_prog; ac_word=$2
16077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16078 printf %s "checking for $ac_word... " >&6; }
16079 if test ${ac_cv_prog_AWK+y}
16080 then :
16081 printf %s "(cached) " >&6
16082 else case e in #(
16083 e) if test -n "$AWK"; then
16084 ac_cv_prog_AWK="$AWK" # Let the user override the test.
16085 else
16086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16087 for as_dir in $PATH
16088 do
16089 IFS=$as_save_IFS
16090 case $as_dir in #(((
16091 '') as_dir=./ ;;
16092 */) ;;
16093 *) as_dir=$as_dir/ ;;
16094 esac
16095 for ac_exec_ext in '' $ac_executable_extensions; do
16096 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16097 ac_cv_prog_AWK="$ac_prog"
16098 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16099 break 2
16100 fi
16101 done
16102 done
16103 IFS=$as_save_IFS
16104
16105 fi ;;
16106 esac
16107 fi
16108 AWK=$ac_cv_prog_AWK
16109 if test -n "$AWK"; then
16110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
16111 printf "%s\n" "$AWK" >&6; }
16112 else
16113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16114 printf "%s\n" "no" >&6; }
16115 fi
16116
16117
16118 test -n "$AWK" && break
16119 done
16120
16121
16122 # The cast to long int works around a bug in the HP C Compiler
16123 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16124 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
16125 # This bug is HP SR number 8606223364.
16126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
16127 printf %s "checking size of long... " >&6; }
16128 if test ${ac_cv_sizeof_long+y}
16129 then :
16130 printf %s "(cached) " >&6
16131 else case e in #(
16132 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"
16133 then :
16134
16135 else case e in #(
16136 e) if test "$ac_cv_type_long" = yes; then
16137 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
16138 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
16139 as_fn_error 77 "cannot compute sizeof (long)
16140 See 'config.log' for more details" "$LINENO" 5; }
16141 else
16142 ac_cv_sizeof_long=0
16143 fi ;;
16144 esac
16145 fi
16146 ;;
16147 esac
16148 fi
16149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16150 printf "%s\n" "$ac_cv_sizeof_long" >&6; }
16151
16152
16153
16154 printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h
16155
16156
16157
16158 ac_fn_check_decl "$LINENO" "putenv" "ac_cv_have_decl_putenv" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
16159 if test "x$ac_cv_have_decl_putenv" = xyes
16160 then :
16161 ac_have_decl=1
16162 else case e in #(
16163 e) ac_have_decl=0 ;;
16164 esac
16165 fi
16166 printf "%s\n" "#define HAVE_DECL_PUTENV $ac_have_decl" >>confdefs.h
16167
16168 ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
16169 if test "x$ac_cv_func_putenv" = xyes
16170 then :
16171 printf "%s\n" "#define HAVE_PUTENV 1" >>confdefs.h
16172
16173 else case e in #(
16174 e) case " $LIBOBJS " in
16175 *" putenv.$ac_objext "* ) ;;
16176 *) LIBOBJS="$LIBOBJS putenv.$ac_objext"
16177 ;;
16178 esac
16179 ;;
16180 esac
16181 fi
16182
16183
16184 if test "x$ac_cv_func_getcwd" = xyes; then
16185 # We only need to run this if we have getcwd.
16186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether getcwd uses fork or vfork" >&5
16187 printf %s "checking whether getcwd uses fork or vfork... " >&6; }
16188 if test ${kb_cv_func_getcwd_forks+y}
16189 then :
16190 printf %s "(cached) " >&6
16191 else case e in #(
16192 e) if test "$cross_compiling" = yes
16193 then :
16194 kb_cv_func_getcwd_forks=no
16195 else case e in #(
16196 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16197 /* end confdefs.h. */
16198 #include <stdlib.h>
16199 int fork() { exit(1); }
16200 int vfork() { exit(1); }
16201 extern char *getcwd();
16202 char path[100];
16203 int
16204 main (void)
16205 {
16206 getcwd(path,100);
16207 ;
16208 return 0;
16209 }
16210 _ACEOF
16211 if ac_fn_c_try_run "$LINENO"
16212 then :
16213 kb_cv_func_getcwd_forks=no
16214 else case e in #(
16215 e) kb_cv_func_getcwd_forks=yes ;;
16216 esac
16217 fi
16218 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16219 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16220 esac
16221 fi
16222 ;;
16223 esac
16224 fi
16225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kb_cv_func_getcwd_forks" >&5
16226 printf "%s\n" "$kb_cv_func_getcwd_forks" >&6; }
16227 if test "x$kb_cv_func_getcwd_forks" = xyes; then
16228
16229 printf "%s\n" "#define GETCWD_FORKS 1" >>confdefs.h
16230
16231 fi
16232 fi
16233
16234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for native WIN32 or MINGW32" >&5
16235 printf %s "checking for native WIN32 or MINGW32... " >&6; }
16236 if test ${kpse_cv_have_win32+y}
16237 then :
16238 printf %s "(cached) " >&6
16239 else case e in #(
16240 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16241 /* end confdefs.h. */
16242 #ifndef WIN32
16243 choke me
16244 #endif
16245 int
16246 main (void)
16247 {
16248
16249 ;
16250 return 0;
16251 }
16252 _ACEOF
16253 if ac_fn_c_try_compile "$LINENO"
16254 then :
16255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16256 /* end confdefs.h. */
16257 #ifndef __MINGW32__
16258 choke me
16259 #endif
16260 int
16261 main (void)
16262 {
16263
16264 ;
16265 return 0;
16266 }
16267 _ACEOF
16268 if ac_fn_c_try_compile "$LINENO"
16269 then :
16270 kpse_cv_have_win32=mingw32
16271 else case e in #(
16272 e) kpse_cv_have_win32=native ;;
16273 esac
16274 fi
16275 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16276 else case e in #(
16277 e) kpse_cv_have_win32=no ;;
16278 esac
16279 fi
16280 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16281 esac
16282 fi
16283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_have_win32" >&5
16284 printf "%s\n" "$kpse_cv_have_win32" >&6; }
16285
16286 if test "x$kpse_cv_have_win32" != xno; then
16287 WIN32_TRUE=
16288 WIN32_FALSE='#'
16289 else
16290 WIN32_TRUE='#'
16291 WIN32_FALSE=
16292 fi
16293
16294
16295 if test "x$kpse_cv_have_win32" = xmingw32; then
16296 MINGW32_TRUE=
16297 MINGW32_FALSE='#'
16298 else
16299 MINGW32_TRUE='#'
16300 MINGW32_FALSE=
16301 fi
16302
16303
16304
16305 LT_OBJDIR="$lt_cv_objdir"
16306
16307
16308 # Checking snprintf and vsnprintf
16309
16310 # Check whether --with-snprintf-wrapper was given.
16311 if test ${with_snprintf_wrapper+y}
16312 then :
16313 withval=$with_snprintf_wrapper; kpse_cv_wrap_snprintf=$withval
16314 else case e in #(
16315 e) test "x$kpse_cv_have_win32" != xno && kpse_cv_wrap_snprintf=yes ;;
16316 esac
16317 fi
16318 if test "x$kpse_cv_have_win32" = xno; then
16319 snfunc=snprintf vsnfunc=vsnprintf
16320 else
16321 snfunc=_snprintf vsnfunc=_vsnprintf
16322 fi
16323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $snfunc and $vsnfunc" >&5
16324 printf %s "checking for $snfunc and $vsnfunc... " >&6; }
16325 if test ${kpse_cv_have_snfuncs+y}
16326 then :
16327 printf %s "(cached) " >&6
16328 else case e in #(
16329 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16330 /* end confdefs.h. */
16331 #include <stdarg.h>
16332 #include <stdio.h>
16333 char buf[16];
16334 va_list ap;
16335 int
16336 main (void)
16337 {
16338 $snfunc (buf, 16, "%s", "abc");
16339 $vsnfunc (buf, 16, "%s", ap);
16340 ;
16341 return 0;
16342 }
16343 _ACEOF
16344 if ac_fn_c_try_link "$LINENO"
16345 then :
16346 kpse_cv_have_snfuncs=yes
16347 else case e in #(
16348 e) kpse_cv_have_snfuncs=no ;;
16349 esac
16350 fi
16351 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16352 conftest$ac_exeext conftest.$ac_ext ;;
16353 esac
16354 fi
16355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_have_snfuncs" >&5
16356 printf "%s\n" "$kpse_cv_have_snfuncs" >&6; }
16357 if test "x$kpse_cv_have_snfuncs" != xyes; then
16358 as_fn_error $? "Sorry, you need $snfunc and $vsnfunc." "$LINENO" 5
16359 fi
16360 if test "$cross_compiling" = yes
16361 then :
16362 :
16363 else case e in #(
16364 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16365 /* end confdefs.h. */
16366 #include <stdarg.h>
16367 #include <stdio.h>
16368 char buf[4] = "abc";
16369 int
16370 main (void)
16371 {
16372 if ($snfunc (buf, 1, "%s", "x") == 0 || buf[1] != 'b')
16373 return 1;
16374 ;
16375 return 0;
16376 }
16377 _ACEOF
16378 if ac_fn_c_try_run "$LINENO"
16379 then :
16380
16381 else case e in #(
16382 e) as_fn_error $? "Sorry, your $snfunc is badly broken." "$LINENO" 5 ;;
16383 esac
16384 fi
16385 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16386 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16387 esac
16388 fi
16389
16390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we need (v)snprintf wrapper functions" >&5
16391 printf %s "checking if we need (v)snprintf wrapper functions... " >&6; }
16392 if test ${kpse_cv_wrap_snprintf+y}
16393 then :
16394 printf %s "(cached) " >&6
16395 else case e in #(
16396 e) if test "$cross_compiling" = yes
16397 then :
16398 kpse_cv_wrap_snprintf=no
16399 else case e in #(
16400 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16401 /* end confdefs.h. */
16402 #include <stdarg.h>
16403 #include <stdio.h>
16404 char buf[4] = "abc";
16405 int
16406 main (void)
16407 {
16408 $snfunc (buf, 3, "xyz");
16409 if (buf[2] != 0) return 1;
16410 $snfunc (buf, 2, "xyz");
16411 if (buf[1] != 0) return 1;
16412 ;
16413 return 0;
16414 }
16415 _ACEOF
16416 if ac_fn_c_try_run "$LINENO"
16417 then :
16418 kpse_cv_wrap_snprintf=no
16419 else case e in #(
16420 e) kpse_cv_wrap_snprintf=yes ;;
16421 esac
16422 fi
16423 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16424 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16425 esac
16426 fi
16427 ;;
16428 esac
16429 fi
16430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_wrap_snprintf" >&5
16431 printf "%s\n" "$kpse_cv_wrap_snprintf" >&6; }
16432 if test "x$kpse_cv_wrap_snprintf" = xyes; then
16433
16434 printf "%s\n" "#define WRAP_SNPRINTF 1" >>confdefs.h
16435
16436 fi
16437
16438 if test -n "$EXEEXT"; then
16439 have_EXEEXT_TRUE=
16440 have_EXEEXT_FALSE='#'
16441 else
16442 have_EXEEXT_TRUE='#'
16443 have_EXEEXT_FALSE=
16444 fi
16445
16446
16447 ac_config_headers="$ac_config_headers c-auto.h:c-auto.in"
16448
16449
16450
16451
16452
16453 ac_config_files="$ac_config_files Makefile doc/Makefile man/Makefile win32/Makefile kpathsea.pc"
16454
16455
16456 cat >confcache <<\_ACEOF
16457 # This file is a shell script that caches the results of configure
16458 # tests run on this system so they can be shared between configure
16459 # scripts and configure runs, see configure's option --config-cache.
16460 # It is not useful on other systems. If it contains results you don't
16461 # want to keep, you may remove or edit it.
16462 #
16463 # config.status only pays attention to the cache file if you give it
16464 # the --recheck option to rerun configure.
16465 #
16466 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
16467 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
16468 # following values.
16469
16470 _ACEOF
16471
16472 # The following way of writing the cache mishandles newlines in values,
16473 # but we know of no workaround that is simple, portable, and efficient.
16474 # So, we kill variables containing newlines.
16475 # Ultrix sh set writes to stderr and can't be redirected directly,
16476 # and sets the high bit in the cache file unless we assign to the vars.
16477 (
16478 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16479 eval ac_val=\$$ac_var
16480 case $ac_val in #(
16481 *${as_nl}*)
16482 case $ac_var in #(
16483 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16484 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16485 esac
16486 case $ac_var in #(
16487 _ | IFS | as_nl) ;; #(
16488 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16489 *) { eval $ac_var=; unset $ac_var;} ;;
16490 esac ;;
16491 esac
16492 done
16493
16494 (set) 2>&1 |
16495 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16496 *${as_nl}ac_space=\ *)
16497 # 'set' does not quote correctly, so add quotes: double-quote
16498 # substitution turns \\\\ into \\, and sed turns \\ into \.
16499 sed -n \
16500 "s/'/'\\\\''/g;
16501 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16502 ;; #(
16503 *)
16504 # 'set' quotes correctly as required by POSIX, so do not add quotes.
16505 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16506 ;;
16507 esac |
16508 sort
16509 ) |
16510 sed '
16511 /^ac_cv_env_/b end
16512 t clear
16513 :clear
16514 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
16515 t end
16516 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16517 :end' >>confcache
16518 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16519 if test -w "$cache_file"; then
16520 if test "x$cache_file" != "x/dev/null"; then
16521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16522 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
16523 if test ! -f "$cache_file" || test -h "$cache_file"; then
16524 cat confcache >"$cache_file"
16525 else
16526 case $cache_file in #(
16527 */* | ?:*)
16528 mv -f confcache "$cache_file"$$ &&
16529 mv -f "$cache_file"$$ "$cache_file" ;; #(
16530 *)
16531 mv -f confcache "$cache_file" ;;
16532 esac
16533 fi
16534 fi
16535 else
16536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16537 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
16538 fi
16539 fi
16540 rm -f confcache
16541
16542 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16543 # Let make expand exec_prefix.
16544 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16545
16546 DEFS=-DHAVE_CONFIG_H
16547
16548 ac_libobjs=
16549 ac_ltlibobjs=
16550 U=
16551 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16552 # 1. Remove the extension, and $U if already installed.
16553 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16554 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
16555 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16556 # will be set to the directory where LIBOBJS objects are built.
16557 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16558 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16559 done
16560 LIBOBJS=$ac_libobjs
16561
16562 LTLIBOBJS=$ac_ltlibobjs
16563
16564
16565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16566 printf %s "checking that generated files are newer than configure... " >&6; }
16567 if test -n "$am_sleep_pid"; then
16568 # Hide warnings about reused PIDs.
16569 wait $am_sleep_pid 2>/dev/null
16570 fi
16571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
16572 printf "%s\n" "done" >&6; }
16573 case $enable_silent_rules in # (((
16574 yes) AM_DEFAULT_VERBOSITY=0;;
16575 no) AM_DEFAULT_VERBOSITY=1;;
16576 esac
16577 if test $am_cv_make_support_nested_variables = yes; then
16578 AM_V='$(V)'
16579 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
16580 else
16581 AM_V=$AM_DEFAULT_VERBOSITY
16582 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
16583 fi
16584
16585 if test -n "$EXEEXT"; then
16586 am__EXEEXT_TRUE=
16587 am__EXEEXT_FALSE='#'
16588 else
16589 am__EXEEXT_TRUE='#'
16590 am__EXEEXT_FALSE=
16591 fi
16592
16593 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16594 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16595 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16596 fi
16597 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16598 as_fn_error $? "conditional \"AMDEP\" was never defined.
16599 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16600 fi
16601 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16602 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16603 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16604 fi
16605 # Check whether --enable-year2038 was given.
16606 if test ${enable_year2038+y}
16607 then :
16608 enableval=$enable_year2038;
16609 fi
16610
16611 if test -z "${WIN32_TRUE}" && test -z "${WIN32_FALSE}"; then
16612 as_fn_error $? "conditional \"WIN32\" was never defined.
16613 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16614 fi
16615 if test -z "${MINGW32_TRUE}" && test -z "${MINGW32_FALSE}"; then
16616 as_fn_error $? "conditional \"MINGW32\" was never defined.
16617 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16618 fi
16619 if test -z "${have_EXEEXT_TRUE}" && test -z "${have_EXEEXT_FALSE}"; then
16620 as_fn_error $? "conditional \"have_EXEEXT\" was never defined.
16621 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16622 fi
16623
16624 : "${CONFIG_STATUS=./config.status}"
16625 ac_write_fail=0
16626 ac_clean_files_save=$ac_clean_files
16627 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16629 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
16630 as_write_fail=0
16631 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16632 #! $SHELL
16633 # Generated by $as_me.
16634 # Run this file to recreate the current configuration.
16635 # Compiler output produced by configure, useful for debugging
16636 # configure, is in config.log if it exists.
16637
16638 debug=false
16639 ac_cs_recheck=false
16640 ac_cs_silent=false
16641
16642 SHELL=\${CONFIG_SHELL-$SHELL}
16643 export SHELL
16644 _ASEOF
16645 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16646 ## -------------------- ##
16647 ## M4sh Initialization. ##
16648 ## -------------------- ##
16649
16650 # Be more Bourne compatible
16651 DUALCASE=1; export DUALCASE # for MKS sh
16652 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
16653 then :
16654 emulate sh
16655 NULLCMD=:
16656 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16657 # is contrary to our usage. Disable this feature.
16658 alias -g '${1+"$@"}'='"$@"'
16659 setopt NO_GLOB_SUBST
16660 else case e in #(
16661 e) case `(set -o) 2>/dev/null` in #(
16662 *posix*) :
16663 set -o posix ;; #(
16664 *) :
16665 ;;
16666 esac ;;
16667 esac
16668 fi
16669
16670
16671
16672 # Reset variables that may have inherited troublesome values from
16673 # the environment.
16674
16675 # IFS needs to be set, to space, tab, and newline, in precisely that order.
16676 # (If _AS_PATH_WALK were called with IFS unset, it would have the
16677 # side effect of setting IFS to empty, thus disabling word splitting.)
16678 # Quoting is to prevent editors from complaining about space-tab.
16679 as_nl='
16680 '
16681 export as_nl
16682 IFS=" "" $as_nl"
16683
16684 PS1='$ '
16685 PS2='> '
16686 PS4='+ '
16687
16688 # Ensure predictable behavior from utilities with locale-dependent output.
16689 LC_ALL=C
16690 export LC_ALL
16691 LANGUAGE=C
16692 export LANGUAGE
16693
16694 # We cannot yet rely on "unset" to work, but we need these variables
16695 # to be unset--not just set to an empty or harmless value--now, to
16696 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
16697 # also avoids known problems related to "unset" and subshell syntax
16698 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
16699 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
16700 do eval test \${$as_var+y} \
16701 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16702 done
16703
16704 # Ensure that fds 0, 1, and 2 are open.
16705 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
16706 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
16707 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
16708
16709 # The user is always right.
16710 if ${PATH_SEPARATOR+false} :; then
16711 PATH_SEPARATOR=:
16712 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16713 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16714 PATH_SEPARATOR=';'
16715 }
16716 fi
16717
16718
16719 # Find who we are. Look in the path if we contain no directory separator.
16720 as_myself=
16721 case $0 in #((
16722 *[\\/]* ) as_myself=$0 ;;
16723 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16724 for as_dir in $PATH
16725 do
16726 IFS=$as_save_IFS
16727 case $as_dir in #(((
16728 '') as_dir=./ ;;
16729 */) ;;
16730 *) as_dir=$as_dir/ ;;
16731 esac
16732 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
16733 done
16734 IFS=$as_save_IFS
16735
16736 ;;
16737 esac
16738 # We did not find ourselves, most probably we were run as 'sh COMMAND'
16739 # in which case we are not to be found in the path.
16740 if test "x$as_myself" = x; then
16741 as_myself=$0
16742 fi
16743 if test ! -f "$as_myself"; then
16744 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16745 exit 1
16746 fi
16747
16748
16749
16750 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16751 # ----------------------------------------
16752 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16753 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16754 # script with STATUS, using 1 if that was 0.
16755 as_fn_error ()
16756 {
16757 as_status=$1; test $as_status -eq 0 && as_status=1
16758 if test "$4"; then
16759 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16760 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16761 fi
16762 printf "%s\n" "$as_me: error: $2" >&2
16763 as_fn_exit $as_status
16764 } # as_fn_error
16765
16766
16767 # as_fn_set_status STATUS
16768 # -----------------------
16769 # Set $? to STATUS, without forking.
16770 as_fn_set_status ()
16771 {
16772 return $1
16773 } # as_fn_set_status
16774
16775 # as_fn_exit STATUS
16776 # -----------------
16777 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16778 as_fn_exit ()
16779 {
16780 set +e
16781 as_fn_set_status $1
16782 exit $1
16783 } # as_fn_exit
16784
16785 # as_fn_unset VAR
16786 # ---------------
16787 # Portably unset VAR.
16788 as_fn_unset ()
16789 {
16790 { eval $1=; unset $1;}
16791 }
16792 as_unset=as_fn_unset
16793
16794 # as_fn_append VAR VALUE
16795 # ----------------------
16796 # Append the text in VALUE to the end of the definition contained in VAR. Take
16797 # advantage of any shell optimizations that allow amortized linear growth over
16798 # repeated appends, instead of the typical quadratic growth present in naive
16799 # implementations.
16800 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
16801 then :
16802 eval 'as_fn_append ()
16803 {
16804 eval $1+=\$2
16805 }'
16806 else case e in #(
16807 e) as_fn_append ()
16808 {
16809 eval $1=\$$1\$2
16810 } ;;
16811 esac
16812 fi # as_fn_append
16813
16814 # as_fn_arith ARG...
16815 # ------------------
16816 # Perform arithmetic evaluation on the ARGs, and store the result in the
16817 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16818 # must be portable across $(()) and expr.
16819 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
16820 then :
16821 eval 'as_fn_arith ()
16822 {
16823 as_val=$(( $* ))
16824 }'
16825 else case e in #(
16826 e) as_fn_arith ()
16827 {
16828 as_val=`expr "$@" || test $? -eq 1`
16829 } ;;
16830 esac
16831 fi # as_fn_arith
16832
16833
16834 if expr a : '\(a\)' >/dev/null 2>&1 &&
16835 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16836 as_expr=expr
16837 else
16838 as_expr=false
16839 fi
16840
16841 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16842 as_basename=basename
16843 else
16844 as_basename=false
16845 fi
16846
16847 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16848 as_dirname=dirname
16849 else
16850 as_dirname=false
16851 fi
16852
16853 as_me=`$as_basename -- "$0" ||
16854 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16855 X"$0" : 'X\(//\)$' \| \
16856 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16857 printf "%s\n" X/"$0" |
16858 sed '/^.*\/\([^/][^/]*\)\/*$/{
16859 s//\1/
16860 q
16861 }
16862 /^X\/\(\/\/\)$/{
16863 s//\1/
16864 q
16865 }
16866 /^X\/\(\/\).*/{
16867 s//\1/
16868 q
16869 }
16870 s/.*/./; q'`
16871
16872 # Avoid depending upon Character Ranges.
16873 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16874 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16875 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16876 as_cr_digits='0123456789'
16877 as_cr_alnum=$as_cr_Letters$as_cr_digits
16878
16879
16880 # Determine whether it's possible to make 'echo' print without a newline.
16881 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
16882 # for compatibility with existing Makefiles.
16883 ECHO_C= ECHO_N= ECHO_T=
16884 case `echo -n x` in #(((((
16885 -n*)
16886 case `echo 'xy\c'` in
16887 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16888 xy) ECHO_C='\c';;
16889 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16890 ECHO_T=' ';;
16891 esac;;
16892 *)
16893 ECHO_N='-n';;
16894 esac
16895
16896 # For backward compatibility with old third-party macros, we provide
16897 # the shell variables $as_echo and $as_echo_n. New code should use
16898 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
16899 as_echo='printf %s\n'
16900 as_echo_n='printf %s'
16901
16902 rm -f conf$$ conf$$.exe conf$$.file
16903 if test -d conf$$.dir; then
16904 rm -f conf$$.dir/conf$$.file
16905 else
16906 rm -f conf$$.dir
16907 mkdir conf$$.dir 2>/dev/null
16908 fi
16909 if (echo >conf$$.file) 2>/dev/null; then
16910 if ln -s conf$$.file conf$$ 2>/dev/null; then
16911 as_ln_s='ln -s'
16912 # ... but there are two gotchas:
16913 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
16914 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
16915 # In both cases, we have to default to 'cp -pR'.
16916 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16917 as_ln_s='cp -pR'
16918 elif ln conf$$.file conf$$ 2>/dev/null; then
16919 as_ln_s=ln
16920 else
16921 as_ln_s='cp -pR'
16922 fi
16923 else
16924 as_ln_s='cp -pR'
16925 fi
16926 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16927 rmdir conf$$.dir 2>/dev/null
16928
16929
16930 # as_fn_mkdir_p
16931 # -------------
16932 # Create "$as_dir" as a directory, including parents if necessary.
16933 as_fn_mkdir_p ()
16934 {
16935
16936 case $as_dir in #(
16937 -*) as_dir=./$as_dir;;
16938 esac
16939 test -d "$as_dir" || eval $as_mkdir_p || {
16940 as_dirs=
16941 while :; do
16942 case $as_dir in #(
16943 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16944 *) as_qdir=$as_dir;;
16945 esac
16946 as_dirs="'$as_qdir' $as_dirs"
16947 as_dir=`$as_dirname -- "$as_dir" ||
16948 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16949 X"$as_dir" : 'X\(//\)[^/]' \| \
16950 X"$as_dir" : 'X\(//\)$' \| \
16951 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16952 printf "%s\n" X"$as_dir" |
16953 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16954 s//\1/
16955 q
16956 }
16957 /^X\(\/\/\)[^/].*/{
16958 s//\1/
16959 q
16960 }
16961 /^X\(\/\/\)$/{
16962 s//\1/
16963 q
16964 }
16965 /^X\(\/\).*/{
16966 s//\1/
16967 q
16968 }
16969 s/.*/./; q'`
16970 test -d "$as_dir" && break
16971 done
16972 test -z "$as_dirs" || eval "mkdir $as_dirs"
16973 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16974
16975
16976 } # as_fn_mkdir_p
16977 if mkdir -p . 2>/dev/null; then
16978 as_mkdir_p='mkdir -p "$as_dir"'
16979 else
16980 test -d ./-p && rmdir ./-p
16981 as_mkdir_p=false
16982 fi
16983
16984
16985 # as_fn_executable_p FILE
16986 # -----------------------
16987 # Test if FILE is an executable regular file.
16988 as_fn_executable_p ()
16989 {
16990 test -f "$1" && test -x "$1"
16991 } # as_fn_executable_p
16992 as_test_x='test -x'
16993 as_executable_p=as_fn_executable_p
16994
16995 # Sed expression to map a string onto a valid CPP name.
16996 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
16997 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
16998
16999 # Sed expression to map a string onto a valid variable name.
17000 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
17001 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
17002
17003
17004 exec 6>&1
17005 ## ----------------------------------- ##
17006 ## Main body of $CONFIG_STATUS script. ##
17007 ## ----------------------------------- ##
17008 _ASEOF
17009 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17010
17011 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17012 # Save the log message, to keep $0 and so on meaningful, and to
17013 # report actual input values of CONFIG_FILES etc. instead of their
17014 # values after options handling.
17015 ac_log="
17016 This file was extended by Kpathsea $as_me 6.4.2, which was
17017 generated by GNU Autoconf 2.72. Invocation command line was
17018
17019 CONFIG_FILES = $CONFIG_FILES
17020 CONFIG_HEADERS = $CONFIG_HEADERS
17021 CONFIG_LINKS = $CONFIG_LINKS
17022 CONFIG_COMMANDS = $CONFIG_COMMANDS
17023 $ $0 $@
17024
17025 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17026 "
17027
17028 _ACEOF
17029
17030 case $ac_config_files in *"
17031 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17032 esac
17033
17034 case $ac_config_headers in *"
17035 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17036 esac
17037
17038
17039 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17040 # Files that config.status was made for.
17041 config_files="$ac_config_files"
17042 config_headers="$ac_config_headers"
17043 config_commands="$ac_config_commands"
17044
17045 _ACEOF
17046
17047 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17048 ac_cs_usage="\
17049 '$as_me' instantiates files and other configuration actions
17050 from templates according to the current configuration. Unless the files
17051 and actions are specified as TAGs, all are instantiated by default.
17052
17053 Usage: $0 [OPTION]... [TAG]...
17054
17055 -h, --help print this help, then exit
17056 -V, --version print version number and configuration settings, then exit
17057 --config print configuration, then exit
17058 -q, --quiet, --silent
17059 do not print progress messages
17060 -d, --debug don't remove temporary files
17061 --recheck update $as_me by reconfiguring in the same conditions
17062 --file=FILE[:TEMPLATE]
17063 instantiate the configuration file FILE
17064 --header=FILE[:TEMPLATE]
17065 instantiate the configuration header FILE
17066
17067 Configuration files:
17068 $config_files
17069
17070 Configuration headers:
17071 $config_headers
17072
17073 Configuration commands:
17074 $config_commands
17075
17076 Report bugs to <[email protected]>."
17077
17078 _ACEOF
17079 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
17080 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
17081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17082 ac_cs_config='$ac_cs_config_escaped'
17083 ac_cs_version="\\
17084 Kpathsea config.status 6.4.2
17085 configured by $0, generated by GNU Autoconf 2.72,
17086 with options \\"\$ac_cs_config\\"
17087
17088 Copyright (C) 2023 Free Software Foundation, Inc.
17089 This config.status script is free software; the Free Software Foundation
17090 gives unlimited permission to copy, distribute and modify it."
17091
17092 ac_pwd='$ac_pwd'
17093 srcdir='$srcdir'
17094 INSTALL='$INSTALL'
17095 MKDIR_P='$MKDIR_P'
17096 AWK='$AWK'
17097 test -n "\$AWK" || AWK=awk
17098 _ACEOF
17099
17100 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17101 # The default lists apply if the user does not specify any file.
17102 ac_need_defaults=:
17103 while test $# != 0
17104 do
17105 case $1 in
17106 --*=?*)
17107 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17108 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17109 ac_shift=:
17110 ;;
17111 --*=)
17112 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17113 ac_optarg=
17114 ac_shift=:
17115 ;;
17116 *)
17117 ac_option=$1
17118 ac_optarg=$2
17119 ac_shift=shift
17120 ;;
17121 esac
17122
17123 case $ac_option in
17124 # Handling of the options.
17125 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17126 ac_cs_recheck=: ;;
17127 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17128 printf "%s\n" "$ac_cs_version"; exit ;;
17129 --config | --confi | --conf | --con | --co | --c )
17130 printf "%s\n" "$ac_cs_config"; exit ;;
17131 --debug | --debu | --deb | --de | --d | -d )
17132 debug=: ;;
17133 --file | --fil | --fi | --f )
17134 $ac_shift
17135 case $ac_optarg in
17136 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17137 '') as_fn_error $? "missing file argument" ;;
17138 esac
17139 as_fn_append CONFIG_FILES " '$ac_optarg'"
17140 ac_need_defaults=false;;
17141 --header | --heade | --head | --hea )
17142 $ac_shift
17143 case $ac_optarg in
17144 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17145 esac
17146 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17147 ac_need_defaults=false;;
17148 --he | --h)
17149 # Conflict between --help and --header
17150 as_fn_error $? "ambiguous option: '$1'
17151 Try '$0 --help' for more information.";;
17152 --help | --hel | -h )
17153 printf "%s\n" "$ac_cs_usage"; exit ;;
17154 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17155 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17156 ac_cs_silent=: ;;
17157
17158 # This is an error.
17159 -*) as_fn_error $? "unrecognized option: '$1'
17160 Try '$0 --help' for more information." ;;
17161
17162 *) as_fn_append ac_config_targets " $1"
17163 ac_need_defaults=false ;;
17164
17165 esac
17166 shift
17167 done
17168
17169 ac_configure_extra_args=
17170
17171 if $ac_cs_silent; then
17172 exec 6>/dev/null
17173 ac_configure_extra_args="$ac_configure_extra_args --silent"
17174 fi
17175
17176 _ACEOF
17177 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17178 if \$ac_cs_recheck; then
17179 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17180 shift
17181 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
17182 CONFIG_SHELL='$SHELL'
17183 export CONFIG_SHELL
17184 exec "\$@"
17185 fi
17186
17187 _ACEOF
17188 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17189 exec 5>>config.log
17190 {
17191 echo
17192 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17193 ## Running $as_me. ##
17194 _ASBOX
17195 printf "%s\n" "$ac_log"
17196 } >&5
17197
17198 _ACEOF
17199 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17200 #
17201 # INIT-COMMANDS
17202 #
17203 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
17204
17205
17206 # The HP-UX ksh and POSIX shell print the target directory to stdout
17207 # if CDPATH is set.
17208 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17209
17210 sed_quote_subst='$sed_quote_subst'
17211 double_quote_subst='$double_quote_subst'
17212 delay_variable_subst='$delay_variable_subst'
17213 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17214 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17215 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
17216 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17217 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17218 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17219 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17220 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17221 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17222 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
17223 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17224 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17225 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17226 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17227 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17228 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17229 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17230 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17231 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17232 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17233 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17234 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17235 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17236 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17237 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17238 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17239 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17240 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17241 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17242 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17243 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17244 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17245 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17246 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17247 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17248 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17249 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17250 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
17251 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17252 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17253 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17254 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17255 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17256 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17257 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
17258 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17259 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17260 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17261 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17262 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17263 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17264 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17265 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17266 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17267 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17268 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17269 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17270 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17271 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17272 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
17273 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17274 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"`'
17275 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
17276 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17277 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17278 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
17279 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17280 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17281 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17282 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17283 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17284 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17285 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17286 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17287 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17288 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17289 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17290 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17291 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17292 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17293 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17294 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17295 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17296 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17297 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17298 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17299 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17300 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17301 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17302 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17303 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17304 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17305 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17306 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17307 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17308 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17309 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17310 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17311 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17312 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17313 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17314 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17315 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17316 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17317 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17318 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17319 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17320 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17321 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17322 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17323 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17324 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17325 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17326 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17327 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17328 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17329 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17330 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17331 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17332 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17333 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17334 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17335 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17336 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17337 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17338 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17339 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17340 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17341 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17342 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17343 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
17344 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
17345 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17346 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17347 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17348 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17349 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17350 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17351
17352 LTCC='$LTCC'
17353 LTCFLAGS='$LTCFLAGS'
17354 compiler='$compiler_DEFAULT'
17355
17356 # A function that is used when there is no print builtin or printf.
17357 func_fallback_echo ()
17358 {
17359 eval 'cat <<_LTECHO_EOF
17360 \$1
17361 _LTECHO_EOF'
17362 }
17363
17364 # Quote evaled strings.
17365 for var in AS \
17366 DLLTOOL \
17367 OBJDUMP \
17368 SHELL \
17369 ECHO \
17370 PATH_SEPARATOR \
17371 SED \
17372 GREP \
17373 EGREP \
17374 FGREP \
17375 LD \
17376 NM \
17377 LN_S \
17378 lt_SP2NL \
17379 lt_NL2SP \
17380 reload_flag \
17381 FILECMD \
17382 deplibs_check_method \
17383 file_magic_cmd \
17384 file_magic_glob \
17385 want_nocaseglob \
17386 sharedlib_from_linklib_cmd \
17387 AR \
17388 archiver_list_spec \
17389 STRIP \
17390 RANLIB \
17391 CC \
17392 CFLAGS \
17393 compiler \
17394 lt_cv_sys_global_symbol_pipe \
17395 lt_cv_sys_global_symbol_to_cdecl \
17396 lt_cv_sys_global_symbol_to_import \
17397 lt_cv_sys_global_symbol_to_c_name_address \
17398 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17399 lt_cv_nm_interface \
17400 nm_file_list_spec \
17401 lt_cv_truncate_bin \
17402 lt_prog_compiler_no_builtin_flag \
17403 lt_prog_compiler_pic \
17404 lt_prog_compiler_wl \
17405 lt_prog_compiler_static \
17406 lt_cv_prog_compiler_c_o \
17407 need_locks \
17408 MANIFEST_TOOL \
17409 DSYMUTIL \
17410 NMEDIT \
17411 LIPO \
17412 OTOOL \
17413 OTOOL64 \
17414 shrext_cmds \
17415 export_dynamic_flag_spec \
17416 whole_archive_flag_spec \
17417 compiler_needs_object \
17418 with_gnu_ld \
17419 allow_undefined_flag \
17420 no_undefined_flag \
17421 hardcode_libdir_flag_spec \
17422 hardcode_libdir_separator \
17423 exclude_expsyms \
17424 include_expsyms \
17425 file_list_spec \
17426 variables_saved_for_relink \
17427 libname_spec \
17428 library_names_spec \
17429 soname_spec \
17430 install_override_mode \
17431 finish_eval \
17432 old_striplib \
17433 striplib; do
17434 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17435 *[\\\\\\\`\\"\\\$]*)
17436 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17437 ;;
17438 *)
17439 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17440 ;;
17441 esac
17442 done
17443
17444 # Double-quote double-evaled strings.
17445 for var in reload_cmds \
17446 old_postinstall_cmds \
17447 old_postuninstall_cmds \
17448 old_archive_cmds \
17449 extract_expsyms_cmds \
17450 old_archive_from_new_cmds \
17451 old_archive_from_expsyms_cmds \
17452 archive_cmds \
17453 archive_expsym_cmds \
17454 module_cmds \
17455 module_expsym_cmds \
17456 export_symbols_cmds \
17457 prelink_cmds \
17458 postlink_cmds \
17459 postinstall_cmds \
17460 postuninstall_cmds \
17461 finish_cmds \
17462 sys_lib_search_path_spec \
17463 configure_time_dlsearch_path \
17464 configure_time_lt_sys_library_path; do
17465 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17466 *[\\\\\\\`\\"\\\$]*)
17467 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17468 ;;
17469 *)
17470 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17471 ;;
17472 esac
17473 done
17474
17475 ac_aux_dir='$ac_aux_dir'
17476
17477 # See if we are running on zsh, and set the options that allow our
17478 # commands through without removal of \ escapes INIT.
17479 if test -n "\${ZSH_VERSION+set}"; then
17480 setopt NO_GLOB_SUBST
17481 fi
17482
17483
17484 PACKAGE='$PACKAGE'
17485 VERSION='$VERSION'
17486 RM='$RM'
17487 ofile='$ofile'
17488
17489
17490
17491
17492 _ACEOF
17493
17494 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17495
17496 # Handling of arguments.
17497 for ac_config_target in $ac_config_targets
17498 do
17499 case $ac_config_target in
17500 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17501 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17502 "c-auto.h") CONFIG_HEADERS="$CONFIG_HEADERS c-auto.h:c-auto.in" ;;
17503 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17504 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17505 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
17506 "win32/Makefile") CONFIG_FILES="$CONFIG_FILES win32/Makefile" ;;
17507 "kpathsea.pc") CONFIG_FILES="$CONFIG_FILES kpathsea.pc" ;;
17508
17509 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
17510 esac
17511 done
17512
17513
17514 # If the user did not use the arguments to specify the items to instantiate,
17515 # then the envvar interface is used. Set only those that are not.
17516 # We use the long form for the default assignment because of an extremely
17517 # bizarre bug on SunOS 4.1.3.
17518 if $ac_need_defaults; then
17519 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
17520 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
17521 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
17522 fi
17523
17524 # Have a temporary directory for convenience. Make it in the build tree
17525 # simply because there is no reason against having it here, and in addition,
17526 # creating and moving files from /tmp can sometimes cause problems.
17527 # Hook for its removal unless debugging.
17528 # Note that there is a small window in which the directory will not be cleaned:
17529 # after its creation but before its name has been assigned to '$tmp'.
17530 $debug ||
17531 {
17532 tmp= ac_tmp=
17533 trap 'exit_status=$?
17534 : "${ac_tmp:=$tmp}"
17535 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17536 ' 0
17537 trap 'as_fn_exit 1' 1 2 13 15
17538 }
17539 # Create a (secure) tmp directory for tmp files.
17540
17541 {
17542 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17543 test -d "$tmp"
17544 } ||
17545 {
17546 tmp=./conf$$-$RANDOM
17547 (umask 077 && mkdir "$tmp")
17548 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17549 ac_tmp=$tmp
17550
17551 # Set up the scripts for CONFIG_FILES section.
17552 # No need to generate them if there are no CONFIG_FILES.
17553 # This happens for instance with './config.status config.h'.
17554 if test -n "$CONFIG_FILES"; then
17555
17556
17557 ac_cr=`echo X | tr X '\015'`
17558 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17559 # But we know of no other shell where ac_cr would be empty at this
17560 # point, so we can use a bashism as a fallback.
17561 if test "x$ac_cr" = x; then
17562 eval ac_cr=\$\'\\r\'
17563 fi
17564 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17565 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17566 ac_cs_awk_cr='\\r'
17567 else
17568 ac_cs_awk_cr=$ac_cr
17569 fi
17570
17571 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17572 _ACEOF
17573
17574
17575 {
17576 echo "cat >conf$$subs.awk <<_ACEOF" &&
17577 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17578 echo "_ACEOF"
17579 } >conf$$subs.sh ||
17580 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17581 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17582 ac_delim='%!_!# '
17583 for ac_last_try in false false false false false :; do
17584 . ./conf$$subs.sh ||
17585 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17586
17587 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17588 if test $ac_delim_n = $ac_delim_num; then
17589 break
17590 elif $ac_last_try; then
17591 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17592 else
17593 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17594 fi
17595 done
17596 rm -f conf$$subs.sh
17597
17598 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17599 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17600 _ACEOF
17601 sed -n '
17602 h
17603 s/^/S["/; s/!.*/"]=/
17604 p
17605 g
17606 s/^[^!]*!//
17607 :repl
17608 t repl
17609 s/'"$ac_delim"'$//
17610 t delim
17611 :nl
17612 h
17613 s/\(.\{148\}\)..*/\1/
17614 t more1
17615 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17616 p
17617 n
17618 b repl
17619 :more1
17620 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17621 p
17622 g
17623 s/.\{148\}//
17624 t nl
17625 :delim
17626 h
17627 s/\(.\{148\}\)..*/\1/
17628 t more2
17629 s/["\\]/\\&/g; s/^/"/; s/$/"/
17630 p
17631 b
17632 :more2
17633 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17634 p
17635 g
17636 s/.\{148\}//
17637 t delim
17638 ' <conf$$subs.awk | sed '
17639 /^[^""]/{
17640 N
17641 s/\n//
17642 }
17643 ' >>$CONFIG_STATUS || ac_write_fail=1
17644 rm -f conf$$subs.awk
17645 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17646 _ACAWK
17647 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17648 for (key in S) S_is_set[key] = 1
17649 FS = ""
17650
17651 }
17652 {
17653 line = $ 0
17654 nfields = split(line, field, "@")
17655 substed = 0
17656 len = length(field[1])
17657 for (i = 2; i < nfields; i++) {
17658 key = field[i]
17659 keylen = length(key)
17660 if (S_is_set[key]) {
17661 value = S[key]
17662 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17663 len += length(value) + length(field[++i])
17664 substed = 1
17665 } else
17666 len += 1 + keylen
17667 }
17668
17669 print line
17670 }
17671
17672 _ACAWK
17673 _ACEOF
17674 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17675 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17676 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17677 else
17678 cat
17679 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17680 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17681 _ACEOF
17682
17683 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17684 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17685 # trailing colons and then remove the whole line if VPATH becomes empty
17686 # (actually we leave an empty line to preserve line numbers).
17687 if test "x$srcdir" = x.; then
17688 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17689 h
17690 s///
17691 s/^/:/
17692 s/[ ]*$/:/
17693 s/:\$(srcdir):/:/g
17694 s/:\${srcdir}:/:/g
17695 s/:@srcdir@:/:/g
17696 s/^:*//
17697 s/:*$//
17698 x
17699 s/\(=[ ]*\).*/\1/
17700 G
17701 s/\n//
17702 s/^[^=]*=[ ]*$//
17703 }'
17704 fi
17705
17706 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17707 fi # test -n "$CONFIG_FILES"
17708
17709 # Set up the scripts for CONFIG_HEADERS section.
17710 # No need to generate them if there are no CONFIG_HEADERS.
17711 # This happens for instance with './config.status Makefile'.
17712 if test -n "$CONFIG_HEADERS"; then
17713 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17714 BEGIN {
17715 _ACEOF
17716
17717 # Transform confdefs.h into an awk script 'defines.awk', embedded as
17718 # here-document in config.status, that substitutes the proper values into
17719 # config.h.in to produce config.h.
17720
17721 # Create a delimiter string that does not exist in confdefs.h, to ease
17722 # handling of long lines.
17723 ac_delim='%!_!# '
17724 for ac_last_try in false false :; do
17725 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17726 if test -z "$ac_tt"; then
17727 break
17728 elif $ac_last_try; then
17729 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17730 else
17731 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17732 fi
17733 done
17734
17735 # For the awk script, D is an array of macro values keyed by name,
17736 # likewise P contains macro parameters if any. Preserve backslash
17737 # newline sequences.
17738
17739 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17740 sed -n '
17741 s/.\{148\}/&'"$ac_delim"'/g
17742 t rset
17743 :rset
17744 s/^[ ]*#[ ]*define[ ][ ]*/ /
17745 t def
17746 d
17747 :def
17748 s/\\$//
17749 t bsnl
17750 s/["\\]/\\&/g
17751 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17752 D["\1"]=" \3"/p
17753 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17754 d
17755 :bsnl
17756 s/["\\]/\\&/g
17757 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17758 D["\1"]=" \3\\\\\\n"\\/p
17759 t cont
17760 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17761 t cont
17762 d
17763 :cont
17764 n
17765 s/.\{148\}/&'"$ac_delim"'/g
17766 t clear
17767 :clear
17768 s/\\$//
17769 t bsnlc
17770 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17771 d
17772 :bsnlc
17773 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17774 b cont
17775 ' <confdefs.h | sed '
17776 s/'"$ac_delim"'/"\\\
17777 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17778
17779 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17780 for (key in D) D_is_set[key] = 1
17781 FS = ""
17782 }
17783 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17784 line = \$ 0
17785 split(line, arg, " ")
17786 if (arg[1] == "#") {
17787 defundef = arg[2]
17788 mac1 = arg[3]
17789 } else {
17790 defundef = substr(arg[1], 2)
17791 mac1 = arg[2]
17792 }
17793 split(mac1, mac2, "(") #)
17794 macro = mac2[1]
17795 prefix = substr(line, 1, index(line, defundef) - 1)
17796 if (D_is_set[macro]) {
17797 # Preserve the white space surrounding the "#".
17798 print prefix "define", macro P[macro] D[macro]
17799 next
17800 } else {
17801 # Replace #undef with comments. This is necessary, for example,
17802 # in the case of _POSIX_SOURCE, which is predefined and required
17803 # on some systems where configure will not decide to define it.
17804 if (defundef == "undef") {
17805 print "/*", prefix defundef, macro, "*/"
17806 next
17807 }
17808 }
17809 }
17810 { print }
17811 _ACAWK
17812 _ACEOF
17813 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17814 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17815 fi # test -n "$CONFIG_HEADERS"
17816
17817
17818 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17819 shift
17820 for ac_tag
17821 do
17822 case $ac_tag in
17823 :[FHLC]) ac_mode=$ac_tag; continue;;
17824 esac
17825 case $ac_mode$ac_tag in
17826 :[FHL]*:*);;
17827 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
17828 :[FH]-) ac_tag=-:-;;
17829 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17830 esac
17831 ac_save_IFS=$IFS
17832 IFS=:
17833 set x $ac_tag
17834 IFS=$ac_save_IFS
17835 shift
17836 ac_file=$1
17837 shift
17838
17839 case $ac_mode in
17840 :L) ac_source=$1;;
17841 :[FH])
17842 ac_file_inputs=
17843 for ac_f
17844 do
17845 case $ac_f in
17846 -) ac_f="$ac_tmp/stdin";;
17847 *) # Look for the file first in the build tree, then in the source tree
17848 # (if the path is not absolute). The absolute path cannot be DOS-style,
17849 # because $ac_f cannot contain ':'.
17850 test -f "$ac_f" ||
17851 case $ac_f in
17852 [\\/$]*) false;;
17853 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17854 esac ||
17855 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
17856 esac
17857 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17858 as_fn_append ac_file_inputs " '$ac_f'"
17859 done
17860
17861 # Let's still pretend it is 'configure' which instantiates (i.e., don't
17862 # use $as_me), people would be surprised to read:
17863 # /* config.h. Generated by config.status. */
17864 configure_input='Generated from '`
17865 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17866 `' by configure.'
17867 if test x"$ac_file" != x-; then
17868 configure_input="$ac_file. $configure_input"
17869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17870 printf "%s\n" "$as_me: creating $ac_file" >&6;}
17871 fi
17872 # Neutralize special characters interpreted by sed in replacement strings.
17873 case $configure_input in #(
17874 *\&* | *\|* | *\\* )
17875 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
17876 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17877 *) ac_sed_conf_input=$configure_input;;
17878 esac
17879
17880 case $ac_tag in
17881 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17882 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17883 esac
17884 ;;
17885 esac
17886
17887 ac_dir=`$as_dirname -- "$ac_file" ||
17888 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17889 X"$ac_file" : 'X\(//\)[^/]' \| \
17890 X"$ac_file" : 'X\(//\)$' \| \
17891 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17892 printf "%s\n" X"$ac_file" |
17893 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17894 s//\1/
17895 q
17896 }
17897 /^X\(\/\/\)[^/].*/{
17898 s//\1/
17899 q
17900 }
17901 /^X\(\/\/\)$/{
17902 s//\1/
17903 q
17904 }
17905 /^X\(\/\).*/{
17906 s//\1/
17907 q
17908 }
17909 s/.*/./; q'`
17910 as_dir="$ac_dir"; as_fn_mkdir_p
17911 ac_builddir=.
17912
17913 case "$ac_dir" in
17914 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17915 *)
17916 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
17917 # A ".." for each directory in $ac_dir_suffix.
17918 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17919 case $ac_top_builddir_sub in
17920 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17921 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17922 esac ;;
17923 esac
17924 ac_abs_top_builddir=$ac_pwd
17925 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17926 # for backward compatibility:
17927 ac_top_builddir=$ac_top_build_prefix
17928
17929 case $srcdir in
17930 .) # We are building in place.
17931 ac_srcdir=.
17932 ac_top_srcdir=$ac_top_builddir_sub
17933 ac_abs_top_srcdir=$ac_pwd ;;
17934 [\\/]* | ?:[\\/]* ) # Absolute name.
17935 ac_srcdir=$srcdir$ac_dir_suffix;
17936 ac_top_srcdir=$srcdir
17937 ac_abs_top_srcdir=$srcdir ;;
17938 *) # Relative name.
17939 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17940 ac_top_srcdir=$ac_top_build_prefix$srcdir
17941 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17942 esac
17943 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17944
17945
17946 case $ac_mode in
17947 :F)
17948 #
17949 # CONFIG_FILE
17950 #
17951
17952 case $INSTALL in
17953 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17954 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17955 esac
17956 ac_MKDIR_P=$MKDIR_P
17957 case $MKDIR_P in
17958 [\\/$]* | ?:[\\/]* ) ;;
17959 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17960 esac
17961 _ACEOF
17962
17963 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17964 # If the template does not know about datarootdir, expand it.
17965 # FIXME: This hack should be removed a few years after 2.60.
17966 ac_datarootdir_hack=; ac_datarootdir_seen=
17967 ac_sed_dataroot='
17968 /datarootdir/ {
17969 p
17970 q
17971 }
17972 /@datadir@/p
17973 /@docdir@/p
17974 /@infodir@/p
17975 /@localedir@/p
17976 /@mandir@/p'
17977 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17978 *datarootdir*) ac_datarootdir_seen=yes;;
17979 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17981 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17982 _ACEOF
17983 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17984 ac_datarootdir_hack='
17985 s&@datadir@&$datadir&g
17986 s&@docdir@&$docdir&g
17987 s&@infodir@&$infodir&g
17988 s&@localedir@&$localedir&g
17989 s&@mandir@&$mandir&g
17990 s&\\\${datarootdir}&$datarootdir&g' ;;
17991 esac
17992 _ACEOF
17993
17994 # Neutralize VPATH when '$srcdir' = '.'.
17995 # Shell code in configure.ac might set extrasub.
17996 # FIXME: do we really want to maintain this feature?
17997 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17998 ac_sed_extra="$ac_vpsub
17999 $extrasub
18000 _ACEOF
18001 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18002 :t
18003 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18004 s|@configure_input@|$ac_sed_conf_input|;t t
18005 s&@top_builddir@&$ac_top_builddir_sub&;t t
18006 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18007 s&@srcdir@&$ac_srcdir&;t t
18008 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18009 s&@top_srcdir@&$ac_top_srcdir&;t t
18010 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18011 s&@builddir@&$ac_builddir&;t t
18012 s&@abs_builddir@&$ac_abs_builddir&;t t
18013 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18014 s&@INSTALL@&$ac_INSTALL&;t t
18015 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18016 $ac_datarootdir_hack
18017 "
18018 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18019 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18020
18021 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18022 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18023 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18024 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
18026 which seems to be undefined. Please make sure it is defined" >&5
18027 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
18028 which seems to be undefined. Please make sure it is defined" >&2;}
18029
18030 rm -f "$ac_tmp/stdin"
18031 case $ac_file in
18032 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18033 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18034 esac \
18035 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18036 ;;
18037 :H)
18038 #
18039 # CONFIG_HEADER
18040 #
18041 if test x"$ac_file" != x-; then
18042 {
18043 printf "%s\n" "/* $configure_input */" >&1 \
18044 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18045 } >"$ac_tmp/config.h" \
18046 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18047 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18049 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
18050 else
18051 rm -f "$ac_file"
18052 mv "$ac_tmp/config.h" "$ac_file" \
18053 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18054 fi
18055 else
18056 printf "%s\n" "/* $configure_input */" >&1 \
18057 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18058 || as_fn_error $? "could not create -" "$LINENO" 5
18059 fi
18060 # Compute "$ac_file"'s index in $config_headers.
18061 _am_arg="$ac_file"
18062 _am_stamp_count=1
18063 for _am_header in $config_headers :; do
18064 case $_am_header in
18065 $_am_arg | $_am_arg:* )
18066 break ;;
18067 * )
18068 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18069 esac
18070 done
18071 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18072 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18073 X"$_am_arg" : 'X\(//\)[^/]' \| \
18074 X"$_am_arg" : 'X\(//\)$' \| \
18075 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18076 printf "%s\n" X"$_am_arg" |
18077 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18078 s//\1/
18079 q
18080 }
18081 /^X\(\/\/\)[^/].*/{
18082 s//\1/
18083 q
18084 }
18085 /^X\(\/\/\)$/{
18086 s//\1/
18087 q
18088 }
18089 /^X\(\/\).*/{
18090 s//\1/
18091 q
18092 }
18093 s/.*/./; q'`/stamp-h$_am_stamp_count
18094 ;;
18095
18096 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18097 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
18098 ;;
18099 esac
18100
18101
18102 case $ac_file$ac_mode in
18103 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18104 # Older Autoconf quotes --file arguments for eval, but not when files
18105 # are listed without --file. Let's play safe and only enable the eval
18106 # if we detect the quoting.
18107 # TODO: see whether this extra hack can be removed once we start
18108 # requiring Autoconf 2.70 or later.
18109 case $CONFIG_FILES in #(
18110 *\'*) :
18111 eval set x "$CONFIG_FILES" ;; #(
18112 *) :
18113 set x $CONFIG_FILES ;; #(
18114 *) :
18115 ;;
18116 esac
18117 shift
18118 # Used to flag and report bootstrapping failures.
18119 am_rc=0
18120 for am_mf
18121 do
18122 # Strip MF so we end up with the name of the file.
18123 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
18124 # Check whether this is an Automake generated Makefile which includes
18125 # dependency-tracking related rules and includes.
18126 # Grep'ing the whole file directly is not great: AIX grep has a line
18127 # limit of 2048, but all sed's we know have understand at least 4000.
18128 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
18129 || continue
18130 am_dirpart=`$as_dirname -- "$am_mf" ||
18131 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18132 X"$am_mf" : 'X\(//\)[^/]' \| \
18133 X"$am_mf" : 'X\(//\)$' \| \
18134 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
18135 printf "%s\n" X"$am_mf" |
18136 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18137 s//\1/
18138 q
18139 }
18140 /^X\(\/\/\)[^/].*/{
18141 s//\1/
18142 q
18143 }
18144 /^X\(\/\/\)$/{
18145 s//\1/
18146 q
18147 }
18148 /^X\(\/\).*/{
18149 s//\1/
18150 q
18151 }
18152 s/.*/./; q'`
18153 am_filepart=`$as_basename -- "$am_mf" ||
18154 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
18155 X"$am_mf" : 'X\(//\)$' \| \
18156 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
18157 printf "%s\n" X/"$am_mf" |
18158 sed '/^.*\/\([^/][^/]*\)\/*$/{
18159 s//\1/
18160 q
18161 }
18162 /^X\/\(\/\/\)$/{
18163 s//\1/
18164 q
18165 }
18166 /^X\/\(\/\).*/{
18167 s//\1/
18168 q
18169 }
18170 s/.*/./; q'`
18171 { echo "$as_me:$LINENO: cd "$am_dirpart" \
18172 && sed -e '/# am--include-marker/d' "$am_filepart" \
18173 | $MAKE -f - am--depfiles" >&5
18174 (cd "$am_dirpart" \
18175 && sed -e '/# am--include-marker/d' "$am_filepart" \
18176 | $MAKE -f - am--depfiles) >&5 2>&5
18177 ac_status=$?
18178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18179 (exit $ac_status); } || am_rc=$?
18180 done
18181 if test $am_rc -ne 0; then
18182 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
18183 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
18184 as_fn_error $? "Something went wrong bootstrapping makefile fragments
18185 for automatic dependency tracking. If GNU make was not used, consider
18186 re-running the configure script with MAKE=\"gmake\" (or whatever is
18187 necessary). You can also try re-running configure with the
18188 '--disable-dependency-tracking' option to at least be able to build
18189 the package (albeit without support for automatic dependency tracking).
18190 See 'config.log' for more details" "$LINENO" 5; }
18191 fi
18192 { am_dirpart=; unset am_dirpart;}
18193 { am_filepart=; unset am_filepart;}
18194 { am_mf=; unset am_mf;}
18195 { am_rc=; unset am_rc;}
18196 rm -f conftest-deps.mk
18197 }
18198 ;;
18199 "libtool":C)
18200
18201 # See if we are running on zsh, and set the options that allow our
18202 # commands through without removal of \ escapes.
18203 if test -n "${ZSH_VERSION+set}"; then
18204 setopt NO_GLOB_SUBST
18205 fi
18206
18207 cfgfile=${ofile}T
18208 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18209 $RM "$cfgfile"
18210
18211 cat <<_LT_EOF >> "$cfgfile"
18212 #! $SHELL
18213 # Generated automatically by $as_me ($PACKAGE) $VERSION
18214 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18215
18216 # Provide generalized library-building support services.
18217 # Written by Gordon Matzigkeit, 1996
18218
18219 # Copyright (C) 2024 Free Software Foundation, Inc.
18220 # This is free software; see the source for copying conditions. There is NO
18221 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18222
18223 # GNU Libtool is free software; you can redistribute it and/or modify
18224 # it under the terms of the GNU General Public License as published by
18225 # the Free Software Foundation; either version 2 of the License, or
18226 # (at your option) any later version.
18227 #
18228 # As a special exception to the GNU General Public License, if you
18229 # distribute this file as part of a program or library that is built
18230 # using GNU Libtool, you may include this file under the same
18231 # distribution terms that you use for the rest of that program.
18232 #
18233 # GNU Libtool is distributed in the hope that it will be useful, but
18234 # WITHOUT ANY WARRANTY; without even the implied warranty of
18235 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18236 # GNU General Public License for more details.
18237 #
18238 # You should have received a copy of the GNU General Public License
18239 # along with this program. If not, see <http://www.gnu.org/licenses/>.
18240
18241
18242 # The names of the tagged configurations supported by this script.
18243 available_tags=''
18244
18245 # Configured defaults for sys_lib_dlsearch_path munging.
18246 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
18247
18248 # ### BEGIN LIBTOOL CONFIG
18249
18250 # Which release of libtool.m4 was used?
18251 macro_version=$macro_version
18252 macro_revision=$macro_revision
18253
18254 # Assembler program.
18255 AS=$lt_AS
18256
18257 # DLL creation program.
18258 DLLTOOL=$lt_DLLTOOL
18259
18260 # Object dumper program.
18261 OBJDUMP=$lt_OBJDUMP
18262
18263 # Whether or not to build shared libraries.
18264 build_libtool_libs=$enable_shared
18265
18266 # Whether or not to build static libraries.
18267 build_old_libs=$enable_static
18268
18269 # What type of objects to build.
18270 pic_mode=$pic_mode
18271
18272 # Whether or not to optimize for fast installation.
18273 fast_install=$enable_fast_install
18274
18275 # Shared archive member basename,for filename based shared library versioning on AIX.
18276 shared_archive_member_spec=$shared_archive_member_spec
18277
18278 # Shell to use when invoking shell scripts.
18279 SHELL=$lt_SHELL
18280
18281 # An echo program that protects backslashes.
18282 ECHO=$lt_ECHO
18283
18284 # The PATH separator for the build system.
18285 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18286
18287 # The host system.
18288 host_alias=$host_alias
18289 host=$host
18290 host_os=$host_os
18291
18292 # The build system.
18293 build_alias=$build_alias
18294 build=$build
18295 build_os=$build_os
18296
18297 # A sed program that does not truncate output.
18298 SED=$lt_SED
18299
18300 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18301 Xsed="\$SED -e 1s/^X//"
18302
18303 # A grep program that handles long lines.
18304 GREP=$lt_GREP
18305
18306 # An ERE matcher.
18307 EGREP=$lt_EGREP
18308
18309 # A literal string matcher.
18310 FGREP=$lt_FGREP
18311
18312 # A BSD- or MS-compatible name lister.
18313 NM=$lt_NM
18314
18315 # Whether we need soft or hard links.
18316 LN_S=$lt_LN_S
18317
18318 # What is the maximum length of a command?
18319 max_cmd_len=$max_cmd_len
18320
18321 # Object file suffix (normally "o").
18322 objext=$ac_objext
18323
18324 # Executable file suffix (normally "").
18325 exeext=$exeext
18326
18327 # whether the shell understands "unset".
18328 lt_unset=$lt_unset
18329
18330 # turn spaces into newlines.
18331 SP2NL=$lt_lt_SP2NL
18332
18333 # turn newlines into spaces.
18334 NL2SP=$lt_lt_NL2SP
18335
18336 # convert \$build file names to \$host format.
18337 to_host_file_cmd=$lt_cv_to_host_file_cmd
18338
18339 # convert \$build files to toolchain format.
18340 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18341
18342 # A file(cmd) program that detects file types.
18343 FILECMD=$lt_FILECMD
18344
18345 # Method to check whether dependent libraries are shared objects.
18346 deplibs_check_method=$lt_deplibs_check_method
18347
18348 # Command to use when deplibs_check_method = "file_magic".
18349 file_magic_cmd=$lt_file_magic_cmd
18350
18351 # How to find potential files when deplibs_check_method = "file_magic".
18352 file_magic_glob=$lt_file_magic_glob
18353
18354 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18355 want_nocaseglob=$lt_want_nocaseglob
18356
18357 # Command to associate shared and link libraries.
18358 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18359
18360 # The archiver.
18361 AR=$lt_AR
18362
18363 # Flags to create an archive (by configure).
18364 lt_ar_flags=$lt_ar_flags
18365
18366 # Flags to create an archive.
18367 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
18368
18369 # How to feed a file listing to the archiver.
18370 archiver_list_spec=$lt_archiver_list_spec
18371
18372 # A symbol stripping program.
18373 STRIP=$lt_STRIP
18374
18375 # Commands used to install an old-style archive.
18376 RANLIB=$lt_RANLIB
18377 old_postinstall_cmds=$lt_old_postinstall_cmds
18378 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18379
18380 # Whether to use a lock for old archive extraction.
18381 lock_old_archive_extraction=$lock_old_archive_extraction
18382
18383 # A C compiler.
18384 LTCC=$lt_CC
18385
18386 # LTCC compiler flags.
18387 LTCFLAGS=$lt_CFLAGS
18388
18389 # Take the output of nm and produce a listing of raw symbols and C names.
18390 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18391
18392 # Transform the output of nm in a proper C declaration.
18393 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18394
18395 # Transform the output of nm into a list of symbols to manually relocate.
18396 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
18397
18398 # Transform the output of nm in a C name address pair.
18399 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18400
18401 # Transform the output of nm in a C name address pair when lib prefix is needed.
18402 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18403
18404 # The name lister interface.
18405 nm_interface=$lt_lt_cv_nm_interface
18406
18407 # Specify filename containing input files for \$NM.
18408 nm_file_list_spec=$lt_nm_file_list_spec
18409
18410 # The root where to search for dependent libraries,and where our libraries should be installed.
18411 lt_sysroot=$lt_sysroot
18412
18413 # Command to truncate a binary pipe.
18414 lt_truncate_bin=$lt_lt_cv_truncate_bin
18415
18416 # The name of the directory that contains temporary libtool files.
18417 objdir=$objdir
18418
18419 # Used to examine libraries when file_magic_cmd begins with "file".
18420 MAGIC_CMD=$MAGIC_CMD
18421
18422 # Must we lock files when doing compilation?
18423 need_locks=$lt_need_locks
18424
18425 # Manifest tool.
18426 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18427
18428 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18429 DSYMUTIL=$lt_DSYMUTIL
18430
18431 # Tool to change global to local symbols on Mac OS X.
18432 NMEDIT=$lt_NMEDIT
18433
18434 # Tool to manipulate fat objects and archives on Mac OS X.
18435 LIPO=$lt_LIPO
18436
18437 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18438 OTOOL=$lt_OTOOL
18439
18440 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18441 OTOOL64=$lt_OTOOL64
18442
18443 # Old archive suffix (normally "a").
18444 libext=$libext
18445
18446 # Shared library suffix (normally ".so").
18447 shrext_cmds=$lt_shrext_cmds
18448
18449 # The commands to extract the exported symbol list from a shared archive.
18450 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18451
18452 # Variables whose values should be saved in libtool wrapper scripts and
18453 # restored at link time.
18454 variables_saved_for_relink=$lt_variables_saved_for_relink
18455
18456 # Do we need the "lib" prefix for modules?
18457 need_lib_prefix=$need_lib_prefix
18458
18459 # Do we need a version for libraries?
18460 need_version=$need_version
18461
18462 # Library versioning type.
18463 version_type=$version_type
18464
18465 # Shared library runtime path variable.
18466 runpath_var=$runpath_var
18467
18468 # Shared library path variable.
18469 shlibpath_var=$shlibpath_var
18470
18471 # Is shlibpath searched before the hard-coded library search path?
18472 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18473
18474 # Format of library name prefix.
18475 libname_spec=$lt_libname_spec
18476
18477 # List of archive names. First name is the real one, the rest are links.
18478 # The last name is the one that the linker finds with -lNAME
18479 library_names_spec=$lt_library_names_spec
18480
18481 # The coded name of the library, if different from the real name.
18482 soname_spec=$lt_soname_spec
18483
18484 # Permission mode override for installation of shared libraries.
18485 install_override_mode=$lt_install_override_mode
18486
18487 # Command to use after installation of a shared archive.
18488 postinstall_cmds=$lt_postinstall_cmds
18489
18490 # Command to use after uninstallation of a shared archive.
18491 postuninstall_cmds=$lt_postuninstall_cmds
18492
18493 # Commands used to finish a libtool library installation in a directory.
18494 finish_cmds=$lt_finish_cmds
18495
18496 # As "finish_cmds", except a single script fragment to be evaled but
18497 # not shown.
18498 finish_eval=$lt_finish_eval
18499
18500 # Whether we should hardcode library paths into libraries.
18501 hardcode_into_libs=$hardcode_into_libs
18502
18503 # Compile-time system search path for libraries.
18504 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18505
18506 # Detected run-time system search path for libraries.
18507 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
18508
18509 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
18510 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
18511
18512 # Whether dlopen is supported.
18513 dlopen_support=$enable_dlopen
18514
18515 # Whether dlopen of programs is supported.
18516 dlopen_self=$enable_dlopen_self
18517
18518 # Whether dlopen of statically linked programs is supported.
18519 dlopen_self_static=$enable_dlopen_self_static
18520
18521 # Commands to strip libraries.
18522 old_striplib=$lt_old_striplib
18523 striplib=$lt_striplib
18524
18525
18526 # The linker used to build libraries.
18527 LD=$lt_LD
18528
18529 # How to create reloadable object files.
18530 reload_flag=$lt_reload_flag
18531 reload_cmds=$lt_reload_cmds
18532
18533 # Commands used to build an old-style archive.
18534 old_archive_cmds=$lt_old_archive_cmds
18535
18536 # A language specific compiler.
18537 CC=$lt_compiler
18538
18539 # Is the compiler the GNU compiler?
18540 with_gcc=$GCC
18541
18542 # Compiler flag to turn off builtin functions.
18543 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18544
18545 # Additional compiler flags for building library objects.
18546 pic_flag=$lt_lt_prog_compiler_pic
18547
18548 # How to pass a linker flag through the compiler.
18549 wl=$lt_lt_prog_compiler_wl
18550
18551 # Compiler flag to prevent dynamic linking.
18552 link_static_flag=$lt_lt_prog_compiler_static
18553
18554 # Does compiler simultaneously support -c and -o options?
18555 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18556
18557 # Whether or not to add -lc for building shared libraries.
18558 build_libtool_need_lc=$archive_cmds_need_lc
18559
18560 # Whether or not to disallow shared libs when runtime libs are static.
18561 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18562
18563 # Compiler flag to allow reflexive dlopens.
18564 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18565
18566 # Compiler flag to generate shared objects directly from archives.
18567 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18568
18569 # Whether the compiler copes with passing no objects directly.
18570 compiler_needs_object=$lt_compiler_needs_object
18571
18572 # Create an old-style archive from a shared archive.
18573 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18574
18575 # Create a temporary old-style archive to link instead of a shared archive.
18576 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18577
18578 # Commands used to build a shared archive.
18579 archive_cmds=$lt_archive_cmds
18580 archive_expsym_cmds=$lt_archive_expsym_cmds
18581
18582 # Commands used to build a loadable module if different from building
18583 # a shared archive.
18584 module_cmds=$lt_module_cmds
18585 module_expsym_cmds=$lt_module_expsym_cmds
18586
18587 # Whether we are building with GNU ld or not.
18588 with_gnu_ld=$lt_with_gnu_ld
18589
18590 # Flag that allows shared libraries with undefined symbols to be built.
18591 allow_undefined_flag=$lt_allow_undefined_flag
18592
18593 # Flag that enforces no undefined symbols.
18594 no_undefined_flag=$lt_no_undefined_flag
18595
18596 # Flag to hardcode \$libdir into a binary during linking.
18597 # This must work even if \$libdir does not exist
18598 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18599
18600 # Whether we need a single "-rpath" flag with a separated argument.
18601 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18602
18603 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18604 # DIR into the resulting binary.
18605 hardcode_direct=$hardcode_direct
18606
18607 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18608 # DIR into the resulting binary and the resulting library dependency is
18609 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
18610 # library is relocated.
18611 hardcode_direct_absolute=$hardcode_direct_absolute
18612
18613 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18614 # into the resulting binary.
18615 hardcode_minus_L=$hardcode_minus_L
18616
18617 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18618 # into the resulting binary.
18619 hardcode_shlibpath_var=$hardcode_shlibpath_var
18620
18621 # Set to "yes" if building a shared library automatically hardcodes DIR
18622 # into the library and all subsequent libraries and executables linked
18623 # against it.
18624 hardcode_automatic=$hardcode_automatic
18625
18626 # Set to yes if linker adds runtime paths of dependent libraries
18627 # to runtime path list.
18628 inherit_rpath=$inherit_rpath
18629
18630 # Whether libtool must link a program against all its dependency libraries.
18631 link_all_deplibs=$link_all_deplibs
18632
18633 # Set to "yes" if exported symbols are required.
18634 always_export_symbols=$always_export_symbols
18635
18636 # The commands to list exported symbols.
18637 export_symbols_cmds=$lt_export_symbols_cmds
18638
18639 # Symbols that should not be listed in the preloaded symbols.
18640 exclude_expsyms=$lt_exclude_expsyms
18641
18642 # Symbols that must always be exported.
18643 include_expsyms=$lt_include_expsyms
18644
18645 # Commands necessary for linking programs (against libraries) with templates.
18646 prelink_cmds=$lt_prelink_cmds
18647
18648 # Commands necessary for finishing linking programs.
18649 postlink_cmds=$lt_postlink_cmds
18650
18651 # Specify filename containing input files.
18652 file_list_spec=$lt_file_list_spec
18653
18654 # How to hardcode a shared library path into an executable.
18655 hardcode_action=$hardcode_action
18656
18657 # ### END LIBTOOL CONFIG
18658
18659 _LT_EOF
18660
18661 cat <<'_LT_EOF' >> "$cfgfile"
18662
18663 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
18664
18665 # func_munge_path_list VARIABLE PATH
18666 # -----------------------------------
18667 # VARIABLE is name of variable containing _space_ separated list of
18668 # directories to be munged by the contents of PATH, which is string
18669 # having a format:
18670 # "DIR[:DIR]:"
18671 # string "DIR[ DIR]" will be prepended to VARIABLE
18672 # ":DIR[:DIR]"
18673 # string "DIR[ DIR]" will be appended to VARIABLE
18674 # "DIRP[:DIRP]::[DIRA:]DIRA"
18675 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
18676 # "DIRA[ DIRA]" will be appended to VARIABLE
18677 # "DIR[:DIR]"
18678 # VARIABLE will be replaced by "DIR[ DIR]"
18679 func_munge_path_list ()
18680 {
18681 case x$2 in
18682 x)
18683 ;;
18684 *:)
18685 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
18686 ;;
18687 x:*)
18688 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
18689 ;;
18690 *::*)
18691 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
18692 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
18693 ;;
18694 *)
18695 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
18696 ;;
18697 esac
18698 }
18699
18700
18701 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
18702 func_cc_basename ()
18703 {
18704 for cc_temp in $*""; do
18705 case $cc_temp in
18706 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18707 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18708 \-*) ;;
18709 *) break;;
18710 esac
18711 done
18712 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18713 }
18714
18715
18716 # ### END FUNCTIONS SHARED WITH CONFIGURE
18717
18718 _LT_EOF
18719
18720 case $host_os in
18721 aix3*)
18722 cat <<\_LT_EOF >> "$cfgfile"
18723 # AIX sometimes has problems with the GCC collect2 program. For some
18724 # reason, if we set the COLLECT_NAMES environment variable, the problems
18725 # vanish in a puff of smoke.
18726 if test set != "${COLLECT_NAMES+set}"; then
18727 COLLECT_NAMES=
18728 export COLLECT_NAMES
18729 fi
18730 _LT_EOF
18731 ;;
18732 esac
18733
18734
18735
18736 ltmain=$ac_aux_dir/ltmain.sh
18737
18738
18739 # We use sed instead of cat because bash on DJGPP gets confused if
18740 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18741 # text mode, it properly converts lines to CR/LF. This bash problem
18742 # is reportedly fixed, but why not run on old versions too?
18743 $SED '$q' "$ltmain" >> "$cfgfile" \
18744 || (rm -f "$cfgfile"; exit 1)
18745
18746 mv -f "$cfgfile" "$ofile" ||
18747 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18748 chmod +x "$ofile"
18749
18750 ;;
18751 "c-auto.h":H) sed -e 's/^#define PACKAGE/#define KPSE_PACKAGE/' \
18752 -e 's/^#define VERSION/#define KPSE_VERSION/' c-auto.h >c-auto.tmp && mv -f c-auto.tmp c-auto.h ;;
18753
18754 esac
18755 done # for ac_tag
18756
18757
18758 as_fn_exit 0
18759 _ACEOF
18760 ac_clean_files=$ac_clean_files_save
18761
18762 test $ac_write_fail = 0 ||
18763 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18764
18765
18766 # configure is writing to config.log, and then calls config.status.
18767 # config.status does its own redirection, appending to config.log.
18768 # Unfortunately, on DOS this fails, as config.log is still kept open
18769 # by configure, so config.status won't be able to write to it; its
18770 # output is simply discarded. So we exec the FD to /dev/null,
18771 # effectively closing config.log, so it can be properly (re)opened and
18772 # appended to by config.status. When coming back to configure, we
18773 # need to make the FD available again.
18774 if test "$no_create" != yes; then
18775 ac_cs_success=:
18776 ac_config_status_args=
18777 test "$silent" = yes &&
18778 ac_config_status_args="$ac_config_status_args --quiet"
18779 exec 5>/dev/null
18780 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18781 exec 5>>config.log
18782 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18783 # would make configure fail if this is the last instruction.
18784 $ac_cs_success || as_fn_exit 1
18785 fi
18786 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18788 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18789 fi
18790
18791