Debian Codegraph @

libs/pplib/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 pplib (TeX Live) 2.05.0.
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='pplib (TeX Live)'
616 PACKAGE_TARNAME='pplib--tex-live-'
617 PACKAGE_VERSION='2.05.0'
618 PACKAGE_STRING='pplib (TeX Live) 2.05.0'
619 PACKAGE_BUGREPORT='[email protected]'
620 PACKAGE_URL=''
621
622 ac_unique_file="pplib-src/src/pplib.h"
623 # Factoring default headers for most tests.
624 ac_includes_default="\
625 #include <stddef.h>
626 #ifdef HAVE_STDIO_H
627 # include <stdio.h>
628 #endif
629 #ifdef HAVE_STDLIB_H
630 # include <stdlib.h>
631 #endif
632 #ifdef HAVE_STRING_H
633 # include <string.h>
634 #endif
635 #ifdef HAVE_INTTYPES_H
636 # include <inttypes.h>
637 #endif
638 #ifdef HAVE_STDINT_H
639 # include <stdint.h>
640 #endif
641 #ifdef HAVE_STRINGS_H
642 # include <strings.h>
643 #endif
644 #ifdef HAVE_SYS_TYPES_H
645 # include <sys/types.h>
646 #endif
647 #ifdef HAVE_SYS_STAT_H
648 # include <sys/stat.h>
649 #endif
650 #ifdef HAVE_UNISTD_H
651 # include <unistd.h>
652 #endif"
653
654 ac_header_c_list=
655 enable_year2038=no
656 ac_subst_vars='am__EXEEXT_FALSE
657 am__EXEEXT_TRUE
658 LTLIBOBJS
659 LIBOBJS
660 PPLIB_TREE
661 ZLIB_RULE
662 ZLIB_DEPEND
663 ZLIB_LIBS
664 ZLIB_INCLUDES
665 build_FALSE
666 build_TRUE
667 LT_SYS_LIBRARY_PATH
668 OTOOL64
669 OTOOL
670 LIPO
671 NMEDIT
672 DSYMUTIL
673 MANIFEST_TOOL
674 ac_ct_AR
675 AR
676 FILECMD
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 PPLIB_LT_VERSINFO
698 PPLIBVERSION
699 LN_S
700 RANLIB
701 WARNING_CFLAGS
702 am__fastdepCC_FALSE
703 am__fastdepCC_TRUE
704 CCDEPMODE
705 am__nodep
706 AMDEPBACKSLASH
707 AMDEP_FALSE
708 AMDEP_TRUE
709 am__include
710 DEPDIR
711 OBJEXT
712 EXEEXT
713 ac_ct_CC
714 CPPFLAGS
715 LDFLAGS
716 CFLAGS
717 CC
718 MAINT
719 MAINTAINER_MODE_FALSE
720 MAINTAINER_MODE_TRUE
721 am__xargs_n
722 am__rm_f_notfound
723 AM_BACKSLASH
724 AM_DEFAULT_VERBOSITY
725 AM_DEFAULT_V
726 AM_V
727 CSCOPE
728 ETAGS
729 CTAGS
730 am__untar
731 am__tar
732 AMTAR
733 am__leading_dot
734 SET_MAKE
735 AWK
736 mkdir_p
737 MKDIR_P
738 INSTALL_STRIP_PROGRAM
739 STRIP
740 install_sh
741 MAKEINFO
742 AUTOHEADER
743 AUTOMAKE
744 AUTOCONF
745 ACLOCAL
746 VERSION
747 PACKAGE
748 CYGPATH_W
749 am__isrc
750 INSTALL_DATA
751 INSTALL_SCRIPT
752 INSTALL_PROGRAM
753 target_alias
754 host_alias
755 build_alias
756 LIBS
757 ECHO_T
758 ECHO_N
759 ECHO_C
760 DEFS
761 mandir
762 localedir
763 libdir
764 psdir
765 pdfdir
766 dvidir
767 htmldir
768 infodir
769 docdir
770 oldincludedir
771 includedir
772 runstatedir
773 localstatedir
774 sharedstatedir
775 sysconfdir
776 datadir
777 datarootdir
778 libexecdir
779 sbindir
780 bindir
781 program_transform_name
782 prefix
783 exec_prefix
784 PACKAGE_URL
785 PACKAGE_BUGREPORT
786 PACKAGE_STRING
787 PACKAGE_VERSION
788 PACKAGE_TARNAME
789 PACKAGE_NAME
790 PATH_SEPARATOR
791 SHELL
792 am__quote'
793 ac_subst_files=''
794 ac_user_opts='
795 enable_option_checking
796 enable_silent_rules
797 enable_maintainer_mode
798 enable_dependency_tracking
799 enable_compiler_warnings
800 enable_shared
801 enable_static
802 enable_pic
803 with_pic
804 enable_fast_install
805 enable_aix_soname
806 with_aix_soname
807 with_gnu_ld
808 with_sysroot
809 enable_libtool_lock
810 enable_largefile
811 with_system_zlib
812 with_zlib_includes
813 with_zlib_libdir
814 enable_year2038
815 '
816 ac_precious_vars='build_alias
817 host_alias
818 target_alias
819 CC
820 CFLAGS
821 LDFLAGS
822 LIBS
823 CPPFLAGS
824 LT_SYS_LIBRARY_PATH'
825
826
827 # Initialize some variables set by options.
828 ac_init_help=
829 ac_init_version=false
830 ac_unrecognized_opts=
831 ac_unrecognized_sep=
832 # The variables have the same names as the options, with
833 # dashes changed to underlines.
834 cache_file=/dev/null
835 exec_prefix=NONE
836 no_create=
837 no_recursion=
838 prefix=NONE
839 program_prefix=NONE
840 program_suffix=NONE
841 program_transform_name=s,x,x,
842 silent=
843 site=
844 srcdir=
845 verbose=
846 x_includes=NONE
847 x_libraries=NONE
848
849 # Installation directory options.
850 # These are left unexpanded so users can "make install exec_prefix=/foo"
851 # and all the variables that are supposed to be based on exec_prefix
852 # by default will actually change.
853 # Use braces instead of parens because sh, perl, etc. also accept them.
854 # (The list follows the same order as the GNU Coding Standards.)
855 bindir='${exec_prefix}/bin'
856 sbindir='${exec_prefix}/sbin'
857 libexecdir='${exec_prefix}/libexec'
858 datarootdir='${prefix}/share'
859 datadir='${datarootdir}'
860 sysconfdir='${prefix}/etc'
861 sharedstatedir='${prefix}/com'
862 localstatedir='${prefix}/var'
863 runstatedir='${localstatedir}/run'
864 includedir='${prefix}/include'
865 oldincludedir='/usr/include'
866 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
867 infodir='${datarootdir}/info'
868 htmldir='${docdir}'
869 dvidir='${docdir}'
870 pdfdir='${docdir}'
871 psdir='${docdir}'
872 libdir='${exec_prefix}/lib'
873 localedir='${datarootdir}/locale'
874 mandir='${datarootdir}/man'
875
876 ac_prev=
877 ac_dashdash=
878 for ac_option
879 do
880 # If the previous option needs an argument, assign it.
881 if test -n "$ac_prev"; then
882 eval $ac_prev=\$ac_option
883 ac_prev=
884 continue
885 fi
886
887 case $ac_option in
888 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
889 *=) ac_optarg= ;;
890 *) ac_optarg=yes ;;
891 esac
892
893 case $ac_dashdash$ac_option in
894 --)
895 ac_dashdash=yes ;;
896
897 -bindir | --bindir | --bindi | --bind | --bin | --bi)
898 ac_prev=bindir ;;
899 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
900 bindir=$ac_optarg ;;
901
902 -build | --build | --buil | --bui | --bu)
903 ac_prev=build_alias ;;
904 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
905 build_alias=$ac_optarg ;;
906
907 -cache-file | --cache-file | --cache-fil | --cache-fi \
908 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
909 ac_prev=cache_file ;;
910 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
911 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
912 cache_file=$ac_optarg ;;
913
914 --config-cache | -C)
915 cache_file=config.cache ;;
916
917 -datadir | --datadir | --datadi | --datad)
918 ac_prev=datadir ;;
919 -datadir=* | --datadir=* | --datadi=* | --datad=*)
920 datadir=$ac_optarg ;;
921
922 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
923 | --dataroo | --dataro | --datar)
924 ac_prev=datarootdir ;;
925 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
926 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
927 datarootdir=$ac_optarg ;;
928
929 -disable-* | --disable-*)
930 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
931 # Reject names that are not valid shell variable names.
932 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
933 as_fn_error $? "invalid feature name: '$ac_useropt'"
934 ac_useropt_orig=$ac_useropt
935 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
936 case $ac_user_opts in
937 *"
938 "enable_$ac_useropt"
939 "*) ;;
940 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
941 ac_unrecognized_sep=', ';;
942 esac
943 eval enable_$ac_useropt=no ;;
944
945 -docdir | --docdir | --docdi | --doc | --do)
946 ac_prev=docdir ;;
947 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
948 docdir=$ac_optarg ;;
949
950 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
951 ac_prev=dvidir ;;
952 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
953 dvidir=$ac_optarg ;;
954
955 -enable-* | --enable-*)
956 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
957 # Reject names that are not valid shell variable names.
958 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
959 as_fn_error $? "invalid feature name: '$ac_useropt'"
960 ac_useropt_orig=$ac_useropt
961 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
962 case $ac_user_opts in
963 *"
964 "enable_$ac_useropt"
965 "*) ;;
966 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
967 ac_unrecognized_sep=', ';;
968 esac
969 eval enable_$ac_useropt=\$ac_optarg ;;
970
971 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
972 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
973 | --exec | --exe | --ex)
974 ac_prev=exec_prefix ;;
975 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
976 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
977 | --exec=* | --exe=* | --ex=*)
978 exec_prefix=$ac_optarg ;;
979
980 -gas | --gas | --ga | --g)
981 # Obsolete; use --with-gas.
982 with_gas=yes ;;
983
984 -help | --help | --hel | --he | -h)
985 ac_init_help=long ;;
986 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
987 ac_init_help=recursive ;;
988 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
989 ac_init_help=short ;;
990
991 -host | --host | --hos | --ho)
992 ac_prev=host_alias ;;
993 -host=* | --host=* | --hos=* | --ho=*)
994 host_alias=$ac_optarg ;;
995
996 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
997 ac_prev=htmldir ;;
998 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
999 | --ht=*)
1000 htmldir=$ac_optarg ;;
1001
1002 -includedir | --includedir | --includedi | --included | --include \
1003 | --includ | --inclu | --incl | --inc)
1004 ac_prev=includedir ;;
1005 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1006 | --includ=* | --inclu=* | --incl=* | --inc=*)
1007 includedir=$ac_optarg ;;
1008
1009 -infodir | --infodir | --infodi | --infod | --info | --inf)
1010 ac_prev=infodir ;;
1011 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1012 infodir=$ac_optarg ;;
1013
1014 -libdir | --libdir | --libdi | --libd)
1015 ac_prev=libdir ;;
1016 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1017 libdir=$ac_optarg ;;
1018
1019 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1020 | --libexe | --libex | --libe)
1021 ac_prev=libexecdir ;;
1022 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1023 | --libexe=* | --libex=* | --libe=*)
1024 libexecdir=$ac_optarg ;;
1025
1026 -localedir | --localedir | --localedi | --localed | --locale)
1027 ac_prev=localedir ;;
1028 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1029 localedir=$ac_optarg ;;
1030
1031 -localstatedir | --localstatedir | --localstatedi | --localstated \
1032 | --localstate | --localstat | --localsta | --localst | --locals)
1033 ac_prev=localstatedir ;;
1034 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1035 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1036 localstatedir=$ac_optarg ;;
1037
1038 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1039 ac_prev=mandir ;;
1040 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1041 mandir=$ac_optarg ;;
1042
1043 -nfp | --nfp | --nf)
1044 # Obsolete; use --without-fp.
1045 with_fp=no ;;
1046
1047 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1048 | --no-cr | --no-c | -n)
1049 no_create=yes ;;
1050
1051 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1052 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1053 no_recursion=yes ;;
1054
1055 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1056 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1057 | --oldin | --oldi | --old | --ol | --o)
1058 ac_prev=oldincludedir ;;
1059 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1060 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1061 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1062 oldincludedir=$ac_optarg ;;
1063
1064 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1065 ac_prev=prefix ;;
1066 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1067 prefix=$ac_optarg ;;
1068
1069 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1070 | --program-pre | --program-pr | --program-p)
1071 ac_prev=program_prefix ;;
1072 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1073 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1074 program_prefix=$ac_optarg ;;
1075
1076 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1077 | --program-suf | --program-su | --program-s)
1078 ac_prev=program_suffix ;;
1079 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1080 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1081 program_suffix=$ac_optarg ;;
1082
1083 -program-transform-name | --program-transform-name \
1084 | --program-transform-nam | --program-transform-na \
1085 | --program-transform-n | --program-transform- \
1086 | --program-transform | --program-transfor \
1087 | --program-transfo | --program-transf \
1088 | --program-trans | --program-tran \
1089 | --progr-tra | --program-tr | --program-t)
1090 ac_prev=program_transform_name ;;
1091 -program-transform-name=* | --program-transform-name=* \
1092 | --program-transform-nam=* | --program-transform-na=* \
1093 | --program-transform-n=* | --program-transform-=* \
1094 | --program-transform=* | --program-transfor=* \
1095 | --program-transfo=* | --program-transf=* \
1096 | --program-trans=* | --program-tran=* \
1097 | --progr-tra=* | --program-tr=* | --program-t=*)
1098 program_transform_name=$ac_optarg ;;
1099
1100 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1101 ac_prev=pdfdir ;;
1102 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1103 pdfdir=$ac_optarg ;;
1104
1105 -psdir | --psdir | --psdi | --psd | --ps)
1106 ac_prev=psdir ;;
1107 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1108 psdir=$ac_optarg ;;
1109
1110 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1111 | -silent | --silent | --silen | --sile | --sil)
1112 silent=yes ;;
1113
1114 -runstatedir | --runstatedir | --runstatedi | --runstated \
1115 | --runstate | --runstat | --runsta | --runst | --runs \
1116 | --run | --ru | --r)
1117 ac_prev=runstatedir ;;
1118 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1119 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1120 | --run=* | --ru=* | --r=*)
1121 runstatedir=$ac_optarg ;;
1122
1123 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1124 ac_prev=sbindir ;;
1125 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1126 | --sbi=* | --sb=*)
1127 sbindir=$ac_optarg ;;
1128
1129 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1130 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1131 | --sharedst | --shareds | --shared | --share | --shar \
1132 | --sha | --sh)
1133 ac_prev=sharedstatedir ;;
1134 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1135 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1136 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1137 | --sha=* | --sh=*)
1138 sharedstatedir=$ac_optarg ;;
1139
1140 -site | --site | --sit)
1141 ac_prev=site ;;
1142 -site=* | --site=* | --sit=*)
1143 site=$ac_optarg ;;
1144
1145 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1146 ac_prev=srcdir ;;
1147 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1148 srcdir=$ac_optarg ;;
1149
1150 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1151 | --syscon | --sysco | --sysc | --sys | --sy)
1152 ac_prev=sysconfdir ;;
1153 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1154 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1155 sysconfdir=$ac_optarg ;;
1156
1157 -target | --target | --targe | --targ | --tar | --ta | --t)
1158 ac_prev=target_alias ;;
1159 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1160 target_alias=$ac_optarg ;;
1161
1162 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1163 verbose=yes ;;
1164
1165 -version | --version | --versio | --versi | --vers | -V)
1166 ac_init_version=: ;;
1167
1168 -with-* | --with-*)
1169 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1170 # Reject names that are not valid shell variable names.
1171 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1172 as_fn_error $? "invalid package name: '$ac_useropt'"
1173 ac_useropt_orig=$ac_useropt
1174 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1175 case $ac_user_opts in
1176 *"
1177 "with_$ac_useropt"
1178 "*) ;;
1179 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1180 ac_unrecognized_sep=', ';;
1181 esac
1182 eval with_$ac_useropt=\$ac_optarg ;;
1183
1184 -without-* | --without-*)
1185 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1186 # Reject names that are not valid shell variable names.
1187 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1188 as_fn_error $? "invalid package name: '$ac_useropt'"
1189 ac_useropt_orig=$ac_useropt
1190 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1191 case $ac_user_opts in
1192 *"
1193 "with_$ac_useropt"
1194 "*) ;;
1195 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1196 ac_unrecognized_sep=', ';;
1197 esac
1198 eval with_$ac_useropt=no ;;
1199
1200 --x)
1201 # Obsolete; use --with-x.
1202 with_x=yes ;;
1203
1204 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1205 | --x-incl | --x-inc | --x-in | --x-i)
1206 ac_prev=x_includes ;;
1207 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1208 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1209 x_includes=$ac_optarg ;;
1210
1211 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1212 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1213 ac_prev=x_libraries ;;
1214 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1215 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1216 x_libraries=$ac_optarg ;;
1217
1218 -*) as_fn_error $? "unrecognized option: '$ac_option'
1219 Try '$0 --help' for more information"
1220 ;;
1221
1222 *=*)
1223 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1224 # Reject names that are not valid shell variable names.
1225 case $ac_envvar in #(
1226 '' | [0-9]* | *[!_$as_cr_alnum]* )
1227 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1228 esac
1229 eval $ac_envvar=\$ac_optarg
1230 export $ac_envvar ;;
1231
1232 *)
1233 # FIXME: should be removed in autoconf 3.0.
1234 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1235 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1236 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1237 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1238 ;;
1239
1240 esac
1241 done
1242
1243 if test -n "$ac_prev"; then
1244 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1245 as_fn_error $? "missing argument to $ac_option"
1246 fi
1247
1248 if test -n "$ac_unrecognized_opts"; then
1249 case $enable_option_checking in
1250 no) ;;
1251 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1252 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1253 esac
1254 fi
1255
1256 # Check all directory arguments for consistency.
1257 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1258 datadir sysconfdir sharedstatedir localstatedir includedir \
1259 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1260 libdir localedir mandir runstatedir
1261 do
1262 eval ac_val=\$$ac_var
1263 # Remove trailing slashes.
1264 case $ac_val in
1265 */ )
1266 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1267 eval $ac_var=\$ac_val;;
1268 esac
1269 # Be sure to have absolute directory names.
1270 case $ac_val in
1271 [\\/$]* | ?:[\\/]* ) continue;;
1272 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1273 esac
1274 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1275 done
1276
1277 # There might be people who depend on the old broken behavior: '$host'
1278 # used to hold the argument of --host etc.
1279 # FIXME: To remove some day.
1280 build=$build_alias
1281 host=$host_alias
1282 target=$target_alias
1283
1284 # FIXME: To remove some day.
1285 if test "x$host_alias" != x; then
1286 if test "x$build_alias" = x; then
1287 cross_compiling=maybe
1288 elif test "x$build_alias" != "x$host_alias"; then
1289 cross_compiling=yes
1290 fi
1291 fi
1292
1293 ac_tool_prefix=
1294 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1295
1296 test "$silent" = yes && exec 6>/dev/null
1297
1298
1299 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1300 ac_ls_di=`ls -di .` &&
1301 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1302 as_fn_error $? "working directory cannot be determined"
1303 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1304 as_fn_error $? "pwd does not report name of working directory"
1305
1306
1307 # Find the source files, if location was not specified.
1308 if test -z "$srcdir"; then
1309 ac_srcdir_defaulted=yes
1310 # Try the directory containing this script, then the parent directory.
1311 ac_confdir=`$as_dirname -- "$as_myself" ||
1312 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1313 X"$as_myself" : 'X\(//\)[^/]' \| \
1314 X"$as_myself" : 'X\(//\)$' \| \
1315 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1316 printf "%s\n" X"$as_myself" |
1317 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1318 s//\1/
1319 q
1320 }
1321 /^X\(\/\/\)[^/].*/{
1322 s//\1/
1323 q
1324 }
1325 /^X\(\/\/\)$/{
1326 s//\1/
1327 q
1328 }
1329 /^X\(\/\).*/{
1330 s//\1/
1331 q
1332 }
1333 s/.*/./; q'`
1334 srcdir=$ac_confdir
1335 if test ! -r "$srcdir/$ac_unique_file"; then
1336 srcdir=..
1337 fi
1338 else
1339 ac_srcdir_defaulted=no
1340 fi
1341 if test ! -r "$srcdir/$ac_unique_file"; then
1342 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1343 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1344 fi
1345 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1346 ac_abs_confdir=`(
1347 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1348 pwd)`
1349 # When building in place, set srcdir=.
1350 if test "$ac_abs_confdir" = "$ac_pwd"; then
1351 srcdir=.
1352 fi
1353 # Remove unnecessary trailing slashes from srcdir.
1354 # Double slashes in file names in object file debugging info
1355 # mess up M-x gdb in Emacs.
1356 case $srcdir in
1357 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1358 esac
1359 for ac_var in $ac_precious_vars; do
1360 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1361 eval ac_env_${ac_var}_value=\$${ac_var}
1362 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1363 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1364 done
1365
1366 #
1367 # Report the --help message.
1368 #
1369 if test "$ac_init_help" = "long"; then
1370 # Omit some internal or obsolete options to make the list less imposing.
1371 # This message is too long to be a string in the A/UX 3.1 sh.
1372 cat <<_ACEOF
1373 'configure' configures pplib (TeX Live) 2.05.0 to adapt to many kinds of systems.
1374
1375 Usage: $0 [OPTION]... [VAR=VALUE]...
1376
1377 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1378 VAR=VALUE. See below for descriptions of some of the useful variables.
1379
1380 Defaults for the options are specified in brackets.
1381
1382 Configuration:
1383 -h, --help display this help and exit
1384 --help=short display options specific to this package
1385 --help=recursive display the short help of all the included packages
1386 -V, --version display version information and exit
1387 -q, --quiet, --silent do not print 'checking ...' messages
1388 --cache-file=FILE cache test results in FILE [disabled]
1389 -C, --config-cache alias for '--cache-file=config.cache'
1390 -n, --no-create do not create output files
1391 --srcdir=DIR find the sources in DIR [configure dir or '..']
1392
1393 Installation directories:
1394 --prefix=PREFIX install architecture-independent files in PREFIX
1395 [$ac_default_prefix]
1396 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1397 [PREFIX]
1398
1399 By default, 'make install' will install all the files in
1400 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1401 an installation prefix other than '$ac_default_prefix' using '--prefix',
1402 for instance '--prefix=\$HOME'.
1403
1404 For better control, use the options below.
1405
1406 Fine tuning of the installation directories:
1407 --bindir=DIR user executables [EPREFIX/bin]
1408 --sbindir=DIR system admin executables [EPREFIX/sbin]
1409 --libexecdir=DIR program executables [EPREFIX/libexec]
1410 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1411 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1412 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1413 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1414 --libdir=DIR object code libraries [EPREFIX/lib]
1415 --includedir=DIR C header files [PREFIX/include]
1416 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1417 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1418 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1419 --infodir=DIR info documentation [DATAROOTDIR/info]
1420 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1421 --mandir=DIR man documentation [DATAROOTDIR/man]
1422 --docdir=DIR documentation root
1423 [DATAROOTDIR/doc/pplib--tex-live-]
1424 --htmldir=DIR html documentation [DOCDIR]
1425 --dvidir=DIR dvi documentation [DOCDIR]
1426 --pdfdir=DIR pdf documentation [DOCDIR]
1427 --psdir=DIR ps documentation [DOCDIR]
1428 _ACEOF
1429
1430 cat <<\_ACEOF
1431
1432 Program names:
1433 --program-prefix=PREFIX prepend PREFIX to installed program names
1434 --program-suffix=SUFFIX append SUFFIX to installed program names
1435 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1436
1437 System types:
1438 --build=BUILD configure for building on BUILD [guessed]
1439 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1440 _ACEOF
1441 fi
1442
1443 if test -n "$ac_init_help"; then
1444 case $ac_init_help in
1445 short | recursive ) echo "Configuration of pplib (TeX Live) 2.05.0:";;
1446 esac
1447 cat <<\_ACEOF
1448
1449 Optional Features:
1450 --disable-option-checking ignore unrecognized --enable/--with options
1451 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1452 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1453 --enable-silent-rules less verbose build output (undo: "make V=1")
1454 --disable-silent-rules verbose build output (undo: "make V=0")
1455 --enable-maintainer-mode
1456 enable make rules and dependencies not useful (and
1457 sometimes confusing) to the casual installer
1458 --enable-dependency-tracking
1459 do not reject slow dependency extractors
1460 --disable-dependency-tracking
1461 speeds up one-time build
1462 --enable-compiler-warnings=[no|min|yes|max|all]
1463 Turn on compiler warnings [default: yes if
1464 maintainer-mode, min otherwise]
1465 --enable-shared[=PKGS] build shared libraries [default=yes]
1466 --enable-static[=PKGS] build static libraries [default=yes]
1467 --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1468 both]
1469 --enable-fast-install[=PKGS]
1470 optimize for fast installation [default=yes]
1471 --enable-aix-soname=aix|svr4|both
1472 shared library versioning (aka "SONAME") variant to
1473 provide on AIX, [default=aix].
1474 --disable-libtool-lock avoid locking (might break parallel builds)
1475 --disable-largefile omit support for large files
1476 --enable-year2038 support timestamps after 2038
1477
1478 Optional Packages:
1479 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1480 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1481 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1482 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1483 compiler's sysroot if not specified).
1484 --with-system-zlib use installed zlib headers and library
1485 --with-zlib-includes=DIR
1486 zlib headers installed in DIR
1487 --with-zlib-libdir=DIR zlib library installed in DIR
1488
1489 Some influential environment variables:
1490 CC C compiler command
1491 CFLAGS C compiler flags
1492 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1493 nonstandard directory <lib dir>
1494 LIBS libraries to pass to the linker, e.g. -l<library>
1495 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1496 you have headers in a nonstandard directory <include dir>
1497 LT_SYS_LIBRARY_PATH
1498 User-defined run-time library search path.
1499
1500 Use these variables to override the choices made by 'configure' or to help
1501 it to find libraries and programs with nonstandard names/locations.
1502
1503 Report bugs to <[email protected]>.
1504 _ACEOF
1505 ac_status=$?
1506 fi
1507
1508 if test "$ac_init_help" = "recursive"; then
1509 # If there are subdirs, report their specific --help.
1510 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1511 test -d "$ac_dir" ||
1512 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1513 continue
1514 ac_builddir=.
1515
1516 case "$ac_dir" in
1517 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1518 *)
1519 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1520 # A ".." for each directory in $ac_dir_suffix.
1521 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1522 case $ac_top_builddir_sub in
1523 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1524 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1525 esac ;;
1526 esac
1527 ac_abs_top_builddir=$ac_pwd
1528 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1529 # for backward compatibility:
1530 ac_top_builddir=$ac_top_build_prefix
1531
1532 case $srcdir in
1533 .) # We are building in place.
1534 ac_srcdir=.
1535 ac_top_srcdir=$ac_top_builddir_sub
1536 ac_abs_top_srcdir=$ac_pwd ;;
1537 [\\/]* | ?:[\\/]* ) # Absolute name.
1538 ac_srcdir=$srcdir$ac_dir_suffix;
1539 ac_top_srcdir=$srcdir
1540 ac_abs_top_srcdir=$srcdir ;;
1541 *) # Relative name.
1542 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1543 ac_top_srcdir=$ac_top_build_prefix$srcdir
1544 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1545 esac
1546 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1547
1548 cd "$ac_dir" || { ac_status=$?; continue; }
1549 # Check for configure.gnu first; this name is used for a wrapper for
1550 # Metaconfig's "Configure" on case-insensitive file systems.
1551 if test -f "$ac_srcdir/configure.gnu"; then
1552 echo &&
1553 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1554 elif test -f "$ac_srcdir/configure"; then
1555 echo &&
1556 $SHELL "$ac_srcdir/configure" --help=recursive
1557 else
1558 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1559 fi || ac_status=$?
1560 cd "$ac_pwd" || { ac_status=$?; break; }
1561 done
1562 fi
1563
1564 test -n "$ac_init_help" && exit $ac_status
1565 if $ac_init_version; then
1566 cat <<\_ACEOF
1567 pplib (TeX Live) configure 2.05.0
1568 generated by GNU Autoconf 2.72
1569
1570 Copyright (C) 2023 Free Software Foundation, Inc.
1571 This configure script is free software; the Free Software Foundation
1572 gives unlimited permission to copy, distribute and modify it.
1573 _ACEOF
1574 exit
1575 fi
1576
1577 ## ------------------------ ##
1578 ## Autoconf initialization. ##
1579 ## ------------------------ ##
1580
1581 # ac_fn_c_try_compile LINENO
1582 # --------------------------
1583 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1584 ac_fn_c_try_compile ()
1585 {
1586 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1587 rm -f conftest.$ac_objext conftest.beam
1588 if { { ac_try="$ac_compile"
1589 case "(($ac_try" in
1590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1591 *) ac_try_echo=$ac_try;;
1592 esac
1593 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1594 printf "%s\n" "$ac_try_echo"; } >&5
1595 (eval "$ac_compile") 2>conftest.err
1596 ac_status=$?
1597 if test -s conftest.err; then
1598 grep -v '^ *+' conftest.err >conftest.er1
1599 cat conftest.er1 >&5
1600 mv -f conftest.er1 conftest.err
1601 fi
1602 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1603 test $ac_status = 0; } && {
1604 test -z "$ac_c_werror_flag" ||
1605 test ! -s conftest.err
1606 } && test -s conftest.$ac_objext
1607 then :
1608 ac_retval=0
1609 else case e in #(
1610 e) printf "%s\n" "$as_me: failed program was:" >&5
1611 sed 's/^/| /' conftest.$ac_ext >&5
1612
1613 ac_retval=1 ;;
1614 esac
1615 fi
1616 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1617 as_fn_set_status $ac_retval
1618
1619 } # ac_fn_c_try_compile
1620
1621 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1622 # -------------------------------------------------------
1623 # Tests whether HEADER exists and can be compiled using the include files in
1624 # INCLUDES, setting the cache variable VAR accordingly.
1625 ac_fn_c_check_header_compile ()
1626 {
1627 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1629 printf %s "checking for $2... " >&6; }
1630 if eval test \${$3+y}
1631 then :
1632 printf %s "(cached) " >&6
1633 else case e in #(
1634 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1635 /* end confdefs.h. */
1636 $4
1637 #include <$2>
1638 _ACEOF
1639 if ac_fn_c_try_compile "$LINENO"
1640 then :
1641 eval "$3=yes"
1642 else case e in #(
1643 e) eval "$3=no" ;;
1644 esac
1645 fi
1646 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1647 esac
1648 fi
1649 eval ac_res=\$$3
1650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1651 printf "%s\n" "$ac_res" >&6; }
1652 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1653
1654 } # ac_fn_c_check_header_compile
1655
1656 # ac_fn_c_try_link LINENO
1657 # -----------------------
1658 # Try to link conftest.$ac_ext, and return whether this succeeded.
1659 ac_fn_c_try_link ()
1660 {
1661 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1662 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1663 if { { ac_try="$ac_link"
1664 case "(($ac_try" in
1665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1666 *) ac_try_echo=$ac_try;;
1667 esac
1668 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1669 printf "%s\n" "$ac_try_echo"; } >&5
1670 (eval "$ac_link") 2>conftest.err
1671 ac_status=$?
1672 if test -s conftest.err; then
1673 grep -v '^ *+' conftest.err >conftest.er1
1674 cat conftest.er1 >&5
1675 mv -f conftest.er1 conftest.err
1676 fi
1677 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1678 test $ac_status = 0; } && {
1679 test -z "$ac_c_werror_flag" ||
1680 test ! -s conftest.err
1681 } && test -s conftest$ac_exeext && {
1682 test "$cross_compiling" = yes ||
1683 test -x conftest$ac_exeext
1684 }
1685 then :
1686 ac_retval=0
1687 else case e in #(
1688 e) printf "%s\n" "$as_me: failed program was:" >&5
1689 sed 's/^/| /' conftest.$ac_ext >&5
1690
1691 ac_retval=1 ;;
1692 esac
1693 fi
1694 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1695 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1696 # interfere with the next link command; also delete a directory that is
1697 # left behind by Apple's compiler. We do this before executing the actions.
1698 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1699 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1700 as_fn_set_status $ac_retval
1701
1702 } # ac_fn_c_try_link
1703
1704 # ac_fn_c_check_func LINENO FUNC VAR
1705 # ----------------------------------
1706 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1707 ac_fn_c_check_func ()
1708 {
1709 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1711 printf %s "checking for $2... " >&6; }
1712 if eval test \${$3+y}
1713 then :
1714 printf %s "(cached) " >&6
1715 else case e in #(
1716 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1717 /* end confdefs.h. */
1718 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1719 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1720 #define $2 innocuous_$2
1721
1722 /* System header to define __stub macros and hopefully few prototypes,
1723 which can conflict with char $2 (void); below. */
1724
1725 #include <limits.h>
1726 #undef $2
1727
1728 /* Override any GCC internal prototype to avoid an error.
1729 Use char because int might match the return type of a GCC
1730 builtin and then its argument prototype would still apply. */
1731 #ifdef __cplusplus
1732 extern "C"
1733 #endif
1734 char $2 (void);
1735 /* The GNU C library defines this for functions which it implements
1736 to always fail with ENOSYS. Some functions are actually named
1737 something starting with __ and the normal name is an alias. */
1738 #if defined __stub_$2 || defined __stub___$2
1739 choke me
1740 #endif
1741
1742 int
1743 main (void)
1744 {
1745 return $2 ();
1746 ;
1747 return 0;
1748 }
1749 _ACEOF
1750 if ac_fn_c_try_link "$LINENO"
1751 then :
1752 eval "$3=yes"
1753 else case e in #(
1754 e) eval "$3=no" ;;
1755 esac
1756 fi
1757 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1758 conftest$ac_exeext conftest.$ac_ext ;;
1759 esac
1760 fi
1761 eval ac_res=\$$3
1762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1763 printf "%s\n" "$ac_res" >&6; }
1764 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1765
1766 } # ac_fn_c_check_func
1767
1768 # ac_fn_c_try_run LINENO
1769 # ----------------------
1770 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1771 # executables *can* be run.
1772 ac_fn_c_try_run ()
1773 {
1774 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1775 if { { ac_try="$ac_link"
1776 case "(($ac_try" in
1777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1778 *) ac_try_echo=$ac_try;;
1779 esac
1780 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1781 printf "%s\n" "$ac_try_echo"; } >&5
1782 (eval "$ac_link") 2>&5
1783 ac_status=$?
1784 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1785 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1786 { { case "(($ac_try" in
1787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1788 *) ac_try_echo=$ac_try;;
1789 esac
1790 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1791 printf "%s\n" "$ac_try_echo"; } >&5
1792 (eval "$ac_try") 2>&5
1793 ac_status=$?
1794 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1795 test $ac_status = 0; }; }
1796 then :
1797 ac_retval=0
1798 else case e in #(
1799 e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1800 printf "%s\n" "$as_me: failed program was:" >&5
1801 sed 's/^/| /' conftest.$ac_ext >&5
1802
1803 ac_retval=$ac_status ;;
1804 esac
1805 fi
1806 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1807 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1808 as_fn_set_status $ac_retval
1809
1810 } # ac_fn_c_try_run
1811
1812 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1813 # --------------------------------------------
1814 # Tries to find the compile-time value of EXPR in a program that includes
1815 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1816 # computed
1817 ac_fn_c_compute_int ()
1818 {
1819 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1820 if test "$cross_compiling" = yes; then
1821 # Depending upon the size, compute the lo and hi bounds.
1822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1823 /* end confdefs.h. */
1824 $4
1825 int
1826 main (void)
1827 {
1828 static int test_array [1 - 2 * !(($2) >= 0)];
1829 test_array [0] = 0;
1830 return test_array [0];
1831
1832 ;
1833 return 0;
1834 }
1835 _ACEOF
1836 if ac_fn_c_try_compile "$LINENO"
1837 then :
1838 ac_lo=0 ac_mid=0
1839 while :; do
1840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1841 /* end confdefs.h. */
1842 $4
1843 int
1844 main (void)
1845 {
1846 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1847 test_array [0] = 0;
1848 return test_array [0];
1849
1850 ;
1851 return 0;
1852 }
1853 _ACEOF
1854 if ac_fn_c_try_compile "$LINENO"
1855 then :
1856 ac_hi=$ac_mid; break
1857 else case e in #(
1858 e) as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1859 if test $ac_lo -le $ac_mid; then
1860 ac_lo= ac_hi=
1861 break
1862 fi
1863 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val ;;
1864 esac
1865 fi
1866 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1867 done
1868 else case e in #(
1869 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1870 /* end confdefs.h. */
1871 $4
1872 int
1873 main (void)
1874 {
1875 static int test_array [1 - 2 * !(($2) < 0)];
1876 test_array [0] = 0;
1877 return test_array [0];
1878
1879 ;
1880 return 0;
1881 }
1882 _ACEOF
1883 if ac_fn_c_try_compile "$LINENO"
1884 then :
1885 ac_hi=-1 ac_mid=-1
1886 while :; do
1887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1888 /* end confdefs.h. */
1889 $4
1890 int
1891 main (void)
1892 {
1893 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1894 test_array [0] = 0;
1895 return test_array [0];
1896
1897 ;
1898 return 0;
1899 }
1900 _ACEOF
1901 if ac_fn_c_try_compile "$LINENO"
1902 then :
1903 ac_lo=$ac_mid; break
1904 else case e in #(
1905 e) as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1906 if test $ac_mid -le $ac_hi; then
1907 ac_lo= ac_hi=
1908 break
1909 fi
1910 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val ;;
1911 esac
1912 fi
1913 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1914 done
1915 else case e in #(
1916 e) ac_lo= ac_hi= ;;
1917 esac
1918 fi
1919 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1920 esac
1921 fi
1922 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1923 # Binary search between lo and hi bounds.
1924 while test "x$ac_lo" != "x$ac_hi"; do
1925 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1927 /* end confdefs.h. */
1928 $4
1929 int
1930 main (void)
1931 {
1932 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1933 test_array [0] = 0;
1934 return test_array [0];
1935
1936 ;
1937 return 0;
1938 }
1939 _ACEOF
1940 if ac_fn_c_try_compile "$LINENO"
1941 then :
1942 ac_hi=$ac_mid
1943 else case e in #(
1944 e) as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val ;;
1945 esac
1946 fi
1947 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1948 done
1949 case $ac_lo in #((
1950 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1951 '') ac_retval=1 ;;
1952 esac
1953 else
1954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1955 /* end confdefs.h. */
1956 $4
1957 static long int longval (void) { return $2; }
1958 static unsigned long int ulongval (void) { return $2; }
1959 #include <stdio.h>
1960 #include <stdlib.h>
1961 int
1962 main (void)
1963 {
1964
1965 FILE *f = fopen ("conftest.val", "w");
1966 if (! f)
1967 return 1;
1968 if (($2) < 0)
1969 {
1970 long int i = longval ();
1971 if (i != ($2))
1972 return 1;
1973 fprintf (f, "%ld", i);
1974 }
1975 else
1976 {
1977 unsigned long int i = ulongval ();
1978 if (i != ($2))
1979 return 1;
1980 fprintf (f, "%lu", i);
1981 }
1982 /* Do not output a trailing newline, as this causes \r\n confusion
1983 on some platforms. */
1984 return ferror (f) || fclose (f) != 0;
1985
1986 ;
1987 return 0;
1988 }
1989 _ACEOF
1990 if ac_fn_c_try_run "$LINENO"
1991 then :
1992 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1993 else case e in #(
1994 e) ac_retval=1 ;;
1995 esac
1996 fi
1997 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1998 conftest.$ac_objext conftest.beam conftest.$ac_ext
1999 rm -f conftest.val
2000
2001 fi
2002 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2003 as_fn_set_status $ac_retval
2004
2005 } # ac_fn_c_compute_int
2006 ac_configure_args_raw=
2007 for ac_arg
2008 do
2009 case $ac_arg in
2010 *\'*)
2011 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2012 esac
2013 as_fn_append ac_configure_args_raw " '$ac_arg'"
2014 done
2015
2016 case $ac_configure_args_raw in
2017 *$as_nl*)
2018 ac_safe_unquote= ;;
2019 *)
2020 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2021 ac_unsafe_a="$ac_unsafe_z#~"
2022 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2023 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2024 esac
2025
2026 cat >config.log <<_ACEOF
2027 This file contains any messages produced by compilers while
2028 running configure, to aid debugging if configure makes a mistake.
2029
2030 It was created by pplib (TeX Live) $as_me 2.05.0, which was
2031 generated by GNU Autoconf 2.72. Invocation command line was
2032
2033 $ $0$ac_configure_args_raw
2034
2035 _ACEOF
2036 exec 5>>config.log
2037 {
2038 cat <<_ASUNAME
2039 ## --------- ##
2040 ## Platform. ##
2041 ## --------- ##
2042
2043 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2044 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2045 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2046 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2047 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2048
2049 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2050 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2051
2052 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2053 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2054 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2055 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2056 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2057 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2058 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2059
2060 _ASUNAME
2061
2062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2063 for as_dir in $PATH
2064 do
2065 IFS=$as_save_IFS
2066 case $as_dir in #(((
2067 '') as_dir=./ ;;
2068 */) ;;
2069 *) as_dir=$as_dir/ ;;
2070 esac
2071 printf "%s\n" "PATH: $as_dir"
2072 done
2073 IFS=$as_save_IFS
2074
2075 } >&5
2076
2077 cat >&5 <<_ACEOF
2078
2079
2080 ## ----------- ##
2081 ## Core tests. ##
2082 ## ----------- ##
2083
2084 _ACEOF
2085
2086
2087 # Keep a trace of the command line.
2088 # Strip out --no-create and --no-recursion so they do not pile up.
2089 # Strip out --silent because we don't want to record it for future runs.
2090 # Also quote any args containing shell meta-characters.
2091 # Make two passes to allow for proper duplicate-argument suppression.
2092 ac_configure_args=
2093 ac_configure_args0=
2094 ac_configure_args1=
2095 ac_must_keep_next=false
2096 for ac_pass in 1 2
2097 do
2098 for ac_arg
2099 do
2100 case $ac_arg in
2101 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2102 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2103 | -silent | --silent | --silen | --sile | --sil)
2104 continue ;;
2105 *\'*)
2106 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2107 esac
2108 case $ac_pass in
2109 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2110 2)
2111 as_fn_append ac_configure_args1 " '$ac_arg'"
2112 if test $ac_must_keep_next = true; then
2113 ac_must_keep_next=false # Got value, back to normal.
2114 else
2115 case $ac_arg in
2116 *=* | --config-cache | -C | -disable-* | --disable-* \
2117 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2118 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2119 | -with-* | --with-* | -without-* | --without-* | --x)
2120 case "$ac_configure_args0 " in
2121 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2122 esac
2123 ;;
2124 -* ) ac_must_keep_next=true ;;
2125 esac
2126 fi
2127 as_fn_append ac_configure_args " '$ac_arg'"
2128 ;;
2129 esac
2130 done
2131 done
2132 { ac_configure_args0=; unset ac_configure_args0;}
2133 { ac_configure_args1=; unset ac_configure_args1;}
2134
2135 # When interrupted or exit'd, cleanup temporary files, and complete
2136 # config.log. We remove comments because anyway the quotes in there
2137 # would cause problems or look ugly.
2138 # WARNING: Use '\'' to represent an apostrophe within the trap.
2139 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2140 trap 'exit_status=$?
2141 # Sanitize IFS.
2142 IFS=" "" $as_nl"
2143 # Save into config.log some information that might help in debugging.
2144 {
2145 echo
2146
2147 printf "%s\n" "## ---------------- ##
2148 ## Cache variables. ##
2149 ## ---------------- ##"
2150 echo
2151 # The following way of writing the cache mishandles newlines in values,
2152 (
2153 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2154 eval ac_val=\$$ac_var
2155 case $ac_val in #(
2156 *${as_nl}*)
2157 case $ac_var in #(
2158 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2159 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2160 esac
2161 case $ac_var in #(
2162 _ | IFS | as_nl) ;; #(
2163 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2164 *) { eval $ac_var=; unset $ac_var;} ;;
2165 esac ;;
2166 esac
2167 done
2168 (set) 2>&1 |
2169 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2170 *${as_nl}ac_space=\ *)
2171 sed -n \
2172 "s/'\''/'\''\\\\'\'''\''/g;
2173 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2174 ;; #(
2175 *)
2176 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2177 ;;
2178 esac |
2179 sort
2180 )
2181 echo
2182
2183 printf "%s\n" "## ----------------- ##
2184 ## Output variables. ##
2185 ## ----------------- ##"
2186 echo
2187 for ac_var in $ac_subst_vars
2188 do
2189 eval ac_val=\$$ac_var
2190 case $ac_val in
2191 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2192 esac
2193 printf "%s\n" "$ac_var='\''$ac_val'\''"
2194 done | sort
2195 echo
2196
2197 if test -n "$ac_subst_files"; then
2198 printf "%s\n" "## ------------------- ##
2199 ## File substitutions. ##
2200 ## ------------------- ##"
2201 echo
2202 for ac_var in $ac_subst_files
2203 do
2204 eval ac_val=\$$ac_var
2205 case $ac_val in
2206 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2207 esac
2208 printf "%s\n" "$ac_var='\''$ac_val'\''"
2209 done | sort
2210 echo
2211 fi
2212
2213 if test -s confdefs.h; then
2214 printf "%s\n" "## ----------- ##
2215 ## confdefs.h. ##
2216 ## ----------- ##"
2217 echo
2218 cat confdefs.h
2219 echo
2220 fi
2221 test "$ac_signal" != 0 &&
2222 printf "%s\n" "$as_me: caught signal $ac_signal"
2223 printf "%s\n" "$as_me: exit $exit_status"
2224 } >&5
2225 rm -f core *.core core.conftest.* &&
2226 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2227 exit $exit_status
2228 ' 0
2229 for ac_signal in 1 2 13 15; do
2230 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2231 done
2232 ac_signal=0
2233
2234 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2235 rm -f -r conftest* confdefs.h
2236
2237 printf "%s\n" "/* confdefs.h */" > confdefs.h
2238
2239 # Predefined preprocessor variables.
2240
2241 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2242
2243 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2244
2245 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2246
2247 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2248
2249 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2250
2251 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2252
2253
2254 # Let the site file select an alternate cache file if it wants to.
2255 # Prefer an explicitly selected file to automatically selected ones.
2256 if test -n "$CONFIG_SITE"; then
2257 ac_site_files="$CONFIG_SITE"
2258 elif test "x$prefix" != xNONE; then
2259 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2260 else
2261 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2262 fi
2263
2264 for ac_site_file in $ac_site_files
2265 do
2266 case $ac_site_file in #(
2267 */*) :
2268 ;; #(
2269 *) :
2270 ac_site_file=./$ac_site_file ;;
2271 esac
2272 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2274 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2275 sed 's/^/| /' "$ac_site_file" >&5
2276 . "$ac_site_file" \
2277 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2278 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2279 as_fn_error $? "failed to load site script $ac_site_file
2280 See 'config.log' for more details" "$LINENO" 5; }
2281 fi
2282 done
2283
2284 if test -r "$cache_file"; then
2285 # Some versions of bash will fail to source /dev/null (special files
2286 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2287 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2289 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2290 case $cache_file in
2291 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2292 *) . "./$cache_file";;
2293 esac
2294 fi
2295 else
2296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2297 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2298 >$cache_file
2299 fi
2300
2301 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2302 # Test code for whether the C compiler supports C89 (global declarations)
2303 ac_c_conftest_c89_globals='
2304 /* Does the compiler advertise C89 conformance?
2305 Do not test the value of __STDC__, because some compilers set it to 0
2306 while being otherwise adequately conformant. */
2307 #if !defined __STDC__
2308 # error "Compiler does not advertise C89 conformance"
2309 #endif
2310
2311 #include <stddef.h>
2312 #include <stdarg.h>
2313 struct stat;
2314 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2315 struct buf { int x; };
2316 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2317 static char *e (char **p, int i)
2318 {
2319 return p[i];
2320 }
2321 static char *f (char * (*g) (char **, int), char **p, ...)
2322 {
2323 char *s;
2324 va_list v;
2325 va_start (v,p);
2326 s = g (p, va_arg (v,int));
2327 va_end (v);
2328 return s;
2329 }
2330
2331 /* C89 style stringification. */
2332 #define noexpand_stringify(a) #a
2333 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2334
2335 /* C89 style token pasting. Exercises some of the corner cases that
2336 e.g. old MSVC gets wrong, but not very hard. */
2337 #define noexpand_concat(a,b) a##b
2338 #define expand_concat(a,b) noexpand_concat(a,b)
2339 extern int vA;
2340 extern int vbee;
2341 #define aye A
2342 #define bee B
2343 int *pvA = &expand_concat(v,aye);
2344 int *pvbee = &noexpand_concat(v,bee);
2345
2346 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2347 function prototypes and stuff, but not \xHH hex character constants.
2348 These do not provoke an error unfortunately, instead are silently treated
2349 as an "x". The following induces an error, until -std is added to get
2350 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2351 array size at least. It is necessary to write \x00 == 0 to get something
2352 that is true only with -std. */
2353 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2354
2355 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2356 inside strings and character constants. */
2357 #define FOO(x) '\''x'\''
2358 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2359
2360 int test (int i, double x);
2361 struct s1 {int (*f) (int a);};
2362 struct s2 {int (*f) (double a);};
2363 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2364 int, int);'
2365
2366 # Test code for whether the C compiler supports C89 (body of main).
2367 ac_c_conftest_c89_main='
2368 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2369 '
2370
2371 # Test code for whether the C compiler supports C99 (global declarations)
2372 ac_c_conftest_c99_globals='
2373 /* Does the compiler advertise C99 conformance? */
2374 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2375 # error "Compiler does not advertise C99 conformance"
2376 #endif
2377
2378 // See if C++-style comments work.
2379
2380 #include <stdbool.h>
2381 extern int puts (const char *);
2382 extern int printf (const char *, ...);
2383 extern int dprintf (int, const char *, ...);
2384 extern void *malloc (size_t);
2385 extern void free (void *);
2386
2387 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2388 // dprintf is used instead of fprintf to avoid needing to declare
2389 // FILE and stderr.
2390 #define debug(...) dprintf (2, __VA_ARGS__)
2391 #define showlist(...) puts (#__VA_ARGS__)
2392 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2393 static void
2394 test_varargs_macros (void)
2395 {
2396 int x = 1234;
2397 int y = 5678;
2398 debug ("Flag");
2399 debug ("X = %d\n", x);
2400 showlist (The first, second, and third items.);
2401 report (x>y, "x is %d but y is %d", x, y);
2402 }
2403
2404 // Check long long types.
2405 #define BIG64 18446744073709551615ull
2406 #define BIG32 4294967295ul
2407 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2408 #if !BIG_OK
2409 #error "your preprocessor is broken"
2410 #endif
2411 #if BIG_OK
2412 #else
2413 #error "your preprocessor is broken"
2414 #endif
2415 static long long int bignum = -9223372036854775807LL;
2416 static unsigned long long int ubignum = BIG64;
2417
2418 struct incomplete_array
2419 {
2420 int datasize;
2421 double data[];
2422 };
2423
2424 struct named_init {
2425 int number;
2426 const wchar_t *name;
2427 double average;
2428 };
2429
2430 typedef const char *ccp;
2431
2432 static inline int
2433 test_restrict (ccp restrict text)
2434 {
2435 // Iterate through items via the restricted pointer.
2436 // Also check for declarations in for loops.
2437 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2438 continue;
2439 return 0;
2440 }
2441
2442 // Check varargs and va_copy.
2443 static bool
2444 test_varargs (const char *format, ...)
2445 {
2446 va_list args;
2447 va_start (args, format);
2448 va_list args_copy;
2449 va_copy (args_copy, args);
2450
2451 const char *str = "";
2452 int number = 0;
2453 float fnumber = 0;
2454
2455 while (*format)
2456 {
2457 switch (*format++)
2458 {
2459 case '\''s'\'': // string
2460 str = va_arg (args_copy, const char *);
2461 break;
2462 case '\''d'\'': // int
2463 number = va_arg (args_copy, int);
2464 break;
2465 case '\''f'\'': // float
2466 fnumber = va_arg (args_copy, double);
2467 break;
2468 default:
2469 break;
2470 }
2471 }
2472 va_end (args_copy);
2473 va_end (args);
2474
2475 return *str && number && fnumber;
2476 }
2477 '
2478
2479 # Test code for whether the C compiler supports C99 (body of main).
2480 ac_c_conftest_c99_main='
2481 // Check bool.
2482 _Bool success = false;
2483 success |= (argc != 0);
2484
2485 // Check restrict.
2486 if (test_restrict ("String literal") == 0)
2487 success = true;
2488 char *restrict newvar = "Another string";
2489
2490 // Check varargs.
2491 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2492 test_varargs_macros ();
2493
2494 // Check flexible array members.
2495 struct incomplete_array *ia =
2496 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2497 ia->datasize = 10;
2498 for (int i = 0; i < ia->datasize; ++i)
2499 ia->data[i] = i * 1.234;
2500 // Work around memory leak warnings.
2501 free (ia);
2502
2503 // Check named initializers.
2504 struct named_init ni = {
2505 .number = 34,
2506 .name = L"Test wide string",
2507 .average = 543.34343,
2508 };
2509
2510 ni.number = 58;
2511
2512 int dynamic_array[ni.number];
2513 dynamic_array[0] = argv[0][0];
2514 dynamic_array[ni.number - 1] = 543;
2515
2516 // work around unused variable warnings
2517 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2518 || dynamic_array[ni.number - 1] != 543);
2519 '
2520
2521 # Test code for whether the C compiler supports C11 (global declarations)
2522 ac_c_conftest_c11_globals='
2523 /* Does the compiler advertise C11 conformance? */
2524 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2525 # error "Compiler does not advertise C11 conformance"
2526 #endif
2527
2528 // Check _Alignas.
2529 char _Alignas (double) aligned_as_double;
2530 char _Alignas (0) no_special_alignment;
2531 extern char aligned_as_int;
2532 char _Alignas (0) _Alignas (int) aligned_as_int;
2533
2534 // Check _Alignof.
2535 enum
2536 {
2537 int_alignment = _Alignof (int),
2538 int_array_alignment = _Alignof (int[100]),
2539 char_alignment = _Alignof (char)
2540 };
2541 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2542
2543 // Check _Noreturn.
2544 int _Noreturn does_not_return (void) { for (;;) continue; }
2545
2546 // Check _Static_assert.
2547 struct test_static_assert
2548 {
2549 int x;
2550 _Static_assert (sizeof (int) <= sizeof (long int),
2551 "_Static_assert does not work in struct");
2552 long int y;
2553 };
2554
2555 // Check UTF-8 literals.
2556 #define u8 syntax error!
2557 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2558
2559 // Check duplicate typedefs.
2560 typedef long *long_ptr;
2561 typedef long int *long_ptr;
2562 typedef long_ptr long_ptr;
2563
2564 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2565 struct anonymous
2566 {
2567 union {
2568 struct { int i; int j; };
2569 struct { int k; long int l; } w;
2570 };
2571 int m;
2572 } v1;
2573 '
2574
2575 # Test code for whether the C compiler supports C11 (body of main).
2576 ac_c_conftest_c11_main='
2577 _Static_assert ((offsetof (struct anonymous, i)
2578 == offsetof (struct anonymous, w.k)),
2579 "Anonymous union alignment botch");
2580 v1.i = 2;
2581 v1.w.k = 5;
2582 ok |= v1.i != 5;
2583 '
2584
2585 # Test code for whether the C compiler supports C11 (complete).
2586 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2587 ${ac_c_conftest_c99_globals}
2588 ${ac_c_conftest_c11_globals}
2589
2590 int
2591 main (int argc, char **argv)
2592 {
2593 int ok = 0;
2594 ${ac_c_conftest_c89_main}
2595 ${ac_c_conftest_c99_main}
2596 ${ac_c_conftest_c11_main}
2597 return ok;
2598 }
2599 "
2600
2601 # Test code for whether the C compiler supports C99 (complete).
2602 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2603 ${ac_c_conftest_c99_globals}
2604
2605 int
2606 main (int argc, char **argv)
2607 {
2608 int ok = 0;
2609 ${ac_c_conftest_c89_main}
2610 ${ac_c_conftest_c99_main}
2611 return ok;
2612 }
2613 "
2614
2615 # Test code for whether the C compiler supports C89 (complete).
2616 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2617
2618 int
2619 main (int argc, char **argv)
2620 {
2621 int ok = 0;
2622 ${ac_c_conftest_c89_main}
2623 return ok;
2624 }
2625 "
2626
2627 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2628 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2629 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2630 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2631 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2632 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2633 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2634 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2635 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2636 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2637
2638 # Auxiliary files required by this configure script.
2639 ac_aux_files="config.guess config.sub ltmain.sh compile missing install-sh"
2640
2641 # Locations in which to look for auxiliary files.
2642 ac_aux_dir_candidates="${srcdir}/../../build-aux"
2643
2644 # Search for a directory containing all of the required auxiliary files,
2645 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2646 # If we don't find one directory that contains all the files we need,
2647 # we report the set of missing files from the *first* directory in
2648 # $ac_aux_dir_candidates and give up.
2649 ac_missing_aux_files=""
2650 ac_first_candidate=:
2651 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2653 as_found=false
2654 for as_dir in $ac_aux_dir_candidates
2655 do
2656 IFS=$as_save_IFS
2657 case $as_dir in #(((
2658 '') as_dir=./ ;;
2659 */) ;;
2660 *) as_dir=$as_dir/ ;;
2661 esac
2662 as_found=:
2663
2664 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2665 ac_aux_dir_found=yes
2666 ac_install_sh=
2667 for ac_aux in $ac_aux_files
2668 do
2669 # As a special case, if "install-sh" is required, that requirement
2670 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2671 # and $ac_install_sh is set appropriately for whichever one is found.
2672 if test x"$ac_aux" = x"install-sh"
2673 then
2674 if test -f "${as_dir}install-sh"; then
2675 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2676 ac_install_sh="${as_dir}install-sh -c"
2677 elif test -f "${as_dir}install.sh"; then
2678 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2679 ac_install_sh="${as_dir}install.sh -c"
2680 elif test -f "${as_dir}shtool"; then
2681 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2682 ac_install_sh="${as_dir}shtool install -c"
2683 else
2684 ac_aux_dir_found=no
2685 if $ac_first_candidate; then
2686 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2687 else
2688 break
2689 fi
2690 fi
2691 else
2692 if test -f "${as_dir}${ac_aux}"; then
2693 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2694 else
2695 ac_aux_dir_found=no
2696 if $ac_first_candidate; then
2697 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2698 else
2699 break
2700 fi
2701 fi
2702 fi
2703 done
2704 if test "$ac_aux_dir_found" = yes; then
2705 ac_aux_dir="$as_dir"
2706 break
2707 fi
2708 ac_first_candidate=false
2709
2710 as_found=false
2711 done
2712 IFS=$as_save_IFS
2713 if $as_found
2714 then :
2715
2716 else case e in #(
2717 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2718 esac
2719 fi
2720
2721
2722 # These three variables are undocumented and unsupported,
2723 # and are intended to be withdrawn in a future Autoconf release.
2724 # They can cause serious problems if a builder's source tree is in a directory
2725 # whose full name contains unusual characters.
2726 if test -f "${ac_aux_dir}config.guess"; then
2727 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2728 fi
2729 if test -f "${ac_aux_dir}config.sub"; then
2730 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2731 fi
2732 if test -f "$ac_aux_dir/configure"; then
2733 ac_configure="$SHELL ${ac_aux_dir}configure"
2734 fi
2735
2736 # Check that the precious variables saved in the cache have kept the same
2737 # value.
2738 ac_cache_corrupted=false
2739 for ac_var in $ac_precious_vars; do
2740 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2741 eval ac_new_set=\$ac_env_${ac_var}_set
2742 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2743 eval ac_new_val=\$ac_env_${ac_var}_value
2744 case $ac_old_set,$ac_new_set in
2745 set,)
2746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2747 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2748 ac_cache_corrupted=: ;;
2749 ,set)
2750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2751 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2752 ac_cache_corrupted=: ;;
2753 ,);;
2754 *)
2755 if test "x$ac_old_val" != "x$ac_new_val"; then
2756 # differences in whitespace do not lead to failure.
2757 ac_old_val_w=`echo x $ac_old_val`
2758 ac_new_val_w=`echo x $ac_new_val`
2759 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2761 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2762 ac_cache_corrupted=:
2763 else
2764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2765 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2766 eval $ac_var=\$ac_old_val
2767 fi
2768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2769 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2771 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2772 fi;;
2773 esac
2774 # Pass precious variables to config.status.
2775 if test "$ac_new_set" = set; then
2776 case $ac_new_val in
2777 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2778 *) ac_arg=$ac_var=$ac_new_val ;;
2779 esac
2780 case " $ac_configure_args " in
2781 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2782 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2783 esac
2784 fi
2785 done
2786 if $ac_cache_corrupted; then
2787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2788 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2790 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2791 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2792 and start over" "$LINENO" 5
2793 fi
2794 ## -------------------- ##
2795 ## Main body of script. ##
2796 ## -------------------- ##
2797
2798 ac_ext=c
2799 ac_cpp='$CPP $CPPFLAGS'
2800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2803
2804
2805
2806
2807
2808
2809
2810 am__api_version='1.18'
2811
2812
2813
2814 # Find a good install program. We prefer a C program (faster),
2815 # so one script is as good as another. But avoid the broken or
2816 # incompatible versions:
2817 # SysV /etc/install, /usr/sbin/install
2818 # SunOS /usr/etc/install
2819 # IRIX /sbin/install
2820 # AIX /bin/install
2821 # AmigaOS /C/install, which installs bootblocks on floppy discs
2822 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2823 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2824 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2825 # OS/2's system install, which has a completely different semantic
2826 # ./install, which can be erroneously created by make from ./install.sh.
2827 # Reject install programs that cannot install multiple files.
2828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2829 printf %s "checking for a BSD-compatible install... " >&6; }
2830 if test -z "$INSTALL"; then
2831 if test ${ac_cv_path_install+y}
2832 then :
2833 printf %s "(cached) " >&6
2834 else case e in #(
2835 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2836 for as_dir in $PATH
2837 do
2838 IFS=$as_save_IFS
2839 case $as_dir in #(((
2840 '') as_dir=./ ;;
2841 */) ;;
2842 *) as_dir=$as_dir/ ;;
2843 esac
2844 # Account for fact that we put trailing slashes in our PATH walk.
2845 case $as_dir in #((
2846 ./ | /[cC]/* | \
2847 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2848 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2849 /usr/ucb/* ) ;;
2850 *)
2851 # OSF1 and SCO ODT 3.0 have their own names for install.
2852 # Don't use installbsd from OSF since it installs stuff as root
2853 # by default.
2854 for ac_prog in ginstall scoinst install; do
2855 for ac_exec_ext in '' $ac_executable_extensions; do
2856 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2857 if test $ac_prog = install &&
2858 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2859 # AIX install. It has an incompatible calling convention.
2860 :
2861 elif test $ac_prog = install &&
2862 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2863 # program-specific install script used by HP pwplus--don't use.
2864 :
2865 else
2866 rm -rf conftest.one conftest.two conftest.dir
2867 echo one > conftest.one
2868 echo two > conftest.two
2869 mkdir conftest.dir
2870 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2871 test -s conftest.one && test -s conftest.two &&
2872 test -s conftest.dir/conftest.one &&
2873 test -s conftest.dir/conftest.two
2874 then
2875 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2876 break 3
2877 fi
2878 fi
2879 fi
2880 done
2881 done
2882 ;;
2883 esac
2884
2885 done
2886 IFS=$as_save_IFS
2887
2888 rm -rf conftest.one conftest.two conftest.dir
2889 ;;
2890 esac
2891 fi
2892 if test ${ac_cv_path_install+y}; then
2893 INSTALL=$ac_cv_path_install
2894 else
2895 # As a last resort, use the slow shell script. Don't cache a
2896 # value for INSTALL within a source directory, because that will
2897 # break other packages using the cache if that directory is
2898 # removed, or if the value is a relative name.
2899 INSTALL=$ac_install_sh
2900 fi
2901 fi
2902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2903 printf "%s\n" "$INSTALL" >&6; }
2904
2905 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2906 # It thinks the first close brace ends the variable substitution.
2907 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2908
2909 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2910
2911 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2912
2913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
2914 printf %s "checking whether sleep supports fractional seconds... " >&6; }
2915 if test ${am_cv_sleep_fractional_seconds+y}
2916 then :
2917 printf %s "(cached) " >&6
2918 else case e in #(
2919 e) if sleep 0.001 2>/dev/null
2920 then :
2921 am_cv_sleep_fractional_seconds=yes
2922 else case e in #(
2923 e) am_cv_sleep_fractional_seconds=no ;;
2924 esac
2925 fi
2926 ;;
2927 esac
2928 fi
2929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
2930 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
2931
2932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
2933 printf %s "checking filesystem timestamp resolution... " >&6; }
2934 if test ${am_cv_filesystem_timestamp_resolution+y}
2935 then :
2936 printf %s "(cached) " >&6
2937 else case e in #(
2938 e) # Default to the worst case.
2939 am_cv_filesystem_timestamp_resolution=2
2940
2941 # Only try to go finer than 1 sec if sleep can do it.
2942 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
2943 # - 1 sec is not much of a win compared to 2 sec, and
2944 # - it takes 2 seconds to perform the test whether 1 sec works.
2945 #
2946 # Instead, just use the default 2s on platforms that have 1s resolution,
2947 # accept the extra 1s delay when using $sleep in the Automake tests, in
2948 # exchange for not incurring the 2s delay for running the test for all
2949 # packages.
2950 #
2951 am_try_resolutions=
2952 if test "$am_cv_sleep_fractional_seconds" = yes; then
2953 # Even a millisecond often causes a bunch of false positives,
2954 # so just try a hundredth of a second. The time saved between .001 and
2955 # .01 is not terribly consequential.
2956 am_try_resolutions="0.01 0.1 $am_try_resolutions"
2957 fi
2958
2959 # In order to catch current-generation FAT out, we must *modify* files
2960 # that already exist; the *creation* timestamp is finer. Use names
2961 # that make ls -t sort them differently when they have equal
2962 # timestamps than when they have distinct timestamps, keeping
2963 # in mind that ls -t prints the *newest* file first.
2964 rm -f conftest.ts?
2965 : > conftest.ts1
2966 : > conftest.ts2
2967 : > conftest.ts3
2968
2969 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
2970 # clobber the current shell's arguments. (Outer-level square brackets
2971 # are removed by m4; they're present so that m4 does not expand
2972 # <dollar><star>; be careful, easy to get confused.)
2973 if (
2974 set X `ls -t conftest.ts[12]` &&
2975 {
2976 test "$*" != "X conftest.ts1 conftest.ts2" ||
2977 test "$*" != "X conftest.ts2 conftest.ts1";
2978 }
2979 ); then :; else
2980 # If neither matched, then we have a broken ls. This can happen
2981 # if, for instance, CONFIG_SHELL is bash and it inherits a
2982 # broken ls alias from the environment. This has actually
2983 # happened. Such a system could not be considered "sane".
2984 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
2985 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2986 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2987 as_fn_error $? "ls -t produces unexpected output.
2988 Make sure there is not a broken ls alias in your environment.
2989 See 'config.log' for more details" "$LINENO" 5; }
2990 fi
2991
2992 for am_try_res in $am_try_resolutions; do
2993 # Any one fine-grained sleep might happen to cross the boundary
2994 # between two values of a coarser actual resolution, but if we do
2995 # two fine-grained sleeps in a row, at least one of them will fall
2996 # entirely within a coarse interval.
2997 echo alpha > conftest.ts1
2998 sleep $am_try_res
2999 echo beta > conftest.ts2
3000 sleep $am_try_res
3001 echo gamma > conftest.ts3
3002
3003 # We assume that 'ls -t' will make use of high-resolution
3004 # timestamps if the operating system supports them at all.
3005 if (set X `ls -t conftest.ts?` &&
3006 test "$2" = conftest.ts3 &&
3007 test "$3" = conftest.ts2 &&
3008 test "$4" = conftest.ts1); then
3009 #
3010 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
3011 # because we don't need to test make.
3012 make_ok=true
3013 if test $am_try_res != 1; then
3014 # But if we've succeeded so far with a subsecond resolution, we
3015 # have one more thing to check: make. It can happen that
3016 # everything else supports the subsecond mtimes, but make doesn't;
3017 # notably on macOS, which ships make 3.81 from 2006 (the last one
3018 # released under GPLv2). https://bugs.gnu.org/68808
3019 #
3020 # We test $MAKE if it is defined in the environment, else "make".
3021 # It might get overridden later, but our hope is that in practice
3022 # it does not matter: it is the system "make" which is (by far)
3023 # the most likely to be broken, whereas if the user overrides it,
3024 # probably they did so with a better, or at least not worse, make.
3025 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
3026 #
3027 # Create a Makefile (real tab character here):
3028 rm -f conftest.mk
3029 echo 'conftest.ts1: conftest.ts2' >conftest.mk
3030 echo ' touch conftest.ts2' >>conftest.mk
3031 #
3032 # Now, running
3033 # touch conftest.ts1; touch conftest.ts2; make
3034 # should touch ts1 because ts2 is newer. This could happen by luck,
3035 # but most often, it will fail if make's support is insufficient. So
3036 # test for several consecutive successes.
3037 #
3038 # (We reuse conftest.ts[12] because we still want to modify existing
3039 # files, not create new ones, per above.)
3040 n=0
3041 make=${MAKE-make}
3042 until test $n -eq 3; do
3043 echo one > conftest.ts1
3044 sleep $am_try_res
3045 echo two > conftest.ts2 # ts2 should now be newer than ts1
3046 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
3047 make_ok=false
3048 break # out of $n loop
3049 fi
3050 n=`expr $n + 1`
3051 done
3052 fi
3053 #
3054 if $make_ok; then
3055 # Everything we know to check worked out, so call this resolution good.
3056 am_cv_filesystem_timestamp_resolution=$am_try_res
3057 break # out of $am_try_res loop
3058 fi
3059 # Otherwise, we'll go on to check the next resolution.
3060 fi
3061 done
3062 rm -f conftest.ts?
3063 # (end _am_filesystem_timestamp_resolution)
3064 ;;
3065 esac
3066 fi
3067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
3068 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
3069
3070 # This check should not be cached, as it may vary across builds of
3071 # different projects.
3072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3073 printf %s "checking whether build environment is sane... " >&6; }
3074 # Reject unsafe characters in $srcdir or the absolute working directory
3075 # name. Accept space and tab only in the latter.
3076 am_lf='
3077 '
3078 case `pwd` in
3079 *[\\\"\#\$\&\'\`$am_lf]*)
3080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3081 printf "%s\n" "no" >&6; }
3082 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3083 esac
3084 case $srcdir in
3085 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3087 printf "%s\n" "no" >&6; }
3088 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3089 esac
3090
3091 # Do 'set' in a subshell so we don't clobber the current shell's
3092 # arguments. Must try -L first in case configure is actually a
3093 # symlink; some systems play weird games with the mod time of symlinks
3094 # (eg FreeBSD returns the mod time of the symlink's containing
3095 # directory).
3096 am_build_env_is_sane=no
3097 am_has_slept=no
3098 rm -f conftest.file
3099 for am_try in 1 2; do
3100 echo "timestamp, slept: $am_has_slept" > conftest.file
3101 if (
3102 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3103 if test "$*" = "X"; then
3104 # -L didn't work.
3105 set X `ls -t "$srcdir/configure" conftest.file`
3106 fi
3107 test "$2" = conftest.file
3108 ); then
3109 am_build_env_is_sane=yes
3110 break
3111 fi
3112 # Just in case.
3113 sleep "$am_cv_filesystem_timestamp_resolution"
3114 am_has_slept=yes
3115 done
3116
3117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
3118 printf "%s\n" "$am_build_env_is_sane" >&6; }
3119 if test "$am_build_env_is_sane" = no; then
3120 as_fn_error $? "newly created file is older than distributed files!
3121 Check your system clock" "$LINENO" 5
3122 fi
3123
3124 # If we didn't sleep, we still need to ensure time stamps of config.status and
3125 # generated files are strictly newer.
3126 am_sleep_pid=
3127 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
3128 then :
3129
3130 else case e in #(
3131 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
3132 am_sleep_pid=$!
3133 ;;
3134 esac
3135 fi
3136
3137 rm -f conftest.file
3138
3139 test "$program_prefix" != NONE &&
3140 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3141 # Use a double $ so make ignores it.
3142 test "$program_suffix" != NONE &&
3143 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3144 # Double any \ or $.
3145 # By default was 's,x,x', remove it if useless.
3146 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3147 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3148
3149
3150 # Expand $ac_aux_dir to an absolute path.
3151 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3152
3153
3154 if test x"${MISSING+set}" != xset; then
3155 MISSING="\${SHELL} '$am_aux_dir/missing'"
3156 fi
3157 # Use eval to expand $SHELL
3158 if eval "$MISSING --is-lightweight"; then
3159 am_missing_run="$MISSING "
3160 else
3161 am_missing_run=
3162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3163 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3164 fi
3165
3166 if test x"${install_sh+set}" != xset; then
3167 case $am_aux_dir in
3168 *\ * | *\ *)
3169 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3170 *)
3171 install_sh="\${SHELL} $am_aux_dir/install-sh"
3172 esac
3173 fi
3174
3175 # Installed binaries are usually stripped using 'strip' when the user
3176 # run "make install-strip". However 'strip' might not be the right
3177 # tool to use in cross-compilation environments, therefore Automake
3178 # will honor the 'STRIP' environment variable to overrule this program.
3179 if test "$cross_compiling" != no; then
3180 if test -n "$ac_tool_prefix"; then
3181 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3182 set dummy ${ac_tool_prefix}strip; ac_word=$2
3183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3184 printf %s "checking for $ac_word... " >&6; }
3185 if test ${ac_cv_prog_STRIP+y}
3186 then :
3187 printf %s "(cached) " >&6
3188 else case e in #(
3189 e) if test -n "$STRIP"; then
3190 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3191 else
3192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3193 for as_dir in $PATH
3194 do
3195 IFS=$as_save_IFS
3196 case $as_dir in #(((
3197 '') as_dir=./ ;;
3198 */) ;;
3199 *) as_dir=$as_dir/ ;;
3200 esac
3201 for ac_exec_ext in '' $ac_executable_extensions; do
3202 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3203 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3204 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3205 break 2
3206 fi
3207 done
3208 done
3209 IFS=$as_save_IFS
3210
3211 fi ;;
3212 esac
3213 fi
3214 STRIP=$ac_cv_prog_STRIP
3215 if test -n "$STRIP"; then
3216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3217 printf "%s\n" "$STRIP" >&6; }
3218 else
3219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3220 printf "%s\n" "no" >&6; }
3221 fi
3222
3223
3224 fi
3225 if test -z "$ac_cv_prog_STRIP"; then
3226 ac_ct_STRIP=$STRIP
3227 # Extract the first word of "strip", so it can be a program name with args.
3228 set dummy strip; ac_word=$2
3229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3230 printf %s "checking for $ac_word... " >&6; }
3231 if test ${ac_cv_prog_ac_ct_STRIP+y}
3232 then :
3233 printf %s "(cached) " >&6
3234 else case e in #(
3235 e) if test -n "$ac_ct_STRIP"; then
3236 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3237 else
3238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3239 for as_dir in $PATH
3240 do
3241 IFS=$as_save_IFS
3242 case $as_dir in #(((
3243 '') as_dir=./ ;;
3244 */) ;;
3245 *) as_dir=$as_dir/ ;;
3246 esac
3247 for ac_exec_ext in '' $ac_executable_extensions; do
3248 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3249 ac_cv_prog_ac_ct_STRIP="strip"
3250 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3251 break 2
3252 fi
3253 done
3254 done
3255 IFS=$as_save_IFS
3256
3257 fi ;;
3258 esac
3259 fi
3260 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3261 if test -n "$ac_ct_STRIP"; then
3262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3263 printf "%s\n" "$ac_ct_STRIP" >&6; }
3264 else
3265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3266 printf "%s\n" "no" >&6; }
3267 fi
3268
3269 if test "x$ac_ct_STRIP" = x; then
3270 STRIP=":"
3271 else
3272 case $cross_compiling:$ac_tool_warned in
3273 yes:)
3274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3275 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3276 ac_tool_warned=yes ;;
3277 esac
3278 STRIP=$ac_ct_STRIP
3279 fi
3280 else
3281 STRIP="$ac_cv_prog_STRIP"
3282 fi
3283
3284 fi
3285 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3286
3287
3288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3289 printf %s "checking for a race-free mkdir -p... " >&6; }
3290 if test -z "$MKDIR_P"; then
3291 if test ${ac_cv_path_mkdir+y}
3292 then :
3293 printf %s "(cached) " >&6
3294 else case e in #(
3295 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3296 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3297 do
3298 IFS=$as_save_IFS
3299 case $as_dir in #(((
3300 '') as_dir=./ ;;
3301 */) ;;
3302 *) as_dir=$as_dir/ ;;
3303 esac
3304 for ac_prog in mkdir gmkdir; do
3305 for ac_exec_ext in '' $ac_executable_extensions; do
3306 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3307 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3308 'mkdir ('*'coreutils) '* | \
3309 *'BusyBox '* | \
3310 'mkdir (fileutils) '4.1*)
3311 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3312 break 3;;
3313 esac
3314 done
3315 done
3316 done
3317 IFS=$as_save_IFS
3318 ;;
3319 esac
3320 fi
3321
3322 test -d ./--version && rmdir ./--version
3323 if test ${ac_cv_path_mkdir+y}; then
3324 MKDIR_P="$ac_cv_path_mkdir -p"
3325 else
3326 # As a last resort, use plain mkdir -p,
3327 # in the hope it doesn't have the bugs of ancient mkdir.
3328 MKDIR_P='mkdir -p'
3329 fi
3330 fi
3331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3332 printf "%s\n" "$MKDIR_P" >&6; }
3333
3334 for ac_prog in gawk mawk nawk awk
3335 do
3336 # Extract the first word of "$ac_prog", so it can be a program name with args.
3337 set dummy $ac_prog; ac_word=$2
3338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3339 printf %s "checking for $ac_word... " >&6; }
3340 if test ${ac_cv_prog_AWK+y}
3341 then :
3342 printf %s "(cached) " >&6
3343 else case e in #(
3344 e) if test -n "$AWK"; then
3345 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3346 else
3347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3348 for as_dir in $PATH
3349 do
3350 IFS=$as_save_IFS
3351 case $as_dir in #(((
3352 '') as_dir=./ ;;
3353 */) ;;
3354 *) as_dir=$as_dir/ ;;
3355 esac
3356 for ac_exec_ext in '' $ac_executable_extensions; do
3357 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3358 ac_cv_prog_AWK="$ac_prog"
3359 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3360 break 2
3361 fi
3362 done
3363 done
3364 IFS=$as_save_IFS
3365
3366 fi ;;
3367 esac
3368 fi
3369 AWK=$ac_cv_prog_AWK
3370 if test -n "$AWK"; then
3371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3372 printf "%s\n" "$AWK" >&6; }
3373 else
3374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3375 printf "%s\n" "no" >&6; }
3376 fi
3377
3378
3379 test -n "$AWK" && break
3380 done
3381
3382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3383 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3384 set x ${MAKE-make}
3385 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3386 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3387 then :
3388 printf %s "(cached) " >&6
3389 else case e in #(
3390 e) cat >conftest.make <<\_ACEOF
3391 SHELL = /bin/sh
3392 all:
3393 @echo '@@@%%%=$(MAKE)=@@@%%%'
3394 _ACEOF
3395 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3396 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3397 *@@@%%%=?*=@@@%%%*)
3398 eval ac_cv_prog_make_${ac_make}_set=yes;;
3399 *)
3400 eval ac_cv_prog_make_${ac_make}_set=no;;
3401 esac
3402 rm -f conftest.make ;;
3403 esac
3404 fi
3405 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3407 printf "%s\n" "yes" >&6; }
3408 SET_MAKE=
3409 else
3410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3411 printf "%s\n" "no" >&6; }
3412 SET_MAKE="MAKE=${MAKE-make}"
3413 fi
3414
3415 rm -rf .tst 2>/dev/null
3416 mkdir .tst 2>/dev/null
3417 if test -d .tst; then
3418 am__leading_dot=.
3419 else
3420 am__leading_dot=_
3421 fi
3422 rmdir .tst 2>/dev/null
3423
3424 AM_DEFAULT_VERBOSITY=1
3425 # Check whether --enable-silent-rules was given.
3426 if test ${enable_silent_rules+y}
3427 then :
3428 enableval=$enable_silent_rules;
3429 fi
3430
3431 am_make=${MAKE-make}
3432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3433 printf %s "checking whether $am_make supports nested variables... " >&6; }
3434 if test ${am_cv_make_support_nested_variables+y}
3435 then :
3436 printf %s "(cached) " >&6
3437 else case e in #(
3438 e) if printf "%s\n" 'TRUE=$(BAR$(V))
3439 BAR0=false
3440 BAR1=true
3441 V=1
3442 am__doit:
3443 @$(TRUE)
3444 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3445 am_cv_make_support_nested_variables=yes
3446 else
3447 am_cv_make_support_nested_variables=no
3448 fi ;;
3449 esac
3450 fi
3451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3452 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3453 AM_BACKSLASH='\'
3454
3455 am__rm_f_notfound=
3456 if (rm -f && rm -fr && rm -rf) 2>/dev/null
3457 then :
3458
3459 else case e in #(
3460 e) am__rm_f_notfound='""' ;;
3461 esac
3462 fi
3463
3464
3465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
3466 printf %s "checking xargs -n works... " >&6; }
3467 if test ${am_cv_xargs_n_works+y}
3468 then :
3469 printf %s "(cached) " >&6
3470 else case e in #(
3471 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
3472 3"
3473 then :
3474 am_cv_xargs_n_works=yes
3475 else case e in #(
3476 e) am_cv_xargs_n_works=no ;;
3477 esac
3478 fi ;;
3479 esac
3480 fi
3481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
3482 printf "%s\n" "$am_cv_xargs_n_works" >&6; }
3483 if test "$am_cv_xargs_n_works" = yes
3484 then :
3485 am__xargs_n='xargs -n'
3486 else case e in #(
3487 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
3488 ;;
3489 esac
3490 fi
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501 DEPDIR="${am__leading_dot}deps"
3502
3503 ac_config_commands="$ac_config_commands depfiles"
3504
3505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3506 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3507 cat > confinc.mk << 'END'
3508 am__doit:
3509 @echo this is the am__doit target >confinc.out
3510 .PHONY: am__doit
3511 END
3512 am__include="#"
3513 am__quote=
3514 # BSD make does it like this.
3515 echo '.include "confinc.mk" # ignored' > confmf.BSD
3516 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3517 echo 'include confinc.mk # ignored' > confmf.GNU
3518 _am_result=no
3519 for s in GNU BSD; do
3520 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3521 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3522 ac_status=$?
3523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524 (exit $ac_status); }
3525 case $?:`cat confinc.out 2>/dev/null` in #(
3526 '0:this is the am__doit target') :
3527 case $s in #(
3528 BSD) :
3529 am__include='.include' am__quote='"' ;; #(
3530 *) :
3531 am__include='include' am__quote='' ;;
3532 esac ;; #(
3533 *) :
3534 ;;
3535 esac
3536 if test "$am__include" != "#"; then
3537 _am_result="yes ($s style)"
3538 break
3539 fi
3540 done
3541 rm -f confinc.* confmf.*
3542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3543 printf "%s\n" "${_am_result}" >&6; }
3544
3545 # Check whether --enable-dependency-tracking was given.
3546 if test ${enable_dependency_tracking+y}
3547 then :
3548 enableval=$enable_dependency_tracking;
3549 fi
3550
3551 if test "x$enable_dependency_tracking" != xno; then
3552 am_depcomp="$ac_aux_dir/depcomp"
3553 AMDEPBACKSLASH='\'
3554 am__nodep='_no'
3555 fi
3556 if test "x$enable_dependency_tracking" != xno; then
3557 AMDEP_TRUE=
3558 AMDEP_FALSE='#'
3559 else
3560 AMDEP_TRUE='#'
3561 AMDEP_FALSE=
3562 fi
3563
3564
3565 ac_ext=c
3566 ac_cpp='$CPP $CPPFLAGS'
3567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3570 if test -n "$ac_tool_prefix"; then
3571 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3572 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3574 printf %s "checking for $ac_word... " >&6; }
3575 if test ${ac_cv_prog_CC+y}
3576 then :
3577 printf %s "(cached) " >&6
3578 else case e in #(
3579 e) if test -n "$CC"; then
3580 ac_cv_prog_CC="$CC" # Let the user override the test.
3581 else
3582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3583 for as_dir in $PATH
3584 do
3585 IFS=$as_save_IFS
3586 case $as_dir in #(((
3587 '') as_dir=./ ;;
3588 */) ;;
3589 *) as_dir=$as_dir/ ;;
3590 esac
3591 for ac_exec_ext in '' $ac_executable_extensions; do
3592 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3593 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3594 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3595 break 2
3596 fi
3597 done
3598 done
3599 IFS=$as_save_IFS
3600
3601 fi ;;
3602 esac
3603 fi
3604 CC=$ac_cv_prog_CC
3605 if test -n "$CC"; then
3606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3607 printf "%s\n" "$CC" >&6; }
3608 else
3609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3610 printf "%s\n" "no" >&6; }
3611 fi
3612
3613
3614 fi
3615 if test -z "$ac_cv_prog_CC"; then
3616 ac_ct_CC=$CC
3617 # Extract the first word of "gcc", so it can be a program name with args.
3618 set dummy gcc; ac_word=$2
3619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3620 printf %s "checking for $ac_word... " >&6; }
3621 if test ${ac_cv_prog_ac_ct_CC+y}
3622 then :
3623 printf %s "(cached) " >&6
3624 else case e in #(
3625 e) if test -n "$ac_ct_CC"; then
3626 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3627 else
3628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3629 for as_dir in $PATH
3630 do
3631 IFS=$as_save_IFS
3632 case $as_dir in #(((
3633 '') as_dir=./ ;;
3634 */) ;;
3635 *) as_dir=$as_dir/ ;;
3636 esac
3637 for ac_exec_ext in '' $ac_executable_extensions; do
3638 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3639 ac_cv_prog_ac_ct_CC="gcc"
3640 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3641 break 2
3642 fi
3643 done
3644 done
3645 IFS=$as_save_IFS
3646
3647 fi ;;
3648 esac
3649 fi
3650 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3651 if test -n "$ac_ct_CC"; then
3652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3653 printf "%s\n" "$ac_ct_CC" >&6; }
3654 else
3655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3656 printf "%s\n" "no" >&6; }
3657 fi
3658
3659 if test "x$ac_ct_CC" = x; then
3660 CC=""
3661 else
3662 case $cross_compiling:$ac_tool_warned in
3663 yes:)
3664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3665 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3666 ac_tool_warned=yes ;;
3667 esac
3668 CC=$ac_ct_CC
3669 fi
3670 else
3671 CC="$ac_cv_prog_CC"
3672 fi
3673
3674 if test -z "$CC"; then
3675 if test -n "$ac_tool_prefix"; then
3676 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3677 set dummy ${ac_tool_prefix}cc; 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_CC+y}
3681 then :
3682 printf %s "(cached) " >&6
3683 else case e in #(
3684 e) if test -n "$CC"; then
3685 ac_cv_prog_CC="$CC" # 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_CC="${ac_tool_prefix}cc"
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 CC=$ac_cv_prog_CC
3710 if test -n "$CC"; then
3711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3712 printf "%s\n" "$CC" >&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 fi
3720 fi
3721 if test -z "$CC"; then
3722 # Extract the first word of "cc", so it can be a program name with args.
3723 set dummy cc; ac_word=$2
3724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3725 printf %s "checking for $ac_word... " >&6; }
3726 if test ${ac_cv_prog_CC+y}
3727 then :
3728 printf %s "(cached) " >&6
3729 else case e in #(
3730 e) if test -n "$CC"; then
3731 ac_cv_prog_CC="$CC" # Let the user override the test.
3732 else
3733 ac_prog_rejected=no
3734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3735 for as_dir in $PATH
3736 do
3737 IFS=$as_save_IFS
3738 case $as_dir in #(((
3739 '') as_dir=./ ;;
3740 */) ;;
3741 *) as_dir=$as_dir/ ;;
3742 esac
3743 for ac_exec_ext in '' $ac_executable_extensions; do
3744 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3745 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3746 ac_prog_rejected=yes
3747 continue
3748 fi
3749 ac_cv_prog_CC="cc"
3750 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3751 break 2
3752 fi
3753 done
3754 done
3755 IFS=$as_save_IFS
3756
3757 if test $ac_prog_rejected = yes; then
3758 # We found a bogon in the path, so make sure we never use it.
3759 set dummy $ac_cv_prog_CC
3760 shift
3761 if test $# != 0; then
3762 # We chose a different compiler from the bogus one.
3763 # However, it has the same basename, so the bogon will be chosen
3764 # first if we set CC to just the basename; use the full file name.
3765 shift
3766 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3767 fi
3768 fi
3769 fi ;;
3770 esac
3771 fi
3772 CC=$ac_cv_prog_CC
3773 if test -n "$CC"; then
3774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3775 printf "%s\n" "$CC" >&6; }
3776 else
3777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3778 printf "%s\n" "no" >&6; }
3779 fi
3780
3781
3782 fi
3783 if test -z "$CC"; then
3784 if test -n "$ac_tool_prefix"; then
3785 for ac_prog in cl.exe
3786 do
3787 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3788 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3790 printf %s "checking for $ac_word... " >&6; }
3791 if test ${ac_cv_prog_CC+y}
3792 then :
3793 printf %s "(cached) " >&6
3794 else case e in #(
3795 e) if test -n "$CC"; then
3796 ac_cv_prog_CC="$CC" # Let the user override the test.
3797 else
3798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3799 for as_dir in $PATH
3800 do
3801 IFS=$as_save_IFS
3802 case $as_dir in #(((
3803 '') as_dir=./ ;;
3804 */) ;;
3805 *) as_dir=$as_dir/ ;;
3806 esac
3807 for ac_exec_ext in '' $ac_executable_extensions; do
3808 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3809 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3810 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3811 break 2
3812 fi
3813 done
3814 done
3815 IFS=$as_save_IFS
3816
3817 fi ;;
3818 esac
3819 fi
3820 CC=$ac_cv_prog_CC
3821 if test -n "$CC"; then
3822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3823 printf "%s\n" "$CC" >&6; }
3824 else
3825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3826 printf "%s\n" "no" >&6; }
3827 fi
3828
3829
3830 test -n "$CC" && break
3831 done
3832 fi
3833 if test -z "$CC"; then
3834 ac_ct_CC=$CC
3835 for ac_prog in cl.exe
3836 do
3837 # Extract the first word of "$ac_prog", so it can be a program name with args.
3838 set dummy $ac_prog; ac_word=$2
3839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3840 printf %s "checking for $ac_word... " >&6; }
3841 if test ${ac_cv_prog_ac_ct_CC+y}
3842 then :
3843 printf %s "(cached) " >&6
3844 else case e in #(
3845 e) if test -n "$ac_ct_CC"; then
3846 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3847 else
3848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3849 for as_dir in $PATH
3850 do
3851 IFS=$as_save_IFS
3852 case $as_dir in #(((
3853 '') as_dir=./ ;;
3854 */) ;;
3855 *) as_dir=$as_dir/ ;;
3856 esac
3857 for ac_exec_ext in '' $ac_executable_extensions; do
3858 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3859 ac_cv_prog_ac_ct_CC="$ac_prog"
3860 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3861 break 2
3862 fi
3863 done
3864 done
3865 IFS=$as_save_IFS
3866
3867 fi ;;
3868 esac
3869 fi
3870 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3871 if test -n "$ac_ct_CC"; then
3872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3873 printf "%s\n" "$ac_ct_CC" >&6; }
3874 else
3875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3876 printf "%s\n" "no" >&6; }
3877 fi
3878
3879
3880 test -n "$ac_ct_CC" && break
3881 done
3882
3883 if test "x$ac_ct_CC" = x; then
3884 CC=""
3885 else
3886 case $cross_compiling:$ac_tool_warned in
3887 yes:)
3888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3889 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3890 ac_tool_warned=yes ;;
3891 esac
3892 CC=$ac_ct_CC
3893 fi
3894 fi
3895
3896 fi
3897 if test -z "$CC"; then
3898 if test -n "$ac_tool_prefix"; then
3899 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3900 set dummy ${ac_tool_prefix}clang; ac_word=$2
3901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3902 printf %s "checking for $ac_word... " >&6; }
3903 if test ${ac_cv_prog_CC+y}
3904 then :
3905 printf %s "(cached) " >&6
3906 else case e in #(
3907 e) if test -n "$CC"; then
3908 ac_cv_prog_CC="$CC" # Let the user override the test.
3909 else
3910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3911 for as_dir in $PATH
3912 do
3913 IFS=$as_save_IFS
3914 case $as_dir in #(((
3915 '') as_dir=./ ;;
3916 */) ;;
3917 *) as_dir=$as_dir/ ;;
3918 esac
3919 for ac_exec_ext in '' $ac_executable_extensions; do
3920 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3921 ac_cv_prog_CC="${ac_tool_prefix}clang"
3922 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3923 break 2
3924 fi
3925 done
3926 done
3927 IFS=$as_save_IFS
3928
3929 fi ;;
3930 esac
3931 fi
3932 CC=$ac_cv_prog_CC
3933 if test -n "$CC"; then
3934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3935 printf "%s\n" "$CC" >&6; }
3936 else
3937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3938 printf "%s\n" "no" >&6; }
3939 fi
3940
3941
3942 fi
3943 if test -z "$ac_cv_prog_CC"; then
3944 ac_ct_CC=$CC
3945 # Extract the first word of "clang", so it can be a program name with args.
3946 set dummy clang; ac_word=$2
3947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3948 printf %s "checking for $ac_word... " >&6; }
3949 if test ${ac_cv_prog_ac_ct_CC+y}
3950 then :
3951 printf %s "(cached) " >&6
3952 else case e in #(
3953 e) if test -n "$ac_ct_CC"; then
3954 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3955 else
3956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3957 for as_dir in $PATH
3958 do
3959 IFS=$as_save_IFS
3960 case $as_dir in #(((
3961 '') as_dir=./ ;;
3962 */) ;;
3963 *) as_dir=$as_dir/ ;;
3964 esac
3965 for ac_exec_ext in '' $ac_executable_extensions; do
3966 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3967 ac_cv_prog_ac_ct_CC="clang"
3968 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3969 break 2
3970 fi
3971 done
3972 done
3973 IFS=$as_save_IFS
3974
3975 fi ;;
3976 esac
3977 fi
3978 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3979 if test -n "$ac_ct_CC"; then
3980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3981 printf "%s\n" "$ac_ct_CC" >&6; }
3982 else
3983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3984 printf "%s\n" "no" >&6; }
3985 fi
3986
3987 if test "x$ac_ct_CC" = x; then
3988 CC=""
3989 else
3990 case $cross_compiling:$ac_tool_warned in
3991 yes:)
3992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3993 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3994 ac_tool_warned=yes ;;
3995 esac
3996 CC=$ac_ct_CC
3997 fi
3998 else
3999 CC="$ac_cv_prog_CC"
4000 fi
4001
4002 fi
4003
4004
4005 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4006 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4007 as_fn_error $? "no acceptable C compiler found in \$PATH
4008 See 'config.log' for more details" "$LINENO" 5; }
4009
4010 # Provide some information about the compiler.
4011 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4012 set X $ac_compile
4013 ac_compiler=$2
4014 for ac_option in --version -v -V -qversion -version; do
4015 { { ac_try="$ac_compiler $ac_option >&5"
4016 case "(($ac_try" in
4017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4018 *) ac_try_echo=$ac_try;;
4019 esac
4020 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4021 printf "%s\n" "$ac_try_echo"; } >&5
4022 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4023 ac_status=$?
4024 if test -s conftest.err; then
4025 sed '10a\
4026 ... rest of stderr output deleted ...
4027 10q' conftest.err >conftest.er1
4028 cat conftest.er1 >&5
4029 fi
4030 rm -f conftest.er1 conftest.err
4031 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4032 test $ac_status = 0; }
4033 done
4034
4035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4036 /* end confdefs.h. */
4037
4038 int
4039 main (void)
4040 {
4041
4042 ;
4043 return 0;
4044 }
4045 _ACEOF
4046 ac_clean_files_save=$ac_clean_files
4047 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4048 # Try to create an executable without -o first, disregard a.out.
4049 # It will help us diagnose broken compilers, and finding out an intuition
4050 # of exeext.
4051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4052 printf %s "checking whether the C compiler works... " >&6; }
4053 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4054
4055 # The possible output files:
4056 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4057
4058 ac_rmfiles=
4059 for ac_file in $ac_files
4060 do
4061 case $ac_file in
4062 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4063 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4064 esac
4065 done
4066 rm -f $ac_rmfiles
4067
4068 if { { ac_try="$ac_link_default"
4069 case "(($ac_try" in
4070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4071 *) ac_try_echo=$ac_try;;
4072 esac
4073 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4074 printf "%s\n" "$ac_try_echo"; } >&5
4075 (eval "$ac_link_default") 2>&5
4076 ac_status=$?
4077 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4078 test $ac_status = 0; }
4079 then :
4080 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
4081 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
4082 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4083 # so that the user can short-circuit this test for compilers unknown to
4084 # Autoconf.
4085 for ac_file in $ac_files ''
4086 do
4087 test -f "$ac_file" || continue
4088 case $ac_file in
4089 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4090 ;;
4091 [ab].out )
4092 # We found the default executable, but exeext='' is most
4093 # certainly right.
4094 break;;
4095 *.* )
4096 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4097 then :; else
4098 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4099 fi
4100 # We set ac_cv_exeext here because the later test for it is not
4101 # safe: cross compilers may not add the suffix if given an '-o'
4102 # argument, so we may need to know it at that point already.
4103 # Even if this section looks crufty: it has the advantage of
4104 # actually working.
4105 break;;
4106 * )
4107 break;;
4108 esac
4109 done
4110 test "$ac_cv_exeext" = no && ac_cv_exeext=
4111
4112 else case e in #(
4113 e) ac_file='' ;;
4114 esac
4115 fi
4116 if test -z "$ac_file"
4117 then :
4118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4119 printf "%s\n" "no" >&6; }
4120 printf "%s\n" "$as_me: failed program was:" >&5
4121 sed 's/^/| /' conftest.$ac_ext >&5
4122
4123 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4124 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4125 as_fn_error 77 "C compiler cannot create executables
4126 See 'config.log' for more details" "$LINENO" 5; }
4127 else case e in #(
4128 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4129 printf "%s\n" "yes" >&6; } ;;
4130 esac
4131 fi
4132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4133 printf %s "checking for C compiler default output file name... " >&6; }
4134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4135 printf "%s\n" "$ac_file" >&6; }
4136 ac_exeext=$ac_cv_exeext
4137
4138 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4139 ac_clean_files=$ac_clean_files_save
4140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4141 printf %s "checking for suffix of executables... " >&6; }
4142 if { { ac_try="$ac_link"
4143 case "(($ac_try" in
4144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4145 *) ac_try_echo=$ac_try;;
4146 esac
4147 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4148 printf "%s\n" "$ac_try_echo"; } >&5
4149 (eval "$ac_link") 2>&5
4150 ac_status=$?
4151 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4152 test $ac_status = 0; }
4153 then :
4154 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
4155 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
4156 # work properly (i.e., refer to 'conftest.exe'), while it won't with
4157 # 'rm'.
4158 for ac_file in conftest.exe conftest conftest.*; do
4159 test -f "$ac_file" || continue
4160 case $ac_file in
4161 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4162 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4163 break;;
4164 * ) break;;
4165 esac
4166 done
4167 else case e in #(
4168 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4169 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4170 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4171 See 'config.log' for more details" "$LINENO" 5; } ;;
4172 esac
4173 fi
4174 rm -f conftest conftest$ac_cv_exeext
4175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4176 printf "%s\n" "$ac_cv_exeext" >&6; }
4177
4178 rm -f conftest.$ac_ext
4179 EXEEXT=$ac_cv_exeext
4180 ac_exeext=$EXEEXT
4181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4182 /* end confdefs.h. */
4183 #include <stdio.h>
4184 int
4185 main (void)
4186 {
4187 FILE *f = fopen ("conftest.out", "w");
4188 if (!f)
4189 return 1;
4190 return ferror (f) || fclose (f) != 0;
4191
4192 ;
4193 return 0;
4194 }
4195 _ACEOF
4196 ac_clean_files="$ac_clean_files conftest.out"
4197 # Check that the compiler produces executables we can run. If not, either
4198 # the compiler is broken, or we cross compile.
4199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4200 printf %s "checking whether we are cross compiling... " >&6; }
4201 if test "$cross_compiling" != yes; then
4202 { { ac_try="$ac_link"
4203 case "(($ac_try" in
4204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4205 *) ac_try_echo=$ac_try;;
4206 esac
4207 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4208 printf "%s\n" "$ac_try_echo"; } >&5
4209 (eval "$ac_link") 2>&5
4210 ac_status=$?
4211 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4212 test $ac_status = 0; }
4213 if { ac_try='./conftest$ac_cv_exeext'
4214 { { case "(($ac_try" in
4215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4216 *) ac_try_echo=$ac_try;;
4217 esac
4218 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4219 printf "%s\n" "$ac_try_echo"; } >&5
4220 (eval "$ac_try") 2>&5
4221 ac_status=$?
4222 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4223 test $ac_status = 0; }; }; then
4224 cross_compiling=no
4225 else
4226 if test "$cross_compiling" = maybe; then
4227 cross_compiling=yes
4228 else
4229 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4230 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4231 as_fn_error 77 "cannot run C compiled programs.
4232 If you meant to cross compile, use '--host'.
4233 See 'config.log' for more details" "$LINENO" 5; }
4234 fi
4235 fi
4236 fi
4237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4238 printf "%s\n" "$cross_compiling" >&6; }
4239
4240 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4241 conftest.o conftest.obj conftest.out
4242 ac_clean_files=$ac_clean_files_save
4243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4244 printf %s "checking for suffix of object files... " >&6; }
4245 if test ${ac_cv_objext+y}
4246 then :
4247 printf %s "(cached) " >&6
4248 else case e in #(
4249 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4250 /* end confdefs.h. */
4251
4252 int
4253 main (void)
4254 {
4255
4256 ;
4257 return 0;
4258 }
4259 _ACEOF
4260 rm -f conftest.o conftest.obj
4261 if { { ac_try="$ac_compile"
4262 case "(($ac_try" in
4263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4264 *) ac_try_echo=$ac_try;;
4265 esac
4266 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4267 printf "%s\n" "$ac_try_echo"; } >&5
4268 (eval "$ac_compile") 2>&5
4269 ac_status=$?
4270 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4271 test $ac_status = 0; }
4272 then :
4273 for ac_file in conftest.o conftest.obj conftest.*; do
4274 test -f "$ac_file" || continue;
4275 case $ac_file in
4276 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4277 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4278 break;;
4279 esac
4280 done
4281 else case e in #(
4282 e) printf "%s\n" "$as_me: failed program was:" >&5
4283 sed 's/^/| /' conftest.$ac_ext >&5
4284
4285 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4286 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4287 as_fn_error $? "cannot compute suffix of object files: cannot compile
4288 See 'config.log' for more details" "$LINENO" 5; } ;;
4289 esac
4290 fi
4291 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4292 esac
4293 fi
4294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4295 printf "%s\n" "$ac_cv_objext" >&6; }
4296 OBJEXT=$ac_cv_objext
4297 ac_objext=$OBJEXT
4298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4299 printf %s "checking whether the compiler supports GNU C... " >&6; }
4300 if test ${ac_cv_c_compiler_gnu+y}
4301 then :
4302 printf %s "(cached) " >&6
4303 else case e in #(
4304 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4305 /* end confdefs.h. */
4306
4307 int
4308 main (void)
4309 {
4310 #ifndef __GNUC__
4311 choke me
4312 #endif
4313
4314 ;
4315 return 0;
4316 }
4317 _ACEOF
4318 if ac_fn_c_try_compile "$LINENO"
4319 then :
4320 ac_compiler_gnu=yes
4321 else case e in #(
4322 e) ac_compiler_gnu=no ;;
4323 esac
4324 fi
4325 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4326 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4327 ;;
4328 esac
4329 fi
4330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4331 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4333
4334 if test $ac_compiler_gnu = yes; then
4335 GCC=yes
4336 else
4337 GCC=
4338 fi
4339 ac_test_CFLAGS=${CFLAGS+y}
4340 ac_save_CFLAGS=$CFLAGS
4341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4342 printf %s "checking whether $CC accepts -g... " >&6; }
4343 if test ${ac_cv_prog_cc_g+y}
4344 then :
4345 printf %s "(cached) " >&6
4346 else case e in #(
4347 e) ac_save_c_werror_flag=$ac_c_werror_flag
4348 ac_c_werror_flag=yes
4349 ac_cv_prog_cc_g=no
4350 CFLAGS="-g"
4351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4352 /* end confdefs.h. */
4353
4354 int
4355 main (void)
4356 {
4357
4358 ;
4359 return 0;
4360 }
4361 _ACEOF
4362 if ac_fn_c_try_compile "$LINENO"
4363 then :
4364 ac_cv_prog_cc_g=yes
4365 else case e in #(
4366 e) CFLAGS=""
4367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4368 /* end confdefs.h. */
4369
4370 int
4371 main (void)
4372 {
4373
4374 ;
4375 return 0;
4376 }
4377 _ACEOF
4378 if ac_fn_c_try_compile "$LINENO"
4379 then :
4380
4381 else case e in #(
4382 e) ac_c_werror_flag=$ac_save_c_werror_flag
4383 CFLAGS="-g"
4384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4385 /* end confdefs.h. */
4386
4387 int
4388 main (void)
4389 {
4390
4391 ;
4392 return 0;
4393 }
4394 _ACEOF
4395 if ac_fn_c_try_compile "$LINENO"
4396 then :
4397 ac_cv_prog_cc_g=yes
4398 fi
4399 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4400 esac
4401 fi
4402 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4403 esac
4404 fi
4405 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4406 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4407 esac
4408 fi
4409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4410 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4411 if test $ac_test_CFLAGS; then
4412 CFLAGS=$ac_save_CFLAGS
4413 elif test $ac_cv_prog_cc_g = yes; then
4414 if test "$GCC" = yes; then
4415 CFLAGS="-g -O2"
4416 else
4417 CFLAGS="-g"
4418 fi
4419 else
4420 if test "$GCC" = yes; then
4421 CFLAGS="-O2"
4422 else
4423 CFLAGS=
4424 fi
4425 fi
4426 ac_prog_cc_stdc=no
4427 if test x$ac_prog_cc_stdc = xno
4428 then :
4429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4430 printf %s "checking for $CC option to enable C11 features... " >&6; }
4431 if test ${ac_cv_prog_cc_c11+y}
4432 then :
4433 printf %s "(cached) " >&6
4434 else case e in #(
4435 e) ac_cv_prog_cc_c11=no
4436 ac_save_CC=$CC
4437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4438 /* end confdefs.h. */
4439 $ac_c_conftest_c11_program
4440 _ACEOF
4441 for ac_arg in '' -std=gnu11
4442 do
4443 CC="$ac_save_CC $ac_arg"
4444 if ac_fn_c_try_compile "$LINENO"
4445 then :
4446 ac_cv_prog_cc_c11=$ac_arg
4447 fi
4448 rm -f core conftest.err conftest.$ac_objext conftest.beam
4449 test "x$ac_cv_prog_cc_c11" != "xno" && break
4450 done
4451 rm -f conftest.$ac_ext
4452 CC=$ac_save_CC ;;
4453 esac
4454 fi
4455
4456 if test "x$ac_cv_prog_cc_c11" = xno
4457 then :
4458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4459 printf "%s\n" "unsupported" >&6; }
4460 else case e in #(
4461 e) if test "x$ac_cv_prog_cc_c11" = x
4462 then :
4463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4464 printf "%s\n" "none needed" >&6; }
4465 else case e in #(
4466 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4467 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4468 CC="$CC $ac_cv_prog_cc_c11" ;;
4469 esac
4470 fi
4471 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4472 ac_prog_cc_stdc=c11 ;;
4473 esac
4474 fi
4475 fi
4476 if test x$ac_prog_cc_stdc = xno
4477 then :
4478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4479 printf %s "checking for $CC option to enable C99 features... " >&6; }
4480 if test ${ac_cv_prog_cc_c99+y}
4481 then :
4482 printf %s "(cached) " >&6
4483 else case e in #(
4484 e) ac_cv_prog_cc_c99=no
4485 ac_save_CC=$CC
4486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4487 /* end confdefs.h. */
4488 $ac_c_conftest_c99_program
4489 _ACEOF
4490 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4491 do
4492 CC="$ac_save_CC $ac_arg"
4493 if ac_fn_c_try_compile "$LINENO"
4494 then :
4495 ac_cv_prog_cc_c99=$ac_arg
4496 fi
4497 rm -f core conftest.err conftest.$ac_objext conftest.beam
4498 test "x$ac_cv_prog_cc_c99" != "xno" && break
4499 done
4500 rm -f conftest.$ac_ext
4501 CC=$ac_save_CC ;;
4502 esac
4503 fi
4504
4505 if test "x$ac_cv_prog_cc_c99" = xno
4506 then :
4507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4508 printf "%s\n" "unsupported" >&6; }
4509 else case e in #(
4510 e) if test "x$ac_cv_prog_cc_c99" = x
4511 then :
4512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4513 printf "%s\n" "none needed" >&6; }
4514 else case e in #(
4515 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4516 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4517 CC="$CC $ac_cv_prog_cc_c99" ;;
4518 esac
4519 fi
4520 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4521 ac_prog_cc_stdc=c99 ;;
4522 esac
4523 fi
4524 fi
4525 if test x$ac_prog_cc_stdc = xno
4526 then :
4527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4528 printf %s "checking for $CC option to enable C89 features... " >&6; }
4529 if test ${ac_cv_prog_cc_c89+y}
4530 then :
4531 printf %s "(cached) " >&6
4532 else case e in #(
4533 e) ac_cv_prog_cc_c89=no
4534 ac_save_CC=$CC
4535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4536 /* end confdefs.h. */
4537 $ac_c_conftest_c89_program
4538 _ACEOF
4539 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4540 do
4541 CC="$ac_save_CC $ac_arg"
4542 if ac_fn_c_try_compile "$LINENO"
4543 then :
4544 ac_cv_prog_cc_c89=$ac_arg
4545 fi
4546 rm -f core conftest.err conftest.$ac_objext conftest.beam
4547 test "x$ac_cv_prog_cc_c89" != "xno" && break
4548 done
4549 rm -f conftest.$ac_ext
4550 CC=$ac_save_CC ;;
4551 esac
4552 fi
4553
4554 if test "x$ac_cv_prog_cc_c89" = xno
4555 then :
4556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4557 printf "%s\n" "unsupported" >&6; }
4558 else case e in #(
4559 e) if test "x$ac_cv_prog_cc_c89" = x
4560 then :
4561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4562 printf "%s\n" "none needed" >&6; }
4563 else case e in #(
4564 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4565 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4566 CC="$CC $ac_cv_prog_cc_c89" ;;
4567 esac
4568 fi
4569 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4570 ac_prog_cc_stdc=c89 ;;
4571 esac
4572 fi
4573 fi
4574
4575 ac_ext=c
4576 ac_cpp='$CPP $CPPFLAGS'
4577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4580
4581
4582 ac_ext=c
4583 ac_cpp='$CPP $CPPFLAGS'
4584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4588 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4589 if test ${am_cv_prog_cc_c_o+y}
4590 then :
4591 printf %s "(cached) " >&6
4592 else case e in #(
4593 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4594 /* end confdefs.h. */
4595
4596 int
4597 main (void)
4598 {
4599
4600 ;
4601 return 0;
4602 }
4603 _ACEOF
4604 # Make sure it works both with $CC and with simple cc.
4605 # Following AC_PROG_CC_C_O, we do the test twice because some
4606 # compilers refuse to overwrite an existing .o file with -o,
4607 # though they will create one.
4608 am_cv_prog_cc_c_o=yes
4609 for am_i in 1 2; do
4610 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4611 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4612 ac_status=$?
4613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614 (exit $ac_status); } \
4615 && test -f conftest2.$ac_objext; then
4616 : OK
4617 else
4618 am_cv_prog_cc_c_o=no
4619 break
4620 fi
4621 done
4622 # aligned with autoconf, so not including core; see bug#72225.
4623 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \
4624 conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \
4625 conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM
4626 unset am_i ;;
4627 esac
4628 fi
4629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4630 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4631 if test "$am_cv_prog_cc_c_o" != yes; then
4632 # Losing compiler, so override with the script.
4633 # FIXME: It is wrong to rewrite CC.
4634 # But if we don't then we get into trouble of one sort or another.
4635 # A longer-term fix would be to have automake use am__CC in this case,
4636 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4637 CC="$am_aux_dir/compile $CC"
4638 fi
4639 ac_ext=c
4640 ac_cpp='$CPP $CPPFLAGS'
4641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4644
4645
4646 depcc="$CC" am_compiler_list=
4647
4648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4649 printf %s "checking dependency style of $depcc... " >&6; }
4650 if test ${am_cv_CC_dependencies_compiler_type+y}
4651 then :
4652 printf %s "(cached) " >&6
4653 else case e in #(
4654 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4655 # We make a subdir and do the tests there. Otherwise we can end up
4656 # making bogus files that we don't know about and never remove. For
4657 # instance it was reported that on HP-UX the gcc test will end up
4658 # making a dummy file named 'D' -- because '-MD' means "put the output
4659 # in D".
4660 rm -rf conftest.dir
4661 mkdir conftest.dir
4662 # Copy depcomp to subdir because otherwise we won't find it if we're
4663 # using a relative directory.
4664 cp "$am_depcomp" conftest.dir
4665 cd conftest.dir
4666 # We will build objects and dependencies in a subdirectory because
4667 # it helps to detect inapplicable dependency modes. For instance
4668 # both Tru64's cc and ICC support -MD to output dependencies as a
4669 # side effect of compilation, but ICC will put the dependencies in
4670 # the current directory while Tru64 will put them in the object
4671 # directory.
4672 mkdir sub
4673
4674 am_cv_CC_dependencies_compiler_type=none
4675 if test "$am_compiler_list" = ""; then
4676 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4677 fi
4678 am__universal=false
4679 case " $depcc " in #(
4680 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4681 esac
4682
4683 for depmode in $am_compiler_list; do
4684 # Setup a source with many dependencies, because some compilers
4685 # like to wrap large dependency lists on column 80 (with \), and
4686 # we should not choose a depcomp mode which is confused by this.
4687 #
4688 # We need to recreate these files for each test, as the compiler may
4689 # overwrite some of them when testing with obscure command lines.
4690 # This happens at least with the AIX C compiler.
4691 : > sub/conftest.c
4692 for i in 1 2 3 4 5 6; do
4693 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4694 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4695 # Solaris 10 /bin/sh.
4696 echo '/* dummy */' > sub/conftst$i.h
4697 done
4698 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4699
4700 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4701 # mode. It turns out that the SunPro C++ compiler does not properly
4702 # handle '-M -o', and we need to detect this. Also, some Intel
4703 # versions had trouble with output in subdirs.
4704 am__obj=sub/conftest.${OBJEXT-o}
4705 am__minus_obj="-o $am__obj"
4706 case $depmode in
4707 gcc)
4708 # This depmode causes a compiler race in universal mode.
4709 test "$am__universal" = false || continue
4710 ;;
4711 nosideeffect)
4712 # After this tag, mechanisms are not by side-effect, so they'll
4713 # only be used when explicitly requested.
4714 if test "x$enable_dependency_tracking" = xyes; then
4715 continue
4716 else
4717 break
4718 fi
4719 ;;
4720 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4721 # This compiler won't grok '-c -o', but also, the minuso test has
4722 # not run yet. These depmodes are late enough in the game, and
4723 # so weak that their functioning should not be impacted.
4724 am__obj=conftest.${OBJEXT-o}
4725 am__minus_obj=
4726 ;;
4727 none) break ;;
4728 esac
4729 if depmode=$depmode \
4730 source=sub/conftest.c object=$am__obj \
4731 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4732 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4733 >/dev/null 2>conftest.err &&
4734 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4735 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4736 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4737 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4738 # icc doesn't choke on unknown options, it will just issue warnings
4739 # or remarks (even with -Werror). So we grep stderr for any message
4740 # that says an option was ignored or not supported.
4741 # When given -MP, icc 7.0 and 7.1 complain thus:
4742 # icc: Command line warning: ignoring option '-M'; no argument required
4743 # The diagnosis changed in icc 8.0:
4744 # icc: Command line remark: option '-MP' not supported
4745 if (grep 'ignoring option' conftest.err ||
4746 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4747 am_cv_CC_dependencies_compiler_type=$depmode
4748 break
4749 fi
4750 fi
4751 done
4752
4753 cd ..
4754 rm -rf conftest.dir
4755 else
4756 am_cv_CC_dependencies_compiler_type=none
4757 fi
4758 ;;
4759 esac
4760 fi
4761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4762 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4763 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4764
4765 if
4766 test "x$enable_dependency_tracking" != xno \
4767 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4768 am__fastdepCC_TRUE=
4769 am__fastdepCC_FALSE='#'
4770 else
4771 am__fastdepCC_TRUE='#'
4772 am__fastdepCC_FALSE=
4773 fi
4774
4775
4776
4777 ac_header= ac_cache=
4778 for ac_item in $ac_header_c_list
4779 do
4780 if test $ac_cache; then
4781 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4782 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4783 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4784 fi
4785 ac_header= ac_cache=
4786 elif test $ac_header; then
4787 ac_cache=$ac_item
4788 else
4789 ac_header=$ac_item
4790 fi
4791 done
4792
4793
4794
4795
4796
4797
4798
4799
4800 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4801 then :
4802
4803 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4804
4805 fi
4806
4807
4808
4809
4810
4811
4812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4813 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4814 if test ${ac_cv_safe_to_define___extensions__+y}
4815 then :
4816 printf %s "(cached) " >&6
4817 else case e in #(
4818 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4819 /* end confdefs.h. */
4820
4821 # define __EXTENSIONS__ 1
4822 $ac_includes_default
4823 int
4824 main (void)
4825 {
4826
4827 ;
4828 return 0;
4829 }
4830 _ACEOF
4831 if ac_fn_c_try_compile "$LINENO"
4832 then :
4833 ac_cv_safe_to_define___extensions__=yes
4834 else case e in #(
4835 e) ac_cv_safe_to_define___extensions__=no ;;
4836 esac
4837 fi
4838 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4839 esac
4840 fi
4841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4842 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
4843
4844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4845 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4846 if test ${ac_cv_should_define__xopen_source+y}
4847 then :
4848 printf %s "(cached) " >&6
4849 else case e in #(
4850 e) ac_cv_should_define__xopen_source=no
4851 if test $ac_cv_header_wchar_h = yes
4852 then :
4853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4854 /* end confdefs.h. */
4855
4856 #include <wchar.h>
4857 mbstate_t x;
4858 int
4859 main (void)
4860 {
4861
4862 ;
4863 return 0;
4864 }
4865 _ACEOF
4866 if ac_fn_c_try_compile "$LINENO"
4867 then :
4868
4869 else case e in #(
4870 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4871 /* end confdefs.h. */
4872
4873 #define _XOPEN_SOURCE 500
4874 #include <wchar.h>
4875 mbstate_t x;
4876 int
4877 main (void)
4878 {
4879
4880 ;
4881 return 0;
4882 }
4883 _ACEOF
4884 if ac_fn_c_try_compile "$LINENO"
4885 then :
4886 ac_cv_should_define__xopen_source=yes
4887 fi
4888 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4889 esac
4890 fi
4891 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4892 fi ;;
4893 esac
4894 fi
4895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4896 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
4897
4898 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
4899
4900 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4901
4902 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
4903
4904 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
4905
4906 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
4907
4908 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
4909
4910 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4911
4912 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4913
4914 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4915
4916 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4917
4918 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
4919
4920 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4921
4922 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4923
4924 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4925
4926 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
4927
4928 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
4929
4930 if test $ac_cv_header_minix_config_h = yes
4931 then :
4932 MINIX=yes
4933 printf "%s\n" "#define _MINIX 1" >>confdefs.h
4934
4935 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
4936
4937 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
4938
4939 else case e in #(
4940 e) MINIX= ;;
4941 esac
4942 fi
4943 if test $ac_cv_safe_to_define___extensions__ = yes
4944 then :
4945 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
4946
4947 fi
4948 if test $ac_cv_should_define__xopen_source = yes
4949 then :
4950 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
4951
4952 fi
4953
4954 # Check whether --enable-compiler-warnings was given.
4955 if test ${enable_compiler_warnings+y}
4956 then :
4957 enableval=$enable_compiler_warnings;
4958 fi
4959 case $enable_compiler_warnings in #(
4960 no | min | yes | max | all) :
4961 ;; #(
4962 *) :
4963 if test "x$enable_maintainer_mode" = xyes
4964 then :
4965 enable_compiler_warnings=yes
4966 else case e in #(
4967 e) enable_compiler_warnings=min ;;
4968 esac
4969 fi ;;
4970 esac
4971
4972 echo 'tldbg:KPSE_BASIC called (pkg=pplib, amopt=)' >&5
4973
4974 #
4975 # am_init_automake
4976 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4977 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4978 # is not polluted with repeated "-I."
4979 am__isrc=' -I$(srcdir)'
4980 # test to see if srcdir already configured
4981 if test -f $srcdir/config.status; then
4982 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4983 fi
4984 fi
4985
4986 # test whether we have cygpath
4987 if test -z "$CYGPATH_W"; then
4988 if (cygpath --version) >/dev/null 2>/dev/null; then
4989 CYGPATH_W='cygpath -w'
4990 else
4991 CYGPATH_W=echo
4992 fi
4993 fi
4994
4995
4996 # Define the identity of the package.
4997 PACKAGE='pplib--tex-live-'
4998 VERSION='2.05.0'
4999
5000
5001 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
5002
5003
5004 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
5005
5006 # Some tools Automake needs.
5007
5008 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5009
5010
5011 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5012
5013
5014 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5015
5016
5017 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5018
5019
5020 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5021
5022 # For better backward compatibility. To be removed once Automake 1.9.x
5023 # dies out for good. For more background, see:
5024 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
5025 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
5026 mkdir_p='$(MKDIR_P)'
5027
5028 # We need awk for the "check" target (and possibly the TAP driver). The
5029 # system "awk" is bad on some platforms.
5030 # Always define AMTAR for backward compatibility. Yes, it's still used
5031 # in the wild :-( We should find a proper way to deprecate it ...
5032 AMTAR='$${TAR-tar}'
5033
5034
5035 # We'll loop over all known methods to create a tar archive until one works.
5036 _am_tools='gnutar plaintar pax cpio none'
5037
5038 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
5039 # There is notably a 21 bits limit for the UID and the GID. In fact,
5040 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
5041 # and bug#13588).
5042 am_max_uid=2097151 # 2^21 - 1
5043 am_max_gid=$am_max_uid
5044 # The $UID and $GID variables are not portable, so we need to resort
5045 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
5046 # below are definitely unexpected, so allow the users to see them
5047 # (that is, avoid stderr redirection).
5048 am_uid=`id -u || echo unknown`
5049 am_gid=`id -g || echo unknown`
5050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
5051 printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
5052 if test x$am_uid = xunknown; then
5053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&5
5054 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&2;}
5055 elif test $am_uid -le $am_max_uid; then
5056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5057 printf "%s\n" "yes" >&6; }
5058 else
5059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5060 printf "%s\n" "no" >&6; }
5061 _am_tools=none
5062 fi
5063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
5064 printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
5065 if test x$gm_gid = xunknown; then
5066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&5
5067 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&2;}
5068 elif test $am_gid -le $am_max_gid; then
5069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5070 printf "%s\n" "yes" >&6; }
5071 else
5072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5073 printf "%s\n" "no" >&6; }
5074 _am_tools=none
5075 fi
5076
5077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
5078 printf %s "checking how to create a ustar tar archive... " >&6; }
5079
5080 # Go ahead even if we have the value already cached. We do so because we
5081 # need to set the values for the 'am__tar' and 'am__untar' variables.
5082 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
5083
5084 for _am_tool in $_am_tools; do
5085 case $_am_tool in
5086 gnutar)
5087 for _am_tar in tar gnutar gtar; do
5088 { echo "$as_me:$LINENO: $_am_tar --version" >&5
5089 ($_am_tar --version) >&5 2>&5
5090 ac_status=$?
5091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5092 (exit $ac_status); } && break
5093 done
5094 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
5095 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
5096 am__untar="$_am_tar -xf -"
5097 ;;
5098 plaintar)
5099 # Must skip GNU tar: if it does not support --format= it doesn't create
5100 # ustar tarball either.
5101 (tar --version) >/dev/null 2>&1 && continue
5102 am__tar='tar chf - "$$tardir"'
5103 am__tar_='tar chf - "$tardir"'
5104 am__untar='tar xf -'
5105 ;;
5106 pax)
5107 am__tar='pax -L -x ustar -w "$$tardir"'
5108 am__tar_='pax -L -x ustar -w "$tardir"'
5109 am__untar='pax -r'
5110 ;;
5111 cpio)
5112 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
5113 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
5114 am__untar='cpio -i -H ustar -d'
5115 ;;
5116 none)
5117 am__tar=false
5118 am__tar_=false
5119 am__untar=false
5120 ;;
5121 esac
5122
5123 # If the value was cached, stop now. We just wanted to have am__tar
5124 # and am__untar set.
5125 test -n "${am_cv_prog_tar_ustar}" && break
5126
5127 # tar/untar a dummy directory, and stop if the command works.
5128 rm -rf conftest.dir
5129 mkdir conftest.dir
5130 echo GrepMe > conftest.dir/file
5131 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
5132 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
5133 ac_status=$?
5134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135 (exit $ac_status); }
5136 rm -rf conftest.dir
5137 if test -s conftest.tar; then
5138 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
5139 ($am__untar <conftest.tar) >&5 2>&5
5140 ac_status=$?
5141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5142 (exit $ac_status); }
5143 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
5144 (cat conftest.dir/file) >&5 2>&5
5145 ac_status=$?
5146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147 (exit $ac_status); }
5148 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
5149 fi
5150 done
5151 rm -rf conftest.dir
5152
5153 if test ${am_cv_prog_tar_ustar+y}
5154 then :
5155 printf %s "(cached) " >&6
5156 else case e in #(
5157 e) am_cv_prog_tar_ustar=$_am_tool ;;
5158 esac
5159 fi
5160
5161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
5162 printf "%s\n" "$am_cv_prog_tar_ustar" >&6; }
5163
5164
5165
5166
5167
5168 # Variables for tags utilities; see am/tags.am
5169 if test -z "$CTAGS"; then
5170 CTAGS=ctags
5171 fi
5172
5173 if test -z "$ETAGS"; then
5174 ETAGS=etags
5175 fi
5176
5177 if test -z "$CSCOPE"; then
5178 CSCOPE=cscope
5179 fi
5180
5181
5182
5183
5184
5185
5186
5187
5188 # am_maintainer_mode
5189
5190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5191 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5192 # Check whether --enable-maintainer-mode was given.
5193 if test ${enable_maintainer_mode+y}
5194 then :
5195 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5196 else case e in #(
5197 e) USE_MAINTAINER_MODE=no ;;
5198 esac
5199 fi
5200
5201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5202 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
5203 if test $USE_MAINTAINER_MODE = yes; then
5204 MAINTAINER_MODE_TRUE=
5205 MAINTAINER_MODE_FALSE='#'
5206 else
5207 MAINTAINER_MODE_TRUE='#'
5208 MAINTAINER_MODE_FALSE=
5209 fi
5210
5211 MAINT=$MAINTAINER_MODE_TRUE
5212
5213
5214
5215 # See comments in kpse-setup.m4 about system extensions.
5216
5217
5218 # Check whether prototypes work.
5219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts prototypes" >&5
5220 printf %s "checking whether the compiler accepts prototypes... " >&6; }
5221 if test ${kb_cv_c_prototypes+y}
5222 then :
5223 printf %s "(cached) " >&6
5224 else case e in #(
5225 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5226 /* end confdefs.h. */
5227 #include <stdarg.h>
5228 int
5229 main (void)
5230 {
5231 extern void foo(int i,...);
5232 ;
5233 return 0;
5234 }
5235 _ACEOF
5236 if ac_fn_c_try_link "$LINENO"
5237 then :
5238 kb_cv_c_prototypes=yes
5239 else case e in #(
5240 e) kb_cv_c_prototypes=no ;;
5241 esac
5242 fi
5243 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5244 conftest$ac_exeext conftest.$ac_ext ;;
5245 esac
5246 fi
5247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kb_cv_c_prototypes" >&5
5248 printf "%s\n" "$kb_cv_c_prototypes" >&6; }
5249 if test "x$kb_cv_c_prototypes" = xno; then
5250 as_fn_error $? "Sorry, your compiler does not understand prototypes." "$LINENO" 5
5251 fi
5252
5253 # kpse_compiler_warnings options.
5254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking what warning flags to pass to the C compiler" >&5
5255 printf %s "checking what warning flags to pass to the C compiler... " >&6; }
5256 if test ${kpse_cv_warning_cflags+y}
5257 then :
5258 printf %s "(cached) " >&6
5259 else case e in #(
5260 e) if test "x$GCC" = xyes; then
5261 kpse_cv_warning_cflags=
5262 if test "x$enable_compiler_warnings" != xno; then
5263 kpse_cv_warning_cflags="-Wimplicit -Wreturn-type"
5264 case `$CC -dumpversion` in #(
5265 3.4.* | 4.* | 5.*) :
5266 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wdeclaration-after-statement" ;; #(
5267 *) :
5268 ;;
5269 esac
5270 case `$CC -dumpversion` in #(
5271 3.[234].* | 4.* | 5.*) :
5272 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wno-unknown-pragmas" ;; #(
5273 *) :
5274 ;;
5275 esac
5276 if test "x$enable_compiler_warnings" != xmin; then
5277 kpse_cv_warning_cflags="-Wall -Wunused $kpse_cv_warning_cflags"
5278 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wmissing-prototypes -Wmissing-declarations"
5279 if test "x$enable_compiler_warnings" != xyes; then
5280 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wparentheses -Wswitch -Wtrigraphs -Wpointer-arith"
5281 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wcast-qual -Wcast-align -Wwrite-strings"
5282 case `$CC -dumpversion` in #(
5283 3.4.* | 4.* | 5.*) :
5284 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wold-style-definition" ;; #(
5285 *) :
5286 ;;
5287 esac
5288 if test "x$enable_compiler_warnings" != xmax; then
5289 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wshadow"
5290 fi
5291 fi
5292 fi
5293 fi
5294 elif test "x$enable_compiler_warnings" = xno; then
5295 kpse_cv_warning_cflags=
5296 else
5297 kpse_cv_warning_cflags= # FIXME: warning flags for non-GNU C compilers
5298 fi ;;
5299 esac
5300 fi
5301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_warning_cflags" >&5
5302 printf "%s\n" "$kpse_cv_warning_cflags" >&6; }
5303 WARNING_CFLAGS=$kpse_cv_warning_cflags
5304
5305
5306
5307
5308
5309
5310
5311 # end of kpse_basic macro.
5312 echo 'tldbg:KPSE_BASIC done (pkg=pplib, amopt=)' >&5
5313
5314
5315 ac_ext=c
5316 ac_cpp='$CPP $CPPFLAGS'
5317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5320 if test -n "$ac_tool_prefix"; then
5321 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5322 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5324 printf %s "checking for $ac_word... " >&6; }
5325 if test ${ac_cv_prog_CC+y}
5326 then :
5327 printf %s "(cached) " >&6
5328 else case e in #(
5329 e) if test -n "$CC"; then
5330 ac_cv_prog_CC="$CC" # Let the user override the test.
5331 else
5332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5333 for as_dir in $PATH
5334 do
5335 IFS=$as_save_IFS
5336 case $as_dir in #(((
5337 '') as_dir=./ ;;
5338 */) ;;
5339 *) as_dir=$as_dir/ ;;
5340 esac
5341 for ac_exec_ext in '' $ac_executable_extensions; do
5342 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5343 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5344 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5345 break 2
5346 fi
5347 done
5348 done
5349 IFS=$as_save_IFS
5350
5351 fi ;;
5352 esac
5353 fi
5354 CC=$ac_cv_prog_CC
5355 if test -n "$CC"; then
5356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5357 printf "%s\n" "$CC" >&6; }
5358 else
5359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5360 printf "%s\n" "no" >&6; }
5361 fi
5362
5363
5364 fi
5365 if test -z "$ac_cv_prog_CC"; then
5366 ac_ct_CC=$CC
5367 # Extract the first word of "gcc", so it can be a program name with args.
5368 set dummy gcc; ac_word=$2
5369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5370 printf %s "checking for $ac_word... " >&6; }
5371 if test ${ac_cv_prog_ac_ct_CC+y}
5372 then :
5373 printf %s "(cached) " >&6
5374 else case e in #(
5375 e) if test -n "$ac_ct_CC"; then
5376 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5377 else
5378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5379 for as_dir in $PATH
5380 do
5381 IFS=$as_save_IFS
5382 case $as_dir in #(((
5383 '') as_dir=./ ;;
5384 */) ;;
5385 *) as_dir=$as_dir/ ;;
5386 esac
5387 for ac_exec_ext in '' $ac_executable_extensions; do
5388 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5389 ac_cv_prog_ac_ct_CC="gcc"
5390 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5391 break 2
5392 fi
5393 done
5394 done
5395 IFS=$as_save_IFS
5396
5397 fi ;;
5398 esac
5399 fi
5400 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5401 if test -n "$ac_ct_CC"; then
5402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5403 printf "%s\n" "$ac_ct_CC" >&6; }
5404 else
5405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5406 printf "%s\n" "no" >&6; }
5407 fi
5408
5409 if test "x$ac_ct_CC" = x; then
5410 CC=""
5411 else
5412 case $cross_compiling:$ac_tool_warned in
5413 yes:)
5414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5415 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5416 ac_tool_warned=yes ;;
5417 esac
5418 CC=$ac_ct_CC
5419 fi
5420 else
5421 CC="$ac_cv_prog_CC"
5422 fi
5423
5424 if test -z "$CC"; then
5425 if test -n "$ac_tool_prefix"; then
5426 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5427 set dummy ${ac_tool_prefix}cc; ac_word=$2
5428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5429 printf %s "checking for $ac_word... " >&6; }
5430 if test ${ac_cv_prog_CC+y}
5431 then :
5432 printf %s "(cached) " >&6
5433 else case e in #(
5434 e) if test -n "$CC"; then
5435 ac_cv_prog_CC="$CC" # Let the user override the test.
5436 else
5437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5438 for as_dir in $PATH
5439 do
5440 IFS=$as_save_IFS
5441 case $as_dir in #(((
5442 '') as_dir=./ ;;
5443 */) ;;
5444 *) as_dir=$as_dir/ ;;
5445 esac
5446 for ac_exec_ext in '' $ac_executable_extensions; do
5447 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5448 ac_cv_prog_CC="${ac_tool_prefix}cc"
5449 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5450 break 2
5451 fi
5452 done
5453 done
5454 IFS=$as_save_IFS
5455
5456 fi ;;
5457 esac
5458 fi
5459 CC=$ac_cv_prog_CC
5460 if test -n "$CC"; then
5461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5462 printf "%s\n" "$CC" >&6; }
5463 else
5464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5465 printf "%s\n" "no" >&6; }
5466 fi
5467
5468
5469 fi
5470 fi
5471 if test -z "$CC"; then
5472 # Extract the first word of "cc", so it can be a program name with args.
5473 set dummy cc; ac_word=$2
5474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5475 printf %s "checking for $ac_word... " >&6; }
5476 if test ${ac_cv_prog_CC+y}
5477 then :
5478 printf %s "(cached) " >&6
5479 else case e in #(
5480 e) if test -n "$CC"; then
5481 ac_cv_prog_CC="$CC" # Let the user override the test.
5482 else
5483 ac_prog_rejected=no
5484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5485 for as_dir in $PATH
5486 do
5487 IFS=$as_save_IFS
5488 case $as_dir in #(((
5489 '') as_dir=./ ;;
5490 */) ;;
5491 *) as_dir=$as_dir/ ;;
5492 esac
5493 for ac_exec_ext in '' $ac_executable_extensions; do
5494 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5495 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5496 ac_prog_rejected=yes
5497 continue
5498 fi
5499 ac_cv_prog_CC="cc"
5500 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5501 break 2
5502 fi
5503 done
5504 done
5505 IFS=$as_save_IFS
5506
5507 if test $ac_prog_rejected = yes; then
5508 # We found a bogon in the path, so make sure we never use it.
5509 set dummy $ac_cv_prog_CC
5510 shift
5511 if test $# != 0; then
5512 # We chose a different compiler from the bogus one.
5513 # However, it has the same basename, so the bogon will be chosen
5514 # first if we set CC to just the basename; use the full file name.
5515 shift
5516 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
5517 fi
5518 fi
5519 fi ;;
5520 esac
5521 fi
5522 CC=$ac_cv_prog_CC
5523 if test -n "$CC"; then
5524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5525 printf "%s\n" "$CC" >&6; }
5526 else
5527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5528 printf "%s\n" "no" >&6; }
5529 fi
5530
5531
5532 fi
5533 if test -z "$CC"; then
5534 if test -n "$ac_tool_prefix"; then
5535 for ac_prog in cl.exe
5536 do
5537 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5538 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5540 printf %s "checking for $ac_word... " >&6; }
5541 if test ${ac_cv_prog_CC+y}
5542 then :
5543 printf %s "(cached) " >&6
5544 else case e in #(
5545 e) if test -n "$CC"; then
5546 ac_cv_prog_CC="$CC" # Let the user override the test.
5547 else
5548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5549 for as_dir in $PATH
5550 do
5551 IFS=$as_save_IFS
5552 case $as_dir in #(((
5553 '') as_dir=./ ;;
5554 */) ;;
5555 *) as_dir=$as_dir/ ;;
5556 esac
5557 for ac_exec_ext in '' $ac_executable_extensions; do
5558 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5559 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5560 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5561 break 2
5562 fi
5563 done
5564 done
5565 IFS=$as_save_IFS
5566
5567 fi ;;
5568 esac
5569 fi
5570 CC=$ac_cv_prog_CC
5571 if test -n "$CC"; then
5572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5573 printf "%s\n" "$CC" >&6; }
5574 else
5575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5576 printf "%s\n" "no" >&6; }
5577 fi
5578
5579
5580 test -n "$CC" && break
5581 done
5582 fi
5583 if test -z "$CC"; then
5584 ac_ct_CC=$CC
5585 for ac_prog in cl.exe
5586 do
5587 # Extract the first word of "$ac_prog", so it can be a program name with args.
5588 set dummy $ac_prog; ac_word=$2
5589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5590 printf %s "checking for $ac_word... " >&6; }
5591 if test ${ac_cv_prog_ac_ct_CC+y}
5592 then :
5593 printf %s "(cached) " >&6
5594 else case e in #(
5595 e) if test -n "$ac_ct_CC"; then
5596 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5597 else
5598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5599 for as_dir in $PATH
5600 do
5601 IFS=$as_save_IFS
5602 case $as_dir in #(((
5603 '') as_dir=./ ;;
5604 */) ;;
5605 *) as_dir=$as_dir/ ;;
5606 esac
5607 for ac_exec_ext in '' $ac_executable_extensions; do
5608 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5609 ac_cv_prog_ac_ct_CC="$ac_prog"
5610 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5611 break 2
5612 fi
5613 done
5614 done
5615 IFS=$as_save_IFS
5616
5617 fi ;;
5618 esac
5619 fi
5620 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5621 if test -n "$ac_ct_CC"; then
5622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5623 printf "%s\n" "$ac_ct_CC" >&6; }
5624 else
5625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5626 printf "%s\n" "no" >&6; }
5627 fi
5628
5629
5630 test -n "$ac_ct_CC" && break
5631 done
5632
5633 if test "x$ac_ct_CC" = x; then
5634 CC=""
5635 else
5636 case $cross_compiling:$ac_tool_warned in
5637 yes:)
5638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5639 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5640 ac_tool_warned=yes ;;
5641 esac
5642 CC=$ac_ct_CC
5643 fi
5644 fi
5645
5646 fi
5647 if test -z "$CC"; then
5648 if test -n "$ac_tool_prefix"; then
5649 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
5650 set dummy ${ac_tool_prefix}clang; ac_word=$2
5651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5652 printf %s "checking for $ac_word... " >&6; }
5653 if test ${ac_cv_prog_CC+y}
5654 then :
5655 printf %s "(cached) " >&6
5656 else case e in #(
5657 e) if test -n "$CC"; then
5658 ac_cv_prog_CC="$CC" # Let the user override the test.
5659 else
5660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5661 for as_dir in $PATH
5662 do
5663 IFS=$as_save_IFS
5664 case $as_dir in #(((
5665 '') as_dir=./ ;;
5666 */) ;;
5667 *) as_dir=$as_dir/ ;;
5668 esac
5669 for ac_exec_ext in '' $ac_executable_extensions; do
5670 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5671 ac_cv_prog_CC="${ac_tool_prefix}clang"
5672 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5673 break 2
5674 fi
5675 done
5676 done
5677 IFS=$as_save_IFS
5678
5679 fi ;;
5680 esac
5681 fi
5682 CC=$ac_cv_prog_CC
5683 if test -n "$CC"; then
5684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5685 printf "%s\n" "$CC" >&6; }
5686 else
5687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5688 printf "%s\n" "no" >&6; }
5689 fi
5690
5691
5692 fi
5693 if test -z "$ac_cv_prog_CC"; then
5694 ac_ct_CC=$CC
5695 # Extract the first word of "clang", so it can be a program name with args.
5696 set dummy clang; ac_word=$2
5697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5698 printf %s "checking for $ac_word... " >&6; }
5699 if test ${ac_cv_prog_ac_ct_CC+y}
5700 then :
5701 printf %s "(cached) " >&6
5702 else case e in #(
5703 e) if test -n "$ac_ct_CC"; then
5704 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5705 else
5706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5707 for as_dir in $PATH
5708 do
5709 IFS=$as_save_IFS
5710 case $as_dir in #(((
5711 '') as_dir=./ ;;
5712 */) ;;
5713 *) as_dir=$as_dir/ ;;
5714 esac
5715 for ac_exec_ext in '' $ac_executable_extensions; do
5716 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5717 ac_cv_prog_ac_ct_CC="clang"
5718 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5719 break 2
5720 fi
5721 done
5722 done
5723 IFS=$as_save_IFS
5724
5725 fi ;;
5726 esac
5727 fi
5728 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5729 if test -n "$ac_ct_CC"; then
5730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5731 printf "%s\n" "$ac_ct_CC" >&6; }
5732 else
5733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5734 printf "%s\n" "no" >&6; }
5735 fi
5736
5737 if test "x$ac_ct_CC" = x; then
5738 CC=""
5739 else
5740 case $cross_compiling:$ac_tool_warned in
5741 yes:)
5742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5743 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5744 ac_tool_warned=yes ;;
5745 esac
5746 CC=$ac_ct_CC
5747 fi
5748 else
5749 CC="$ac_cv_prog_CC"
5750 fi
5751
5752 fi
5753
5754
5755 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5756 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5757 as_fn_error $? "no acceptable C compiler found in \$PATH
5758 See 'config.log' for more details" "$LINENO" 5; }
5759
5760 # Provide some information about the compiler.
5761 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5762 set X $ac_compile
5763 ac_compiler=$2
5764 for ac_option in --version -v -V -qversion -version; do
5765 { { ac_try="$ac_compiler $ac_option >&5"
5766 case "(($ac_try" in
5767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5768 *) ac_try_echo=$ac_try;;
5769 esac
5770 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5771 printf "%s\n" "$ac_try_echo"; } >&5
5772 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5773 ac_status=$?
5774 if test -s conftest.err; then
5775 sed '10a\
5776 ... rest of stderr output deleted ...
5777 10q' conftest.err >conftest.er1
5778 cat conftest.er1 >&5
5779 fi
5780 rm -f conftest.er1 conftest.err
5781 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5782 test $ac_status = 0; }
5783 done
5784
5785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5786 printf %s "checking whether the compiler supports GNU C... " >&6; }
5787 if test ${ac_cv_c_compiler_gnu+y}
5788 then :
5789 printf %s "(cached) " >&6
5790 else case e in #(
5791 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5792 /* end confdefs.h. */
5793
5794 int
5795 main (void)
5796 {
5797 #ifndef __GNUC__
5798 choke me
5799 #endif
5800
5801 ;
5802 return 0;
5803 }
5804 _ACEOF
5805 if ac_fn_c_try_compile "$LINENO"
5806 then :
5807 ac_compiler_gnu=yes
5808 else case e in #(
5809 e) ac_compiler_gnu=no ;;
5810 esac
5811 fi
5812 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5813 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5814 ;;
5815 esac
5816 fi
5817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5818 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5820
5821 if test $ac_compiler_gnu = yes; then
5822 GCC=yes
5823 else
5824 GCC=
5825 fi
5826 ac_test_CFLAGS=${CFLAGS+y}
5827 ac_save_CFLAGS=$CFLAGS
5828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5829 printf %s "checking whether $CC accepts -g... " >&6; }
5830 if test ${ac_cv_prog_cc_g+y}
5831 then :
5832 printf %s "(cached) " >&6
5833 else case e in #(
5834 e) ac_save_c_werror_flag=$ac_c_werror_flag
5835 ac_c_werror_flag=yes
5836 ac_cv_prog_cc_g=no
5837 CFLAGS="-g"
5838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5839 /* end confdefs.h. */
5840
5841 int
5842 main (void)
5843 {
5844
5845 ;
5846 return 0;
5847 }
5848 _ACEOF
5849 if ac_fn_c_try_compile "$LINENO"
5850 then :
5851 ac_cv_prog_cc_g=yes
5852 else case e in #(
5853 e) CFLAGS=""
5854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5855 /* end confdefs.h. */
5856
5857 int
5858 main (void)
5859 {
5860
5861 ;
5862 return 0;
5863 }
5864 _ACEOF
5865 if ac_fn_c_try_compile "$LINENO"
5866 then :
5867
5868 else case e in #(
5869 e) ac_c_werror_flag=$ac_save_c_werror_flag
5870 CFLAGS="-g"
5871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5872 /* end confdefs.h. */
5873
5874 int
5875 main (void)
5876 {
5877
5878 ;
5879 return 0;
5880 }
5881 _ACEOF
5882 if ac_fn_c_try_compile "$LINENO"
5883 then :
5884 ac_cv_prog_cc_g=yes
5885 fi
5886 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5887 esac
5888 fi
5889 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5890 esac
5891 fi
5892 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5893 ac_c_werror_flag=$ac_save_c_werror_flag ;;
5894 esac
5895 fi
5896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5897 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5898 if test $ac_test_CFLAGS; then
5899 CFLAGS=$ac_save_CFLAGS
5900 elif test $ac_cv_prog_cc_g = yes; then
5901 if test "$GCC" = yes; then
5902 CFLAGS="-g -O2"
5903 else
5904 CFLAGS="-g"
5905 fi
5906 else
5907 if test "$GCC" = yes; then
5908 CFLAGS="-O2"
5909 else
5910 CFLAGS=
5911 fi
5912 fi
5913 ac_prog_cc_stdc=no
5914 if test x$ac_prog_cc_stdc = xno
5915 then :
5916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5917 printf %s "checking for $CC option to enable C11 features... " >&6; }
5918 if test ${ac_cv_prog_cc_c11+y}
5919 then :
5920 printf %s "(cached) " >&6
5921 else case e in #(
5922 e) ac_cv_prog_cc_c11=no
5923 ac_save_CC=$CC
5924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5925 /* end confdefs.h. */
5926 $ac_c_conftest_c11_program
5927 _ACEOF
5928 for ac_arg in '' -std=gnu11
5929 do
5930 CC="$ac_save_CC $ac_arg"
5931 if ac_fn_c_try_compile "$LINENO"
5932 then :
5933 ac_cv_prog_cc_c11=$ac_arg
5934 fi
5935 rm -f core conftest.err conftest.$ac_objext conftest.beam
5936 test "x$ac_cv_prog_cc_c11" != "xno" && break
5937 done
5938 rm -f conftest.$ac_ext
5939 CC=$ac_save_CC ;;
5940 esac
5941 fi
5942
5943 if test "x$ac_cv_prog_cc_c11" = xno
5944 then :
5945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5946 printf "%s\n" "unsupported" >&6; }
5947 else case e in #(
5948 e) if test "x$ac_cv_prog_cc_c11" = x
5949 then :
5950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5951 printf "%s\n" "none needed" >&6; }
5952 else case e in #(
5953 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5954 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5955 CC="$CC $ac_cv_prog_cc_c11" ;;
5956 esac
5957 fi
5958 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5959 ac_prog_cc_stdc=c11 ;;
5960 esac
5961 fi
5962 fi
5963 if test x$ac_prog_cc_stdc = xno
5964 then :
5965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5966 printf %s "checking for $CC option to enable C99 features... " >&6; }
5967 if test ${ac_cv_prog_cc_c99+y}
5968 then :
5969 printf %s "(cached) " >&6
5970 else case e in #(
5971 e) ac_cv_prog_cc_c99=no
5972 ac_save_CC=$CC
5973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5974 /* end confdefs.h. */
5975 $ac_c_conftest_c99_program
5976 _ACEOF
5977 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5978 do
5979 CC="$ac_save_CC $ac_arg"
5980 if ac_fn_c_try_compile "$LINENO"
5981 then :
5982 ac_cv_prog_cc_c99=$ac_arg
5983 fi
5984 rm -f core conftest.err conftest.$ac_objext conftest.beam
5985 test "x$ac_cv_prog_cc_c99" != "xno" && break
5986 done
5987 rm -f conftest.$ac_ext
5988 CC=$ac_save_CC ;;
5989 esac
5990 fi
5991
5992 if test "x$ac_cv_prog_cc_c99" = xno
5993 then :
5994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5995 printf "%s\n" "unsupported" >&6; }
5996 else case e in #(
5997 e) if test "x$ac_cv_prog_cc_c99" = x
5998 then :
5999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6000 printf "%s\n" "none needed" >&6; }
6001 else case e in #(
6002 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6003 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
6004 CC="$CC $ac_cv_prog_cc_c99" ;;
6005 esac
6006 fi
6007 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6008 ac_prog_cc_stdc=c99 ;;
6009 esac
6010 fi
6011 fi
6012 if test x$ac_prog_cc_stdc = xno
6013 then :
6014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
6015 printf %s "checking for $CC option to enable C89 features... " >&6; }
6016 if test ${ac_cv_prog_cc_c89+y}
6017 then :
6018 printf %s "(cached) " >&6
6019 else case e in #(
6020 e) ac_cv_prog_cc_c89=no
6021 ac_save_CC=$CC
6022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6023 /* end confdefs.h. */
6024 $ac_c_conftest_c89_program
6025 _ACEOF
6026 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6027 do
6028 CC="$ac_save_CC $ac_arg"
6029 if ac_fn_c_try_compile "$LINENO"
6030 then :
6031 ac_cv_prog_cc_c89=$ac_arg
6032 fi
6033 rm -f core conftest.err conftest.$ac_objext conftest.beam
6034 test "x$ac_cv_prog_cc_c89" != "xno" && break
6035 done
6036 rm -f conftest.$ac_ext
6037 CC=$ac_save_CC ;;
6038 esac
6039 fi
6040
6041 if test "x$ac_cv_prog_cc_c89" = xno
6042 then :
6043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6044 printf "%s\n" "unsupported" >&6; }
6045 else case e in #(
6046 e) if test "x$ac_cv_prog_cc_c89" = x
6047 then :
6048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6049 printf "%s\n" "none needed" >&6; }
6050 else case e in #(
6051 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6052 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
6053 CC="$CC $ac_cv_prog_cc_c89" ;;
6054 esac
6055 fi
6056 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6057 ac_prog_cc_stdc=c89 ;;
6058 esac
6059 fi
6060 fi
6061
6062 ac_ext=c
6063 ac_cpp='$CPP $CPPFLAGS'
6064 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6065 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6066 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6067
6068
6069 ac_ext=c
6070 ac_cpp='$CPP $CPPFLAGS'
6071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6075 printf %s "checking whether $CC understands -c and -o together... " >&6; }
6076 if test ${am_cv_prog_cc_c_o+y}
6077 then :
6078 printf %s "(cached) " >&6
6079 else case e in #(
6080 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6081 /* end confdefs.h. */
6082
6083 int
6084 main (void)
6085 {
6086
6087 ;
6088 return 0;
6089 }
6090 _ACEOF
6091 # Make sure it works both with $CC and with simple cc.
6092 # Following AC_PROG_CC_C_O, we do the test twice because some
6093 # compilers refuse to overwrite an existing .o file with -o,
6094 # though they will create one.
6095 am_cv_prog_cc_c_o=yes
6096 for am_i in 1 2; do
6097 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6098 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6099 ac_status=$?
6100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6101 (exit $ac_status); } \
6102 && test -f conftest2.$ac_objext; then
6103 : OK
6104 else
6105 am_cv_prog_cc_c_o=no
6106 break
6107 fi
6108 done
6109 # aligned with autoconf, so not including core; see bug#72225.
6110 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \
6111 conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \
6112 conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM
6113 unset am_i ;;
6114 esac
6115 fi
6116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6117 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
6118 if test "$am_cv_prog_cc_c_o" != yes; then
6119 # Losing compiler, so override with the script.
6120 # FIXME: It is wrong to rewrite CC.
6121 # But if we don't then we get into trouble of one sort or another.
6122 # A longer-term fix would be to have automake use am__CC in this case,
6123 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6124 CC="$am_aux_dir/compile $CC"
6125 fi
6126 ac_ext=c
6127 ac_cpp='$CPP $CPPFLAGS'
6128 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6129 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6130 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6131
6132
6133 depcc="$CC" am_compiler_list=
6134
6135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6136 printf %s "checking dependency style of $depcc... " >&6; }
6137 if test ${am_cv_CC_dependencies_compiler_type+y}
6138 then :
6139 printf %s "(cached) " >&6
6140 else case e in #(
6141 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6142 # We make a subdir and do the tests there. Otherwise we can end up
6143 # making bogus files that we don't know about and never remove. For
6144 # instance it was reported that on HP-UX the gcc test will end up
6145 # making a dummy file named 'D' -- because '-MD' means "put the output
6146 # in D".
6147 rm -rf conftest.dir
6148 mkdir conftest.dir
6149 # Copy depcomp to subdir because otherwise we won't find it if we're
6150 # using a relative directory.
6151 cp "$am_depcomp" conftest.dir
6152 cd conftest.dir
6153 # We will build objects and dependencies in a subdirectory because
6154 # it helps to detect inapplicable dependency modes. For instance
6155 # both Tru64's cc and ICC support -MD to output dependencies as a
6156 # side effect of compilation, but ICC will put the dependencies in
6157 # the current directory while Tru64 will put them in the object
6158 # directory.
6159 mkdir sub
6160
6161 am_cv_CC_dependencies_compiler_type=none
6162 if test "$am_compiler_list" = ""; then
6163 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6164 fi
6165 am__universal=false
6166 case " $depcc " in #(
6167 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6168 esac
6169
6170 for depmode in $am_compiler_list; do
6171 # Setup a source with many dependencies, because some compilers
6172 # like to wrap large dependency lists on column 80 (with \), and
6173 # we should not choose a depcomp mode which is confused by this.
6174 #
6175 # We need to recreate these files for each test, as the compiler may
6176 # overwrite some of them when testing with obscure command lines.
6177 # This happens at least with the AIX C compiler.
6178 : > sub/conftest.c
6179 for i in 1 2 3 4 5 6; do
6180 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6181 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6182 # Solaris 10 /bin/sh.
6183 echo '/* dummy */' > sub/conftst$i.h
6184 done
6185 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6186
6187 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6188 # mode. It turns out that the SunPro C++ compiler does not properly
6189 # handle '-M -o', and we need to detect this. Also, some Intel
6190 # versions had trouble with output in subdirs.
6191 am__obj=sub/conftest.${OBJEXT-o}
6192 am__minus_obj="-o $am__obj"
6193 case $depmode in
6194 gcc)
6195 # This depmode causes a compiler race in universal mode.
6196 test "$am__universal" = false || continue
6197 ;;
6198 nosideeffect)
6199 # After this tag, mechanisms are not by side-effect, so they'll
6200 # only be used when explicitly requested.
6201 if test "x$enable_dependency_tracking" = xyes; then
6202 continue
6203 else
6204 break
6205 fi
6206 ;;
6207 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6208 # This compiler won't grok '-c -o', but also, the minuso test has
6209 # not run yet. These depmodes are late enough in the game, and
6210 # so weak that their functioning should not be impacted.
6211 am__obj=conftest.${OBJEXT-o}
6212 am__minus_obj=
6213 ;;
6214 none) break ;;
6215 esac
6216 if depmode=$depmode \
6217 source=sub/conftest.c object=$am__obj \
6218 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6219 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6220 >/dev/null 2>conftest.err &&
6221 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6222 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6223 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6224 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6225 # icc doesn't choke on unknown options, it will just issue warnings
6226 # or remarks (even with -Werror). So we grep stderr for any message
6227 # that says an option was ignored or not supported.
6228 # When given -MP, icc 7.0 and 7.1 complain thus:
6229 # icc: Command line warning: ignoring option '-M'; no argument required
6230 # The diagnosis changed in icc 8.0:
6231 # icc: Command line remark: option '-MP' not supported
6232 if (grep 'ignoring option' conftest.err ||
6233 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6234 am_cv_CC_dependencies_compiler_type=$depmode
6235 break
6236 fi
6237 fi
6238 done
6239
6240 cd ..
6241 rm -rf conftest.dir
6242 else
6243 am_cv_CC_dependencies_compiler_type=none
6244 fi
6245 ;;
6246 esac
6247 fi
6248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6249 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
6250 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6251
6252 if
6253 test "x$enable_dependency_tracking" != xno \
6254 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6255 am__fastdepCC_TRUE=
6256 am__fastdepCC_FALSE='#'
6257 else
6258 am__fastdepCC_TRUE='#'
6259 am__fastdepCC_FALSE=
6260 fi
6261
6262
6263
6264 if test -n "$ac_tool_prefix"; then
6265 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6266 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6268 printf %s "checking for $ac_word... " >&6; }
6269 if test ${ac_cv_prog_RANLIB+y}
6270 then :
6271 printf %s "(cached) " >&6
6272 else case e in #(
6273 e) if test -n "$RANLIB"; then
6274 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6275 else
6276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6277 for as_dir in $PATH
6278 do
6279 IFS=$as_save_IFS
6280 case $as_dir in #(((
6281 '') as_dir=./ ;;
6282 */) ;;
6283 *) as_dir=$as_dir/ ;;
6284 esac
6285 for ac_exec_ext in '' $ac_executable_extensions; do
6286 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6287 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6288 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6289 break 2
6290 fi
6291 done
6292 done
6293 IFS=$as_save_IFS
6294
6295 fi ;;
6296 esac
6297 fi
6298 RANLIB=$ac_cv_prog_RANLIB
6299 if test -n "$RANLIB"; then
6300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6301 printf "%s\n" "$RANLIB" >&6; }
6302 else
6303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6304 printf "%s\n" "no" >&6; }
6305 fi
6306
6307
6308 fi
6309 if test -z "$ac_cv_prog_RANLIB"; then
6310 ac_ct_RANLIB=$RANLIB
6311 # Extract the first word of "ranlib", so it can be a program name with args.
6312 set dummy ranlib; ac_word=$2
6313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6314 printf %s "checking for $ac_word... " >&6; }
6315 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6316 then :
6317 printf %s "(cached) " >&6
6318 else case e in #(
6319 e) if test -n "$ac_ct_RANLIB"; then
6320 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6321 else
6322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6323 for as_dir in $PATH
6324 do
6325 IFS=$as_save_IFS
6326 case $as_dir in #(((
6327 '') as_dir=./ ;;
6328 */) ;;
6329 *) as_dir=$as_dir/ ;;
6330 esac
6331 for ac_exec_ext in '' $ac_executable_extensions; do
6332 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6333 ac_cv_prog_ac_ct_RANLIB="ranlib"
6334 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6335 break 2
6336 fi
6337 done
6338 done
6339 IFS=$as_save_IFS
6340
6341 fi ;;
6342 esac
6343 fi
6344 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6345 if test -n "$ac_ct_RANLIB"; then
6346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6347 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6348 else
6349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6350 printf "%s\n" "no" >&6; }
6351 fi
6352
6353 if test "x$ac_ct_RANLIB" = x; then
6354 RANLIB=":"
6355 else
6356 case $cross_compiling:$ac_tool_warned in
6357 yes:)
6358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6359 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6360 ac_tool_warned=yes ;;
6361 esac
6362 RANLIB=$ac_ct_RANLIB
6363 fi
6364 else
6365 RANLIB="$ac_cv_prog_RANLIB"
6366 fi
6367
6368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6369 printf %s "checking whether ln -s works... " >&6; }
6370 LN_S=$as_ln_s
6371 if test "$LN_S" = "ln -s"; then
6372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6373 printf "%s\n" "yes" >&6; }
6374 else
6375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6376 printf "%s\n" "no, using $LN_S" >&6; }
6377 fi
6378
6379
6380 PPLIBVERSION=2.05.0
6381
6382
6383 PPLIB_LT_VERSINFO=7:0:05
6384
6385
6386 case `pwd` in
6387 *\ * | *\ *)
6388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6389 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6390 esac
6391
6392
6393
6394 macro_version='2.5.4'
6395 macro_revision='2.5.4'
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410 ltmain=$ac_aux_dir/ltmain.sh
6411
6412
6413
6414 # Make sure we can run config.sub.
6415 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
6416 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
6417
6418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6419 printf %s "checking build system type... " >&6; }
6420 if test ${ac_cv_build+y}
6421 then :
6422 printf %s "(cached) " >&6
6423 else case e in #(
6424 e) ac_build_alias=$build_alias
6425 test "x$ac_build_alias" = x &&
6426 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
6427 test "x$ac_build_alias" = x &&
6428 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6429 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
6430 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
6431 ;;
6432 esac
6433 fi
6434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6435 printf "%s\n" "$ac_cv_build" >&6; }
6436 case $ac_cv_build in
6437 *-*-*) ;;
6438 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6439 esac
6440 build=$ac_cv_build
6441 ac_save_IFS=$IFS; IFS='-'
6442 set x $ac_cv_build
6443 shift
6444 build_cpu=$1
6445 build_vendor=$2
6446 shift; shift
6447 # Remember, the first character of IFS is used to create $*,
6448 # except with old shells:
6449 build_os=$*
6450 IFS=$ac_save_IFS
6451 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6452
6453
6454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6455 printf %s "checking host system type... " >&6; }
6456 if test ${ac_cv_host+y}
6457 then :
6458 printf %s "(cached) " >&6
6459 else case e in #(
6460 e) if test "x$host_alias" = x; then
6461 ac_cv_host=$ac_cv_build
6462 else
6463 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
6464 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
6465 fi
6466 ;;
6467 esac
6468 fi
6469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6470 printf "%s\n" "$ac_cv_host" >&6; }
6471 case $ac_cv_host in
6472 *-*-*) ;;
6473 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6474 esac
6475 host=$ac_cv_host
6476 ac_save_IFS=$IFS; IFS='-'
6477 set x $ac_cv_host
6478 shift
6479 host_cpu=$1
6480 host_vendor=$2
6481 shift; shift
6482 # Remember, the first character of IFS is used to create $*,
6483 # except with old shells:
6484 host_os=$*
6485 IFS=$ac_save_IFS
6486 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6487
6488
6489 # Backslashify metacharacters that are still active within
6490 # double-quoted strings.
6491 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6492
6493 # Same as above, but do not quote variable references.
6494 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6495
6496 # Sed substitution to delay expansion of an escaped shell variable in a
6497 # double_quote_subst'ed string.
6498 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6499
6500 # Sed substitution to delay expansion of an escaped single quote.
6501 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6502
6503 # Sed substitution to avoid accidental globbing in evaled expressions
6504 no_glob_subst='s/\*/\\\*/g'
6505
6506 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6507 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6508 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6509
6510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6511 printf %s "checking how to print strings... " >&6; }
6512 # Test print first, because it will be a builtin if present.
6513 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6514 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6515 ECHO='print -r --'
6516 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6517 ECHO='printf %s\n'
6518 else
6519 # Use this function as a fallback that always works.
6520 func_fallback_echo ()
6521 {
6522 eval 'cat <<_LTECHO_EOF
6523 $1
6524 _LTECHO_EOF'
6525 }
6526 ECHO='func_fallback_echo'
6527 fi
6528
6529 # func_echo_all arg...
6530 # Invoke $ECHO with all args, space-separated.
6531 func_echo_all ()
6532 {
6533 $ECHO ""
6534 }
6535
6536 case $ECHO in
6537 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6538 printf "%s\n" "printf" >&6; } ;;
6539 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6540 printf "%s\n" "print -r" >&6; } ;;
6541 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6542 printf "%s\n" "cat" >&6; } ;;
6543 esac
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6559 printf %s "checking for a sed that does not truncate output... " >&6; }
6560 if test ${ac_cv_path_SED+y}
6561 then :
6562 printf %s "(cached) " >&6
6563 else case e in #(
6564 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6565 for ac_i in 1 2 3 4 5 6 7; do
6566 ac_script="$ac_script$as_nl$ac_script"
6567 done
6568 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6569 { ac_script=; unset ac_script;}
6570 if test -z "$SED"; then
6571 ac_path_SED_found=false
6572 # Loop through the user's path and test for each of PROGNAME-LIST
6573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6574 for as_dir in $PATH
6575 do
6576 IFS=$as_save_IFS
6577 case $as_dir in #(((
6578 '') as_dir=./ ;;
6579 */) ;;
6580 *) as_dir=$as_dir/ ;;
6581 esac
6582 for ac_prog in sed gsed
6583 do
6584 for ac_exec_ext in '' $ac_executable_extensions; do
6585 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
6586 as_fn_executable_p "$ac_path_SED" || continue
6587 # Check for GNU ac_path_SED and select it if it is found.
6588 # Check for GNU $ac_path_SED
6589 case `"$ac_path_SED" --version 2>&1` in #(
6590 *GNU*)
6591 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6592 #(
6593 *)
6594 ac_count=0
6595 printf %s 0123456789 >"conftest.in"
6596 while :
6597 do
6598 cat "conftest.in" "conftest.in" >"conftest.tmp"
6599 mv "conftest.tmp" "conftest.in"
6600 cp "conftest.in" "conftest.nl"
6601 printf "%s\n" '' >> "conftest.nl"
6602 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6603 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6604 as_fn_arith $ac_count + 1 && ac_count=$as_val
6605 if test $ac_count -gt ${ac_path_SED_max-0}; then
6606 # Best one so far, save it but keep looking for a better one
6607 ac_cv_path_SED="$ac_path_SED"
6608 ac_path_SED_max=$ac_count
6609 fi
6610 # 10*(2^10) chars as input seems more than enough
6611 test $ac_count -gt 10 && break
6612 done
6613 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6614 esac
6615
6616 $ac_path_SED_found && break 3
6617 done
6618 done
6619 done
6620 IFS=$as_save_IFS
6621 if test -z "$ac_cv_path_SED"; then
6622 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6623 fi
6624 else
6625 ac_cv_path_SED=$SED
6626 fi
6627 ;;
6628 esac
6629 fi
6630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6631 printf "%s\n" "$ac_cv_path_SED" >&6; }
6632 SED="$ac_cv_path_SED"
6633 rm -f conftest.sed
6634
6635 test -z "$SED" && SED=sed
6636 Xsed="$SED -e 1s/^X//"
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6649 printf %s "checking for grep that handles long lines and -e... " >&6; }
6650 if test ${ac_cv_path_GREP+y}
6651 then :
6652 printf %s "(cached) " >&6
6653 else case e in #(
6654 e) if test -z "$GREP"; then
6655 ac_path_GREP_found=false
6656 # Loop through the user's path and test for each of PROGNAME-LIST
6657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6658 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6659 do
6660 IFS=$as_save_IFS
6661 case $as_dir in #(((
6662 '') as_dir=./ ;;
6663 */) ;;
6664 *) as_dir=$as_dir/ ;;
6665 esac
6666 for ac_prog in grep ggrep
6667 do
6668 for ac_exec_ext in '' $ac_executable_extensions; do
6669 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
6670 as_fn_executable_p "$ac_path_GREP" || continue
6671 # Check for GNU ac_path_GREP and select it if it is found.
6672 # Check for GNU $ac_path_GREP
6673 case `"$ac_path_GREP" --version 2>&1` in #(
6674 *GNU*)
6675 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6676 #(
6677 *)
6678 ac_count=0
6679 printf %s 0123456789 >"conftest.in"
6680 while :
6681 do
6682 cat "conftest.in" "conftest.in" >"conftest.tmp"
6683 mv "conftest.tmp" "conftest.in"
6684 cp "conftest.in" "conftest.nl"
6685 printf "%s\n" 'GREP' >> "conftest.nl"
6686 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6687 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6688 as_fn_arith $ac_count + 1 && ac_count=$as_val
6689 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6690 # Best one so far, save it but keep looking for a better one
6691 ac_cv_path_GREP="$ac_path_GREP"
6692 ac_path_GREP_max=$ac_count
6693 fi
6694 # 10*(2^10) chars as input seems more than enough
6695 test $ac_count -gt 10 && break
6696 done
6697 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6698 esac
6699
6700 $ac_path_GREP_found && break 3
6701 done
6702 done
6703 done
6704 IFS=$as_save_IFS
6705 if test -z "$ac_cv_path_GREP"; then
6706 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6707 fi
6708 else
6709 ac_cv_path_GREP=$GREP
6710 fi
6711 ;;
6712 esac
6713 fi
6714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6715 printf "%s\n" "$ac_cv_path_GREP" >&6; }
6716 GREP="$ac_cv_path_GREP"
6717
6718
6719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6720 printf %s "checking for egrep... " >&6; }
6721 if test ${ac_cv_path_EGREP+y}
6722 then :
6723 printf %s "(cached) " >&6
6724 else case e in #(
6725 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6726 then ac_cv_path_EGREP="$GREP -E"
6727 else
6728 if test -z "$EGREP"; then
6729 ac_path_EGREP_found=false
6730 # Loop through the user's path and test for each of PROGNAME-LIST
6731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6732 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6733 do
6734 IFS=$as_save_IFS
6735 case $as_dir in #(((
6736 '') as_dir=./ ;;
6737 */) ;;
6738 *) as_dir=$as_dir/ ;;
6739 esac
6740 for ac_prog in egrep
6741 do
6742 for ac_exec_ext in '' $ac_executable_extensions; do
6743 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
6744 as_fn_executable_p "$ac_path_EGREP" || continue
6745 # Check for GNU ac_path_EGREP and select it if it is found.
6746 # Check for GNU $ac_path_EGREP
6747 case `"$ac_path_EGREP" --version 2>&1` in #(
6748 *GNU*)
6749 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6750 #(
6751 *)
6752 ac_count=0
6753 printf %s 0123456789 >"conftest.in"
6754 while :
6755 do
6756 cat "conftest.in" "conftest.in" >"conftest.tmp"
6757 mv "conftest.tmp" "conftest.in"
6758 cp "conftest.in" "conftest.nl"
6759 printf "%s\n" 'EGREP' >> "conftest.nl"
6760 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6761 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6762 as_fn_arith $ac_count + 1 && ac_count=$as_val
6763 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6764 # Best one so far, save it but keep looking for a better one
6765 ac_cv_path_EGREP="$ac_path_EGREP"
6766 ac_path_EGREP_max=$ac_count
6767 fi
6768 # 10*(2^10) chars as input seems more than enough
6769 test $ac_count -gt 10 && break
6770 done
6771 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6772 esac
6773
6774 $ac_path_EGREP_found && break 3
6775 done
6776 done
6777 done
6778 IFS=$as_save_IFS
6779 if test -z "$ac_cv_path_EGREP"; then
6780 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6781 fi
6782 else
6783 ac_cv_path_EGREP=$EGREP
6784 fi
6785
6786 fi ;;
6787 esac
6788 fi
6789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6790 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
6791 EGREP="$ac_cv_path_EGREP"
6792
6793 EGREP_TRADITIONAL=$EGREP
6794 ac_cv_path_EGREP_TRADITIONAL=$EGREP
6795
6796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6797 printf %s "checking for fgrep... " >&6; }
6798 if test ${ac_cv_path_FGREP+y}
6799 then :
6800 printf %s "(cached) " >&6
6801 else case e in #(
6802 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6803 then ac_cv_path_FGREP="$GREP -F"
6804 else
6805 if test -z "$FGREP"; then
6806 ac_path_FGREP_found=false
6807 # Loop through the user's path and test for each of PROGNAME-LIST
6808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6809 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6810 do
6811 IFS=$as_save_IFS
6812 case $as_dir in #(((
6813 '') as_dir=./ ;;
6814 */) ;;
6815 *) as_dir=$as_dir/ ;;
6816 esac
6817 for ac_prog in fgrep
6818 do
6819 for ac_exec_ext in '' $ac_executable_extensions; do
6820 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
6821 as_fn_executable_p "$ac_path_FGREP" || continue
6822 # Check for GNU ac_path_FGREP and select it if it is found.
6823 # Check for GNU $ac_path_FGREP
6824 case `"$ac_path_FGREP" --version 2>&1` in #(
6825 *GNU*)
6826 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6827 #(
6828 *)
6829 ac_count=0
6830 printf %s 0123456789 >"conftest.in"
6831 while :
6832 do
6833 cat "conftest.in" "conftest.in" >"conftest.tmp"
6834 mv "conftest.tmp" "conftest.in"
6835 cp "conftest.in" "conftest.nl"
6836 printf "%s\n" 'FGREP' >> "conftest.nl"
6837 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6838 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6839 as_fn_arith $ac_count + 1 && ac_count=$as_val
6840 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6841 # Best one so far, save it but keep looking for a better one
6842 ac_cv_path_FGREP="$ac_path_FGREP"
6843 ac_path_FGREP_max=$ac_count
6844 fi
6845 # 10*(2^10) chars as input seems more than enough
6846 test $ac_count -gt 10 && break
6847 done
6848 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6849 esac
6850
6851 $ac_path_FGREP_found && break 3
6852 done
6853 done
6854 done
6855 IFS=$as_save_IFS
6856 if test -z "$ac_cv_path_FGREP"; then
6857 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6858 fi
6859 else
6860 ac_cv_path_FGREP=$FGREP
6861 fi
6862
6863 fi ;;
6864 esac
6865 fi
6866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6867 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
6868 FGREP="$ac_cv_path_FGREP"
6869
6870
6871 test -z "$GREP" && GREP=grep
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891 # Check whether --with-gnu-ld was given.
6892 if test ${with_gnu_ld+y}
6893 then :
6894 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6895 else case e in #(
6896 e) with_gnu_ld=no ;;
6897 esac
6898 fi
6899
6900 ac_prog=ld
6901 if test yes = "$GCC"; then
6902 # Check if gcc -print-prog-name=ld gives a path.
6903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6904 printf %s "checking for ld used by $CC... " >&6; }
6905 case $host in
6906 *-*-mingw* | *-*-windows*)
6907 # gcc leaves a trailing carriage return, which upsets mingw
6908 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6909 *)
6910 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6911 esac
6912 case $ac_prog in
6913 # Accept absolute paths.
6914 [\\/]* | ?:[\\/]*)
6915 re_direlt='/[^/][^/]*/\.\./'
6916 # Canonicalize the pathname of ld
6917 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6918 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6919 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6920 done
6921 test -z "$LD" && LD=$ac_prog
6922 ;;
6923 "")
6924 # If it fails, then pretend we aren't using GCC.
6925 ac_prog=ld
6926 ;;
6927 *)
6928 # If it is relative, then search for the first ld in PATH.
6929 with_gnu_ld=unknown
6930 ;;
6931 esac
6932 elif test yes = "$with_gnu_ld"; then
6933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6934 printf %s "checking for GNU ld... " >&6; }
6935 else
6936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6937 printf %s "checking for non-GNU ld... " >&6; }
6938 fi
6939 if test ${lt_cv_path_LD+y}
6940 then :
6941 printf %s "(cached) " >&6
6942 else case e in #(
6943 e) if test -z "$LD"; then
6944 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6945 for ac_dir in $PATH; do
6946 IFS=$lt_save_ifs
6947 test -z "$ac_dir" && ac_dir=.
6948 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6949 lt_cv_path_LD=$ac_dir/$ac_prog
6950 # Check to see if the program is GNU ld. I'd rather use --version,
6951 # but apparently some variants of GNU ld only accept -v.
6952 # Break only if it was the GNU/non-GNU ld that we prefer.
6953 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6954 *GNU* | *'with BFD'*)
6955 test no != "$with_gnu_ld" && break
6956 ;;
6957 *)
6958 test yes != "$with_gnu_ld" && break
6959 ;;
6960 esac
6961 fi
6962 done
6963 IFS=$lt_save_ifs
6964 else
6965 lt_cv_path_LD=$LD # Let the user override the test with a path.
6966 fi ;;
6967 esac
6968 fi
6969
6970 LD=$lt_cv_path_LD
6971 if test -n "$LD"; then
6972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6973 printf "%s\n" "$LD" >&6; }
6974 else
6975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6976 printf "%s\n" "no" >&6; }
6977 fi
6978 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6980 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
6981 if test ${lt_cv_prog_gnu_ld+y}
6982 then :
6983 printf %s "(cached) " >&6
6984 else case e in #(
6985 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
6986 case `$LD -v 2>&1 </dev/null` in
6987 *GNU* | *'with BFD'*)
6988 lt_cv_prog_gnu_ld=yes
6989 ;;
6990 *)
6991 lt_cv_prog_gnu_ld=no
6992 ;;
6993 esac ;;
6994 esac
6995 fi
6996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6997 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
6998 with_gnu_ld=$lt_cv_prog_gnu_ld
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7009 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7010 if test ${lt_cv_path_NM+y}
7011 then :
7012 printf %s "(cached) " >&6
7013 else case e in #(
7014 e) if test -n "$NM"; then
7015 # Let the user override the test.
7016 lt_cv_path_NM=$NM
7017 else
7018 lt_nm_to_check=${ac_tool_prefix}nm
7019 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7020 lt_nm_to_check="$lt_nm_to_check nm"
7021 fi
7022 for lt_tmp_nm in $lt_nm_to_check; do
7023 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7024 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7025 IFS=$lt_save_ifs
7026 test -z "$ac_dir" && ac_dir=.
7027 tmp_nm=$ac_dir/$lt_tmp_nm
7028 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
7029 # Check to see if the nm accepts a BSD-compat flag.
7030 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
7031 # nm: unknown option "B" ignored
7032 # Tru64's nm complains that /dev/null is an invalid object file
7033 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7034 case $build_os in
7035 mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
7036 *) lt_bad_file=/dev/null ;;
7037 esac
7038 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
7039 *$lt_bad_file* | *'Invalid file or object type'*)
7040 lt_cv_path_NM="$tmp_nm -B"
7041 break 2
7042 ;;
7043 *)
7044 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
7045 */dev/null*)
7046 lt_cv_path_NM="$tmp_nm -p"
7047 break 2
7048 ;;
7049 *)
7050 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7051 continue # so that we can try to find one that supports BSD flags
7052 ;;
7053 esac
7054 ;;
7055 esac
7056 fi
7057 done
7058 IFS=$lt_save_ifs
7059 done
7060 : ${lt_cv_path_NM=no}
7061 fi ;;
7062 esac
7063 fi
7064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7065 printf "%s\n" "$lt_cv_path_NM" >&6; }
7066 if test no != "$lt_cv_path_NM"; then
7067 NM=$lt_cv_path_NM
7068 else
7069 # Didn't find any BSD compatible name lister, look for dumpbin.
7070 if test -n "$DUMPBIN"; then :
7071 # Let the user override the test.
7072 else
7073 if test -n "$ac_tool_prefix"; then
7074 for ac_prog in dumpbin "link -dump"
7075 do
7076 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7077 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7079 printf %s "checking for $ac_word... " >&6; }
7080 if test ${ac_cv_prog_DUMPBIN+y}
7081 then :
7082 printf %s "(cached) " >&6
7083 else case e in #(
7084 e) if test -n "$DUMPBIN"; then
7085 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7086 else
7087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7088 for as_dir in $PATH
7089 do
7090 IFS=$as_save_IFS
7091 case $as_dir in #(((
7092 '') as_dir=./ ;;
7093 */) ;;
7094 *) as_dir=$as_dir/ ;;
7095 esac
7096 for ac_exec_ext in '' $ac_executable_extensions; do
7097 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7098 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7099 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7100 break 2
7101 fi
7102 done
7103 done
7104 IFS=$as_save_IFS
7105
7106 fi ;;
7107 esac
7108 fi
7109 DUMPBIN=$ac_cv_prog_DUMPBIN
7110 if test -n "$DUMPBIN"; then
7111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7112 printf "%s\n" "$DUMPBIN" >&6; }
7113 else
7114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7115 printf "%s\n" "no" >&6; }
7116 fi
7117
7118
7119 test -n "$DUMPBIN" && break
7120 done
7121 fi
7122 if test -z "$DUMPBIN"; then
7123 ac_ct_DUMPBIN=$DUMPBIN
7124 for ac_prog in dumpbin "link -dump"
7125 do
7126 # Extract the first word of "$ac_prog", so it can be a program name with args.
7127 set dummy $ac_prog; ac_word=$2
7128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7129 printf %s "checking for $ac_word... " >&6; }
7130 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
7131 then :
7132 printf %s "(cached) " >&6
7133 else case e in #(
7134 e) if test -n "$ac_ct_DUMPBIN"; then
7135 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7136 else
7137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7138 for as_dir in $PATH
7139 do
7140 IFS=$as_save_IFS
7141 case $as_dir in #(((
7142 '') as_dir=./ ;;
7143 */) ;;
7144 *) as_dir=$as_dir/ ;;
7145 esac
7146 for ac_exec_ext in '' $ac_executable_extensions; do
7147 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7148 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7149 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7150 break 2
7151 fi
7152 done
7153 done
7154 IFS=$as_save_IFS
7155
7156 fi ;;
7157 esac
7158 fi
7159 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7160 if test -n "$ac_ct_DUMPBIN"; then
7161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7162 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
7163 else
7164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7165 printf "%s\n" "no" >&6; }
7166 fi
7167
7168
7169 test -n "$ac_ct_DUMPBIN" && break
7170 done
7171
7172 if test "x$ac_ct_DUMPBIN" = x; then
7173 DUMPBIN=":"
7174 else
7175 case $cross_compiling:$ac_tool_warned in
7176 yes:)
7177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7178 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7179 ac_tool_warned=yes ;;
7180 esac
7181 DUMPBIN=$ac_ct_DUMPBIN
7182 fi
7183 fi
7184
7185 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
7186 *COFF*)
7187 DUMPBIN="$DUMPBIN -symbols -headers"
7188 ;;
7189 *)
7190 DUMPBIN=:
7191 ;;
7192 esac
7193 fi
7194
7195 if test : != "$DUMPBIN"; then
7196 NM=$DUMPBIN
7197 fi
7198 fi
7199 test -z "$NM" && NM=nm
7200
7201
7202
7203
7204
7205
7206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7207 printf %s "checking the name lister ($NM) interface... " >&6; }
7208 if test ${lt_cv_nm_interface+y}
7209 then :
7210 printf %s "(cached) " >&6
7211 else case e in #(
7212 e) lt_cv_nm_interface="BSD nm"
7213 echo "int some_variable = 0;" > conftest.$ac_ext
7214 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7215 (eval "$ac_compile" 2>conftest.err)
7216 cat conftest.err >&5
7217 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7218 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7219 cat conftest.err >&5
7220 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7221 cat conftest.out >&5
7222 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7223 lt_cv_nm_interface="MS dumpbin"
7224 fi
7225 rm -f conftest* ;;
7226 esac
7227 fi
7228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7229 printf "%s\n" "$lt_cv_nm_interface" >&6; }
7230
7231 # find the maximum length of command line arguments
7232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7233 printf %s "checking the maximum length of command line arguments... " >&6; }
7234 if test ${lt_cv_sys_max_cmd_len+y}
7235 then :
7236 printf %s "(cached) " >&6
7237 else case e in #(
7238 e) i=0
7239 teststring=ABCD
7240
7241 case $build_os in
7242 msdosdjgpp*)
7243 # On DJGPP, this test can blow up pretty badly due to problems in libc
7244 # (any single argument exceeding 2000 bytes causes a buffer overrun
7245 # during glob expansion). Even if it were fixed, the result of this
7246 # check would be larger than it should be.
7247 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7248 ;;
7249
7250 gnu* | ironclad*)
7251 # Under GNU Hurd and Ironclad, this test is not required because there
7252 # is no limit to the length of command line arguments.
7253 # Libtool will interpret -1 as no limit whatsoever
7254 lt_cv_sys_max_cmd_len=-1;
7255 ;;
7256
7257 cygwin* | mingw* | windows* | cegcc*)
7258 # On Win9x/ME, this test blows up -- it succeeds, but takes
7259 # about 5 minutes as the teststring grows exponentially.
7260 # Worse, since 9x/ME are not pre-emptively multitasking,
7261 # you end up with a "frozen" computer, even though with patience
7262 # the test eventually succeeds (with a max line length of 256k).
7263 # Instead, let's just punt: use the minimum linelength reported by
7264 # all of the supported platforms: 8192 (on NT/2K/XP).
7265 lt_cv_sys_max_cmd_len=8192;
7266 ;;
7267
7268 mint*)
7269 # On MiNT this can take a long time and run out of memory.
7270 lt_cv_sys_max_cmd_len=8192;
7271 ;;
7272
7273 amigaos*)
7274 # On AmigaOS with pdksh, this test takes hours, literally.
7275 # So we just punt and use a minimum line length of 8192.
7276 lt_cv_sys_max_cmd_len=8192;
7277 ;;
7278
7279 darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
7280 # This has been around since 386BSD, at least. Likely further.
7281 if test -x /sbin/sysctl; then
7282 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7283 elif test -x /usr/sbin/sysctl; then
7284 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7285 else
7286 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7287 fi
7288 # And add a safety zone
7289 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7290 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7291 ;;
7292
7293 interix*)
7294 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7295 lt_cv_sys_max_cmd_len=196608
7296 ;;
7297
7298 os2*)
7299 # The test takes a long time on OS/2.
7300 lt_cv_sys_max_cmd_len=8192
7301 ;;
7302
7303 osf*)
7304 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7305 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7306 # nice to cause kernel panics so lets avoid the loop below.
7307 # First set a reasonable default.
7308 lt_cv_sys_max_cmd_len=16384
7309 #
7310 if test -x /sbin/sysconfig; then
7311 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7312 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7313 esac
7314 fi
7315 ;;
7316 sco3.2v5*)
7317 lt_cv_sys_max_cmd_len=102400
7318 ;;
7319 sysv5* | sco5v6* | sysv4.2uw2*)
7320 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7321 if test -n "$kargmax"; then
7322 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
7323 else
7324 lt_cv_sys_max_cmd_len=32768
7325 fi
7326 ;;
7327 *)
7328 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7329 if test -n "$lt_cv_sys_max_cmd_len" && \
7330 test undefined != "$lt_cv_sys_max_cmd_len"; then
7331 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7332 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7333 else
7334 # Make teststring a little bigger before we do anything with it.
7335 # a 1K string should be a reasonable start.
7336 for i in 1 2 3 4 5 6 7 8; do
7337 teststring=$teststring$teststring
7338 done
7339 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7340 # If test is not a shell built-in, we'll probably end up computing a
7341 # maximum length that is only half of the actual maximum length, but
7342 # we can't tell.
7343 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
7344 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7345 test 17 != "$i" # 1/2 MB should be enough
7346 do
7347 i=`expr $i + 1`
7348 teststring=$teststring$teststring
7349 done
7350 # Only check the string length outside the loop.
7351 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7352 teststring=
7353 # Add a significant safety factor because C++ compilers can tack on
7354 # massive amounts of additional arguments before passing them to the
7355 # linker. It appears as though 1/2 is a usable value.
7356 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7357 fi
7358 ;;
7359 esac
7360 ;;
7361 esac
7362 fi
7363
7364 if test -n "$lt_cv_sys_max_cmd_len"; then
7365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7366 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
7367 else
7368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
7369 printf "%s\n" "none" >&6; }
7370 fi
7371 max_cmd_len=$lt_cv_sys_max_cmd_len
7372
7373
7374
7375
7376
7377
7378 : ${CP="cp -f"}
7379 : ${MV="mv -f"}
7380 : ${RM="rm -f"}
7381
7382 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7383 lt_unset=unset
7384 else
7385 lt_unset=false
7386 fi
7387
7388
7389
7390
7391
7392 # test EBCDIC or ASCII
7393 case `echo X|tr X '\101'` in
7394 A) # ASCII based system
7395 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7396 lt_SP2NL='tr \040 \012'
7397 lt_NL2SP='tr \015\012 \040\040'
7398 ;;
7399 *) # EBCDIC based system
7400 lt_SP2NL='tr \100 \n'
7401 lt_NL2SP='tr \r\n \100\100'
7402 ;;
7403 esac
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7414 printf %s "checking how to convert $build file names to $host format... " >&6; }
7415 if test ${lt_cv_to_host_file_cmd+y}
7416 then :
7417 printf %s "(cached) " >&6
7418 else case e in #(
7419 e) case $host in
7420 *-*-mingw* )
7421 case $build in
7422 *-*-mingw* | *-*-windows* ) # actually msys
7423 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7424 ;;
7425 *-*-cygwin* )
7426 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7427 ;;
7428 * ) # otherwise, assume *nix
7429 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7430 ;;
7431 esac
7432 ;;
7433 *-*-cygwin* )
7434 case $build in
7435 *-*-mingw* | *-*-windows* ) # actually msys
7436 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7437 ;;
7438 *-*-cygwin* )
7439 lt_cv_to_host_file_cmd=func_convert_file_noop
7440 ;;
7441 * ) # otherwise, assume *nix
7442 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7443 ;;
7444 esac
7445 ;;
7446 * ) # unhandled hosts (and "normal" native builds)
7447 lt_cv_to_host_file_cmd=func_convert_file_noop
7448 ;;
7449 esac
7450 ;;
7451 esac
7452 fi
7453
7454 to_host_file_cmd=$lt_cv_to_host_file_cmd
7455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7456 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
7457
7458
7459
7460
7461
7462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7463 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
7464 if test ${lt_cv_to_tool_file_cmd+y}
7465 then :
7466 printf %s "(cached) " >&6
7467 else case e in #(
7468 e) #assume ordinary cross tools, or native build.
7469 lt_cv_to_tool_file_cmd=func_convert_file_noop
7470 case $host in
7471 *-*-mingw* | *-*-windows* )
7472 case $build in
7473 *-*-mingw* | *-*-windows* ) # actually msys
7474 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7475 ;;
7476 esac
7477 ;;
7478 esac
7479 ;;
7480 esac
7481 fi
7482
7483 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7485 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
7486
7487
7488
7489
7490
7491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7492 printf %s "checking for $LD option to reload object files... " >&6; }
7493 if test ${lt_cv_ld_reload_flag+y}
7494 then :
7495 printf %s "(cached) " >&6
7496 else case e in #(
7497 e) lt_cv_ld_reload_flag='-r' ;;
7498 esac
7499 fi
7500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7501 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
7502 reload_flag=$lt_cv_ld_reload_flag
7503 case $reload_flag in
7504 "" | " "*) ;;
7505 *) reload_flag=" $reload_flag" ;;
7506 esac
7507 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7508 case $host_os in
7509 cygwin* | mingw* | windows* | pw32* | cegcc*)
7510 if test yes != "$GCC"; then
7511 reload_cmds=false
7512 fi
7513 ;;
7514 darwin*)
7515 if test yes = "$GCC"; then
7516 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
7517 else
7518 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7519 fi
7520 ;;
7521 esac
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531 # Extract the first word of "file", so it can be a program name with args.
7532 set dummy file; ac_word=$2
7533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7534 printf %s "checking for $ac_word... " >&6; }
7535 if test ${ac_cv_prog_FILECMD+y}
7536 then :
7537 printf %s "(cached) " >&6
7538 else case e in #(
7539 e) if test -n "$FILECMD"; then
7540 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
7541 else
7542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7543 for as_dir in $PATH
7544 do
7545 IFS=$as_save_IFS
7546 case $as_dir in #(((
7547 '') as_dir=./ ;;
7548 */) ;;
7549 *) as_dir=$as_dir/ ;;
7550 esac
7551 for ac_exec_ext in '' $ac_executable_extensions; do
7552 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7553 ac_cv_prog_FILECMD="file"
7554 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7555 break 2
7556 fi
7557 done
7558 done
7559 IFS=$as_save_IFS
7560
7561 test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":"
7562 fi ;;
7563 esac
7564 fi
7565 FILECMD=$ac_cv_prog_FILECMD
7566 if test -n "$FILECMD"; then
7567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
7568 printf "%s\n" "$FILECMD" >&6; }
7569 else
7570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7571 printf "%s\n" "no" >&6; }
7572 fi
7573
7574
7575
7576
7577
7578
7579
7580
7581 if test -n "$ac_tool_prefix"; then
7582 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7583 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7585 printf %s "checking for $ac_word... " >&6; }
7586 if test ${ac_cv_prog_OBJDUMP+y}
7587 then :
7588 printf %s "(cached) " >&6
7589 else case e in #(
7590 e) if test -n "$OBJDUMP"; then
7591 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7592 else
7593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7594 for as_dir in $PATH
7595 do
7596 IFS=$as_save_IFS
7597 case $as_dir in #(((
7598 '') as_dir=./ ;;
7599 */) ;;
7600 *) as_dir=$as_dir/ ;;
7601 esac
7602 for ac_exec_ext in '' $ac_executable_extensions; do
7603 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7604 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7605 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7606 break 2
7607 fi
7608 done
7609 done
7610 IFS=$as_save_IFS
7611
7612 fi ;;
7613 esac
7614 fi
7615 OBJDUMP=$ac_cv_prog_OBJDUMP
7616 if test -n "$OBJDUMP"; then
7617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7618 printf "%s\n" "$OBJDUMP" >&6; }
7619 else
7620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7621 printf "%s\n" "no" >&6; }
7622 fi
7623
7624
7625 fi
7626 if test -z "$ac_cv_prog_OBJDUMP"; then
7627 ac_ct_OBJDUMP=$OBJDUMP
7628 # Extract the first word of "objdump", so it can be a program name with args.
7629 set dummy objdump; ac_word=$2
7630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7631 printf %s "checking for $ac_word... " >&6; }
7632 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
7633 then :
7634 printf %s "(cached) " >&6
7635 else case e in #(
7636 e) if test -n "$ac_ct_OBJDUMP"; then
7637 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7638 else
7639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7640 for as_dir in $PATH
7641 do
7642 IFS=$as_save_IFS
7643 case $as_dir in #(((
7644 '') as_dir=./ ;;
7645 */) ;;
7646 *) as_dir=$as_dir/ ;;
7647 esac
7648 for ac_exec_ext in '' $ac_executable_extensions; do
7649 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7650 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7651 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7652 break 2
7653 fi
7654 done
7655 done
7656 IFS=$as_save_IFS
7657
7658 fi ;;
7659 esac
7660 fi
7661 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7662 if test -n "$ac_ct_OBJDUMP"; then
7663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7664 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
7665 else
7666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7667 printf "%s\n" "no" >&6; }
7668 fi
7669
7670 if test "x$ac_ct_OBJDUMP" = x; then
7671 OBJDUMP="false"
7672 else
7673 case $cross_compiling:$ac_tool_warned in
7674 yes:)
7675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7676 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7677 ac_tool_warned=yes ;;
7678 esac
7679 OBJDUMP=$ac_ct_OBJDUMP
7680 fi
7681 else
7682 OBJDUMP="$ac_cv_prog_OBJDUMP"
7683 fi
7684
7685 test -z "$OBJDUMP" && OBJDUMP=objdump
7686
7687
7688
7689
7690
7691
7692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7693 printf %s "checking how to recognize dependent libraries... " >&6; }
7694 if test ${lt_cv_deplibs_check_method+y}
7695 then :
7696 printf %s "(cached) " >&6
7697 else case e in #(
7698 e) lt_cv_file_magic_cmd='$MAGIC_CMD'
7699 lt_cv_file_magic_test_file=
7700 lt_cv_deplibs_check_method='unknown'
7701 # Need to set the preceding variable on all platforms that support
7702 # interlibrary dependencies.
7703 # 'none' -- dependencies not supported.
7704 # 'unknown' -- same as none, but documents that we really don't know.
7705 # 'pass_all' -- all dependencies passed with no checks.
7706 # 'file_magic [[regex]]' -- check by looking for files in library path
7707 # that responds to the $file_magic_cmd with a given extended regex.
7708 # If you have 'file' or equivalent on your system and you're not sure
7709 # whether 'pass_all' will *always* work, you probably want this one.
7710
7711 case $host_os in
7712 aix[4-9]*)
7713 lt_cv_deplibs_check_method=pass_all
7714 ;;
7715
7716 beos*)
7717 lt_cv_deplibs_check_method=pass_all
7718 ;;
7719
7720 bsdi[45]*)
7721 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7722 lt_cv_file_magic_cmd='$FILECMD -L'
7723 lt_cv_file_magic_test_file=/shlib/libc.so
7724 ;;
7725
7726 cygwin*)
7727 # func_win32_libid is a shell function defined in ltmain.sh
7728 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7729 lt_cv_file_magic_cmd='func_win32_libid'
7730 ;;
7731
7732 mingw* | windows* | pw32*)
7733 # Base MSYS/MinGW do not provide the 'file' command needed by
7734 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7735 # unless we find 'file', for example because we are cross-compiling.
7736 if ( file / ) >/dev/null 2>&1; then
7737 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7738 lt_cv_file_magic_cmd='func_win32_libid'
7739 else
7740 # Keep this pattern in sync with the one in func_win32_libid.
7741 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
7742 lt_cv_file_magic_cmd='$OBJDUMP -f'
7743 fi
7744 ;;
7745
7746 cegcc*)
7747 # use the weaker test based on 'objdump'. See mingw*.
7748 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7749 lt_cv_file_magic_cmd='$OBJDUMP -f'
7750 ;;
7751
7752 darwin* | rhapsody*)
7753 lt_cv_deplibs_check_method=pass_all
7754 ;;
7755
7756 freebsd* | dragonfly* | midnightbsd*)
7757 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7758 case $host_cpu in
7759 i*86 )
7760 # Not sure whether the presence of OpenBSD here was a mistake.
7761 # Let's accept both of them until this is cleared up.
7762 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7763 lt_cv_file_magic_cmd=$FILECMD
7764 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7765 ;;
7766 esac
7767 else
7768 lt_cv_deplibs_check_method=pass_all
7769 fi
7770 ;;
7771
7772 haiku*)
7773 lt_cv_deplibs_check_method=pass_all
7774 ;;
7775
7776 hpux10.20* | hpux11*)
7777 lt_cv_file_magic_cmd=$FILECMD
7778 case $host_cpu in
7779 ia64*)
7780 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7781 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7782 ;;
7783 hppa*64*)
7784 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]'
7785 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7786 ;;
7787 *)
7788 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7789 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7790 ;;
7791 esac
7792 ;;
7793
7794 interix[3-9]*)
7795 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7796 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7797 ;;
7798
7799 irix5* | irix6* | nonstopux*)
7800 case $LD in
7801 *-32|*"-32 ") libmagic=32-bit;;
7802 *-n32|*"-n32 ") libmagic=N32;;
7803 *-64|*"-64 ") libmagic=64-bit;;
7804 *) libmagic=never-match;;
7805 esac
7806 lt_cv_deplibs_check_method=pass_all
7807 ;;
7808
7809 # This must be glibc/ELF.
7810 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7811 lt_cv_deplibs_check_method=pass_all
7812 ;;
7813
7814 *-mlibc)
7815 lt_cv_deplibs_check_method=pass_all
7816 ;;
7817
7818 netbsd* | netbsdelf*-gnu)
7819 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7820 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7821 else
7822 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7823 fi
7824 ;;
7825
7826 newos6*)
7827 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7828 lt_cv_file_magic_cmd=$FILECMD
7829 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7830 ;;
7831
7832 *nto* | *qnx*)
7833 lt_cv_deplibs_check_method=pass_all
7834 ;;
7835
7836 openbsd*)
7837 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7838 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7839 else
7840 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7841 fi
7842 ;;
7843
7844 osf3* | osf4* | osf5*)
7845 lt_cv_deplibs_check_method=pass_all
7846 ;;
7847
7848 rdos*)
7849 lt_cv_deplibs_check_method=pass_all
7850 ;;
7851
7852 serenity*)
7853 lt_cv_deplibs_check_method=pass_all
7854 ;;
7855
7856 solaris*)
7857 lt_cv_deplibs_check_method=pass_all
7858 ;;
7859
7860 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7861 lt_cv_deplibs_check_method=pass_all
7862 ;;
7863
7864 sysv4 | sysv4.3*)
7865 case $host_vendor in
7866 motorola)
7867 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]'
7868 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7869 ;;
7870 ncr)
7871 lt_cv_deplibs_check_method=pass_all
7872 ;;
7873 sequent)
7874 lt_cv_file_magic_cmd='/bin/file'
7875 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7876 ;;
7877 sni)
7878 lt_cv_file_magic_cmd='/bin/file'
7879 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7880 lt_cv_file_magic_test_file=/lib/libc.so
7881 ;;
7882 siemens)
7883 lt_cv_deplibs_check_method=pass_all
7884 ;;
7885 pc)
7886 lt_cv_deplibs_check_method=pass_all
7887 ;;
7888 esac
7889 ;;
7890
7891 tpf*)
7892 lt_cv_deplibs_check_method=pass_all
7893 ;;
7894 os2*)
7895 lt_cv_deplibs_check_method=pass_all
7896 ;;
7897 esac
7898 ;;
7899 esac
7900 fi
7901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7902 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
7903
7904 file_magic_glob=
7905 want_nocaseglob=no
7906 if test "$build" = "$host"; then
7907 case $host_os in
7908 mingw* | windows* | pw32*)
7909 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7910 want_nocaseglob=yes
7911 else
7912 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7913 fi
7914 ;;
7915 esac
7916 fi
7917
7918 file_magic_cmd=$lt_cv_file_magic_cmd
7919 deplibs_check_method=$lt_cv_deplibs_check_method
7920 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943 if test -n "$ac_tool_prefix"; then
7944 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7945 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7947 printf %s "checking for $ac_word... " >&6; }
7948 if test ${ac_cv_prog_DLLTOOL+y}
7949 then :
7950 printf %s "(cached) " >&6
7951 else case e in #(
7952 e) if test -n "$DLLTOOL"; then
7953 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7954 else
7955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7956 for as_dir in $PATH
7957 do
7958 IFS=$as_save_IFS
7959 case $as_dir in #(((
7960 '') as_dir=./ ;;
7961 */) ;;
7962 *) as_dir=$as_dir/ ;;
7963 esac
7964 for ac_exec_ext in '' $ac_executable_extensions; do
7965 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7966 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7967 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7968 break 2
7969 fi
7970 done
7971 done
7972 IFS=$as_save_IFS
7973
7974 fi ;;
7975 esac
7976 fi
7977 DLLTOOL=$ac_cv_prog_DLLTOOL
7978 if test -n "$DLLTOOL"; then
7979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7980 printf "%s\n" "$DLLTOOL" >&6; }
7981 else
7982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7983 printf "%s\n" "no" >&6; }
7984 fi
7985
7986
7987 fi
7988 if test -z "$ac_cv_prog_DLLTOOL"; then
7989 ac_ct_DLLTOOL=$DLLTOOL
7990 # Extract the first word of "dlltool", so it can be a program name with args.
7991 set dummy dlltool; ac_word=$2
7992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7993 printf %s "checking for $ac_word... " >&6; }
7994 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
7995 then :
7996 printf %s "(cached) " >&6
7997 else case e in #(
7998 e) if test -n "$ac_ct_DLLTOOL"; then
7999 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8000 else
8001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8002 for as_dir in $PATH
8003 do
8004 IFS=$as_save_IFS
8005 case $as_dir in #(((
8006 '') as_dir=./ ;;
8007 */) ;;
8008 *) as_dir=$as_dir/ ;;
8009 esac
8010 for ac_exec_ext in '' $ac_executable_extensions; do
8011 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8012 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8013 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8014 break 2
8015 fi
8016 done
8017 done
8018 IFS=$as_save_IFS
8019
8020 fi ;;
8021 esac
8022 fi
8023 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8024 if test -n "$ac_ct_DLLTOOL"; then
8025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8026 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
8027 else
8028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8029 printf "%s\n" "no" >&6; }
8030 fi
8031
8032 if test "x$ac_ct_DLLTOOL" = x; then
8033 DLLTOOL="false"
8034 else
8035 case $cross_compiling:$ac_tool_warned in
8036 yes:)
8037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8038 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8039 ac_tool_warned=yes ;;
8040 esac
8041 DLLTOOL=$ac_ct_DLLTOOL
8042 fi
8043 else
8044 DLLTOOL="$ac_cv_prog_DLLTOOL"
8045 fi
8046
8047 test -z "$DLLTOOL" && DLLTOOL=dlltool
8048
8049
8050
8051
8052
8053
8054
8055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8056 printf %s "checking how to associate runtime and link libraries... " >&6; }
8057 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
8058 then :
8059 printf %s "(cached) " >&6
8060 else case e in #(
8061 e) lt_cv_sharedlib_from_linklib_cmd='unknown'
8062
8063 case $host_os in
8064 cygwin* | mingw* | windows* | pw32* | cegcc*)
8065 # two different shell functions defined in ltmain.sh;
8066 # decide which one to use based on capabilities of $DLLTOOL
8067 case `$DLLTOOL --help 2>&1` in
8068 *--identify-strict*)
8069 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8070 ;;
8071 *)
8072 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8073 ;;
8074 esac
8075 ;;
8076 *)
8077 # fallback: assume linklib IS sharedlib
8078 lt_cv_sharedlib_from_linklib_cmd=$ECHO
8079 ;;
8080 esac
8081 ;;
8082 esac
8083 fi
8084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8085 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8086 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8087 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8088
8089
8090
8091
8092
8093
8094
8095 if test -n "$ac_tool_prefix"; then
8096 for ac_prog in ar
8097 do
8098 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8099 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8101 printf %s "checking for $ac_word... " >&6; }
8102 if test ${ac_cv_prog_AR+y}
8103 then :
8104 printf %s "(cached) " >&6
8105 else case e in #(
8106 e) if test -n "$AR"; then
8107 ac_cv_prog_AR="$AR" # Let the user override the test.
8108 else
8109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8110 for as_dir in $PATH
8111 do
8112 IFS=$as_save_IFS
8113 case $as_dir in #(((
8114 '') as_dir=./ ;;
8115 */) ;;
8116 *) as_dir=$as_dir/ ;;
8117 esac
8118 for ac_exec_ext in '' $ac_executable_extensions; do
8119 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8120 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8121 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8122 break 2
8123 fi
8124 done
8125 done
8126 IFS=$as_save_IFS
8127
8128 fi ;;
8129 esac
8130 fi
8131 AR=$ac_cv_prog_AR
8132 if test -n "$AR"; then
8133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8134 printf "%s\n" "$AR" >&6; }
8135 else
8136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8137 printf "%s\n" "no" >&6; }
8138 fi
8139
8140
8141 test -n "$AR" && break
8142 done
8143 fi
8144 if test -z "$AR"; then
8145 ac_ct_AR=$AR
8146 for ac_prog in ar
8147 do
8148 # Extract the first word of "$ac_prog", so it can be a program name with args.
8149 set dummy $ac_prog; ac_word=$2
8150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8151 printf %s "checking for $ac_word... " >&6; }
8152 if test ${ac_cv_prog_ac_ct_AR+y}
8153 then :
8154 printf %s "(cached) " >&6
8155 else case e in #(
8156 e) if test -n "$ac_ct_AR"; then
8157 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8158 else
8159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8160 for as_dir in $PATH
8161 do
8162 IFS=$as_save_IFS
8163 case $as_dir in #(((
8164 '') as_dir=./ ;;
8165 */) ;;
8166 *) as_dir=$as_dir/ ;;
8167 esac
8168 for ac_exec_ext in '' $ac_executable_extensions; do
8169 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8170 ac_cv_prog_ac_ct_AR="$ac_prog"
8171 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8172 break 2
8173 fi
8174 done
8175 done
8176 IFS=$as_save_IFS
8177
8178 fi ;;
8179 esac
8180 fi
8181 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8182 if test -n "$ac_ct_AR"; then
8183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8184 printf "%s\n" "$ac_ct_AR" >&6; }
8185 else
8186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8187 printf "%s\n" "no" >&6; }
8188 fi
8189
8190
8191 test -n "$ac_ct_AR" && break
8192 done
8193
8194 if test "x$ac_ct_AR" = x; then
8195 AR="false"
8196 else
8197 case $cross_compiling:$ac_tool_warned in
8198 yes:)
8199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8200 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8201 ac_tool_warned=yes ;;
8202 esac
8203 AR=$ac_ct_AR
8204 fi
8205 fi
8206
8207 : ${AR=ar}
8208
8209
8210
8211
8212
8213
8214 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
8215 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
8216 # higher priority because that's what people were doing historically (setting
8217 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
8218 # variable obsoleted/removed.
8219
8220 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
8221 lt_ar_flags=$AR_FLAGS
8222
8223
8224
8225
8226
8227
8228 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
8229 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
8230
8231
8232
8233
8234
8235
8236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8237 printf %s "checking for archiver @FILE support... " >&6; }
8238 if test ${lt_cv_ar_at_file+y}
8239 then :
8240 printf %s "(cached) " >&6
8241 else case e in #(
8242 e) lt_cv_ar_at_file=no
8243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8244 /* end confdefs.h. */
8245
8246 int
8247 main (void)
8248 {
8249
8250 ;
8251 return 0;
8252 }
8253 _ACEOF
8254 if ac_fn_c_try_compile "$LINENO"
8255 then :
8256 echo conftest.$ac_objext > conftest.lst
8257 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8258 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8259 (eval $lt_ar_try) 2>&5
8260 ac_status=$?
8261 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8262 test $ac_status = 0; }
8263 if test 0 -eq "$ac_status"; then
8264 # Ensure the archiver fails upon bogus file names.
8265 rm -f conftest.$ac_objext libconftest.a
8266 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8267 (eval $lt_ar_try) 2>&5
8268 ac_status=$?
8269 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8270 test $ac_status = 0; }
8271 if test 0 -ne "$ac_status"; then
8272 lt_cv_ar_at_file=@
8273 fi
8274 fi
8275 rm -f conftest.* libconftest.a
8276
8277 fi
8278 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8279 ;;
8280 esac
8281 fi
8282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8283 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
8284
8285 if test no = "$lt_cv_ar_at_file"; then
8286 archiver_list_spec=
8287 else
8288 archiver_list_spec=$lt_cv_ar_at_file
8289 fi
8290
8291
8292
8293
8294
8295
8296
8297 if test -n "$ac_tool_prefix"; then
8298 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8299 set dummy ${ac_tool_prefix}strip; ac_word=$2
8300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8301 printf %s "checking for $ac_word... " >&6; }
8302 if test ${ac_cv_prog_STRIP+y}
8303 then :
8304 printf %s "(cached) " >&6
8305 else case e in #(
8306 e) if test -n "$STRIP"; then
8307 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8308 else
8309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8310 for as_dir in $PATH
8311 do
8312 IFS=$as_save_IFS
8313 case $as_dir in #(((
8314 '') as_dir=./ ;;
8315 */) ;;
8316 *) as_dir=$as_dir/ ;;
8317 esac
8318 for ac_exec_ext in '' $ac_executable_extensions; do
8319 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8320 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8321 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8322 break 2
8323 fi
8324 done
8325 done
8326 IFS=$as_save_IFS
8327
8328 fi ;;
8329 esac
8330 fi
8331 STRIP=$ac_cv_prog_STRIP
8332 if test -n "$STRIP"; then
8333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8334 printf "%s\n" "$STRIP" >&6; }
8335 else
8336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8337 printf "%s\n" "no" >&6; }
8338 fi
8339
8340
8341 fi
8342 if test -z "$ac_cv_prog_STRIP"; then
8343 ac_ct_STRIP=$STRIP
8344 # Extract the first word of "strip", so it can be a program name with args.
8345 set dummy strip; ac_word=$2
8346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8347 printf %s "checking for $ac_word... " >&6; }
8348 if test ${ac_cv_prog_ac_ct_STRIP+y}
8349 then :
8350 printf %s "(cached) " >&6
8351 else case e in #(
8352 e) if test -n "$ac_ct_STRIP"; then
8353 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8354 else
8355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8356 for as_dir in $PATH
8357 do
8358 IFS=$as_save_IFS
8359 case $as_dir in #(((
8360 '') as_dir=./ ;;
8361 */) ;;
8362 *) as_dir=$as_dir/ ;;
8363 esac
8364 for ac_exec_ext in '' $ac_executable_extensions; do
8365 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8366 ac_cv_prog_ac_ct_STRIP="strip"
8367 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8368 break 2
8369 fi
8370 done
8371 done
8372 IFS=$as_save_IFS
8373
8374 fi ;;
8375 esac
8376 fi
8377 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8378 if test -n "$ac_ct_STRIP"; then
8379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8380 printf "%s\n" "$ac_ct_STRIP" >&6; }
8381 else
8382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8383 printf "%s\n" "no" >&6; }
8384 fi
8385
8386 if test "x$ac_ct_STRIP" = x; then
8387 STRIP=":"
8388 else
8389 case $cross_compiling:$ac_tool_warned in
8390 yes:)
8391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8392 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8393 ac_tool_warned=yes ;;
8394 esac
8395 STRIP=$ac_ct_STRIP
8396 fi
8397 else
8398 STRIP="$ac_cv_prog_STRIP"
8399 fi
8400
8401 test -z "$STRIP" && STRIP=:
8402
8403
8404
8405
8406
8407
8408
8409 test -z "$RANLIB" && RANLIB=:
8410
8411
8412
8413
8414
8415
8416 # Determine commands to create old-style static archives.
8417 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8418 old_postinstall_cmds='chmod 644 $oldlib'
8419 old_postuninstall_cmds=
8420
8421 if test -n "$RANLIB"; then
8422 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8423 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8424 fi
8425
8426 case $host_os in
8427 darwin*)
8428 lock_old_archive_extraction=yes ;;
8429 *)
8430 lock_old_archive_extraction=no ;;
8431 esac
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471 # If no C compiler was specified, use CC.
8472 LTCC=${LTCC-"$CC"}
8473
8474 # If no C compiler flags were specified, use CFLAGS.
8475 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8476
8477 # Allow CC to be a program name with arguments.
8478 compiler=$CC
8479
8480
8481 # Check for command to grab the raw symbol name followed by C symbol from nm.
8482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8483 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
8484 if test ${lt_cv_sys_global_symbol_pipe+y}
8485 then :
8486 printf %s "(cached) " >&6
8487 else case e in #(
8488 e)
8489 # These are sane defaults that work on at least a few old systems.
8490 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8491
8492 # Character class describing NM global symbol codes.
8493 symcode='[BCDEGRST]'
8494
8495 # Regexp to match symbols that can be accessed directly from C.
8496 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8497
8498 # Define system-specific variables.
8499 case $host_os in
8500 aix*)
8501 symcode='[BCDT]'
8502 ;;
8503 cygwin* | mingw* | windows* | pw32* | cegcc*)
8504 symcode='[ABCDGISTW]'
8505 ;;
8506 hpux*)
8507 if test ia64 = "$host_cpu"; then
8508 symcode='[ABCDEGRST]'
8509 fi
8510 ;;
8511 irix* | nonstopux*)
8512 symcode='[BCDEGRST]'
8513 ;;
8514 osf*)
8515 symcode='[BCDEGQRST]'
8516 ;;
8517 solaris*)
8518 symcode='[BCDRT]'
8519 ;;
8520 sco3.2v5*)
8521 symcode='[DT]'
8522 ;;
8523 sysv4.2uw2*)
8524 symcode='[DT]'
8525 ;;
8526 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8527 symcode='[ABDT]'
8528 ;;
8529 sysv4)
8530 symcode='[DFNSTU]'
8531 ;;
8532 esac
8533
8534 # If we're using GNU nm, then use its standard symbol codes.
8535 case `$NM -V 2>&1` in
8536 *GNU* | *'with BFD'*)
8537 symcode='[ABCDGIRSTW]' ;;
8538 esac
8539
8540 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8541 # Gets list of data symbols to import.
8542 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
8543 # Adjust the below global symbol transforms to fixup imported variables.
8544 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
8545 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
8546 lt_c_name_lib_hook="\
8547 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
8548 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
8549 else
8550 # Disable hooks by default.
8551 lt_cv_sys_global_symbol_to_import=
8552 lt_cdecl_hook=
8553 lt_c_name_hook=
8554 lt_c_name_lib_hook=
8555 fi
8556
8557 # Transform an extracted symbol line into a proper C declaration.
8558 # Some systems (esp. on ia64) link data and code symbols differently,
8559 # so use this general approach.
8560 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
8561 $lt_cdecl_hook\
8562 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
8563 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
8564
8565 # Transform an extracted symbol line into symbol name and symbol address
8566 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
8567 $lt_c_name_hook\
8568 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8569 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
8570
8571 # Transform an extracted symbol line into symbol name with lib prefix and
8572 # symbol address.
8573 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
8574 $lt_c_name_lib_hook\
8575 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8576 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
8577 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
8578
8579 # Handle CRLF in mingw tool chain
8580 opt_cr=
8581 case $build_os in
8582 mingw* | windows*)
8583 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8584 ;;
8585 esac
8586
8587 # Try without a prefix underscore, then with it.
8588 for ac_symprfx in "" "_"; do
8589
8590 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8591 symxfrm="\\1 $ac_symprfx\\2 \\2"
8592
8593 # Write the raw and C identifiers.
8594 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8595 # Fake it for dumpbin and say T for any non-static function,
8596 # D for any global variable and I for any imported variable.
8597 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
8598 # which start with @ or ?.
8599 lt_cv_sys_global_symbol_pipe="$AWK '"\
8600 " {last_section=section; section=\$ 3};"\
8601 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8602 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8603 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8604 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8605 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8606 " \$ 0!~/External *\|/{next};"\
8607 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8608 " {if(hide[section]) next};"\
8609 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8610 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8611 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8612 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8613 " ' prfx=^$ac_symprfx"
8614 else
8615 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8616 fi
8617 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
8618
8619 # Check to see that the pipe works correctly.
8620 pipe_works=no
8621
8622 rm -f conftest*
8623 cat > conftest.$ac_ext <<_LT_EOF
8624 #ifdef __cplusplus
8625 extern "C" {
8626 #endif
8627 char nm_test_var;
8628 void nm_test_func(void);
8629 void nm_test_func(void){}
8630 #ifdef __cplusplus
8631 }
8632 #endif
8633 int main(void){nm_test_var='a';nm_test_func();return(0);}
8634 _LT_EOF
8635
8636 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8637 (eval $ac_compile) 2>&5
8638 ac_status=$?
8639 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8640 test $ac_status = 0; }; then
8641 # Now try to grab the symbols.
8642 nlist=conftest.nm
8643 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
8644 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
8645 # Try sorting and uniquifying the output.
8646 if sort "$nlist" | uniq > "$nlist"T; then
8647 mv -f "$nlist"T "$nlist"
8648 else
8649 rm -f "$nlist"T
8650 fi
8651
8652 # Make sure that we snagged all the symbols we need.
8653 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8654 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8655 cat <<_LT_EOF > conftest.$ac_ext
8656 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8657 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8658 /* DATA imports from DLLs on WIN32 can't be const, because runtime
8659 relocations are performed -- see ld's documentation on pseudo-relocs. */
8660 # define LT_DLSYM_CONST
8661 #elif defined __osf__
8662 /* This system does not cope well with relocations in const data. */
8663 # define LT_DLSYM_CONST
8664 #else
8665 # define LT_DLSYM_CONST const
8666 #endif
8667
8668 #ifdef __cplusplus
8669 extern "C" {
8670 #endif
8671
8672 _LT_EOF
8673 # Now generate the symbol file.
8674 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8675
8676 cat <<_LT_EOF >> conftest.$ac_ext
8677
8678 /* The mapping between symbol names and symbols. */
8679 LT_DLSYM_CONST struct {
8680 const char *name;
8681 void *address;
8682 }
8683 lt__PROGRAM__LTX_preloaded_symbols[] =
8684 {
8685 { "@PROGRAM@", (void *) 0 },
8686 _LT_EOF
8687 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8688 cat <<\_LT_EOF >> conftest.$ac_ext
8689 {0, (void *) 0}
8690 };
8691
8692 /* This works around a problem in FreeBSD linker */
8693 #ifdef FREEBSD_WORKAROUND
8694 static const void *lt_preloaded_setup() {
8695 return lt__PROGRAM__LTX_preloaded_symbols;
8696 }
8697 #endif
8698
8699 #ifdef __cplusplus
8700 }
8701 #endif
8702 _LT_EOF
8703 # Now try linking the two files.
8704 mv conftest.$ac_objext conftstm.$ac_objext
8705 lt_globsym_save_LIBS=$LIBS
8706 lt_globsym_save_CFLAGS=$CFLAGS
8707 LIBS=conftstm.$ac_objext
8708 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8709 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8710 (eval $ac_link) 2>&5
8711 ac_status=$?
8712 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8713 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8714 pipe_works=yes
8715 fi
8716 LIBS=$lt_globsym_save_LIBS
8717 CFLAGS=$lt_globsym_save_CFLAGS
8718 else
8719 echo "cannot find nm_test_func in $nlist" >&5
8720 fi
8721 else
8722 echo "cannot find nm_test_var in $nlist" >&5
8723 fi
8724 else
8725 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8726 fi
8727 else
8728 echo "$progname: failed program was:" >&5
8729 cat conftest.$ac_ext >&5
8730 fi
8731 rm -rf conftest* conftst*
8732
8733 # Do not use the global_symbol_pipe unless it works.
8734 if test yes = "$pipe_works"; then
8735 break
8736 else
8737 lt_cv_sys_global_symbol_pipe=
8738 fi
8739 done
8740 ;;
8741 esac
8742 fi
8743
8744 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8745 lt_cv_sys_global_symbol_to_cdecl=
8746 fi
8747 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8749 printf "%s\n" "failed" >&6; }
8750 else
8751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8752 printf "%s\n" "ok" >&6; }
8753 fi
8754
8755 # Response file support.
8756 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8757 nm_file_list_spec='@'
8758 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8759 nm_file_list_spec='@'
8760 fi
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8799 printf %s "checking for sysroot... " >&6; }
8800
8801 # Check whether --with-sysroot was given.
8802 if test ${with_sysroot+y}
8803 then :
8804 withval=$with_sysroot;
8805 else case e in #(
8806 e) with_sysroot=no ;;
8807 esac
8808 fi
8809
8810
8811 lt_sysroot=
8812 case $with_sysroot in #(
8813 yes)
8814 if test yes = "$GCC"; then
8815 # Trim trailing / since we'll always append absolute paths and we want
8816 # to avoid //, if only for less confusing output for the user.
8817 lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`
8818 fi
8819 ;; #(
8820 /*)
8821 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
8822 ;; #(
8823 no|'')
8824 ;; #(
8825 *)
8826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8827 printf "%s\n" "$with_sysroot" >&6; }
8828 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8829 ;;
8830 esac
8831
8832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8833 printf "%s\n" "${lt_sysroot:-no}" >&6; }
8834
8835
8836
8837
8838
8839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8840 printf %s "checking for a working dd... " >&6; }
8841 if test ${ac_cv_path_lt_DD+y}
8842 then :
8843 printf %s "(cached) " >&6
8844 else case e in #(
8845 e) printf 0123456789abcdef0123456789abcdef >conftest.i
8846 cat conftest.i conftest.i >conftest2.i
8847 : ${lt_DD:=$DD}
8848 if test -z "$lt_DD"; then
8849 ac_path_lt_DD_found=false
8850 # Loop through the user's path and test for each of PROGNAME-LIST
8851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8852 for as_dir in $PATH
8853 do
8854 IFS=$as_save_IFS
8855 case $as_dir in #(((
8856 '') as_dir=./ ;;
8857 */) ;;
8858 *) as_dir=$as_dir/ ;;
8859 esac
8860 for ac_prog in dd
8861 do
8862 for ac_exec_ext in '' $ac_executable_extensions; do
8863 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
8864 as_fn_executable_p "$ac_path_lt_DD" || continue
8865 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8866 cmp -s conftest.i conftest.out \
8867 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8868 fi
8869 $ac_path_lt_DD_found && break 3
8870 done
8871 done
8872 done
8873 IFS=$as_save_IFS
8874 if test -z "$ac_cv_path_lt_DD"; then
8875 :
8876 fi
8877 else
8878 ac_cv_path_lt_DD=$lt_DD
8879 fi
8880
8881 rm -f conftest.i conftest2.i conftest.out ;;
8882 esac
8883 fi
8884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8885 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
8886
8887
8888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8889 printf %s "checking how to truncate binary pipes... " >&6; }
8890 if test ${lt_cv_truncate_bin+y}
8891 then :
8892 printf %s "(cached) " >&6
8893 else case e in #(
8894 e) printf 0123456789abcdef0123456789abcdef >conftest.i
8895 cat conftest.i conftest.i >conftest2.i
8896 lt_cv_truncate_bin=
8897 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8898 cmp -s conftest.i conftest.out \
8899 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8900 fi
8901 rm -f conftest.i conftest2.i conftest.out
8902 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
8903 esac
8904 fi
8905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8906 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
8907
8908
8909
8910
8911
8912
8913
8914 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
8915 func_cc_basename ()
8916 {
8917 for cc_temp in $*""; do
8918 case $cc_temp in
8919 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8920 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8921 \-*) ;;
8922 *) break;;
8923 esac
8924 done
8925 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8926 }
8927
8928 # Check whether --enable-libtool-lock was given.
8929 if test ${enable_libtool_lock+y}
8930 then :
8931 enableval=$enable_libtool_lock;
8932 fi
8933
8934 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8935
8936 # Some flags need to be propagated to the compiler or linker for good
8937 # libtool support.
8938 case $host in
8939 ia64-*-hpux*)
8940 # Find out what ABI is being produced by ac_compile, and set mode
8941 # options accordingly.
8942 echo 'int i;' > conftest.$ac_ext
8943 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8944 (eval $ac_compile) 2>&5
8945 ac_status=$?
8946 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8947 test $ac_status = 0; }; then
8948 case `$FILECMD conftest.$ac_objext` in
8949 *ELF-32*)
8950 HPUX_IA64_MODE=32
8951 ;;
8952 *ELF-64*)
8953 HPUX_IA64_MODE=64
8954 ;;
8955 esac
8956 fi
8957 rm -rf conftest*
8958 ;;
8959 *-*-irix6*)
8960 # Find out what ABI is being produced by ac_compile, and set linker
8961 # options accordingly.
8962 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8963 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8964 (eval $ac_compile) 2>&5
8965 ac_status=$?
8966 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8967 test $ac_status = 0; }; then
8968 if test yes = "$lt_cv_prog_gnu_ld"; then
8969 case `$FILECMD conftest.$ac_objext` in
8970 *32-bit*)
8971 LD="${LD-ld} -melf32bsmip"
8972 ;;
8973 *N32*)
8974 LD="${LD-ld} -melf32bmipn32"
8975 ;;
8976 *64-bit*)
8977 LD="${LD-ld} -melf64bmip"
8978 ;;
8979 esac
8980 else
8981 case `$FILECMD conftest.$ac_objext` in
8982 *32-bit*)
8983 LD="${LD-ld} -32"
8984 ;;
8985 *N32*)
8986 LD="${LD-ld} -n32"
8987 ;;
8988 *64-bit*)
8989 LD="${LD-ld} -64"
8990 ;;
8991 esac
8992 fi
8993 fi
8994 rm -rf conftest*
8995 ;;
8996
8997 mips64*-*linux*)
8998 # Find out what ABI is being produced by ac_compile, and set linker
8999 # options accordingly.
9000 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9001 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9002 (eval $ac_compile) 2>&5
9003 ac_status=$?
9004 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9005 test $ac_status = 0; }; then
9006 emul=elf
9007 case `$FILECMD conftest.$ac_objext` in
9008 *32-bit*)
9009 emul="${emul}32"
9010 ;;
9011 *64-bit*)
9012 emul="${emul}64"
9013 ;;
9014 esac
9015 case `$FILECMD conftest.$ac_objext` in
9016 *MSB*)
9017 emul="${emul}btsmip"
9018 ;;
9019 *LSB*)
9020 emul="${emul}ltsmip"
9021 ;;
9022 esac
9023 case `$FILECMD conftest.$ac_objext` in
9024 *N32*)
9025 emul="${emul}n32"
9026 ;;
9027 esac
9028 LD="${LD-ld} -m $emul"
9029 fi
9030 rm -rf conftest*
9031 ;;
9032
9033 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9034 s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
9035 # Find out what ABI is being produced by ac_compile, and set linker
9036 # options accordingly. Note that the listed cases only cover the
9037 # situations where additional linker options are needed (such as when
9038 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9039 # vice versa); the common cases where no linker options are needed do
9040 # not appear in the list.
9041 echo 'int i;' > conftest.$ac_ext
9042 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9043 (eval $ac_compile) 2>&5
9044 ac_status=$?
9045 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9046 test $ac_status = 0; }; then
9047 case `$FILECMD conftest.o` in
9048 *32-bit*)
9049 case $host in
9050 x86_64-*kfreebsd*-gnu)
9051 LD="${LD-ld} -m elf_i386_fbsd"
9052 ;;
9053 x86_64-*linux*|x86_64-gnu*)
9054 case `$FILECMD conftest.o` in
9055 *x86-64*)
9056 LD="${LD-ld} -m elf32_x86_64"
9057 ;;
9058 *)
9059 LD="${LD-ld} -m elf_i386"
9060 ;;
9061 esac
9062 ;;
9063 powerpc64le-*linux*)
9064 LD="${LD-ld} -m elf32lppclinux"
9065 ;;
9066 powerpc64-*linux*)
9067 LD="${LD-ld} -m elf32ppclinux"
9068 ;;
9069 s390x-*linux*)
9070 LD="${LD-ld} -m elf_s390"
9071 ;;
9072 sparc64-*linux*)
9073 LD="${LD-ld} -m elf32_sparc"
9074 ;;
9075 esac
9076 ;;
9077 *64-bit*)
9078 case $host in
9079 x86_64-*kfreebsd*-gnu)
9080 LD="${LD-ld} -m elf_x86_64_fbsd"
9081 ;;
9082 x86_64-*linux*|x86_64-gnu*)
9083 LD="${LD-ld} -m elf_x86_64"
9084 ;;
9085 powerpcle-*linux*)
9086 LD="${LD-ld} -m elf64lppc"
9087 ;;
9088 powerpc-*linux*)
9089 LD="${LD-ld} -m elf64ppc"
9090 ;;
9091 s390*-*linux*|s390*-*tpf*)
9092 LD="${LD-ld} -m elf64_s390"
9093 ;;
9094 sparc*-*linux*)
9095 LD="${LD-ld} -m elf64_sparc"
9096 ;;
9097 esac
9098 ;;
9099 esac
9100 fi
9101 rm -rf conftest*
9102 ;;
9103
9104 *-*-sco3.2v5*)
9105 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9106 SAVE_CFLAGS=$CFLAGS
9107 CFLAGS="$CFLAGS -belf"
9108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9109 printf %s "checking whether the C compiler needs -belf... " >&6; }
9110 if test ${lt_cv_cc_needs_belf+y}
9111 then :
9112 printf %s "(cached) " >&6
9113 else case e in #(
9114 e) ac_ext=c
9115 ac_cpp='$CPP $CPPFLAGS'
9116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9119
9120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9121 /* end confdefs.h. */
9122
9123 int
9124 main (void)
9125 {
9126
9127 ;
9128 return 0;
9129 }
9130 _ACEOF
9131 if ac_fn_c_try_link "$LINENO"
9132 then :
9133 lt_cv_cc_needs_belf=yes
9134 else case e in #(
9135 e) lt_cv_cc_needs_belf=no ;;
9136 esac
9137 fi
9138 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9139 conftest$ac_exeext conftest.$ac_ext
9140 ac_ext=c
9141 ac_cpp='$CPP $CPPFLAGS'
9142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9145 ;;
9146 esac
9147 fi
9148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9149 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
9150 if test yes != "$lt_cv_cc_needs_belf"; then
9151 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9152 CFLAGS=$SAVE_CFLAGS
9153 fi
9154 ;;
9155 *-*solaris*)
9156 # Find out what ABI is being produced by ac_compile, and set linker
9157 # options accordingly.
9158 echo 'int i;' > conftest.$ac_ext
9159 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9160 (eval $ac_compile) 2>&5
9161 ac_status=$?
9162 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9163 test $ac_status = 0; }; then
9164 case `$FILECMD conftest.o` in
9165 *64-bit*)
9166 case $lt_cv_prog_gnu_ld in
9167 yes*)
9168 case $host in
9169 i?86-*-solaris*|x86_64-*-solaris*)
9170 LD="${LD-ld} -m elf_x86_64"
9171 ;;
9172 sparc*-*-solaris*)
9173 LD="${LD-ld} -m elf64_sparc"
9174 ;;
9175 esac
9176 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
9177 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9178 LD=${LD-ld}_sol2
9179 fi
9180 ;;
9181 *)
9182 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9183 LD="${LD-ld} -64"
9184 fi
9185 ;;
9186 esac
9187 ;;
9188 esac
9189 fi
9190 rm -rf conftest*
9191 ;;
9192 esac
9193
9194 need_locks=$enable_libtool_lock
9195
9196 if test -n "$ac_tool_prefix"; then
9197 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9198 set dummy ${ac_tool_prefix}mt; ac_word=$2
9199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9200 printf %s "checking for $ac_word... " >&6; }
9201 if test ${ac_cv_prog_MANIFEST_TOOL+y}
9202 then :
9203 printf %s "(cached) " >&6
9204 else case e in #(
9205 e) if test -n "$MANIFEST_TOOL"; then
9206 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9207 else
9208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9209 for as_dir in $PATH
9210 do
9211 IFS=$as_save_IFS
9212 case $as_dir in #(((
9213 '') as_dir=./ ;;
9214 */) ;;
9215 *) as_dir=$as_dir/ ;;
9216 esac
9217 for ac_exec_ext in '' $ac_executable_extensions; do
9218 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9219 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9220 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9221 break 2
9222 fi
9223 done
9224 done
9225 IFS=$as_save_IFS
9226
9227 fi ;;
9228 esac
9229 fi
9230 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9231 if test -n "$MANIFEST_TOOL"; then
9232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9233 printf "%s\n" "$MANIFEST_TOOL" >&6; }
9234 else
9235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9236 printf "%s\n" "no" >&6; }
9237 fi
9238
9239
9240 fi
9241 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9242 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9243 # Extract the first word of "mt", so it can be a program name with args.
9244 set dummy mt; ac_word=$2
9245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9246 printf %s "checking for $ac_word... " >&6; }
9247 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
9248 then :
9249 printf %s "(cached) " >&6
9250 else case e in #(
9251 e) if test -n "$ac_ct_MANIFEST_TOOL"; then
9252 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9253 else
9254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9255 for as_dir in $PATH
9256 do
9257 IFS=$as_save_IFS
9258 case $as_dir in #(((
9259 '') as_dir=./ ;;
9260 */) ;;
9261 *) as_dir=$as_dir/ ;;
9262 esac
9263 for ac_exec_ext in '' $ac_executable_extensions; do
9264 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9265 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9266 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9267 break 2
9268 fi
9269 done
9270 done
9271 IFS=$as_save_IFS
9272
9273 fi ;;
9274 esac
9275 fi
9276 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9277 if test -n "$ac_ct_MANIFEST_TOOL"; then
9278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9279 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
9280 else
9281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9282 printf "%s\n" "no" >&6; }
9283 fi
9284
9285 if test "x$ac_ct_MANIFEST_TOOL" = x; then
9286 MANIFEST_TOOL=":"
9287 else
9288 case $cross_compiling:$ac_tool_warned in
9289 yes:)
9290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9291 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9292 ac_tool_warned=yes ;;
9293 esac
9294 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9295 fi
9296 else
9297 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9298 fi
9299
9300 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9302 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9303 if test ${lt_cv_path_manifest_tool+y}
9304 then :
9305 printf %s "(cached) " >&6
9306 else case e in #(
9307 e) lt_cv_path_manifest_tool=no
9308 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9309 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9310 cat conftest.err >&5
9311 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9312 lt_cv_path_manifest_tool=yes
9313 fi
9314 rm -f conftest* ;;
9315 esac
9316 fi
9317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5
9318 printf "%s\n" "$lt_cv_path_manifest_tool" >&6; }
9319 if test yes != "$lt_cv_path_manifest_tool"; then
9320 MANIFEST_TOOL=:
9321 fi
9322
9323
9324
9325
9326
9327
9328 case $host_os in
9329 rhapsody* | darwin*)
9330 if test -n "$ac_tool_prefix"; then
9331 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9332 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9334 printf %s "checking for $ac_word... " >&6; }
9335 if test ${ac_cv_prog_DSYMUTIL+y}
9336 then :
9337 printf %s "(cached) " >&6
9338 else case e in #(
9339 e) if test -n "$DSYMUTIL"; then
9340 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9341 else
9342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9343 for as_dir in $PATH
9344 do
9345 IFS=$as_save_IFS
9346 case $as_dir in #(((
9347 '') as_dir=./ ;;
9348 */) ;;
9349 *) as_dir=$as_dir/ ;;
9350 esac
9351 for ac_exec_ext in '' $ac_executable_extensions; do
9352 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9353 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9354 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9355 break 2
9356 fi
9357 done
9358 done
9359 IFS=$as_save_IFS
9360
9361 fi ;;
9362 esac
9363 fi
9364 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9365 if test -n "$DSYMUTIL"; then
9366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9367 printf "%s\n" "$DSYMUTIL" >&6; }
9368 else
9369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9370 printf "%s\n" "no" >&6; }
9371 fi
9372
9373
9374 fi
9375 if test -z "$ac_cv_prog_DSYMUTIL"; then
9376 ac_ct_DSYMUTIL=$DSYMUTIL
9377 # Extract the first word of "dsymutil", so it can be a program name with args.
9378 set dummy dsymutil; ac_word=$2
9379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9380 printf %s "checking for $ac_word... " >&6; }
9381 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
9382 then :
9383 printf %s "(cached) " >&6
9384 else case e in #(
9385 e) if test -n "$ac_ct_DSYMUTIL"; then
9386 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9387 else
9388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9389 for as_dir in $PATH
9390 do
9391 IFS=$as_save_IFS
9392 case $as_dir in #(((
9393 '') as_dir=./ ;;
9394 */) ;;
9395 *) as_dir=$as_dir/ ;;
9396 esac
9397 for ac_exec_ext in '' $ac_executable_extensions; do
9398 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9399 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9400 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9401 break 2
9402 fi
9403 done
9404 done
9405 IFS=$as_save_IFS
9406
9407 fi ;;
9408 esac
9409 fi
9410 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9411 if test -n "$ac_ct_DSYMUTIL"; then
9412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9413 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
9414 else
9415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9416 printf "%s\n" "no" >&6; }
9417 fi
9418
9419 if test "x$ac_ct_DSYMUTIL" = x; then
9420 DSYMUTIL=":"
9421 else
9422 case $cross_compiling:$ac_tool_warned in
9423 yes:)
9424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9425 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9426 ac_tool_warned=yes ;;
9427 esac
9428 DSYMUTIL=$ac_ct_DSYMUTIL
9429 fi
9430 else
9431 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9432 fi
9433
9434 if test -n "$ac_tool_prefix"; then
9435 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9436 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9438 printf %s "checking for $ac_word... " >&6; }
9439 if test ${ac_cv_prog_NMEDIT+y}
9440 then :
9441 printf %s "(cached) " >&6
9442 else case e in #(
9443 e) if test -n "$NMEDIT"; then
9444 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9445 else
9446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9447 for as_dir in $PATH
9448 do
9449 IFS=$as_save_IFS
9450 case $as_dir in #(((
9451 '') as_dir=./ ;;
9452 */) ;;
9453 *) as_dir=$as_dir/ ;;
9454 esac
9455 for ac_exec_ext in '' $ac_executable_extensions; do
9456 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9457 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9458 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9459 break 2
9460 fi
9461 done
9462 done
9463 IFS=$as_save_IFS
9464
9465 fi ;;
9466 esac
9467 fi
9468 NMEDIT=$ac_cv_prog_NMEDIT
9469 if test -n "$NMEDIT"; then
9470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9471 printf "%s\n" "$NMEDIT" >&6; }
9472 else
9473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9474 printf "%s\n" "no" >&6; }
9475 fi
9476
9477
9478 fi
9479 if test -z "$ac_cv_prog_NMEDIT"; then
9480 ac_ct_NMEDIT=$NMEDIT
9481 # Extract the first word of "nmedit", so it can be a program name with args.
9482 set dummy nmedit; ac_word=$2
9483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9484 printf %s "checking for $ac_word... " >&6; }
9485 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
9486 then :
9487 printf %s "(cached) " >&6
9488 else case e in #(
9489 e) if test -n "$ac_ct_NMEDIT"; then
9490 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9491 else
9492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9493 for as_dir in $PATH
9494 do
9495 IFS=$as_save_IFS
9496 case $as_dir in #(((
9497 '') as_dir=./ ;;
9498 */) ;;
9499 *) as_dir=$as_dir/ ;;
9500 esac
9501 for ac_exec_ext in '' $ac_executable_extensions; do
9502 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9503 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9504 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9505 break 2
9506 fi
9507 done
9508 done
9509 IFS=$as_save_IFS
9510
9511 fi ;;
9512 esac
9513 fi
9514 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9515 if test -n "$ac_ct_NMEDIT"; then
9516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9517 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
9518 else
9519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9520 printf "%s\n" "no" >&6; }
9521 fi
9522
9523 if test "x$ac_ct_NMEDIT" = x; then
9524 NMEDIT=":"
9525 else
9526 case $cross_compiling:$ac_tool_warned in
9527 yes:)
9528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9529 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9530 ac_tool_warned=yes ;;
9531 esac
9532 NMEDIT=$ac_ct_NMEDIT
9533 fi
9534 else
9535 NMEDIT="$ac_cv_prog_NMEDIT"
9536 fi
9537
9538 if test -n "$ac_tool_prefix"; then
9539 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9540 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9542 printf %s "checking for $ac_word... " >&6; }
9543 if test ${ac_cv_prog_LIPO+y}
9544 then :
9545 printf %s "(cached) " >&6
9546 else case e in #(
9547 e) if test -n "$LIPO"; then
9548 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9549 else
9550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9551 for as_dir in $PATH
9552 do
9553 IFS=$as_save_IFS
9554 case $as_dir in #(((
9555 '') as_dir=./ ;;
9556 */) ;;
9557 *) as_dir=$as_dir/ ;;
9558 esac
9559 for ac_exec_ext in '' $ac_executable_extensions; do
9560 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9561 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9562 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9563 break 2
9564 fi
9565 done
9566 done
9567 IFS=$as_save_IFS
9568
9569 fi ;;
9570 esac
9571 fi
9572 LIPO=$ac_cv_prog_LIPO
9573 if test -n "$LIPO"; then
9574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9575 printf "%s\n" "$LIPO" >&6; }
9576 else
9577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9578 printf "%s\n" "no" >&6; }
9579 fi
9580
9581
9582 fi
9583 if test -z "$ac_cv_prog_LIPO"; then
9584 ac_ct_LIPO=$LIPO
9585 # Extract the first word of "lipo", so it can be a program name with args.
9586 set dummy lipo; ac_word=$2
9587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9588 printf %s "checking for $ac_word... " >&6; }
9589 if test ${ac_cv_prog_ac_ct_LIPO+y}
9590 then :
9591 printf %s "(cached) " >&6
9592 else case e in #(
9593 e) if test -n "$ac_ct_LIPO"; then
9594 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9595 else
9596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9597 for as_dir in $PATH
9598 do
9599 IFS=$as_save_IFS
9600 case $as_dir in #(((
9601 '') as_dir=./ ;;
9602 */) ;;
9603 *) as_dir=$as_dir/ ;;
9604 esac
9605 for ac_exec_ext in '' $ac_executable_extensions; do
9606 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9607 ac_cv_prog_ac_ct_LIPO="lipo"
9608 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9609 break 2
9610 fi
9611 done
9612 done
9613 IFS=$as_save_IFS
9614
9615 fi ;;
9616 esac
9617 fi
9618 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9619 if test -n "$ac_ct_LIPO"; then
9620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9621 printf "%s\n" "$ac_ct_LIPO" >&6; }
9622 else
9623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9624 printf "%s\n" "no" >&6; }
9625 fi
9626
9627 if test "x$ac_ct_LIPO" = x; then
9628 LIPO=":"
9629 else
9630 case $cross_compiling:$ac_tool_warned in
9631 yes:)
9632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9633 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9634 ac_tool_warned=yes ;;
9635 esac
9636 LIPO=$ac_ct_LIPO
9637 fi
9638 else
9639 LIPO="$ac_cv_prog_LIPO"
9640 fi
9641
9642 if test -n "$ac_tool_prefix"; then
9643 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9644 set dummy ${ac_tool_prefix}otool; ac_word=$2
9645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9646 printf %s "checking for $ac_word... " >&6; }
9647 if test ${ac_cv_prog_OTOOL+y}
9648 then :
9649 printf %s "(cached) " >&6
9650 else case e in #(
9651 e) if test -n "$OTOOL"; then
9652 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9653 else
9654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9655 for as_dir in $PATH
9656 do
9657 IFS=$as_save_IFS
9658 case $as_dir in #(((
9659 '') as_dir=./ ;;
9660 */) ;;
9661 *) as_dir=$as_dir/ ;;
9662 esac
9663 for ac_exec_ext in '' $ac_executable_extensions; do
9664 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9665 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9666 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9667 break 2
9668 fi
9669 done
9670 done
9671 IFS=$as_save_IFS
9672
9673 fi ;;
9674 esac
9675 fi
9676 OTOOL=$ac_cv_prog_OTOOL
9677 if test -n "$OTOOL"; then
9678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9679 printf "%s\n" "$OTOOL" >&6; }
9680 else
9681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9682 printf "%s\n" "no" >&6; }
9683 fi
9684
9685
9686 fi
9687 if test -z "$ac_cv_prog_OTOOL"; then
9688 ac_ct_OTOOL=$OTOOL
9689 # Extract the first word of "otool", so it can be a program name with args.
9690 set dummy otool; ac_word=$2
9691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9692 printf %s "checking for $ac_word... " >&6; }
9693 if test ${ac_cv_prog_ac_ct_OTOOL+y}
9694 then :
9695 printf %s "(cached) " >&6
9696 else case e in #(
9697 e) if test -n "$ac_ct_OTOOL"; then
9698 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9699 else
9700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9701 for as_dir in $PATH
9702 do
9703 IFS=$as_save_IFS
9704 case $as_dir in #(((
9705 '') as_dir=./ ;;
9706 */) ;;
9707 *) as_dir=$as_dir/ ;;
9708 esac
9709 for ac_exec_ext in '' $ac_executable_extensions; do
9710 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9711 ac_cv_prog_ac_ct_OTOOL="otool"
9712 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9713 break 2
9714 fi
9715 done
9716 done
9717 IFS=$as_save_IFS
9718
9719 fi ;;
9720 esac
9721 fi
9722 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9723 if test -n "$ac_ct_OTOOL"; then
9724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9725 printf "%s\n" "$ac_ct_OTOOL" >&6; }
9726 else
9727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9728 printf "%s\n" "no" >&6; }
9729 fi
9730
9731 if test "x$ac_ct_OTOOL" = x; then
9732 OTOOL=":"
9733 else
9734 case $cross_compiling:$ac_tool_warned in
9735 yes:)
9736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9737 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9738 ac_tool_warned=yes ;;
9739 esac
9740 OTOOL=$ac_ct_OTOOL
9741 fi
9742 else
9743 OTOOL="$ac_cv_prog_OTOOL"
9744 fi
9745
9746 if test -n "$ac_tool_prefix"; then
9747 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9748 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9750 printf %s "checking for $ac_word... " >&6; }
9751 if test ${ac_cv_prog_OTOOL64+y}
9752 then :
9753 printf %s "(cached) " >&6
9754 else case e in #(
9755 e) if test -n "$OTOOL64"; then
9756 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9757 else
9758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9759 for as_dir in $PATH
9760 do
9761 IFS=$as_save_IFS
9762 case $as_dir in #(((
9763 '') as_dir=./ ;;
9764 */) ;;
9765 *) as_dir=$as_dir/ ;;
9766 esac
9767 for ac_exec_ext in '' $ac_executable_extensions; do
9768 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9769 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9770 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9771 break 2
9772 fi
9773 done
9774 done
9775 IFS=$as_save_IFS
9776
9777 fi ;;
9778 esac
9779 fi
9780 OTOOL64=$ac_cv_prog_OTOOL64
9781 if test -n "$OTOOL64"; then
9782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9783 printf "%s\n" "$OTOOL64" >&6; }
9784 else
9785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9786 printf "%s\n" "no" >&6; }
9787 fi
9788
9789
9790 fi
9791 if test -z "$ac_cv_prog_OTOOL64"; then
9792 ac_ct_OTOOL64=$OTOOL64
9793 # Extract the first word of "otool64", so it can be a program name with args.
9794 set dummy otool64; ac_word=$2
9795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9796 printf %s "checking for $ac_word... " >&6; }
9797 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
9798 then :
9799 printf %s "(cached) " >&6
9800 else case e in #(
9801 e) if test -n "$ac_ct_OTOOL64"; then
9802 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9803 else
9804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9805 for as_dir in $PATH
9806 do
9807 IFS=$as_save_IFS
9808 case $as_dir in #(((
9809 '') as_dir=./ ;;
9810 */) ;;
9811 *) as_dir=$as_dir/ ;;
9812 esac
9813 for ac_exec_ext in '' $ac_executable_extensions; do
9814 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9815 ac_cv_prog_ac_ct_OTOOL64="otool64"
9816 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9817 break 2
9818 fi
9819 done
9820 done
9821 IFS=$as_save_IFS
9822
9823 fi ;;
9824 esac
9825 fi
9826 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9827 if test -n "$ac_ct_OTOOL64"; then
9828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9829 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
9830 else
9831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9832 printf "%s\n" "no" >&6; }
9833 fi
9834
9835 if test "x$ac_ct_OTOOL64" = x; then
9836 OTOOL64=":"
9837 else
9838 case $cross_compiling:$ac_tool_warned in
9839 yes:)
9840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9841 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9842 ac_tool_warned=yes ;;
9843 esac
9844 OTOOL64=$ac_ct_OTOOL64
9845 fi
9846 else
9847 OTOOL64="$ac_cv_prog_OTOOL64"
9848 fi
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9877 printf %s "checking for -single_module linker flag... " >&6; }
9878 if test ${lt_cv_apple_cc_single_mod+y}
9879 then :
9880 printf %s "(cached) " >&6
9881 else case e in #(
9882 e) lt_cv_apple_cc_single_mod=no
9883 if test -z "$LT_MULTI_MODULE"; then
9884 # By default we will add the -single_module flag. You can override
9885 # by either setting the environment variable LT_MULTI_MODULE
9886 # non-empty at configure time, or by adding -multi_module to the
9887 # link flags.
9888 rm -rf libconftest.dylib*
9889 echo "int foo(void){return 1;}" > conftest.c
9890 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9891 -dynamiclib -Wl,-single_module conftest.c" >&5
9892 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9893 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9894 _lt_result=$?
9895 # If there is a non-empty error log, and "single_module"
9896 # appears in it, assume the flag caused a linker warning
9897 if test -s conftest.err && $GREP single_module conftest.err; then
9898 cat conftest.err >&5
9899 # Otherwise, if the output was created with a 0 exit code from
9900 # the compiler, it worked.
9901 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9902 lt_cv_apple_cc_single_mod=yes
9903 else
9904 cat conftest.err >&5
9905 fi
9906 rm -rf libconftest.dylib*
9907 rm -f conftest.*
9908 fi ;;
9909 esac
9910 fi
9911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9912 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
9913
9914 # Feature test to disable chained fixups since it is not
9915 # compatible with '-undefined dynamic_lookup'
9916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
9917 printf %s "checking for -no_fixup_chains linker flag... " >&6; }
9918 if test ${lt_cv_support_no_fixup_chains+y}
9919 then :
9920 printf %s "(cached) " >&6
9921 else case e in #(
9922 e) save_LDFLAGS=$LDFLAGS
9923 LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
9924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9925 /* end confdefs.h. */
9926
9927 int
9928 main (void)
9929 {
9930
9931 ;
9932 return 0;
9933 }
9934 _ACEOF
9935 if ac_fn_c_try_link "$LINENO"
9936 then :
9937 lt_cv_support_no_fixup_chains=yes
9938 else case e in #(
9939 e) lt_cv_support_no_fixup_chains=no
9940 ;;
9941 esac
9942 fi
9943 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9944 conftest$ac_exeext conftest.$ac_ext
9945 LDFLAGS=$save_LDFLAGS
9946
9947 ;;
9948 esac
9949 fi
9950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
9951 printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; }
9952
9953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9954 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
9955 if test ${lt_cv_ld_exported_symbols_list+y}
9956 then :
9957 printf %s "(cached) " >&6
9958 else case e in #(
9959 e) lt_cv_ld_exported_symbols_list=no
9960 save_LDFLAGS=$LDFLAGS
9961 echo "_main" > conftest.sym
9962 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9964 /* end confdefs.h. */
9965
9966 int
9967 main (void)
9968 {
9969
9970 ;
9971 return 0;
9972 }
9973 _ACEOF
9974 if ac_fn_c_try_link "$LINENO"
9975 then :
9976 lt_cv_ld_exported_symbols_list=yes
9977 else case e in #(
9978 e) lt_cv_ld_exported_symbols_list=no ;;
9979 esac
9980 fi
9981 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9982 conftest$ac_exeext conftest.$ac_ext
9983 LDFLAGS=$save_LDFLAGS
9984 ;;
9985 esac
9986 fi
9987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9988 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
9989
9990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9991 printf %s "checking for -force_load linker flag... " >&6; }
9992 if test ${lt_cv_ld_force_load+y}
9993 then :
9994 printf %s "(cached) " >&6
9995 else case e in #(
9996 e) lt_cv_ld_force_load=no
9997 cat > conftest.c << _LT_EOF
9998 int forced_loaded() { return 2;}
9999 _LT_EOF
10000 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10001 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10002 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
10003 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
10004 echo "$RANLIB libconftest.a" >&5
10005 $RANLIB libconftest.a 2>&5
10006 cat > conftest.c << _LT_EOF
10007 int main(void) { return 0;}
10008 _LT_EOF
10009 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10010 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10011 _lt_result=$?
10012 if test -s conftest.err && $GREP force_load conftest.err; then
10013 cat conftest.err >&5
10014 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10015 lt_cv_ld_force_load=yes
10016 else
10017 cat conftest.err >&5
10018 fi
10019 rm -f conftest.err libconftest.a conftest conftest.c
10020 rm -rf conftest.dSYM
10021 ;;
10022 esac
10023 fi
10024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10025 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
10026 case $host_os in
10027 rhapsody* | darwin1.[012])
10028 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10029 darwin1.*)
10030 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10031 darwin*)
10032 case $MACOSX_DEPLOYMENT_TARGET,$host in
10033 10.[012],*|,*powerpc*-darwin[5-8]*)
10034 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10035 *)
10036 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
10037 if test yes = "$lt_cv_support_no_fixup_chains"; then
10038 as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'
10039 fi
10040 ;;
10041 esac
10042 ;;
10043 esac
10044 if test yes = "$lt_cv_apple_cc_single_mod"; then
10045 _lt_dar_single_mod='$single_module'
10046 fi
10047 _lt_dar_needs_single_mod=no
10048 case $host_os in
10049 rhapsody* | darwin1.*)
10050 _lt_dar_needs_single_mod=yes ;;
10051 darwin*)
10052 # When targeting Mac OS X 10.4 (darwin 8) or later,
10053 # -single_module is the default and -multi_module is unsupported.
10054 # The toolchain on macOS 10.14 (darwin 18) and later cannot
10055 # target any OS version that needs -single_module.
10056 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10057 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*)
10058 _lt_dar_needs_single_mod=yes ;;
10059 esac
10060 ;;
10061 esac
10062 if test yes = "$lt_cv_ld_exported_symbols_list"; then
10063 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10064 else
10065 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10066 fi
10067 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10068 _lt_dsymutil='~$DSYMUTIL $lib || :'
10069 else
10070 _lt_dsymutil=
10071 fi
10072 ;;
10073 esac
10074
10075 # func_munge_path_list VARIABLE PATH
10076 # -----------------------------------
10077 # VARIABLE is name of variable containing _space_ separated list of
10078 # directories to be munged by the contents of PATH, which is string
10079 # having a format:
10080 # "DIR[:DIR]:"
10081 # string "DIR[ DIR]" will be prepended to VARIABLE
10082 # ":DIR[:DIR]"
10083 # string "DIR[ DIR]" will be appended to VARIABLE
10084 # "DIRP[:DIRP]::[DIRA:]DIRA"
10085 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10086 # "DIRA[ DIRA]" will be appended to VARIABLE
10087 # "DIR[:DIR]"
10088 # VARIABLE will be replaced by "DIR[ DIR]"
10089 func_munge_path_list ()
10090 {
10091 case x$2 in
10092 x)
10093 ;;
10094 *:)
10095 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10096 ;;
10097 x:*)
10098 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10099 ;;
10100 *::*)
10101 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10102 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10103 ;;
10104 *)
10105 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10106 ;;
10107 esac
10108 }
10109
10110 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10111 "
10112 if test "x$ac_cv_header_dlfcn_h" = xyes
10113 then :
10114 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
10115
10116 fi
10117
10118
10119
10120
10121
10122 # Set options
10123 enable_win32_dll=yes
10124
10125 case $host in
10126 *-*-cygwin* | *-*-mingw* | *-*-windows* | *-*-pw32* | *-*-cegcc*)
10127 if test -n "$ac_tool_prefix"; then
10128 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
10129 set dummy ${ac_tool_prefix}as; ac_word=$2
10130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10131 printf %s "checking for $ac_word... " >&6; }
10132 if test ${ac_cv_prog_AS+y}
10133 then :
10134 printf %s "(cached) " >&6
10135 else case e in #(
10136 e) if test -n "$AS"; then
10137 ac_cv_prog_AS="$AS" # Let the user override the test.
10138 else
10139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10140 for as_dir in $PATH
10141 do
10142 IFS=$as_save_IFS
10143 case $as_dir in #(((
10144 '') as_dir=./ ;;
10145 */) ;;
10146 *) as_dir=$as_dir/ ;;
10147 esac
10148 for ac_exec_ext in '' $ac_executable_extensions; do
10149 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10150 ac_cv_prog_AS="${ac_tool_prefix}as"
10151 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10152 break 2
10153 fi
10154 done
10155 done
10156 IFS=$as_save_IFS
10157
10158 fi ;;
10159 esac
10160 fi
10161 AS=$ac_cv_prog_AS
10162 if test -n "$AS"; then
10163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10164 printf "%s\n" "$AS" >&6; }
10165 else
10166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10167 printf "%s\n" "no" >&6; }
10168 fi
10169
10170
10171 fi
10172 if test -z "$ac_cv_prog_AS"; then
10173 ac_ct_AS=$AS
10174 # Extract the first word of "as", so it can be a program name with args.
10175 set dummy as; ac_word=$2
10176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10177 printf %s "checking for $ac_word... " >&6; }
10178 if test ${ac_cv_prog_ac_ct_AS+y}
10179 then :
10180 printf %s "(cached) " >&6
10181 else case e in #(
10182 e) if test -n "$ac_ct_AS"; then
10183 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
10184 else
10185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10186 for as_dir in $PATH
10187 do
10188 IFS=$as_save_IFS
10189 case $as_dir in #(((
10190 '') as_dir=./ ;;
10191 */) ;;
10192 *) as_dir=$as_dir/ ;;
10193 esac
10194 for ac_exec_ext in '' $ac_executable_extensions; do
10195 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10196 ac_cv_prog_ac_ct_AS="as"
10197 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10198 break 2
10199 fi
10200 done
10201 done
10202 IFS=$as_save_IFS
10203
10204 fi ;;
10205 esac
10206 fi
10207 ac_ct_AS=$ac_cv_prog_ac_ct_AS
10208 if test -n "$ac_ct_AS"; then
10209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
10210 printf "%s\n" "$ac_ct_AS" >&6; }
10211 else
10212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10213 printf "%s\n" "no" >&6; }
10214 fi
10215
10216 if test "x$ac_ct_AS" = x; then
10217 AS="false"
10218 else
10219 case $cross_compiling:$ac_tool_warned in
10220 yes:)
10221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10222 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10223 ac_tool_warned=yes ;;
10224 esac
10225 AS=$ac_ct_AS
10226 fi
10227 else
10228 AS="$ac_cv_prog_AS"
10229 fi
10230
10231 if test -n "$ac_tool_prefix"; then
10232 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10233 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10235 printf %s "checking for $ac_word... " >&6; }
10236 if test ${ac_cv_prog_DLLTOOL+y}
10237 then :
10238 printf %s "(cached) " >&6
10239 else case e in #(
10240 e) if test -n "$DLLTOOL"; then
10241 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10242 else
10243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10244 for as_dir in $PATH
10245 do
10246 IFS=$as_save_IFS
10247 case $as_dir in #(((
10248 '') as_dir=./ ;;
10249 */) ;;
10250 *) as_dir=$as_dir/ ;;
10251 esac
10252 for ac_exec_ext in '' $ac_executable_extensions; do
10253 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10254 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10255 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10256 break 2
10257 fi
10258 done
10259 done
10260 IFS=$as_save_IFS
10261
10262 fi ;;
10263 esac
10264 fi
10265 DLLTOOL=$ac_cv_prog_DLLTOOL
10266 if test -n "$DLLTOOL"; then
10267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10268 printf "%s\n" "$DLLTOOL" >&6; }
10269 else
10270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10271 printf "%s\n" "no" >&6; }
10272 fi
10273
10274
10275 fi
10276 if test -z "$ac_cv_prog_DLLTOOL"; then
10277 ac_ct_DLLTOOL=$DLLTOOL
10278 # Extract the first word of "dlltool", so it can be a program name with args.
10279 set dummy dlltool; ac_word=$2
10280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10281 printf %s "checking for $ac_word... " >&6; }
10282 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
10283 then :
10284 printf %s "(cached) " >&6
10285 else case e in #(
10286 e) if test -n "$ac_ct_DLLTOOL"; then
10287 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10288 else
10289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10290 for as_dir in $PATH
10291 do
10292 IFS=$as_save_IFS
10293 case $as_dir in #(((
10294 '') as_dir=./ ;;
10295 */) ;;
10296 *) as_dir=$as_dir/ ;;
10297 esac
10298 for ac_exec_ext in '' $ac_executable_extensions; do
10299 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10300 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10301 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10302 break 2
10303 fi
10304 done
10305 done
10306 IFS=$as_save_IFS
10307
10308 fi ;;
10309 esac
10310 fi
10311 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10312 if test -n "$ac_ct_DLLTOOL"; then
10313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10314 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
10315 else
10316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10317 printf "%s\n" "no" >&6; }
10318 fi
10319
10320 if test "x$ac_ct_DLLTOOL" = x; then
10321 DLLTOOL="false"
10322 else
10323 case $cross_compiling:$ac_tool_warned in
10324 yes:)
10325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10326 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10327 ac_tool_warned=yes ;;
10328 esac
10329 DLLTOOL=$ac_ct_DLLTOOL
10330 fi
10331 else
10332 DLLTOOL="$ac_cv_prog_DLLTOOL"
10333 fi
10334
10335 if test -n "$ac_tool_prefix"; then
10336 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10337 set dummy ${ac_tool_prefix}objdump; ac_word=$2
10338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10339 printf %s "checking for $ac_word... " >&6; }
10340 if test ${ac_cv_prog_OBJDUMP+y}
10341 then :
10342 printf %s "(cached) " >&6
10343 else case e in #(
10344 e) if test -n "$OBJDUMP"; then
10345 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10346 else
10347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10348 for as_dir in $PATH
10349 do
10350 IFS=$as_save_IFS
10351 case $as_dir in #(((
10352 '') as_dir=./ ;;
10353 */) ;;
10354 *) as_dir=$as_dir/ ;;
10355 esac
10356 for ac_exec_ext in '' $ac_executable_extensions; do
10357 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10358 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10359 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10360 break 2
10361 fi
10362 done
10363 done
10364 IFS=$as_save_IFS
10365
10366 fi ;;
10367 esac
10368 fi
10369 OBJDUMP=$ac_cv_prog_OBJDUMP
10370 if test -n "$OBJDUMP"; then
10371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10372 printf "%s\n" "$OBJDUMP" >&6; }
10373 else
10374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10375 printf "%s\n" "no" >&6; }
10376 fi
10377
10378
10379 fi
10380 if test -z "$ac_cv_prog_OBJDUMP"; then
10381 ac_ct_OBJDUMP=$OBJDUMP
10382 # Extract the first word of "objdump", so it can be a program name with args.
10383 set dummy objdump; ac_word=$2
10384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10385 printf %s "checking for $ac_word... " >&6; }
10386 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
10387 then :
10388 printf %s "(cached) " >&6
10389 else case e in #(
10390 e) if test -n "$ac_ct_OBJDUMP"; then
10391 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10392 else
10393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10394 for as_dir in $PATH
10395 do
10396 IFS=$as_save_IFS
10397 case $as_dir in #(((
10398 '') as_dir=./ ;;
10399 */) ;;
10400 *) as_dir=$as_dir/ ;;
10401 esac
10402 for ac_exec_ext in '' $ac_executable_extensions; do
10403 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10404 ac_cv_prog_ac_ct_OBJDUMP="objdump"
10405 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10406 break 2
10407 fi
10408 done
10409 done
10410 IFS=$as_save_IFS
10411
10412 fi ;;
10413 esac
10414 fi
10415 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10416 if test -n "$ac_ct_OBJDUMP"; then
10417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10418 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
10419 else
10420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10421 printf "%s\n" "no" >&6; }
10422 fi
10423
10424 if test "x$ac_ct_OBJDUMP" = x; then
10425 OBJDUMP="false"
10426 else
10427 case $cross_compiling:$ac_tool_warned in
10428 yes:)
10429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10430 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10431 ac_tool_warned=yes ;;
10432 esac
10433 OBJDUMP=$ac_ct_OBJDUMP
10434 fi
10435 else
10436 OBJDUMP="$ac_cv_prog_OBJDUMP"
10437 fi
10438
10439 ;;
10440 esac
10441
10442 test -z "$AS" && AS=as
10443
10444
10445
10446
10447
10448 test -z "$DLLTOOL" && DLLTOOL=dlltool
10449
10450
10451
10452
10453
10454 test -z "$OBJDUMP" && OBJDUMP=objdump
10455
10456
10457
10458
10459
10460
10461
10462 enable_dlopen=no
10463
10464
10465
10466 # Check whether --enable-shared was given.
10467 if test ${enable_shared+y}
10468 then :
10469 enableval=$enable_shared; p=${PACKAGE-default}
10470 case $enableval in
10471 yes) enable_shared=yes ;;
10472 no) enable_shared=no ;;
10473 *)
10474 enable_shared=no
10475 # Look at the argument we got. We use all the common list separators.
10476 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10477 for pkg in $enableval; do
10478 IFS=$lt_save_ifs
10479 if test "X$pkg" = "X$p"; then
10480 enable_shared=yes
10481 fi
10482 done
10483 IFS=$lt_save_ifs
10484 ;;
10485 esac
10486 else case e in #(
10487 e) enable_shared=yes ;;
10488 esac
10489 fi
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499 # Check whether --enable-static was given.
10500 if test ${enable_static+y}
10501 then :
10502 enableval=$enable_static; p=${PACKAGE-default}
10503 case $enableval in
10504 yes) enable_static=yes ;;
10505 no) enable_static=no ;;
10506 *)
10507 enable_static=no
10508 # Look at the argument we got. We use all the common list separators.
10509 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10510 for pkg in $enableval; do
10511 IFS=$lt_save_ifs
10512 if test "X$pkg" = "X$p"; then
10513 enable_static=yes
10514 fi
10515 done
10516 IFS=$lt_save_ifs
10517 ;;
10518 esac
10519 else case e in #(
10520 e) enable_static=yes ;;
10521 esac
10522 fi
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532 # Check whether --enable-pic was given.
10533 if test ${enable_pic+y}
10534 then :
10535 enableval=$enable_pic; lt_p=${PACKAGE-default}
10536 case $enableval in
10537 yes|no) pic_mode=$enableval ;;
10538 *)
10539 pic_mode=default
10540 # Look at the argument we got. We use all the common list separators.
10541 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10542 for lt_pkg in $enableval; do
10543 IFS=$lt_save_ifs
10544 if test "X$lt_pkg" = "X$lt_p"; then
10545 pic_mode=yes
10546 fi
10547 done
10548 IFS=$lt_save_ifs
10549 ;;
10550 esac
10551 else case e in #(
10552 e) # Check whether --with-pic was given.
10553 if test ${with_pic+y}
10554 then :
10555 withval=$with_pic; lt_p=${PACKAGE-default}
10556 case $withval in
10557 yes|no) pic_mode=$withval ;;
10558 *)
10559 pic_mode=default
10560 # Look at the argument we got. We use all the common list separators.
10561 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10562 for lt_pkg in $withval; do
10563 IFS=$lt_save_ifs
10564 if test "X$lt_pkg" = "X$lt_p"; then
10565 pic_mode=yes
10566 fi
10567 done
10568 IFS=$lt_save_ifs
10569 ;;
10570 esac
10571 else case e in #(
10572 e) pic_mode=default ;;
10573 esac
10574 fi
10575
10576 ;;
10577 esac
10578 fi
10579
10580
10581
10582
10583
10584
10585
10586
10587 # Check whether --enable-fast-install was given.
10588 if test ${enable_fast_install+y}
10589 then :
10590 enableval=$enable_fast_install; p=${PACKAGE-default}
10591 case $enableval in
10592 yes) enable_fast_install=yes ;;
10593 no) enable_fast_install=no ;;
10594 *)
10595 enable_fast_install=no
10596 # Look at the argument we got. We use all the common list separators.
10597 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10598 for pkg in $enableval; do
10599 IFS=$lt_save_ifs
10600 if test "X$pkg" = "X$p"; then
10601 enable_fast_install=yes
10602 fi
10603 done
10604 IFS=$lt_save_ifs
10605 ;;
10606 esac
10607 else case e in #(
10608 e) enable_fast_install=yes ;;
10609 esac
10610 fi
10611
10612
10613
10614
10615
10616
10617
10618
10619 shared_archive_member_spec=
10620 case $host,$enable_shared in
10621 power*-*-aix[5-9]*,yes)
10622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
10623 printf %s "checking which variant of shared library versioning to provide... " >&6; }
10624 # Check whether --enable-aix-soname was given.
10625 if test ${enable_aix_soname+y}
10626 then :
10627 enableval=$enable_aix_soname; case $enableval in
10628 aix|svr4|both)
10629 ;;
10630 *)
10631 as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5
10632 ;;
10633 esac
10634 lt_cv_with_aix_soname=$enable_aix_soname
10635 else case e in #(
10636 e) # Check whether --with-aix-soname was given.
10637 if test ${with_aix_soname+y}
10638 then :
10639 withval=$with_aix_soname; case $withval in
10640 aix|svr4|both)
10641 ;;
10642 *)
10643 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
10644 ;;
10645 esac
10646 lt_cv_with_aix_soname=$with_aix_soname
10647 else case e in #(
10648 e) if test ${lt_cv_with_aix_soname+y}
10649 then :
10650 printf %s "(cached) " >&6
10651 else case e in #(
10652 e) lt_cv_with_aix_soname=aix ;;
10653 esac
10654 fi
10655 ;;
10656 esac
10657 fi
10658
10659 enable_aix_soname=$lt_cv_with_aix_soname ;;
10660 esac
10661 fi
10662
10663 with_aix_soname=$enable_aix_soname
10664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
10665 printf "%s\n" "$with_aix_soname" >&6; }
10666 if test aix != "$with_aix_soname"; then
10667 # For the AIX way of multilib, we name the shared archive member
10668 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10669 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10670 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10671 # the AIX toolchain works better with OBJECT_MODE set (default 32).
10672 if test 64 = "${OBJECT_MODE-32}"; then
10673 shared_archive_member_spec=shr_64
10674 else
10675 shared_archive_member_spec=shr
10676 fi
10677 fi
10678 ;;
10679 *)
10680 with_aix_soname=aix
10681 ;;
10682 esac
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693 # This can be used to rebuild libtool when needed
10694 LIBTOOL_DEPS=$ltmain
10695
10696 # Always use our own libtool.
10697 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728 test -z "$LN_S" && LN_S="ln -s"
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743 if test -n "${ZSH_VERSION+set}"; then
10744 setopt NO_GLOB_SUBST
10745 fi
10746
10747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10748 printf %s "checking for objdir... " >&6; }
10749 if test ${lt_cv_objdir+y}
10750 then :
10751 printf %s "(cached) " >&6
10752 else case e in #(
10753 e) rm -f .libs 2>/dev/null
10754 mkdir .libs 2>/dev/null
10755 if test -d .libs; then
10756 lt_cv_objdir=.libs
10757 else
10758 # MS-DOS does not allow filenames that begin with a dot.
10759 lt_cv_objdir=_libs
10760 fi
10761 rmdir .libs 2>/dev/null ;;
10762 esac
10763 fi
10764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10765 printf "%s\n" "$lt_cv_objdir" >&6; }
10766 objdir=$lt_cv_objdir
10767
10768
10769
10770
10771
10772 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
10773
10774
10775
10776
10777 case $host_os in
10778 aix3*)
10779 # AIX sometimes has problems with the GCC collect2 program. For some
10780 # reason, if we set the COLLECT_NAMES environment variable, the problems
10781 # vanish in a puff of smoke.
10782 if test set != "${COLLECT_NAMES+set}"; then
10783 COLLECT_NAMES=
10784 export COLLECT_NAMES
10785 fi
10786 ;;
10787 esac
10788
10789 # Global variables:
10790 ofile=libtool
10791 can_build_shared=yes
10792
10793 # All known linkers require a '.a' archive for static linking (except MSVC and
10794 # ICC, which need '.lib').
10795 libext=a
10796
10797 with_gnu_ld=$lt_cv_prog_gnu_ld
10798
10799 old_CC=$CC
10800 old_CFLAGS=$CFLAGS
10801
10802 # Set sane defaults for various variables
10803 test -z "$CC" && CC=cc
10804 test -z "$LTCC" && LTCC=$CC
10805 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10806 test -z "$LD" && LD=ld
10807 test -z "$ac_objext" && ac_objext=o
10808
10809 func_cc_basename $compiler
10810 cc_basename=$func_cc_basename_result
10811
10812
10813 # Only perform the check for file, if the check method requires it
10814 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10815 case $deplibs_check_method in
10816 file_magic*)
10817 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10819 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
10820 if test ${lt_cv_path_MAGIC_CMD+y}
10821 then :
10822 printf %s "(cached) " >&6
10823 else case e in #(
10824 e) case $MAGIC_CMD in
10825 [\\/*] | ?:[\\/]*)
10826 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10827 ;;
10828 *)
10829 lt_save_MAGIC_CMD=$MAGIC_CMD
10830 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10831 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10832 for ac_dir in $ac_dummy; do
10833 IFS=$lt_save_ifs
10834 test -z "$ac_dir" && ac_dir=.
10835 if test -f "$ac_dir/${ac_tool_prefix}file"; then
10836 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10837 if test -n "$file_magic_test_file"; then
10838 case $deplibs_check_method in
10839 "file_magic "*)
10840 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10841 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10842 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10843 $EGREP "$file_magic_regex" > /dev/null; then
10844 :
10845 else
10846 cat <<_LT_EOF 1>&2
10847
10848 *** Warning: the command libtool uses to detect shared libraries,
10849 *** $file_magic_cmd, produces output that libtool cannot recognize.
10850 *** The result is that libtool may fail to recognize shared libraries
10851 *** as such. This will affect the creation of libtool libraries that
10852 *** depend on shared libraries, but programs linked with such libtool
10853 *** libraries will work regardless of this problem. Nevertheless, you
10854 *** may want to report the problem to your system manager and/or to
10855 *** [email protected]
10856
10857 _LT_EOF
10858 fi ;;
10859 esac
10860 fi
10861 break
10862 fi
10863 done
10864 IFS=$lt_save_ifs
10865 MAGIC_CMD=$lt_save_MAGIC_CMD
10866 ;;
10867 esac ;;
10868 esac
10869 fi
10870
10871 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10872 if test -n "$MAGIC_CMD"; then
10873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10874 printf "%s\n" "$MAGIC_CMD" >&6; }
10875 else
10876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10877 printf "%s\n" "no" >&6; }
10878 fi
10879
10880
10881
10882
10883
10884 if test -z "$lt_cv_path_MAGIC_CMD"; then
10885 if test -n "$ac_tool_prefix"; then
10886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10887 printf %s "checking for file... " >&6; }
10888 if test ${lt_cv_path_MAGIC_CMD+y}
10889 then :
10890 printf %s "(cached) " >&6
10891 else case e in #(
10892 e) case $MAGIC_CMD in
10893 [\\/*] | ?:[\\/]*)
10894 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10895 ;;
10896 *)
10897 lt_save_MAGIC_CMD=$MAGIC_CMD
10898 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10899 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10900 for ac_dir in $ac_dummy; do
10901 IFS=$lt_save_ifs
10902 test -z "$ac_dir" && ac_dir=.
10903 if test -f "$ac_dir/file"; then
10904 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10905 if test -n "$file_magic_test_file"; then
10906 case $deplibs_check_method in
10907 "file_magic "*)
10908 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10909 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10910 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10911 $EGREP "$file_magic_regex" > /dev/null; then
10912 :
10913 else
10914 cat <<_LT_EOF 1>&2
10915
10916 *** Warning: the command libtool uses to detect shared libraries,
10917 *** $file_magic_cmd, produces output that libtool cannot recognize.
10918 *** The result is that libtool may fail to recognize shared libraries
10919 *** as such. This will affect the creation of libtool libraries that
10920 *** depend on shared libraries, but programs linked with such libtool
10921 *** libraries will work regardless of this problem. Nevertheless, you
10922 *** may want to report the problem to your system manager and/or to
10923 *** [email protected]
10924
10925 _LT_EOF
10926 fi ;;
10927 esac
10928 fi
10929 break
10930 fi
10931 done
10932 IFS=$lt_save_ifs
10933 MAGIC_CMD=$lt_save_MAGIC_CMD
10934 ;;
10935 esac ;;
10936 esac
10937 fi
10938
10939 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10940 if test -n "$MAGIC_CMD"; then
10941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10942 printf "%s\n" "$MAGIC_CMD" >&6; }
10943 else
10944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10945 printf "%s\n" "no" >&6; }
10946 fi
10947
10948
10949 else
10950 MAGIC_CMD=:
10951 fi
10952 fi
10953
10954 fi
10955 ;;
10956 esac
10957
10958 # Use C for the default configuration in the libtool script
10959
10960 lt_save_CC=$CC
10961 ac_ext=c
10962 ac_cpp='$CPP $CPPFLAGS'
10963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10966
10967
10968 # Source file extension for C test sources.
10969 ac_ext=c
10970
10971 # Object file extension for compiled C test sources.
10972 objext=o
10973 objext=$objext
10974
10975 # Code to be used in simple compile tests
10976 lt_simple_compile_test_code="int some_variable = 0;"
10977
10978 # Code to be used in simple link tests
10979 lt_simple_link_test_code='int main(void){return(0);}'
10980
10981
10982
10983
10984
10985
10986
10987 # If no C compiler was specified, use CC.
10988 LTCC=${LTCC-"$CC"}
10989
10990 # If no C compiler flags were specified, use CFLAGS.
10991 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10992
10993 # Allow CC to be a program name with arguments.
10994 compiler=$CC
10995
10996 # Save the default compiler, since it gets overwritten when the other
10997 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10998 compiler_DEFAULT=$CC
10999
11000 # save warnings/boilerplate of simple test code
11001 ac_outfile=conftest.$ac_objext
11002 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11003 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11004 _lt_compiler_boilerplate=`cat conftest.err`
11005 $RM conftest*
11006
11007 ac_outfile=conftest.$ac_objext
11008 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11009 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11010 _lt_linker_boilerplate=`cat conftest.err`
11011 $RM -r conftest*
11012
11013
11014 ## CAVEAT EMPTOR:
11015 ## There is no encapsulation within the following macros, do not change
11016 ## the running order or otherwise move them around unless you know exactly
11017 ## what you are doing...
11018 if test -n "$compiler"; then
11019
11020 lt_prog_compiler_no_builtin_flag=
11021
11022 if test yes = "$GCC"; then
11023 case $cc_basename in
11024 nvcc*)
11025 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11026 *)
11027 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11028 esac
11029
11030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11031 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11032 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
11033 then :
11034 printf %s "(cached) " >&6
11035 else case e in #(
11036 e) lt_cv_prog_compiler_rtti_exceptions=no
11037 ac_outfile=conftest.$ac_objext
11038 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11039 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
11040 # Insert the option either (1) after the last *FLAGS variable, or
11041 # (2) before a word containing "conftest.", or (3) at the end.
11042 # Note that $ac_compile itself does not contain backslashes and begins
11043 # with a dollar sign (not a hyphen), so the echo should work correctly.
11044 # The option is referenced via a variable to avoid confusing sed.
11045 lt_compile=`echo "$ac_compile" | $SED \
11046 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11047 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11048 -e 's:$: $lt_compiler_flag:'`
11049 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11050 (eval "$lt_compile" 2>conftest.err)
11051 ac_status=$?
11052 cat conftest.err >&5
11053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11054 if (exit $ac_status) && test -s "$ac_outfile"; then
11055 # The compiler can only warn and ignore the option if not recognized
11056 # So say no if there are warnings other than the usual output.
11057 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11058 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11059 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11060 lt_cv_prog_compiler_rtti_exceptions=yes
11061 fi
11062 fi
11063 $RM conftest*
11064 ;;
11065 esac
11066 fi
11067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11068 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11069
11070 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
11071 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11072 else
11073 :
11074 fi
11075
11076 fi
11077
11078
11079
11080
11081
11082
11083 lt_prog_compiler_wl=
11084 lt_prog_compiler_pic=
11085 lt_prog_compiler_static=
11086
11087
11088 if test yes = "$GCC"; then
11089 lt_prog_compiler_wl='-Wl,'
11090 lt_prog_compiler_static='-static'
11091
11092 case $host_os in
11093 aix*)
11094 # All AIX code is PIC.
11095 if test ia64 = "$host_cpu"; then
11096 # AIX 5 now supports IA64 processor
11097 lt_prog_compiler_static='-Bstatic'
11098 fi
11099 lt_prog_compiler_pic='-fPIC'
11100 ;;
11101
11102 amigaos*)
11103 case $host_cpu in
11104 powerpc)
11105 # see comment about AmigaOS4 .so support
11106 lt_prog_compiler_pic='-fPIC'
11107 ;;
11108 m68k)
11109 # FIXME: we need at least 68020 code to build shared libraries, but
11110 # adding the '-m68020' flag to GCC prevents building anything better,
11111 # like '-m68040'.
11112 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11113 ;;
11114 esac
11115 ;;
11116
11117 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11118 # PIC is the default for these OSes.
11119 ;;
11120
11121 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
11122 # This hack is so that the source file can tell whether it is being
11123 # built for inclusion in a dll (and should export symbols for example).
11124 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11125 # (--disable-auto-import) libraries
11126 lt_prog_compiler_pic='-DDLL_EXPORT'
11127 case $host_os in
11128 os2*)
11129 lt_prog_compiler_static='$wl-static'
11130 ;;
11131 esac
11132 ;;
11133
11134 darwin* | rhapsody*)
11135 # PIC is the default on this platform
11136 # Common symbols not allowed in MH_DYLIB files
11137 lt_prog_compiler_pic='-fno-common'
11138 ;;
11139
11140 haiku*)
11141 # PIC is the default for Haiku.
11142 # The "-static" flag exists, but is broken.
11143 lt_prog_compiler_static=
11144 ;;
11145
11146 hpux*)
11147 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11148 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11149 # sets the default TLS model and affects inlining.
11150 case $host_cpu in
11151 hppa*64*)
11152 # +Z the default
11153 ;;
11154 *)
11155 lt_prog_compiler_pic='-fPIC'
11156 ;;
11157 esac
11158 ;;
11159
11160 interix[3-9]*)
11161 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11162 # Instead, we relocate shared libraries at runtime.
11163 ;;
11164
11165 msdosdjgpp*)
11166 # Just because we use GCC doesn't mean we suddenly get shared libraries
11167 # on systems that don't support them.
11168 lt_prog_compiler_can_build_shared=no
11169 enable_shared=no
11170 ;;
11171
11172 *nto* | *qnx*)
11173 # QNX uses GNU C++, but need to define -shared option too, otherwise
11174 # it will coredump.
11175 lt_prog_compiler_pic='-fPIC -shared'
11176 ;;
11177
11178 sysv4*MP*)
11179 if test -d /usr/nec; then
11180 lt_prog_compiler_pic=-Kconform_pic
11181 fi
11182 ;;
11183
11184 *)
11185 lt_prog_compiler_pic='-fPIC'
11186 ;;
11187 esac
11188
11189 case $cc_basename in
11190 nvcc*) # Cuda Compiler Driver 2.2
11191 lt_prog_compiler_wl='-Xlinker '
11192 if test -n "$lt_prog_compiler_pic"; then
11193 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
11194 fi
11195 ;;
11196 esac
11197 else
11198 # PORTME Check for flag to pass linker flags through the system compiler.
11199 case $host_os in
11200 aix*)
11201 lt_prog_compiler_wl='-Wl,'
11202 if test ia64 = "$host_cpu"; then
11203 # AIX 5 now supports IA64 processor
11204 lt_prog_compiler_static='-Bstatic'
11205 else
11206 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11207 fi
11208 ;;
11209
11210 darwin* | rhapsody*)
11211 # PIC is the default on this platform
11212 # Common symbols not allowed in MH_DYLIB files
11213 lt_prog_compiler_pic='-fno-common'
11214 case $cc_basename in
11215 nagfor*)
11216 # NAG Fortran compiler
11217 lt_prog_compiler_wl='-Wl,-Wl,,'
11218 lt_prog_compiler_pic='-PIC'
11219 lt_prog_compiler_static='-Bstatic'
11220 ;;
11221 esac
11222 ;;
11223
11224 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
11225 # This hack is so that the source file can tell whether it is being
11226 # built for inclusion in a dll (and should export symbols for example).
11227 lt_prog_compiler_pic='-DDLL_EXPORT'
11228 case $host_os in
11229 os2*)
11230 lt_prog_compiler_static='$wl-static'
11231 ;;
11232 esac
11233 ;;
11234
11235 hpux9* | hpux10* | hpux11*)
11236 lt_prog_compiler_wl='-Wl,'
11237 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11238 # not for PA HP-UX.
11239 case $host_cpu in
11240 hppa*64*|ia64*)
11241 # +Z the default
11242 ;;
11243 *)
11244 lt_prog_compiler_pic='+Z'
11245 ;;
11246 esac
11247 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11248 lt_prog_compiler_static='$wl-a ${wl}archive'
11249 ;;
11250
11251 irix5* | irix6* | nonstopux*)
11252 lt_prog_compiler_wl='-Wl,'
11253 # PIC (with -KPIC) is the default.
11254 lt_prog_compiler_static='-non_shared'
11255 ;;
11256
11257 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11258 case $cc_basename in
11259 # old Intel for x86_64, which still supported -KPIC.
11260 ecc*)
11261 lt_prog_compiler_wl='-Wl,'
11262 lt_prog_compiler_pic='-KPIC'
11263 lt_prog_compiler_static='-static'
11264 ;;
11265 *flang* | ftn | f18* | f95*)
11266 # Flang compiler.
11267 lt_prog_compiler_wl='-Wl,'
11268 lt_prog_compiler_pic='-fPIC'
11269 lt_prog_compiler_static='-static'
11270 ;;
11271 # icc used to be incompatible with GCC.
11272 # ICC 10 doesn't accept -KPIC any more.
11273 icc* | ifort*)
11274 lt_prog_compiler_wl='-Wl,'
11275 lt_prog_compiler_pic='-fPIC'
11276 lt_prog_compiler_static='-static'
11277 ;;
11278 # Lahey Fortran 8.1.
11279 lf95*)
11280 lt_prog_compiler_wl='-Wl,'
11281 lt_prog_compiler_pic='--shared'
11282 lt_prog_compiler_static='--static'
11283 ;;
11284 nagfor*)
11285 # NAG Fortran compiler
11286 lt_prog_compiler_wl='-Wl,-Wl,,'
11287 lt_prog_compiler_pic='-PIC'
11288 lt_prog_compiler_static='-Bstatic'
11289 ;;
11290 tcc*)
11291 # Fabrice Bellard et al's Tiny C Compiler
11292 lt_prog_compiler_wl='-Wl,'
11293 lt_prog_compiler_pic='-fPIC'
11294 lt_prog_compiler_static='-static'
11295 ;;
11296 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11297 # Portland Group compilers (*not* the Pentium gcc compiler,
11298 # which looks to be a dead project)
11299 lt_prog_compiler_wl='-Wl,'
11300 lt_prog_compiler_pic='-fpic'
11301 lt_prog_compiler_static='-Bstatic'
11302 ;;
11303 ccc*)
11304 lt_prog_compiler_wl='-Wl,'
11305 # All Alpha code is PIC.
11306 lt_prog_compiler_static='-non_shared'
11307 ;;
11308 xl* | bgxl* | bgf* | mpixl*)
11309 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11310 lt_prog_compiler_wl='-Wl,'
11311 lt_prog_compiler_pic='-qpic'
11312 lt_prog_compiler_static='-qstaticlink'
11313 ;;
11314 *)
11315 case `$CC -V 2>&1 | $SED 5q` in
11316 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11317 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11318 lt_prog_compiler_pic='-KPIC'
11319 lt_prog_compiler_static='-Bstatic'
11320 lt_prog_compiler_wl=''
11321 ;;
11322 *Sun\ F* | *Sun*Fortran*)
11323 lt_prog_compiler_pic='-KPIC'
11324 lt_prog_compiler_static='-Bstatic'
11325 lt_prog_compiler_wl='-Qoption ld '
11326 ;;
11327 *Sun\ C*)
11328 # Sun C 5.9
11329 lt_prog_compiler_pic='-KPIC'
11330 lt_prog_compiler_static='-Bstatic'
11331 lt_prog_compiler_wl='-Wl,'
11332 ;;
11333 *Intel*\ [CF]*Compiler*)
11334 lt_prog_compiler_wl='-Wl,'
11335 lt_prog_compiler_pic='-fPIC'
11336 lt_prog_compiler_static='-static'
11337 ;;
11338 *Portland\ Group*)
11339 lt_prog_compiler_wl='-Wl,'
11340 lt_prog_compiler_pic='-fpic'
11341 lt_prog_compiler_static='-Bstatic'
11342 ;;
11343 esac
11344 ;;
11345 esac
11346 ;;
11347
11348 newsos6)
11349 lt_prog_compiler_pic='-KPIC'
11350 lt_prog_compiler_static='-Bstatic'
11351 ;;
11352
11353 *-mlibc)
11354 lt_prog_compiler_wl='-Wl,'
11355 lt_prog_compiler_pic='-fPIC'
11356 lt_prog_compiler_static='-static'
11357 ;;
11358
11359 *nto* | *qnx*)
11360 # QNX uses GNU C++, but need to define -shared option too, otherwise
11361 # it will coredump.
11362 lt_prog_compiler_pic='-fPIC -shared'
11363 ;;
11364
11365 osf3* | osf4* | osf5*)
11366 lt_prog_compiler_wl='-Wl,'
11367 # All OSF/1 code is PIC.
11368 lt_prog_compiler_static='-non_shared'
11369 ;;
11370
11371 rdos*)
11372 lt_prog_compiler_static='-non_shared'
11373 ;;
11374
11375 serenity*)
11376 ;;
11377
11378 solaris*)
11379 lt_prog_compiler_pic='-KPIC'
11380 lt_prog_compiler_static='-Bstatic'
11381 case $cc_basename in
11382 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11383 lt_prog_compiler_wl='-Qoption ld ';;
11384 *)
11385 lt_prog_compiler_wl='-Wl,';;
11386 esac
11387 ;;
11388
11389 sunos4*)
11390 lt_prog_compiler_wl='-Qoption ld '
11391 lt_prog_compiler_pic='-PIC'
11392 lt_prog_compiler_static='-Bstatic'
11393 ;;
11394
11395 sysv4 | sysv4.2uw2* | sysv4.3*)
11396 lt_prog_compiler_wl='-Wl,'
11397 lt_prog_compiler_pic='-KPIC'
11398 lt_prog_compiler_static='-Bstatic'
11399 ;;
11400
11401 sysv4*MP*)
11402 if test -d /usr/nec; then
11403 lt_prog_compiler_pic='-Kconform_pic'
11404 lt_prog_compiler_static='-Bstatic'
11405 fi
11406 ;;
11407
11408 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11409 lt_prog_compiler_wl='-Wl,'
11410 lt_prog_compiler_pic='-KPIC'
11411 lt_prog_compiler_static='-Bstatic'
11412 ;;
11413
11414 unicos*)
11415 lt_prog_compiler_wl='-Wl,'
11416 lt_prog_compiler_can_build_shared=no
11417 ;;
11418
11419 uts4*)
11420 lt_prog_compiler_pic='-pic'
11421 lt_prog_compiler_static='-Bstatic'
11422 ;;
11423
11424 *)
11425 lt_prog_compiler_can_build_shared=no
11426 ;;
11427 esac
11428 fi
11429
11430 case $host_os in
11431 # For platforms that do not support PIC, -DPIC is meaningless:
11432 *djgpp*)
11433 lt_prog_compiler_pic=
11434 ;;
11435 *)
11436 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11437 ;;
11438 esac
11439
11440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11441 printf %s "checking for $compiler option to produce PIC... " >&6; }
11442 if test ${lt_cv_prog_compiler_pic+y}
11443 then :
11444 printf %s "(cached) " >&6
11445 else case e in #(
11446 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
11447 esac
11448 fi
11449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11450 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
11451 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11452
11453 #
11454 # Check to make sure the PIC flag actually works.
11455 #
11456 if test -n "$lt_prog_compiler_pic"; then
11457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11458 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11459 if test ${lt_cv_prog_compiler_pic_works+y}
11460 then :
11461 printf %s "(cached) " >&6
11462 else case e in #(
11463 e) lt_cv_prog_compiler_pic_works=no
11464 ac_outfile=conftest.$ac_objext
11465 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11466 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
11467 # Insert the option either (1) after the last *FLAGS variable, or
11468 # (2) before a word containing "conftest.", or (3) at the end.
11469 # Note that $ac_compile itself does not contain backslashes and begins
11470 # with a dollar sign (not a hyphen), so the echo should work correctly.
11471 # The option is referenced via a variable to avoid confusing sed.
11472 lt_compile=`echo "$ac_compile" | $SED \
11473 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11474 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11475 -e 's:$: $lt_compiler_flag:'`
11476 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11477 (eval "$lt_compile" 2>conftest.err)
11478 ac_status=$?
11479 cat conftest.err >&5
11480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11481 if (exit $ac_status) && test -s "$ac_outfile"; then
11482 # The compiler can only warn and ignore the option if not recognized
11483 # So say no if there are warnings other than the usual output.
11484 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11485 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11486 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11487 lt_cv_prog_compiler_pic_works=yes
11488 fi
11489 fi
11490 $RM conftest*
11491 ;;
11492 esac
11493 fi
11494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11495 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
11496
11497 if test yes = "$lt_cv_prog_compiler_pic_works"; then
11498 case $lt_prog_compiler_pic in
11499 "" | " "*) ;;
11500 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11501 esac
11502 else
11503 lt_prog_compiler_pic=
11504 lt_prog_compiler_can_build_shared=no
11505 fi
11506
11507 fi
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519 #
11520 # Check to make sure the static flag actually works.
11521 #
11522 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11524 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11525 if test ${lt_cv_prog_compiler_static_works+y}
11526 then :
11527 printf %s "(cached) " >&6
11528 else case e in #(
11529 e) lt_cv_prog_compiler_static_works=no
11530 save_LDFLAGS=$LDFLAGS
11531 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11532 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11533 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11534 # The linker can only warn and ignore the option if not recognized
11535 # So say no if there are warnings
11536 if test -s conftest.err; then
11537 # Append any errors to the config.log.
11538 cat conftest.err 1>&5
11539 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11540 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11541 if diff conftest.exp conftest.er2 >/dev/null; then
11542 lt_cv_prog_compiler_static_works=yes
11543 fi
11544 else
11545 lt_cv_prog_compiler_static_works=yes
11546 fi
11547 fi
11548 $RM -r conftest*
11549 LDFLAGS=$save_LDFLAGS
11550 ;;
11551 esac
11552 fi
11553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11554 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
11555
11556 if test yes = "$lt_cv_prog_compiler_static_works"; then
11557 :
11558 else
11559 lt_prog_compiler_static=
11560 fi
11561
11562
11563
11564
11565
11566
11567
11568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11569 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11570 if test ${lt_cv_prog_compiler_c_o+y}
11571 then :
11572 printf %s "(cached) " >&6
11573 else case e in #(
11574 e) lt_cv_prog_compiler_c_o=no
11575 $RM -r conftest 2>/dev/null
11576 mkdir conftest
11577 cd conftest
11578 mkdir out
11579 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11580
11581 lt_compiler_flag="-o out/conftest2.$ac_objext"
11582 # Insert the option either (1) after the last *FLAGS variable, or
11583 # (2) before a word containing "conftest.", or (3) at the end.
11584 # Note that $ac_compile itself does not contain backslashes and begins
11585 # with a dollar sign (not a hyphen), so the echo should work correctly.
11586 lt_compile=`echo "$ac_compile" | $SED \
11587 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11588 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11589 -e 's:$: $lt_compiler_flag:'`
11590 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11591 (eval "$lt_compile" 2>out/conftest.err)
11592 ac_status=$?
11593 cat out/conftest.err >&5
11594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11595 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11596 then
11597 # The compiler can only warn and ignore the option if not recognized
11598 # So say no if there are warnings
11599 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11600 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11601 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11602 lt_cv_prog_compiler_c_o=yes
11603 fi
11604 fi
11605 chmod u+w . 2>&5
11606 $RM conftest*
11607 # SGI C++ compiler will create directory out/ii_files/ for
11608 # template instantiation
11609 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11610 $RM out/* && rmdir out
11611 cd ..
11612 $RM -r conftest
11613 $RM conftest*
11614 ;;
11615 esac
11616 fi
11617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11618 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
11619
11620
11621
11622
11623
11624
11625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11626 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11627 if test ${lt_cv_prog_compiler_c_o+y}
11628 then :
11629 printf %s "(cached) " >&6
11630 else case e in #(
11631 e) lt_cv_prog_compiler_c_o=no
11632 $RM -r conftest 2>/dev/null
11633 mkdir conftest
11634 cd conftest
11635 mkdir out
11636 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11637
11638 lt_compiler_flag="-o out/conftest2.$ac_objext"
11639 # Insert the option either (1) after the last *FLAGS variable, or
11640 # (2) before a word containing "conftest.", or (3) at the end.
11641 # Note that $ac_compile itself does not contain backslashes and begins
11642 # with a dollar sign (not a hyphen), so the echo should work correctly.
11643 lt_compile=`echo "$ac_compile" | $SED \
11644 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11645 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11646 -e 's:$: $lt_compiler_flag:'`
11647 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11648 (eval "$lt_compile" 2>out/conftest.err)
11649 ac_status=$?
11650 cat out/conftest.err >&5
11651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11652 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11653 then
11654 # The compiler can only warn and ignore the option if not recognized
11655 # So say no if there are warnings
11656 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11657 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11658 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11659 lt_cv_prog_compiler_c_o=yes
11660 fi
11661 fi
11662 chmod u+w . 2>&5
11663 $RM conftest*
11664 # SGI C++ compiler will create directory out/ii_files/ for
11665 # template instantiation
11666 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11667 $RM out/* && rmdir out
11668 cd ..
11669 $RM -r conftest
11670 $RM conftest*
11671 ;;
11672 esac
11673 fi
11674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11675 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
11676
11677
11678
11679
11680 hard_links=nottested
11681 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
11682 # do not overwrite the value of need_locks provided by the user
11683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11684 printf %s "checking if we can lock with hard links... " >&6; }
11685 hard_links=yes
11686 $RM conftest*
11687 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11688 touch conftest.a
11689 ln conftest.a conftest.b 2>&5 || hard_links=no
11690 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11692 printf "%s\n" "$hard_links" >&6; }
11693 if test no = "$hard_links"; then
11694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11695 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
11696 need_locks=warn
11697 fi
11698 else
11699 need_locks=no
11700 fi
11701
11702
11703
11704
11705
11706
11707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11708 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11709
11710 runpath_var=
11711 allow_undefined_flag=
11712 always_export_symbols=no
11713 archive_cmds=
11714 archive_expsym_cmds=
11715 compiler_needs_object=no
11716 enable_shared_with_static_runtimes=no
11717 export_dynamic_flag_spec=
11718 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11719 hardcode_automatic=no
11720 hardcode_direct=no
11721 hardcode_direct_absolute=no
11722 hardcode_libdir_flag_spec=
11723 hardcode_libdir_separator=
11724 hardcode_minus_L=no
11725 hardcode_shlibpath_var=unsupported
11726 inherit_rpath=no
11727 link_all_deplibs=unknown
11728 module_cmds=
11729 module_expsym_cmds=
11730 old_archive_from_new_cmds=
11731 old_archive_from_expsyms_cmds=
11732 thread_safe_flag_spec=
11733 whole_archive_flag_spec=
11734 # include_expsyms should be a list of space-separated symbols to be *always*
11735 # included in the symbol list
11736 include_expsyms=
11737 # exclude_expsyms can be an extended regexp of symbols to exclude
11738 # it will be wrapped by ' (' and ')$', so one must not match beginning or
11739 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11740 # as well as any symbol that contains 'd'.
11741 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11742 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11743 # platforms (ab)use it in PIC code, but their linkers get confused if
11744 # the symbol is explicitly referenced. Since portable code cannot
11745 # rely on this symbol name, it's probably fine to never include it in
11746 # preloaded symbol tables.
11747 # Exclude shared library initialization/finalization symbols.
11748 extract_expsyms_cmds=
11749
11750 case $host_os in
11751 cygwin* | mingw* | windows* | pw32* | cegcc*)
11752 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
11753 # When not using gcc, we currently assume that we are using
11754 # Microsoft Visual C++ or Intel C++ Compiler.
11755 if test yes != "$GCC"; then
11756 with_gnu_ld=no
11757 fi
11758 ;;
11759 interix*)
11760 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
11761 with_gnu_ld=yes
11762 ;;
11763 esac
11764
11765 ld_shlibs=yes
11766
11767 # On some targets, GNU ld is compatible enough with the native linker
11768 # that we're better off using the native interface for both.
11769 lt_use_gnu_ld_interface=no
11770 if test yes = "$with_gnu_ld"; then
11771 case $host_os in
11772 aix*)
11773 # The AIX port of GNU ld has always aspired to compatibility
11774 # with the native linker. However, as the warning in the GNU ld
11775 # block says, versions before 2.19.5* couldn't really create working
11776 # shared libraries, regardless of the interface used.
11777 case `$LD -v 2>&1` in
11778 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11779 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11780 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11781 *)
11782 lt_use_gnu_ld_interface=yes
11783 ;;
11784 esac
11785 ;;
11786 *)
11787 lt_use_gnu_ld_interface=yes
11788 ;;
11789 esac
11790 fi
11791
11792 if test yes = "$lt_use_gnu_ld_interface"; then
11793 # If archive_cmds runs LD, not CC, wlarc should be empty
11794 wlarc='$wl'
11795
11796 # Set some defaults for GNU ld with shared library support. These
11797 # are reset later if shared libraries are not supported. Putting them
11798 # here allows them to be overridden if necessary.
11799 runpath_var=LD_RUN_PATH
11800 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11801 export_dynamic_flag_spec='$wl--export-dynamic'
11802 # ancient GNU ld didn't support --whole-archive et. al.
11803 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11804 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11805 else
11806 whole_archive_flag_spec=
11807 fi
11808 supports_anon_versioning=no
11809 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
11810 *GNU\ gold*) supports_anon_versioning=yes ;;
11811 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11812 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11813 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11814 *\ 2.11.*) ;; # other 2.11 versions
11815 *) supports_anon_versioning=yes ;;
11816 esac
11817
11818 # See if GNU ld supports shared libraries.
11819 case $host_os in
11820 aix[3-9]*)
11821 # On AIX/PPC, the GNU linker is very broken
11822 if test ia64 != "$host_cpu"; then
11823 ld_shlibs=no
11824 cat <<_LT_EOF 1>&2
11825
11826 *** Warning: the GNU linker, at least up to release 2.19, is reported
11827 *** to be unable to reliably create shared libraries on AIX.
11828 *** Therefore, libtool is disabling shared libraries support. If you
11829 *** really care for shared libraries, you may want to install binutils
11830 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11831 *** You will then need to restart the configuration process.
11832
11833 _LT_EOF
11834 fi
11835 ;;
11836
11837 amigaos*)
11838 case $host_cpu in
11839 powerpc)
11840 # see comment about AmigaOS4 .so support
11841 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11842 archive_expsym_cmds=''
11843 ;;
11844 m68k)
11845 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)'
11846 hardcode_libdir_flag_spec='-L$libdir'
11847 hardcode_minus_L=yes
11848 ;;
11849 esac
11850 ;;
11851
11852 beos*)
11853 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11854 allow_undefined_flag=unsupported
11855 # Joseph Beckenbach <[email protected]> says some releases of gcc
11856 # support --undefined. This deserves some investigation. FIXME
11857 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11858 else
11859 ld_shlibs=no
11860 fi
11861 ;;
11862
11863 cygwin* | mingw* | windows* | pw32* | cegcc*)
11864 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11865 # as there is no search path for DLLs.
11866 hardcode_libdir_flag_spec='-L$libdir'
11867 export_dynamic_flag_spec='$wl--export-all-symbols'
11868 allow_undefined_flag=unsupported
11869 always_export_symbols=no
11870 enable_shared_with_static_runtimes=yes
11871 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'
11872 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11873 file_list_spec='@'
11874
11875 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11876 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11877 # If the export-symbols file already is a .def file, use it as
11878 # is; otherwise, prepend EXPORTS...
11879 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11880 cp $export_symbols $output_objdir/$soname.def;
11881 else
11882 echo EXPORTS > $output_objdir/$soname.def;
11883 cat $export_symbols >> $output_objdir/$soname.def;
11884 fi~
11885 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11886 else
11887 ld_shlibs=no
11888 fi
11889 ;;
11890
11891 haiku*)
11892 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11893 link_all_deplibs=no
11894 ;;
11895
11896 os2*)
11897 hardcode_libdir_flag_spec='-L$libdir'
11898 hardcode_minus_L=yes
11899 allow_undefined_flag=unsupported
11900 shrext_cmds=.dll
11901 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11902 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11903 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11904 $ECHO EXPORTS >> $output_objdir/$libname.def~
11905 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11906 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11907 emximp -o $lib $output_objdir/$libname.def'
11908 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11909 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11910 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11911 $ECHO EXPORTS >> $output_objdir/$libname.def~
11912 prefix_cmds="$SED"~
11913 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11914 prefix_cmds="$prefix_cmds -e 1d";
11915 fi~
11916 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11917 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11918 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11919 emximp -o $lib $output_objdir/$libname.def'
11920 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11921 enable_shared_with_static_runtimes=yes
11922 file_list_spec='@'
11923 ;;
11924
11925 interix[3-9]*)
11926 hardcode_direct=no
11927 hardcode_shlibpath_var=no
11928 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11929 export_dynamic_flag_spec='$wl-E'
11930 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11931 # Instead, shared libraries are loaded at an image base (0x10000000 by
11932 # default) and relocated if they conflict, which is a slow very memory
11933 # consuming and fragmenting process. To avoid this, we pick a random,
11934 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11935 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11936 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11937 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'
11938 ;;
11939
11940 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11941 tmp_diet=no
11942 if test linux-dietlibc = "$host_os"; then
11943 case $cc_basename in
11944 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11945 esac
11946 fi
11947 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11948 && test no = "$tmp_diet"
11949 then
11950 tmp_addflag=' $pic_flag'
11951 tmp_sharedflag='-shared'
11952 case $cc_basename,$host_cpu in
11953 pgcc*) # Portland Group C compiler
11954 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'
11955 tmp_addflag=' $pic_flag'
11956 ;;
11957 pgf77* | pgf90* | pgf95* | pgfortran*)
11958 # Portland Group f77 and f90 compilers
11959 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'
11960 tmp_addflag=' $pic_flag -Mnomain' ;;
11961 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11962 tmp_addflag=' -i_dynamic' ;;
11963 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11964 tmp_addflag=' -i_dynamic -nofor_main' ;;
11965 ifc* | ifort*) # Intel Fortran compiler
11966 tmp_addflag=' -nofor_main' ;;
11967 lf95*) # Lahey Fortran 8.1
11968 whole_archive_flag_spec=
11969 tmp_sharedflag='--shared' ;;
11970 nagfor*) # NAGFOR 5.3
11971 tmp_sharedflag='-Wl,-shared' ;;
11972 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11973 tmp_sharedflag='-qmkshrobj'
11974 tmp_addflag= ;;
11975 nvcc*) # Cuda Compiler Driver 2.2
11976 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'
11977 compiler_needs_object=yes
11978 ;;
11979 esac
11980 case `$CC -V 2>&1 | $SED 5q` in
11981 *Sun\ C*) # Sun C 5.9
11982 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'
11983 compiler_needs_object=yes
11984 tmp_sharedflag='-G' ;;
11985 *Sun\ F*) # Sun Fortran 8.3
11986 tmp_sharedflag='-G' ;;
11987 esac
11988 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11989
11990 if test yes = "$supports_anon_versioning"; then
11991 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11992 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11993 echo "local: *; };" >> $output_objdir/$libname.ver~
11994 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11995 fi
11996
11997 case $cc_basename in
11998 tcc*)
11999 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12000 export_dynamic_flag_spec='-rdynamic'
12001 ;;
12002 xlf* | bgf* | bgxlf* | mpixlf*)
12003 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12004 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12005 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12006 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12007 if test yes = "$supports_anon_versioning"; then
12008 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12009 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12010 echo "local: *; };" >> $output_objdir/$libname.ver~
12011 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12012 fi
12013 ;;
12014 esac
12015 else
12016 ld_shlibs=no
12017 fi
12018 ;;
12019
12020 *-mlibc)
12021 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12022 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12023 ;;
12024
12025 netbsd* | netbsdelf*-gnu)
12026 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12027 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12028 wlarc=
12029 else
12030 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12031 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12032 fi
12033 ;;
12034
12035 solaris*)
12036 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12037 ld_shlibs=no
12038 cat <<_LT_EOF 1>&2
12039
12040 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12041 *** create shared libraries on Solaris systems. Therefore, libtool
12042 *** is disabling shared libraries support. We urge you to upgrade GNU
12043 *** binutils to release 2.9.1 or newer. Another option is to modify
12044 *** your PATH or compiler configuration so that the native linker is
12045 *** used, and then restart.
12046
12047 _LT_EOF
12048 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12049 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12050 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12051 else
12052 ld_shlibs=no
12053 fi
12054 ;;
12055
12056 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12057 case `$LD -v 2>&1` in
12058 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12059 ld_shlibs=no
12060 cat <<_LT_EOF 1>&2
12061
12062 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
12063 *** reliably create shared libraries on SCO systems. Therefore, libtool
12064 *** is disabling shared libraries support. We urge you to upgrade GNU
12065 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12066 *** your PATH or compiler configuration so that the native linker is
12067 *** used, and then restart.
12068
12069 _LT_EOF
12070 ;;
12071 *)
12072 # For security reasons, it is highly recommended that you always
12073 # use absolute paths for naming shared libraries, and exclude the
12074 # DT_RUNPATH tag from executables and libraries. But doing so
12075 # requires that you compile everything twice, which is a pain.
12076 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12077 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12078 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12079 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12080 else
12081 ld_shlibs=no
12082 fi
12083 ;;
12084 esac
12085 ;;
12086
12087 sunos4*)
12088 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12089 wlarc=
12090 hardcode_direct=yes
12091 hardcode_shlibpath_var=no
12092 ;;
12093
12094 *)
12095 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12096 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12097 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12098 else
12099 ld_shlibs=no
12100 fi
12101 ;;
12102 esac
12103
12104 if test no = "$ld_shlibs"; then
12105 runpath_var=
12106 hardcode_libdir_flag_spec=
12107 export_dynamic_flag_spec=
12108 whole_archive_flag_spec=
12109 fi
12110 else
12111 # PORTME fill in a description of your system's linker (not GNU ld)
12112 case $host_os in
12113 aix3*)
12114 allow_undefined_flag=unsupported
12115 always_export_symbols=yes
12116 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'
12117 # Note: this linker hardcodes the directories in LIBPATH if there
12118 # are no directories specified by -L.
12119 hardcode_minus_L=yes
12120 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
12121 # Neither direct hardcoding nor static linking is supported with a
12122 # broken collect2.
12123 hardcode_direct=unsupported
12124 fi
12125 ;;
12126
12127 aix[4-9]*)
12128 if test ia64 = "$host_cpu"; then
12129 # On IA64, the linker does run time linking by default, so we don't
12130 # have to do anything special.
12131 aix_use_runtimelinking=no
12132 exp_sym_flag='-Bexport'
12133 no_entry_flag=
12134 else
12135 # If we're using GNU nm, then we don't want the "-C" option.
12136 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
12137 # Without the "-l" option, or with the "-B" option, AIX nm treats
12138 # weak defined symbols like other global defined symbols, whereas
12139 # GNU nm marks them as "W".
12140 # While the 'weak' keyword is ignored in the Export File, we need
12141 # it in the Import File for the 'aix-soname' feature, so we have
12142 # to replace the "-B" option with "-P" for AIX nm.
12143 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12144 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'
12145 else
12146 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'
12147 fi
12148 aix_use_runtimelinking=no
12149
12150 # Test if we are trying to use run time linking or normal
12151 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12152 # have runtime linking enabled, and use it for executables.
12153 # For shared libraries, we enable/disable runtime linking
12154 # depending on the kind of the shared library created -
12155 # when "with_aix_soname,aix_use_runtimelinking" is:
12156 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
12157 # "aix,yes" lib.so shared, rtl:yes, for executables
12158 # lib.a static archive
12159 # "both,no" lib.so.V(shr.o) shared, rtl:yes
12160 # lib.a(lib.so.V) shared, rtl:no, for executables
12161 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
12162 # lib.a(lib.so.V) shared, rtl:no
12163 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
12164 # lib.a static archive
12165 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12166 for ld_flag in $LDFLAGS; do
12167 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
12168 aix_use_runtimelinking=yes
12169 break
12170 fi
12171 done
12172 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
12173 # With aix-soname=svr4, we create the lib.so.V shared archives only,
12174 # so we don't have lib.a shared libs to link our executables.
12175 # We have to force runtime linking in this case.
12176 aix_use_runtimelinking=yes
12177 LDFLAGS="$LDFLAGS -Wl,-brtl"
12178 fi
12179 ;;
12180 esac
12181
12182 exp_sym_flag='-bexport'
12183 no_entry_flag='-bnoentry'
12184 fi
12185
12186 # When large executables or shared objects are built, AIX ld can
12187 # have problems creating the table of contents. If linking a library
12188 # or program results in "error TOC overflow" add -mminimal-toc to
12189 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12190 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12191
12192 archive_cmds=''
12193 hardcode_direct=yes
12194 hardcode_direct_absolute=yes
12195 hardcode_libdir_separator=':'
12196 link_all_deplibs=yes
12197 file_list_spec='$wl-f,'
12198 case $with_aix_soname,$aix_use_runtimelinking in
12199 aix,*) ;; # traditional, no import file
12200 svr4,* | *,yes) # use import file
12201 # The Import File defines what to hardcode.
12202 hardcode_direct=no
12203 hardcode_direct_absolute=no
12204 ;;
12205 esac
12206
12207 if test yes = "$GCC"; then
12208 case $host_os in aix4.[012]|aix4.[012].*)
12209 # We only want to do this on AIX 4.2 and lower, the check
12210 # below for broken collect2 doesn't work under 4.3+
12211 collect2name=`$CC -print-prog-name=collect2`
12212 if test -f "$collect2name" &&
12213 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12214 then
12215 # We have reworked collect2
12216 :
12217 else
12218 # We have old collect2
12219 hardcode_direct=unsupported
12220 # It fails to find uninstalled libraries when the uninstalled
12221 # path is not listed in the libpath. Setting hardcode_minus_L
12222 # to unsupported forces relinking
12223 hardcode_minus_L=yes
12224 hardcode_libdir_flag_spec='-L$libdir'
12225 hardcode_libdir_separator=
12226 fi
12227 ;;
12228 esac
12229 shared_flag='-shared'
12230 if test yes = "$aix_use_runtimelinking"; then
12231 shared_flag="$shared_flag "'$wl-G'
12232 fi
12233 # Need to ensure runtime linking is disabled for the traditional
12234 # shared library, or the linker may eventually find shared libraries
12235 # /with/ Import File - we do not want to mix them.
12236 shared_flag_aix='-shared'
12237 shared_flag_svr4='-shared $wl-G'
12238 else
12239 # not using gcc
12240 if test ia64 = "$host_cpu"; then
12241 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12242 # chokes on -Wl,-G. The following line is correct:
12243 shared_flag='-G'
12244 else
12245 if test yes = "$aix_use_runtimelinking"; then
12246 shared_flag='$wl-G'
12247 else
12248 shared_flag='$wl-bM:SRE'
12249 fi
12250 shared_flag_aix='$wl-bM:SRE'
12251 shared_flag_svr4='$wl-G'
12252 fi
12253 fi
12254
12255 export_dynamic_flag_spec='$wl-bexpall'
12256 # It seems that -bexpall does not export symbols beginning with
12257 # underscore (_), so it is better to generate a list of symbols to export.
12258 always_export_symbols=yes
12259 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
12260 # Warning - without using the other runtime loading flags (-brtl),
12261 # -berok will link without error, but may produce a broken library.
12262 allow_undefined_flag='-berok'
12263 # Determine the default libpath from the value encoded in an
12264 # empty executable.
12265 if test set = "${lt_cv_aix_libpath+set}"; then
12266 aix_libpath=$lt_cv_aix_libpath
12267 else
12268 if test ${lt_cv_aix_libpath_+y}
12269 then :
12270 printf %s "(cached) " >&6
12271 else case e in #(
12272 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12273 /* end confdefs.h. */
12274
12275 int
12276 main (void)
12277 {
12278
12279 ;
12280 return 0;
12281 }
12282 _ACEOF
12283 if ac_fn_c_try_link "$LINENO"
12284 then :
12285
12286 lt_aix_libpath_sed='
12287 /Import File Strings/,/^$/ {
12288 /^0/ {
12289 s/^0 *\([^ ]*\) *$/\1/
12290 p
12291 }
12292 }'
12293 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12294 # Check for a 64-bit object if we didn't find anything.
12295 if test -z "$lt_cv_aix_libpath_"; then
12296 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12297 fi
12298 fi
12299 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12300 conftest$ac_exeext conftest.$ac_ext
12301 if test -z "$lt_cv_aix_libpath_"; then
12302 lt_cv_aix_libpath_=/usr/lib:/lib
12303 fi
12304 ;;
12305 esac
12306 fi
12307
12308 aix_libpath=$lt_cv_aix_libpath_
12309 fi
12310
12311 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12312 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
12313 else
12314 if test ia64 = "$host_cpu"; then
12315 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
12316 allow_undefined_flag="-z nodefs"
12317 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"
12318 else
12319 # Determine the default libpath from the value encoded in an
12320 # empty executable.
12321 if test set = "${lt_cv_aix_libpath+set}"; then
12322 aix_libpath=$lt_cv_aix_libpath
12323 else
12324 if test ${lt_cv_aix_libpath_+y}
12325 then :
12326 printf %s "(cached) " >&6
12327 else case e in #(
12328 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12329 /* end confdefs.h. */
12330
12331 int
12332 main (void)
12333 {
12334
12335 ;
12336 return 0;
12337 }
12338 _ACEOF
12339 if ac_fn_c_try_link "$LINENO"
12340 then :
12341
12342 lt_aix_libpath_sed='
12343 /Import File Strings/,/^$/ {
12344 /^0/ {
12345 s/^0 *\([^ ]*\) *$/\1/
12346 p
12347 }
12348 }'
12349 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12350 # Check for a 64-bit object if we didn't find anything.
12351 if test -z "$lt_cv_aix_libpath_"; then
12352 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12353 fi
12354 fi
12355 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12356 conftest$ac_exeext conftest.$ac_ext
12357 if test -z "$lt_cv_aix_libpath_"; then
12358 lt_cv_aix_libpath_=/usr/lib:/lib
12359 fi
12360 ;;
12361 esac
12362 fi
12363
12364 aix_libpath=$lt_cv_aix_libpath_
12365 fi
12366
12367 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12368 # Warning - without using the other run time loading flags,
12369 # -berok will link without error, but may produce a broken library.
12370 no_undefined_flag=' $wl-bernotok'
12371 allow_undefined_flag=' $wl-berok'
12372 if test yes = "$with_gnu_ld"; then
12373 # We only use this code for GNU lds that support --whole-archive.
12374 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
12375 else
12376 # Exported symbols can be pulled into shared objects from archives
12377 whole_archive_flag_spec='$convenience'
12378 fi
12379 archive_cmds_need_lc=yes
12380 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
12381 # -brtl affects multiple linker settings, -berok does not and is overridden later
12382 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
12383 if test svr4 != "$with_aix_soname"; then
12384 # This is similar to how AIX traditionally builds its shared libraries.
12385 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'
12386 fi
12387 if test aix != "$with_aix_soname"; then
12388 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'
12389 else
12390 # used by -dlpreopen to get the symbols
12391 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
12392 fi
12393 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
12394 fi
12395 fi
12396 ;;
12397
12398 amigaos*)
12399 case $host_cpu in
12400 powerpc)
12401 # see comment about AmigaOS4 .so support
12402 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12403 archive_expsym_cmds=''
12404 ;;
12405 m68k)
12406 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)'
12407 hardcode_libdir_flag_spec='-L$libdir'
12408 hardcode_minus_L=yes
12409 ;;
12410 esac
12411 ;;
12412
12413 bsdi[45]*)
12414 export_dynamic_flag_spec=-rdynamic
12415 ;;
12416
12417 cygwin* | mingw* | windows* | pw32* | cegcc*)
12418 # When not using gcc, we currently assume that we are using
12419 # Microsoft Visual C++ or Intel C++ Compiler.
12420 # hardcode_libdir_flag_spec is actually meaningless, as there is
12421 # no search path for DLLs.
12422 case $cc_basename in
12423 cl* | icl*)
12424 # Native MSVC or ICC
12425 hardcode_libdir_flag_spec=' '
12426 allow_undefined_flag=unsupported
12427 always_export_symbols=yes
12428 file_list_spec='@'
12429 # Tell ltmain to make .lib files, not .a files.
12430 libext=lib
12431 # Tell ltmain to make .dll files, not .so files.
12432 shrext_cmds=.dll
12433 # FIXME: Setting linknames here is a bad hack.
12434 archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
12435 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12436 cp "$export_symbols" "$output_objdir/$soname.def";
12437 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
12438 else
12439 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
12440 fi~
12441 $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12442 linknames='
12443 # The linker will not automatically build a static lib if we build a DLL.
12444 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12445 enable_shared_with_static_runtimes=yes
12446 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12447 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12448 # Don't use ranlib
12449 old_postinstall_cmds='chmod 644 $oldlib'
12450 postlink_cmds='lt_outputfile="@OUTPUT@"~
12451 lt_tool_outputfile="@TOOL_OUTPUT@"~
12452 case $lt_outputfile in
12453 *.exe|*.EXE) ;;
12454 *)
12455 lt_outputfile=$lt_outputfile.exe
12456 lt_tool_outputfile=$lt_tool_outputfile.exe
12457 ;;
12458 esac~
12459 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
12460 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12461 $RM "$lt_outputfile.manifest";
12462 fi'
12463 ;;
12464 *)
12465 # Assume MSVC and ICC wrapper
12466 hardcode_libdir_flag_spec=' '
12467 allow_undefined_flag=unsupported
12468 # Tell ltmain to make .lib files, not .a files.
12469 libext=lib
12470 # Tell ltmain to make .dll files, not .so files.
12471 shrext_cmds=.dll
12472 # FIXME: Setting linknames here is a bad hack.
12473 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12474 # The linker will automatically build a .lib file if we build a DLL.
12475 old_archive_from_new_cmds='true'
12476 # FIXME: Should let the user specify the lib program.
12477 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12478 enable_shared_with_static_runtimes=yes
12479 ;;
12480 esac
12481 ;;
12482
12483 darwin* | rhapsody*)
12484
12485
12486 archive_cmds_need_lc=no
12487 hardcode_direct=no
12488 hardcode_automatic=yes
12489 hardcode_shlibpath_var=unsupported
12490 if test yes = "$lt_cv_ld_force_load"; then
12491 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\"`'
12492
12493 else
12494 whole_archive_flag_spec=''
12495 fi
12496 link_all_deplibs=yes
12497 allow_undefined_flag=$_lt_dar_allow_undefined
12498 case $cc_basename in
12499 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
12500 *) _lt_dar_can_shared=$GCC ;;
12501 esac
12502 if test yes = "$_lt_dar_can_shared"; then
12503 output_verbose_link_cmd=func_echo_all
12504 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
12505 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
12506 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"
12507 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"
12508
12509 else
12510 ld_shlibs=no
12511 fi
12512
12513 ;;
12514
12515 dgux*)
12516 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12517 hardcode_libdir_flag_spec='-L$libdir'
12518 hardcode_shlibpath_var=no
12519 ;;
12520
12521 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12522 # support. Future versions do this automatically, but an explicit c++rt0.o
12523 # does not break anything, and helps significantly (at the cost of a little
12524 # extra space).
12525 freebsd2.2*)
12526 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12527 hardcode_libdir_flag_spec='-R$libdir'
12528 hardcode_direct=yes
12529 hardcode_shlibpath_var=no
12530 ;;
12531
12532 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12533 freebsd2.*)
12534 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12535 hardcode_direct=yes
12536 hardcode_minus_L=yes
12537 hardcode_shlibpath_var=no
12538 ;;
12539
12540 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12541 freebsd* | dragonfly* | midnightbsd*)
12542 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12543 hardcode_libdir_flag_spec='-R$libdir'
12544 hardcode_direct=yes
12545 hardcode_shlibpath_var=no
12546 ;;
12547
12548 hpux9*)
12549 if test yes = "$GCC"; then
12550 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'
12551 else
12552 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'
12553 fi
12554 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12555 hardcode_libdir_separator=:
12556 hardcode_direct=yes
12557
12558 # hardcode_minus_L: Not really in the search PATH,
12559 # but as the default location of the library.
12560 hardcode_minus_L=yes
12561 export_dynamic_flag_spec='$wl-E'
12562 ;;
12563
12564 hpux10*)
12565 if test yes,no = "$GCC,$with_gnu_ld"; then
12566 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12567 else
12568 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12569 fi
12570 if test no = "$with_gnu_ld"; then
12571 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12572 hardcode_libdir_separator=:
12573 hardcode_direct=yes
12574 hardcode_direct_absolute=yes
12575 export_dynamic_flag_spec='$wl-E'
12576 # hardcode_minus_L: Not really in the search PATH,
12577 # but as the default location of the library.
12578 hardcode_minus_L=yes
12579 fi
12580 ;;
12581
12582 hpux11*)
12583 if test yes,no = "$GCC,$with_gnu_ld"; then
12584 case $host_cpu in
12585 hppa*64*)
12586 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12587 ;;
12588 ia64*)
12589 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12590 ;;
12591 *)
12592 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12593 ;;
12594 esac
12595 else
12596 case $host_cpu in
12597 hppa*64*)
12598 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12599 ;;
12600 ia64*)
12601 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12602 ;;
12603 *)
12604
12605 # Older versions of the 11.00 compiler do not understand -b yet
12606 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12608 printf %s "checking if $CC understands -b... " >&6; }
12609 if test ${lt_cv_prog_compiler__b+y}
12610 then :
12611 printf %s "(cached) " >&6
12612 else case e in #(
12613 e) lt_cv_prog_compiler__b=no
12614 save_LDFLAGS=$LDFLAGS
12615 LDFLAGS="$LDFLAGS -b"
12616 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12617 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12618 # The linker can only warn and ignore the option if not recognized
12619 # So say no if there are warnings
12620 if test -s conftest.err; then
12621 # Append any errors to the config.log.
12622 cat conftest.err 1>&5
12623 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12624 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12625 if diff conftest.exp conftest.er2 >/dev/null; then
12626 lt_cv_prog_compiler__b=yes
12627 fi
12628 else
12629 lt_cv_prog_compiler__b=yes
12630 fi
12631 fi
12632 $RM -r conftest*
12633 LDFLAGS=$save_LDFLAGS
12634 ;;
12635 esac
12636 fi
12637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12638 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
12639
12640 if test yes = "$lt_cv_prog_compiler__b"; then
12641 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12642 else
12643 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12644 fi
12645
12646 ;;
12647 esac
12648 fi
12649 if test no = "$with_gnu_ld"; then
12650 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12651 hardcode_libdir_separator=:
12652
12653 case $host_cpu in
12654 hppa*64*|ia64*)
12655 hardcode_direct=no
12656 hardcode_shlibpath_var=no
12657 ;;
12658 *)
12659 hardcode_direct=yes
12660 hardcode_direct_absolute=yes
12661 export_dynamic_flag_spec='$wl-E'
12662
12663 # hardcode_minus_L: Not really in the search PATH,
12664 # but as the default location of the library.
12665 hardcode_minus_L=yes
12666 ;;
12667 esac
12668 fi
12669 ;;
12670
12671 irix5* | irix6* | nonstopux*)
12672 if test yes = "$GCC"; then
12673 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'
12674 # Try to use the -exported_symbol ld option, if it does not
12675 # work, assume that -exports_file does not work either and
12676 # implicitly export all symbols.
12677 # This should be the same for all languages, so no per-tag cache variable.
12678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12679 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12680 if test ${lt_cv_irix_exported_symbol+y}
12681 then :
12682 printf %s "(cached) " >&6
12683 else case e in #(
12684 e) save_LDFLAGS=$LDFLAGS
12685 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
12686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12687 /* end confdefs.h. */
12688 int foo (void) { return 0; }
12689 _ACEOF
12690 if ac_fn_c_try_link "$LINENO"
12691 then :
12692 lt_cv_irix_exported_symbol=yes
12693 else case e in #(
12694 e) lt_cv_irix_exported_symbol=no ;;
12695 esac
12696 fi
12697 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12698 conftest$ac_exeext conftest.$ac_ext
12699 LDFLAGS=$save_LDFLAGS ;;
12700 esac
12701 fi
12702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12703 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
12704 if test yes = "$lt_cv_irix_exported_symbol"; then
12705 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'
12706 fi
12707 else
12708 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'
12709 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'
12710 fi
12711 archive_cmds_need_lc='no'
12712 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12713 hardcode_libdir_separator=:
12714 inherit_rpath=yes
12715 link_all_deplibs=yes
12716 ;;
12717
12718 linux*)
12719 case $cc_basename in
12720 tcc*)
12721 # Fabrice Bellard et al's Tiny C Compiler
12722 ld_shlibs=yes
12723 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12724 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12725 ;;
12726 esac
12727 ;;
12728
12729 *-mlibc)
12730 ;;
12731
12732 netbsd* | netbsdelf*-gnu)
12733 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12734 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12735 else
12736 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12737 fi
12738 hardcode_libdir_flag_spec='-R$libdir'
12739 hardcode_direct=yes
12740 hardcode_shlibpath_var=no
12741 ;;
12742
12743 newsos6)
12744 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12745 hardcode_direct=yes
12746 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12747 hardcode_libdir_separator=:
12748 hardcode_shlibpath_var=no
12749 ;;
12750
12751 *nto* | *qnx*)
12752 ;;
12753
12754 openbsd*)
12755 if test -f /usr/libexec/ld.so; then
12756 hardcode_direct=yes
12757 hardcode_shlibpath_var=no
12758 hardcode_direct_absolute=yes
12759 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12760 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12761 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12762 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12763 export_dynamic_flag_spec='$wl-E'
12764 else
12765 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12766 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12767 fi
12768 else
12769 ld_shlibs=no
12770 fi
12771 ;;
12772
12773 os2*)
12774 hardcode_libdir_flag_spec='-L$libdir'
12775 hardcode_minus_L=yes
12776 allow_undefined_flag=unsupported
12777 shrext_cmds=.dll
12778 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12779 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12780 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12781 $ECHO EXPORTS >> $output_objdir/$libname.def~
12782 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12783 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12784 emximp -o $lib $output_objdir/$libname.def'
12785 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12786 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12787 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12788 $ECHO EXPORTS >> $output_objdir/$libname.def~
12789 prefix_cmds="$SED"~
12790 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12791 prefix_cmds="$prefix_cmds -e 1d";
12792 fi~
12793 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12794 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12795 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12796 emximp -o $lib $output_objdir/$libname.def'
12797 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12798 enable_shared_with_static_runtimes=yes
12799 file_list_spec='@'
12800 ;;
12801
12802 osf3*)
12803 if test yes = "$GCC"; then
12804 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12805 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'
12806 else
12807 allow_undefined_flag=' -expect_unresolved \*'
12808 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'
12809 fi
12810 archive_cmds_need_lc='no'
12811 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12812 hardcode_libdir_separator=:
12813 ;;
12814
12815 osf4* | osf5*) # as osf3* with the addition of -msym flag
12816 if test yes = "$GCC"; then
12817 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12818 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'
12819 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12820 else
12821 allow_undefined_flag=' -expect_unresolved \*'
12822 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'
12823 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~
12824 $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'
12825
12826 # Both c and cxx compiler support -rpath directly
12827 hardcode_libdir_flag_spec='-rpath $libdir'
12828 fi
12829 archive_cmds_need_lc='no'
12830 hardcode_libdir_separator=:
12831 ;;
12832
12833 serenity*)
12834 ;;
12835
12836 solaris*)
12837 no_undefined_flag=' -z defs'
12838 if test yes = "$GCC"; then
12839 wlarc='$wl'
12840 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12841 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12842 $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'
12843 else
12844 case `$CC -V 2>&1` in
12845 *"Compilers 5.0"*)
12846 wlarc=''
12847 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12848 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12849 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12850 ;;
12851 *)
12852 wlarc='$wl'
12853 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12854 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12855 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12856 ;;
12857 esac
12858 fi
12859 hardcode_libdir_flag_spec='-R$libdir'
12860 hardcode_shlibpath_var=no
12861 case $host_os in
12862 solaris2.[0-5] | solaris2.[0-5].*) ;;
12863 *)
12864 # The compiler driver will combine and reorder linker options,
12865 # but understands '-z linker_flag'. GCC discards it without '$wl',
12866 # but is careful enough not to reorder.
12867 # Supported since Solaris 2.6 (maybe 2.5.1?)
12868 if test yes = "$GCC"; then
12869 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12870 else
12871 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12872 fi
12873 ;;
12874 esac
12875 link_all_deplibs=yes
12876 ;;
12877
12878 sunos4*)
12879 if test sequent = "$host_vendor"; then
12880 # Use $CC to link under sequent, because it throws in some extra .o
12881 # files that make .init and .fini sections work.
12882 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12883 else
12884 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12885 fi
12886 hardcode_libdir_flag_spec='-L$libdir'
12887 hardcode_direct=yes
12888 hardcode_minus_L=yes
12889 hardcode_shlibpath_var=no
12890 ;;
12891
12892 sysv4)
12893 case $host_vendor in
12894 sni)
12895 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12896 hardcode_direct=yes # is this really true???
12897 ;;
12898 siemens)
12899 ## LD is ld it makes a PLAMLIB
12900 ## CC just makes a GrossModule.
12901 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12902 reload_cmds='$CC -r -o $output$reload_objs'
12903 hardcode_direct=no
12904 ;;
12905 motorola)
12906 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12907 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12908 ;;
12909 esac
12910 runpath_var='LD_RUN_PATH'
12911 hardcode_shlibpath_var=no
12912 ;;
12913
12914 sysv4.3*)
12915 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12916 hardcode_shlibpath_var=no
12917 export_dynamic_flag_spec='-Bexport'
12918 ;;
12919
12920 sysv4*MP*)
12921 if test -d /usr/nec; then
12922 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12923 hardcode_shlibpath_var=no
12924 runpath_var=LD_RUN_PATH
12925 hardcode_runpath_var=yes
12926 ld_shlibs=yes
12927 fi
12928 ;;
12929
12930 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12931 no_undefined_flag='$wl-z,text'
12932 archive_cmds_need_lc=no
12933 hardcode_shlibpath_var=no
12934 runpath_var='LD_RUN_PATH'
12935
12936 if test yes = "$GCC"; then
12937 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12938 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12939 else
12940 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12941 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12942 fi
12943 ;;
12944
12945 sysv5* | sco3.2v5* | sco5v6*)
12946 # Note: We CANNOT use -z defs as we might desire, because we do not
12947 # link with -lc, and that would cause any symbols used from libc to
12948 # always be unresolved, which means just about no library would
12949 # ever link correctly. If we're not using GNU ld we use -z text
12950 # though, which does catch some bad symbols but isn't as heavy-handed
12951 # as -z defs.
12952 no_undefined_flag='$wl-z,text'
12953 allow_undefined_flag='$wl-z,nodefs'
12954 archive_cmds_need_lc=no
12955 hardcode_shlibpath_var=no
12956 hardcode_libdir_flag_spec='$wl-R,$libdir'
12957 hardcode_libdir_separator=':'
12958 link_all_deplibs=yes
12959 export_dynamic_flag_spec='$wl-Bexport'
12960 runpath_var='LD_RUN_PATH'
12961
12962 if test yes = "$GCC"; then
12963 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12964 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12965 else
12966 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12967 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12968 fi
12969 ;;
12970
12971 uts4*)
12972 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12973 hardcode_libdir_flag_spec='-L$libdir'
12974 hardcode_shlibpath_var=no
12975 ;;
12976
12977 *)
12978 ld_shlibs=no
12979 ;;
12980 esac
12981
12982 if test sni = "$host_vendor"; then
12983 case $host in
12984 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12985 export_dynamic_flag_spec='$wl-Blargedynsym'
12986 ;;
12987 esac
12988 fi
12989 fi
12990
12991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12992 printf "%s\n" "$ld_shlibs" >&6; }
12993 test no = "$ld_shlibs" && can_build_shared=no
12994
12995 with_gnu_ld=$with_gnu_ld
12996
12997
12998
12999
13000
13001
13002
13003
13004
13005
13006
13007
13008
13009
13010
13011 #
13012 # Do we need to explicitly link libc?
13013 #
13014 case "x$archive_cmds_need_lc" in
13015 x|xyes)
13016 # Assume -lc should be added
13017 archive_cmds_need_lc=yes
13018
13019 if test yes,yes = "$GCC,$enable_shared"; then
13020 case $archive_cmds in
13021 *'~'*)
13022 # FIXME: we may have to deal with multi-command sequences.
13023 ;;
13024 '$CC '*)
13025 # Test whether the compiler implicitly links with -lc since on some
13026 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13027 # to ld, don't add -lc before -lgcc.
13028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13029 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
13030 if test ${lt_cv_archive_cmds_need_lc+y}
13031 then :
13032 printf %s "(cached) " >&6
13033 else case e in #(
13034 e) $RM conftest*
13035 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13036
13037 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13038 (eval $ac_compile) 2>&5
13039 ac_status=$?
13040 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13041 test $ac_status = 0; } 2>conftest.err; then
13042 soname=conftest
13043 lib=conftest
13044 libobjs=conftest.$ac_objext
13045 deplibs=
13046 wl=$lt_prog_compiler_wl
13047 pic_flag=$lt_prog_compiler_pic
13048 compiler_flags=-v
13049 linker_flags=-v
13050 verstring=
13051 output_objdir=.
13052 libname=conftest
13053 lt_save_allow_undefined_flag=$allow_undefined_flag
13054 allow_undefined_flag=
13055 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13056 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13057 ac_status=$?
13058 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13059 test $ac_status = 0; }
13060 then
13061 lt_cv_archive_cmds_need_lc=no
13062 else
13063 lt_cv_archive_cmds_need_lc=yes
13064 fi
13065 allow_undefined_flag=$lt_save_allow_undefined_flag
13066 else
13067 cat conftest.err 1>&5
13068 fi
13069 $RM conftest*
13070 ;;
13071 esac
13072 fi
13073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13074 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
13075 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13076 ;;
13077 esac
13078 fi
13079 ;;
13080 esac
13081
13082
13083
13084
13085
13086
13087
13088
13089
13090
13091
13092
13093
13094
13095
13096
13097
13098
13099
13100
13101
13102
13103
13104
13105
13106
13107
13108
13109
13110
13111
13112
13113
13114
13115
13116
13117
13118
13119
13120
13121
13122
13123
13124
13125
13126
13127
13128
13129
13130
13131
13132
13133
13134
13135
13136
13137
13138
13139
13140
13141
13142
13143
13144
13145
13146
13147
13148
13149
13150
13151
13152
13153
13154
13155
13156
13157
13158
13159
13160
13161
13162
13163
13164
13165
13166
13167
13168
13169
13170
13171
13172
13173
13174
13175
13176
13177
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200
13201
13202
13203
13204
13205
13206
13207
13208
13209
13210
13211
13212
13213
13214
13215
13216
13217
13218
13219
13220
13221
13222
13223
13224
13225
13226
13227
13228
13229
13230
13231
13232
13233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13234 printf %s "checking dynamic linker characteristics... " >&6; }
13235
13236 if test yes = "$GCC"; then
13237 case $host_os in
13238 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
13239 *) lt_awk_arg='/^libraries:/' ;;
13240 esac
13241 case $host_os in
13242 mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
13243 *) lt_sed_strip_eq='s|=/|/|g' ;;
13244 esac
13245 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13246 case $lt_search_path_spec in
13247 *\;*)
13248 # if the path contains ";" then we assume it to be the separator
13249 # otherwise default to the standard path separator (i.e. ":") - it is
13250 # assumed that no part of a normal pathname contains ";" but that should
13251 # okay in the real world where ";" in dirpaths is itself problematic.
13252 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13253 ;;
13254 *)
13255 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13256 ;;
13257 esac
13258 # Ok, now we have the path, separated by spaces, we can step through it
13259 # and add multilib dir if necessary...
13260 lt_tmp_lt_search_path_spec=
13261 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13262 # ...but if some path component already ends with the multilib dir we assume
13263 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
13264 case "$lt_multi_os_dir; $lt_search_path_spec " in
13265 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
13266 lt_multi_os_dir=
13267 ;;
13268 esac
13269 for lt_sys_path in $lt_search_path_spec; do
13270 if test -d "$lt_sys_path$lt_multi_os_dir"; then
13271 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
13272 elif test -n "$lt_multi_os_dir"; then
13273 test -d "$lt_sys_path" && \
13274 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13275 fi
13276 done
13277 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13278 BEGIN {RS = " "; FS = "/|\n";} {
13279 lt_foo = "";
13280 lt_count = 0;
13281 for (lt_i = NF; lt_i > 0; lt_i--) {
13282 if ($lt_i != "" && $lt_i != ".") {
13283 if ($lt_i == "..") {
13284 lt_count++;
13285 } else {
13286 if (lt_count == 0) {
13287 lt_foo = "/" $lt_i lt_foo;
13288 } else {
13289 lt_count--;
13290 }
13291 }
13292 }
13293 }
13294 if (lt_foo != "") { lt_freq[lt_foo]++; }
13295 if (lt_freq[lt_foo] == 1) { print lt_foo; }
13296 }'`
13297 # AWK program above erroneously prepends '/' to C:/dos/paths
13298 # for these hosts.
13299 case $host_os in
13300 mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13301 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
13302 esac
13303 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13304 else
13305 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13306 fi
13307 library_names_spec=
13308 libname_spec='lib$name'
13309 soname_spec=
13310 shrext_cmds=.so
13311 postinstall_cmds=
13312 postuninstall_cmds=
13313 finish_cmds=
13314 finish_eval=
13315 shlibpath_var=
13316 shlibpath_overrides_runpath=unknown
13317 version_type=none
13318 dynamic_linker="$host_os ld.so"
13319 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13320 need_lib_prefix=unknown
13321 hardcode_into_libs=no
13322
13323 # when you set need_version to no, make sure it does not cause -set_version
13324 # flags to be left without arguments
13325 need_version=unknown
13326
13327
13328
13329 case $host_os in
13330 aix3*)
13331 version_type=linux # correct to gnu/linux during the next big refactor
13332 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
13333 shlibpath_var=LIBPATH
13334
13335 # AIX 3 has no versioning support, so we append a major version to the name.
13336 soname_spec='$libname$release$shared_ext$major'
13337 ;;
13338
13339 aix[4-9]*)
13340 version_type=linux # correct to gnu/linux during the next big refactor
13341 need_lib_prefix=no
13342 need_version=no
13343 hardcode_into_libs=yes
13344 if test ia64 = "$host_cpu"; then
13345 # AIX 5 supports IA64
13346 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
13347 shlibpath_var=LD_LIBRARY_PATH
13348 else
13349 # With GCC up to 2.95.x, collect2 would create an import file
13350 # for dependence libraries. The import file would start with
13351 # the line '#! .'. This would cause the generated library to
13352 # depend on '.', always an invalid library. This was fixed in
13353 # development snapshots of GCC prior to 3.0.
13354 case $host_os in
13355 aix4 | aix4.[01] | aix4.[01].*)
13356 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13357 echo ' yes '
13358 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
13359 :
13360 else
13361 can_build_shared=no
13362 fi
13363 ;;
13364 esac
13365 # Using Import Files as archive members, it is possible to support
13366 # filename-based versioning of shared library archives on AIX. While
13367 # this would work for both with and without runtime linking, it will
13368 # prevent static linking of such archives. So we do filename-based
13369 # shared library versioning with .so extension only, which is used
13370 # when both runtime linking and shared linking is enabled.
13371 # Unfortunately, runtime linking may impact performance, so we do
13372 # not want this to be the default eventually. Also, we use the
13373 # versioned .so libs for executables only if there is the -brtl
13374 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
13375 # To allow for filename-based versioning support, we need to create
13376 # libNAME.so.V as an archive file, containing:
13377 # *) an Import File, referring to the versioned filename of the
13378 # archive as well as the shared archive member, telling the
13379 # bitwidth (32 or 64) of that shared object, and providing the
13380 # list of exported symbols of that shared object, eventually
13381 # decorated with the 'weak' keyword
13382 # *) the shared object with the F_LOADONLY flag set, to really avoid
13383 # it being seen by the linker.
13384 # At run time we better use the real file rather than another symlink,
13385 # but for link time we create the symlink libNAME.so -> libNAME.so.V
13386
13387 case $with_aix_soname,$aix_use_runtimelinking in
13388 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
13389 # soname into executable. Probably we can add versioning support to
13390 # collect2, so additional links can be useful in future.
13391 aix,yes) # traditional libtool
13392 dynamic_linker='AIX unversionable lib.so'
13393 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13394 # instead of lib<name>.a to let people know that these are not
13395 # typical AIX shared libraries.
13396 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13397 ;;
13398 aix,no) # traditional AIX only
13399 dynamic_linker='AIX lib.a(lib.so.V)'
13400 # We preserve .a as extension for shared libraries through AIX4.2
13401 # and later when we are not doing run time linking.
13402 library_names_spec='$libname$release.a $libname.a'
13403 soname_spec='$libname$release$shared_ext$major'
13404 ;;
13405 svr4,*) # full svr4 only
13406 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
13407 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13408 # We do not specify a path in Import Files, so LIBPATH fires.
13409 shlibpath_overrides_runpath=yes
13410 ;;
13411 *,yes) # both, prefer svr4
13412 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
13413 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13414 # unpreferred sharedlib libNAME.a needs extra handling
13415 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"'
13416 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"'
13417 # We do not specify a path in Import Files, so LIBPATH fires.
13418 shlibpath_overrides_runpath=yes
13419 ;;
13420 *,no) # both, prefer aix
13421 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
13422 library_names_spec='$libname$release.a $libname.a'
13423 soname_spec='$libname$release$shared_ext$major'
13424 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
13425 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)'
13426 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"'
13427 ;;
13428 esac
13429 shlibpath_var=LIBPATH
13430 fi
13431 ;;
13432
13433 amigaos*)
13434 case $host_cpu in
13435 powerpc)
13436 # Since July 2007 AmigaOS4 officially supports .so libraries.
13437 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13438 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13439 ;;
13440 m68k)
13441 library_names_spec='$libname.ixlibrary $libname.a'
13442 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13443 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'
13444 ;;
13445 esac
13446 ;;
13447
13448 beos*)
13449 library_names_spec='$libname$shared_ext'
13450 dynamic_linker="$host_os ld.so"
13451 shlibpath_var=LIBRARY_PATH
13452 ;;
13453
13454 bsdi[45]*)
13455 version_type=linux # correct to gnu/linux during the next big refactor
13456 need_version=no
13457 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13458 soname_spec='$libname$release$shared_ext$major'
13459 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13460 shlibpath_var=LD_LIBRARY_PATH
13461 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13462 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13463 # the default ld.so.conf also contains /usr/contrib/lib and
13464 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13465 # libtool to hard-code these into programs
13466 ;;
13467
13468 cygwin* | mingw* | windows* | pw32* | cegcc*)
13469 version_type=windows
13470 shrext_cmds=.dll
13471 need_version=no
13472 need_lib_prefix=no
13473
13474 case $GCC,$cc_basename in
13475 yes,*)
13476 # gcc
13477 library_names_spec='$libname.dll.a'
13478 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13479 # If user builds GCC with multilib enabled,
13480 # it should just install on $(libdir)
13481 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
13482 if test xyes = x"$multilib"; then
13483 postinstall_cmds='base_file=`basename \$file`~
13484 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13485 dldir=$destdir/`dirname \$dlpath`~
13486 $install_prog $dir/$dlname $destdir/$dlname~
13487 chmod a+x $destdir/$dlname~
13488 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13489 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
13490 fi'
13491 else
13492 postinstall_cmds='base_file=`basename \$file`~
13493 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13494 dldir=$destdir/`dirname \$dlpath`~
13495 test -d \$dldir || mkdir -p \$dldir~
13496 $install_prog $dir/$dlname \$dldir/$dlname~
13497 chmod a+x \$dldir/$dlname~
13498 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13499 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13500 fi'
13501 fi
13502 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13503 dlpath=$dir/\$dldll~
13504 $RM \$dlpath'
13505 shlibpath_overrides_runpath=yes
13506
13507 case $host_os in
13508 cygwin*)
13509 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13510 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13511
13512 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13513 ;;
13514 mingw* | windows* | cegcc*)
13515 # MinGW DLLs use traditional 'lib' prefix
13516 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13517 ;;
13518 pw32*)
13519 # pw32 DLLs use 'pw' prefix rather than 'lib'
13520 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13521 ;;
13522 esac
13523 dynamic_linker='Win32 ld.exe'
13524 ;;
13525
13526 *,cl* | *,icl*)
13527 # Native MSVC or ICC
13528 libname_spec='$name'
13529 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13530 library_names_spec='$libname.dll.lib'
13531
13532 case $build_os in
13533 mingw* | windows*)
13534 sys_lib_search_path_spec=
13535 lt_save_ifs=$IFS
13536 IFS=';'
13537 for lt_path in $LIB
13538 do
13539 IFS=$lt_save_ifs
13540 # Let DOS variable expansion print the short 8.3 style file name.
13541 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13542 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13543 done
13544 IFS=$lt_save_ifs
13545 # Convert to MSYS style.
13546 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13547 ;;
13548 cygwin*)
13549 # Convert to unix form, then to dos form, then back to unix form
13550 # but this time dos style (no spaces!) so that the unix form looks
13551 # like /cygdrive/c/PROGRA~1:/cygdr...
13552 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13553 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13554 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13555 ;;
13556 *)
13557 sys_lib_search_path_spec=$LIB
13558 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13559 # It is most probably a Windows format PATH.
13560 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13561 else
13562 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13563 fi
13564 # FIXME: find the short name or the path components, as spaces are
13565 # common. (e.g. "Program Files" -> "PROGRA~1")
13566 ;;
13567 esac
13568
13569 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13570 postinstall_cmds='base_file=`basename \$file`~
13571 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13572 dldir=$destdir/`dirname \$dlpath`~
13573 test -d \$dldir || mkdir -p \$dldir~
13574 $install_prog $dir/$dlname \$dldir/$dlname'
13575 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13576 dlpath=$dir/\$dldll~
13577 $RM \$dlpath'
13578 shlibpath_overrides_runpath=yes
13579 dynamic_linker='Win32 link.exe'
13580 ;;
13581
13582 *)
13583 # Assume MSVC and ICC wrapper
13584 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
13585 dynamic_linker='Win32 ld.exe'
13586 ;;
13587 esac
13588 # FIXME: first we should search . and the directory the executable is in
13589 shlibpath_var=PATH
13590 ;;
13591
13592 darwin* | rhapsody*)
13593 dynamic_linker="$host_os dyld"
13594 version_type=darwin
13595 need_lib_prefix=no
13596 need_version=no
13597 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
13598 soname_spec='$libname$release$major$shared_ext'
13599 shlibpath_overrides_runpath=yes
13600 shlibpath_var=DYLD_LIBRARY_PATH
13601 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13602
13603 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13604 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13605 ;;
13606
13607 dgux*)
13608 version_type=linux # correct to gnu/linux during the next big refactor
13609 need_lib_prefix=no
13610 need_version=no
13611 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13612 soname_spec='$libname$release$shared_ext$major'
13613 shlibpath_var=LD_LIBRARY_PATH
13614 ;;
13615
13616 freebsd* | dragonfly* | midnightbsd*)
13617 # DragonFly does not have aout. When/if they implement a new
13618 # versioning mechanism, adjust this.
13619 if test -x /usr/bin/objformat; then
13620 objformat=`/usr/bin/objformat`
13621 else
13622 case $host_os in
13623 freebsd[23].*) objformat=aout ;;
13624 *) objformat=elf ;;
13625 esac
13626 fi
13627 version_type=freebsd-$objformat
13628 case $version_type in
13629 freebsd-elf*)
13630 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13631 soname_spec='$libname$release$shared_ext$major'
13632 need_version=no
13633 need_lib_prefix=no
13634 ;;
13635 freebsd-*)
13636 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13637 need_version=yes
13638 ;;
13639 esac
13640 case $host_cpu in
13641 powerpc64)
13642 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
13643 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
13644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13645 /* end confdefs.h. */
13646 int test_pointer_size[sizeof (void *) - 5];
13647
13648 _ACEOF
13649 if ac_fn_c_try_compile "$LINENO"
13650 then :
13651 shlibpath_var=LD_LIBRARY_PATH
13652 else case e in #(
13653 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
13654 esac
13655 fi
13656 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13657 ;;
13658 *)
13659 shlibpath_var=LD_LIBRARY_PATH
13660 ;;
13661 esac
13662 case $host_os in
13663 freebsd2.*)
13664 shlibpath_overrides_runpath=yes
13665 ;;
13666 freebsd3.[01]* | freebsdelf3.[01]*)
13667 shlibpath_overrides_runpath=yes
13668 hardcode_into_libs=yes
13669 ;;
13670 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13671 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13672 shlibpath_overrides_runpath=no
13673 hardcode_into_libs=yes
13674 ;;
13675 *) # from 4.6 on, and DragonFly
13676 shlibpath_overrides_runpath=yes
13677 hardcode_into_libs=yes
13678 ;;
13679 esac
13680 ;;
13681
13682 haiku*)
13683 version_type=linux # correct to gnu/linux during the next big refactor
13684 need_lib_prefix=no
13685 need_version=no
13686 dynamic_linker="$host_os runtime_loader"
13687 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13688 soname_spec='$libname$release$shared_ext$major'
13689 shlibpath_var=LIBRARY_PATH
13690 shlibpath_overrides_runpath=no
13691 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
13692 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
13693 hardcode_into_libs=no
13694 ;;
13695
13696 hpux9* | hpux10* | hpux11*)
13697 # Give a soname corresponding to the major version so that dld.sl refuses to
13698 # link against other versions.
13699 version_type=sunos
13700 need_lib_prefix=no
13701 need_version=no
13702 case $host_cpu in
13703 ia64*)
13704 shrext_cmds='.so'
13705 hardcode_into_libs=yes
13706 dynamic_linker="$host_os dld.so"
13707 shlibpath_var=LD_LIBRARY_PATH
13708 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13709 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13710 soname_spec='$libname$release$shared_ext$major'
13711 if test 32 = "$HPUX_IA64_MODE"; then
13712 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13713 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
13714 else
13715 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13716 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
13717 fi
13718 ;;
13719 hppa*64*)
13720 shrext_cmds='.sl'
13721 hardcode_into_libs=yes
13722 dynamic_linker="$host_os dld.sl"
13723 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13724 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13725 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13726 soname_spec='$libname$release$shared_ext$major'
13727 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13728 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13729 ;;
13730 *)
13731 shrext_cmds='.sl'
13732 dynamic_linker="$host_os dld.sl"
13733 shlibpath_var=SHLIB_PATH
13734 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13735 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13736 soname_spec='$libname$release$shared_ext$major'
13737 ;;
13738 esac
13739 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13740 postinstall_cmds='chmod 555 $lib'
13741 # or fails outright, so override atomically:
13742 install_override_mode=555
13743 ;;
13744
13745 interix[3-9]*)
13746 version_type=linux # correct to gnu/linux during the next big refactor
13747 need_lib_prefix=no
13748 need_version=no
13749 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13750 soname_spec='$libname$release$shared_ext$major'
13751 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13752 shlibpath_var=LD_LIBRARY_PATH
13753 shlibpath_overrides_runpath=no
13754 hardcode_into_libs=yes
13755 ;;
13756
13757 irix5* | irix6* | nonstopux*)
13758 case $host_os in
13759 nonstopux*) version_type=nonstopux ;;
13760 *)
13761 if test yes = "$lt_cv_prog_gnu_ld"; then
13762 version_type=linux # correct to gnu/linux during the next big refactor
13763 else
13764 version_type=irix
13765 fi ;;
13766 esac
13767 need_lib_prefix=no
13768 need_version=no
13769 soname_spec='$libname$release$shared_ext$major'
13770 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
13771 case $host_os in
13772 irix5* | nonstopux*)
13773 libsuff= shlibsuff=
13774 ;;
13775 *)
13776 case $LD in # libtool.m4 will add one of these switches to LD
13777 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13778 libsuff= shlibsuff= libmagic=32-bit;;
13779 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13780 libsuff=32 shlibsuff=N32 libmagic=N32;;
13781 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13782 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13783 *) libsuff= shlibsuff= libmagic=never-match;;
13784 esac
13785 ;;
13786 esac
13787 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13788 shlibpath_overrides_runpath=no
13789 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13790 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
13791 hardcode_into_libs=yes
13792 ;;
13793
13794 # No shared lib support for Linux oldld, aout, or coff.
13795 linux*oldld* | linux*aout* | linux*coff*)
13796 dynamic_linker=no
13797 ;;
13798
13799 linux*android*)
13800 version_type=none # Android doesn't support versioned libraries.
13801 need_lib_prefix=no
13802 need_version=no
13803 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
13804 soname_spec='$libname$release$shared_ext'
13805 finish_cmds=
13806 shlibpath_var=LD_LIBRARY_PATH
13807 shlibpath_overrides_runpath=yes
13808
13809 # This implies no fast_install, which is unacceptable.
13810 # Some rework will be needed to allow for fast_install
13811 # before this can be enabled.
13812 hardcode_into_libs=yes
13813
13814 dynamic_linker='Android linker'
13815 # -rpath works at least for libraries that are not overridden by
13816 # libraries installed in system locations.
13817 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13818 ;;
13819
13820 # This must be glibc/ELF.
13821 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13822 version_type=linux # correct to gnu/linux during the next big refactor
13823 need_lib_prefix=no
13824 need_version=no
13825 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13826 soname_spec='$libname$release$shared_ext$major'
13827 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13828 shlibpath_var=LD_LIBRARY_PATH
13829 shlibpath_overrides_runpath=no
13830
13831 # Some binutils ld are patched to set DT_RUNPATH
13832 if test ${lt_cv_shlibpath_overrides_runpath+y}
13833 then :
13834 printf %s "(cached) " >&6
13835 else case e in #(
13836 e) lt_cv_shlibpath_overrides_runpath=no
13837 save_LDFLAGS=$LDFLAGS
13838 save_libdir=$libdir
13839 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13840 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13842 /* end confdefs.h. */
13843
13844 int
13845 main (void)
13846 {
13847
13848 ;
13849 return 0;
13850 }
13851 _ACEOF
13852 if ac_fn_c_try_link "$LINENO"
13853 then :
13854 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
13855 then :
13856 lt_cv_shlibpath_overrides_runpath=yes
13857 fi
13858 fi
13859 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13860 conftest$ac_exeext conftest.$ac_ext
13861 LDFLAGS=$save_LDFLAGS
13862 libdir=$save_libdir
13863 ;;
13864 esac
13865 fi
13866
13867 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13868
13869 # This implies no fast_install, which is unacceptable.
13870 # Some rework will be needed to allow for fast_install
13871 # before this can be enabled.
13872 hardcode_into_libs=yes
13873
13874 # Ideally, we could use ldconfig to report *all* directories which are
13875 # searched for libraries, however this is still not possible. Aside from not
13876 # being certain /sbin/ldconfig is available, command
13877 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13878 # even though it is searched at run-time. Try to do the best guess by
13879 # appending ld.so.conf contents (and includes) to the search path.
13880 if test -f /etc/ld.so.conf; then
13881 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' ' '`
13882 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13883 fi
13884
13885 # We used to test for /lib/ld.so.1 and disable shared libraries on
13886 # powerpc, because MkLinux only supported shared libraries with the
13887 # GNU dynamic linker. Since this was broken with cross compilers,
13888 # most powerpc-linux boxes support dynamic linking these days and
13889 # people can always --disable-shared, the test was removed, and we
13890 # assume the GNU/Linux dynamic linker is in use.
13891 dynamic_linker='GNU/Linux ld.so'
13892 ;;
13893
13894 netbsdelf*-gnu)
13895 version_type=linux
13896 need_lib_prefix=no
13897 need_version=no
13898 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13899 soname_spec='$libname$release$shared_ext$major'
13900 shlibpath_var=LD_LIBRARY_PATH
13901 shlibpath_overrides_runpath=no
13902 hardcode_into_libs=yes
13903 dynamic_linker='NetBSD ld.elf_so'
13904 ;;
13905
13906 netbsd*)
13907 version_type=sunos
13908 need_lib_prefix=no
13909 need_version=no
13910 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13911 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13912 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13913 dynamic_linker='NetBSD (a.out) ld.so'
13914 else
13915 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13916 soname_spec='$libname$release$shared_ext$major'
13917 dynamic_linker='NetBSD ld.elf_so'
13918 fi
13919 shlibpath_var=LD_LIBRARY_PATH
13920 shlibpath_overrides_runpath=yes
13921 hardcode_into_libs=yes
13922 ;;
13923
13924 *-mlibc)
13925 version_type=linux # correct to gnu/linux during the next big refactor
13926 need_lib_prefix=no
13927 need_version=no
13928 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13929 soname_spec='$libname$release$shared_ext$major'
13930 dynamic_linker='mlibc ld.so'
13931 shlibpath_var=LD_LIBRARY_PATH
13932 shlibpath_overrides_runpath=no
13933 hardcode_into_libs=yes
13934 ;;
13935
13936 newsos6)
13937 version_type=linux # correct to gnu/linux during the next big refactor
13938 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13939 shlibpath_var=LD_LIBRARY_PATH
13940 shlibpath_overrides_runpath=yes
13941 ;;
13942
13943 *nto* | *qnx*)
13944 version_type=qnx
13945 need_lib_prefix=no
13946 need_version=no
13947 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13948 soname_spec='$libname$release$shared_ext$major'
13949 shlibpath_var=LD_LIBRARY_PATH
13950 shlibpath_overrides_runpath=no
13951 hardcode_into_libs=yes
13952 dynamic_linker='ldqnx.so'
13953 ;;
13954
13955 openbsd*)
13956 version_type=sunos
13957 sys_lib_dlsearch_path_spec=/usr/lib
13958 need_lib_prefix=no
13959 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13960 need_version=no
13961 else
13962 need_version=yes
13963 fi
13964 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13965 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13966 shlibpath_var=LD_LIBRARY_PATH
13967 shlibpath_overrides_runpath=yes
13968 ;;
13969
13970 os2*)
13971 libname_spec='$name'
13972 version_type=windows
13973 shrext_cmds=.dll
13974 need_version=no
13975 need_lib_prefix=no
13976 # OS/2 can only load a DLL with a base name of 8 characters or less.
13977 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13978 v=$($ECHO $release$versuffix | tr -d .-);
13979 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13980 $ECHO $n$v`$shared_ext'
13981 library_names_spec='${libname}_dll.$libext'
13982 dynamic_linker='OS/2 ld.exe'
13983 shlibpath_var=BEGINLIBPATH
13984 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13985 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13986 postinstall_cmds='base_file=`basename \$file`~
13987 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13988 dldir=$destdir/`dirname \$dlpath`~
13989 test -d \$dldir || mkdir -p \$dldir~
13990 $install_prog $dir/$dlname \$dldir/$dlname~
13991 chmod a+x \$dldir/$dlname~
13992 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13993 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13994 fi'
13995 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13996 dlpath=$dir/\$dldll~
13997 $RM \$dlpath'
13998 ;;
13999
14000 osf3* | osf4* | osf5*)
14001 version_type=osf
14002 need_lib_prefix=no
14003 need_version=no
14004 soname_spec='$libname$release$shared_ext$major'
14005 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14006 shlibpath_var=LD_LIBRARY_PATH
14007 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14008 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14009 ;;
14010
14011 rdos*)
14012 dynamic_linker=no
14013 ;;
14014
14015 serenity*)
14016 version_type=linux # correct to gnu/linux during the next big refactor
14017 need_lib_prefix=no
14018 need_version=no
14019 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14020 soname_spec='$libname$release$shared_ext$major'
14021 shlibpath_var=LD_LIBRARY_PATH
14022 shlibpath_overrides_runpath=no
14023 dynamic_linker='SerenityOS LibELF'
14024 ;;
14025
14026 solaris*)
14027 version_type=linux # correct to gnu/linux during the next big refactor
14028 need_lib_prefix=no
14029 need_version=no
14030 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14031 soname_spec='$libname$release$shared_ext$major'
14032 shlibpath_var=LD_LIBRARY_PATH
14033 shlibpath_overrides_runpath=yes
14034 hardcode_into_libs=yes
14035 # ldd complains unless libraries are executable
14036 postinstall_cmds='chmod +x $lib'
14037 ;;
14038
14039 sunos4*)
14040 version_type=sunos
14041 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14042 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14043 shlibpath_var=LD_LIBRARY_PATH
14044 shlibpath_overrides_runpath=yes
14045 if test yes = "$with_gnu_ld"; then
14046 need_lib_prefix=no
14047 fi
14048 need_version=yes
14049 ;;
14050
14051 sysv4 | sysv4.3*)
14052 version_type=linux # correct to gnu/linux during the next big refactor
14053 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14054 soname_spec='$libname$release$shared_ext$major'
14055 shlibpath_var=LD_LIBRARY_PATH
14056 case $host_vendor in
14057 sni)
14058 shlibpath_overrides_runpath=no
14059 need_lib_prefix=no
14060 runpath_var=LD_RUN_PATH
14061 ;;
14062 siemens)
14063 need_lib_prefix=no
14064 ;;
14065 motorola)
14066 need_lib_prefix=no
14067 need_version=no
14068 shlibpath_overrides_runpath=no
14069 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14070 ;;
14071 esac
14072 ;;
14073
14074 sysv4*MP*)
14075 if test -d /usr/nec; then
14076 version_type=linux # correct to gnu/linux during the next big refactor
14077 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
14078 soname_spec='$libname$shared_ext.$major'
14079 shlibpath_var=LD_LIBRARY_PATH
14080 fi
14081 ;;
14082
14083 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14084 version_type=sco
14085 need_lib_prefix=no
14086 need_version=no
14087 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
14088 soname_spec='$libname$release$shared_ext$major'
14089 shlibpath_var=LD_LIBRARY_PATH
14090 shlibpath_overrides_runpath=yes
14091 hardcode_into_libs=yes
14092 if test yes = "$with_gnu_ld"; then
14093 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14094 else
14095 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14096 case $host_os in
14097 sco3.2v5*)
14098 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14099 ;;
14100 esac
14101 fi
14102 sys_lib_dlsearch_path_spec='/usr/lib'
14103 ;;
14104
14105 tpf*)
14106 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14107 version_type=linux # correct to gnu/linux during the next big refactor
14108 need_lib_prefix=no
14109 need_version=no
14110 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14111 shlibpath_var=LD_LIBRARY_PATH
14112 shlibpath_overrides_runpath=no
14113 hardcode_into_libs=yes
14114 ;;
14115
14116 uts4*)
14117 version_type=linux # correct to gnu/linux during the next big refactor
14118 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14119 soname_spec='$libname$release$shared_ext$major'
14120 shlibpath_var=LD_LIBRARY_PATH
14121 ;;
14122
14123 emscripten*)
14124 version_type=none
14125 need_lib_prefix=no
14126 need_version=no
14127 library_names_spec='$libname$release$shared_ext'
14128 soname_spec='$libname$release$shared_ext'
14129 finish_cmds=
14130 dynamic_linker="Emscripten linker"
14131 lt_prog_compiler_wl=
14132 lt_prog_compiler_pic=
14133 lt_prog_compiler_static=
14134
14135
14136 if test yes = "$GCC"; then
14137 lt_prog_compiler_wl='-Wl,'
14138 lt_prog_compiler_static='-static'
14139
14140 case $host_os in
14141 aix*)
14142 # All AIX code is PIC.
14143 if test ia64 = "$host_cpu"; then
14144 # AIX 5 now supports IA64 processor
14145 lt_prog_compiler_static='-Bstatic'
14146 fi
14147 lt_prog_compiler_pic='-fPIC'
14148 ;;
14149
14150 amigaos*)
14151 case $host_cpu in
14152 powerpc)
14153 # see comment about AmigaOS4 .so support
14154 lt_prog_compiler_pic='-fPIC'
14155 ;;
14156 m68k)
14157 # FIXME: we need at least 68020 code to build shared libraries, but
14158 # adding the '-m68020' flag to GCC prevents building anything better,
14159 # like '-m68040'.
14160 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14161 ;;
14162 esac
14163 ;;
14164
14165 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14166 # PIC is the default for these OSes.
14167 ;;
14168
14169 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
14170 # This hack is so that the source file can tell whether it is being
14171 # built for inclusion in a dll (and should export symbols for example).
14172 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14173 # (--disable-auto-import) libraries
14174 lt_prog_compiler_pic='-DDLL_EXPORT'
14175 case $host_os in
14176 os2*)
14177 lt_prog_compiler_static='$wl-static'
14178 ;;
14179 esac
14180 ;;
14181
14182 darwin* | rhapsody*)
14183 # PIC is the default on this platform
14184 # Common symbols not allowed in MH_DYLIB files
14185 lt_prog_compiler_pic='-fno-common'
14186 ;;
14187
14188 haiku*)
14189 # PIC is the default for Haiku.
14190 # The "-static" flag exists, but is broken.
14191 lt_prog_compiler_static=
14192 ;;
14193
14194 hpux*)
14195 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14196 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14197 # sets the default TLS model and affects inlining.
14198 case $host_cpu in
14199 hppa*64*)
14200 # +Z the default
14201 ;;
14202 *)
14203 lt_prog_compiler_pic='-fPIC'
14204 ;;
14205 esac
14206 ;;
14207
14208 interix[3-9]*)
14209 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14210 # Instead, we relocate shared libraries at runtime.
14211 ;;
14212
14213 msdosdjgpp*)
14214 # Just because we use GCC doesn't mean we suddenly get shared libraries
14215 # on systems that don't support them.
14216 lt_prog_compiler_can_build_shared=no
14217 enable_shared=no
14218 ;;
14219
14220 *nto* | *qnx*)
14221 # QNX uses GNU C++, but need to define -shared option too, otherwise
14222 # it will coredump.
14223 lt_prog_compiler_pic='-fPIC -shared'
14224 ;;
14225
14226 sysv4*MP*)
14227 if test -d /usr/nec; then
14228 lt_prog_compiler_pic=-Kconform_pic
14229 fi
14230 ;;
14231
14232 *)
14233 lt_prog_compiler_pic='-fPIC'
14234 ;;
14235 esac
14236
14237 case $cc_basename in
14238 nvcc*) # Cuda Compiler Driver 2.2
14239 lt_prog_compiler_wl='-Xlinker '
14240 if test -n "$lt_prog_compiler_pic"; then
14241 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14242 fi
14243 ;;
14244 esac
14245 else
14246 # PORTME Check for flag to pass linker flags through the system compiler.
14247 case $host_os in
14248 aix*)
14249 lt_prog_compiler_wl='-Wl,'
14250 if test ia64 = "$host_cpu"; then
14251 # AIX 5 now supports IA64 processor
14252 lt_prog_compiler_static='-Bstatic'
14253 else
14254 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14255 fi
14256 ;;
14257
14258 darwin* | rhapsody*)
14259 # PIC is the default on this platform
14260 # Common symbols not allowed in MH_DYLIB files
14261 lt_prog_compiler_pic='-fno-common'
14262 case $cc_basename in
14263 nagfor*)
14264 # NAG Fortran compiler
14265 lt_prog_compiler_wl='-Wl,-Wl,,'
14266 lt_prog_compiler_pic='-PIC'
14267 lt_prog_compiler_static='-Bstatic'
14268 ;;
14269 esac
14270 ;;
14271
14272 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
14273 # This hack is so that the source file can tell whether it is being
14274 # built for inclusion in a dll (and should export symbols for example).
14275 lt_prog_compiler_pic='-DDLL_EXPORT'
14276 case $host_os in
14277 os2*)
14278 lt_prog_compiler_static='$wl-static'
14279 ;;
14280 esac
14281 ;;
14282
14283 hpux9* | hpux10* | hpux11*)
14284 lt_prog_compiler_wl='-Wl,'
14285 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14286 # not for PA HP-UX.
14287 case $host_cpu in
14288 hppa*64*|ia64*)
14289 # +Z the default
14290 ;;
14291 *)
14292 lt_prog_compiler_pic='+Z'
14293 ;;
14294 esac
14295 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14296 lt_prog_compiler_static='$wl-a ${wl}archive'
14297 ;;
14298
14299 irix5* | irix6* | nonstopux*)
14300 lt_prog_compiler_wl='-Wl,'
14301 # PIC (with -KPIC) is the default.
14302 lt_prog_compiler_static='-non_shared'
14303 ;;
14304
14305 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14306 case $cc_basename in
14307 # old Intel for x86_64, which still supported -KPIC.
14308 ecc*)
14309 lt_prog_compiler_wl='-Wl,'
14310 lt_prog_compiler_pic='-KPIC'
14311 lt_prog_compiler_static='-static'
14312 ;;
14313 *flang* | ftn | f18* | f95*)
14314 # Flang compiler.
14315 lt_prog_compiler_wl='-Wl,'
14316 lt_prog_compiler_pic='-fPIC'
14317 lt_prog_compiler_static='-static'
14318 ;;
14319 # icc used to be incompatible with GCC.
14320 # ICC 10 doesn't accept -KPIC any more.
14321 icc* | ifort*)
14322 lt_prog_compiler_wl='-Wl,'
14323 lt_prog_compiler_pic='-fPIC'
14324 lt_prog_compiler_static='-static'
14325 ;;
14326 # Lahey Fortran 8.1.
14327 lf95*)
14328 lt_prog_compiler_wl='-Wl,'
14329 lt_prog_compiler_pic='--shared'
14330 lt_prog_compiler_static='--static'
14331 ;;
14332 nagfor*)
14333 # NAG Fortran compiler
14334 lt_prog_compiler_wl='-Wl,-Wl,,'
14335 lt_prog_compiler_pic='-PIC'
14336 lt_prog_compiler_static='-Bstatic'
14337 ;;
14338 tcc*)
14339 # Fabrice Bellard et al's Tiny C Compiler
14340 lt_prog_compiler_wl='-Wl,'
14341 lt_prog_compiler_pic='-fPIC'
14342 lt_prog_compiler_static='-static'
14343 ;;
14344 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14345 # Portland Group compilers (*not* the Pentium gcc compiler,
14346 # which looks to be a dead project)
14347 lt_prog_compiler_wl='-Wl,'
14348 lt_prog_compiler_pic='-fpic'
14349 lt_prog_compiler_static='-Bstatic'
14350 ;;
14351 ccc*)
14352 lt_prog_compiler_wl='-Wl,'
14353 # All Alpha code is PIC.
14354 lt_prog_compiler_static='-non_shared'
14355 ;;
14356 xl* | bgxl* | bgf* | mpixl*)
14357 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14358 lt_prog_compiler_wl='-Wl,'
14359 lt_prog_compiler_pic='-qpic'
14360 lt_prog_compiler_static='-qstaticlink'
14361 ;;
14362 *)
14363 case `$CC -V 2>&1 | $SED 5q` in
14364 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
14365 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14366 lt_prog_compiler_pic='-KPIC'
14367 lt_prog_compiler_static='-Bstatic'
14368 lt_prog_compiler_wl=''
14369 ;;
14370 *Sun\ F* | *Sun*Fortran*)
14371 lt_prog_compiler_pic='-KPIC'
14372 lt_prog_compiler_static='-Bstatic'
14373 lt_prog_compiler_wl='-Qoption ld '
14374 ;;
14375 *Sun\ C*)
14376 # Sun C 5.9
14377 lt_prog_compiler_pic='-KPIC'
14378 lt_prog_compiler_static='-Bstatic'
14379 lt_prog_compiler_wl='-Wl,'
14380 ;;
14381 *Intel*\ [CF]*Compiler*)
14382 lt_prog_compiler_wl='-Wl,'
14383 lt_prog_compiler_pic='-fPIC'
14384 lt_prog_compiler_static='-static'
14385 ;;
14386 *Portland\ Group*)
14387 lt_prog_compiler_wl='-Wl,'
14388 lt_prog_compiler_pic='-fpic'
14389 lt_prog_compiler_static='-Bstatic'
14390 ;;
14391 esac
14392 ;;
14393 esac
14394 ;;
14395
14396 newsos6)
14397 lt_prog_compiler_pic='-KPIC'
14398 lt_prog_compiler_static='-Bstatic'
14399 ;;
14400
14401 *-mlibc)
14402 lt_prog_compiler_wl='-Wl,'
14403 lt_prog_compiler_pic='-fPIC'
14404 lt_prog_compiler_static='-static'
14405 ;;
14406
14407 *nto* | *qnx*)
14408 # QNX uses GNU C++, but need to define -shared option too, otherwise
14409 # it will coredump.
14410 lt_prog_compiler_pic='-fPIC -shared'
14411 ;;
14412
14413 osf3* | osf4* | osf5*)
14414 lt_prog_compiler_wl='-Wl,'
14415 # All OSF/1 code is PIC.
14416 lt_prog_compiler_static='-non_shared'
14417 ;;
14418
14419 rdos*)
14420 lt_prog_compiler_static='-non_shared'
14421 ;;
14422
14423 serenity*)
14424 ;;
14425
14426 solaris*)
14427 lt_prog_compiler_pic='-KPIC'
14428 lt_prog_compiler_static='-Bstatic'
14429 case $cc_basename in
14430 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
14431 lt_prog_compiler_wl='-Qoption ld ';;
14432 *)
14433 lt_prog_compiler_wl='-Wl,';;
14434 esac
14435 ;;
14436
14437 sunos4*)
14438 lt_prog_compiler_wl='-Qoption ld '
14439 lt_prog_compiler_pic='-PIC'
14440 lt_prog_compiler_static='-Bstatic'
14441 ;;
14442
14443 sysv4 | sysv4.2uw2* | sysv4.3*)
14444 lt_prog_compiler_wl='-Wl,'
14445 lt_prog_compiler_pic='-KPIC'
14446 lt_prog_compiler_static='-Bstatic'
14447 ;;
14448
14449 sysv4*MP*)
14450 if test -d /usr/nec; then
14451 lt_prog_compiler_pic='-Kconform_pic'
14452 lt_prog_compiler_static='-Bstatic'
14453 fi
14454 ;;
14455
14456 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14457 lt_prog_compiler_wl='-Wl,'
14458 lt_prog_compiler_pic='-KPIC'
14459 lt_prog_compiler_static='-Bstatic'
14460 ;;
14461
14462 unicos*)
14463 lt_prog_compiler_wl='-Wl,'
14464 lt_prog_compiler_can_build_shared=no
14465 ;;
14466
14467 uts4*)
14468 lt_prog_compiler_pic='-pic'
14469 lt_prog_compiler_static='-Bstatic'
14470 ;;
14471
14472 *)
14473 lt_prog_compiler_can_build_shared=no
14474 ;;
14475 esac
14476 fi
14477
14478 case $host_os in
14479 # For platforms that do not support PIC, -DPIC is meaningless:
14480 *djgpp*)
14481 lt_prog_compiler_pic=
14482 ;;
14483 *)
14484 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14485 ;;
14486 esac
14487
14488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14489 printf %s "checking for $compiler option to produce PIC... " >&6; }
14490 if test ${lt_cv_prog_compiler_pic+y}
14491 then :
14492 printf %s "(cached) " >&6
14493 else case e in #(
14494 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
14495 esac
14496 fi
14497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14498 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
14499 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
14500
14501 #
14502 # Check to make sure the PIC flag actually works.
14503 #
14504 if test -n "$lt_prog_compiler_pic"; then
14505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14506 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14507 if test ${lt_cv_prog_compiler_pic_works+y}
14508 then :
14509 printf %s "(cached) " >&6
14510 else case e in #(
14511 e) lt_cv_prog_compiler_pic_works=no
14512 ac_outfile=conftest.$ac_objext
14513 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14514 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
14515 # Insert the option either (1) after the last *FLAGS variable, or
14516 # (2) before a word containing "conftest.", or (3) at the end.
14517 # Note that $ac_compile itself does not contain backslashes and begins
14518 # with a dollar sign (not a hyphen), so the echo should work correctly.
14519 # The option is referenced via a variable to avoid confusing sed.
14520 lt_compile=`echo "$ac_compile" | $SED \
14521 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14522 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14523 -e 's:$: $lt_compiler_flag:'`
14524 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14525 (eval "$lt_compile" 2>conftest.err)
14526 ac_status=$?
14527 cat conftest.err >&5
14528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14529 if (exit $ac_status) && test -s "$ac_outfile"; then
14530 # The compiler can only warn and ignore the option if not recognized
14531 # So say no if there are warnings other than the usual output.
14532 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14533 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14534 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14535 lt_cv_prog_compiler_pic_works=yes
14536 fi
14537 fi
14538 $RM conftest*
14539 ;;
14540 esac
14541 fi
14542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14543 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
14544
14545 if test yes = "$lt_cv_prog_compiler_pic_works"; then
14546 case $lt_prog_compiler_pic in
14547 "" | " "*) ;;
14548 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14549 esac
14550 else
14551 lt_prog_compiler_pic=
14552 lt_prog_compiler_can_build_shared=no
14553 fi
14554
14555 fi
14556
14557
14558
14559
14560
14561 #
14562 # Check to make sure the static flag actually works.
14563 #
14564 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14566 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14567 if test ${lt_cv_prog_compiler_static_works+y}
14568 then :
14569 printf %s "(cached) " >&6
14570 else case e in #(
14571 e) lt_cv_prog_compiler_static_works=no
14572 save_LDFLAGS=$LDFLAGS
14573 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14574 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14575 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14576 # The linker can only warn and ignore the option if not recognized
14577 # So say no if there are warnings
14578 if test -s conftest.err; then
14579 # Append any errors to the config.log.
14580 cat conftest.err 1>&5
14581 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14582 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14583 if diff conftest.exp conftest.er2 >/dev/null; then
14584 lt_cv_prog_compiler_static_works=yes
14585 fi
14586 else
14587 lt_cv_prog_compiler_static_works=yes
14588 fi
14589 fi
14590 $RM -r conftest*
14591 LDFLAGS=$save_LDFLAGS
14592 ;;
14593 esac
14594 fi
14595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14596 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
14597
14598 if test yes = "$lt_cv_prog_compiler_static_works"; then
14599 :
14600 else
14601 lt_prog_compiler_static=
14602 fi
14603
14604
14605
14606 ='-fPIC'
14607 archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
14608 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'
14609 archive_cmds_need_lc=no
14610 no_undefined_flag=
14611 ;;
14612
14613 *)
14614 dynamic_linker=no
14615 ;;
14616 esac
14617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14618 printf "%s\n" "$dynamic_linker" >&6; }
14619 test no = "$dynamic_linker" && can_build_shared=no
14620
14621 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14622 if test yes = "$GCC"; then
14623 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14624 fi
14625
14626 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14627 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
14628 fi
14629
14630 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14631 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
14632 fi
14633
14634 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14635 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14636
14637 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14638 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14639
14640 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14641 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
14718
14719
14720
14721
14722
14723
14724
14725
14726
14727
14728
14729
14730
14731
14732
14733
14734
14735
14736
14737
14738
14739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14740 printf %s "checking how to hardcode library paths into programs... " >&6; }
14741 hardcode_action=
14742 if test -n "$hardcode_libdir_flag_spec" ||
14743 test -n "$runpath_var" ||
14744 test yes = "$hardcode_automatic"; then
14745
14746 # We can hardcode non-existent directories.
14747 if test no != "$hardcode_direct" &&
14748 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14749 # have to relink, otherwise we might link with an installed library
14750 # when we should be linking with a yet-to-be-installed one
14751 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
14752 test no != "$hardcode_minus_L"; then
14753 # Linking always hardcodes the temporary library directory.
14754 hardcode_action=relink
14755 else
14756 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14757 hardcode_action=immediate
14758 fi
14759 else
14760 # We cannot hardcode anything, or else we can only hardcode existing
14761 # directories.
14762 hardcode_action=unsupported
14763 fi
14764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14765 printf "%s\n" "$hardcode_action" >&6; }
14766
14767 if test relink = "$hardcode_action" ||
14768 test yes = "$inherit_rpath"; then
14769 # Fast installation is not supported
14770 enable_fast_install=no
14771 elif test yes = "$shlibpath_overrides_runpath" ||
14772 test no = "$enable_shared"; then
14773 # Fast installation is not necessary
14774 enable_fast_install=needless
14775 fi
14776
14777
14778
14779
14780
14781
14782 if test yes != "$enable_dlopen"; then
14783 enable_dlopen=unknown
14784 enable_dlopen_self=unknown
14785 enable_dlopen_self_static=unknown
14786 else
14787 lt_cv_dlopen=no
14788 lt_cv_dlopen_libs=
14789
14790 case $host_os in
14791 beos*)
14792 lt_cv_dlopen=load_add_on
14793 lt_cv_dlopen_libs=
14794 lt_cv_dlopen_self=yes
14795 ;;
14796
14797 mingw* | windows* | pw32* | cegcc*)
14798 lt_cv_dlopen=LoadLibrary
14799 lt_cv_dlopen_libs=
14800 ;;
14801
14802 cygwin*)
14803 lt_cv_dlopen=dlopen
14804 lt_cv_dlopen_libs=
14805 ;;
14806
14807 darwin*)
14808 # if libdl is installed we need to link against it
14809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14810 printf %s "checking for dlopen in -ldl... " >&6; }
14811 if test ${ac_cv_lib_dl_dlopen+y}
14812 then :
14813 printf %s "(cached) " >&6
14814 else case e in #(
14815 e) ac_check_lib_save_LIBS=$LIBS
14816 LIBS="-ldl $LIBS"
14817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14818 /* end confdefs.h. */
14819
14820 /* Override any GCC internal prototype to avoid an error.
14821 Use char because int might match the return type of a GCC
14822 builtin and then its argument prototype would still apply.
14823 The 'extern "C"' is for builds by C++ compilers;
14824 although this is not generally supported in C code supporting it here
14825 has little cost and some practical benefit (sr 110532). */
14826 #ifdef __cplusplus
14827 extern "C"
14828 #endif
14829 char dlopen (void);
14830 int
14831 main (void)
14832 {
14833 return dlopen ();
14834 ;
14835 return 0;
14836 }
14837 _ACEOF
14838 if ac_fn_c_try_link "$LINENO"
14839 then :
14840 ac_cv_lib_dl_dlopen=yes
14841 else case e in #(
14842 e) ac_cv_lib_dl_dlopen=no ;;
14843 esac
14844 fi
14845 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14846 conftest$ac_exeext conftest.$ac_ext
14847 LIBS=$ac_check_lib_save_LIBS ;;
14848 esac
14849 fi
14850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14851 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
14852 if test "x$ac_cv_lib_dl_dlopen" = xyes
14853 then :
14854 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14855 else case e in #(
14856 e)
14857 lt_cv_dlopen=dyld
14858 lt_cv_dlopen_libs=
14859 lt_cv_dlopen_self=yes
14860 ;;
14861 esac
14862 fi
14863
14864 ;;
14865
14866 tpf*)
14867 # Don't try to run any link tests for TPF. We know it's impossible
14868 # because TPF is a cross-compiler, and we know how we open DSOs.
14869 lt_cv_dlopen=dlopen
14870 lt_cv_dlopen_libs=
14871 lt_cv_dlopen_self=no
14872 ;;
14873
14874 *)
14875 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14876 if test "x$ac_cv_func_shl_load" = xyes
14877 then :
14878 lt_cv_dlopen=shl_load
14879 else case e in #(
14880 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14881 printf %s "checking for shl_load in -ldld... " >&6; }
14882 if test ${ac_cv_lib_dld_shl_load+y}
14883 then :
14884 printf %s "(cached) " >&6
14885 else case e in #(
14886 e) ac_check_lib_save_LIBS=$LIBS
14887 LIBS="-ldld $LIBS"
14888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14889 /* end confdefs.h. */
14890
14891 /* Override any GCC internal prototype to avoid an error.
14892 Use char because int might match the return type of a GCC
14893 builtin and then its argument prototype would still apply.
14894 The 'extern "C"' is for builds by C++ compilers;
14895 although this is not generally supported in C code supporting it here
14896 has little cost and some practical benefit (sr 110532). */
14897 #ifdef __cplusplus
14898 extern "C"
14899 #endif
14900 char shl_load (void);
14901 int
14902 main (void)
14903 {
14904 return shl_load ();
14905 ;
14906 return 0;
14907 }
14908 _ACEOF
14909 if ac_fn_c_try_link "$LINENO"
14910 then :
14911 ac_cv_lib_dld_shl_load=yes
14912 else case e in #(
14913 e) ac_cv_lib_dld_shl_load=no ;;
14914 esac
14915 fi
14916 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14917 conftest$ac_exeext conftest.$ac_ext
14918 LIBS=$ac_check_lib_save_LIBS ;;
14919 esac
14920 fi
14921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14922 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
14923 if test "x$ac_cv_lib_dld_shl_load" = xyes
14924 then :
14925 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
14926 else case e in #(
14927 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14928 if test "x$ac_cv_func_dlopen" = xyes
14929 then :
14930 lt_cv_dlopen=dlopen
14931 else case e in #(
14932 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14933 printf %s "checking for dlopen in -ldl... " >&6; }
14934 if test ${ac_cv_lib_dl_dlopen+y}
14935 then :
14936 printf %s "(cached) " >&6
14937 else case e in #(
14938 e) ac_check_lib_save_LIBS=$LIBS
14939 LIBS="-ldl $LIBS"
14940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14941 /* end confdefs.h. */
14942
14943 /* Override any GCC internal prototype to avoid an error.
14944 Use char because int might match the return type of a GCC
14945 builtin and then its argument prototype would still apply.
14946 The 'extern "C"' is for builds by C++ compilers;
14947 although this is not generally supported in C code supporting it here
14948 has little cost and some practical benefit (sr 110532). */
14949 #ifdef __cplusplus
14950 extern "C"
14951 #endif
14952 char dlopen (void);
14953 int
14954 main (void)
14955 {
14956 return dlopen ();
14957 ;
14958 return 0;
14959 }
14960 _ACEOF
14961 if ac_fn_c_try_link "$LINENO"
14962 then :
14963 ac_cv_lib_dl_dlopen=yes
14964 else case e in #(
14965 e) ac_cv_lib_dl_dlopen=no ;;
14966 esac
14967 fi
14968 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14969 conftest$ac_exeext conftest.$ac_ext
14970 LIBS=$ac_check_lib_save_LIBS ;;
14971 esac
14972 fi
14973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14974 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
14975 if test "x$ac_cv_lib_dl_dlopen" = xyes
14976 then :
14977 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14978 else case e in #(
14979 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14980 printf %s "checking for dlopen in -lsvld... " >&6; }
14981 if test ${ac_cv_lib_svld_dlopen+y}
14982 then :
14983 printf %s "(cached) " >&6
14984 else case e in #(
14985 e) ac_check_lib_save_LIBS=$LIBS
14986 LIBS="-lsvld $LIBS"
14987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14988 /* end confdefs.h. */
14989
14990 /* Override any GCC internal prototype to avoid an error.
14991 Use char because int might match the return type of a GCC
14992 builtin and then its argument prototype would still apply.
14993 The 'extern "C"' is for builds by C++ compilers;
14994 although this is not generally supported in C code supporting it here
14995 has little cost and some practical benefit (sr 110532). */
14996 #ifdef __cplusplus
14997 extern "C"
14998 #endif
14999 char dlopen (void);
15000 int
15001 main (void)
15002 {
15003 return dlopen ();
15004 ;
15005 return 0;
15006 }
15007 _ACEOF
15008 if ac_fn_c_try_link "$LINENO"
15009 then :
15010 ac_cv_lib_svld_dlopen=yes
15011 else case e in #(
15012 e) ac_cv_lib_svld_dlopen=no ;;
15013 esac
15014 fi
15015 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15016 conftest$ac_exeext conftest.$ac_ext
15017 LIBS=$ac_check_lib_save_LIBS ;;
15018 esac
15019 fi
15020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15021 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
15022 if test "x$ac_cv_lib_svld_dlopen" = xyes
15023 then :
15024 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
15025 else case e in #(
15026 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15027 printf %s "checking for dld_link in -ldld... " >&6; }
15028 if test ${ac_cv_lib_dld_dld_link+y}
15029 then :
15030 printf %s "(cached) " >&6
15031 else case e in #(
15032 e) ac_check_lib_save_LIBS=$LIBS
15033 LIBS="-ldld $LIBS"
15034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15035 /* end confdefs.h. */
15036
15037 /* Override any GCC internal prototype to avoid an error.
15038 Use char because int might match the return type of a GCC
15039 builtin and then its argument prototype would still apply.
15040 The 'extern "C"' is for builds by C++ compilers;
15041 although this is not generally supported in C code supporting it here
15042 has little cost and some practical benefit (sr 110532). */
15043 #ifdef __cplusplus
15044 extern "C"
15045 #endif
15046 char dld_link (void);
15047 int
15048 main (void)
15049 {
15050 return dld_link ();
15051 ;
15052 return 0;
15053 }
15054 _ACEOF
15055 if ac_fn_c_try_link "$LINENO"
15056 then :
15057 ac_cv_lib_dld_dld_link=yes
15058 else case e in #(
15059 e) ac_cv_lib_dld_dld_link=no ;;
15060 esac
15061 fi
15062 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15063 conftest$ac_exeext conftest.$ac_ext
15064 LIBS=$ac_check_lib_save_LIBS ;;
15065 esac
15066 fi
15067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15068 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
15069 if test "x$ac_cv_lib_dld_dld_link" = xyes
15070 then :
15071 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
15072 fi
15073
15074 ;;
15075 esac
15076 fi
15077
15078 ;;
15079 esac
15080 fi
15081
15082 ;;
15083 esac
15084 fi
15085
15086 ;;
15087 esac
15088 fi
15089
15090 ;;
15091 esac
15092 fi
15093
15094 ;;
15095 esac
15096
15097 if test no = "$lt_cv_dlopen"; then
15098 enable_dlopen=no
15099 else
15100 enable_dlopen=yes
15101 fi
15102
15103 case $lt_cv_dlopen in
15104 dlopen)
15105 save_CPPFLAGS=$CPPFLAGS
15106 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15107
15108 save_LDFLAGS=$LDFLAGS
15109 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15110
15111 save_LIBS=$LIBS
15112 LIBS="$lt_cv_dlopen_libs $LIBS"
15113
15114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15115 printf %s "checking whether a program can dlopen itself... " >&6; }
15116 if test ${lt_cv_dlopen_self+y}
15117 then :
15118 printf %s "(cached) " >&6
15119 else case e in #(
15120 e) if test yes = "$cross_compiling"; then :
15121 lt_cv_dlopen_self=cross
15122 else
15123 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15124 lt_status=$lt_dlunknown
15125 cat > conftest.$ac_ext <<_LT_EOF
15126 #line $LINENO "configure"
15127 #include "confdefs.h"
15128
15129 #if HAVE_DLFCN_H
15130 #include <dlfcn.h>
15131 #endif
15132
15133 #include <stdio.h>
15134
15135 #ifdef RTLD_GLOBAL
15136 # define LT_DLGLOBAL RTLD_GLOBAL
15137 #else
15138 # ifdef DL_GLOBAL
15139 # define LT_DLGLOBAL DL_GLOBAL
15140 # else
15141 # define LT_DLGLOBAL 0
15142 # endif
15143 #endif
15144
15145 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15146 find out it does not work in some platform. */
15147 #ifndef LT_DLLAZY_OR_NOW
15148 # ifdef RTLD_LAZY
15149 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15150 # else
15151 # ifdef DL_LAZY
15152 # define LT_DLLAZY_OR_NOW DL_LAZY
15153 # else
15154 # ifdef RTLD_NOW
15155 # define LT_DLLAZY_OR_NOW RTLD_NOW
15156 # else
15157 # ifdef DL_NOW
15158 # define LT_DLLAZY_OR_NOW DL_NOW
15159 # else
15160 # define LT_DLLAZY_OR_NOW 0
15161 # endif
15162 # endif
15163 # endif
15164 # endif
15165 #endif
15166
15167 /* When -fvisibility=hidden is used, assume the code has been annotated
15168 correspondingly for the symbols needed. */
15169 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15170 int fnord (void) __attribute__((visibility("default")));
15171 #endif
15172
15173 int fnord (void) { return 42; }
15174 int main (void)
15175 {
15176 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15177 int status = $lt_dlunknown;
15178
15179 if (self)
15180 {
15181 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15182 else
15183 {
15184 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15185 else puts (dlerror ());
15186 }
15187 /* dlclose (self); */
15188 }
15189 else
15190 puts (dlerror ());
15191
15192 return status;
15193 }
15194 _LT_EOF
15195 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15196 (eval $ac_link) 2>&5
15197 ac_status=$?
15198 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15199 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15200 (./conftest; exit; ) >&5 2>/dev/null
15201 lt_status=$?
15202 case x$lt_status in
15203 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15204 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15205 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15206 esac
15207 else :
15208 # compilation failed
15209 lt_cv_dlopen_self=no
15210 fi
15211 fi
15212 rm -fr conftest*
15213
15214 ;;
15215 esac
15216 fi
15217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15218 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
15219
15220 if test yes = "$lt_cv_dlopen_self"; then
15221 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15223 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
15224 if test ${lt_cv_dlopen_self_static+y}
15225 then :
15226 printf %s "(cached) " >&6
15227 else case e in #(
15228 e) if test yes = "$cross_compiling"; then :
15229 lt_cv_dlopen_self_static=cross
15230 else
15231 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15232 lt_status=$lt_dlunknown
15233 cat > conftest.$ac_ext <<_LT_EOF
15234 #line $LINENO "configure"
15235 #include "confdefs.h"
15236
15237 #if HAVE_DLFCN_H
15238 #include <dlfcn.h>
15239 #endif
15240
15241 #include <stdio.h>
15242
15243 #ifdef RTLD_GLOBAL
15244 # define LT_DLGLOBAL RTLD_GLOBAL
15245 #else
15246 # ifdef DL_GLOBAL
15247 # define LT_DLGLOBAL DL_GLOBAL
15248 # else
15249 # define LT_DLGLOBAL 0
15250 # endif
15251 #endif
15252
15253 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15254 find out it does not work in some platform. */
15255 #ifndef LT_DLLAZY_OR_NOW
15256 # ifdef RTLD_LAZY
15257 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15258 # else
15259 # ifdef DL_LAZY
15260 # define LT_DLLAZY_OR_NOW DL_LAZY
15261 # else
15262 # ifdef RTLD_NOW
15263 # define LT_DLLAZY_OR_NOW RTLD_NOW
15264 # else
15265 # ifdef DL_NOW
15266 # define LT_DLLAZY_OR_NOW DL_NOW
15267 # else
15268 # define LT_DLLAZY_OR_NOW 0
15269 # endif
15270 # endif
15271 # endif
15272 # endif
15273 #endif
15274
15275 /* When -fvisibility=hidden is used, assume the code has been annotated
15276 correspondingly for the symbols needed. */
15277 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15278 int fnord (void) __attribute__((visibility("default")));
15279 #endif
15280
15281 int fnord (void) { return 42; }
15282 int main (void)
15283 {
15284 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15285 int status = $lt_dlunknown;
15286
15287 if (self)
15288 {
15289 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15290 else
15291 {
15292 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15293 else puts (dlerror ());
15294 }
15295 /* dlclose (self); */
15296 }
15297 else
15298 puts (dlerror ());
15299
15300 return status;
15301 }
15302 _LT_EOF
15303 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15304 (eval $ac_link) 2>&5
15305 ac_status=$?
15306 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15307 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15308 (./conftest; exit; ) >&5 2>/dev/null
15309 lt_status=$?
15310 case x$lt_status in
15311 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15312 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15313 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15314 esac
15315 else :
15316 # compilation failed
15317 lt_cv_dlopen_self_static=no
15318 fi
15319 fi
15320 rm -fr conftest*
15321
15322 ;;
15323 esac
15324 fi
15325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15326 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
15327 fi
15328
15329 CPPFLAGS=$save_CPPFLAGS
15330 LDFLAGS=$save_LDFLAGS
15331 LIBS=$save_LIBS
15332 ;;
15333 esac
15334
15335 case $lt_cv_dlopen_self in
15336 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15337 *) enable_dlopen_self=unknown ;;
15338 esac
15339
15340 case $lt_cv_dlopen_self_static in
15341 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15342 *) enable_dlopen_self_static=unknown ;;
15343 esac
15344 fi
15345
15346
15347
15348
15349
15350
15351
15352
15353
15354
15355
15356
15357
15358
15359
15360
15361
15362 striplib=
15363 old_striplib=
15364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15365 printf %s "checking whether stripping libraries is possible... " >&6; }
15366 if test -z "$STRIP"; then
15367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15368 printf "%s\n" "no" >&6; }
15369 else
15370 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15371 old_striplib="$STRIP --strip-debug"
15372 striplib="$STRIP --strip-unneeded"
15373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15374 printf "%s\n" "yes" >&6; }
15375 else
15376 case $host_os in
15377 darwin*)
15378 # FIXME - insert some real tests, host_os isn't really good enough
15379 striplib="$STRIP -x"
15380 old_striplib="$STRIP -S"
15381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15382 printf "%s\n" "yes" >&6; }
15383 ;;
15384 freebsd*)
15385 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
15386 old_striplib="$STRIP --strip-debug"
15387 striplib="$STRIP --strip-unneeded"
15388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15389 printf "%s\n" "yes" >&6; }
15390 else
15391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15392 printf "%s\n" "no" >&6; }
15393 fi
15394 ;;
15395 *)
15396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15397 printf "%s\n" "no" >&6; }
15398 ;;
15399 esac
15400 fi
15401 fi
15402
15403
15404
15405
15406
15407
15408
15409
15410
15411
15412
15413
15414 # Report what library types will actually be built
15415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15416 printf %s "checking if libtool supports shared libraries... " >&6; }
15417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15418 printf "%s\n" "$can_build_shared" >&6; }
15419
15420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15421 printf %s "checking whether to build shared libraries... " >&6; }
15422 test no = "$can_build_shared" && enable_shared=no
15423
15424 # On AIX, shared libraries and static libraries use the same namespace, and
15425 # are all built from PIC.
15426 case $host_os in
15427 aix3*)
15428 test yes = "$enable_shared" && enable_static=no
15429 if test -n "$RANLIB"; then
15430 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15431 postinstall_cmds='$RANLIB $lib'
15432 fi
15433 ;;
15434
15435 aix[4-9]*)
15436 if test ia64 != "$host_cpu"; then
15437 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
15438 yes,aix,yes) ;; # shared object as lib.so file only
15439 yes,svr4,*) ;; # shared object as lib.so archive member only
15440 yes,*) enable_static=no ;; # shared object in lib.a archive as well
15441 esac
15442 fi
15443 ;;
15444 esac
15445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15446 printf "%s\n" "$enable_shared" >&6; }
15447
15448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15449 printf %s "checking whether to build static libraries... " >&6; }
15450 # Make sure either enable_shared or enable_static is yes.
15451 test yes = "$enable_shared" || enable_static=yes
15452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15453 printf "%s\n" "$enable_static" >&6; }
15454
15455
15456
15457
15458 fi
15459 ac_ext=c
15460 ac_cpp='$CPP $CPPFLAGS'
15461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15464
15465 CC=$lt_save_CC
15466
15467
15468
15469
15470
15471
15472
15473
15474
15475
15476
15477
15478
15479
15480
15481 ac_config_commands="$ac_config_commands libtool"
15482
15483
15484
15485
15486 # Only expand once:
15487
15488
15489
15490 # The cast to long int works around a bug in the HP C Compiler
15491 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15492 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
15493 # This bug is HP SR number 8606223364.
15494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15495 printf %s "checking size of void *... " >&6; }
15496 if test ${ac_cv_sizeof_void_p+y}
15497 then :
15498 printf %s "(cached) " >&6
15499 else case e in #(
15500 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"
15501 then :
15502
15503 else case e in #(
15504 e) if test "$ac_cv_type_void_p" = yes; then
15505 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
15506 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
15507 as_fn_error 77 "cannot compute sizeof (void *)
15508 See 'config.log' for more details" "$LINENO" 5; }
15509 else
15510 ac_cv_sizeof_void_p=0
15511 fi ;;
15512 esac
15513 fi
15514 ;;
15515 esac
15516 fi
15517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15518 printf "%s\n" "$ac_cv_sizeof_void_p" >&6; }
15519
15520
15521
15522 printf "%s\n" "#define SIZEOF_VOID_P $ac_cv_sizeof_void_p" >>confdefs.h
15523
15524
15525 case $host:$ac_cv_sizeof_void_p in #(
15526 *-*-mingw*:4) :
15527 kpse_dll_name=pplib ;; #(
15528 *-*-mingw*:8) :
15529 kpse_dll_name=pplib ;; #(
15530 *-*-cygwin:4) :
15531 kpse_dll_name= ;; #(
15532 *-*-cygwin:8) :
15533 kpse_dll_name= ;; #(
15534 *) :
15535 kpse_dll_name= ;;
15536 esac
15537
15538
15539
15540
15541
15542 ac_config_headers="$ac_config_headers config.h"
15543
15544 if test "x$enable_build" != xno; then
15545 build_TRUE=
15546 build_FALSE='#'
15547 else
15548 build_TRUE='#'
15549 build_FALSE=
15550 fi
15551
15552
15553
15554 #KPSE_PPLIB_DEFINES
15555 # Check whether --enable-largefile was given.
15556 if test ${enable_largefile+y}
15557 then :
15558 enableval=$enable_largefile;
15559 fi
15560 if test "$enable_largefile,$enable_year2038" != no,no
15561 then :
15562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5
15563 printf %s "checking for $CC option to enable large file support... " >&6; }
15564 if test ${ac_cv_sys_largefile_opts+y}
15565 then :
15566 printf %s "(cached) " >&6
15567 else case e in #(
15568 e) ac_save_CC="$CC"
15569 ac_opt_found=no
15570 for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do
15571 if test x"$ac_opt" != x"none needed"
15572 then :
15573 CC="$ac_save_CC $ac_opt"
15574 fi
15575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15576 /* end confdefs.h. */
15577 #include <sys/types.h>
15578 #ifndef FTYPE
15579 # define FTYPE off_t
15580 #endif
15581 /* Check that FTYPE can represent 2**63 - 1 correctly.
15582 We can't simply define LARGE_FTYPE to be 9223372036854775807,
15583 since some C++ compilers masquerading as C compilers
15584 incorrectly reject 9223372036854775807. */
15585 #define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31))
15586 int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721
15587 && LARGE_FTYPE % 2147483647 == 1)
15588 ? 1 : -1];
15589 int
15590 main (void)
15591 {
15592
15593 ;
15594 return 0;
15595 }
15596 _ACEOF
15597 if ac_fn_c_try_compile "$LINENO"
15598 then :
15599 if test x"$ac_opt" = x"none needed"
15600 then :
15601 # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t.
15602 CC="$CC -DFTYPE=ino_t"
15603 if ac_fn_c_try_compile "$LINENO"
15604 then :
15605
15606 else case e in #(
15607 e) CC="$CC -D_FILE_OFFSET_BITS=64"
15608 if ac_fn_c_try_compile "$LINENO"
15609 then :
15610 ac_opt='-D_FILE_OFFSET_BITS=64'
15611 fi
15612 rm -f core conftest.err conftest.$ac_objext conftest.beam ;;
15613 esac
15614 fi
15615 rm -f core conftest.err conftest.$ac_objext conftest.beam
15616 fi
15617 ac_cv_sys_largefile_opts=$ac_opt
15618 ac_opt_found=yes
15619 fi
15620 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15621 test $ac_opt_found = no || break
15622 done
15623 CC="$ac_save_CC"
15624
15625 test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;;
15626 esac
15627 fi
15628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5
15629 printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; }
15630
15631 ac_have_largefile=yes
15632 case $ac_cv_sys_largefile_opts in #(
15633 "none needed") :
15634 ;; #(
15635 "supported through gnulib") :
15636 ;; #(
15637 "support not detected") :
15638 ac_have_largefile=no ;; #(
15639 "-D_FILE_OFFSET_BITS=64") :
15640
15641 printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
15642 ;; #(
15643 "-D_LARGE_FILES=1") :
15644
15645 printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h
15646 ;; #(
15647 "-n32") :
15648 CC="$CC -n32" ;; #(
15649 *) :
15650 as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;;
15651 esac
15652
15653 if test "$enable_year2038" != no
15654 then :
15655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option for timestamps after 2038" >&5
15656 printf %s "checking for $CC option for timestamps after 2038... " >&6; }
15657 if test ${ac_cv_sys_year2038_opts+y}
15658 then :
15659 printf %s "(cached) " >&6
15660 else case e in #(
15661 e) ac_save_CPPFLAGS="$CPPFLAGS"
15662 ac_opt_found=no
15663 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
15664 if test x"$ac_opt" != x"none needed"
15665 then :
15666 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
15667 fi
15668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15669 /* end confdefs.h. */
15670
15671 #include <time.h>
15672 /* Check that time_t can represent 2**32 - 1 correctly. */
15673 #define LARGE_TIME_T \\
15674 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
15675 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
15676 && LARGE_TIME_T % 65537 == 0)
15677 ? 1 : -1];
15678
15679 int
15680 main (void)
15681 {
15682
15683 ;
15684 return 0;
15685 }
15686 _ACEOF
15687 if ac_fn_c_try_compile "$LINENO"
15688 then :
15689 ac_cv_sys_year2038_opts="$ac_opt"
15690 ac_opt_found=yes
15691 fi
15692 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15693 test $ac_opt_found = no || break
15694 done
15695 CPPFLAGS="$ac_save_CPPFLAGS"
15696 test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;;
15697 esac
15698 fi
15699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5
15700 printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; }
15701
15702 ac_have_year2038=yes
15703 case $ac_cv_sys_year2038_opts in #(
15704 "none needed") :
15705 ;; #(
15706 "support not detected") :
15707 ac_have_year2038=no ;; #(
15708 "-D_TIME_BITS=64") :
15709
15710 printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h
15711 ;; #(
15712 "-D__MINGW_USE_VC2005_COMPAT") :
15713
15714 printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h
15715 ;; #(
15716 "-U_USE_32_BIT_TIME_T"*) :
15717 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
15718 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
15719 as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It
15720 will stop working after mid-January 2038. Remove
15721 _USE_32BIT_TIME_T from the compiler flags.
15722 See 'config.log' for more details" "$LINENO" 5; } ;; #(
15723 *) :
15724 as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;;
15725 esac
15726
15727 fi
15728
15729 fi
15730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for declarations of fseeko and ftello" >&5
15731 printf %s "checking for declarations of fseeko and ftello... " >&6; }
15732 if test ${ac_cv_func_fseeko_ftello+y}
15733 then :
15734 printf %s "(cached) " >&6
15735 else case e in #(
15736 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15737 /* end confdefs.h. */
15738
15739 #if defined __hpux && !defined _LARGEFILE_SOURCE
15740 # include <limits.h>
15741 # if LONG_MAX >> 31 == 0
15742 # error "32-bit HP-UX 11/ia64 needs _LARGEFILE_SOURCE for fseeko in C++"
15743 # endif
15744 #endif
15745 #include <sys/types.h> /* for off_t */
15746 #include <stdio.h>
15747
15748 int
15749 main (void)
15750 {
15751
15752 int (*fp1) (FILE *, off_t, int) = fseeko;
15753 off_t (*fp2) (FILE *) = ftello;
15754 return fseeko (stdin, 0, 0)
15755 && fp1 (stdin, 0, 0)
15756 && ftello (stdin) >= 0
15757 && fp2 (stdin) >= 0;
15758
15759 ;
15760 return 0;
15761 }
15762 _ACEOF
15763 if ac_fn_c_try_compile "$LINENO"
15764 then :
15765 ac_cv_func_fseeko_ftello=yes
15766 else case e in #(
15767 e) ac_save_CPPFLAGS="$CPPFLAGS"
15768 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE=1"
15769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15770 /* end confdefs.h. */
15771
15772 #if defined __hpux && !defined _LARGEFILE_SOURCE
15773 # include <limits.h>
15774 # if LONG_MAX >> 31 == 0
15775 # error "32-bit HP-UX 11/ia64 needs _LARGEFILE_SOURCE for fseeko in C++"
15776 # endif
15777 #endif
15778 #include <sys/types.h> /* for off_t */
15779 #include <stdio.h>
15780
15781 int
15782 main (void)
15783 {
15784
15785 int (*fp1) (FILE *, off_t, int) = fseeko;
15786 off_t (*fp2) (FILE *) = ftello;
15787 return fseeko (stdin, 0, 0)
15788 && fp1 (stdin, 0, 0)
15789 && ftello (stdin) >= 0
15790 && fp2 (stdin) >= 0;
15791
15792 ;
15793 return 0;
15794 }
15795 _ACEOF
15796 if ac_fn_c_try_compile "$LINENO"
15797 then :
15798 ac_cv_func_fseeko_ftello="need _LARGEFILE_SOURCE"
15799 else case e in #(
15800 e) ac_cv_func_fseeko_ftello=no ;;
15801 esac
15802 fi
15803 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15804 esac
15805 fi
15806 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15807 esac
15808 fi
15809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fseeko_ftello" >&5
15810 printf "%s\n" "$ac_cv_func_fseeko_ftello" >&6; }
15811 if test "$ac_cv_func_fseeko_ftello" != no
15812 then :
15813
15814 printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h
15815
15816 fi
15817 if test "$ac_cv_func_fseeko_ftello" = "need _LARGEFILE_SOURCE"
15818 then :
15819
15820 printf "%s\n" "#define _LARGEFILE_SOURCE 1" >>confdefs.h
15821
15822 fi
15823
15824 if test "x$enable_largefile" != xno; then
15825 case $ac_cv_sys_file_offset_bits in #(
15826 no) :
15827 ;; #(
15828 unknown) :
15829 case $ac_cv_sys_large_files in #(
15830 no | unknown) :
15831 ;; #(
15832 *) :
15833 PPLIB="$PPLIB -D_LARGE_FILES" ;;
15834 esac ;; #(
15835 *) :
15836 PPLIB="$PPLIB -D_FILE_OFFSET_BITS=64" ;;
15837 esac
15838 fi
15839 case $ac_cv_sys_largefile_source in #(
15840 no | unknown) :
15841 ;; #(
15842 *) :
15843 PPLIB="$PPLIB -D_LARGEFILE_SOURCE" ;;
15844 esac
15845
15846
15847 kpse_save_CPPFLAGS=$CPPFLAGS
15848 kpse_save_LIBS=$LIBS
15849
15850 ##tldbg _KPSE_INIT: Initialize TL infrastructure.
15851 kpse_BLD=`(cd "./../../." && pwd)`
15852 kpse_SRC=`(cd "$srcdir/../../." && pwd)`
15853
15854 ##tldbg _KPSE_LIB_FLAGS: Setup zlib (-lz) flags.
15855 echo 'tldbg:_KPSE_LIB_FLAGS called: libdir=zlib, libname=z, options=, tlincl=-IBLD/libs/zlib/include, tllib=BLD/libs/zlib/libz.a, tlextra=, rebuildsrcdeps=, rebuildblddeps=${top_builddir}/../../libs/zlib/include/zconf.h.' >&5
15856 ##tldbg _KPSE_LIB_FLAGS_TL: zlib (z) .
15857
15858 # Check whether --with-system-zlib was given.
15859 if test ${with_system_zlib+y}
15860 then :
15861 withval=$with_system_zlib;
15862 fi
15863
15864 # Check whether --with-zlib-includes was given.
15865 if test ${with_zlib_includes+y}
15866 then :
15867 withval=$with_zlib_includes;
15868 fi
15869
15870 # Check whether --with-zlib-libdir was given.
15871 if test ${with_zlib_libdir+y}
15872 then :
15873 withval=$with_zlib_libdir;
15874 fi
15875 if test "x$with_system_zlib" = xyes; then
15876 ##tldbg _KPSE_LIB_FLAGS_SYSTEM: zlib (z).
15877 if test "x$with_zlib_includes" != x && test "x$with_zlib_includes" != xyes; then
15878 ZLIB_INCLUDES="-I$with_zlib_includes"
15879 fi
15880 ZLIB_LIBS="-lz"
15881 if test "x$with_zlib_libdir" != x && test "x$with_zlib_libdir" != xyes; then
15882 ZLIB_LIBS="-L$with_zlib_libdir $ZLIB_LIBS"
15883 fi
15884 else
15885 ZLIB_INCLUDES="-I$kpse_BLD/libs/zlib/include"
15886 ZLIB_LIBS="$kpse_BLD/libs/zlib/libz.a"
15887 ZLIB_DEPEND='${top_builddir}/../../libs/zlib/libz.a'
15888 ZLIB_RULE='# Rebuild libz
15889 $(ZLIB_DEPEND): ${top_builddir}/../../libs/zlib/include/zconf.h
15890 cd ${top_builddir}/../../libs/zlib && $(MAKE) $(AM_MAKEFLAGS) rebuild
15891 ${top_builddir}/../../libs/zlib/include/zconf.h:
15892 cd ${top_builddir}/../../libs/zlib && $(MAKE) $(AM_MAKEFLAGS) rebuild'
15893 fi
15894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if <zlib.h> defines 'z_const'" >&5
15895 printf %s "checking if <zlib.h> defines 'z_const'... " >&6; }
15896 if test ${kpse_cv_have_decl_z_const+y}
15897 then :
15898 printf %s "(cached) " >&6
15899 else case e in #(
15900 e) eval CPPFLAGS=\"$ZLIB_INCLUDES \$CPPFLAGS\"
15901 eval LIBS=\"$ZLIB_LIBS \$LIBS\"
15902
15903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15904 /* end confdefs.h. */
15905 #include <zlib.h>
15906 int
15907 main (void)
15908 {
15909 z_const char * foo();
15910 ;
15911 return 0;
15912 }
15913 _ACEOF
15914 if ac_fn_c_try_compile "$LINENO"
15915 then :
15916 kpse_cv_have_decl_z_const=yes
15917 else case e in #(
15918 e) kpse_cv_have_decl_z_const=no ;;
15919 esac
15920 fi
15921 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15922 CPPFLAGS=$kpse_save_CPPFLAGS
15923 LIBS=$kpse_save_LIBS
15924 ;;
15925 esac
15926 fi
15927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_have_decl_z_const" >&5
15928 printf "%s\n" "$kpse_cv_have_decl_z_const" >&6; }
15929 case $kpse_cv_have_decl_z_const in #(
15930 yes) :
15931
15932 printf "%s\n" "#define ZLIB_CONST 1" >>confdefs.h
15933 ;; #(
15934 *) :
15935
15936 printf "%s\n" "#define z_const /**/" >>confdefs.h
15937 ;;
15938 esac
15939
15940
15941 if test "x$enable_build" != xno; then
15942 build_TRUE=
15943 build_FALSE='#'
15944 else
15945 build_TRUE='#'
15946 build_FALSE=
15947 fi
15948
15949
15950 if test "x$enable_build" != xno || test -f config.force; then
15951
15952 eval CPPFLAGS=\"$ZLIB_INCLUDES \$CPPFLAGS\"
15953 eval LIBS=\"$ZLIB_LIBS \$LIBS\"
15954
15955 ac_fn_c_check_func "$LINENO" "zlibVersion" "ac_cv_func_zlibVersion"
15956 if test "x$ac_cv_func_zlibVersion" = xyes
15957 then :
15958
15959 else case e in #(
15960 e) as_fn_error $? "zlib not found" "$LINENO" 5 ;;
15961 esac
15962 fi
15963
15964 CPPFLAGS=$kpse_save_CPPFLAGS
15965 LIBS=$kpse_save_LIBS
15966
15967
15968 echo timestamp >config.force
15969 fi
15970
15971
15972
15973 if test "x$ac_cv_header_stdc" = xyes; then
15974 PPLIB_DEFINES="$PPLIB_DEFINES -DHAVE_UNISTD_H"
15975 fi
15976
15977 #PPLIB_DEFINES="$PPLIB_DEFINES -DEXTRA"
15978 #PPLIB_CFLAGS="-DEXTRA"
15979
15980 PPLIB_TREE=pplib-src
15981
15982
15983 ac_config_files="$ac_config_files Makefile include/Makefile"
15984
15985
15986 cat >confcache <<\_ACEOF
15987 # This file is a shell script that caches the results of configure
15988 # tests run on this system so they can be shared between configure
15989 # scripts and configure runs, see configure's option --config-cache.
15990 # It is not useful on other systems. If it contains results you don't
15991 # want to keep, you may remove or edit it.
15992 #
15993 # config.status only pays attention to the cache file if you give it
15994 # the --recheck option to rerun configure.
15995 #
15996 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
15997 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
15998 # following values.
15999
16000 _ACEOF
16001
16002 # The following way of writing the cache mishandles newlines in values,
16003 # but we know of no workaround that is simple, portable, and efficient.
16004 # So, we kill variables containing newlines.
16005 # Ultrix sh set writes to stderr and can't be redirected directly,
16006 # and sets the high bit in the cache file unless we assign to the vars.
16007 (
16008 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16009 eval ac_val=\$$ac_var
16010 case $ac_val in #(
16011 *${as_nl}*)
16012 case $ac_var in #(
16013 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16014 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16015 esac
16016 case $ac_var in #(
16017 _ | IFS | as_nl) ;; #(
16018 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16019 *) { eval $ac_var=; unset $ac_var;} ;;
16020 esac ;;
16021 esac
16022 done
16023
16024 (set) 2>&1 |
16025 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16026 *${as_nl}ac_space=\ *)
16027 # 'set' does not quote correctly, so add quotes: double-quote
16028 # substitution turns \\\\ into \\, and sed turns \\ into \.
16029 sed -n \
16030 "s/'/'\\\\''/g;
16031 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16032 ;; #(
16033 *)
16034 # 'set' quotes correctly as required by POSIX, so do not add quotes.
16035 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16036 ;;
16037 esac |
16038 sort
16039 ) |
16040 sed '
16041 /^ac_cv_env_/b end
16042 t clear
16043 :clear
16044 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
16045 t end
16046 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16047 :end' >>confcache
16048 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16049 if test -w "$cache_file"; then
16050 if test "x$cache_file" != "x/dev/null"; then
16051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16052 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
16053 if test ! -f "$cache_file" || test -h "$cache_file"; then
16054 cat confcache >"$cache_file"
16055 else
16056 case $cache_file in #(
16057 */* | ?:*)
16058 mv -f confcache "$cache_file"$$ &&
16059 mv -f "$cache_file"$$ "$cache_file" ;; #(
16060 *)
16061 mv -f confcache "$cache_file" ;;
16062 esac
16063 fi
16064 fi
16065 else
16066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16067 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
16068 fi
16069 fi
16070 rm -f confcache
16071
16072 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16073 # Let make expand exec_prefix.
16074 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16075
16076 DEFS=-DHAVE_CONFIG_H
16077
16078 ac_libobjs=
16079 ac_ltlibobjs=
16080 U=
16081 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16082 # 1. Remove the extension, and $U if already installed.
16083 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16084 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
16085 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16086 # will be set to the directory where LIBOBJS objects are built.
16087 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16088 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16089 done
16090 LIBOBJS=$ac_libobjs
16091
16092 LTLIBOBJS=$ac_ltlibobjs
16093
16094
16095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16096 printf %s "checking that generated files are newer than configure... " >&6; }
16097 if test -n "$am_sleep_pid"; then
16098 # Hide warnings about reused PIDs.
16099 wait $am_sleep_pid 2>/dev/null
16100 fi
16101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
16102 printf "%s\n" "done" >&6; }
16103 case $enable_silent_rules in # (((
16104 yes) AM_DEFAULT_VERBOSITY=0;;
16105 no) AM_DEFAULT_VERBOSITY=1;;
16106 esac
16107 if test $am_cv_make_support_nested_variables = yes; then
16108 AM_V='$(V)'
16109 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
16110 else
16111 AM_V=$AM_DEFAULT_VERBOSITY
16112 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
16113 fi
16114
16115 if test -n "$EXEEXT"; then
16116 am__EXEEXT_TRUE=
16117 am__EXEEXT_FALSE='#'
16118 else
16119 am__EXEEXT_TRUE='#'
16120 am__EXEEXT_FALSE=
16121 fi
16122
16123 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16124 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16125 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16126 fi
16127 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16128 as_fn_error $? "conditional \"AMDEP\" was never defined.
16129 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16130 fi
16131 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16132 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16133 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16134 fi
16135 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16136 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16137 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16138 fi
16139 if test -z "${build_TRUE}" && test -z "${build_FALSE}"; then
16140 as_fn_error $? "conditional \"build\" was never defined.
16141 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16142 fi
16143 # Check whether --enable-year2038 was given.
16144 if test ${enable_year2038+y}
16145 then :
16146 enableval=$enable_year2038;
16147 fi
16148
16149 if test -z "${build_TRUE}" && test -z "${build_FALSE}"; then
16150 as_fn_error $? "conditional \"build\" was never defined.
16151 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16152 fi
16153
16154 : "${CONFIG_STATUS=./config.status}"
16155 ac_write_fail=0
16156 ac_clean_files_save=$ac_clean_files
16157 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16159 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
16160 as_write_fail=0
16161 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16162 #! $SHELL
16163 # Generated by $as_me.
16164 # Run this file to recreate the current configuration.
16165 # Compiler output produced by configure, useful for debugging
16166 # configure, is in config.log if it exists.
16167
16168 debug=false
16169 ac_cs_recheck=false
16170 ac_cs_silent=false
16171
16172 SHELL=\${CONFIG_SHELL-$SHELL}
16173 export SHELL
16174 _ASEOF
16175 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16176 ## -------------------- ##
16177 ## M4sh Initialization. ##
16178 ## -------------------- ##
16179
16180 # Be more Bourne compatible
16181 DUALCASE=1; export DUALCASE # for MKS sh
16182 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
16183 then :
16184 emulate sh
16185 NULLCMD=:
16186 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16187 # is contrary to our usage. Disable this feature.
16188 alias -g '${1+"$@"}'='"$@"'
16189 setopt NO_GLOB_SUBST
16190 else case e in #(
16191 e) case `(set -o) 2>/dev/null` in #(
16192 *posix*) :
16193 set -o posix ;; #(
16194 *) :
16195 ;;
16196 esac ;;
16197 esac
16198 fi
16199
16200
16201
16202 # Reset variables that may have inherited troublesome values from
16203 # the environment.
16204
16205 # IFS needs to be set, to space, tab, and newline, in precisely that order.
16206 # (If _AS_PATH_WALK were called with IFS unset, it would have the
16207 # side effect of setting IFS to empty, thus disabling word splitting.)
16208 # Quoting is to prevent editors from complaining about space-tab.
16209 as_nl='
16210 '
16211 export as_nl
16212 IFS=" "" $as_nl"
16213
16214 PS1='$ '
16215 PS2='> '
16216 PS4='+ '
16217
16218 # Ensure predictable behavior from utilities with locale-dependent output.
16219 LC_ALL=C
16220 export LC_ALL
16221 LANGUAGE=C
16222 export LANGUAGE
16223
16224 # We cannot yet rely on "unset" to work, but we need these variables
16225 # to be unset--not just set to an empty or harmless value--now, to
16226 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
16227 # also avoids known problems related to "unset" and subshell syntax
16228 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
16229 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
16230 do eval test \${$as_var+y} \
16231 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16232 done
16233
16234 # Ensure that fds 0, 1, and 2 are open.
16235 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
16236 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
16237 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
16238
16239 # The user is always right.
16240 if ${PATH_SEPARATOR+false} :; then
16241 PATH_SEPARATOR=:
16242 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16243 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16244 PATH_SEPARATOR=';'
16245 }
16246 fi
16247
16248
16249 # Find who we are. Look in the path if we contain no directory separator.
16250 as_myself=
16251 case $0 in #((
16252 *[\\/]* ) as_myself=$0 ;;
16253 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16254 for as_dir in $PATH
16255 do
16256 IFS=$as_save_IFS
16257 case $as_dir in #(((
16258 '') as_dir=./ ;;
16259 */) ;;
16260 *) as_dir=$as_dir/ ;;
16261 esac
16262 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
16263 done
16264 IFS=$as_save_IFS
16265
16266 ;;
16267 esac
16268 # We did not find ourselves, most probably we were run as 'sh COMMAND'
16269 # in which case we are not to be found in the path.
16270 if test "x$as_myself" = x; then
16271 as_myself=$0
16272 fi
16273 if test ! -f "$as_myself"; then
16274 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16275 exit 1
16276 fi
16277
16278
16279
16280 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16281 # ----------------------------------------
16282 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16283 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16284 # script with STATUS, using 1 if that was 0.
16285 as_fn_error ()
16286 {
16287 as_status=$1; test $as_status -eq 0 && as_status=1
16288 if test "$4"; then
16289 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16290 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16291 fi
16292 printf "%s\n" "$as_me: error: $2" >&2
16293 as_fn_exit $as_status
16294 } # as_fn_error
16295
16296
16297 # as_fn_set_status STATUS
16298 # -----------------------
16299 # Set $? to STATUS, without forking.
16300 as_fn_set_status ()
16301 {
16302 return $1
16303 } # as_fn_set_status
16304
16305 # as_fn_exit STATUS
16306 # -----------------
16307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16308 as_fn_exit ()
16309 {
16310 set +e
16311 as_fn_set_status $1
16312 exit $1
16313 } # as_fn_exit
16314
16315 # as_fn_unset VAR
16316 # ---------------
16317 # Portably unset VAR.
16318 as_fn_unset ()
16319 {
16320 { eval $1=; unset $1;}
16321 }
16322 as_unset=as_fn_unset
16323
16324 # as_fn_append VAR VALUE
16325 # ----------------------
16326 # Append the text in VALUE to the end of the definition contained in VAR. Take
16327 # advantage of any shell optimizations that allow amortized linear growth over
16328 # repeated appends, instead of the typical quadratic growth present in naive
16329 # implementations.
16330 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
16331 then :
16332 eval 'as_fn_append ()
16333 {
16334 eval $1+=\$2
16335 }'
16336 else case e in #(
16337 e) as_fn_append ()
16338 {
16339 eval $1=\$$1\$2
16340 } ;;
16341 esac
16342 fi # as_fn_append
16343
16344 # as_fn_arith ARG...
16345 # ------------------
16346 # Perform arithmetic evaluation on the ARGs, and store the result in the
16347 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16348 # must be portable across $(()) and expr.
16349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
16350 then :
16351 eval 'as_fn_arith ()
16352 {
16353 as_val=$(( $* ))
16354 }'
16355 else case e in #(
16356 e) as_fn_arith ()
16357 {
16358 as_val=`expr "$@" || test $? -eq 1`
16359 } ;;
16360 esac
16361 fi # as_fn_arith
16362
16363
16364 if expr a : '\(a\)' >/dev/null 2>&1 &&
16365 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16366 as_expr=expr
16367 else
16368 as_expr=false
16369 fi
16370
16371 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16372 as_basename=basename
16373 else
16374 as_basename=false
16375 fi
16376
16377 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16378 as_dirname=dirname
16379 else
16380 as_dirname=false
16381 fi
16382
16383 as_me=`$as_basename -- "$0" ||
16384 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16385 X"$0" : 'X\(//\)$' \| \
16386 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16387 printf "%s\n" X/"$0" |
16388 sed '/^.*\/\([^/][^/]*\)\/*$/{
16389 s//\1/
16390 q
16391 }
16392 /^X\/\(\/\/\)$/{
16393 s//\1/
16394 q
16395 }
16396 /^X\/\(\/\).*/{
16397 s//\1/
16398 q
16399 }
16400 s/.*/./; q'`
16401
16402 # Avoid depending upon Character Ranges.
16403 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16404 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16405 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16406 as_cr_digits='0123456789'
16407 as_cr_alnum=$as_cr_Letters$as_cr_digits
16408
16409
16410 # Determine whether it's possible to make 'echo' print without a newline.
16411 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
16412 # for compatibility with existing Makefiles.
16413 ECHO_C= ECHO_N= ECHO_T=
16414 case `echo -n x` in #(((((
16415 -n*)
16416 case `echo 'xy\c'` in
16417 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16418 xy) ECHO_C='\c';;
16419 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16420 ECHO_T=' ';;
16421 esac;;
16422 *)
16423 ECHO_N='-n';;
16424 esac
16425
16426 # For backward compatibility with old third-party macros, we provide
16427 # the shell variables $as_echo and $as_echo_n. New code should use
16428 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
16429 as_echo='printf %s\n'
16430 as_echo_n='printf %s'
16431
16432 rm -f conf$$ conf$$.exe conf$$.file
16433 if test -d conf$$.dir; then
16434 rm -f conf$$.dir/conf$$.file
16435 else
16436 rm -f conf$$.dir
16437 mkdir conf$$.dir 2>/dev/null
16438 fi
16439 if (echo >conf$$.file) 2>/dev/null; then
16440 if ln -s conf$$.file conf$$ 2>/dev/null; then
16441 as_ln_s='ln -s'
16442 # ... but there are two gotchas:
16443 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
16444 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
16445 # In both cases, we have to default to 'cp -pR'.
16446 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16447 as_ln_s='cp -pR'
16448 elif ln conf$$.file conf$$ 2>/dev/null; then
16449 as_ln_s=ln
16450 else
16451 as_ln_s='cp -pR'
16452 fi
16453 else
16454 as_ln_s='cp -pR'
16455 fi
16456 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16457 rmdir conf$$.dir 2>/dev/null
16458
16459
16460 # as_fn_mkdir_p
16461 # -------------
16462 # Create "$as_dir" as a directory, including parents if necessary.
16463 as_fn_mkdir_p ()
16464 {
16465
16466 case $as_dir in #(
16467 -*) as_dir=./$as_dir;;
16468 esac
16469 test -d "$as_dir" || eval $as_mkdir_p || {
16470 as_dirs=
16471 while :; do
16472 case $as_dir in #(
16473 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16474 *) as_qdir=$as_dir;;
16475 esac
16476 as_dirs="'$as_qdir' $as_dirs"
16477 as_dir=`$as_dirname -- "$as_dir" ||
16478 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16479 X"$as_dir" : 'X\(//\)[^/]' \| \
16480 X"$as_dir" : 'X\(//\)$' \| \
16481 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16482 printf "%s\n" X"$as_dir" |
16483 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16484 s//\1/
16485 q
16486 }
16487 /^X\(\/\/\)[^/].*/{
16488 s//\1/
16489 q
16490 }
16491 /^X\(\/\/\)$/{
16492 s//\1/
16493 q
16494 }
16495 /^X\(\/\).*/{
16496 s//\1/
16497 q
16498 }
16499 s/.*/./; q'`
16500 test -d "$as_dir" && break
16501 done
16502 test -z "$as_dirs" || eval "mkdir $as_dirs"
16503 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16504
16505
16506 } # as_fn_mkdir_p
16507 if mkdir -p . 2>/dev/null; then
16508 as_mkdir_p='mkdir -p "$as_dir"'
16509 else
16510 test -d ./-p && rmdir ./-p
16511 as_mkdir_p=false
16512 fi
16513
16514
16515 # as_fn_executable_p FILE
16516 # -----------------------
16517 # Test if FILE is an executable regular file.
16518 as_fn_executable_p ()
16519 {
16520 test -f "$1" && test -x "$1"
16521 } # as_fn_executable_p
16522 as_test_x='test -x'
16523 as_executable_p=as_fn_executable_p
16524
16525 # Sed expression to map a string onto a valid CPP name.
16526 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
16527 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
16528
16529 # Sed expression to map a string onto a valid variable name.
16530 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
16531 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
16532
16533
16534 exec 6>&1
16535 ## ----------------------------------- ##
16536 ## Main body of $CONFIG_STATUS script. ##
16537 ## ----------------------------------- ##
16538 _ASEOF
16539 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16540
16541 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16542 # Save the log message, to keep $0 and so on meaningful, and to
16543 # report actual input values of CONFIG_FILES etc. instead of their
16544 # values after options handling.
16545 ac_log="
16546 This file was extended by pplib (TeX Live) $as_me 2.05.0, which was
16547 generated by GNU Autoconf 2.72. Invocation command line was
16548
16549 CONFIG_FILES = $CONFIG_FILES
16550 CONFIG_HEADERS = $CONFIG_HEADERS
16551 CONFIG_LINKS = $CONFIG_LINKS
16552 CONFIG_COMMANDS = $CONFIG_COMMANDS
16553 $ $0 $@
16554
16555 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16556 "
16557
16558 _ACEOF
16559
16560 case $ac_config_files in *"
16561 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16562 esac
16563
16564 case $ac_config_headers in *"
16565 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16566 esac
16567
16568
16569 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16570 # Files that config.status was made for.
16571 config_files="$ac_config_files"
16572 config_headers="$ac_config_headers"
16573 config_commands="$ac_config_commands"
16574
16575 _ACEOF
16576
16577 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16578 ac_cs_usage="\
16579 '$as_me' instantiates files and other configuration actions
16580 from templates according to the current configuration. Unless the files
16581 and actions are specified as TAGs, all are instantiated by default.
16582
16583 Usage: $0 [OPTION]... [TAG]...
16584
16585 -h, --help print this help, then exit
16586 -V, --version print version number and configuration settings, then exit
16587 --config print configuration, then exit
16588 -q, --quiet, --silent
16589 do not print progress messages
16590 -d, --debug don't remove temporary files
16591 --recheck update $as_me by reconfiguring in the same conditions
16592 --file=FILE[:TEMPLATE]
16593 instantiate the configuration file FILE
16594 --header=FILE[:TEMPLATE]
16595 instantiate the configuration header FILE
16596
16597 Configuration files:
16598 $config_files
16599
16600 Configuration headers:
16601 $config_headers
16602
16603 Configuration commands:
16604 $config_commands
16605
16606 Report bugs to <[email protected]>."
16607
16608 _ACEOF
16609 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
16610 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
16611 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16612 ac_cs_config='$ac_cs_config_escaped'
16613 ac_cs_version="\\
16614 pplib (TeX Live) config.status 2.05.0
16615 configured by $0, generated by GNU Autoconf 2.72,
16616 with options \\"\$ac_cs_config\\"
16617
16618 Copyright (C) 2023 Free Software Foundation, Inc.
16619 This config.status script is free software; the Free Software Foundation
16620 gives unlimited permission to copy, distribute and modify it."
16621
16622 ac_pwd='$ac_pwd'
16623 srcdir='$srcdir'
16624 INSTALL='$INSTALL'
16625 MKDIR_P='$MKDIR_P'
16626 AWK='$AWK'
16627 test -n "\$AWK" || AWK=awk
16628 _ACEOF
16629
16630 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16631 # The default lists apply if the user does not specify any file.
16632 ac_need_defaults=:
16633 while test $# != 0
16634 do
16635 case $1 in
16636 --*=?*)
16637 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16638 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16639 ac_shift=:
16640 ;;
16641 --*=)
16642 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16643 ac_optarg=
16644 ac_shift=:
16645 ;;
16646 *)
16647 ac_option=$1
16648 ac_optarg=$2
16649 ac_shift=shift
16650 ;;
16651 esac
16652
16653 case $ac_option in
16654 # Handling of the options.
16655 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16656 ac_cs_recheck=: ;;
16657 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16658 printf "%s\n" "$ac_cs_version"; exit ;;
16659 --config | --confi | --conf | --con | --co | --c )
16660 printf "%s\n" "$ac_cs_config"; exit ;;
16661 --debug | --debu | --deb | --de | --d | -d )
16662 debug=: ;;
16663 --file | --fil | --fi | --f )
16664 $ac_shift
16665 case $ac_optarg in
16666 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16667 '') as_fn_error $? "missing file argument" ;;
16668 esac
16669 as_fn_append CONFIG_FILES " '$ac_optarg'"
16670 ac_need_defaults=false;;
16671 --header | --heade | --head | --hea )
16672 $ac_shift
16673 case $ac_optarg in
16674 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16675 esac
16676 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16677 ac_need_defaults=false;;
16678 --he | --h)
16679 # Conflict between --help and --header
16680 as_fn_error $? "ambiguous option: '$1'
16681 Try '$0 --help' for more information.";;
16682 --help | --hel | -h )
16683 printf "%s\n" "$ac_cs_usage"; exit ;;
16684 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16685 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16686 ac_cs_silent=: ;;
16687
16688 # This is an error.
16689 -*) as_fn_error $? "unrecognized option: '$1'
16690 Try '$0 --help' for more information." ;;
16691
16692 *) as_fn_append ac_config_targets " $1"
16693 ac_need_defaults=false ;;
16694
16695 esac
16696 shift
16697 done
16698
16699 ac_configure_extra_args=
16700
16701 if $ac_cs_silent; then
16702 exec 6>/dev/null
16703 ac_configure_extra_args="$ac_configure_extra_args --silent"
16704 fi
16705
16706 _ACEOF
16707 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16708 if \$ac_cs_recheck; then
16709 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16710 shift
16711 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
16712 CONFIG_SHELL='$SHELL'
16713 export CONFIG_SHELL
16714 exec "\$@"
16715 fi
16716
16717 _ACEOF
16718 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16719 exec 5>>config.log
16720 {
16721 echo
16722 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16723 ## Running $as_me. ##
16724 _ASBOX
16725 printf "%s\n" "$ac_log"
16726 } >&5
16727
16728 _ACEOF
16729 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16730 #
16731 # INIT-COMMANDS
16732 #
16733 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
16734
16735
16736 # The HP-UX ksh and POSIX shell print the target directory to stdout
16737 # if CDPATH is set.
16738 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16739
16740 sed_quote_subst='$sed_quote_subst'
16741 double_quote_subst='$double_quote_subst'
16742 delay_variable_subst='$delay_variable_subst'
16743 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16744 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16745 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
16746 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16747 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16748 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16749 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16750 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16751 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16752 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
16753 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16754 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16755 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16756 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16757 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16758 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16759 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16760 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16761 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16762 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16763 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16764 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16765 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16766 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16767 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16768 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16769 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16770 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16771 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16772 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16773 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16774 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16775 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16776 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16777 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16778 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16779 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16780 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
16781 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16782 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16783 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16784 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16785 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16786 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16787 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
16788 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16789 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16790 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16791 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16792 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16793 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16794 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16795 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16796 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16797 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16798 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16799 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16800 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16801 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16802 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
16803 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16804 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"`'
16805 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
16806 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16807 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16808 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
16809 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16810 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16811 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16812 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16813 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16814 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16815 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16816 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16817 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16818 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16819 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16820 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16821 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16822 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16823 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16824 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16825 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16826 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16827 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16828 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16829 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16830 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16831 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16832 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16833 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16834 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16835 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16836 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16837 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16838 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16839 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16840 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16841 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16842 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16843 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16844 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16845 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16846 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16847 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16848 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16849 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16850 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16851 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16852 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16853 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16854 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16855 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16856 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16857 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16858 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16859 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16860 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16861 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16862 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16863 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16864 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16865 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16866 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16867 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16868 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16869 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16870 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16871 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16872 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16873 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
16874 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
16875 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16876 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16877 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16878 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16879 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16880 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16881
16882 LTCC='$LTCC'
16883 LTCFLAGS='$LTCFLAGS'
16884 compiler='$compiler_DEFAULT'
16885
16886 # A function that is used when there is no print builtin or printf.
16887 func_fallback_echo ()
16888 {
16889 eval 'cat <<_LTECHO_EOF
16890 \$1
16891 _LTECHO_EOF'
16892 }
16893
16894 # Quote evaled strings.
16895 for var in AS \
16896 DLLTOOL \
16897 OBJDUMP \
16898 SHELL \
16899 ECHO \
16900 PATH_SEPARATOR \
16901 SED \
16902 GREP \
16903 EGREP \
16904 FGREP \
16905 LD \
16906 NM \
16907 LN_S \
16908 lt_SP2NL \
16909 lt_NL2SP \
16910 reload_flag \
16911 FILECMD \
16912 deplibs_check_method \
16913 file_magic_cmd \
16914 file_magic_glob \
16915 want_nocaseglob \
16916 sharedlib_from_linklib_cmd \
16917 AR \
16918 archiver_list_spec \
16919 STRIP \
16920 RANLIB \
16921 CC \
16922 CFLAGS \
16923 compiler \
16924 lt_cv_sys_global_symbol_pipe \
16925 lt_cv_sys_global_symbol_to_cdecl \
16926 lt_cv_sys_global_symbol_to_import \
16927 lt_cv_sys_global_symbol_to_c_name_address \
16928 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16929 lt_cv_nm_interface \
16930 nm_file_list_spec \
16931 lt_cv_truncate_bin \
16932 lt_prog_compiler_no_builtin_flag \
16933 lt_prog_compiler_pic \
16934 lt_prog_compiler_wl \
16935 lt_prog_compiler_static \
16936 lt_cv_prog_compiler_c_o \
16937 need_locks \
16938 MANIFEST_TOOL \
16939 DSYMUTIL \
16940 NMEDIT \
16941 LIPO \
16942 OTOOL \
16943 OTOOL64 \
16944 shrext_cmds \
16945 export_dynamic_flag_spec \
16946 whole_archive_flag_spec \
16947 compiler_needs_object \
16948 with_gnu_ld \
16949 allow_undefined_flag \
16950 no_undefined_flag \
16951 hardcode_libdir_flag_spec \
16952 hardcode_libdir_separator \
16953 exclude_expsyms \
16954 include_expsyms \
16955 file_list_spec \
16956 variables_saved_for_relink \
16957 libname_spec \
16958 library_names_spec \
16959 soname_spec \
16960 install_override_mode \
16961 finish_eval \
16962 old_striplib \
16963 striplib; do
16964 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16965 *[\\\\\\\`\\"\\\$]*)
16966 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16967 ;;
16968 *)
16969 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16970 ;;
16971 esac
16972 done
16973
16974 # Double-quote double-evaled strings.
16975 for var in reload_cmds \
16976 old_postinstall_cmds \
16977 old_postuninstall_cmds \
16978 old_archive_cmds \
16979 extract_expsyms_cmds \
16980 old_archive_from_new_cmds \
16981 old_archive_from_expsyms_cmds \
16982 archive_cmds \
16983 archive_expsym_cmds \
16984 module_cmds \
16985 module_expsym_cmds \
16986 export_symbols_cmds \
16987 prelink_cmds \
16988 postlink_cmds \
16989 postinstall_cmds \
16990 postuninstall_cmds \
16991 finish_cmds \
16992 sys_lib_search_path_spec \
16993 configure_time_dlsearch_path \
16994 configure_time_lt_sys_library_path; do
16995 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16996 *[\\\\\\\`\\"\\\$]*)
16997 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16998 ;;
16999 *)
17000 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17001 ;;
17002 esac
17003 done
17004
17005 ac_aux_dir='$ac_aux_dir'
17006
17007 # See if we are running on zsh, and set the options that allow our
17008 # commands through without removal of \ escapes INIT.
17009 if test -n "\${ZSH_VERSION+set}"; then
17010 setopt NO_GLOB_SUBST
17011 fi
17012
17013
17014 PACKAGE='$PACKAGE'
17015 VERSION='$VERSION'
17016 RM='$RM'
17017 ofile='$ofile'
17018
17019 kpse_dll_name='$kpse_dll_name'
17020
17021
17022
17023 _ACEOF
17024
17025 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17026
17027 # Handling of arguments.
17028 for ac_config_target in $ac_config_targets
17029 do
17030 case $ac_config_target in
17031 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17032 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17033 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17034 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17035 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
17036
17037 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
17038 esac
17039 done
17040
17041
17042 # If the user did not use the arguments to specify the items to instantiate,
17043 # then the envvar interface is used. Set only those that are not.
17044 # We use the long form for the default assignment because of an extremely
17045 # bizarre bug on SunOS 4.1.3.
17046 if $ac_need_defaults; then
17047 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
17048 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
17049 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
17050 fi
17051
17052 # Have a temporary directory for convenience. Make it in the build tree
17053 # simply because there is no reason against having it here, and in addition,
17054 # creating and moving files from /tmp can sometimes cause problems.
17055 # Hook for its removal unless debugging.
17056 # Note that there is a small window in which the directory will not be cleaned:
17057 # after its creation but before its name has been assigned to '$tmp'.
17058 $debug ||
17059 {
17060 tmp= ac_tmp=
17061 trap 'exit_status=$?
17062 : "${ac_tmp:=$tmp}"
17063 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17064 ' 0
17065 trap 'as_fn_exit 1' 1 2 13 15
17066 }
17067 # Create a (secure) tmp directory for tmp files.
17068
17069 {
17070 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17071 test -d "$tmp"
17072 } ||
17073 {
17074 tmp=./conf$$-$RANDOM
17075 (umask 077 && mkdir "$tmp")
17076 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17077 ac_tmp=$tmp
17078
17079 # Set up the scripts for CONFIG_FILES section.
17080 # No need to generate them if there are no CONFIG_FILES.
17081 # This happens for instance with './config.status config.h'.
17082 if test -n "$CONFIG_FILES"; then
17083
17084
17085 ac_cr=`echo X | tr X '\015'`
17086 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17087 # But we know of no other shell where ac_cr would be empty at this
17088 # point, so we can use a bashism as a fallback.
17089 if test "x$ac_cr" = x; then
17090 eval ac_cr=\$\'\\r\'
17091 fi
17092 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17093 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17094 ac_cs_awk_cr='\\r'
17095 else
17096 ac_cs_awk_cr=$ac_cr
17097 fi
17098
17099 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17100 _ACEOF
17101
17102
17103 {
17104 echo "cat >conf$$subs.awk <<_ACEOF" &&
17105 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17106 echo "_ACEOF"
17107 } >conf$$subs.sh ||
17108 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17109 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17110 ac_delim='%!_!# '
17111 for ac_last_try in false false false false false :; do
17112 . ./conf$$subs.sh ||
17113 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17114
17115 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17116 if test $ac_delim_n = $ac_delim_num; then
17117 break
17118 elif $ac_last_try; then
17119 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17120 else
17121 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17122 fi
17123 done
17124 rm -f conf$$subs.sh
17125
17126 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17127 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17128 _ACEOF
17129 sed -n '
17130 h
17131 s/^/S["/; s/!.*/"]=/
17132 p
17133 g
17134 s/^[^!]*!//
17135 :repl
17136 t repl
17137 s/'"$ac_delim"'$//
17138 t delim
17139 :nl
17140 h
17141 s/\(.\{148\}\)..*/\1/
17142 t more1
17143 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17144 p
17145 n
17146 b repl
17147 :more1
17148 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17149 p
17150 g
17151 s/.\{148\}//
17152 t nl
17153 :delim
17154 h
17155 s/\(.\{148\}\)..*/\1/
17156 t more2
17157 s/["\\]/\\&/g; s/^/"/; s/$/"/
17158 p
17159 b
17160 :more2
17161 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17162 p
17163 g
17164 s/.\{148\}//
17165 t delim
17166 ' <conf$$subs.awk | sed '
17167 /^[^""]/{
17168 N
17169 s/\n//
17170 }
17171 ' >>$CONFIG_STATUS || ac_write_fail=1
17172 rm -f conf$$subs.awk
17173 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17174 _ACAWK
17175 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17176 for (key in S) S_is_set[key] = 1
17177 FS = ""
17178
17179 }
17180 {
17181 line = $ 0
17182 nfields = split(line, field, "@")
17183 substed = 0
17184 len = length(field[1])
17185 for (i = 2; i < nfields; i++) {
17186 key = field[i]
17187 keylen = length(key)
17188 if (S_is_set[key]) {
17189 value = S[key]
17190 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17191 len += length(value) + length(field[++i])
17192 substed = 1
17193 } else
17194 len += 1 + keylen
17195 }
17196
17197 print line
17198 }
17199
17200 _ACAWK
17201 _ACEOF
17202 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17203 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17204 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17205 else
17206 cat
17207 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17208 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17209 _ACEOF
17210
17211 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17212 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17213 # trailing colons and then remove the whole line if VPATH becomes empty
17214 # (actually we leave an empty line to preserve line numbers).
17215 if test "x$srcdir" = x.; then
17216 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17217 h
17218 s///
17219 s/^/:/
17220 s/[ ]*$/:/
17221 s/:\$(srcdir):/:/g
17222 s/:\${srcdir}:/:/g
17223 s/:@srcdir@:/:/g
17224 s/^:*//
17225 s/:*$//
17226 x
17227 s/\(=[ ]*\).*/\1/
17228 G
17229 s/\n//
17230 s/^[^=]*=[ ]*$//
17231 }'
17232 fi
17233
17234 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17235 fi # test -n "$CONFIG_FILES"
17236
17237 # Set up the scripts for CONFIG_HEADERS section.
17238 # No need to generate them if there are no CONFIG_HEADERS.
17239 # This happens for instance with './config.status Makefile'.
17240 if test -n "$CONFIG_HEADERS"; then
17241 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17242 BEGIN {
17243 _ACEOF
17244
17245 # Transform confdefs.h into an awk script 'defines.awk', embedded as
17246 # here-document in config.status, that substitutes the proper values into
17247 # config.h.in to produce config.h.
17248
17249 # Create a delimiter string that does not exist in confdefs.h, to ease
17250 # handling of long lines.
17251 ac_delim='%!_!# '
17252 for ac_last_try in false false :; do
17253 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17254 if test -z "$ac_tt"; then
17255 break
17256 elif $ac_last_try; then
17257 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17258 else
17259 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17260 fi
17261 done
17262
17263 # For the awk script, D is an array of macro values keyed by name,
17264 # likewise P contains macro parameters if any. Preserve backslash
17265 # newline sequences.
17266
17267 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17268 sed -n '
17269 s/.\{148\}/&'"$ac_delim"'/g
17270 t rset
17271 :rset
17272 s/^[ ]*#[ ]*define[ ][ ]*/ /
17273 t def
17274 d
17275 :def
17276 s/\\$//
17277 t bsnl
17278 s/["\\]/\\&/g
17279 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17280 D["\1"]=" \3"/p
17281 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17282 d
17283 :bsnl
17284 s/["\\]/\\&/g
17285 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17286 D["\1"]=" \3\\\\\\n"\\/p
17287 t cont
17288 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17289 t cont
17290 d
17291 :cont
17292 n
17293 s/.\{148\}/&'"$ac_delim"'/g
17294 t clear
17295 :clear
17296 s/\\$//
17297 t bsnlc
17298 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17299 d
17300 :bsnlc
17301 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17302 b cont
17303 ' <confdefs.h | sed '
17304 s/'"$ac_delim"'/"\\\
17305 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17306
17307 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17308 for (key in D) D_is_set[key] = 1
17309 FS = ""
17310 }
17311 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17312 line = \$ 0
17313 split(line, arg, " ")
17314 if (arg[1] == "#") {
17315 defundef = arg[2]
17316 mac1 = arg[3]
17317 } else {
17318 defundef = substr(arg[1], 2)
17319 mac1 = arg[2]
17320 }
17321 split(mac1, mac2, "(") #)
17322 macro = mac2[1]
17323 prefix = substr(line, 1, index(line, defundef) - 1)
17324 if (D_is_set[macro]) {
17325 # Preserve the white space surrounding the "#".
17326 print prefix "define", macro P[macro] D[macro]
17327 next
17328 } else {
17329 # Replace #undef with comments. This is necessary, for example,
17330 # in the case of _POSIX_SOURCE, which is predefined and required
17331 # on some systems where configure will not decide to define it.
17332 if (defundef == "undef") {
17333 print "/*", prefix defundef, macro, "*/"
17334 next
17335 }
17336 }
17337 }
17338 { print }
17339 _ACAWK
17340 _ACEOF
17341 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17342 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17343 fi # test -n "$CONFIG_HEADERS"
17344
17345
17346 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17347 shift
17348 for ac_tag
17349 do
17350 case $ac_tag in
17351 :[FHLC]) ac_mode=$ac_tag; continue;;
17352 esac
17353 case $ac_mode$ac_tag in
17354 :[FHL]*:*);;
17355 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
17356 :[FH]-) ac_tag=-:-;;
17357 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17358 esac
17359 ac_save_IFS=$IFS
17360 IFS=:
17361 set x $ac_tag
17362 IFS=$ac_save_IFS
17363 shift
17364 ac_file=$1
17365 shift
17366
17367 case $ac_mode in
17368 :L) ac_source=$1;;
17369 :[FH])
17370 ac_file_inputs=
17371 for ac_f
17372 do
17373 case $ac_f in
17374 -) ac_f="$ac_tmp/stdin";;
17375 *) # Look for the file first in the build tree, then in the source tree
17376 # (if the path is not absolute). The absolute path cannot be DOS-style,
17377 # because $ac_f cannot contain ':'.
17378 test -f "$ac_f" ||
17379 case $ac_f in
17380 [\\/$]*) false;;
17381 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17382 esac ||
17383 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
17384 esac
17385 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17386 as_fn_append ac_file_inputs " '$ac_f'"
17387 done
17388
17389 # Let's still pretend it is 'configure' which instantiates (i.e., don't
17390 # use $as_me), people would be surprised to read:
17391 # /* config.h. Generated by config.status. */
17392 configure_input='Generated from '`
17393 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17394 `' by configure.'
17395 if test x"$ac_file" != x-; then
17396 configure_input="$ac_file. $configure_input"
17397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17398 printf "%s\n" "$as_me: creating $ac_file" >&6;}
17399 fi
17400 # Neutralize special characters interpreted by sed in replacement strings.
17401 case $configure_input in #(
17402 *\&* | *\|* | *\\* )
17403 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
17404 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17405 *) ac_sed_conf_input=$configure_input;;
17406 esac
17407
17408 case $ac_tag in
17409 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17410 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17411 esac
17412 ;;
17413 esac
17414
17415 ac_dir=`$as_dirname -- "$ac_file" ||
17416 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17417 X"$ac_file" : 'X\(//\)[^/]' \| \
17418 X"$ac_file" : 'X\(//\)$' \| \
17419 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17420 printf "%s\n" X"$ac_file" |
17421 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17422 s//\1/
17423 q
17424 }
17425 /^X\(\/\/\)[^/].*/{
17426 s//\1/
17427 q
17428 }
17429 /^X\(\/\/\)$/{
17430 s//\1/
17431 q
17432 }
17433 /^X\(\/\).*/{
17434 s//\1/
17435 q
17436 }
17437 s/.*/./; q'`
17438 as_dir="$ac_dir"; as_fn_mkdir_p
17439 ac_builddir=.
17440
17441 case "$ac_dir" in
17442 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17443 *)
17444 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
17445 # A ".." for each directory in $ac_dir_suffix.
17446 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17447 case $ac_top_builddir_sub in
17448 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17449 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17450 esac ;;
17451 esac
17452 ac_abs_top_builddir=$ac_pwd
17453 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17454 # for backward compatibility:
17455 ac_top_builddir=$ac_top_build_prefix
17456
17457 case $srcdir in
17458 .) # We are building in place.
17459 ac_srcdir=.
17460 ac_top_srcdir=$ac_top_builddir_sub
17461 ac_abs_top_srcdir=$ac_pwd ;;
17462 [\\/]* | ?:[\\/]* ) # Absolute name.
17463 ac_srcdir=$srcdir$ac_dir_suffix;
17464 ac_top_srcdir=$srcdir
17465 ac_abs_top_srcdir=$srcdir ;;
17466 *) # Relative name.
17467 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17468 ac_top_srcdir=$ac_top_build_prefix$srcdir
17469 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17470 esac
17471 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17472
17473
17474 case $ac_mode in
17475 :F)
17476 #
17477 # CONFIG_FILE
17478 #
17479
17480 case $INSTALL in
17481 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17482 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17483 esac
17484 ac_MKDIR_P=$MKDIR_P
17485 case $MKDIR_P in
17486 [\\/$]* | ?:[\\/]* ) ;;
17487 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17488 esac
17489 _ACEOF
17490
17491 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17492 # If the template does not know about datarootdir, expand it.
17493 # FIXME: This hack should be removed a few years after 2.60.
17494 ac_datarootdir_hack=; ac_datarootdir_seen=
17495 ac_sed_dataroot='
17496 /datarootdir/ {
17497 p
17498 q
17499 }
17500 /@datadir@/p
17501 /@docdir@/p
17502 /@infodir@/p
17503 /@localedir@/p
17504 /@mandir@/p'
17505 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17506 *datarootdir*) ac_datarootdir_seen=yes;;
17507 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17509 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17510 _ACEOF
17511 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17512 ac_datarootdir_hack='
17513 s&@datadir@&$datadir&g
17514 s&@docdir@&$docdir&g
17515 s&@infodir@&$infodir&g
17516 s&@localedir@&$localedir&g
17517 s&@mandir@&$mandir&g
17518 s&\\\${datarootdir}&$datarootdir&g' ;;
17519 esac
17520 _ACEOF
17521
17522 # Neutralize VPATH when '$srcdir' = '.'.
17523 # Shell code in configure.ac might set extrasub.
17524 # FIXME: do we really want to maintain this feature?
17525 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17526 ac_sed_extra="$ac_vpsub
17527 $extrasub
17528 _ACEOF
17529 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17530 :t
17531 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17532 s|@configure_input@|$ac_sed_conf_input|;t t
17533 s&@top_builddir@&$ac_top_builddir_sub&;t t
17534 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17535 s&@srcdir@&$ac_srcdir&;t t
17536 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17537 s&@top_srcdir@&$ac_top_srcdir&;t t
17538 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17539 s&@builddir@&$ac_builddir&;t t
17540 s&@abs_builddir@&$ac_abs_builddir&;t t
17541 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17542 s&@INSTALL@&$ac_INSTALL&;t t
17543 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17544 $ac_datarootdir_hack
17545 "
17546 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17547 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17548
17549 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17550 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17551 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17552 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
17554 which seems to be undefined. Please make sure it is defined" >&5
17555 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
17556 which seems to be undefined. Please make sure it is defined" >&2;}
17557
17558 rm -f "$ac_tmp/stdin"
17559 case $ac_file in
17560 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17561 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17562 esac \
17563 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17564 ;;
17565 :H)
17566 #
17567 # CONFIG_HEADER
17568 #
17569 if test x"$ac_file" != x-; then
17570 {
17571 printf "%s\n" "/* $configure_input */" >&1 \
17572 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17573 } >"$ac_tmp/config.h" \
17574 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17575 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17577 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
17578 else
17579 rm -f "$ac_file"
17580 mv "$ac_tmp/config.h" "$ac_file" \
17581 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17582 fi
17583 else
17584 printf "%s\n" "/* $configure_input */" >&1 \
17585 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17586 || as_fn_error $? "could not create -" "$LINENO" 5
17587 fi
17588 # Compute "$ac_file"'s index in $config_headers.
17589 _am_arg="$ac_file"
17590 _am_stamp_count=1
17591 for _am_header in $config_headers :; do
17592 case $_am_header in
17593 $_am_arg | $_am_arg:* )
17594 break ;;
17595 * )
17596 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17597 esac
17598 done
17599 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17600 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17601 X"$_am_arg" : 'X\(//\)[^/]' \| \
17602 X"$_am_arg" : 'X\(//\)$' \| \
17603 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17604 printf "%s\n" X"$_am_arg" |
17605 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17606 s//\1/
17607 q
17608 }
17609 /^X\(\/\/\)[^/].*/{
17610 s//\1/
17611 q
17612 }
17613 /^X\(\/\/\)$/{
17614 s//\1/
17615 q
17616 }
17617 /^X\(\/\).*/{
17618 s//\1/
17619 q
17620 }
17621 s/.*/./; q'`/stamp-h$_am_stamp_count
17622 ;;
17623
17624 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17625 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
17626 ;;
17627 esac
17628
17629
17630 case $ac_file$ac_mode in
17631 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17632 # Older Autoconf quotes --file arguments for eval, but not when files
17633 # are listed without --file. Let's play safe and only enable the eval
17634 # if we detect the quoting.
17635 # TODO: see whether this extra hack can be removed once we start
17636 # requiring Autoconf 2.70 or later.
17637 case $CONFIG_FILES in #(
17638 *\'*) :
17639 eval set x "$CONFIG_FILES" ;; #(
17640 *) :
17641 set x $CONFIG_FILES ;; #(
17642 *) :
17643 ;;
17644 esac
17645 shift
17646 # Used to flag and report bootstrapping failures.
17647 am_rc=0
17648 for am_mf
17649 do
17650 # Strip MF so we end up with the name of the file.
17651 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
17652 # Check whether this is an Automake generated Makefile which includes
17653 # dependency-tracking related rules and includes.
17654 # Grep'ing the whole file directly is not great: AIX grep has a line
17655 # limit of 2048, but all sed's we know have understand at least 4000.
17656 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
17657 || continue
17658 am_dirpart=`$as_dirname -- "$am_mf" ||
17659 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17660 X"$am_mf" : 'X\(//\)[^/]' \| \
17661 X"$am_mf" : 'X\(//\)$' \| \
17662 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
17663 printf "%s\n" X"$am_mf" |
17664 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17665 s//\1/
17666 q
17667 }
17668 /^X\(\/\/\)[^/].*/{
17669 s//\1/
17670 q
17671 }
17672 /^X\(\/\/\)$/{
17673 s//\1/
17674 q
17675 }
17676 /^X\(\/\).*/{
17677 s//\1/
17678 q
17679 }
17680 s/.*/./; q'`
17681 am_filepart=`$as_basename -- "$am_mf" ||
17682 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
17683 X"$am_mf" : 'X\(//\)$' \| \
17684 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
17685 printf "%s\n" X/"$am_mf" |
17686 sed '/^.*\/\([^/][^/]*\)\/*$/{
17687 s//\1/
17688 q
17689 }
17690 /^X\/\(\/\/\)$/{
17691 s//\1/
17692 q
17693 }
17694 /^X\/\(\/\).*/{
17695 s//\1/
17696 q
17697 }
17698 s/.*/./; q'`
17699 { echo "$as_me:$LINENO: cd "$am_dirpart" \
17700 && sed -e '/# am--include-marker/d' "$am_filepart" \
17701 | $MAKE -f - am--depfiles" >&5
17702 (cd "$am_dirpart" \
17703 && sed -e '/# am--include-marker/d' "$am_filepart" \
17704 | $MAKE -f - am--depfiles) >&5 2>&5
17705 ac_status=$?
17706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17707 (exit $ac_status); } || am_rc=$?
17708 done
17709 if test $am_rc -ne 0; then
17710 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
17711 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
17712 as_fn_error $? "Something went wrong bootstrapping makefile fragments
17713 for automatic dependency tracking. If GNU make was not used, consider
17714 re-running the configure script with MAKE=\"gmake\" (or whatever is
17715 necessary). You can also try re-running configure with the
17716 '--disable-dependency-tracking' option to at least be able to build
17717 the package (albeit without support for automatic dependency tracking).
17718 See 'config.log' for more details" "$LINENO" 5; }
17719 fi
17720 { am_dirpart=; unset am_dirpart;}
17721 { am_filepart=; unset am_filepart;}
17722 { am_mf=; unset am_mf;}
17723 { am_rc=; unset am_rc;}
17724 rm -f conftest-deps.mk
17725 }
17726 ;;
17727 "libtool":C)
17728
17729 # See if we are running on zsh, and set the options that allow our
17730 # commands through without removal of \ escapes.
17731 if test -n "${ZSH_VERSION+set}"; then
17732 setopt NO_GLOB_SUBST
17733 fi
17734
17735 cfgfile=${ofile}T
17736 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17737 $RM "$cfgfile"
17738
17739 cat <<_LT_EOF >> "$cfgfile"
17740 #! $SHELL
17741 # Generated automatically by $as_me ($PACKAGE) $VERSION
17742 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17743
17744 # Provide generalized library-building support services.
17745 # Written by Gordon Matzigkeit, 1996
17746
17747 # Copyright (C) 2024 Free Software Foundation, Inc.
17748 # This is free software; see the source for copying conditions. There is NO
17749 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17750
17751 # GNU Libtool is free software; you can redistribute it and/or modify
17752 # it under the terms of the GNU General Public License as published by
17753 # the Free Software Foundation; either version 2 of the License, or
17754 # (at your option) any later version.
17755 #
17756 # As a special exception to the GNU General Public License, if you
17757 # distribute this file as part of a program or library that is built
17758 # using GNU Libtool, you may include this file under the same
17759 # distribution terms that you use for the rest of that program.
17760 #
17761 # GNU Libtool is distributed in the hope that it will be useful, but
17762 # WITHOUT ANY WARRANTY; without even the implied warranty of
17763 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17764 # GNU General Public License for more details.
17765 #
17766 # You should have received a copy of the GNU General Public License
17767 # along with this program. If not, see <http://www.gnu.org/licenses/>.
17768
17769
17770 # The names of the tagged configurations supported by this script.
17771 available_tags=''
17772
17773 # Configured defaults for sys_lib_dlsearch_path munging.
17774 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
17775
17776 # ### BEGIN LIBTOOL CONFIG
17777
17778 # Which release of libtool.m4 was used?
17779 macro_version=$macro_version
17780 macro_revision=$macro_revision
17781
17782 # Assembler program.
17783 AS=$lt_AS
17784
17785 # DLL creation program.
17786 DLLTOOL=$lt_DLLTOOL
17787
17788 # Object dumper program.
17789 OBJDUMP=$lt_OBJDUMP
17790
17791 # Whether or not to build shared libraries.
17792 build_libtool_libs=$enable_shared
17793
17794 # Whether or not to build static libraries.
17795 build_old_libs=$enable_static
17796
17797 # What type of objects to build.
17798 pic_mode=$pic_mode
17799
17800 # Whether or not to optimize for fast installation.
17801 fast_install=$enable_fast_install
17802
17803 # Shared archive member basename,for filename based shared library versioning on AIX.
17804 shared_archive_member_spec=$shared_archive_member_spec
17805
17806 # Shell to use when invoking shell scripts.
17807 SHELL=$lt_SHELL
17808
17809 # An echo program that protects backslashes.
17810 ECHO=$lt_ECHO
17811
17812 # The PATH separator for the build system.
17813 PATH_SEPARATOR=$lt_PATH_SEPARATOR
17814
17815 # The host system.
17816 host_alias=$host_alias
17817 host=$host
17818 host_os=$host_os
17819
17820 # The build system.
17821 build_alias=$build_alias
17822 build=$build
17823 build_os=$build_os
17824
17825 # A sed program that does not truncate output.
17826 SED=$lt_SED
17827
17828 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17829 Xsed="\$SED -e 1s/^X//"
17830
17831 # A grep program that handles long lines.
17832 GREP=$lt_GREP
17833
17834 # An ERE matcher.
17835 EGREP=$lt_EGREP
17836
17837 # A literal string matcher.
17838 FGREP=$lt_FGREP
17839
17840 # A BSD- or MS-compatible name lister.
17841 NM=$lt_NM
17842
17843 # Whether we need soft or hard links.
17844 LN_S=$lt_LN_S
17845
17846 # What is the maximum length of a command?
17847 max_cmd_len=$max_cmd_len
17848
17849 # Object file suffix (normally "o").
17850 objext=$ac_objext
17851
17852 # Executable file suffix (normally "").
17853 exeext=$exeext
17854
17855 # whether the shell understands "unset".
17856 lt_unset=$lt_unset
17857
17858 # turn spaces into newlines.
17859 SP2NL=$lt_lt_SP2NL
17860
17861 # turn newlines into spaces.
17862 NL2SP=$lt_lt_NL2SP
17863
17864 # convert \$build file names to \$host format.
17865 to_host_file_cmd=$lt_cv_to_host_file_cmd
17866
17867 # convert \$build files to toolchain format.
17868 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17869
17870 # A file(cmd) program that detects file types.
17871 FILECMD=$lt_FILECMD
17872
17873 # Method to check whether dependent libraries are shared objects.
17874 deplibs_check_method=$lt_deplibs_check_method
17875
17876 # Command to use when deplibs_check_method = "file_magic".
17877 file_magic_cmd=$lt_file_magic_cmd
17878
17879 # How to find potential files when deplibs_check_method = "file_magic".
17880 file_magic_glob=$lt_file_magic_glob
17881
17882 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17883 want_nocaseglob=$lt_want_nocaseglob
17884
17885 # Command to associate shared and link libraries.
17886 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17887
17888 # The archiver.
17889 AR=$lt_AR
17890
17891 # Flags to create an archive (by configure).
17892 lt_ar_flags=$lt_ar_flags
17893
17894 # Flags to create an archive.
17895 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
17896
17897 # How to feed a file listing to the archiver.
17898 archiver_list_spec=$lt_archiver_list_spec
17899
17900 # A symbol stripping program.
17901 STRIP=$lt_STRIP
17902
17903 # Commands used to install an old-style archive.
17904 RANLIB=$lt_RANLIB
17905 old_postinstall_cmds=$lt_old_postinstall_cmds
17906 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17907
17908 # Whether to use a lock for old archive extraction.
17909 lock_old_archive_extraction=$lock_old_archive_extraction
17910
17911 # A C compiler.
17912 LTCC=$lt_CC
17913
17914 # LTCC compiler flags.
17915 LTCFLAGS=$lt_CFLAGS
17916
17917 # Take the output of nm and produce a listing of raw symbols and C names.
17918 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17919
17920 # Transform the output of nm in a proper C declaration.
17921 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17922
17923 # Transform the output of nm into a list of symbols to manually relocate.
17924 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
17925
17926 # Transform the output of nm in a C name address pair.
17927 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17928
17929 # Transform the output of nm in a C name address pair when lib prefix is needed.
17930 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17931
17932 # The name lister interface.
17933 nm_interface=$lt_lt_cv_nm_interface
17934
17935 # Specify filename containing input files for \$NM.
17936 nm_file_list_spec=$lt_nm_file_list_spec
17937
17938 # The root where to search for dependent libraries,and where our libraries should be installed.
17939 lt_sysroot=$lt_sysroot
17940
17941 # Command to truncate a binary pipe.
17942 lt_truncate_bin=$lt_lt_cv_truncate_bin
17943
17944 # The name of the directory that contains temporary libtool files.
17945 objdir=$objdir
17946
17947 # Used to examine libraries when file_magic_cmd begins with "file".
17948 MAGIC_CMD=$MAGIC_CMD
17949
17950 # Must we lock files when doing compilation?
17951 need_locks=$lt_need_locks
17952
17953 # Manifest tool.
17954 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17955
17956 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17957 DSYMUTIL=$lt_DSYMUTIL
17958
17959 # Tool to change global to local symbols on Mac OS X.
17960 NMEDIT=$lt_NMEDIT
17961
17962 # Tool to manipulate fat objects and archives on Mac OS X.
17963 LIPO=$lt_LIPO
17964
17965 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17966 OTOOL=$lt_OTOOL
17967
17968 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17969 OTOOL64=$lt_OTOOL64
17970
17971 # Old archive suffix (normally "a").
17972 libext=$libext
17973
17974 # Shared library suffix (normally ".so").
17975 shrext_cmds=$lt_shrext_cmds
17976
17977 # The commands to extract the exported symbol list from a shared archive.
17978 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17979
17980 # Variables whose values should be saved in libtool wrapper scripts and
17981 # restored at link time.
17982 variables_saved_for_relink=$lt_variables_saved_for_relink
17983
17984 # Do we need the "lib" prefix for modules?
17985 need_lib_prefix=$need_lib_prefix
17986
17987 # Do we need a version for libraries?
17988 need_version=$need_version
17989
17990 # Library versioning type.
17991 version_type=$version_type
17992
17993 # Shared library runtime path variable.
17994 runpath_var=$runpath_var
17995
17996 # Shared library path variable.
17997 shlibpath_var=$shlibpath_var
17998
17999 # Is shlibpath searched before the hard-coded library search path?
18000 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18001
18002 # Format of library name prefix.
18003 libname_spec=$lt_libname_spec
18004
18005 # List of archive names. First name is the real one, the rest are links.
18006 # The last name is the one that the linker finds with -lNAME
18007 library_names_spec=$lt_library_names_spec
18008
18009 # The coded name of the library, if different from the real name.
18010 soname_spec=$lt_soname_spec
18011
18012 # Permission mode override for installation of shared libraries.
18013 install_override_mode=$lt_install_override_mode
18014
18015 # Command to use after installation of a shared archive.
18016 postinstall_cmds=$lt_postinstall_cmds
18017
18018 # Command to use after uninstallation of a shared archive.
18019 postuninstall_cmds=$lt_postuninstall_cmds
18020
18021 # Commands used to finish a libtool library installation in a directory.
18022 finish_cmds=$lt_finish_cmds
18023
18024 # As "finish_cmds", except a single script fragment to be evaled but
18025 # not shown.
18026 finish_eval=$lt_finish_eval
18027
18028 # Whether we should hardcode library paths into libraries.
18029 hardcode_into_libs=$hardcode_into_libs
18030
18031 # Compile-time system search path for libraries.
18032 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18033
18034 # Detected run-time system search path for libraries.
18035 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
18036
18037 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
18038 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
18039
18040 # Whether dlopen is supported.
18041 dlopen_support=$enable_dlopen
18042
18043 # Whether dlopen of programs is supported.
18044 dlopen_self=$enable_dlopen_self
18045
18046 # Whether dlopen of statically linked programs is supported.
18047 dlopen_self_static=$enable_dlopen_self_static
18048
18049 # Commands to strip libraries.
18050 old_striplib=$lt_old_striplib
18051 striplib=$lt_striplib
18052
18053
18054 # The linker used to build libraries.
18055 LD=$lt_LD
18056
18057 # How to create reloadable object files.
18058 reload_flag=$lt_reload_flag
18059 reload_cmds=$lt_reload_cmds
18060
18061 # Commands used to build an old-style archive.
18062 old_archive_cmds=$lt_old_archive_cmds
18063
18064 # A language specific compiler.
18065 CC=$lt_compiler
18066
18067 # Is the compiler the GNU compiler?
18068 with_gcc=$GCC
18069
18070 # Compiler flag to turn off builtin functions.
18071 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18072
18073 # Additional compiler flags for building library objects.
18074 pic_flag=$lt_lt_prog_compiler_pic
18075
18076 # How to pass a linker flag through the compiler.
18077 wl=$lt_lt_prog_compiler_wl
18078
18079 # Compiler flag to prevent dynamic linking.
18080 link_static_flag=$lt_lt_prog_compiler_static
18081
18082 # Does compiler simultaneously support -c and -o options?
18083 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18084
18085 # Whether or not to add -lc for building shared libraries.
18086 build_libtool_need_lc=$archive_cmds_need_lc
18087
18088 # Whether or not to disallow shared libs when runtime libs are static.
18089 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18090
18091 # Compiler flag to allow reflexive dlopens.
18092 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18093
18094 # Compiler flag to generate shared objects directly from archives.
18095 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18096
18097 # Whether the compiler copes with passing no objects directly.
18098 compiler_needs_object=$lt_compiler_needs_object
18099
18100 # Create an old-style archive from a shared archive.
18101 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18102
18103 # Create a temporary old-style archive to link instead of a shared archive.
18104 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18105
18106 # Commands used to build a shared archive.
18107 archive_cmds=$lt_archive_cmds
18108 archive_expsym_cmds=$lt_archive_expsym_cmds
18109
18110 # Commands used to build a loadable module if different from building
18111 # a shared archive.
18112 module_cmds=$lt_module_cmds
18113 module_expsym_cmds=$lt_module_expsym_cmds
18114
18115 # Whether we are building with GNU ld or not.
18116 with_gnu_ld=$lt_with_gnu_ld
18117
18118 # Flag that allows shared libraries with undefined symbols to be built.
18119 allow_undefined_flag=$lt_allow_undefined_flag
18120
18121 # Flag that enforces no undefined symbols.
18122 no_undefined_flag=$lt_no_undefined_flag
18123
18124 # Flag to hardcode \$libdir into a binary during linking.
18125 # This must work even if \$libdir does not exist
18126 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18127
18128 # Whether we need a single "-rpath" flag with a separated argument.
18129 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18130
18131 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18132 # DIR into the resulting binary.
18133 hardcode_direct=$hardcode_direct
18134
18135 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18136 # DIR into the resulting binary and the resulting library dependency is
18137 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
18138 # library is relocated.
18139 hardcode_direct_absolute=$hardcode_direct_absolute
18140
18141 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18142 # into the resulting binary.
18143 hardcode_minus_L=$hardcode_minus_L
18144
18145 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18146 # into the resulting binary.
18147 hardcode_shlibpath_var=$hardcode_shlibpath_var
18148
18149 # Set to "yes" if building a shared library automatically hardcodes DIR
18150 # into the library and all subsequent libraries and executables linked
18151 # against it.
18152 hardcode_automatic=$hardcode_automatic
18153
18154 # Set to yes if linker adds runtime paths of dependent libraries
18155 # to runtime path list.
18156 inherit_rpath=$inherit_rpath
18157
18158 # Whether libtool must link a program against all its dependency libraries.
18159 link_all_deplibs=$link_all_deplibs
18160
18161 # Set to "yes" if exported symbols are required.
18162 always_export_symbols=$always_export_symbols
18163
18164 # The commands to list exported symbols.
18165 export_symbols_cmds=$lt_export_symbols_cmds
18166
18167 # Symbols that should not be listed in the preloaded symbols.
18168 exclude_expsyms=$lt_exclude_expsyms
18169
18170 # Symbols that must always be exported.
18171 include_expsyms=$lt_include_expsyms
18172
18173 # Commands necessary for linking programs (against libraries) with templates.
18174 prelink_cmds=$lt_prelink_cmds
18175
18176 # Commands necessary for finishing linking programs.
18177 postlink_cmds=$lt_postlink_cmds
18178
18179 # Specify filename containing input files.
18180 file_list_spec=$lt_file_list_spec
18181
18182 # How to hardcode a shared library path into an executable.
18183 hardcode_action=$hardcode_action
18184
18185 # ### END LIBTOOL CONFIG
18186
18187 _LT_EOF
18188
18189 cat <<'_LT_EOF' >> "$cfgfile"
18190
18191 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
18192
18193 # func_munge_path_list VARIABLE PATH
18194 # -----------------------------------
18195 # VARIABLE is name of variable containing _space_ separated list of
18196 # directories to be munged by the contents of PATH, which is string
18197 # having a format:
18198 # "DIR[:DIR]:"
18199 # string "DIR[ DIR]" will be prepended to VARIABLE
18200 # ":DIR[:DIR]"
18201 # string "DIR[ DIR]" will be appended to VARIABLE
18202 # "DIRP[:DIRP]::[DIRA:]DIRA"
18203 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
18204 # "DIRA[ DIRA]" will be appended to VARIABLE
18205 # "DIR[:DIR]"
18206 # VARIABLE will be replaced by "DIR[ DIR]"
18207 func_munge_path_list ()
18208 {
18209 case x$2 in
18210 x)
18211 ;;
18212 *:)
18213 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
18214 ;;
18215 x:*)
18216 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
18217 ;;
18218 *::*)
18219 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
18220 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
18221 ;;
18222 *)
18223 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
18224 ;;
18225 esac
18226 }
18227
18228
18229 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
18230 func_cc_basename ()
18231 {
18232 for cc_temp in $*""; do
18233 case $cc_temp in
18234 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18235 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18236 \-*) ;;
18237 *) break;;
18238 esac
18239 done
18240 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18241 }
18242
18243
18244 # ### END FUNCTIONS SHARED WITH CONFIGURE
18245
18246 _LT_EOF
18247
18248 case $host_os in
18249 aix3*)
18250 cat <<\_LT_EOF >> "$cfgfile"
18251 # AIX sometimes has problems with the GCC collect2 program. For some
18252 # reason, if we set the COLLECT_NAMES environment variable, the problems
18253 # vanish in a puff of smoke.
18254 if test set != "${COLLECT_NAMES+set}"; then
18255 COLLECT_NAMES=
18256 export COLLECT_NAMES
18257 fi
18258 _LT_EOF
18259 ;;
18260 esac
18261
18262
18263
18264 ltmain=$ac_aux_dir/ltmain.sh
18265
18266
18267 # We use sed instead of cat because bash on DJGPP gets confused if
18268 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18269 # text mode, it properly converts lines to CR/LF. This bash problem
18270 # is reportedly fixed, but why not run on old versions too?
18271 $SED '$q' "$ltmain" >> "$cfgfile" \
18272 || (rm -f "$cfgfile"; exit 1)
18273
18274 mv -f "$cfgfile" "$ofile" ||
18275 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18276 chmod +x "$ofile"
18277
18278 ## KPSE_DLL_NAME: Specify the DLL name
18279 if test "x$kpse_dll_name" != x; then
18280 $SED '/^soname_spec=/a\
18281 ## KPSE_DLL_NAME: Specify the DLL name\
18282 soname_spec='$kpse_dll_name'.dll\
18283 ' "$ofile" >"$cfgfile"
18284 mv "$cfgfile" "$ofile" ||
18285 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18286 chmod +x "$ofile"
18287 fi
18288 ;;
18289
18290 esac
18291 done # for ac_tag
18292
18293
18294 as_fn_exit 0
18295 _ACEOF
18296 ac_clean_files=$ac_clean_files_save
18297
18298 test $ac_write_fail = 0 ||
18299 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18300
18301
18302 # configure is writing to config.log, and then calls config.status.
18303 # config.status does its own redirection, appending to config.log.
18304 # Unfortunately, on DOS this fails, as config.log is still kept open
18305 # by configure, so config.status won't be able to write to it; its
18306 # output is simply discarded. So we exec the FD to /dev/null,
18307 # effectively closing config.log, so it can be properly (re)opened and
18308 # appended to by config.status. When coming back to configure, we
18309 # need to make the FD available again.
18310 if test "$no_create" != yes; then
18311 ac_cs_success=:
18312 ac_config_status_args=
18313 test "$silent" = yes &&
18314 ac_config_status_args="$ac_config_status_args --quiet"
18315 exec 5>/dev/null
18316 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18317 exec 5>>config.log
18318 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18319 # would make configure fail if this is the last instruction.
18320 $ac_cs_success || as_fn_exit 1
18321 fi
18322 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18324 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18325 fi
18326
18327