Debian Codegraph @

texk/dvi2tty/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 dvi2tty (TeX Live) 6.0.2.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21 then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else case e in #(
29 e) case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as 'sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed 'exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
144 then :
145 emulate sh
146 NULLCMD=:
147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
148 # is contrary to our usage. Disable this feature.
149 alias -g '\${1+\"\$@\"}'='\"\$@\"'
150 setopt NO_GLOB_SUBST
151 else case e in #(
152 e) case \`(set -o) 2>/dev/null\` in #(
153 *posix*) :
154 set -o posix ;; #(
155 *) :
156 ;;
157 esac ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else case e in #(
176 e) exitcode=1; echo positional parameters were not saved. ;;
177 esac
178 fi
179 test x\$exitcode = x0 || exit 1
180 blah=\$(echo \$(echo blah))
181 test x\"\$blah\" = xblah || exit 1
182 test -x / || exit 1"
183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
187
188 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
189 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
192 PATH=/empty FPATH=/empty; export PATH FPATH
193 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
194 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
195 test \$(( 1 + 1 )) = 2 || exit 1"
196 if (eval "$as_required") 2>/dev/null
197 then :
198 as_have_required=yes
199 else case e in #(
200 e) as_have_required=no ;;
201 esac
202 fi
203 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
204 then :
205
206 else case e in #(
207 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
208 as_found=false
209 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
210 do
211 IFS=$as_save_IFS
212 case $as_dir in #(((
213 '') as_dir=./ ;;
214 */) ;;
215 *) as_dir=$as_dir/ ;;
216 esac
217 as_found=:
218 case $as_dir in #(
219 /*)
220 for as_base in sh bash ksh sh5; do
221 # Try only shells that exist, to save several forks.
222 as_shell=$as_dir$as_base
223 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
224 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
225 then :
226 CONFIG_SHELL=$as_shell as_have_required=yes
227 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
228 then :
229 break 2
230 fi
231 fi
232 done;;
233 esac
234 as_found=false
235 done
236 IFS=$as_save_IFS
237 if $as_found
238 then :
239
240 else case e in #(
241 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
243 then :
244 CONFIG_SHELL=$SHELL as_have_required=yes
245 fi ;;
246 esac
247 fi
248
249
250 if test "x$CONFIG_SHELL" != x
251 then :
252 export CONFIG_SHELL
253 # We cannot yet assume a decent shell, so we have to provide a
254 # neutralization value for shells without unset; and this also
255 # works around shells that cannot unset nonexistent variables.
256 # Preserve -v and -x to the replacement shell.
257 BASH_ENV=/dev/null
258 ENV=/dev/null
259 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
260 case $- in # ((((
261 *v*x* | *x*v* ) as_opts=-vx ;;
262 *v* ) as_opts=-v ;;
263 *x* ) as_opts=-x ;;
264 * ) as_opts= ;;
265 esac
266 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
267 # Admittedly, this is quite paranoid, since all the known shells bail
268 # out after a failed 'exec'.
269 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
270 exit 255
271 fi
272
273 if test x$as_have_required = xno
274 then :
275 printf "%s\n" "$0: This script requires a shell more modern than all"
276 printf "%s\n" "$0: the shells that I found on your system."
277 if test ${ZSH_VERSION+y} ; then
278 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
279 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
280 else
281 printf "%s\n" "$0: Please tell [email protected] and [email protected]
282 $0: about your system, including any error possibly output
283 $0: before this message. Then install a modern shell, or
284 $0: manually run the script under such a shell if you do
285 $0: have one."
286 fi
287 exit 1
288 fi ;;
289 esac
290 fi
291 fi
292 SHELL=${CONFIG_SHELL-/bin/sh}
293 export SHELL
294 # Unset more variables known to interfere with behavior of common tools.
295 CLICOLOR_FORCE= GREP_OPTIONS=
296 unset CLICOLOR_FORCE GREP_OPTIONS
297
298 ## --------------------- ##
299 ## M4sh Shell Functions. ##
300 ## --------------------- ##
301 # as_fn_unset VAR
302 # ---------------
303 # Portably unset VAR.
304 as_fn_unset ()
305 {
306 { eval $1=; unset $1;}
307 }
308 as_unset=as_fn_unset
309
310
311 # as_fn_set_status STATUS
312 # -----------------------
313 # Set $? to STATUS, without forking.
314 as_fn_set_status ()
315 {
316 return $1
317 } # as_fn_set_status
318
319 # as_fn_exit STATUS
320 # -----------------
321 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
322 as_fn_exit ()
323 {
324 set +e
325 as_fn_set_status $1
326 exit $1
327 } # as_fn_exit
328
329 # as_fn_mkdir_p
330 # -------------
331 # Create "$as_dir" as a directory, including parents if necessary.
332 as_fn_mkdir_p ()
333 {
334
335 case $as_dir in #(
336 -*) as_dir=./$as_dir;;
337 esac
338 test -d "$as_dir" || eval $as_mkdir_p || {
339 as_dirs=
340 while :; do
341 case $as_dir in #(
342 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
343 *) as_qdir=$as_dir;;
344 esac
345 as_dirs="'$as_qdir' $as_dirs"
346 as_dir=`$as_dirname -- "$as_dir" ||
347 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
348 X"$as_dir" : 'X\(//\)[^/]' \| \
349 X"$as_dir" : 'X\(//\)$' \| \
350 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
351 printf "%s\n" X"$as_dir" |
352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
353 s//\1/
354 q
355 }
356 /^X\(\/\/\)[^/].*/{
357 s//\1/
358 q
359 }
360 /^X\(\/\/\)$/{
361 s//\1/
362 q
363 }
364 /^X\(\/\).*/{
365 s//\1/
366 q
367 }
368 s/.*/./; q'`
369 test -d "$as_dir" && break
370 done
371 test -z "$as_dirs" || eval "mkdir $as_dirs"
372 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
373
374
375 } # as_fn_mkdir_p
376
377 # as_fn_executable_p FILE
378 # -----------------------
379 # Test if FILE is an executable regular file.
380 as_fn_executable_p ()
381 {
382 test -f "$1" && test -x "$1"
383 } # as_fn_executable_p
384 # as_fn_append VAR VALUE
385 # ----------------------
386 # Append the text in VALUE to the end of the definition contained in VAR. Take
387 # advantage of any shell optimizations that allow amortized linear growth over
388 # repeated appends, instead of the typical quadratic growth present in naive
389 # implementations.
390 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
391 then :
392 eval 'as_fn_append ()
393 {
394 eval $1+=\$2
395 }'
396 else case e in #(
397 e) as_fn_append ()
398 {
399 eval $1=\$$1\$2
400 } ;;
401 esac
402 fi # as_fn_append
403
404 # as_fn_arith ARG...
405 # ------------------
406 # Perform arithmetic evaluation on the ARGs, and store the result in the
407 # global $as_val. Take advantage of shells that can avoid forks. The arguments
408 # must be portable across $(()) and expr.
409 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
410 then :
411 eval 'as_fn_arith ()
412 {
413 as_val=$(( $* ))
414 }'
415 else case e in #(
416 e) as_fn_arith ()
417 {
418 as_val=`expr "$@" || test $? -eq 1`
419 } ;;
420 esac
421 fi # as_fn_arith
422
423
424 # as_fn_error STATUS ERROR [LINENO LOG_FD]
425 # ----------------------------------------
426 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
427 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
428 # script with STATUS, using 1 if that was 0.
429 as_fn_error ()
430 {
431 as_status=$1; test $as_status -eq 0 && as_status=1
432 if test "$4"; then
433 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
434 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
435 fi
436 printf "%s\n" "$as_me: error: $2" >&2
437 as_fn_exit $as_status
438 } # as_fn_error
439
440 if expr a : '\(a\)' >/dev/null 2>&1 &&
441 test "X`expr 00001 : '.*\(...\)'`" = X001; then
442 as_expr=expr
443 else
444 as_expr=false
445 fi
446
447 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
448 as_basename=basename
449 else
450 as_basename=false
451 fi
452
453 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
454 as_dirname=dirname
455 else
456 as_dirname=false
457 fi
458
459 as_me=`$as_basename -- "$0" ||
460 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
461 X"$0" : 'X\(//\)$' \| \
462 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
463 printf "%s\n" X/"$0" |
464 sed '/^.*\/\([^/][^/]*\)\/*$/{
465 s//\1/
466 q
467 }
468 /^X\/\(\/\/\)$/{
469 s//\1/
470 q
471 }
472 /^X\/\(\/\).*/{
473 s//\1/
474 q
475 }
476 s/.*/./; q'`
477
478 # Avoid depending upon Character Ranges.
479 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
480 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
481 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
482 as_cr_digits='0123456789'
483 as_cr_alnum=$as_cr_Letters$as_cr_digits
484
485
486 as_lineno_1=$LINENO as_lineno_1a=$LINENO
487 as_lineno_2=$LINENO as_lineno_2a=$LINENO
488 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
489 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
490 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
491 sed -n '
492 p
493 /[$]LINENO/=
494 ' <$as_myself |
495 sed '
496 t clear
497 :clear
498 s/[$]LINENO.*/&-/
499 t lineno
500 b
501 :lineno
502 N
503 :loop
504 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
505 t loop
506 s/-\n.*//
507 ' >$as_me.lineno &&
508 chmod +x "$as_me.lineno" ||
509 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
510
511 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
512 # already done that, so ensure we don't try to do so again and fall
513 # in an infinite loop. This has already happened in practice.
514 _as_can_reexec=no; export _as_can_reexec
515 # Don't try to exec as it changes $[0], causing all sort of problems
516 # (the dirname of $[0] is not the place where we might find the
517 # original and so on. Autoconf is especially sensitive to this).
518 . "./$as_me.lineno"
519 # Exit status is that of the last command.
520 exit
521 }
522
523
524 # Determine whether it's possible to make 'echo' print without a newline.
525 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
526 # for compatibility with existing Makefiles.
527 ECHO_C= ECHO_N= ECHO_T=
528 case `echo -n x` in #(((((
529 -n*)
530 case `echo 'xy\c'` in
531 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
532 xy) ECHO_C='\c';;
533 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
534 ECHO_T=' ';;
535 esac;;
536 *)
537 ECHO_N='-n';;
538 esac
539
540 # For backward compatibility with old third-party macros, we provide
541 # the shell variables $as_echo and $as_echo_n. New code should use
542 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
543 as_echo='printf %s\n'
544 as_echo_n='printf %s'
545
546 rm -f conf$$ conf$$.exe conf$$.file
547 if test -d conf$$.dir; then
548 rm -f conf$$.dir/conf$$.file
549 else
550 rm -f conf$$.dir
551 mkdir conf$$.dir 2>/dev/null
552 fi
553 if (echo >conf$$.file) 2>/dev/null; then
554 if ln -s conf$$.file conf$$ 2>/dev/null; then
555 as_ln_s='ln -s'
556 # ... but there are two gotchas:
557 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
558 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
559 # In both cases, we have to default to 'cp -pR'.
560 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
561 as_ln_s='cp -pR'
562 elif ln conf$$.file conf$$ 2>/dev/null; then
563 as_ln_s=ln
564 else
565 as_ln_s='cp -pR'
566 fi
567 else
568 as_ln_s='cp -pR'
569 fi
570 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
571 rmdir conf$$.dir 2>/dev/null
572
573 if mkdir -p . 2>/dev/null; then
574 as_mkdir_p='mkdir -p "$as_dir"'
575 else
576 test -d ./-p && rmdir ./-p
577 as_mkdir_p=false
578 fi
579
580 as_test_x='test -x'
581 as_executable_p=as_fn_executable_p
582
583 # Sed expression to map a string onto a valid CPP name.
584 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
585 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
586
587 # Sed expression to map a string onto a valid variable name.
588 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
589 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
590
591 SHELL=${CONFIG_SHELL-/bin/sh}
592
593
594 test -n "$DJDIR" || exec 7<&0 </dev/null
595 exec 6>&1
596
597 # Name of the host.
598 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
599 # so uname gets run too.
600 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
601
602 #
603 # Initializations.
604 #
605 ac_default_prefix=/usr/local
606 ac_clean_files=
607 ac_config_libobj_dir=.
608 LIBOBJS=
609 cross_compiling=no
610 subdirs=
611 MFLAGS=
612 MAKEFLAGS=
613
614 # Identity of this package.
615 PACKAGE_NAME='dvi2tty (TeX Live)'
616 PACKAGE_TARNAME='dvi2tty--tex-live-'
617 PACKAGE_VERSION='6.0.2'
618 PACKAGE_STRING='dvi2tty (TeX Live) 6.0.2'
619 PACKAGE_BUGREPORT='[email protected]'
620 PACKAGE_URL=''
621
622 ac_unique_file="dvi2tty-src/dvi2tty.c"
623 # Factoring default headers for most tests.
624 ac_includes_default="\
625 #include <stddef.h>
626 #ifdef HAVE_STDIO_H
627 # include <stdio.h>
628 #endif
629 #ifdef HAVE_STDLIB_H
630 # include <stdlib.h>
631 #endif
632 #ifdef HAVE_STRING_H
633 # include <string.h>
634 #endif
635 #ifdef HAVE_INTTYPES_H
636 # include <inttypes.h>
637 #endif
638 #ifdef HAVE_STDINT_H
639 # include <stdint.h>
640 #endif
641 #ifdef HAVE_STRINGS_H
642 # include <strings.h>
643 #endif
644 #ifdef HAVE_SYS_TYPES_H
645 # include <sys/types.h>
646 #endif
647 #ifdef HAVE_SYS_STAT_H
648 # include <sys/stat.h>
649 #endif
650 #ifdef HAVE_UNISTD_H
651 # include <unistd.h>
652 #endif"
653
654 ac_header_c_list=
655 enable_year2038=no
656 ac_subst_vars='am__EXEEXT_FALSE
657 am__EXEEXT_TRUE
658 LTLIBOBJS
659 LIBOBJS
660 DVI2TTY_TREE
661 PTEXENC_RULE
662 PTEXENC_DEPEND
663 PTEXENC_LIBS
664 PTEXENC_INCLUDES
665 KPATHSEA_RULE
666 KPATHSEA_DEPEND
667 KPATHSEA_LIBS
668 KPATHSEA_INCLUDES
669 PKG_CONFIG
670 LT_SYS_LIBRARY_PATH
671 OTOOL64
672 OTOOL
673 LIPO
674 NMEDIT
675 DSYMUTIL
676 MANIFEST_TOOL
677 RANLIB
678 FILECMD
679 LN_S
680 NM
681 ac_ct_DUMPBIN
682 DUMPBIN
683 LD
684 FGREP
685 EGREP
686 GREP
687 SED
688 host_os
689 host_vendor
690 host_cpu
691 host
692 build_os
693 build_vendor
694 build_cpu
695 build
696 LIBTOOL
697 OBJDUMP
698 DLLTOOL
699 AS
700 ac_ct_AR
701 AR
702 WARNING_CFLAGS
703 am__fastdepCC_FALSE
704 am__fastdepCC_TRUE
705 CCDEPMODE
706 am__nodep
707 AMDEPBACKSLASH
708 AMDEP_FALSE
709 AMDEP_TRUE
710 am__include
711 DEPDIR
712 OBJEXT
713 EXEEXT
714 ac_ct_CC
715 CPPFLAGS
716 LDFLAGS
717 CFLAGS
718 CC
719 MAINT
720 MAINTAINER_MODE_FALSE
721 MAINTAINER_MODE_TRUE
722 am__xargs_n
723 am__rm_f_notfound
724 AM_BACKSLASH
725 AM_DEFAULT_VERBOSITY
726 AM_DEFAULT_V
727 AM_V
728 CSCOPE
729 ETAGS
730 CTAGS
731 am__untar
732 am__tar
733 AMTAR
734 am__leading_dot
735 SET_MAKE
736 AWK
737 mkdir_p
738 MKDIR_P
739 INSTALL_STRIP_PROGRAM
740 STRIP
741 install_sh
742 MAKEINFO
743 AUTOHEADER
744 AUTOMAKE
745 AUTOCONF
746 ACLOCAL
747 VERSION
748 PACKAGE
749 CYGPATH_W
750 am__isrc
751 INSTALL_DATA
752 INSTALL_SCRIPT
753 INSTALL_PROGRAM
754 target_alias
755 host_alias
756 build_alias
757 LIBS
758 ECHO_T
759 ECHO_N
760 ECHO_C
761 DEFS
762 mandir
763 localedir
764 libdir
765 psdir
766 pdfdir
767 dvidir
768 htmldir
769 infodir
770 docdir
771 oldincludedir
772 includedir
773 runstatedir
774 localstatedir
775 sharedstatedir
776 sysconfdir
777 datadir
778 datarootdir
779 libexecdir
780 sbindir
781 bindir
782 program_transform_name
783 prefix
784 exec_prefix
785 PACKAGE_URL
786 PACKAGE_BUGREPORT
787 PACKAGE_STRING
788 PACKAGE_VERSION
789 PACKAGE_TARNAME
790 PACKAGE_NAME
791 PATH_SEPARATOR
792 SHELL
793 am__quote'
794 ac_subst_files=''
795 ac_user_opts='
796 enable_option_checking
797 enable_silent_rules
798 enable_maintainer_mode
799 enable_dependency_tracking
800 enable_compiler_warnings
801 enable_shared
802 enable_static
803 enable_pic
804 with_pic
805 enable_fast_install
806 enable_aix_soname
807 with_aix_soname
808 with_gnu_ld
809 with_sysroot
810 enable_libtool_lock
811 enable_largefile
812 with_system_kpathsea
813 with_system_ptexenc
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 dvi2tty (TeX Live) 6.0.2 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/dvi2tty--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 dvi2tty (TeX Live) 6.0.2:";;
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-kpathsea use installed kpathsea headers and library (requires
1485 pkg-config)
1486 --with-system-ptexenc use installed ptexenc headers and library (requires
1487 pkg-config)
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 dvi2tty (TeX Live) configure 6.0.2
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_check_type LINENO TYPE VAR INCLUDES
1769 # -------------------------------------------
1770 # Tests whether TYPE exists after having included INCLUDES, setting cache
1771 # variable VAR accordingly.
1772 ac_fn_c_check_type ()
1773 {
1774 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1776 printf %s "checking for $2... " >&6; }
1777 if eval test \${$3+y}
1778 then :
1779 printf %s "(cached) " >&6
1780 else case e in #(
1781 e) eval "$3=no"
1782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1783 /* end confdefs.h. */
1784 $4
1785 int
1786 main (void)
1787 {
1788 if (sizeof ($2))
1789 return 0;
1790 ;
1791 return 0;
1792 }
1793 _ACEOF
1794 if ac_fn_c_try_compile "$LINENO"
1795 then :
1796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1797 /* end confdefs.h. */
1798 $4
1799 int
1800 main (void)
1801 {
1802 if (sizeof (($2)))
1803 return 0;
1804 ;
1805 return 0;
1806 }
1807 _ACEOF
1808 if ac_fn_c_try_compile "$LINENO"
1809 then :
1810
1811 else case e in #(
1812 e) eval "$3=yes" ;;
1813 esac
1814 fi
1815 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1816 fi
1817 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1818 esac
1819 fi
1820 eval ac_res=\$$3
1821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1822 printf "%s\n" "$ac_res" >&6; }
1823 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1824
1825 } # ac_fn_c_check_type
1826
1827 # ac_fn_c_find_intX_t LINENO BITS VAR
1828 # -----------------------------------
1829 # Finds a signed integer type with width BITS, setting cache variable VAR
1830 # accordingly.
1831 ac_fn_c_find_intX_t ()
1832 {
1833 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1835 printf %s "checking for int$2_t... " >&6; }
1836 if eval test \${$3+y}
1837 then :
1838 printf %s "(cached) " >&6
1839 else case e in #(
1840 e) eval "$3=no"
1841 # Order is important - never check a type that is potentially smaller
1842 # than half of the expected target width.
1843 for ac_type in int$2_t 'int' 'long int' \
1844 'long long int' 'short int' 'signed char'; do
1845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1846 /* end confdefs.h. */
1847 $ac_includes_default
1848 enum { N = $2 / 2 - 1 };
1849 int
1850 main (void)
1851 {
1852 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
1853 test_array [0] = 0;
1854 return test_array [0];
1855
1856 ;
1857 return 0;
1858 }
1859 _ACEOF
1860 if ac_fn_c_try_compile "$LINENO"
1861 then :
1862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1863 /* end confdefs.h. */
1864 $ac_includes_default
1865 enum { N = $2 / 2 - 1 };
1866 int
1867 main (void)
1868 {
1869 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
1870 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
1871 test_array [0] = 0;
1872 return test_array [0];
1873
1874 ;
1875 return 0;
1876 }
1877 _ACEOF
1878 if ac_fn_c_try_compile "$LINENO"
1879 then :
1880
1881 else case e in #(
1882 e) case $ac_type in #(
1883 int$2_t) :
1884 eval "$3=yes" ;; #(
1885 *) :
1886 eval "$3=\$ac_type" ;;
1887 esac ;;
1888 esac
1889 fi
1890 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1891 fi
1892 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1893 if eval test \"x\$"$3"\" = x"no"
1894 then :
1895
1896 else case e in #(
1897 e) break ;;
1898 esac
1899 fi
1900 done ;;
1901 esac
1902 fi
1903 eval ac_res=\$$3
1904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1905 printf "%s\n" "$ac_res" >&6; }
1906 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1907
1908 } # ac_fn_c_find_intX_t
1909
1910 # ac_fn_c_find_uintX_t LINENO BITS VAR
1911 # ------------------------------------
1912 # Finds an unsigned integer type with width BITS, setting cache variable VAR
1913 # accordingly.
1914 ac_fn_c_find_uintX_t ()
1915 {
1916 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1918 printf %s "checking for uint$2_t... " >&6; }
1919 if eval test \${$3+y}
1920 then :
1921 printf %s "(cached) " >&6
1922 else case e in #(
1923 e) eval "$3=no"
1924 # Order is important - never check a type that is potentially smaller
1925 # than half of the expected target width.
1926 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1927 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1929 /* end confdefs.h. */
1930 $ac_includes_default
1931 int
1932 main (void)
1933 {
1934 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1935 test_array [0] = 0;
1936 return test_array [0];
1937
1938 ;
1939 return 0;
1940 }
1941 _ACEOF
1942 if ac_fn_c_try_compile "$LINENO"
1943 then :
1944 case $ac_type in #(
1945 uint$2_t) :
1946 eval "$3=yes" ;; #(
1947 *) :
1948 eval "$3=\$ac_type" ;;
1949 esac
1950 fi
1951 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1952 if eval test \"x\$"$3"\" = x"no"
1953 then :
1954
1955 else case e in #(
1956 e) break ;;
1957 esac
1958 fi
1959 done ;;
1960 esac
1961 fi
1962 eval ac_res=\$$3
1963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1964 printf "%s\n" "$ac_res" >&6; }
1965 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1966
1967 } # ac_fn_c_find_uintX_t
1968
1969 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1970 # ------------------------------------------------------------------
1971 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1972 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1973 ac_fn_check_decl ()
1974 {
1975 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1976 as_decl_name=`echo $2|sed 's/ *(.*//'`
1977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1978 printf %s "checking whether $as_decl_name is declared... " >&6; }
1979 if eval test \${$3+y}
1980 then :
1981 printf %s "(cached) " >&6
1982 else case e in #(
1983 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1984 eval ac_save_FLAGS=\$$6
1985 as_fn_append $6 " $5"
1986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1987 /* end confdefs.h. */
1988 $4
1989 int
1990 main (void)
1991 {
1992 #ifndef $as_decl_name
1993 #ifdef __cplusplus
1994 (void) $as_decl_use;
1995 #else
1996 (void) $as_decl_name;
1997 #endif
1998 #endif
1999
2000 ;
2001 return 0;
2002 }
2003 _ACEOF
2004 if ac_fn_c_try_compile "$LINENO"
2005 then :
2006 eval "$3=yes"
2007 else case e in #(
2008 e) eval "$3=no" ;;
2009 esac
2010 fi
2011 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2012 eval $6=\$ac_save_FLAGS
2013 ;;
2014 esac
2015 fi
2016 eval ac_res=\$$3
2017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2018 printf "%s\n" "$ac_res" >&6; }
2019 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2020
2021 } # ac_fn_check_decl
2022
2023 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2024 # ----------------------------------------------------
2025 # Tries to find if the field MEMBER exists in type AGGR, after including
2026 # INCLUDES, setting cache variable VAR accordingly.
2027 ac_fn_c_check_member ()
2028 {
2029 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2031 printf %s "checking for $2.$3... " >&6; }
2032 if eval test \${$4+y}
2033 then :
2034 printf %s "(cached) " >&6
2035 else case e in #(
2036 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2037 /* end confdefs.h. */
2038 $5
2039 int
2040 main (void)
2041 {
2042 static $2 ac_aggr;
2043 if (ac_aggr.$3)
2044 return 0;
2045 ;
2046 return 0;
2047 }
2048 _ACEOF
2049 if ac_fn_c_try_compile "$LINENO"
2050 then :
2051 eval "$4=yes"
2052 else case e in #(
2053 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2054 /* end confdefs.h. */
2055 $5
2056 int
2057 main (void)
2058 {
2059 static $2 ac_aggr;
2060 if (sizeof ac_aggr.$3)
2061 return 0;
2062 ;
2063 return 0;
2064 }
2065 _ACEOF
2066 if ac_fn_c_try_compile "$LINENO"
2067 then :
2068 eval "$4=yes"
2069 else case e in #(
2070 e) eval "$4=no" ;;
2071 esac
2072 fi
2073 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2074 esac
2075 fi
2076 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2077 esac
2078 fi
2079 eval ac_res=\$$4
2080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2081 printf "%s\n" "$ac_res" >&6; }
2082 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2083
2084 } # ac_fn_c_check_member
2085 ac_configure_args_raw=
2086 for ac_arg
2087 do
2088 case $ac_arg in
2089 *\'*)
2090 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2091 esac
2092 as_fn_append ac_configure_args_raw " '$ac_arg'"
2093 done
2094
2095 case $ac_configure_args_raw in
2096 *$as_nl*)
2097 ac_safe_unquote= ;;
2098 *)
2099 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2100 ac_unsafe_a="$ac_unsafe_z#~"
2101 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2102 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2103 esac
2104
2105 cat >config.log <<_ACEOF
2106 This file contains any messages produced by compilers while
2107 running configure, to aid debugging if configure makes a mistake.
2108
2109 It was created by dvi2tty (TeX Live) $as_me 6.0.2, which was
2110 generated by GNU Autoconf 2.72. Invocation command line was
2111
2112 $ $0$ac_configure_args_raw
2113
2114 _ACEOF
2115 exec 5>>config.log
2116 {
2117 cat <<_ASUNAME
2118 ## --------- ##
2119 ## Platform. ##
2120 ## --------- ##
2121
2122 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2123 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2124 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2125 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2126 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2127
2128 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2129 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2130
2131 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2132 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2133 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2134 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2135 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2136 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2137 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2138
2139 _ASUNAME
2140
2141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2142 for as_dir in $PATH
2143 do
2144 IFS=$as_save_IFS
2145 case $as_dir in #(((
2146 '') as_dir=./ ;;
2147 */) ;;
2148 *) as_dir=$as_dir/ ;;
2149 esac
2150 printf "%s\n" "PATH: $as_dir"
2151 done
2152 IFS=$as_save_IFS
2153
2154 } >&5
2155
2156 cat >&5 <<_ACEOF
2157
2158
2159 ## ----------- ##
2160 ## Core tests. ##
2161 ## ----------- ##
2162
2163 _ACEOF
2164
2165
2166 # Keep a trace of the command line.
2167 # Strip out --no-create and --no-recursion so they do not pile up.
2168 # Strip out --silent because we don't want to record it for future runs.
2169 # Also quote any args containing shell meta-characters.
2170 # Make two passes to allow for proper duplicate-argument suppression.
2171 ac_configure_args=
2172 ac_configure_args0=
2173 ac_configure_args1=
2174 ac_must_keep_next=false
2175 for ac_pass in 1 2
2176 do
2177 for ac_arg
2178 do
2179 case $ac_arg in
2180 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2181 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2182 | -silent | --silent | --silen | --sile | --sil)
2183 continue ;;
2184 *\'*)
2185 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2186 esac
2187 case $ac_pass in
2188 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2189 2)
2190 as_fn_append ac_configure_args1 " '$ac_arg'"
2191 if test $ac_must_keep_next = true; then
2192 ac_must_keep_next=false # Got value, back to normal.
2193 else
2194 case $ac_arg in
2195 *=* | --config-cache | -C | -disable-* | --disable-* \
2196 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2197 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2198 | -with-* | --with-* | -without-* | --without-* | --x)
2199 case "$ac_configure_args0 " in
2200 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2201 esac
2202 ;;
2203 -* ) ac_must_keep_next=true ;;
2204 esac
2205 fi
2206 as_fn_append ac_configure_args " '$ac_arg'"
2207 ;;
2208 esac
2209 done
2210 done
2211 { ac_configure_args0=; unset ac_configure_args0;}
2212 { ac_configure_args1=; unset ac_configure_args1;}
2213
2214 # When interrupted or exit'd, cleanup temporary files, and complete
2215 # config.log. We remove comments because anyway the quotes in there
2216 # would cause problems or look ugly.
2217 # WARNING: Use '\'' to represent an apostrophe within the trap.
2218 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2219 trap 'exit_status=$?
2220 # Sanitize IFS.
2221 IFS=" "" $as_nl"
2222 # Save into config.log some information that might help in debugging.
2223 {
2224 echo
2225
2226 printf "%s\n" "## ---------------- ##
2227 ## Cache variables. ##
2228 ## ---------------- ##"
2229 echo
2230 # The following way of writing the cache mishandles newlines in values,
2231 (
2232 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2233 eval ac_val=\$$ac_var
2234 case $ac_val in #(
2235 *${as_nl}*)
2236 case $ac_var in #(
2237 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2238 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2239 esac
2240 case $ac_var in #(
2241 _ | IFS | as_nl) ;; #(
2242 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2243 *) { eval $ac_var=; unset $ac_var;} ;;
2244 esac ;;
2245 esac
2246 done
2247 (set) 2>&1 |
2248 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2249 *${as_nl}ac_space=\ *)
2250 sed -n \
2251 "s/'\''/'\''\\\\'\'''\''/g;
2252 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2253 ;; #(
2254 *)
2255 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2256 ;;
2257 esac |
2258 sort
2259 )
2260 echo
2261
2262 printf "%s\n" "## ----------------- ##
2263 ## Output variables. ##
2264 ## ----------------- ##"
2265 echo
2266 for ac_var in $ac_subst_vars
2267 do
2268 eval ac_val=\$$ac_var
2269 case $ac_val in
2270 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2271 esac
2272 printf "%s\n" "$ac_var='\''$ac_val'\''"
2273 done | sort
2274 echo
2275
2276 if test -n "$ac_subst_files"; then
2277 printf "%s\n" "## ------------------- ##
2278 ## File substitutions. ##
2279 ## ------------------- ##"
2280 echo
2281 for ac_var in $ac_subst_files
2282 do
2283 eval ac_val=\$$ac_var
2284 case $ac_val in
2285 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2286 esac
2287 printf "%s\n" "$ac_var='\''$ac_val'\''"
2288 done | sort
2289 echo
2290 fi
2291
2292 if test -s confdefs.h; then
2293 printf "%s\n" "## ----------- ##
2294 ## confdefs.h. ##
2295 ## ----------- ##"
2296 echo
2297 cat confdefs.h
2298 echo
2299 fi
2300 test "$ac_signal" != 0 &&
2301 printf "%s\n" "$as_me: caught signal $ac_signal"
2302 printf "%s\n" "$as_me: exit $exit_status"
2303 } >&5
2304 rm -f core *.core core.conftest.* &&
2305 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2306 exit $exit_status
2307 ' 0
2308 for ac_signal in 1 2 13 15; do
2309 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2310 done
2311 ac_signal=0
2312
2313 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2314 rm -f -r conftest* confdefs.h
2315
2316 printf "%s\n" "/* confdefs.h */" > confdefs.h
2317
2318 # Predefined preprocessor variables.
2319
2320 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2321
2322 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2323
2324 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2325
2326 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2327
2328 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2329
2330 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2331
2332
2333 # Let the site file select an alternate cache file if it wants to.
2334 # Prefer an explicitly selected file to automatically selected ones.
2335 if test -n "$CONFIG_SITE"; then
2336 ac_site_files="$CONFIG_SITE"
2337 elif test "x$prefix" != xNONE; then
2338 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2339 else
2340 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2341 fi
2342
2343 for ac_site_file in $ac_site_files
2344 do
2345 case $ac_site_file in #(
2346 */*) :
2347 ;; #(
2348 *) :
2349 ac_site_file=./$ac_site_file ;;
2350 esac
2351 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2353 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2354 sed 's/^/| /' "$ac_site_file" >&5
2355 . "$ac_site_file" \
2356 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2357 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2358 as_fn_error $? "failed to load site script $ac_site_file
2359 See 'config.log' for more details" "$LINENO" 5; }
2360 fi
2361 done
2362
2363 if test -r "$cache_file"; then
2364 # Some versions of bash will fail to source /dev/null (special files
2365 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2366 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2368 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2369 case $cache_file in
2370 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2371 *) . "./$cache_file";;
2372 esac
2373 fi
2374 else
2375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2376 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2377 >$cache_file
2378 fi
2379
2380 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2381 # Test code for whether the C compiler supports C89 (global declarations)
2382 ac_c_conftest_c89_globals='
2383 /* Does the compiler advertise C89 conformance?
2384 Do not test the value of __STDC__, because some compilers set it to 0
2385 while being otherwise adequately conformant. */
2386 #if !defined __STDC__
2387 # error "Compiler does not advertise C89 conformance"
2388 #endif
2389
2390 #include <stddef.h>
2391 #include <stdarg.h>
2392 struct stat;
2393 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2394 struct buf { int x; };
2395 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2396 static char *e (char **p, int i)
2397 {
2398 return p[i];
2399 }
2400 static char *f (char * (*g) (char **, int), char **p, ...)
2401 {
2402 char *s;
2403 va_list v;
2404 va_start (v,p);
2405 s = g (p, va_arg (v,int));
2406 va_end (v);
2407 return s;
2408 }
2409
2410 /* C89 style stringification. */
2411 #define noexpand_stringify(a) #a
2412 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2413
2414 /* C89 style token pasting. Exercises some of the corner cases that
2415 e.g. old MSVC gets wrong, but not very hard. */
2416 #define noexpand_concat(a,b) a##b
2417 #define expand_concat(a,b) noexpand_concat(a,b)
2418 extern int vA;
2419 extern int vbee;
2420 #define aye A
2421 #define bee B
2422 int *pvA = &expand_concat(v,aye);
2423 int *pvbee = &noexpand_concat(v,bee);
2424
2425 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2426 function prototypes and stuff, but not \xHH hex character constants.
2427 These do not provoke an error unfortunately, instead are silently treated
2428 as an "x". The following induces an error, until -std is added to get
2429 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2430 array size at least. It is necessary to write \x00 == 0 to get something
2431 that is true only with -std. */
2432 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2433
2434 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2435 inside strings and character constants. */
2436 #define FOO(x) '\''x'\''
2437 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2438
2439 int test (int i, double x);
2440 struct s1 {int (*f) (int a);};
2441 struct s2 {int (*f) (double a);};
2442 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2443 int, int);'
2444
2445 # Test code for whether the C compiler supports C89 (body of main).
2446 ac_c_conftest_c89_main='
2447 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2448 '
2449
2450 # Test code for whether the C compiler supports C99 (global declarations)
2451 ac_c_conftest_c99_globals='
2452 /* Does the compiler advertise C99 conformance? */
2453 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2454 # error "Compiler does not advertise C99 conformance"
2455 #endif
2456
2457 // See if C++-style comments work.
2458
2459 #include <stdbool.h>
2460 extern int puts (const char *);
2461 extern int printf (const char *, ...);
2462 extern int dprintf (int, const char *, ...);
2463 extern void *malloc (size_t);
2464 extern void free (void *);
2465
2466 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2467 // dprintf is used instead of fprintf to avoid needing to declare
2468 // FILE and stderr.
2469 #define debug(...) dprintf (2, __VA_ARGS__)
2470 #define showlist(...) puts (#__VA_ARGS__)
2471 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2472 static void
2473 test_varargs_macros (void)
2474 {
2475 int x = 1234;
2476 int y = 5678;
2477 debug ("Flag");
2478 debug ("X = %d\n", x);
2479 showlist (The first, second, and third items.);
2480 report (x>y, "x is %d but y is %d", x, y);
2481 }
2482
2483 // Check long long types.
2484 #define BIG64 18446744073709551615ull
2485 #define BIG32 4294967295ul
2486 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2487 #if !BIG_OK
2488 #error "your preprocessor is broken"
2489 #endif
2490 #if BIG_OK
2491 #else
2492 #error "your preprocessor is broken"
2493 #endif
2494 static long long int bignum = -9223372036854775807LL;
2495 static unsigned long long int ubignum = BIG64;
2496
2497 struct incomplete_array
2498 {
2499 int datasize;
2500 double data[];
2501 };
2502
2503 struct named_init {
2504 int number;
2505 const wchar_t *name;
2506 double average;
2507 };
2508
2509 typedef const char *ccp;
2510
2511 static inline int
2512 test_restrict (ccp restrict text)
2513 {
2514 // Iterate through items via the restricted pointer.
2515 // Also check for declarations in for loops.
2516 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2517 continue;
2518 return 0;
2519 }
2520
2521 // Check varargs and va_copy.
2522 static bool
2523 test_varargs (const char *format, ...)
2524 {
2525 va_list args;
2526 va_start (args, format);
2527 va_list args_copy;
2528 va_copy (args_copy, args);
2529
2530 const char *str = "";
2531 int number = 0;
2532 float fnumber = 0;
2533
2534 while (*format)
2535 {
2536 switch (*format++)
2537 {
2538 case '\''s'\'': // string
2539 str = va_arg (args_copy, const char *);
2540 break;
2541 case '\''d'\'': // int
2542 number = va_arg (args_copy, int);
2543 break;
2544 case '\''f'\'': // float
2545 fnumber = va_arg (args_copy, double);
2546 break;
2547 default:
2548 break;
2549 }
2550 }
2551 va_end (args_copy);
2552 va_end (args);
2553
2554 return *str && number && fnumber;
2555 }
2556 '
2557
2558 # Test code for whether the C compiler supports C99 (body of main).
2559 ac_c_conftest_c99_main='
2560 // Check bool.
2561 _Bool success = false;
2562 success |= (argc != 0);
2563
2564 // Check restrict.
2565 if (test_restrict ("String literal") == 0)
2566 success = true;
2567 char *restrict newvar = "Another string";
2568
2569 // Check varargs.
2570 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2571 test_varargs_macros ();
2572
2573 // Check flexible array members.
2574 struct incomplete_array *ia =
2575 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2576 ia->datasize = 10;
2577 for (int i = 0; i < ia->datasize; ++i)
2578 ia->data[i] = i * 1.234;
2579 // Work around memory leak warnings.
2580 free (ia);
2581
2582 // Check named initializers.
2583 struct named_init ni = {
2584 .number = 34,
2585 .name = L"Test wide string",
2586 .average = 543.34343,
2587 };
2588
2589 ni.number = 58;
2590
2591 int dynamic_array[ni.number];
2592 dynamic_array[0] = argv[0][0];
2593 dynamic_array[ni.number - 1] = 543;
2594
2595 // work around unused variable warnings
2596 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2597 || dynamic_array[ni.number - 1] != 543);
2598 '
2599
2600 # Test code for whether the C compiler supports C11 (global declarations)
2601 ac_c_conftest_c11_globals='
2602 /* Does the compiler advertise C11 conformance? */
2603 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2604 # error "Compiler does not advertise C11 conformance"
2605 #endif
2606
2607 // Check _Alignas.
2608 char _Alignas (double) aligned_as_double;
2609 char _Alignas (0) no_special_alignment;
2610 extern char aligned_as_int;
2611 char _Alignas (0) _Alignas (int) aligned_as_int;
2612
2613 // Check _Alignof.
2614 enum
2615 {
2616 int_alignment = _Alignof (int),
2617 int_array_alignment = _Alignof (int[100]),
2618 char_alignment = _Alignof (char)
2619 };
2620 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2621
2622 // Check _Noreturn.
2623 int _Noreturn does_not_return (void) { for (;;) continue; }
2624
2625 // Check _Static_assert.
2626 struct test_static_assert
2627 {
2628 int x;
2629 _Static_assert (sizeof (int) <= sizeof (long int),
2630 "_Static_assert does not work in struct");
2631 long int y;
2632 };
2633
2634 // Check UTF-8 literals.
2635 #define u8 syntax error!
2636 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2637
2638 // Check duplicate typedefs.
2639 typedef long *long_ptr;
2640 typedef long int *long_ptr;
2641 typedef long_ptr long_ptr;
2642
2643 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2644 struct anonymous
2645 {
2646 union {
2647 struct { int i; int j; };
2648 struct { int k; long int l; } w;
2649 };
2650 int m;
2651 } v1;
2652 '
2653
2654 # Test code for whether the C compiler supports C11 (body of main).
2655 ac_c_conftest_c11_main='
2656 _Static_assert ((offsetof (struct anonymous, i)
2657 == offsetof (struct anonymous, w.k)),
2658 "Anonymous union alignment botch");
2659 v1.i = 2;
2660 v1.w.k = 5;
2661 ok |= v1.i != 5;
2662 '
2663
2664 # Test code for whether the C compiler supports C11 (complete).
2665 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2666 ${ac_c_conftest_c99_globals}
2667 ${ac_c_conftest_c11_globals}
2668
2669 int
2670 main (int argc, char **argv)
2671 {
2672 int ok = 0;
2673 ${ac_c_conftest_c89_main}
2674 ${ac_c_conftest_c99_main}
2675 ${ac_c_conftest_c11_main}
2676 return ok;
2677 }
2678 "
2679
2680 # Test code for whether the C compiler supports C99 (complete).
2681 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2682 ${ac_c_conftest_c99_globals}
2683
2684 int
2685 main (int argc, char **argv)
2686 {
2687 int ok = 0;
2688 ${ac_c_conftest_c89_main}
2689 ${ac_c_conftest_c99_main}
2690 return ok;
2691 }
2692 "
2693
2694 # Test code for whether the C compiler supports C89 (complete).
2695 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2696
2697 int
2698 main (int argc, char **argv)
2699 {
2700 int ok = 0;
2701 ${ac_c_conftest_c89_main}
2702 return ok;
2703 }
2704 "
2705
2706 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2707 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2708 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2709 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2710 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2711 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2712 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2713 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2714 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2715 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2716
2717 # Auxiliary files required by this configure script.
2718 ac_aux_files="config.guess config.sub ltmain.sh ar-lib compile missing install-sh"
2719
2720 # Locations in which to look for auxiliary files.
2721 ac_aux_dir_candidates="${srcdir}/../../build-aux"
2722
2723 # Search for a directory containing all of the required auxiliary files,
2724 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2725 # If we don't find one directory that contains all the files we need,
2726 # we report the set of missing files from the *first* directory in
2727 # $ac_aux_dir_candidates and give up.
2728 ac_missing_aux_files=""
2729 ac_first_candidate=:
2730 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2732 as_found=false
2733 for as_dir in $ac_aux_dir_candidates
2734 do
2735 IFS=$as_save_IFS
2736 case $as_dir in #(((
2737 '') as_dir=./ ;;
2738 */) ;;
2739 *) as_dir=$as_dir/ ;;
2740 esac
2741 as_found=:
2742
2743 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2744 ac_aux_dir_found=yes
2745 ac_install_sh=
2746 for ac_aux in $ac_aux_files
2747 do
2748 # As a special case, if "install-sh" is required, that requirement
2749 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2750 # and $ac_install_sh is set appropriately for whichever one is found.
2751 if test x"$ac_aux" = x"install-sh"
2752 then
2753 if test -f "${as_dir}install-sh"; then
2754 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2755 ac_install_sh="${as_dir}install-sh -c"
2756 elif test -f "${as_dir}install.sh"; then
2757 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2758 ac_install_sh="${as_dir}install.sh -c"
2759 elif test -f "${as_dir}shtool"; then
2760 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2761 ac_install_sh="${as_dir}shtool install -c"
2762 else
2763 ac_aux_dir_found=no
2764 if $ac_first_candidate; then
2765 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2766 else
2767 break
2768 fi
2769 fi
2770 else
2771 if test -f "${as_dir}${ac_aux}"; then
2772 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2773 else
2774 ac_aux_dir_found=no
2775 if $ac_first_candidate; then
2776 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2777 else
2778 break
2779 fi
2780 fi
2781 fi
2782 done
2783 if test "$ac_aux_dir_found" = yes; then
2784 ac_aux_dir="$as_dir"
2785 break
2786 fi
2787 ac_first_candidate=false
2788
2789 as_found=false
2790 done
2791 IFS=$as_save_IFS
2792 if $as_found
2793 then :
2794
2795 else case e in #(
2796 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2797 esac
2798 fi
2799
2800
2801 # These three variables are undocumented and unsupported,
2802 # and are intended to be withdrawn in a future Autoconf release.
2803 # They can cause serious problems if a builder's source tree is in a directory
2804 # whose full name contains unusual characters.
2805 if test -f "${ac_aux_dir}config.guess"; then
2806 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2807 fi
2808 if test -f "${ac_aux_dir}config.sub"; then
2809 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2810 fi
2811 if test -f "$ac_aux_dir/configure"; then
2812 ac_configure="$SHELL ${ac_aux_dir}configure"
2813 fi
2814
2815 # Check that the precious variables saved in the cache have kept the same
2816 # value.
2817 ac_cache_corrupted=false
2818 for ac_var in $ac_precious_vars; do
2819 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2820 eval ac_new_set=\$ac_env_${ac_var}_set
2821 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2822 eval ac_new_val=\$ac_env_${ac_var}_value
2823 case $ac_old_set,$ac_new_set in
2824 set,)
2825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2826 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2827 ac_cache_corrupted=: ;;
2828 ,set)
2829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2830 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2831 ac_cache_corrupted=: ;;
2832 ,);;
2833 *)
2834 if test "x$ac_old_val" != "x$ac_new_val"; then
2835 # differences in whitespace do not lead to failure.
2836 ac_old_val_w=`echo x $ac_old_val`
2837 ac_new_val_w=`echo x $ac_new_val`
2838 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2840 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2841 ac_cache_corrupted=:
2842 else
2843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2844 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2845 eval $ac_var=\$ac_old_val
2846 fi
2847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2848 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2850 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2851 fi;;
2852 esac
2853 # Pass precious variables to config.status.
2854 if test "$ac_new_set" = set; then
2855 case $ac_new_val in
2856 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2857 *) ac_arg=$ac_var=$ac_new_val ;;
2858 esac
2859 case " $ac_configure_args " in
2860 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2861 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2862 esac
2863 fi
2864 done
2865 if $ac_cache_corrupted; then
2866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2867 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2869 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2870 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2871 and start over" "$LINENO" 5
2872 fi
2873 ## -------------------- ##
2874 ## Main body of script. ##
2875 ## -------------------- ##
2876
2877 ac_ext=c
2878 ac_cpp='$CPP $CPPFLAGS'
2879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2882
2883
2884
2885
2886
2887
2888
2889 am__api_version='1.18'
2890
2891
2892
2893 # Find a good install program. We prefer a C program (faster),
2894 # so one script is as good as another. But avoid the broken or
2895 # incompatible versions:
2896 # SysV /etc/install, /usr/sbin/install
2897 # SunOS /usr/etc/install
2898 # IRIX /sbin/install
2899 # AIX /bin/install
2900 # AmigaOS /C/install, which installs bootblocks on floppy discs
2901 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2902 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2903 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2904 # OS/2's system install, which has a completely different semantic
2905 # ./install, which can be erroneously created by make from ./install.sh.
2906 # Reject install programs that cannot install multiple files.
2907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2908 printf %s "checking for a BSD-compatible install... " >&6; }
2909 if test -z "$INSTALL"; then
2910 if test ${ac_cv_path_install+y}
2911 then :
2912 printf %s "(cached) " >&6
2913 else case e in #(
2914 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2915 for as_dir in $PATH
2916 do
2917 IFS=$as_save_IFS
2918 case $as_dir in #(((
2919 '') as_dir=./ ;;
2920 */) ;;
2921 *) as_dir=$as_dir/ ;;
2922 esac
2923 # Account for fact that we put trailing slashes in our PATH walk.
2924 case $as_dir in #((
2925 ./ | /[cC]/* | \
2926 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2927 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2928 /usr/ucb/* ) ;;
2929 *)
2930 # OSF1 and SCO ODT 3.0 have their own names for install.
2931 # Don't use installbsd from OSF since it installs stuff as root
2932 # by default.
2933 for ac_prog in ginstall scoinst install; do
2934 for ac_exec_ext in '' $ac_executable_extensions; do
2935 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2936 if test $ac_prog = install &&
2937 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2938 # AIX install. It has an incompatible calling convention.
2939 :
2940 elif test $ac_prog = install &&
2941 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2942 # program-specific install script used by HP pwplus--don't use.
2943 :
2944 else
2945 rm -rf conftest.one conftest.two conftest.dir
2946 echo one > conftest.one
2947 echo two > conftest.two
2948 mkdir conftest.dir
2949 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2950 test -s conftest.one && test -s conftest.two &&
2951 test -s conftest.dir/conftest.one &&
2952 test -s conftest.dir/conftest.two
2953 then
2954 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2955 break 3
2956 fi
2957 fi
2958 fi
2959 done
2960 done
2961 ;;
2962 esac
2963
2964 done
2965 IFS=$as_save_IFS
2966
2967 rm -rf conftest.one conftest.two conftest.dir
2968 ;;
2969 esac
2970 fi
2971 if test ${ac_cv_path_install+y}; then
2972 INSTALL=$ac_cv_path_install
2973 else
2974 # As a last resort, use the slow shell script. Don't cache a
2975 # value for INSTALL within a source directory, because that will
2976 # break other packages using the cache if that directory is
2977 # removed, or if the value is a relative name.
2978 INSTALL=$ac_install_sh
2979 fi
2980 fi
2981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2982 printf "%s\n" "$INSTALL" >&6; }
2983
2984 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2985 # It thinks the first close brace ends the variable substitution.
2986 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2987
2988 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2989
2990 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2991
2992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
2993 printf %s "checking whether sleep supports fractional seconds... " >&6; }
2994 if test ${am_cv_sleep_fractional_seconds+y}
2995 then :
2996 printf %s "(cached) " >&6
2997 else case e in #(
2998 e) if sleep 0.001 2>/dev/null
2999 then :
3000 am_cv_sleep_fractional_seconds=yes
3001 else case e in #(
3002 e) am_cv_sleep_fractional_seconds=no ;;
3003 esac
3004 fi
3005 ;;
3006 esac
3007 fi
3008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
3009 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
3010
3011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
3012 printf %s "checking filesystem timestamp resolution... " >&6; }
3013 if test ${am_cv_filesystem_timestamp_resolution+y}
3014 then :
3015 printf %s "(cached) " >&6
3016 else case e in #(
3017 e) # Default to the worst case.
3018 am_cv_filesystem_timestamp_resolution=2
3019
3020 # Only try to go finer than 1 sec if sleep can do it.
3021 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
3022 # - 1 sec is not much of a win compared to 2 sec, and
3023 # - it takes 2 seconds to perform the test whether 1 sec works.
3024 #
3025 # Instead, just use the default 2s on platforms that have 1s resolution,
3026 # accept the extra 1s delay when using $sleep in the Automake tests, in
3027 # exchange for not incurring the 2s delay for running the test for all
3028 # packages.
3029 #
3030 am_try_resolutions=
3031 if test "$am_cv_sleep_fractional_seconds" = yes; then
3032 # Even a millisecond often causes a bunch of false positives,
3033 # so just try a hundredth of a second. The time saved between .001 and
3034 # .01 is not terribly consequential.
3035 am_try_resolutions="0.01 0.1 $am_try_resolutions"
3036 fi
3037
3038 # In order to catch current-generation FAT out, we must *modify* files
3039 # that already exist; the *creation* timestamp is finer. Use names
3040 # that make ls -t sort them differently when they have equal
3041 # timestamps than when they have distinct timestamps, keeping
3042 # in mind that ls -t prints the *newest* file first.
3043 rm -f conftest.ts?
3044 : > conftest.ts1
3045 : > conftest.ts2
3046 : > conftest.ts3
3047
3048 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
3049 # clobber the current shell's arguments. (Outer-level square brackets
3050 # are removed by m4; they're present so that m4 does not expand
3051 # <dollar><star>; be careful, easy to get confused.)
3052 if (
3053 set X `ls -t conftest.ts[12]` &&
3054 {
3055 test "$*" != "X conftest.ts1 conftest.ts2" ||
3056 test "$*" != "X conftest.ts2 conftest.ts1";
3057 }
3058 ); then :; else
3059 # If neither matched, then we have a broken ls. This can happen
3060 # if, for instance, CONFIG_SHELL is bash and it inherits a
3061 # broken ls alias from the environment. This has actually
3062 # happened. Such a system could not be considered "sane".
3063 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
3064 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3065 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3066 as_fn_error $? "ls -t produces unexpected output.
3067 Make sure there is not a broken ls alias in your environment.
3068 See 'config.log' for more details" "$LINENO" 5; }
3069 fi
3070
3071 for am_try_res in $am_try_resolutions; do
3072 # Any one fine-grained sleep might happen to cross the boundary
3073 # between two values of a coarser actual resolution, but if we do
3074 # two fine-grained sleeps in a row, at least one of them will fall
3075 # entirely within a coarse interval.
3076 echo alpha > conftest.ts1
3077 sleep $am_try_res
3078 echo beta > conftest.ts2
3079 sleep $am_try_res
3080 echo gamma > conftest.ts3
3081
3082 # We assume that 'ls -t' will make use of high-resolution
3083 # timestamps if the operating system supports them at all.
3084 if (set X `ls -t conftest.ts?` &&
3085 test "$2" = conftest.ts3 &&
3086 test "$3" = conftest.ts2 &&
3087 test "$4" = conftest.ts1); then
3088 #
3089 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
3090 # because we don't need to test make.
3091 make_ok=true
3092 if test $am_try_res != 1; then
3093 # But if we've succeeded so far with a subsecond resolution, we
3094 # have one more thing to check: make. It can happen that
3095 # everything else supports the subsecond mtimes, but make doesn't;
3096 # notably on macOS, which ships make 3.81 from 2006 (the last one
3097 # released under GPLv2). https://bugs.gnu.org/68808
3098 #
3099 # We test $MAKE if it is defined in the environment, else "make".
3100 # It might get overridden later, but our hope is that in practice
3101 # it does not matter: it is the system "make" which is (by far)
3102 # the most likely to be broken, whereas if the user overrides it,
3103 # probably they did so with a better, or at least not worse, make.
3104 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
3105 #
3106 # Create a Makefile (real tab character here):
3107 rm -f conftest.mk
3108 echo 'conftest.ts1: conftest.ts2' >conftest.mk
3109 echo ' touch conftest.ts2' >>conftest.mk
3110 #
3111 # Now, running
3112 # touch conftest.ts1; touch conftest.ts2; make
3113 # should touch ts1 because ts2 is newer. This could happen by luck,
3114 # but most often, it will fail if make's support is insufficient. So
3115 # test for several consecutive successes.
3116 #
3117 # (We reuse conftest.ts[12] because we still want to modify existing
3118 # files, not create new ones, per above.)
3119 n=0
3120 make=${MAKE-make}
3121 until test $n -eq 3; do
3122 echo one > conftest.ts1
3123 sleep $am_try_res
3124 echo two > conftest.ts2 # ts2 should now be newer than ts1
3125 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
3126 make_ok=false
3127 break # out of $n loop
3128 fi
3129 n=`expr $n + 1`
3130 done
3131 fi
3132 #
3133 if $make_ok; then
3134 # Everything we know to check worked out, so call this resolution good.
3135 am_cv_filesystem_timestamp_resolution=$am_try_res
3136 break # out of $am_try_res loop
3137 fi
3138 # Otherwise, we'll go on to check the next resolution.
3139 fi
3140 done
3141 rm -f conftest.ts?
3142 # (end _am_filesystem_timestamp_resolution)
3143 ;;
3144 esac
3145 fi
3146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
3147 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
3148
3149 # This check should not be cached, as it may vary across builds of
3150 # different projects.
3151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3152 printf %s "checking whether build environment is sane... " >&6; }
3153 # Reject unsafe characters in $srcdir or the absolute working directory
3154 # name. Accept space and tab only in the latter.
3155 am_lf='
3156 '
3157 case `pwd` in
3158 *[\\\"\#\$\&\'\`$am_lf]*)
3159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3160 printf "%s\n" "no" >&6; }
3161 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3162 esac
3163 case $srcdir in
3164 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3166 printf "%s\n" "no" >&6; }
3167 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3168 esac
3169
3170 # Do 'set' in a subshell so we don't clobber the current shell's
3171 # arguments. Must try -L first in case configure is actually a
3172 # symlink; some systems play weird games with the mod time of symlinks
3173 # (eg FreeBSD returns the mod time of the symlink's containing
3174 # directory).
3175 am_build_env_is_sane=no
3176 am_has_slept=no
3177 rm -f conftest.file
3178 for am_try in 1 2; do
3179 echo "timestamp, slept: $am_has_slept" > conftest.file
3180 if (
3181 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3182 if test "$*" = "X"; then
3183 # -L didn't work.
3184 set X `ls -t "$srcdir/configure" conftest.file`
3185 fi
3186 test "$2" = conftest.file
3187 ); then
3188 am_build_env_is_sane=yes
3189 break
3190 fi
3191 # Just in case.
3192 sleep "$am_cv_filesystem_timestamp_resolution"
3193 am_has_slept=yes
3194 done
3195
3196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
3197 printf "%s\n" "$am_build_env_is_sane" >&6; }
3198 if test "$am_build_env_is_sane" = no; then
3199 as_fn_error $? "newly created file is older than distributed files!
3200 Check your system clock" "$LINENO" 5
3201 fi
3202
3203 # If we didn't sleep, we still need to ensure time stamps of config.status and
3204 # generated files are strictly newer.
3205 am_sleep_pid=
3206 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
3207 then :
3208
3209 else case e in #(
3210 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
3211 am_sleep_pid=$!
3212 ;;
3213 esac
3214 fi
3215
3216 rm -f conftest.file
3217
3218 test "$program_prefix" != NONE &&
3219 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3220 # Use a double $ so make ignores it.
3221 test "$program_suffix" != NONE &&
3222 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3223 # Double any \ or $.
3224 # By default was 's,x,x', remove it if useless.
3225 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3226 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3227
3228
3229 # Expand $ac_aux_dir to an absolute path.
3230 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3231
3232
3233 if test x"${MISSING+set}" != xset; then
3234 MISSING="\${SHELL} '$am_aux_dir/missing'"
3235 fi
3236 # Use eval to expand $SHELL
3237 if eval "$MISSING --is-lightweight"; then
3238 am_missing_run="$MISSING "
3239 else
3240 am_missing_run=
3241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3242 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3243 fi
3244
3245 if test x"${install_sh+set}" != xset; then
3246 case $am_aux_dir in
3247 *\ * | *\ *)
3248 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3249 *)
3250 install_sh="\${SHELL} $am_aux_dir/install-sh"
3251 esac
3252 fi
3253
3254 # Installed binaries are usually stripped using 'strip' when the user
3255 # run "make install-strip". However 'strip' might not be the right
3256 # tool to use in cross-compilation environments, therefore Automake
3257 # will honor the 'STRIP' environment variable to overrule this program.
3258 if test "$cross_compiling" != no; then
3259 if test -n "$ac_tool_prefix"; then
3260 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3261 set dummy ${ac_tool_prefix}strip; ac_word=$2
3262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3263 printf %s "checking for $ac_word... " >&6; }
3264 if test ${ac_cv_prog_STRIP+y}
3265 then :
3266 printf %s "(cached) " >&6
3267 else case e in #(
3268 e) if test -n "$STRIP"; then
3269 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3270 else
3271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3272 for as_dir in $PATH
3273 do
3274 IFS=$as_save_IFS
3275 case $as_dir in #(((
3276 '') as_dir=./ ;;
3277 */) ;;
3278 *) as_dir=$as_dir/ ;;
3279 esac
3280 for ac_exec_ext in '' $ac_executable_extensions; do
3281 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3282 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3283 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3284 break 2
3285 fi
3286 done
3287 done
3288 IFS=$as_save_IFS
3289
3290 fi ;;
3291 esac
3292 fi
3293 STRIP=$ac_cv_prog_STRIP
3294 if test -n "$STRIP"; then
3295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3296 printf "%s\n" "$STRIP" >&6; }
3297 else
3298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3299 printf "%s\n" "no" >&6; }
3300 fi
3301
3302
3303 fi
3304 if test -z "$ac_cv_prog_STRIP"; then
3305 ac_ct_STRIP=$STRIP
3306 # Extract the first word of "strip", so it can be a program name with args.
3307 set dummy strip; ac_word=$2
3308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3309 printf %s "checking for $ac_word... " >&6; }
3310 if test ${ac_cv_prog_ac_ct_STRIP+y}
3311 then :
3312 printf %s "(cached) " >&6
3313 else case e in #(
3314 e) if test -n "$ac_ct_STRIP"; then
3315 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3316 else
3317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3318 for as_dir in $PATH
3319 do
3320 IFS=$as_save_IFS
3321 case $as_dir in #(((
3322 '') as_dir=./ ;;
3323 */) ;;
3324 *) as_dir=$as_dir/ ;;
3325 esac
3326 for ac_exec_ext in '' $ac_executable_extensions; do
3327 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3328 ac_cv_prog_ac_ct_STRIP="strip"
3329 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3330 break 2
3331 fi
3332 done
3333 done
3334 IFS=$as_save_IFS
3335
3336 fi ;;
3337 esac
3338 fi
3339 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3340 if test -n "$ac_ct_STRIP"; then
3341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3342 printf "%s\n" "$ac_ct_STRIP" >&6; }
3343 else
3344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3345 printf "%s\n" "no" >&6; }
3346 fi
3347
3348 if test "x$ac_ct_STRIP" = x; then
3349 STRIP=":"
3350 else
3351 case $cross_compiling:$ac_tool_warned in
3352 yes:)
3353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3354 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3355 ac_tool_warned=yes ;;
3356 esac
3357 STRIP=$ac_ct_STRIP
3358 fi
3359 else
3360 STRIP="$ac_cv_prog_STRIP"
3361 fi
3362
3363 fi
3364 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3365
3366
3367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3368 printf %s "checking for a race-free mkdir -p... " >&6; }
3369 if test -z "$MKDIR_P"; then
3370 if test ${ac_cv_path_mkdir+y}
3371 then :
3372 printf %s "(cached) " >&6
3373 else case e in #(
3374 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3375 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3376 do
3377 IFS=$as_save_IFS
3378 case $as_dir in #(((
3379 '') as_dir=./ ;;
3380 */) ;;
3381 *) as_dir=$as_dir/ ;;
3382 esac
3383 for ac_prog in mkdir gmkdir; do
3384 for ac_exec_ext in '' $ac_executable_extensions; do
3385 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3386 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3387 'mkdir ('*'coreutils) '* | \
3388 *'BusyBox '* | \
3389 'mkdir (fileutils) '4.1*)
3390 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3391 break 3;;
3392 esac
3393 done
3394 done
3395 done
3396 IFS=$as_save_IFS
3397 ;;
3398 esac
3399 fi
3400
3401 test -d ./--version && rmdir ./--version
3402 if test ${ac_cv_path_mkdir+y}; then
3403 MKDIR_P="$ac_cv_path_mkdir -p"
3404 else
3405 # As a last resort, use plain mkdir -p,
3406 # in the hope it doesn't have the bugs of ancient mkdir.
3407 MKDIR_P='mkdir -p'
3408 fi
3409 fi
3410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3411 printf "%s\n" "$MKDIR_P" >&6; }
3412
3413 for ac_prog in gawk mawk nawk awk
3414 do
3415 # Extract the first word of "$ac_prog", so it can be a program name with args.
3416 set dummy $ac_prog; ac_word=$2
3417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3418 printf %s "checking for $ac_word... " >&6; }
3419 if test ${ac_cv_prog_AWK+y}
3420 then :
3421 printf %s "(cached) " >&6
3422 else case e in #(
3423 e) if test -n "$AWK"; then
3424 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3425 else
3426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3427 for as_dir in $PATH
3428 do
3429 IFS=$as_save_IFS
3430 case $as_dir in #(((
3431 '') as_dir=./ ;;
3432 */) ;;
3433 *) as_dir=$as_dir/ ;;
3434 esac
3435 for ac_exec_ext in '' $ac_executable_extensions; do
3436 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3437 ac_cv_prog_AWK="$ac_prog"
3438 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3439 break 2
3440 fi
3441 done
3442 done
3443 IFS=$as_save_IFS
3444
3445 fi ;;
3446 esac
3447 fi
3448 AWK=$ac_cv_prog_AWK
3449 if test -n "$AWK"; then
3450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3451 printf "%s\n" "$AWK" >&6; }
3452 else
3453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3454 printf "%s\n" "no" >&6; }
3455 fi
3456
3457
3458 test -n "$AWK" && break
3459 done
3460
3461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3462 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3463 set x ${MAKE-make}
3464 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3465 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3466 then :
3467 printf %s "(cached) " >&6
3468 else case e in #(
3469 e) cat >conftest.make <<\_ACEOF
3470 SHELL = /bin/sh
3471 all:
3472 @echo '@@@%%%=$(MAKE)=@@@%%%'
3473 _ACEOF
3474 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3475 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3476 *@@@%%%=?*=@@@%%%*)
3477 eval ac_cv_prog_make_${ac_make}_set=yes;;
3478 *)
3479 eval ac_cv_prog_make_${ac_make}_set=no;;
3480 esac
3481 rm -f conftest.make ;;
3482 esac
3483 fi
3484 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3486 printf "%s\n" "yes" >&6; }
3487 SET_MAKE=
3488 else
3489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3490 printf "%s\n" "no" >&6; }
3491 SET_MAKE="MAKE=${MAKE-make}"
3492 fi
3493
3494 rm -rf .tst 2>/dev/null
3495 mkdir .tst 2>/dev/null
3496 if test -d .tst; then
3497 am__leading_dot=.
3498 else
3499 am__leading_dot=_
3500 fi
3501 rmdir .tst 2>/dev/null
3502
3503 AM_DEFAULT_VERBOSITY=1
3504 # Check whether --enable-silent-rules was given.
3505 if test ${enable_silent_rules+y}
3506 then :
3507 enableval=$enable_silent_rules;
3508 fi
3509
3510 am_make=${MAKE-make}
3511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3512 printf %s "checking whether $am_make supports nested variables... " >&6; }
3513 if test ${am_cv_make_support_nested_variables+y}
3514 then :
3515 printf %s "(cached) " >&6
3516 else case e in #(
3517 e) if printf "%s\n" 'TRUE=$(BAR$(V))
3518 BAR0=false
3519 BAR1=true
3520 V=1
3521 am__doit:
3522 @$(TRUE)
3523 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3524 am_cv_make_support_nested_variables=yes
3525 else
3526 am_cv_make_support_nested_variables=no
3527 fi ;;
3528 esac
3529 fi
3530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3531 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3532 AM_BACKSLASH='\'
3533
3534 am__rm_f_notfound=
3535 if (rm -f && rm -fr && rm -rf) 2>/dev/null
3536 then :
3537
3538 else case e in #(
3539 e) am__rm_f_notfound='""' ;;
3540 esac
3541 fi
3542
3543
3544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
3545 printf %s "checking xargs -n works... " >&6; }
3546 if test ${am_cv_xargs_n_works+y}
3547 then :
3548 printf %s "(cached) " >&6
3549 else case e in #(
3550 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
3551 3"
3552 then :
3553 am_cv_xargs_n_works=yes
3554 else case e in #(
3555 e) am_cv_xargs_n_works=no ;;
3556 esac
3557 fi ;;
3558 esac
3559 fi
3560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
3561 printf "%s\n" "$am_cv_xargs_n_works" >&6; }
3562 if test "$am_cv_xargs_n_works" = yes
3563 then :
3564 am__xargs_n='xargs -n'
3565 else case e in #(
3566 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
3567 ;;
3568 esac
3569 fi
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580 DEPDIR="${am__leading_dot}deps"
3581
3582 ac_config_commands="$ac_config_commands depfiles"
3583
3584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3585 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3586 cat > confinc.mk << 'END'
3587 am__doit:
3588 @echo this is the am__doit target >confinc.out
3589 .PHONY: am__doit
3590 END
3591 am__include="#"
3592 am__quote=
3593 # BSD make does it like this.
3594 echo '.include "confinc.mk" # ignored' > confmf.BSD
3595 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3596 echo 'include confinc.mk # ignored' > confmf.GNU
3597 _am_result=no
3598 for s in GNU BSD; do
3599 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3600 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3601 ac_status=$?
3602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3603 (exit $ac_status); }
3604 case $?:`cat confinc.out 2>/dev/null` in #(
3605 '0:this is the am__doit target') :
3606 case $s in #(
3607 BSD) :
3608 am__include='.include' am__quote='"' ;; #(
3609 *) :
3610 am__include='include' am__quote='' ;;
3611 esac ;; #(
3612 *) :
3613 ;;
3614 esac
3615 if test "$am__include" != "#"; then
3616 _am_result="yes ($s style)"
3617 break
3618 fi
3619 done
3620 rm -f confinc.* confmf.*
3621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3622 printf "%s\n" "${_am_result}" >&6; }
3623
3624 # Check whether --enable-dependency-tracking was given.
3625 if test ${enable_dependency_tracking+y}
3626 then :
3627 enableval=$enable_dependency_tracking;
3628 fi
3629
3630 if test "x$enable_dependency_tracking" != xno; then
3631 am_depcomp="$ac_aux_dir/depcomp"
3632 AMDEPBACKSLASH='\'
3633 am__nodep='_no'
3634 fi
3635 if test "x$enable_dependency_tracking" != xno; then
3636 AMDEP_TRUE=
3637 AMDEP_FALSE='#'
3638 else
3639 AMDEP_TRUE='#'
3640 AMDEP_FALSE=
3641 fi
3642
3643
3644 ac_ext=c
3645 ac_cpp='$CPP $CPPFLAGS'
3646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3649 if test -n "$ac_tool_prefix"; then
3650 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3651 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3653 printf %s "checking for $ac_word... " >&6; }
3654 if test ${ac_cv_prog_CC+y}
3655 then :
3656 printf %s "(cached) " >&6
3657 else case e in #(
3658 e) if test -n "$CC"; then
3659 ac_cv_prog_CC="$CC" # Let the user override the test.
3660 else
3661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3662 for as_dir in $PATH
3663 do
3664 IFS=$as_save_IFS
3665 case $as_dir in #(((
3666 '') as_dir=./ ;;
3667 */) ;;
3668 *) as_dir=$as_dir/ ;;
3669 esac
3670 for ac_exec_ext in '' $ac_executable_extensions; do
3671 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3672 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3673 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3674 break 2
3675 fi
3676 done
3677 done
3678 IFS=$as_save_IFS
3679
3680 fi ;;
3681 esac
3682 fi
3683 CC=$ac_cv_prog_CC
3684 if test -n "$CC"; then
3685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3686 printf "%s\n" "$CC" >&6; }
3687 else
3688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3689 printf "%s\n" "no" >&6; }
3690 fi
3691
3692
3693 fi
3694 if test -z "$ac_cv_prog_CC"; then
3695 ac_ct_CC=$CC
3696 # Extract the first word of "gcc", so it can be a program name with args.
3697 set dummy gcc; ac_word=$2
3698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3699 printf %s "checking for $ac_word... " >&6; }
3700 if test ${ac_cv_prog_ac_ct_CC+y}
3701 then :
3702 printf %s "(cached) " >&6
3703 else case e in #(
3704 e) if test -n "$ac_ct_CC"; then
3705 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3706 else
3707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3708 for as_dir in $PATH
3709 do
3710 IFS=$as_save_IFS
3711 case $as_dir in #(((
3712 '') as_dir=./ ;;
3713 */) ;;
3714 *) as_dir=$as_dir/ ;;
3715 esac
3716 for ac_exec_ext in '' $ac_executable_extensions; do
3717 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3718 ac_cv_prog_ac_ct_CC="gcc"
3719 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3720 break 2
3721 fi
3722 done
3723 done
3724 IFS=$as_save_IFS
3725
3726 fi ;;
3727 esac
3728 fi
3729 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3730 if test -n "$ac_ct_CC"; then
3731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3732 printf "%s\n" "$ac_ct_CC" >&6; }
3733 else
3734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3735 printf "%s\n" "no" >&6; }
3736 fi
3737
3738 if test "x$ac_ct_CC" = x; then
3739 CC=""
3740 else
3741 case $cross_compiling:$ac_tool_warned in
3742 yes:)
3743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3744 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3745 ac_tool_warned=yes ;;
3746 esac
3747 CC=$ac_ct_CC
3748 fi
3749 else
3750 CC="$ac_cv_prog_CC"
3751 fi
3752
3753 if test -z "$CC"; then
3754 if test -n "$ac_tool_prefix"; then
3755 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3756 set dummy ${ac_tool_prefix}cc; ac_word=$2
3757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3758 printf %s "checking for $ac_word... " >&6; }
3759 if test ${ac_cv_prog_CC+y}
3760 then :
3761 printf %s "(cached) " >&6
3762 else case e in #(
3763 e) if test -n "$CC"; then
3764 ac_cv_prog_CC="$CC" # Let the user override the test.
3765 else
3766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3767 for as_dir in $PATH
3768 do
3769 IFS=$as_save_IFS
3770 case $as_dir in #(((
3771 '') as_dir=./ ;;
3772 */) ;;
3773 *) as_dir=$as_dir/ ;;
3774 esac
3775 for ac_exec_ext in '' $ac_executable_extensions; do
3776 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3777 ac_cv_prog_CC="${ac_tool_prefix}cc"
3778 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3779 break 2
3780 fi
3781 done
3782 done
3783 IFS=$as_save_IFS
3784
3785 fi ;;
3786 esac
3787 fi
3788 CC=$ac_cv_prog_CC
3789 if test -n "$CC"; then
3790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3791 printf "%s\n" "$CC" >&6; }
3792 else
3793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3794 printf "%s\n" "no" >&6; }
3795 fi
3796
3797
3798 fi
3799 fi
3800 if test -z "$CC"; then
3801 # Extract the first word of "cc", so it can be a program name with args.
3802 set dummy cc; ac_word=$2
3803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3804 printf %s "checking for $ac_word... " >&6; }
3805 if test ${ac_cv_prog_CC+y}
3806 then :
3807 printf %s "(cached) " >&6
3808 else case e in #(
3809 e) if test -n "$CC"; then
3810 ac_cv_prog_CC="$CC" # Let the user override the test.
3811 else
3812 ac_prog_rejected=no
3813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3814 for as_dir in $PATH
3815 do
3816 IFS=$as_save_IFS
3817 case $as_dir in #(((
3818 '') as_dir=./ ;;
3819 */) ;;
3820 *) as_dir=$as_dir/ ;;
3821 esac
3822 for ac_exec_ext in '' $ac_executable_extensions; do
3823 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3824 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3825 ac_prog_rejected=yes
3826 continue
3827 fi
3828 ac_cv_prog_CC="cc"
3829 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3830 break 2
3831 fi
3832 done
3833 done
3834 IFS=$as_save_IFS
3835
3836 if test $ac_prog_rejected = yes; then
3837 # We found a bogon in the path, so make sure we never use it.
3838 set dummy $ac_cv_prog_CC
3839 shift
3840 if test $# != 0; then
3841 # We chose a different compiler from the bogus one.
3842 # However, it has the same basename, so the bogon will be chosen
3843 # first if we set CC to just the basename; use the full file name.
3844 shift
3845 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3846 fi
3847 fi
3848 fi ;;
3849 esac
3850 fi
3851 CC=$ac_cv_prog_CC
3852 if test -n "$CC"; then
3853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3854 printf "%s\n" "$CC" >&6; }
3855 else
3856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3857 printf "%s\n" "no" >&6; }
3858 fi
3859
3860
3861 fi
3862 if test -z "$CC"; then
3863 if test -n "$ac_tool_prefix"; then
3864 for ac_prog in cl.exe
3865 do
3866 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3867 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3869 printf %s "checking for $ac_word... " >&6; }
3870 if test ${ac_cv_prog_CC+y}
3871 then :
3872 printf %s "(cached) " >&6
3873 else case e in #(
3874 e) if test -n "$CC"; then
3875 ac_cv_prog_CC="$CC" # Let the user override the test.
3876 else
3877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3878 for as_dir in $PATH
3879 do
3880 IFS=$as_save_IFS
3881 case $as_dir in #(((
3882 '') as_dir=./ ;;
3883 */) ;;
3884 *) as_dir=$as_dir/ ;;
3885 esac
3886 for ac_exec_ext in '' $ac_executable_extensions; do
3887 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3888 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3889 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3890 break 2
3891 fi
3892 done
3893 done
3894 IFS=$as_save_IFS
3895
3896 fi ;;
3897 esac
3898 fi
3899 CC=$ac_cv_prog_CC
3900 if test -n "$CC"; then
3901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3902 printf "%s\n" "$CC" >&6; }
3903 else
3904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3905 printf "%s\n" "no" >&6; }
3906 fi
3907
3908
3909 test -n "$CC" && break
3910 done
3911 fi
3912 if test -z "$CC"; then
3913 ac_ct_CC=$CC
3914 for ac_prog in cl.exe
3915 do
3916 # Extract the first word of "$ac_prog", so it can be a program name with args.
3917 set dummy $ac_prog; ac_word=$2
3918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3919 printf %s "checking for $ac_word... " >&6; }
3920 if test ${ac_cv_prog_ac_ct_CC+y}
3921 then :
3922 printf %s "(cached) " >&6
3923 else case e in #(
3924 e) if test -n "$ac_ct_CC"; then
3925 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3926 else
3927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3928 for as_dir in $PATH
3929 do
3930 IFS=$as_save_IFS
3931 case $as_dir in #(((
3932 '') as_dir=./ ;;
3933 */) ;;
3934 *) as_dir=$as_dir/ ;;
3935 esac
3936 for ac_exec_ext in '' $ac_executable_extensions; do
3937 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3938 ac_cv_prog_ac_ct_CC="$ac_prog"
3939 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3940 break 2
3941 fi
3942 done
3943 done
3944 IFS=$as_save_IFS
3945
3946 fi ;;
3947 esac
3948 fi
3949 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3950 if test -n "$ac_ct_CC"; then
3951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3952 printf "%s\n" "$ac_ct_CC" >&6; }
3953 else
3954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3955 printf "%s\n" "no" >&6; }
3956 fi
3957
3958
3959 test -n "$ac_ct_CC" && break
3960 done
3961
3962 if test "x$ac_ct_CC" = x; then
3963 CC=""
3964 else
3965 case $cross_compiling:$ac_tool_warned in
3966 yes:)
3967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3968 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3969 ac_tool_warned=yes ;;
3970 esac
3971 CC=$ac_ct_CC
3972 fi
3973 fi
3974
3975 fi
3976 if test -z "$CC"; then
3977 if test -n "$ac_tool_prefix"; then
3978 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3979 set dummy ${ac_tool_prefix}clang; ac_word=$2
3980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3981 printf %s "checking for $ac_word... " >&6; }
3982 if test ${ac_cv_prog_CC+y}
3983 then :
3984 printf %s "(cached) " >&6
3985 else case e in #(
3986 e) if test -n "$CC"; then
3987 ac_cv_prog_CC="$CC" # Let the user override the test.
3988 else
3989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3990 for as_dir in $PATH
3991 do
3992 IFS=$as_save_IFS
3993 case $as_dir in #(((
3994 '') as_dir=./ ;;
3995 */) ;;
3996 *) as_dir=$as_dir/ ;;
3997 esac
3998 for ac_exec_ext in '' $ac_executable_extensions; do
3999 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4000 ac_cv_prog_CC="${ac_tool_prefix}clang"
4001 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4002 break 2
4003 fi
4004 done
4005 done
4006 IFS=$as_save_IFS
4007
4008 fi ;;
4009 esac
4010 fi
4011 CC=$ac_cv_prog_CC
4012 if test -n "$CC"; then
4013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4014 printf "%s\n" "$CC" >&6; }
4015 else
4016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4017 printf "%s\n" "no" >&6; }
4018 fi
4019
4020
4021 fi
4022 if test -z "$ac_cv_prog_CC"; then
4023 ac_ct_CC=$CC
4024 # Extract the first word of "clang", so it can be a program name with args.
4025 set dummy clang; ac_word=$2
4026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4027 printf %s "checking for $ac_word... " >&6; }
4028 if test ${ac_cv_prog_ac_ct_CC+y}
4029 then :
4030 printf %s "(cached) " >&6
4031 else case e in #(
4032 e) if test -n "$ac_ct_CC"; then
4033 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4034 else
4035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4036 for as_dir in $PATH
4037 do
4038 IFS=$as_save_IFS
4039 case $as_dir in #(((
4040 '') as_dir=./ ;;
4041 */) ;;
4042 *) as_dir=$as_dir/ ;;
4043 esac
4044 for ac_exec_ext in '' $ac_executable_extensions; do
4045 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4046 ac_cv_prog_ac_ct_CC="clang"
4047 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4048 break 2
4049 fi
4050 done
4051 done
4052 IFS=$as_save_IFS
4053
4054 fi ;;
4055 esac
4056 fi
4057 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4058 if test -n "$ac_ct_CC"; then
4059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4060 printf "%s\n" "$ac_ct_CC" >&6; }
4061 else
4062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4063 printf "%s\n" "no" >&6; }
4064 fi
4065
4066 if test "x$ac_ct_CC" = x; then
4067 CC=""
4068 else
4069 case $cross_compiling:$ac_tool_warned in
4070 yes:)
4071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4072 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4073 ac_tool_warned=yes ;;
4074 esac
4075 CC=$ac_ct_CC
4076 fi
4077 else
4078 CC="$ac_cv_prog_CC"
4079 fi
4080
4081 fi
4082
4083
4084 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4085 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4086 as_fn_error $? "no acceptable C compiler found in \$PATH
4087 See 'config.log' for more details" "$LINENO" 5; }
4088
4089 # Provide some information about the compiler.
4090 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4091 set X $ac_compile
4092 ac_compiler=$2
4093 for ac_option in --version -v -V -qversion -version; do
4094 { { ac_try="$ac_compiler $ac_option >&5"
4095 case "(($ac_try" in
4096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4097 *) ac_try_echo=$ac_try;;
4098 esac
4099 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4100 printf "%s\n" "$ac_try_echo"; } >&5
4101 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4102 ac_status=$?
4103 if test -s conftest.err; then
4104 sed '10a\
4105 ... rest of stderr output deleted ...
4106 10q' conftest.err >conftest.er1
4107 cat conftest.er1 >&5
4108 fi
4109 rm -f conftest.er1 conftest.err
4110 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4111 test $ac_status = 0; }
4112 done
4113
4114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4115 /* end confdefs.h. */
4116
4117 int
4118 main (void)
4119 {
4120
4121 ;
4122 return 0;
4123 }
4124 _ACEOF
4125 ac_clean_files_save=$ac_clean_files
4126 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4127 # Try to create an executable without -o first, disregard a.out.
4128 # It will help us diagnose broken compilers, and finding out an intuition
4129 # of exeext.
4130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4131 printf %s "checking whether the C compiler works... " >&6; }
4132 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4133
4134 # The possible output files:
4135 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4136
4137 ac_rmfiles=
4138 for ac_file in $ac_files
4139 do
4140 case $ac_file in
4141 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4142 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4143 esac
4144 done
4145 rm -f $ac_rmfiles
4146
4147 if { { ac_try="$ac_link_default"
4148 case "(($ac_try" in
4149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4150 *) ac_try_echo=$ac_try;;
4151 esac
4152 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4153 printf "%s\n" "$ac_try_echo"; } >&5
4154 (eval "$ac_link_default") 2>&5
4155 ac_status=$?
4156 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4157 test $ac_status = 0; }
4158 then :
4159 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
4160 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
4161 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4162 # so that the user can short-circuit this test for compilers unknown to
4163 # Autoconf.
4164 for ac_file in $ac_files ''
4165 do
4166 test -f "$ac_file" || continue
4167 case $ac_file in
4168 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4169 ;;
4170 [ab].out )
4171 # We found the default executable, but exeext='' is most
4172 # certainly right.
4173 break;;
4174 *.* )
4175 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4176 then :; else
4177 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4178 fi
4179 # We set ac_cv_exeext here because the later test for it is not
4180 # safe: cross compilers may not add the suffix if given an '-o'
4181 # argument, so we may need to know it at that point already.
4182 # Even if this section looks crufty: it has the advantage of
4183 # actually working.
4184 break;;
4185 * )
4186 break;;
4187 esac
4188 done
4189 test "$ac_cv_exeext" = no && ac_cv_exeext=
4190
4191 else case e in #(
4192 e) ac_file='' ;;
4193 esac
4194 fi
4195 if test -z "$ac_file"
4196 then :
4197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4198 printf "%s\n" "no" >&6; }
4199 printf "%s\n" "$as_me: failed program was:" >&5
4200 sed 's/^/| /' conftest.$ac_ext >&5
4201
4202 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4203 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4204 as_fn_error 77 "C compiler cannot create executables
4205 See 'config.log' for more details" "$LINENO" 5; }
4206 else case e in #(
4207 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4208 printf "%s\n" "yes" >&6; } ;;
4209 esac
4210 fi
4211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4212 printf %s "checking for C compiler default output file name... " >&6; }
4213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4214 printf "%s\n" "$ac_file" >&6; }
4215 ac_exeext=$ac_cv_exeext
4216
4217 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4218 ac_clean_files=$ac_clean_files_save
4219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4220 printf %s "checking for suffix of executables... " >&6; }
4221 if { { ac_try="$ac_link"
4222 case "(($ac_try" in
4223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4224 *) ac_try_echo=$ac_try;;
4225 esac
4226 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4227 printf "%s\n" "$ac_try_echo"; } >&5
4228 (eval "$ac_link") 2>&5
4229 ac_status=$?
4230 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4231 test $ac_status = 0; }
4232 then :
4233 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
4234 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
4235 # work properly (i.e., refer to 'conftest.exe'), while it won't with
4236 # 'rm'.
4237 for ac_file in conftest.exe conftest conftest.*; do
4238 test -f "$ac_file" || continue
4239 case $ac_file in
4240 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4241 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4242 break;;
4243 * ) break;;
4244 esac
4245 done
4246 else case e in #(
4247 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4248 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4249 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4250 See 'config.log' for more details" "$LINENO" 5; } ;;
4251 esac
4252 fi
4253 rm -f conftest conftest$ac_cv_exeext
4254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4255 printf "%s\n" "$ac_cv_exeext" >&6; }
4256
4257 rm -f conftest.$ac_ext
4258 EXEEXT=$ac_cv_exeext
4259 ac_exeext=$EXEEXT
4260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4261 /* end confdefs.h. */
4262 #include <stdio.h>
4263 int
4264 main (void)
4265 {
4266 FILE *f = fopen ("conftest.out", "w");
4267 if (!f)
4268 return 1;
4269 return ferror (f) || fclose (f) != 0;
4270
4271 ;
4272 return 0;
4273 }
4274 _ACEOF
4275 ac_clean_files="$ac_clean_files conftest.out"
4276 # Check that the compiler produces executables we can run. If not, either
4277 # the compiler is broken, or we cross compile.
4278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4279 printf %s "checking whether we are cross compiling... " >&6; }
4280 if test "$cross_compiling" != yes; then
4281 { { ac_try="$ac_link"
4282 case "(($ac_try" in
4283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4284 *) ac_try_echo=$ac_try;;
4285 esac
4286 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4287 printf "%s\n" "$ac_try_echo"; } >&5
4288 (eval "$ac_link") 2>&5
4289 ac_status=$?
4290 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4291 test $ac_status = 0; }
4292 if { ac_try='./conftest$ac_cv_exeext'
4293 { { case "(($ac_try" in
4294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4295 *) ac_try_echo=$ac_try;;
4296 esac
4297 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4298 printf "%s\n" "$ac_try_echo"; } >&5
4299 (eval "$ac_try") 2>&5
4300 ac_status=$?
4301 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4302 test $ac_status = 0; }; }; then
4303 cross_compiling=no
4304 else
4305 if test "$cross_compiling" = maybe; then
4306 cross_compiling=yes
4307 else
4308 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4309 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4310 as_fn_error 77 "cannot run C compiled programs.
4311 If you meant to cross compile, use '--host'.
4312 See 'config.log' for more details" "$LINENO" 5; }
4313 fi
4314 fi
4315 fi
4316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4317 printf "%s\n" "$cross_compiling" >&6; }
4318
4319 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4320 conftest.o conftest.obj conftest.out
4321 ac_clean_files=$ac_clean_files_save
4322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4323 printf %s "checking for suffix of object files... " >&6; }
4324 if test ${ac_cv_objext+y}
4325 then :
4326 printf %s "(cached) " >&6
4327 else case e in #(
4328 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4329 /* end confdefs.h. */
4330
4331 int
4332 main (void)
4333 {
4334
4335 ;
4336 return 0;
4337 }
4338 _ACEOF
4339 rm -f conftest.o conftest.obj
4340 if { { ac_try="$ac_compile"
4341 case "(($ac_try" in
4342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4343 *) ac_try_echo=$ac_try;;
4344 esac
4345 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4346 printf "%s\n" "$ac_try_echo"; } >&5
4347 (eval "$ac_compile") 2>&5
4348 ac_status=$?
4349 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4350 test $ac_status = 0; }
4351 then :
4352 for ac_file in conftest.o conftest.obj conftest.*; do
4353 test -f "$ac_file" || continue;
4354 case $ac_file in
4355 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4356 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4357 break;;
4358 esac
4359 done
4360 else case e in #(
4361 e) printf "%s\n" "$as_me: failed program was:" >&5
4362 sed 's/^/| /' conftest.$ac_ext >&5
4363
4364 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4365 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4366 as_fn_error $? "cannot compute suffix of object files: cannot compile
4367 See 'config.log' for more details" "$LINENO" 5; } ;;
4368 esac
4369 fi
4370 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4371 esac
4372 fi
4373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4374 printf "%s\n" "$ac_cv_objext" >&6; }
4375 OBJEXT=$ac_cv_objext
4376 ac_objext=$OBJEXT
4377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4378 printf %s "checking whether the compiler supports GNU C... " >&6; }
4379 if test ${ac_cv_c_compiler_gnu+y}
4380 then :
4381 printf %s "(cached) " >&6
4382 else case e in #(
4383 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4384 /* end confdefs.h. */
4385
4386 int
4387 main (void)
4388 {
4389 #ifndef __GNUC__
4390 choke me
4391 #endif
4392
4393 ;
4394 return 0;
4395 }
4396 _ACEOF
4397 if ac_fn_c_try_compile "$LINENO"
4398 then :
4399 ac_compiler_gnu=yes
4400 else case e in #(
4401 e) ac_compiler_gnu=no ;;
4402 esac
4403 fi
4404 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4405 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4406 ;;
4407 esac
4408 fi
4409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4410 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4412
4413 if test $ac_compiler_gnu = yes; then
4414 GCC=yes
4415 else
4416 GCC=
4417 fi
4418 ac_test_CFLAGS=${CFLAGS+y}
4419 ac_save_CFLAGS=$CFLAGS
4420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4421 printf %s "checking whether $CC accepts -g... " >&6; }
4422 if test ${ac_cv_prog_cc_g+y}
4423 then :
4424 printf %s "(cached) " >&6
4425 else case e in #(
4426 e) ac_save_c_werror_flag=$ac_c_werror_flag
4427 ac_c_werror_flag=yes
4428 ac_cv_prog_cc_g=no
4429 CFLAGS="-g"
4430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4431 /* end confdefs.h. */
4432
4433 int
4434 main (void)
4435 {
4436
4437 ;
4438 return 0;
4439 }
4440 _ACEOF
4441 if ac_fn_c_try_compile "$LINENO"
4442 then :
4443 ac_cv_prog_cc_g=yes
4444 else case e in #(
4445 e) CFLAGS=""
4446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4447 /* end confdefs.h. */
4448
4449 int
4450 main (void)
4451 {
4452
4453 ;
4454 return 0;
4455 }
4456 _ACEOF
4457 if ac_fn_c_try_compile "$LINENO"
4458 then :
4459
4460 else case e in #(
4461 e) ac_c_werror_flag=$ac_save_c_werror_flag
4462 CFLAGS="-g"
4463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4464 /* end confdefs.h. */
4465
4466 int
4467 main (void)
4468 {
4469
4470 ;
4471 return 0;
4472 }
4473 _ACEOF
4474 if ac_fn_c_try_compile "$LINENO"
4475 then :
4476 ac_cv_prog_cc_g=yes
4477 fi
4478 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4479 esac
4480 fi
4481 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4482 esac
4483 fi
4484 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4485 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4486 esac
4487 fi
4488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4489 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4490 if test $ac_test_CFLAGS; then
4491 CFLAGS=$ac_save_CFLAGS
4492 elif test $ac_cv_prog_cc_g = yes; then
4493 if test "$GCC" = yes; then
4494 CFLAGS="-g -O2"
4495 else
4496 CFLAGS="-g"
4497 fi
4498 else
4499 if test "$GCC" = yes; then
4500 CFLAGS="-O2"
4501 else
4502 CFLAGS=
4503 fi
4504 fi
4505 ac_prog_cc_stdc=no
4506 if test x$ac_prog_cc_stdc = xno
4507 then :
4508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4509 printf %s "checking for $CC option to enable C11 features... " >&6; }
4510 if test ${ac_cv_prog_cc_c11+y}
4511 then :
4512 printf %s "(cached) " >&6
4513 else case e in #(
4514 e) ac_cv_prog_cc_c11=no
4515 ac_save_CC=$CC
4516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4517 /* end confdefs.h. */
4518 $ac_c_conftest_c11_program
4519 _ACEOF
4520 for ac_arg in '' -std=gnu11
4521 do
4522 CC="$ac_save_CC $ac_arg"
4523 if ac_fn_c_try_compile "$LINENO"
4524 then :
4525 ac_cv_prog_cc_c11=$ac_arg
4526 fi
4527 rm -f core conftest.err conftest.$ac_objext conftest.beam
4528 test "x$ac_cv_prog_cc_c11" != "xno" && break
4529 done
4530 rm -f conftest.$ac_ext
4531 CC=$ac_save_CC ;;
4532 esac
4533 fi
4534
4535 if test "x$ac_cv_prog_cc_c11" = xno
4536 then :
4537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4538 printf "%s\n" "unsupported" >&6; }
4539 else case e in #(
4540 e) if test "x$ac_cv_prog_cc_c11" = x
4541 then :
4542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4543 printf "%s\n" "none needed" >&6; }
4544 else case e in #(
4545 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4546 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4547 CC="$CC $ac_cv_prog_cc_c11" ;;
4548 esac
4549 fi
4550 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4551 ac_prog_cc_stdc=c11 ;;
4552 esac
4553 fi
4554 fi
4555 if test x$ac_prog_cc_stdc = xno
4556 then :
4557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4558 printf %s "checking for $CC option to enable C99 features... " >&6; }
4559 if test ${ac_cv_prog_cc_c99+y}
4560 then :
4561 printf %s "(cached) " >&6
4562 else case e in #(
4563 e) ac_cv_prog_cc_c99=no
4564 ac_save_CC=$CC
4565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4566 /* end confdefs.h. */
4567 $ac_c_conftest_c99_program
4568 _ACEOF
4569 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4570 do
4571 CC="$ac_save_CC $ac_arg"
4572 if ac_fn_c_try_compile "$LINENO"
4573 then :
4574 ac_cv_prog_cc_c99=$ac_arg
4575 fi
4576 rm -f core conftest.err conftest.$ac_objext conftest.beam
4577 test "x$ac_cv_prog_cc_c99" != "xno" && break
4578 done
4579 rm -f conftest.$ac_ext
4580 CC=$ac_save_CC ;;
4581 esac
4582 fi
4583
4584 if test "x$ac_cv_prog_cc_c99" = xno
4585 then :
4586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4587 printf "%s\n" "unsupported" >&6; }
4588 else case e in #(
4589 e) if test "x$ac_cv_prog_cc_c99" = x
4590 then :
4591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4592 printf "%s\n" "none needed" >&6; }
4593 else case e in #(
4594 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4595 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4596 CC="$CC $ac_cv_prog_cc_c99" ;;
4597 esac
4598 fi
4599 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4600 ac_prog_cc_stdc=c99 ;;
4601 esac
4602 fi
4603 fi
4604 if test x$ac_prog_cc_stdc = xno
4605 then :
4606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4607 printf %s "checking for $CC option to enable C89 features... " >&6; }
4608 if test ${ac_cv_prog_cc_c89+y}
4609 then :
4610 printf %s "(cached) " >&6
4611 else case e in #(
4612 e) ac_cv_prog_cc_c89=no
4613 ac_save_CC=$CC
4614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4615 /* end confdefs.h. */
4616 $ac_c_conftest_c89_program
4617 _ACEOF
4618 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4619 do
4620 CC="$ac_save_CC $ac_arg"
4621 if ac_fn_c_try_compile "$LINENO"
4622 then :
4623 ac_cv_prog_cc_c89=$ac_arg
4624 fi
4625 rm -f core conftest.err conftest.$ac_objext conftest.beam
4626 test "x$ac_cv_prog_cc_c89" != "xno" && break
4627 done
4628 rm -f conftest.$ac_ext
4629 CC=$ac_save_CC ;;
4630 esac
4631 fi
4632
4633 if test "x$ac_cv_prog_cc_c89" = xno
4634 then :
4635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4636 printf "%s\n" "unsupported" >&6; }
4637 else case e in #(
4638 e) if test "x$ac_cv_prog_cc_c89" = x
4639 then :
4640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4641 printf "%s\n" "none needed" >&6; }
4642 else case e in #(
4643 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4644 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4645 CC="$CC $ac_cv_prog_cc_c89" ;;
4646 esac
4647 fi
4648 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4649 ac_prog_cc_stdc=c89 ;;
4650 esac
4651 fi
4652 fi
4653
4654 ac_ext=c
4655 ac_cpp='$CPP $CPPFLAGS'
4656 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4657 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4658 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4659
4660
4661 ac_ext=c
4662 ac_cpp='$CPP $CPPFLAGS'
4663 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4664 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4665 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4667 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4668 if test ${am_cv_prog_cc_c_o+y}
4669 then :
4670 printf %s "(cached) " >&6
4671 else case e in #(
4672 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4673 /* end confdefs.h. */
4674
4675 int
4676 main (void)
4677 {
4678
4679 ;
4680 return 0;
4681 }
4682 _ACEOF
4683 # Make sure it works both with $CC and with simple cc.
4684 # Following AC_PROG_CC_C_O, we do the test twice because some
4685 # compilers refuse to overwrite an existing .o file with -o,
4686 # though they will create one.
4687 am_cv_prog_cc_c_o=yes
4688 for am_i in 1 2; do
4689 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4690 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4691 ac_status=$?
4692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4693 (exit $ac_status); } \
4694 && test -f conftest2.$ac_objext; then
4695 : OK
4696 else
4697 am_cv_prog_cc_c_o=no
4698 break
4699 fi
4700 done
4701 # aligned with autoconf, so not including core; see bug#72225.
4702 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \
4703 conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \
4704 conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM
4705 unset am_i ;;
4706 esac
4707 fi
4708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4709 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4710 if test "$am_cv_prog_cc_c_o" != yes; then
4711 # Losing compiler, so override with the script.
4712 # FIXME: It is wrong to rewrite CC.
4713 # But if we don't then we get into trouble of one sort or another.
4714 # A longer-term fix would be to have automake use am__CC in this case,
4715 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4716 CC="$am_aux_dir/compile $CC"
4717 fi
4718 ac_ext=c
4719 ac_cpp='$CPP $CPPFLAGS'
4720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4723
4724
4725 depcc="$CC" am_compiler_list=
4726
4727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4728 printf %s "checking dependency style of $depcc... " >&6; }
4729 if test ${am_cv_CC_dependencies_compiler_type+y}
4730 then :
4731 printf %s "(cached) " >&6
4732 else case e in #(
4733 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4734 # We make a subdir and do the tests there. Otherwise we can end up
4735 # making bogus files that we don't know about and never remove. For
4736 # instance it was reported that on HP-UX the gcc test will end up
4737 # making a dummy file named 'D' -- because '-MD' means "put the output
4738 # in D".
4739 rm -rf conftest.dir
4740 mkdir conftest.dir
4741 # Copy depcomp to subdir because otherwise we won't find it if we're
4742 # using a relative directory.
4743 cp "$am_depcomp" conftest.dir
4744 cd conftest.dir
4745 # We will build objects and dependencies in a subdirectory because
4746 # it helps to detect inapplicable dependency modes. For instance
4747 # both Tru64's cc and ICC support -MD to output dependencies as a
4748 # side effect of compilation, but ICC will put the dependencies in
4749 # the current directory while Tru64 will put them in the object
4750 # directory.
4751 mkdir sub
4752
4753 am_cv_CC_dependencies_compiler_type=none
4754 if test "$am_compiler_list" = ""; then
4755 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4756 fi
4757 am__universal=false
4758 case " $depcc " in #(
4759 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4760 esac
4761
4762 for depmode in $am_compiler_list; do
4763 # Setup a source with many dependencies, because some compilers
4764 # like to wrap large dependency lists on column 80 (with \), and
4765 # we should not choose a depcomp mode which is confused by this.
4766 #
4767 # We need to recreate these files for each test, as the compiler may
4768 # overwrite some of them when testing with obscure command lines.
4769 # This happens at least with the AIX C compiler.
4770 : > sub/conftest.c
4771 for i in 1 2 3 4 5 6; do
4772 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4773 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4774 # Solaris 10 /bin/sh.
4775 echo '/* dummy */' > sub/conftst$i.h
4776 done
4777 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4778
4779 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4780 # mode. It turns out that the SunPro C++ compiler does not properly
4781 # handle '-M -o', and we need to detect this. Also, some Intel
4782 # versions had trouble with output in subdirs.
4783 am__obj=sub/conftest.${OBJEXT-o}
4784 am__minus_obj="-o $am__obj"
4785 case $depmode in
4786 gcc)
4787 # This depmode causes a compiler race in universal mode.
4788 test "$am__universal" = false || continue
4789 ;;
4790 nosideeffect)
4791 # After this tag, mechanisms are not by side-effect, so they'll
4792 # only be used when explicitly requested.
4793 if test "x$enable_dependency_tracking" = xyes; then
4794 continue
4795 else
4796 break
4797 fi
4798 ;;
4799 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4800 # This compiler won't grok '-c -o', but also, the minuso test has
4801 # not run yet. These depmodes are late enough in the game, and
4802 # so weak that their functioning should not be impacted.
4803 am__obj=conftest.${OBJEXT-o}
4804 am__minus_obj=
4805 ;;
4806 none) break ;;
4807 esac
4808 if depmode=$depmode \
4809 source=sub/conftest.c object=$am__obj \
4810 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4811 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4812 >/dev/null 2>conftest.err &&
4813 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4814 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4815 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4816 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4817 # icc doesn't choke on unknown options, it will just issue warnings
4818 # or remarks (even with -Werror). So we grep stderr for any message
4819 # that says an option was ignored or not supported.
4820 # When given -MP, icc 7.0 and 7.1 complain thus:
4821 # icc: Command line warning: ignoring option '-M'; no argument required
4822 # The diagnosis changed in icc 8.0:
4823 # icc: Command line remark: option '-MP' not supported
4824 if (grep 'ignoring option' conftest.err ||
4825 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4826 am_cv_CC_dependencies_compiler_type=$depmode
4827 break
4828 fi
4829 fi
4830 done
4831
4832 cd ..
4833 rm -rf conftest.dir
4834 else
4835 am_cv_CC_dependencies_compiler_type=none
4836 fi
4837 ;;
4838 esac
4839 fi
4840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4841 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4842 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4843
4844 if
4845 test "x$enable_dependency_tracking" != xno \
4846 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4847 am__fastdepCC_TRUE=
4848 am__fastdepCC_FALSE='#'
4849 else
4850 am__fastdepCC_TRUE='#'
4851 am__fastdepCC_FALSE=
4852 fi
4853
4854
4855
4856 ac_header= ac_cache=
4857 for ac_item in $ac_header_c_list
4858 do
4859 if test $ac_cache; then
4860 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4861 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4862 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4863 fi
4864 ac_header= ac_cache=
4865 elif test $ac_header; then
4866 ac_cache=$ac_item
4867 else
4868 ac_header=$ac_item
4869 fi
4870 done
4871
4872
4873
4874
4875
4876
4877
4878
4879 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4880 then :
4881
4882 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4883
4884 fi
4885
4886
4887
4888
4889
4890
4891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4892 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4893 if test ${ac_cv_safe_to_define___extensions__+y}
4894 then :
4895 printf %s "(cached) " >&6
4896 else case e in #(
4897 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4898 /* end confdefs.h. */
4899
4900 # define __EXTENSIONS__ 1
4901 $ac_includes_default
4902 int
4903 main (void)
4904 {
4905
4906 ;
4907 return 0;
4908 }
4909 _ACEOF
4910 if ac_fn_c_try_compile "$LINENO"
4911 then :
4912 ac_cv_safe_to_define___extensions__=yes
4913 else case e in #(
4914 e) ac_cv_safe_to_define___extensions__=no ;;
4915 esac
4916 fi
4917 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4918 esac
4919 fi
4920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4921 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
4922
4923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4924 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4925 if test ${ac_cv_should_define__xopen_source+y}
4926 then :
4927 printf %s "(cached) " >&6
4928 else case e in #(
4929 e) ac_cv_should_define__xopen_source=no
4930 if test $ac_cv_header_wchar_h = yes
4931 then :
4932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4933 /* end confdefs.h. */
4934
4935 #include <wchar.h>
4936 mbstate_t x;
4937 int
4938 main (void)
4939 {
4940
4941 ;
4942 return 0;
4943 }
4944 _ACEOF
4945 if ac_fn_c_try_compile "$LINENO"
4946 then :
4947
4948 else case e in #(
4949 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4950 /* end confdefs.h. */
4951
4952 #define _XOPEN_SOURCE 500
4953 #include <wchar.h>
4954 mbstate_t x;
4955 int
4956 main (void)
4957 {
4958
4959 ;
4960 return 0;
4961 }
4962 _ACEOF
4963 if ac_fn_c_try_compile "$LINENO"
4964 then :
4965 ac_cv_should_define__xopen_source=yes
4966 fi
4967 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4968 esac
4969 fi
4970 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4971 fi ;;
4972 esac
4973 fi
4974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4975 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
4976
4977 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
4978
4979 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4980
4981 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
4982
4983 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
4984
4985 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
4986
4987 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
4988
4989 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4990
4991 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4992
4993 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4994
4995 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4996
4997 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
4998
4999 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
5000
5001 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
5002
5003 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
5004
5005 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
5006
5007 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
5008
5009 if test $ac_cv_header_minix_config_h = yes
5010 then :
5011 MINIX=yes
5012 printf "%s\n" "#define _MINIX 1" >>confdefs.h
5013
5014 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
5015
5016 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
5017
5018 else case e in #(
5019 e) MINIX= ;;
5020 esac
5021 fi
5022 if test $ac_cv_safe_to_define___extensions__ = yes
5023 then :
5024 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
5025
5026 fi
5027 if test $ac_cv_should_define__xopen_source = yes
5028 then :
5029 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
5030
5031 fi
5032
5033 # Check whether --enable-compiler-warnings was given.
5034 if test ${enable_compiler_warnings+y}
5035 then :
5036 enableval=$enable_compiler_warnings;
5037 fi
5038 case $enable_compiler_warnings in #(
5039 no | min | yes | max | all) :
5040 ;; #(
5041 *) :
5042 if test "x$enable_maintainer_mode" = xyes
5043 then :
5044 enable_compiler_warnings=yes
5045 else case e in #(
5046 e) enable_compiler_warnings=min ;;
5047 esac
5048 fi ;;
5049 esac
5050
5051 case `pwd` in
5052 *\ * | *\ *)
5053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5054 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5055 esac
5056
5057
5058
5059 macro_version='2.5.4'
5060 macro_revision='2.5.4'
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075 ltmain=$ac_aux_dir/ltmain.sh
5076
5077
5078
5079 # Make sure we can run config.sub.
5080 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
5081 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
5082
5083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5084 printf %s "checking build system type... " >&6; }
5085 if test ${ac_cv_build+y}
5086 then :
5087 printf %s "(cached) " >&6
5088 else case e in #(
5089 e) ac_build_alias=$build_alias
5090 test "x$ac_build_alias" = x &&
5091 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
5092 test "x$ac_build_alias" = x &&
5093 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5094 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
5095 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
5096 ;;
5097 esac
5098 fi
5099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5100 printf "%s\n" "$ac_cv_build" >&6; }
5101 case $ac_cv_build in
5102 *-*-*) ;;
5103 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5104 esac
5105 build=$ac_cv_build
5106 ac_save_IFS=$IFS; IFS='-'
5107 set x $ac_cv_build
5108 shift
5109 build_cpu=$1
5110 build_vendor=$2
5111 shift; shift
5112 # Remember, the first character of IFS is used to create $*,
5113 # except with old shells:
5114 build_os=$*
5115 IFS=$ac_save_IFS
5116 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5117
5118
5119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5120 printf %s "checking host system type... " >&6; }
5121 if test ${ac_cv_host+y}
5122 then :
5123 printf %s "(cached) " >&6
5124 else case e in #(
5125 e) if test "x$host_alias" = x; then
5126 ac_cv_host=$ac_cv_build
5127 else
5128 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
5129 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
5130 fi
5131 ;;
5132 esac
5133 fi
5134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5135 printf "%s\n" "$ac_cv_host" >&6; }
5136 case $ac_cv_host in
5137 *-*-*) ;;
5138 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5139 esac
5140 host=$ac_cv_host
5141 ac_save_IFS=$IFS; IFS='-'
5142 set x $ac_cv_host
5143 shift
5144 host_cpu=$1
5145 host_vendor=$2
5146 shift; shift
5147 # Remember, the first character of IFS is used to create $*,
5148 # except with old shells:
5149 host_os=$*
5150 IFS=$ac_save_IFS
5151 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5152
5153
5154 # Backslashify metacharacters that are still active within
5155 # double-quoted strings.
5156 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5157
5158 # Same as above, but do not quote variable references.
5159 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5160
5161 # Sed substitution to delay expansion of an escaped shell variable in a
5162 # double_quote_subst'ed string.
5163 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5164
5165 # Sed substitution to delay expansion of an escaped single quote.
5166 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5167
5168 # Sed substitution to avoid accidental globbing in evaled expressions
5169 no_glob_subst='s/\*/\\\*/g'
5170
5171 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5172 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5173 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5174
5175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5176 printf %s "checking how to print strings... " >&6; }
5177 # Test print first, because it will be a builtin if present.
5178 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5179 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5180 ECHO='print -r --'
5181 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5182 ECHO='printf %s\n'
5183 else
5184 # Use this function as a fallback that always works.
5185 func_fallback_echo ()
5186 {
5187 eval 'cat <<_LTECHO_EOF
5188 $1
5189 _LTECHO_EOF'
5190 }
5191 ECHO='func_fallback_echo'
5192 fi
5193
5194 # func_echo_all arg...
5195 # Invoke $ECHO with all args, space-separated.
5196 func_echo_all ()
5197 {
5198 $ECHO ""
5199 }
5200
5201 case $ECHO in
5202 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5203 printf "%s\n" "printf" >&6; } ;;
5204 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5205 printf "%s\n" "print -r" >&6; } ;;
5206 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5207 printf "%s\n" "cat" >&6; } ;;
5208 esac
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5224 printf %s "checking for a sed that does not truncate output... " >&6; }
5225 if test ${ac_cv_path_SED+y}
5226 then :
5227 printf %s "(cached) " >&6
5228 else case e in #(
5229 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5230 for ac_i in 1 2 3 4 5 6 7; do
5231 ac_script="$ac_script$as_nl$ac_script"
5232 done
5233 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5234 { ac_script=; unset ac_script;}
5235 if test -z "$SED"; then
5236 ac_path_SED_found=false
5237 # Loop through the user's path and test for each of PROGNAME-LIST
5238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5239 for as_dir in $PATH
5240 do
5241 IFS=$as_save_IFS
5242 case $as_dir in #(((
5243 '') as_dir=./ ;;
5244 */) ;;
5245 *) as_dir=$as_dir/ ;;
5246 esac
5247 for ac_prog in sed gsed
5248 do
5249 for ac_exec_ext in '' $ac_executable_extensions; do
5250 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5251 as_fn_executable_p "$ac_path_SED" || continue
5252 # Check for GNU ac_path_SED and select it if it is found.
5253 # Check for GNU $ac_path_SED
5254 case `"$ac_path_SED" --version 2>&1` in #(
5255 *GNU*)
5256 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5257 #(
5258 *)
5259 ac_count=0
5260 printf %s 0123456789 >"conftest.in"
5261 while :
5262 do
5263 cat "conftest.in" "conftest.in" >"conftest.tmp"
5264 mv "conftest.tmp" "conftest.in"
5265 cp "conftest.in" "conftest.nl"
5266 printf "%s\n" '' >> "conftest.nl"
5267 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5268 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5269 as_fn_arith $ac_count + 1 && ac_count=$as_val
5270 if test $ac_count -gt ${ac_path_SED_max-0}; then
5271 # Best one so far, save it but keep looking for a better one
5272 ac_cv_path_SED="$ac_path_SED"
5273 ac_path_SED_max=$ac_count
5274 fi
5275 # 10*(2^10) chars as input seems more than enough
5276 test $ac_count -gt 10 && break
5277 done
5278 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5279 esac
5280
5281 $ac_path_SED_found && break 3
5282 done
5283 done
5284 done
5285 IFS=$as_save_IFS
5286 if test -z "$ac_cv_path_SED"; then
5287 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5288 fi
5289 else
5290 ac_cv_path_SED=$SED
5291 fi
5292 ;;
5293 esac
5294 fi
5295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5296 printf "%s\n" "$ac_cv_path_SED" >&6; }
5297 SED="$ac_cv_path_SED"
5298 rm -f conftest.sed
5299
5300 test -z "$SED" && SED=sed
5301 Xsed="$SED -e 1s/^X//"
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5314 printf %s "checking for grep that handles long lines and -e... " >&6; }
5315 if test ${ac_cv_path_GREP+y}
5316 then :
5317 printf %s "(cached) " >&6
5318 else case e in #(
5319 e) if test -z "$GREP"; then
5320 ac_path_GREP_found=false
5321 # Loop through the user's path and test for each of PROGNAME-LIST
5322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5323 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5324 do
5325 IFS=$as_save_IFS
5326 case $as_dir in #(((
5327 '') as_dir=./ ;;
5328 */) ;;
5329 *) as_dir=$as_dir/ ;;
5330 esac
5331 for ac_prog in grep ggrep
5332 do
5333 for ac_exec_ext in '' $ac_executable_extensions; do
5334 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5335 as_fn_executable_p "$ac_path_GREP" || continue
5336 # Check for GNU ac_path_GREP and select it if it is found.
5337 # Check for GNU $ac_path_GREP
5338 case `"$ac_path_GREP" --version 2>&1` in #(
5339 *GNU*)
5340 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5341 #(
5342 *)
5343 ac_count=0
5344 printf %s 0123456789 >"conftest.in"
5345 while :
5346 do
5347 cat "conftest.in" "conftest.in" >"conftest.tmp"
5348 mv "conftest.tmp" "conftest.in"
5349 cp "conftest.in" "conftest.nl"
5350 printf "%s\n" 'GREP' >> "conftest.nl"
5351 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5352 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5353 as_fn_arith $ac_count + 1 && ac_count=$as_val
5354 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5355 # Best one so far, save it but keep looking for a better one
5356 ac_cv_path_GREP="$ac_path_GREP"
5357 ac_path_GREP_max=$ac_count
5358 fi
5359 # 10*(2^10) chars as input seems more than enough
5360 test $ac_count -gt 10 && break
5361 done
5362 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5363 esac
5364
5365 $ac_path_GREP_found && break 3
5366 done
5367 done
5368 done
5369 IFS=$as_save_IFS
5370 if test -z "$ac_cv_path_GREP"; then
5371 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5372 fi
5373 else
5374 ac_cv_path_GREP=$GREP
5375 fi
5376 ;;
5377 esac
5378 fi
5379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5380 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5381 GREP="$ac_cv_path_GREP"
5382
5383
5384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5385 printf %s "checking for egrep... " >&6; }
5386 if test ${ac_cv_path_EGREP+y}
5387 then :
5388 printf %s "(cached) " >&6
5389 else case e in #(
5390 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5391 then ac_cv_path_EGREP="$GREP -E"
5392 else
5393 if test -z "$EGREP"; then
5394 ac_path_EGREP_found=false
5395 # Loop through the user's path and test for each of PROGNAME-LIST
5396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5397 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5398 do
5399 IFS=$as_save_IFS
5400 case $as_dir in #(((
5401 '') as_dir=./ ;;
5402 */) ;;
5403 *) as_dir=$as_dir/ ;;
5404 esac
5405 for ac_prog in egrep
5406 do
5407 for ac_exec_ext in '' $ac_executable_extensions; do
5408 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5409 as_fn_executable_p "$ac_path_EGREP" || continue
5410 # Check for GNU ac_path_EGREP and select it if it is found.
5411 # Check for GNU $ac_path_EGREP
5412 case `"$ac_path_EGREP" --version 2>&1` in #(
5413 *GNU*)
5414 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5415 #(
5416 *)
5417 ac_count=0
5418 printf %s 0123456789 >"conftest.in"
5419 while :
5420 do
5421 cat "conftest.in" "conftest.in" >"conftest.tmp"
5422 mv "conftest.tmp" "conftest.in"
5423 cp "conftest.in" "conftest.nl"
5424 printf "%s\n" 'EGREP' >> "conftest.nl"
5425 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5426 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5427 as_fn_arith $ac_count + 1 && ac_count=$as_val
5428 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5429 # Best one so far, save it but keep looking for a better one
5430 ac_cv_path_EGREP="$ac_path_EGREP"
5431 ac_path_EGREP_max=$ac_count
5432 fi
5433 # 10*(2^10) chars as input seems more than enough
5434 test $ac_count -gt 10 && break
5435 done
5436 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5437 esac
5438
5439 $ac_path_EGREP_found && break 3
5440 done
5441 done
5442 done
5443 IFS=$as_save_IFS
5444 if test -z "$ac_cv_path_EGREP"; then
5445 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5446 fi
5447 else
5448 ac_cv_path_EGREP=$EGREP
5449 fi
5450
5451 fi ;;
5452 esac
5453 fi
5454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5455 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5456 EGREP="$ac_cv_path_EGREP"
5457
5458 EGREP_TRADITIONAL=$EGREP
5459 ac_cv_path_EGREP_TRADITIONAL=$EGREP
5460
5461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5462 printf %s "checking for fgrep... " >&6; }
5463 if test ${ac_cv_path_FGREP+y}
5464 then :
5465 printf %s "(cached) " >&6
5466 else case e in #(
5467 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5468 then ac_cv_path_FGREP="$GREP -F"
5469 else
5470 if test -z "$FGREP"; then
5471 ac_path_FGREP_found=false
5472 # Loop through the user's path and test for each of PROGNAME-LIST
5473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5474 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5475 do
5476 IFS=$as_save_IFS
5477 case $as_dir in #(((
5478 '') as_dir=./ ;;
5479 */) ;;
5480 *) as_dir=$as_dir/ ;;
5481 esac
5482 for ac_prog in fgrep
5483 do
5484 for ac_exec_ext in '' $ac_executable_extensions; do
5485 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5486 as_fn_executable_p "$ac_path_FGREP" || continue
5487 # Check for GNU ac_path_FGREP and select it if it is found.
5488 # Check for GNU $ac_path_FGREP
5489 case `"$ac_path_FGREP" --version 2>&1` in #(
5490 *GNU*)
5491 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5492 #(
5493 *)
5494 ac_count=0
5495 printf %s 0123456789 >"conftest.in"
5496 while :
5497 do
5498 cat "conftest.in" "conftest.in" >"conftest.tmp"
5499 mv "conftest.tmp" "conftest.in"
5500 cp "conftest.in" "conftest.nl"
5501 printf "%s\n" 'FGREP' >> "conftest.nl"
5502 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5503 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5504 as_fn_arith $ac_count + 1 && ac_count=$as_val
5505 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5506 # Best one so far, save it but keep looking for a better one
5507 ac_cv_path_FGREP="$ac_path_FGREP"
5508 ac_path_FGREP_max=$ac_count
5509 fi
5510 # 10*(2^10) chars as input seems more than enough
5511 test $ac_count -gt 10 && break
5512 done
5513 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5514 esac
5515
5516 $ac_path_FGREP_found && break 3
5517 done
5518 done
5519 done
5520 IFS=$as_save_IFS
5521 if test -z "$ac_cv_path_FGREP"; then
5522 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5523 fi
5524 else
5525 ac_cv_path_FGREP=$FGREP
5526 fi
5527
5528 fi ;;
5529 esac
5530 fi
5531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5532 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5533 FGREP="$ac_cv_path_FGREP"
5534
5535
5536 test -z "$GREP" && GREP=grep
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556 # Check whether --with-gnu-ld was given.
5557 if test ${with_gnu_ld+y}
5558 then :
5559 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5560 else case e in #(
5561 e) with_gnu_ld=no ;;
5562 esac
5563 fi
5564
5565 ac_prog=ld
5566 if test yes = "$GCC"; then
5567 # Check if gcc -print-prog-name=ld gives a path.
5568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5569 printf %s "checking for ld used by $CC... " >&6; }
5570 case $host in
5571 *-*-mingw* | *-*-windows*)
5572 # gcc leaves a trailing carriage return, which upsets mingw
5573 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5574 *)
5575 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5576 esac
5577 case $ac_prog in
5578 # Accept absolute paths.
5579 [\\/]* | ?:[\\/]*)
5580 re_direlt='/[^/][^/]*/\.\./'
5581 # Canonicalize the pathname of ld
5582 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5583 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5584 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5585 done
5586 test -z "$LD" && LD=$ac_prog
5587 ;;
5588 "")
5589 # If it fails, then pretend we aren't using GCC.
5590 ac_prog=ld
5591 ;;
5592 *)
5593 # If it is relative, then search for the first ld in PATH.
5594 with_gnu_ld=unknown
5595 ;;
5596 esac
5597 elif test yes = "$with_gnu_ld"; then
5598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5599 printf %s "checking for GNU ld... " >&6; }
5600 else
5601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5602 printf %s "checking for non-GNU ld... " >&6; }
5603 fi
5604 if test ${lt_cv_path_LD+y}
5605 then :
5606 printf %s "(cached) " >&6
5607 else case e in #(
5608 e) if test -z "$LD"; then
5609 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5610 for ac_dir in $PATH; do
5611 IFS=$lt_save_ifs
5612 test -z "$ac_dir" && ac_dir=.
5613 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5614 lt_cv_path_LD=$ac_dir/$ac_prog
5615 # Check to see if the program is GNU ld. I'd rather use --version,
5616 # but apparently some variants of GNU ld only accept -v.
5617 # Break only if it was the GNU/non-GNU ld that we prefer.
5618 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5619 *GNU* | *'with BFD'*)
5620 test no != "$with_gnu_ld" && break
5621 ;;
5622 *)
5623 test yes != "$with_gnu_ld" && break
5624 ;;
5625 esac
5626 fi
5627 done
5628 IFS=$lt_save_ifs
5629 else
5630 lt_cv_path_LD=$LD # Let the user override the test with a path.
5631 fi ;;
5632 esac
5633 fi
5634
5635 LD=$lt_cv_path_LD
5636 if test -n "$LD"; then
5637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5638 printf "%s\n" "$LD" >&6; }
5639 else
5640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5641 printf "%s\n" "no" >&6; }
5642 fi
5643 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5645 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5646 if test ${lt_cv_prog_gnu_ld+y}
5647 then :
5648 printf %s "(cached) " >&6
5649 else case e in #(
5650 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
5651 case `$LD -v 2>&1 </dev/null` in
5652 *GNU* | *'with BFD'*)
5653 lt_cv_prog_gnu_ld=yes
5654 ;;
5655 *)
5656 lt_cv_prog_gnu_ld=no
5657 ;;
5658 esac ;;
5659 esac
5660 fi
5661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5662 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5663 with_gnu_ld=$lt_cv_prog_gnu_ld
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5674 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5675 if test ${lt_cv_path_NM+y}
5676 then :
5677 printf %s "(cached) " >&6
5678 else case e in #(
5679 e) if test -n "$NM"; then
5680 # Let the user override the test.
5681 lt_cv_path_NM=$NM
5682 else
5683 lt_nm_to_check=${ac_tool_prefix}nm
5684 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5685 lt_nm_to_check="$lt_nm_to_check nm"
5686 fi
5687 for lt_tmp_nm in $lt_nm_to_check; do
5688 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5689 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5690 IFS=$lt_save_ifs
5691 test -z "$ac_dir" && ac_dir=.
5692 tmp_nm=$ac_dir/$lt_tmp_nm
5693 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5694 # Check to see if the nm accepts a BSD-compat flag.
5695 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5696 # nm: unknown option "B" ignored
5697 # Tru64's nm complains that /dev/null is an invalid object file
5698 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5699 case $build_os in
5700 mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
5701 *) lt_bad_file=/dev/null ;;
5702 esac
5703 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5704 *$lt_bad_file* | *'Invalid file or object type'*)
5705 lt_cv_path_NM="$tmp_nm -B"
5706 break 2
5707 ;;
5708 *)
5709 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5710 */dev/null*)
5711 lt_cv_path_NM="$tmp_nm -p"
5712 break 2
5713 ;;
5714 *)
5715 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5716 continue # so that we can try to find one that supports BSD flags
5717 ;;
5718 esac
5719 ;;
5720 esac
5721 fi
5722 done
5723 IFS=$lt_save_ifs
5724 done
5725 : ${lt_cv_path_NM=no}
5726 fi ;;
5727 esac
5728 fi
5729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5730 printf "%s\n" "$lt_cv_path_NM" >&6; }
5731 if test no != "$lt_cv_path_NM"; then
5732 NM=$lt_cv_path_NM
5733 else
5734 # Didn't find any BSD compatible name lister, look for dumpbin.
5735 if test -n "$DUMPBIN"; then :
5736 # Let the user override the test.
5737 else
5738 if test -n "$ac_tool_prefix"; then
5739 for ac_prog in dumpbin "link -dump"
5740 do
5741 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5742 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5744 printf %s "checking for $ac_word... " >&6; }
5745 if test ${ac_cv_prog_DUMPBIN+y}
5746 then :
5747 printf %s "(cached) " >&6
5748 else case e in #(
5749 e) if test -n "$DUMPBIN"; then
5750 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5751 else
5752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5753 for as_dir in $PATH
5754 do
5755 IFS=$as_save_IFS
5756 case $as_dir in #(((
5757 '') as_dir=./ ;;
5758 */) ;;
5759 *) as_dir=$as_dir/ ;;
5760 esac
5761 for ac_exec_ext in '' $ac_executable_extensions; do
5762 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5763 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5764 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5765 break 2
5766 fi
5767 done
5768 done
5769 IFS=$as_save_IFS
5770
5771 fi ;;
5772 esac
5773 fi
5774 DUMPBIN=$ac_cv_prog_DUMPBIN
5775 if test -n "$DUMPBIN"; then
5776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5777 printf "%s\n" "$DUMPBIN" >&6; }
5778 else
5779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5780 printf "%s\n" "no" >&6; }
5781 fi
5782
5783
5784 test -n "$DUMPBIN" && break
5785 done
5786 fi
5787 if test -z "$DUMPBIN"; then
5788 ac_ct_DUMPBIN=$DUMPBIN
5789 for ac_prog in dumpbin "link -dump"
5790 do
5791 # Extract the first word of "$ac_prog", so it can be a program name with args.
5792 set dummy $ac_prog; ac_word=$2
5793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5794 printf %s "checking for $ac_word... " >&6; }
5795 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5796 then :
5797 printf %s "(cached) " >&6
5798 else case e in #(
5799 e) if test -n "$ac_ct_DUMPBIN"; then
5800 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5801 else
5802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5803 for as_dir in $PATH
5804 do
5805 IFS=$as_save_IFS
5806 case $as_dir in #(((
5807 '') as_dir=./ ;;
5808 */) ;;
5809 *) as_dir=$as_dir/ ;;
5810 esac
5811 for ac_exec_ext in '' $ac_executable_extensions; do
5812 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5813 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5814 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5815 break 2
5816 fi
5817 done
5818 done
5819 IFS=$as_save_IFS
5820
5821 fi ;;
5822 esac
5823 fi
5824 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5825 if test -n "$ac_ct_DUMPBIN"; then
5826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5827 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5828 else
5829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5830 printf "%s\n" "no" >&6; }
5831 fi
5832
5833
5834 test -n "$ac_ct_DUMPBIN" && break
5835 done
5836
5837 if test "x$ac_ct_DUMPBIN" = x; then
5838 DUMPBIN=":"
5839 else
5840 case $cross_compiling:$ac_tool_warned in
5841 yes:)
5842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5843 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5844 ac_tool_warned=yes ;;
5845 esac
5846 DUMPBIN=$ac_ct_DUMPBIN
5847 fi
5848 fi
5849
5850 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5851 *COFF*)
5852 DUMPBIN="$DUMPBIN -symbols -headers"
5853 ;;
5854 *)
5855 DUMPBIN=:
5856 ;;
5857 esac
5858 fi
5859
5860 if test : != "$DUMPBIN"; then
5861 NM=$DUMPBIN
5862 fi
5863 fi
5864 test -z "$NM" && NM=nm
5865
5866
5867
5868
5869
5870
5871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5872 printf %s "checking the name lister ($NM) interface... " >&6; }
5873 if test ${lt_cv_nm_interface+y}
5874 then :
5875 printf %s "(cached) " >&6
5876 else case e in #(
5877 e) lt_cv_nm_interface="BSD nm"
5878 echo "int some_variable = 0;" > conftest.$ac_ext
5879 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5880 (eval "$ac_compile" 2>conftest.err)
5881 cat conftest.err >&5
5882 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5883 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5884 cat conftest.err >&5
5885 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5886 cat conftest.out >&5
5887 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5888 lt_cv_nm_interface="MS dumpbin"
5889 fi
5890 rm -f conftest* ;;
5891 esac
5892 fi
5893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5894 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5895
5896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5897 printf %s "checking whether ln -s works... " >&6; }
5898 LN_S=$as_ln_s
5899 if test "$LN_S" = "ln -s"; then
5900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5901 printf "%s\n" "yes" >&6; }
5902 else
5903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5904 printf "%s\n" "no, using $LN_S" >&6; }
5905 fi
5906
5907 # find the maximum length of command line arguments
5908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5909 printf %s "checking the maximum length of command line arguments... " >&6; }
5910 if test ${lt_cv_sys_max_cmd_len+y}
5911 then :
5912 printf %s "(cached) " >&6
5913 else case e in #(
5914 e) i=0
5915 teststring=ABCD
5916
5917 case $build_os in
5918 msdosdjgpp*)
5919 # On DJGPP, this test can blow up pretty badly due to problems in libc
5920 # (any single argument exceeding 2000 bytes causes a buffer overrun
5921 # during glob expansion). Even if it were fixed, the result of this
5922 # check would be larger than it should be.
5923 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5924 ;;
5925
5926 gnu* | ironclad*)
5927 # Under GNU Hurd and Ironclad, this test is not required because there
5928 # is no limit to the length of command line arguments.
5929 # Libtool will interpret -1 as no limit whatsoever
5930 lt_cv_sys_max_cmd_len=-1;
5931 ;;
5932
5933 cygwin* | mingw* | windows* | cegcc*)
5934 # On Win9x/ME, this test blows up -- it succeeds, but takes
5935 # about 5 minutes as the teststring grows exponentially.
5936 # Worse, since 9x/ME are not pre-emptively multitasking,
5937 # you end up with a "frozen" computer, even though with patience
5938 # the test eventually succeeds (with a max line length of 256k).
5939 # Instead, let's just punt: use the minimum linelength reported by
5940 # all of the supported platforms: 8192 (on NT/2K/XP).
5941 lt_cv_sys_max_cmd_len=8192;
5942 ;;
5943
5944 mint*)
5945 # On MiNT this can take a long time and run out of memory.
5946 lt_cv_sys_max_cmd_len=8192;
5947 ;;
5948
5949 amigaos*)
5950 # On AmigaOS with pdksh, this test takes hours, literally.
5951 # So we just punt and use a minimum line length of 8192.
5952 lt_cv_sys_max_cmd_len=8192;
5953 ;;
5954
5955 darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5956 # This has been around since 386BSD, at least. Likely further.
5957 if test -x /sbin/sysctl; then
5958 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5959 elif test -x /usr/sbin/sysctl; then
5960 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5961 else
5962 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5963 fi
5964 # And add a safety zone
5965 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5966 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5967 ;;
5968
5969 interix*)
5970 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5971 lt_cv_sys_max_cmd_len=196608
5972 ;;
5973
5974 os2*)
5975 # The test takes a long time on OS/2.
5976 lt_cv_sys_max_cmd_len=8192
5977 ;;
5978
5979 osf*)
5980 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5981 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5982 # nice to cause kernel panics so lets avoid the loop below.
5983 # First set a reasonable default.
5984 lt_cv_sys_max_cmd_len=16384
5985 #
5986 if test -x /sbin/sysconfig; then
5987 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5988 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5989 esac
5990 fi
5991 ;;
5992 sco3.2v5*)
5993 lt_cv_sys_max_cmd_len=102400
5994 ;;
5995 sysv5* | sco5v6* | sysv4.2uw2*)
5996 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5997 if test -n "$kargmax"; then
5998 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
5999 else
6000 lt_cv_sys_max_cmd_len=32768
6001 fi
6002 ;;
6003 *)
6004 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6005 if test -n "$lt_cv_sys_max_cmd_len" && \
6006 test undefined != "$lt_cv_sys_max_cmd_len"; then
6007 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6008 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6009 else
6010 # Make teststring a little bigger before we do anything with it.
6011 # a 1K string should be a reasonable start.
6012 for i in 1 2 3 4 5 6 7 8; do
6013 teststring=$teststring$teststring
6014 done
6015 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6016 # If test is not a shell built-in, we'll probably end up computing a
6017 # maximum length that is only half of the actual maximum length, but
6018 # we can't tell.
6019 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6020 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6021 test 17 != "$i" # 1/2 MB should be enough
6022 do
6023 i=`expr $i + 1`
6024 teststring=$teststring$teststring
6025 done
6026 # Only check the string length outside the loop.
6027 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6028 teststring=
6029 # Add a significant safety factor because C++ compilers can tack on
6030 # massive amounts of additional arguments before passing them to the
6031 # linker. It appears as though 1/2 is a usable value.
6032 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6033 fi
6034 ;;
6035 esac
6036 ;;
6037 esac
6038 fi
6039
6040 if test -n "$lt_cv_sys_max_cmd_len"; then
6041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6042 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6043 else
6044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6045 printf "%s\n" "none" >&6; }
6046 fi
6047 max_cmd_len=$lt_cv_sys_max_cmd_len
6048
6049
6050
6051
6052
6053
6054 : ${CP="cp -f"}
6055 : ${MV="mv -f"}
6056 : ${RM="rm -f"}
6057
6058 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6059 lt_unset=unset
6060 else
6061 lt_unset=false
6062 fi
6063
6064
6065
6066
6067
6068 # test EBCDIC or ASCII
6069 case `echo X|tr X '\101'` in
6070 A) # ASCII based system
6071 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6072 lt_SP2NL='tr \040 \012'
6073 lt_NL2SP='tr \015\012 \040\040'
6074 ;;
6075 *) # EBCDIC based system
6076 lt_SP2NL='tr \100 \n'
6077 lt_NL2SP='tr \r\n \100\100'
6078 ;;
6079 esac
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6090 printf %s "checking how to convert $build file names to $host format... " >&6; }
6091 if test ${lt_cv_to_host_file_cmd+y}
6092 then :
6093 printf %s "(cached) " >&6
6094 else case e in #(
6095 e) case $host in
6096 *-*-mingw* )
6097 case $build in
6098 *-*-mingw* | *-*-windows* ) # actually msys
6099 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6100 ;;
6101 *-*-cygwin* )
6102 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6103 ;;
6104 * ) # otherwise, assume *nix
6105 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6106 ;;
6107 esac
6108 ;;
6109 *-*-cygwin* )
6110 case $build in
6111 *-*-mingw* | *-*-windows* ) # actually msys
6112 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6113 ;;
6114 *-*-cygwin* )
6115 lt_cv_to_host_file_cmd=func_convert_file_noop
6116 ;;
6117 * ) # otherwise, assume *nix
6118 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6119 ;;
6120 esac
6121 ;;
6122 * ) # unhandled hosts (and "normal" native builds)
6123 lt_cv_to_host_file_cmd=func_convert_file_noop
6124 ;;
6125 esac
6126 ;;
6127 esac
6128 fi
6129
6130 to_host_file_cmd=$lt_cv_to_host_file_cmd
6131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6132 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6133
6134
6135
6136
6137
6138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6139 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6140 if test ${lt_cv_to_tool_file_cmd+y}
6141 then :
6142 printf %s "(cached) " >&6
6143 else case e in #(
6144 e) #assume ordinary cross tools, or native build.
6145 lt_cv_to_tool_file_cmd=func_convert_file_noop
6146 case $host in
6147 *-*-mingw* | *-*-windows* )
6148 case $build in
6149 *-*-mingw* | *-*-windows* ) # actually msys
6150 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6151 ;;
6152 esac
6153 ;;
6154 esac
6155 ;;
6156 esac
6157 fi
6158
6159 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6161 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6162
6163
6164
6165
6166
6167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6168 printf %s "checking for $LD option to reload object files... " >&6; }
6169 if test ${lt_cv_ld_reload_flag+y}
6170 then :
6171 printf %s "(cached) " >&6
6172 else case e in #(
6173 e) lt_cv_ld_reload_flag='-r' ;;
6174 esac
6175 fi
6176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6177 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6178 reload_flag=$lt_cv_ld_reload_flag
6179 case $reload_flag in
6180 "" | " "*) ;;
6181 *) reload_flag=" $reload_flag" ;;
6182 esac
6183 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6184 case $host_os in
6185 cygwin* | mingw* | windows* | pw32* | cegcc*)
6186 if test yes != "$GCC"; then
6187 reload_cmds=false
6188 fi
6189 ;;
6190 darwin*)
6191 if test yes = "$GCC"; then
6192 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6193 else
6194 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6195 fi
6196 ;;
6197 esac
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207 # Extract the first word of "file", so it can be a program name with args.
6208 set dummy file; ac_word=$2
6209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6210 printf %s "checking for $ac_word... " >&6; }
6211 if test ${ac_cv_prog_FILECMD+y}
6212 then :
6213 printf %s "(cached) " >&6
6214 else case e in #(
6215 e) if test -n "$FILECMD"; then
6216 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
6217 else
6218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6219 for as_dir in $PATH
6220 do
6221 IFS=$as_save_IFS
6222 case $as_dir in #(((
6223 '') as_dir=./ ;;
6224 */) ;;
6225 *) as_dir=$as_dir/ ;;
6226 esac
6227 for ac_exec_ext in '' $ac_executable_extensions; do
6228 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6229 ac_cv_prog_FILECMD="file"
6230 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6231 break 2
6232 fi
6233 done
6234 done
6235 IFS=$as_save_IFS
6236
6237 test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":"
6238 fi ;;
6239 esac
6240 fi
6241 FILECMD=$ac_cv_prog_FILECMD
6242 if test -n "$FILECMD"; then
6243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6244 printf "%s\n" "$FILECMD" >&6; }
6245 else
6246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6247 printf "%s\n" "no" >&6; }
6248 fi
6249
6250
6251
6252
6253
6254
6255
6256
6257 if test -n "$ac_tool_prefix"; then
6258 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6259 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6261 printf %s "checking for $ac_word... " >&6; }
6262 if test ${ac_cv_prog_OBJDUMP+y}
6263 then :
6264 printf %s "(cached) " >&6
6265 else case e in #(
6266 e) if test -n "$OBJDUMP"; then
6267 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6268 else
6269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6270 for as_dir in $PATH
6271 do
6272 IFS=$as_save_IFS
6273 case $as_dir in #(((
6274 '') as_dir=./ ;;
6275 */) ;;
6276 *) as_dir=$as_dir/ ;;
6277 esac
6278 for ac_exec_ext in '' $ac_executable_extensions; do
6279 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6280 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6281 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6282 break 2
6283 fi
6284 done
6285 done
6286 IFS=$as_save_IFS
6287
6288 fi ;;
6289 esac
6290 fi
6291 OBJDUMP=$ac_cv_prog_OBJDUMP
6292 if test -n "$OBJDUMP"; then
6293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6294 printf "%s\n" "$OBJDUMP" >&6; }
6295 else
6296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6297 printf "%s\n" "no" >&6; }
6298 fi
6299
6300
6301 fi
6302 if test -z "$ac_cv_prog_OBJDUMP"; then
6303 ac_ct_OBJDUMP=$OBJDUMP
6304 # Extract the first word of "objdump", so it can be a program name with args.
6305 set dummy objdump; ac_word=$2
6306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6307 printf %s "checking for $ac_word... " >&6; }
6308 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6309 then :
6310 printf %s "(cached) " >&6
6311 else case e in #(
6312 e) if test -n "$ac_ct_OBJDUMP"; then
6313 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6314 else
6315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6316 for as_dir in $PATH
6317 do
6318 IFS=$as_save_IFS
6319 case $as_dir in #(((
6320 '') as_dir=./ ;;
6321 */) ;;
6322 *) as_dir=$as_dir/ ;;
6323 esac
6324 for ac_exec_ext in '' $ac_executable_extensions; do
6325 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6326 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6327 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6328 break 2
6329 fi
6330 done
6331 done
6332 IFS=$as_save_IFS
6333
6334 fi ;;
6335 esac
6336 fi
6337 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6338 if test -n "$ac_ct_OBJDUMP"; then
6339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6340 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6341 else
6342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6343 printf "%s\n" "no" >&6; }
6344 fi
6345
6346 if test "x$ac_ct_OBJDUMP" = x; then
6347 OBJDUMP="false"
6348 else
6349 case $cross_compiling:$ac_tool_warned in
6350 yes:)
6351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6352 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6353 ac_tool_warned=yes ;;
6354 esac
6355 OBJDUMP=$ac_ct_OBJDUMP
6356 fi
6357 else
6358 OBJDUMP="$ac_cv_prog_OBJDUMP"
6359 fi
6360
6361 test -z "$OBJDUMP" && OBJDUMP=objdump
6362
6363
6364
6365
6366
6367
6368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6369 printf %s "checking how to recognize dependent libraries... " >&6; }
6370 if test ${lt_cv_deplibs_check_method+y}
6371 then :
6372 printf %s "(cached) " >&6
6373 else case e in #(
6374 e) lt_cv_file_magic_cmd='$MAGIC_CMD'
6375 lt_cv_file_magic_test_file=
6376 lt_cv_deplibs_check_method='unknown'
6377 # Need to set the preceding variable on all platforms that support
6378 # interlibrary dependencies.
6379 # 'none' -- dependencies not supported.
6380 # 'unknown' -- same as none, but documents that we really don't know.
6381 # 'pass_all' -- all dependencies passed with no checks.
6382 # 'file_magic [[regex]]' -- check by looking for files in library path
6383 # that responds to the $file_magic_cmd with a given extended regex.
6384 # If you have 'file' or equivalent on your system and you're not sure
6385 # whether 'pass_all' will *always* work, you probably want this one.
6386
6387 case $host_os in
6388 aix[4-9]*)
6389 lt_cv_deplibs_check_method=pass_all
6390 ;;
6391
6392 beos*)
6393 lt_cv_deplibs_check_method=pass_all
6394 ;;
6395
6396 bsdi[45]*)
6397 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6398 lt_cv_file_magic_cmd='$FILECMD -L'
6399 lt_cv_file_magic_test_file=/shlib/libc.so
6400 ;;
6401
6402 cygwin*)
6403 # func_win32_libid is a shell function defined in ltmain.sh
6404 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6405 lt_cv_file_magic_cmd='func_win32_libid'
6406 ;;
6407
6408 mingw* | windows* | pw32*)
6409 # Base MSYS/MinGW do not provide the 'file' command needed by
6410 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6411 # unless we find 'file', for example because we are cross-compiling.
6412 if ( file / ) >/dev/null 2>&1; then
6413 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6414 lt_cv_file_magic_cmd='func_win32_libid'
6415 else
6416 # Keep this pattern in sync with the one in func_win32_libid.
6417 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
6418 lt_cv_file_magic_cmd='$OBJDUMP -f'
6419 fi
6420 ;;
6421
6422 cegcc*)
6423 # use the weaker test based on 'objdump'. See mingw*.
6424 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6425 lt_cv_file_magic_cmd='$OBJDUMP -f'
6426 ;;
6427
6428 darwin* | rhapsody*)
6429 lt_cv_deplibs_check_method=pass_all
6430 ;;
6431
6432 freebsd* | dragonfly* | midnightbsd*)
6433 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6434 case $host_cpu in
6435 i*86 )
6436 # Not sure whether the presence of OpenBSD here was a mistake.
6437 # Let's accept both of them until this is cleared up.
6438 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6439 lt_cv_file_magic_cmd=$FILECMD
6440 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6441 ;;
6442 esac
6443 else
6444 lt_cv_deplibs_check_method=pass_all
6445 fi
6446 ;;
6447
6448 haiku*)
6449 lt_cv_deplibs_check_method=pass_all
6450 ;;
6451
6452 hpux10.20* | hpux11*)
6453 lt_cv_file_magic_cmd=$FILECMD
6454 case $host_cpu in
6455 ia64*)
6456 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6457 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6458 ;;
6459 hppa*64*)
6460 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]'
6461 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6462 ;;
6463 *)
6464 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6465 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6466 ;;
6467 esac
6468 ;;
6469
6470 interix[3-9]*)
6471 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6472 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6473 ;;
6474
6475 irix5* | irix6* | nonstopux*)
6476 case $LD in
6477 *-32|*"-32 ") libmagic=32-bit;;
6478 *-n32|*"-n32 ") libmagic=N32;;
6479 *-64|*"-64 ") libmagic=64-bit;;
6480 *) libmagic=never-match;;
6481 esac
6482 lt_cv_deplibs_check_method=pass_all
6483 ;;
6484
6485 # This must be glibc/ELF.
6486 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6487 lt_cv_deplibs_check_method=pass_all
6488 ;;
6489
6490 *-mlibc)
6491 lt_cv_deplibs_check_method=pass_all
6492 ;;
6493
6494 netbsd* | netbsdelf*-gnu)
6495 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6496 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6497 else
6498 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6499 fi
6500 ;;
6501
6502 newos6*)
6503 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6504 lt_cv_file_magic_cmd=$FILECMD
6505 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6506 ;;
6507
6508 *nto* | *qnx*)
6509 lt_cv_deplibs_check_method=pass_all
6510 ;;
6511
6512 openbsd*)
6513 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6514 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6515 else
6516 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6517 fi
6518 ;;
6519
6520 osf3* | osf4* | osf5*)
6521 lt_cv_deplibs_check_method=pass_all
6522 ;;
6523
6524 rdos*)
6525 lt_cv_deplibs_check_method=pass_all
6526 ;;
6527
6528 serenity*)
6529 lt_cv_deplibs_check_method=pass_all
6530 ;;
6531
6532 solaris*)
6533 lt_cv_deplibs_check_method=pass_all
6534 ;;
6535
6536 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6537 lt_cv_deplibs_check_method=pass_all
6538 ;;
6539
6540 sysv4 | sysv4.3*)
6541 case $host_vendor in
6542 motorola)
6543 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]'
6544 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6545 ;;
6546 ncr)
6547 lt_cv_deplibs_check_method=pass_all
6548 ;;
6549 sequent)
6550 lt_cv_file_magic_cmd='/bin/file'
6551 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6552 ;;
6553 sni)
6554 lt_cv_file_magic_cmd='/bin/file'
6555 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6556 lt_cv_file_magic_test_file=/lib/libc.so
6557 ;;
6558 siemens)
6559 lt_cv_deplibs_check_method=pass_all
6560 ;;
6561 pc)
6562 lt_cv_deplibs_check_method=pass_all
6563 ;;
6564 esac
6565 ;;
6566
6567 tpf*)
6568 lt_cv_deplibs_check_method=pass_all
6569 ;;
6570 os2*)
6571 lt_cv_deplibs_check_method=pass_all
6572 ;;
6573 esac
6574 ;;
6575 esac
6576 fi
6577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6578 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6579
6580 file_magic_glob=
6581 want_nocaseglob=no
6582 if test "$build" = "$host"; then
6583 case $host_os in
6584 mingw* | windows* | pw32*)
6585 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6586 want_nocaseglob=yes
6587 else
6588 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6589 fi
6590 ;;
6591 esac
6592 fi
6593
6594 file_magic_cmd=$lt_cv_file_magic_cmd
6595 deplibs_check_method=$lt_cv_deplibs_check_method
6596 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619 if test -n "$ac_tool_prefix"; then
6620 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6621 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6623 printf %s "checking for $ac_word... " >&6; }
6624 if test ${ac_cv_prog_DLLTOOL+y}
6625 then :
6626 printf %s "(cached) " >&6
6627 else case e in #(
6628 e) if test -n "$DLLTOOL"; then
6629 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6630 else
6631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6632 for as_dir in $PATH
6633 do
6634 IFS=$as_save_IFS
6635 case $as_dir in #(((
6636 '') as_dir=./ ;;
6637 */) ;;
6638 *) as_dir=$as_dir/ ;;
6639 esac
6640 for ac_exec_ext in '' $ac_executable_extensions; do
6641 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6642 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6643 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6644 break 2
6645 fi
6646 done
6647 done
6648 IFS=$as_save_IFS
6649
6650 fi ;;
6651 esac
6652 fi
6653 DLLTOOL=$ac_cv_prog_DLLTOOL
6654 if test -n "$DLLTOOL"; then
6655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6656 printf "%s\n" "$DLLTOOL" >&6; }
6657 else
6658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6659 printf "%s\n" "no" >&6; }
6660 fi
6661
6662
6663 fi
6664 if test -z "$ac_cv_prog_DLLTOOL"; then
6665 ac_ct_DLLTOOL=$DLLTOOL
6666 # Extract the first word of "dlltool", so it can be a program name with args.
6667 set dummy dlltool; ac_word=$2
6668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6669 printf %s "checking for $ac_word... " >&6; }
6670 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6671 then :
6672 printf %s "(cached) " >&6
6673 else case e in #(
6674 e) if test -n "$ac_ct_DLLTOOL"; then
6675 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6676 else
6677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6678 for as_dir in $PATH
6679 do
6680 IFS=$as_save_IFS
6681 case $as_dir in #(((
6682 '') as_dir=./ ;;
6683 */) ;;
6684 *) as_dir=$as_dir/ ;;
6685 esac
6686 for ac_exec_ext in '' $ac_executable_extensions; do
6687 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6688 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6689 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6690 break 2
6691 fi
6692 done
6693 done
6694 IFS=$as_save_IFS
6695
6696 fi ;;
6697 esac
6698 fi
6699 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6700 if test -n "$ac_ct_DLLTOOL"; then
6701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6702 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6703 else
6704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6705 printf "%s\n" "no" >&6; }
6706 fi
6707
6708 if test "x$ac_ct_DLLTOOL" = x; then
6709 DLLTOOL="false"
6710 else
6711 case $cross_compiling:$ac_tool_warned in
6712 yes:)
6713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6714 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6715 ac_tool_warned=yes ;;
6716 esac
6717 DLLTOOL=$ac_ct_DLLTOOL
6718 fi
6719 else
6720 DLLTOOL="$ac_cv_prog_DLLTOOL"
6721 fi
6722
6723 test -z "$DLLTOOL" && DLLTOOL=dlltool
6724
6725
6726
6727
6728
6729
6730
6731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6732 printf %s "checking how to associate runtime and link libraries... " >&6; }
6733 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6734 then :
6735 printf %s "(cached) " >&6
6736 else case e in #(
6737 e) lt_cv_sharedlib_from_linklib_cmd='unknown'
6738
6739 case $host_os in
6740 cygwin* | mingw* | windows* | pw32* | cegcc*)
6741 # two different shell functions defined in ltmain.sh;
6742 # decide which one to use based on capabilities of $DLLTOOL
6743 case `$DLLTOOL --help 2>&1` in
6744 *--identify-strict*)
6745 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6746 ;;
6747 *)
6748 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6749 ;;
6750 esac
6751 ;;
6752 *)
6753 # fallback: assume linklib IS sharedlib
6754 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6755 ;;
6756 esac
6757 ;;
6758 esac
6759 fi
6760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6761 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6762 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6763 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6764
6765
6766
6767
6768
6769
6770
6771 if test -n "$ac_tool_prefix"; then
6772 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6773 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6775 printf %s "checking for $ac_word... " >&6; }
6776 if test ${ac_cv_prog_RANLIB+y}
6777 then :
6778 printf %s "(cached) " >&6
6779 else case e in #(
6780 e) if test -n "$RANLIB"; then
6781 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6782 else
6783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6784 for as_dir in $PATH
6785 do
6786 IFS=$as_save_IFS
6787 case $as_dir in #(((
6788 '') as_dir=./ ;;
6789 */) ;;
6790 *) as_dir=$as_dir/ ;;
6791 esac
6792 for ac_exec_ext in '' $ac_executable_extensions; do
6793 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6794 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6795 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6796 break 2
6797 fi
6798 done
6799 done
6800 IFS=$as_save_IFS
6801
6802 fi ;;
6803 esac
6804 fi
6805 RANLIB=$ac_cv_prog_RANLIB
6806 if test -n "$RANLIB"; then
6807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6808 printf "%s\n" "$RANLIB" >&6; }
6809 else
6810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6811 printf "%s\n" "no" >&6; }
6812 fi
6813
6814
6815 fi
6816 if test -z "$ac_cv_prog_RANLIB"; then
6817 ac_ct_RANLIB=$RANLIB
6818 # Extract the first word of "ranlib", so it can be a program name with args.
6819 set dummy ranlib; ac_word=$2
6820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6821 printf %s "checking for $ac_word... " >&6; }
6822 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6823 then :
6824 printf %s "(cached) " >&6
6825 else case e in #(
6826 e) if test -n "$ac_ct_RANLIB"; then
6827 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6828 else
6829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6830 for as_dir in $PATH
6831 do
6832 IFS=$as_save_IFS
6833 case $as_dir in #(((
6834 '') as_dir=./ ;;
6835 */) ;;
6836 *) as_dir=$as_dir/ ;;
6837 esac
6838 for ac_exec_ext in '' $ac_executable_extensions; do
6839 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6840 ac_cv_prog_ac_ct_RANLIB="ranlib"
6841 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6842 break 2
6843 fi
6844 done
6845 done
6846 IFS=$as_save_IFS
6847
6848 fi ;;
6849 esac
6850 fi
6851 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6852 if test -n "$ac_ct_RANLIB"; then
6853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6854 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6855 else
6856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6857 printf "%s\n" "no" >&6; }
6858 fi
6859
6860 if test "x$ac_ct_RANLIB" = x; then
6861 RANLIB=":"
6862 else
6863 case $cross_compiling:$ac_tool_warned in
6864 yes:)
6865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6866 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6867 ac_tool_warned=yes ;;
6868 esac
6869 RANLIB=$ac_ct_RANLIB
6870 fi
6871 else
6872 RANLIB="$ac_cv_prog_RANLIB"
6873 fi
6874
6875 if test -n "$ac_tool_prefix"; then
6876 for ac_prog in ar
6877 do
6878 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6879 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6881 printf %s "checking for $ac_word... " >&6; }
6882 if test ${ac_cv_prog_AR+y}
6883 then :
6884 printf %s "(cached) " >&6
6885 else case e in #(
6886 e) if test -n "$AR"; then
6887 ac_cv_prog_AR="$AR" # Let the user override the test.
6888 else
6889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6890 for as_dir in $PATH
6891 do
6892 IFS=$as_save_IFS
6893 case $as_dir in #(((
6894 '') as_dir=./ ;;
6895 */) ;;
6896 *) as_dir=$as_dir/ ;;
6897 esac
6898 for ac_exec_ext in '' $ac_executable_extensions; do
6899 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6900 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6901 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6902 break 2
6903 fi
6904 done
6905 done
6906 IFS=$as_save_IFS
6907
6908 fi ;;
6909 esac
6910 fi
6911 AR=$ac_cv_prog_AR
6912 if test -n "$AR"; then
6913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6914 printf "%s\n" "$AR" >&6; }
6915 else
6916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6917 printf "%s\n" "no" >&6; }
6918 fi
6919
6920
6921 test -n "$AR" && break
6922 done
6923 fi
6924 if test -z "$AR"; then
6925 ac_ct_AR=$AR
6926 for ac_prog in ar
6927 do
6928 # Extract the first word of "$ac_prog", so it can be a program name with args.
6929 set dummy $ac_prog; ac_word=$2
6930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6931 printf %s "checking for $ac_word... " >&6; }
6932 if test ${ac_cv_prog_ac_ct_AR+y}
6933 then :
6934 printf %s "(cached) " >&6
6935 else case e in #(
6936 e) if test -n "$ac_ct_AR"; then
6937 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6938 else
6939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6940 for as_dir in $PATH
6941 do
6942 IFS=$as_save_IFS
6943 case $as_dir in #(((
6944 '') as_dir=./ ;;
6945 */) ;;
6946 *) as_dir=$as_dir/ ;;
6947 esac
6948 for ac_exec_ext in '' $ac_executable_extensions; do
6949 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6950 ac_cv_prog_ac_ct_AR="$ac_prog"
6951 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6952 break 2
6953 fi
6954 done
6955 done
6956 IFS=$as_save_IFS
6957
6958 fi ;;
6959 esac
6960 fi
6961 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6962 if test -n "$ac_ct_AR"; then
6963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6964 printf "%s\n" "$ac_ct_AR" >&6; }
6965 else
6966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6967 printf "%s\n" "no" >&6; }
6968 fi
6969
6970
6971 test -n "$ac_ct_AR" && break
6972 done
6973
6974 if test "x$ac_ct_AR" = x; then
6975 AR="false"
6976 else
6977 case $cross_compiling:$ac_tool_warned in
6978 yes:)
6979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6980 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6981 ac_tool_warned=yes ;;
6982 esac
6983 AR=$ac_ct_AR
6984 fi
6985 fi
6986
6987 : ${AR=ar}
6988
6989
6990
6991
6992
6993
6994 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
6995 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6996 # higher priority because that's what people were doing historically (setting
6997 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
6998 # variable obsoleted/removed.
6999
7000 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
7001 lt_ar_flags=$AR_FLAGS
7002
7003
7004
7005
7006
7007
7008 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
7009 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
7010
7011
7012
7013
7014
7015
7016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7017 printf %s "checking for archiver @FILE support... " >&6; }
7018 if test ${lt_cv_ar_at_file+y}
7019 then :
7020 printf %s "(cached) " >&6
7021 else case e in #(
7022 e) lt_cv_ar_at_file=no
7023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7024 /* end confdefs.h. */
7025
7026 int
7027 main (void)
7028 {
7029
7030 ;
7031 return 0;
7032 }
7033 _ACEOF
7034 if ac_fn_c_try_compile "$LINENO"
7035 then :
7036 echo conftest.$ac_objext > conftest.lst
7037 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7038 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7039 (eval $lt_ar_try) 2>&5
7040 ac_status=$?
7041 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7042 test $ac_status = 0; }
7043 if test 0 -eq "$ac_status"; then
7044 # Ensure the archiver fails upon bogus file names.
7045 rm -f conftest.$ac_objext libconftest.a
7046 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7047 (eval $lt_ar_try) 2>&5
7048 ac_status=$?
7049 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7050 test $ac_status = 0; }
7051 if test 0 -ne "$ac_status"; then
7052 lt_cv_ar_at_file=@
7053 fi
7054 fi
7055 rm -f conftest.* libconftest.a
7056
7057 fi
7058 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7059 ;;
7060 esac
7061 fi
7062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7063 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
7064
7065 if test no = "$lt_cv_ar_at_file"; then
7066 archiver_list_spec=
7067 else
7068 archiver_list_spec=$lt_cv_ar_at_file
7069 fi
7070
7071
7072
7073
7074
7075
7076
7077 if test -n "$ac_tool_prefix"; then
7078 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7079 set dummy ${ac_tool_prefix}strip; ac_word=$2
7080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7081 printf %s "checking for $ac_word... " >&6; }
7082 if test ${ac_cv_prog_STRIP+y}
7083 then :
7084 printf %s "(cached) " >&6
7085 else case e in #(
7086 e) if test -n "$STRIP"; then
7087 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7088 else
7089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7090 for as_dir in $PATH
7091 do
7092 IFS=$as_save_IFS
7093 case $as_dir in #(((
7094 '') as_dir=./ ;;
7095 */) ;;
7096 *) as_dir=$as_dir/ ;;
7097 esac
7098 for ac_exec_ext in '' $ac_executable_extensions; do
7099 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7100 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7101 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7102 break 2
7103 fi
7104 done
7105 done
7106 IFS=$as_save_IFS
7107
7108 fi ;;
7109 esac
7110 fi
7111 STRIP=$ac_cv_prog_STRIP
7112 if test -n "$STRIP"; then
7113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7114 printf "%s\n" "$STRIP" >&6; }
7115 else
7116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7117 printf "%s\n" "no" >&6; }
7118 fi
7119
7120
7121 fi
7122 if test -z "$ac_cv_prog_STRIP"; then
7123 ac_ct_STRIP=$STRIP
7124 # Extract the first word of "strip", so it can be a program name with args.
7125 set dummy strip; ac_word=$2
7126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7127 printf %s "checking for $ac_word... " >&6; }
7128 if test ${ac_cv_prog_ac_ct_STRIP+y}
7129 then :
7130 printf %s "(cached) " >&6
7131 else case e in #(
7132 e) if test -n "$ac_ct_STRIP"; then
7133 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7134 else
7135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7136 for as_dir in $PATH
7137 do
7138 IFS=$as_save_IFS
7139 case $as_dir in #(((
7140 '') as_dir=./ ;;
7141 */) ;;
7142 *) as_dir=$as_dir/ ;;
7143 esac
7144 for ac_exec_ext in '' $ac_executable_extensions; do
7145 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7146 ac_cv_prog_ac_ct_STRIP="strip"
7147 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7148 break 2
7149 fi
7150 done
7151 done
7152 IFS=$as_save_IFS
7153
7154 fi ;;
7155 esac
7156 fi
7157 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7158 if test -n "$ac_ct_STRIP"; then
7159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7160 printf "%s\n" "$ac_ct_STRIP" >&6; }
7161 else
7162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7163 printf "%s\n" "no" >&6; }
7164 fi
7165
7166 if test "x$ac_ct_STRIP" = x; then
7167 STRIP=":"
7168 else
7169 case $cross_compiling:$ac_tool_warned in
7170 yes:)
7171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7172 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7173 ac_tool_warned=yes ;;
7174 esac
7175 STRIP=$ac_ct_STRIP
7176 fi
7177 else
7178 STRIP="$ac_cv_prog_STRIP"
7179 fi
7180
7181 test -z "$STRIP" && STRIP=:
7182
7183
7184
7185
7186
7187
7188
7189 test -z "$RANLIB" && RANLIB=:
7190
7191
7192
7193
7194
7195
7196 # Determine commands to create old-style static archives.
7197 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7198 old_postinstall_cmds='chmod 644 $oldlib'
7199 old_postuninstall_cmds=
7200
7201 if test -n "$RANLIB"; then
7202 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7203 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7204 fi
7205
7206 case $host_os in
7207 darwin*)
7208 lock_old_archive_extraction=yes ;;
7209 *)
7210 lock_old_archive_extraction=no ;;
7211 esac
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251 # If no C compiler was specified, use CC.
7252 LTCC=${LTCC-"$CC"}
7253
7254 # If no C compiler flags were specified, use CFLAGS.
7255 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7256
7257 # Allow CC to be a program name with arguments.
7258 compiler=$CC
7259
7260
7261 # Check for command to grab the raw symbol name followed by C symbol from nm.
7262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7263 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7264 if test ${lt_cv_sys_global_symbol_pipe+y}
7265 then :
7266 printf %s "(cached) " >&6
7267 else case e in #(
7268 e)
7269 # These are sane defaults that work on at least a few old systems.
7270 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7271
7272 # Character class describing NM global symbol codes.
7273 symcode='[BCDEGRST]'
7274
7275 # Regexp to match symbols that can be accessed directly from C.
7276 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7277
7278 # Define system-specific variables.
7279 case $host_os in
7280 aix*)
7281 symcode='[BCDT]'
7282 ;;
7283 cygwin* | mingw* | windows* | pw32* | cegcc*)
7284 symcode='[ABCDGISTW]'
7285 ;;
7286 hpux*)
7287 if test ia64 = "$host_cpu"; then
7288 symcode='[ABCDEGRST]'
7289 fi
7290 ;;
7291 irix* | nonstopux*)
7292 symcode='[BCDEGRST]'
7293 ;;
7294 osf*)
7295 symcode='[BCDEGQRST]'
7296 ;;
7297 solaris*)
7298 symcode='[BCDRT]'
7299 ;;
7300 sco3.2v5*)
7301 symcode='[DT]'
7302 ;;
7303 sysv4.2uw2*)
7304 symcode='[DT]'
7305 ;;
7306 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7307 symcode='[ABDT]'
7308 ;;
7309 sysv4)
7310 symcode='[DFNSTU]'
7311 ;;
7312 esac
7313
7314 # If we're using GNU nm, then use its standard symbol codes.
7315 case `$NM -V 2>&1` in
7316 *GNU* | *'with BFD'*)
7317 symcode='[ABCDGIRSTW]' ;;
7318 esac
7319
7320 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7321 # Gets list of data symbols to import.
7322 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7323 # Adjust the below global symbol transforms to fixup imported variables.
7324 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7325 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7326 lt_c_name_lib_hook="\
7327 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7328 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7329 else
7330 # Disable hooks by default.
7331 lt_cv_sys_global_symbol_to_import=
7332 lt_cdecl_hook=
7333 lt_c_name_hook=
7334 lt_c_name_lib_hook=
7335 fi
7336
7337 # Transform an extracted symbol line into a proper C declaration.
7338 # Some systems (esp. on ia64) link data and code symbols differently,
7339 # so use this general approach.
7340 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7341 $lt_cdecl_hook\
7342 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7343 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7344
7345 # Transform an extracted symbol line into symbol name and symbol address
7346 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7347 $lt_c_name_hook\
7348 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7349 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7350
7351 # Transform an extracted symbol line into symbol name with lib prefix and
7352 # symbol address.
7353 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7354 $lt_c_name_lib_hook\
7355 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7356 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7357 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7358
7359 # Handle CRLF in mingw tool chain
7360 opt_cr=
7361 case $build_os in
7362 mingw* | windows*)
7363 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7364 ;;
7365 esac
7366
7367 # Try without a prefix underscore, then with it.
7368 for ac_symprfx in "" "_"; do
7369
7370 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7371 symxfrm="\\1 $ac_symprfx\\2 \\2"
7372
7373 # Write the raw and C identifiers.
7374 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7375 # Fake it for dumpbin and say T for any non-static function,
7376 # D for any global variable and I for any imported variable.
7377 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7378 # which start with @ or ?.
7379 lt_cv_sys_global_symbol_pipe="$AWK '"\
7380 " {last_section=section; section=\$ 3};"\
7381 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7382 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7383 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7384 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7385 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7386 " \$ 0!~/External *\|/{next};"\
7387 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7388 " {if(hide[section]) next};"\
7389 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7390 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7391 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7392 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7393 " ' prfx=^$ac_symprfx"
7394 else
7395 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7396 fi
7397 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7398
7399 # Check to see that the pipe works correctly.
7400 pipe_works=no
7401
7402 rm -f conftest*
7403 cat > conftest.$ac_ext <<_LT_EOF
7404 #ifdef __cplusplus
7405 extern "C" {
7406 #endif
7407 char nm_test_var;
7408 void nm_test_func(void);
7409 void nm_test_func(void){}
7410 #ifdef __cplusplus
7411 }
7412 #endif
7413 int main(void){nm_test_var='a';nm_test_func();return(0);}
7414 _LT_EOF
7415
7416 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7417 (eval $ac_compile) 2>&5
7418 ac_status=$?
7419 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7420 test $ac_status = 0; }; then
7421 # Now try to grab the symbols.
7422 nlist=conftest.nm
7423 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7424 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7425 # Try sorting and uniquifying the output.
7426 if sort "$nlist" | uniq > "$nlist"T; then
7427 mv -f "$nlist"T "$nlist"
7428 else
7429 rm -f "$nlist"T
7430 fi
7431
7432 # Make sure that we snagged all the symbols we need.
7433 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7434 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7435 cat <<_LT_EOF > conftest.$ac_ext
7436 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7437 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7438 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7439 relocations are performed -- see ld's documentation on pseudo-relocs. */
7440 # define LT_DLSYM_CONST
7441 #elif defined __osf__
7442 /* This system does not cope well with relocations in const data. */
7443 # define LT_DLSYM_CONST
7444 #else
7445 # define LT_DLSYM_CONST const
7446 #endif
7447
7448 #ifdef __cplusplus
7449 extern "C" {
7450 #endif
7451
7452 _LT_EOF
7453 # Now generate the symbol file.
7454 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7455
7456 cat <<_LT_EOF >> conftest.$ac_ext
7457
7458 /* The mapping between symbol names and symbols. */
7459 LT_DLSYM_CONST struct {
7460 const char *name;
7461 void *address;
7462 }
7463 lt__PROGRAM__LTX_preloaded_symbols[] =
7464 {
7465 { "@PROGRAM@", (void *) 0 },
7466 _LT_EOF
7467 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7468 cat <<\_LT_EOF >> conftest.$ac_ext
7469 {0, (void *) 0}
7470 };
7471
7472 /* This works around a problem in FreeBSD linker */
7473 #ifdef FREEBSD_WORKAROUND
7474 static const void *lt_preloaded_setup() {
7475 return lt__PROGRAM__LTX_preloaded_symbols;
7476 }
7477 #endif
7478
7479 #ifdef __cplusplus
7480 }
7481 #endif
7482 _LT_EOF
7483 # Now try linking the two files.
7484 mv conftest.$ac_objext conftstm.$ac_objext
7485 lt_globsym_save_LIBS=$LIBS
7486 lt_globsym_save_CFLAGS=$CFLAGS
7487 LIBS=conftstm.$ac_objext
7488 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7489 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7490 (eval $ac_link) 2>&5
7491 ac_status=$?
7492 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7493 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7494 pipe_works=yes
7495 fi
7496 LIBS=$lt_globsym_save_LIBS
7497 CFLAGS=$lt_globsym_save_CFLAGS
7498 else
7499 echo "cannot find nm_test_func in $nlist" >&5
7500 fi
7501 else
7502 echo "cannot find nm_test_var in $nlist" >&5
7503 fi
7504 else
7505 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7506 fi
7507 else
7508 echo "$progname: failed program was:" >&5
7509 cat conftest.$ac_ext >&5
7510 fi
7511 rm -rf conftest* conftst*
7512
7513 # Do not use the global_symbol_pipe unless it works.
7514 if test yes = "$pipe_works"; then
7515 break
7516 else
7517 lt_cv_sys_global_symbol_pipe=
7518 fi
7519 done
7520 ;;
7521 esac
7522 fi
7523
7524 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7525 lt_cv_sys_global_symbol_to_cdecl=
7526 fi
7527 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7529 printf "%s\n" "failed" >&6; }
7530 else
7531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7532 printf "%s\n" "ok" >&6; }
7533 fi
7534
7535 # Response file support.
7536 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7537 nm_file_list_spec='@'
7538 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7539 nm_file_list_spec='@'
7540 fi
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7579 printf %s "checking for sysroot... " >&6; }
7580
7581 # Check whether --with-sysroot was given.
7582 if test ${with_sysroot+y}
7583 then :
7584 withval=$with_sysroot;
7585 else case e in #(
7586 e) with_sysroot=no ;;
7587 esac
7588 fi
7589
7590
7591 lt_sysroot=
7592 case $with_sysroot in #(
7593 yes)
7594 if test yes = "$GCC"; then
7595 # Trim trailing / since we'll always append absolute paths and we want
7596 # to avoid //, if only for less confusing output for the user.
7597 lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`
7598 fi
7599 ;; #(
7600 /*)
7601 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7602 ;; #(
7603 no|'')
7604 ;; #(
7605 *)
7606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7607 printf "%s\n" "$with_sysroot" >&6; }
7608 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7609 ;;
7610 esac
7611
7612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7613 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7614
7615
7616
7617
7618
7619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7620 printf %s "checking for a working dd... " >&6; }
7621 if test ${ac_cv_path_lt_DD+y}
7622 then :
7623 printf %s "(cached) " >&6
7624 else case e in #(
7625 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7626 cat conftest.i conftest.i >conftest2.i
7627 : ${lt_DD:=$DD}
7628 if test -z "$lt_DD"; then
7629 ac_path_lt_DD_found=false
7630 # Loop through the user's path and test for each of PROGNAME-LIST
7631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7632 for as_dir in $PATH
7633 do
7634 IFS=$as_save_IFS
7635 case $as_dir in #(((
7636 '') as_dir=./ ;;
7637 */) ;;
7638 *) as_dir=$as_dir/ ;;
7639 esac
7640 for ac_prog in dd
7641 do
7642 for ac_exec_ext in '' $ac_executable_extensions; do
7643 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7644 as_fn_executable_p "$ac_path_lt_DD" || continue
7645 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7646 cmp -s conftest.i conftest.out \
7647 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7648 fi
7649 $ac_path_lt_DD_found && break 3
7650 done
7651 done
7652 done
7653 IFS=$as_save_IFS
7654 if test -z "$ac_cv_path_lt_DD"; then
7655 :
7656 fi
7657 else
7658 ac_cv_path_lt_DD=$lt_DD
7659 fi
7660
7661 rm -f conftest.i conftest2.i conftest.out ;;
7662 esac
7663 fi
7664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7665 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7666
7667
7668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7669 printf %s "checking how to truncate binary pipes... " >&6; }
7670 if test ${lt_cv_truncate_bin+y}
7671 then :
7672 printf %s "(cached) " >&6
7673 else case e in #(
7674 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7675 cat conftest.i conftest.i >conftest2.i
7676 lt_cv_truncate_bin=
7677 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7678 cmp -s conftest.i conftest.out \
7679 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7680 fi
7681 rm -f conftest.i conftest2.i conftest.out
7682 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
7683 esac
7684 fi
7685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7686 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7687
7688
7689
7690
7691
7692
7693
7694 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7695 func_cc_basename ()
7696 {
7697 for cc_temp in $*""; do
7698 case $cc_temp in
7699 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7700 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7701 \-*) ;;
7702 *) break;;
7703 esac
7704 done
7705 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7706 }
7707
7708 # Check whether --enable-libtool-lock was given.
7709 if test ${enable_libtool_lock+y}
7710 then :
7711 enableval=$enable_libtool_lock;
7712 fi
7713
7714 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7715
7716 # Some flags need to be propagated to the compiler or linker for good
7717 # libtool support.
7718 case $host in
7719 ia64-*-hpux*)
7720 # Find out what ABI is being produced by ac_compile, and set mode
7721 # options accordingly.
7722 echo 'int i;' > conftest.$ac_ext
7723 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7724 (eval $ac_compile) 2>&5
7725 ac_status=$?
7726 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7727 test $ac_status = 0; }; then
7728 case `$FILECMD conftest.$ac_objext` in
7729 *ELF-32*)
7730 HPUX_IA64_MODE=32
7731 ;;
7732 *ELF-64*)
7733 HPUX_IA64_MODE=64
7734 ;;
7735 esac
7736 fi
7737 rm -rf conftest*
7738 ;;
7739 *-*-irix6*)
7740 # Find out what ABI is being produced by ac_compile, and set linker
7741 # options accordingly.
7742 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7743 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7744 (eval $ac_compile) 2>&5
7745 ac_status=$?
7746 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7747 test $ac_status = 0; }; then
7748 if test yes = "$lt_cv_prog_gnu_ld"; then
7749 case `$FILECMD conftest.$ac_objext` in
7750 *32-bit*)
7751 LD="${LD-ld} -melf32bsmip"
7752 ;;
7753 *N32*)
7754 LD="${LD-ld} -melf32bmipn32"
7755 ;;
7756 *64-bit*)
7757 LD="${LD-ld} -melf64bmip"
7758 ;;
7759 esac
7760 else
7761 case `$FILECMD conftest.$ac_objext` in
7762 *32-bit*)
7763 LD="${LD-ld} -32"
7764 ;;
7765 *N32*)
7766 LD="${LD-ld} -n32"
7767 ;;
7768 *64-bit*)
7769 LD="${LD-ld} -64"
7770 ;;
7771 esac
7772 fi
7773 fi
7774 rm -rf conftest*
7775 ;;
7776
7777 mips64*-*linux*)
7778 # Find out what ABI is being produced by ac_compile, and set linker
7779 # options accordingly.
7780 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7781 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7782 (eval $ac_compile) 2>&5
7783 ac_status=$?
7784 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7785 test $ac_status = 0; }; then
7786 emul=elf
7787 case `$FILECMD conftest.$ac_objext` in
7788 *32-bit*)
7789 emul="${emul}32"
7790 ;;
7791 *64-bit*)
7792 emul="${emul}64"
7793 ;;
7794 esac
7795 case `$FILECMD conftest.$ac_objext` in
7796 *MSB*)
7797 emul="${emul}btsmip"
7798 ;;
7799 *LSB*)
7800 emul="${emul}ltsmip"
7801 ;;
7802 esac
7803 case `$FILECMD conftest.$ac_objext` in
7804 *N32*)
7805 emul="${emul}n32"
7806 ;;
7807 esac
7808 LD="${LD-ld} -m $emul"
7809 fi
7810 rm -rf conftest*
7811 ;;
7812
7813 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7814 s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
7815 # Find out what ABI is being produced by ac_compile, and set linker
7816 # options accordingly. Note that the listed cases only cover the
7817 # situations where additional linker options are needed (such as when
7818 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7819 # vice versa); the common cases where no linker options are needed do
7820 # not appear in the list.
7821 echo 'int i;' > conftest.$ac_ext
7822 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7823 (eval $ac_compile) 2>&5
7824 ac_status=$?
7825 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7826 test $ac_status = 0; }; then
7827 case `$FILECMD conftest.o` in
7828 *32-bit*)
7829 case $host in
7830 x86_64-*kfreebsd*-gnu)
7831 LD="${LD-ld} -m elf_i386_fbsd"
7832 ;;
7833 x86_64-*linux*|x86_64-gnu*)
7834 case `$FILECMD conftest.o` in
7835 *x86-64*)
7836 LD="${LD-ld} -m elf32_x86_64"
7837 ;;
7838 *)
7839 LD="${LD-ld} -m elf_i386"
7840 ;;
7841 esac
7842 ;;
7843 powerpc64le-*linux*)
7844 LD="${LD-ld} -m elf32lppclinux"
7845 ;;
7846 powerpc64-*linux*)
7847 LD="${LD-ld} -m elf32ppclinux"
7848 ;;
7849 s390x-*linux*)
7850 LD="${LD-ld} -m elf_s390"
7851 ;;
7852 sparc64-*linux*)
7853 LD="${LD-ld} -m elf32_sparc"
7854 ;;
7855 esac
7856 ;;
7857 *64-bit*)
7858 case $host in
7859 x86_64-*kfreebsd*-gnu)
7860 LD="${LD-ld} -m elf_x86_64_fbsd"
7861 ;;
7862 x86_64-*linux*|x86_64-gnu*)
7863 LD="${LD-ld} -m elf_x86_64"
7864 ;;
7865 powerpcle-*linux*)
7866 LD="${LD-ld} -m elf64lppc"
7867 ;;
7868 powerpc-*linux*)
7869 LD="${LD-ld} -m elf64ppc"
7870 ;;
7871 s390*-*linux*|s390*-*tpf*)
7872 LD="${LD-ld} -m elf64_s390"
7873 ;;
7874 sparc*-*linux*)
7875 LD="${LD-ld} -m elf64_sparc"
7876 ;;
7877 esac
7878 ;;
7879 esac
7880 fi
7881 rm -rf conftest*
7882 ;;
7883
7884 *-*-sco3.2v5*)
7885 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7886 SAVE_CFLAGS=$CFLAGS
7887 CFLAGS="$CFLAGS -belf"
7888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7889 printf %s "checking whether the C compiler needs -belf... " >&6; }
7890 if test ${lt_cv_cc_needs_belf+y}
7891 then :
7892 printf %s "(cached) " >&6
7893 else case e in #(
7894 e) ac_ext=c
7895 ac_cpp='$CPP $CPPFLAGS'
7896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7899
7900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7901 /* end confdefs.h. */
7902
7903 int
7904 main (void)
7905 {
7906
7907 ;
7908 return 0;
7909 }
7910 _ACEOF
7911 if ac_fn_c_try_link "$LINENO"
7912 then :
7913 lt_cv_cc_needs_belf=yes
7914 else case e in #(
7915 e) lt_cv_cc_needs_belf=no ;;
7916 esac
7917 fi
7918 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7919 conftest$ac_exeext conftest.$ac_ext
7920 ac_ext=c
7921 ac_cpp='$CPP $CPPFLAGS'
7922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7925 ;;
7926 esac
7927 fi
7928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7929 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7930 if test yes != "$lt_cv_cc_needs_belf"; then
7931 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7932 CFLAGS=$SAVE_CFLAGS
7933 fi
7934 ;;
7935 *-*solaris*)
7936 # Find out what ABI is being produced by ac_compile, and set linker
7937 # options accordingly.
7938 echo 'int i;' > conftest.$ac_ext
7939 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7940 (eval $ac_compile) 2>&5
7941 ac_status=$?
7942 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7943 test $ac_status = 0; }; then
7944 case `$FILECMD conftest.o` in
7945 *64-bit*)
7946 case $lt_cv_prog_gnu_ld in
7947 yes*)
7948 case $host in
7949 i?86-*-solaris*|x86_64-*-solaris*)
7950 LD="${LD-ld} -m elf_x86_64"
7951 ;;
7952 sparc*-*-solaris*)
7953 LD="${LD-ld} -m elf64_sparc"
7954 ;;
7955 esac
7956 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7957 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7958 LD=${LD-ld}_sol2
7959 fi
7960 ;;
7961 *)
7962 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7963 LD="${LD-ld} -64"
7964 fi
7965 ;;
7966 esac
7967 ;;
7968 esac
7969 fi
7970 rm -rf conftest*
7971 ;;
7972 esac
7973
7974 need_locks=$enable_libtool_lock
7975
7976 if test -n "$ac_tool_prefix"; then
7977 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7978 set dummy ${ac_tool_prefix}mt; ac_word=$2
7979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7980 printf %s "checking for $ac_word... " >&6; }
7981 if test ${ac_cv_prog_MANIFEST_TOOL+y}
7982 then :
7983 printf %s "(cached) " >&6
7984 else case e in #(
7985 e) if test -n "$MANIFEST_TOOL"; then
7986 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7987 else
7988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7989 for as_dir in $PATH
7990 do
7991 IFS=$as_save_IFS
7992 case $as_dir in #(((
7993 '') as_dir=./ ;;
7994 */) ;;
7995 *) as_dir=$as_dir/ ;;
7996 esac
7997 for ac_exec_ext in '' $ac_executable_extensions; do
7998 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7999 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8000 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8001 break 2
8002 fi
8003 done
8004 done
8005 IFS=$as_save_IFS
8006
8007 fi ;;
8008 esac
8009 fi
8010 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8011 if test -n "$MANIFEST_TOOL"; then
8012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8013 printf "%s\n" "$MANIFEST_TOOL" >&6; }
8014 else
8015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8016 printf "%s\n" "no" >&6; }
8017 fi
8018
8019
8020 fi
8021 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8022 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8023 # Extract the first word of "mt", so it can be a program name with args.
8024 set dummy mt; ac_word=$2
8025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8026 printf %s "checking for $ac_word... " >&6; }
8027 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8028 then :
8029 printf %s "(cached) " >&6
8030 else case e in #(
8031 e) if test -n "$ac_ct_MANIFEST_TOOL"; then
8032 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8033 else
8034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8035 for as_dir in $PATH
8036 do
8037 IFS=$as_save_IFS
8038 case $as_dir in #(((
8039 '') as_dir=./ ;;
8040 */) ;;
8041 *) as_dir=$as_dir/ ;;
8042 esac
8043 for ac_exec_ext in '' $ac_executable_extensions; do
8044 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8045 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8046 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8047 break 2
8048 fi
8049 done
8050 done
8051 IFS=$as_save_IFS
8052
8053 fi ;;
8054 esac
8055 fi
8056 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8057 if test -n "$ac_ct_MANIFEST_TOOL"; then
8058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8059 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
8060 else
8061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8062 printf "%s\n" "no" >&6; }
8063 fi
8064
8065 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8066 MANIFEST_TOOL=":"
8067 else
8068 case $cross_compiling:$ac_tool_warned in
8069 yes:)
8070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8071 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8072 ac_tool_warned=yes ;;
8073 esac
8074 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8075 fi
8076 else
8077 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8078 fi
8079
8080 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8082 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8083 if test ${lt_cv_path_manifest_tool+y}
8084 then :
8085 printf %s "(cached) " >&6
8086 else case e in #(
8087 e) lt_cv_path_manifest_tool=no
8088 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8089 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8090 cat conftest.err >&5
8091 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8092 lt_cv_path_manifest_tool=yes
8093 fi
8094 rm -f conftest* ;;
8095 esac
8096 fi
8097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5
8098 printf "%s\n" "$lt_cv_path_manifest_tool" >&6; }
8099 if test yes != "$lt_cv_path_manifest_tool"; then
8100 MANIFEST_TOOL=:
8101 fi
8102
8103
8104
8105
8106
8107
8108 case $host_os in
8109 rhapsody* | darwin*)
8110 if test -n "$ac_tool_prefix"; then
8111 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8112 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8114 printf %s "checking for $ac_word... " >&6; }
8115 if test ${ac_cv_prog_DSYMUTIL+y}
8116 then :
8117 printf %s "(cached) " >&6
8118 else case e in #(
8119 e) if test -n "$DSYMUTIL"; then
8120 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8121 else
8122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8123 for as_dir in $PATH
8124 do
8125 IFS=$as_save_IFS
8126 case $as_dir in #(((
8127 '') as_dir=./ ;;
8128 */) ;;
8129 *) as_dir=$as_dir/ ;;
8130 esac
8131 for ac_exec_ext in '' $ac_executable_extensions; do
8132 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8133 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8134 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8135 break 2
8136 fi
8137 done
8138 done
8139 IFS=$as_save_IFS
8140
8141 fi ;;
8142 esac
8143 fi
8144 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8145 if test -n "$DSYMUTIL"; then
8146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8147 printf "%s\n" "$DSYMUTIL" >&6; }
8148 else
8149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8150 printf "%s\n" "no" >&6; }
8151 fi
8152
8153
8154 fi
8155 if test -z "$ac_cv_prog_DSYMUTIL"; then
8156 ac_ct_DSYMUTIL=$DSYMUTIL
8157 # Extract the first word of "dsymutil", so it can be a program name with args.
8158 set dummy dsymutil; ac_word=$2
8159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8160 printf %s "checking for $ac_word... " >&6; }
8161 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8162 then :
8163 printf %s "(cached) " >&6
8164 else case e in #(
8165 e) if test -n "$ac_ct_DSYMUTIL"; then
8166 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8167 else
8168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8169 for as_dir in $PATH
8170 do
8171 IFS=$as_save_IFS
8172 case $as_dir in #(((
8173 '') as_dir=./ ;;
8174 */) ;;
8175 *) as_dir=$as_dir/ ;;
8176 esac
8177 for ac_exec_ext in '' $ac_executable_extensions; do
8178 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8179 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8180 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8181 break 2
8182 fi
8183 done
8184 done
8185 IFS=$as_save_IFS
8186
8187 fi ;;
8188 esac
8189 fi
8190 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8191 if test -n "$ac_ct_DSYMUTIL"; then
8192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8193 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8194 else
8195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8196 printf "%s\n" "no" >&6; }
8197 fi
8198
8199 if test "x$ac_ct_DSYMUTIL" = x; then
8200 DSYMUTIL=":"
8201 else
8202 case $cross_compiling:$ac_tool_warned in
8203 yes:)
8204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8205 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8206 ac_tool_warned=yes ;;
8207 esac
8208 DSYMUTIL=$ac_ct_DSYMUTIL
8209 fi
8210 else
8211 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8212 fi
8213
8214 if test -n "$ac_tool_prefix"; then
8215 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8216 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8218 printf %s "checking for $ac_word... " >&6; }
8219 if test ${ac_cv_prog_NMEDIT+y}
8220 then :
8221 printf %s "(cached) " >&6
8222 else case e in #(
8223 e) if test -n "$NMEDIT"; then
8224 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8225 else
8226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8227 for as_dir in $PATH
8228 do
8229 IFS=$as_save_IFS
8230 case $as_dir in #(((
8231 '') as_dir=./ ;;
8232 */) ;;
8233 *) as_dir=$as_dir/ ;;
8234 esac
8235 for ac_exec_ext in '' $ac_executable_extensions; do
8236 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8237 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8238 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8239 break 2
8240 fi
8241 done
8242 done
8243 IFS=$as_save_IFS
8244
8245 fi ;;
8246 esac
8247 fi
8248 NMEDIT=$ac_cv_prog_NMEDIT
8249 if test -n "$NMEDIT"; then
8250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8251 printf "%s\n" "$NMEDIT" >&6; }
8252 else
8253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8254 printf "%s\n" "no" >&6; }
8255 fi
8256
8257
8258 fi
8259 if test -z "$ac_cv_prog_NMEDIT"; then
8260 ac_ct_NMEDIT=$NMEDIT
8261 # Extract the first word of "nmedit", so it can be a program name with args.
8262 set dummy nmedit; ac_word=$2
8263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8264 printf %s "checking for $ac_word... " >&6; }
8265 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8266 then :
8267 printf %s "(cached) " >&6
8268 else case e in #(
8269 e) if test -n "$ac_ct_NMEDIT"; then
8270 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8271 else
8272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8273 for as_dir in $PATH
8274 do
8275 IFS=$as_save_IFS
8276 case $as_dir in #(((
8277 '') as_dir=./ ;;
8278 */) ;;
8279 *) as_dir=$as_dir/ ;;
8280 esac
8281 for ac_exec_ext in '' $ac_executable_extensions; do
8282 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8283 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8284 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8285 break 2
8286 fi
8287 done
8288 done
8289 IFS=$as_save_IFS
8290
8291 fi ;;
8292 esac
8293 fi
8294 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8295 if test -n "$ac_ct_NMEDIT"; then
8296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8297 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8298 else
8299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8300 printf "%s\n" "no" >&6; }
8301 fi
8302
8303 if test "x$ac_ct_NMEDIT" = x; then
8304 NMEDIT=":"
8305 else
8306 case $cross_compiling:$ac_tool_warned in
8307 yes:)
8308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8309 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8310 ac_tool_warned=yes ;;
8311 esac
8312 NMEDIT=$ac_ct_NMEDIT
8313 fi
8314 else
8315 NMEDIT="$ac_cv_prog_NMEDIT"
8316 fi
8317
8318 if test -n "$ac_tool_prefix"; then
8319 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8320 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8322 printf %s "checking for $ac_word... " >&6; }
8323 if test ${ac_cv_prog_LIPO+y}
8324 then :
8325 printf %s "(cached) " >&6
8326 else case e in #(
8327 e) if test -n "$LIPO"; then
8328 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8329 else
8330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8331 for as_dir in $PATH
8332 do
8333 IFS=$as_save_IFS
8334 case $as_dir in #(((
8335 '') as_dir=./ ;;
8336 */) ;;
8337 *) as_dir=$as_dir/ ;;
8338 esac
8339 for ac_exec_ext in '' $ac_executable_extensions; do
8340 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8341 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8342 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8343 break 2
8344 fi
8345 done
8346 done
8347 IFS=$as_save_IFS
8348
8349 fi ;;
8350 esac
8351 fi
8352 LIPO=$ac_cv_prog_LIPO
8353 if test -n "$LIPO"; then
8354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8355 printf "%s\n" "$LIPO" >&6; }
8356 else
8357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8358 printf "%s\n" "no" >&6; }
8359 fi
8360
8361
8362 fi
8363 if test -z "$ac_cv_prog_LIPO"; then
8364 ac_ct_LIPO=$LIPO
8365 # Extract the first word of "lipo", so it can be a program name with args.
8366 set dummy lipo; ac_word=$2
8367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8368 printf %s "checking for $ac_word... " >&6; }
8369 if test ${ac_cv_prog_ac_ct_LIPO+y}
8370 then :
8371 printf %s "(cached) " >&6
8372 else case e in #(
8373 e) if test -n "$ac_ct_LIPO"; then
8374 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8375 else
8376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8377 for as_dir in $PATH
8378 do
8379 IFS=$as_save_IFS
8380 case $as_dir in #(((
8381 '') as_dir=./ ;;
8382 */) ;;
8383 *) as_dir=$as_dir/ ;;
8384 esac
8385 for ac_exec_ext in '' $ac_executable_extensions; do
8386 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8387 ac_cv_prog_ac_ct_LIPO="lipo"
8388 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8389 break 2
8390 fi
8391 done
8392 done
8393 IFS=$as_save_IFS
8394
8395 fi ;;
8396 esac
8397 fi
8398 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8399 if test -n "$ac_ct_LIPO"; then
8400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8401 printf "%s\n" "$ac_ct_LIPO" >&6; }
8402 else
8403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8404 printf "%s\n" "no" >&6; }
8405 fi
8406
8407 if test "x$ac_ct_LIPO" = x; then
8408 LIPO=":"
8409 else
8410 case $cross_compiling:$ac_tool_warned in
8411 yes:)
8412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8413 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8414 ac_tool_warned=yes ;;
8415 esac
8416 LIPO=$ac_ct_LIPO
8417 fi
8418 else
8419 LIPO="$ac_cv_prog_LIPO"
8420 fi
8421
8422 if test -n "$ac_tool_prefix"; then
8423 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8424 set dummy ${ac_tool_prefix}otool; ac_word=$2
8425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8426 printf %s "checking for $ac_word... " >&6; }
8427 if test ${ac_cv_prog_OTOOL+y}
8428 then :
8429 printf %s "(cached) " >&6
8430 else case e in #(
8431 e) if test -n "$OTOOL"; then
8432 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8433 else
8434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8435 for as_dir in $PATH
8436 do
8437 IFS=$as_save_IFS
8438 case $as_dir in #(((
8439 '') as_dir=./ ;;
8440 */) ;;
8441 *) as_dir=$as_dir/ ;;
8442 esac
8443 for ac_exec_ext in '' $ac_executable_extensions; do
8444 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8445 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8446 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8447 break 2
8448 fi
8449 done
8450 done
8451 IFS=$as_save_IFS
8452
8453 fi ;;
8454 esac
8455 fi
8456 OTOOL=$ac_cv_prog_OTOOL
8457 if test -n "$OTOOL"; then
8458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8459 printf "%s\n" "$OTOOL" >&6; }
8460 else
8461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8462 printf "%s\n" "no" >&6; }
8463 fi
8464
8465
8466 fi
8467 if test -z "$ac_cv_prog_OTOOL"; then
8468 ac_ct_OTOOL=$OTOOL
8469 # Extract the first word of "otool", so it can be a program name with args.
8470 set dummy otool; ac_word=$2
8471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8472 printf %s "checking for $ac_word... " >&6; }
8473 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8474 then :
8475 printf %s "(cached) " >&6
8476 else case e in #(
8477 e) if test -n "$ac_ct_OTOOL"; then
8478 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8479 else
8480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8481 for as_dir in $PATH
8482 do
8483 IFS=$as_save_IFS
8484 case $as_dir in #(((
8485 '') as_dir=./ ;;
8486 */) ;;
8487 *) as_dir=$as_dir/ ;;
8488 esac
8489 for ac_exec_ext in '' $ac_executable_extensions; do
8490 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8491 ac_cv_prog_ac_ct_OTOOL="otool"
8492 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8493 break 2
8494 fi
8495 done
8496 done
8497 IFS=$as_save_IFS
8498
8499 fi ;;
8500 esac
8501 fi
8502 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8503 if test -n "$ac_ct_OTOOL"; then
8504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8505 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8506 else
8507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8508 printf "%s\n" "no" >&6; }
8509 fi
8510
8511 if test "x$ac_ct_OTOOL" = x; then
8512 OTOOL=":"
8513 else
8514 case $cross_compiling:$ac_tool_warned in
8515 yes:)
8516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8517 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8518 ac_tool_warned=yes ;;
8519 esac
8520 OTOOL=$ac_ct_OTOOL
8521 fi
8522 else
8523 OTOOL="$ac_cv_prog_OTOOL"
8524 fi
8525
8526 if test -n "$ac_tool_prefix"; then
8527 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8528 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8530 printf %s "checking for $ac_word... " >&6; }
8531 if test ${ac_cv_prog_OTOOL64+y}
8532 then :
8533 printf %s "(cached) " >&6
8534 else case e in #(
8535 e) if test -n "$OTOOL64"; then
8536 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8537 else
8538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8539 for as_dir in $PATH
8540 do
8541 IFS=$as_save_IFS
8542 case $as_dir in #(((
8543 '') as_dir=./ ;;
8544 */) ;;
8545 *) as_dir=$as_dir/ ;;
8546 esac
8547 for ac_exec_ext in '' $ac_executable_extensions; do
8548 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8549 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8550 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8551 break 2
8552 fi
8553 done
8554 done
8555 IFS=$as_save_IFS
8556
8557 fi ;;
8558 esac
8559 fi
8560 OTOOL64=$ac_cv_prog_OTOOL64
8561 if test -n "$OTOOL64"; then
8562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8563 printf "%s\n" "$OTOOL64" >&6; }
8564 else
8565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8566 printf "%s\n" "no" >&6; }
8567 fi
8568
8569
8570 fi
8571 if test -z "$ac_cv_prog_OTOOL64"; then
8572 ac_ct_OTOOL64=$OTOOL64
8573 # Extract the first word of "otool64", so it can be a program name with args.
8574 set dummy otool64; ac_word=$2
8575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8576 printf %s "checking for $ac_word... " >&6; }
8577 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8578 then :
8579 printf %s "(cached) " >&6
8580 else case e in #(
8581 e) if test -n "$ac_ct_OTOOL64"; then
8582 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8583 else
8584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8585 for as_dir in $PATH
8586 do
8587 IFS=$as_save_IFS
8588 case $as_dir in #(((
8589 '') as_dir=./ ;;
8590 */) ;;
8591 *) as_dir=$as_dir/ ;;
8592 esac
8593 for ac_exec_ext in '' $ac_executable_extensions; do
8594 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8595 ac_cv_prog_ac_ct_OTOOL64="otool64"
8596 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8597 break 2
8598 fi
8599 done
8600 done
8601 IFS=$as_save_IFS
8602
8603 fi ;;
8604 esac
8605 fi
8606 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8607 if test -n "$ac_ct_OTOOL64"; then
8608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8609 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8610 else
8611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8612 printf "%s\n" "no" >&6; }
8613 fi
8614
8615 if test "x$ac_ct_OTOOL64" = x; then
8616 OTOOL64=":"
8617 else
8618 case $cross_compiling:$ac_tool_warned in
8619 yes:)
8620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8621 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8622 ac_tool_warned=yes ;;
8623 esac
8624 OTOOL64=$ac_ct_OTOOL64
8625 fi
8626 else
8627 OTOOL64="$ac_cv_prog_OTOOL64"
8628 fi
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8657 printf %s "checking for -single_module linker flag... " >&6; }
8658 if test ${lt_cv_apple_cc_single_mod+y}
8659 then :
8660 printf %s "(cached) " >&6
8661 else case e in #(
8662 e) lt_cv_apple_cc_single_mod=no
8663 if test -z "$LT_MULTI_MODULE"; then
8664 # By default we will add the -single_module flag. You can override
8665 # by either setting the environment variable LT_MULTI_MODULE
8666 # non-empty at configure time, or by adding -multi_module to the
8667 # link flags.
8668 rm -rf libconftest.dylib*
8669 echo "int foo(void){return 1;}" > conftest.c
8670 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8671 -dynamiclib -Wl,-single_module conftest.c" >&5
8672 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8673 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8674 _lt_result=$?
8675 # If there is a non-empty error log, and "single_module"
8676 # appears in it, assume the flag caused a linker warning
8677 if test -s conftest.err && $GREP single_module conftest.err; then
8678 cat conftest.err >&5
8679 # Otherwise, if the output was created with a 0 exit code from
8680 # the compiler, it worked.
8681 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8682 lt_cv_apple_cc_single_mod=yes
8683 else
8684 cat conftest.err >&5
8685 fi
8686 rm -rf libconftest.dylib*
8687 rm -f conftest.*
8688 fi ;;
8689 esac
8690 fi
8691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8692 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8693
8694 # Feature test to disable chained fixups since it is not
8695 # compatible with '-undefined dynamic_lookup'
8696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
8697 printf %s "checking for -no_fixup_chains linker flag... " >&6; }
8698 if test ${lt_cv_support_no_fixup_chains+y}
8699 then :
8700 printf %s "(cached) " >&6
8701 else case e in #(
8702 e) save_LDFLAGS=$LDFLAGS
8703 LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
8704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8705 /* end confdefs.h. */
8706
8707 int
8708 main (void)
8709 {
8710
8711 ;
8712 return 0;
8713 }
8714 _ACEOF
8715 if ac_fn_c_try_link "$LINENO"
8716 then :
8717 lt_cv_support_no_fixup_chains=yes
8718 else case e in #(
8719 e) lt_cv_support_no_fixup_chains=no
8720 ;;
8721 esac
8722 fi
8723 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8724 conftest$ac_exeext conftest.$ac_ext
8725 LDFLAGS=$save_LDFLAGS
8726
8727 ;;
8728 esac
8729 fi
8730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
8731 printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; }
8732
8733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8734 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8735 if test ${lt_cv_ld_exported_symbols_list+y}
8736 then :
8737 printf %s "(cached) " >&6
8738 else case e in #(
8739 e) lt_cv_ld_exported_symbols_list=no
8740 save_LDFLAGS=$LDFLAGS
8741 echo "_main" > conftest.sym
8742 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8744 /* end confdefs.h. */
8745
8746 int
8747 main (void)
8748 {
8749
8750 ;
8751 return 0;
8752 }
8753 _ACEOF
8754 if ac_fn_c_try_link "$LINENO"
8755 then :
8756 lt_cv_ld_exported_symbols_list=yes
8757 else case e in #(
8758 e) lt_cv_ld_exported_symbols_list=no ;;
8759 esac
8760 fi
8761 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8762 conftest$ac_exeext conftest.$ac_ext
8763 LDFLAGS=$save_LDFLAGS
8764 ;;
8765 esac
8766 fi
8767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8768 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8769
8770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8771 printf %s "checking for -force_load linker flag... " >&6; }
8772 if test ${lt_cv_ld_force_load+y}
8773 then :
8774 printf %s "(cached) " >&6
8775 else case e in #(
8776 e) lt_cv_ld_force_load=no
8777 cat > conftest.c << _LT_EOF
8778 int forced_loaded() { return 2;}
8779 _LT_EOF
8780 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8781 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8782 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8783 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8784 echo "$RANLIB libconftest.a" >&5
8785 $RANLIB libconftest.a 2>&5
8786 cat > conftest.c << _LT_EOF
8787 int main(void) { return 0;}
8788 _LT_EOF
8789 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8790 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8791 _lt_result=$?
8792 if test -s conftest.err && $GREP force_load conftest.err; then
8793 cat conftest.err >&5
8794 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8795 lt_cv_ld_force_load=yes
8796 else
8797 cat conftest.err >&5
8798 fi
8799 rm -f conftest.err libconftest.a conftest conftest.c
8800 rm -rf conftest.dSYM
8801 ;;
8802 esac
8803 fi
8804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8805 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8806 case $host_os in
8807 rhapsody* | darwin1.[012])
8808 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8809 darwin1.*)
8810 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8811 darwin*)
8812 case $MACOSX_DEPLOYMENT_TARGET,$host in
8813 10.[012],*|,*powerpc*-darwin[5-8]*)
8814 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8815 *)
8816 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
8817 if test yes = "$lt_cv_support_no_fixup_chains"; then
8818 as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'
8819 fi
8820 ;;
8821 esac
8822 ;;
8823 esac
8824 if test yes = "$lt_cv_apple_cc_single_mod"; then
8825 _lt_dar_single_mod='$single_module'
8826 fi
8827 _lt_dar_needs_single_mod=no
8828 case $host_os in
8829 rhapsody* | darwin1.*)
8830 _lt_dar_needs_single_mod=yes ;;
8831 darwin*)
8832 # When targeting Mac OS X 10.4 (darwin 8) or later,
8833 # -single_module is the default and -multi_module is unsupported.
8834 # The toolchain on macOS 10.14 (darwin 18) and later cannot
8835 # target any OS version that needs -single_module.
8836 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8837 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*)
8838 _lt_dar_needs_single_mod=yes ;;
8839 esac
8840 ;;
8841 esac
8842 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8843 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8844 else
8845 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8846 fi
8847 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8848 _lt_dsymutil='~$DSYMUTIL $lib || :'
8849 else
8850 _lt_dsymutil=
8851 fi
8852 ;;
8853 esac
8854
8855 # func_munge_path_list VARIABLE PATH
8856 # -----------------------------------
8857 # VARIABLE is name of variable containing _space_ separated list of
8858 # directories to be munged by the contents of PATH, which is string
8859 # having a format:
8860 # "DIR[:DIR]:"
8861 # string "DIR[ DIR]" will be prepended to VARIABLE
8862 # ":DIR[:DIR]"
8863 # string "DIR[ DIR]" will be appended to VARIABLE
8864 # "DIRP[:DIRP]::[DIRA:]DIRA"
8865 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8866 # "DIRA[ DIRA]" will be appended to VARIABLE
8867 # "DIR[:DIR]"
8868 # VARIABLE will be replaced by "DIR[ DIR]"
8869 func_munge_path_list ()
8870 {
8871 case x$2 in
8872 x)
8873 ;;
8874 *:)
8875 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8876 ;;
8877 x:*)
8878 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8879 ;;
8880 *::*)
8881 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8882 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8883 ;;
8884 *)
8885 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8886 ;;
8887 esac
8888 }
8889
8890 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8891 "
8892 if test "x$ac_cv_header_dlfcn_h" = xyes
8893 then :
8894 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8895
8896 fi
8897
8898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
8899 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
8900 if test ${ac_cv_c_undeclared_builtin_options+y}
8901 then :
8902 printf %s "(cached) " >&6
8903 else case e in #(
8904 e) ac_save_CFLAGS=$CFLAGS
8905 ac_cv_c_undeclared_builtin_options='cannot detect'
8906 for ac_arg in '' -fno-builtin; do
8907 CFLAGS="$ac_save_CFLAGS $ac_arg"
8908 # This test program should *not* compile successfully.
8909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8910 /* end confdefs.h. */
8911
8912 int
8913 main (void)
8914 {
8915 (void) strchr;
8916 ;
8917 return 0;
8918 }
8919 _ACEOF
8920 if ac_fn_c_try_compile "$LINENO"
8921 then :
8922
8923 else case e in #(
8924 e) # This test program should compile successfully.
8925 # No library function is consistently available on
8926 # freestanding implementations, so test against a dummy
8927 # declaration. Include always-available headers on the
8928 # off chance that they somehow elicit warnings.
8929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8930 /* end confdefs.h. */
8931 #include <float.h>
8932 #include <limits.h>
8933 #include <stdarg.h>
8934 #include <stddef.h>
8935 extern void ac_decl (int, char *);
8936
8937 int
8938 main (void)
8939 {
8940 (void) ac_decl (0, (char *) 0);
8941 (void) ac_decl;
8942
8943 ;
8944 return 0;
8945 }
8946 _ACEOF
8947 if ac_fn_c_try_compile "$LINENO"
8948 then :
8949 if test x"$ac_arg" = x
8950 then :
8951 ac_cv_c_undeclared_builtin_options='none needed'
8952 else case e in #(
8953 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
8954 esac
8955 fi
8956 break
8957 fi
8958 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8959 esac
8960 fi
8961 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8962 done
8963 CFLAGS=$ac_save_CFLAGS
8964 ;;
8965 esac
8966 fi
8967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
8968 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
8969 case $ac_cv_c_undeclared_builtin_options in #(
8970 'cannot detect') :
8971 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
8972 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
8973 as_fn_error $? "cannot make $CC report undeclared builtins
8974 See 'config.log' for more details" "$LINENO" 5; } ;; #(
8975 'none needed') :
8976 ac_c_undeclared_builtin_options='' ;; #(
8977 *) :
8978 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
8979 esac
8980
8981 echo 'tldbg:KPSE_COMMON called (pkg=dvi2tty, amopt=)' >&5
8982 echo 'tldbg:KPSE_BASIC called (pkg=dvi2tty, amopt=)' >&5
8983
8984 #
8985 # am_init_automake
8986 if test "`cd $srcdir && pwd`" != "`pwd`"; then
8987 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
8988 # is not polluted with repeated "-I."
8989 am__isrc=' -I$(srcdir)'
8990 # test to see if srcdir already configured
8991 if test -f $srcdir/config.status; then
8992 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
8993 fi
8994 fi
8995
8996 # test whether we have cygpath
8997 if test -z "$CYGPATH_W"; then
8998 if (cygpath --version) >/dev/null 2>/dev/null; then
8999 CYGPATH_W='cygpath -w'
9000 else
9001 CYGPATH_W=echo
9002 fi
9003 fi
9004
9005
9006 # Define the identity of the package.
9007 PACKAGE='dvi2tty--tex-live-'
9008 VERSION='6.0.2'
9009
9010
9011 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
9012
9013
9014 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
9015
9016 # Some tools Automake needs.
9017
9018 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
9019
9020
9021 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
9022
9023
9024 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
9025
9026
9027 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
9028
9029
9030 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
9031
9032 # For better backward compatibility. To be removed once Automake 1.9.x
9033 # dies out for good. For more background, see:
9034 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
9035 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
9036 mkdir_p='$(MKDIR_P)'
9037
9038 # We need awk for the "check" target (and possibly the TAP driver). The
9039 # system "awk" is bad on some platforms.
9040 # Always define AMTAR for backward compatibility. Yes, it's still used
9041 # in the wild :-( We should find a proper way to deprecate it ...
9042 AMTAR='$${TAR-tar}'
9043
9044
9045 # We'll loop over all known methods to create a tar archive until one works.
9046 _am_tools='gnutar plaintar pax cpio none'
9047
9048 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
9049 # There is notably a 21 bits limit for the UID and the GID. In fact,
9050 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
9051 # and bug#13588).
9052 am_max_uid=2097151 # 2^21 - 1
9053 am_max_gid=$am_max_uid
9054 # The $UID and $GID variables are not portable, so we need to resort
9055 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
9056 # below are definitely unexpected, so allow the users to see them
9057 # (that is, avoid stderr redirection).
9058 am_uid=`id -u || echo unknown`
9059 am_gid=`id -g || echo unknown`
9060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
9061 printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
9062 if test x$am_uid = xunknown; then
9063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&5
9064 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&2;}
9065 elif test $am_uid -le $am_max_uid; then
9066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9067 printf "%s\n" "yes" >&6; }
9068 else
9069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9070 printf "%s\n" "no" >&6; }
9071 _am_tools=none
9072 fi
9073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
9074 printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
9075 if test x$gm_gid = xunknown; then
9076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&5
9077 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&2;}
9078 elif test $am_gid -le $am_max_gid; then
9079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9080 printf "%s\n" "yes" >&6; }
9081 else
9082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9083 printf "%s\n" "no" >&6; }
9084 _am_tools=none
9085 fi
9086
9087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
9088 printf %s "checking how to create a ustar tar archive... " >&6; }
9089
9090 # Go ahead even if we have the value already cached. We do so because we
9091 # need to set the values for the 'am__tar' and 'am__untar' variables.
9092 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
9093
9094 for _am_tool in $_am_tools; do
9095 case $_am_tool in
9096 gnutar)
9097 for _am_tar in tar gnutar gtar; do
9098 { echo "$as_me:$LINENO: $_am_tar --version" >&5
9099 ($_am_tar --version) >&5 2>&5
9100 ac_status=$?
9101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9102 (exit $ac_status); } && break
9103 done
9104 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
9105 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
9106 am__untar="$_am_tar -xf -"
9107 ;;
9108 plaintar)
9109 # Must skip GNU tar: if it does not support --format= it doesn't create
9110 # ustar tarball either.
9111 (tar --version) >/dev/null 2>&1 && continue
9112 am__tar='tar chf - "$$tardir"'
9113 am__tar_='tar chf - "$tardir"'
9114 am__untar='tar xf -'
9115 ;;
9116 pax)
9117 am__tar='pax -L -x ustar -w "$$tardir"'
9118 am__tar_='pax -L -x ustar -w "$tardir"'
9119 am__untar='pax -r'
9120 ;;
9121 cpio)
9122 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
9123 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
9124 am__untar='cpio -i -H ustar -d'
9125 ;;
9126 none)
9127 am__tar=false
9128 am__tar_=false
9129 am__untar=false
9130 ;;
9131 esac
9132
9133 # If the value was cached, stop now. We just wanted to have am__tar
9134 # and am__untar set.
9135 test -n "${am_cv_prog_tar_ustar}" && break
9136
9137 # tar/untar a dummy directory, and stop if the command works.
9138 rm -rf conftest.dir
9139 mkdir conftest.dir
9140 echo GrepMe > conftest.dir/file
9141 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
9142 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
9143 ac_status=$?
9144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9145 (exit $ac_status); }
9146 rm -rf conftest.dir
9147 if test -s conftest.tar; then
9148 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
9149 ($am__untar <conftest.tar) >&5 2>&5
9150 ac_status=$?
9151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9152 (exit $ac_status); }
9153 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
9154 (cat conftest.dir/file) >&5 2>&5
9155 ac_status=$?
9156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9157 (exit $ac_status); }
9158 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
9159 fi
9160 done
9161 rm -rf conftest.dir
9162
9163 if test ${am_cv_prog_tar_ustar+y}
9164 then :
9165 printf %s "(cached) " >&6
9166 else case e in #(
9167 e) am_cv_prog_tar_ustar=$_am_tool ;;
9168 esac
9169 fi
9170
9171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
9172 printf "%s\n" "$am_cv_prog_tar_ustar" >&6; }
9173
9174
9175
9176
9177
9178 # Variables for tags utilities; see am/tags.am
9179 if test -z "$CTAGS"; then
9180 CTAGS=ctags
9181 fi
9182
9183 if test -z "$ETAGS"; then
9184 ETAGS=etags
9185 fi
9186
9187 if test -z "$CSCOPE"; then
9188 CSCOPE=cscope
9189 fi
9190
9191
9192
9193
9194
9195
9196
9197
9198 # am_maintainer_mode
9199
9200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
9201 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
9202 # Check whether --enable-maintainer-mode was given.
9203 if test ${enable_maintainer_mode+y}
9204 then :
9205 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
9206 else case e in #(
9207 e) USE_MAINTAINER_MODE=no ;;
9208 esac
9209 fi
9210
9211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
9212 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
9213 if test $USE_MAINTAINER_MODE = yes; then
9214 MAINTAINER_MODE_TRUE=
9215 MAINTAINER_MODE_FALSE='#'
9216 else
9217 MAINTAINER_MODE_TRUE='#'
9218 MAINTAINER_MODE_FALSE=
9219 fi
9220
9221 MAINT=$MAINTAINER_MODE_TRUE
9222
9223
9224
9225 # See comments in kpse-setup.m4 about system extensions.
9226
9227
9228 # Check whether prototypes work.
9229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts prototypes" >&5
9230 printf %s "checking whether the compiler accepts prototypes... " >&6; }
9231 if test ${kb_cv_c_prototypes+y}
9232 then :
9233 printf %s "(cached) " >&6
9234 else case e in #(
9235 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9236 /* end confdefs.h. */
9237 #include <stdarg.h>
9238 int
9239 main (void)
9240 {
9241 extern void foo(int i,...);
9242 ;
9243 return 0;
9244 }
9245 _ACEOF
9246 if ac_fn_c_try_link "$LINENO"
9247 then :
9248 kb_cv_c_prototypes=yes
9249 else case e in #(
9250 e) kb_cv_c_prototypes=no ;;
9251 esac
9252 fi
9253 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9254 conftest$ac_exeext conftest.$ac_ext ;;
9255 esac
9256 fi
9257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kb_cv_c_prototypes" >&5
9258 printf "%s\n" "$kb_cv_c_prototypes" >&6; }
9259 if test "x$kb_cv_c_prototypes" = xno; then
9260 as_fn_error $? "Sorry, your compiler does not understand prototypes." "$LINENO" 5
9261 fi
9262
9263 # kpse_compiler_warnings options.
9264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking what warning flags to pass to the C compiler" >&5
9265 printf %s "checking what warning flags to pass to the C compiler... " >&6; }
9266 if test ${kpse_cv_warning_cflags+y}
9267 then :
9268 printf %s "(cached) " >&6
9269 else case e in #(
9270 e) if test "x$GCC" = xyes; then
9271 kpse_cv_warning_cflags=
9272 if test "x$enable_compiler_warnings" != xno; then
9273 kpse_cv_warning_cflags="-Wimplicit -Wreturn-type"
9274 case `$CC -dumpversion` in #(
9275 3.4.* | 4.* | 5.*) :
9276 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wdeclaration-after-statement" ;; #(
9277 *) :
9278 ;;
9279 esac
9280 case `$CC -dumpversion` in #(
9281 3.[234].* | 4.* | 5.*) :
9282 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wno-unknown-pragmas" ;; #(
9283 *) :
9284 ;;
9285 esac
9286 if test "x$enable_compiler_warnings" != xmin; then
9287 kpse_cv_warning_cflags="-Wall -Wunused $kpse_cv_warning_cflags"
9288 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wmissing-prototypes -Wmissing-declarations"
9289 if test "x$enable_compiler_warnings" != xyes; then
9290 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wparentheses -Wswitch -Wtrigraphs -Wpointer-arith"
9291 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wcast-qual -Wcast-align -Wwrite-strings"
9292 case `$CC -dumpversion` in #(
9293 3.4.* | 4.* | 5.*) :
9294 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wold-style-definition" ;; #(
9295 *) :
9296 ;;
9297 esac
9298 if test "x$enable_compiler_warnings" != xmax; then
9299 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wshadow"
9300 fi
9301 fi
9302 fi
9303 fi
9304 elif test "x$enable_compiler_warnings" = xno; then
9305 kpse_cv_warning_cflags=
9306 else
9307 kpse_cv_warning_cflags= # FIXME: warning flags for non-GNU C compilers
9308 fi ;;
9309 esac
9310 fi
9311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_warning_cflags" >&5
9312 printf "%s\n" "$kpse_cv_warning_cflags" >&6; }
9313 WARNING_CFLAGS=$kpse_cv_warning_cflags
9314
9315
9316
9317
9318
9319
9320
9321 # end of kpse_basic macro.
9322 echo 'tldbg:KPSE_BASIC done (pkg=dvi2tty, amopt=)' >&5
9323
9324 # am_prog_ar must be called before lt_init.
9325
9326 if test -n "$ac_tool_prefix"; then
9327 for ac_prog in ar lib "link -lib"
9328 do
9329 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9330 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9332 printf %s "checking for $ac_word... " >&6; }
9333 if test ${ac_cv_prog_AR+y}
9334 then :
9335 printf %s "(cached) " >&6
9336 else case e in #(
9337 e) if test -n "$AR"; then
9338 ac_cv_prog_AR="$AR" # Let the user override the test.
9339 else
9340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9341 for as_dir in $PATH
9342 do
9343 IFS=$as_save_IFS
9344 case $as_dir in #(((
9345 '') as_dir=./ ;;
9346 */) ;;
9347 *) as_dir=$as_dir/ ;;
9348 esac
9349 for ac_exec_ext in '' $ac_executable_extensions; do
9350 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9351 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
9352 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9353 break 2
9354 fi
9355 done
9356 done
9357 IFS=$as_save_IFS
9358
9359 fi ;;
9360 esac
9361 fi
9362 AR=$ac_cv_prog_AR
9363 if test -n "$AR"; then
9364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9365 printf "%s\n" "$AR" >&6; }
9366 else
9367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9368 printf "%s\n" "no" >&6; }
9369 fi
9370
9371
9372 test -n "$AR" && break
9373 done
9374 fi
9375 if test -z "$AR"; then
9376 ac_ct_AR=$AR
9377 for ac_prog in ar lib "link -lib"
9378 do
9379 # Extract the first word of "$ac_prog", so it can be a program name with args.
9380 set dummy $ac_prog; ac_word=$2
9381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9382 printf %s "checking for $ac_word... " >&6; }
9383 if test ${ac_cv_prog_ac_ct_AR+y}
9384 then :
9385 printf %s "(cached) " >&6
9386 else case e in #(
9387 e) if test -n "$ac_ct_AR"; then
9388 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9389 else
9390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9391 for as_dir in $PATH
9392 do
9393 IFS=$as_save_IFS
9394 case $as_dir in #(((
9395 '') as_dir=./ ;;
9396 */) ;;
9397 *) as_dir=$as_dir/ ;;
9398 esac
9399 for ac_exec_ext in '' $ac_executable_extensions; do
9400 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9401 ac_cv_prog_ac_ct_AR="$ac_prog"
9402 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9403 break 2
9404 fi
9405 done
9406 done
9407 IFS=$as_save_IFS
9408
9409 fi ;;
9410 esac
9411 fi
9412 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9413 if test -n "$ac_ct_AR"; then
9414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9415 printf "%s\n" "$ac_ct_AR" >&6; }
9416 else
9417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9418 printf "%s\n" "no" >&6; }
9419 fi
9420
9421
9422 test -n "$ac_ct_AR" && break
9423 done
9424
9425 if test "x$ac_ct_AR" = x; then
9426 AR="false"
9427 else
9428 case $cross_compiling:$ac_tool_warned in
9429 yes:)
9430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9431 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9432 ac_tool_warned=yes ;;
9433 esac
9434 AR=$ac_ct_AR
9435 fi
9436 fi
9437
9438 : ${AR=ar}
9439 : ${ARFLAGS=cr}
9440
9441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
9442 printf %s "checking the archiver ($AR) interface... " >&6; }
9443 if test ${am_cv_ar_interface+y}
9444 then :
9445 printf %s "(cached) " >&6
9446 else case e in #(
9447 e) ac_ext=c
9448 ac_cpp='$CPP $CPPFLAGS'
9449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9452
9453 am_cv_ar_interface=ar
9454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9455 /* end confdefs.h. */
9456 int some_variable = 0;
9457 _ACEOF
9458 if ac_fn_c_try_compile "$LINENO"
9459 then :
9460 am_ar_try='$AR $ARFLAGS libconftest.a conftest.$ac_objext >&5'
9461 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
9462 (eval $am_ar_try) 2>&5
9463 ac_status=$?
9464 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9465 test $ac_status = 0; }
9466 if test "$ac_status" -eq 0; then
9467 am_cv_ar_interface=ar
9468 else
9469 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
9470 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
9471 (eval $am_ar_try) 2>&5
9472 ac_status=$?
9473 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9474 test $ac_status = 0; }
9475 if test "$ac_status" -eq 0; then
9476 am_cv_ar_interface=lib
9477 else
9478 am_cv_ar_interface=unknown
9479 fi
9480 fi
9481 rm -f conftest.lib libconftest.a
9482
9483 fi
9484 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9485 ac_ext=c
9486 ac_cpp='$CPP $CPPFLAGS'
9487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9490 ;;
9491 esac
9492 fi
9493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
9494 printf "%s\n" "$am_cv_ar_interface" >&6; }
9495
9496 case $am_cv_ar_interface in
9497 ar)
9498 ;;
9499 lib)
9500 # Microsoft lib, so override with the ar-lib wrapper script.
9501 # FIXME: It is wrong to rewrite AR.
9502 # But if we don't then we get into trouble of one sort or another.
9503 # A longer-term fix would be to have automake use am__AR in this case,
9504 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
9505 # similar.
9506 AR="$am_aux_dir/ar-lib $AR"
9507 ;;
9508 unknown)
9509 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
9510 ;;
9511 esac
9512
9513 # (end am_prog_ar)
9514 # starting lt_prereq + lt_init.
9515
9516
9517
9518
9519
9520 # Set options
9521 enable_win32_dll=yes
9522
9523 case $host in
9524 *-*-cygwin* | *-*-mingw* | *-*-windows* | *-*-pw32* | *-*-cegcc*)
9525 if test -n "$ac_tool_prefix"; then
9526 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
9527 set dummy ${ac_tool_prefix}as; ac_word=$2
9528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9529 printf %s "checking for $ac_word... " >&6; }
9530 if test ${ac_cv_prog_AS+y}
9531 then :
9532 printf %s "(cached) " >&6
9533 else case e in #(
9534 e) if test -n "$AS"; then
9535 ac_cv_prog_AS="$AS" # Let the user override the test.
9536 else
9537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9538 for as_dir in $PATH
9539 do
9540 IFS=$as_save_IFS
9541 case $as_dir in #(((
9542 '') as_dir=./ ;;
9543 */) ;;
9544 *) as_dir=$as_dir/ ;;
9545 esac
9546 for ac_exec_ext in '' $ac_executable_extensions; do
9547 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9548 ac_cv_prog_AS="${ac_tool_prefix}as"
9549 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9550 break 2
9551 fi
9552 done
9553 done
9554 IFS=$as_save_IFS
9555
9556 fi ;;
9557 esac
9558 fi
9559 AS=$ac_cv_prog_AS
9560 if test -n "$AS"; then
9561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
9562 printf "%s\n" "$AS" >&6; }
9563 else
9564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9565 printf "%s\n" "no" >&6; }
9566 fi
9567
9568
9569 fi
9570 if test -z "$ac_cv_prog_AS"; then
9571 ac_ct_AS=$AS
9572 # Extract the first word of "as", so it can be a program name with args.
9573 set dummy as; ac_word=$2
9574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9575 printf %s "checking for $ac_word... " >&6; }
9576 if test ${ac_cv_prog_ac_ct_AS+y}
9577 then :
9578 printf %s "(cached) " >&6
9579 else case e in #(
9580 e) if test -n "$ac_ct_AS"; then
9581 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
9582 else
9583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9584 for as_dir in $PATH
9585 do
9586 IFS=$as_save_IFS
9587 case $as_dir in #(((
9588 '') as_dir=./ ;;
9589 */) ;;
9590 *) as_dir=$as_dir/ ;;
9591 esac
9592 for ac_exec_ext in '' $ac_executable_extensions; do
9593 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9594 ac_cv_prog_ac_ct_AS="as"
9595 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9596 break 2
9597 fi
9598 done
9599 done
9600 IFS=$as_save_IFS
9601
9602 fi ;;
9603 esac
9604 fi
9605 ac_ct_AS=$ac_cv_prog_ac_ct_AS
9606 if test -n "$ac_ct_AS"; then
9607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
9608 printf "%s\n" "$ac_ct_AS" >&6; }
9609 else
9610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9611 printf "%s\n" "no" >&6; }
9612 fi
9613
9614 if test "x$ac_ct_AS" = x; then
9615 AS="false"
9616 else
9617 case $cross_compiling:$ac_tool_warned in
9618 yes:)
9619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9620 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9621 ac_tool_warned=yes ;;
9622 esac
9623 AS=$ac_ct_AS
9624 fi
9625 else
9626 AS="$ac_cv_prog_AS"
9627 fi
9628
9629 if test -n "$ac_tool_prefix"; then
9630 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9631 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9633 printf %s "checking for $ac_word... " >&6; }
9634 if test ${ac_cv_prog_DLLTOOL+y}
9635 then :
9636 printf %s "(cached) " >&6
9637 else case e in #(
9638 e) if test -n "$DLLTOOL"; then
9639 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9640 else
9641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9642 for as_dir in $PATH
9643 do
9644 IFS=$as_save_IFS
9645 case $as_dir in #(((
9646 '') as_dir=./ ;;
9647 */) ;;
9648 *) as_dir=$as_dir/ ;;
9649 esac
9650 for ac_exec_ext in '' $ac_executable_extensions; do
9651 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9652 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9653 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9654 break 2
9655 fi
9656 done
9657 done
9658 IFS=$as_save_IFS
9659
9660 fi ;;
9661 esac
9662 fi
9663 DLLTOOL=$ac_cv_prog_DLLTOOL
9664 if test -n "$DLLTOOL"; then
9665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9666 printf "%s\n" "$DLLTOOL" >&6; }
9667 else
9668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9669 printf "%s\n" "no" >&6; }
9670 fi
9671
9672
9673 fi
9674 if test -z "$ac_cv_prog_DLLTOOL"; then
9675 ac_ct_DLLTOOL=$DLLTOOL
9676 # Extract the first word of "dlltool", so it can be a program name with args.
9677 set dummy dlltool; ac_word=$2
9678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9679 printf %s "checking for $ac_word... " >&6; }
9680 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
9681 then :
9682 printf %s "(cached) " >&6
9683 else case e in #(
9684 e) if test -n "$ac_ct_DLLTOOL"; then
9685 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9686 else
9687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9688 for as_dir in $PATH
9689 do
9690 IFS=$as_save_IFS
9691 case $as_dir in #(((
9692 '') as_dir=./ ;;
9693 */) ;;
9694 *) as_dir=$as_dir/ ;;
9695 esac
9696 for ac_exec_ext in '' $ac_executable_extensions; do
9697 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9698 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9699 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9700 break 2
9701 fi
9702 done
9703 done
9704 IFS=$as_save_IFS
9705
9706 fi ;;
9707 esac
9708 fi
9709 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9710 if test -n "$ac_ct_DLLTOOL"; then
9711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9712 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
9713 else
9714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9715 printf "%s\n" "no" >&6; }
9716 fi
9717
9718 if test "x$ac_ct_DLLTOOL" = x; then
9719 DLLTOOL="false"
9720 else
9721 case $cross_compiling:$ac_tool_warned in
9722 yes:)
9723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9724 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9725 ac_tool_warned=yes ;;
9726 esac
9727 DLLTOOL=$ac_ct_DLLTOOL
9728 fi
9729 else
9730 DLLTOOL="$ac_cv_prog_DLLTOOL"
9731 fi
9732
9733 if test -n "$ac_tool_prefix"; then
9734 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9735 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9737 printf %s "checking for $ac_word... " >&6; }
9738 if test ${ac_cv_prog_OBJDUMP+y}
9739 then :
9740 printf %s "(cached) " >&6
9741 else case e in #(
9742 e) if test -n "$OBJDUMP"; then
9743 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9744 else
9745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9746 for as_dir in $PATH
9747 do
9748 IFS=$as_save_IFS
9749 case $as_dir in #(((
9750 '') as_dir=./ ;;
9751 */) ;;
9752 *) as_dir=$as_dir/ ;;
9753 esac
9754 for ac_exec_ext in '' $ac_executable_extensions; do
9755 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9756 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9757 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9758 break 2
9759 fi
9760 done
9761 done
9762 IFS=$as_save_IFS
9763
9764 fi ;;
9765 esac
9766 fi
9767 OBJDUMP=$ac_cv_prog_OBJDUMP
9768 if test -n "$OBJDUMP"; then
9769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9770 printf "%s\n" "$OBJDUMP" >&6; }
9771 else
9772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9773 printf "%s\n" "no" >&6; }
9774 fi
9775
9776
9777 fi
9778 if test -z "$ac_cv_prog_OBJDUMP"; then
9779 ac_ct_OBJDUMP=$OBJDUMP
9780 # Extract the first word of "objdump", so it can be a program name with args.
9781 set dummy objdump; ac_word=$2
9782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9783 printf %s "checking for $ac_word... " >&6; }
9784 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
9785 then :
9786 printf %s "(cached) " >&6
9787 else case e in #(
9788 e) if test -n "$ac_ct_OBJDUMP"; then
9789 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9790 else
9791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9792 for as_dir in $PATH
9793 do
9794 IFS=$as_save_IFS
9795 case $as_dir in #(((
9796 '') as_dir=./ ;;
9797 */) ;;
9798 *) as_dir=$as_dir/ ;;
9799 esac
9800 for ac_exec_ext in '' $ac_executable_extensions; do
9801 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9802 ac_cv_prog_ac_ct_OBJDUMP="objdump"
9803 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9804 break 2
9805 fi
9806 done
9807 done
9808 IFS=$as_save_IFS
9809
9810 fi ;;
9811 esac
9812 fi
9813 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9814 if test -n "$ac_ct_OBJDUMP"; then
9815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9816 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
9817 else
9818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9819 printf "%s\n" "no" >&6; }
9820 fi
9821
9822 if test "x$ac_ct_OBJDUMP" = x; then
9823 OBJDUMP="false"
9824 else
9825 case $cross_compiling:$ac_tool_warned in
9826 yes:)
9827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9828 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9829 ac_tool_warned=yes ;;
9830 esac
9831 OBJDUMP=$ac_ct_OBJDUMP
9832 fi
9833 else
9834 OBJDUMP="$ac_cv_prog_OBJDUMP"
9835 fi
9836
9837 ;;
9838 esac
9839
9840 test -z "$AS" && AS=as
9841
9842
9843
9844
9845
9846 test -z "$DLLTOOL" && DLLTOOL=dlltool
9847
9848
9849
9850
9851
9852 test -z "$OBJDUMP" && OBJDUMP=objdump
9853
9854
9855
9856
9857
9858
9859
9860 enable_dlopen=no
9861
9862
9863
9864 # Check whether --enable-shared was given.
9865 if test ${enable_shared+y}
9866 then :
9867 enableval=$enable_shared; p=${PACKAGE-default}
9868 case $enableval in
9869 yes) enable_shared=yes ;;
9870 no) enable_shared=no ;;
9871 *)
9872 enable_shared=no
9873 # Look at the argument we got. We use all the common list separators.
9874 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9875 for pkg in $enableval; do
9876 IFS=$lt_save_ifs
9877 if test "X$pkg" = "X$p"; then
9878 enable_shared=yes
9879 fi
9880 done
9881 IFS=$lt_save_ifs
9882 ;;
9883 esac
9884 else case e in #(
9885 e) enable_shared=yes ;;
9886 esac
9887 fi
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897 # Check whether --enable-static was given.
9898 if test ${enable_static+y}
9899 then :
9900 enableval=$enable_static; p=${PACKAGE-default}
9901 case $enableval in
9902 yes) enable_static=yes ;;
9903 no) enable_static=no ;;
9904 *)
9905 enable_static=no
9906 # Look at the argument we got. We use all the common list separators.
9907 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9908 for pkg in $enableval; do
9909 IFS=$lt_save_ifs
9910 if test "X$pkg" = "X$p"; then
9911 enable_static=yes
9912 fi
9913 done
9914 IFS=$lt_save_ifs
9915 ;;
9916 esac
9917 else case e in #(
9918 e) enable_static=yes ;;
9919 esac
9920 fi
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930 # Check whether --enable-pic was given.
9931 if test ${enable_pic+y}
9932 then :
9933 enableval=$enable_pic; lt_p=${PACKAGE-default}
9934 case $enableval in
9935 yes|no) pic_mode=$enableval ;;
9936 *)
9937 pic_mode=default
9938 # Look at the argument we got. We use all the common list separators.
9939 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9940 for lt_pkg in $enableval; do
9941 IFS=$lt_save_ifs
9942 if test "X$lt_pkg" = "X$lt_p"; then
9943 pic_mode=yes
9944 fi
9945 done
9946 IFS=$lt_save_ifs
9947 ;;
9948 esac
9949 else case e in #(
9950 e) # Check whether --with-pic was given.
9951 if test ${with_pic+y}
9952 then :
9953 withval=$with_pic; lt_p=${PACKAGE-default}
9954 case $withval in
9955 yes|no) pic_mode=$withval ;;
9956 *)
9957 pic_mode=default
9958 # Look at the argument we got. We use all the common list separators.
9959 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9960 for lt_pkg in $withval; do
9961 IFS=$lt_save_ifs
9962 if test "X$lt_pkg" = "X$lt_p"; then
9963 pic_mode=yes
9964 fi
9965 done
9966 IFS=$lt_save_ifs
9967 ;;
9968 esac
9969 else case e in #(
9970 e) pic_mode=default ;;
9971 esac
9972 fi
9973
9974 ;;
9975 esac
9976 fi
9977
9978
9979
9980
9981
9982
9983
9984
9985 # Check whether --enable-fast-install was given.
9986 if test ${enable_fast_install+y}
9987 then :
9988 enableval=$enable_fast_install; p=${PACKAGE-default}
9989 case $enableval in
9990 yes) enable_fast_install=yes ;;
9991 no) enable_fast_install=no ;;
9992 *)
9993 enable_fast_install=no
9994 # Look at the argument we got. We use all the common list separators.
9995 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9996 for pkg in $enableval; do
9997 IFS=$lt_save_ifs
9998 if test "X$pkg" = "X$p"; then
9999 enable_fast_install=yes
10000 fi
10001 done
10002 IFS=$lt_save_ifs
10003 ;;
10004 esac
10005 else case e in #(
10006 e) enable_fast_install=yes ;;
10007 esac
10008 fi
10009
10010
10011
10012
10013
10014
10015
10016
10017 shared_archive_member_spec=
10018 case $host,$enable_shared in
10019 power*-*-aix[5-9]*,yes)
10020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
10021 printf %s "checking which variant of shared library versioning to provide... " >&6; }
10022 # Check whether --enable-aix-soname was given.
10023 if test ${enable_aix_soname+y}
10024 then :
10025 enableval=$enable_aix_soname; case $enableval in
10026 aix|svr4|both)
10027 ;;
10028 *)
10029 as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5
10030 ;;
10031 esac
10032 lt_cv_with_aix_soname=$enable_aix_soname
10033 else case e in #(
10034 e) # Check whether --with-aix-soname was given.
10035 if test ${with_aix_soname+y}
10036 then :
10037 withval=$with_aix_soname; case $withval in
10038 aix|svr4|both)
10039 ;;
10040 *)
10041 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
10042 ;;
10043 esac
10044 lt_cv_with_aix_soname=$with_aix_soname
10045 else case e in #(
10046 e) if test ${lt_cv_with_aix_soname+y}
10047 then :
10048 printf %s "(cached) " >&6
10049 else case e in #(
10050 e) lt_cv_with_aix_soname=aix ;;
10051 esac
10052 fi
10053 ;;
10054 esac
10055 fi
10056
10057 enable_aix_soname=$lt_cv_with_aix_soname ;;
10058 esac
10059 fi
10060
10061 with_aix_soname=$enable_aix_soname
10062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
10063 printf "%s\n" "$with_aix_soname" >&6; }
10064 if test aix != "$with_aix_soname"; then
10065 # For the AIX way of multilib, we name the shared archive member
10066 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10067 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10068 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10069 # the AIX toolchain works better with OBJECT_MODE set (default 32).
10070 if test 64 = "${OBJECT_MODE-32}"; then
10071 shared_archive_member_spec=shr_64
10072 else
10073 shared_archive_member_spec=shr
10074 fi
10075 fi
10076 ;;
10077 *)
10078 with_aix_soname=aix
10079 ;;
10080 esac
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091 # This can be used to rebuild libtool when needed
10092 LIBTOOL_DEPS=$ltmain
10093
10094 # Always use our own libtool.
10095 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126 test -z "$LN_S" && LN_S="ln -s"
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141 if test -n "${ZSH_VERSION+set}"; then
10142 setopt NO_GLOB_SUBST
10143 fi
10144
10145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10146 printf %s "checking for objdir... " >&6; }
10147 if test ${lt_cv_objdir+y}
10148 then :
10149 printf %s "(cached) " >&6
10150 else case e in #(
10151 e) rm -f .libs 2>/dev/null
10152 mkdir .libs 2>/dev/null
10153 if test -d .libs; then
10154 lt_cv_objdir=.libs
10155 else
10156 # MS-DOS does not allow filenames that begin with a dot.
10157 lt_cv_objdir=_libs
10158 fi
10159 rmdir .libs 2>/dev/null ;;
10160 esac
10161 fi
10162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10163 printf "%s\n" "$lt_cv_objdir" >&6; }
10164 objdir=$lt_cv_objdir
10165
10166
10167
10168
10169
10170 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
10171
10172
10173
10174
10175 case $host_os in
10176 aix3*)
10177 # AIX sometimes has problems with the GCC collect2 program. For some
10178 # reason, if we set the COLLECT_NAMES environment variable, the problems
10179 # vanish in a puff of smoke.
10180 if test set != "${COLLECT_NAMES+set}"; then
10181 COLLECT_NAMES=
10182 export COLLECT_NAMES
10183 fi
10184 ;;
10185 esac
10186
10187 # Global variables:
10188 ofile=libtool
10189 can_build_shared=yes
10190
10191 # All known linkers require a '.a' archive for static linking (except MSVC and
10192 # ICC, which need '.lib').
10193 libext=a
10194
10195 with_gnu_ld=$lt_cv_prog_gnu_ld
10196
10197 old_CC=$CC
10198 old_CFLAGS=$CFLAGS
10199
10200 # Set sane defaults for various variables
10201 test -z "$CC" && CC=cc
10202 test -z "$LTCC" && LTCC=$CC
10203 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10204 test -z "$LD" && LD=ld
10205 test -z "$ac_objext" && ac_objext=o
10206
10207 func_cc_basename $compiler
10208 cc_basename=$func_cc_basename_result
10209
10210
10211 # Only perform the check for file, if the check method requires it
10212 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10213 case $deplibs_check_method in
10214 file_magic*)
10215 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10217 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
10218 if test ${lt_cv_path_MAGIC_CMD+y}
10219 then :
10220 printf %s "(cached) " >&6
10221 else case e in #(
10222 e) case $MAGIC_CMD in
10223 [\\/*] | ?:[\\/]*)
10224 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10225 ;;
10226 *)
10227 lt_save_MAGIC_CMD=$MAGIC_CMD
10228 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10229 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10230 for ac_dir in $ac_dummy; do
10231 IFS=$lt_save_ifs
10232 test -z "$ac_dir" && ac_dir=.
10233 if test -f "$ac_dir/${ac_tool_prefix}file"; then
10234 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10235 if test -n "$file_magic_test_file"; then
10236 case $deplibs_check_method in
10237 "file_magic "*)
10238 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10239 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10240 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10241 $EGREP "$file_magic_regex" > /dev/null; then
10242 :
10243 else
10244 cat <<_LT_EOF 1>&2
10245
10246 *** Warning: the command libtool uses to detect shared libraries,
10247 *** $file_magic_cmd, produces output that libtool cannot recognize.
10248 *** The result is that libtool may fail to recognize shared libraries
10249 *** as such. This will affect the creation of libtool libraries that
10250 *** depend on shared libraries, but programs linked with such libtool
10251 *** libraries will work regardless of this problem. Nevertheless, you
10252 *** may want to report the problem to your system manager and/or to
10253 *** [email protected]
10254
10255 _LT_EOF
10256 fi ;;
10257 esac
10258 fi
10259 break
10260 fi
10261 done
10262 IFS=$lt_save_ifs
10263 MAGIC_CMD=$lt_save_MAGIC_CMD
10264 ;;
10265 esac ;;
10266 esac
10267 fi
10268
10269 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10270 if test -n "$MAGIC_CMD"; then
10271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10272 printf "%s\n" "$MAGIC_CMD" >&6; }
10273 else
10274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10275 printf "%s\n" "no" >&6; }
10276 fi
10277
10278
10279
10280
10281
10282 if test -z "$lt_cv_path_MAGIC_CMD"; then
10283 if test -n "$ac_tool_prefix"; then
10284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10285 printf %s "checking for file... " >&6; }
10286 if test ${lt_cv_path_MAGIC_CMD+y}
10287 then :
10288 printf %s "(cached) " >&6
10289 else case e in #(
10290 e) case $MAGIC_CMD in
10291 [\\/*] | ?:[\\/]*)
10292 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10293 ;;
10294 *)
10295 lt_save_MAGIC_CMD=$MAGIC_CMD
10296 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10297 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10298 for ac_dir in $ac_dummy; do
10299 IFS=$lt_save_ifs
10300 test -z "$ac_dir" && ac_dir=.
10301 if test -f "$ac_dir/file"; then
10302 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10303 if test -n "$file_magic_test_file"; then
10304 case $deplibs_check_method in
10305 "file_magic "*)
10306 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10307 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10308 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10309 $EGREP "$file_magic_regex" > /dev/null; then
10310 :
10311 else
10312 cat <<_LT_EOF 1>&2
10313
10314 *** Warning: the command libtool uses to detect shared libraries,
10315 *** $file_magic_cmd, produces output that libtool cannot recognize.
10316 *** The result is that libtool may fail to recognize shared libraries
10317 *** as such. This will affect the creation of libtool libraries that
10318 *** depend on shared libraries, but programs linked with such libtool
10319 *** libraries will work regardless of this problem. Nevertheless, you
10320 *** may want to report the problem to your system manager and/or to
10321 *** [email protected]
10322
10323 _LT_EOF
10324 fi ;;
10325 esac
10326 fi
10327 break
10328 fi
10329 done
10330 IFS=$lt_save_ifs
10331 MAGIC_CMD=$lt_save_MAGIC_CMD
10332 ;;
10333 esac ;;
10334 esac
10335 fi
10336
10337 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10338 if test -n "$MAGIC_CMD"; then
10339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10340 printf "%s\n" "$MAGIC_CMD" >&6; }
10341 else
10342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10343 printf "%s\n" "no" >&6; }
10344 fi
10345
10346
10347 else
10348 MAGIC_CMD=:
10349 fi
10350 fi
10351
10352 fi
10353 ;;
10354 esac
10355
10356 # Use C for the default configuration in the libtool script
10357
10358 lt_save_CC=$CC
10359 ac_ext=c
10360 ac_cpp='$CPP $CPPFLAGS'
10361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10362 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10363 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10364
10365
10366 # Source file extension for C test sources.
10367 ac_ext=c
10368
10369 # Object file extension for compiled C test sources.
10370 objext=o
10371 objext=$objext
10372
10373 # Code to be used in simple compile tests
10374 lt_simple_compile_test_code="int some_variable = 0;"
10375
10376 # Code to be used in simple link tests
10377 lt_simple_link_test_code='int main(void){return(0);}'
10378
10379
10380
10381
10382
10383
10384
10385 # If no C compiler was specified, use CC.
10386 LTCC=${LTCC-"$CC"}
10387
10388 # If no C compiler flags were specified, use CFLAGS.
10389 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10390
10391 # Allow CC to be a program name with arguments.
10392 compiler=$CC
10393
10394 # Save the default compiler, since it gets overwritten when the other
10395 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10396 compiler_DEFAULT=$CC
10397
10398 # save warnings/boilerplate of simple test code
10399 ac_outfile=conftest.$ac_objext
10400 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10401 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10402 _lt_compiler_boilerplate=`cat conftest.err`
10403 $RM conftest*
10404
10405 ac_outfile=conftest.$ac_objext
10406 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10407 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10408 _lt_linker_boilerplate=`cat conftest.err`
10409 $RM -r conftest*
10410
10411
10412 ## CAVEAT EMPTOR:
10413 ## There is no encapsulation within the following macros, do not change
10414 ## the running order or otherwise move them around unless you know exactly
10415 ## what you are doing...
10416 if test -n "$compiler"; then
10417
10418 lt_prog_compiler_no_builtin_flag=
10419
10420 if test yes = "$GCC"; then
10421 case $cc_basename in
10422 nvcc*)
10423 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10424 *)
10425 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10426 esac
10427
10428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10429 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10430 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
10431 then :
10432 printf %s "(cached) " >&6
10433 else case e in #(
10434 e) lt_cv_prog_compiler_rtti_exceptions=no
10435 ac_outfile=conftest.$ac_objext
10436 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10437 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
10438 # Insert the option either (1) after the last *FLAGS variable, or
10439 # (2) before a word containing "conftest.", or (3) at the end.
10440 # Note that $ac_compile itself does not contain backslashes and begins
10441 # with a dollar sign (not a hyphen), so the echo should work correctly.
10442 # The option is referenced via a variable to avoid confusing sed.
10443 lt_compile=`echo "$ac_compile" | $SED \
10444 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10445 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10446 -e 's:$: $lt_compiler_flag:'`
10447 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10448 (eval "$lt_compile" 2>conftest.err)
10449 ac_status=$?
10450 cat conftest.err >&5
10451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10452 if (exit $ac_status) && test -s "$ac_outfile"; then
10453 # The compiler can only warn and ignore the option if not recognized
10454 # So say no if there are warnings other than the usual output.
10455 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10456 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10457 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10458 lt_cv_prog_compiler_rtti_exceptions=yes
10459 fi
10460 fi
10461 $RM conftest*
10462 ;;
10463 esac
10464 fi
10465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10466 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10467
10468 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10469 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10470 else
10471 :
10472 fi
10473
10474 fi
10475
10476
10477
10478
10479
10480
10481 lt_prog_compiler_wl=
10482 lt_prog_compiler_pic=
10483 lt_prog_compiler_static=
10484
10485
10486 if test yes = "$GCC"; then
10487 lt_prog_compiler_wl='-Wl,'
10488 lt_prog_compiler_static='-static'
10489
10490 case $host_os in
10491 aix*)
10492 # All AIX code is PIC.
10493 if test ia64 = "$host_cpu"; then
10494 # AIX 5 now supports IA64 processor
10495 lt_prog_compiler_static='-Bstatic'
10496 fi
10497 lt_prog_compiler_pic='-fPIC'
10498 ;;
10499
10500 amigaos*)
10501 case $host_cpu in
10502 powerpc)
10503 # see comment about AmigaOS4 .so support
10504 lt_prog_compiler_pic='-fPIC'
10505 ;;
10506 m68k)
10507 # FIXME: we need at least 68020 code to build shared libraries, but
10508 # adding the '-m68020' flag to GCC prevents building anything better,
10509 # like '-m68040'.
10510 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10511 ;;
10512 esac
10513 ;;
10514
10515 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10516 # PIC is the default for these OSes.
10517 ;;
10518
10519 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
10520 # This hack is so that the source file can tell whether it is being
10521 # built for inclusion in a dll (and should export symbols for example).
10522 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10523 # (--disable-auto-import) libraries
10524 lt_prog_compiler_pic='-DDLL_EXPORT'
10525 case $host_os in
10526 os2*)
10527 lt_prog_compiler_static='$wl-static'
10528 ;;
10529 esac
10530 ;;
10531
10532 darwin* | rhapsody*)
10533 # PIC is the default on this platform
10534 # Common symbols not allowed in MH_DYLIB files
10535 lt_prog_compiler_pic='-fno-common'
10536 ;;
10537
10538 haiku*)
10539 # PIC is the default for Haiku.
10540 # The "-static" flag exists, but is broken.
10541 lt_prog_compiler_static=
10542 ;;
10543
10544 hpux*)
10545 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10546 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10547 # sets the default TLS model and affects inlining.
10548 case $host_cpu in
10549 hppa*64*)
10550 # +Z the default
10551 ;;
10552 *)
10553 lt_prog_compiler_pic='-fPIC'
10554 ;;
10555 esac
10556 ;;
10557
10558 interix[3-9]*)
10559 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10560 # Instead, we relocate shared libraries at runtime.
10561 ;;
10562
10563 msdosdjgpp*)
10564 # Just because we use GCC doesn't mean we suddenly get shared libraries
10565 # on systems that don't support them.
10566 lt_prog_compiler_can_build_shared=no
10567 enable_shared=no
10568 ;;
10569
10570 *nto* | *qnx*)
10571 # QNX uses GNU C++, but need to define -shared option too, otherwise
10572 # it will coredump.
10573 lt_prog_compiler_pic='-fPIC -shared'
10574 ;;
10575
10576 sysv4*MP*)
10577 if test -d /usr/nec; then
10578 lt_prog_compiler_pic=-Kconform_pic
10579 fi
10580 ;;
10581
10582 *)
10583 lt_prog_compiler_pic='-fPIC'
10584 ;;
10585 esac
10586
10587 case $cc_basename in
10588 nvcc*) # Cuda Compiler Driver 2.2
10589 lt_prog_compiler_wl='-Xlinker '
10590 if test -n "$lt_prog_compiler_pic"; then
10591 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10592 fi
10593 ;;
10594 esac
10595 else
10596 # PORTME Check for flag to pass linker flags through the system compiler.
10597 case $host_os in
10598 aix*)
10599 lt_prog_compiler_wl='-Wl,'
10600 if test ia64 = "$host_cpu"; then
10601 # AIX 5 now supports IA64 processor
10602 lt_prog_compiler_static='-Bstatic'
10603 else
10604 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10605 fi
10606 ;;
10607
10608 darwin* | rhapsody*)
10609 # PIC is the default on this platform
10610 # Common symbols not allowed in MH_DYLIB files
10611 lt_prog_compiler_pic='-fno-common'
10612 case $cc_basename in
10613 nagfor*)
10614 # NAG Fortran compiler
10615 lt_prog_compiler_wl='-Wl,-Wl,,'
10616 lt_prog_compiler_pic='-PIC'
10617 lt_prog_compiler_static='-Bstatic'
10618 ;;
10619 esac
10620 ;;
10621
10622 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
10623 # This hack is so that the source file can tell whether it is being
10624 # built for inclusion in a dll (and should export symbols for example).
10625 lt_prog_compiler_pic='-DDLL_EXPORT'
10626 case $host_os in
10627 os2*)
10628 lt_prog_compiler_static='$wl-static'
10629 ;;
10630 esac
10631 ;;
10632
10633 hpux9* | hpux10* | hpux11*)
10634 lt_prog_compiler_wl='-Wl,'
10635 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10636 # not for PA HP-UX.
10637 case $host_cpu in
10638 hppa*64*|ia64*)
10639 # +Z the default
10640 ;;
10641 *)
10642 lt_prog_compiler_pic='+Z'
10643 ;;
10644 esac
10645 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10646 lt_prog_compiler_static='$wl-a ${wl}archive'
10647 ;;
10648
10649 irix5* | irix6* | nonstopux*)
10650 lt_prog_compiler_wl='-Wl,'
10651 # PIC (with -KPIC) is the default.
10652 lt_prog_compiler_static='-non_shared'
10653 ;;
10654
10655 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10656 case $cc_basename in
10657 # old Intel for x86_64, which still supported -KPIC.
10658 ecc*)
10659 lt_prog_compiler_wl='-Wl,'
10660 lt_prog_compiler_pic='-KPIC'
10661 lt_prog_compiler_static='-static'
10662 ;;
10663 *flang* | ftn | f18* | f95*)
10664 # Flang compiler.
10665 lt_prog_compiler_wl='-Wl,'
10666 lt_prog_compiler_pic='-fPIC'
10667 lt_prog_compiler_static='-static'
10668 ;;
10669 # icc used to be incompatible with GCC.
10670 # ICC 10 doesn't accept -KPIC any more.
10671 icc* | ifort*)
10672 lt_prog_compiler_wl='-Wl,'
10673 lt_prog_compiler_pic='-fPIC'
10674 lt_prog_compiler_static='-static'
10675 ;;
10676 # Lahey Fortran 8.1.
10677 lf95*)
10678 lt_prog_compiler_wl='-Wl,'
10679 lt_prog_compiler_pic='--shared'
10680 lt_prog_compiler_static='--static'
10681 ;;
10682 nagfor*)
10683 # NAG Fortran compiler
10684 lt_prog_compiler_wl='-Wl,-Wl,,'
10685 lt_prog_compiler_pic='-PIC'
10686 lt_prog_compiler_static='-Bstatic'
10687 ;;
10688 tcc*)
10689 # Fabrice Bellard et al's Tiny C Compiler
10690 lt_prog_compiler_wl='-Wl,'
10691 lt_prog_compiler_pic='-fPIC'
10692 lt_prog_compiler_static='-static'
10693 ;;
10694 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10695 # Portland Group compilers (*not* the Pentium gcc compiler,
10696 # which looks to be a dead project)
10697 lt_prog_compiler_wl='-Wl,'
10698 lt_prog_compiler_pic='-fpic'
10699 lt_prog_compiler_static='-Bstatic'
10700 ;;
10701 ccc*)
10702 lt_prog_compiler_wl='-Wl,'
10703 # All Alpha code is PIC.
10704 lt_prog_compiler_static='-non_shared'
10705 ;;
10706 xl* | bgxl* | bgf* | mpixl*)
10707 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10708 lt_prog_compiler_wl='-Wl,'
10709 lt_prog_compiler_pic='-qpic'
10710 lt_prog_compiler_static='-qstaticlink'
10711 ;;
10712 *)
10713 case `$CC -V 2>&1 | $SED 5q` in
10714 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10715 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10716 lt_prog_compiler_pic='-KPIC'
10717 lt_prog_compiler_static='-Bstatic'
10718 lt_prog_compiler_wl=''
10719 ;;
10720 *Sun\ F* | *Sun*Fortran*)
10721 lt_prog_compiler_pic='-KPIC'
10722 lt_prog_compiler_static='-Bstatic'
10723 lt_prog_compiler_wl='-Qoption ld '
10724 ;;
10725 *Sun\ C*)
10726 # Sun C 5.9
10727 lt_prog_compiler_pic='-KPIC'
10728 lt_prog_compiler_static='-Bstatic'
10729 lt_prog_compiler_wl='-Wl,'
10730 ;;
10731 *Intel*\ [CF]*Compiler*)
10732 lt_prog_compiler_wl='-Wl,'
10733 lt_prog_compiler_pic='-fPIC'
10734 lt_prog_compiler_static='-static'
10735 ;;
10736 *Portland\ Group*)
10737 lt_prog_compiler_wl='-Wl,'
10738 lt_prog_compiler_pic='-fpic'
10739 lt_prog_compiler_static='-Bstatic'
10740 ;;
10741 esac
10742 ;;
10743 esac
10744 ;;
10745
10746 newsos6)
10747 lt_prog_compiler_pic='-KPIC'
10748 lt_prog_compiler_static='-Bstatic'
10749 ;;
10750
10751 *-mlibc)
10752 lt_prog_compiler_wl='-Wl,'
10753 lt_prog_compiler_pic='-fPIC'
10754 lt_prog_compiler_static='-static'
10755 ;;
10756
10757 *nto* | *qnx*)
10758 # QNX uses GNU C++, but need to define -shared option too, otherwise
10759 # it will coredump.
10760 lt_prog_compiler_pic='-fPIC -shared'
10761 ;;
10762
10763 osf3* | osf4* | osf5*)
10764 lt_prog_compiler_wl='-Wl,'
10765 # All OSF/1 code is PIC.
10766 lt_prog_compiler_static='-non_shared'
10767 ;;
10768
10769 rdos*)
10770 lt_prog_compiler_static='-non_shared'
10771 ;;
10772
10773 serenity*)
10774 ;;
10775
10776 solaris*)
10777 lt_prog_compiler_pic='-KPIC'
10778 lt_prog_compiler_static='-Bstatic'
10779 case $cc_basename in
10780 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10781 lt_prog_compiler_wl='-Qoption ld ';;
10782 *)
10783 lt_prog_compiler_wl='-Wl,';;
10784 esac
10785 ;;
10786
10787 sunos4*)
10788 lt_prog_compiler_wl='-Qoption ld '
10789 lt_prog_compiler_pic='-PIC'
10790 lt_prog_compiler_static='-Bstatic'
10791 ;;
10792
10793 sysv4 | sysv4.2uw2* | sysv4.3*)
10794 lt_prog_compiler_wl='-Wl,'
10795 lt_prog_compiler_pic='-KPIC'
10796 lt_prog_compiler_static='-Bstatic'
10797 ;;
10798
10799 sysv4*MP*)
10800 if test -d /usr/nec; then
10801 lt_prog_compiler_pic='-Kconform_pic'
10802 lt_prog_compiler_static='-Bstatic'
10803 fi
10804 ;;
10805
10806 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10807 lt_prog_compiler_wl='-Wl,'
10808 lt_prog_compiler_pic='-KPIC'
10809 lt_prog_compiler_static='-Bstatic'
10810 ;;
10811
10812 unicos*)
10813 lt_prog_compiler_wl='-Wl,'
10814 lt_prog_compiler_can_build_shared=no
10815 ;;
10816
10817 uts4*)
10818 lt_prog_compiler_pic='-pic'
10819 lt_prog_compiler_static='-Bstatic'
10820 ;;
10821
10822 *)
10823 lt_prog_compiler_can_build_shared=no
10824 ;;
10825 esac
10826 fi
10827
10828 case $host_os in
10829 # For platforms that do not support PIC, -DPIC is meaningless:
10830 *djgpp*)
10831 lt_prog_compiler_pic=
10832 ;;
10833 *)
10834 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10835 ;;
10836 esac
10837
10838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10839 printf %s "checking for $compiler option to produce PIC... " >&6; }
10840 if test ${lt_cv_prog_compiler_pic+y}
10841 then :
10842 printf %s "(cached) " >&6
10843 else case e in #(
10844 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
10845 esac
10846 fi
10847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10848 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
10849 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10850
10851 #
10852 # Check to make sure the PIC flag actually works.
10853 #
10854 if test -n "$lt_prog_compiler_pic"; then
10855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10856 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10857 if test ${lt_cv_prog_compiler_pic_works+y}
10858 then :
10859 printf %s "(cached) " >&6
10860 else case e in #(
10861 e) lt_cv_prog_compiler_pic_works=no
10862 ac_outfile=conftest.$ac_objext
10863 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10864 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10865 # Insert the option either (1) after the last *FLAGS variable, or
10866 # (2) before a word containing "conftest.", or (3) at the end.
10867 # Note that $ac_compile itself does not contain backslashes and begins
10868 # with a dollar sign (not a hyphen), so the echo should work correctly.
10869 # The option is referenced via a variable to avoid confusing sed.
10870 lt_compile=`echo "$ac_compile" | $SED \
10871 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10872 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10873 -e 's:$: $lt_compiler_flag:'`
10874 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10875 (eval "$lt_compile" 2>conftest.err)
10876 ac_status=$?
10877 cat conftest.err >&5
10878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10879 if (exit $ac_status) && test -s "$ac_outfile"; then
10880 # The compiler can only warn and ignore the option if not recognized
10881 # So say no if there are warnings other than the usual output.
10882 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10883 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10884 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10885 lt_cv_prog_compiler_pic_works=yes
10886 fi
10887 fi
10888 $RM conftest*
10889 ;;
10890 esac
10891 fi
10892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10893 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
10894
10895 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10896 case $lt_prog_compiler_pic in
10897 "" | " "*) ;;
10898 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10899 esac
10900 else
10901 lt_prog_compiler_pic=
10902 lt_prog_compiler_can_build_shared=no
10903 fi
10904
10905 fi
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917 #
10918 # Check to make sure the static flag actually works.
10919 #
10920 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10922 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10923 if test ${lt_cv_prog_compiler_static_works+y}
10924 then :
10925 printf %s "(cached) " >&6
10926 else case e in #(
10927 e) lt_cv_prog_compiler_static_works=no
10928 save_LDFLAGS=$LDFLAGS
10929 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10930 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10931 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10932 # The linker can only warn and ignore the option if not recognized
10933 # So say no if there are warnings
10934 if test -s conftest.err; then
10935 # Append any errors to the config.log.
10936 cat conftest.err 1>&5
10937 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10938 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10939 if diff conftest.exp conftest.er2 >/dev/null; then
10940 lt_cv_prog_compiler_static_works=yes
10941 fi
10942 else
10943 lt_cv_prog_compiler_static_works=yes
10944 fi
10945 fi
10946 $RM -r conftest*
10947 LDFLAGS=$save_LDFLAGS
10948 ;;
10949 esac
10950 fi
10951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10952 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
10953
10954 if test yes = "$lt_cv_prog_compiler_static_works"; then
10955 :
10956 else
10957 lt_prog_compiler_static=
10958 fi
10959
10960
10961
10962
10963
10964
10965
10966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10967 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10968 if test ${lt_cv_prog_compiler_c_o+y}
10969 then :
10970 printf %s "(cached) " >&6
10971 else case e in #(
10972 e) lt_cv_prog_compiler_c_o=no
10973 $RM -r conftest 2>/dev/null
10974 mkdir conftest
10975 cd conftest
10976 mkdir out
10977 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10978
10979 lt_compiler_flag="-o out/conftest2.$ac_objext"
10980 # Insert the option either (1) after the last *FLAGS variable, or
10981 # (2) before a word containing "conftest.", or (3) at the end.
10982 # Note that $ac_compile itself does not contain backslashes and begins
10983 # with a dollar sign (not a hyphen), so the echo should work correctly.
10984 lt_compile=`echo "$ac_compile" | $SED \
10985 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10986 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10987 -e 's:$: $lt_compiler_flag:'`
10988 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10989 (eval "$lt_compile" 2>out/conftest.err)
10990 ac_status=$?
10991 cat out/conftest.err >&5
10992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10993 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10994 then
10995 # The compiler can only warn and ignore the option if not recognized
10996 # So say no if there are warnings
10997 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10998 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10999 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11000 lt_cv_prog_compiler_c_o=yes
11001 fi
11002 fi
11003 chmod u+w . 2>&5
11004 $RM conftest*
11005 # SGI C++ compiler will create directory out/ii_files/ for
11006 # template instantiation
11007 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11008 $RM out/* && rmdir out
11009 cd ..
11010 $RM -r conftest
11011 $RM conftest*
11012 ;;
11013 esac
11014 fi
11015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11016 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
11017
11018
11019
11020
11021
11022
11023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11024 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11025 if test ${lt_cv_prog_compiler_c_o+y}
11026 then :
11027 printf %s "(cached) " >&6
11028 else case e in #(
11029 e) lt_cv_prog_compiler_c_o=no
11030 $RM -r conftest 2>/dev/null
11031 mkdir conftest
11032 cd conftest
11033 mkdir out
11034 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11035
11036 lt_compiler_flag="-o out/conftest2.$ac_objext"
11037 # Insert the option either (1) after the last *FLAGS variable, or
11038 # (2) before a word containing "conftest.", or (3) at the end.
11039 # Note that $ac_compile itself does not contain backslashes and begins
11040 # with a dollar sign (not a hyphen), so the echo should work correctly.
11041 lt_compile=`echo "$ac_compile" | $SED \
11042 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11043 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11044 -e 's:$: $lt_compiler_flag:'`
11045 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11046 (eval "$lt_compile" 2>out/conftest.err)
11047 ac_status=$?
11048 cat out/conftest.err >&5
11049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11050 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11051 then
11052 # The compiler can only warn and ignore the option if not recognized
11053 # So say no if there are warnings
11054 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11055 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11056 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11057 lt_cv_prog_compiler_c_o=yes
11058 fi
11059 fi
11060 chmod u+w . 2>&5
11061 $RM conftest*
11062 # SGI C++ compiler will create directory out/ii_files/ for
11063 # template instantiation
11064 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11065 $RM out/* && rmdir out
11066 cd ..
11067 $RM -r conftest
11068 $RM conftest*
11069 ;;
11070 esac
11071 fi
11072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11073 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
11074
11075
11076
11077
11078 hard_links=nottested
11079 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
11080 # do not overwrite the value of need_locks provided by the user
11081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11082 printf %s "checking if we can lock with hard links... " >&6; }
11083 hard_links=yes
11084 $RM conftest*
11085 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11086 touch conftest.a
11087 ln conftest.a conftest.b 2>&5 || hard_links=no
11088 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11090 printf "%s\n" "$hard_links" >&6; }
11091 if test no = "$hard_links"; then
11092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11093 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
11094 need_locks=warn
11095 fi
11096 else
11097 need_locks=no
11098 fi
11099
11100
11101
11102
11103
11104
11105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11106 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11107
11108 runpath_var=
11109 allow_undefined_flag=
11110 always_export_symbols=no
11111 archive_cmds=
11112 archive_expsym_cmds=
11113 compiler_needs_object=no
11114 enable_shared_with_static_runtimes=no
11115 export_dynamic_flag_spec=
11116 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11117 hardcode_automatic=no
11118 hardcode_direct=no
11119 hardcode_direct_absolute=no
11120 hardcode_libdir_flag_spec=
11121 hardcode_libdir_separator=
11122 hardcode_minus_L=no
11123 hardcode_shlibpath_var=unsupported
11124 inherit_rpath=no
11125 link_all_deplibs=unknown
11126 module_cmds=
11127 module_expsym_cmds=
11128 old_archive_from_new_cmds=
11129 old_archive_from_expsyms_cmds=
11130 thread_safe_flag_spec=
11131 whole_archive_flag_spec=
11132 # include_expsyms should be a list of space-separated symbols to be *always*
11133 # included in the symbol list
11134 include_expsyms=
11135 # exclude_expsyms can be an extended regexp of symbols to exclude
11136 # it will be wrapped by ' (' and ')$', so one must not match beginning or
11137 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11138 # as well as any symbol that contains 'd'.
11139 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11140 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11141 # platforms (ab)use it in PIC code, but their linkers get confused if
11142 # the symbol is explicitly referenced. Since portable code cannot
11143 # rely on this symbol name, it's probably fine to never include it in
11144 # preloaded symbol tables.
11145 # Exclude shared library initialization/finalization symbols.
11146 extract_expsyms_cmds=
11147
11148 case $host_os in
11149 cygwin* | mingw* | windows* | pw32* | cegcc*)
11150 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
11151 # When not using gcc, we currently assume that we are using
11152 # Microsoft Visual C++ or Intel C++ Compiler.
11153 if test yes != "$GCC"; then
11154 with_gnu_ld=no
11155 fi
11156 ;;
11157 interix*)
11158 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
11159 with_gnu_ld=yes
11160 ;;
11161 esac
11162
11163 ld_shlibs=yes
11164
11165 # On some targets, GNU ld is compatible enough with the native linker
11166 # that we're better off using the native interface for both.
11167 lt_use_gnu_ld_interface=no
11168 if test yes = "$with_gnu_ld"; then
11169 case $host_os in
11170 aix*)
11171 # The AIX port of GNU ld has always aspired to compatibility
11172 # with the native linker. However, as the warning in the GNU ld
11173 # block says, versions before 2.19.5* couldn't really create working
11174 # shared libraries, regardless of the interface used.
11175 case `$LD -v 2>&1` in
11176 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11177 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11178 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11179 *)
11180 lt_use_gnu_ld_interface=yes
11181 ;;
11182 esac
11183 ;;
11184 *)
11185 lt_use_gnu_ld_interface=yes
11186 ;;
11187 esac
11188 fi
11189
11190 if test yes = "$lt_use_gnu_ld_interface"; then
11191 # If archive_cmds runs LD, not CC, wlarc should be empty
11192 wlarc='$wl'
11193
11194 # Set some defaults for GNU ld with shared library support. These
11195 # are reset later if shared libraries are not supported. Putting them
11196 # here allows them to be overridden if necessary.
11197 runpath_var=LD_RUN_PATH
11198 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11199 export_dynamic_flag_spec='$wl--export-dynamic'
11200 # ancient GNU ld didn't support --whole-archive et. al.
11201 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11202 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11203 else
11204 whole_archive_flag_spec=
11205 fi
11206 supports_anon_versioning=no
11207 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
11208 *GNU\ gold*) supports_anon_versioning=yes ;;
11209 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11210 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11211 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11212 *\ 2.11.*) ;; # other 2.11 versions
11213 *) supports_anon_versioning=yes ;;
11214 esac
11215
11216 # See if GNU ld supports shared libraries.
11217 case $host_os in
11218 aix[3-9]*)
11219 # On AIX/PPC, the GNU linker is very broken
11220 if test ia64 != "$host_cpu"; then
11221 ld_shlibs=no
11222 cat <<_LT_EOF 1>&2
11223
11224 *** Warning: the GNU linker, at least up to release 2.19, is reported
11225 *** to be unable to reliably create shared libraries on AIX.
11226 *** Therefore, libtool is disabling shared libraries support. If you
11227 *** really care for shared libraries, you may want to install binutils
11228 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11229 *** You will then need to restart the configuration process.
11230
11231 _LT_EOF
11232 fi
11233 ;;
11234
11235 amigaos*)
11236 case $host_cpu in
11237 powerpc)
11238 # see comment about AmigaOS4 .so support
11239 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11240 archive_expsym_cmds=''
11241 ;;
11242 m68k)
11243 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)'
11244 hardcode_libdir_flag_spec='-L$libdir'
11245 hardcode_minus_L=yes
11246 ;;
11247 esac
11248 ;;
11249
11250 beos*)
11251 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11252 allow_undefined_flag=unsupported
11253 # Joseph Beckenbach <[email protected]> says some releases of gcc
11254 # support --undefined. This deserves some investigation. FIXME
11255 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11256 else
11257 ld_shlibs=no
11258 fi
11259 ;;
11260
11261 cygwin* | mingw* | windows* | pw32* | cegcc*)
11262 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11263 # as there is no search path for DLLs.
11264 hardcode_libdir_flag_spec='-L$libdir'
11265 export_dynamic_flag_spec='$wl--export-all-symbols'
11266 allow_undefined_flag=unsupported
11267 always_export_symbols=no
11268 enable_shared_with_static_runtimes=yes
11269 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'
11270 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11271 file_list_spec='@'
11272
11273 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11274 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11275 # If the export-symbols file already is a .def file, use it as
11276 # is; otherwise, prepend EXPORTS...
11277 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11278 cp $export_symbols $output_objdir/$soname.def;
11279 else
11280 echo EXPORTS > $output_objdir/$soname.def;
11281 cat $export_symbols >> $output_objdir/$soname.def;
11282 fi~
11283 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11284 else
11285 ld_shlibs=no
11286 fi
11287 ;;
11288
11289 haiku*)
11290 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11291 link_all_deplibs=no
11292 ;;
11293
11294 os2*)
11295 hardcode_libdir_flag_spec='-L$libdir'
11296 hardcode_minus_L=yes
11297 allow_undefined_flag=unsupported
11298 shrext_cmds=.dll
11299 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11300 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11301 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11302 $ECHO EXPORTS >> $output_objdir/$libname.def~
11303 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11304 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11305 emximp -o $lib $output_objdir/$libname.def'
11306 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11307 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11308 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11309 $ECHO EXPORTS >> $output_objdir/$libname.def~
11310 prefix_cmds="$SED"~
11311 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11312 prefix_cmds="$prefix_cmds -e 1d";
11313 fi~
11314 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11315 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11316 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11317 emximp -o $lib $output_objdir/$libname.def'
11318 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11319 enable_shared_with_static_runtimes=yes
11320 file_list_spec='@'
11321 ;;
11322
11323 interix[3-9]*)
11324 hardcode_direct=no
11325 hardcode_shlibpath_var=no
11326 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11327 export_dynamic_flag_spec='$wl-E'
11328 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11329 # Instead, shared libraries are loaded at an image base (0x10000000 by
11330 # default) and relocated if they conflict, which is a slow very memory
11331 # consuming and fragmenting process. To avoid this, we pick a random,
11332 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11333 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11334 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11335 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'
11336 ;;
11337
11338 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11339 tmp_diet=no
11340 if test linux-dietlibc = "$host_os"; then
11341 case $cc_basename in
11342 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11343 esac
11344 fi
11345 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11346 && test no = "$tmp_diet"
11347 then
11348 tmp_addflag=' $pic_flag'
11349 tmp_sharedflag='-shared'
11350 case $cc_basename,$host_cpu in
11351 pgcc*) # Portland Group C compiler
11352 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'
11353 tmp_addflag=' $pic_flag'
11354 ;;
11355 pgf77* | pgf90* | pgf95* | pgfortran*)
11356 # Portland Group f77 and f90 compilers
11357 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'
11358 tmp_addflag=' $pic_flag -Mnomain' ;;
11359 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11360 tmp_addflag=' -i_dynamic' ;;
11361 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11362 tmp_addflag=' -i_dynamic -nofor_main' ;;
11363 ifc* | ifort*) # Intel Fortran compiler
11364 tmp_addflag=' -nofor_main' ;;
11365 lf95*) # Lahey Fortran 8.1
11366 whole_archive_flag_spec=
11367 tmp_sharedflag='--shared' ;;
11368 nagfor*) # NAGFOR 5.3
11369 tmp_sharedflag='-Wl,-shared' ;;
11370 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11371 tmp_sharedflag='-qmkshrobj'
11372 tmp_addflag= ;;
11373 nvcc*) # Cuda Compiler Driver 2.2
11374 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'
11375 compiler_needs_object=yes
11376 ;;
11377 esac
11378 case `$CC -V 2>&1 | $SED 5q` in
11379 *Sun\ C*) # Sun C 5.9
11380 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'
11381 compiler_needs_object=yes
11382 tmp_sharedflag='-G' ;;
11383 *Sun\ F*) # Sun Fortran 8.3
11384 tmp_sharedflag='-G' ;;
11385 esac
11386 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11387
11388 if test yes = "$supports_anon_versioning"; then
11389 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11390 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11391 echo "local: *; };" >> $output_objdir/$libname.ver~
11392 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11393 fi
11394
11395 case $cc_basename in
11396 tcc*)
11397 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11398 export_dynamic_flag_spec='-rdynamic'
11399 ;;
11400 xlf* | bgf* | bgxlf* | mpixlf*)
11401 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11402 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11403 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11404 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11405 if test yes = "$supports_anon_versioning"; then
11406 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11407 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11408 echo "local: *; };" >> $output_objdir/$libname.ver~
11409 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11410 fi
11411 ;;
11412 esac
11413 else
11414 ld_shlibs=no
11415 fi
11416 ;;
11417
11418 *-mlibc)
11419 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11420 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11421 ;;
11422
11423 netbsd* | netbsdelf*-gnu)
11424 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11425 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11426 wlarc=
11427 else
11428 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11429 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11430 fi
11431 ;;
11432
11433 solaris*)
11434 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11435 ld_shlibs=no
11436 cat <<_LT_EOF 1>&2
11437
11438 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11439 *** create shared libraries on Solaris systems. Therefore, libtool
11440 *** is disabling shared libraries support. We urge you to upgrade GNU
11441 *** binutils to release 2.9.1 or newer. Another option is to modify
11442 *** your PATH or compiler configuration so that the native linker is
11443 *** used, and then restart.
11444
11445 _LT_EOF
11446 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11447 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11448 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11449 else
11450 ld_shlibs=no
11451 fi
11452 ;;
11453
11454 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11455 case `$LD -v 2>&1` in
11456 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11457 ld_shlibs=no
11458 cat <<_LT_EOF 1>&2
11459
11460 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11461 *** reliably create shared libraries on SCO systems. Therefore, libtool
11462 *** is disabling shared libraries support. We urge you to upgrade GNU
11463 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11464 *** your PATH or compiler configuration so that the native linker is
11465 *** used, and then restart.
11466
11467 _LT_EOF
11468 ;;
11469 *)
11470 # For security reasons, it is highly recommended that you always
11471 # use absolute paths for naming shared libraries, and exclude the
11472 # DT_RUNPATH tag from executables and libraries. But doing so
11473 # requires that you compile everything twice, which is a pain.
11474 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11475 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11476 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11477 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11478 else
11479 ld_shlibs=no
11480 fi
11481 ;;
11482 esac
11483 ;;
11484
11485 sunos4*)
11486 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11487 wlarc=
11488 hardcode_direct=yes
11489 hardcode_shlibpath_var=no
11490 ;;
11491
11492 *)
11493 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11494 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11495 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11496 else
11497 ld_shlibs=no
11498 fi
11499 ;;
11500 esac
11501
11502 if test no = "$ld_shlibs"; then
11503 runpath_var=
11504 hardcode_libdir_flag_spec=
11505 export_dynamic_flag_spec=
11506 whole_archive_flag_spec=
11507 fi
11508 else
11509 # PORTME fill in a description of your system's linker (not GNU ld)
11510 case $host_os in
11511 aix3*)
11512 allow_undefined_flag=unsupported
11513 always_export_symbols=yes
11514 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'
11515 # Note: this linker hardcodes the directories in LIBPATH if there
11516 # are no directories specified by -L.
11517 hardcode_minus_L=yes
11518 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11519 # Neither direct hardcoding nor static linking is supported with a
11520 # broken collect2.
11521 hardcode_direct=unsupported
11522 fi
11523 ;;
11524
11525 aix[4-9]*)
11526 if test ia64 = "$host_cpu"; then
11527 # On IA64, the linker does run time linking by default, so we don't
11528 # have to do anything special.
11529 aix_use_runtimelinking=no
11530 exp_sym_flag='-Bexport'
11531 no_entry_flag=
11532 else
11533 # If we're using GNU nm, then we don't want the "-C" option.
11534 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
11535 # Without the "-l" option, or with the "-B" option, AIX nm treats
11536 # weak defined symbols like other global defined symbols, whereas
11537 # GNU nm marks them as "W".
11538 # While the 'weak' keyword is ignored in the Export File, we need
11539 # it in the Import File for the 'aix-soname' feature, so we have
11540 # to replace the "-B" option with "-P" for AIX nm.
11541 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11542 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'
11543 else
11544 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'
11545 fi
11546 aix_use_runtimelinking=no
11547
11548 # Test if we are trying to use run time linking or normal
11549 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11550 # have runtime linking enabled, and use it for executables.
11551 # For shared libraries, we enable/disable runtime linking
11552 # depending on the kind of the shared library created -
11553 # when "with_aix_soname,aix_use_runtimelinking" is:
11554 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
11555 # "aix,yes" lib.so shared, rtl:yes, for executables
11556 # lib.a static archive
11557 # "both,no" lib.so.V(shr.o) shared, rtl:yes
11558 # lib.a(lib.so.V) shared, rtl:no, for executables
11559 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11560 # lib.a(lib.so.V) shared, rtl:no
11561 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
11562 # lib.a static archive
11563 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11564 for ld_flag in $LDFLAGS; do
11565 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11566 aix_use_runtimelinking=yes
11567 break
11568 fi
11569 done
11570 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11571 # With aix-soname=svr4, we create the lib.so.V shared archives only,
11572 # so we don't have lib.a shared libs to link our executables.
11573 # We have to force runtime linking in this case.
11574 aix_use_runtimelinking=yes
11575 LDFLAGS="$LDFLAGS -Wl,-brtl"
11576 fi
11577 ;;
11578 esac
11579
11580 exp_sym_flag='-bexport'
11581 no_entry_flag='-bnoentry'
11582 fi
11583
11584 # When large executables or shared objects are built, AIX ld can
11585 # have problems creating the table of contents. If linking a library
11586 # or program results in "error TOC overflow" add -mminimal-toc to
11587 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11588 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11589
11590 archive_cmds=''
11591 hardcode_direct=yes
11592 hardcode_direct_absolute=yes
11593 hardcode_libdir_separator=':'
11594 link_all_deplibs=yes
11595 file_list_spec='$wl-f,'
11596 case $with_aix_soname,$aix_use_runtimelinking in
11597 aix,*) ;; # traditional, no import file
11598 svr4,* | *,yes) # use import file
11599 # The Import File defines what to hardcode.
11600 hardcode_direct=no
11601 hardcode_direct_absolute=no
11602 ;;
11603 esac
11604
11605 if test yes = "$GCC"; then
11606 case $host_os in aix4.[012]|aix4.[012].*)
11607 # We only want to do this on AIX 4.2 and lower, the check
11608 # below for broken collect2 doesn't work under 4.3+
11609 collect2name=`$CC -print-prog-name=collect2`
11610 if test -f "$collect2name" &&
11611 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11612 then
11613 # We have reworked collect2
11614 :
11615 else
11616 # We have old collect2
11617 hardcode_direct=unsupported
11618 # It fails to find uninstalled libraries when the uninstalled
11619 # path is not listed in the libpath. Setting hardcode_minus_L
11620 # to unsupported forces relinking
11621 hardcode_minus_L=yes
11622 hardcode_libdir_flag_spec='-L$libdir'
11623 hardcode_libdir_separator=
11624 fi
11625 ;;
11626 esac
11627 shared_flag='-shared'
11628 if test yes = "$aix_use_runtimelinking"; then
11629 shared_flag="$shared_flag "'$wl-G'
11630 fi
11631 # Need to ensure runtime linking is disabled for the traditional
11632 # shared library, or the linker may eventually find shared libraries
11633 # /with/ Import File - we do not want to mix them.
11634 shared_flag_aix='-shared'
11635 shared_flag_svr4='-shared $wl-G'
11636 else
11637 # not using gcc
11638 if test ia64 = "$host_cpu"; then
11639 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11640 # chokes on -Wl,-G. The following line is correct:
11641 shared_flag='-G'
11642 else
11643 if test yes = "$aix_use_runtimelinking"; then
11644 shared_flag='$wl-G'
11645 else
11646 shared_flag='$wl-bM:SRE'
11647 fi
11648 shared_flag_aix='$wl-bM:SRE'
11649 shared_flag_svr4='$wl-G'
11650 fi
11651 fi
11652
11653 export_dynamic_flag_spec='$wl-bexpall'
11654 # It seems that -bexpall does not export symbols beginning with
11655 # underscore (_), so it is better to generate a list of symbols to export.
11656 always_export_symbols=yes
11657 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11658 # Warning - without using the other runtime loading flags (-brtl),
11659 # -berok will link without error, but may produce a broken library.
11660 allow_undefined_flag='-berok'
11661 # Determine the default libpath from the value encoded in an
11662 # empty executable.
11663 if test set = "${lt_cv_aix_libpath+set}"; then
11664 aix_libpath=$lt_cv_aix_libpath
11665 else
11666 if test ${lt_cv_aix_libpath_+y}
11667 then :
11668 printf %s "(cached) " >&6
11669 else case e in #(
11670 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11671 /* end confdefs.h. */
11672
11673 int
11674 main (void)
11675 {
11676
11677 ;
11678 return 0;
11679 }
11680 _ACEOF
11681 if ac_fn_c_try_link "$LINENO"
11682 then :
11683
11684 lt_aix_libpath_sed='
11685 /Import File Strings/,/^$/ {
11686 /^0/ {
11687 s/^0 *\([^ ]*\) *$/\1/
11688 p
11689 }
11690 }'
11691 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11692 # Check for a 64-bit object if we didn't find anything.
11693 if test -z "$lt_cv_aix_libpath_"; then
11694 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11695 fi
11696 fi
11697 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11698 conftest$ac_exeext conftest.$ac_ext
11699 if test -z "$lt_cv_aix_libpath_"; then
11700 lt_cv_aix_libpath_=/usr/lib:/lib
11701 fi
11702 ;;
11703 esac
11704 fi
11705
11706 aix_libpath=$lt_cv_aix_libpath_
11707 fi
11708
11709 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11710 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
11711 else
11712 if test ia64 = "$host_cpu"; then
11713 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11714 allow_undefined_flag="-z nodefs"
11715 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"
11716 else
11717 # Determine the default libpath from the value encoded in an
11718 # empty executable.
11719 if test set = "${lt_cv_aix_libpath+set}"; then
11720 aix_libpath=$lt_cv_aix_libpath
11721 else
11722 if test ${lt_cv_aix_libpath_+y}
11723 then :
11724 printf %s "(cached) " >&6
11725 else case e in #(
11726 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11727 /* end confdefs.h. */
11728
11729 int
11730 main (void)
11731 {
11732
11733 ;
11734 return 0;
11735 }
11736 _ACEOF
11737 if ac_fn_c_try_link "$LINENO"
11738 then :
11739
11740 lt_aix_libpath_sed='
11741 /Import File Strings/,/^$/ {
11742 /^0/ {
11743 s/^0 *\([^ ]*\) *$/\1/
11744 p
11745 }
11746 }'
11747 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11748 # Check for a 64-bit object if we didn't find anything.
11749 if test -z "$lt_cv_aix_libpath_"; then
11750 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11751 fi
11752 fi
11753 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11754 conftest$ac_exeext conftest.$ac_ext
11755 if test -z "$lt_cv_aix_libpath_"; then
11756 lt_cv_aix_libpath_=/usr/lib:/lib
11757 fi
11758 ;;
11759 esac
11760 fi
11761
11762 aix_libpath=$lt_cv_aix_libpath_
11763 fi
11764
11765 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11766 # Warning - without using the other run time loading flags,
11767 # -berok will link without error, but may produce a broken library.
11768 no_undefined_flag=' $wl-bernotok'
11769 allow_undefined_flag=' $wl-berok'
11770 if test yes = "$with_gnu_ld"; then
11771 # We only use this code for GNU lds that support --whole-archive.
11772 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11773 else
11774 # Exported symbols can be pulled into shared objects from archives
11775 whole_archive_flag_spec='$convenience'
11776 fi
11777 archive_cmds_need_lc=yes
11778 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11779 # -brtl affects multiple linker settings, -berok does not and is overridden later
11780 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11781 if test svr4 != "$with_aix_soname"; then
11782 # This is similar to how AIX traditionally builds its shared libraries.
11783 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'
11784 fi
11785 if test aix != "$with_aix_soname"; then
11786 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'
11787 else
11788 # used by -dlpreopen to get the symbols
11789 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
11790 fi
11791 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11792 fi
11793 fi
11794 ;;
11795
11796 amigaos*)
11797 case $host_cpu in
11798 powerpc)
11799 # see comment about AmigaOS4 .so support
11800 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11801 archive_expsym_cmds=''
11802 ;;
11803 m68k)
11804 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)'
11805 hardcode_libdir_flag_spec='-L$libdir'
11806 hardcode_minus_L=yes
11807 ;;
11808 esac
11809 ;;
11810
11811 bsdi[45]*)
11812 export_dynamic_flag_spec=-rdynamic
11813 ;;
11814
11815 cygwin* | mingw* | windows* | pw32* | cegcc*)
11816 # When not using gcc, we currently assume that we are using
11817 # Microsoft Visual C++ or Intel C++ Compiler.
11818 # hardcode_libdir_flag_spec is actually meaningless, as there is
11819 # no search path for DLLs.
11820 case $cc_basename in
11821 cl* | icl*)
11822 # Native MSVC or ICC
11823 hardcode_libdir_flag_spec=' '
11824 allow_undefined_flag=unsupported
11825 always_export_symbols=yes
11826 file_list_spec='@'
11827 # Tell ltmain to make .lib files, not .a files.
11828 libext=lib
11829 # Tell ltmain to make .dll files, not .so files.
11830 shrext_cmds=.dll
11831 # FIXME: Setting linknames here is a bad hack.
11832 archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11833 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11834 cp "$export_symbols" "$output_objdir/$soname.def";
11835 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11836 else
11837 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11838 fi~
11839 $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11840 linknames='
11841 # The linker will not automatically build a static lib if we build a DLL.
11842 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11843 enable_shared_with_static_runtimes=yes
11844 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11845 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11846 # Don't use ranlib
11847 old_postinstall_cmds='chmod 644 $oldlib'
11848 postlink_cmds='lt_outputfile="@OUTPUT@"~
11849 lt_tool_outputfile="@TOOL_OUTPUT@"~
11850 case $lt_outputfile in
11851 *.exe|*.EXE) ;;
11852 *)
11853 lt_outputfile=$lt_outputfile.exe
11854 lt_tool_outputfile=$lt_tool_outputfile.exe
11855 ;;
11856 esac~
11857 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11858 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11859 $RM "$lt_outputfile.manifest";
11860 fi'
11861 ;;
11862 *)
11863 # Assume MSVC and ICC wrapper
11864 hardcode_libdir_flag_spec=' '
11865 allow_undefined_flag=unsupported
11866 # Tell ltmain to make .lib files, not .a files.
11867 libext=lib
11868 # Tell ltmain to make .dll files, not .so files.
11869 shrext_cmds=.dll
11870 # FIXME: Setting linknames here is a bad hack.
11871 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11872 # The linker will automatically build a .lib file if we build a DLL.
11873 old_archive_from_new_cmds='true'
11874 # FIXME: Should let the user specify the lib program.
11875 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11876 enable_shared_with_static_runtimes=yes
11877 ;;
11878 esac
11879 ;;
11880
11881 darwin* | rhapsody*)
11882
11883
11884 archive_cmds_need_lc=no
11885 hardcode_direct=no
11886 hardcode_automatic=yes
11887 hardcode_shlibpath_var=unsupported
11888 if test yes = "$lt_cv_ld_force_load"; then
11889 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\"`'
11890
11891 else
11892 whole_archive_flag_spec=''
11893 fi
11894 link_all_deplibs=yes
11895 allow_undefined_flag=$_lt_dar_allow_undefined
11896 case $cc_basename in
11897 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11898 *) _lt_dar_can_shared=$GCC ;;
11899 esac
11900 if test yes = "$_lt_dar_can_shared"; then
11901 output_verbose_link_cmd=func_echo_all
11902 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11903 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11904 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"
11905 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"
11906
11907 else
11908 ld_shlibs=no
11909 fi
11910
11911 ;;
11912
11913 dgux*)
11914 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11915 hardcode_libdir_flag_spec='-L$libdir'
11916 hardcode_shlibpath_var=no
11917 ;;
11918
11919 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11920 # support. Future versions do this automatically, but an explicit c++rt0.o
11921 # does not break anything, and helps significantly (at the cost of a little
11922 # extra space).
11923 freebsd2.2*)
11924 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11925 hardcode_libdir_flag_spec='-R$libdir'
11926 hardcode_direct=yes
11927 hardcode_shlibpath_var=no
11928 ;;
11929
11930 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11931 freebsd2.*)
11932 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11933 hardcode_direct=yes
11934 hardcode_minus_L=yes
11935 hardcode_shlibpath_var=no
11936 ;;
11937
11938 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11939 freebsd* | dragonfly* | midnightbsd*)
11940 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11941 hardcode_libdir_flag_spec='-R$libdir'
11942 hardcode_direct=yes
11943 hardcode_shlibpath_var=no
11944 ;;
11945
11946 hpux9*)
11947 if test yes = "$GCC"; then
11948 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'
11949 else
11950 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'
11951 fi
11952 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11953 hardcode_libdir_separator=:
11954 hardcode_direct=yes
11955
11956 # hardcode_minus_L: Not really in the search PATH,
11957 # but as the default location of the library.
11958 hardcode_minus_L=yes
11959 export_dynamic_flag_spec='$wl-E'
11960 ;;
11961
11962 hpux10*)
11963 if test yes,no = "$GCC,$with_gnu_ld"; then
11964 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11965 else
11966 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11967 fi
11968 if test no = "$with_gnu_ld"; then
11969 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11970 hardcode_libdir_separator=:
11971 hardcode_direct=yes
11972 hardcode_direct_absolute=yes
11973 export_dynamic_flag_spec='$wl-E'
11974 # hardcode_minus_L: Not really in the search PATH,
11975 # but as the default location of the library.
11976 hardcode_minus_L=yes
11977 fi
11978 ;;
11979
11980 hpux11*)
11981 if test yes,no = "$GCC,$with_gnu_ld"; then
11982 case $host_cpu in
11983 hppa*64*)
11984 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11985 ;;
11986 ia64*)
11987 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11988 ;;
11989 *)
11990 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11991 ;;
11992 esac
11993 else
11994 case $host_cpu in
11995 hppa*64*)
11996 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11997 ;;
11998 ia64*)
11999 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12000 ;;
12001 *)
12002
12003 # Older versions of the 11.00 compiler do not understand -b yet
12004 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12006 printf %s "checking if $CC understands -b... " >&6; }
12007 if test ${lt_cv_prog_compiler__b+y}
12008 then :
12009 printf %s "(cached) " >&6
12010 else case e in #(
12011 e) lt_cv_prog_compiler__b=no
12012 save_LDFLAGS=$LDFLAGS
12013 LDFLAGS="$LDFLAGS -b"
12014 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12015 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12016 # The linker can only warn and ignore the option if not recognized
12017 # So say no if there are warnings
12018 if test -s conftest.err; then
12019 # Append any errors to the config.log.
12020 cat conftest.err 1>&5
12021 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12022 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12023 if diff conftest.exp conftest.er2 >/dev/null; then
12024 lt_cv_prog_compiler__b=yes
12025 fi
12026 else
12027 lt_cv_prog_compiler__b=yes
12028 fi
12029 fi
12030 $RM -r conftest*
12031 LDFLAGS=$save_LDFLAGS
12032 ;;
12033 esac
12034 fi
12035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12036 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
12037
12038 if test yes = "$lt_cv_prog_compiler__b"; then
12039 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12040 else
12041 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12042 fi
12043
12044 ;;
12045 esac
12046 fi
12047 if test no = "$with_gnu_ld"; then
12048 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12049 hardcode_libdir_separator=:
12050
12051 case $host_cpu in
12052 hppa*64*|ia64*)
12053 hardcode_direct=no
12054 hardcode_shlibpath_var=no
12055 ;;
12056 *)
12057 hardcode_direct=yes
12058 hardcode_direct_absolute=yes
12059 export_dynamic_flag_spec='$wl-E'
12060
12061 # hardcode_minus_L: Not really in the search PATH,
12062 # but as the default location of the library.
12063 hardcode_minus_L=yes
12064 ;;
12065 esac
12066 fi
12067 ;;
12068
12069 irix5* | irix6* | nonstopux*)
12070 if test yes = "$GCC"; then
12071 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'
12072 # Try to use the -exported_symbol ld option, if it does not
12073 # work, assume that -exports_file does not work either and
12074 # implicitly export all symbols.
12075 # This should be the same for all languages, so no per-tag cache variable.
12076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12077 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12078 if test ${lt_cv_irix_exported_symbol+y}
12079 then :
12080 printf %s "(cached) " >&6
12081 else case e in #(
12082 e) save_LDFLAGS=$LDFLAGS
12083 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
12084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12085 /* end confdefs.h. */
12086 int foo (void) { return 0; }
12087 _ACEOF
12088 if ac_fn_c_try_link "$LINENO"
12089 then :
12090 lt_cv_irix_exported_symbol=yes
12091 else case e in #(
12092 e) lt_cv_irix_exported_symbol=no ;;
12093 esac
12094 fi
12095 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12096 conftest$ac_exeext conftest.$ac_ext
12097 LDFLAGS=$save_LDFLAGS ;;
12098 esac
12099 fi
12100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12101 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
12102 if test yes = "$lt_cv_irix_exported_symbol"; then
12103 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'
12104 fi
12105 else
12106 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'
12107 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'
12108 fi
12109 archive_cmds_need_lc='no'
12110 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12111 hardcode_libdir_separator=:
12112 inherit_rpath=yes
12113 link_all_deplibs=yes
12114 ;;
12115
12116 linux*)
12117 case $cc_basename in
12118 tcc*)
12119 # Fabrice Bellard et al's Tiny C Compiler
12120 ld_shlibs=yes
12121 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12122 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12123 ;;
12124 esac
12125 ;;
12126
12127 *-mlibc)
12128 ;;
12129
12130 netbsd* | netbsdelf*-gnu)
12131 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12132 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12133 else
12134 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12135 fi
12136 hardcode_libdir_flag_spec='-R$libdir'
12137 hardcode_direct=yes
12138 hardcode_shlibpath_var=no
12139 ;;
12140
12141 newsos6)
12142 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12143 hardcode_direct=yes
12144 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12145 hardcode_libdir_separator=:
12146 hardcode_shlibpath_var=no
12147 ;;
12148
12149 *nto* | *qnx*)
12150 ;;
12151
12152 openbsd*)
12153 if test -f /usr/libexec/ld.so; then
12154 hardcode_direct=yes
12155 hardcode_shlibpath_var=no
12156 hardcode_direct_absolute=yes
12157 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12158 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12159 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12160 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12161 export_dynamic_flag_spec='$wl-E'
12162 else
12163 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12164 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12165 fi
12166 else
12167 ld_shlibs=no
12168 fi
12169 ;;
12170
12171 os2*)
12172 hardcode_libdir_flag_spec='-L$libdir'
12173 hardcode_minus_L=yes
12174 allow_undefined_flag=unsupported
12175 shrext_cmds=.dll
12176 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12177 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12178 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12179 $ECHO EXPORTS >> $output_objdir/$libname.def~
12180 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12181 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12182 emximp -o $lib $output_objdir/$libname.def'
12183 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12184 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12185 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12186 $ECHO EXPORTS >> $output_objdir/$libname.def~
12187 prefix_cmds="$SED"~
12188 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12189 prefix_cmds="$prefix_cmds -e 1d";
12190 fi~
12191 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12192 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12193 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12194 emximp -o $lib $output_objdir/$libname.def'
12195 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12196 enable_shared_with_static_runtimes=yes
12197 file_list_spec='@'
12198 ;;
12199
12200 osf3*)
12201 if test yes = "$GCC"; then
12202 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12203 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'
12204 else
12205 allow_undefined_flag=' -expect_unresolved \*'
12206 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'
12207 fi
12208 archive_cmds_need_lc='no'
12209 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12210 hardcode_libdir_separator=:
12211 ;;
12212
12213 osf4* | osf5*) # as osf3* with the addition of -msym flag
12214 if test yes = "$GCC"; then
12215 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12216 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'
12217 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12218 else
12219 allow_undefined_flag=' -expect_unresolved \*'
12220 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'
12221 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~
12222 $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'
12223
12224 # Both c and cxx compiler support -rpath directly
12225 hardcode_libdir_flag_spec='-rpath $libdir'
12226 fi
12227 archive_cmds_need_lc='no'
12228 hardcode_libdir_separator=:
12229 ;;
12230
12231 serenity*)
12232 ;;
12233
12234 solaris*)
12235 no_undefined_flag=' -z defs'
12236 if test yes = "$GCC"; then
12237 wlarc='$wl'
12238 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12239 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12240 $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'
12241 else
12242 case `$CC -V 2>&1` in
12243 *"Compilers 5.0"*)
12244 wlarc=''
12245 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12246 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12247 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12248 ;;
12249 *)
12250 wlarc='$wl'
12251 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12252 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12253 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12254 ;;
12255 esac
12256 fi
12257 hardcode_libdir_flag_spec='-R$libdir'
12258 hardcode_shlibpath_var=no
12259 case $host_os in
12260 solaris2.[0-5] | solaris2.[0-5].*) ;;
12261 *)
12262 # The compiler driver will combine and reorder linker options,
12263 # but understands '-z linker_flag'. GCC discards it without '$wl',
12264 # but is careful enough not to reorder.
12265 # Supported since Solaris 2.6 (maybe 2.5.1?)
12266 if test yes = "$GCC"; then
12267 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12268 else
12269 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12270 fi
12271 ;;
12272 esac
12273 link_all_deplibs=yes
12274 ;;
12275
12276 sunos4*)
12277 if test sequent = "$host_vendor"; then
12278 # Use $CC to link under sequent, because it throws in some extra .o
12279 # files that make .init and .fini sections work.
12280 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12281 else
12282 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12283 fi
12284 hardcode_libdir_flag_spec='-L$libdir'
12285 hardcode_direct=yes
12286 hardcode_minus_L=yes
12287 hardcode_shlibpath_var=no
12288 ;;
12289
12290 sysv4)
12291 case $host_vendor in
12292 sni)
12293 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12294 hardcode_direct=yes # is this really true???
12295 ;;
12296 siemens)
12297 ## LD is ld it makes a PLAMLIB
12298 ## CC just makes a GrossModule.
12299 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12300 reload_cmds='$CC -r -o $output$reload_objs'
12301 hardcode_direct=no
12302 ;;
12303 motorola)
12304 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12305 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12306 ;;
12307 esac
12308 runpath_var='LD_RUN_PATH'
12309 hardcode_shlibpath_var=no
12310 ;;
12311
12312 sysv4.3*)
12313 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12314 hardcode_shlibpath_var=no
12315 export_dynamic_flag_spec='-Bexport'
12316 ;;
12317
12318 sysv4*MP*)
12319 if test -d /usr/nec; then
12320 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12321 hardcode_shlibpath_var=no
12322 runpath_var=LD_RUN_PATH
12323 hardcode_runpath_var=yes
12324 ld_shlibs=yes
12325 fi
12326 ;;
12327
12328 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12329 no_undefined_flag='$wl-z,text'
12330 archive_cmds_need_lc=no
12331 hardcode_shlibpath_var=no
12332 runpath_var='LD_RUN_PATH'
12333
12334 if test yes = "$GCC"; then
12335 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12336 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12337 else
12338 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12339 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12340 fi
12341 ;;
12342
12343 sysv5* | sco3.2v5* | sco5v6*)
12344 # Note: We CANNOT use -z defs as we might desire, because we do not
12345 # link with -lc, and that would cause any symbols used from libc to
12346 # always be unresolved, which means just about no library would
12347 # ever link correctly. If we're not using GNU ld we use -z text
12348 # though, which does catch some bad symbols but isn't as heavy-handed
12349 # as -z defs.
12350 no_undefined_flag='$wl-z,text'
12351 allow_undefined_flag='$wl-z,nodefs'
12352 archive_cmds_need_lc=no
12353 hardcode_shlibpath_var=no
12354 hardcode_libdir_flag_spec='$wl-R,$libdir'
12355 hardcode_libdir_separator=':'
12356 link_all_deplibs=yes
12357 export_dynamic_flag_spec='$wl-Bexport'
12358 runpath_var='LD_RUN_PATH'
12359
12360 if test yes = "$GCC"; then
12361 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12362 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12363 else
12364 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12365 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12366 fi
12367 ;;
12368
12369 uts4*)
12370 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12371 hardcode_libdir_flag_spec='-L$libdir'
12372 hardcode_shlibpath_var=no
12373 ;;
12374
12375 *)
12376 ld_shlibs=no
12377 ;;
12378 esac
12379
12380 if test sni = "$host_vendor"; then
12381 case $host in
12382 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12383 export_dynamic_flag_spec='$wl-Blargedynsym'
12384 ;;
12385 esac
12386 fi
12387 fi
12388
12389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12390 printf "%s\n" "$ld_shlibs" >&6; }
12391 test no = "$ld_shlibs" && can_build_shared=no
12392
12393 with_gnu_ld=$with_gnu_ld
12394
12395
12396
12397
12398
12399
12400
12401
12402
12403
12404
12405
12406
12407
12408
12409 #
12410 # Do we need to explicitly link libc?
12411 #
12412 case "x$archive_cmds_need_lc" in
12413 x|xyes)
12414 # Assume -lc should be added
12415 archive_cmds_need_lc=yes
12416
12417 if test yes,yes = "$GCC,$enable_shared"; then
12418 case $archive_cmds in
12419 *'~'*)
12420 # FIXME: we may have to deal with multi-command sequences.
12421 ;;
12422 '$CC '*)
12423 # Test whether the compiler implicitly links with -lc since on some
12424 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12425 # to ld, don't add -lc before -lgcc.
12426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12427 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
12428 if test ${lt_cv_archive_cmds_need_lc+y}
12429 then :
12430 printf %s "(cached) " >&6
12431 else case e in #(
12432 e) $RM conftest*
12433 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12434
12435 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12436 (eval $ac_compile) 2>&5
12437 ac_status=$?
12438 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12439 test $ac_status = 0; } 2>conftest.err; then
12440 soname=conftest
12441 lib=conftest
12442 libobjs=conftest.$ac_objext
12443 deplibs=
12444 wl=$lt_prog_compiler_wl
12445 pic_flag=$lt_prog_compiler_pic
12446 compiler_flags=-v
12447 linker_flags=-v
12448 verstring=
12449 output_objdir=.
12450 libname=conftest
12451 lt_save_allow_undefined_flag=$allow_undefined_flag
12452 allow_undefined_flag=
12453 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12454 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12455 ac_status=$?
12456 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12457 test $ac_status = 0; }
12458 then
12459 lt_cv_archive_cmds_need_lc=no
12460 else
12461 lt_cv_archive_cmds_need_lc=yes
12462 fi
12463 allow_undefined_flag=$lt_save_allow_undefined_flag
12464 else
12465 cat conftest.err 1>&5
12466 fi
12467 $RM conftest*
12468 ;;
12469 esac
12470 fi
12471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12472 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
12473 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12474 ;;
12475 esac
12476 fi
12477 ;;
12478 esac
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616
12617
12618
12619
12620
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630
12631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12632 printf %s "checking dynamic linker characteristics... " >&6; }
12633
12634 if test yes = "$GCC"; then
12635 case $host_os in
12636 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12637 *) lt_awk_arg='/^libraries:/' ;;
12638 esac
12639 case $host_os in
12640 mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12641 *) lt_sed_strip_eq='s|=/|/|g' ;;
12642 esac
12643 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12644 case $lt_search_path_spec in
12645 *\;*)
12646 # if the path contains ";" then we assume it to be the separator
12647 # otherwise default to the standard path separator (i.e. ":") - it is
12648 # assumed that no part of a normal pathname contains ";" but that should
12649 # okay in the real world where ";" in dirpaths is itself problematic.
12650 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12651 ;;
12652 *)
12653 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12654 ;;
12655 esac
12656 # Ok, now we have the path, separated by spaces, we can step through it
12657 # and add multilib dir if necessary...
12658 lt_tmp_lt_search_path_spec=
12659 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12660 # ...but if some path component already ends with the multilib dir we assume
12661 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12662 case "$lt_multi_os_dir; $lt_search_path_spec " in
12663 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12664 lt_multi_os_dir=
12665 ;;
12666 esac
12667 for lt_sys_path in $lt_search_path_spec; do
12668 if test -d "$lt_sys_path$lt_multi_os_dir"; then
12669 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12670 elif test -n "$lt_multi_os_dir"; then
12671 test -d "$lt_sys_path" && \
12672 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12673 fi
12674 done
12675 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12676 BEGIN {RS = " "; FS = "/|\n";} {
12677 lt_foo = "";
12678 lt_count = 0;
12679 for (lt_i = NF; lt_i > 0; lt_i--) {
12680 if ($lt_i != "" && $lt_i != ".") {
12681 if ($lt_i == "..") {
12682 lt_count++;
12683 } else {
12684 if (lt_count == 0) {
12685 lt_foo = "/" $lt_i lt_foo;
12686 } else {
12687 lt_count--;
12688 }
12689 }
12690 }
12691 }
12692 if (lt_foo != "") { lt_freq[lt_foo]++; }
12693 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12694 }'`
12695 # AWK program above erroneously prepends '/' to C:/dos/paths
12696 # for these hosts.
12697 case $host_os in
12698 mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12699 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12700 esac
12701 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12702 else
12703 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12704 fi
12705 library_names_spec=
12706 libname_spec='lib$name'
12707 soname_spec=
12708 shrext_cmds=.so
12709 postinstall_cmds=
12710 postuninstall_cmds=
12711 finish_cmds=
12712 finish_eval=
12713 shlibpath_var=
12714 shlibpath_overrides_runpath=unknown
12715 version_type=none
12716 dynamic_linker="$host_os ld.so"
12717 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12718 need_lib_prefix=unknown
12719 hardcode_into_libs=no
12720
12721 # when you set need_version to no, make sure it does not cause -set_version
12722 # flags to be left without arguments
12723 need_version=unknown
12724
12725
12726
12727 case $host_os in
12728 aix3*)
12729 version_type=linux # correct to gnu/linux during the next big refactor
12730 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12731 shlibpath_var=LIBPATH
12732
12733 # AIX 3 has no versioning support, so we append a major version to the name.
12734 soname_spec='$libname$release$shared_ext$major'
12735 ;;
12736
12737 aix[4-9]*)
12738 version_type=linux # correct to gnu/linux during the next big refactor
12739 need_lib_prefix=no
12740 need_version=no
12741 hardcode_into_libs=yes
12742 if test ia64 = "$host_cpu"; then
12743 # AIX 5 supports IA64
12744 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12745 shlibpath_var=LD_LIBRARY_PATH
12746 else
12747 # With GCC up to 2.95.x, collect2 would create an import file
12748 # for dependence libraries. The import file would start with
12749 # the line '#! .'. This would cause the generated library to
12750 # depend on '.', always an invalid library. This was fixed in
12751 # development snapshots of GCC prior to 3.0.
12752 case $host_os in
12753 aix4 | aix4.[01] | aix4.[01].*)
12754 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12755 echo ' yes '
12756 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12757 :
12758 else
12759 can_build_shared=no
12760 fi
12761 ;;
12762 esac
12763 # Using Import Files as archive members, it is possible to support
12764 # filename-based versioning of shared library archives on AIX. While
12765 # this would work for both with and without runtime linking, it will
12766 # prevent static linking of such archives. So we do filename-based
12767 # shared library versioning with .so extension only, which is used
12768 # when both runtime linking and shared linking is enabled.
12769 # Unfortunately, runtime linking may impact performance, so we do
12770 # not want this to be the default eventually. Also, we use the
12771 # versioned .so libs for executables only if there is the -brtl
12772 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
12773 # To allow for filename-based versioning support, we need to create
12774 # libNAME.so.V as an archive file, containing:
12775 # *) an Import File, referring to the versioned filename of the
12776 # archive as well as the shared archive member, telling the
12777 # bitwidth (32 or 64) of that shared object, and providing the
12778 # list of exported symbols of that shared object, eventually
12779 # decorated with the 'weak' keyword
12780 # *) the shared object with the F_LOADONLY flag set, to really avoid
12781 # it being seen by the linker.
12782 # At run time we better use the real file rather than another symlink,
12783 # but for link time we create the symlink libNAME.so -> libNAME.so.V
12784
12785 case $with_aix_soname,$aix_use_runtimelinking in
12786 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12787 # soname into executable. Probably we can add versioning support to
12788 # collect2, so additional links can be useful in future.
12789 aix,yes) # traditional libtool
12790 dynamic_linker='AIX unversionable lib.so'
12791 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12792 # instead of lib<name>.a to let people know that these are not
12793 # typical AIX shared libraries.
12794 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12795 ;;
12796 aix,no) # traditional AIX only
12797 dynamic_linker='AIX lib.a(lib.so.V)'
12798 # We preserve .a as extension for shared libraries through AIX4.2
12799 # and later when we are not doing run time linking.
12800 library_names_spec='$libname$release.a $libname.a'
12801 soname_spec='$libname$release$shared_ext$major'
12802 ;;
12803 svr4,*) # full svr4 only
12804 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12805 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12806 # We do not specify a path in Import Files, so LIBPATH fires.
12807 shlibpath_overrides_runpath=yes
12808 ;;
12809 *,yes) # both, prefer svr4
12810 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12811 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12812 # unpreferred sharedlib libNAME.a needs extra handling
12813 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"'
12814 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"'
12815 # We do not specify a path in Import Files, so LIBPATH fires.
12816 shlibpath_overrides_runpath=yes
12817 ;;
12818 *,no) # both, prefer aix
12819 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12820 library_names_spec='$libname$release.a $libname.a'
12821 soname_spec='$libname$release$shared_ext$major'
12822 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12823 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)'
12824 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"'
12825 ;;
12826 esac
12827 shlibpath_var=LIBPATH
12828 fi
12829 ;;
12830
12831 amigaos*)
12832 case $host_cpu in
12833 powerpc)
12834 # Since July 2007 AmigaOS4 officially supports .so libraries.
12835 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12836 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12837 ;;
12838 m68k)
12839 library_names_spec='$libname.ixlibrary $libname.a'
12840 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12841 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'
12842 ;;
12843 esac
12844 ;;
12845
12846 beos*)
12847 library_names_spec='$libname$shared_ext'
12848 dynamic_linker="$host_os ld.so"
12849 shlibpath_var=LIBRARY_PATH
12850 ;;
12851
12852 bsdi[45]*)
12853 version_type=linux # correct to gnu/linux during the next big refactor
12854 need_version=no
12855 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12856 soname_spec='$libname$release$shared_ext$major'
12857 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12858 shlibpath_var=LD_LIBRARY_PATH
12859 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12860 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12861 # the default ld.so.conf also contains /usr/contrib/lib and
12862 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12863 # libtool to hard-code these into programs
12864 ;;
12865
12866 cygwin* | mingw* | windows* | pw32* | cegcc*)
12867 version_type=windows
12868 shrext_cmds=.dll
12869 need_version=no
12870 need_lib_prefix=no
12871
12872 case $GCC,$cc_basename in
12873 yes,*)
12874 # gcc
12875 library_names_spec='$libname.dll.a'
12876 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12877 # If user builds GCC with multilib enabled,
12878 # it should just install on $(libdir)
12879 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
12880 if test xyes = x"$multilib"; then
12881 postinstall_cmds='base_file=`basename \$file`~
12882 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12883 dldir=$destdir/`dirname \$dlpath`~
12884 $install_prog $dir/$dlname $destdir/$dlname~
12885 chmod a+x $destdir/$dlname~
12886 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12887 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
12888 fi'
12889 else
12890 postinstall_cmds='base_file=`basename \$file`~
12891 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12892 dldir=$destdir/`dirname \$dlpath`~
12893 test -d \$dldir || mkdir -p \$dldir~
12894 $install_prog $dir/$dlname \$dldir/$dlname~
12895 chmod a+x \$dldir/$dlname~
12896 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12897 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12898 fi'
12899 fi
12900 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12901 dlpath=$dir/\$dldll~
12902 $RM \$dlpath'
12903 shlibpath_overrides_runpath=yes
12904
12905 case $host_os in
12906 cygwin*)
12907 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12908 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12909
12910 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12911 ;;
12912 mingw* | windows* | cegcc*)
12913 # MinGW DLLs use traditional 'lib' prefix
12914 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12915 ;;
12916 pw32*)
12917 # pw32 DLLs use 'pw' prefix rather than 'lib'
12918 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12919 ;;
12920 esac
12921 dynamic_linker='Win32 ld.exe'
12922 ;;
12923
12924 *,cl* | *,icl*)
12925 # Native MSVC or ICC
12926 libname_spec='$name'
12927 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12928 library_names_spec='$libname.dll.lib'
12929
12930 case $build_os in
12931 mingw* | windows*)
12932 sys_lib_search_path_spec=
12933 lt_save_ifs=$IFS
12934 IFS=';'
12935 for lt_path in $LIB
12936 do
12937 IFS=$lt_save_ifs
12938 # Let DOS variable expansion print the short 8.3 style file name.
12939 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12940 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12941 done
12942 IFS=$lt_save_ifs
12943 # Convert to MSYS style.
12944 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12945 ;;
12946 cygwin*)
12947 # Convert to unix form, then to dos form, then back to unix form
12948 # but this time dos style (no spaces!) so that the unix form looks
12949 # like /cygdrive/c/PROGRA~1:/cygdr...
12950 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12951 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12952 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12953 ;;
12954 *)
12955 sys_lib_search_path_spec=$LIB
12956 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12957 # It is most probably a Windows format PATH.
12958 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12959 else
12960 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12961 fi
12962 # FIXME: find the short name or the path components, as spaces are
12963 # common. (e.g. "Program Files" -> "PROGRA~1")
12964 ;;
12965 esac
12966
12967 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12968 postinstall_cmds='base_file=`basename \$file`~
12969 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12970 dldir=$destdir/`dirname \$dlpath`~
12971 test -d \$dldir || mkdir -p \$dldir~
12972 $install_prog $dir/$dlname \$dldir/$dlname'
12973 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12974 dlpath=$dir/\$dldll~
12975 $RM \$dlpath'
12976 shlibpath_overrides_runpath=yes
12977 dynamic_linker='Win32 link.exe'
12978 ;;
12979
12980 *)
12981 # Assume MSVC and ICC wrapper
12982 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12983 dynamic_linker='Win32 ld.exe'
12984 ;;
12985 esac
12986 # FIXME: first we should search . and the directory the executable is in
12987 shlibpath_var=PATH
12988 ;;
12989
12990 darwin* | rhapsody*)
12991 dynamic_linker="$host_os dyld"
12992 version_type=darwin
12993 need_lib_prefix=no
12994 need_version=no
12995 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12996 soname_spec='$libname$release$major$shared_ext'
12997 shlibpath_overrides_runpath=yes
12998 shlibpath_var=DYLD_LIBRARY_PATH
12999 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13000
13001 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13002 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13003 ;;
13004
13005 dgux*)
13006 version_type=linux # correct to gnu/linux during the next big refactor
13007 need_lib_prefix=no
13008 need_version=no
13009 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13010 soname_spec='$libname$release$shared_ext$major'
13011 shlibpath_var=LD_LIBRARY_PATH
13012 ;;
13013
13014 freebsd* | dragonfly* | midnightbsd*)
13015 # DragonFly does not have aout. When/if they implement a new
13016 # versioning mechanism, adjust this.
13017 if test -x /usr/bin/objformat; then
13018 objformat=`/usr/bin/objformat`
13019 else
13020 case $host_os in
13021 freebsd[23].*) objformat=aout ;;
13022 *) objformat=elf ;;
13023 esac
13024 fi
13025 version_type=freebsd-$objformat
13026 case $version_type in
13027 freebsd-elf*)
13028 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13029 soname_spec='$libname$release$shared_ext$major'
13030 need_version=no
13031 need_lib_prefix=no
13032 ;;
13033 freebsd-*)
13034 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13035 need_version=yes
13036 ;;
13037 esac
13038 case $host_cpu in
13039 powerpc64)
13040 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
13041 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
13042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13043 /* end confdefs.h. */
13044 int test_pointer_size[sizeof (void *) - 5];
13045
13046 _ACEOF
13047 if ac_fn_c_try_compile "$LINENO"
13048 then :
13049 shlibpath_var=LD_LIBRARY_PATH
13050 else case e in #(
13051 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
13052 esac
13053 fi
13054 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13055 ;;
13056 *)
13057 shlibpath_var=LD_LIBRARY_PATH
13058 ;;
13059 esac
13060 case $host_os in
13061 freebsd2.*)
13062 shlibpath_overrides_runpath=yes
13063 ;;
13064 freebsd3.[01]* | freebsdelf3.[01]*)
13065 shlibpath_overrides_runpath=yes
13066 hardcode_into_libs=yes
13067 ;;
13068 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13069 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13070 shlibpath_overrides_runpath=no
13071 hardcode_into_libs=yes
13072 ;;
13073 *) # from 4.6 on, and DragonFly
13074 shlibpath_overrides_runpath=yes
13075 hardcode_into_libs=yes
13076 ;;
13077 esac
13078 ;;
13079
13080 haiku*)
13081 version_type=linux # correct to gnu/linux during the next big refactor
13082 need_lib_prefix=no
13083 need_version=no
13084 dynamic_linker="$host_os runtime_loader"
13085 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13086 soname_spec='$libname$release$shared_ext$major'
13087 shlibpath_var=LIBRARY_PATH
13088 shlibpath_overrides_runpath=no
13089 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
13090 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
13091 hardcode_into_libs=no
13092 ;;
13093
13094 hpux9* | hpux10* | hpux11*)
13095 # Give a soname corresponding to the major version so that dld.sl refuses to
13096 # link against other versions.
13097 version_type=sunos
13098 need_lib_prefix=no
13099 need_version=no
13100 case $host_cpu in
13101 ia64*)
13102 shrext_cmds='.so'
13103 hardcode_into_libs=yes
13104 dynamic_linker="$host_os dld.so"
13105 shlibpath_var=LD_LIBRARY_PATH
13106 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13107 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13108 soname_spec='$libname$release$shared_ext$major'
13109 if test 32 = "$HPUX_IA64_MODE"; then
13110 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13111 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
13112 else
13113 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13114 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
13115 fi
13116 ;;
13117 hppa*64*)
13118 shrext_cmds='.sl'
13119 hardcode_into_libs=yes
13120 dynamic_linker="$host_os dld.sl"
13121 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13122 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13123 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13124 soname_spec='$libname$release$shared_ext$major'
13125 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13126 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13127 ;;
13128 *)
13129 shrext_cmds='.sl'
13130 dynamic_linker="$host_os dld.sl"
13131 shlibpath_var=SHLIB_PATH
13132 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13133 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13134 soname_spec='$libname$release$shared_ext$major'
13135 ;;
13136 esac
13137 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13138 postinstall_cmds='chmod 555 $lib'
13139 # or fails outright, so override atomically:
13140 install_override_mode=555
13141 ;;
13142
13143 interix[3-9]*)
13144 version_type=linux # correct to gnu/linux during the next big refactor
13145 need_lib_prefix=no
13146 need_version=no
13147 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13148 soname_spec='$libname$release$shared_ext$major'
13149 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13150 shlibpath_var=LD_LIBRARY_PATH
13151 shlibpath_overrides_runpath=no
13152 hardcode_into_libs=yes
13153 ;;
13154
13155 irix5* | irix6* | nonstopux*)
13156 case $host_os in
13157 nonstopux*) version_type=nonstopux ;;
13158 *)
13159 if test yes = "$lt_cv_prog_gnu_ld"; then
13160 version_type=linux # correct to gnu/linux during the next big refactor
13161 else
13162 version_type=irix
13163 fi ;;
13164 esac
13165 need_lib_prefix=no
13166 need_version=no
13167 soname_spec='$libname$release$shared_ext$major'
13168 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
13169 case $host_os in
13170 irix5* | nonstopux*)
13171 libsuff= shlibsuff=
13172 ;;
13173 *)
13174 case $LD in # libtool.m4 will add one of these switches to LD
13175 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13176 libsuff= shlibsuff= libmagic=32-bit;;
13177 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13178 libsuff=32 shlibsuff=N32 libmagic=N32;;
13179 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13180 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13181 *) libsuff= shlibsuff= libmagic=never-match;;
13182 esac
13183 ;;
13184 esac
13185 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13186 shlibpath_overrides_runpath=no
13187 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13188 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
13189 hardcode_into_libs=yes
13190 ;;
13191
13192 # No shared lib support for Linux oldld, aout, or coff.
13193 linux*oldld* | linux*aout* | linux*coff*)
13194 dynamic_linker=no
13195 ;;
13196
13197 linux*android*)
13198 version_type=none # Android doesn't support versioned libraries.
13199 need_lib_prefix=no
13200 need_version=no
13201 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
13202 soname_spec='$libname$release$shared_ext'
13203 finish_cmds=
13204 shlibpath_var=LD_LIBRARY_PATH
13205 shlibpath_overrides_runpath=yes
13206
13207 # This implies no fast_install, which is unacceptable.
13208 # Some rework will be needed to allow for fast_install
13209 # before this can be enabled.
13210 hardcode_into_libs=yes
13211
13212 dynamic_linker='Android linker'
13213 # -rpath works at least for libraries that are not overridden by
13214 # libraries installed in system locations.
13215 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13216 ;;
13217
13218 # This must be glibc/ELF.
13219 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13220 version_type=linux # correct to gnu/linux during the next big refactor
13221 need_lib_prefix=no
13222 need_version=no
13223 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13224 soname_spec='$libname$release$shared_ext$major'
13225 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13226 shlibpath_var=LD_LIBRARY_PATH
13227 shlibpath_overrides_runpath=no
13228
13229 # Some binutils ld are patched to set DT_RUNPATH
13230 if test ${lt_cv_shlibpath_overrides_runpath+y}
13231 then :
13232 printf %s "(cached) " >&6
13233 else case e in #(
13234 e) lt_cv_shlibpath_overrides_runpath=no
13235 save_LDFLAGS=$LDFLAGS
13236 save_libdir=$libdir
13237 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13238 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13240 /* end confdefs.h. */
13241
13242 int
13243 main (void)
13244 {
13245
13246 ;
13247 return 0;
13248 }
13249 _ACEOF
13250 if ac_fn_c_try_link "$LINENO"
13251 then :
13252 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
13253 then :
13254 lt_cv_shlibpath_overrides_runpath=yes
13255 fi
13256 fi
13257 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13258 conftest$ac_exeext conftest.$ac_ext
13259 LDFLAGS=$save_LDFLAGS
13260 libdir=$save_libdir
13261 ;;
13262 esac
13263 fi
13264
13265 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13266
13267 # This implies no fast_install, which is unacceptable.
13268 # Some rework will be needed to allow for fast_install
13269 # before this can be enabled.
13270 hardcode_into_libs=yes
13271
13272 # Ideally, we could use ldconfig to report *all* directories which are
13273 # searched for libraries, however this is still not possible. Aside from not
13274 # being certain /sbin/ldconfig is available, command
13275 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13276 # even though it is searched at run-time. Try to do the best guess by
13277 # appending ld.so.conf contents (and includes) to the search path.
13278 if test -f /etc/ld.so.conf; then
13279 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' ' '`
13280 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13281 fi
13282
13283 # We used to test for /lib/ld.so.1 and disable shared libraries on
13284 # powerpc, because MkLinux only supported shared libraries with the
13285 # GNU dynamic linker. Since this was broken with cross compilers,
13286 # most powerpc-linux boxes support dynamic linking these days and
13287 # people can always --disable-shared, the test was removed, and we
13288 # assume the GNU/Linux dynamic linker is in use.
13289 dynamic_linker='GNU/Linux ld.so'
13290 ;;
13291
13292 netbsdelf*-gnu)
13293 version_type=linux
13294 need_lib_prefix=no
13295 need_version=no
13296 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13297 soname_spec='$libname$release$shared_ext$major'
13298 shlibpath_var=LD_LIBRARY_PATH
13299 shlibpath_overrides_runpath=no
13300 hardcode_into_libs=yes
13301 dynamic_linker='NetBSD ld.elf_so'
13302 ;;
13303
13304 netbsd*)
13305 version_type=sunos
13306 need_lib_prefix=no
13307 need_version=no
13308 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13309 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13310 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13311 dynamic_linker='NetBSD (a.out) ld.so'
13312 else
13313 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13314 soname_spec='$libname$release$shared_ext$major'
13315 dynamic_linker='NetBSD ld.elf_so'
13316 fi
13317 shlibpath_var=LD_LIBRARY_PATH
13318 shlibpath_overrides_runpath=yes
13319 hardcode_into_libs=yes
13320 ;;
13321
13322 *-mlibc)
13323 version_type=linux # correct to gnu/linux during the next big refactor
13324 need_lib_prefix=no
13325 need_version=no
13326 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13327 soname_spec='$libname$release$shared_ext$major'
13328 dynamic_linker='mlibc ld.so'
13329 shlibpath_var=LD_LIBRARY_PATH
13330 shlibpath_overrides_runpath=no
13331 hardcode_into_libs=yes
13332 ;;
13333
13334 newsos6)
13335 version_type=linux # correct to gnu/linux during the next big refactor
13336 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13337 shlibpath_var=LD_LIBRARY_PATH
13338 shlibpath_overrides_runpath=yes
13339 ;;
13340
13341 *nto* | *qnx*)
13342 version_type=qnx
13343 need_lib_prefix=no
13344 need_version=no
13345 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13346 soname_spec='$libname$release$shared_ext$major'
13347 shlibpath_var=LD_LIBRARY_PATH
13348 shlibpath_overrides_runpath=no
13349 hardcode_into_libs=yes
13350 dynamic_linker='ldqnx.so'
13351 ;;
13352
13353 openbsd*)
13354 version_type=sunos
13355 sys_lib_dlsearch_path_spec=/usr/lib
13356 need_lib_prefix=no
13357 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13358 need_version=no
13359 else
13360 need_version=yes
13361 fi
13362 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13363 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13364 shlibpath_var=LD_LIBRARY_PATH
13365 shlibpath_overrides_runpath=yes
13366 ;;
13367
13368 os2*)
13369 libname_spec='$name'
13370 version_type=windows
13371 shrext_cmds=.dll
13372 need_version=no
13373 need_lib_prefix=no
13374 # OS/2 can only load a DLL with a base name of 8 characters or less.
13375 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13376 v=$($ECHO $release$versuffix | tr -d .-);
13377 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13378 $ECHO $n$v`$shared_ext'
13379 library_names_spec='${libname}_dll.$libext'
13380 dynamic_linker='OS/2 ld.exe'
13381 shlibpath_var=BEGINLIBPATH
13382 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13383 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13384 postinstall_cmds='base_file=`basename \$file`~
13385 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13386 dldir=$destdir/`dirname \$dlpath`~
13387 test -d \$dldir || mkdir -p \$dldir~
13388 $install_prog $dir/$dlname \$dldir/$dlname~
13389 chmod a+x \$dldir/$dlname~
13390 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13391 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13392 fi'
13393 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13394 dlpath=$dir/\$dldll~
13395 $RM \$dlpath'
13396 ;;
13397
13398 osf3* | osf4* | osf5*)
13399 version_type=osf
13400 need_lib_prefix=no
13401 need_version=no
13402 soname_spec='$libname$release$shared_ext$major'
13403 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13404 shlibpath_var=LD_LIBRARY_PATH
13405 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13406 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13407 ;;
13408
13409 rdos*)
13410 dynamic_linker=no
13411 ;;
13412
13413 serenity*)
13414 version_type=linux # correct to gnu/linux during the next big refactor
13415 need_lib_prefix=no
13416 need_version=no
13417 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13418 soname_spec='$libname$release$shared_ext$major'
13419 shlibpath_var=LD_LIBRARY_PATH
13420 shlibpath_overrides_runpath=no
13421 dynamic_linker='SerenityOS LibELF'
13422 ;;
13423
13424 solaris*)
13425 version_type=linux # correct to gnu/linux during the next big refactor
13426 need_lib_prefix=no
13427 need_version=no
13428 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13429 soname_spec='$libname$release$shared_ext$major'
13430 shlibpath_var=LD_LIBRARY_PATH
13431 shlibpath_overrides_runpath=yes
13432 hardcode_into_libs=yes
13433 # ldd complains unless libraries are executable
13434 postinstall_cmds='chmod +x $lib'
13435 ;;
13436
13437 sunos4*)
13438 version_type=sunos
13439 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13440 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13441 shlibpath_var=LD_LIBRARY_PATH
13442 shlibpath_overrides_runpath=yes
13443 if test yes = "$with_gnu_ld"; then
13444 need_lib_prefix=no
13445 fi
13446 need_version=yes
13447 ;;
13448
13449 sysv4 | sysv4.3*)
13450 version_type=linux # correct to gnu/linux during the next big refactor
13451 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13452 soname_spec='$libname$release$shared_ext$major'
13453 shlibpath_var=LD_LIBRARY_PATH
13454 case $host_vendor in
13455 sni)
13456 shlibpath_overrides_runpath=no
13457 need_lib_prefix=no
13458 runpath_var=LD_RUN_PATH
13459 ;;
13460 siemens)
13461 need_lib_prefix=no
13462 ;;
13463 motorola)
13464 need_lib_prefix=no
13465 need_version=no
13466 shlibpath_overrides_runpath=no
13467 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13468 ;;
13469 esac
13470 ;;
13471
13472 sysv4*MP*)
13473 if test -d /usr/nec; then
13474 version_type=linux # correct to gnu/linux during the next big refactor
13475 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13476 soname_spec='$libname$shared_ext.$major'
13477 shlibpath_var=LD_LIBRARY_PATH
13478 fi
13479 ;;
13480
13481 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13482 version_type=sco
13483 need_lib_prefix=no
13484 need_version=no
13485 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13486 soname_spec='$libname$release$shared_ext$major'
13487 shlibpath_var=LD_LIBRARY_PATH
13488 shlibpath_overrides_runpath=yes
13489 hardcode_into_libs=yes
13490 if test yes = "$with_gnu_ld"; then
13491 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13492 else
13493 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13494 case $host_os in
13495 sco3.2v5*)
13496 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13497 ;;
13498 esac
13499 fi
13500 sys_lib_dlsearch_path_spec='/usr/lib'
13501 ;;
13502
13503 tpf*)
13504 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13505 version_type=linux # correct to gnu/linux during the next big refactor
13506 need_lib_prefix=no
13507 need_version=no
13508 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13509 shlibpath_var=LD_LIBRARY_PATH
13510 shlibpath_overrides_runpath=no
13511 hardcode_into_libs=yes
13512 ;;
13513
13514 uts4*)
13515 version_type=linux # correct to gnu/linux during the next big refactor
13516 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13517 soname_spec='$libname$release$shared_ext$major'
13518 shlibpath_var=LD_LIBRARY_PATH
13519 ;;
13520
13521 emscripten*)
13522 version_type=none
13523 need_lib_prefix=no
13524 need_version=no
13525 library_names_spec='$libname$release$shared_ext'
13526 soname_spec='$libname$release$shared_ext'
13527 finish_cmds=
13528 dynamic_linker="Emscripten linker"
13529 lt_prog_compiler_wl=
13530 lt_prog_compiler_pic=
13531 lt_prog_compiler_static=
13532
13533
13534 if test yes = "$GCC"; then
13535 lt_prog_compiler_wl='-Wl,'
13536 lt_prog_compiler_static='-static'
13537
13538 case $host_os in
13539 aix*)
13540 # All AIX code is PIC.
13541 if test ia64 = "$host_cpu"; then
13542 # AIX 5 now supports IA64 processor
13543 lt_prog_compiler_static='-Bstatic'
13544 fi
13545 lt_prog_compiler_pic='-fPIC'
13546 ;;
13547
13548 amigaos*)
13549 case $host_cpu in
13550 powerpc)
13551 # see comment about AmigaOS4 .so support
13552 lt_prog_compiler_pic='-fPIC'
13553 ;;
13554 m68k)
13555 # FIXME: we need at least 68020 code to build shared libraries, but
13556 # adding the '-m68020' flag to GCC prevents building anything better,
13557 # like '-m68040'.
13558 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13559 ;;
13560 esac
13561 ;;
13562
13563 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13564 # PIC is the default for these OSes.
13565 ;;
13566
13567 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
13568 # This hack is so that the source file can tell whether it is being
13569 # built for inclusion in a dll (and should export symbols for example).
13570 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13571 # (--disable-auto-import) libraries
13572 lt_prog_compiler_pic='-DDLL_EXPORT'
13573 case $host_os in
13574 os2*)
13575 lt_prog_compiler_static='$wl-static'
13576 ;;
13577 esac
13578 ;;
13579
13580 darwin* | rhapsody*)
13581 # PIC is the default on this platform
13582 # Common symbols not allowed in MH_DYLIB files
13583 lt_prog_compiler_pic='-fno-common'
13584 ;;
13585
13586 haiku*)
13587 # PIC is the default for Haiku.
13588 # The "-static" flag exists, but is broken.
13589 lt_prog_compiler_static=
13590 ;;
13591
13592 hpux*)
13593 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13594 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13595 # sets the default TLS model and affects inlining.
13596 case $host_cpu in
13597 hppa*64*)
13598 # +Z the default
13599 ;;
13600 *)
13601 lt_prog_compiler_pic='-fPIC'
13602 ;;
13603 esac
13604 ;;
13605
13606 interix[3-9]*)
13607 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13608 # Instead, we relocate shared libraries at runtime.
13609 ;;
13610
13611 msdosdjgpp*)
13612 # Just because we use GCC doesn't mean we suddenly get shared libraries
13613 # on systems that don't support them.
13614 lt_prog_compiler_can_build_shared=no
13615 enable_shared=no
13616 ;;
13617
13618 *nto* | *qnx*)
13619 # QNX uses GNU C++, but need to define -shared option too, otherwise
13620 # it will coredump.
13621 lt_prog_compiler_pic='-fPIC -shared'
13622 ;;
13623
13624 sysv4*MP*)
13625 if test -d /usr/nec; then
13626 lt_prog_compiler_pic=-Kconform_pic
13627 fi
13628 ;;
13629
13630 *)
13631 lt_prog_compiler_pic='-fPIC'
13632 ;;
13633 esac
13634
13635 case $cc_basename in
13636 nvcc*) # Cuda Compiler Driver 2.2
13637 lt_prog_compiler_wl='-Xlinker '
13638 if test -n "$lt_prog_compiler_pic"; then
13639 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
13640 fi
13641 ;;
13642 esac
13643 else
13644 # PORTME Check for flag to pass linker flags through the system compiler.
13645 case $host_os in
13646 aix*)
13647 lt_prog_compiler_wl='-Wl,'
13648 if test ia64 = "$host_cpu"; then
13649 # AIX 5 now supports IA64 processor
13650 lt_prog_compiler_static='-Bstatic'
13651 else
13652 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13653 fi
13654 ;;
13655
13656 darwin* | rhapsody*)
13657 # PIC is the default on this platform
13658 # Common symbols not allowed in MH_DYLIB files
13659 lt_prog_compiler_pic='-fno-common'
13660 case $cc_basename in
13661 nagfor*)
13662 # NAG Fortran compiler
13663 lt_prog_compiler_wl='-Wl,-Wl,,'
13664 lt_prog_compiler_pic='-PIC'
13665 lt_prog_compiler_static='-Bstatic'
13666 ;;
13667 esac
13668 ;;
13669
13670 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
13671 # This hack is so that the source file can tell whether it is being
13672 # built for inclusion in a dll (and should export symbols for example).
13673 lt_prog_compiler_pic='-DDLL_EXPORT'
13674 case $host_os in
13675 os2*)
13676 lt_prog_compiler_static='$wl-static'
13677 ;;
13678 esac
13679 ;;
13680
13681 hpux9* | hpux10* | hpux11*)
13682 lt_prog_compiler_wl='-Wl,'
13683 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13684 # not for PA HP-UX.
13685 case $host_cpu in
13686 hppa*64*|ia64*)
13687 # +Z the default
13688 ;;
13689 *)
13690 lt_prog_compiler_pic='+Z'
13691 ;;
13692 esac
13693 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13694 lt_prog_compiler_static='$wl-a ${wl}archive'
13695 ;;
13696
13697 irix5* | irix6* | nonstopux*)
13698 lt_prog_compiler_wl='-Wl,'
13699 # PIC (with -KPIC) is the default.
13700 lt_prog_compiler_static='-non_shared'
13701 ;;
13702
13703 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13704 case $cc_basename in
13705 # old Intel for x86_64, which still supported -KPIC.
13706 ecc*)
13707 lt_prog_compiler_wl='-Wl,'
13708 lt_prog_compiler_pic='-KPIC'
13709 lt_prog_compiler_static='-static'
13710 ;;
13711 *flang* | ftn | f18* | f95*)
13712 # Flang compiler.
13713 lt_prog_compiler_wl='-Wl,'
13714 lt_prog_compiler_pic='-fPIC'
13715 lt_prog_compiler_static='-static'
13716 ;;
13717 # icc used to be incompatible with GCC.
13718 # ICC 10 doesn't accept -KPIC any more.
13719 icc* | ifort*)
13720 lt_prog_compiler_wl='-Wl,'
13721 lt_prog_compiler_pic='-fPIC'
13722 lt_prog_compiler_static='-static'
13723 ;;
13724 # Lahey Fortran 8.1.
13725 lf95*)
13726 lt_prog_compiler_wl='-Wl,'
13727 lt_prog_compiler_pic='--shared'
13728 lt_prog_compiler_static='--static'
13729 ;;
13730 nagfor*)
13731 # NAG Fortran compiler
13732 lt_prog_compiler_wl='-Wl,-Wl,,'
13733 lt_prog_compiler_pic='-PIC'
13734 lt_prog_compiler_static='-Bstatic'
13735 ;;
13736 tcc*)
13737 # Fabrice Bellard et al's Tiny C Compiler
13738 lt_prog_compiler_wl='-Wl,'
13739 lt_prog_compiler_pic='-fPIC'
13740 lt_prog_compiler_static='-static'
13741 ;;
13742 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
13743 # Portland Group compilers (*not* the Pentium gcc compiler,
13744 # which looks to be a dead project)
13745 lt_prog_compiler_wl='-Wl,'
13746 lt_prog_compiler_pic='-fpic'
13747 lt_prog_compiler_static='-Bstatic'
13748 ;;
13749 ccc*)
13750 lt_prog_compiler_wl='-Wl,'
13751 # All Alpha code is PIC.
13752 lt_prog_compiler_static='-non_shared'
13753 ;;
13754 xl* | bgxl* | bgf* | mpixl*)
13755 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
13756 lt_prog_compiler_wl='-Wl,'
13757 lt_prog_compiler_pic='-qpic'
13758 lt_prog_compiler_static='-qstaticlink'
13759 ;;
13760 *)
13761 case `$CC -V 2>&1 | $SED 5q` in
13762 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
13763 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13764 lt_prog_compiler_pic='-KPIC'
13765 lt_prog_compiler_static='-Bstatic'
13766 lt_prog_compiler_wl=''
13767 ;;
13768 *Sun\ F* | *Sun*Fortran*)
13769 lt_prog_compiler_pic='-KPIC'
13770 lt_prog_compiler_static='-Bstatic'
13771 lt_prog_compiler_wl='-Qoption ld '
13772 ;;
13773 *Sun\ C*)
13774 # Sun C 5.9
13775 lt_prog_compiler_pic='-KPIC'
13776 lt_prog_compiler_static='-Bstatic'
13777 lt_prog_compiler_wl='-Wl,'
13778 ;;
13779 *Intel*\ [CF]*Compiler*)
13780 lt_prog_compiler_wl='-Wl,'
13781 lt_prog_compiler_pic='-fPIC'
13782 lt_prog_compiler_static='-static'
13783 ;;
13784 *Portland\ Group*)
13785 lt_prog_compiler_wl='-Wl,'
13786 lt_prog_compiler_pic='-fpic'
13787 lt_prog_compiler_static='-Bstatic'
13788 ;;
13789 esac
13790 ;;
13791 esac
13792 ;;
13793
13794 newsos6)
13795 lt_prog_compiler_pic='-KPIC'
13796 lt_prog_compiler_static='-Bstatic'
13797 ;;
13798
13799 *-mlibc)
13800 lt_prog_compiler_wl='-Wl,'
13801 lt_prog_compiler_pic='-fPIC'
13802 lt_prog_compiler_static='-static'
13803 ;;
13804
13805 *nto* | *qnx*)
13806 # QNX uses GNU C++, but need to define -shared option too, otherwise
13807 # it will coredump.
13808 lt_prog_compiler_pic='-fPIC -shared'
13809 ;;
13810
13811 osf3* | osf4* | osf5*)
13812 lt_prog_compiler_wl='-Wl,'
13813 # All OSF/1 code is PIC.
13814 lt_prog_compiler_static='-non_shared'
13815 ;;
13816
13817 rdos*)
13818 lt_prog_compiler_static='-non_shared'
13819 ;;
13820
13821 serenity*)
13822 ;;
13823
13824 solaris*)
13825 lt_prog_compiler_pic='-KPIC'
13826 lt_prog_compiler_static='-Bstatic'
13827 case $cc_basename in
13828 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
13829 lt_prog_compiler_wl='-Qoption ld ';;
13830 *)
13831 lt_prog_compiler_wl='-Wl,';;
13832 esac
13833 ;;
13834
13835 sunos4*)
13836 lt_prog_compiler_wl='-Qoption ld '
13837 lt_prog_compiler_pic='-PIC'
13838 lt_prog_compiler_static='-Bstatic'
13839 ;;
13840
13841 sysv4 | sysv4.2uw2* | sysv4.3*)
13842 lt_prog_compiler_wl='-Wl,'
13843 lt_prog_compiler_pic='-KPIC'
13844 lt_prog_compiler_static='-Bstatic'
13845 ;;
13846
13847 sysv4*MP*)
13848 if test -d /usr/nec; then
13849 lt_prog_compiler_pic='-Kconform_pic'
13850 lt_prog_compiler_static='-Bstatic'
13851 fi
13852 ;;
13853
13854 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13855 lt_prog_compiler_wl='-Wl,'
13856 lt_prog_compiler_pic='-KPIC'
13857 lt_prog_compiler_static='-Bstatic'
13858 ;;
13859
13860 unicos*)
13861 lt_prog_compiler_wl='-Wl,'
13862 lt_prog_compiler_can_build_shared=no
13863 ;;
13864
13865 uts4*)
13866 lt_prog_compiler_pic='-pic'
13867 lt_prog_compiler_static='-Bstatic'
13868 ;;
13869
13870 *)
13871 lt_prog_compiler_can_build_shared=no
13872 ;;
13873 esac
13874 fi
13875
13876 case $host_os in
13877 # For platforms that do not support PIC, -DPIC is meaningless:
13878 *djgpp*)
13879 lt_prog_compiler_pic=
13880 ;;
13881 *)
13882 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13883 ;;
13884 esac
13885
13886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13887 printf %s "checking for $compiler option to produce PIC... " >&6; }
13888 if test ${lt_cv_prog_compiler_pic+y}
13889 then :
13890 printf %s "(cached) " >&6
13891 else case e in #(
13892 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
13893 esac
13894 fi
13895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13896 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
13897 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
13898
13899 #
13900 # Check to make sure the PIC flag actually works.
13901 #
13902 if test -n "$lt_prog_compiler_pic"; then
13903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13904 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
13905 if test ${lt_cv_prog_compiler_pic_works+y}
13906 then :
13907 printf %s "(cached) " >&6
13908 else case e in #(
13909 e) lt_cv_prog_compiler_pic_works=no
13910 ac_outfile=conftest.$ac_objext
13911 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13912 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
13913 # Insert the option either (1) after the last *FLAGS variable, or
13914 # (2) before a word containing "conftest.", or (3) at the end.
13915 # Note that $ac_compile itself does not contain backslashes and begins
13916 # with a dollar sign (not a hyphen), so the echo should work correctly.
13917 # The option is referenced via a variable to avoid confusing sed.
13918 lt_compile=`echo "$ac_compile" | $SED \
13919 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13920 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13921 -e 's:$: $lt_compiler_flag:'`
13922 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13923 (eval "$lt_compile" 2>conftest.err)
13924 ac_status=$?
13925 cat conftest.err >&5
13926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13927 if (exit $ac_status) && test -s "$ac_outfile"; then
13928 # The compiler can only warn and ignore the option if not recognized
13929 # So say no if there are warnings other than the usual output.
13930 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13931 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13932 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13933 lt_cv_prog_compiler_pic_works=yes
13934 fi
13935 fi
13936 $RM conftest*
13937 ;;
13938 esac
13939 fi
13940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13941 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
13942
13943 if test yes = "$lt_cv_prog_compiler_pic_works"; then
13944 case $lt_prog_compiler_pic in
13945 "" | " "*) ;;
13946 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13947 esac
13948 else
13949 lt_prog_compiler_pic=
13950 lt_prog_compiler_can_build_shared=no
13951 fi
13952
13953 fi
13954
13955
13956
13957
13958
13959 #
13960 # Check to make sure the static flag actually works.
13961 #
13962 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13964 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13965 if test ${lt_cv_prog_compiler_static_works+y}
13966 then :
13967 printf %s "(cached) " >&6
13968 else case e in #(
13969 e) lt_cv_prog_compiler_static_works=no
13970 save_LDFLAGS=$LDFLAGS
13971 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13972 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13973 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13974 # The linker can only warn and ignore the option if not recognized
13975 # So say no if there are warnings
13976 if test -s conftest.err; then
13977 # Append any errors to the config.log.
13978 cat conftest.err 1>&5
13979 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13980 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13981 if diff conftest.exp conftest.er2 >/dev/null; then
13982 lt_cv_prog_compiler_static_works=yes
13983 fi
13984 else
13985 lt_cv_prog_compiler_static_works=yes
13986 fi
13987 fi
13988 $RM -r conftest*
13989 LDFLAGS=$save_LDFLAGS
13990 ;;
13991 esac
13992 fi
13993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13994 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
13995
13996 if test yes = "$lt_cv_prog_compiler_static_works"; then
13997 :
13998 else
13999 lt_prog_compiler_static=
14000 fi
14001
14002
14003
14004 ='-fPIC'
14005 archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
14006 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'
14007 archive_cmds_need_lc=no
14008 no_undefined_flag=
14009 ;;
14010
14011 *)
14012 dynamic_linker=no
14013 ;;
14014 esac
14015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14016 printf "%s\n" "$dynamic_linker" >&6; }
14017 test no = "$dynamic_linker" && can_build_shared=no
14018
14019 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14020 if test yes = "$GCC"; then
14021 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14022 fi
14023
14024 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14025 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
14026 fi
14027
14028 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14029 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
14030 fi
14031
14032 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14033 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14034
14035 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14036 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14037
14038 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14039 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
14040
14041
14042
14043
14044
14045
14046
14047
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108
14109
14110
14111
14112
14113
14114
14115
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131
14132
14133
14134
14135
14136
14137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14138 printf %s "checking how to hardcode library paths into programs... " >&6; }
14139 hardcode_action=
14140 if test -n "$hardcode_libdir_flag_spec" ||
14141 test -n "$runpath_var" ||
14142 test yes = "$hardcode_automatic"; then
14143
14144 # We can hardcode non-existent directories.
14145 if test no != "$hardcode_direct" &&
14146 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14147 # have to relink, otherwise we might link with an installed library
14148 # when we should be linking with a yet-to-be-installed one
14149 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
14150 test no != "$hardcode_minus_L"; then
14151 # Linking always hardcodes the temporary library directory.
14152 hardcode_action=relink
14153 else
14154 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14155 hardcode_action=immediate
14156 fi
14157 else
14158 # We cannot hardcode anything, or else we can only hardcode existing
14159 # directories.
14160 hardcode_action=unsupported
14161 fi
14162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14163 printf "%s\n" "$hardcode_action" >&6; }
14164
14165 if test relink = "$hardcode_action" ||
14166 test yes = "$inherit_rpath"; then
14167 # Fast installation is not supported
14168 enable_fast_install=no
14169 elif test yes = "$shlibpath_overrides_runpath" ||
14170 test no = "$enable_shared"; then
14171 # Fast installation is not necessary
14172 enable_fast_install=needless
14173 fi
14174
14175
14176
14177
14178
14179
14180 if test yes != "$enable_dlopen"; then
14181 enable_dlopen=unknown
14182 enable_dlopen_self=unknown
14183 enable_dlopen_self_static=unknown
14184 else
14185 lt_cv_dlopen=no
14186 lt_cv_dlopen_libs=
14187
14188 case $host_os in
14189 beos*)
14190 lt_cv_dlopen=load_add_on
14191 lt_cv_dlopen_libs=
14192 lt_cv_dlopen_self=yes
14193 ;;
14194
14195 mingw* | windows* | pw32* | cegcc*)
14196 lt_cv_dlopen=LoadLibrary
14197 lt_cv_dlopen_libs=
14198 ;;
14199
14200 cygwin*)
14201 lt_cv_dlopen=dlopen
14202 lt_cv_dlopen_libs=
14203 ;;
14204
14205 darwin*)
14206 # if libdl is installed we need to link against it
14207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14208 printf %s "checking for dlopen in -ldl... " >&6; }
14209 if test ${ac_cv_lib_dl_dlopen+y}
14210 then :
14211 printf %s "(cached) " >&6
14212 else case e in #(
14213 e) ac_check_lib_save_LIBS=$LIBS
14214 LIBS="-ldl $LIBS"
14215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14216 /* end confdefs.h. */
14217
14218 /* Override any GCC internal prototype to avoid an error.
14219 Use char because int might match the return type of a GCC
14220 builtin and then its argument prototype would still apply.
14221 The 'extern "C"' is for builds by C++ compilers;
14222 although this is not generally supported in C code supporting it here
14223 has little cost and some practical benefit (sr 110532). */
14224 #ifdef __cplusplus
14225 extern "C"
14226 #endif
14227 char dlopen (void);
14228 int
14229 main (void)
14230 {
14231 return dlopen ();
14232 ;
14233 return 0;
14234 }
14235 _ACEOF
14236 if ac_fn_c_try_link "$LINENO"
14237 then :
14238 ac_cv_lib_dl_dlopen=yes
14239 else case e in #(
14240 e) ac_cv_lib_dl_dlopen=no ;;
14241 esac
14242 fi
14243 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14244 conftest$ac_exeext conftest.$ac_ext
14245 LIBS=$ac_check_lib_save_LIBS ;;
14246 esac
14247 fi
14248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14249 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
14250 if test "x$ac_cv_lib_dl_dlopen" = xyes
14251 then :
14252 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14253 else case e in #(
14254 e)
14255 lt_cv_dlopen=dyld
14256 lt_cv_dlopen_libs=
14257 lt_cv_dlopen_self=yes
14258 ;;
14259 esac
14260 fi
14261
14262 ;;
14263
14264 tpf*)
14265 # Don't try to run any link tests for TPF. We know it's impossible
14266 # because TPF is a cross-compiler, and we know how we open DSOs.
14267 lt_cv_dlopen=dlopen
14268 lt_cv_dlopen_libs=
14269 lt_cv_dlopen_self=no
14270 ;;
14271
14272 *)
14273 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14274 if test "x$ac_cv_func_shl_load" = xyes
14275 then :
14276 lt_cv_dlopen=shl_load
14277 else case e in #(
14278 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14279 printf %s "checking for shl_load in -ldld... " >&6; }
14280 if test ${ac_cv_lib_dld_shl_load+y}
14281 then :
14282 printf %s "(cached) " >&6
14283 else case e in #(
14284 e) ac_check_lib_save_LIBS=$LIBS
14285 LIBS="-ldld $LIBS"
14286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14287 /* end confdefs.h. */
14288
14289 /* Override any GCC internal prototype to avoid an error.
14290 Use char because int might match the return type of a GCC
14291 builtin and then its argument prototype would still apply.
14292 The 'extern "C"' is for builds by C++ compilers;
14293 although this is not generally supported in C code supporting it here
14294 has little cost and some practical benefit (sr 110532). */
14295 #ifdef __cplusplus
14296 extern "C"
14297 #endif
14298 char shl_load (void);
14299 int
14300 main (void)
14301 {
14302 return shl_load ();
14303 ;
14304 return 0;
14305 }
14306 _ACEOF
14307 if ac_fn_c_try_link "$LINENO"
14308 then :
14309 ac_cv_lib_dld_shl_load=yes
14310 else case e in #(
14311 e) ac_cv_lib_dld_shl_load=no ;;
14312 esac
14313 fi
14314 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14315 conftest$ac_exeext conftest.$ac_ext
14316 LIBS=$ac_check_lib_save_LIBS ;;
14317 esac
14318 fi
14319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14320 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
14321 if test "x$ac_cv_lib_dld_shl_load" = xyes
14322 then :
14323 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
14324 else case e in #(
14325 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14326 if test "x$ac_cv_func_dlopen" = xyes
14327 then :
14328 lt_cv_dlopen=dlopen
14329 else case e in #(
14330 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14331 printf %s "checking for dlopen in -ldl... " >&6; }
14332 if test ${ac_cv_lib_dl_dlopen+y}
14333 then :
14334 printf %s "(cached) " >&6
14335 else case e in #(
14336 e) ac_check_lib_save_LIBS=$LIBS
14337 LIBS="-ldl $LIBS"
14338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14339 /* end confdefs.h. */
14340
14341 /* Override any GCC internal prototype to avoid an error.
14342 Use char because int might match the return type of a GCC
14343 builtin and then its argument prototype would still apply.
14344 The 'extern "C"' is for builds by C++ compilers;
14345 although this is not generally supported in C code supporting it here
14346 has little cost and some practical benefit (sr 110532). */
14347 #ifdef __cplusplus
14348 extern "C"
14349 #endif
14350 char dlopen (void);
14351 int
14352 main (void)
14353 {
14354 return dlopen ();
14355 ;
14356 return 0;
14357 }
14358 _ACEOF
14359 if ac_fn_c_try_link "$LINENO"
14360 then :
14361 ac_cv_lib_dl_dlopen=yes
14362 else case e in #(
14363 e) ac_cv_lib_dl_dlopen=no ;;
14364 esac
14365 fi
14366 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14367 conftest$ac_exeext conftest.$ac_ext
14368 LIBS=$ac_check_lib_save_LIBS ;;
14369 esac
14370 fi
14371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14372 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
14373 if test "x$ac_cv_lib_dl_dlopen" = xyes
14374 then :
14375 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14376 else case e in #(
14377 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14378 printf %s "checking for dlopen in -lsvld... " >&6; }
14379 if test ${ac_cv_lib_svld_dlopen+y}
14380 then :
14381 printf %s "(cached) " >&6
14382 else case e in #(
14383 e) ac_check_lib_save_LIBS=$LIBS
14384 LIBS="-lsvld $LIBS"
14385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14386 /* end confdefs.h. */
14387
14388 /* Override any GCC internal prototype to avoid an error.
14389 Use char because int might match the return type of a GCC
14390 builtin and then its argument prototype would still apply.
14391 The 'extern "C"' is for builds by C++ compilers;
14392 although this is not generally supported in C code supporting it here
14393 has little cost and some practical benefit (sr 110532). */
14394 #ifdef __cplusplus
14395 extern "C"
14396 #endif
14397 char dlopen (void);
14398 int
14399 main (void)
14400 {
14401 return dlopen ();
14402 ;
14403 return 0;
14404 }
14405 _ACEOF
14406 if ac_fn_c_try_link "$LINENO"
14407 then :
14408 ac_cv_lib_svld_dlopen=yes
14409 else case e in #(
14410 e) ac_cv_lib_svld_dlopen=no ;;
14411 esac
14412 fi
14413 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14414 conftest$ac_exeext conftest.$ac_ext
14415 LIBS=$ac_check_lib_save_LIBS ;;
14416 esac
14417 fi
14418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14419 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
14420 if test "x$ac_cv_lib_svld_dlopen" = xyes
14421 then :
14422 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
14423 else case e in #(
14424 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14425 printf %s "checking for dld_link in -ldld... " >&6; }
14426 if test ${ac_cv_lib_dld_dld_link+y}
14427 then :
14428 printf %s "(cached) " >&6
14429 else case e in #(
14430 e) ac_check_lib_save_LIBS=$LIBS
14431 LIBS="-ldld $LIBS"
14432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14433 /* end confdefs.h. */
14434
14435 /* Override any GCC internal prototype to avoid an error.
14436 Use char because int might match the return type of a GCC
14437 builtin and then its argument prototype would still apply.
14438 The 'extern "C"' is for builds by C++ compilers;
14439 although this is not generally supported in C code supporting it here
14440 has little cost and some practical benefit (sr 110532). */
14441 #ifdef __cplusplus
14442 extern "C"
14443 #endif
14444 char dld_link (void);
14445 int
14446 main (void)
14447 {
14448 return dld_link ();
14449 ;
14450 return 0;
14451 }
14452 _ACEOF
14453 if ac_fn_c_try_link "$LINENO"
14454 then :
14455 ac_cv_lib_dld_dld_link=yes
14456 else case e in #(
14457 e) ac_cv_lib_dld_dld_link=no ;;
14458 esac
14459 fi
14460 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14461 conftest$ac_exeext conftest.$ac_ext
14462 LIBS=$ac_check_lib_save_LIBS ;;
14463 esac
14464 fi
14465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14466 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
14467 if test "x$ac_cv_lib_dld_dld_link" = xyes
14468 then :
14469 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
14470 fi
14471
14472 ;;
14473 esac
14474 fi
14475
14476 ;;
14477 esac
14478 fi
14479
14480 ;;
14481 esac
14482 fi
14483
14484 ;;
14485 esac
14486 fi
14487
14488 ;;
14489 esac
14490 fi
14491
14492 ;;
14493 esac
14494
14495 if test no = "$lt_cv_dlopen"; then
14496 enable_dlopen=no
14497 else
14498 enable_dlopen=yes
14499 fi
14500
14501 case $lt_cv_dlopen in
14502 dlopen)
14503 save_CPPFLAGS=$CPPFLAGS
14504 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14505
14506 save_LDFLAGS=$LDFLAGS
14507 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14508
14509 save_LIBS=$LIBS
14510 LIBS="$lt_cv_dlopen_libs $LIBS"
14511
14512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14513 printf %s "checking whether a program can dlopen itself... " >&6; }
14514 if test ${lt_cv_dlopen_self+y}
14515 then :
14516 printf %s "(cached) " >&6
14517 else case e in #(
14518 e) if test yes = "$cross_compiling"; then :
14519 lt_cv_dlopen_self=cross
14520 else
14521 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14522 lt_status=$lt_dlunknown
14523 cat > conftest.$ac_ext <<_LT_EOF
14524 #line $LINENO "configure"
14525 #include "confdefs.h"
14526
14527 #if HAVE_DLFCN_H
14528 #include <dlfcn.h>
14529 #endif
14530
14531 #include <stdio.h>
14532
14533 #ifdef RTLD_GLOBAL
14534 # define LT_DLGLOBAL RTLD_GLOBAL
14535 #else
14536 # ifdef DL_GLOBAL
14537 # define LT_DLGLOBAL DL_GLOBAL
14538 # else
14539 # define LT_DLGLOBAL 0
14540 # endif
14541 #endif
14542
14543 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14544 find out it does not work in some platform. */
14545 #ifndef LT_DLLAZY_OR_NOW
14546 # ifdef RTLD_LAZY
14547 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14548 # else
14549 # ifdef DL_LAZY
14550 # define LT_DLLAZY_OR_NOW DL_LAZY
14551 # else
14552 # ifdef RTLD_NOW
14553 # define LT_DLLAZY_OR_NOW RTLD_NOW
14554 # else
14555 # ifdef DL_NOW
14556 # define LT_DLLAZY_OR_NOW DL_NOW
14557 # else
14558 # define LT_DLLAZY_OR_NOW 0
14559 # endif
14560 # endif
14561 # endif
14562 # endif
14563 #endif
14564
14565 /* When -fvisibility=hidden is used, assume the code has been annotated
14566 correspondingly for the symbols needed. */
14567 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14568 int fnord (void) __attribute__((visibility("default")));
14569 #endif
14570
14571 int fnord (void) { return 42; }
14572 int main (void)
14573 {
14574 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14575 int status = $lt_dlunknown;
14576
14577 if (self)
14578 {
14579 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14580 else
14581 {
14582 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14583 else puts (dlerror ());
14584 }
14585 /* dlclose (self); */
14586 }
14587 else
14588 puts (dlerror ());
14589
14590 return status;
14591 }
14592 _LT_EOF
14593 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14594 (eval $ac_link) 2>&5
14595 ac_status=$?
14596 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14597 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14598 (./conftest; exit; ) >&5 2>/dev/null
14599 lt_status=$?
14600 case x$lt_status in
14601 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14602 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14603 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14604 esac
14605 else :
14606 # compilation failed
14607 lt_cv_dlopen_self=no
14608 fi
14609 fi
14610 rm -fr conftest*
14611
14612 ;;
14613 esac
14614 fi
14615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14616 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
14617
14618 if test yes = "$lt_cv_dlopen_self"; then
14619 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14621 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
14622 if test ${lt_cv_dlopen_self_static+y}
14623 then :
14624 printf %s "(cached) " >&6
14625 else case e in #(
14626 e) if test yes = "$cross_compiling"; then :
14627 lt_cv_dlopen_self_static=cross
14628 else
14629 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14630 lt_status=$lt_dlunknown
14631 cat > conftest.$ac_ext <<_LT_EOF
14632 #line $LINENO "configure"
14633 #include "confdefs.h"
14634
14635 #if HAVE_DLFCN_H
14636 #include <dlfcn.h>
14637 #endif
14638
14639 #include <stdio.h>
14640
14641 #ifdef RTLD_GLOBAL
14642 # define LT_DLGLOBAL RTLD_GLOBAL
14643 #else
14644 # ifdef DL_GLOBAL
14645 # define LT_DLGLOBAL DL_GLOBAL
14646 # else
14647 # define LT_DLGLOBAL 0
14648 # endif
14649 #endif
14650
14651 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14652 find out it does not work in some platform. */
14653 #ifndef LT_DLLAZY_OR_NOW
14654 # ifdef RTLD_LAZY
14655 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14656 # else
14657 # ifdef DL_LAZY
14658 # define LT_DLLAZY_OR_NOW DL_LAZY
14659 # else
14660 # ifdef RTLD_NOW
14661 # define LT_DLLAZY_OR_NOW RTLD_NOW
14662 # else
14663 # ifdef DL_NOW
14664 # define LT_DLLAZY_OR_NOW DL_NOW
14665 # else
14666 # define LT_DLLAZY_OR_NOW 0
14667 # endif
14668 # endif
14669 # endif
14670 # endif
14671 #endif
14672
14673 /* When -fvisibility=hidden is used, assume the code has been annotated
14674 correspondingly for the symbols needed. */
14675 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14676 int fnord (void) __attribute__((visibility("default")));
14677 #endif
14678
14679 int fnord (void) { return 42; }
14680 int main (void)
14681 {
14682 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14683 int status = $lt_dlunknown;
14684
14685 if (self)
14686 {
14687 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14688 else
14689 {
14690 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14691 else puts (dlerror ());
14692 }
14693 /* dlclose (self); */
14694 }
14695 else
14696 puts (dlerror ());
14697
14698 return status;
14699 }
14700 _LT_EOF
14701 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14702 (eval $ac_link) 2>&5
14703 ac_status=$?
14704 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14705 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14706 (./conftest; exit; ) >&5 2>/dev/null
14707 lt_status=$?
14708 case x$lt_status in
14709 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14710 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14711 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14712 esac
14713 else :
14714 # compilation failed
14715 lt_cv_dlopen_self_static=no
14716 fi
14717 fi
14718 rm -fr conftest*
14719
14720 ;;
14721 esac
14722 fi
14723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14724 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
14725 fi
14726
14727 CPPFLAGS=$save_CPPFLAGS
14728 LDFLAGS=$save_LDFLAGS
14729 LIBS=$save_LIBS
14730 ;;
14731 esac
14732
14733 case $lt_cv_dlopen_self in
14734 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14735 *) enable_dlopen_self=unknown ;;
14736 esac
14737
14738 case $lt_cv_dlopen_self_static in
14739 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14740 *) enable_dlopen_self_static=unknown ;;
14741 esac
14742 fi
14743
14744
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760 striplib=
14761 old_striplib=
14762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14763 printf %s "checking whether stripping libraries is possible... " >&6; }
14764 if test -z "$STRIP"; then
14765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14766 printf "%s\n" "no" >&6; }
14767 else
14768 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14769 old_striplib="$STRIP --strip-debug"
14770 striplib="$STRIP --strip-unneeded"
14771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14772 printf "%s\n" "yes" >&6; }
14773 else
14774 case $host_os in
14775 darwin*)
14776 # FIXME - insert some real tests, host_os isn't really good enough
14777 striplib="$STRIP -x"
14778 old_striplib="$STRIP -S"
14779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14780 printf "%s\n" "yes" >&6; }
14781 ;;
14782 freebsd*)
14783 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
14784 old_striplib="$STRIP --strip-debug"
14785 striplib="$STRIP --strip-unneeded"
14786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14787 printf "%s\n" "yes" >&6; }
14788 else
14789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14790 printf "%s\n" "no" >&6; }
14791 fi
14792 ;;
14793 *)
14794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14795 printf "%s\n" "no" >&6; }
14796 ;;
14797 esac
14798 fi
14799 fi
14800
14801
14802
14803
14804
14805
14806
14807
14808
14809
14810
14811
14812 # Report what library types will actually be built
14813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14814 printf %s "checking if libtool supports shared libraries... " >&6; }
14815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14816 printf "%s\n" "$can_build_shared" >&6; }
14817
14818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14819 printf %s "checking whether to build shared libraries... " >&6; }
14820 test no = "$can_build_shared" && enable_shared=no
14821
14822 # On AIX, shared libraries and static libraries use the same namespace, and
14823 # are all built from PIC.
14824 case $host_os in
14825 aix3*)
14826 test yes = "$enable_shared" && enable_static=no
14827 if test -n "$RANLIB"; then
14828 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14829 postinstall_cmds='$RANLIB $lib'
14830 fi
14831 ;;
14832
14833 aix[4-9]*)
14834 if test ia64 != "$host_cpu"; then
14835 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14836 yes,aix,yes) ;; # shared object as lib.so file only
14837 yes,svr4,*) ;; # shared object as lib.so archive member only
14838 yes,*) enable_static=no ;; # shared object in lib.a archive as well
14839 esac
14840 fi
14841 ;;
14842 esac
14843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14844 printf "%s\n" "$enable_shared" >&6; }
14845
14846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14847 printf %s "checking whether to build static libraries... " >&6; }
14848 # Make sure either enable_shared or enable_static is yes.
14849 test yes = "$enable_shared" || enable_static=yes
14850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14851 printf "%s\n" "$enable_static" >&6; }
14852
14853
14854
14855
14856 fi
14857 ac_ext=c
14858 ac_cpp='$CPP $CPPFLAGS'
14859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14862
14863 CC=$lt_save_CC
14864
14865
14866
14867
14868
14869
14870
14871
14872
14873
14874
14875
14876
14877
14878
14879 ac_config_commands="$ac_config_commands libtool"
14880
14881
14882
14883
14884 # Only expand once:
14885
14886
14887 # (end lt_init)
14888 # Check whether --enable-largefile was given.
14889 if test ${enable_largefile+y}
14890 then :
14891 enableval=$enable_largefile;
14892 fi
14893 if test "$enable_largefile,$enable_year2038" != no,no
14894 then :
14895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5
14896 printf %s "checking for $CC option to enable large file support... " >&6; }
14897 if test ${ac_cv_sys_largefile_opts+y}
14898 then :
14899 printf %s "(cached) " >&6
14900 else case e in #(
14901 e) ac_save_CC="$CC"
14902 ac_opt_found=no
14903 for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do
14904 if test x"$ac_opt" != x"none needed"
14905 then :
14906 CC="$ac_save_CC $ac_opt"
14907 fi
14908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14909 /* end confdefs.h. */
14910 #include <sys/types.h>
14911 #ifndef FTYPE
14912 # define FTYPE off_t
14913 #endif
14914 /* Check that FTYPE can represent 2**63 - 1 correctly.
14915 We can't simply define LARGE_FTYPE to be 9223372036854775807,
14916 since some C++ compilers masquerading as C compilers
14917 incorrectly reject 9223372036854775807. */
14918 #define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31))
14919 int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721
14920 && LARGE_FTYPE % 2147483647 == 1)
14921 ? 1 : -1];
14922 int
14923 main (void)
14924 {
14925
14926 ;
14927 return 0;
14928 }
14929 _ACEOF
14930 if ac_fn_c_try_compile "$LINENO"
14931 then :
14932 if test x"$ac_opt" = x"none needed"
14933 then :
14934 # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t.
14935 CC="$CC -DFTYPE=ino_t"
14936 if ac_fn_c_try_compile "$LINENO"
14937 then :
14938
14939 else case e in #(
14940 e) CC="$CC -D_FILE_OFFSET_BITS=64"
14941 if ac_fn_c_try_compile "$LINENO"
14942 then :
14943 ac_opt='-D_FILE_OFFSET_BITS=64'
14944 fi
14945 rm -f core conftest.err conftest.$ac_objext conftest.beam ;;
14946 esac
14947 fi
14948 rm -f core conftest.err conftest.$ac_objext conftest.beam
14949 fi
14950 ac_cv_sys_largefile_opts=$ac_opt
14951 ac_opt_found=yes
14952 fi
14953 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14954 test $ac_opt_found = no || break
14955 done
14956 CC="$ac_save_CC"
14957
14958 test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;;
14959 esac
14960 fi
14961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5
14962 printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; }
14963
14964 ac_have_largefile=yes
14965 case $ac_cv_sys_largefile_opts in #(
14966 "none needed") :
14967 ;; #(
14968 "supported through gnulib") :
14969 ;; #(
14970 "support not detected") :
14971 ac_have_largefile=no ;; #(
14972 "-D_FILE_OFFSET_BITS=64") :
14973
14974 printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
14975 ;; #(
14976 "-D_LARGE_FILES=1") :
14977
14978 printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h
14979 ;; #(
14980 "-n32") :
14981 CC="$CC -n32" ;; #(
14982 *) :
14983 as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;;
14984 esac
14985
14986 if test "$enable_year2038" != no
14987 then :
14988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option for timestamps after 2038" >&5
14989 printf %s "checking for $CC option for timestamps after 2038... " >&6; }
14990 if test ${ac_cv_sys_year2038_opts+y}
14991 then :
14992 printf %s "(cached) " >&6
14993 else case e in #(
14994 e) ac_save_CPPFLAGS="$CPPFLAGS"
14995 ac_opt_found=no
14996 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
14997 if test x"$ac_opt" != x"none needed"
14998 then :
14999 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
15000 fi
15001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15002 /* end confdefs.h. */
15003
15004 #include <time.h>
15005 /* Check that time_t can represent 2**32 - 1 correctly. */
15006 #define LARGE_TIME_T \\
15007 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
15008 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
15009 && LARGE_TIME_T % 65537 == 0)
15010 ? 1 : -1];
15011
15012 int
15013 main (void)
15014 {
15015
15016 ;
15017 return 0;
15018 }
15019 _ACEOF
15020 if ac_fn_c_try_compile "$LINENO"
15021 then :
15022 ac_cv_sys_year2038_opts="$ac_opt"
15023 ac_opt_found=yes
15024 fi
15025 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15026 test $ac_opt_found = no || break
15027 done
15028 CPPFLAGS="$ac_save_CPPFLAGS"
15029 test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;;
15030 esac
15031 fi
15032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5
15033 printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; }
15034
15035 ac_have_year2038=yes
15036 case $ac_cv_sys_year2038_opts in #(
15037 "none needed") :
15038 ;; #(
15039 "support not detected") :
15040 ac_have_year2038=no ;; #(
15041 "-D_TIME_BITS=64") :
15042
15043 printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h
15044 ;; #(
15045 "-D__MINGW_USE_VC2005_COMPAT") :
15046
15047 printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h
15048 ;; #(
15049 "-U_USE_32_BIT_TIME_T"*) :
15050 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
15051 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
15052 as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It
15053 will stop working after mid-January 2038. Remove
15054 _USE_32BIT_TIME_T from the compiler flags.
15055 See 'config.log' for more details" "$LINENO" 5; } ;; #(
15056 *) :
15057 as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;;
15058 esac
15059
15060 fi
15061
15062 fi
15063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for declarations of fseeko and ftello" >&5
15064 printf %s "checking for declarations of fseeko and ftello... " >&6; }
15065 if test ${ac_cv_func_fseeko_ftello+y}
15066 then :
15067 printf %s "(cached) " >&6
15068 else case e in #(
15069 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15070 /* end confdefs.h. */
15071
15072 #if defined __hpux && !defined _LARGEFILE_SOURCE
15073 # include <limits.h>
15074 # if LONG_MAX >> 31 == 0
15075 # error "32-bit HP-UX 11/ia64 needs _LARGEFILE_SOURCE for fseeko in C++"
15076 # endif
15077 #endif
15078 #include <sys/types.h> /* for off_t */
15079 #include <stdio.h>
15080
15081 int
15082 main (void)
15083 {
15084
15085 int (*fp1) (FILE *, off_t, int) = fseeko;
15086 off_t (*fp2) (FILE *) = ftello;
15087 return fseeko (stdin, 0, 0)
15088 && fp1 (stdin, 0, 0)
15089 && ftello (stdin) >= 0
15090 && fp2 (stdin) >= 0;
15091
15092 ;
15093 return 0;
15094 }
15095 _ACEOF
15096 if ac_fn_c_try_compile "$LINENO"
15097 then :
15098 ac_cv_func_fseeko_ftello=yes
15099 else case e in #(
15100 e) ac_save_CPPFLAGS="$CPPFLAGS"
15101 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE=1"
15102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15103 /* end confdefs.h. */
15104
15105 #if defined __hpux && !defined _LARGEFILE_SOURCE
15106 # include <limits.h>
15107 # if LONG_MAX >> 31 == 0
15108 # error "32-bit HP-UX 11/ia64 needs _LARGEFILE_SOURCE for fseeko in C++"
15109 # endif
15110 #endif
15111 #include <sys/types.h> /* for off_t */
15112 #include <stdio.h>
15113
15114 int
15115 main (void)
15116 {
15117
15118 int (*fp1) (FILE *, off_t, int) = fseeko;
15119 off_t (*fp2) (FILE *) = ftello;
15120 return fseeko (stdin, 0, 0)
15121 && fp1 (stdin, 0, 0)
15122 && ftello (stdin) >= 0
15123 && fp2 (stdin) >= 0;
15124
15125 ;
15126 return 0;
15127 }
15128 _ACEOF
15129 if ac_fn_c_try_compile "$LINENO"
15130 then :
15131 ac_cv_func_fseeko_ftello="need _LARGEFILE_SOURCE"
15132 else case e in #(
15133 e) ac_cv_func_fseeko_ftello=no ;;
15134 esac
15135 fi
15136 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15137 esac
15138 fi
15139 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15140 esac
15141 fi
15142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fseeko_ftello" >&5
15143 printf "%s\n" "$ac_cv_func_fseeko_ftello" >&6; }
15144 if test "$ac_cv_func_fseeko_ftello" != no
15145 then :
15146
15147 printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h
15148
15149 fi
15150 if test "$ac_cv_func_fseeko_ftello" = "need _LARGEFILE_SOURCE"
15151 then :
15152
15153 printf "%s\n" "#define _LARGEFILE_SOURCE 1" >>confdefs.h
15154
15155 fi
15156
15157 ac_header_dirent=no
15158 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15159 as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | sed "$as_sed_sh"`
15160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
15161 printf %s "checking for $ac_hdr that defines DIR... " >&6; }
15162 if eval test \${$as_ac_Header+y}
15163 then :
15164 printf %s "(cached) " >&6
15165 else case e in #(
15166 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15167 /* end confdefs.h. */
15168 #include <sys/types.h>
15169 #include <$ac_hdr>
15170
15171 int
15172 main (void)
15173 {
15174 if ((DIR *) 0)
15175 return 0;
15176 ;
15177 return 0;
15178 }
15179 _ACEOF
15180 if ac_fn_c_try_compile "$LINENO"
15181 then :
15182 eval "$as_ac_Header=yes"
15183 else case e in #(
15184 e) eval "$as_ac_Header=no" ;;
15185 esac
15186 fi
15187 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15188 esac
15189 fi
15190 eval ac_res=\$$as_ac_Header
15191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15192 printf "%s\n" "$ac_res" >&6; }
15193 if eval test \"x\$"$as_ac_Header"\" = x"yes"
15194 then :
15195 cat >>confdefs.h <<_ACEOF
15196 #define `printf "%s\n" "HAVE_$ac_hdr" | sed "$as_sed_cpp"` 1
15197 _ACEOF
15198
15199 ac_header_dirent=$ac_hdr; break
15200 fi
15201
15202 done
15203 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15204 if test $ac_header_dirent = dirent.h; then
15205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
15206 printf %s "checking for library containing opendir... " >&6; }
15207 if test ${ac_cv_search_opendir+y}
15208 then :
15209 printf %s "(cached) " >&6
15210 else case e in #(
15211 e) ac_func_search_save_LIBS=$LIBS
15212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15213 /* end confdefs.h. */
15214
15215 /* Override any GCC internal prototype to avoid an error.
15216 Use char because int might match the return type of a GCC
15217 builtin and then its argument prototype would still apply.
15218 The 'extern "C"' is for builds by C++ compilers;
15219 although this is not generally supported in C code supporting it here
15220 has little cost and some practical benefit (sr 110532). */
15221 #ifdef __cplusplus
15222 extern "C"
15223 #endif
15224 char opendir (void);
15225 int
15226 main (void)
15227 {
15228 return opendir ();
15229 ;
15230 return 0;
15231 }
15232 _ACEOF
15233 for ac_lib in '' dir
15234 do
15235 if test -z "$ac_lib"; then
15236 ac_res="none required"
15237 else
15238 ac_res=-l$ac_lib
15239 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15240 fi
15241 if ac_fn_c_try_link "$LINENO"
15242 then :
15243 ac_cv_search_opendir=$ac_res
15244 fi
15245 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15246 conftest$ac_exeext
15247 if test ${ac_cv_search_opendir+y}
15248 then :
15249 break
15250 fi
15251 done
15252 if test ${ac_cv_search_opendir+y}
15253 then :
15254
15255 else case e in #(
15256 e) ac_cv_search_opendir=no ;;
15257 esac
15258 fi
15259 rm conftest.$ac_ext
15260 LIBS=$ac_func_search_save_LIBS ;;
15261 esac
15262 fi
15263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15264 printf "%s\n" "$ac_cv_search_opendir" >&6; }
15265 ac_res=$ac_cv_search_opendir
15266 if test "$ac_res" != no
15267 then :
15268 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15269
15270 fi
15271
15272 else
15273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
15274 printf %s "checking for library containing opendir... " >&6; }
15275 if test ${ac_cv_search_opendir+y}
15276 then :
15277 printf %s "(cached) " >&6
15278 else case e in #(
15279 e) ac_func_search_save_LIBS=$LIBS
15280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15281 /* end confdefs.h. */
15282
15283 /* Override any GCC internal prototype to avoid an error.
15284 Use char because int might match the return type of a GCC
15285 builtin and then its argument prototype would still apply.
15286 The 'extern "C"' is for builds by C++ compilers;
15287 although this is not generally supported in C code supporting it here
15288 has little cost and some practical benefit (sr 110532). */
15289 #ifdef __cplusplus
15290 extern "C"
15291 #endif
15292 char opendir (void);
15293 int
15294 main (void)
15295 {
15296 return opendir ();
15297 ;
15298 return 0;
15299 }
15300 _ACEOF
15301 for ac_lib in '' x
15302 do
15303 if test -z "$ac_lib"; then
15304 ac_res="none required"
15305 else
15306 ac_res=-l$ac_lib
15307 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15308 fi
15309 if ac_fn_c_try_link "$LINENO"
15310 then :
15311 ac_cv_search_opendir=$ac_res
15312 fi
15313 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15314 conftest$ac_exeext
15315 if test ${ac_cv_search_opendir+y}
15316 then :
15317 break
15318 fi
15319 done
15320 if test ${ac_cv_search_opendir+y}
15321 then :
15322
15323 else case e in #(
15324 e) ac_cv_search_opendir=no ;;
15325 esac
15326 fi
15327 rm conftest.$ac_ext
15328 LIBS=$ac_func_search_save_LIBS ;;
15329 esac
15330 fi
15331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15332 printf "%s\n" "$ac_cv_search_opendir" >&6; }
15333 ac_res=$ac_cv_search_opendir
15334 if test "$ac_res" != no
15335 then :
15336 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15337
15338 fi
15339
15340 fi
15341
15342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
15343 printf %s "checking whether closedir returns void... " >&6; }
15344 if test ${ac_cv_func_closedir_void+y}
15345 then :
15346 printf %s "(cached) " >&6
15347 else case e in #(
15348 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15349 /* end confdefs.h. */
15350
15351 #include <$ac_header_dirent>
15352
15353 int
15354 main (void)
15355 {
15356
15357 return closedir(0);
15358
15359 ;
15360 return 0;
15361 }
15362 _ACEOF
15363 if ac_fn_c_try_compile "$LINENO"
15364 then :
15365 ac_cv_func_closedir_void=no
15366 else case e in #(
15367 e) ac_cv_func_closedir_void=yes ;;
15368 esac
15369 fi
15370 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15371 esac
15372 fi
15373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
15374 printf "%s\n" "$ac_cv_func_closedir_void" >&6; }
15375 if test $ac_cv_func_closedir_void = yes; then
15376
15377 printf "%s\n" "#define CLOSEDIR_VOID 1" >>confdefs.h
15378
15379 fi
15380
15381 ac_fn_c_check_header_compile "$LINENO" "assert.h" "ac_cv_header_assert_h" "$ac_includes_default"
15382 if test "x$ac_cv_header_assert_h" = xyes
15383 then :
15384 printf "%s\n" "#define HAVE_ASSERT_H 1" >>confdefs.h
15385
15386 fi
15387 ac_fn_c_check_header_compile "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
15388 if test "x$ac_cv_header_float_h" = xyes
15389 then :
15390 printf "%s\n" "#define HAVE_FLOAT_H 1" >>confdefs.h
15391
15392 fi
15393 ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
15394 if test "x$ac_cv_header_limits_h" = xyes
15395 then :
15396 printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
15397
15398 fi
15399 ac_fn_c_check_header_compile "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default"
15400 if test "x$ac_cv_header_pwd_h" = xyes
15401 then :
15402 printf "%s\n" "#define HAVE_PWD_H 1" >>confdefs.h
15403
15404 fi
15405 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
15406 if test "x$ac_cv_header_stdlib_h" = xyes
15407 then :
15408 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
15409
15410 fi
15411 ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
15412 if test "x$ac_cv_header_sys_param_h" = xyes
15413 then :
15414 printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
15415
15416 fi
15417
15418 ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
15419 if test "x$ac_cv_func_putenv" = xyes
15420 then :
15421 printf "%s\n" "#define HAVE_PUTENV 1" >>confdefs.h
15422
15423 fi
15424
15425 ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
15426 if test "x$ac_cv_func_getcwd" = xyes
15427 then :
15428 printf "%s\n" "#define HAVE_GETCWD 1" >>confdefs.h
15429
15430 fi
15431 ac_fn_c_check_func "$LINENO" "memcmp" "ac_cv_func_memcmp"
15432 if test "x$ac_cv_func_memcmp" = xyes
15433 then :
15434 printf "%s\n" "#define HAVE_MEMCMP 1" >>confdefs.h
15435
15436 fi
15437 ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
15438 if test "x$ac_cv_func_memcpy" = xyes
15439 then :
15440 printf "%s\n" "#define HAVE_MEMCPY 1" >>confdefs.h
15441
15442 fi
15443 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
15444 if test "x$ac_cv_func_mkstemp" = xyes
15445 then :
15446 printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h
15447
15448 fi
15449 ac_fn_c_check_func "$LINENO" "mktemp" "ac_cv_func_mktemp"
15450 if test "x$ac_cv_func_mktemp" = xyes
15451 then :
15452 printf "%s\n" "#define HAVE_MKTEMP 1" >>confdefs.h
15453
15454 fi
15455 ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
15456 if test "x$ac_cv_func_strchr" = xyes
15457 then :
15458 printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
15459
15460 fi
15461 ac_fn_c_check_func "$LINENO" "strrchr" "ac_cv_func_strrchr"
15462 if test "x$ac_cv_func_strrchr" = xyes
15463 then :
15464 printf "%s\n" "#define HAVE_STRRCHR 1" >>confdefs.h
15465
15466 fi
15467
15468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
15469 printf %s "checking for an ANSI C-conforming const... " >&6; }
15470 if test ${ac_cv_c_const+y}
15471 then :
15472 printf %s "(cached) " >&6
15473 else case e in #(
15474 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15475 /* end confdefs.h. */
15476
15477 int
15478 main (void)
15479 {
15480
15481 #ifndef __cplusplus
15482 /* Ultrix mips cc rejects this sort of thing. */
15483 typedef int charset[2];
15484 const charset cs = { 0, 0 };
15485 /* SunOS 4.1.1 cc rejects this. */
15486 char const *const *pcpcc;
15487 char **ppc;
15488 /* NEC SVR4.0.2 mips cc rejects this. */
15489 struct point {int x, y;};
15490 static struct point const zero = {0,0};
15491 /* IBM XL C 1.02.0.0 rejects this.
15492 It does not let you subtract one const X* pointer from another in
15493 an arm of an if-expression whose if-part is not a constant
15494 expression */
15495 const char *g = "string";
15496 pcpcc = &g + (g ? g-g : 0);
15497 /* HPUX 7.0 cc rejects these. */
15498 ++pcpcc;
15499 ppc = (char**) pcpcc;
15500 pcpcc = (char const *const *) ppc;
15501 { /* SCO 3.2v4 cc rejects this sort of thing. */
15502 char tx;
15503 char *t = &tx;
15504 char const *s = 0 ? (char *) 0 : (char const *) 0;
15505
15506 *t++ = 0;
15507 if (s) return 0;
15508 }
15509 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15510 int x[] = {25, 17};
15511 const int *foo = &x[0];
15512 ++foo;
15513 }
15514 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15515 typedef const int *iptr;
15516 iptr p = 0;
15517 ++p;
15518 }
15519 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
15520 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15521 struct s { int j; const int *ap[3]; } bx;
15522 struct s *b = &bx; b->j = 5;
15523 }
15524 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15525 const int foo = 10;
15526 if (!foo) return 0;
15527 }
15528 return !cs[0] && !zero.x;
15529 #endif
15530
15531 ;
15532 return 0;
15533 }
15534 _ACEOF
15535 if ac_fn_c_try_compile "$LINENO"
15536 then :
15537 ac_cv_c_const=yes
15538 else case e in #(
15539 e) ac_cv_c_const=no ;;
15540 esac
15541 fi
15542 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15543 esac
15544 fi
15545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
15546 printf "%s\n" "$ac_cv_c_const" >&6; }
15547 if test $ac_cv_c_const = no; then
15548
15549 printf "%s\n" "#define const /**/" >>confdefs.h
15550
15551 fi
15552
15553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15554 printf %s "checking for inline... " >&6; }
15555 if test ${ac_cv_c_inline+y}
15556 then :
15557 printf %s "(cached) " >&6
15558 else case e in #(
15559 e) ac_cv_c_inline=no
15560 for ac_kw in inline __inline__ __inline; do
15561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15562 /* end confdefs.h. */
15563 #ifndef __cplusplus
15564 typedef int foo_t;
15565 static $ac_kw foo_t static_foo (void) {return 0; }
15566 $ac_kw foo_t foo (void) {return 0; }
15567 #endif
15568
15569 _ACEOF
15570 if ac_fn_c_try_compile "$LINENO"
15571 then :
15572 ac_cv_c_inline=$ac_kw
15573 fi
15574 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15575 test "$ac_cv_c_inline" != no && break
15576 done
15577 ;;
15578 esac
15579 fi
15580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15581 printf "%s\n" "$ac_cv_c_inline" >&6; }
15582
15583 case $ac_cv_c_inline in
15584 inline | yes) ;;
15585 *)
15586 case $ac_cv_c_inline in
15587 no) ac_val=;;
15588 *) ac_val=$ac_cv_c_inline;;
15589 esac
15590 cat >>confdefs.h <<_ACEOF
15591 #ifndef __cplusplus
15592 #define inline $ac_val
15593 #endif
15594 _ACEOF
15595 ;;
15596 esac
15597
15598 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15599 if test "x$ac_cv_type_size_t" = xyes
15600 then :
15601
15602 else case e in #(
15603 e)
15604 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
15605 ;;
15606 esac
15607 fi
15608
15609 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
15610 case $ac_cv_c_int64_t in #(
15611 no|yes) ;; #(
15612 *)
15613
15614 printf "%s\n" "#define int64_t $ac_cv_c_int64_t" >>confdefs.h
15615 ;;
15616 esac
15617
15618 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
15619 case $ac_cv_c_uint64_t in #(
15620 no|yes) ;; #(
15621 *)
15622
15623 printf "%s\n" "#define _UINT64_T 1" >>confdefs.h
15624
15625
15626 printf "%s\n" "#define uint64_t $ac_cv_c_uint64_t" >>confdefs.h
15627 ;;
15628 esac
15629
15630 case :$ac_cv_c_int64_t:$ac_cv_c_int64_t: in #(
15631 *':no:'*) :
15632 as_fn_error $? "Sorry, your compiler does not support 64-bit integer types." "$LINENO" 5 ;; #(
15633 *) :
15634 ;;
15635 esac
15636 ac_fn_check_decl "$LINENO" "isascii" "ac_cv_have_decl_isascii" "#include <ctype.h>
15637 " "$ac_c_undeclared_builtin_options" "CFLAGS"
15638 if test "x$ac_cv_have_decl_isascii" = xyes
15639 then :
15640 ac_have_decl=1
15641 else case e in #(
15642 e) ac_have_decl=0 ;;
15643 esac
15644 fi
15645 printf "%s\n" "#define HAVE_DECL_ISASCII $ac_have_decl" >>confdefs.h
15646
15647 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
15648 if test "x$ac_cv_member_struct_stat_st_mtim" = xyes
15649 then :
15650
15651 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_MTIM 1" >>confdefs.h
15652
15653
15654 fi
15655
15656
15657
15658 ac_config_headers="$ac_config_headers c-auto.h:c-auto.in"
15659
15660
15661 kpse_save_CPPFLAGS=$CPPFLAGS
15662 kpse_save_LIBS=$LIBS
15663
15664 ##tldbg _KPSE_INIT: Initialize TL infrastructure.
15665 kpse_BLD=`(cd "./../../." && pwd)`
15666 kpse_SRC=`(cd "$srcdir/../../." && pwd)`
15667
15668 echo 'tldbg:_KPSE_USE_LIBTOOL called, libtool package version: 2.5.4' >&5
15669 : ${CONFIG_LT=./config.lt}
15670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_LT" >&5
15671 printf "%s\n" "$as_me: creating $CONFIG_LT" >&6;}
15672 as_write_fail=0
15673 cat >"$CONFIG_LT" <<_ASEOF || as_write_fail=1
15674 #! $SHELL
15675 # Generated by $as_me.
15676 # Run this file to recreate a libtool stub with the current configuration.
15677 SHELL=\${CONFIG_SHELL-$SHELL}
15678 export SHELL
15679 _ASEOF
15680 cat >>"$CONFIG_LT" <<\_ASEOF || as_write_fail=1
15681 ## -------------------- ##
15682 ## M4sh Initialization. ##
15683 ## -------------------- ##
15684
15685 # Be more Bourne compatible
15686 DUALCASE=1; export DUALCASE # for MKS sh
15687 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
15688 then :
15689 emulate sh
15690 NULLCMD=:
15691 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15692 # is contrary to our usage. Disable this feature.
15693 alias -g '${1+"$@"}'='"$@"'
15694 setopt NO_GLOB_SUBST
15695 else case e in #(
15696 e) case `(set -o) 2>/dev/null` in #(
15697 *posix*) :
15698 set -o posix ;; #(
15699 *) :
15700 ;;
15701 esac ;;
15702 esac
15703 fi
15704
15705
15706
15707 # Reset variables that may have inherited troublesome values from
15708 # the environment.
15709
15710 # IFS needs to be set, to space, tab, and newline, in precisely that order.
15711 # (If _AS_PATH_WALK were called with IFS unset, it would have the
15712 # side effect of setting IFS to empty, thus disabling word splitting.)
15713 # Quoting is to prevent editors from complaining about space-tab.
15714 as_nl='
15715 '
15716 export as_nl
15717 IFS=" "" $as_nl"
15718
15719 PS1='$ '
15720 PS2='> '
15721 PS4='+ '
15722
15723 # Ensure predictable behavior from utilities with locale-dependent output.
15724 LC_ALL=C
15725 export LC_ALL
15726 LANGUAGE=C
15727 export LANGUAGE
15728
15729 # We cannot yet rely on "unset" to work, but we need these variables
15730 # to be unset--not just set to an empty or harmless value--now, to
15731 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
15732 # also avoids known problems related to "unset" and subshell syntax
15733 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
15734 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
15735 do eval test \${$as_var+y} \
15736 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15737 done
15738
15739 # Ensure that fds 0, 1, and 2 are open.
15740 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
15741 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
15742 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
15743
15744 # The user is always right.
15745 if ${PATH_SEPARATOR+false} :; then
15746 PATH_SEPARATOR=:
15747 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15748 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15749 PATH_SEPARATOR=';'
15750 }
15751 fi
15752
15753
15754 # Find who we are. Look in the path if we contain no directory separator.
15755 as_myself=
15756 case $0 in #((
15757 *[\\/]* ) as_myself=$0 ;;
15758 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15759 for as_dir in $PATH
15760 do
15761 IFS=$as_save_IFS
15762 case $as_dir in #(((
15763 '') as_dir=./ ;;
15764 */) ;;
15765 *) as_dir=$as_dir/ ;;
15766 esac
15767 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
15768 done
15769 IFS=$as_save_IFS
15770
15771 ;;
15772 esac
15773 # We did not find ourselves, most probably we were run as 'sh COMMAND'
15774 # in which case we are not to be found in the path.
15775 if test "x$as_myself" = x; then
15776 as_myself=$0
15777 fi
15778 if test ! -f "$as_myself"; then
15779 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15780 exit 1
15781 fi
15782
15783
15784
15785 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15786 # ----------------------------------------
15787 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15788 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15789 # script with STATUS, using 1 if that was 0.
15790 as_fn_error ()
15791 {
15792 as_status=$1; test $as_status -eq 0 && as_status=1
15793 if test "$4"; then
15794 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15795 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15796 fi
15797 printf "%s\n" "$as_me: error: $2" >&2
15798 as_fn_exit $as_status
15799 } # as_fn_error
15800
15801
15802 # as_fn_set_status STATUS
15803 # -----------------------
15804 # Set $? to STATUS, without forking.
15805 as_fn_set_status ()
15806 {
15807 return $1
15808 } # as_fn_set_status
15809
15810 # as_fn_exit STATUS
15811 # -----------------
15812 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15813 as_fn_exit ()
15814 {
15815 set +e
15816 as_fn_set_status $1
15817 exit $1
15818 } # as_fn_exit
15819
15820 # as_fn_unset VAR
15821 # ---------------
15822 # Portably unset VAR.
15823 as_fn_unset ()
15824 {
15825 { eval $1=; unset $1;}
15826 }
15827 as_unset=as_fn_unset
15828
15829 # as_fn_append VAR VALUE
15830 # ----------------------
15831 # Append the text in VALUE to the end of the definition contained in VAR. Take
15832 # advantage of any shell optimizations that allow amortized linear growth over
15833 # repeated appends, instead of the typical quadratic growth present in naive
15834 # implementations.
15835 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
15836 then :
15837 eval 'as_fn_append ()
15838 {
15839 eval $1+=\$2
15840 }'
15841 else case e in #(
15842 e) as_fn_append ()
15843 {
15844 eval $1=\$$1\$2
15845 } ;;
15846 esac
15847 fi # as_fn_append
15848
15849 # as_fn_arith ARG...
15850 # ------------------
15851 # Perform arithmetic evaluation on the ARGs, and store the result in the
15852 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15853 # must be portable across $(()) and expr.
15854 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
15855 then :
15856 eval 'as_fn_arith ()
15857 {
15858 as_val=$(( $* ))
15859 }'
15860 else case e in #(
15861 e) as_fn_arith ()
15862 {
15863 as_val=`expr "$@" || test $? -eq 1`
15864 } ;;
15865 esac
15866 fi # as_fn_arith
15867
15868
15869 if expr a : '\(a\)' >/dev/null 2>&1 &&
15870 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15871 as_expr=expr
15872 else
15873 as_expr=false
15874 fi
15875
15876 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15877 as_basename=basename
15878 else
15879 as_basename=false
15880 fi
15881
15882 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15883 as_dirname=dirname
15884 else
15885 as_dirname=false
15886 fi
15887
15888 as_me=`$as_basename -- "$0" ||
15889 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15890 X"$0" : 'X\(//\)$' \| \
15891 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15892 printf "%s\n" X/"$0" |
15893 sed '/^.*\/\([^/][^/]*\)\/*$/{
15894 s//\1/
15895 q
15896 }
15897 /^X\/\(\/\/\)$/{
15898 s//\1/
15899 q
15900 }
15901 /^X\/\(\/\).*/{
15902 s//\1/
15903 q
15904 }
15905 s/.*/./; q'`
15906
15907 # Avoid depending upon Character Ranges.
15908 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15909 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15910 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15911 as_cr_digits='0123456789'
15912 as_cr_alnum=$as_cr_Letters$as_cr_digits
15913
15914
15915 # Determine whether it's possible to make 'echo' print without a newline.
15916 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
15917 # for compatibility with existing Makefiles.
15918 ECHO_C= ECHO_N= ECHO_T=
15919 case `echo -n x` in #(((((
15920 -n*)
15921 case `echo 'xy\c'` in
15922 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15923 xy) ECHO_C='\c';;
15924 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15925 ECHO_T=' ';;
15926 esac;;
15927 *)
15928 ECHO_N='-n';;
15929 esac
15930
15931 # For backward compatibility with old third-party macros, we provide
15932 # the shell variables $as_echo and $as_echo_n. New code should use
15933 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
15934 as_echo='printf %s\n'
15935 as_echo_n='printf %s'
15936
15937 rm -f conf$$ conf$$.exe conf$$.file
15938 if test -d conf$$.dir; then
15939 rm -f conf$$.dir/conf$$.file
15940 else
15941 rm -f conf$$.dir
15942 mkdir conf$$.dir 2>/dev/null
15943 fi
15944 if (echo >conf$$.file) 2>/dev/null; then
15945 if ln -s conf$$.file conf$$ 2>/dev/null; then
15946 as_ln_s='ln -s'
15947 # ... but there are two gotchas:
15948 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
15949 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
15950 # In both cases, we have to default to 'cp -pR'.
15951 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15952 as_ln_s='cp -pR'
15953 elif ln conf$$.file conf$$ 2>/dev/null; then
15954 as_ln_s=ln
15955 else
15956 as_ln_s='cp -pR'
15957 fi
15958 else
15959 as_ln_s='cp -pR'
15960 fi
15961 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15962 rmdir conf$$.dir 2>/dev/null
15963
15964
15965 # as_fn_mkdir_p
15966 # -------------
15967 # Create "$as_dir" as a directory, including parents if necessary.
15968 as_fn_mkdir_p ()
15969 {
15970
15971 case $as_dir in #(
15972 -*) as_dir=./$as_dir;;
15973 esac
15974 test -d "$as_dir" || eval $as_mkdir_p || {
15975 as_dirs=
15976 while :; do
15977 case $as_dir in #(
15978 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15979 *) as_qdir=$as_dir;;
15980 esac
15981 as_dirs="'$as_qdir' $as_dirs"
15982 as_dir=`$as_dirname -- "$as_dir" ||
15983 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15984 X"$as_dir" : 'X\(//\)[^/]' \| \
15985 X"$as_dir" : 'X\(//\)$' \| \
15986 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15987 printf "%s\n" X"$as_dir" |
15988 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15989 s//\1/
15990 q
15991 }
15992 /^X\(\/\/\)[^/].*/{
15993 s//\1/
15994 q
15995 }
15996 /^X\(\/\/\)$/{
15997 s//\1/
15998 q
15999 }
16000 /^X\(\/\).*/{
16001 s//\1/
16002 q
16003 }
16004 s/.*/./; q'`
16005 test -d "$as_dir" && break
16006 done
16007 test -z "$as_dirs" || eval "mkdir $as_dirs"
16008 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16009
16010
16011 } # as_fn_mkdir_p
16012 if mkdir -p . 2>/dev/null; then
16013 as_mkdir_p='mkdir -p "$as_dir"'
16014 else
16015 test -d ./-p && rmdir ./-p
16016 as_mkdir_p=false
16017 fi
16018
16019
16020 # as_fn_executable_p FILE
16021 # -----------------------
16022 # Test if FILE is an executable regular file.
16023 as_fn_executable_p ()
16024 {
16025 test -f "$1" && test -x "$1"
16026 } # as_fn_executable_p
16027 as_test_x='test -x'
16028 as_executable_p=as_fn_executable_p
16029
16030 # Sed expression to map a string onto a valid CPP name.
16031 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
16032 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
16033
16034 # Sed expression to map a string onto a valid variable name.
16035 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
16036 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
16037
16038
16039 exec 6>&1
16040 ## --------------------------------- ##
16041 ## Main body of "$CONFIG_LT" script. ##
16042 ## --------------------------------- ##
16043 _ASEOF
16044 test $as_write_fail = 0 && chmod +x "$CONFIG_LT"
16045
16046 cat >>"$CONFIG_LT" <<\_LTEOF
16047 lt_cl_silent=false
16048 exec 5>>config.log
16049 {
16050 echo
16051 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16052 ## Running $as_me. ##
16053 _ASBOX
16054 } >&5
16055
16056 lt_cl_help="\
16057 '$as_me' creates a local libtool stub from the current configuration,
16058 for use in further configure time tests before the real libtool is
16059 generated.
16060
16061 Usage: $0 [OPTIONS]
16062
16063 -h, --help print this help, then exit
16064 -V, --version print version number, then exit
16065 -q, --quiet do not print progress messages
16066 -d, --debug don't remove temporary files
16067
16068 Report bugs to <[email protected]>."
16069
16070 lt_cl_version="\
16071 dvi2tty (TeX Live) config.lt 6.0.2
16072 configured by $0, generated by GNU Autoconf 2.72.
16073
16074 Copyright (C) 2024 Free Software Foundation, Inc.
16075 This config.lt script is free software; the Free Software Foundation
16076 gives unlimited permission to copy, distribute and modify it."
16077
16078 while test 0 != $#
16079 do
16080 case $1 in
16081 --version | --v* | -V )
16082 echo "$lt_cl_version"; exit 0 ;;
16083 --help | --h* | -h )
16084 echo "$lt_cl_help"; exit 0 ;;
16085 --debug | --d* | -d )
16086 debug=: ;;
16087 --quiet | --q* | --silent | --s* | -q )
16088 lt_cl_silent=: ;;
16089
16090 -*) as_fn_error $? "unrecognized option: $1
16091 Try '$0 --help' for more information." "$LINENO" 5 ;;
16092
16093 *) as_fn_error $? "unrecognized argument: $1
16094 Try '$0 --help' for more information." "$LINENO" 5 ;;
16095 esac
16096 shift
16097 done
16098
16099 if $lt_cl_silent; then
16100 exec 6>/dev/null
16101 fi
16102 _LTEOF
16103
16104 cat >>"$CONFIG_LT" <<_LTEOF
16105
16106
16107 # The HP-UX ksh and POSIX shell print the target directory to stdout
16108 # if CDPATH is set.
16109 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16110
16111 sed_quote_subst='$sed_quote_subst'
16112 double_quote_subst='$double_quote_subst'
16113 delay_variable_subst='$delay_variable_subst'
16114 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16115 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16116 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
16117 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16118 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16119 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16120 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16121 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16122 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16123 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
16124 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16125 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16126 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16127 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16128 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16129 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16130 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16131 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16132 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16133 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16134 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16135 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16136 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16137 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16138 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16139 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16140 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16141 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16142 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16143 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16144 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16145 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16146 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16147 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16148 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16149 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16150 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16151 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
16152 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16153 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16154 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16155 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16156 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16157 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16158 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
16159 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16160 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16161 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16162 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16163 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16164 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16165 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16166 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16167 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16168 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16169 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16170 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16171 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16172 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16173 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
16174 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16175 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"`'
16176 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
16177 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16178 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16179 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
16180 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16181 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16182 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16183 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16184 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16185 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16186 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16187 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16188 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16189 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16190 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16191 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16192 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16193 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16194 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16195 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16196 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16197 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16198 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16199 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16200 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16201 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16202 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16203 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16204 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16205 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16206 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16207 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16208 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16209 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16210 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16211 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16212 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16213 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16214 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16215 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16216 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16217 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16218 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16219 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16220 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16221 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16222 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16223 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16224 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16225 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16226 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16227 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16228 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16229 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16230 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16231 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16232 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16233 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16234 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16235 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16236 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16237 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16238 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16239 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16240 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16241 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16242 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16243 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16244 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
16245 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
16246 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16247 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16248 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16249 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16250 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16251 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16252
16253 LTCC='$LTCC'
16254 LTCFLAGS='$LTCFLAGS'
16255 compiler='$compiler_DEFAULT'
16256
16257 # A function that is used when there is no print builtin or printf.
16258 func_fallback_echo ()
16259 {
16260 eval 'cat <<_LTECHO_EOF
16261 \$1
16262 _LTECHO_EOF'
16263 }
16264
16265 # Quote evaled strings.
16266 for var in AS \
16267 DLLTOOL \
16268 OBJDUMP \
16269 SHELL \
16270 ECHO \
16271 PATH_SEPARATOR \
16272 SED \
16273 GREP \
16274 EGREP \
16275 FGREP \
16276 LD \
16277 NM \
16278 LN_S \
16279 lt_SP2NL \
16280 lt_NL2SP \
16281 reload_flag \
16282 FILECMD \
16283 deplibs_check_method \
16284 file_magic_cmd \
16285 file_magic_glob \
16286 want_nocaseglob \
16287 sharedlib_from_linklib_cmd \
16288 AR \
16289 archiver_list_spec \
16290 STRIP \
16291 RANLIB \
16292 CC \
16293 CFLAGS \
16294 compiler \
16295 lt_cv_sys_global_symbol_pipe \
16296 lt_cv_sys_global_symbol_to_cdecl \
16297 lt_cv_sys_global_symbol_to_import \
16298 lt_cv_sys_global_symbol_to_c_name_address \
16299 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16300 lt_cv_nm_interface \
16301 nm_file_list_spec \
16302 lt_cv_truncate_bin \
16303 lt_prog_compiler_no_builtin_flag \
16304 lt_prog_compiler_pic \
16305 lt_prog_compiler_wl \
16306 lt_prog_compiler_static \
16307 lt_cv_prog_compiler_c_o \
16308 need_locks \
16309 MANIFEST_TOOL \
16310 DSYMUTIL \
16311 NMEDIT \
16312 LIPO \
16313 OTOOL \
16314 OTOOL64 \
16315 shrext_cmds \
16316 export_dynamic_flag_spec \
16317 whole_archive_flag_spec \
16318 compiler_needs_object \
16319 with_gnu_ld \
16320 allow_undefined_flag \
16321 no_undefined_flag \
16322 hardcode_libdir_flag_spec \
16323 hardcode_libdir_separator \
16324 exclude_expsyms \
16325 include_expsyms \
16326 file_list_spec \
16327 variables_saved_for_relink \
16328 libname_spec \
16329 library_names_spec \
16330 soname_spec \
16331 install_override_mode \
16332 finish_eval \
16333 old_striplib \
16334 striplib; do
16335 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16336 *[\\\\\\\`\\"\\\$]*)
16337 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16338 ;;
16339 *)
16340 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16341 ;;
16342 esac
16343 done
16344
16345 # Double-quote double-evaled strings.
16346 for var in reload_cmds \
16347 old_postinstall_cmds \
16348 old_postuninstall_cmds \
16349 old_archive_cmds \
16350 extract_expsyms_cmds \
16351 old_archive_from_new_cmds \
16352 old_archive_from_expsyms_cmds \
16353 archive_cmds \
16354 archive_expsym_cmds \
16355 module_cmds \
16356 module_expsym_cmds \
16357 export_symbols_cmds \
16358 prelink_cmds \
16359 postlink_cmds \
16360 postinstall_cmds \
16361 postuninstall_cmds \
16362 finish_cmds \
16363 sys_lib_search_path_spec \
16364 configure_time_dlsearch_path \
16365 configure_time_lt_sys_library_path; do
16366 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16367 *[\\\\\\\`\\"\\\$]*)
16368 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16369 ;;
16370 *)
16371 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16372 ;;
16373 esac
16374 done
16375
16376 ac_aux_dir='$ac_aux_dir'
16377
16378 # See if we are running on zsh, and set the options that allow our
16379 # commands through without removal of \ escapes INIT.
16380 if test -n "\${ZSH_VERSION+set}"; then
16381 setopt NO_GLOB_SUBST
16382 fi
16383
16384
16385 PACKAGE='$PACKAGE'
16386 VERSION='$VERSION'
16387 RM='$RM'
16388 ofile='$ofile'
16389
16390
16391
16392 _LTEOF
16393
16394 cat >>"$CONFIG_LT" <<\_LTEOF
16395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
16396 printf "%s\n" "$as_me: creating $ofile" >&6;}
16397
16398
16399 # See if we are running on zsh, and set the options that allow our
16400 # commands through without removal of \ escapes.
16401 if test -n "${ZSH_VERSION+set}"; then
16402 setopt NO_GLOB_SUBST
16403 fi
16404
16405 cfgfile=${ofile}T
16406 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16407 $RM "$cfgfile"
16408
16409 cat <<_LT_EOF >> "$cfgfile"
16410 #! $SHELL
16411 # Generated automatically by $as_me ($PACKAGE) $VERSION
16412 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16413
16414 # Provide generalized library-building support services.
16415 # Written by Gordon Matzigkeit, 1996
16416
16417 # Copyright (C) 2024 Free Software Foundation, Inc.
16418 # This is free software; see the source for copying conditions. There is NO
16419 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16420
16421 # GNU Libtool is free software; you can redistribute it and/or modify
16422 # it under the terms of the GNU General Public License as published by
16423 # the Free Software Foundation; either version 2 of the License, or
16424 # (at your option) any later version.
16425 #
16426 # As a special exception to the GNU General Public License, if you
16427 # distribute this file as part of a program or library that is built
16428 # using GNU Libtool, you may include this file under the same
16429 # distribution terms that you use for the rest of that program.
16430 #
16431 # GNU Libtool is distributed in the hope that it will be useful, but
16432 # WITHOUT ANY WARRANTY; without even the implied warranty of
16433 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16434 # GNU General Public License for more details.
16435 #
16436 # You should have received a copy of the GNU General Public License
16437 # along with this program. If not, see <http://www.gnu.org/licenses/>.
16438
16439
16440 # The names of the tagged configurations supported by this script.
16441 available_tags=''
16442
16443 # Configured defaults for sys_lib_dlsearch_path munging.
16444 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
16445
16446 # ### BEGIN LIBTOOL CONFIG
16447
16448 # Which release of libtool.m4 was used?
16449 macro_version=$macro_version
16450 macro_revision=$macro_revision
16451
16452 # Assembler program.
16453 AS=$lt_AS
16454
16455 # DLL creation program.
16456 DLLTOOL=$lt_DLLTOOL
16457
16458 # Object dumper program.
16459 OBJDUMP=$lt_OBJDUMP
16460
16461 # Whether or not to build shared libraries.
16462 build_libtool_libs=$enable_shared
16463
16464 # Whether or not to build static libraries.
16465 build_old_libs=$enable_static
16466
16467 # What type of objects to build.
16468 pic_mode=$pic_mode
16469
16470 # Whether or not to optimize for fast installation.
16471 fast_install=$enable_fast_install
16472
16473 # Shared archive member basename,for filename based shared library versioning on AIX.
16474 shared_archive_member_spec=$shared_archive_member_spec
16475
16476 # Shell to use when invoking shell scripts.
16477 SHELL=$lt_SHELL
16478
16479 # An echo program that protects backslashes.
16480 ECHO=$lt_ECHO
16481
16482 # The PATH separator for the build system.
16483 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16484
16485 # The host system.
16486 host_alias=$host_alias
16487 host=$host
16488 host_os=$host_os
16489
16490 # The build system.
16491 build_alias=$build_alias
16492 build=$build
16493 build_os=$build_os
16494
16495 # A sed program that does not truncate output.
16496 SED=$lt_SED
16497
16498 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16499 Xsed="\$SED -e 1s/^X//"
16500
16501 # A grep program that handles long lines.
16502 GREP=$lt_GREP
16503
16504 # An ERE matcher.
16505 EGREP=$lt_EGREP
16506
16507 # A literal string matcher.
16508 FGREP=$lt_FGREP
16509
16510 # A BSD- or MS-compatible name lister.
16511 NM=$lt_NM
16512
16513 # Whether we need soft or hard links.
16514 LN_S=$lt_LN_S
16515
16516 # What is the maximum length of a command?
16517 max_cmd_len=$max_cmd_len
16518
16519 # Object file suffix (normally "o").
16520 objext=$ac_objext
16521
16522 # Executable file suffix (normally "").
16523 exeext=$exeext
16524
16525 # whether the shell understands "unset".
16526 lt_unset=$lt_unset
16527
16528 # turn spaces into newlines.
16529 SP2NL=$lt_lt_SP2NL
16530
16531 # turn newlines into spaces.
16532 NL2SP=$lt_lt_NL2SP
16533
16534 # convert \$build file names to \$host format.
16535 to_host_file_cmd=$lt_cv_to_host_file_cmd
16536
16537 # convert \$build files to toolchain format.
16538 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16539
16540 # A file(cmd) program that detects file types.
16541 FILECMD=$lt_FILECMD
16542
16543 # Method to check whether dependent libraries are shared objects.
16544 deplibs_check_method=$lt_deplibs_check_method
16545
16546 # Command to use when deplibs_check_method = "file_magic".
16547 file_magic_cmd=$lt_file_magic_cmd
16548
16549 # How to find potential files when deplibs_check_method = "file_magic".
16550 file_magic_glob=$lt_file_magic_glob
16551
16552 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16553 want_nocaseglob=$lt_want_nocaseglob
16554
16555 # Command to associate shared and link libraries.
16556 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16557
16558 # The archiver.
16559 AR=$lt_AR
16560
16561 # Flags to create an archive (by configure).
16562 lt_ar_flags=$lt_ar_flags
16563
16564 # Flags to create an archive.
16565 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
16566
16567 # How to feed a file listing to the archiver.
16568 archiver_list_spec=$lt_archiver_list_spec
16569
16570 # A symbol stripping program.
16571 STRIP=$lt_STRIP
16572
16573 # Commands used to install an old-style archive.
16574 RANLIB=$lt_RANLIB
16575 old_postinstall_cmds=$lt_old_postinstall_cmds
16576 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16577
16578 # Whether to use a lock for old archive extraction.
16579 lock_old_archive_extraction=$lock_old_archive_extraction
16580
16581 # A C compiler.
16582 LTCC=$lt_CC
16583
16584 # LTCC compiler flags.
16585 LTCFLAGS=$lt_CFLAGS
16586
16587 # Take the output of nm and produce a listing of raw symbols and C names.
16588 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16589
16590 # Transform the output of nm in a proper C declaration.
16591 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16592
16593 # Transform the output of nm into a list of symbols to manually relocate.
16594 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
16595
16596 # Transform the output of nm in a C name address pair.
16597 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16598
16599 # Transform the output of nm in a C name address pair when lib prefix is needed.
16600 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16601
16602 # The name lister interface.
16603 nm_interface=$lt_lt_cv_nm_interface
16604
16605 # Specify filename containing input files for \$NM.
16606 nm_file_list_spec=$lt_nm_file_list_spec
16607
16608 # The root where to search for dependent libraries,and where our libraries should be installed.
16609 lt_sysroot=$lt_sysroot
16610
16611 # Command to truncate a binary pipe.
16612 lt_truncate_bin=$lt_lt_cv_truncate_bin
16613
16614 # The name of the directory that contains temporary libtool files.
16615 objdir=$objdir
16616
16617 # Used to examine libraries when file_magic_cmd begins with "file".
16618 MAGIC_CMD=$MAGIC_CMD
16619
16620 # Must we lock files when doing compilation?
16621 need_locks=$lt_need_locks
16622
16623 # Manifest tool.
16624 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16625
16626 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16627 DSYMUTIL=$lt_DSYMUTIL
16628
16629 # Tool to change global to local symbols on Mac OS X.
16630 NMEDIT=$lt_NMEDIT
16631
16632 # Tool to manipulate fat objects and archives on Mac OS X.
16633 LIPO=$lt_LIPO
16634
16635 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16636 OTOOL=$lt_OTOOL
16637
16638 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16639 OTOOL64=$lt_OTOOL64
16640
16641 # Old archive suffix (normally "a").
16642 libext=$libext
16643
16644 # Shared library suffix (normally ".so").
16645 shrext_cmds=$lt_shrext_cmds
16646
16647 # The commands to extract the exported symbol list from a shared archive.
16648 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16649
16650 # Variables whose values should be saved in libtool wrapper scripts and
16651 # restored at link time.
16652 variables_saved_for_relink=$lt_variables_saved_for_relink
16653
16654 # Do we need the "lib" prefix for modules?
16655 need_lib_prefix=$need_lib_prefix
16656
16657 # Do we need a version for libraries?
16658 need_version=$need_version
16659
16660 # Library versioning type.
16661 version_type=$version_type
16662
16663 # Shared library runtime path variable.
16664 runpath_var=$runpath_var
16665
16666 # Shared library path variable.
16667 shlibpath_var=$shlibpath_var
16668
16669 # Is shlibpath searched before the hard-coded library search path?
16670 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16671
16672 # Format of library name prefix.
16673 libname_spec=$lt_libname_spec
16674
16675 # List of archive names. First name is the real one, the rest are links.
16676 # The last name is the one that the linker finds with -lNAME
16677 library_names_spec=$lt_library_names_spec
16678
16679 # The coded name of the library, if different from the real name.
16680 soname_spec=$lt_soname_spec
16681
16682 # Permission mode override for installation of shared libraries.
16683 install_override_mode=$lt_install_override_mode
16684
16685 # Command to use after installation of a shared archive.
16686 postinstall_cmds=$lt_postinstall_cmds
16687
16688 # Command to use after uninstallation of a shared archive.
16689 postuninstall_cmds=$lt_postuninstall_cmds
16690
16691 # Commands used to finish a libtool library installation in a directory.
16692 finish_cmds=$lt_finish_cmds
16693
16694 # As "finish_cmds", except a single script fragment to be evaled but
16695 # not shown.
16696 finish_eval=$lt_finish_eval
16697
16698 # Whether we should hardcode library paths into libraries.
16699 hardcode_into_libs=$hardcode_into_libs
16700
16701 # Compile-time system search path for libraries.
16702 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16703
16704 # Detected run-time system search path for libraries.
16705 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
16706
16707 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
16708 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
16709
16710 # Whether dlopen is supported.
16711 dlopen_support=$enable_dlopen
16712
16713 # Whether dlopen of programs is supported.
16714 dlopen_self=$enable_dlopen_self
16715
16716 # Whether dlopen of statically linked programs is supported.
16717 dlopen_self_static=$enable_dlopen_self_static
16718
16719 # Commands to strip libraries.
16720 old_striplib=$lt_old_striplib
16721 striplib=$lt_striplib
16722
16723
16724 # The linker used to build libraries.
16725 LD=$lt_LD
16726
16727 # How to create reloadable object files.
16728 reload_flag=$lt_reload_flag
16729 reload_cmds=$lt_reload_cmds
16730
16731 # Commands used to build an old-style archive.
16732 old_archive_cmds=$lt_old_archive_cmds
16733
16734 # A language specific compiler.
16735 CC=$lt_compiler
16736
16737 # Is the compiler the GNU compiler?
16738 with_gcc=$GCC
16739
16740 # Compiler flag to turn off builtin functions.
16741 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16742
16743 # Additional compiler flags for building library objects.
16744 pic_flag=$lt_lt_prog_compiler_pic
16745
16746 # How to pass a linker flag through the compiler.
16747 wl=$lt_lt_prog_compiler_wl
16748
16749 # Compiler flag to prevent dynamic linking.
16750 link_static_flag=$lt_lt_prog_compiler_static
16751
16752 # Does compiler simultaneously support -c and -o options?
16753 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16754
16755 # Whether or not to add -lc for building shared libraries.
16756 build_libtool_need_lc=$archive_cmds_need_lc
16757
16758 # Whether or not to disallow shared libs when runtime libs are static.
16759 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16760
16761 # Compiler flag to allow reflexive dlopens.
16762 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16763
16764 # Compiler flag to generate shared objects directly from archives.
16765 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16766
16767 # Whether the compiler copes with passing no objects directly.
16768 compiler_needs_object=$lt_compiler_needs_object
16769
16770 # Create an old-style archive from a shared archive.
16771 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16772
16773 # Create a temporary old-style archive to link instead of a shared archive.
16774 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16775
16776 # Commands used to build a shared archive.
16777 archive_cmds=$lt_archive_cmds
16778 archive_expsym_cmds=$lt_archive_expsym_cmds
16779
16780 # Commands used to build a loadable module if different from building
16781 # a shared archive.
16782 module_cmds=$lt_module_cmds
16783 module_expsym_cmds=$lt_module_expsym_cmds
16784
16785 # Whether we are building with GNU ld or not.
16786 with_gnu_ld=$lt_with_gnu_ld
16787
16788 # Flag that allows shared libraries with undefined symbols to be built.
16789 allow_undefined_flag=$lt_allow_undefined_flag
16790
16791 # Flag that enforces no undefined symbols.
16792 no_undefined_flag=$lt_no_undefined_flag
16793
16794 # Flag to hardcode \$libdir into a binary during linking.
16795 # This must work even if \$libdir does not exist
16796 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16797
16798 # Whether we need a single "-rpath" flag with a separated argument.
16799 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16800
16801 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16802 # DIR into the resulting binary.
16803 hardcode_direct=$hardcode_direct
16804
16805 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16806 # DIR into the resulting binary and the resulting library dependency is
16807 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
16808 # library is relocated.
16809 hardcode_direct_absolute=$hardcode_direct_absolute
16810
16811 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16812 # into the resulting binary.
16813 hardcode_minus_L=$hardcode_minus_L
16814
16815 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16816 # into the resulting binary.
16817 hardcode_shlibpath_var=$hardcode_shlibpath_var
16818
16819 # Set to "yes" if building a shared library automatically hardcodes DIR
16820 # into the library and all subsequent libraries and executables linked
16821 # against it.
16822 hardcode_automatic=$hardcode_automatic
16823
16824 # Set to yes if linker adds runtime paths of dependent libraries
16825 # to runtime path list.
16826 inherit_rpath=$inherit_rpath
16827
16828 # Whether libtool must link a program against all its dependency libraries.
16829 link_all_deplibs=$link_all_deplibs
16830
16831 # Set to "yes" if exported symbols are required.
16832 always_export_symbols=$always_export_symbols
16833
16834 # The commands to list exported symbols.
16835 export_symbols_cmds=$lt_export_symbols_cmds
16836
16837 # Symbols that should not be listed in the preloaded symbols.
16838 exclude_expsyms=$lt_exclude_expsyms
16839
16840 # Symbols that must always be exported.
16841 include_expsyms=$lt_include_expsyms
16842
16843 # Commands necessary for linking programs (against libraries) with templates.
16844 prelink_cmds=$lt_prelink_cmds
16845
16846 # Commands necessary for finishing linking programs.
16847 postlink_cmds=$lt_postlink_cmds
16848
16849 # Specify filename containing input files.
16850 file_list_spec=$lt_file_list_spec
16851
16852 # How to hardcode a shared library path into an executable.
16853 hardcode_action=$hardcode_action
16854
16855 # ### END LIBTOOL CONFIG
16856
16857 _LT_EOF
16858
16859 cat <<'_LT_EOF' >> "$cfgfile"
16860
16861 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
16862
16863 # func_munge_path_list VARIABLE PATH
16864 # -----------------------------------
16865 # VARIABLE is name of variable containing _space_ separated list of
16866 # directories to be munged by the contents of PATH, which is string
16867 # having a format:
16868 # "DIR[:DIR]:"
16869 # string "DIR[ DIR]" will be prepended to VARIABLE
16870 # ":DIR[:DIR]"
16871 # string "DIR[ DIR]" will be appended to VARIABLE
16872 # "DIRP[:DIRP]::[DIRA:]DIRA"
16873 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
16874 # "DIRA[ DIRA]" will be appended to VARIABLE
16875 # "DIR[:DIR]"
16876 # VARIABLE will be replaced by "DIR[ DIR]"
16877 func_munge_path_list ()
16878 {
16879 case x$2 in
16880 x)
16881 ;;
16882 *:)
16883 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
16884 ;;
16885 x:*)
16886 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
16887 ;;
16888 *::*)
16889 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
16890 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
16891 ;;
16892 *)
16893 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
16894 ;;
16895 esac
16896 }
16897
16898
16899 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
16900 func_cc_basename ()
16901 {
16902 for cc_temp in $*""; do
16903 case $cc_temp in
16904 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16905 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16906 \-*) ;;
16907 *) break;;
16908 esac
16909 done
16910 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16911 }
16912
16913
16914 # ### END FUNCTIONS SHARED WITH CONFIGURE
16915
16916 _LT_EOF
16917
16918 case $host_os in
16919 aix3*)
16920 cat <<\_LT_EOF >> "$cfgfile"
16921 # AIX sometimes has problems with the GCC collect2 program. For some
16922 # reason, if we set the COLLECT_NAMES environment variable, the problems
16923 # vanish in a puff of smoke.
16924 if test set != "${COLLECT_NAMES+set}"; then
16925 COLLECT_NAMES=
16926 export COLLECT_NAMES
16927 fi
16928 _LT_EOF
16929 ;;
16930 esac
16931
16932
16933
16934 ltmain=$ac_aux_dir/ltmain.sh
16935
16936
16937 # We use sed instead of cat because bash on DJGPP gets confused if
16938 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16939 # text mode, it properly converts lines to CR/LF. This bash problem
16940 # is reportedly fixed, but why not run on old versions too?
16941 $SED '$q' "$ltmain" >> "$cfgfile" \
16942 || (rm -f "$cfgfile"; exit 1)
16943
16944 mv -f "$cfgfile" "$ofile" ||
16945 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16946 chmod +x "$ofile"
16947
16948
16949 as_fn_exit 0
16950 _LTEOF
16951 chmod +x "$CONFIG_LT"
16952
16953 # configure is writing to config.log, but config.lt does its own redirection,
16954 # appending to config.log, which fails on DOS, as config.log is still kept
16955 # open by configure. Here we exec the FD to /dev/null, effectively closing
16956 # config.log, so it can be properly (re)opened and appended to by config.lt.
16957 lt_cl_success=:
16958 test yes = "$silent" &&
16959 lt_config_lt_args="$lt_config_lt_args --quiet"
16960 exec 5>/dev/null
16961 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
16962 exec 5>>config.log
16963 $lt_cl_success || as_fn_exit 1
16964
16965 #
16966 #
16967 ac_ext=c
16968 ac_cpp='$CPP $CPPFLAGS'
16969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16972 ac_link="./libtool --mode=link --tag=CC $ac_link"
16973
16974 if test -n "$ac_tool_prefix"; then
16975 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
16976 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
16977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16978 printf %s "checking for $ac_word... " >&6; }
16979 if test ${ac_cv_prog_PKG_CONFIG+y}
16980 then :
16981 printf %s "(cached) " >&6
16982 else case e in #(
16983 e) if test -n "$PKG_CONFIG"; then
16984 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
16985 else
16986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16987 for as_dir in $PATH
16988 do
16989 IFS=$as_save_IFS
16990 case $as_dir in #(((
16991 '') as_dir=./ ;;
16992 */) ;;
16993 *) as_dir=$as_dir/ ;;
16994 esac
16995 for ac_exec_ext in '' $ac_executable_extensions; do
16996 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16997 ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
16998 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16999 break 2
17000 fi
17001 done
17002 done
17003 IFS=$as_save_IFS
17004
17005 fi ;;
17006 esac
17007 fi
17008 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
17009 if test -n "$PKG_CONFIG"; then
17010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
17011 printf "%s\n" "$PKG_CONFIG" >&6; }
17012 else
17013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17014 printf "%s\n" "no" >&6; }
17015 fi
17016
17017
17018 fi
17019 if test -z "$ac_cv_prog_PKG_CONFIG"; then
17020 ac_ct_PKG_CONFIG=$PKG_CONFIG
17021 # Extract the first word of "pkg-config", so it can be a program name with args.
17022 set dummy pkg-config; ac_word=$2
17023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17024 printf %s "checking for $ac_word... " >&6; }
17025 if test ${ac_cv_prog_ac_ct_PKG_CONFIG+y}
17026 then :
17027 printf %s "(cached) " >&6
17028 else case e in #(
17029 e) if test -n "$ac_ct_PKG_CONFIG"; then
17030 ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
17031 else
17032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17033 for as_dir in $PATH
17034 do
17035 IFS=$as_save_IFS
17036 case $as_dir in #(((
17037 '') as_dir=./ ;;
17038 */) ;;
17039 *) as_dir=$as_dir/ ;;
17040 esac
17041 for ac_exec_ext in '' $ac_executable_extensions; do
17042 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17043 ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
17044 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17045 break 2
17046 fi
17047 done
17048 done
17049 IFS=$as_save_IFS
17050
17051 fi ;;
17052 esac
17053 fi
17054 ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
17055 if test -n "$ac_ct_PKG_CONFIG"; then
17056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PKG_CONFIG" >&5
17057 printf "%s\n" "$ac_ct_PKG_CONFIG" >&6; }
17058 else
17059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17060 printf "%s\n" "no" >&6; }
17061 fi
17062
17063 if test "x$ac_ct_PKG_CONFIG" = x; then
17064 PKG_CONFIG="false"
17065 else
17066 case $cross_compiling:$ac_tool_warned in
17067 yes:)
17068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17069 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17070 ac_tool_warned=yes ;;
17071 esac
17072 PKG_CONFIG=$ac_ct_PKG_CONFIG
17073 fi
17074 else
17075 PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
17076 fi
17077
17078 ##tldbg _KPSE_LIB_FLAGS: Setup kpathsea (-lkpathsea) flags.
17079 echo 'tldbg:_KPSE_LIB_FLAGS called: libdir=kpathsea, libname=kpathsea, options=lt, tlincl=-IBLD/texk -ISRC/texk, tllib=BLD/texk/kpathsea/libkpathsea.la, tlextra=, rebuildsrcdeps=${top_srcdir}/../kpathsea/*.[ch], rebuildblddeps=${top_builddir}/../kpathsea/paths.h.' >&5
17080 ##tldbg _KPSE_LIB_FLAGS_TL: kpathsea (kpathsea) lt.
17081
17082 # Check whether --with-system-kpathsea was given.
17083 if test ${with_system_kpathsea+y}
17084 then :
17085 withval=$with_system_kpathsea;
17086 fi
17087 if test "x$with_system_kpathsea" = xyes; then
17088 if $PKG_CONFIG kpathsea; then
17089 KPATHSEA_INCLUDES=`$PKG_CONFIG kpathsea --cflags`
17090 KPATHSEA_LIBS=`$PKG_CONFIG kpathsea --libs`
17091 elif test "x$need_kpathsea:$with_system_kpathsea" = xyes:yes; then
17092 as_fn_error $? "did not find kpathsea" "$LINENO" 5
17093 fi
17094 else
17095 KPATHSEA_INCLUDES="-I$kpse_BLD/texk -I$kpse_SRC/texk"
17096 KPATHSEA_LIBS="$kpse_BLD/texk/kpathsea/libkpathsea.la"
17097 KPATHSEA_DEPEND='${top_builddir}/../kpathsea/libkpathsea.la'
17098 KPATHSEA_RULE='# Rebuild libkpathsea
17099 $(KPATHSEA_DEPEND): ${top_srcdir}/../kpathsea/*.[ch] ${top_builddir}/../kpathsea/paths.h
17100 cd ${top_builddir}/../kpathsea && $(MAKE) $(AM_MAKEFLAGS) rebuild
17101 ${top_builddir}/../kpathsea/paths.h:
17102 cd ${top_builddir}/../kpathsea && $(MAKE) $(AM_MAKEFLAGS) rebuild'
17103 fi
17104
17105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libkpathsea supports debugging" >&5
17106 printf %s "checking if libkpathsea supports debugging... " >&6; }
17107 if test ${kpse_cv_kpse_debug+y}
17108 then :
17109 printf %s "(cached) " >&6
17110 else case e in #(
17111 e) eval CPPFLAGS=\"$KPATHSEA_INCLUDES \$CPPFLAGS\"
17112 eval LIBS=\"$KPATHSEA_LIBS \$LIBS\"
17113
17114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17115 /* end confdefs.h. */
17116 #include <kpathsea/kpathsea.h>
17117 int
17118 main (void)
17119 {
17120 FILE *f = fopen("f", "r")
17121 ;
17122 return 0;
17123 }
17124 _ACEOF
17125 if ac_fn_c_try_link "$LINENO"
17126 then :
17127 kpse_cv_kpse_debug=yes
17128 else case e in #(
17129 e) kpse_cv_kpse_debug=no ;;
17130 esac
17131 fi
17132 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17133 conftest$ac_exeext conftest.$ac_ext
17134 CPPFLAGS=$kpse_save_CPPFLAGS
17135 LIBS=$kpse_save_LIBS
17136 ;;
17137 esac
17138 fi
17139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_kpse_debug" >&5
17140 printf "%s\n" "$kpse_cv_kpse_debug" >&6; }
17141 if test "x$kpse_cv_kpse_debug" != xyes
17142 then :
17143 KPATHSEA_INCLUDES="$KPATHSEA_INCLUDES -DNO_DEBUG"
17144 fi
17145
17146 ##tldbg _KPSE_LIB_FLAGS: Setup ptexenc (-lptexenc) flags.
17147 echo 'tldbg:_KPSE_LIB_FLAGS called: libdir=ptexenc, libname=ptexenc, options=lt, tlincl=-IBLD/texk/ptexenc -ISRC/texk/ptexenc, tllib=BLD/texk/ptexenc/libptexenc.la, tlextra=, rebuildsrcdeps=${top_srcdir}/../ptexenc/*.c ${top_srcdir}/../ptexenc/ptexenc/*.h, rebuildblddeps=.' >&5
17148 ##tldbg _KPSE_LIB_FLAGS_TL: ptexenc (ptexenc) lt.
17149
17150 # Check whether --with-system-ptexenc was given.
17151 if test ${with_system_ptexenc+y}
17152 then :
17153 withval=$with_system_ptexenc;
17154 fi
17155 if test "x$with_system_ptexenc" = xyes; then
17156 if $PKG_CONFIG ptexenc; then
17157 PTEXENC_INCLUDES=`$PKG_CONFIG ptexenc --cflags`
17158 PTEXENC_LIBS=`$PKG_CONFIG ptexenc --libs`
17159 elif test "x$need_ptexenc:$with_system_ptexenc" = xyes:yes; then
17160 as_fn_error $? "did not find ptexenc" "$LINENO" 5
17161 fi
17162 else
17163 PTEXENC_INCLUDES="-I$kpse_BLD/texk/ptexenc -I$kpse_SRC/texk/ptexenc"
17164 PTEXENC_LIBS="$kpse_BLD/texk/ptexenc/libptexenc.la"
17165 PTEXENC_DEPEND='${top_builddir}/../ptexenc/libptexenc.la'
17166 PTEXENC_RULE='# Rebuild libptexenc
17167 $(PTEXENC_DEPEND): ${top_srcdir}/../ptexenc/*.c ${top_srcdir}/../ptexenc/ptexenc/*.h
17168 cd ${top_builddir}/../ptexenc && $(MAKE) $(AM_MAKEFLAGS) rebuild'
17169 fi
17170
17171
17172 DVI2TTY_TREE=dvi2tty-src
17173
17174
17175 ac_config_files="$ac_config_files Makefile"
17176
17177
17178 cat >confcache <<\_ACEOF
17179 # This file is a shell script that caches the results of configure
17180 # tests run on this system so they can be shared between configure
17181 # scripts and configure runs, see configure's option --config-cache.
17182 # It is not useful on other systems. If it contains results you don't
17183 # want to keep, you may remove or edit it.
17184 #
17185 # config.status only pays attention to the cache file if you give it
17186 # the --recheck option to rerun configure.
17187 #
17188 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
17189 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
17190 # following values.
17191
17192 _ACEOF
17193
17194 # The following way of writing the cache mishandles newlines in values,
17195 # but we know of no workaround that is simple, portable, and efficient.
17196 # So, we kill variables containing newlines.
17197 # Ultrix sh set writes to stderr and can't be redirected directly,
17198 # and sets the high bit in the cache file unless we assign to the vars.
17199 (
17200 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17201 eval ac_val=\$$ac_var
17202 case $ac_val in #(
17203 *${as_nl}*)
17204 case $ac_var in #(
17205 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17206 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17207 esac
17208 case $ac_var in #(
17209 _ | IFS | as_nl) ;; #(
17210 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17211 *) { eval $ac_var=; unset $ac_var;} ;;
17212 esac ;;
17213 esac
17214 done
17215
17216 (set) 2>&1 |
17217 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17218 *${as_nl}ac_space=\ *)
17219 # 'set' does not quote correctly, so add quotes: double-quote
17220 # substitution turns \\\\ into \\, and sed turns \\ into \.
17221 sed -n \
17222 "s/'/'\\\\''/g;
17223 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17224 ;; #(
17225 *)
17226 # 'set' quotes correctly as required by POSIX, so do not add quotes.
17227 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17228 ;;
17229 esac |
17230 sort
17231 ) |
17232 sed '
17233 /^ac_cv_env_/b end
17234 t clear
17235 :clear
17236 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
17237 t end
17238 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17239 :end' >>confcache
17240 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17241 if test -w "$cache_file"; then
17242 if test "x$cache_file" != "x/dev/null"; then
17243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17244 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
17245 if test ! -f "$cache_file" || test -h "$cache_file"; then
17246 cat confcache >"$cache_file"
17247 else
17248 case $cache_file in #(
17249 */* | ?:*)
17250 mv -f confcache "$cache_file"$$ &&
17251 mv -f "$cache_file"$$ "$cache_file" ;; #(
17252 *)
17253 mv -f confcache "$cache_file" ;;
17254 esac
17255 fi
17256 fi
17257 else
17258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17259 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
17260 fi
17261 fi
17262 rm -f confcache
17263
17264 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17265 # Let make expand exec_prefix.
17266 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17267
17268 DEFS=-DHAVE_CONFIG_H
17269
17270 ac_libobjs=
17271 ac_ltlibobjs=
17272 U=
17273 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17274 # 1. Remove the extension, and $U if already installed.
17275 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17276 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
17277 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17278 # will be set to the directory where LIBOBJS objects are built.
17279 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17280 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17281 done
17282 LIBOBJS=$ac_libobjs
17283
17284 LTLIBOBJS=$ac_ltlibobjs
17285
17286
17287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17288 printf %s "checking that generated files are newer than configure... " >&6; }
17289 if test -n "$am_sleep_pid"; then
17290 # Hide warnings about reused PIDs.
17291 wait $am_sleep_pid 2>/dev/null
17292 fi
17293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
17294 printf "%s\n" "done" >&6; }
17295 case $enable_silent_rules in # (((
17296 yes) AM_DEFAULT_VERBOSITY=0;;
17297 no) AM_DEFAULT_VERBOSITY=1;;
17298 esac
17299 if test $am_cv_make_support_nested_variables = yes; then
17300 AM_V='$(V)'
17301 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
17302 else
17303 AM_V=$AM_DEFAULT_VERBOSITY
17304 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
17305 fi
17306
17307 if test -n "$EXEEXT"; then
17308 am__EXEEXT_TRUE=
17309 am__EXEEXT_FALSE='#'
17310 else
17311 am__EXEEXT_TRUE='#'
17312 am__EXEEXT_FALSE=
17313 fi
17314
17315 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17316 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17317 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17318 fi
17319 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17320 as_fn_error $? "conditional \"AMDEP\" was never defined.
17321 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17322 fi
17323 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17324 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17325 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17326 fi
17327 # Check whether --enable-year2038 was given.
17328 if test ${enable_year2038+y}
17329 then :
17330 enableval=$enable_year2038;
17331 fi
17332
17333
17334 : "${CONFIG_STATUS=./config.status}"
17335 ac_write_fail=0
17336 ac_clean_files_save=$ac_clean_files
17337 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17339 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
17340 as_write_fail=0
17341 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17342 #! $SHELL
17343 # Generated by $as_me.
17344 # Run this file to recreate the current configuration.
17345 # Compiler output produced by configure, useful for debugging
17346 # configure, is in config.log if it exists.
17347
17348 debug=false
17349 ac_cs_recheck=false
17350 ac_cs_silent=false
17351
17352 SHELL=\${CONFIG_SHELL-$SHELL}
17353 export SHELL
17354 _ASEOF
17355 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17356 ## -------------------- ##
17357 ## M4sh Initialization. ##
17358 ## -------------------- ##
17359
17360 # Be more Bourne compatible
17361 DUALCASE=1; export DUALCASE # for MKS sh
17362 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
17363 then :
17364 emulate sh
17365 NULLCMD=:
17366 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17367 # is contrary to our usage. Disable this feature.
17368 alias -g '${1+"$@"}'='"$@"'
17369 setopt NO_GLOB_SUBST
17370 else case e in #(
17371 e) case `(set -o) 2>/dev/null` in #(
17372 *posix*) :
17373 set -o posix ;; #(
17374 *) :
17375 ;;
17376 esac ;;
17377 esac
17378 fi
17379
17380
17381
17382 # Reset variables that may have inherited troublesome values from
17383 # the environment.
17384
17385 # IFS needs to be set, to space, tab, and newline, in precisely that order.
17386 # (If _AS_PATH_WALK were called with IFS unset, it would have the
17387 # side effect of setting IFS to empty, thus disabling word splitting.)
17388 # Quoting is to prevent editors from complaining about space-tab.
17389 as_nl='
17390 '
17391 export as_nl
17392 IFS=" "" $as_nl"
17393
17394 PS1='$ '
17395 PS2='> '
17396 PS4='+ '
17397
17398 # Ensure predictable behavior from utilities with locale-dependent output.
17399 LC_ALL=C
17400 export LC_ALL
17401 LANGUAGE=C
17402 export LANGUAGE
17403
17404 # We cannot yet rely on "unset" to work, but we need these variables
17405 # to be unset--not just set to an empty or harmless value--now, to
17406 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
17407 # also avoids known problems related to "unset" and subshell syntax
17408 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
17409 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
17410 do eval test \${$as_var+y} \
17411 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17412 done
17413
17414 # Ensure that fds 0, 1, and 2 are open.
17415 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
17416 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
17417 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
17418
17419 # The user is always right.
17420 if ${PATH_SEPARATOR+false} :; then
17421 PATH_SEPARATOR=:
17422 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17423 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17424 PATH_SEPARATOR=';'
17425 }
17426 fi
17427
17428
17429 # Find who we are. Look in the path if we contain no directory separator.
17430 as_myself=
17431 case $0 in #((
17432 *[\\/]* ) as_myself=$0 ;;
17433 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17434 for as_dir in $PATH
17435 do
17436 IFS=$as_save_IFS
17437 case $as_dir in #(((
17438 '') as_dir=./ ;;
17439 */) ;;
17440 *) as_dir=$as_dir/ ;;
17441 esac
17442 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
17443 done
17444 IFS=$as_save_IFS
17445
17446 ;;
17447 esac
17448 # We did not find ourselves, most probably we were run as 'sh COMMAND'
17449 # in which case we are not to be found in the path.
17450 if test "x$as_myself" = x; then
17451 as_myself=$0
17452 fi
17453 if test ! -f "$as_myself"; then
17454 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17455 exit 1
17456 fi
17457
17458
17459
17460 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17461 # ----------------------------------------
17462 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17463 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17464 # script with STATUS, using 1 if that was 0.
17465 as_fn_error ()
17466 {
17467 as_status=$1; test $as_status -eq 0 && as_status=1
17468 if test "$4"; then
17469 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17470 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17471 fi
17472 printf "%s\n" "$as_me: error: $2" >&2
17473 as_fn_exit $as_status
17474 } # as_fn_error
17475
17476
17477 # as_fn_set_status STATUS
17478 # -----------------------
17479 # Set $? to STATUS, without forking.
17480 as_fn_set_status ()
17481 {
17482 return $1
17483 } # as_fn_set_status
17484
17485 # as_fn_exit STATUS
17486 # -----------------
17487 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17488 as_fn_exit ()
17489 {
17490 set +e
17491 as_fn_set_status $1
17492 exit $1
17493 } # as_fn_exit
17494
17495 # as_fn_unset VAR
17496 # ---------------
17497 # Portably unset VAR.
17498 as_fn_unset ()
17499 {
17500 { eval $1=; unset $1;}
17501 }
17502 as_unset=as_fn_unset
17503
17504 # as_fn_append VAR VALUE
17505 # ----------------------
17506 # Append the text in VALUE to the end of the definition contained in VAR. Take
17507 # advantage of any shell optimizations that allow amortized linear growth over
17508 # repeated appends, instead of the typical quadratic growth present in naive
17509 # implementations.
17510 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
17511 then :
17512 eval 'as_fn_append ()
17513 {
17514 eval $1+=\$2
17515 }'
17516 else case e in #(
17517 e) as_fn_append ()
17518 {
17519 eval $1=\$$1\$2
17520 } ;;
17521 esac
17522 fi # as_fn_append
17523
17524 # as_fn_arith ARG...
17525 # ------------------
17526 # Perform arithmetic evaluation on the ARGs, and store the result in the
17527 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17528 # must be portable across $(()) and expr.
17529 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
17530 then :
17531 eval 'as_fn_arith ()
17532 {
17533 as_val=$(( $* ))
17534 }'
17535 else case e in #(
17536 e) as_fn_arith ()
17537 {
17538 as_val=`expr "$@" || test $? -eq 1`
17539 } ;;
17540 esac
17541 fi # as_fn_arith
17542
17543
17544 if expr a : '\(a\)' >/dev/null 2>&1 &&
17545 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17546 as_expr=expr
17547 else
17548 as_expr=false
17549 fi
17550
17551 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17552 as_basename=basename
17553 else
17554 as_basename=false
17555 fi
17556
17557 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17558 as_dirname=dirname
17559 else
17560 as_dirname=false
17561 fi
17562
17563 as_me=`$as_basename -- "$0" ||
17564 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17565 X"$0" : 'X\(//\)$' \| \
17566 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17567 printf "%s\n" X/"$0" |
17568 sed '/^.*\/\([^/][^/]*\)\/*$/{
17569 s//\1/
17570 q
17571 }
17572 /^X\/\(\/\/\)$/{
17573 s//\1/
17574 q
17575 }
17576 /^X\/\(\/\).*/{
17577 s//\1/
17578 q
17579 }
17580 s/.*/./; q'`
17581
17582 # Avoid depending upon Character Ranges.
17583 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17584 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17585 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17586 as_cr_digits='0123456789'
17587 as_cr_alnum=$as_cr_Letters$as_cr_digits
17588
17589
17590 # Determine whether it's possible to make 'echo' print without a newline.
17591 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
17592 # for compatibility with existing Makefiles.
17593 ECHO_C= ECHO_N= ECHO_T=
17594 case `echo -n x` in #(((((
17595 -n*)
17596 case `echo 'xy\c'` in
17597 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17598 xy) ECHO_C='\c';;
17599 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17600 ECHO_T=' ';;
17601 esac;;
17602 *)
17603 ECHO_N='-n';;
17604 esac
17605
17606 # For backward compatibility with old third-party macros, we provide
17607 # the shell variables $as_echo and $as_echo_n. New code should use
17608 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
17609 as_echo='printf %s\n'
17610 as_echo_n='printf %s'
17611
17612 rm -f conf$$ conf$$.exe conf$$.file
17613 if test -d conf$$.dir; then
17614 rm -f conf$$.dir/conf$$.file
17615 else
17616 rm -f conf$$.dir
17617 mkdir conf$$.dir 2>/dev/null
17618 fi
17619 if (echo >conf$$.file) 2>/dev/null; then
17620 if ln -s conf$$.file conf$$ 2>/dev/null; then
17621 as_ln_s='ln -s'
17622 # ... but there are two gotchas:
17623 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
17624 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
17625 # In both cases, we have to default to 'cp -pR'.
17626 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17627 as_ln_s='cp -pR'
17628 elif ln conf$$.file conf$$ 2>/dev/null; then
17629 as_ln_s=ln
17630 else
17631 as_ln_s='cp -pR'
17632 fi
17633 else
17634 as_ln_s='cp -pR'
17635 fi
17636 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17637 rmdir conf$$.dir 2>/dev/null
17638
17639
17640 # as_fn_mkdir_p
17641 # -------------
17642 # Create "$as_dir" as a directory, including parents if necessary.
17643 as_fn_mkdir_p ()
17644 {
17645
17646 case $as_dir in #(
17647 -*) as_dir=./$as_dir;;
17648 esac
17649 test -d "$as_dir" || eval $as_mkdir_p || {
17650 as_dirs=
17651 while :; do
17652 case $as_dir in #(
17653 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17654 *) as_qdir=$as_dir;;
17655 esac
17656 as_dirs="'$as_qdir' $as_dirs"
17657 as_dir=`$as_dirname -- "$as_dir" ||
17658 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17659 X"$as_dir" : 'X\(//\)[^/]' \| \
17660 X"$as_dir" : 'X\(//\)$' \| \
17661 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17662 printf "%s\n" X"$as_dir" |
17663 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17664 s//\1/
17665 q
17666 }
17667 /^X\(\/\/\)[^/].*/{
17668 s//\1/
17669 q
17670 }
17671 /^X\(\/\/\)$/{
17672 s//\1/
17673 q
17674 }
17675 /^X\(\/\).*/{
17676 s//\1/
17677 q
17678 }
17679 s/.*/./; q'`
17680 test -d "$as_dir" && break
17681 done
17682 test -z "$as_dirs" || eval "mkdir $as_dirs"
17683 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17684
17685
17686 } # as_fn_mkdir_p
17687 if mkdir -p . 2>/dev/null; then
17688 as_mkdir_p='mkdir -p "$as_dir"'
17689 else
17690 test -d ./-p && rmdir ./-p
17691 as_mkdir_p=false
17692 fi
17693
17694
17695 # as_fn_executable_p FILE
17696 # -----------------------
17697 # Test if FILE is an executable regular file.
17698 as_fn_executable_p ()
17699 {
17700 test -f "$1" && test -x "$1"
17701 } # as_fn_executable_p
17702 as_test_x='test -x'
17703 as_executable_p=as_fn_executable_p
17704
17705 # Sed expression to map a string onto a valid CPP name.
17706 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
17707 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
17708
17709 # Sed expression to map a string onto a valid variable name.
17710 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
17711 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
17712
17713
17714 exec 6>&1
17715 ## ----------------------------------- ##
17716 ## Main body of $CONFIG_STATUS script. ##
17717 ## ----------------------------------- ##
17718 _ASEOF
17719 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17720
17721 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17722 # Save the log message, to keep $0 and so on meaningful, and to
17723 # report actual input values of CONFIG_FILES etc. instead of their
17724 # values after options handling.
17725 ac_log="
17726 This file was extended by dvi2tty (TeX Live) $as_me 6.0.2, which was
17727 generated by GNU Autoconf 2.72. Invocation command line was
17728
17729 CONFIG_FILES = $CONFIG_FILES
17730 CONFIG_HEADERS = $CONFIG_HEADERS
17731 CONFIG_LINKS = $CONFIG_LINKS
17732 CONFIG_COMMANDS = $CONFIG_COMMANDS
17733 $ $0 $@
17734
17735 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17736 "
17737
17738 _ACEOF
17739
17740 case $ac_config_files in *"
17741 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17742 esac
17743
17744 case $ac_config_headers in *"
17745 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17746 esac
17747
17748
17749 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17750 # Files that config.status was made for.
17751 config_files="$ac_config_files"
17752 config_headers="$ac_config_headers"
17753 config_commands="$ac_config_commands"
17754
17755 _ACEOF
17756
17757 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17758 ac_cs_usage="\
17759 '$as_me' instantiates files and other configuration actions
17760 from templates according to the current configuration. Unless the files
17761 and actions are specified as TAGs, all are instantiated by default.
17762
17763 Usage: $0 [OPTION]... [TAG]...
17764
17765 -h, --help print this help, then exit
17766 -V, --version print version number and configuration settings, then exit
17767 --config print configuration, then exit
17768 -q, --quiet, --silent
17769 do not print progress messages
17770 -d, --debug don't remove temporary files
17771 --recheck update $as_me by reconfiguring in the same conditions
17772 --file=FILE[:TEMPLATE]
17773 instantiate the configuration file FILE
17774 --header=FILE[:TEMPLATE]
17775 instantiate the configuration header FILE
17776
17777 Configuration files:
17778 $config_files
17779
17780 Configuration headers:
17781 $config_headers
17782
17783 Configuration commands:
17784 $config_commands
17785
17786 Report bugs to <[email protected]>."
17787
17788 _ACEOF
17789 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
17790 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
17791 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17792 ac_cs_config='$ac_cs_config_escaped'
17793 ac_cs_version="\\
17794 dvi2tty (TeX Live) config.status 6.0.2
17795 configured by $0, generated by GNU Autoconf 2.72,
17796 with options \\"\$ac_cs_config\\"
17797
17798 Copyright (C) 2023 Free Software Foundation, Inc.
17799 This config.status script is free software; the Free Software Foundation
17800 gives unlimited permission to copy, distribute and modify it."
17801
17802 ac_pwd='$ac_pwd'
17803 srcdir='$srcdir'
17804 INSTALL='$INSTALL'
17805 MKDIR_P='$MKDIR_P'
17806 AWK='$AWK'
17807 test -n "\$AWK" || AWK=awk
17808 _ACEOF
17809
17810 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17811 # The default lists apply if the user does not specify any file.
17812 ac_need_defaults=:
17813 while test $# != 0
17814 do
17815 case $1 in
17816 --*=?*)
17817 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17818 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17819 ac_shift=:
17820 ;;
17821 --*=)
17822 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17823 ac_optarg=
17824 ac_shift=:
17825 ;;
17826 *)
17827 ac_option=$1
17828 ac_optarg=$2
17829 ac_shift=shift
17830 ;;
17831 esac
17832
17833 case $ac_option in
17834 # Handling of the options.
17835 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17836 ac_cs_recheck=: ;;
17837 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17838 printf "%s\n" "$ac_cs_version"; exit ;;
17839 --config | --confi | --conf | --con | --co | --c )
17840 printf "%s\n" "$ac_cs_config"; exit ;;
17841 --debug | --debu | --deb | --de | --d | -d )
17842 debug=: ;;
17843 --file | --fil | --fi | --f )
17844 $ac_shift
17845 case $ac_optarg in
17846 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17847 '') as_fn_error $? "missing file argument" ;;
17848 esac
17849 as_fn_append CONFIG_FILES " '$ac_optarg'"
17850 ac_need_defaults=false;;
17851 --header | --heade | --head | --hea )
17852 $ac_shift
17853 case $ac_optarg in
17854 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17855 esac
17856 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17857 ac_need_defaults=false;;
17858 --he | --h)
17859 # Conflict between --help and --header
17860 as_fn_error $? "ambiguous option: '$1'
17861 Try '$0 --help' for more information.";;
17862 --help | --hel | -h )
17863 printf "%s\n" "$ac_cs_usage"; exit ;;
17864 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17865 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17866 ac_cs_silent=: ;;
17867
17868 # This is an error.
17869 -*) as_fn_error $? "unrecognized option: '$1'
17870 Try '$0 --help' for more information." ;;
17871
17872 *) as_fn_append ac_config_targets " $1"
17873 ac_need_defaults=false ;;
17874
17875 esac
17876 shift
17877 done
17878
17879 ac_configure_extra_args=
17880
17881 if $ac_cs_silent; then
17882 exec 6>/dev/null
17883 ac_configure_extra_args="$ac_configure_extra_args --silent"
17884 fi
17885
17886 _ACEOF
17887 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17888 if \$ac_cs_recheck; then
17889 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17890 shift
17891 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
17892 CONFIG_SHELL='$SHELL'
17893 export CONFIG_SHELL
17894 exec "\$@"
17895 fi
17896
17897 _ACEOF
17898 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17899 exec 5>>config.log
17900 {
17901 echo
17902 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17903 ## Running $as_me. ##
17904 _ASBOX
17905 printf "%s\n" "$ac_log"
17906 } >&5
17907
17908 _ACEOF
17909 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17910 #
17911 # INIT-COMMANDS
17912 #
17913 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
17914
17915
17916 # The HP-UX ksh and POSIX shell print the target directory to stdout
17917 # if CDPATH is set.
17918 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17919
17920 sed_quote_subst='$sed_quote_subst'
17921 double_quote_subst='$double_quote_subst'
17922 delay_variable_subst='$delay_variable_subst'
17923 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17924 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17925 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
17926 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17927 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17928 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17929 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17930 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17931 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17932 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
17933 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17934 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17935 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17936 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17937 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17938 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17939 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17940 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17941 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17942 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17943 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17944 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17945 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17946 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17947 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17948 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17949 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17950 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17951 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17952 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17953 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17954 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17955 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17956 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17957 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17958 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17959 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17960 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
17961 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17962 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17963 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17964 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17965 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17966 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17967 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
17968 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17969 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17970 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17971 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17972 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17973 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17974 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17975 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17976 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17977 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17978 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17979 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17980 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17981 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17982 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
17983 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17984 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"`'
17985 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
17986 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17987 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17988 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
17989 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17990 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17991 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17992 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17993 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17994 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17995 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17996 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17997 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17998 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17999 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18000 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18001 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18002 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18003 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18004 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18005 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18006 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18007 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18008 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18009 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18010 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18011 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18012 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18013 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18014 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18015 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18016 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18017 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18018 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18019 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18020 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18021 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18022 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18023 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18024 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18025 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18026 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18027 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18028 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18029 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18030 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18031 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18032 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18033 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18034 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18035 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18036 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18037 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18038 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18039 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18040 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18041 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18042 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18043 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18044 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18045 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18046 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18047 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18048 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18049 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18050 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18051 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18052 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18053 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
18054 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
18055 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18056 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18057 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18058 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18059 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18060 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18061
18062 LTCC='$LTCC'
18063 LTCFLAGS='$LTCFLAGS'
18064 compiler='$compiler_DEFAULT'
18065
18066 # A function that is used when there is no print builtin or printf.
18067 func_fallback_echo ()
18068 {
18069 eval 'cat <<_LTECHO_EOF
18070 \$1
18071 _LTECHO_EOF'
18072 }
18073
18074 # Quote evaled strings.
18075 for var in AS \
18076 DLLTOOL \
18077 OBJDUMP \
18078 SHELL \
18079 ECHO \
18080 PATH_SEPARATOR \
18081 SED \
18082 GREP \
18083 EGREP \
18084 FGREP \
18085 LD \
18086 NM \
18087 LN_S \
18088 lt_SP2NL \
18089 lt_NL2SP \
18090 reload_flag \
18091 FILECMD \
18092 deplibs_check_method \
18093 file_magic_cmd \
18094 file_magic_glob \
18095 want_nocaseglob \
18096 sharedlib_from_linklib_cmd \
18097 AR \
18098 archiver_list_spec \
18099 STRIP \
18100 RANLIB \
18101 CC \
18102 CFLAGS \
18103 compiler \
18104 lt_cv_sys_global_symbol_pipe \
18105 lt_cv_sys_global_symbol_to_cdecl \
18106 lt_cv_sys_global_symbol_to_import \
18107 lt_cv_sys_global_symbol_to_c_name_address \
18108 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18109 lt_cv_nm_interface \
18110 nm_file_list_spec \
18111 lt_cv_truncate_bin \
18112 lt_prog_compiler_no_builtin_flag \
18113 lt_prog_compiler_pic \
18114 lt_prog_compiler_wl \
18115 lt_prog_compiler_static \
18116 lt_cv_prog_compiler_c_o \
18117 need_locks \
18118 MANIFEST_TOOL \
18119 DSYMUTIL \
18120 NMEDIT \
18121 LIPO \
18122 OTOOL \
18123 OTOOL64 \
18124 shrext_cmds \
18125 export_dynamic_flag_spec \
18126 whole_archive_flag_spec \
18127 compiler_needs_object \
18128 with_gnu_ld \
18129 allow_undefined_flag \
18130 no_undefined_flag \
18131 hardcode_libdir_flag_spec \
18132 hardcode_libdir_separator \
18133 exclude_expsyms \
18134 include_expsyms \
18135 file_list_spec \
18136 variables_saved_for_relink \
18137 libname_spec \
18138 library_names_spec \
18139 soname_spec \
18140 install_override_mode \
18141 finish_eval \
18142 old_striplib \
18143 striplib; do
18144 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18145 *[\\\\\\\`\\"\\\$]*)
18146 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18147 ;;
18148 *)
18149 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18150 ;;
18151 esac
18152 done
18153
18154 # Double-quote double-evaled strings.
18155 for var in reload_cmds \
18156 old_postinstall_cmds \
18157 old_postuninstall_cmds \
18158 old_archive_cmds \
18159 extract_expsyms_cmds \
18160 old_archive_from_new_cmds \
18161 old_archive_from_expsyms_cmds \
18162 archive_cmds \
18163 archive_expsym_cmds \
18164 module_cmds \
18165 module_expsym_cmds \
18166 export_symbols_cmds \
18167 prelink_cmds \
18168 postlink_cmds \
18169 postinstall_cmds \
18170 postuninstall_cmds \
18171 finish_cmds \
18172 sys_lib_search_path_spec \
18173 configure_time_dlsearch_path \
18174 configure_time_lt_sys_library_path; do
18175 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18176 *[\\\\\\\`\\"\\\$]*)
18177 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18178 ;;
18179 *)
18180 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18181 ;;
18182 esac
18183 done
18184
18185 ac_aux_dir='$ac_aux_dir'
18186
18187 # See if we are running on zsh, and set the options that allow our
18188 # commands through without removal of \ escapes INIT.
18189 if test -n "\${ZSH_VERSION+set}"; then
18190 setopt NO_GLOB_SUBST
18191 fi
18192
18193
18194 PACKAGE='$PACKAGE'
18195 VERSION='$VERSION'
18196 RM='$RM'
18197 ofile='$ofile'
18198
18199 ac_aux_dir='$ac_aux_dir'
18200
18201
18202
18203 _ACEOF
18204
18205 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18206
18207 # Handling of arguments.
18208 for ac_config_target in $ac_config_targets
18209 do
18210 case $ac_config_target in
18211 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18212 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18213 "c-auto.h") CONFIG_HEADERS="$CONFIG_HEADERS c-auto.h:c-auto.in" ;;
18214 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18215
18216 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
18217 esac
18218 done
18219
18220
18221 # If the user did not use the arguments to specify the items to instantiate,
18222 # then the envvar interface is used. Set only those that are not.
18223 # We use the long form for the default assignment because of an extremely
18224 # bizarre bug on SunOS 4.1.3.
18225 if $ac_need_defaults; then
18226 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
18227 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
18228 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
18229 fi
18230
18231 # Have a temporary directory for convenience. Make it in the build tree
18232 # simply because there is no reason against having it here, and in addition,
18233 # creating and moving files from /tmp can sometimes cause problems.
18234 # Hook for its removal unless debugging.
18235 # Note that there is a small window in which the directory will not be cleaned:
18236 # after its creation but before its name has been assigned to '$tmp'.
18237 $debug ||
18238 {
18239 tmp= ac_tmp=
18240 trap 'exit_status=$?
18241 : "${ac_tmp:=$tmp}"
18242 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18243 ' 0
18244 trap 'as_fn_exit 1' 1 2 13 15
18245 }
18246 # Create a (secure) tmp directory for tmp files.
18247
18248 {
18249 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18250 test -d "$tmp"
18251 } ||
18252 {
18253 tmp=./conf$$-$RANDOM
18254 (umask 077 && mkdir "$tmp")
18255 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18256 ac_tmp=$tmp
18257
18258 # Set up the scripts for CONFIG_FILES section.
18259 # No need to generate them if there are no CONFIG_FILES.
18260 # This happens for instance with './config.status config.h'.
18261 if test -n "$CONFIG_FILES"; then
18262
18263
18264 ac_cr=`echo X | tr X '\015'`
18265 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18266 # But we know of no other shell where ac_cr would be empty at this
18267 # point, so we can use a bashism as a fallback.
18268 if test "x$ac_cr" = x; then
18269 eval ac_cr=\$\'\\r\'
18270 fi
18271 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18272 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18273 ac_cs_awk_cr='\\r'
18274 else
18275 ac_cs_awk_cr=$ac_cr
18276 fi
18277
18278 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18279 _ACEOF
18280
18281
18282 {
18283 echo "cat >conf$$subs.awk <<_ACEOF" &&
18284 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18285 echo "_ACEOF"
18286 } >conf$$subs.sh ||
18287 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18288 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18289 ac_delim='%!_!# '
18290 for ac_last_try in false false false false false :; do
18291 . ./conf$$subs.sh ||
18292 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18293
18294 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18295 if test $ac_delim_n = $ac_delim_num; then
18296 break
18297 elif $ac_last_try; then
18298 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18299 else
18300 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18301 fi
18302 done
18303 rm -f conf$$subs.sh
18304
18305 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18306 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18307 _ACEOF
18308 sed -n '
18309 h
18310 s/^/S["/; s/!.*/"]=/
18311 p
18312 g
18313 s/^[^!]*!//
18314 :repl
18315 t repl
18316 s/'"$ac_delim"'$//
18317 t delim
18318 :nl
18319 h
18320 s/\(.\{148\}\)..*/\1/
18321 t more1
18322 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18323 p
18324 n
18325 b repl
18326 :more1
18327 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18328 p
18329 g
18330 s/.\{148\}//
18331 t nl
18332 :delim
18333 h
18334 s/\(.\{148\}\)..*/\1/
18335 t more2
18336 s/["\\]/\\&/g; s/^/"/; s/$/"/
18337 p
18338 b
18339 :more2
18340 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18341 p
18342 g
18343 s/.\{148\}//
18344 t delim
18345 ' <conf$$subs.awk | sed '
18346 /^[^""]/{
18347 N
18348 s/\n//
18349 }
18350 ' >>$CONFIG_STATUS || ac_write_fail=1
18351 rm -f conf$$subs.awk
18352 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18353 _ACAWK
18354 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18355 for (key in S) S_is_set[key] = 1
18356 FS = ""
18357
18358 }
18359 {
18360 line = $ 0
18361 nfields = split(line, field, "@")
18362 substed = 0
18363 len = length(field[1])
18364 for (i = 2; i < nfields; i++) {
18365 key = field[i]
18366 keylen = length(key)
18367 if (S_is_set[key]) {
18368 value = S[key]
18369 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18370 len += length(value) + length(field[++i])
18371 substed = 1
18372 } else
18373 len += 1 + keylen
18374 }
18375
18376 print line
18377 }
18378
18379 _ACAWK
18380 _ACEOF
18381 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18382 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18383 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18384 else
18385 cat
18386 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18387 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18388 _ACEOF
18389
18390 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18391 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18392 # trailing colons and then remove the whole line if VPATH becomes empty
18393 # (actually we leave an empty line to preserve line numbers).
18394 if test "x$srcdir" = x.; then
18395 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18396 h
18397 s///
18398 s/^/:/
18399 s/[ ]*$/:/
18400 s/:\$(srcdir):/:/g
18401 s/:\${srcdir}:/:/g
18402 s/:@srcdir@:/:/g
18403 s/^:*//
18404 s/:*$//
18405 x
18406 s/\(=[ ]*\).*/\1/
18407 G
18408 s/\n//
18409 s/^[^=]*=[ ]*$//
18410 }'
18411 fi
18412
18413 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18414 fi # test -n "$CONFIG_FILES"
18415
18416 # Set up the scripts for CONFIG_HEADERS section.
18417 # No need to generate them if there are no CONFIG_HEADERS.
18418 # This happens for instance with './config.status Makefile'.
18419 if test -n "$CONFIG_HEADERS"; then
18420 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18421 BEGIN {
18422 _ACEOF
18423
18424 # Transform confdefs.h into an awk script 'defines.awk', embedded as
18425 # here-document in config.status, that substitutes the proper values into
18426 # config.h.in to produce config.h.
18427
18428 # Create a delimiter string that does not exist in confdefs.h, to ease
18429 # handling of long lines.
18430 ac_delim='%!_!# '
18431 for ac_last_try in false false :; do
18432 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18433 if test -z "$ac_tt"; then
18434 break
18435 elif $ac_last_try; then
18436 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18437 else
18438 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18439 fi
18440 done
18441
18442 # For the awk script, D is an array of macro values keyed by name,
18443 # likewise P contains macro parameters if any. Preserve backslash
18444 # newline sequences.
18445
18446 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18447 sed -n '
18448 s/.\{148\}/&'"$ac_delim"'/g
18449 t rset
18450 :rset
18451 s/^[ ]*#[ ]*define[ ][ ]*/ /
18452 t def
18453 d
18454 :def
18455 s/\\$//
18456 t bsnl
18457 s/["\\]/\\&/g
18458 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18459 D["\1"]=" \3"/p
18460 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18461 d
18462 :bsnl
18463 s/["\\]/\\&/g
18464 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18465 D["\1"]=" \3\\\\\\n"\\/p
18466 t cont
18467 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18468 t cont
18469 d
18470 :cont
18471 n
18472 s/.\{148\}/&'"$ac_delim"'/g
18473 t clear
18474 :clear
18475 s/\\$//
18476 t bsnlc
18477 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18478 d
18479 :bsnlc
18480 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18481 b cont
18482 ' <confdefs.h | sed '
18483 s/'"$ac_delim"'/"\\\
18484 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18485
18486 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18487 for (key in D) D_is_set[key] = 1
18488 FS = ""
18489 }
18490 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18491 line = \$ 0
18492 split(line, arg, " ")
18493 if (arg[1] == "#") {
18494 defundef = arg[2]
18495 mac1 = arg[3]
18496 } else {
18497 defundef = substr(arg[1], 2)
18498 mac1 = arg[2]
18499 }
18500 split(mac1, mac2, "(") #)
18501 macro = mac2[1]
18502 prefix = substr(line, 1, index(line, defundef) - 1)
18503 if (D_is_set[macro]) {
18504 # Preserve the white space surrounding the "#".
18505 print prefix "define", macro P[macro] D[macro]
18506 next
18507 } else {
18508 # Replace #undef with comments. This is necessary, for example,
18509 # in the case of _POSIX_SOURCE, which is predefined and required
18510 # on some systems where configure will not decide to define it.
18511 if (defundef == "undef") {
18512 print "/*", prefix defundef, macro, "*/"
18513 next
18514 }
18515 }
18516 }
18517 { print }
18518 _ACAWK
18519 _ACEOF
18520 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18521 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18522 fi # test -n "$CONFIG_HEADERS"
18523
18524
18525 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18526 shift
18527 for ac_tag
18528 do
18529 case $ac_tag in
18530 :[FHLC]) ac_mode=$ac_tag; continue;;
18531 esac
18532 case $ac_mode$ac_tag in
18533 :[FHL]*:*);;
18534 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
18535 :[FH]-) ac_tag=-:-;;
18536 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18537 esac
18538 ac_save_IFS=$IFS
18539 IFS=:
18540 set x $ac_tag
18541 IFS=$ac_save_IFS
18542 shift
18543 ac_file=$1
18544 shift
18545
18546 case $ac_mode in
18547 :L) ac_source=$1;;
18548 :[FH])
18549 ac_file_inputs=
18550 for ac_f
18551 do
18552 case $ac_f in
18553 -) ac_f="$ac_tmp/stdin";;
18554 *) # Look for the file first in the build tree, then in the source tree
18555 # (if the path is not absolute). The absolute path cannot be DOS-style,
18556 # because $ac_f cannot contain ':'.
18557 test -f "$ac_f" ||
18558 case $ac_f in
18559 [\\/$]*) false;;
18560 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18561 esac ||
18562 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
18563 esac
18564 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18565 as_fn_append ac_file_inputs " '$ac_f'"
18566 done
18567
18568 # Let's still pretend it is 'configure' which instantiates (i.e., don't
18569 # use $as_me), people would be surprised to read:
18570 # /* config.h. Generated by config.status. */
18571 configure_input='Generated from '`
18572 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18573 `' by configure.'
18574 if test x"$ac_file" != x-; then
18575 configure_input="$ac_file. $configure_input"
18576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18577 printf "%s\n" "$as_me: creating $ac_file" >&6;}
18578 fi
18579 # Neutralize special characters interpreted by sed in replacement strings.
18580 case $configure_input in #(
18581 *\&* | *\|* | *\\* )
18582 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
18583 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18584 *) ac_sed_conf_input=$configure_input;;
18585 esac
18586
18587 case $ac_tag in
18588 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18589 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18590 esac
18591 ;;
18592 esac
18593
18594 ac_dir=`$as_dirname -- "$ac_file" ||
18595 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18596 X"$ac_file" : 'X\(//\)[^/]' \| \
18597 X"$ac_file" : 'X\(//\)$' \| \
18598 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18599 printf "%s\n" X"$ac_file" |
18600 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18601 s//\1/
18602 q
18603 }
18604 /^X\(\/\/\)[^/].*/{
18605 s//\1/
18606 q
18607 }
18608 /^X\(\/\/\)$/{
18609 s//\1/
18610 q
18611 }
18612 /^X\(\/\).*/{
18613 s//\1/
18614 q
18615 }
18616 s/.*/./; q'`
18617 as_dir="$ac_dir"; as_fn_mkdir_p
18618 ac_builddir=.
18619
18620 case "$ac_dir" in
18621 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18622 *)
18623 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
18624 # A ".." for each directory in $ac_dir_suffix.
18625 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18626 case $ac_top_builddir_sub in
18627 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18628 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18629 esac ;;
18630 esac
18631 ac_abs_top_builddir=$ac_pwd
18632 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18633 # for backward compatibility:
18634 ac_top_builddir=$ac_top_build_prefix
18635
18636 case $srcdir in
18637 .) # We are building in place.
18638 ac_srcdir=.
18639 ac_top_srcdir=$ac_top_builddir_sub
18640 ac_abs_top_srcdir=$ac_pwd ;;
18641 [\\/]* | ?:[\\/]* ) # Absolute name.
18642 ac_srcdir=$srcdir$ac_dir_suffix;
18643 ac_top_srcdir=$srcdir
18644 ac_abs_top_srcdir=$srcdir ;;
18645 *) # Relative name.
18646 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18647 ac_top_srcdir=$ac_top_build_prefix$srcdir
18648 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18649 esac
18650 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18651
18652
18653 case $ac_mode in
18654 :F)
18655 #
18656 # CONFIG_FILE
18657 #
18658
18659 case $INSTALL in
18660 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18661 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18662 esac
18663 ac_MKDIR_P=$MKDIR_P
18664 case $MKDIR_P in
18665 [\\/$]* | ?:[\\/]* ) ;;
18666 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18667 esac
18668 _ACEOF
18669
18670 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18671 # If the template does not know about datarootdir, expand it.
18672 # FIXME: This hack should be removed a few years after 2.60.
18673 ac_datarootdir_hack=; ac_datarootdir_seen=
18674 ac_sed_dataroot='
18675 /datarootdir/ {
18676 p
18677 q
18678 }
18679 /@datadir@/p
18680 /@docdir@/p
18681 /@infodir@/p
18682 /@localedir@/p
18683 /@mandir@/p'
18684 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18685 *datarootdir*) ac_datarootdir_seen=yes;;
18686 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18688 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18689 _ACEOF
18690 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18691 ac_datarootdir_hack='
18692 s&@datadir@&$datadir&g
18693 s&@docdir@&$docdir&g
18694 s&@infodir@&$infodir&g
18695 s&@localedir@&$localedir&g
18696 s&@mandir@&$mandir&g
18697 s&\\\${datarootdir}&$datarootdir&g' ;;
18698 esac
18699 _ACEOF
18700
18701 # Neutralize VPATH when '$srcdir' = '.'.
18702 # Shell code in configure.ac might set extrasub.
18703 # FIXME: do we really want to maintain this feature?
18704 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18705 ac_sed_extra="$ac_vpsub
18706 $extrasub
18707 _ACEOF
18708 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18709 :t
18710 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18711 s|@configure_input@|$ac_sed_conf_input|;t t
18712 s&@top_builddir@&$ac_top_builddir_sub&;t t
18713 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18714 s&@srcdir@&$ac_srcdir&;t t
18715 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18716 s&@top_srcdir@&$ac_top_srcdir&;t t
18717 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18718 s&@builddir@&$ac_builddir&;t t
18719 s&@abs_builddir@&$ac_abs_builddir&;t t
18720 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18721 s&@INSTALL@&$ac_INSTALL&;t t
18722 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18723 $ac_datarootdir_hack
18724 "
18725 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18726 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18727
18728 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18729 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18730 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18731 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
18733 which seems to be undefined. Please make sure it is defined" >&5
18734 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
18735 which seems to be undefined. Please make sure it is defined" >&2;}
18736
18737 rm -f "$ac_tmp/stdin"
18738 case $ac_file in
18739 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18740 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18741 esac \
18742 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18743 ;;
18744 :H)
18745 #
18746 # CONFIG_HEADER
18747 #
18748 if test x"$ac_file" != x-; then
18749 {
18750 printf "%s\n" "/* $configure_input */" >&1 \
18751 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18752 } >"$ac_tmp/config.h" \
18753 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18754 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18756 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
18757 else
18758 rm -f "$ac_file"
18759 mv "$ac_tmp/config.h" "$ac_file" \
18760 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18761 fi
18762 else
18763 printf "%s\n" "/* $configure_input */" >&1 \
18764 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18765 || as_fn_error $? "could not create -" "$LINENO" 5
18766 fi
18767 # Compute "$ac_file"'s index in $config_headers.
18768 _am_arg="$ac_file"
18769 _am_stamp_count=1
18770 for _am_header in $config_headers :; do
18771 case $_am_header in
18772 $_am_arg | $_am_arg:* )
18773 break ;;
18774 * )
18775 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18776 esac
18777 done
18778 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18779 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18780 X"$_am_arg" : 'X\(//\)[^/]' \| \
18781 X"$_am_arg" : 'X\(//\)$' \| \
18782 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18783 printf "%s\n" X"$_am_arg" |
18784 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18785 s//\1/
18786 q
18787 }
18788 /^X\(\/\/\)[^/].*/{
18789 s//\1/
18790 q
18791 }
18792 /^X\(\/\/\)$/{
18793 s//\1/
18794 q
18795 }
18796 /^X\(\/\).*/{
18797 s//\1/
18798 q
18799 }
18800 s/.*/./; q'`/stamp-h$_am_stamp_count
18801 ;;
18802
18803 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18804 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
18805 ;;
18806 esac
18807
18808
18809 case $ac_file$ac_mode in
18810 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18811 # Older Autoconf quotes --file arguments for eval, but not when files
18812 # are listed without --file. Let's play safe and only enable the eval
18813 # if we detect the quoting.
18814 # TODO: see whether this extra hack can be removed once we start
18815 # requiring Autoconf 2.70 or later.
18816 case $CONFIG_FILES in #(
18817 *\'*) :
18818 eval set x "$CONFIG_FILES" ;; #(
18819 *) :
18820 set x $CONFIG_FILES ;; #(
18821 *) :
18822 ;;
18823 esac
18824 shift
18825 # Used to flag and report bootstrapping failures.
18826 am_rc=0
18827 for am_mf
18828 do
18829 # Strip MF so we end up with the name of the file.
18830 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
18831 # Check whether this is an Automake generated Makefile which includes
18832 # dependency-tracking related rules and includes.
18833 # Grep'ing the whole file directly is not great: AIX grep has a line
18834 # limit of 2048, but all sed's we know have understand at least 4000.
18835 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
18836 || continue
18837 am_dirpart=`$as_dirname -- "$am_mf" ||
18838 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18839 X"$am_mf" : 'X\(//\)[^/]' \| \
18840 X"$am_mf" : 'X\(//\)$' \| \
18841 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
18842 printf "%s\n" X"$am_mf" |
18843 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18844 s//\1/
18845 q
18846 }
18847 /^X\(\/\/\)[^/].*/{
18848 s//\1/
18849 q
18850 }
18851 /^X\(\/\/\)$/{
18852 s//\1/
18853 q
18854 }
18855 /^X\(\/\).*/{
18856 s//\1/
18857 q
18858 }
18859 s/.*/./; q'`
18860 am_filepart=`$as_basename -- "$am_mf" ||
18861 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
18862 X"$am_mf" : 'X\(//\)$' \| \
18863 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
18864 printf "%s\n" X/"$am_mf" |
18865 sed '/^.*\/\([^/][^/]*\)\/*$/{
18866 s//\1/
18867 q
18868 }
18869 /^X\/\(\/\/\)$/{
18870 s//\1/
18871 q
18872 }
18873 /^X\/\(\/\).*/{
18874 s//\1/
18875 q
18876 }
18877 s/.*/./; q'`
18878 { echo "$as_me:$LINENO: cd "$am_dirpart" \
18879 && sed -e '/# am--include-marker/d' "$am_filepart" \
18880 | $MAKE -f - am--depfiles" >&5
18881 (cd "$am_dirpart" \
18882 && sed -e '/# am--include-marker/d' "$am_filepart" \
18883 | $MAKE -f - am--depfiles) >&5 2>&5
18884 ac_status=$?
18885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18886 (exit $ac_status); } || am_rc=$?
18887 done
18888 if test $am_rc -ne 0; then
18889 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
18890 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
18891 as_fn_error $? "Something went wrong bootstrapping makefile fragments
18892 for automatic dependency tracking. If GNU make was not used, consider
18893 re-running the configure script with MAKE=\"gmake\" (or whatever is
18894 necessary). You can also try re-running configure with the
18895 '--disable-dependency-tracking' option to at least be able to build
18896 the package (albeit without support for automatic dependency tracking).
18897 See 'config.log' for more details" "$LINENO" 5; }
18898 fi
18899 { am_dirpart=; unset am_dirpart;}
18900 { am_filepart=; unset am_filepart;}
18901 { am_mf=; unset am_mf;}
18902 { am_rc=; unset am_rc;}
18903 rm -f conftest-deps.mk
18904 }
18905 ;;
18906 "libtool":C)
18907
18908 # See if we are running on zsh, and set the options that allow our
18909 # commands through without removal of \ escapes.
18910 if test -n "${ZSH_VERSION+set}"; then
18911 setopt NO_GLOB_SUBST
18912 fi
18913
18914 cfgfile=${ofile}T
18915 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18916 $RM "$cfgfile"
18917
18918 cat <<_LT_EOF >> "$cfgfile"
18919 #! $SHELL
18920 # Generated automatically by $as_me ($PACKAGE) $VERSION
18921 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18922
18923 # Provide generalized library-building support services.
18924 # Written by Gordon Matzigkeit, 1996
18925
18926 # Copyright (C) 2024 Free Software Foundation, Inc.
18927 # This is free software; see the source for copying conditions. There is NO
18928 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18929
18930 # GNU Libtool is free software; you can redistribute it and/or modify
18931 # it under the terms of the GNU General Public License as published by
18932 # the Free Software Foundation; either version 2 of the License, or
18933 # (at your option) any later version.
18934 #
18935 # As a special exception to the GNU General Public License, if you
18936 # distribute this file as part of a program or library that is built
18937 # using GNU Libtool, you may include this file under the same
18938 # distribution terms that you use for the rest of that program.
18939 #
18940 # GNU Libtool is distributed in the hope that it will be useful, but
18941 # WITHOUT ANY WARRANTY; without even the implied warranty of
18942 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18943 # GNU General Public License for more details.
18944 #
18945 # You should have received a copy of the GNU General Public License
18946 # along with this program. If not, see <http://www.gnu.org/licenses/>.
18947
18948
18949 # The names of the tagged configurations supported by this script.
18950 available_tags=''
18951
18952 # Configured defaults for sys_lib_dlsearch_path munging.
18953 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
18954
18955 # ### BEGIN LIBTOOL CONFIG
18956
18957 # Which release of libtool.m4 was used?
18958 macro_version=$macro_version
18959 macro_revision=$macro_revision
18960
18961 # Assembler program.
18962 AS=$lt_AS
18963
18964 # DLL creation program.
18965 DLLTOOL=$lt_DLLTOOL
18966
18967 # Object dumper program.
18968 OBJDUMP=$lt_OBJDUMP
18969
18970 # Whether or not to build shared libraries.
18971 build_libtool_libs=$enable_shared
18972
18973 # Whether or not to build static libraries.
18974 build_old_libs=$enable_static
18975
18976 # What type of objects to build.
18977 pic_mode=$pic_mode
18978
18979 # Whether or not to optimize for fast installation.
18980 fast_install=$enable_fast_install
18981
18982 # Shared archive member basename,for filename based shared library versioning on AIX.
18983 shared_archive_member_spec=$shared_archive_member_spec
18984
18985 # Shell to use when invoking shell scripts.
18986 SHELL=$lt_SHELL
18987
18988 # An echo program that protects backslashes.
18989 ECHO=$lt_ECHO
18990
18991 # The PATH separator for the build system.
18992 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18993
18994 # The host system.
18995 host_alias=$host_alias
18996 host=$host
18997 host_os=$host_os
18998
18999 # The build system.
19000 build_alias=$build_alias
19001 build=$build
19002 build_os=$build_os
19003
19004 # A sed program that does not truncate output.
19005 SED=$lt_SED
19006
19007 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19008 Xsed="\$SED -e 1s/^X//"
19009
19010 # A grep program that handles long lines.
19011 GREP=$lt_GREP
19012
19013 # An ERE matcher.
19014 EGREP=$lt_EGREP
19015
19016 # A literal string matcher.
19017 FGREP=$lt_FGREP
19018
19019 # A BSD- or MS-compatible name lister.
19020 NM=$lt_NM
19021
19022 # Whether we need soft or hard links.
19023 LN_S=$lt_LN_S
19024
19025 # What is the maximum length of a command?
19026 max_cmd_len=$max_cmd_len
19027
19028 # Object file suffix (normally "o").
19029 objext=$ac_objext
19030
19031 # Executable file suffix (normally "").
19032 exeext=$exeext
19033
19034 # whether the shell understands "unset".
19035 lt_unset=$lt_unset
19036
19037 # turn spaces into newlines.
19038 SP2NL=$lt_lt_SP2NL
19039
19040 # turn newlines into spaces.
19041 NL2SP=$lt_lt_NL2SP
19042
19043 # convert \$build file names to \$host format.
19044 to_host_file_cmd=$lt_cv_to_host_file_cmd
19045
19046 # convert \$build files to toolchain format.
19047 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19048
19049 # A file(cmd) program that detects file types.
19050 FILECMD=$lt_FILECMD
19051
19052 # Method to check whether dependent libraries are shared objects.
19053 deplibs_check_method=$lt_deplibs_check_method
19054
19055 # Command to use when deplibs_check_method = "file_magic".
19056 file_magic_cmd=$lt_file_magic_cmd
19057
19058 # How to find potential files when deplibs_check_method = "file_magic".
19059 file_magic_glob=$lt_file_magic_glob
19060
19061 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19062 want_nocaseglob=$lt_want_nocaseglob
19063
19064 # Command to associate shared and link libraries.
19065 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19066
19067 # The archiver.
19068 AR=$lt_AR
19069
19070 # Flags to create an archive (by configure).
19071 lt_ar_flags=$lt_ar_flags
19072
19073 # Flags to create an archive.
19074 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
19075
19076 # How to feed a file listing to the archiver.
19077 archiver_list_spec=$lt_archiver_list_spec
19078
19079 # A symbol stripping program.
19080 STRIP=$lt_STRIP
19081
19082 # Commands used to install an old-style archive.
19083 RANLIB=$lt_RANLIB
19084 old_postinstall_cmds=$lt_old_postinstall_cmds
19085 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19086
19087 # Whether to use a lock for old archive extraction.
19088 lock_old_archive_extraction=$lock_old_archive_extraction
19089
19090 # A C compiler.
19091 LTCC=$lt_CC
19092
19093 # LTCC compiler flags.
19094 LTCFLAGS=$lt_CFLAGS
19095
19096 # Take the output of nm and produce a listing of raw symbols and C names.
19097 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19098
19099 # Transform the output of nm in a proper C declaration.
19100 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19101
19102 # Transform the output of nm into a list of symbols to manually relocate.
19103 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
19104
19105 # Transform the output of nm in a C name address pair.
19106 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19107
19108 # Transform the output of nm in a C name address pair when lib prefix is needed.
19109 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19110
19111 # The name lister interface.
19112 nm_interface=$lt_lt_cv_nm_interface
19113
19114 # Specify filename containing input files for \$NM.
19115 nm_file_list_spec=$lt_nm_file_list_spec
19116
19117 # The root where to search for dependent libraries,and where our libraries should be installed.
19118 lt_sysroot=$lt_sysroot
19119
19120 # Command to truncate a binary pipe.
19121 lt_truncate_bin=$lt_lt_cv_truncate_bin
19122
19123 # The name of the directory that contains temporary libtool files.
19124 objdir=$objdir
19125
19126 # Used to examine libraries when file_magic_cmd begins with "file".
19127 MAGIC_CMD=$MAGIC_CMD
19128
19129 # Must we lock files when doing compilation?
19130 need_locks=$lt_need_locks
19131
19132 # Manifest tool.
19133 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19134
19135 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19136 DSYMUTIL=$lt_DSYMUTIL
19137
19138 # Tool to change global to local symbols on Mac OS X.
19139 NMEDIT=$lt_NMEDIT
19140
19141 # Tool to manipulate fat objects and archives on Mac OS X.
19142 LIPO=$lt_LIPO
19143
19144 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19145 OTOOL=$lt_OTOOL
19146
19147 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19148 OTOOL64=$lt_OTOOL64
19149
19150 # Old archive suffix (normally "a").
19151 libext=$libext
19152
19153 # Shared library suffix (normally ".so").
19154 shrext_cmds=$lt_shrext_cmds
19155
19156 # The commands to extract the exported symbol list from a shared archive.
19157 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19158
19159 # Variables whose values should be saved in libtool wrapper scripts and
19160 # restored at link time.
19161 variables_saved_for_relink=$lt_variables_saved_for_relink
19162
19163 # Do we need the "lib" prefix for modules?
19164 need_lib_prefix=$need_lib_prefix
19165
19166 # Do we need a version for libraries?
19167 need_version=$need_version
19168
19169 # Library versioning type.
19170 version_type=$version_type
19171
19172 # Shared library runtime path variable.
19173 runpath_var=$runpath_var
19174
19175 # Shared library path variable.
19176 shlibpath_var=$shlibpath_var
19177
19178 # Is shlibpath searched before the hard-coded library search path?
19179 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19180
19181 # Format of library name prefix.
19182 libname_spec=$lt_libname_spec
19183
19184 # List of archive names. First name is the real one, the rest are links.
19185 # The last name is the one that the linker finds with -lNAME
19186 library_names_spec=$lt_library_names_spec
19187
19188 # The coded name of the library, if different from the real name.
19189 soname_spec=$lt_soname_spec
19190
19191 # Permission mode override for installation of shared libraries.
19192 install_override_mode=$lt_install_override_mode
19193
19194 # Command to use after installation of a shared archive.
19195 postinstall_cmds=$lt_postinstall_cmds
19196
19197 # Command to use after uninstallation of a shared archive.
19198 postuninstall_cmds=$lt_postuninstall_cmds
19199
19200 # Commands used to finish a libtool library installation in a directory.
19201 finish_cmds=$lt_finish_cmds
19202
19203 # As "finish_cmds", except a single script fragment to be evaled but
19204 # not shown.
19205 finish_eval=$lt_finish_eval
19206
19207 # Whether we should hardcode library paths into libraries.
19208 hardcode_into_libs=$hardcode_into_libs
19209
19210 # Compile-time system search path for libraries.
19211 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19212
19213 # Detected run-time system search path for libraries.
19214 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
19215
19216 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
19217 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
19218
19219 # Whether dlopen is supported.
19220 dlopen_support=$enable_dlopen
19221
19222 # Whether dlopen of programs is supported.
19223 dlopen_self=$enable_dlopen_self
19224
19225 # Whether dlopen of statically linked programs is supported.
19226 dlopen_self_static=$enable_dlopen_self_static
19227
19228 # Commands to strip libraries.
19229 old_striplib=$lt_old_striplib
19230 striplib=$lt_striplib
19231
19232
19233 # The linker used to build libraries.
19234 LD=$lt_LD
19235
19236 # How to create reloadable object files.
19237 reload_flag=$lt_reload_flag
19238 reload_cmds=$lt_reload_cmds
19239
19240 # Commands used to build an old-style archive.
19241 old_archive_cmds=$lt_old_archive_cmds
19242
19243 # A language specific compiler.
19244 CC=$lt_compiler
19245
19246 # Is the compiler the GNU compiler?
19247 with_gcc=$GCC
19248
19249 # Compiler flag to turn off builtin functions.
19250 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19251
19252 # Additional compiler flags for building library objects.
19253 pic_flag=$lt_lt_prog_compiler_pic
19254
19255 # How to pass a linker flag through the compiler.
19256 wl=$lt_lt_prog_compiler_wl
19257
19258 # Compiler flag to prevent dynamic linking.
19259 link_static_flag=$lt_lt_prog_compiler_static
19260
19261 # Does compiler simultaneously support -c and -o options?
19262 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19263
19264 # Whether or not to add -lc for building shared libraries.
19265 build_libtool_need_lc=$archive_cmds_need_lc
19266
19267 # Whether or not to disallow shared libs when runtime libs are static.
19268 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19269
19270 # Compiler flag to allow reflexive dlopens.
19271 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19272
19273 # Compiler flag to generate shared objects directly from archives.
19274 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19275
19276 # Whether the compiler copes with passing no objects directly.
19277 compiler_needs_object=$lt_compiler_needs_object
19278
19279 # Create an old-style archive from a shared archive.
19280 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19281
19282 # Create a temporary old-style archive to link instead of a shared archive.
19283 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19284
19285 # Commands used to build a shared archive.
19286 archive_cmds=$lt_archive_cmds
19287 archive_expsym_cmds=$lt_archive_expsym_cmds
19288
19289 # Commands used to build a loadable module if different from building
19290 # a shared archive.
19291 module_cmds=$lt_module_cmds
19292 module_expsym_cmds=$lt_module_expsym_cmds
19293
19294 # Whether we are building with GNU ld or not.
19295 with_gnu_ld=$lt_with_gnu_ld
19296
19297 # Flag that allows shared libraries with undefined symbols to be built.
19298 allow_undefined_flag=$lt_allow_undefined_flag
19299
19300 # Flag that enforces no undefined symbols.
19301 no_undefined_flag=$lt_no_undefined_flag
19302
19303 # Flag to hardcode \$libdir into a binary during linking.
19304 # This must work even if \$libdir does not exist
19305 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19306
19307 # Whether we need a single "-rpath" flag with a separated argument.
19308 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19309
19310 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19311 # DIR into the resulting binary.
19312 hardcode_direct=$hardcode_direct
19313
19314 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19315 # DIR into the resulting binary and the resulting library dependency is
19316 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
19317 # library is relocated.
19318 hardcode_direct_absolute=$hardcode_direct_absolute
19319
19320 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19321 # into the resulting binary.
19322 hardcode_minus_L=$hardcode_minus_L
19323
19324 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19325 # into the resulting binary.
19326 hardcode_shlibpath_var=$hardcode_shlibpath_var
19327
19328 # Set to "yes" if building a shared library automatically hardcodes DIR
19329 # into the library and all subsequent libraries and executables linked
19330 # against it.
19331 hardcode_automatic=$hardcode_automatic
19332
19333 # Set to yes if linker adds runtime paths of dependent libraries
19334 # to runtime path list.
19335 inherit_rpath=$inherit_rpath
19336
19337 # Whether libtool must link a program against all its dependency libraries.
19338 link_all_deplibs=$link_all_deplibs
19339
19340 # Set to "yes" if exported symbols are required.
19341 always_export_symbols=$always_export_symbols
19342
19343 # The commands to list exported symbols.
19344 export_symbols_cmds=$lt_export_symbols_cmds
19345
19346 # Symbols that should not be listed in the preloaded symbols.
19347 exclude_expsyms=$lt_exclude_expsyms
19348
19349 # Symbols that must always be exported.
19350 include_expsyms=$lt_include_expsyms
19351
19352 # Commands necessary for linking programs (against libraries) with templates.
19353 prelink_cmds=$lt_prelink_cmds
19354
19355 # Commands necessary for finishing linking programs.
19356 postlink_cmds=$lt_postlink_cmds
19357
19358 # Specify filename containing input files.
19359 file_list_spec=$lt_file_list_spec
19360
19361 # How to hardcode a shared library path into an executable.
19362 hardcode_action=$hardcode_action
19363
19364 # ### END LIBTOOL CONFIG
19365
19366 _LT_EOF
19367
19368 cat <<'_LT_EOF' >> "$cfgfile"
19369
19370 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
19371
19372 # func_munge_path_list VARIABLE PATH
19373 # -----------------------------------
19374 # VARIABLE is name of variable containing _space_ separated list of
19375 # directories to be munged by the contents of PATH, which is string
19376 # having a format:
19377 # "DIR[:DIR]:"
19378 # string "DIR[ DIR]" will be prepended to VARIABLE
19379 # ":DIR[:DIR]"
19380 # string "DIR[ DIR]" will be appended to VARIABLE
19381 # "DIRP[:DIRP]::[DIRA:]DIRA"
19382 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
19383 # "DIRA[ DIRA]" will be appended to VARIABLE
19384 # "DIR[:DIR]"
19385 # VARIABLE will be replaced by "DIR[ DIR]"
19386 func_munge_path_list ()
19387 {
19388 case x$2 in
19389 x)
19390 ;;
19391 *:)
19392 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
19393 ;;
19394 x:*)
19395 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
19396 ;;
19397 *::*)
19398 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
19399 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
19400 ;;
19401 *)
19402 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
19403 ;;
19404 esac
19405 }
19406
19407
19408 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
19409 func_cc_basename ()
19410 {
19411 for cc_temp in $*""; do
19412 case $cc_temp in
19413 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19414 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19415 \-*) ;;
19416 *) break;;
19417 esac
19418 done
19419 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19420 }
19421
19422
19423 # ### END FUNCTIONS SHARED WITH CONFIGURE
19424
19425 _LT_EOF
19426
19427 case $host_os in
19428 aix3*)
19429 cat <<\_LT_EOF >> "$cfgfile"
19430 # AIX sometimes has problems with the GCC collect2 program. For some
19431 # reason, if we set the COLLECT_NAMES environment variable, the problems
19432 # vanish in a puff of smoke.
19433 if test set != "${COLLECT_NAMES+set}"; then
19434 COLLECT_NAMES=
19435 export COLLECT_NAMES
19436 fi
19437 _LT_EOF
19438 ;;
19439 esac
19440
19441
19442
19443 ltmain=$ac_aux_dir/ltmain.sh
19444
19445
19446 # We use sed instead of cat because bash on DJGPP gets confused if
19447 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19448 # text mode, it properly converts lines to CR/LF. This bash problem
19449 # is reportedly fixed, but why not run on old versions too?
19450 $SED '$q' "$ltmain" >> "$cfgfile" \
19451 || (rm -f "$cfgfile"; exit 1)
19452
19453 mv -f "$cfgfile" "$ofile" ||
19454 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19455 chmod +x "$ofile"
19456
19457 ;;
19458
19459 esac
19460 done # for ac_tag
19461
19462
19463 as_fn_exit 0
19464 _ACEOF
19465 ac_clean_files=$ac_clean_files_save
19466
19467 test $ac_write_fail = 0 ||
19468 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19469
19470
19471 # configure is writing to config.log, and then calls config.status.
19472 # config.status does its own redirection, appending to config.log.
19473 # Unfortunately, on DOS this fails, as config.log is still kept open
19474 # by configure, so config.status won't be able to write to it; its
19475 # output is simply discarded. So we exec the FD to /dev/null,
19476 # effectively closing config.log, so it can be properly (re)opened and
19477 # appended to by config.status. When coming back to configure, we
19478 # need to make the FD available again.
19479 if test "$no_create" != yes; then
19480 ac_cs_success=:
19481 ac_config_status_args=
19482 test "$silent" = yes &&
19483 ac_config_status_args="$ac_config_status_args --quiet"
19484 exec 5>/dev/null
19485 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19486 exec 5>>config.log
19487 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19488 # would make configure fail if this is the last instruction.
19489 $ac_cs_success || as_fn_exit 1
19490 fi
19491 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19493 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19494 fi
19495
19496