Debian Codegraph @

texk/xdvipsk/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 xdvipsk (TeX Live) 2026.1.
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='xdvipsk (TeX Live)'
616 PACKAGE_TARNAME='xdvipsk--tex-live-'
617 PACKAGE_VERSION='2026.1'
618 PACKAGE_STRING='xdvipsk (TeX Live) 2026.1'
619 PACKAGE_BUGREPORT='[email protected]'
620 PACKAGE_URL=''
621
622 ac_unique_file="xdvips.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_option_checking=no
656 enable_year2038=no
657 ac_subst_vars='am__EXEEXT_FALSE
658 am__EXEEXT_TRUE
659 LTLIBOBJS
660 LIBOBJS
661 subdirs
662 AM_LDFLAGS
663 AM_CXXFLAGS
664 FREETYPE2_RULE
665 FREETYPE2_DEPEND
666 FREETYPE2_LIBS
667 FREETYPE2_INCLUDES
668 FT2_CONFIG
669 LIBPNG_RULE
670 LIBPNG_DEPEND
671 LIBPNG_LIBS
672 LIBPNG_INCLUDES
673 ZLIB_RULE
674 ZLIB_DEPEND
675 ZLIB_LIBS
676 ZLIB_INCLUDES
677 LUA53_RULE
678 LUA53_DEPEND
679 LUA53_LIBS
680 LUA53_INCLUDES
681 KPATHSEA_RULE
682 KPATHSEA_DEPEND
683 KPATHSEA_LIBS
684 KPATHSEA_INCLUDES
685 PKG_CONFIG
686 LUA53_DEFINES
687 cross_FALSE
688 cross_TRUE
689 CXXCPP
690 LT_SYS_LIBRARY_PATH
691 OTOOL64
692 OTOOL
693 LIPO
694 NMEDIT
695 DSYMUTIL
696 MANIFEST_TOOL
697 FILECMD
698 LN_S
699 NM
700 ac_ct_DUMPBIN
701 DUMPBIN
702 LD
703 FGREP
704 EGREP
705 GREP
706 SED
707 host_os
708 host_vendor
709 host_cpu
710 host
711 build_os
712 build_vendor
713 build_cpu
714 build
715 LIBTOOL
716 OBJDUMP
717 DLLTOOL
718 AS
719 ac_ct_AR
720 AR
721 WARNING_CXXFLAGS
722 WARNING_CFLAGS
723 am__fastdepCC_FALSE
724 am__fastdepCC_TRUE
725 CCDEPMODE
726 ac_ct_CC
727 CFLAGS
728 CC
729 MAINT
730 MAINTAINER_MODE_FALSE
731 MAINTAINER_MODE_TRUE
732 am__xargs_n
733 am__rm_f_notfound
734 AM_BACKSLASH
735 AM_DEFAULT_VERBOSITY
736 AM_DEFAULT_V
737 AM_V
738 CSCOPE
739 ETAGS
740 CTAGS
741 am__fastdepCXX_FALSE
742 am__fastdepCXX_TRUE
743 CXXDEPMODE
744 am__nodep
745 AMDEPBACKSLASH
746 AMDEP_FALSE
747 AMDEP_TRUE
748 am__include
749 DEPDIR
750 am__untar
751 am__tar
752 AMTAR
753 am__leading_dot
754 SET_MAKE
755 AWK
756 mkdir_p
757 MKDIR_P
758 INSTALL_STRIP_PROGRAM
759 STRIP
760 install_sh
761 MAKEINFO
762 AUTOHEADER
763 AUTOMAKE
764 AUTOCONF
765 ACLOCAL
766 VERSION
767 PACKAGE
768 CYGPATH_W
769 am__isrc
770 INSTALL_DATA
771 INSTALL_SCRIPT
772 INSTALL_PROGRAM
773 RANLIB
774 OBJEXT
775 EXEEXT
776 ac_ct_CXX
777 CPPFLAGS
778 LDFLAGS
779 CXXFLAGS
780 CXX
781 target_alias
782 host_alias
783 build_alias
784 LIBS
785 ECHO_T
786 ECHO_N
787 ECHO_C
788 DEFS
789 mandir
790 localedir
791 libdir
792 psdir
793 pdfdir
794 dvidir
795 htmldir
796 infodir
797 docdir
798 oldincludedir
799 includedir
800 runstatedir
801 localstatedir
802 sharedstatedir
803 sysconfdir
804 datadir
805 datarootdir
806 libexecdir
807 sbindir
808 bindir
809 program_transform_name
810 prefix
811 exec_prefix
812 PACKAGE_URL
813 PACKAGE_BUGREPORT
814 PACKAGE_STRING
815 PACKAGE_VERSION
816 PACKAGE_TARNAME
817 PACKAGE_NAME
818 PATH_SEPARATOR
819 SHELL
820 am__quote'
821 ac_subst_files=''
822 ac_user_opts='
823 enable_option_checking
824 enable_dependency_tracking
825 enable_silent_rules
826 enable_maintainer_mode
827 enable_compiler_warnings
828 enable_shared
829 enable_static
830 enable_pic
831 with_pic
832 enable_fast_install
833 enable_aix_soname
834 with_aix_soname
835 with_gnu_ld
836 with_sysroot
837 enable_libtool_lock
838 enable_largefile
839 with_system_kpathsea
840 with_system_zlib
841 with_zlib_includes
842 with_zlib_libdir
843 with_system_libpng
844 with_system_freetype2
845 enable_year2038
846 '
847 ac_precious_vars='build_alias
848 host_alias
849 target_alias
850 CXX
851 CXXFLAGS
852 LDFLAGS
853 LIBS
854 CPPFLAGS
855 CCC
856 CC
857 CFLAGS
858 LT_SYS_LIBRARY_PATH
859 CXXCPP'
860 ac_subdirs_all='squeeze'
861
862 # Initialize some variables set by options.
863 ac_init_help=
864 ac_init_version=false
865 ac_unrecognized_opts=
866 ac_unrecognized_sep=
867 # The variables have the same names as the options, with
868 # dashes changed to underlines.
869 cache_file=/dev/null
870 exec_prefix=NONE
871 no_create=
872 no_recursion=
873 prefix=NONE
874 program_prefix=NONE
875 program_suffix=NONE
876 program_transform_name=s,x,x,
877 silent=
878 site=
879 srcdir=
880 verbose=
881 x_includes=NONE
882 x_libraries=NONE
883
884 # Installation directory options.
885 # These are left unexpanded so users can "make install exec_prefix=/foo"
886 # and all the variables that are supposed to be based on exec_prefix
887 # by default will actually change.
888 # Use braces instead of parens because sh, perl, etc. also accept them.
889 # (The list follows the same order as the GNU Coding Standards.)
890 bindir='${exec_prefix}/bin'
891 sbindir='${exec_prefix}/sbin'
892 libexecdir='${exec_prefix}/libexec'
893 datarootdir='${prefix}/share'
894 datadir='${datarootdir}'
895 sysconfdir='${prefix}/etc'
896 sharedstatedir='${prefix}/com'
897 localstatedir='${prefix}/var'
898 runstatedir='${localstatedir}/run'
899 includedir='${prefix}/include'
900 oldincludedir='/usr/include'
901 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
902 infodir='${datarootdir}/info'
903 htmldir='${docdir}'
904 dvidir='${docdir}'
905 pdfdir='${docdir}'
906 psdir='${docdir}'
907 libdir='${exec_prefix}/lib'
908 localedir='${datarootdir}/locale'
909 mandir='${datarootdir}/man'
910
911 ac_prev=
912 ac_dashdash=
913 for ac_option
914 do
915 # If the previous option needs an argument, assign it.
916 if test -n "$ac_prev"; then
917 eval $ac_prev=\$ac_option
918 ac_prev=
919 continue
920 fi
921
922 case $ac_option in
923 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
924 *=) ac_optarg= ;;
925 *) ac_optarg=yes ;;
926 esac
927
928 case $ac_dashdash$ac_option in
929 --)
930 ac_dashdash=yes ;;
931
932 -bindir | --bindir | --bindi | --bind | --bin | --bi)
933 ac_prev=bindir ;;
934 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
935 bindir=$ac_optarg ;;
936
937 -build | --build | --buil | --bui | --bu)
938 ac_prev=build_alias ;;
939 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
940 build_alias=$ac_optarg ;;
941
942 -cache-file | --cache-file | --cache-fil | --cache-fi \
943 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
944 ac_prev=cache_file ;;
945 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
946 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
947 cache_file=$ac_optarg ;;
948
949 --config-cache | -C)
950 cache_file=config.cache ;;
951
952 -datadir | --datadir | --datadi | --datad)
953 ac_prev=datadir ;;
954 -datadir=* | --datadir=* | --datadi=* | --datad=*)
955 datadir=$ac_optarg ;;
956
957 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
958 | --dataroo | --dataro | --datar)
959 ac_prev=datarootdir ;;
960 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
961 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
962 datarootdir=$ac_optarg ;;
963
964 -disable-* | --disable-*)
965 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
966 # Reject names that are not valid shell variable names.
967 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
968 as_fn_error $? "invalid feature name: '$ac_useropt'"
969 ac_useropt_orig=$ac_useropt
970 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
971 case $ac_user_opts in
972 *"
973 "enable_$ac_useropt"
974 "*) ;;
975 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
976 ac_unrecognized_sep=', ';;
977 esac
978 eval enable_$ac_useropt=no ;;
979
980 -docdir | --docdir | --docdi | --doc | --do)
981 ac_prev=docdir ;;
982 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
983 docdir=$ac_optarg ;;
984
985 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
986 ac_prev=dvidir ;;
987 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
988 dvidir=$ac_optarg ;;
989
990 -enable-* | --enable-*)
991 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
992 # Reject names that are not valid shell variable names.
993 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
994 as_fn_error $? "invalid feature name: '$ac_useropt'"
995 ac_useropt_orig=$ac_useropt
996 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
997 case $ac_user_opts in
998 *"
999 "enable_$ac_useropt"
1000 "*) ;;
1001 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1002 ac_unrecognized_sep=', ';;
1003 esac
1004 eval enable_$ac_useropt=\$ac_optarg ;;
1005
1006 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1007 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1008 | --exec | --exe | --ex)
1009 ac_prev=exec_prefix ;;
1010 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1011 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1012 | --exec=* | --exe=* | --ex=*)
1013 exec_prefix=$ac_optarg ;;
1014
1015 -gas | --gas | --ga | --g)
1016 # Obsolete; use --with-gas.
1017 with_gas=yes ;;
1018
1019 -help | --help | --hel | --he | -h)
1020 ac_init_help=long ;;
1021 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1022 ac_init_help=recursive ;;
1023 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1024 ac_init_help=short ;;
1025
1026 -host | --host | --hos | --ho)
1027 ac_prev=host_alias ;;
1028 -host=* | --host=* | --hos=* | --ho=*)
1029 host_alias=$ac_optarg ;;
1030
1031 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1032 ac_prev=htmldir ;;
1033 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1034 | --ht=*)
1035 htmldir=$ac_optarg ;;
1036
1037 -includedir | --includedir | --includedi | --included | --include \
1038 | --includ | --inclu | --incl | --inc)
1039 ac_prev=includedir ;;
1040 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1041 | --includ=* | --inclu=* | --incl=* | --inc=*)
1042 includedir=$ac_optarg ;;
1043
1044 -infodir | --infodir | --infodi | --infod | --info | --inf)
1045 ac_prev=infodir ;;
1046 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1047 infodir=$ac_optarg ;;
1048
1049 -libdir | --libdir | --libdi | --libd)
1050 ac_prev=libdir ;;
1051 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1052 libdir=$ac_optarg ;;
1053
1054 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1055 | --libexe | --libex | --libe)
1056 ac_prev=libexecdir ;;
1057 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1058 | --libexe=* | --libex=* | --libe=*)
1059 libexecdir=$ac_optarg ;;
1060
1061 -localedir | --localedir | --localedi | --localed | --locale)
1062 ac_prev=localedir ;;
1063 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1064 localedir=$ac_optarg ;;
1065
1066 -localstatedir | --localstatedir | --localstatedi | --localstated \
1067 | --localstate | --localstat | --localsta | --localst | --locals)
1068 ac_prev=localstatedir ;;
1069 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1070 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1071 localstatedir=$ac_optarg ;;
1072
1073 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1074 ac_prev=mandir ;;
1075 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1076 mandir=$ac_optarg ;;
1077
1078 -nfp | --nfp | --nf)
1079 # Obsolete; use --without-fp.
1080 with_fp=no ;;
1081
1082 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1083 | --no-cr | --no-c | -n)
1084 no_create=yes ;;
1085
1086 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1087 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1088 no_recursion=yes ;;
1089
1090 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1091 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1092 | --oldin | --oldi | --old | --ol | --o)
1093 ac_prev=oldincludedir ;;
1094 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1095 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1096 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1097 oldincludedir=$ac_optarg ;;
1098
1099 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1100 ac_prev=prefix ;;
1101 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1102 prefix=$ac_optarg ;;
1103
1104 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1105 | --program-pre | --program-pr | --program-p)
1106 ac_prev=program_prefix ;;
1107 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1108 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1109 program_prefix=$ac_optarg ;;
1110
1111 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1112 | --program-suf | --program-su | --program-s)
1113 ac_prev=program_suffix ;;
1114 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1115 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1116 program_suffix=$ac_optarg ;;
1117
1118 -program-transform-name | --program-transform-name \
1119 | --program-transform-nam | --program-transform-na \
1120 | --program-transform-n | --program-transform- \
1121 | --program-transform | --program-transfor \
1122 | --program-transfo | --program-transf \
1123 | --program-trans | --program-tran \
1124 | --progr-tra | --program-tr | --program-t)
1125 ac_prev=program_transform_name ;;
1126 -program-transform-name=* | --program-transform-name=* \
1127 | --program-transform-nam=* | --program-transform-na=* \
1128 | --program-transform-n=* | --program-transform-=* \
1129 | --program-transform=* | --program-transfor=* \
1130 | --program-transfo=* | --program-transf=* \
1131 | --program-trans=* | --program-tran=* \
1132 | --progr-tra=* | --program-tr=* | --program-t=*)
1133 program_transform_name=$ac_optarg ;;
1134
1135 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1136 ac_prev=pdfdir ;;
1137 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1138 pdfdir=$ac_optarg ;;
1139
1140 -psdir | --psdir | --psdi | --psd | --ps)
1141 ac_prev=psdir ;;
1142 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1143 psdir=$ac_optarg ;;
1144
1145 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1146 | -silent | --silent | --silen | --sile | --sil)
1147 silent=yes ;;
1148
1149 -runstatedir | --runstatedir | --runstatedi | --runstated \
1150 | --runstate | --runstat | --runsta | --runst | --runs \
1151 | --run | --ru | --r)
1152 ac_prev=runstatedir ;;
1153 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1154 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1155 | --run=* | --ru=* | --r=*)
1156 runstatedir=$ac_optarg ;;
1157
1158 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1159 ac_prev=sbindir ;;
1160 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1161 | --sbi=* | --sb=*)
1162 sbindir=$ac_optarg ;;
1163
1164 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1165 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1166 | --sharedst | --shareds | --shared | --share | --shar \
1167 | --sha | --sh)
1168 ac_prev=sharedstatedir ;;
1169 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1170 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1171 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1172 | --sha=* | --sh=*)
1173 sharedstatedir=$ac_optarg ;;
1174
1175 -site | --site | --sit)
1176 ac_prev=site ;;
1177 -site=* | --site=* | --sit=*)
1178 site=$ac_optarg ;;
1179
1180 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1181 ac_prev=srcdir ;;
1182 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1183 srcdir=$ac_optarg ;;
1184
1185 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1186 | --syscon | --sysco | --sysc | --sys | --sy)
1187 ac_prev=sysconfdir ;;
1188 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1189 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1190 sysconfdir=$ac_optarg ;;
1191
1192 -target | --target | --targe | --targ | --tar | --ta | --t)
1193 ac_prev=target_alias ;;
1194 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1195 target_alias=$ac_optarg ;;
1196
1197 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1198 verbose=yes ;;
1199
1200 -version | --version | --versio | --versi | --vers | -V)
1201 ac_init_version=: ;;
1202
1203 -with-* | --with-*)
1204 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1205 # Reject names that are not valid shell variable names.
1206 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1207 as_fn_error $? "invalid package name: '$ac_useropt'"
1208 ac_useropt_orig=$ac_useropt
1209 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1210 case $ac_user_opts in
1211 *"
1212 "with_$ac_useropt"
1213 "*) ;;
1214 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1215 ac_unrecognized_sep=', ';;
1216 esac
1217 eval with_$ac_useropt=\$ac_optarg ;;
1218
1219 -without-* | --without-*)
1220 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1221 # Reject names that are not valid shell variable names.
1222 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1223 as_fn_error $? "invalid package name: '$ac_useropt'"
1224 ac_useropt_orig=$ac_useropt
1225 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1226 case $ac_user_opts in
1227 *"
1228 "with_$ac_useropt"
1229 "*) ;;
1230 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1231 ac_unrecognized_sep=', ';;
1232 esac
1233 eval with_$ac_useropt=no ;;
1234
1235 --x)
1236 # Obsolete; use --with-x.
1237 with_x=yes ;;
1238
1239 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1240 | --x-incl | --x-inc | --x-in | --x-i)
1241 ac_prev=x_includes ;;
1242 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1243 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1244 x_includes=$ac_optarg ;;
1245
1246 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1247 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1248 ac_prev=x_libraries ;;
1249 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1250 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1251 x_libraries=$ac_optarg ;;
1252
1253 -*) as_fn_error $? "unrecognized option: '$ac_option'
1254 Try '$0 --help' for more information"
1255 ;;
1256
1257 *=*)
1258 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1259 # Reject names that are not valid shell variable names.
1260 case $ac_envvar in #(
1261 '' | [0-9]* | *[!_$as_cr_alnum]* )
1262 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1263 esac
1264 eval $ac_envvar=\$ac_optarg
1265 export $ac_envvar ;;
1266
1267 *)
1268 # FIXME: should be removed in autoconf 3.0.
1269 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1270 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1271 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1272 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1273 ;;
1274
1275 esac
1276 done
1277
1278 if test -n "$ac_prev"; then
1279 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1280 as_fn_error $? "missing argument to $ac_option"
1281 fi
1282
1283 if test -n "$ac_unrecognized_opts"; then
1284 case $enable_option_checking in
1285 no) ;;
1286 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1287 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1288 esac
1289 fi
1290
1291 # Check all directory arguments for consistency.
1292 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1293 datadir sysconfdir sharedstatedir localstatedir includedir \
1294 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1295 libdir localedir mandir runstatedir
1296 do
1297 eval ac_val=\$$ac_var
1298 # Remove trailing slashes.
1299 case $ac_val in
1300 */ )
1301 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1302 eval $ac_var=\$ac_val;;
1303 esac
1304 # Be sure to have absolute directory names.
1305 case $ac_val in
1306 [\\/$]* | ?:[\\/]* ) continue;;
1307 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1308 esac
1309 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1310 done
1311
1312 # There might be people who depend on the old broken behavior: '$host'
1313 # used to hold the argument of --host etc.
1314 # FIXME: To remove some day.
1315 build=$build_alias
1316 host=$host_alias
1317 target=$target_alias
1318
1319 # FIXME: To remove some day.
1320 if test "x$host_alias" != x; then
1321 if test "x$build_alias" = x; then
1322 cross_compiling=maybe
1323 elif test "x$build_alias" != "x$host_alias"; then
1324 cross_compiling=yes
1325 fi
1326 fi
1327
1328 ac_tool_prefix=
1329 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1330
1331 test "$silent" = yes && exec 6>/dev/null
1332
1333
1334 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1335 ac_ls_di=`ls -di .` &&
1336 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1337 as_fn_error $? "working directory cannot be determined"
1338 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1339 as_fn_error $? "pwd does not report name of working directory"
1340
1341
1342 # Find the source files, if location was not specified.
1343 if test -z "$srcdir"; then
1344 ac_srcdir_defaulted=yes
1345 # Try the directory containing this script, then the parent directory.
1346 ac_confdir=`$as_dirname -- "$as_myself" ||
1347 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1348 X"$as_myself" : 'X\(//\)[^/]' \| \
1349 X"$as_myself" : 'X\(//\)$' \| \
1350 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1351 printf "%s\n" X"$as_myself" |
1352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1353 s//\1/
1354 q
1355 }
1356 /^X\(\/\/\)[^/].*/{
1357 s//\1/
1358 q
1359 }
1360 /^X\(\/\/\)$/{
1361 s//\1/
1362 q
1363 }
1364 /^X\(\/\).*/{
1365 s//\1/
1366 q
1367 }
1368 s/.*/./; q'`
1369 srcdir=$ac_confdir
1370 if test ! -r "$srcdir/$ac_unique_file"; then
1371 srcdir=..
1372 fi
1373 else
1374 ac_srcdir_defaulted=no
1375 fi
1376 if test ! -r "$srcdir/$ac_unique_file"; then
1377 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1378 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1379 fi
1380 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1381 ac_abs_confdir=`(
1382 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1383 pwd)`
1384 # When building in place, set srcdir=.
1385 if test "$ac_abs_confdir" = "$ac_pwd"; then
1386 srcdir=.
1387 fi
1388 # Remove unnecessary trailing slashes from srcdir.
1389 # Double slashes in file names in object file debugging info
1390 # mess up M-x gdb in Emacs.
1391 case $srcdir in
1392 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1393 esac
1394 for ac_var in $ac_precious_vars; do
1395 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1396 eval ac_env_${ac_var}_value=\$${ac_var}
1397 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1398 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1399 done
1400
1401 #
1402 # Report the --help message.
1403 #
1404 if test "$ac_init_help" = "long"; then
1405 # Omit some internal or obsolete options to make the list less imposing.
1406 # This message is too long to be a string in the A/UX 3.1 sh.
1407 cat <<_ACEOF
1408 'configure' configures xdvipsk (TeX Live) 2026.1 to adapt to many kinds of systems.
1409
1410 Usage: $0 [OPTION]... [VAR=VALUE]...
1411
1412 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1413 VAR=VALUE. See below for descriptions of some of the useful variables.
1414
1415 Defaults for the options are specified in brackets.
1416
1417 Configuration:
1418 -h, --help display this help and exit
1419 --help=short display options specific to this package
1420 --help=recursive display the short help of all the included packages
1421 -V, --version display version information and exit
1422 -q, --quiet, --silent do not print 'checking ...' messages
1423 --cache-file=FILE cache test results in FILE [disabled]
1424 -C, --config-cache alias for '--cache-file=config.cache'
1425 -n, --no-create do not create output files
1426 --srcdir=DIR find the sources in DIR [configure dir or '..']
1427
1428 Installation directories:
1429 --prefix=PREFIX install architecture-independent files in PREFIX
1430 [$ac_default_prefix]
1431 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1432 [PREFIX]
1433
1434 By default, 'make install' will install all the files in
1435 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1436 an installation prefix other than '$ac_default_prefix' using '--prefix',
1437 for instance '--prefix=\$HOME'.
1438
1439 For better control, use the options below.
1440
1441 Fine tuning of the installation directories:
1442 --bindir=DIR user executables [EPREFIX/bin]
1443 --sbindir=DIR system admin executables [EPREFIX/sbin]
1444 --libexecdir=DIR program executables [EPREFIX/libexec]
1445 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1446 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1447 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1448 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1449 --libdir=DIR object code libraries [EPREFIX/lib]
1450 --includedir=DIR C header files [PREFIX/include]
1451 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1452 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1453 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1454 --infodir=DIR info documentation [DATAROOTDIR/info]
1455 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1456 --mandir=DIR man documentation [DATAROOTDIR/man]
1457 --docdir=DIR documentation root
1458 [DATAROOTDIR/doc/xdvipsk--tex-live-]
1459 --htmldir=DIR html documentation [DOCDIR]
1460 --dvidir=DIR dvi documentation [DOCDIR]
1461 --pdfdir=DIR pdf documentation [DOCDIR]
1462 --psdir=DIR ps documentation [DOCDIR]
1463 _ACEOF
1464
1465 cat <<\_ACEOF
1466
1467 Program names:
1468 --program-prefix=PREFIX prepend PREFIX to installed program names
1469 --program-suffix=SUFFIX append SUFFIX to installed program names
1470 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1471
1472 System types:
1473 --build=BUILD configure for building on BUILD [guessed]
1474 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1475 _ACEOF
1476 fi
1477
1478 if test -n "$ac_init_help"; then
1479 case $ac_init_help in
1480 short | recursive ) echo "Configuration of xdvipsk (TeX Live) 2026.1:";;
1481 esac
1482 cat <<\_ACEOF
1483
1484 Optional Features:
1485 --disable-option-checking ignore unrecognized --enable/--with options
1486 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1487 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1488 --enable-dependency-tracking
1489 do not reject slow dependency extractors
1490 --disable-dependency-tracking
1491 speeds up one-time build
1492 --enable-silent-rules less verbose build output (undo: "make V=1")
1493 --disable-silent-rules verbose build output (undo: "make V=0")
1494 --enable-maintainer-mode
1495 enable make rules and dependencies not useful (and
1496 sometimes confusing) to the casual installer
1497 --enable-compiler-warnings=[no|min|yes|max|all]
1498 Turn on compiler warnings [default: yes if
1499 maintainer-mode, min otherwise]
1500 --enable-shared[=PKGS] build shared libraries [default=yes]
1501 --enable-static[=PKGS] build static libraries [default=yes]
1502 --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1503 both]
1504 --enable-fast-install[=PKGS]
1505 optimize for fast installation [default=yes]
1506 --enable-aix-soname=aix|svr4|both
1507 shared library versioning (aka "SONAME") variant to
1508 provide on AIX, [default=aix].
1509 --disable-libtool-lock avoid locking (might break parallel builds)
1510 --disable-largefile omit support for large files
1511 --enable-year2038 support timestamps after 2038
1512
1513 Optional Packages:
1514 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1515 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1516 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1517 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1518 compiler's sysroot if not specified).
1519 --with-system-kpathsea use installed kpathsea headers and library (requires
1520 pkg-config)
1521 --with-system-zlib use installed zlib headers and library
1522 --with-zlib-includes=DIR
1523 zlib headers installed in DIR
1524 --with-zlib-libdir=DIR zlib library installed in DIR
1525 --with-system-libpng use installed libpng headers and library (requires
1526 pkg-config)
1527 --with-system-freetype2 use installed freetype2 headers and library
1528 (requires freetype-config)
1529
1530 Some influential environment variables:
1531 CXX C++ compiler command
1532 CXXFLAGS C++ compiler flags
1533 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1534 nonstandard directory <lib dir>
1535 LIBS libraries to pass to the linker, e.g. -l<library>
1536 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1537 you have headers in a nonstandard directory <include dir>
1538 CC C compiler command
1539 CFLAGS C compiler flags
1540 LT_SYS_LIBRARY_PATH
1541 User-defined run-time library search path.
1542 CXXCPP C++ preprocessor
1543
1544 Use these variables to override the choices made by 'configure' or to help
1545 it to find libraries and programs with nonstandard names/locations.
1546
1547 Report bugs to <[email protected]>.
1548 _ACEOF
1549 ac_status=$?
1550 fi
1551
1552 if test "$ac_init_help" = "recursive"; then
1553 # If there are subdirs, report their specific --help.
1554 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1555 test -d "$ac_dir" ||
1556 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1557 continue
1558 ac_builddir=.
1559
1560 case "$ac_dir" in
1561 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1562 *)
1563 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1564 # A ".." for each directory in $ac_dir_suffix.
1565 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1566 case $ac_top_builddir_sub in
1567 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1568 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1569 esac ;;
1570 esac
1571 ac_abs_top_builddir=$ac_pwd
1572 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1573 # for backward compatibility:
1574 ac_top_builddir=$ac_top_build_prefix
1575
1576 case $srcdir in
1577 .) # We are building in place.
1578 ac_srcdir=.
1579 ac_top_srcdir=$ac_top_builddir_sub
1580 ac_abs_top_srcdir=$ac_pwd ;;
1581 [\\/]* | ?:[\\/]* ) # Absolute name.
1582 ac_srcdir=$srcdir$ac_dir_suffix;
1583 ac_top_srcdir=$srcdir
1584 ac_abs_top_srcdir=$srcdir ;;
1585 *) # Relative name.
1586 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1587 ac_top_srcdir=$ac_top_build_prefix$srcdir
1588 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1589 esac
1590 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1591
1592 cd "$ac_dir" || { ac_status=$?; continue; }
1593 # Check for configure.gnu first; this name is used for a wrapper for
1594 # Metaconfig's "Configure" on case-insensitive file systems.
1595 if test -f "$ac_srcdir/configure.gnu"; then
1596 echo &&
1597 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1598 elif test -f "$ac_srcdir/configure"; then
1599 echo &&
1600 $SHELL "$ac_srcdir/configure" --help=recursive
1601 else
1602 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1603 fi || ac_status=$?
1604 cd "$ac_pwd" || { ac_status=$?; break; }
1605 done
1606 fi
1607
1608 test -n "$ac_init_help" && exit $ac_status
1609 if $ac_init_version; then
1610 cat <<\_ACEOF
1611 xdvipsk (TeX Live) configure 2026.1
1612 generated by GNU Autoconf 2.72
1613
1614 Copyright (C) 2023 Free Software Foundation, Inc.
1615 This configure script is free software; the Free Software Foundation
1616 gives unlimited permission to copy, distribute and modify it.
1617 _ACEOF
1618 exit
1619 fi
1620
1621 ## ------------------------ ##
1622 ## Autoconf initialization. ##
1623 ## ------------------------ ##
1624
1625 # ac_fn_cxx_try_compile LINENO
1626 # ----------------------------
1627 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1628 ac_fn_cxx_try_compile ()
1629 {
1630 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1631 rm -f conftest.$ac_objext conftest.beam
1632 if { { ac_try="$ac_compile"
1633 case "(($ac_try" in
1634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1635 *) ac_try_echo=$ac_try;;
1636 esac
1637 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1638 printf "%s\n" "$ac_try_echo"; } >&5
1639 (eval "$ac_compile") 2>conftest.err
1640 ac_status=$?
1641 if test -s conftest.err; then
1642 grep -v '^ *+' conftest.err >conftest.er1
1643 cat conftest.er1 >&5
1644 mv -f conftest.er1 conftest.err
1645 fi
1646 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1647 test $ac_status = 0; } && {
1648 test -z "$ac_cxx_werror_flag" ||
1649 test ! -s conftest.err
1650 } && test -s conftest.$ac_objext
1651 then :
1652 ac_retval=0
1653 else case e in #(
1654 e) printf "%s\n" "$as_me: failed program was:" >&5
1655 sed 's/^/| /' conftest.$ac_ext >&5
1656
1657 ac_retval=1 ;;
1658 esac
1659 fi
1660 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1661 as_fn_set_status $ac_retval
1662
1663 } # ac_fn_cxx_try_compile
1664
1665 # ac_fn_c_try_compile LINENO
1666 # --------------------------
1667 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1668 ac_fn_c_try_compile ()
1669 {
1670 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1671 rm -f conftest.$ac_objext conftest.beam
1672 if { { ac_try="$ac_compile"
1673 case "(($ac_try" in
1674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1675 *) ac_try_echo=$ac_try;;
1676 esac
1677 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1678 printf "%s\n" "$ac_try_echo"; } >&5
1679 (eval "$ac_compile") 2>conftest.err
1680 ac_status=$?
1681 if test -s conftest.err; then
1682 grep -v '^ *+' conftest.err >conftest.er1
1683 cat conftest.er1 >&5
1684 mv -f conftest.er1 conftest.err
1685 fi
1686 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1687 test $ac_status = 0; } && {
1688 test -z "$ac_c_werror_flag" ||
1689 test ! -s conftest.err
1690 } && test -s conftest.$ac_objext
1691 then :
1692 ac_retval=0
1693 else case e in #(
1694 e) printf "%s\n" "$as_me: failed program was:" >&5
1695 sed 's/^/| /' conftest.$ac_ext >&5
1696
1697 ac_retval=1 ;;
1698 esac
1699 fi
1700 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1701 as_fn_set_status $ac_retval
1702
1703 } # ac_fn_c_try_compile
1704
1705 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1706 # -------------------------------------------------------
1707 # Tests whether HEADER exists and can be compiled using the include files in
1708 # INCLUDES, setting the cache variable VAR accordingly.
1709 ac_fn_c_check_header_compile ()
1710 {
1711 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1713 printf %s "checking for $2... " >&6; }
1714 if eval test \${$3+y}
1715 then :
1716 printf %s "(cached) " >&6
1717 else case e in #(
1718 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1719 /* end confdefs.h. */
1720 $4
1721 #include <$2>
1722 _ACEOF
1723 if ac_fn_c_try_compile "$LINENO"
1724 then :
1725 eval "$3=yes"
1726 else case e in #(
1727 e) eval "$3=no" ;;
1728 esac
1729 fi
1730 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1731 esac
1732 fi
1733 eval ac_res=\$$3
1734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1735 printf "%s\n" "$ac_res" >&6; }
1736 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1737
1738 } # ac_fn_c_check_header_compile
1739
1740 # ac_fn_c_try_link LINENO
1741 # -----------------------
1742 # Try to link conftest.$ac_ext, and return whether this succeeded.
1743 ac_fn_c_try_link ()
1744 {
1745 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1746 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1747 if { { ac_try="$ac_link"
1748 case "(($ac_try" in
1749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1750 *) ac_try_echo=$ac_try;;
1751 esac
1752 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1753 printf "%s\n" "$ac_try_echo"; } >&5
1754 (eval "$ac_link") 2>conftest.err
1755 ac_status=$?
1756 if test -s conftest.err; then
1757 grep -v '^ *+' conftest.err >conftest.er1
1758 cat conftest.er1 >&5
1759 mv -f conftest.er1 conftest.err
1760 fi
1761 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1762 test $ac_status = 0; } && {
1763 test -z "$ac_c_werror_flag" ||
1764 test ! -s conftest.err
1765 } && test -s conftest$ac_exeext && {
1766 test "$cross_compiling" = yes ||
1767 test -x conftest$ac_exeext
1768 }
1769 then :
1770 ac_retval=0
1771 else case e in #(
1772 e) printf "%s\n" "$as_me: failed program was:" >&5
1773 sed 's/^/| /' conftest.$ac_ext >&5
1774
1775 ac_retval=1 ;;
1776 esac
1777 fi
1778 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1779 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1780 # interfere with the next link command; also delete a directory that is
1781 # left behind by Apple's compiler. We do this before executing the actions.
1782 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1783 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1784 as_fn_set_status $ac_retval
1785
1786 } # ac_fn_c_try_link
1787
1788 # ac_fn_c_check_func LINENO FUNC VAR
1789 # ----------------------------------
1790 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1791 ac_fn_c_check_func ()
1792 {
1793 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1795 printf %s "checking for $2... " >&6; }
1796 if eval test \${$3+y}
1797 then :
1798 printf %s "(cached) " >&6
1799 else case e in #(
1800 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1801 /* end confdefs.h. */
1802 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1803 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1804 #define $2 innocuous_$2
1805
1806 /* System header to define __stub macros and hopefully few prototypes,
1807 which can conflict with char $2 (void); below. */
1808
1809 #include <limits.h>
1810 #undef $2
1811
1812 /* Override any GCC internal prototype to avoid an error.
1813 Use char because int might match the return type of a GCC
1814 builtin and then its argument prototype would still apply. */
1815 #ifdef __cplusplus
1816 extern "C"
1817 #endif
1818 char $2 (void);
1819 /* The GNU C library defines this for functions which it implements
1820 to always fail with ENOSYS. Some functions are actually named
1821 something starting with __ and the normal name is an alias. */
1822 #if defined __stub_$2 || defined __stub___$2
1823 choke me
1824 #endif
1825
1826 int
1827 main (void)
1828 {
1829 return $2 ();
1830 ;
1831 return 0;
1832 }
1833 _ACEOF
1834 if ac_fn_c_try_link "$LINENO"
1835 then :
1836 eval "$3=yes"
1837 else case e in #(
1838 e) eval "$3=no" ;;
1839 esac
1840 fi
1841 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1842 conftest$ac_exeext conftest.$ac_ext ;;
1843 esac
1844 fi
1845 eval ac_res=\$$3
1846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1847 printf "%s\n" "$ac_res" >&6; }
1848 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1849
1850 } # ac_fn_c_check_func
1851
1852 # ac_fn_cxx_try_cpp LINENO
1853 # ------------------------
1854 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1855 ac_fn_cxx_try_cpp ()
1856 {
1857 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1858 if { { ac_try="$ac_cpp conftest.$ac_ext"
1859 case "(($ac_try" in
1860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1861 *) ac_try_echo=$ac_try;;
1862 esac
1863 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1864 printf "%s\n" "$ac_try_echo"; } >&5
1865 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1866 ac_status=$?
1867 if test -s conftest.err; then
1868 grep -v '^ *+' conftest.err >conftest.er1
1869 cat conftest.er1 >&5
1870 mv -f conftest.er1 conftest.err
1871 fi
1872 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1873 test $ac_status = 0; } > conftest.i && {
1874 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1875 test ! -s conftest.err
1876 }
1877 then :
1878 ac_retval=0
1879 else case e in #(
1880 e) printf "%s\n" "$as_me: failed program was:" >&5
1881 sed 's/^/| /' conftest.$ac_ext >&5
1882
1883 ac_retval=1 ;;
1884 esac
1885 fi
1886 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1887 as_fn_set_status $ac_retval
1888
1889 } # ac_fn_cxx_try_cpp
1890
1891 # ac_fn_cxx_try_link LINENO
1892 # -------------------------
1893 # Try to link conftest.$ac_ext, and return whether this succeeded.
1894 ac_fn_cxx_try_link ()
1895 {
1896 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1897 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1898 if { { ac_try="$ac_link"
1899 case "(($ac_try" in
1900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1901 *) ac_try_echo=$ac_try;;
1902 esac
1903 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1904 printf "%s\n" "$ac_try_echo"; } >&5
1905 (eval "$ac_link") 2>conftest.err
1906 ac_status=$?
1907 if test -s conftest.err; then
1908 grep -v '^ *+' conftest.err >conftest.er1
1909 cat conftest.er1 >&5
1910 mv -f conftest.er1 conftest.err
1911 fi
1912 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1913 test $ac_status = 0; } && {
1914 test -z "$ac_cxx_werror_flag" ||
1915 test ! -s conftest.err
1916 } && test -s conftest$ac_exeext && {
1917 test "$cross_compiling" = yes ||
1918 test -x conftest$ac_exeext
1919 }
1920 then :
1921 ac_retval=0
1922 else case e in #(
1923 e) printf "%s\n" "$as_me: failed program was:" >&5
1924 sed 's/^/| /' conftest.$ac_ext >&5
1925
1926 ac_retval=1 ;;
1927 esac
1928 fi
1929 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1930 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1931 # interfere with the next link command; also delete a directory that is
1932 # left behind by Apple's compiler. We do this before executing the actions.
1933 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1934 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1935 as_fn_set_status $ac_retval
1936
1937 } # ac_fn_cxx_try_link
1938
1939 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1940 # -------------------------------------------
1941 # Tests whether TYPE exists after having included INCLUDES, setting cache
1942 # variable VAR accordingly.
1943 ac_fn_c_check_type ()
1944 {
1945 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1947 printf %s "checking for $2... " >&6; }
1948 if eval test \${$3+y}
1949 then :
1950 printf %s "(cached) " >&6
1951 else case e in #(
1952 e) eval "$3=no"
1953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1954 /* end confdefs.h. */
1955 $4
1956 int
1957 main (void)
1958 {
1959 if (sizeof ($2))
1960 return 0;
1961 ;
1962 return 0;
1963 }
1964 _ACEOF
1965 if ac_fn_c_try_compile "$LINENO"
1966 then :
1967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1968 /* end confdefs.h. */
1969 $4
1970 int
1971 main (void)
1972 {
1973 if (sizeof (($2)))
1974 return 0;
1975 ;
1976 return 0;
1977 }
1978 _ACEOF
1979 if ac_fn_c_try_compile "$LINENO"
1980 then :
1981
1982 else case e in #(
1983 e) eval "$3=yes" ;;
1984 esac
1985 fi
1986 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1987 fi
1988 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1989 esac
1990 fi
1991 eval ac_res=\$$3
1992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1993 printf "%s\n" "$ac_res" >&6; }
1994 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1995
1996 } # ac_fn_c_check_type
1997
1998 # ac_fn_c_find_intX_t LINENO BITS VAR
1999 # -----------------------------------
2000 # Finds a signed integer type with width BITS, setting cache variable VAR
2001 # accordingly.
2002 ac_fn_c_find_intX_t ()
2003 {
2004 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2006 printf %s "checking for int$2_t... " >&6; }
2007 if eval test \${$3+y}
2008 then :
2009 printf %s "(cached) " >&6
2010 else case e in #(
2011 e) eval "$3=no"
2012 # Order is important - never check a type that is potentially smaller
2013 # than half of the expected target width.
2014 for ac_type in int$2_t 'int' 'long int' \
2015 'long long int' 'short int' 'signed char'; do
2016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2017 /* end confdefs.h. */
2018 $ac_includes_default
2019 enum { N = $2 / 2 - 1 };
2020 int
2021 main (void)
2022 {
2023 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2024 test_array [0] = 0;
2025 return test_array [0];
2026
2027 ;
2028 return 0;
2029 }
2030 _ACEOF
2031 if ac_fn_c_try_compile "$LINENO"
2032 then :
2033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2034 /* end confdefs.h. */
2035 $ac_includes_default
2036 enum { N = $2 / 2 - 1 };
2037 int
2038 main (void)
2039 {
2040 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2041 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2042 test_array [0] = 0;
2043 return test_array [0];
2044
2045 ;
2046 return 0;
2047 }
2048 _ACEOF
2049 if ac_fn_c_try_compile "$LINENO"
2050 then :
2051
2052 else case e in #(
2053 e) case $ac_type in #(
2054 int$2_t) :
2055 eval "$3=yes" ;; #(
2056 *) :
2057 eval "$3=\$ac_type" ;;
2058 esac ;;
2059 esac
2060 fi
2061 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2062 fi
2063 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2064 if eval test \"x\$"$3"\" = x"no"
2065 then :
2066
2067 else case e in #(
2068 e) break ;;
2069 esac
2070 fi
2071 done ;;
2072 esac
2073 fi
2074 eval ac_res=\$$3
2075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2076 printf "%s\n" "$ac_res" >&6; }
2077 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2078
2079 } # ac_fn_c_find_intX_t
2080
2081 # ac_fn_c_find_uintX_t LINENO BITS VAR
2082 # ------------------------------------
2083 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2084 # accordingly.
2085 ac_fn_c_find_uintX_t ()
2086 {
2087 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2089 printf %s "checking for uint$2_t... " >&6; }
2090 if eval test \${$3+y}
2091 then :
2092 printf %s "(cached) " >&6
2093 else case e in #(
2094 e) eval "$3=no"
2095 # Order is important - never check a type that is potentially smaller
2096 # than half of the expected target width.
2097 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2098 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2100 /* end confdefs.h. */
2101 $ac_includes_default
2102 int
2103 main (void)
2104 {
2105 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2106 test_array [0] = 0;
2107 return test_array [0];
2108
2109 ;
2110 return 0;
2111 }
2112 _ACEOF
2113 if ac_fn_c_try_compile "$LINENO"
2114 then :
2115 case $ac_type in #(
2116 uint$2_t) :
2117 eval "$3=yes" ;; #(
2118 *) :
2119 eval "$3=\$ac_type" ;;
2120 esac
2121 fi
2122 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2123 if eval test \"x\$"$3"\" = x"no"
2124 then :
2125
2126 else case e in #(
2127 e) break ;;
2128 esac
2129 fi
2130 done ;;
2131 esac
2132 fi
2133 eval ac_res=\$$3
2134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2135 printf "%s\n" "$ac_res" >&6; }
2136 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2137
2138 } # ac_fn_c_find_uintX_t
2139
2140 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2141 # ------------------------------------------------------------------
2142 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2143 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2144 ac_fn_check_decl ()
2145 {
2146 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2147 as_decl_name=`echo $2|sed 's/ *(.*//'`
2148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2149 printf %s "checking whether $as_decl_name is declared... " >&6; }
2150 if eval test \${$3+y}
2151 then :
2152 printf %s "(cached) " >&6
2153 else case e in #(
2154 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2155 eval ac_save_FLAGS=\$$6
2156 as_fn_append $6 " $5"
2157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2158 /* end confdefs.h. */
2159 $4
2160 int
2161 main (void)
2162 {
2163 #ifndef $as_decl_name
2164 #ifdef __cplusplus
2165 (void) $as_decl_use;
2166 #else
2167 (void) $as_decl_name;
2168 #endif
2169 #endif
2170
2171 ;
2172 return 0;
2173 }
2174 _ACEOF
2175 if ac_fn_c_try_compile "$LINENO"
2176 then :
2177 eval "$3=yes"
2178 else case e in #(
2179 e) eval "$3=no" ;;
2180 esac
2181 fi
2182 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2183 eval $6=\$ac_save_FLAGS
2184 ;;
2185 esac
2186 fi
2187 eval ac_res=\$$3
2188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2189 printf "%s\n" "$ac_res" >&6; }
2190 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2191
2192 } # ac_fn_check_decl
2193
2194 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2195 # ----------------------------------------------------
2196 # Tries to find if the field MEMBER exists in type AGGR, after including
2197 # INCLUDES, setting cache variable VAR accordingly.
2198 ac_fn_c_check_member ()
2199 {
2200 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2202 printf %s "checking for $2.$3... " >&6; }
2203 if eval test \${$4+y}
2204 then :
2205 printf %s "(cached) " >&6
2206 else case e in #(
2207 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2208 /* end confdefs.h. */
2209 $5
2210 int
2211 main (void)
2212 {
2213 static $2 ac_aggr;
2214 if (ac_aggr.$3)
2215 return 0;
2216 ;
2217 return 0;
2218 }
2219 _ACEOF
2220 if ac_fn_c_try_compile "$LINENO"
2221 then :
2222 eval "$4=yes"
2223 else case e in #(
2224 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2225 /* end confdefs.h. */
2226 $5
2227 int
2228 main (void)
2229 {
2230 static $2 ac_aggr;
2231 if (sizeof ac_aggr.$3)
2232 return 0;
2233 ;
2234 return 0;
2235 }
2236 _ACEOF
2237 if ac_fn_c_try_compile "$LINENO"
2238 then :
2239 eval "$4=yes"
2240 else case e in #(
2241 e) eval "$4=no" ;;
2242 esac
2243 fi
2244 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2245 esac
2246 fi
2247 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2248 esac
2249 fi
2250 eval ac_res=\$$4
2251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2252 printf "%s\n" "$ac_res" >&6; }
2253 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2254
2255 } # ac_fn_c_check_member
2256
2257 # ac_fn_c_try_run LINENO
2258 # ----------------------
2259 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
2260 # executables *can* be run.
2261 ac_fn_c_try_run ()
2262 {
2263 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2264 if { { ac_try="$ac_link"
2265 case "(($ac_try" in
2266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2267 *) ac_try_echo=$ac_try;;
2268 esac
2269 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2270 printf "%s\n" "$ac_try_echo"; } >&5
2271 (eval "$ac_link") 2>&5
2272 ac_status=$?
2273 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2274 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2275 { { case "(($ac_try" in
2276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2277 *) ac_try_echo=$ac_try;;
2278 esac
2279 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2280 printf "%s\n" "$ac_try_echo"; } >&5
2281 (eval "$ac_try") 2>&5
2282 ac_status=$?
2283 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2284 test $ac_status = 0; }; }
2285 then :
2286 ac_retval=0
2287 else case e in #(
2288 e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2289 printf "%s\n" "$as_me: failed program was:" >&5
2290 sed 's/^/| /' conftest.$ac_ext >&5
2291
2292 ac_retval=$ac_status ;;
2293 esac
2294 fi
2295 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2296 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2297 as_fn_set_status $ac_retval
2298
2299 } # ac_fn_c_try_run
2300
2301 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2302 # --------------------------------------------
2303 # Tries to find the compile-time value of EXPR in a program that includes
2304 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2305 # computed
2306 ac_fn_c_compute_int ()
2307 {
2308 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2309 if test "$cross_compiling" = yes; then
2310 # Depending upon the size, compute the lo and hi bounds.
2311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2312 /* end confdefs.h. */
2313 $4
2314 int
2315 main (void)
2316 {
2317 static int test_array [1 - 2 * !(($2) >= 0)];
2318 test_array [0] = 0;
2319 return test_array [0];
2320
2321 ;
2322 return 0;
2323 }
2324 _ACEOF
2325 if ac_fn_c_try_compile "$LINENO"
2326 then :
2327 ac_lo=0 ac_mid=0
2328 while :; do
2329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2330 /* end confdefs.h. */
2331 $4
2332 int
2333 main (void)
2334 {
2335 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2336 test_array [0] = 0;
2337 return test_array [0];
2338
2339 ;
2340 return 0;
2341 }
2342 _ACEOF
2343 if ac_fn_c_try_compile "$LINENO"
2344 then :
2345 ac_hi=$ac_mid; break
2346 else case e in #(
2347 e) as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2348 if test $ac_lo -le $ac_mid; then
2349 ac_lo= ac_hi=
2350 break
2351 fi
2352 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val ;;
2353 esac
2354 fi
2355 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2356 done
2357 else case e in #(
2358 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2359 /* end confdefs.h. */
2360 $4
2361 int
2362 main (void)
2363 {
2364 static int test_array [1 - 2 * !(($2) < 0)];
2365 test_array [0] = 0;
2366 return test_array [0];
2367
2368 ;
2369 return 0;
2370 }
2371 _ACEOF
2372 if ac_fn_c_try_compile "$LINENO"
2373 then :
2374 ac_hi=-1 ac_mid=-1
2375 while :; do
2376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2377 /* end confdefs.h. */
2378 $4
2379 int
2380 main (void)
2381 {
2382 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2383 test_array [0] = 0;
2384 return test_array [0];
2385
2386 ;
2387 return 0;
2388 }
2389 _ACEOF
2390 if ac_fn_c_try_compile "$LINENO"
2391 then :
2392 ac_lo=$ac_mid; break
2393 else case e in #(
2394 e) as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2395 if test $ac_mid -le $ac_hi; then
2396 ac_lo= ac_hi=
2397 break
2398 fi
2399 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val ;;
2400 esac
2401 fi
2402 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2403 done
2404 else case e in #(
2405 e) ac_lo= ac_hi= ;;
2406 esac
2407 fi
2408 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2409 esac
2410 fi
2411 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2412 # Binary search between lo and hi bounds.
2413 while test "x$ac_lo" != "x$ac_hi"; do
2414 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2416 /* end confdefs.h. */
2417 $4
2418 int
2419 main (void)
2420 {
2421 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2422 test_array [0] = 0;
2423 return test_array [0];
2424
2425 ;
2426 return 0;
2427 }
2428 _ACEOF
2429 if ac_fn_c_try_compile "$LINENO"
2430 then :
2431 ac_hi=$ac_mid
2432 else case e in #(
2433 e) as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val ;;
2434 esac
2435 fi
2436 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2437 done
2438 case $ac_lo in #((
2439 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2440 '') ac_retval=1 ;;
2441 esac
2442 else
2443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2444 /* end confdefs.h. */
2445 $4
2446 static long int longval (void) { return $2; }
2447 static unsigned long int ulongval (void) { return $2; }
2448 #include <stdio.h>
2449 #include <stdlib.h>
2450 int
2451 main (void)
2452 {
2453
2454 FILE *f = fopen ("conftest.val", "w");
2455 if (! f)
2456 return 1;
2457 if (($2) < 0)
2458 {
2459 long int i = longval ();
2460 if (i != ($2))
2461 return 1;
2462 fprintf (f, "%ld", i);
2463 }
2464 else
2465 {
2466 unsigned long int i = ulongval ();
2467 if (i != ($2))
2468 return 1;
2469 fprintf (f, "%lu", i);
2470 }
2471 /* Do not output a trailing newline, as this causes \r\n confusion
2472 on some platforms. */
2473 return ferror (f) || fclose (f) != 0;
2474
2475 ;
2476 return 0;
2477 }
2478 _ACEOF
2479 if ac_fn_c_try_run "$LINENO"
2480 then :
2481 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2482 else case e in #(
2483 e) ac_retval=1 ;;
2484 esac
2485 fi
2486 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2487 conftest.$ac_objext conftest.beam conftest.$ac_ext
2488 rm -f conftest.val
2489
2490 fi
2491 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2492 as_fn_set_status $ac_retval
2493
2494 } # ac_fn_c_compute_int
2495 ac_configure_args_raw=
2496 for ac_arg
2497 do
2498 case $ac_arg in
2499 *\'*)
2500 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2501 esac
2502 as_fn_append ac_configure_args_raw " '$ac_arg'"
2503 done
2504
2505 case $ac_configure_args_raw in
2506 *$as_nl*)
2507 ac_safe_unquote= ;;
2508 *)
2509 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2510 ac_unsafe_a="$ac_unsafe_z#~"
2511 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2512 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2513 esac
2514
2515 cat >config.log <<_ACEOF
2516 This file contains any messages produced by compilers while
2517 running configure, to aid debugging if configure makes a mistake.
2518
2519 It was created by xdvipsk (TeX Live) $as_me 2026.1, which was
2520 generated by GNU Autoconf 2.72. Invocation command line was
2521
2522 $ $0$ac_configure_args_raw
2523
2524 _ACEOF
2525 exec 5>>config.log
2526 {
2527 cat <<_ASUNAME
2528 ## --------- ##
2529 ## Platform. ##
2530 ## --------- ##
2531
2532 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2533 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2534 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2535 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2536 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2537
2538 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2539 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2540
2541 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2542 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2543 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2544 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2545 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2546 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2547 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2548
2549 _ASUNAME
2550
2551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2552 for as_dir in $PATH
2553 do
2554 IFS=$as_save_IFS
2555 case $as_dir in #(((
2556 '') as_dir=./ ;;
2557 */) ;;
2558 *) as_dir=$as_dir/ ;;
2559 esac
2560 printf "%s\n" "PATH: $as_dir"
2561 done
2562 IFS=$as_save_IFS
2563
2564 } >&5
2565
2566 cat >&5 <<_ACEOF
2567
2568
2569 ## ----------- ##
2570 ## Core tests. ##
2571 ## ----------- ##
2572
2573 _ACEOF
2574
2575
2576 # Keep a trace of the command line.
2577 # Strip out --no-create and --no-recursion so they do not pile up.
2578 # Strip out --silent because we don't want to record it for future runs.
2579 # Also quote any args containing shell meta-characters.
2580 # Make two passes to allow for proper duplicate-argument suppression.
2581 ac_configure_args=
2582 ac_configure_args0=
2583 ac_configure_args1=
2584 ac_must_keep_next=false
2585 for ac_pass in 1 2
2586 do
2587 for ac_arg
2588 do
2589 case $ac_arg in
2590 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2591 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2592 | -silent | --silent | --silen | --sile | --sil)
2593 continue ;;
2594 *\'*)
2595 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2596 esac
2597 case $ac_pass in
2598 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2599 2)
2600 as_fn_append ac_configure_args1 " '$ac_arg'"
2601 if test $ac_must_keep_next = true; then
2602 ac_must_keep_next=false # Got value, back to normal.
2603 else
2604 case $ac_arg in
2605 *=* | --config-cache | -C | -disable-* | --disable-* \
2606 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2607 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2608 | -with-* | --with-* | -without-* | --without-* | --x)
2609 case "$ac_configure_args0 " in
2610 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2611 esac
2612 ;;
2613 -* ) ac_must_keep_next=true ;;
2614 esac
2615 fi
2616 as_fn_append ac_configure_args " '$ac_arg'"
2617 ;;
2618 esac
2619 done
2620 done
2621 { ac_configure_args0=; unset ac_configure_args0;}
2622 { ac_configure_args1=; unset ac_configure_args1;}
2623
2624 # When interrupted or exit'd, cleanup temporary files, and complete
2625 # config.log. We remove comments because anyway the quotes in there
2626 # would cause problems or look ugly.
2627 # WARNING: Use '\'' to represent an apostrophe within the trap.
2628 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2629 trap 'exit_status=$?
2630 # Sanitize IFS.
2631 IFS=" "" $as_nl"
2632 # Save into config.log some information that might help in debugging.
2633 {
2634 echo
2635
2636 printf "%s\n" "## ---------------- ##
2637 ## Cache variables. ##
2638 ## ---------------- ##"
2639 echo
2640 # The following way of writing the cache mishandles newlines in values,
2641 (
2642 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2643 eval ac_val=\$$ac_var
2644 case $ac_val in #(
2645 *${as_nl}*)
2646 case $ac_var in #(
2647 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2648 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2649 esac
2650 case $ac_var in #(
2651 _ | IFS | as_nl) ;; #(
2652 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2653 *) { eval $ac_var=; unset $ac_var;} ;;
2654 esac ;;
2655 esac
2656 done
2657 (set) 2>&1 |
2658 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2659 *${as_nl}ac_space=\ *)
2660 sed -n \
2661 "s/'\''/'\''\\\\'\'''\''/g;
2662 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2663 ;; #(
2664 *)
2665 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2666 ;;
2667 esac |
2668 sort
2669 )
2670 echo
2671
2672 printf "%s\n" "## ----------------- ##
2673 ## Output variables. ##
2674 ## ----------------- ##"
2675 echo
2676 for ac_var in $ac_subst_vars
2677 do
2678 eval ac_val=\$$ac_var
2679 case $ac_val in
2680 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2681 esac
2682 printf "%s\n" "$ac_var='\''$ac_val'\''"
2683 done | sort
2684 echo
2685
2686 if test -n "$ac_subst_files"; then
2687 printf "%s\n" "## ------------------- ##
2688 ## File substitutions. ##
2689 ## ------------------- ##"
2690 echo
2691 for ac_var in $ac_subst_files
2692 do
2693 eval ac_val=\$$ac_var
2694 case $ac_val in
2695 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2696 esac
2697 printf "%s\n" "$ac_var='\''$ac_val'\''"
2698 done | sort
2699 echo
2700 fi
2701
2702 if test -s confdefs.h; then
2703 printf "%s\n" "## ----------- ##
2704 ## confdefs.h. ##
2705 ## ----------- ##"
2706 echo
2707 cat confdefs.h
2708 echo
2709 fi
2710 test "$ac_signal" != 0 &&
2711 printf "%s\n" "$as_me: caught signal $ac_signal"
2712 printf "%s\n" "$as_me: exit $exit_status"
2713 } >&5
2714 rm -f core *.core core.conftest.* &&
2715 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2716 exit $exit_status
2717 ' 0
2718 for ac_signal in 1 2 13 15; do
2719 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2720 done
2721 ac_signal=0
2722
2723 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2724 rm -f -r conftest* confdefs.h
2725
2726 printf "%s\n" "/* confdefs.h */" > confdefs.h
2727
2728 # Predefined preprocessor variables.
2729
2730 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2731
2732 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2733
2734 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2735
2736 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2737
2738 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2739
2740 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2741
2742
2743 # Let the site file select an alternate cache file if it wants to.
2744 # Prefer an explicitly selected file to automatically selected ones.
2745 if test -n "$CONFIG_SITE"; then
2746 ac_site_files="$CONFIG_SITE"
2747 elif test "x$prefix" != xNONE; then
2748 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2749 else
2750 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2751 fi
2752
2753 for ac_site_file in $ac_site_files
2754 do
2755 case $ac_site_file in #(
2756 */*) :
2757 ;; #(
2758 *) :
2759 ac_site_file=./$ac_site_file ;;
2760 esac
2761 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2763 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2764 sed 's/^/| /' "$ac_site_file" >&5
2765 . "$ac_site_file" \
2766 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2767 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2768 as_fn_error $? "failed to load site script $ac_site_file
2769 See 'config.log' for more details" "$LINENO" 5; }
2770 fi
2771 done
2772
2773 if test -r "$cache_file"; then
2774 # Some versions of bash will fail to source /dev/null (special files
2775 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2776 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2778 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2779 case $cache_file in
2780 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2781 *) . "./$cache_file";;
2782 esac
2783 fi
2784 else
2785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2786 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2787 >$cache_file
2788 fi
2789
2790 # Test code for whether the C++ compiler supports C++98 (global declarations)
2791 ac_cxx_conftest_cxx98_globals='
2792 // Does the compiler advertise C++98 conformance?
2793 #if !defined __cplusplus || __cplusplus < 199711L
2794 # error "Compiler does not advertise C++98 conformance"
2795 #endif
2796
2797 // These inclusions are to reject old compilers that
2798 // lack the unsuffixed header files.
2799 #include <cstdlib>
2800 #include <exception>
2801
2802 // <cassert> and <cstring> are *not* freestanding headers in C++98.
2803 extern void assert (int);
2804 namespace std {
2805 extern int strcmp (const char *, const char *);
2806 }
2807
2808 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
2809 using std::exception;
2810 using std::strcmp;
2811
2812 namespace {
2813
2814 void test_exception_syntax()
2815 {
2816 try {
2817 throw "test";
2818 } catch (const char *s) {
2819 // Extra parentheses suppress a warning when building autoconf itself,
2820 // due to lint rules shared with more typical C programs.
2821 assert (!(strcmp) (s, "test"));
2822 }
2823 }
2824
2825 template <typename T> struct test_template
2826 {
2827 T const val;
2828 explicit test_template(T t) : val(t) {}
2829 template <typename U> T add(U u) { return static_cast<T>(u) + val; }
2830 };
2831
2832 } // anonymous namespace
2833 '
2834
2835 # Test code for whether the C++ compiler supports C++98 (body of main)
2836 ac_cxx_conftest_cxx98_main='
2837 assert (argc);
2838 assert (! argv[0]);
2839 {
2840 test_exception_syntax ();
2841 test_template<double> tt (2.0);
2842 assert (tt.add (4) == 6.0);
2843 assert (true && !false);
2844 }
2845 '
2846
2847 # Test code for whether the C++ compiler supports C++11 (global declarations)
2848 ac_cxx_conftest_cxx11_globals='
2849 // Does the compiler advertise C++ 2011 conformance?
2850 #if !defined __cplusplus || __cplusplus < 201103L
2851 # error "Compiler does not advertise C++11 conformance"
2852 #endif
2853
2854 namespace cxx11test
2855 {
2856 constexpr int get_val() { return 20; }
2857
2858 struct testinit
2859 {
2860 int i;
2861 double d;
2862 };
2863
2864 class delegate
2865 {
2866 public:
2867 delegate(int n) : n(n) {}
2868 delegate(): delegate(2354) {}
2869
2870 virtual int getval() { return this->n; };
2871 protected:
2872 int n;
2873 };
2874
2875 class overridden : public delegate
2876 {
2877 public:
2878 overridden(int n): delegate(n) {}
2879 virtual int getval() override final { return this->n * 2; }
2880 };
2881
2882 class nocopy
2883 {
2884 public:
2885 nocopy(int i): i(i) {}
2886 nocopy() = default;
2887 nocopy(const nocopy&) = delete;
2888 nocopy & operator=(const nocopy&) = delete;
2889 private:
2890 int i;
2891 };
2892
2893 // for testing lambda expressions
2894 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
2895 {
2896 return f(v);
2897 }
2898
2899 // for testing variadic templates and trailing return types
2900 template <typename V> auto sum(V first) -> V
2901 {
2902 return first;
2903 }
2904 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
2905 {
2906 return first + sum(rest...);
2907 }
2908 }
2909 '
2910
2911 # Test code for whether the C++ compiler supports C++11 (body of main)
2912 ac_cxx_conftest_cxx11_main='
2913 {
2914 // Test auto and decltype
2915 auto a1 = 6538;
2916 auto a2 = 48573953.4;
2917 auto a3 = "String literal";
2918
2919 int total = 0;
2920 for (auto i = a3; *i; ++i) { total += *i; }
2921
2922 decltype(a2) a4 = 34895.034;
2923 }
2924 {
2925 // Test constexpr
2926 short sa[cxx11test::get_val()] = { 0 };
2927 }
2928 {
2929 // Test initializer lists
2930 cxx11test::testinit il = { 4323, 435234.23544 };
2931 }
2932 {
2933 // Test range-based for
2934 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
2935 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
2936 for (auto &x : array) { x += 23; }
2937 }
2938 {
2939 // Test lambda expressions
2940 using cxx11test::eval;
2941 assert (eval ([](int x) { return x*2; }, 21) == 42);
2942 double d = 2.0;
2943 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
2944 assert (d == 5.0);
2945 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
2946 assert (d == 5.0);
2947 }
2948 {
2949 // Test use of variadic templates
2950 using cxx11test::sum;
2951 auto a = sum(1);
2952 auto b = sum(1, 2);
2953 auto c = sum(1.0, 2.0, 3.0);
2954 }
2955 {
2956 // Test constructor delegation
2957 cxx11test::delegate d1;
2958 cxx11test::delegate d2();
2959 cxx11test::delegate d3(45);
2960 }
2961 {
2962 // Test override and final
2963 cxx11test::overridden o1(55464);
2964 }
2965 {
2966 // Test nullptr
2967 char *c = nullptr;
2968 }
2969 {
2970 // Test template brackets
2971 test_template<::test_template<int>> v(test_template<int>(12));
2972 }
2973 {
2974 // Unicode literals
2975 char const *utf8 = u8"UTF-8 string \u2500";
2976 char16_t const *utf16 = u"UTF-8 string \u2500";
2977 char32_t const *utf32 = U"UTF-32 string \u2500";
2978 }
2979 '
2980
2981 # Test code for whether the C compiler supports C++11 (complete).
2982 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
2983 ${ac_cxx_conftest_cxx11_globals}
2984
2985 int
2986 main (int argc, char **argv)
2987 {
2988 int ok = 0;
2989 ${ac_cxx_conftest_cxx98_main}
2990 ${ac_cxx_conftest_cxx11_main}
2991 return ok;
2992 }
2993 "
2994
2995 # Test code for whether the C compiler supports C++98 (complete).
2996 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
2997 int
2998 main (int argc, char **argv)
2999 {
3000 int ok = 0;
3001 ${ac_cxx_conftest_cxx98_main}
3002 return ok;
3003 }
3004 "
3005
3006 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
3007 # Test code for whether the C compiler supports C89 (global declarations)
3008 ac_c_conftest_c89_globals='
3009 /* Does the compiler advertise C89 conformance?
3010 Do not test the value of __STDC__, because some compilers set it to 0
3011 while being otherwise adequately conformant. */
3012 #if !defined __STDC__
3013 # error "Compiler does not advertise C89 conformance"
3014 #endif
3015
3016 #include <stddef.h>
3017 #include <stdarg.h>
3018 struct stat;
3019 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
3020 struct buf { int x; };
3021 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
3022 static char *e (char **p, int i)
3023 {
3024 return p[i];
3025 }
3026 static char *f (char * (*g) (char **, int), char **p, ...)
3027 {
3028 char *s;
3029 va_list v;
3030 va_start (v,p);
3031 s = g (p, va_arg (v,int));
3032 va_end (v);
3033 return s;
3034 }
3035
3036 /* C89 style stringification. */
3037 #define noexpand_stringify(a) #a
3038 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
3039
3040 /* C89 style token pasting. Exercises some of the corner cases that
3041 e.g. old MSVC gets wrong, but not very hard. */
3042 #define noexpand_concat(a,b) a##b
3043 #define expand_concat(a,b) noexpand_concat(a,b)
3044 extern int vA;
3045 extern int vbee;
3046 #define aye A
3047 #define bee B
3048 int *pvA = &expand_concat(v,aye);
3049 int *pvbee = &noexpand_concat(v,bee);
3050
3051 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3052 function prototypes and stuff, but not \xHH hex character constants.
3053 These do not provoke an error unfortunately, instead are silently treated
3054 as an "x". The following induces an error, until -std is added to get
3055 proper ANSI mode. Curiously \x00 != x always comes out true, for an
3056 array size at least. It is necessary to write \x00 == 0 to get something
3057 that is true only with -std. */
3058 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
3059
3060 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3061 inside strings and character constants. */
3062 #define FOO(x) '\''x'\''
3063 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
3064
3065 int test (int i, double x);
3066 struct s1 {int (*f) (int a);};
3067 struct s2 {int (*f) (double a);};
3068 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
3069 int, int);'
3070
3071 # Test code for whether the C compiler supports C89 (body of main).
3072 ac_c_conftest_c89_main='
3073 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
3074 '
3075
3076 # Test code for whether the C compiler supports C99 (global declarations)
3077 ac_c_conftest_c99_globals='
3078 /* Does the compiler advertise C99 conformance? */
3079 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
3080 # error "Compiler does not advertise C99 conformance"
3081 #endif
3082
3083 // See if C++-style comments work.
3084
3085 #include <stdbool.h>
3086 extern int puts (const char *);
3087 extern int printf (const char *, ...);
3088 extern int dprintf (int, const char *, ...);
3089 extern void *malloc (size_t);
3090 extern void free (void *);
3091
3092 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3093 // dprintf is used instead of fprintf to avoid needing to declare
3094 // FILE and stderr.
3095 #define debug(...) dprintf (2, __VA_ARGS__)
3096 #define showlist(...) puts (#__VA_ARGS__)
3097 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3098 static void
3099 test_varargs_macros (void)
3100 {
3101 int x = 1234;
3102 int y = 5678;
3103 debug ("Flag");
3104 debug ("X = %d\n", x);
3105 showlist (The first, second, and third items.);
3106 report (x>y, "x is %d but y is %d", x, y);
3107 }
3108
3109 // Check long long types.
3110 #define BIG64 18446744073709551615ull
3111 #define BIG32 4294967295ul
3112 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3113 #if !BIG_OK
3114 #error "your preprocessor is broken"
3115 #endif
3116 #if BIG_OK
3117 #else
3118 #error "your preprocessor is broken"
3119 #endif
3120 static long long int bignum = -9223372036854775807LL;
3121 static unsigned long long int ubignum = BIG64;
3122
3123 struct incomplete_array
3124 {
3125 int datasize;
3126 double data[];
3127 };
3128
3129 struct named_init {
3130 int number;
3131 const wchar_t *name;
3132 double average;
3133 };
3134
3135 typedef const char *ccp;
3136
3137 static inline int
3138 test_restrict (ccp restrict text)
3139 {
3140 // Iterate through items via the restricted pointer.
3141 // Also check for declarations in for loops.
3142 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
3143 continue;
3144 return 0;
3145 }
3146
3147 // Check varargs and va_copy.
3148 static bool
3149 test_varargs (const char *format, ...)
3150 {
3151 va_list args;
3152 va_start (args, format);
3153 va_list args_copy;
3154 va_copy (args_copy, args);
3155
3156 const char *str = "";
3157 int number = 0;
3158 float fnumber = 0;
3159
3160 while (*format)
3161 {
3162 switch (*format++)
3163 {
3164 case '\''s'\'': // string
3165 str = va_arg (args_copy, const char *);
3166 break;
3167 case '\''d'\'': // int
3168 number = va_arg (args_copy, int);
3169 break;
3170 case '\''f'\'': // float
3171 fnumber = va_arg (args_copy, double);
3172 break;
3173 default:
3174 break;
3175 }
3176 }
3177 va_end (args_copy);
3178 va_end (args);
3179
3180 return *str && number && fnumber;
3181 }
3182 '
3183
3184 # Test code for whether the C compiler supports C99 (body of main).
3185 ac_c_conftest_c99_main='
3186 // Check bool.
3187 _Bool success = false;
3188 success |= (argc != 0);
3189
3190 // Check restrict.
3191 if (test_restrict ("String literal") == 0)
3192 success = true;
3193 char *restrict newvar = "Another string";
3194
3195 // Check varargs.
3196 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
3197 test_varargs_macros ();
3198
3199 // Check flexible array members.
3200 struct incomplete_array *ia =
3201 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3202 ia->datasize = 10;
3203 for (int i = 0; i < ia->datasize; ++i)
3204 ia->data[i] = i * 1.234;
3205 // Work around memory leak warnings.
3206 free (ia);
3207
3208 // Check named initializers.
3209 struct named_init ni = {
3210 .number = 34,
3211 .name = L"Test wide string",
3212 .average = 543.34343,
3213 };
3214
3215 ni.number = 58;
3216
3217 int dynamic_array[ni.number];
3218 dynamic_array[0] = argv[0][0];
3219 dynamic_array[ni.number - 1] = 543;
3220
3221 // work around unused variable warnings
3222 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
3223 || dynamic_array[ni.number - 1] != 543);
3224 '
3225
3226 # Test code for whether the C compiler supports C11 (global declarations)
3227 ac_c_conftest_c11_globals='
3228 /* Does the compiler advertise C11 conformance? */
3229 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
3230 # error "Compiler does not advertise C11 conformance"
3231 #endif
3232
3233 // Check _Alignas.
3234 char _Alignas (double) aligned_as_double;
3235 char _Alignas (0) no_special_alignment;
3236 extern char aligned_as_int;
3237 char _Alignas (0) _Alignas (int) aligned_as_int;
3238
3239 // Check _Alignof.
3240 enum
3241 {
3242 int_alignment = _Alignof (int),
3243 int_array_alignment = _Alignof (int[100]),
3244 char_alignment = _Alignof (char)
3245 };
3246 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
3247
3248 // Check _Noreturn.
3249 int _Noreturn does_not_return (void) { for (;;) continue; }
3250
3251 // Check _Static_assert.
3252 struct test_static_assert
3253 {
3254 int x;
3255 _Static_assert (sizeof (int) <= sizeof (long int),
3256 "_Static_assert does not work in struct");
3257 long int y;
3258 };
3259
3260 // Check UTF-8 literals.
3261 #define u8 syntax error!
3262 char const utf8_literal[] = u8"happens to be ASCII" "another string";
3263
3264 // Check duplicate typedefs.
3265 typedef long *long_ptr;
3266 typedef long int *long_ptr;
3267 typedef long_ptr long_ptr;
3268
3269 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
3270 struct anonymous
3271 {
3272 union {
3273 struct { int i; int j; };
3274 struct { int k; long int l; } w;
3275 };
3276 int m;
3277 } v1;
3278 '
3279
3280 # Test code for whether the C compiler supports C11 (body of main).
3281 ac_c_conftest_c11_main='
3282 _Static_assert ((offsetof (struct anonymous, i)
3283 == offsetof (struct anonymous, w.k)),
3284 "Anonymous union alignment botch");
3285 v1.i = 2;
3286 v1.w.k = 5;
3287 ok |= v1.i != 5;
3288 '
3289
3290 # Test code for whether the C compiler supports C11 (complete).
3291 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
3292 ${ac_c_conftest_c99_globals}
3293 ${ac_c_conftest_c11_globals}
3294
3295 int
3296 main (int argc, char **argv)
3297 {
3298 int ok = 0;
3299 ${ac_c_conftest_c89_main}
3300 ${ac_c_conftest_c99_main}
3301 ${ac_c_conftest_c11_main}
3302 return ok;
3303 }
3304 "
3305
3306 # Test code for whether the C compiler supports C99 (complete).
3307 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
3308 ${ac_c_conftest_c99_globals}
3309
3310 int
3311 main (int argc, char **argv)
3312 {
3313 int ok = 0;
3314 ${ac_c_conftest_c89_main}
3315 ${ac_c_conftest_c99_main}
3316 return ok;
3317 }
3318 "
3319
3320 # Test code for whether the C compiler supports C89 (complete).
3321 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
3322
3323 int
3324 main (int argc, char **argv)
3325 {
3326 int ok = 0;
3327 ${ac_c_conftest_c89_main}
3328 return ok;
3329 }
3330 "
3331
3332 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
3333 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
3334 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
3335 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
3336 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
3337 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
3338 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
3339 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
3340 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
3341 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
3342
3343 # Auxiliary files required by this configure script.
3344 ac_aux_files="config.guess config.sub ltmain.sh ar-lib compile missing install-sh"
3345
3346 # Locations in which to look for auxiliary files.
3347 ac_aux_dir_candidates="${srcdir}/../../build-aux"
3348
3349 # Search for a directory containing all of the required auxiliary files,
3350 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3351 # If we don't find one directory that contains all the files we need,
3352 # we report the set of missing files from the *first* directory in
3353 # $ac_aux_dir_candidates and give up.
3354 ac_missing_aux_files=""
3355 ac_first_candidate=:
3356 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3358 as_found=false
3359 for as_dir in $ac_aux_dir_candidates
3360 do
3361 IFS=$as_save_IFS
3362 case $as_dir in #(((
3363 '') as_dir=./ ;;
3364 */) ;;
3365 *) as_dir=$as_dir/ ;;
3366 esac
3367 as_found=:
3368
3369 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
3370 ac_aux_dir_found=yes
3371 ac_install_sh=
3372 for ac_aux in $ac_aux_files
3373 do
3374 # As a special case, if "install-sh" is required, that requirement
3375 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3376 # and $ac_install_sh is set appropriately for whichever one is found.
3377 if test x"$ac_aux" = x"install-sh"
3378 then
3379 if test -f "${as_dir}install-sh"; then
3380 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
3381 ac_install_sh="${as_dir}install-sh -c"
3382 elif test -f "${as_dir}install.sh"; then
3383 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
3384 ac_install_sh="${as_dir}install.sh -c"
3385 elif test -f "${as_dir}shtool"; then
3386 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
3387 ac_install_sh="${as_dir}shtool install -c"
3388 else
3389 ac_aux_dir_found=no
3390 if $ac_first_candidate; then
3391 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3392 else
3393 break
3394 fi
3395 fi
3396 else
3397 if test -f "${as_dir}${ac_aux}"; then
3398 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
3399 else
3400 ac_aux_dir_found=no
3401 if $ac_first_candidate; then
3402 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3403 else
3404 break
3405 fi
3406 fi
3407 fi
3408 done
3409 if test "$ac_aux_dir_found" = yes; then
3410 ac_aux_dir="$as_dir"
3411 break
3412 fi
3413 ac_first_candidate=false
3414
3415 as_found=false
3416 done
3417 IFS=$as_save_IFS
3418 if $as_found
3419 then :
3420
3421 else case e in #(
3422 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
3423 esac
3424 fi
3425
3426
3427 # These three variables are undocumented and unsupported,
3428 # and are intended to be withdrawn in a future Autoconf release.
3429 # They can cause serious problems if a builder's source tree is in a directory
3430 # whose full name contains unusual characters.
3431 if test -f "${ac_aux_dir}config.guess"; then
3432 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3433 fi
3434 if test -f "${ac_aux_dir}config.sub"; then
3435 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3436 fi
3437 if test -f "$ac_aux_dir/configure"; then
3438 ac_configure="$SHELL ${ac_aux_dir}configure"
3439 fi
3440
3441 # Check that the precious variables saved in the cache have kept the same
3442 # value.
3443 ac_cache_corrupted=false
3444 for ac_var in $ac_precious_vars; do
3445 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3446 eval ac_new_set=\$ac_env_${ac_var}_set
3447 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3448 eval ac_new_val=\$ac_env_${ac_var}_value
3449 case $ac_old_set,$ac_new_set in
3450 set,)
3451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
3452 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
3453 ac_cache_corrupted=: ;;
3454 ,set)
3455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
3456 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
3457 ac_cache_corrupted=: ;;
3458 ,);;
3459 *)
3460 if test "x$ac_old_val" != "x$ac_new_val"; then
3461 # differences in whitespace do not lead to failure.
3462 ac_old_val_w=`echo x $ac_old_val`
3463 ac_new_val_w=`echo x $ac_new_val`
3464 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
3466 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
3467 ac_cache_corrupted=:
3468 else
3469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
3470 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
3471 eval $ac_var=\$ac_old_val
3472 fi
3473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
3474 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
3475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
3476 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
3477 fi;;
3478 esac
3479 # Pass precious variables to config.status.
3480 if test "$ac_new_set" = set; then
3481 case $ac_new_val in
3482 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3483 *) ac_arg=$ac_var=$ac_new_val ;;
3484 esac
3485 case " $ac_configure_args " in
3486 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3487 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3488 esac
3489 fi
3490 done
3491 if $ac_cache_corrupted; then
3492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3493 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3495 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3496 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
3497 and start over" "$LINENO" 5
3498 fi
3499 ## -------------------- ##
3500 ## Main body of script. ##
3501 ## -------------------- ##
3502
3503 ac_ext=c
3504 ac_cpp='$CPP $CPPFLAGS'
3505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3508
3509
3510
3511
3512
3513
3514
3515 # Don't do anything if disabled. The 32-bit Solaris for github doesn't
3516 # have main in libstdc++ (last check here). Have to figure out what's
3517 # going on.
3518 # https://productionresultssa15.blob.core.windows.net/actions-results/4ba3b577-6e5c-410c-a84a-aab41c3c0937/workflow-job-run-bfb09077-766b-50a7-85e6-c2be65408694/logs/job/job-logs.txt?rsct=text%2Fplain&se=2026-01-22T23%3A00%3A21Z&sig=f9XUBuDhUbo0QWKoo7xRXDBp98JkPYamHHCIyFSVm8g%3D&ske=2026-01-22T23%3A14%3A33Z&skoid=ca7593d4-ee42-46cd-af88-8b886a2f84eb&sks=b&skt=2026-01-22T22%3A14%3A33Z&sktid=398a6654-997b-47e9-b12b-9515b896b4de&skv=2025-11-05&sp=r&spr=https&sr=b&st=2026-01-22T22%3A50%3A16Z&sv=2025-11-05
3519 if test "x$enable_xdvipsk" != xyes; then
3520 echo "$0: xdvipsk disabled, not configuring."
3521 exit 0
3522 fi
3523
3524 # check for C++ compiler and the library compiler
3525
3526
3527
3528
3529
3530
3531 ac_ext=cpp
3532 ac_cpp='$CXXCPP $CPPFLAGS'
3533 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3534 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3535 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3536 if test -z "$CXX"; then
3537 if test -n "$CCC"; then
3538 CXX=$CCC
3539 else
3540 if test -n "$ac_tool_prefix"; then
3541 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
3542 do
3543 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3544 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3546 printf %s "checking for $ac_word... " >&6; }
3547 if test ${ac_cv_prog_CXX+y}
3548 then :
3549 printf %s "(cached) " >&6
3550 else case e in #(
3551 e) if test -n "$CXX"; then
3552 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3553 else
3554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3555 for as_dir in $PATH
3556 do
3557 IFS=$as_save_IFS
3558 case $as_dir in #(((
3559 '') as_dir=./ ;;
3560 */) ;;
3561 *) as_dir=$as_dir/ ;;
3562 esac
3563 for ac_exec_ext in '' $ac_executable_extensions; do
3564 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3565 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3566 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3567 break 2
3568 fi
3569 done
3570 done
3571 IFS=$as_save_IFS
3572
3573 fi ;;
3574 esac
3575 fi
3576 CXX=$ac_cv_prog_CXX
3577 if test -n "$CXX"; then
3578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3579 printf "%s\n" "$CXX" >&6; }
3580 else
3581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3582 printf "%s\n" "no" >&6; }
3583 fi
3584
3585
3586 test -n "$CXX" && break
3587 done
3588 fi
3589 if test -z "$CXX"; then
3590 ac_ct_CXX=$CXX
3591 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
3592 do
3593 # Extract the first word of "$ac_prog", so it can be a program name with args.
3594 set dummy $ac_prog; ac_word=$2
3595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3596 printf %s "checking for $ac_word... " >&6; }
3597 if test ${ac_cv_prog_ac_ct_CXX+y}
3598 then :
3599 printf %s "(cached) " >&6
3600 else case e in #(
3601 e) if test -n "$ac_ct_CXX"; then
3602 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3603 else
3604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3605 for as_dir in $PATH
3606 do
3607 IFS=$as_save_IFS
3608 case $as_dir in #(((
3609 '') as_dir=./ ;;
3610 */) ;;
3611 *) as_dir=$as_dir/ ;;
3612 esac
3613 for ac_exec_ext in '' $ac_executable_extensions; do
3614 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3615 ac_cv_prog_ac_ct_CXX="$ac_prog"
3616 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3617 break 2
3618 fi
3619 done
3620 done
3621 IFS=$as_save_IFS
3622
3623 fi ;;
3624 esac
3625 fi
3626 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3627 if test -n "$ac_ct_CXX"; then
3628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3629 printf "%s\n" "$ac_ct_CXX" >&6; }
3630 else
3631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3632 printf "%s\n" "no" >&6; }
3633 fi
3634
3635
3636 test -n "$ac_ct_CXX" && break
3637 done
3638
3639 if test "x$ac_ct_CXX" = x; then
3640 CXX="g++"
3641 else
3642 case $cross_compiling:$ac_tool_warned in
3643 yes:)
3644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3645 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3646 ac_tool_warned=yes ;;
3647 esac
3648 CXX=$ac_ct_CXX
3649 fi
3650 fi
3651
3652 fi
3653 fi
3654 # Provide some information about the compiler.
3655 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3656 set X $ac_compile
3657 ac_compiler=$2
3658 for ac_option in --version -v -V -qversion; do
3659 { { ac_try="$ac_compiler $ac_option >&5"
3660 case "(($ac_try" in
3661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3662 *) ac_try_echo=$ac_try;;
3663 esac
3664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3665 printf "%s\n" "$ac_try_echo"; } >&5
3666 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3667 ac_status=$?
3668 if test -s conftest.err; then
3669 sed '10a\
3670 ... rest of stderr output deleted ...
3671 10q' conftest.err >conftest.er1
3672 cat conftest.er1 >&5
3673 fi
3674 rm -f conftest.er1 conftest.err
3675 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3676 test $ac_status = 0; }
3677 done
3678
3679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3680 /* end confdefs.h. */
3681
3682 int
3683 main (void)
3684 {
3685
3686 ;
3687 return 0;
3688 }
3689 _ACEOF
3690 ac_clean_files_save=$ac_clean_files
3691 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3692 # Try to create an executable without -o first, disregard a.out.
3693 # It will help us diagnose broken compilers, and finding out an intuition
3694 # of exeext.
3695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3696 printf %s "checking whether the C++ compiler works... " >&6; }
3697 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3698
3699 # The possible output files:
3700 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3701
3702 ac_rmfiles=
3703 for ac_file in $ac_files
3704 do
3705 case $ac_file in
3706 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3707 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3708 esac
3709 done
3710 rm -f $ac_rmfiles
3711
3712 if { { ac_try="$ac_link_default"
3713 case "(($ac_try" in
3714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3715 *) ac_try_echo=$ac_try;;
3716 esac
3717 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3718 printf "%s\n" "$ac_try_echo"; } >&5
3719 (eval "$ac_link_default") 2>&5
3720 ac_status=$?
3721 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3722 test $ac_status = 0; }
3723 then :
3724 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3725 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3726 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3727 # so that the user can short-circuit this test for compilers unknown to
3728 # Autoconf.
3729 for ac_file in $ac_files ''
3730 do
3731 test -f "$ac_file" || continue
3732 case $ac_file in
3733 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3734 ;;
3735 [ab].out )
3736 # We found the default executable, but exeext='' is most
3737 # certainly right.
3738 break;;
3739 *.* )
3740 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3741 then :; else
3742 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3743 fi
3744 # We set ac_cv_exeext here because the later test for it is not
3745 # safe: cross compilers may not add the suffix if given an '-o'
3746 # argument, so we may need to know it at that point already.
3747 # Even if this section looks crufty: it has the advantage of
3748 # actually working.
3749 break;;
3750 * )
3751 break;;
3752 esac
3753 done
3754 test "$ac_cv_exeext" = no && ac_cv_exeext=
3755
3756 else case e in #(
3757 e) ac_file='' ;;
3758 esac
3759 fi
3760 if test -z "$ac_file"
3761 then :
3762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3763 printf "%s\n" "no" >&6; }
3764 printf "%s\n" "$as_me: failed program was:" >&5
3765 sed 's/^/| /' conftest.$ac_ext >&5
3766
3767 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3768 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3769 as_fn_error 77 "C++ compiler cannot create executables
3770 See 'config.log' for more details" "$LINENO" 5; }
3771 else case e in #(
3772 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3773 printf "%s\n" "yes" >&6; } ;;
3774 esac
3775 fi
3776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3777 printf %s "checking for C++ compiler default output file name... " >&6; }
3778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3779 printf "%s\n" "$ac_file" >&6; }
3780 ac_exeext=$ac_cv_exeext
3781
3782 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3783 ac_clean_files=$ac_clean_files_save
3784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3785 printf %s "checking for suffix of executables... " >&6; }
3786 if { { ac_try="$ac_link"
3787 case "(($ac_try" in
3788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3789 *) ac_try_echo=$ac_try;;
3790 esac
3791 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3792 printf "%s\n" "$ac_try_echo"; } >&5
3793 (eval "$ac_link") 2>&5
3794 ac_status=$?
3795 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3796 test $ac_status = 0; }
3797 then :
3798 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
3799 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
3800 # work properly (i.e., refer to 'conftest.exe'), while it won't with
3801 # 'rm'.
3802 for ac_file in conftest.exe conftest conftest.*; do
3803 test -f "$ac_file" || continue
3804 case $ac_file in
3805 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3806 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3807 break;;
3808 * ) break;;
3809 esac
3810 done
3811 else case e in #(
3812 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3813 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3814 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3815 See 'config.log' for more details" "$LINENO" 5; } ;;
3816 esac
3817 fi
3818 rm -f conftest conftest$ac_cv_exeext
3819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3820 printf "%s\n" "$ac_cv_exeext" >&6; }
3821
3822 rm -f conftest.$ac_ext
3823 EXEEXT=$ac_cv_exeext
3824 ac_exeext=$EXEEXT
3825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3826 /* end confdefs.h. */
3827 #include <stdio.h>
3828 int
3829 main (void)
3830 {
3831 FILE *f = fopen ("conftest.out", "w");
3832 if (!f)
3833 return 1;
3834 return ferror (f) || fclose (f) != 0;
3835
3836 ;
3837 return 0;
3838 }
3839 _ACEOF
3840 ac_clean_files="$ac_clean_files conftest.out"
3841 # Check that the compiler produces executables we can run. If not, either
3842 # the compiler is broken, or we cross compile.
3843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3844 printf %s "checking whether we are cross compiling... " >&6; }
3845 if test "$cross_compiling" != yes; then
3846 { { ac_try="$ac_link"
3847 case "(($ac_try" in
3848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3849 *) ac_try_echo=$ac_try;;
3850 esac
3851 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3852 printf "%s\n" "$ac_try_echo"; } >&5
3853 (eval "$ac_link") 2>&5
3854 ac_status=$?
3855 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3856 test $ac_status = 0; }
3857 if { ac_try='./conftest$ac_cv_exeext'
3858 { { case "(($ac_try" in
3859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3860 *) ac_try_echo=$ac_try;;
3861 esac
3862 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3863 printf "%s\n" "$ac_try_echo"; } >&5
3864 (eval "$ac_try") 2>&5
3865 ac_status=$?
3866 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3867 test $ac_status = 0; }; }; then
3868 cross_compiling=no
3869 else
3870 if test "$cross_compiling" = maybe; then
3871 cross_compiling=yes
3872 else
3873 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3874 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3875 as_fn_error 77 "cannot run C++ compiled programs.
3876 If you meant to cross compile, use '--host'.
3877 See 'config.log' for more details" "$LINENO" 5; }
3878 fi
3879 fi
3880 fi
3881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3882 printf "%s\n" "$cross_compiling" >&6; }
3883
3884 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
3885 conftest.o conftest.obj conftest.out
3886 ac_clean_files=$ac_clean_files_save
3887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3888 printf %s "checking for suffix of object files... " >&6; }
3889 if test ${ac_cv_objext+y}
3890 then :
3891 printf %s "(cached) " >&6
3892 else case e in #(
3893 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3894 /* end confdefs.h. */
3895
3896 int
3897 main (void)
3898 {
3899
3900 ;
3901 return 0;
3902 }
3903 _ACEOF
3904 rm -f conftest.o conftest.obj
3905 if { { ac_try="$ac_compile"
3906 case "(($ac_try" in
3907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3908 *) ac_try_echo=$ac_try;;
3909 esac
3910 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3911 printf "%s\n" "$ac_try_echo"; } >&5
3912 (eval "$ac_compile") 2>&5
3913 ac_status=$?
3914 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3915 test $ac_status = 0; }
3916 then :
3917 for ac_file in conftest.o conftest.obj conftest.*; do
3918 test -f "$ac_file" || continue;
3919 case $ac_file in
3920 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3921 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3922 break;;
3923 esac
3924 done
3925 else case e in #(
3926 e) printf "%s\n" "$as_me: failed program was:" >&5
3927 sed 's/^/| /' conftest.$ac_ext >&5
3928
3929 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3930 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3931 as_fn_error $? "cannot compute suffix of object files: cannot compile
3932 See 'config.log' for more details" "$LINENO" 5; } ;;
3933 esac
3934 fi
3935 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
3936 esac
3937 fi
3938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3939 printf "%s\n" "$ac_cv_objext" >&6; }
3940 OBJEXT=$ac_cv_objext
3941 ac_objext=$OBJEXT
3942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
3943 printf %s "checking whether the compiler supports GNU C++... " >&6; }
3944 if test ${ac_cv_cxx_compiler_gnu+y}
3945 then :
3946 printf %s "(cached) " >&6
3947 else case e in #(
3948 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3949 /* end confdefs.h. */
3950
3951 int
3952 main (void)
3953 {
3954 #ifndef __GNUC__
3955 choke me
3956 #endif
3957
3958 ;
3959 return 0;
3960 }
3961 _ACEOF
3962 if ac_fn_cxx_try_compile "$LINENO"
3963 then :
3964 ac_compiler_gnu=yes
3965 else case e in #(
3966 e) ac_compiler_gnu=no ;;
3967 esac
3968 fi
3969 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3970 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3971 ;;
3972 esac
3973 fi
3974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3975 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
3976 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3977
3978 if test $ac_compiler_gnu = yes; then
3979 GXX=yes
3980 else
3981 GXX=
3982 fi
3983 ac_test_CXXFLAGS=${CXXFLAGS+y}
3984 ac_save_CXXFLAGS=$CXXFLAGS
3985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3986 printf %s "checking whether $CXX accepts -g... " >&6; }
3987 if test ${ac_cv_prog_cxx_g+y}
3988 then :
3989 printf %s "(cached) " >&6
3990 else case e in #(
3991 e) ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3992 ac_cxx_werror_flag=yes
3993 ac_cv_prog_cxx_g=no
3994 CXXFLAGS="-g"
3995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3996 /* end confdefs.h. */
3997
3998 int
3999 main (void)
4000 {
4001
4002 ;
4003 return 0;
4004 }
4005 _ACEOF
4006 if ac_fn_cxx_try_compile "$LINENO"
4007 then :
4008 ac_cv_prog_cxx_g=yes
4009 else case e in #(
4010 e) CXXFLAGS=""
4011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4012 /* end confdefs.h. */
4013
4014 int
4015 main (void)
4016 {
4017
4018 ;
4019 return 0;
4020 }
4021 _ACEOF
4022 if ac_fn_cxx_try_compile "$LINENO"
4023 then :
4024
4025 else case e in #(
4026 e) ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4027 CXXFLAGS="-g"
4028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4029 /* end confdefs.h. */
4030
4031 int
4032 main (void)
4033 {
4034
4035 ;
4036 return 0;
4037 }
4038 _ACEOF
4039 if ac_fn_cxx_try_compile "$LINENO"
4040 then :
4041 ac_cv_prog_cxx_g=yes
4042 fi
4043 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4044 esac
4045 fi
4046 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4047 esac
4048 fi
4049 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4050 ac_cxx_werror_flag=$ac_save_cxx_werror_flag ;;
4051 esac
4052 fi
4053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4054 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
4055 if test $ac_test_CXXFLAGS; then
4056 CXXFLAGS=$ac_save_CXXFLAGS
4057 elif test $ac_cv_prog_cxx_g = yes; then
4058 if test "$GXX" = yes; then
4059 CXXFLAGS="-g -O2"
4060 else
4061 CXXFLAGS="-g"
4062 fi
4063 else
4064 if test "$GXX" = yes; then
4065 CXXFLAGS="-O2"
4066 else
4067 CXXFLAGS=
4068 fi
4069 fi
4070 ac_prog_cxx_stdcxx=no
4071 if test x$ac_prog_cxx_stdcxx = xno
4072 then :
4073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
4074 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
4075 if test ${ac_cv_prog_cxx_cxx11+y}
4076 then :
4077 printf %s "(cached) " >&6
4078 else case e in #(
4079 e) ac_cv_prog_cxx_cxx11=no
4080 ac_save_CXX=$CXX
4081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4082 /* end confdefs.h. */
4083 $ac_cxx_conftest_cxx11_program
4084 _ACEOF
4085 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
4086 do
4087 CXX="$ac_save_CXX $ac_arg"
4088 if ac_fn_cxx_try_compile "$LINENO"
4089 then :
4090 ac_cv_prog_cxx_cxx11=$ac_arg
4091 fi
4092 rm -f core conftest.err conftest.$ac_objext conftest.beam
4093 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
4094 done
4095 rm -f conftest.$ac_ext
4096 CXX=$ac_save_CXX ;;
4097 esac
4098 fi
4099
4100 if test "x$ac_cv_prog_cxx_cxx11" = xno
4101 then :
4102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4103 printf "%s\n" "unsupported" >&6; }
4104 else case e in #(
4105 e) if test "x$ac_cv_prog_cxx_cxx11" = x
4106 then :
4107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4108 printf "%s\n" "none needed" >&6; }
4109 else case e in #(
4110 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
4111 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
4112 CXX="$CXX $ac_cv_prog_cxx_cxx11" ;;
4113 esac
4114 fi
4115 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
4116 ac_prog_cxx_stdcxx=cxx11 ;;
4117 esac
4118 fi
4119 fi
4120 if test x$ac_prog_cxx_stdcxx = xno
4121 then :
4122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
4123 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
4124 if test ${ac_cv_prog_cxx_cxx98+y}
4125 then :
4126 printf %s "(cached) " >&6
4127 else case e in #(
4128 e) ac_cv_prog_cxx_cxx98=no
4129 ac_save_CXX=$CXX
4130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4131 /* end confdefs.h. */
4132 $ac_cxx_conftest_cxx98_program
4133 _ACEOF
4134 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
4135 do
4136 CXX="$ac_save_CXX $ac_arg"
4137 if ac_fn_cxx_try_compile "$LINENO"
4138 then :
4139 ac_cv_prog_cxx_cxx98=$ac_arg
4140 fi
4141 rm -f core conftest.err conftest.$ac_objext conftest.beam
4142 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
4143 done
4144 rm -f conftest.$ac_ext
4145 CXX=$ac_save_CXX ;;
4146 esac
4147 fi
4148
4149 if test "x$ac_cv_prog_cxx_cxx98" = xno
4150 then :
4151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4152 printf "%s\n" "unsupported" >&6; }
4153 else case e in #(
4154 e) if test "x$ac_cv_prog_cxx_cxx98" = x
4155 then :
4156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4157 printf "%s\n" "none needed" >&6; }
4158 else case e in #(
4159 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
4160 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
4161 CXX="$CXX $ac_cv_prog_cxx_cxx98" ;;
4162 esac
4163 fi
4164 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
4165 ac_prog_cxx_stdcxx=cxx98 ;;
4166 esac
4167 fi
4168 fi
4169
4170 ac_ext=c
4171 ac_cpp='$CPP $CPPFLAGS'
4172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4175
4176 if test -n "$ac_tool_prefix"; then
4177 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4178 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4180 printf %s "checking for $ac_word... " >&6; }
4181 if test ${ac_cv_prog_RANLIB+y}
4182 then :
4183 printf %s "(cached) " >&6
4184 else case e in #(
4185 e) if test -n "$RANLIB"; then
4186 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4187 else
4188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4189 for as_dir in $PATH
4190 do
4191 IFS=$as_save_IFS
4192 case $as_dir in #(((
4193 '') as_dir=./ ;;
4194 */) ;;
4195 *) as_dir=$as_dir/ ;;
4196 esac
4197 for ac_exec_ext in '' $ac_executable_extensions; do
4198 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4199 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4200 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4201 break 2
4202 fi
4203 done
4204 done
4205 IFS=$as_save_IFS
4206
4207 fi ;;
4208 esac
4209 fi
4210 RANLIB=$ac_cv_prog_RANLIB
4211 if test -n "$RANLIB"; then
4212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4213 printf "%s\n" "$RANLIB" >&6; }
4214 else
4215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4216 printf "%s\n" "no" >&6; }
4217 fi
4218
4219
4220 fi
4221 if test -z "$ac_cv_prog_RANLIB"; then
4222 ac_ct_RANLIB=$RANLIB
4223 # Extract the first word of "ranlib", so it can be a program name with args.
4224 set dummy ranlib; ac_word=$2
4225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4226 printf %s "checking for $ac_word... " >&6; }
4227 if test ${ac_cv_prog_ac_ct_RANLIB+y}
4228 then :
4229 printf %s "(cached) " >&6
4230 else case e in #(
4231 e) if test -n "$ac_ct_RANLIB"; then
4232 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4233 else
4234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4235 for as_dir in $PATH
4236 do
4237 IFS=$as_save_IFS
4238 case $as_dir in #(((
4239 '') as_dir=./ ;;
4240 */) ;;
4241 *) as_dir=$as_dir/ ;;
4242 esac
4243 for ac_exec_ext in '' $ac_executable_extensions; do
4244 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4245 ac_cv_prog_ac_ct_RANLIB="ranlib"
4246 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4247 break 2
4248 fi
4249 done
4250 done
4251 IFS=$as_save_IFS
4252
4253 fi ;;
4254 esac
4255 fi
4256 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4257 if test -n "$ac_ct_RANLIB"; then
4258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4259 printf "%s\n" "$ac_ct_RANLIB" >&6; }
4260 else
4261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4262 printf "%s\n" "no" >&6; }
4263 fi
4264
4265 if test "x$ac_ct_RANLIB" = x; then
4266 RANLIB=":"
4267 else
4268 case $cross_compiling:$ac_tool_warned in
4269 yes:)
4270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4271 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4272 ac_tool_warned=yes ;;
4273 esac
4274 RANLIB=$ac_ct_RANLIB
4275 fi
4276 else
4277 RANLIB="$ac_cv_prog_RANLIB"
4278 fi
4279
4280
4281 am__api_version='1.18'
4282
4283
4284
4285 # Find a good install program. We prefer a C program (faster),
4286 # so one script is as good as another. But avoid the broken or
4287 # incompatible versions:
4288 # SysV /etc/install, /usr/sbin/install
4289 # SunOS /usr/etc/install
4290 # IRIX /sbin/install
4291 # AIX /bin/install
4292 # AmigaOS /C/install, which installs bootblocks on floppy discs
4293 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4294 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4295 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4296 # OS/2's system install, which has a completely different semantic
4297 # ./install, which can be erroneously created by make from ./install.sh.
4298 # Reject install programs that cannot install multiple files.
4299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4300 printf %s "checking for a BSD-compatible install... " >&6; }
4301 if test -z "$INSTALL"; then
4302 if test ${ac_cv_path_install+y}
4303 then :
4304 printf %s "(cached) " >&6
4305 else case e in #(
4306 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4307 for as_dir in $PATH
4308 do
4309 IFS=$as_save_IFS
4310 case $as_dir in #(((
4311 '') as_dir=./ ;;
4312 */) ;;
4313 *) as_dir=$as_dir/ ;;
4314 esac
4315 # Account for fact that we put trailing slashes in our PATH walk.
4316 case $as_dir in #((
4317 ./ | /[cC]/* | \
4318 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4319 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4320 /usr/ucb/* ) ;;
4321 *)
4322 # OSF1 and SCO ODT 3.0 have their own names for install.
4323 # Don't use installbsd from OSF since it installs stuff as root
4324 # by default.
4325 for ac_prog in ginstall scoinst install; do
4326 for ac_exec_ext in '' $ac_executable_extensions; do
4327 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
4328 if test $ac_prog = install &&
4329 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4330 # AIX install. It has an incompatible calling convention.
4331 :
4332 elif test $ac_prog = install &&
4333 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4334 # program-specific install script used by HP pwplus--don't use.
4335 :
4336 else
4337 rm -rf conftest.one conftest.two conftest.dir
4338 echo one > conftest.one
4339 echo two > conftest.two
4340 mkdir conftest.dir
4341 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
4342 test -s conftest.one && test -s conftest.two &&
4343 test -s conftest.dir/conftest.one &&
4344 test -s conftest.dir/conftest.two
4345 then
4346 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
4347 break 3
4348 fi
4349 fi
4350 fi
4351 done
4352 done
4353 ;;
4354 esac
4355
4356 done
4357 IFS=$as_save_IFS
4358
4359 rm -rf conftest.one conftest.two conftest.dir
4360 ;;
4361 esac
4362 fi
4363 if test ${ac_cv_path_install+y}; then
4364 INSTALL=$ac_cv_path_install
4365 else
4366 # As a last resort, use the slow shell script. Don't cache a
4367 # value for INSTALL within a source directory, because that will
4368 # break other packages using the cache if that directory is
4369 # removed, or if the value is a relative name.
4370 INSTALL=$ac_install_sh
4371 fi
4372 fi
4373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4374 printf "%s\n" "$INSTALL" >&6; }
4375
4376 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4377 # It thinks the first close brace ends the variable substitution.
4378 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4379
4380 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4381
4382 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4383
4384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
4385 printf %s "checking whether sleep supports fractional seconds... " >&6; }
4386 if test ${am_cv_sleep_fractional_seconds+y}
4387 then :
4388 printf %s "(cached) " >&6
4389 else case e in #(
4390 e) if sleep 0.001 2>/dev/null
4391 then :
4392 am_cv_sleep_fractional_seconds=yes
4393 else case e in #(
4394 e) am_cv_sleep_fractional_seconds=no ;;
4395 esac
4396 fi
4397 ;;
4398 esac
4399 fi
4400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
4401 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
4402
4403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
4404 printf %s "checking filesystem timestamp resolution... " >&6; }
4405 if test ${am_cv_filesystem_timestamp_resolution+y}
4406 then :
4407 printf %s "(cached) " >&6
4408 else case e in #(
4409 e) # Default to the worst case.
4410 am_cv_filesystem_timestamp_resolution=2
4411
4412 # Only try to go finer than 1 sec if sleep can do it.
4413 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
4414 # - 1 sec is not much of a win compared to 2 sec, and
4415 # - it takes 2 seconds to perform the test whether 1 sec works.
4416 #
4417 # Instead, just use the default 2s on platforms that have 1s resolution,
4418 # accept the extra 1s delay when using $sleep in the Automake tests, in
4419 # exchange for not incurring the 2s delay for running the test for all
4420 # packages.
4421 #
4422 am_try_resolutions=
4423 if test "$am_cv_sleep_fractional_seconds" = yes; then
4424 # Even a millisecond often causes a bunch of false positives,
4425 # so just try a hundredth of a second. The time saved between .001 and
4426 # .01 is not terribly consequential.
4427 am_try_resolutions="0.01 0.1 $am_try_resolutions"
4428 fi
4429
4430 # In order to catch current-generation FAT out, we must *modify* files
4431 # that already exist; the *creation* timestamp is finer. Use names
4432 # that make ls -t sort them differently when they have equal
4433 # timestamps than when they have distinct timestamps, keeping
4434 # in mind that ls -t prints the *newest* file first.
4435 rm -f conftest.ts?
4436 : > conftest.ts1
4437 : > conftest.ts2
4438 : > conftest.ts3
4439
4440 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
4441 # clobber the current shell's arguments. (Outer-level square brackets
4442 # are removed by m4; they're present so that m4 does not expand
4443 # <dollar><star>; be careful, easy to get confused.)
4444 if (
4445 set X `ls -t conftest.ts[12]` &&
4446 {
4447 test "$*" != "X conftest.ts1 conftest.ts2" ||
4448 test "$*" != "X conftest.ts2 conftest.ts1";
4449 }
4450 ); then :; else
4451 # If neither matched, then we have a broken ls. This can happen
4452 # if, for instance, CONFIG_SHELL is bash and it inherits a
4453 # broken ls alias from the environment. This has actually
4454 # happened. Such a system could not be considered "sane".
4455 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
4456 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4457 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4458 as_fn_error $? "ls -t produces unexpected output.
4459 Make sure there is not a broken ls alias in your environment.
4460 See 'config.log' for more details" "$LINENO" 5; }
4461 fi
4462
4463 for am_try_res in $am_try_resolutions; do
4464 # Any one fine-grained sleep might happen to cross the boundary
4465 # between two values of a coarser actual resolution, but if we do
4466 # two fine-grained sleeps in a row, at least one of them will fall
4467 # entirely within a coarse interval.
4468 echo alpha > conftest.ts1
4469 sleep $am_try_res
4470 echo beta > conftest.ts2
4471 sleep $am_try_res
4472 echo gamma > conftest.ts3
4473
4474 # We assume that 'ls -t' will make use of high-resolution
4475 # timestamps if the operating system supports them at all.
4476 if (set X `ls -t conftest.ts?` &&
4477 test "$2" = conftest.ts3 &&
4478 test "$3" = conftest.ts2 &&
4479 test "$4" = conftest.ts1); then
4480 #
4481 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
4482 # because we don't need to test make.
4483 make_ok=true
4484 if test $am_try_res != 1; then
4485 # But if we've succeeded so far with a subsecond resolution, we
4486 # have one more thing to check: make. It can happen that
4487 # everything else supports the subsecond mtimes, but make doesn't;
4488 # notably on macOS, which ships make 3.81 from 2006 (the last one
4489 # released under GPLv2). https://bugs.gnu.org/68808
4490 #
4491 # We test $MAKE if it is defined in the environment, else "make".
4492 # It might get overridden later, but our hope is that in practice
4493 # it does not matter: it is the system "make" which is (by far)
4494 # the most likely to be broken, whereas if the user overrides it,
4495 # probably they did so with a better, or at least not worse, make.
4496 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
4497 #
4498 # Create a Makefile (real tab character here):
4499 rm -f conftest.mk
4500 echo 'conftest.ts1: conftest.ts2' >conftest.mk
4501 echo ' touch conftest.ts2' >>conftest.mk
4502 #
4503 # Now, running
4504 # touch conftest.ts1; touch conftest.ts2; make
4505 # should touch ts1 because ts2 is newer. This could happen by luck,
4506 # but most often, it will fail if make's support is insufficient. So
4507 # test for several consecutive successes.
4508 #
4509 # (We reuse conftest.ts[12] because we still want to modify existing
4510 # files, not create new ones, per above.)
4511 n=0
4512 make=${MAKE-make}
4513 until test $n -eq 3; do
4514 echo one > conftest.ts1
4515 sleep $am_try_res
4516 echo two > conftest.ts2 # ts2 should now be newer than ts1
4517 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
4518 make_ok=false
4519 break # out of $n loop
4520 fi
4521 n=`expr $n + 1`
4522 done
4523 fi
4524 #
4525 if $make_ok; then
4526 # Everything we know to check worked out, so call this resolution good.
4527 am_cv_filesystem_timestamp_resolution=$am_try_res
4528 break # out of $am_try_res loop
4529 fi
4530 # Otherwise, we'll go on to check the next resolution.
4531 fi
4532 done
4533 rm -f conftest.ts?
4534 # (end _am_filesystem_timestamp_resolution)
4535 ;;
4536 esac
4537 fi
4538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
4539 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
4540
4541 # This check should not be cached, as it may vary across builds of
4542 # different projects.
4543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4544 printf %s "checking whether build environment is sane... " >&6; }
4545 # Reject unsafe characters in $srcdir or the absolute working directory
4546 # name. Accept space and tab only in the latter.
4547 am_lf='
4548 '
4549 case `pwd` in
4550 *[\\\"\#\$\&\'\`$am_lf]*)
4551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4552 printf "%s\n" "no" >&6; }
4553 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4554 esac
4555 case $srcdir in
4556 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4558 printf "%s\n" "no" >&6; }
4559 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4560 esac
4561
4562 # Do 'set' in a subshell so we don't clobber the current shell's
4563 # arguments. Must try -L first in case configure is actually a
4564 # symlink; some systems play weird games with the mod time of symlinks
4565 # (eg FreeBSD returns the mod time of the symlink's containing
4566 # directory).
4567 am_build_env_is_sane=no
4568 am_has_slept=no
4569 rm -f conftest.file
4570 for am_try in 1 2; do
4571 echo "timestamp, slept: $am_has_slept" > conftest.file
4572 if (
4573 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4574 if test "$*" = "X"; then
4575 # -L didn't work.
4576 set X `ls -t "$srcdir/configure" conftest.file`
4577 fi
4578 test "$2" = conftest.file
4579 ); then
4580 am_build_env_is_sane=yes
4581 break
4582 fi
4583 # Just in case.
4584 sleep "$am_cv_filesystem_timestamp_resolution"
4585 am_has_slept=yes
4586 done
4587
4588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
4589 printf "%s\n" "$am_build_env_is_sane" >&6; }
4590 if test "$am_build_env_is_sane" = no; then
4591 as_fn_error $? "newly created file is older than distributed files!
4592 Check your system clock" "$LINENO" 5
4593 fi
4594
4595 # If we didn't sleep, we still need to ensure time stamps of config.status and
4596 # generated files are strictly newer.
4597 am_sleep_pid=
4598 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
4599 then :
4600
4601 else case e in #(
4602 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
4603 am_sleep_pid=$!
4604 ;;
4605 esac
4606 fi
4607
4608 rm -f conftest.file
4609
4610 test "$program_prefix" != NONE &&
4611 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4612 # Use a double $ so make ignores it.
4613 test "$program_suffix" != NONE &&
4614 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4615 # Double any \ or $.
4616 # By default was 's,x,x', remove it if useless.
4617 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4618 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
4619
4620
4621 # Expand $ac_aux_dir to an absolute path.
4622 am_aux_dir=`cd "$ac_aux_dir" && pwd`
4623
4624
4625 if test x"${MISSING+set}" != xset; then
4626 MISSING="\${SHELL} '$am_aux_dir/missing'"
4627 fi
4628 # Use eval to expand $SHELL
4629 if eval "$MISSING --is-lightweight"; then
4630 am_missing_run="$MISSING "
4631 else
4632 am_missing_run=
4633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4634 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4635 fi
4636
4637 if test x"${install_sh+set}" != xset; then
4638 case $am_aux_dir in
4639 *\ * | *\ *)
4640 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4641 *)
4642 install_sh="\${SHELL} $am_aux_dir/install-sh"
4643 esac
4644 fi
4645
4646 # Installed binaries are usually stripped using 'strip' when the user
4647 # run "make install-strip". However 'strip' might not be the right
4648 # tool to use in cross-compilation environments, therefore Automake
4649 # will honor the 'STRIP' environment variable to overrule this program.
4650 if test "$cross_compiling" != no; then
4651 if test -n "$ac_tool_prefix"; then
4652 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4653 set dummy ${ac_tool_prefix}strip; ac_word=$2
4654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4655 printf %s "checking for $ac_word... " >&6; }
4656 if test ${ac_cv_prog_STRIP+y}
4657 then :
4658 printf %s "(cached) " >&6
4659 else case e in #(
4660 e) if test -n "$STRIP"; then
4661 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4662 else
4663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4664 for as_dir in $PATH
4665 do
4666 IFS=$as_save_IFS
4667 case $as_dir in #(((
4668 '') as_dir=./ ;;
4669 */) ;;
4670 *) as_dir=$as_dir/ ;;
4671 esac
4672 for ac_exec_ext in '' $ac_executable_extensions; do
4673 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4674 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4675 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4676 break 2
4677 fi
4678 done
4679 done
4680 IFS=$as_save_IFS
4681
4682 fi ;;
4683 esac
4684 fi
4685 STRIP=$ac_cv_prog_STRIP
4686 if test -n "$STRIP"; then
4687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4688 printf "%s\n" "$STRIP" >&6; }
4689 else
4690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4691 printf "%s\n" "no" >&6; }
4692 fi
4693
4694
4695 fi
4696 if test -z "$ac_cv_prog_STRIP"; then
4697 ac_ct_STRIP=$STRIP
4698 # Extract the first word of "strip", so it can be a program name with args.
4699 set dummy strip; ac_word=$2
4700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4701 printf %s "checking for $ac_word... " >&6; }
4702 if test ${ac_cv_prog_ac_ct_STRIP+y}
4703 then :
4704 printf %s "(cached) " >&6
4705 else case e in #(
4706 e) if test -n "$ac_ct_STRIP"; then
4707 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4708 else
4709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4710 for as_dir in $PATH
4711 do
4712 IFS=$as_save_IFS
4713 case $as_dir in #(((
4714 '') as_dir=./ ;;
4715 */) ;;
4716 *) as_dir=$as_dir/ ;;
4717 esac
4718 for ac_exec_ext in '' $ac_executable_extensions; do
4719 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4720 ac_cv_prog_ac_ct_STRIP="strip"
4721 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4722 break 2
4723 fi
4724 done
4725 done
4726 IFS=$as_save_IFS
4727
4728 fi ;;
4729 esac
4730 fi
4731 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4732 if test -n "$ac_ct_STRIP"; then
4733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4734 printf "%s\n" "$ac_ct_STRIP" >&6; }
4735 else
4736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4737 printf "%s\n" "no" >&6; }
4738 fi
4739
4740 if test "x$ac_ct_STRIP" = x; then
4741 STRIP=":"
4742 else
4743 case $cross_compiling:$ac_tool_warned in
4744 yes:)
4745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4746 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4747 ac_tool_warned=yes ;;
4748 esac
4749 STRIP=$ac_ct_STRIP
4750 fi
4751 else
4752 STRIP="$ac_cv_prog_STRIP"
4753 fi
4754
4755 fi
4756 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4757
4758
4759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4760 printf %s "checking for a race-free mkdir -p... " >&6; }
4761 if test -z "$MKDIR_P"; then
4762 if test ${ac_cv_path_mkdir+y}
4763 then :
4764 printf %s "(cached) " >&6
4765 else case e in #(
4766 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4767 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4768 do
4769 IFS=$as_save_IFS
4770 case $as_dir in #(((
4771 '') as_dir=./ ;;
4772 */) ;;
4773 *) as_dir=$as_dir/ ;;
4774 esac
4775 for ac_prog in mkdir gmkdir; do
4776 for ac_exec_ext in '' $ac_executable_extensions; do
4777 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
4778 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4779 'mkdir ('*'coreutils) '* | \
4780 *'BusyBox '* | \
4781 'mkdir (fileutils) '4.1*)
4782 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
4783 break 3;;
4784 esac
4785 done
4786 done
4787 done
4788 IFS=$as_save_IFS
4789 ;;
4790 esac
4791 fi
4792
4793 test -d ./--version && rmdir ./--version
4794 if test ${ac_cv_path_mkdir+y}; then
4795 MKDIR_P="$ac_cv_path_mkdir -p"
4796 else
4797 # As a last resort, use plain mkdir -p,
4798 # in the hope it doesn't have the bugs of ancient mkdir.
4799 MKDIR_P='mkdir -p'
4800 fi
4801 fi
4802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4803 printf "%s\n" "$MKDIR_P" >&6; }
4804
4805 for ac_prog in gawk mawk nawk awk
4806 do
4807 # Extract the first word of "$ac_prog", so it can be a program name with args.
4808 set dummy $ac_prog; ac_word=$2
4809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4810 printf %s "checking for $ac_word... " >&6; }
4811 if test ${ac_cv_prog_AWK+y}
4812 then :
4813 printf %s "(cached) " >&6
4814 else case e in #(
4815 e) if test -n "$AWK"; then
4816 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4817 else
4818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4819 for as_dir in $PATH
4820 do
4821 IFS=$as_save_IFS
4822 case $as_dir in #(((
4823 '') as_dir=./ ;;
4824 */) ;;
4825 *) as_dir=$as_dir/ ;;
4826 esac
4827 for ac_exec_ext in '' $ac_executable_extensions; do
4828 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4829 ac_cv_prog_AWK="$ac_prog"
4830 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4831 break 2
4832 fi
4833 done
4834 done
4835 IFS=$as_save_IFS
4836
4837 fi ;;
4838 esac
4839 fi
4840 AWK=$ac_cv_prog_AWK
4841 if test -n "$AWK"; then
4842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4843 printf "%s\n" "$AWK" >&6; }
4844 else
4845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4846 printf "%s\n" "no" >&6; }
4847 fi
4848
4849
4850 test -n "$AWK" && break
4851 done
4852
4853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4854 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4855 set x ${MAKE-make}
4856 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4857 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4858 then :
4859 printf %s "(cached) " >&6
4860 else case e in #(
4861 e) cat >conftest.make <<\_ACEOF
4862 SHELL = /bin/sh
4863 all:
4864 @echo '@@@%%%=$(MAKE)=@@@%%%'
4865 _ACEOF
4866 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4867 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4868 *@@@%%%=?*=@@@%%%*)
4869 eval ac_cv_prog_make_${ac_make}_set=yes;;
4870 *)
4871 eval ac_cv_prog_make_${ac_make}_set=no;;
4872 esac
4873 rm -f conftest.make ;;
4874 esac
4875 fi
4876 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4878 printf "%s\n" "yes" >&6; }
4879 SET_MAKE=
4880 else
4881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4882 printf "%s\n" "no" >&6; }
4883 SET_MAKE="MAKE=${MAKE-make}"
4884 fi
4885
4886 rm -rf .tst 2>/dev/null
4887 mkdir .tst 2>/dev/null
4888 if test -d .tst; then
4889 am__leading_dot=.
4890 else
4891 am__leading_dot=_
4892 fi
4893 rmdir .tst 2>/dev/null
4894
4895 DEPDIR="${am__leading_dot}deps"
4896
4897 ac_config_commands="$ac_config_commands depfiles"
4898
4899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4900 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4901 cat > confinc.mk << 'END'
4902 am__doit:
4903 @echo this is the am__doit target >confinc.out
4904 .PHONY: am__doit
4905 END
4906 am__include="#"
4907 am__quote=
4908 # BSD make does it like this.
4909 echo '.include "confinc.mk" # ignored' > confmf.BSD
4910 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4911 echo 'include confinc.mk # ignored' > confmf.GNU
4912 _am_result=no
4913 for s in GNU BSD; do
4914 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4915 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4916 ac_status=$?
4917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4918 (exit $ac_status); }
4919 case $?:`cat confinc.out 2>/dev/null` in #(
4920 '0:this is the am__doit target') :
4921 case $s in #(
4922 BSD) :
4923 am__include='.include' am__quote='"' ;; #(
4924 *) :
4925 am__include='include' am__quote='' ;;
4926 esac ;; #(
4927 *) :
4928 ;;
4929 esac
4930 if test "$am__include" != "#"; then
4931 _am_result="yes ($s style)"
4932 break
4933 fi
4934 done
4935 rm -f confinc.* confmf.*
4936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4937 printf "%s\n" "${_am_result}" >&6; }
4938
4939 # Check whether --enable-dependency-tracking was given.
4940 if test ${enable_dependency_tracking+y}
4941 then :
4942 enableval=$enable_dependency_tracking;
4943 fi
4944
4945 if test "x$enable_dependency_tracking" != xno; then
4946 am_depcomp="$ac_aux_dir/depcomp"
4947 AMDEPBACKSLASH='\'
4948 am__nodep='_no'
4949 fi
4950 if test "x$enable_dependency_tracking" != xno; then
4951 AMDEP_TRUE=
4952 AMDEP_FALSE='#'
4953 else
4954 AMDEP_TRUE='#'
4955 AMDEP_FALSE=
4956 fi
4957
4958
4959 AM_DEFAULT_VERBOSITY=1
4960 # Check whether --enable-silent-rules was given.
4961 if test ${enable_silent_rules+y}
4962 then :
4963 enableval=$enable_silent_rules;
4964 fi
4965
4966 am_make=${MAKE-make}
4967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4968 printf %s "checking whether $am_make supports nested variables... " >&6; }
4969 if test ${am_cv_make_support_nested_variables+y}
4970 then :
4971 printf %s "(cached) " >&6
4972 else case e in #(
4973 e) if printf "%s\n" 'TRUE=$(BAR$(V))
4974 BAR0=false
4975 BAR1=true
4976 V=1
4977 am__doit:
4978 @$(TRUE)
4979 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4980 am_cv_make_support_nested_variables=yes
4981 else
4982 am_cv_make_support_nested_variables=no
4983 fi ;;
4984 esac
4985 fi
4986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4987 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4988 AM_BACKSLASH='\'
4989
4990 am__rm_f_notfound=
4991 if (rm -f && rm -fr && rm -rf) 2>/dev/null
4992 then :
4993
4994 else case e in #(
4995 e) am__rm_f_notfound='""' ;;
4996 esac
4997 fi
4998
4999
5000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
5001 printf %s "checking xargs -n works... " >&6; }
5002 if test ${am_cv_xargs_n_works+y}
5003 then :
5004 printf %s "(cached) " >&6
5005 else case e in #(
5006 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
5007 3"
5008 then :
5009 am_cv_xargs_n_works=yes
5010 else case e in #(
5011 e) am_cv_xargs_n_works=no ;;
5012 esac
5013 fi ;;
5014 esac
5015 fi
5016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
5017 printf "%s\n" "$am_cv_xargs_n_works" >&6; }
5018 if test "$am_cv_xargs_n_works" = yes
5019 then :
5020 am__xargs_n='xargs -n'
5021 else case e in #(
5022 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
5023 ;;
5024 esac
5025 fi
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036 ac_ext=c
5037 ac_cpp='$CPP $CPPFLAGS'
5038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5041 if test -n "$ac_tool_prefix"; then
5042 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5043 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5045 printf %s "checking for $ac_word... " >&6; }
5046 if test ${ac_cv_prog_CC+y}
5047 then :
5048 printf %s "(cached) " >&6
5049 else case e in #(
5050 e) if test -n "$CC"; then
5051 ac_cv_prog_CC="$CC" # Let the user override the test.
5052 else
5053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5054 for as_dir in $PATH
5055 do
5056 IFS=$as_save_IFS
5057 case $as_dir in #(((
5058 '') as_dir=./ ;;
5059 */) ;;
5060 *) as_dir=$as_dir/ ;;
5061 esac
5062 for ac_exec_ext in '' $ac_executable_extensions; do
5063 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5064 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5065 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5066 break 2
5067 fi
5068 done
5069 done
5070 IFS=$as_save_IFS
5071
5072 fi ;;
5073 esac
5074 fi
5075 CC=$ac_cv_prog_CC
5076 if test -n "$CC"; then
5077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5078 printf "%s\n" "$CC" >&6; }
5079 else
5080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5081 printf "%s\n" "no" >&6; }
5082 fi
5083
5084
5085 fi
5086 if test -z "$ac_cv_prog_CC"; then
5087 ac_ct_CC=$CC
5088 # Extract the first word of "gcc", so it can be a program name with args.
5089 set dummy gcc; ac_word=$2
5090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5091 printf %s "checking for $ac_word... " >&6; }
5092 if test ${ac_cv_prog_ac_ct_CC+y}
5093 then :
5094 printf %s "(cached) " >&6
5095 else case e in #(
5096 e) if test -n "$ac_ct_CC"; then
5097 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5098 else
5099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5100 for as_dir in $PATH
5101 do
5102 IFS=$as_save_IFS
5103 case $as_dir in #(((
5104 '') as_dir=./ ;;
5105 */) ;;
5106 *) as_dir=$as_dir/ ;;
5107 esac
5108 for ac_exec_ext in '' $ac_executable_extensions; do
5109 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5110 ac_cv_prog_ac_ct_CC="gcc"
5111 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5112 break 2
5113 fi
5114 done
5115 done
5116 IFS=$as_save_IFS
5117
5118 fi ;;
5119 esac
5120 fi
5121 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5122 if test -n "$ac_ct_CC"; then
5123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5124 printf "%s\n" "$ac_ct_CC" >&6; }
5125 else
5126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5127 printf "%s\n" "no" >&6; }
5128 fi
5129
5130 if test "x$ac_ct_CC" = x; then
5131 CC=""
5132 else
5133 case $cross_compiling:$ac_tool_warned in
5134 yes:)
5135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5136 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5137 ac_tool_warned=yes ;;
5138 esac
5139 CC=$ac_ct_CC
5140 fi
5141 else
5142 CC="$ac_cv_prog_CC"
5143 fi
5144
5145 if test -z "$CC"; then
5146 if test -n "$ac_tool_prefix"; then
5147 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5148 set dummy ${ac_tool_prefix}cc; ac_word=$2
5149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5150 printf %s "checking for $ac_word... " >&6; }
5151 if test ${ac_cv_prog_CC+y}
5152 then :
5153 printf %s "(cached) " >&6
5154 else case e in #(
5155 e) if test -n "$CC"; then
5156 ac_cv_prog_CC="$CC" # Let the user override the test.
5157 else
5158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5159 for as_dir in $PATH
5160 do
5161 IFS=$as_save_IFS
5162 case $as_dir in #(((
5163 '') as_dir=./ ;;
5164 */) ;;
5165 *) as_dir=$as_dir/ ;;
5166 esac
5167 for ac_exec_ext in '' $ac_executable_extensions; do
5168 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5169 ac_cv_prog_CC="${ac_tool_prefix}cc"
5170 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5171 break 2
5172 fi
5173 done
5174 done
5175 IFS=$as_save_IFS
5176
5177 fi ;;
5178 esac
5179 fi
5180 CC=$ac_cv_prog_CC
5181 if test -n "$CC"; then
5182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5183 printf "%s\n" "$CC" >&6; }
5184 else
5185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5186 printf "%s\n" "no" >&6; }
5187 fi
5188
5189
5190 fi
5191 fi
5192 if test -z "$CC"; then
5193 # Extract the first word of "cc", so it can be a program name with args.
5194 set dummy cc; ac_word=$2
5195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5196 printf %s "checking for $ac_word... " >&6; }
5197 if test ${ac_cv_prog_CC+y}
5198 then :
5199 printf %s "(cached) " >&6
5200 else case e in #(
5201 e) if test -n "$CC"; then
5202 ac_cv_prog_CC="$CC" # Let the user override the test.
5203 else
5204 ac_prog_rejected=no
5205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5206 for as_dir in $PATH
5207 do
5208 IFS=$as_save_IFS
5209 case $as_dir in #(((
5210 '') as_dir=./ ;;
5211 */) ;;
5212 *) as_dir=$as_dir/ ;;
5213 esac
5214 for ac_exec_ext in '' $ac_executable_extensions; do
5215 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5216 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5217 ac_prog_rejected=yes
5218 continue
5219 fi
5220 ac_cv_prog_CC="cc"
5221 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5222 break 2
5223 fi
5224 done
5225 done
5226 IFS=$as_save_IFS
5227
5228 if test $ac_prog_rejected = yes; then
5229 # We found a bogon in the path, so make sure we never use it.
5230 set dummy $ac_cv_prog_CC
5231 shift
5232 if test $# != 0; then
5233 # We chose a different compiler from the bogus one.
5234 # However, it has the same basename, so the bogon will be chosen
5235 # first if we set CC to just the basename; use the full file name.
5236 shift
5237 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
5238 fi
5239 fi
5240 fi ;;
5241 esac
5242 fi
5243 CC=$ac_cv_prog_CC
5244 if test -n "$CC"; then
5245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5246 printf "%s\n" "$CC" >&6; }
5247 else
5248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5249 printf "%s\n" "no" >&6; }
5250 fi
5251
5252
5253 fi
5254 if test -z "$CC"; then
5255 if test -n "$ac_tool_prefix"; then
5256 for ac_prog in cl.exe
5257 do
5258 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5259 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5261 printf %s "checking for $ac_word... " >&6; }
5262 if test ${ac_cv_prog_CC+y}
5263 then :
5264 printf %s "(cached) " >&6
5265 else case e in #(
5266 e) if test -n "$CC"; then
5267 ac_cv_prog_CC="$CC" # Let the user override the test.
5268 else
5269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5270 for as_dir in $PATH
5271 do
5272 IFS=$as_save_IFS
5273 case $as_dir in #(((
5274 '') as_dir=./ ;;
5275 */) ;;
5276 *) as_dir=$as_dir/ ;;
5277 esac
5278 for ac_exec_ext in '' $ac_executable_extensions; do
5279 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5280 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5281 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5282 break 2
5283 fi
5284 done
5285 done
5286 IFS=$as_save_IFS
5287
5288 fi ;;
5289 esac
5290 fi
5291 CC=$ac_cv_prog_CC
5292 if test -n "$CC"; then
5293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5294 printf "%s\n" "$CC" >&6; }
5295 else
5296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5297 printf "%s\n" "no" >&6; }
5298 fi
5299
5300
5301 test -n "$CC" && break
5302 done
5303 fi
5304 if test -z "$CC"; then
5305 ac_ct_CC=$CC
5306 for ac_prog in cl.exe
5307 do
5308 # Extract the first word of "$ac_prog", so it can be a program name with args.
5309 set dummy $ac_prog; ac_word=$2
5310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5311 printf %s "checking for $ac_word... " >&6; }
5312 if test ${ac_cv_prog_ac_ct_CC+y}
5313 then :
5314 printf %s "(cached) " >&6
5315 else case e in #(
5316 e) if test -n "$ac_ct_CC"; then
5317 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5318 else
5319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5320 for as_dir in $PATH
5321 do
5322 IFS=$as_save_IFS
5323 case $as_dir in #(((
5324 '') as_dir=./ ;;
5325 */) ;;
5326 *) as_dir=$as_dir/ ;;
5327 esac
5328 for ac_exec_ext in '' $ac_executable_extensions; do
5329 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5330 ac_cv_prog_ac_ct_CC="$ac_prog"
5331 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5332 break 2
5333 fi
5334 done
5335 done
5336 IFS=$as_save_IFS
5337
5338 fi ;;
5339 esac
5340 fi
5341 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5342 if test -n "$ac_ct_CC"; then
5343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5344 printf "%s\n" "$ac_ct_CC" >&6; }
5345 else
5346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5347 printf "%s\n" "no" >&6; }
5348 fi
5349
5350
5351 test -n "$ac_ct_CC" && break
5352 done
5353
5354 if test "x$ac_ct_CC" = x; then
5355 CC=""
5356 else
5357 case $cross_compiling:$ac_tool_warned in
5358 yes:)
5359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5360 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5361 ac_tool_warned=yes ;;
5362 esac
5363 CC=$ac_ct_CC
5364 fi
5365 fi
5366
5367 fi
5368 if test -z "$CC"; then
5369 if test -n "$ac_tool_prefix"; then
5370 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
5371 set dummy ${ac_tool_prefix}clang; ac_word=$2
5372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5373 printf %s "checking for $ac_word... " >&6; }
5374 if test ${ac_cv_prog_CC+y}
5375 then :
5376 printf %s "(cached) " >&6
5377 else case e in #(
5378 e) if test -n "$CC"; then
5379 ac_cv_prog_CC="$CC" # Let the user override the test.
5380 else
5381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5382 for as_dir in $PATH
5383 do
5384 IFS=$as_save_IFS
5385 case $as_dir in #(((
5386 '') as_dir=./ ;;
5387 */) ;;
5388 *) as_dir=$as_dir/ ;;
5389 esac
5390 for ac_exec_ext in '' $ac_executable_extensions; do
5391 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5392 ac_cv_prog_CC="${ac_tool_prefix}clang"
5393 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5394 break 2
5395 fi
5396 done
5397 done
5398 IFS=$as_save_IFS
5399
5400 fi ;;
5401 esac
5402 fi
5403 CC=$ac_cv_prog_CC
5404 if test -n "$CC"; then
5405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5406 printf "%s\n" "$CC" >&6; }
5407 else
5408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5409 printf "%s\n" "no" >&6; }
5410 fi
5411
5412
5413 fi
5414 if test -z "$ac_cv_prog_CC"; then
5415 ac_ct_CC=$CC
5416 # Extract the first word of "clang", so it can be a program name with args.
5417 set dummy clang; ac_word=$2
5418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5419 printf %s "checking for $ac_word... " >&6; }
5420 if test ${ac_cv_prog_ac_ct_CC+y}
5421 then :
5422 printf %s "(cached) " >&6
5423 else case e in #(
5424 e) if test -n "$ac_ct_CC"; then
5425 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5426 else
5427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5428 for as_dir in $PATH
5429 do
5430 IFS=$as_save_IFS
5431 case $as_dir in #(((
5432 '') as_dir=./ ;;
5433 */) ;;
5434 *) as_dir=$as_dir/ ;;
5435 esac
5436 for ac_exec_ext in '' $ac_executable_extensions; do
5437 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5438 ac_cv_prog_ac_ct_CC="clang"
5439 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5440 break 2
5441 fi
5442 done
5443 done
5444 IFS=$as_save_IFS
5445
5446 fi ;;
5447 esac
5448 fi
5449 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5450 if test -n "$ac_ct_CC"; then
5451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5452 printf "%s\n" "$ac_ct_CC" >&6; }
5453 else
5454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5455 printf "%s\n" "no" >&6; }
5456 fi
5457
5458 if test "x$ac_ct_CC" = x; then
5459 CC=""
5460 else
5461 case $cross_compiling:$ac_tool_warned in
5462 yes:)
5463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5464 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5465 ac_tool_warned=yes ;;
5466 esac
5467 CC=$ac_ct_CC
5468 fi
5469 else
5470 CC="$ac_cv_prog_CC"
5471 fi
5472
5473 fi
5474
5475
5476 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5477 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5478 as_fn_error $? "no acceptable C compiler found in \$PATH
5479 See 'config.log' for more details" "$LINENO" 5; }
5480
5481 # Provide some information about the compiler.
5482 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5483 set X $ac_compile
5484 ac_compiler=$2
5485 for ac_option in --version -v -V -qversion -version; do
5486 { { ac_try="$ac_compiler $ac_option >&5"
5487 case "(($ac_try" in
5488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5489 *) ac_try_echo=$ac_try;;
5490 esac
5491 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5492 printf "%s\n" "$ac_try_echo"; } >&5
5493 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5494 ac_status=$?
5495 if test -s conftest.err; then
5496 sed '10a\
5497 ... rest of stderr output deleted ...
5498 10q' conftest.err >conftest.er1
5499 cat conftest.er1 >&5
5500 fi
5501 rm -f conftest.er1 conftest.err
5502 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5503 test $ac_status = 0; }
5504 done
5505
5506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5507 printf %s "checking whether the compiler supports GNU C... " >&6; }
5508 if test ${ac_cv_c_compiler_gnu+y}
5509 then :
5510 printf %s "(cached) " >&6
5511 else case e in #(
5512 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5513 /* end confdefs.h. */
5514
5515 int
5516 main (void)
5517 {
5518 #ifndef __GNUC__
5519 choke me
5520 #endif
5521
5522 ;
5523 return 0;
5524 }
5525 _ACEOF
5526 if ac_fn_c_try_compile "$LINENO"
5527 then :
5528 ac_compiler_gnu=yes
5529 else case e in #(
5530 e) ac_compiler_gnu=no ;;
5531 esac
5532 fi
5533 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5534 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5535 ;;
5536 esac
5537 fi
5538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5539 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5541
5542 if test $ac_compiler_gnu = yes; then
5543 GCC=yes
5544 else
5545 GCC=
5546 fi
5547 ac_test_CFLAGS=${CFLAGS+y}
5548 ac_save_CFLAGS=$CFLAGS
5549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5550 printf %s "checking whether $CC accepts -g... " >&6; }
5551 if test ${ac_cv_prog_cc_g+y}
5552 then :
5553 printf %s "(cached) " >&6
5554 else case e in #(
5555 e) ac_save_c_werror_flag=$ac_c_werror_flag
5556 ac_c_werror_flag=yes
5557 ac_cv_prog_cc_g=no
5558 CFLAGS="-g"
5559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5560 /* end confdefs.h. */
5561
5562 int
5563 main (void)
5564 {
5565
5566 ;
5567 return 0;
5568 }
5569 _ACEOF
5570 if ac_fn_c_try_compile "$LINENO"
5571 then :
5572 ac_cv_prog_cc_g=yes
5573 else case e in #(
5574 e) CFLAGS=""
5575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5576 /* end confdefs.h. */
5577
5578 int
5579 main (void)
5580 {
5581
5582 ;
5583 return 0;
5584 }
5585 _ACEOF
5586 if ac_fn_c_try_compile "$LINENO"
5587 then :
5588
5589 else case e in #(
5590 e) ac_c_werror_flag=$ac_save_c_werror_flag
5591 CFLAGS="-g"
5592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5593 /* end confdefs.h. */
5594
5595 int
5596 main (void)
5597 {
5598
5599 ;
5600 return 0;
5601 }
5602 _ACEOF
5603 if ac_fn_c_try_compile "$LINENO"
5604 then :
5605 ac_cv_prog_cc_g=yes
5606 fi
5607 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5608 esac
5609 fi
5610 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5611 esac
5612 fi
5613 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5614 ac_c_werror_flag=$ac_save_c_werror_flag ;;
5615 esac
5616 fi
5617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5618 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5619 if test $ac_test_CFLAGS; then
5620 CFLAGS=$ac_save_CFLAGS
5621 elif test $ac_cv_prog_cc_g = yes; then
5622 if test "$GCC" = yes; then
5623 CFLAGS="-g -O2"
5624 else
5625 CFLAGS="-g"
5626 fi
5627 else
5628 if test "$GCC" = yes; then
5629 CFLAGS="-O2"
5630 else
5631 CFLAGS=
5632 fi
5633 fi
5634 ac_prog_cc_stdc=no
5635 if test x$ac_prog_cc_stdc = xno
5636 then :
5637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5638 printf %s "checking for $CC option to enable C11 features... " >&6; }
5639 if test ${ac_cv_prog_cc_c11+y}
5640 then :
5641 printf %s "(cached) " >&6
5642 else case e in #(
5643 e) ac_cv_prog_cc_c11=no
5644 ac_save_CC=$CC
5645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5646 /* end confdefs.h. */
5647 $ac_c_conftest_c11_program
5648 _ACEOF
5649 for ac_arg in '' -std=gnu11
5650 do
5651 CC="$ac_save_CC $ac_arg"
5652 if ac_fn_c_try_compile "$LINENO"
5653 then :
5654 ac_cv_prog_cc_c11=$ac_arg
5655 fi
5656 rm -f core conftest.err conftest.$ac_objext conftest.beam
5657 test "x$ac_cv_prog_cc_c11" != "xno" && break
5658 done
5659 rm -f conftest.$ac_ext
5660 CC=$ac_save_CC ;;
5661 esac
5662 fi
5663
5664 if test "x$ac_cv_prog_cc_c11" = xno
5665 then :
5666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5667 printf "%s\n" "unsupported" >&6; }
5668 else case e in #(
5669 e) if test "x$ac_cv_prog_cc_c11" = x
5670 then :
5671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5672 printf "%s\n" "none needed" >&6; }
5673 else case e in #(
5674 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5675 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5676 CC="$CC $ac_cv_prog_cc_c11" ;;
5677 esac
5678 fi
5679 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5680 ac_prog_cc_stdc=c11 ;;
5681 esac
5682 fi
5683 fi
5684 if test x$ac_prog_cc_stdc = xno
5685 then :
5686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5687 printf %s "checking for $CC option to enable C99 features... " >&6; }
5688 if test ${ac_cv_prog_cc_c99+y}
5689 then :
5690 printf %s "(cached) " >&6
5691 else case e in #(
5692 e) ac_cv_prog_cc_c99=no
5693 ac_save_CC=$CC
5694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5695 /* end confdefs.h. */
5696 $ac_c_conftest_c99_program
5697 _ACEOF
5698 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5699 do
5700 CC="$ac_save_CC $ac_arg"
5701 if ac_fn_c_try_compile "$LINENO"
5702 then :
5703 ac_cv_prog_cc_c99=$ac_arg
5704 fi
5705 rm -f core conftest.err conftest.$ac_objext conftest.beam
5706 test "x$ac_cv_prog_cc_c99" != "xno" && break
5707 done
5708 rm -f conftest.$ac_ext
5709 CC=$ac_save_CC ;;
5710 esac
5711 fi
5712
5713 if test "x$ac_cv_prog_cc_c99" = xno
5714 then :
5715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5716 printf "%s\n" "unsupported" >&6; }
5717 else case e in #(
5718 e) if test "x$ac_cv_prog_cc_c99" = x
5719 then :
5720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5721 printf "%s\n" "none needed" >&6; }
5722 else case e in #(
5723 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5724 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5725 CC="$CC $ac_cv_prog_cc_c99" ;;
5726 esac
5727 fi
5728 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5729 ac_prog_cc_stdc=c99 ;;
5730 esac
5731 fi
5732 fi
5733 if test x$ac_prog_cc_stdc = xno
5734 then :
5735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5736 printf %s "checking for $CC option to enable C89 features... " >&6; }
5737 if test ${ac_cv_prog_cc_c89+y}
5738 then :
5739 printf %s "(cached) " >&6
5740 else case e in #(
5741 e) ac_cv_prog_cc_c89=no
5742 ac_save_CC=$CC
5743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5744 /* end confdefs.h. */
5745 $ac_c_conftest_c89_program
5746 _ACEOF
5747 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5748 do
5749 CC="$ac_save_CC $ac_arg"
5750 if ac_fn_c_try_compile "$LINENO"
5751 then :
5752 ac_cv_prog_cc_c89=$ac_arg
5753 fi
5754 rm -f core conftest.err conftest.$ac_objext conftest.beam
5755 test "x$ac_cv_prog_cc_c89" != "xno" && break
5756 done
5757 rm -f conftest.$ac_ext
5758 CC=$ac_save_CC ;;
5759 esac
5760 fi
5761
5762 if test "x$ac_cv_prog_cc_c89" = xno
5763 then :
5764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5765 printf "%s\n" "unsupported" >&6; }
5766 else case e in #(
5767 e) if test "x$ac_cv_prog_cc_c89" = x
5768 then :
5769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5770 printf "%s\n" "none needed" >&6; }
5771 else case e in #(
5772 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5773 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5774 CC="$CC $ac_cv_prog_cc_c89" ;;
5775 esac
5776 fi
5777 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5778 ac_prog_cc_stdc=c89 ;;
5779 esac
5780 fi
5781 fi
5782
5783 ac_ext=c
5784 ac_cpp='$CPP $CPPFLAGS'
5785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5788
5789
5790 ac_ext=c
5791 ac_cpp='$CPP $CPPFLAGS'
5792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5796 printf %s "checking whether $CC understands -c and -o together... " >&6; }
5797 if test ${am_cv_prog_cc_c_o+y}
5798 then :
5799 printf %s "(cached) " >&6
5800 else case e in #(
5801 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5802 /* end confdefs.h. */
5803
5804 int
5805 main (void)
5806 {
5807
5808 ;
5809 return 0;
5810 }
5811 _ACEOF
5812 # Make sure it works both with $CC and with simple cc.
5813 # Following AC_PROG_CC_C_O, we do the test twice because some
5814 # compilers refuse to overwrite an existing .o file with -o,
5815 # though they will create one.
5816 am_cv_prog_cc_c_o=yes
5817 for am_i in 1 2; do
5818 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5819 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5820 ac_status=$?
5821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5822 (exit $ac_status); } \
5823 && test -f conftest2.$ac_objext; then
5824 : OK
5825 else
5826 am_cv_prog_cc_c_o=no
5827 break
5828 fi
5829 done
5830 # aligned with autoconf, so not including core; see bug#72225.
5831 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \
5832 conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \
5833 conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM
5834 unset am_i ;;
5835 esac
5836 fi
5837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5838 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
5839 if test "$am_cv_prog_cc_c_o" != yes; then
5840 # Losing compiler, so override with the script.
5841 # FIXME: It is wrong to rewrite CC.
5842 # But if we don't then we get into trouble of one sort or another.
5843 # A longer-term fix would be to have automake use am__CC in this case,
5844 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5845 CC="$am_aux_dir/compile $CC"
5846 fi
5847 ac_ext=c
5848 ac_cpp='$CPP $CPPFLAGS'
5849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5852
5853
5854 depcc="$CC" am_compiler_list=
5855
5856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5857 printf %s "checking dependency style of $depcc... " >&6; }
5858 if test ${am_cv_CC_dependencies_compiler_type+y}
5859 then :
5860 printf %s "(cached) " >&6
5861 else case e in #(
5862 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5863 # We make a subdir and do the tests there. Otherwise we can end up
5864 # making bogus files that we don't know about and never remove. For
5865 # instance it was reported that on HP-UX the gcc test will end up
5866 # making a dummy file named 'D' -- because '-MD' means "put the output
5867 # in D".
5868 rm -rf conftest.dir
5869 mkdir conftest.dir
5870 # Copy depcomp to subdir because otherwise we won't find it if we're
5871 # using a relative directory.
5872 cp "$am_depcomp" conftest.dir
5873 cd conftest.dir
5874 # We will build objects and dependencies in a subdirectory because
5875 # it helps to detect inapplicable dependency modes. For instance
5876 # both Tru64's cc and ICC support -MD to output dependencies as a
5877 # side effect of compilation, but ICC will put the dependencies in
5878 # the current directory while Tru64 will put them in the object
5879 # directory.
5880 mkdir sub
5881
5882 am_cv_CC_dependencies_compiler_type=none
5883 if test "$am_compiler_list" = ""; then
5884 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5885 fi
5886 am__universal=false
5887 case " $depcc " in #(
5888 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5889 esac
5890
5891 for depmode in $am_compiler_list; do
5892 # Setup a source with many dependencies, because some compilers
5893 # like to wrap large dependency lists on column 80 (with \), and
5894 # we should not choose a depcomp mode which is confused by this.
5895 #
5896 # We need to recreate these files for each test, as the compiler may
5897 # overwrite some of them when testing with obscure command lines.
5898 # This happens at least with the AIX C compiler.
5899 : > sub/conftest.c
5900 for i in 1 2 3 4 5 6; do
5901 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5902 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5903 # Solaris 10 /bin/sh.
5904 echo '/* dummy */' > sub/conftst$i.h
5905 done
5906 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5907
5908 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5909 # mode. It turns out that the SunPro C++ compiler does not properly
5910 # handle '-M -o', and we need to detect this. Also, some Intel
5911 # versions had trouble with output in subdirs.
5912 am__obj=sub/conftest.${OBJEXT-o}
5913 am__minus_obj="-o $am__obj"
5914 case $depmode in
5915 gcc)
5916 # This depmode causes a compiler race in universal mode.
5917 test "$am__universal" = false || continue
5918 ;;
5919 nosideeffect)
5920 # After this tag, mechanisms are not by side-effect, so they'll
5921 # only be used when explicitly requested.
5922 if test "x$enable_dependency_tracking" = xyes; then
5923 continue
5924 else
5925 break
5926 fi
5927 ;;
5928 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5929 # This compiler won't grok '-c -o', but also, the minuso test has
5930 # not run yet. These depmodes are late enough in the game, and
5931 # so weak that their functioning should not be impacted.
5932 am__obj=conftest.${OBJEXT-o}
5933 am__minus_obj=
5934 ;;
5935 none) break ;;
5936 esac
5937 if depmode=$depmode \
5938 source=sub/conftest.c object=$am__obj \
5939 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5940 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5941 >/dev/null 2>conftest.err &&
5942 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5943 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5944 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5945 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5946 # icc doesn't choke on unknown options, it will just issue warnings
5947 # or remarks (even with -Werror). So we grep stderr for any message
5948 # that says an option was ignored or not supported.
5949 # When given -MP, icc 7.0 and 7.1 complain thus:
5950 # icc: Command line warning: ignoring option '-M'; no argument required
5951 # The diagnosis changed in icc 8.0:
5952 # icc: Command line remark: option '-MP' not supported
5953 if (grep 'ignoring option' conftest.err ||
5954 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5955 am_cv_CC_dependencies_compiler_type=$depmode
5956 break
5957 fi
5958 fi
5959 done
5960
5961 cd ..
5962 rm -rf conftest.dir
5963 else
5964 am_cv_CC_dependencies_compiler_type=none
5965 fi
5966 ;;
5967 esac
5968 fi
5969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5970 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5971 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5972
5973 if
5974 test "x$enable_dependency_tracking" != xno \
5975 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5976 am__fastdepCC_TRUE=
5977 am__fastdepCC_FALSE='#'
5978 else
5979 am__fastdepCC_TRUE='#'
5980 am__fastdepCC_FALSE=
5981 fi
5982
5983
5984
5985 ac_header= ac_cache=
5986 for ac_item in $ac_header_c_list
5987 do
5988 if test $ac_cache; then
5989 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
5990 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
5991 printf "%s\n" "#define $ac_item 1" >> confdefs.h
5992 fi
5993 ac_header= ac_cache=
5994 elif test $ac_header; then
5995 ac_cache=$ac_item
5996 else
5997 ac_header=$ac_item
5998 fi
5999 done
6000
6001
6002
6003
6004
6005
6006
6007
6008 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
6009 then :
6010
6011 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
6012
6013 fi
6014
6015
6016
6017
6018
6019
6020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6021 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6022 if test ${ac_cv_safe_to_define___extensions__+y}
6023 then :
6024 printf %s "(cached) " >&6
6025 else case e in #(
6026 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6027 /* end confdefs.h. */
6028
6029 # define __EXTENSIONS__ 1
6030 $ac_includes_default
6031 int
6032 main (void)
6033 {
6034
6035 ;
6036 return 0;
6037 }
6038 _ACEOF
6039 if ac_fn_c_try_compile "$LINENO"
6040 then :
6041 ac_cv_safe_to_define___extensions__=yes
6042 else case e in #(
6043 e) ac_cv_safe_to_define___extensions__=no ;;
6044 esac
6045 fi
6046 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6047 esac
6048 fi
6049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6050 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
6051
6052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
6053 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
6054 if test ${ac_cv_should_define__xopen_source+y}
6055 then :
6056 printf %s "(cached) " >&6
6057 else case e in #(
6058 e) ac_cv_should_define__xopen_source=no
6059 if test $ac_cv_header_wchar_h = yes
6060 then :
6061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6062 /* end confdefs.h. */
6063
6064 #include <wchar.h>
6065 mbstate_t x;
6066 int
6067 main (void)
6068 {
6069
6070 ;
6071 return 0;
6072 }
6073 _ACEOF
6074 if ac_fn_c_try_compile "$LINENO"
6075 then :
6076
6077 else case e in #(
6078 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6079 /* end confdefs.h. */
6080
6081 #define _XOPEN_SOURCE 500
6082 #include <wchar.h>
6083 mbstate_t x;
6084 int
6085 main (void)
6086 {
6087
6088 ;
6089 return 0;
6090 }
6091 _ACEOF
6092 if ac_fn_c_try_compile "$LINENO"
6093 then :
6094 ac_cv_should_define__xopen_source=yes
6095 fi
6096 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6097 esac
6098 fi
6099 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6100 fi ;;
6101 esac
6102 fi
6103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
6104 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
6105
6106 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
6107
6108 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6109
6110 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
6111
6112 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
6113
6114 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
6115
6116 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
6117
6118 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6119
6120 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
6121
6122 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
6123
6124 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
6125
6126 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
6127
6128 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
6129
6130 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
6131
6132 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
6133
6134 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
6135
6136 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
6137
6138 if test $ac_cv_header_minix_config_h = yes
6139 then :
6140 MINIX=yes
6141 printf "%s\n" "#define _MINIX 1" >>confdefs.h
6142
6143 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
6144
6145 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
6146
6147 else case e in #(
6148 e) MINIX= ;;
6149 esac
6150 fi
6151 if test $ac_cv_safe_to_define___extensions__ = yes
6152 then :
6153 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
6154
6155 fi
6156 if test $ac_cv_should_define__xopen_source = yes
6157 then :
6158 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
6159
6160 fi
6161
6162 # Check whether --enable-compiler-warnings was given.
6163 if test ${enable_compiler_warnings+y}
6164 then :
6165 enableval=$enable_compiler_warnings;
6166 fi
6167 case $enable_compiler_warnings in #(
6168 no | min | yes | max | all) :
6169 ;; #(
6170 *) :
6171 if test "x$enable_maintainer_mode" = xyes
6172 then :
6173 enable_compiler_warnings=yes
6174 else case e in #(
6175 e) enable_compiler_warnings=min ;;
6176 esac
6177 fi ;;
6178 esac
6179
6180 case `pwd` in
6181 *\ * | *\ *)
6182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6183 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6184 esac
6185
6186
6187
6188 macro_version='2.5.4'
6189 macro_revision='2.5.4'
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204 ltmain=$ac_aux_dir/ltmain.sh
6205
6206
6207
6208 # Make sure we can run config.sub.
6209 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
6210 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
6211
6212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6213 printf %s "checking build system type... " >&6; }
6214 if test ${ac_cv_build+y}
6215 then :
6216 printf %s "(cached) " >&6
6217 else case e in #(
6218 e) ac_build_alias=$build_alias
6219 test "x$ac_build_alias" = x &&
6220 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
6221 test "x$ac_build_alias" = x &&
6222 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6223 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
6224 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
6225 ;;
6226 esac
6227 fi
6228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6229 printf "%s\n" "$ac_cv_build" >&6; }
6230 case $ac_cv_build in
6231 *-*-*) ;;
6232 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6233 esac
6234 build=$ac_cv_build
6235 ac_save_IFS=$IFS; IFS='-'
6236 set x $ac_cv_build
6237 shift
6238 build_cpu=$1
6239 build_vendor=$2
6240 shift; shift
6241 # Remember, the first character of IFS is used to create $*,
6242 # except with old shells:
6243 build_os=$*
6244 IFS=$ac_save_IFS
6245 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6246
6247
6248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6249 printf %s "checking host system type... " >&6; }
6250 if test ${ac_cv_host+y}
6251 then :
6252 printf %s "(cached) " >&6
6253 else case e in #(
6254 e) if test "x$host_alias" = x; then
6255 ac_cv_host=$ac_cv_build
6256 else
6257 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
6258 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
6259 fi
6260 ;;
6261 esac
6262 fi
6263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6264 printf "%s\n" "$ac_cv_host" >&6; }
6265 case $ac_cv_host in
6266 *-*-*) ;;
6267 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6268 esac
6269 host=$ac_cv_host
6270 ac_save_IFS=$IFS; IFS='-'
6271 set x $ac_cv_host
6272 shift
6273 host_cpu=$1
6274 host_vendor=$2
6275 shift; shift
6276 # Remember, the first character of IFS is used to create $*,
6277 # except with old shells:
6278 host_os=$*
6279 IFS=$ac_save_IFS
6280 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6281
6282
6283 # Backslashify metacharacters that are still active within
6284 # double-quoted strings.
6285 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6286
6287 # Same as above, but do not quote variable references.
6288 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6289
6290 # Sed substitution to delay expansion of an escaped shell variable in a
6291 # double_quote_subst'ed string.
6292 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6293
6294 # Sed substitution to delay expansion of an escaped single quote.
6295 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6296
6297 # Sed substitution to avoid accidental globbing in evaled expressions
6298 no_glob_subst='s/\*/\\\*/g'
6299
6300 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6301 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6302 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6303
6304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6305 printf %s "checking how to print strings... " >&6; }
6306 # Test print first, because it will be a builtin if present.
6307 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6308 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6309 ECHO='print -r --'
6310 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6311 ECHO='printf %s\n'
6312 else
6313 # Use this function as a fallback that always works.
6314 func_fallback_echo ()
6315 {
6316 eval 'cat <<_LTECHO_EOF
6317 $1
6318 _LTECHO_EOF'
6319 }
6320 ECHO='func_fallback_echo'
6321 fi
6322
6323 # func_echo_all arg...
6324 # Invoke $ECHO with all args, space-separated.
6325 func_echo_all ()
6326 {
6327 $ECHO ""
6328 }
6329
6330 case $ECHO in
6331 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6332 printf "%s\n" "printf" >&6; } ;;
6333 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6334 printf "%s\n" "print -r" >&6; } ;;
6335 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6336 printf "%s\n" "cat" >&6; } ;;
6337 esac
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6353 printf %s "checking for a sed that does not truncate output... " >&6; }
6354 if test ${ac_cv_path_SED+y}
6355 then :
6356 printf %s "(cached) " >&6
6357 else case e in #(
6358 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6359 for ac_i in 1 2 3 4 5 6 7; do
6360 ac_script="$ac_script$as_nl$ac_script"
6361 done
6362 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6363 { ac_script=; unset ac_script;}
6364 if test -z "$SED"; then
6365 ac_path_SED_found=false
6366 # Loop through the user's path and test for each of PROGNAME-LIST
6367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6368 for as_dir in $PATH
6369 do
6370 IFS=$as_save_IFS
6371 case $as_dir in #(((
6372 '') as_dir=./ ;;
6373 */) ;;
6374 *) as_dir=$as_dir/ ;;
6375 esac
6376 for ac_prog in sed gsed
6377 do
6378 for ac_exec_ext in '' $ac_executable_extensions; do
6379 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
6380 as_fn_executable_p "$ac_path_SED" || continue
6381 # Check for GNU ac_path_SED and select it if it is found.
6382 # Check for GNU $ac_path_SED
6383 case `"$ac_path_SED" --version 2>&1` in #(
6384 *GNU*)
6385 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6386 #(
6387 *)
6388 ac_count=0
6389 printf %s 0123456789 >"conftest.in"
6390 while :
6391 do
6392 cat "conftest.in" "conftest.in" >"conftest.tmp"
6393 mv "conftest.tmp" "conftest.in"
6394 cp "conftest.in" "conftest.nl"
6395 printf "%s\n" '' >> "conftest.nl"
6396 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6397 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6398 as_fn_arith $ac_count + 1 && ac_count=$as_val
6399 if test $ac_count -gt ${ac_path_SED_max-0}; then
6400 # Best one so far, save it but keep looking for a better one
6401 ac_cv_path_SED="$ac_path_SED"
6402 ac_path_SED_max=$ac_count
6403 fi
6404 # 10*(2^10) chars as input seems more than enough
6405 test $ac_count -gt 10 && break
6406 done
6407 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6408 esac
6409
6410 $ac_path_SED_found && break 3
6411 done
6412 done
6413 done
6414 IFS=$as_save_IFS
6415 if test -z "$ac_cv_path_SED"; then
6416 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6417 fi
6418 else
6419 ac_cv_path_SED=$SED
6420 fi
6421 ;;
6422 esac
6423 fi
6424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6425 printf "%s\n" "$ac_cv_path_SED" >&6; }
6426 SED="$ac_cv_path_SED"
6427 rm -f conftest.sed
6428
6429 test -z "$SED" && SED=sed
6430 Xsed="$SED -e 1s/^X//"
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6443 printf %s "checking for grep that handles long lines and -e... " >&6; }
6444 if test ${ac_cv_path_GREP+y}
6445 then :
6446 printf %s "(cached) " >&6
6447 else case e in #(
6448 e) if test -z "$GREP"; then
6449 ac_path_GREP_found=false
6450 # Loop through the user's path and test for each of PROGNAME-LIST
6451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6452 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6453 do
6454 IFS=$as_save_IFS
6455 case $as_dir in #(((
6456 '') as_dir=./ ;;
6457 */) ;;
6458 *) as_dir=$as_dir/ ;;
6459 esac
6460 for ac_prog in grep ggrep
6461 do
6462 for ac_exec_ext in '' $ac_executable_extensions; do
6463 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
6464 as_fn_executable_p "$ac_path_GREP" || continue
6465 # Check for GNU ac_path_GREP and select it if it is found.
6466 # Check for GNU $ac_path_GREP
6467 case `"$ac_path_GREP" --version 2>&1` in #(
6468 *GNU*)
6469 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6470 #(
6471 *)
6472 ac_count=0
6473 printf %s 0123456789 >"conftest.in"
6474 while :
6475 do
6476 cat "conftest.in" "conftest.in" >"conftest.tmp"
6477 mv "conftest.tmp" "conftest.in"
6478 cp "conftest.in" "conftest.nl"
6479 printf "%s\n" 'GREP' >> "conftest.nl"
6480 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6481 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6482 as_fn_arith $ac_count + 1 && ac_count=$as_val
6483 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6484 # Best one so far, save it but keep looking for a better one
6485 ac_cv_path_GREP="$ac_path_GREP"
6486 ac_path_GREP_max=$ac_count
6487 fi
6488 # 10*(2^10) chars as input seems more than enough
6489 test $ac_count -gt 10 && break
6490 done
6491 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6492 esac
6493
6494 $ac_path_GREP_found && break 3
6495 done
6496 done
6497 done
6498 IFS=$as_save_IFS
6499 if test -z "$ac_cv_path_GREP"; then
6500 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6501 fi
6502 else
6503 ac_cv_path_GREP=$GREP
6504 fi
6505 ;;
6506 esac
6507 fi
6508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6509 printf "%s\n" "$ac_cv_path_GREP" >&6; }
6510 GREP="$ac_cv_path_GREP"
6511
6512
6513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6514 printf %s "checking for egrep... " >&6; }
6515 if test ${ac_cv_path_EGREP+y}
6516 then :
6517 printf %s "(cached) " >&6
6518 else case e in #(
6519 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6520 then ac_cv_path_EGREP="$GREP -E"
6521 else
6522 if test -z "$EGREP"; then
6523 ac_path_EGREP_found=false
6524 # Loop through the user's path and test for each of PROGNAME-LIST
6525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6526 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6527 do
6528 IFS=$as_save_IFS
6529 case $as_dir in #(((
6530 '') as_dir=./ ;;
6531 */) ;;
6532 *) as_dir=$as_dir/ ;;
6533 esac
6534 for ac_prog in egrep
6535 do
6536 for ac_exec_ext in '' $ac_executable_extensions; do
6537 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
6538 as_fn_executable_p "$ac_path_EGREP" || continue
6539 # Check for GNU ac_path_EGREP and select it if it is found.
6540 # Check for GNU $ac_path_EGREP
6541 case `"$ac_path_EGREP" --version 2>&1` in #(
6542 *GNU*)
6543 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6544 #(
6545 *)
6546 ac_count=0
6547 printf %s 0123456789 >"conftest.in"
6548 while :
6549 do
6550 cat "conftest.in" "conftest.in" >"conftest.tmp"
6551 mv "conftest.tmp" "conftest.in"
6552 cp "conftest.in" "conftest.nl"
6553 printf "%s\n" 'EGREP' >> "conftest.nl"
6554 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6555 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6556 as_fn_arith $ac_count + 1 && ac_count=$as_val
6557 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6558 # Best one so far, save it but keep looking for a better one
6559 ac_cv_path_EGREP="$ac_path_EGREP"
6560 ac_path_EGREP_max=$ac_count
6561 fi
6562 # 10*(2^10) chars as input seems more than enough
6563 test $ac_count -gt 10 && break
6564 done
6565 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6566 esac
6567
6568 $ac_path_EGREP_found && break 3
6569 done
6570 done
6571 done
6572 IFS=$as_save_IFS
6573 if test -z "$ac_cv_path_EGREP"; then
6574 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6575 fi
6576 else
6577 ac_cv_path_EGREP=$EGREP
6578 fi
6579
6580 fi ;;
6581 esac
6582 fi
6583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6584 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
6585 EGREP="$ac_cv_path_EGREP"
6586
6587 EGREP_TRADITIONAL=$EGREP
6588 ac_cv_path_EGREP_TRADITIONAL=$EGREP
6589
6590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6591 printf %s "checking for fgrep... " >&6; }
6592 if test ${ac_cv_path_FGREP+y}
6593 then :
6594 printf %s "(cached) " >&6
6595 else case e in #(
6596 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6597 then ac_cv_path_FGREP="$GREP -F"
6598 else
6599 if test -z "$FGREP"; then
6600 ac_path_FGREP_found=false
6601 # Loop through the user's path and test for each of PROGNAME-LIST
6602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6603 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6604 do
6605 IFS=$as_save_IFS
6606 case $as_dir in #(((
6607 '') as_dir=./ ;;
6608 */) ;;
6609 *) as_dir=$as_dir/ ;;
6610 esac
6611 for ac_prog in fgrep
6612 do
6613 for ac_exec_ext in '' $ac_executable_extensions; do
6614 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
6615 as_fn_executable_p "$ac_path_FGREP" || continue
6616 # Check for GNU ac_path_FGREP and select it if it is found.
6617 # Check for GNU $ac_path_FGREP
6618 case `"$ac_path_FGREP" --version 2>&1` in #(
6619 *GNU*)
6620 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6621 #(
6622 *)
6623 ac_count=0
6624 printf %s 0123456789 >"conftest.in"
6625 while :
6626 do
6627 cat "conftest.in" "conftest.in" >"conftest.tmp"
6628 mv "conftest.tmp" "conftest.in"
6629 cp "conftest.in" "conftest.nl"
6630 printf "%s\n" 'FGREP' >> "conftest.nl"
6631 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6632 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6633 as_fn_arith $ac_count + 1 && ac_count=$as_val
6634 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6635 # Best one so far, save it but keep looking for a better one
6636 ac_cv_path_FGREP="$ac_path_FGREP"
6637 ac_path_FGREP_max=$ac_count
6638 fi
6639 # 10*(2^10) chars as input seems more than enough
6640 test $ac_count -gt 10 && break
6641 done
6642 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6643 esac
6644
6645 $ac_path_FGREP_found && break 3
6646 done
6647 done
6648 done
6649 IFS=$as_save_IFS
6650 if test -z "$ac_cv_path_FGREP"; then
6651 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6652 fi
6653 else
6654 ac_cv_path_FGREP=$FGREP
6655 fi
6656
6657 fi ;;
6658 esac
6659 fi
6660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6661 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
6662 FGREP="$ac_cv_path_FGREP"
6663
6664
6665 test -z "$GREP" && GREP=grep
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685 # Check whether --with-gnu-ld was given.
6686 if test ${with_gnu_ld+y}
6687 then :
6688 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6689 else case e in #(
6690 e) with_gnu_ld=no ;;
6691 esac
6692 fi
6693
6694 ac_prog=ld
6695 if test yes = "$GCC"; then
6696 # Check if gcc -print-prog-name=ld gives a path.
6697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6698 printf %s "checking for ld used by $CC... " >&6; }
6699 case $host in
6700 *-*-mingw* | *-*-windows*)
6701 # gcc leaves a trailing carriage return, which upsets mingw
6702 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6703 *)
6704 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6705 esac
6706 case $ac_prog in
6707 # Accept absolute paths.
6708 [\\/]* | ?:[\\/]*)
6709 re_direlt='/[^/][^/]*/\.\./'
6710 # Canonicalize the pathname of ld
6711 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6712 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6713 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6714 done
6715 test -z "$LD" && LD=$ac_prog
6716 ;;
6717 "")
6718 # If it fails, then pretend we aren't using GCC.
6719 ac_prog=ld
6720 ;;
6721 *)
6722 # If it is relative, then search for the first ld in PATH.
6723 with_gnu_ld=unknown
6724 ;;
6725 esac
6726 elif test yes = "$with_gnu_ld"; then
6727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6728 printf %s "checking for GNU ld... " >&6; }
6729 else
6730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6731 printf %s "checking for non-GNU ld... " >&6; }
6732 fi
6733 if test ${lt_cv_path_LD+y}
6734 then :
6735 printf %s "(cached) " >&6
6736 else case e in #(
6737 e) if test -z "$LD"; then
6738 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6739 for ac_dir in $PATH; do
6740 IFS=$lt_save_ifs
6741 test -z "$ac_dir" && ac_dir=.
6742 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6743 lt_cv_path_LD=$ac_dir/$ac_prog
6744 # Check to see if the program is GNU ld. I'd rather use --version,
6745 # but apparently some variants of GNU ld only accept -v.
6746 # Break only if it was the GNU/non-GNU ld that we prefer.
6747 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6748 *GNU* | *'with BFD'*)
6749 test no != "$with_gnu_ld" && break
6750 ;;
6751 *)
6752 test yes != "$with_gnu_ld" && break
6753 ;;
6754 esac
6755 fi
6756 done
6757 IFS=$lt_save_ifs
6758 else
6759 lt_cv_path_LD=$LD # Let the user override the test with a path.
6760 fi ;;
6761 esac
6762 fi
6763
6764 LD=$lt_cv_path_LD
6765 if test -n "$LD"; then
6766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6767 printf "%s\n" "$LD" >&6; }
6768 else
6769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6770 printf "%s\n" "no" >&6; }
6771 fi
6772 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6774 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
6775 if test ${lt_cv_prog_gnu_ld+y}
6776 then :
6777 printf %s "(cached) " >&6
6778 else case e in #(
6779 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
6780 case `$LD -v 2>&1 </dev/null` in
6781 *GNU* | *'with BFD'*)
6782 lt_cv_prog_gnu_ld=yes
6783 ;;
6784 *)
6785 lt_cv_prog_gnu_ld=no
6786 ;;
6787 esac ;;
6788 esac
6789 fi
6790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6791 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
6792 with_gnu_ld=$lt_cv_prog_gnu_ld
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6803 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6804 if test ${lt_cv_path_NM+y}
6805 then :
6806 printf %s "(cached) " >&6
6807 else case e in #(
6808 e) if test -n "$NM"; then
6809 # Let the user override the test.
6810 lt_cv_path_NM=$NM
6811 else
6812 lt_nm_to_check=${ac_tool_prefix}nm
6813 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6814 lt_nm_to_check="$lt_nm_to_check nm"
6815 fi
6816 for lt_tmp_nm in $lt_nm_to_check; do
6817 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6818 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6819 IFS=$lt_save_ifs
6820 test -z "$ac_dir" && ac_dir=.
6821 tmp_nm=$ac_dir/$lt_tmp_nm
6822 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6823 # Check to see if the nm accepts a BSD-compat flag.
6824 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6825 # nm: unknown option "B" ignored
6826 # Tru64's nm complains that /dev/null is an invalid object file
6827 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6828 case $build_os in
6829 mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
6830 *) lt_bad_file=/dev/null ;;
6831 esac
6832 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
6833 *$lt_bad_file* | *'Invalid file or object type'*)
6834 lt_cv_path_NM="$tmp_nm -B"
6835 break 2
6836 ;;
6837 *)
6838 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
6839 */dev/null*)
6840 lt_cv_path_NM="$tmp_nm -p"
6841 break 2
6842 ;;
6843 *)
6844 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6845 continue # so that we can try to find one that supports BSD flags
6846 ;;
6847 esac
6848 ;;
6849 esac
6850 fi
6851 done
6852 IFS=$lt_save_ifs
6853 done
6854 : ${lt_cv_path_NM=no}
6855 fi ;;
6856 esac
6857 fi
6858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6859 printf "%s\n" "$lt_cv_path_NM" >&6; }
6860 if test no != "$lt_cv_path_NM"; then
6861 NM=$lt_cv_path_NM
6862 else
6863 # Didn't find any BSD compatible name lister, look for dumpbin.
6864 if test -n "$DUMPBIN"; then :
6865 # Let the user override the test.
6866 else
6867 if test -n "$ac_tool_prefix"; then
6868 for ac_prog in dumpbin "link -dump"
6869 do
6870 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6871 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6873 printf %s "checking for $ac_word... " >&6; }
6874 if test ${ac_cv_prog_DUMPBIN+y}
6875 then :
6876 printf %s "(cached) " >&6
6877 else case e in #(
6878 e) if test -n "$DUMPBIN"; then
6879 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6880 else
6881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6882 for as_dir in $PATH
6883 do
6884 IFS=$as_save_IFS
6885 case $as_dir in #(((
6886 '') as_dir=./ ;;
6887 */) ;;
6888 *) as_dir=$as_dir/ ;;
6889 esac
6890 for ac_exec_ext in '' $ac_executable_extensions; do
6891 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6892 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6893 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6894 break 2
6895 fi
6896 done
6897 done
6898 IFS=$as_save_IFS
6899
6900 fi ;;
6901 esac
6902 fi
6903 DUMPBIN=$ac_cv_prog_DUMPBIN
6904 if test -n "$DUMPBIN"; then
6905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6906 printf "%s\n" "$DUMPBIN" >&6; }
6907 else
6908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6909 printf "%s\n" "no" >&6; }
6910 fi
6911
6912
6913 test -n "$DUMPBIN" && break
6914 done
6915 fi
6916 if test -z "$DUMPBIN"; then
6917 ac_ct_DUMPBIN=$DUMPBIN
6918 for ac_prog in dumpbin "link -dump"
6919 do
6920 # Extract the first word of "$ac_prog", so it can be a program name with args.
6921 set dummy $ac_prog; ac_word=$2
6922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6923 printf %s "checking for $ac_word... " >&6; }
6924 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
6925 then :
6926 printf %s "(cached) " >&6
6927 else case e in #(
6928 e) if test -n "$ac_ct_DUMPBIN"; then
6929 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6930 else
6931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6932 for as_dir in $PATH
6933 do
6934 IFS=$as_save_IFS
6935 case $as_dir in #(((
6936 '') as_dir=./ ;;
6937 */) ;;
6938 *) as_dir=$as_dir/ ;;
6939 esac
6940 for ac_exec_ext in '' $ac_executable_extensions; do
6941 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6942 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6943 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6944 break 2
6945 fi
6946 done
6947 done
6948 IFS=$as_save_IFS
6949
6950 fi ;;
6951 esac
6952 fi
6953 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6954 if test -n "$ac_ct_DUMPBIN"; then
6955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6956 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
6957 else
6958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6959 printf "%s\n" "no" >&6; }
6960 fi
6961
6962
6963 test -n "$ac_ct_DUMPBIN" && break
6964 done
6965
6966 if test "x$ac_ct_DUMPBIN" = x; then
6967 DUMPBIN=":"
6968 else
6969 case $cross_compiling:$ac_tool_warned in
6970 yes:)
6971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6972 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6973 ac_tool_warned=yes ;;
6974 esac
6975 DUMPBIN=$ac_ct_DUMPBIN
6976 fi
6977 fi
6978
6979 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
6980 *COFF*)
6981 DUMPBIN="$DUMPBIN -symbols -headers"
6982 ;;
6983 *)
6984 DUMPBIN=:
6985 ;;
6986 esac
6987 fi
6988
6989 if test : != "$DUMPBIN"; then
6990 NM=$DUMPBIN
6991 fi
6992 fi
6993 test -z "$NM" && NM=nm
6994
6995
6996
6997
6998
6999
7000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7001 printf %s "checking the name lister ($NM) interface... " >&6; }
7002 if test ${lt_cv_nm_interface+y}
7003 then :
7004 printf %s "(cached) " >&6
7005 else case e in #(
7006 e) lt_cv_nm_interface="BSD nm"
7007 echo "int some_variable = 0;" > conftest.$ac_ext
7008 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7009 (eval "$ac_compile" 2>conftest.err)
7010 cat conftest.err >&5
7011 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7012 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7013 cat conftest.err >&5
7014 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7015 cat conftest.out >&5
7016 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7017 lt_cv_nm_interface="MS dumpbin"
7018 fi
7019 rm -f conftest* ;;
7020 esac
7021 fi
7022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7023 printf "%s\n" "$lt_cv_nm_interface" >&6; }
7024
7025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7026 printf %s "checking whether ln -s works... " >&6; }
7027 LN_S=$as_ln_s
7028 if test "$LN_S" = "ln -s"; then
7029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7030 printf "%s\n" "yes" >&6; }
7031 else
7032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7033 printf "%s\n" "no, using $LN_S" >&6; }
7034 fi
7035
7036 # find the maximum length of command line arguments
7037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7038 printf %s "checking the maximum length of command line arguments... " >&6; }
7039 if test ${lt_cv_sys_max_cmd_len+y}
7040 then :
7041 printf %s "(cached) " >&6
7042 else case e in #(
7043 e) i=0
7044 teststring=ABCD
7045
7046 case $build_os in
7047 msdosdjgpp*)
7048 # On DJGPP, this test can blow up pretty badly due to problems in libc
7049 # (any single argument exceeding 2000 bytes causes a buffer overrun
7050 # during glob expansion). Even if it were fixed, the result of this
7051 # check would be larger than it should be.
7052 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7053 ;;
7054
7055 gnu* | ironclad*)
7056 # Under GNU Hurd and Ironclad, this test is not required because there
7057 # is no limit to the length of command line arguments.
7058 # Libtool will interpret -1 as no limit whatsoever
7059 lt_cv_sys_max_cmd_len=-1;
7060 ;;
7061
7062 cygwin* | mingw* | windows* | cegcc*)
7063 # On Win9x/ME, this test blows up -- it succeeds, but takes
7064 # about 5 minutes as the teststring grows exponentially.
7065 # Worse, since 9x/ME are not pre-emptively multitasking,
7066 # you end up with a "frozen" computer, even though with patience
7067 # the test eventually succeeds (with a max line length of 256k).
7068 # Instead, let's just punt: use the minimum linelength reported by
7069 # all of the supported platforms: 8192 (on NT/2K/XP).
7070 lt_cv_sys_max_cmd_len=8192;
7071 ;;
7072
7073 mint*)
7074 # On MiNT this can take a long time and run out of memory.
7075 lt_cv_sys_max_cmd_len=8192;
7076 ;;
7077
7078 amigaos*)
7079 # On AmigaOS with pdksh, this test takes hours, literally.
7080 # So we just punt and use a minimum line length of 8192.
7081 lt_cv_sys_max_cmd_len=8192;
7082 ;;
7083
7084 darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
7085 # This has been around since 386BSD, at least. Likely further.
7086 if test -x /sbin/sysctl; then
7087 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7088 elif test -x /usr/sbin/sysctl; then
7089 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7090 else
7091 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7092 fi
7093 # And add a safety zone
7094 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7095 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7096 ;;
7097
7098 interix*)
7099 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7100 lt_cv_sys_max_cmd_len=196608
7101 ;;
7102
7103 os2*)
7104 # The test takes a long time on OS/2.
7105 lt_cv_sys_max_cmd_len=8192
7106 ;;
7107
7108 osf*)
7109 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7110 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7111 # nice to cause kernel panics so lets avoid the loop below.
7112 # First set a reasonable default.
7113 lt_cv_sys_max_cmd_len=16384
7114 #
7115 if test -x /sbin/sysconfig; then
7116 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7117 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7118 esac
7119 fi
7120 ;;
7121 sco3.2v5*)
7122 lt_cv_sys_max_cmd_len=102400
7123 ;;
7124 sysv5* | sco5v6* | sysv4.2uw2*)
7125 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7126 if test -n "$kargmax"; then
7127 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
7128 else
7129 lt_cv_sys_max_cmd_len=32768
7130 fi
7131 ;;
7132 *)
7133 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7134 if test -n "$lt_cv_sys_max_cmd_len" && \
7135 test undefined != "$lt_cv_sys_max_cmd_len"; then
7136 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7137 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7138 else
7139 # Make teststring a little bigger before we do anything with it.
7140 # a 1K string should be a reasonable start.
7141 for i in 1 2 3 4 5 6 7 8; do
7142 teststring=$teststring$teststring
7143 done
7144 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7145 # If test is not a shell built-in, we'll probably end up computing a
7146 # maximum length that is only half of the actual maximum length, but
7147 # we can't tell.
7148 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
7149 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7150 test 17 != "$i" # 1/2 MB should be enough
7151 do
7152 i=`expr $i + 1`
7153 teststring=$teststring$teststring
7154 done
7155 # Only check the string length outside the loop.
7156 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7157 teststring=
7158 # Add a significant safety factor because C++ compilers can tack on
7159 # massive amounts of additional arguments before passing them to the
7160 # linker. It appears as though 1/2 is a usable value.
7161 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7162 fi
7163 ;;
7164 esac
7165 ;;
7166 esac
7167 fi
7168
7169 if test -n "$lt_cv_sys_max_cmd_len"; then
7170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7171 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
7172 else
7173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
7174 printf "%s\n" "none" >&6; }
7175 fi
7176 max_cmd_len=$lt_cv_sys_max_cmd_len
7177
7178
7179
7180
7181
7182
7183 : ${CP="cp -f"}
7184 : ${MV="mv -f"}
7185 : ${RM="rm -f"}
7186
7187 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7188 lt_unset=unset
7189 else
7190 lt_unset=false
7191 fi
7192
7193
7194
7195
7196
7197 # test EBCDIC or ASCII
7198 case `echo X|tr X '\101'` in
7199 A) # ASCII based system
7200 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7201 lt_SP2NL='tr \040 \012'
7202 lt_NL2SP='tr \015\012 \040\040'
7203 ;;
7204 *) # EBCDIC based system
7205 lt_SP2NL='tr \100 \n'
7206 lt_NL2SP='tr \r\n \100\100'
7207 ;;
7208 esac
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7219 printf %s "checking how to convert $build file names to $host format... " >&6; }
7220 if test ${lt_cv_to_host_file_cmd+y}
7221 then :
7222 printf %s "(cached) " >&6
7223 else case e in #(
7224 e) case $host in
7225 *-*-mingw* )
7226 case $build in
7227 *-*-mingw* | *-*-windows* ) # actually msys
7228 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7229 ;;
7230 *-*-cygwin* )
7231 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7232 ;;
7233 * ) # otherwise, assume *nix
7234 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7235 ;;
7236 esac
7237 ;;
7238 *-*-cygwin* )
7239 case $build in
7240 *-*-mingw* | *-*-windows* ) # actually msys
7241 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7242 ;;
7243 *-*-cygwin* )
7244 lt_cv_to_host_file_cmd=func_convert_file_noop
7245 ;;
7246 * ) # otherwise, assume *nix
7247 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7248 ;;
7249 esac
7250 ;;
7251 * ) # unhandled hosts (and "normal" native builds)
7252 lt_cv_to_host_file_cmd=func_convert_file_noop
7253 ;;
7254 esac
7255 ;;
7256 esac
7257 fi
7258
7259 to_host_file_cmd=$lt_cv_to_host_file_cmd
7260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7261 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
7262
7263
7264
7265
7266
7267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7268 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
7269 if test ${lt_cv_to_tool_file_cmd+y}
7270 then :
7271 printf %s "(cached) " >&6
7272 else case e in #(
7273 e) #assume ordinary cross tools, or native build.
7274 lt_cv_to_tool_file_cmd=func_convert_file_noop
7275 case $host in
7276 *-*-mingw* | *-*-windows* )
7277 case $build in
7278 *-*-mingw* | *-*-windows* ) # actually msys
7279 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7280 ;;
7281 esac
7282 ;;
7283 esac
7284 ;;
7285 esac
7286 fi
7287
7288 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7290 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
7291
7292
7293
7294
7295
7296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7297 printf %s "checking for $LD option to reload object files... " >&6; }
7298 if test ${lt_cv_ld_reload_flag+y}
7299 then :
7300 printf %s "(cached) " >&6
7301 else case e in #(
7302 e) lt_cv_ld_reload_flag='-r' ;;
7303 esac
7304 fi
7305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7306 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
7307 reload_flag=$lt_cv_ld_reload_flag
7308 case $reload_flag in
7309 "" | " "*) ;;
7310 *) reload_flag=" $reload_flag" ;;
7311 esac
7312 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7313 case $host_os in
7314 cygwin* | mingw* | windows* | pw32* | cegcc*)
7315 if test yes != "$GCC"; then
7316 reload_cmds=false
7317 fi
7318 ;;
7319 darwin*)
7320 if test yes = "$GCC"; then
7321 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
7322 else
7323 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7324 fi
7325 ;;
7326 esac
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336 # Extract the first word of "file", so it can be a program name with args.
7337 set dummy file; ac_word=$2
7338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7339 printf %s "checking for $ac_word... " >&6; }
7340 if test ${ac_cv_prog_FILECMD+y}
7341 then :
7342 printf %s "(cached) " >&6
7343 else case e in #(
7344 e) if test -n "$FILECMD"; then
7345 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
7346 else
7347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7348 for as_dir in $PATH
7349 do
7350 IFS=$as_save_IFS
7351 case $as_dir in #(((
7352 '') as_dir=./ ;;
7353 */) ;;
7354 *) as_dir=$as_dir/ ;;
7355 esac
7356 for ac_exec_ext in '' $ac_executable_extensions; do
7357 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7358 ac_cv_prog_FILECMD="file"
7359 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7360 break 2
7361 fi
7362 done
7363 done
7364 IFS=$as_save_IFS
7365
7366 test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":"
7367 fi ;;
7368 esac
7369 fi
7370 FILECMD=$ac_cv_prog_FILECMD
7371 if test -n "$FILECMD"; then
7372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
7373 printf "%s\n" "$FILECMD" >&6; }
7374 else
7375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7376 printf "%s\n" "no" >&6; }
7377 fi
7378
7379
7380
7381
7382
7383
7384
7385
7386 if test -n "$ac_tool_prefix"; then
7387 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7388 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7390 printf %s "checking for $ac_word... " >&6; }
7391 if test ${ac_cv_prog_OBJDUMP+y}
7392 then :
7393 printf %s "(cached) " >&6
7394 else case e in #(
7395 e) if test -n "$OBJDUMP"; then
7396 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7397 else
7398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7399 for as_dir in $PATH
7400 do
7401 IFS=$as_save_IFS
7402 case $as_dir in #(((
7403 '') as_dir=./ ;;
7404 */) ;;
7405 *) as_dir=$as_dir/ ;;
7406 esac
7407 for ac_exec_ext in '' $ac_executable_extensions; do
7408 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7409 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7410 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7411 break 2
7412 fi
7413 done
7414 done
7415 IFS=$as_save_IFS
7416
7417 fi ;;
7418 esac
7419 fi
7420 OBJDUMP=$ac_cv_prog_OBJDUMP
7421 if test -n "$OBJDUMP"; then
7422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7423 printf "%s\n" "$OBJDUMP" >&6; }
7424 else
7425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7426 printf "%s\n" "no" >&6; }
7427 fi
7428
7429
7430 fi
7431 if test -z "$ac_cv_prog_OBJDUMP"; then
7432 ac_ct_OBJDUMP=$OBJDUMP
7433 # Extract the first word of "objdump", so it can be a program name with args.
7434 set dummy objdump; ac_word=$2
7435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7436 printf %s "checking for $ac_word... " >&6; }
7437 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
7438 then :
7439 printf %s "(cached) " >&6
7440 else case e in #(
7441 e) if test -n "$ac_ct_OBJDUMP"; then
7442 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7443 else
7444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7445 for as_dir in $PATH
7446 do
7447 IFS=$as_save_IFS
7448 case $as_dir in #(((
7449 '') as_dir=./ ;;
7450 */) ;;
7451 *) as_dir=$as_dir/ ;;
7452 esac
7453 for ac_exec_ext in '' $ac_executable_extensions; do
7454 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7455 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7456 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7457 break 2
7458 fi
7459 done
7460 done
7461 IFS=$as_save_IFS
7462
7463 fi ;;
7464 esac
7465 fi
7466 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7467 if test -n "$ac_ct_OBJDUMP"; then
7468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7469 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
7470 else
7471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7472 printf "%s\n" "no" >&6; }
7473 fi
7474
7475 if test "x$ac_ct_OBJDUMP" = x; then
7476 OBJDUMP="false"
7477 else
7478 case $cross_compiling:$ac_tool_warned in
7479 yes:)
7480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7481 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7482 ac_tool_warned=yes ;;
7483 esac
7484 OBJDUMP=$ac_ct_OBJDUMP
7485 fi
7486 else
7487 OBJDUMP="$ac_cv_prog_OBJDUMP"
7488 fi
7489
7490 test -z "$OBJDUMP" && OBJDUMP=objdump
7491
7492
7493
7494
7495
7496
7497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7498 printf %s "checking how to recognize dependent libraries... " >&6; }
7499 if test ${lt_cv_deplibs_check_method+y}
7500 then :
7501 printf %s "(cached) " >&6
7502 else case e in #(
7503 e) lt_cv_file_magic_cmd='$MAGIC_CMD'
7504 lt_cv_file_magic_test_file=
7505 lt_cv_deplibs_check_method='unknown'
7506 # Need to set the preceding variable on all platforms that support
7507 # interlibrary dependencies.
7508 # 'none' -- dependencies not supported.
7509 # 'unknown' -- same as none, but documents that we really don't know.
7510 # 'pass_all' -- all dependencies passed with no checks.
7511 # 'file_magic [[regex]]' -- check by looking for files in library path
7512 # that responds to the $file_magic_cmd with a given extended regex.
7513 # If you have 'file' or equivalent on your system and you're not sure
7514 # whether 'pass_all' will *always* work, you probably want this one.
7515
7516 case $host_os in
7517 aix[4-9]*)
7518 lt_cv_deplibs_check_method=pass_all
7519 ;;
7520
7521 beos*)
7522 lt_cv_deplibs_check_method=pass_all
7523 ;;
7524
7525 bsdi[45]*)
7526 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7527 lt_cv_file_magic_cmd='$FILECMD -L'
7528 lt_cv_file_magic_test_file=/shlib/libc.so
7529 ;;
7530
7531 cygwin*)
7532 # func_win32_libid is a shell function defined in ltmain.sh
7533 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7534 lt_cv_file_magic_cmd='func_win32_libid'
7535 ;;
7536
7537 mingw* | windows* | pw32*)
7538 # Base MSYS/MinGW do not provide the 'file' command needed by
7539 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7540 # unless we find 'file', for example because we are cross-compiling.
7541 if ( file / ) >/dev/null 2>&1; then
7542 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7543 lt_cv_file_magic_cmd='func_win32_libid'
7544 else
7545 # Keep this pattern in sync with the one in func_win32_libid.
7546 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
7547 lt_cv_file_magic_cmd='$OBJDUMP -f'
7548 fi
7549 ;;
7550
7551 cegcc*)
7552 # use the weaker test based on 'objdump'. See mingw*.
7553 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7554 lt_cv_file_magic_cmd='$OBJDUMP -f'
7555 ;;
7556
7557 darwin* | rhapsody*)
7558 lt_cv_deplibs_check_method=pass_all
7559 ;;
7560
7561 freebsd* | dragonfly* | midnightbsd*)
7562 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7563 case $host_cpu in
7564 i*86 )
7565 # Not sure whether the presence of OpenBSD here was a mistake.
7566 # Let's accept both of them until this is cleared up.
7567 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7568 lt_cv_file_magic_cmd=$FILECMD
7569 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7570 ;;
7571 esac
7572 else
7573 lt_cv_deplibs_check_method=pass_all
7574 fi
7575 ;;
7576
7577 haiku*)
7578 lt_cv_deplibs_check_method=pass_all
7579 ;;
7580
7581 hpux10.20* | hpux11*)
7582 lt_cv_file_magic_cmd=$FILECMD
7583 case $host_cpu in
7584 ia64*)
7585 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7586 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7587 ;;
7588 hppa*64*)
7589 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]'
7590 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7591 ;;
7592 *)
7593 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7594 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7595 ;;
7596 esac
7597 ;;
7598
7599 interix[3-9]*)
7600 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7601 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7602 ;;
7603
7604 irix5* | irix6* | nonstopux*)
7605 case $LD in
7606 *-32|*"-32 ") libmagic=32-bit;;
7607 *-n32|*"-n32 ") libmagic=N32;;
7608 *-64|*"-64 ") libmagic=64-bit;;
7609 *) libmagic=never-match;;
7610 esac
7611 lt_cv_deplibs_check_method=pass_all
7612 ;;
7613
7614 # This must be glibc/ELF.
7615 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7616 lt_cv_deplibs_check_method=pass_all
7617 ;;
7618
7619 *-mlibc)
7620 lt_cv_deplibs_check_method=pass_all
7621 ;;
7622
7623 netbsd* | netbsdelf*-gnu)
7624 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7625 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7626 else
7627 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7628 fi
7629 ;;
7630
7631 newos6*)
7632 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7633 lt_cv_file_magic_cmd=$FILECMD
7634 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7635 ;;
7636
7637 *nto* | *qnx*)
7638 lt_cv_deplibs_check_method=pass_all
7639 ;;
7640
7641 openbsd*)
7642 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7643 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7644 else
7645 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7646 fi
7647 ;;
7648
7649 osf3* | osf4* | osf5*)
7650 lt_cv_deplibs_check_method=pass_all
7651 ;;
7652
7653 rdos*)
7654 lt_cv_deplibs_check_method=pass_all
7655 ;;
7656
7657 serenity*)
7658 lt_cv_deplibs_check_method=pass_all
7659 ;;
7660
7661 solaris*)
7662 lt_cv_deplibs_check_method=pass_all
7663 ;;
7664
7665 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7666 lt_cv_deplibs_check_method=pass_all
7667 ;;
7668
7669 sysv4 | sysv4.3*)
7670 case $host_vendor in
7671 motorola)
7672 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]'
7673 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7674 ;;
7675 ncr)
7676 lt_cv_deplibs_check_method=pass_all
7677 ;;
7678 sequent)
7679 lt_cv_file_magic_cmd='/bin/file'
7680 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7681 ;;
7682 sni)
7683 lt_cv_file_magic_cmd='/bin/file'
7684 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7685 lt_cv_file_magic_test_file=/lib/libc.so
7686 ;;
7687 siemens)
7688 lt_cv_deplibs_check_method=pass_all
7689 ;;
7690 pc)
7691 lt_cv_deplibs_check_method=pass_all
7692 ;;
7693 esac
7694 ;;
7695
7696 tpf*)
7697 lt_cv_deplibs_check_method=pass_all
7698 ;;
7699 os2*)
7700 lt_cv_deplibs_check_method=pass_all
7701 ;;
7702 esac
7703 ;;
7704 esac
7705 fi
7706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7707 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
7708
7709 file_magic_glob=
7710 want_nocaseglob=no
7711 if test "$build" = "$host"; then
7712 case $host_os in
7713 mingw* | windows* | pw32*)
7714 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7715 want_nocaseglob=yes
7716 else
7717 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7718 fi
7719 ;;
7720 esac
7721 fi
7722
7723 file_magic_cmd=$lt_cv_file_magic_cmd
7724 deplibs_check_method=$lt_cv_deplibs_check_method
7725 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748 if test -n "$ac_tool_prefix"; then
7749 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7750 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7752 printf %s "checking for $ac_word... " >&6; }
7753 if test ${ac_cv_prog_DLLTOOL+y}
7754 then :
7755 printf %s "(cached) " >&6
7756 else case e in #(
7757 e) if test -n "$DLLTOOL"; then
7758 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7759 else
7760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7761 for as_dir in $PATH
7762 do
7763 IFS=$as_save_IFS
7764 case $as_dir in #(((
7765 '') as_dir=./ ;;
7766 */) ;;
7767 *) as_dir=$as_dir/ ;;
7768 esac
7769 for ac_exec_ext in '' $ac_executable_extensions; do
7770 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7771 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7772 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7773 break 2
7774 fi
7775 done
7776 done
7777 IFS=$as_save_IFS
7778
7779 fi ;;
7780 esac
7781 fi
7782 DLLTOOL=$ac_cv_prog_DLLTOOL
7783 if test -n "$DLLTOOL"; then
7784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7785 printf "%s\n" "$DLLTOOL" >&6; }
7786 else
7787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7788 printf "%s\n" "no" >&6; }
7789 fi
7790
7791
7792 fi
7793 if test -z "$ac_cv_prog_DLLTOOL"; then
7794 ac_ct_DLLTOOL=$DLLTOOL
7795 # Extract the first word of "dlltool", so it can be a program name with args.
7796 set dummy dlltool; ac_word=$2
7797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7798 printf %s "checking for $ac_word... " >&6; }
7799 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
7800 then :
7801 printf %s "(cached) " >&6
7802 else case e in #(
7803 e) if test -n "$ac_ct_DLLTOOL"; then
7804 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7805 else
7806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7807 for as_dir in $PATH
7808 do
7809 IFS=$as_save_IFS
7810 case $as_dir in #(((
7811 '') as_dir=./ ;;
7812 */) ;;
7813 *) as_dir=$as_dir/ ;;
7814 esac
7815 for ac_exec_ext in '' $ac_executable_extensions; do
7816 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7817 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7818 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7819 break 2
7820 fi
7821 done
7822 done
7823 IFS=$as_save_IFS
7824
7825 fi ;;
7826 esac
7827 fi
7828 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7829 if test -n "$ac_ct_DLLTOOL"; then
7830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7831 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
7832 else
7833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7834 printf "%s\n" "no" >&6; }
7835 fi
7836
7837 if test "x$ac_ct_DLLTOOL" = x; then
7838 DLLTOOL="false"
7839 else
7840 case $cross_compiling:$ac_tool_warned in
7841 yes:)
7842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7843 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7844 ac_tool_warned=yes ;;
7845 esac
7846 DLLTOOL=$ac_ct_DLLTOOL
7847 fi
7848 else
7849 DLLTOOL="$ac_cv_prog_DLLTOOL"
7850 fi
7851
7852 test -z "$DLLTOOL" && DLLTOOL=dlltool
7853
7854
7855
7856
7857
7858
7859
7860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7861 printf %s "checking how to associate runtime and link libraries... " >&6; }
7862 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
7863 then :
7864 printf %s "(cached) " >&6
7865 else case e in #(
7866 e) lt_cv_sharedlib_from_linklib_cmd='unknown'
7867
7868 case $host_os in
7869 cygwin* | mingw* | windows* | pw32* | cegcc*)
7870 # two different shell functions defined in ltmain.sh;
7871 # decide which one to use based on capabilities of $DLLTOOL
7872 case `$DLLTOOL --help 2>&1` in
7873 *--identify-strict*)
7874 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7875 ;;
7876 *)
7877 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7878 ;;
7879 esac
7880 ;;
7881 *)
7882 # fallback: assume linklib IS sharedlib
7883 lt_cv_sharedlib_from_linklib_cmd=$ECHO
7884 ;;
7885 esac
7886 ;;
7887 esac
7888 fi
7889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7890 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7891 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7892 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7893
7894
7895
7896
7897
7898
7899
7900 if test -n "$ac_tool_prefix"; then
7901 for ac_prog in ar
7902 do
7903 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7904 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7906 printf %s "checking for $ac_word... " >&6; }
7907 if test ${ac_cv_prog_AR+y}
7908 then :
7909 printf %s "(cached) " >&6
7910 else case e in #(
7911 e) if test -n "$AR"; then
7912 ac_cv_prog_AR="$AR" # Let the user override the test.
7913 else
7914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7915 for as_dir in $PATH
7916 do
7917 IFS=$as_save_IFS
7918 case $as_dir in #(((
7919 '') as_dir=./ ;;
7920 */) ;;
7921 *) as_dir=$as_dir/ ;;
7922 esac
7923 for ac_exec_ext in '' $ac_executable_extensions; do
7924 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7925 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7926 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7927 break 2
7928 fi
7929 done
7930 done
7931 IFS=$as_save_IFS
7932
7933 fi ;;
7934 esac
7935 fi
7936 AR=$ac_cv_prog_AR
7937 if test -n "$AR"; then
7938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7939 printf "%s\n" "$AR" >&6; }
7940 else
7941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7942 printf "%s\n" "no" >&6; }
7943 fi
7944
7945
7946 test -n "$AR" && break
7947 done
7948 fi
7949 if test -z "$AR"; then
7950 ac_ct_AR=$AR
7951 for ac_prog in ar
7952 do
7953 # Extract the first word of "$ac_prog", so it can be a program name with args.
7954 set dummy $ac_prog; ac_word=$2
7955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7956 printf %s "checking for $ac_word... " >&6; }
7957 if test ${ac_cv_prog_ac_ct_AR+y}
7958 then :
7959 printf %s "(cached) " >&6
7960 else case e in #(
7961 e) if test -n "$ac_ct_AR"; then
7962 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7963 else
7964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7965 for as_dir in $PATH
7966 do
7967 IFS=$as_save_IFS
7968 case $as_dir in #(((
7969 '') as_dir=./ ;;
7970 */) ;;
7971 *) as_dir=$as_dir/ ;;
7972 esac
7973 for ac_exec_ext in '' $ac_executable_extensions; do
7974 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7975 ac_cv_prog_ac_ct_AR="$ac_prog"
7976 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7977 break 2
7978 fi
7979 done
7980 done
7981 IFS=$as_save_IFS
7982
7983 fi ;;
7984 esac
7985 fi
7986 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7987 if test -n "$ac_ct_AR"; then
7988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7989 printf "%s\n" "$ac_ct_AR" >&6; }
7990 else
7991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7992 printf "%s\n" "no" >&6; }
7993 fi
7994
7995
7996 test -n "$ac_ct_AR" && break
7997 done
7998
7999 if test "x$ac_ct_AR" = x; then
8000 AR="false"
8001 else
8002 case $cross_compiling:$ac_tool_warned in
8003 yes:)
8004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8005 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8006 ac_tool_warned=yes ;;
8007 esac
8008 AR=$ac_ct_AR
8009 fi
8010 fi
8011
8012 : ${AR=ar}
8013
8014
8015
8016
8017
8018
8019 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
8020 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
8021 # higher priority because that's what people were doing historically (setting
8022 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
8023 # variable obsoleted/removed.
8024
8025 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
8026 lt_ar_flags=$AR_FLAGS
8027
8028
8029
8030
8031
8032
8033 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
8034 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
8035
8036
8037
8038
8039
8040
8041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8042 printf %s "checking for archiver @FILE support... " >&6; }
8043 if test ${lt_cv_ar_at_file+y}
8044 then :
8045 printf %s "(cached) " >&6
8046 else case e in #(
8047 e) lt_cv_ar_at_file=no
8048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8049 /* end confdefs.h. */
8050
8051 int
8052 main (void)
8053 {
8054
8055 ;
8056 return 0;
8057 }
8058 _ACEOF
8059 if ac_fn_c_try_compile "$LINENO"
8060 then :
8061 echo conftest.$ac_objext > conftest.lst
8062 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8063 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8064 (eval $lt_ar_try) 2>&5
8065 ac_status=$?
8066 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8067 test $ac_status = 0; }
8068 if test 0 -eq "$ac_status"; then
8069 # Ensure the archiver fails upon bogus file names.
8070 rm -f conftest.$ac_objext libconftest.a
8071 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8072 (eval $lt_ar_try) 2>&5
8073 ac_status=$?
8074 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8075 test $ac_status = 0; }
8076 if test 0 -ne "$ac_status"; then
8077 lt_cv_ar_at_file=@
8078 fi
8079 fi
8080 rm -f conftest.* libconftest.a
8081
8082 fi
8083 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8084 ;;
8085 esac
8086 fi
8087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8088 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
8089
8090 if test no = "$lt_cv_ar_at_file"; then
8091 archiver_list_spec=
8092 else
8093 archiver_list_spec=$lt_cv_ar_at_file
8094 fi
8095
8096
8097
8098
8099
8100
8101
8102 if test -n "$ac_tool_prefix"; then
8103 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8104 set dummy ${ac_tool_prefix}strip; ac_word=$2
8105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8106 printf %s "checking for $ac_word... " >&6; }
8107 if test ${ac_cv_prog_STRIP+y}
8108 then :
8109 printf %s "(cached) " >&6
8110 else case e in #(
8111 e) if test -n "$STRIP"; then
8112 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8113 else
8114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8115 for as_dir in $PATH
8116 do
8117 IFS=$as_save_IFS
8118 case $as_dir in #(((
8119 '') as_dir=./ ;;
8120 */) ;;
8121 *) as_dir=$as_dir/ ;;
8122 esac
8123 for ac_exec_ext in '' $ac_executable_extensions; do
8124 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8125 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8126 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8127 break 2
8128 fi
8129 done
8130 done
8131 IFS=$as_save_IFS
8132
8133 fi ;;
8134 esac
8135 fi
8136 STRIP=$ac_cv_prog_STRIP
8137 if test -n "$STRIP"; then
8138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8139 printf "%s\n" "$STRIP" >&6; }
8140 else
8141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8142 printf "%s\n" "no" >&6; }
8143 fi
8144
8145
8146 fi
8147 if test -z "$ac_cv_prog_STRIP"; then
8148 ac_ct_STRIP=$STRIP
8149 # Extract the first word of "strip", so it can be a program name with args.
8150 set dummy strip; ac_word=$2
8151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8152 printf %s "checking for $ac_word... " >&6; }
8153 if test ${ac_cv_prog_ac_ct_STRIP+y}
8154 then :
8155 printf %s "(cached) " >&6
8156 else case e in #(
8157 e) if test -n "$ac_ct_STRIP"; then
8158 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8159 else
8160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8161 for as_dir in $PATH
8162 do
8163 IFS=$as_save_IFS
8164 case $as_dir in #(((
8165 '') as_dir=./ ;;
8166 */) ;;
8167 *) as_dir=$as_dir/ ;;
8168 esac
8169 for ac_exec_ext in '' $ac_executable_extensions; do
8170 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8171 ac_cv_prog_ac_ct_STRIP="strip"
8172 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8173 break 2
8174 fi
8175 done
8176 done
8177 IFS=$as_save_IFS
8178
8179 fi ;;
8180 esac
8181 fi
8182 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8183 if test -n "$ac_ct_STRIP"; then
8184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8185 printf "%s\n" "$ac_ct_STRIP" >&6; }
8186 else
8187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8188 printf "%s\n" "no" >&6; }
8189 fi
8190
8191 if test "x$ac_ct_STRIP" = x; then
8192 STRIP=":"
8193 else
8194 case $cross_compiling:$ac_tool_warned in
8195 yes:)
8196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8197 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8198 ac_tool_warned=yes ;;
8199 esac
8200 STRIP=$ac_ct_STRIP
8201 fi
8202 else
8203 STRIP="$ac_cv_prog_STRIP"
8204 fi
8205
8206 test -z "$STRIP" && STRIP=:
8207
8208
8209
8210
8211
8212
8213
8214 test -z "$RANLIB" && RANLIB=:
8215
8216
8217
8218
8219
8220
8221 # Determine commands to create old-style static archives.
8222 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8223 old_postinstall_cmds='chmod 644 $oldlib'
8224 old_postuninstall_cmds=
8225
8226 if test -n "$RANLIB"; then
8227 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8228 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8229 fi
8230
8231 case $host_os in
8232 darwin*)
8233 lock_old_archive_extraction=yes ;;
8234 *)
8235 lock_old_archive_extraction=no ;;
8236 esac
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276 # If no C compiler was specified, use CC.
8277 LTCC=${LTCC-"$CC"}
8278
8279 # If no C compiler flags were specified, use CFLAGS.
8280 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8281
8282 # Allow CC to be a program name with arguments.
8283 compiler=$CC
8284
8285
8286 # Check for command to grab the raw symbol name followed by C symbol from nm.
8287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8288 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
8289 if test ${lt_cv_sys_global_symbol_pipe+y}
8290 then :
8291 printf %s "(cached) " >&6
8292 else case e in #(
8293 e)
8294 # These are sane defaults that work on at least a few old systems.
8295 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8296
8297 # Character class describing NM global symbol codes.
8298 symcode='[BCDEGRST]'
8299
8300 # Regexp to match symbols that can be accessed directly from C.
8301 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8302
8303 # Define system-specific variables.
8304 case $host_os in
8305 aix*)
8306 symcode='[BCDT]'
8307 ;;
8308 cygwin* | mingw* | windows* | pw32* | cegcc*)
8309 symcode='[ABCDGISTW]'
8310 ;;
8311 hpux*)
8312 if test ia64 = "$host_cpu"; then
8313 symcode='[ABCDEGRST]'
8314 fi
8315 ;;
8316 irix* | nonstopux*)
8317 symcode='[BCDEGRST]'
8318 ;;
8319 osf*)
8320 symcode='[BCDEGQRST]'
8321 ;;
8322 solaris*)
8323 symcode='[BCDRT]'
8324 ;;
8325 sco3.2v5*)
8326 symcode='[DT]'
8327 ;;
8328 sysv4.2uw2*)
8329 symcode='[DT]'
8330 ;;
8331 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8332 symcode='[ABDT]'
8333 ;;
8334 sysv4)
8335 symcode='[DFNSTU]'
8336 ;;
8337 esac
8338
8339 # If we're using GNU nm, then use its standard symbol codes.
8340 case `$NM -V 2>&1` in
8341 *GNU* | *'with BFD'*)
8342 symcode='[ABCDGIRSTW]' ;;
8343 esac
8344
8345 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8346 # Gets list of data symbols to import.
8347 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
8348 # Adjust the below global symbol transforms to fixup imported variables.
8349 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
8350 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
8351 lt_c_name_lib_hook="\
8352 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
8353 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
8354 else
8355 # Disable hooks by default.
8356 lt_cv_sys_global_symbol_to_import=
8357 lt_cdecl_hook=
8358 lt_c_name_hook=
8359 lt_c_name_lib_hook=
8360 fi
8361
8362 # Transform an extracted symbol line into a proper C declaration.
8363 # Some systems (esp. on ia64) link data and code symbols differently,
8364 # so use this general approach.
8365 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
8366 $lt_cdecl_hook\
8367 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
8368 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
8369
8370 # Transform an extracted symbol line into symbol name and symbol address
8371 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
8372 $lt_c_name_hook\
8373 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8374 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
8375
8376 # Transform an extracted symbol line into symbol name with lib prefix and
8377 # symbol address.
8378 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
8379 $lt_c_name_lib_hook\
8380 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8381 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
8382 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
8383
8384 # Handle CRLF in mingw tool chain
8385 opt_cr=
8386 case $build_os in
8387 mingw* | windows*)
8388 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8389 ;;
8390 esac
8391
8392 # Try without a prefix underscore, then with it.
8393 for ac_symprfx in "" "_"; do
8394
8395 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8396 symxfrm="\\1 $ac_symprfx\\2 \\2"
8397
8398 # Write the raw and C identifiers.
8399 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8400 # Fake it for dumpbin and say T for any non-static function,
8401 # D for any global variable and I for any imported variable.
8402 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
8403 # which start with @ or ?.
8404 lt_cv_sys_global_symbol_pipe="$AWK '"\
8405 " {last_section=section; section=\$ 3};"\
8406 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8407 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8408 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8409 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8410 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8411 " \$ 0!~/External *\|/{next};"\
8412 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8413 " {if(hide[section]) next};"\
8414 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8415 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8416 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8417 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8418 " ' prfx=^$ac_symprfx"
8419 else
8420 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8421 fi
8422 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
8423
8424 # Check to see that the pipe works correctly.
8425 pipe_works=no
8426
8427 rm -f conftest*
8428 cat > conftest.$ac_ext <<_LT_EOF
8429 #ifdef __cplusplus
8430 extern "C" {
8431 #endif
8432 char nm_test_var;
8433 void nm_test_func(void);
8434 void nm_test_func(void){}
8435 #ifdef __cplusplus
8436 }
8437 #endif
8438 int main(void){nm_test_var='a';nm_test_func();return(0);}
8439 _LT_EOF
8440
8441 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8442 (eval $ac_compile) 2>&5
8443 ac_status=$?
8444 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8445 test $ac_status = 0; }; then
8446 # Now try to grab the symbols.
8447 nlist=conftest.nm
8448 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
8449 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
8450 # Try sorting and uniquifying the output.
8451 if sort "$nlist" | uniq > "$nlist"T; then
8452 mv -f "$nlist"T "$nlist"
8453 else
8454 rm -f "$nlist"T
8455 fi
8456
8457 # Make sure that we snagged all the symbols we need.
8458 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8459 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8460 cat <<_LT_EOF > conftest.$ac_ext
8461 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8462 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8463 /* DATA imports from DLLs on WIN32 can't be const, because runtime
8464 relocations are performed -- see ld's documentation on pseudo-relocs. */
8465 # define LT_DLSYM_CONST
8466 #elif defined __osf__
8467 /* This system does not cope well with relocations in const data. */
8468 # define LT_DLSYM_CONST
8469 #else
8470 # define LT_DLSYM_CONST const
8471 #endif
8472
8473 #ifdef __cplusplus
8474 extern "C" {
8475 #endif
8476
8477 _LT_EOF
8478 # Now generate the symbol file.
8479 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8480
8481 cat <<_LT_EOF >> conftest.$ac_ext
8482
8483 /* The mapping between symbol names and symbols. */
8484 LT_DLSYM_CONST struct {
8485 const char *name;
8486 void *address;
8487 }
8488 lt__PROGRAM__LTX_preloaded_symbols[] =
8489 {
8490 { "@PROGRAM@", (void *) 0 },
8491 _LT_EOF
8492 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8493 cat <<\_LT_EOF >> conftest.$ac_ext
8494 {0, (void *) 0}
8495 };
8496
8497 /* This works around a problem in FreeBSD linker */
8498 #ifdef FREEBSD_WORKAROUND
8499 static const void *lt_preloaded_setup() {
8500 return lt__PROGRAM__LTX_preloaded_symbols;
8501 }
8502 #endif
8503
8504 #ifdef __cplusplus
8505 }
8506 #endif
8507 _LT_EOF
8508 # Now try linking the two files.
8509 mv conftest.$ac_objext conftstm.$ac_objext
8510 lt_globsym_save_LIBS=$LIBS
8511 lt_globsym_save_CFLAGS=$CFLAGS
8512 LIBS=conftstm.$ac_objext
8513 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8514 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8515 (eval $ac_link) 2>&5
8516 ac_status=$?
8517 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8518 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8519 pipe_works=yes
8520 fi
8521 LIBS=$lt_globsym_save_LIBS
8522 CFLAGS=$lt_globsym_save_CFLAGS
8523 else
8524 echo "cannot find nm_test_func in $nlist" >&5
8525 fi
8526 else
8527 echo "cannot find nm_test_var in $nlist" >&5
8528 fi
8529 else
8530 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8531 fi
8532 else
8533 echo "$progname: failed program was:" >&5
8534 cat conftest.$ac_ext >&5
8535 fi
8536 rm -rf conftest* conftst*
8537
8538 # Do not use the global_symbol_pipe unless it works.
8539 if test yes = "$pipe_works"; then
8540 break
8541 else
8542 lt_cv_sys_global_symbol_pipe=
8543 fi
8544 done
8545 ;;
8546 esac
8547 fi
8548
8549 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8550 lt_cv_sys_global_symbol_to_cdecl=
8551 fi
8552 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8554 printf "%s\n" "failed" >&6; }
8555 else
8556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8557 printf "%s\n" "ok" >&6; }
8558 fi
8559
8560 # Response file support.
8561 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8562 nm_file_list_spec='@'
8563 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8564 nm_file_list_spec='@'
8565 fi
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8604 printf %s "checking for sysroot... " >&6; }
8605
8606 # Check whether --with-sysroot was given.
8607 if test ${with_sysroot+y}
8608 then :
8609 withval=$with_sysroot;
8610 else case e in #(
8611 e) with_sysroot=no ;;
8612 esac
8613 fi
8614
8615
8616 lt_sysroot=
8617 case $with_sysroot in #(
8618 yes)
8619 if test yes = "$GCC"; then
8620 # Trim trailing / since we'll always append absolute paths and we want
8621 # to avoid //, if only for less confusing output for the user.
8622 lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`
8623 fi
8624 ;; #(
8625 /*)
8626 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
8627 ;; #(
8628 no|'')
8629 ;; #(
8630 *)
8631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8632 printf "%s\n" "$with_sysroot" >&6; }
8633 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8634 ;;
8635 esac
8636
8637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8638 printf "%s\n" "${lt_sysroot:-no}" >&6; }
8639
8640
8641
8642
8643
8644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8645 printf %s "checking for a working dd... " >&6; }
8646 if test ${ac_cv_path_lt_DD+y}
8647 then :
8648 printf %s "(cached) " >&6
8649 else case e in #(
8650 e) printf 0123456789abcdef0123456789abcdef >conftest.i
8651 cat conftest.i conftest.i >conftest2.i
8652 : ${lt_DD:=$DD}
8653 if test -z "$lt_DD"; then
8654 ac_path_lt_DD_found=false
8655 # Loop through the user's path and test for each of PROGNAME-LIST
8656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8657 for as_dir in $PATH
8658 do
8659 IFS=$as_save_IFS
8660 case $as_dir in #(((
8661 '') as_dir=./ ;;
8662 */) ;;
8663 *) as_dir=$as_dir/ ;;
8664 esac
8665 for ac_prog in dd
8666 do
8667 for ac_exec_ext in '' $ac_executable_extensions; do
8668 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
8669 as_fn_executable_p "$ac_path_lt_DD" || continue
8670 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8671 cmp -s conftest.i conftest.out \
8672 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8673 fi
8674 $ac_path_lt_DD_found && break 3
8675 done
8676 done
8677 done
8678 IFS=$as_save_IFS
8679 if test -z "$ac_cv_path_lt_DD"; then
8680 :
8681 fi
8682 else
8683 ac_cv_path_lt_DD=$lt_DD
8684 fi
8685
8686 rm -f conftest.i conftest2.i conftest.out ;;
8687 esac
8688 fi
8689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8690 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
8691
8692
8693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8694 printf %s "checking how to truncate binary pipes... " >&6; }
8695 if test ${lt_cv_truncate_bin+y}
8696 then :
8697 printf %s "(cached) " >&6
8698 else case e in #(
8699 e) printf 0123456789abcdef0123456789abcdef >conftest.i
8700 cat conftest.i conftest.i >conftest2.i
8701 lt_cv_truncate_bin=
8702 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8703 cmp -s conftest.i conftest.out \
8704 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8705 fi
8706 rm -f conftest.i conftest2.i conftest.out
8707 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
8708 esac
8709 fi
8710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8711 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
8712
8713
8714
8715
8716
8717
8718
8719 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
8720 func_cc_basename ()
8721 {
8722 for cc_temp in $*""; do
8723 case $cc_temp in
8724 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8725 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8726 \-*) ;;
8727 *) break;;
8728 esac
8729 done
8730 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8731 }
8732
8733 # Check whether --enable-libtool-lock was given.
8734 if test ${enable_libtool_lock+y}
8735 then :
8736 enableval=$enable_libtool_lock;
8737 fi
8738
8739 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8740
8741 # Some flags need to be propagated to the compiler or linker for good
8742 # libtool support.
8743 case $host in
8744 ia64-*-hpux*)
8745 # Find out what ABI is being produced by ac_compile, and set mode
8746 # options accordingly.
8747 echo 'int i;' > conftest.$ac_ext
8748 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8749 (eval $ac_compile) 2>&5
8750 ac_status=$?
8751 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8752 test $ac_status = 0; }; then
8753 case `$FILECMD conftest.$ac_objext` in
8754 *ELF-32*)
8755 HPUX_IA64_MODE=32
8756 ;;
8757 *ELF-64*)
8758 HPUX_IA64_MODE=64
8759 ;;
8760 esac
8761 fi
8762 rm -rf conftest*
8763 ;;
8764 *-*-irix6*)
8765 # Find out what ABI is being produced by ac_compile, and set linker
8766 # options accordingly.
8767 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8768 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8769 (eval $ac_compile) 2>&5
8770 ac_status=$?
8771 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8772 test $ac_status = 0; }; then
8773 if test yes = "$lt_cv_prog_gnu_ld"; then
8774 case `$FILECMD conftest.$ac_objext` in
8775 *32-bit*)
8776 LD="${LD-ld} -melf32bsmip"
8777 ;;
8778 *N32*)
8779 LD="${LD-ld} -melf32bmipn32"
8780 ;;
8781 *64-bit*)
8782 LD="${LD-ld} -melf64bmip"
8783 ;;
8784 esac
8785 else
8786 case `$FILECMD conftest.$ac_objext` in
8787 *32-bit*)
8788 LD="${LD-ld} -32"
8789 ;;
8790 *N32*)
8791 LD="${LD-ld} -n32"
8792 ;;
8793 *64-bit*)
8794 LD="${LD-ld} -64"
8795 ;;
8796 esac
8797 fi
8798 fi
8799 rm -rf conftest*
8800 ;;
8801
8802 mips64*-*linux*)
8803 # Find out what ABI is being produced by ac_compile, and set linker
8804 # options accordingly.
8805 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8806 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8807 (eval $ac_compile) 2>&5
8808 ac_status=$?
8809 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8810 test $ac_status = 0; }; then
8811 emul=elf
8812 case `$FILECMD conftest.$ac_objext` in
8813 *32-bit*)
8814 emul="${emul}32"
8815 ;;
8816 *64-bit*)
8817 emul="${emul}64"
8818 ;;
8819 esac
8820 case `$FILECMD conftest.$ac_objext` in
8821 *MSB*)
8822 emul="${emul}btsmip"
8823 ;;
8824 *LSB*)
8825 emul="${emul}ltsmip"
8826 ;;
8827 esac
8828 case `$FILECMD conftest.$ac_objext` in
8829 *N32*)
8830 emul="${emul}n32"
8831 ;;
8832 esac
8833 LD="${LD-ld} -m $emul"
8834 fi
8835 rm -rf conftest*
8836 ;;
8837
8838 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8839 s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
8840 # Find out what ABI is being produced by ac_compile, and set linker
8841 # options accordingly. Note that the listed cases only cover the
8842 # situations where additional linker options are needed (such as when
8843 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8844 # vice versa); the common cases where no linker options are needed do
8845 # not appear in the list.
8846 echo 'int i;' > conftest.$ac_ext
8847 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8848 (eval $ac_compile) 2>&5
8849 ac_status=$?
8850 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8851 test $ac_status = 0; }; then
8852 case `$FILECMD conftest.o` in
8853 *32-bit*)
8854 case $host in
8855 x86_64-*kfreebsd*-gnu)
8856 LD="${LD-ld} -m elf_i386_fbsd"
8857 ;;
8858 x86_64-*linux*|x86_64-gnu*)
8859 case `$FILECMD conftest.o` in
8860 *x86-64*)
8861 LD="${LD-ld} -m elf32_x86_64"
8862 ;;
8863 *)
8864 LD="${LD-ld} -m elf_i386"
8865 ;;
8866 esac
8867 ;;
8868 powerpc64le-*linux*)
8869 LD="${LD-ld} -m elf32lppclinux"
8870 ;;
8871 powerpc64-*linux*)
8872 LD="${LD-ld} -m elf32ppclinux"
8873 ;;
8874 s390x-*linux*)
8875 LD="${LD-ld} -m elf_s390"
8876 ;;
8877 sparc64-*linux*)
8878 LD="${LD-ld} -m elf32_sparc"
8879 ;;
8880 esac
8881 ;;
8882 *64-bit*)
8883 case $host in
8884 x86_64-*kfreebsd*-gnu)
8885 LD="${LD-ld} -m elf_x86_64_fbsd"
8886 ;;
8887 x86_64-*linux*|x86_64-gnu*)
8888 LD="${LD-ld} -m elf_x86_64"
8889 ;;
8890 powerpcle-*linux*)
8891 LD="${LD-ld} -m elf64lppc"
8892 ;;
8893 powerpc-*linux*)
8894 LD="${LD-ld} -m elf64ppc"
8895 ;;
8896 s390*-*linux*|s390*-*tpf*)
8897 LD="${LD-ld} -m elf64_s390"
8898 ;;
8899 sparc*-*linux*)
8900 LD="${LD-ld} -m elf64_sparc"
8901 ;;
8902 esac
8903 ;;
8904 esac
8905 fi
8906 rm -rf conftest*
8907 ;;
8908
8909 *-*-sco3.2v5*)
8910 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8911 SAVE_CFLAGS=$CFLAGS
8912 CFLAGS="$CFLAGS -belf"
8913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8914 printf %s "checking whether the C compiler needs -belf... " >&6; }
8915 if test ${lt_cv_cc_needs_belf+y}
8916 then :
8917 printf %s "(cached) " >&6
8918 else case e in #(
8919 e) ac_ext=c
8920 ac_cpp='$CPP $CPPFLAGS'
8921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8924
8925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8926 /* end confdefs.h. */
8927
8928 int
8929 main (void)
8930 {
8931
8932 ;
8933 return 0;
8934 }
8935 _ACEOF
8936 if ac_fn_c_try_link "$LINENO"
8937 then :
8938 lt_cv_cc_needs_belf=yes
8939 else case e in #(
8940 e) lt_cv_cc_needs_belf=no ;;
8941 esac
8942 fi
8943 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8944 conftest$ac_exeext conftest.$ac_ext
8945 ac_ext=c
8946 ac_cpp='$CPP $CPPFLAGS'
8947 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8948 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8949 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8950 ;;
8951 esac
8952 fi
8953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8954 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
8955 if test yes != "$lt_cv_cc_needs_belf"; then
8956 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8957 CFLAGS=$SAVE_CFLAGS
8958 fi
8959 ;;
8960 *-*solaris*)
8961 # Find out what ABI is being produced by ac_compile, and set linker
8962 # options accordingly.
8963 echo 'int i;' > conftest.$ac_ext
8964 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8965 (eval $ac_compile) 2>&5
8966 ac_status=$?
8967 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8968 test $ac_status = 0; }; then
8969 case `$FILECMD conftest.o` in
8970 *64-bit*)
8971 case $lt_cv_prog_gnu_ld in
8972 yes*)
8973 case $host in
8974 i?86-*-solaris*|x86_64-*-solaris*)
8975 LD="${LD-ld} -m elf_x86_64"
8976 ;;
8977 sparc*-*-solaris*)
8978 LD="${LD-ld} -m elf64_sparc"
8979 ;;
8980 esac
8981 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8982 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8983 LD=${LD-ld}_sol2
8984 fi
8985 ;;
8986 *)
8987 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8988 LD="${LD-ld} -64"
8989 fi
8990 ;;
8991 esac
8992 ;;
8993 esac
8994 fi
8995 rm -rf conftest*
8996 ;;
8997 esac
8998
8999 need_locks=$enable_libtool_lock
9000
9001 if test -n "$ac_tool_prefix"; then
9002 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9003 set dummy ${ac_tool_prefix}mt; ac_word=$2
9004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9005 printf %s "checking for $ac_word... " >&6; }
9006 if test ${ac_cv_prog_MANIFEST_TOOL+y}
9007 then :
9008 printf %s "(cached) " >&6
9009 else case e in #(
9010 e) if test -n "$MANIFEST_TOOL"; then
9011 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9012 else
9013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9014 for as_dir in $PATH
9015 do
9016 IFS=$as_save_IFS
9017 case $as_dir in #(((
9018 '') as_dir=./ ;;
9019 */) ;;
9020 *) as_dir=$as_dir/ ;;
9021 esac
9022 for ac_exec_ext in '' $ac_executable_extensions; do
9023 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9024 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9025 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9026 break 2
9027 fi
9028 done
9029 done
9030 IFS=$as_save_IFS
9031
9032 fi ;;
9033 esac
9034 fi
9035 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9036 if test -n "$MANIFEST_TOOL"; then
9037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9038 printf "%s\n" "$MANIFEST_TOOL" >&6; }
9039 else
9040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9041 printf "%s\n" "no" >&6; }
9042 fi
9043
9044
9045 fi
9046 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9047 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9048 # Extract the first word of "mt", so it can be a program name with args.
9049 set dummy mt; ac_word=$2
9050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9051 printf %s "checking for $ac_word... " >&6; }
9052 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
9053 then :
9054 printf %s "(cached) " >&6
9055 else case e in #(
9056 e) if test -n "$ac_ct_MANIFEST_TOOL"; then
9057 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9058 else
9059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9060 for as_dir in $PATH
9061 do
9062 IFS=$as_save_IFS
9063 case $as_dir in #(((
9064 '') as_dir=./ ;;
9065 */) ;;
9066 *) as_dir=$as_dir/ ;;
9067 esac
9068 for ac_exec_ext in '' $ac_executable_extensions; do
9069 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9070 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9071 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9072 break 2
9073 fi
9074 done
9075 done
9076 IFS=$as_save_IFS
9077
9078 fi ;;
9079 esac
9080 fi
9081 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9082 if test -n "$ac_ct_MANIFEST_TOOL"; then
9083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9084 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
9085 else
9086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9087 printf "%s\n" "no" >&6; }
9088 fi
9089
9090 if test "x$ac_ct_MANIFEST_TOOL" = x; then
9091 MANIFEST_TOOL=":"
9092 else
9093 case $cross_compiling:$ac_tool_warned in
9094 yes:)
9095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9096 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9097 ac_tool_warned=yes ;;
9098 esac
9099 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9100 fi
9101 else
9102 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9103 fi
9104
9105 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9107 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9108 if test ${lt_cv_path_manifest_tool+y}
9109 then :
9110 printf %s "(cached) " >&6
9111 else case e in #(
9112 e) lt_cv_path_manifest_tool=no
9113 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9114 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9115 cat conftest.err >&5
9116 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9117 lt_cv_path_manifest_tool=yes
9118 fi
9119 rm -f conftest* ;;
9120 esac
9121 fi
9122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5
9123 printf "%s\n" "$lt_cv_path_manifest_tool" >&6; }
9124 if test yes != "$lt_cv_path_manifest_tool"; then
9125 MANIFEST_TOOL=:
9126 fi
9127
9128
9129
9130
9131
9132
9133 case $host_os in
9134 rhapsody* | darwin*)
9135 if test -n "$ac_tool_prefix"; then
9136 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9137 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9139 printf %s "checking for $ac_word... " >&6; }
9140 if test ${ac_cv_prog_DSYMUTIL+y}
9141 then :
9142 printf %s "(cached) " >&6
9143 else case e in #(
9144 e) if test -n "$DSYMUTIL"; then
9145 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9146 else
9147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9148 for as_dir in $PATH
9149 do
9150 IFS=$as_save_IFS
9151 case $as_dir in #(((
9152 '') as_dir=./ ;;
9153 */) ;;
9154 *) as_dir=$as_dir/ ;;
9155 esac
9156 for ac_exec_ext in '' $ac_executable_extensions; do
9157 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9158 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9159 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9160 break 2
9161 fi
9162 done
9163 done
9164 IFS=$as_save_IFS
9165
9166 fi ;;
9167 esac
9168 fi
9169 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9170 if test -n "$DSYMUTIL"; then
9171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9172 printf "%s\n" "$DSYMUTIL" >&6; }
9173 else
9174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9175 printf "%s\n" "no" >&6; }
9176 fi
9177
9178
9179 fi
9180 if test -z "$ac_cv_prog_DSYMUTIL"; then
9181 ac_ct_DSYMUTIL=$DSYMUTIL
9182 # Extract the first word of "dsymutil", so it can be a program name with args.
9183 set dummy dsymutil; ac_word=$2
9184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9185 printf %s "checking for $ac_word... " >&6; }
9186 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
9187 then :
9188 printf %s "(cached) " >&6
9189 else case e in #(
9190 e) if test -n "$ac_ct_DSYMUTIL"; then
9191 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9192 else
9193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9194 for as_dir in $PATH
9195 do
9196 IFS=$as_save_IFS
9197 case $as_dir in #(((
9198 '') as_dir=./ ;;
9199 */) ;;
9200 *) as_dir=$as_dir/ ;;
9201 esac
9202 for ac_exec_ext in '' $ac_executable_extensions; do
9203 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9204 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9205 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9206 break 2
9207 fi
9208 done
9209 done
9210 IFS=$as_save_IFS
9211
9212 fi ;;
9213 esac
9214 fi
9215 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9216 if test -n "$ac_ct_DSYMUTIL"; then
9217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9218 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
9219 else
9220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9221 printf "%s\n" "no" >&6; }
9222 fi
9223
9224 if test "x$ac_ct_DSYMUTIL" = x; then
9225 DSYMUTIL=":"
9226 else
9227 case $cross_compiling:$ac_tool_warned in
9228 yes:)
9229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9230 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9231 ac_tool_warned=yes ;;
9232 esac
9233 DSYMUTIL=$ac_ct_DSYMUTIL
9234 fi
9235 else
9236 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9237 fi
9238
9239 if test -n "$ac_tool_prefix"; then
9240 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9241 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9243 printf %s "checking for $ac_word... " >&6; }
9244 if test ${ac_cv_prog_NMEDIT+y}
9245 then :
9246 printf %s "(cached) " >&6
9247 else case e in #(
9248 e) if test -n "$NMEDIT"; then
9249 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9250 else
9251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9252 for as_dir in $PATH
9253 do
9254 IFS=$as_save_IFS
9255 case $as_dir in #(((
9256 '') as_dir=./ ;;
9257 */) ;;
9258 *) as_dir=$as_dir/ ;;
9259 esac
9260 for ac_exec_ext in '' $ac_executable_extensions; do
9261 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9262 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9263 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9264 break 2
9265 fi
9266 done
9267 done
9268 IFS=$as_save_IFS
9269
9270 fi ;;
9271 esac
9272 fi
9273 NMEDIT=$ac_cv_prog_NMEDIT
9274 if test -n "$NMEDIT"; then
9275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9276 printf "%s\n" "$NMEDIT" >&6; }
9277 else
9278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9279 printf "%s\n" "no" >&6; }
9280 fi
9281
9282
9283 fi
9284 if test -z "$ac_cv_prog_NMEDIT"; then
9285 ac_ct_NMEDIT=$NMEDIT
9286 # Extract the first word of "nmedit", so it can be a program name with args.
9287 set dummy nmedit; ac_word=$2
9288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9289 printf %s "checking for $ac_word... " >&6; }
9290 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
9291 then :
9292 printf %s "(cached) " >&6
9293 else case e in #(
9294 e) if test -n "$ac_ct_NMEDIT"; then
9295 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9296 else
9297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9298 for as_dir in $PATH
9299 do
9300 IFS=$as_save_IFS
9301 case $as_dir in #(((
9302 '') as_dir=./ ;;
9303 */) ;;
9304 *) as_dir=$as_dir/ ;;
9305 esac
9306 for ac_exec_ext in '' $ac_executable_extensions; do
9307 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9308 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9309 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9310 break 2
9311 fi
9312 done
9313 done
9314 IFS=$as_save_IFS
9315
9316 fi ;;
9317 esac
9318 fi
9319 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9320 if test -n "$ac_ct_NMEDIT"; then
9321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9322 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
9323 else
9324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9325 printf "%s\n" "no" >&6; }
9326 fi
9327
9328 if test "x$ac_ct_NMEDIT" = x; then
9329 NMEDIT=":"
9330 else
9331 case $cross_compiling:$ac_tool_warned in
9332 yes:)
9333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9334 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9335 ac_tool_warned=yes ;;
9336 esac
9337 NMEDIT=$ac_ct_NMEDIT
9338 fi
9339 else
9340 NMEDIT="$ac_cv_prog_NMEDIT"
9341 fi
9342
9343 if test -n "$ac_tool_prefix"; then
9344 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9345 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9347 printf %s "checking for $ac_word... " >&6; }
9348 if test ${ac_cv_prog_LIPO+y}
9349 then :
9350 printf %s "(cached) " >&6
9351 else case e in #(
9352 e) if test -n "$LIPO"; then
9353 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9354 else
9355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9356 for as_dir in $PATH
9357 do
9358 IFS=$as_save_IFS
9359 case $as_dir in #(((
9360 '') as_dir=./ ;;
9361 */) ;;
9362 *) as_dir=$as_dir/ ;;
9363 esac
9364 for ac_exec_ext in '' $ac_executable_extensions; do
9365 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9366 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9367 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9368 break 2
9369 fi
9370 done
9371 done
9372 IFS=$as_save_IFS
9373
9374 fi ;;
9375 esac
9376 fi
9377 LIPO=$ac_cv_prog_LIPO
9378 if test -n "$LIPO"; then
9379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9380 printf "%s\n" "$LIPO" >&6; }
9381 else
9382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9383 printf "%s\n" "no" >&6; }
9384 fi
9385
9386
9387 fi
9388 if test -z "$ac_cv_prog_LIPO"; then
9389 ac_ct_LIPO=$LIPO
9390 # Extract the first word of "lipo", so it can be a program name with args.
9391 set dummy lipo; ac_word=$2
9392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9393 printf %s "checking for $ac_word... " >&6; }
9394 if test ${ac_cv_prog_ac_ct_LIPO+y}
9395 then :
9396 printf %s "(cached) " >&6
9397 else case e in #(
9398 e) if test -n "$ac_ct_LIPO"; then
9399 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9400 else
9401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9402 for as_dir in $PATH
9403 do
9404 IFS=$as_save_IFS
9405 case $as_dir in #(((
9406 '') as_dir=./ ;;
9407 */) ;;
9408 *) as_dir=$as_dir/ ;;
9409 esac
9410 for ac_exec_ext in '' $ac_executable_extensions; do
9411 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9412 ac_cv_prog_ac_ct_LIPO="lipo"
9413 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9414 break 2
9415 fi
9416 done
9417 done
9418 IFS=$as_save_IFS
9419
9420 fi ;;
9421 esac
9422 fi
9423 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9424 if test -n "$ac_ct_LIPO"; then
9425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9426 printf "%s\n" "$ac_ct_LIPO" >&6; }
9427 else
9428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9429 printf "%s\n" "no" >&6; }
9430 fi
9431
9432 if test "x$ac_ct_LIPO" = x; then
9433 LIPO=":"
9434 else
9435 case $cross_compiling:$ac_tool_warned in
9436 yes:)
9437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9438 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9439 ac_tool_warned=yes ;;
9440 esac
9441 LIPO=$ac_ct_LIPO
9442 fi
9443 else
9444 LIPO="$ac_cv_prog_LIPO"
9445 fi
9446
9447 if test -n "$ac_tool_prefix"; then
9448 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9449 set dummy ${ac_tool_prefix}otool; ac_word=$2
9450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9451 printf %s "checking for $ac_word... " >&6; }
9452 if test ${ac_cv_prog_OTOOL+y}
9453 then :
9454 printf %s "(cached) " >&6
9455 else case e in #(
9456 e) if test -n "$OTOOL"; then
9457 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9458 else
9459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9460 for as_dir in $PATH
9461 do
9462 IFS=$as_save_IFS
9463 case $as_dir in #(((
9464 '') as_dir=./ ;;
9465 */) ;;
9466 *) as_dir=$as_dir/ ;;
9467 esac
9468 for ac_exec_ext in '' $ac_executable_extensions; do
9469 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9470 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9471 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9472 break 2
9473 fi
9474 done
9475 done
9476 IFS=$as_save_IFS
9477
9478 fi ;;
9479 esac
9480 fi
9481 OTOOL=$ac_cv_prog_OTOOL
9482 if test -n "$OTOOL"; then
9483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9484 printf "%s\n" "$OTOOL" >&6; }
9485 else
9486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9487 printf "%s\n" "no" >&6; }
9488 fi
9489
9490
9491 fi
9492 if test -z "$ac_cv_prog_OTOOL"; then
9493 ac_ct_OTOOL=$OTOOL
9494 # Extract the first word of "otool", so it can be a program name with args.
9495 set dummy otool; ac_word=$2
9496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9497 printf %s "checking for $ac_word... " >&6; }
9498 if test ${ac_cv_prog_ac_ct_OTOOL+y}
9499 then :
9500 printf %s "(cached) " >&6
9501 else case e in #(
9502 e) if test -n "$ac_ct_OTOOL"; then
9503 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9504 else
9505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9506 for as_dir in $PATH
9507 do
9508 IFS=$as_save_IFS
9509 case $as_dir in #(((
9510 '') as_dir=./ ;;
9511 */) ;;
9512 *) as_dir=$as_dir/ ;;
9513 esac
9514 for ac_exec_ext in '' $ac_executable_extensions; do
9515 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9516 ac_cv_prog_ac_ct_OTOOL="otool"
9517 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9518 break 2
9519 fi
9520 done
9521 done
9522 IFS=$as_save_IFS
9523
9524 fi ;;
9525 esac
9526 fi
9527 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9528 if test -n "$ac_ct_OTOOL"; then
9529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9530 printf "%s\n" "$ac_ct_OTOOL" >&6; }
9531 else
9532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9533 printf "%s\n" "no" >&6; }
9534 fi
9535
9536 if test "x$ac_ct_OTOOL" = x; then
9537 OTOOL=":"
9538 else
9539 case $cross_compiling:$ac_tool_warned in
9540 yes:)
9541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9542 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9543 ac_tool_warned=yes ;;
9544 esac
9545 OTOOL=$ac_ct_OTOOL
9546 fi
9547 else
9548 OTOOL="$ac_cv_prog_OTOOL"
9549 fi
9550
9551 if test -n "$ac_tool_prefix"; then
9552 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9553 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9555 printf %s "checking for $ac_word... " >&6; }
9556 if test ${ac_cv_prog_OTOOL64+y}
9557 then :
9558 printf %s "(cached) " >&6
9559 else case e in #(
9560 e) if test -n "$OTOOL64"; then
9561 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9562 else
9563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9564 for as_dir in $PATH
9565 do
9566 IFS=$as_save_IFS
9567 case $as_dir in #(((
9568 '') as_dir=./ ;;
9569 */) ;;
9570 *) as_dir=$as_dir/ ;;
9571 esac
9572 for ac_exec_ext in '' $ac_executable_extensions; do
9573 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9574 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9575 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9576 break 2
9577 fi
9578 done
9579 done
9580 IFS=$as_save_IFS
9581
9582 fi ;;
9583 esac
9584 fi
9585 OTOOL64=$ac_cv_prog_OTOOL64
9586 if test -n "$OTOOL64"; then
9587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9588 printf "%s\n" "$OTOOL64" >&6; }
9589 else
9590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9591 printf "%s\n" "no" >&6; }
9592 fi
9593
9594
9595 fi
9596 if test -z "$ac_cv_prog_OTOOL64"; then
9597 ac_ct_OTOOL64=$OTOOL64
9598 # Extract the first word of "otool64", so it can be a program name with args.
9599 set dummy otool64; ac_word=$2
9600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9601 printf %s "checking for $ac_word... " >&6; }
9602 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
9603 then :
9604 printf %s "(cached) " >&6
9605 else case e in #(
9606 e) if test -n "$ac_ct_OTOOL64"; then
9607 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9608 else
9609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9610 for as_dir in $PATH
9611 do
9612 IFS=$as_save_IFS
9613 case $as_dir in #(((
9614 '') as_dir=./ ;;
9615 */) ;;
9616 *) as_dir=$as_dir/ ;;
9617 esac
9618 for ac_exec_ext in '' $ac_executable_extensions; do
9619 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9620 ac_cv_prog_ac_ct_OTOOL64="otool64"
9621 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9622 break 2
9623 fi
9624 done
9625 done
9626 IFS=$as_save_IFS
9627
9628 fi ;;
9629 esac
9630 fi
9631 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9632 if test -n "$ac_ct_OTOOL64"; then
9633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9634 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
9635 else
9636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9637 printf "%s\n" "no" >&6; }
9638 fi
9639
9640 if test "x$ac_ct_OTOOL64" = x; then
9641 OTOOL64=":"
9642 else
9643 case $cross_compiling:$ac_tool_warned in
9644 yes:)
9645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9646 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9647 ac_tool_warned=yes ;;
9648 esac
9649 OTOOL64=$ac_ct_OTOOL64
9650 fi
9651 else
9652 OTOOL64="$ac_cv_prog_OTOOL64"
9653 fi
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9682 printf %s "checking for -single_module linker flag... " >&6; }
9683 if test ${lt_cv_apple_cc_single_mod+y}
9684 then :
9685 printf %s "(cached) " >&6
9686 else case e in #(
9687 e) lt_cv_apple_cc_single_mod=no
9688 if test -z "$LT_MULTI_MODULE"; then
9689 # By default we will add the -single_module flag. You can override
9690 # by either setting the environment variable LT_MULTI_MODULE
9691 # non-empty at configure time, or by adding -multi_module to the
9692 # link flags.
9693 rm -rf libconftest.dylib*
9694 echo "int foo(void){return 1;}" > conftest.c
9695 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9696 -dynamiclib -Wl,-single_module conftest.c" >&5
9697 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9698 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9699 _lt_result=$?
9700 # If there is a non-empty error log, and "single_module"
9701 # appears in it, assume the flag caused a linker warning
9702 if test -s conftest.err && $GREP single_module conftest.err; then
9703 cat conftest.err >&5
9704 # Otherwise, if the output was created with a 0 exit code from
9705 # the compiler, it worked.
9706 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9707 lt_cv_apple_cc_single_mod=yes
9708 else
9709 cat conftest.err >&5
9710 fi
9711 rm -rf libconftest.dylib*
9712 rm -f conftest.*
9713 fi ;;
9714 esac
9715 fi
9716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9717 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
9718
9719 # Feature test to disable chained fixups since it is not
9720 # compatible with '-undefined dynamic_lookup'
9721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
9722 printf %s "checking for -no_fixup_chains linker flag... " >&6; }
9723 if test ${lt_cv_support_no_fixup_chains+y}
9724 then :
9725 printf %s "(cached) " >&6
9726 else case e in #(
9727 e) save_LDFLAGS=$LDFLAGS
9728 LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
9729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9730 /* end confdefs.h. */
9731
9732 int
9733 main (void)
9734 {
9735
9736 ;
9737 return 0;
9738 }
9739 _ACEOF
9740 if ac_fn_c_try_link "$LINENO"
9741 then :
9742 lt_cv_support_no_fixup_chains=yes
9743 else case e in #(
9744 e) lt_cv_support_no_fixup_chains=no
9745 ;;
9746 esac
9747 fi
9748 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9749 conftest$ac_exeext conftest.$ac_ext
9750 LDFLAGS=$save_LDFLAGS
9751
9752 ;;
9753 esac
9754 fi
9755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
9756 printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; }
9757
9758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9759 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
9760 if test ${lt_cv_ld_exported_symbols_list+y}
9761 then :
9762 printf %s "(cached) " >&6
9763 else case e in #(
9764 e) lt_cv_ld_exported_symbols_list=no
9765 save_LDFLAGS=$LDFLAGS
9766 echo "_main" > conftest.sym
9767 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9769 /* end confdefs.h. */
9770
9771 int
9772 main (void)
9773 {
9774
9775 ;
9776 return 0;
9777 }
9778 _ACEOF
9779 if ac_fn_c_try_link "$LINENO"
9780 then :
9781 lt_cv_ld_exported_symbols_list=yes
9782 else case e in #(
9783 e) lt_cv_ld_exported_symbols_list=no ;;
9784 esac
9785 fi
9786 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9787 conftest$ac_exeext conftest.$ac_ext
9788 LDFLAGS=$save_LDFLAGS
9789 ;;
9790 esac
9791 fi
9792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9793 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
9794
9795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9796 printf %s "checking for -force_load linker flag... " >&6; }
9797 if test ${lt_cv_ld_force_load+y}
9798 then :
9799 printf %s "(cached) " >&6
9800 else case e in #(
9801 e) lt_cv_ld_force_load=no
9802 cat > conftest.c << _LT_EOF
9803 int forced_loaded() { return 2;}
9804 _LT_EOF
9805 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9806 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9807 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
9808 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
9809 echo "$RANLIB libconftest.a" >&5
9810 $RANLIB libconftest.a 2>&5
9811 cat > conftest.c << _LT_EOF
9812 int main(void) { return 0;}
9813 _LT_EOF
9814 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9815 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9816 _lt_result=$?
9817 if test -s conftest.err && $GREP force_load conftest.err; then
9818 cat conftest.err >&5
9819 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9820 lt_cv_ld_force_load=yes
9821 else
9822 cat conftest.err >&5
9823 fi
9824 rm -f conftest.err libconftest.a conftest conftest.c
9825 rm -rf conftest.dSYM
9826 ;;
9827 esac
9828 fi
9829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9830 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
9831 case $host_os in
9832 rhapsody* | darwin1.[012])
9833 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9834 darwin1.*)
9835 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9836 darwin*)
9837 case $MACOSX_DEPLOYMENT_TARGET,$host in
9838 10.[012],*|,*powerpc*-darwin[5-8]*)
9839 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9840 *)
9841 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
9842 if test yes = "$lt_cv_support_no_fixup_chains"; then
9843 as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'
9844 fi
9845 ;;
9846 esac
9847 ;;
9848 esac
9849 if test yes = "$lt_cv_apple_cc_single_mod"; then
9850 _lt_dar_single_mod='$single_module'
9851 fi
9852 _lt_dar_needs_single_mod=no
9853 case $host_os in
9854 rhapsody* | darwin1.*)
9855 _lt_dar_needs_single_mod=yes ;;
9856 darwin*)
9857 # When targeting Mac OS X 10.4 (darwin 8) or later,
9858 # -single_module is the default and -multi_module is unsupported.
9859 # The toolchain on macOS 10.14 (darwin 18) and later cannot
9860 # target any OS version that needs -single_module.
9861 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9862 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*)
9863 _lt_dar_needs_single_mod=yes ;;
9864 esac
9865 ;;
9866 esac
9867 if test yes = "$lt_cv_ld_exported_symbols_list"; then
9868 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9869 else
9870 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9871 fi
9872 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9873 _lt_dsymutil='~$DSYMUTIL $lib || :'
9874 else
9875 _lt_dsymutil=
9876 fi
9877 ;;
9878 esac
9879
9880 # func_munge_path_list VARIABLE PATH
9881 # -----------------------------------
9882 # VARIABLE is name of variable containing _space_ separated list of
9883 # directories to be munged by the contents of PATH, which is string
9884 # having a format:
9885 # "DIR[:DIR]:"
9886 # string "DIR[ DIR]" will be prepended to VARIABLE
9887 # ":DIR[:DIR]"
9888 # string "DIR[ DIR]" will be appended to VARIABLE
9889 # "DIRP[:DIRP]::[DIRA:]DIRA"
9890 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9891 # "DIRA[ DIRA]" will be appended to VARIABLE
9892 # "DIR[:DIR]"
9893 # VARIABLE will be replaced by "DIR[ DIR]"
9894 func_munge_path_list ()
9895 {
9896 case x$2 in
9897 x)
9898 ;;
9899 *:)
9900 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9901 ;;
9902 x:*)
9903 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9904 ;;
9905 *::*)
9906 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9907 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9908 ;;
9909 *)
9910 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9911 ;;
9912 esac
9913 }
9914
9915 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9916 "
9917 if test "x$ac_cv_header_dlfcn_h" = xyes
9918 then :
9919 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
9920
9921 fi
9922
9923
9924
9925
9926 func_stripname_cnf ()
9927 {
9928 case $2 in
9929 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
9930 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
9931 esac
9932 } # func_stripname_cnf
9933
9934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
9935 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
9936 if test ${ac_cv_c_undeclared_builtin_options+y}
9937 then :
9938 printf %s "(cached) " >&6
9939 else case e in #(
9940 e) ac_save_CFLAGS=$CFLAGS
9941 ac_cv_c_undeclared_builtin_options='cannot detect'
9942 for ac_arg in '' -fno-builtin; do
9943 CFLAGS="$ac_save_CFLAGS $ac_arg"
9944 # This test program should *not* compile successfully.
9945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9946 /* end confdefs.h. */
9947
9948 int
9949 main (void)
9950 {
9951 (void) strchr;
9952 ;
9953 return 0;
9954 }
9955 _ACEOF
9956 if ac_fn_c_try_compile "$LINENO"
9957 then :
9958
9959 else case e in #(
9960 e) # This test program should compile successfully.
9961 # No library function is consistently available on
9962 # freestanding implementations, so test against a dummy
9963 # declaration. Include always-available headers on the
9964 # off chance that they somehow elicit warnings.
9965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9966 /* end confdefs.h. */
9967 #include <float.h>
9968 #include <limits.h>
9969 #include <stdarg.h>
9970 #include <stddef.h>
9971 extern void ac_decl (int, char *);
9972
9973 int
9974 main (void)
9975 {
9976 (void) ac_decl (0, (char *) 0);
9977 (void) ac_decl;
9978
9979 ;
9980 return 0;
9981 }
9982 _ACEOF
9983 if ac_fn_c_try_compile "$LINENO"
9984 then :
9985 if test x"$ac_arg" = x
9986 then :
9987 ac_cv_c_undeclared_builtin_options='none needed'
9988 else case e in #(
9989 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
9990 esac
9991 fi
9992 break
9993 fi
9994 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9995 esac
9996 fi
9997 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9998 done
9999 CFLAGS=$ac_save_CFLAGS
10000 ;;
10001 esac
10002 fi
10003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
10004 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
10005 case $ac_cv_c_undeclared_builtin_options in #(
10006 'cannot detect') :
10007 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
10008 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
10009 as_fn_error $? "cannot make $CC report undeclared builtins
10010 See 'config.log' for more details" "$LINENO" 5; } ;; #(
10011 'none needed') :
10012 ac_c_undeclared_builtin_options='' ;; #(
10013 *) :
10014 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
10015 esac
10016
10017 echo 'tldbg:KPSE_COMMON called (pkg=xdvipsk, amopt=)' >&5
10018 echo 'tldbg:KPSE_BASIC called (pkg=xdvipsk, amopt=)' >&5
10019
10020 #
10021 # am_init_automake
10022 if test "`cd $srcdir && pwd`" != "`pwd`"; then
10023 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
10024 # is not polluted with repeated "-I."
10025 am__isrc=' -I$(srcdir)'
10026 # test to see if srcdir already configured
10027 if test -f $srcdir/config.status; then
10028 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
10029 fi
10030 fi
10031
10032 # test whether we have cygpath
10033 if test -z "$CYGPATH_W"; then
10034 if (cygpath --version) >/dev/null 2>/dev/null; then
10035 CYGPATH_W='cygpath -w'
10036 else
10037 CYGPATH_W=echo
10038 fi
10039 fi
10040
10041
10042 # Define the identity of the package.
10043 PACKAGE='xdvipsk--tex-live-'
10044 VERSION='2026.1'
10045
10046
10047 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
10048
10049
10050 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
10051
10052 # Some tools Automake needs.
10053
10054 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
10055
10056
10057 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
10058
10059
10060 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
10061
10062
10063 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
10064
10065
10066 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
10067
10068 # For better backward compatibility. To be removed once Automake 1.9.x
10069 # dies out for good. For more background, see:
10070 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
10071 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
10072 mkdir_p='$(MKDIR_P)'
10073
10074 # We need awk for the "check" target (and possibly the TAP driver). The
10075 # system "awk" is bad on some platforms.
10076 # Always define AMTAR for backward compatibility. Yes, it's still used
10077 # in the wild :-( We should find a proper way to deprecate it ...
10078 AMTAR='$${TAR-tar}'
10079
10080
10081 # We'll loop over all known methods to create a tar archive until one works.
10082 _am_tools='gnutar plaintar pax cpio none'
10083
10084 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
10085 # There is notably a 21 bits limit for the UID and the GID. In fact,
10086 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
10087 # and bug#13588).
10088 am_max_uid=2097151 # 2^21 - 1
10089 am_max_gid=$am_max_uid
10090 # The $UID and $GID variables are not portable, so we need to resort
10091 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
10092 # below are definitely unexpected, so allow the users to see them
10093 # (that is, avoid stderr redirection).
10094 am_uid=`id -u || echo unknown`
10095 am_gid=`id -g || echo unknown`
10096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
10097 printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
10098 if test x$am_uid = xunknown; then
10099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&5
10100 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&2;}
10101 elif test $am_uid -le $am_max_uid; then
10102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10103 printf "%s\n" "yes" >&6; }
10104 else
10105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10106 printf "%s\n" "no" >&6; }
10107 _am_tools=none
10108 fi
10109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
10110 printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
10111 if test x$gm_gid = xunknown; then
10112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&5
10113 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&2;}
10114 elif test $am_gid -le $am_max_gid; then
10115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10116 printf "%s\n" "yes" >&6; }
10117 else
10118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10119 printf "%s\n" "no" >&6; }
10120 _am_tools=none
10121 fi
10122
10123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
10124 printf %s "checking how to create a ustar tar archive... " >&6; }
10125
10126 # Go ahead even if we have the value already cached. We do so because we
10127 # need to set the values for the 'am__tar' and 'am__untar' variables.
10128 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
10129
10130 for _am_tool in $_am_tools; do
10131 case $_am_tool in
10132 gnutar)
10133 for _am_tar in tar gnutar gtar; do
10134 { echo "$as_me:$LINENO: $_am_tar --version" >&5
10135 ($_am_tar --version) >&5 2>&5
10136 ac_status=$?
10137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10138 (exit $ac_status); } && break
10139 done
10140 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
10141 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
10142 am__untar="$_am_tar -xf -"
10143 ;;
10144 plaintar)
10145 # Must skip GNU tar: if it does not support --format= it doesn't create
10146 # ustar tarball either.
10147 (tar --version) >/dev/null 2>&1 && continue
10148 am__tar='tar chf - "$$tardir"'
10149 am__tar_='tar chf - "$tardir"'
10150 am__untar='tar xf -'
10151 ;;
10152 pax)
10153 am__tar='pax -L -x ustar -w "$$tardir"'
10154 am__tar_='pax -L -x ustar -w "$tardir"'
10155 am__untar='pax -r'
10156 ;;
10157 cpio)
10158 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
10159 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
10160 am__untar='cpio -i -H ustar -d'
10161 ;;
10162 none)
10163 am__tar=false
10164 am__tar_=false
10165 am__untar=false
10166 ;;
10167 esac
10168
10169 # If the value was cached, stop now. We just wanted to have am__tar
10170 # and am__untar set.
10171 test -n "${am_cv_prog_tar_ustar}" && break
10172
10173 # tar/untar a dummy directory, and stop if the command works.
10174 rm -rf conftest.dir
10175 mkdir conftest.dir
10176 echo GrepMe > conftest.dir/file
10177 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
10178 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
10179 ac_status=$?
10180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10181 (exit $ac_status); }
10182 rm -rf conftest.dir
10183 if test -s conftest.tar; then
10184 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
10185 ($am__untar <conftest.tar) >&5 2>&5
10186 ac_status=$?
10187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10188 (exit $ac_status); }
10189 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
10190 (cat conftest.dir/file) >&5 2>&5
10191 ac_status=$?
10192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193 (exit $ac_status); }
10194 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
10195 fi
10196 done
10197 rm -rf conftest.dir
10198
10199 if test ${am_cv_prog_tar_ustar+y}
10200 then :
10201 printf %s "(cached) " >&6
10202 else case e in #(
10203 e) am_cv_prog_tar_ustar=$_am_tool ;;
10204 esac
10205 fi
10206
10207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
10208 printf "%s\n" "$am_cv_prog_tar_ustar" >&6; }
10209
10210
10211
10212
10213
10214 depcc="$CXX" am_compiler_list=
10215
10216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
10217 printf %s "checking dependency style of $depcc... " >&6; }
10218 if test ${am_cv_CXX_dependencies_compiler_type+y}
10219 then :
10220 printf %s "(cached) " >&6
10221 else case e in #(
10222 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
10223 # We make a subdir and do the tests there. Otherwise we can end up
10224 # making bogus files that we don't know about and never remove. For
10225 # instance it was reported that on HP-UX the gcc test will end up
10226 # making a dummy file named 'D' -- because '-MD' means "put the output
10227 # in D".
10228 rm -rf conftest.dir
10229 mkdir conftest.dir
10230 # Copy depcomp to subdir because otherwise we won't find it if we're
10231 # using a relative directory.
10232 cp "$am_depcomp" conftest.dir
10233 cd conftest.dir
10234 # We will build objects and dependencies in a subdirectory because
10235 # it helps to detect inapplicable dependency modes. For instance
10236 # both Tru64's cc and ICC support -MD to output dependencies as a
10237 # side effect of compilation, but ICC will put the dependencies in
10238 # the current directory while Tru64 will put them in the object
10239 # directory.
10240 mkdir sub
10241
10242 am_cv_CXX_dependencies_compiler_type=none
10243 if test "$am_compiler_list" = ""; then
10244 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10245 fi
10246 am__universal=false
10247 case " $depcc " in #(
10248 *\ -arch\ *\ -arch\ *) am__universal=true ;;
10249 esac
10250
10251 for depmode in $am_compiler_list; do
10252 # Setup a source with many dependencies, because some compilers
10253 # like to wrap large dependency lists on column 80 (with \), and
10254 # we should not choose a depcomp mode which is confused by this.
10255 #
10256 # We need to recreate these files for each test, as the compiler may
10257 # overwrite some of them when testing with obscure command lines.
10258 # This happens at least with the AIX C compiler.
10259 : > sub/conftest.c
10260 for i in 1 2 3 4 5 6; do
10261 echo '#include "conftst'$i'.h"' >> sub/conftest.c
10262 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
10263 # Solaris 10 /bin/sh.
10264 echo '/* dummy */' > sub/conftst$i.h
10265 done
10266 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
10267
10268 # We check with '-c' and '-o' for the sake of the "dashmstdout"
10269 # mode. It turns out that the SunPro C++ compiler does not properly
10270 # handle '-M -o', and we need to detect this. Also, some Intel
10271 # versions had trouble with output in subdirs.
10272 am__obj=sub/conftest.${OBJEXT-o}
10273 am__minus_obj="-o $am__obj"
10274 case $depmode in
10275 gcc)
10276 # This depmode causes a compiler race in universal mode.
10277 test "$am__universal" = false || continue
10278 ;;
10279 nosideeffect)
10280 # After this tag, mechanisms are not by side-effect, so they'll
10281 # only be used when explicitly requested.
10282 if test "x$enable_dependency_tracking" = xyes; then
10283 continue
10284 else
10285 break
10286 fi
10287 ;;
10288 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
10289 # This compiler won't grok '-c -o', but also, the minuso test has
10290 # not run yet. These depmodes are late enough in the game, and
10291 # so weak that their functioning should not be impacted.
10292 am__obj=conftest.${OBJEXT-o}
10293 am__minus_obj=
10294 ;;
10295 none) break ;;
10296 esac
10297 if depmode=$depmode \
10298 source=sub/conftest.c object=$am__obj \
10299 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10300 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
10301 >/dev/null 2>conftest.err &&
10302 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
10303 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
10304 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
10305 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
10306 # icc doesn't choke on unknown options, it will just issue warnings
10307 # or remarks (even with -Werror). So we grep stderr for any message
10308 # that says an option was ignored or not supported.
10309 # When given -MP, icc 7.0 and 7.1 complain thus:
10310 # icc: Command line warning: ignoring option '-M'; no argument required
10311 # The diagnosis changed in icc 8.0:
10312 # icc: Command line remark: option '-MP' not supported
10313 if (grep 'ignoring option' conftest.err ||
10314 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
10315 am_cv_CXX_dependencies_compiler_type=$depmode
10316 break
10317 fi
10318 fi
10319 done
10320
10321 cd ..
10322 rm -rf conftest.dir
10323 else
10324 am_cv_CXX_dependencies_compiler_type=none
10325 fi
10326 ;;
10327 esac
10328 fi
10329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
10330 printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
10331 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
10332
10333 if
10334 test "x$enable_dependency_tracking" != xno \
10335 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
10336 am__fastdepCXX_TRUE=
10337 am__fastdepCXX_FALSE='#'
10338 else
10339 am__fastdepCXX_TRUE='#'
10340 am__fastdepCXX_FALSE=
10341 fi
10342
10343
10344 # Variables for tags utilities; see am/tags.am
10345 if test -z "$CTAGS"; then
10346 CTAGS=ctags
10347 fi
10348
10349 if test -z "$ETAGS"; then
10350 ETAGS=etags
10351 fi
10352
10353 if test -z "$CSCOPE"; then
10354 CSCOPE=cscope
10355 fi
10356
10357
10358
10359
10360
10361
10362
10363
10364 # am_maintainer_mode
10365
10366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
10367 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
10368 # Check whether --enable-maintainer-mode was given.
10369 if test ${enable_maintainer_mode+y}
10370 then :
10371 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
10372 else case e in #(
10373 e) USE_MAINTAINER_MODE=no ;;
10374 esac
10375 fi
10376
10377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
10378 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
10379 if test $USE_MAINTAINER_MODE = yes; then
10380 MAINTAINER_MODE_TRUE=
10381 MAINTAINER_MODE_FALSE='#'
10382 else
10383 MAINTAINER_MODE_TRUE='#'
10384 MAINTAINER_MODE_FALSE=
10385 fi
10386
10387 MAINT=$MAINTAINER_MODE_TRUE
10388
10389
10390
10391 # See comments in kpse-setup.m4 about system extensions.
10392
10393
10394 # Check whether prototypes work.
10395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts prototypes" >&5
10396 printf %s "checking whether the compiler accepts prototypes... " >&6; }
10397 if test ${kb_cv_c_prototypes+y}
10398 then :
10399 printf %s "(cached) " >&6
10400 else case e in #(
10401 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10402 /* end confdefs.h. */
10403 #include <stdarg.h>
10404 int
10405 main (void)
10406 {
10407 extern void foo(int i,...);
10408 ;
10409 return 0;
10410 }
10411 _ACEOF
10412 if ac_fn_c_try_link "$LINENO"
10413 then :
10414 kb_cv_c_prototypes=yes
10415 else case e in #(
10416 e) kb_cv_c_prototypes=no ;;
10417 esac
10418 fi
10419 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10420 conftest$ac_exeext conftest.$ac_ext ;;
10421 esac
10422 fi
10423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kb_cv_c_prototypes" >&5
10424 printf "%s\n" "$kb_cv_c_prototypes" >&6; }
10425 if test "x$kb_cv_c_prototypes" = xno; then
10426 as_fn_error $? "Sorry, your compiler does not understand prototypes." "$LINENO" 5
10427 fi
10428
10429 # kpse_compiler_warnings options.
10430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking what warning flags to pass to the C compiler" >&5
10431 printf %s "checking what warning flags to pass to the C compiler... " >&6; }
10432 if test ${kpse_cv_warning_cflags+y}
10433 then :
10434 printf %s "(cached) " >&6
10435 else case e in #(
10436 e) if test "x$GCC" = xyes; then
10437 kpse_cv_warning_cflags=
10438 if test "x$enable_compiler_warnings" != xno; then
10439 kpse_cv_warning_cflags="-Wimplicit -Wreturn-type"
10440 case `$CC -dumpversion` in #(
10441 3.4.* | 4.* | 5.*) :
10442 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wdeclaration-after-statement" ;; #(
10443 *) :
10444 ;;
10445 esac
10446 case `$CC -dumpversion` in #(
10447 3.[234].* | 4.* | 5.*) :
10448 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wno-unknown-pragmas" ;; #(
10449 *) :
10450 ;;
10451 esac
10452 if test "x$enable_compiler_warnings" != xmin; then
10453 kpse_cv_warning_cflags="-Wall -Wunused $kpse_cv_warning_cflags"
10454 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wmissing-prototypes -Wmissing-declarations"
10455 if test "x$enable_compiler_warnings" != xyes; then
10456 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wparentheses -Wswitch -Wtrigraphs -Wpointer-arith"
10457 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wcast-qual -Wcast-align -Wwrite-strings"
10458 case `$CC -dumpversion` in #(
10459 3.4.* | 4.* | 5.*) :
10460 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wold-style-definition" ;; #(
10461 *) :
10462 ;;
10463 esac
10464 if test "x$enable_compiler_warnings" != xmax; then
10465 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wshadow"
10466 fi
10467 fi
10468 fi
10469 fi
10470 elif test "x$enable_compiler_warnings" = xno; then
10471 kpse_cv_warning_cflags=
10472 else
10473 kpse_cv_warning_cflags= # FIXME: warning flags for non-GNU C compilers
10474 fi ;;
10475 esac
10476 fi
10477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_warning_cflags" >&5
10478 printf "%s\n" "$kpse_cv_warning_cflags" >&6; }
10479 WARNING_CFLAGS=$kpse_cv_warning_cflags
10480
10481
10482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking what warning flags to pass to the C++ compiler" >&5
10483 printf %s "checking what warning flags to pass to the C++ compiler... " >&6; }
10484 if test ${kpse_cv_warning_cxxflags+y}
10485 then :
10486 printf %s "(cached) " >&6
10487 else case e in #(
10488 e) if test "x$GXX" = xyes; then
10489 kpse_cv_warning_cxxflags=
10490 kpse_warn_strings="-Wno-write-strings"
10491 if test "x$enable_compiler_warnings" != xno; then
10492 kpse_cv_warning_cxxflags="-Wreturn-type"
10493 case `$CXX -dumpversion` in #(
10494 3.* | 4.[012345].*) :
10495 kpse_cv_warning_cxxflags="-Wimplicit $kpse_cv_warning_cxxflags" ;; #(
10496 *) :
10497 ;;
10498 esac
10499 case `$CXX -dumpversion` in #(
10500 3.[234].* | 4.* | 5.*) :
10501 kpse_cv_warning_cxxflags="$kpse_cv_warning_cxxflags -Wno-unknown-pragmas" ;; #(
10502 *) :
10503 ;;
10504 esac
10505 if test "x$enable_compiler_warnings" != xmin; then
10506 kpse_cv_warning_cxxflags="-Wall -Wunused $kpse_cv_warning_cxxflags"
10507 if test "x$enable_compiler_warnings" != xyes; then
10508 kpse_cv_warning_cxxflags="$kpse_cv_warning_cxxflags -Wparentheses -Wswitch -Wtrigraphs -Wpointer-arith"
10509 kpse_cv_warning_cxxflags="$kpse_cv_warning_cxxflags -Wcast-qual -Wcast-align"
10510 kpse_warn_strings="-Wwrite-strings"
10511 if test "x$enable_compiler_warnings" != xmax; then
10512 kpse_cv_warning_cxxflags="$kpse_cv_warning_cxxflags -Wshadow"
10513 fi
10514 fi
10515 fi
10516 fi
10517 kpse_cv_warning_cxxflags="$kpse_cv_warning_cxxflags $kpse_warn_strings"
10518 elif test "x$enable_compiler_warnings" = xno; then
10519 kpse_cv_warning_cxxflags=
10520 else
10521 kpse_cv_warning_cxxflags= # FIXME: warning flags for non-GNU C++ compilers
10522 fi ;;
10523 esac
10524 fi
10525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_warning_cxxflags" >&5
10526 printf "%s\n" "$kpse_cv_warning_cxxflags" >&6; }
10527 WARNING_CXXFLAGS=$kpse_cv_warning_cxxflags
10528
10529
10530
10531
10532
10533
10534 # end of kpse_basic macro.
10535 echo 'tldbg:KPSE_BASIC done (pkg=xdvipsk, amopt=)' >&5
10536
10537 # am_prog_ar must be called before lt_init.
10538
10539 if test -n "$ac_tool_prefix"; then
10540 for ac_prog in ar lib "link -lib"
10541 do
10542 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10543 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10545 printf %s "checking for $ac_word... " >&6; }
10546 if test ${ac_cv_prog_AR+y}
10547 then :
10548 printf %s "(cached) " >&6
10549 else case e in #(
10550 e) if test -n "$AR"; then
10551 ac_cv_prog_AR="$AR" # Let the user override the test.
10552 else
10553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10554 for as_dir in $PATH
10555 do
10556 IFS=$as_save_IFS
10557 case $as_dir in #(((
10558 '') as_dir=./ ;;
10559 */) ;;
10560 *) as_dir=$as_dir/ ;;
10561 esac
10562 for ac_exec_ext in '' $ac_executable_extensions; do
10563 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10564 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
10565 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10566 break 2
10567 fi
10568 done
10569 done
10570 IFS=$as_save_IFS
10571
10572 fi ;;
10573 esac
10574 fi
10575 AR=$ac_cv_prog_AR
10576 if test -n "$AR"; then
10577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10578 printf "%s\n" "$AR" >&6; }
10579 else
10580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10581 printf "%s\n" "no" >&6; }
10582 fi
10583
10584
10585 test -n "$AR" && break
10586 done
10587 fi
10588 if test -z "$AR"; then
10589 ac_ct_AR=$AR
10590 for ac_prog in ar lib "link -lib"
10591 do
10592 # Extract the first word of "$ac_prog", so it can be a program name with args.
10593 set dummy $ac_prog; ac_word=$2
10594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10595 printf %s "checking for $ac_word... " >&6; }
10596 if test ${ac_cv_prog_ac_ct_AR+y}
10597 then :
10598 printf %s "(cached) " >&6
10599 else case e in #(
10600 e) if test -n "$ac_ct_AR"; then
10601 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10602 else
10603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10604 for as_dir in $PATH
10605 do
10606 IFS=$as_save_IFS
10607 case $as_dir in #(((
10608 '') as_dir=./ ;;
10609 */) ;;
10610 *) as_dir=$as_dir/ ;;
10611 esac
10612 for ac_exec_ext in '' $ac_executable_extensions; do
10613 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10614 ac_cv_prog_ac_ct_AR="$ac_prog"
10615 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10616 break 2
10617 fi
10618 done
10619 done
10620 IFS=$as_save_IFS
10621
10622 fi ;;
10623 esac
10624 fi
10625 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10626 if test -n "$ac_ct_AR"; then
10627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10628 printf "%s\n" "$ac_ct_AR" >&6; }
10629 else
10630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10631 printf "%s\n" "no" >&6; }
10632 fi
10633
10634
10635 test -n "$ac_ct_AR" && break
10636 done
10637
10638 if test "x$ac_ct_AR" = x; then
10639 AR="false"
10640 else
10641 case $cross_compiling:$ac_tool_warned in
10642 yes:)
10643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10644 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10645 ac_tool_warned=yes ;;
10646 esac
10647 AR=$ac_ct_AR
10648 fi
10649 fi
10650
10651 : ${AR=ar}
10652 : ${ARFLAGS=cr}
10653
10654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
10655 printf %s "checking the archiver ($AR) interface... " >&6; }
10656 if test ${am_cv_ar_interface+y}
10657 then :
10658 printf %s "(cached) " >&6
10659 else case e in #(
10660 e) ac_ext=c
10661 ac_cpp='$CPP $CPPFLAGS'
10662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10665
10666 am_cv_ar_interface=ar
10667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10668 /* end confdefs.h. */
10669 int some_variable = 0;
10670 _ACEOF
10671 if ac_fn_c_try_compile "$LINENO"
10672 then :
10673 am_ar_try='$AR $ARFLAGS libconftest.a conftest.$ac_objext >&5'
10674 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
10675 (eval $am_ar_try) 2>&5
10676 ac_status=$?
10677 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10678 test $ac_status = 0; }
10679 if test "$ac_status" -eq 0; then
10680 am_cv_ar_interface=ar
10681 else
10682 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
10683 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
10684 (eval $am_ar_try) 2>&5
10685 ac_status=$?
10686 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10687 test $ac_status = 0; }
10688 if test "$ac_status" -eq 0; then
10689 am_cv_ar_interface=lib
10690 else
10691 am_cv_ar_interface=unknown
10692 fi
10693 fi
10694 rm -f conftest.lib libconftest.a
10695
10696 fi
10697 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10698 ac_ext=c
10699 ac_cpp='$CPP $CPPFLAGS'
10700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10703 ;;
10704 esac
10705 fi
10706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
10707 printf "%s\n" "$am_cv_ar_interface" >&6; }
10708
10709 case $am_cv_ar_interface in
10710 ar)
10711 ;;
10712 lib)
10713 # Microsoft lib, so override with the ar-lib wrapper script.
10714 # FIXME: It is wrong to rewrite AR.
10715 # But if we don't then we get into trouble of one sort or another.
10716 # A longer-term fix would be to have automake use am__AR in this case,
10717 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
10718 # similar.
10719 AR="$am_aux_dir/ar-lib $AR"
10720 ;;
10721 unknown)
10722 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
10723 ;;
10724 esac
10725
10726 # (end am_prog_ar)
10727 # starting lt_prereq + lt_init.
10728
10729
10730
10731
10732
10733 # Set options
10734 enable_win32_dll=yes
10735
10736 case $host in
10737 *-*-cygwin* | *-*-mingw* | *-*-windows* | *-*-pw32* | *-*-cegcc*)
10738 if test -n "$ac_tool_prefix"; then
10739 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
10740 set dummy ${ac_tool_prefix}as; ac_word=$2
10741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10742 printf %s "checking for $ac_word... " >&6; }
10743 if test ${ac_cv_prog_AS+y}
10744 then :
10745 printf %s "(cached) " >&6
10746 else case e in #(
10747 e) if test -n "$AS"; then
10748 ac_cv_prog_AS="$AS" # Let the user override the test.
10749 else
10750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10751 for as_dir in $PATH
10752 do
10753 IFS=$as_save_IFS
10754 case $as_dir in #(((
10755 '') as_dir=./ ;;
10756 */) ;;
10757 *) as_dir=$as_dir/ ;;
10758 esac
10759 for ac_exec_ext in '' $ac_executable_extensions; do
10760 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10761 ac_cv_prog_AS="${ac_tool_prefix}as"
10762 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10763 break 2
10764 fi
10765 done
10766 done
10767 IFS=$as_save_IFS
10768
10769 fi ;;
10770 esac
10771 fi
10772 AS=$ac_cv_prog_AS
10773 if test -n "$AS"; then
10774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10775 printf "%s\n" "$AS" >&6; }
10776 else
10777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10778 printf "%s\n" "no" >&6; }
10779 fi
10780
10781
10782 fi
10783 if test -z "$ac_cv_prog_AS"; then
10784 ac_ct_AS=$AS
10785 # Extract the first word of "as", so it can be a program name with args.
10786 set dummy as; ac_word=$2
10787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10788 printf %s "checking for $ac_word... " >&6; }
10789 if test ${ac_cv_prog_ac_ct_AS+y}
10790 then :
10791 printf %s "(cached) " >&6
10792 else case e in #(
10793 e) if test -n "$ac_ct_AS"; then
10794 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
10795 else
10796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10797 for as_dir in $PATH
10798 do
10799 IFS=$as_save_IFS
10800 case $as_dir in #(((
10801 '') as_dir=./ ;;
10802 */) ;;
10803 *) as_dir=$as_dir/ ;;
10804 esac
10805 for ac_exec_ext in '' $ac_executable_extensions; do
10806 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10807 ac_cv_prog_ac_ct_AS="as"
10808 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10809 break 2
10810 fi
10811 done
10812 done
10813 IFS=$as_save_IFS
10814
10815 fi ;;
10816 esac
10817 fi
10818 ac_ct_AS=$ac_cv_prog_ac_ct_AS
10819 if test -n "$ac_ct_AS"; then
10820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
10821 printf "%s\n" "$ac_ct_AS" >&6; }
10822 else
10823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10824 printf "%s\n" "no" >&6; }
10825 fi
10826
10827 if test "x$ac_ct_AS" = x; then
10828 AS="false"
10829 else
10830 case $cross_compiling:$ac_tool_warned in
10831 yes:)
10832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10833 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10834 ac_tool_warned=yes ;;
10835 esac
10836 AS=$ac_ct_AS
10837 fi
10838 else
10839 AS="$ac_cv_prog_AS"
10840 fi
10841
10842 if test -n "$ac_tool_prefix"; then
10843 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10844 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10846 printf %s "checking for $ac_word... " >&6; }
10847 if test ${ac_cv_prog_DLLTOOL+y}
10848 then :
10849 printf %s "(cached) " >&6
10850 else case e in #(
10851 e) if test -n "$DLLTOOL"; then
10852 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10853 else
10854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10855 for as_dir in $PATH
10856 do
10857 IFS=$as_save_IFS
10858 case $as_dir in #(((
10859 '') as_dir=./ ;;
10860 */) ;;
10861 *) as_dir=$as_dir/ ;;
10862 esac
10863 for ac_exec_ext in '' $ac_executable_extensions; do
10864 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10865 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10866 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10867 break 2
10868 fi
10869 done
10870 done
10871 IFS=$as_save_IFS
10872
10873 fi ;;
10874 esac
10875 fi
10876 DLLTOOL=$ac_cv_prog_DLLTOOL
10877 if test -n "$DLLTOOL"; then
10878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10879 printf "%s\n" "$DLLTOOL" >&6; }
10880 else
10881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10882 printf "%s\n" "no" >&6; }
10883 fi
10884
10885
10886 fi
10887 if test -z "$ac_cv_prog_DLLTOOL"; then
10888 ac_ct_DLLTOOL=$DLLTOOL
10889 # Extract the first word of "dlltool", so it can be a program name with args.
10890 set dummy dlltool; ac_word=$2
10891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10892 printf %s "checking for $ac_word... " >&6; }
10893 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
10894 then :
10895 printf %s "(cached) " >&6
10896 else case e in #(
10897 e) if test -n "$ac_ct_DLLTOOL"; then
10898 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10899 else
10900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10901 for as_dir in $PATH
10902 do
10903 IFS=$as_save_IFS
10904 case $as_dir in #(((
10905 '') as_dir=./ ;;
10906 */) ;;
10907 *) as_dir=$as_dir/ ;;
10908 esac
10909 for ac_exec_ext in '' $ac_executable_extensions; do
10910 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10911 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10912 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10913 break 2
10914 fi
10915 done
10916 done
10917 IFS=$as_save_IFS
10918
10919 fi ;;
10920 esac
10921 fi
10922 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10923 if test -n "$ac_ct_DLLTOOL"; then
10924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10925 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
10926 else
10927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10928 printf "%s\n" "no" >&6; }
10929 fi
10930
10931 if test "x$ac_ct_DLLTOOL" = x; then
10932 DLLTOOL="false"
10933 else
10934 case $cross_compiling:$ac_tool_warned in
10935 yes:)
10936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10937 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10938 ac_tool_warned=yes ;;
10939 esac
10940 DLLTOOL=$ac_ct_DLLTOOL
10941 fi
10942 else
10943 DLLTOOL="$ac_cv_prog_DLLTOOL"
10944 fi
10945
10946 if test -n "$ac_tool_prefix"; then
10947 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10948 set dummy ${ac_tool_prefix}objdump; ac_word=$2
10949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10950 printf %s "checking for $ac_word... " >&6; }
10951 if test ${ac_cv_prog_OBJDUMP+y}
10952 then :
10953 printf %s "(cached) " >&6
10954 else case e in #(
10955 e) if test -n "$OBJDUMP"; then
10956 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10957 else
10958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10959 for as_dir in $PATH
10960 do
10961 IFS=$as_save_IFS
10962 case $as_dir in #(((
10963 '') as_dir=./ ;;
10964 */) ;;
10965 *) as_dir=$as_dir/ ;;
10966 esac
10967 for ac_exec_ext in '' $ac_executable_extensions; do
10968 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10969 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10970 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10971 break 2
10972 fi
10973 done
10974 done
10975 IFS=$as_save_IFS
10976
10977 fi ;;
10978 esac
10979 fi
10980 OBJDUMP=$ac_cv_prog_OBJDUMP
10981 if test -n "$OBJDUMP"; then
10982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10983 printf "%s\n" "$OBJDUMP" >&6; }
10984 else
10985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10986 printf "%s\n" "no" >&6; }
10987 fi
10988
10989
10990 fi
10991 if test -z "$ac_cv_prog_OBJDUMP"; then
10992 ac_ct_OBJDUMP=$OBJDUMP
10993 # Extract the first word of "objdump", so it can be a program name with args.
10994 set dummy objdump; ac_word=$2
10995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10996 printf %s "checking for $ac_word... " >&6; }
10997 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
10998 then :
10999 printf %s "(cached) " >&6
11000 else case e in #(
11001 e) if test -n "$ac_ct_OBJDUMP"; then
11002 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11003 else
11004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11005 for as_dir in $PATH
11006 do
11007 IFS=$as_save_IFS
11008 case $as_dir in #(((
11009 '') as_dir=./ ;;
11010 */) ;;
11011 *) as_dir=$as_dir/ ;;
11012 esac
11013 for ac_exec_ext in '' $ac_executable_extensions; do
11014 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11015 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11016 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11017 break 2
11018 fi
11019 done
11020 done
11021 IFS=$as_save_IFS
11022
11023 fi ;;
11024 esac
11025 fi
11026 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11027 if test -n "$ac_ct_OBJDUMP"; then
11028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11029 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
11030 else
11031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11032 printf "%s\n" "no" >&6; }
11033 fi
11034
11035 if test "x$ac_ct_OBJDUMP" = x; then
11036 OBJDUMP="false"
11037 else
11038 case $cross_compiling:$ac_tool_warned in
11039 yes:)
11040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11041 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11042 ac_tool_warned=yes ;;
11043 esac
11044 OBJDUMP=$ac_ct_OBJDUMP
11045 fi
11046 else
11047 OBJDUMP="$ac_cv_prog_OBJDUMP"
11048 fi
11049
11050 ;;
11051 esac
11052
11053 test -z "$AS" && AS=as
11054
11055
11056
11057
11058
11059 test -z "$DLLTOOL" && DLLTOOL=dlltool
11060
11061
11062
11063
11064
11065 test -z "$OBJDUMP" && OBJDUMP=objdump
11066
11067
11068
11069
11070
11071
11072
11073 enable_dlopen=no
11074
11075
11076
11077 # Check whether --enable-shared was given.
11078 if test ${enable_shared+y}
11079 then :
11080 enableval=$enable_shared; p=${PACKAGE-default}
11081 case $enableval in
11082 yes) enable_shared=yes ;;
11083 no) enable_shared=no ;;
11084 *)
11085 enable_shared=no
11086 # Look at the argument we got. We use all the common list separators.
11087 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11088 for pkg in $enableval; do
11089 IFS=$lt_save_ifs
11090 if test "X$pkg" = "X$p"; then
11091 enable_shared=yes
11092 fi
11093 done
11094 IFS=$lt_save_ifs
11095 ;;
11096 esac
11097 else case e in #(
11098 e) enable_shared=yes ;;
11099 esac
11100 fi
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110 # Check whether --enable-static was given.
11111 if test ${enable_static+y}
11112 then :
11113 enableval=$enable_static; p=${PACKAGE-default}
11114 case $enableval in
11115 yes) enable_static=yes ;;
11116 no) enable_static=no ;;
11117 *)
11118 enable_static=no
11119 # Look at the argument we got. We use all the common list separators.
11120 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11121 for pkg in $enableval; do
11122 IFS=$lt_save_ifs
11123 if test "X$pkg" = "X$p"; then
11124 enable_static=yes
11125 fi
11126 done
11127 IFS=$lt_save_ifs
11128 ;;
11129 esac
11130 else case e in #(
11131 e) enable_static=yes ;;
11132 esac
11133 fi
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143 # Check whether --enable-pic was given.
11144 if test ${enable_pic+y}
11145 then :
11146 enableval=$enable_pic; lt_p=${PACKAGE-default}
11147 case $enableval in
11148 yes|no) pic_mode=$enableval ;;
11149 *)
11150 pic_mode=default
11151 # Look at the argument we got. We use all the common list separators.
11152 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11153 for lt_pkg in $enableval; do
11154 IFS=$lt_save_ifs
11155 if test "X$lt_pkg" = "X$lt_p"; then
11156 pic_mode=yes
11157 fi
11158 done
11159 IFS=$lt_save_ifs
11160 ;;
11161 esac
11162 else case e in #(
11163 e) # Check whether --with-pic was given.
11164 if test ${with_pic+y}
11165 then :
11166 withval=$with_pic; lt_p=${PACKAGE-default}
11167 case $withval in
11168 yes|no) pic_mode=$withval ;;
11169 *)
11170 pic_mode=default
11171 # Look at the argument we got. We use all the common list separators.
11172 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11173 for lt_pkg in $withval; do
11174 IFS=$lt_save_ifs
11175 if test "X$lt_pkg" = "X$lt_p"; then
11176 pic_mode=yes
11177 fi
11178 done
11179 IFS=$lt_save_ifs
11180 ;;
11181 esac
11182 else case e in #(
11183 e) pic_mode=default ;;
11184 esac
11185 fi
11186
11187 ;;
11188 esac
11189 fi
11190
11191
11192
11193
11194
11195
11196
11197
11198 # Check whether --enable-fast-install was given.
11199 if test ${enable_fast_install+y}
11200 then :
11201 enableval=$enable_fast_install; p=${PACKAGE-default}
11202 case $enableval in
11203 yes) enable_fast_install=yes ;;
11204 no) enable_fast_install=no ;;
11205 *)
11206 enable_fast_install=no
11207 # Look at the argument we got. We use all the common list separators.
11208 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11209 for pkg in $enableval; do
11210 IFS=$lt_save_ifs
11211 if test "X$pkg" = "X$p"; then
11212 enable_fast_install=yes
11213 fi
11214 done
11215 IFS=$lt_save_ifs
11216 ;;
11217 esac
11218 else case e in #(
11219 e) enable_fast_install=yes ;;
11220 esac
11221 fi
11222
11223
11224
11225
11226
11227
11228
11229
11230 shared_archive_member_spec=
11231 case $host,$enable_shared in
11232 power*-*-aix[5-9]*,yes)
11233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
11234 printf %s "checking which variant of shared library versioning to provide... " >&6; }
11235 # Check whether --enable-aix-soname was given.
11236 if test ${enable_aix_soname+y}
11237 then :
11238 enableval=$enable_aix_soname; case $enableval in
11239 aix|svr4|both)
11240 ;;
11241 *)
11242 as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5
11243 ;;
11244 esac
11245 lt_cv_with_aix_soname=$enable_aix_soname
11246 else case e in #(
11247 e) # Check whether --with-aix-soname was given.
11248 if test ${with_aix_soname+y}
11249 then :
11250 withval=$with_aix_soname; case $withval in
11251 aix|svr4|both)
11252 ;;
11253 *)
11254 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
11255 ;;
11256 esac
11257 lt_cv_with_aix_soname=$with_aix_soname
11258 else case e in #(
11259 e) if test ${lt_cv_with_aix_soname+y}
11260 then :
11261 printf %s "(cached) " >&6
11262 else case e in #(
11263 e) lt_cv_with_aix_soname=aix ;;
11264 esac
11265 fi
11266 ;;
11267 esac
11268 fi
11269
11270 enable_aix_soname=$lt_cv_with_aix_soname ;;
11271 esac
11272 fi
11273
11274 with_aix_soname=$enable_aix_soname
11275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
11276 printf "%s\n" "$with_aix_soname" >&6; }
11277 if test aix != "$with_aix_soname"; then
11278 # For the AIX way of multilib, we name the shared archive member
11279 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
11280 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
11281 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
11282 # the AIX toolchain works better with OBJECT_MODE set (default 32).
11283 if test 64 = "${OBJECT_MODE-32}"; then
11284 shared_archive_member_spec=shr_64
11285 else
11286 shared_archive_member_spec=shr
11287 fi
11288 fi
11289 ;;
11290 *)
11291 with_aix_soname=aix
11292 ;;
11293 esac
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304 # This can be used to rebuild libtool when needed
11305 LIBTOOL_DEPS=$ltmain
11306
11307 # Always use our own libtool.
11308 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339 test -z "$LN_S" && LN_S="ln -s"
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354 if test -n "${ZSH_VERSION+set}"; then
11355 setopt NO_GLOB_SUBST
11356 fi
11357
11358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11359 printf %s "checking for objdir... " >&6; }
11360 if test ${lt_cv_objdir+y}
11361 then :
11362 printf %s "(cached) " >&6
11363 else case e in #(
11364 e) rm -f .libs 2>/dev/null
11365 mkdir .libs 2>/dev/null
11366 if test -d .libs; then
11367 lt_cv_objdir=.libs
11368 else
11369 # MS-DOS does not allow filenames that begin with a dot.
11370 lt_cv_objdir=_libs
11371 fi
11372 rmdir .libs 2>/dev/null ;;
11373 esac
11374 fi
11375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11376 printf "%s\n" "$lt_cv_objdir" >&6; }
11377 objdir=$lt_cv_objdir
11378
11379
11380
11381
11382
11383 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
11384
11385
11386
11387
11388 case $host_os in
11389 aix3*)
11390 # AIX sometimes has problems with the GCC collect2 program. For some
11391 # reason, if we set the COLLECT_NAMES environment variable, the problems
11392 # vanish in a puff of smoke.
11393 if test set != "${COLLECT_NAMES+set}"; then
11394 COLLECT_NAMES=
11395 export COLLECT_NAMES
11396 fi
11397 ;;
11398 esac
11399
11400 # Global variables:
11401 ofile=libtool
11402 can_build_shared=yes
11403
11404 # All known linkers require a '.a' archive for static linking (except MSVC and
11405 # ICC, which need '.lib').
11406 libext=a
11407
11408 with_gnu_ld=$lt_cv_prog_gnu_ld
11409
11410 old_CC=$CC
11411 old_CFLAGS=$CFLAGS
11412
11413 # Set sane defaults for various variables
11414 test -z "$CC" && CC=cc
11415 test -z "$LTCC" && LTCC=$CC
11416 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11417 test -z "$LD" && LD=ld
11418 test -z "$ac_objext" && ac_objext=o
11419
11420 func_cc_basename $compiler
11421 cc_basename=$func_cc_basename_result
11422
11423
11424 # Only perform the check for file, if the check method requires it
11425 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11426 case $deplibs_check_method in
11427 file_magic*)
11428 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11430 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
11431 if test ${lt_cv_path_MAGIC_CMD+y}
11432 then :
11433 printf %s "(cached) " >&6
11434 else case e in #(
11435 e) case $MAGIC_CMD in
11436 [\\/*] | ?:[\\/]*)
11437 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11438 ;;
11439 *)
11440 lt_save_MAGIC_CMD=$MAGIC_CMD
11441 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11442 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11443 for ac_dir in $ac_dummy; do
11444 IFS=$lt_save_ifs
11445 test -z "$ac_dir" && ac_dir=.
11446 if test -f "$ac_dir/${ac_tool_prefix}file"; then
11447 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
11448 if test -n "$file_magic_test_file"; then
11449 case $deplibs_check_method in
11450 "file_magic "*)
11451 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11452 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11453 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11454 $EGREP "$file_magic_regex" > /dev/null; then
11455 :
11456 else
11457 cat <<_LT_EOF 1>&2
11458
11459 *** Warning: the command libtool uses to detect shared libraries,
11460 *** $file_magic_cmd, produces output that libtool cannot recognize.
11461 *** The result is that libtool may fail to recognize shared libraries
11462 *** as such. This will affect the creation of libtool libraries that
11463 *** depend on shared libraries, but programs linked with such libtool
11464 *** libraries will work regardless of this problem. Nevertheless, you
11465 *** may want to report the problem to your system manager and/or to
11466 *** [email protected]
11467
11468 _LT_EOF
11469 fi ;;
11470 esac
11471 fi
11472 break
11473 fi
11474 done
11475 IFS=$lt_save_ifs
11476 MAGIC_CMD=$lt_save_MAGIC_CMD
11477 ;;
11478 esac ;;
11479 esac
11480 fi
11481
11482 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11483 if test -n "$MAGIC_CMD"; then
11484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11485 printf "%s\n" "$MAGIC_CMD" >&6; }
11486 else
11487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11488 printf "%s\n" "no" >&6; }
11489 fi
11490
11491
11492
11493
11494
11495 if test -z "$lt_cv_path_MAGIC_CMD"; then
11496 if test -n "$ac_tool_prefix"; then
11497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11498 printf %s "checking for file... " >&6; }
11499 if test ${lt_cv_path_MAGIC_CMD+y}
11500 then :
11501 printf %s "(cached) " >&6
11502 else case e in #(
11503 e) case $MAGIC_CMD in
11504 [\\/*] | ?:[\\/]*)
11505 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11506 ;;
11507 *)
11508 lt_save_MAGIC_CMD=$MAGIC_CMD
11509 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11510 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11511 for ac_dir in $ac_dummy; do
11512 IFS=$lt_save_ifs
11513 test -z "$ac_dir" && ac_dir=.
11514 if test -f "$ac_dir/file"; then
11515 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
11516 if test -n "$file_magic_test_file"; then
11517 case $deplibs_check_method in
11518 "file_magic "*)
11519 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11520 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11521 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11522 $EGREP "$file_magic_regex" > /dev/null; then
11523 :
11524 else
11525 cat <<_LT_EOF 1>&2
11526
11527 *** Warning: the command libtool uses to detect shared libraries,
11528 *** $file_magic_cmd, produces output that libtool cannot recognize.
11529 *** The result is that libtool may fail to recognize shared libraries
11530 *** as such. This will affect the creation of libtool libraries that
11531 *** depend on shared libraries, but programs linked with such libtool
11532 *** libraries will work regardless of this problem. Nevertheless, you
11533 *** may want to report the problem to your system manager and/or to
11534 *** [email protected]
11535
11536 _LT_EOF
11537 fi ;;
11538 esac
11539 fi
11540 break
11541 fi
11542 done
11543 IFS=$lt_save_ifs
11544 MAGIC_CMD=$lt_save_MAGIC_CMD
11545 ;;
11546 esac ;;
11547 esac
11548 fi
11549
11550 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11551 if test -n "$MAGIC_CMD"; then
11552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11553 printf "%s\n" "$MAGIC_CMD" >&6; }
11554 else
11555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11556 printf "%s\n" "no" >&6; }
11557 fi
11558
11559
11560 else
11561 MAGIC_CMD=:
11562 fi
11563 fi
11564
11565 fi
11566 ;;
11567 esac
11568
11569 # Use C for the default configuration in the libtool script
11570
11571 lt_save_CC=$CC
11572 ac_ext=c
11573 ac_cpp='$CPP $CPPFLAGS'
11574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11577
11578
11579 # Source file extension for C test sources.
11580 ac_ext=c
11581
11582 # Object file extension for compiled C test sources.
11583 objext=o
11584 objext=$objext
11585
11586 # Code to be used in simple compile tests
11587 lt_simple_compile_test_code="int some_variable = 0;"
11588
11589 # Code to be used in simple link tests
11590 lt_simple_link_test_code='int main(void){return(0);}'
11591
11592
11593
11594
11595
11596
11597
11598 # If no C compiler was specified, use CC.
11599 LTCC=${LTCC-"$CC"}
11600
11601 # If no C compiler flags were specified, use CFLAGS.
11602 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11603
11604 # Allow CC to be a program name with arguments.
11605 compiler=$CC
11606
11607 # Save the default compiler, since it gets overwritten when the other
11608 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11609 compiler_DEFAULT=$CC
11610
11611 # save warnings/boilerplate of simple test code
11612 ac_outfile=conftest.$ac_objext
11613 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11614 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11615 _lt_compiler_boilerplate=`cat conftest.err`
11616 $RM conftest*
11617
11618 ac_outfile=conftest.$ac_objext
11619 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11620 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11621 _lt_linker_boilerplate=`cat conftest.err`
11622 $RM -r conftest*
11623
11624
11625 ## CAVEAT EMPTOR:
11626 ## There is no encapsulation within the following macros, do not change
11627 ## the running order or otherwise move them around unless you know exactly
11628 ## what you are doing...
11629 if test -n "$compiler"; then
11630
11631 lt_prog_compiler_no_builtin_flag=
11632
11633 if test yes = "$GCC"; then
11634 case $cc_basename in
11635 nvcc*)
11636 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11637 *)
11638 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11639 esac
11640
11641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11642 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11643 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
11644 then :
11645 printf %s "(cached) " >&6
11646 else case e in #(
11647 e) lt_cv_prog_compiler_rtti_exceptions=no
11648 ac_outfile=conftest.$ac_objext
11649 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11650 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
11651 # Insert the option either (1) after the last *FLAGS variable, or
11652 # (2) before a word containing "conftest.", or (3) at the end.
11653 # Note that $ac_compile itself does not contain backslashes and begins
11654 # with a dollar sign (not a hyphen), so the echo should work correctly.
11655 # The option is referenced via a variable to avoid confusing sed.
11656 lt_compile=`echo "$ac_compile" | $SED \
11657 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11658 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11659 -e 's:$: $lt_compiler_flag:'`
11660 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11661 (eval "$lt_compile" 2>conftest.err)
11662 ac_status=$?
11663 cat conftest.err >&5
11664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11665 if (exit $ac_status) && test -s "$ac_outfile"; then
11666 # The compiler can only warn and ignore the option if not recognized
11667 # So say no if there are warnings other than the usual output.
11668 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11669 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11670 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11671 lt_cv_prog_compiler_rtti_exceptions=yes
11672 fi
11673 fi
11674 $RM conftest*
11675 ;;
11676 esac
11677 fi
11678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11679 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11680
11681 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
11682 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11683 else
11684 :
11685 fi
11686
11687 fi
11688
11689
11690
11691
11692
11693
11694 lt_prog_compiler_wl=
11695 lt_prog_compiler_pic=
11696 lt_prog_compiler_static=
11697
11698
11699 if test yes = "$GCC"; then
11700 lt_prog_compiler_wl='-Wl,'
11701 lt_prog_compiler_static='-static'
11702
11703 case $host_os in
11704 aix*)
11705 # All AIX code is PIC.
11706 if test ia64 = "$host_cpu"; then
11707 # AIX 5 now supports IA64 processor
11708 lt_prog_compiler_static='-Bstatic'
11709 fi
11710 lt_prog_compiler_pic='-fPIC'
11711 ;;
11712
11713 amigaos*)
11714 case $host_cpu in
11715 powerpc)
11716 # see comment about AmigaOS4 .so support
11717 lt_prog_compiler_pic='-fPIC'
11718 ;;
11719 m68k)
11720 # FIXME: we need at least 68020 code to build shared libraries, but
11721 # adding the '-m68020' flag to GCC prevents building anything better,
11722 # like '-m68040'.
11723 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11724 ;;
11725 esac
11726 ;;
11727
11728 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11729 # PIC is the default for these OSes.
11730 ;;
11731
11732 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
11733 # This hack is so that the source file can tell whether it is being
11734 # built for inclusion in a dll (and should export symbols for example).
11735 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11736 # (--disable-auto-import) libraries
11737 lt_prog_compiler_pic='-DDLL_EXPORT'
11738 case $host_os in
11739 os2*)
11740 lt_prog_compiler_static='$wl-static'
11741 ;;
11742 esac
11743 ;;
11744
11745 darwin* | rhapsody*)
11746 # PIC is the default on this platform
11747 # Common symbols not allowed in MH_DYLIB files
11748 lt_prog_compiler_pic='-fno-common'
11749 ;;
11750
11751 haiku*)
11752 # PIC is the default for Haiku.
11753 # The "-static" flag exists, but is broken.
11754 lt_prog_compiler_static=
11755 ;;
11756
11757 hpux*)
11758 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11759 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11760 # sets the default TLS model and affects inlining.
11761 case $host_cpu in
11762 hppa*64*)
11763 # +Z the default
11764 ;;
11765 *)
11766 lt_prog_compiler_pic='-fPIC'
11767 ;;
11768 esac
11769 ;;
11770
11771 interix[3-9]*)
11772 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11773 # Instead, we relocate shared libraries at runtime.
11774 ;;
11775
11776 msdosdjgpp*)
11777 # Just because we use GCC doesn't mean we suddenly get shared libraries
11778 # on systems that don't support them.
11779 lt_prog_compiler_can_build_shared=no
11780 enable_shared=no
11781 ;;
11782
11783 *nto* | *qnx*)
11784 # QNX uses GNU C++, but need to define -shared option too, otherwise
11785 # it will coredump.
11786 lt_prog_compiler_pic='-fPIC -shared'
11787 ;;
11788
11789 sysv4*MP*)
11790 if test -d /usr/nec; then
11791 lt_prog_compiler_pic=-Kconform_pic
11792 fi
11793 ;;
11794
11795 *)
11796 lt_prog_compiler_pic='-fPIC'
11797 ;;
11798 esac
11799
11800 case $cc_basename in
11801 nvcc*) # Cuda Compiler Driver 2.2
11802 lt_prog_compiler_wl='-Xlinker '
11803 if test -n "$lt_prog_compiler_pic"; then
11804 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
11805 fi
11806 ;;
11807 esac
11808 else
11809 # PORTME Check for flag to pass linker flags through the system compiler.
11810 case $host_os in
11811 aix*)
11812 lt_prog_compiler_wl='-Wl,'
11813 if test ia64 = "$host_cpu"; then
11814 # AIX 5 now supports IA64 processor
11815 lt_prog_compiler_static='-Bstatic'
11816 else
11817 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11818 fi
11819 ;;
11820
11821 darwin* | rhapsody*)
11822 # PIC is the default on this platform
11823 # Common symbols not allowed in MH_DYLIB files
11824 lt_prog_compiler_pic='-fno-common'
11825 case $cc_basename in
11826 nagfor*)
11827 # NAG Fortran compiler
11828 lt_prog_compiler_wl='-Wl,-Wl,,'
11829 lt_prog_compiler_pic='-PIC'
11830 lt_prog_compiler_static='-Bstatic'
11831 ;;
11832 esac
11833 ;;
11834
11835 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
11836 # This hack is so that the source file can tell whether it is being
11837 # built for inclusion in a dll (and should export symbols for example).
11838 lt_prog_compiler_pic='-DDLL_EXPORT'
11839 case $host_os in
11840 os2*)
11841 lt_prog_compiler_static='$wl-static'
11842 ;;
11843 esac
11844 ;;
11845
11846 hpux9* | hpux10* | hpux11*)
11847 lt_prog_compiler_wl='-Wl,'
11848 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11849 # not for PA HP-UX.
11850 case $host_cpu in
11851 hppa*64*|ia64*)
11852 # +Z the default
11853 ;;
11854 *)
11855 lt_prog_compiler_pic='+Z'
11856 ;;
11857 esac
11858 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11859 lt_prog_compiler_static='$wl-a ${wl}archive'
11860 ;;
11861
11862 irix5* | irix6* | nonstopux*)
11863 lt_prog_compiler_wl='-Wl,'
11864 # PIC (with -KPIC) is the default.
11865 lt_prog_compiler_static='-non_shared'
11866 ;;
11867
11868 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11869 case $cc_basename in
11870 # old Intel for x86_64, which still supported -KPIC.
11871 ecc*)
11872 lt_prog_compiler_wl='-Wl,'
11873 lt_prog_compiler_pic='-KPIC'
11874 lt_prog_compiler_static='-static'
11875 ;;
11876 *flang* | ftn | f18* | f95*)
11877 # Flang compiler.
11878 lt_prog_compiler_wl='-Wl,'
11879 lt_prog_compiler_pic='-fPIC'
11880 lt_prog_compiler_static='-static'
11881 ;;
11882 # icc used to be incompatible with GCC.
11883 # ICC 10 doesn't accept -KPIC any more.
11884 icc* | ifort*)
11885 lt_prog_compiler_wl='-Wl,'
11886 lt_prog_compiler_pic='-fPIC'
11887 lt_prog_compiler_static='-static'
11888 ;;
11889 # Lahey Fortran 8.1.
11890 lf95*)
11891 lt_prog_compiler_wl='-Wl,'
11892 lt_prog_compiler_pic='--shared'
11893 lt_prog_compiler_static='--static'
11894 ;;
11895 nagfor*)
11896 # NAG Fortran compiler
11897 lt_prog_compiler_wl='-Wl,-Wl,,'
11898 lt_prog_compiler_pic='-PIC'
11899 lt_prog_compiler_static='-Bstatic'
11900 ;;
11901 tcc*)
11902 # Fabrice Bellard et al's Tiny C Compiler
11903 lt_prog_compiler_wl='-Wl,'
11904 lt_prog_compiler_pic='-fPIC'
11905 lt_prog_compiler_static='-static'
11906 ;;
11907 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11908 # Portland Group compilers (*not* the Pentium gcc compiler,
11909 # which looks to be a dead project)
11910 lt_prog_compiler_wl='-Wl,'
11911 lt_prog_compiler_pic='-fpic'
11912 lt_prog_compiler_static='-Bstatic'
11913 ;;
11914 ccc*)
11915 lt_prog_compiler_wl='-Wl,'
11916 # All Alpha code is PIC.
11917 lt_prog_compiler_static='-non_shared'
11918 ;;
11919 xl* | bgxl* | bgf* | mpixl*)
11920 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11921 lt_prog_compiler_wl='-Wl,'
11922 lt_prog_compiler_pic='-qpic'
11923 lt_prog_compiler_static='-qstaticlink'
11924 ;;
11925 *)
11926 case `$CC -V 2>&1 | $SED 5q` in
11927 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11928 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11929 lt_prog_compiler_pic='-KPIC'
11930 lt_prog_compiler_static='-Bstatic'
11931 lt_prog_compiler_wl=''
11932 ;;
11933 *Sun\ F* | *Sun*Fortran*)
11934 lt_prog_compiler_pic='-KPIC'
11935 lt_prog_compiler_static='-Bstatic'
11936 lt_prog_compiler_wl='-Qoption ld '
11937 ;;
11938 *Sun\ C*)
11939 # Sun C 5.9
11940 lt_prog_compiler_pic='-KPIC'
11941 lt_prog_compiler_static='-Bstatic'
11942 lt_prog_compiler_wl='-Wl,'
11943 ;;
11944 *Intel*\ [CF]*Compiler*)
11945 lt_prog_compiler_wl='-Wl,'
11946 lt_prog_compiler_pic='-fPIC'
11947 lt_prog_compiler_static='-static'
11948 ;;
11949 *Portland\ Group*)
11950 lt_prog_compiler_wl='-Wl,'
11951 lt_prog_compiler_pic='-fpic'
11952 lt_prog_compiler_static='-Bstatic'
11953 ;;
11954 esac
11955 ;;
11956 esac
11957 ;;
11958
11959 newsos6)
11960 lt_prog_compiler_pic='-KPIC'
11961 lt_prog_compiler_static='-Bstatic'
11962 ;;
11963
11964 *-mlibc)
11965 lt_prog_compiler_wl='-Wl,'
11966 lt_prog_compiler_pic='-fPIC'
11967 lt_prog_compiler_static='-static'
11968 ;;
11969
11970 *nto* | *qnx*)
11971 # QNX uses GNU C++, but need to define -shared option too, otherwise
11972 # it will coredump.
11973 lt_prog_compiler_pic='-fPIC -shared'
11974 ;;
11975
11976 osf3* | osf4* | osf5*)
11977 lt_prog_compiler_wl='-Wl,'
11978 # All OSF/1 code is PIC.
11979 lt_prog_compiler_static='-non_shared'
11980 ;;
11981
11982 rdos*)
11983 lt_prog_compiler_static='-non_shared'
11984 ;;
11985
11986 serenity*)
11987 ;;
11988
11989 solaris*)
11990 lt_prog_compiler_pic='-KPIC'
11991 lt_prog_compiler_static='-Bstatic'
11992 case $cc_basename in
11993 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11994 lt_prog_compiler_wl='-Qoption ld ';;
11995 *)
11996 lt_prog_compiler_wl='-Wl,';;
11997 esac
11998 ;;
11999
12000 sunos4*)
12001 lt_prog_compiler_wl='-Qoption ld '
12002 lt_prog_compiler_pic='-PIC'
12003 lt_prog_compiler_static='-Bstatic'
12004 ;;
12005
12006 sysv4 | sysv4.2uw2* | sysv4.3*)
12007 lt_prog_compiler_wl='-Wl,'
12008 lt_prog_compiler_pic='-KPIC'
12009 lt_prog_compiler_static='-Bstatic'
12010 ;;
12011
12012 sysv4*MP*)
12013 if test -d /usr/nec; then
12014 lt_prog_compiler_pic='-Kconform_pic'
12015 lt_prog_compiler_static='-Bstatic'
12016 fi
12017 ;;
12018
12019 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12020 lt_prog_compiler_wl='-Wl,'
12021 lt_prog_compiler_pic='-KPIC'
12022 lt_prog_compiler_static='-Bstatic'
12023 ;;
12024
12025 unicos*)
12026 lt_prog_compiler_wl='-Wl,'
12027 lt_prog_compiler_can_build_shared=no
12028 ;;
12029
12030 uts4*)
12031 lt_prog_compiler_pic='-pic'
12032 lt_prog_compiler_static='-Bstatic'
12033 ;;
12034
12035 *)
12036 lt_prog_compiler_can_build_shared=no
12037 ;;
12038 esac
12039 fi
12040
12041 case $host_os in
12042 # For platforms that do not support PIC, -DPIC is meaningless:
12043 *djgpp*)
12044 lt_prog_compiler_pic=
12045 ;;
12046 *)
12047 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12048 ;;
12049 esac
12050
12051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12052 printf %s "checking for $compiler option to produce PIC... " >&6; }
12053 if test ${lt_cv_prog_compiler_pic+y}
12054 then :
12055 printf %s "(cached) " >&6
12056 else case e in #(
12057 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
12058 esac
12059 fi
12060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
12061 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
12062 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
12063
12064 #
12065 # Check to make sure the PIC flag actually works.
12066 #
12067 if test -n "$lt_prog_compiler_pic"; then
12068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12069 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12070 if test ${lt_cv_prog_compiler_pic_works+y}
12071 then :
12072 printf %s "(cached) " >&6
12073 else case e in #(
12074 e) lt_cv_prog_compiler_pic_works=no
12075 ac_outfile=conftest.$ac_objext
12076 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12077 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
12078 # Insert the option either (1) after the last *FLAGS variable, or
12079 # (2) before a word containing "conftest.", or (3) at the end.
12080 # Note that $ac_compile itself does not contain backslashes and begins
12081 # with a dollar sign (not a hyphen), so the echo should work correctly.
12082 # The option is referenced via a variable to avoid confusing sed.
12083 lt_compile=`echo "$ac_compile" | $SED \
12084 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12085 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12086 -e 's:$: $lt_compiler_flag:'`
12087 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12088 (eval "$lt_compile" 2>conftest.err)
12089 ac_status=$?
12090 cat conftest.err >&5
12091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12092 if (exit $ac_status) && test -s "$ac_outfile"; then
12093 # The compiler can only warn and ignore the option if not recognized
12094 # So say no if there are warnings other than the usual output.
12095 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12096 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12097 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12098 lt_cv_prog_compiler_pic_works=yes
12099 fi
12100 fi
12101 $RM conftest*
12102 ;;
12103 esac
12104 fi
12105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12106 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
12107
12108 if test yes = "$lt_cv_prog_compiler_pic_works"; then
12109 case $lt_prog_compiler_pic in
12110 "" | " "*) ;;
12111 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12112 esac
12113 else
12114 lt_prog_compiler_pic=
12115 lt_prog_compiler_can_build_shared=no
12116 fi
12117
12118 fi
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130 #
12131 # Check to make sure the static flag actually works.
12132 #
12133 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12135 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12136 if test ${lt_cv_prog_compiler_static_works+y}
12137 then :
12138 printf %s "(cached) " >&6
12139 else case e in #(
12140 e) lt_cv_prog_compiler_static_works=no
12141 save_LDFLAGS=$LDFLAGS
12142 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12143 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12144 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12145 # The linker can only warn and ignore the option if not recognized
12146 # So say no if there are warnings
12147 if test -s conftest.err; then
12148 # Append any errors to the config.log.
12149 cat conftest.err 1>&5
12150 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12151 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12152 if diff conftest.exp conftest.er2 >/dev/null; then
12153 lt_cv_prog_compiler_static_works=yes
12154 fi
12155 else
12156 lt_cv_prog_compiler_static_works=yes
12157 fi
12158 fi
12159 $RM -r conftest*
12160 LDFLAGS=$save_LDFLAGS
12161 ;;
12162 esac
12163 fi
12164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12165 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
12166
12167 if test yes = "$lt_cv_prog_compiler_static_works"; then
12168 :
12169 else
12170 lt_prog_compiler_static=
12171 fi
12172
12173
12174
12175
12176
12177
12178
12179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12180 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12181 if test ${lt_cv_prog_compiler_c_o+y}
12182 then :
12183 printf %s "(cached) " >&6
12184 else case e in #(
12185 e) lt_cv_prog_compiler_c_o=no
12186 $RM -r conftest 2>/dev/null
12187 mkdir conftest
12188 cd conftest
12189 mkdir out
12190 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12191
12192 lt_compiler_flag="-o out/conftest2.$ac_objext"
12193 # Insert the option either (1) after the last *FLAGS variable, or
12194 # (2) before a word containing "conftest.", or (3) at the end.
12195 # Note that $ac_compile itself does not contain backslashes and begins
12196 # with a dollar sign (not a hyphen), so the echo should work correctly.
12197 lt_compile=`echo "$ac_compile" | $SED \
12198 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12199 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12200 -e 's:$: $lt_compiler_flag:'`
12201 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12202 (eval "$lt_compile" 2>out/conftest.err)
12203 ac_status=$?
12204 cat out/conftest.err >&5
12205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12206 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12207 then
12208 # The compiler can only warn and ignore the option if not recognized
12209 # So say no if there are warnings
12210 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12211 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12212 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12213 lt_cv_prog_compiler_c_o=yes
12214 fi
12215 fi
12216 chmod u+w . 2>&5
12217 $RM conftest*
12218 # SGI C++ compiler will create directory out/ii_files/ for
12219 # template instantiation
12220 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12221 $RM out/* && rmdir out
12222 cd ..
12223 $RM -r conftest
12224 $RM conftest*
12225 ;;
12226 esac
12227 fi
12228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12229 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
12230
12231
12232
12233
12234
12235
12236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12237 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12238 if test ${lt_cv_prog_compiler_c_o+y}
12239 then :
12240 printf %s "(cached) " >&6
12241 else case e in #(
12242 e) lt_cv_prog_compiler_c_o=no
12243 $RM -r conftest 2>/dev/null
12244 mkdir conftest
12245 cd conftest
12246 mkdir out
12247 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12248
12249 lt_compiler_flag="-o out/conftest2.$ac_objext"
12250 # Insert the option either (1) after the last *FLAGS variable, or
12251 # (2) before a word containing "conftest.", or (3) at the end.
12252 # Note that $ac_compile itself does not contain backslashes and begins
12253 # with a dollar sign (not a hyphen), so the echo should work correctly.
12254 lt_compile=`echo "$ac_compile" | $SED \
12255 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12256 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12257 -e 's:$: $lt_compiler_flag:'`
12258 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12259 (eval "$lt_compile" 2>out/conftest.err)
12260 ac_status=$?
12261 cat out/conftest.err >&5
12262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12263 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12264 then
12265 # The compiler can only warn and ignore the option if not recognized
12266 # So say no if there are warnings
12267 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12268 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12269 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12270 lt_cv_prog_compiler_c_o=yes
12271 fi
12272 fi
12273 chmod u+w . 2>&5
12274 $RM conftest*
12275 # SGI C++ compiler will create directory out/ii_files/ for
12276 # template instantiation
12277 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12278 $RM out/* && rmdir out
12279 cd ..
12280 $RM -r conftest
12281 $RM conftest*
12282 ;;
12283 esac
12284 fi
12285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12286 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
12287
12288
12289
12290
12291 hard_links=nottested
12292 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
12293 # do not overwrite the value of need_locks provided by the user
12294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12295 printf %s "checking if we can lock with hard links... " >&6; }
12296 hard_links=yes
12297 $RM conftest*
12298 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12299 touch conftest.a
12300 ln conftest.a conftest.b 2>&5 || hard_links=no
12301 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12303 printf "%s\n" "$hard_links" >&6; }
12304 if test no = "$hard_links"; then
12305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
12306 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
12307 need_locks=warn
12308 fi
12309 else
12310 need_locks=no
12311 fi
12312
12313
12314
12315
12316
12317
12318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12319 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12320
12321 runpath_var=
12322 allow_undefined_flag=
12323 always_export_symbols=no
12324 archive_cmds=
12325 archive_expsym_cmds=
12326 compiler_needs_object=no
12327 enable_shared_with_static_runtimes=no
12328 export_dynamic_flag_spec=
12329 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12330 hardcode_automatic=no
12331 hardcode_direct=no
12332 hardcode_direct_absolute=no
12333 hardcode_libdir_flag_spec=
12334 hardcode_libdir_separator=
12335 hardcode_minus_L=no
12336 hardcode_shlibpath_var=unsupported
12337 inherit_rpath=no
12338 link_all_deplibs=unknown
12339 module_cmds=
12340 module_expsym_cmds=
12341 old_archive_from_new_cmds=
12342 old_archive_from_expsyms_cmds=
12343 thread_safe_flag_spec=
12344 whole_archive_flag_spec=
12345 # include_expsyms should be a list of space-separated symbols to be *always*
12346 # included in the symbol list
12347 include_expsyms=
12348 # exclude_expsyms can be an extended regexp of symbols to exclude
12349 # it will be wrapped by ' (' and ')$', so one must not match beginning or
12350 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
12351 # as well as any symbol that contains 'd'.
12352 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12353 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12354 # platforms (ab)use it in PIC code, but their linkers get confused if
12355 # the symbol is explicitly referenced. Since portable code cannot
12356 # rely on this symbol name, it's probably fine to never include it in
12357 # preloaded symbol tables.
12358 # Exclude shared library initialization/finalization symbols.
12359 extract_expsyms_cmds=
12360
12361 case $host_os in
12362 cygwin* | mingw* | windows* | pw32* | cegcc*)
12363 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
12364 # When not using gcc, we currently assume that we are using
12365 # Microsoft Visual C++ or Intel C++ Compiler.
12366 if test yes != "$GCC"; then
12367 with_gnu_ld=no
12368 fi
12369 ;;
12370 interix*)
12371 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
12372 with_gnu_ld=yes
12373 ;;
12374 esac
12375
12376 ld_shlibs=yes
12377
12378 # On some targets, GNU ld is compatible enough with the native linker
12379 # that we're better off using the native interface for both.
12380 lt_use_gnu_ld_interface=no
12381 if test yes = "$with_gnu_ld"; then
12382 case $host_os in
12383 aix*)
12384 # The AIX port of GNU ld has always aspired to compatibility
12385 # with the native linker. However, as the warning in the GNU ld
12386 # block says, versions before 2.19.5* couldn't really create working
12387 # shared libraries, regardless of the interface used.
12388 case `$LD -v 2>&1` in
12389 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12390 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12391 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12392 *)
12393 lt_use_gnu_ld_interface=yes
12394 ;;
12395 esac
12396 ;;
12397 *)
12398 lt_use_gnu_ld_interface=yes
12399 ;;
12400 esac
12401 fi
12402
12403 if test yes = "$lt_use_gnu_ld_interface"; then
12404 # If archive_cmds runs LD, not CC, wlarc should be empty
12405 wlarc='$wl'
12406
12407 # Set some defaults for GNU ld with shared library support. These
12408 # are reset later if shared libraries are not supported. Putting them
12409 # here allows them to be overridden if necessary.
12410 runpath_var=LD_RUN_PATH
12411 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12412 export_dynamic_flag_spec='$wl--export-dynamic'
12413 # ancient GNU ld didn't support --whole-archive et. al.
12414 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12415 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
12416 else
12417 whole_archive_flag_spec=
12418 fi
12419 supports_anon_versioning=no
12420 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
12421 *GNU\ gold*) supports_anon_versioning=yes ;;
12422 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12423 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12424 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12425 *\ 2.11.*) ;; # other 2.11 versions
12426 *) supports_anon_versioning=yes ;;
12427 esac
12428
12429 # See if GNU ld supports shared libraries.
12430 case $host_os in
12431 aix[3-9]*)
12432 # On AIX/PPC, the GNU linker is very broken
12433 if test ia64 != "$host_cpu"; then
12434 ld_shlibs=no
12435 cat <<_LT_EOF 1>&2
12436
12437 *** Warning: the GNU linker, at least up to release 2.19, is reported
12438 *** to be unable to reliably create shared libraries on AIX.
12439 *** Therefore, libtool is disabling shared libraries support. If you
12440 *** really care for shared libraries, you may want to install binutils
12441 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12442 *** You will then need to restart the configuration process.
12443
12444 _LT_EOF
12445 fi
12446 ;;
12447
12448 amigaos*)
12449 case $host_cpu in
12450 powerpc)
12451 # see comment about AmigaOS4 .so support
12452 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12453 archive_expsym_cmds=''
12454 ;;
12455 m68k)
12456 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)'
12457 hardcode_libdir_flag_spec='-L$libdir'
12458 hardcode_minus_L=yes
12459 ;;
12460 esac
12461 ;;
12462
12463 beos*)
12464 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12465 allow_undefined_flag=unsupported
12466 # Joseph Beckenbach <[email protected]> says some releases of gcc
12467 # support --undefined. This deserves some investigation. FIXME
12468 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12469 else
12470 ld_shlibs=no
12471 fi
12472 ;;
12473
12474 cygwin* | mingw* | windows* | pw32* | cegcc*)
12475 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12476 # as there is no search path for DLLs.
12477 hardcode_libdir_flag_spec='-L$libdir'
12478 export_dynamic_flag_spec='$wl--export-all-symbols'
12479 allow_undefined_flag=unsupported
12480 always_export_symbols=no
12481 enable_shared_with_static_runtimes=yes
12482 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'
12483 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12484 file_list_spec='@'
12485
12486 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12487 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12488 # If the export-symbols file already is a .def file, use it as
12489 # is; otherwise, prepend EXPORTS...
12490 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12491 cp $export_symbols $output_objdir/$soname.def;
12492 else
12493 echo EXPORTS > $output_objdir/$soname.def;
12494 cat $export_symbols >> $output_objdir/$soname.def;
12495 fi~
12496 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12497 else
12498 ld_shlibs=no
12499 fi
12500 ;;
12501
12502 haiku*)
12503 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12504 link_all_deplibs=no
12505 ;;
12506
12507 os2*)
12508 hardcode_libdir_flag_spec='-L$libdir'
12509 hardcode_minus_L=yes
12510 allow_undefined_flag=unsupported
12511 shrext_cmds=.dll
12512 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12513 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12514 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12515 $ECHO EXPORTS >> $output_objdir/$libname.def~
12516 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12517 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12518 emximp -o $lib $output_objdir/$libname.def'
12519 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12520 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12521 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12522 $ECHO EXPORTS >> $output_objdir/$libname.def~
12523 prefix_cmds="$SED"~
12524 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12525 prefix_cmds="$prefix_cmds -e 1d";
12526 fi~
12527 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12528 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12529 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12530 emximp -o $lib $output_objdir/$libname.def'
12531 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12532 enable_shared_with_static_runtimes=yes
12533 file_list_spec='@'
12534 ;;
12535
12536 interix[3-9]*)
12537 hardcode_direct=no
12538 hardcode_shlibpath_var=no
12539 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12540 export_dynamic_flag_spec='$wl-E'
12541 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12542 # Instead, shared libraries are loaded at an image base (0x10000000 by
12543 # default) and relocated if they conflict, which is a slow very memory
12544 # consuming and fragmenting process. To avoid this, we pick a random,
12545 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12546 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12547 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12548 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'
12549 ;;
12550
12551 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12552 tmp_diet=no
12553 if test linux-dietlibc = "$host_os"; then
12554 case $cc_basename in
12555 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12556 esac
12557 fi
12558 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12559 && test no = "$tmp_diet"
12560 then
12561 tmp_addflag=' $pic_flag'
12562 tmp_sharedflag='-shared'
12563 case $cc_basename,$host_cpu in
12564 pgcc*) # Portland Group C compiler
12565 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'
12566 tmp_addflag=' $pic_flag'
12567 ;;
12568 pgf77* | pgf90* | pgf95* | pgfortran*)
12569 # Portland Group f77 and f90 compilers
12570 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'
12571 tmp_addflag=' $pic_flag -Mnomain' ;;
12572 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12573 tmp_addflag=' -i_dynamic' ;;
12574 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12575 tmp_addflag=' -i_dynamic -nofor_main' ;;
12576 ifc* | ifort*) # Intel Fortran compiler
12577 tmp_addflag=' -nofor_main' ;;
12578 lf95*) # Lahey Fortran 8.1
12579 whole_archive_flag_spec=
12580 tmp_sharedflag='--shared' ;;
12581 nagfor*) # NAGFOR 5.3
12582 tmp_sharedflag='-Wl,-shared' ;;
12583 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12584 tmp_sharedflag='-qmkshrobj'
12585 tmp_addflag= ;;
12586 nvcc*) # Cuda Compiler Driver 2.2
12587 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'
12588 compiler_needs_object=yes
12589 ;;
12590 esac
12591 case `$CC -V 2>&1 | $SED 5q` in
12592 *Sun\ C*) # Sun C 5.9
12593 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'
12594 compiler_needs_object=yes
12595 tmp_sharedflag='-G' ;;
12596 *Sun\ F*) # Sun Fortran 8.3
12597 tmp_sharedflag='-G' ;;
12598 esac
12599 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12600
12601 if test yes = "$supports_anon_versioning"; then
12602 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12603 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12604 echo "local: *; };" >> $output_objdir/$libname.ver~
12605 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
12606 fi
12607
12608 case $cc_basename in
12609 tcc*)
12610 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12611 export_dynamic_flag_spec='-rdynamic'
12612 ;;
12613 xlf* | bgf* | bgxlf* | mpixlf*)
12614 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12615 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12616 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12617 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12618 if test yes = "$supports_anon_versioning"; then
12619 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12620 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12621 echo "local: *; };" >> $output_objdir/$libname.ver~
12622 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12623 fi
12624 ;;
12625 esac
12626 else
12627 ld_shlibs=no
12628 fi
12629 ;;
12630
12631 *-mlibc)
12632 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12633 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12634 ;;
12635
12636 netbsd* | netbsdelf*-gnu)
12637 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12638 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12639 wlarc=
12640 else
12641 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12642 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12643 fi
12644 ;;
12645
12646 solaris*)
12647 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12648 ld_shlibs=no
12649 cat <<_LT_EOF 1>&2
12650
12651 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12652 *** create shared libraries on Solaris systems. Therefore, libtool
12653 *** is disabling shared libraries support. We urge you to upgrade GNU
12654 *** binutils to release 2.9.1 or newer. Another option is to modify
12655 *** your PATH or compiler configuration so that the native linker is
12656 *** used, and then restart.
12657
12658 _LT_EOF
12659 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12660 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12661 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12662 else
12663 ld_shlibs=no
12664 fi
12665 ;;
12666
12667 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12668 case `$LD -v 2>&1` in
12669 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12670 ld_shlibs=no
12671 cat <<_LT_EOF 1>&2
12672
12673 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
12674 *** reliably create shared libraries on SCO systems. Therefore, libtool
12675 *** is disabling shared libraries support. We urge you to upgrade GNU
12676 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12677 *** your PATH or compiler configuration so that the native linker is
12678 *** used, and then restart.
12679
12680 _LT_EOF
12681 ;;
12682 *)
12683 # For security reasons, it is highly recommended that you always
12684 # use absolute paths for naming shared libraries, and exclude the
12685 # DT_RUNPATH tag from executables and libraries. But doing so
12686 # requires that you compile everything twice, which is a pain.
12687 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12688 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12689 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12690 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12691 else
12692 ld_shlibs=no
12693 fi
12694 ;;
12695 esac
12696 ;;
12697
12698 sunos4*)
12699 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12700 wlarc=
12701 hardcode_direct=yes
12702 hardcode_shlibpath_var=no
12703 ;;
12704
12705 *)
12706 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12707 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12708 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12709 else
12710 ld_shlibs=no
12711 fi
12712 ;;
12713 esac
12714
12715 if test no = "$ld_shlibs"; then
12716 runpath_var=
12717 hardcode_libdir_flag_spec=
12718 export_dynamic_flag_spec=
12719 whole_archive_flag_spec=
12720 fi
12721 else
12722 # PORTME fill in a description of your system's linker (not GNU ld)
12723 case $host_os in
12724 aix3*)
12725 allow_undefined_flag=unsupported
12726 always_export_symbols=yes
12727 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'
12728 # Note: this linker hardcodes the directories in LIBPATH if there
12729 # are no directories specified by -L.
12730 hardcode_minus_L=yes
12731 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
12732 # Neither direct hardcoding nor static linking is supported with a
12733 # broken collect2.
12734 hardcode_direct=unsupported
12735 fi
12736 ;;
12737
12738 aix[4-9]*)
12739 if test ia64 = "$host_cpu"; then
12740 # On IA64, the linker does run time linking by default, so we don't
12741 # have to do anything special.
12742 aix_use_runtimelinking=no
12743 exp_sym_flag='-Bexport'
12744 no_entry_flag=
12745 else
12746 # If we're using GNU nm, then we don't want the "-C" option.
12747 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
12748 # Without the "-l" option, or with the "-B" option, AIX nm treats
12749 # weak defined symbols like other global defined symbols, whereas
12750 # GNU nm marks them as "W".
12751 # While the 'weak' keyword is ignored in the Export File, we need
12752 # it in the Import File for the 'aix-soname' feature, so we have
12753 # to replace the "-B" option with "-P" for AIX nm.
12754 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12755 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'
12756 else
12757 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'
12758 fi
12759 aix_use_runtimelinking=no
12760
12761 # Test if we are trying to use run time linking or normal
12762 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12763 # have runtime linking enabled, and use it for executables.
12764 # For shared libraries, we enable/disable runtime linking
12765 # depending on the kind of the shared library created -
12766 # when "with_aix_soname,aix_use_runtimelinking" is:
12767 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
12768 # "aix,yes" lib.so shared, rtl:yes, for executables
12769 # lib.a static archive
12770 # "both,no" lib.so.V(shr.o) shared, rtl:yes
12771 # lib.a(lib.so.V) shared, rtl:no, for executables
12772 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
12773 # lib.a(lib.so.V) shared, rtl:no
12774 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
12775 # lib.a static archive
12776 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12777 for ld_flag in $LDFLAGS; do
12778 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
12779 aix_use_runtimelinking=yes
12780 break
12781 fi
12782 done
12783 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
12784 # With aix-soname=svr4, we create the lib.so.V shared archives only,
12785 # so we don't have lib.a shared libs to link our executables.
12786 # We have to force runtime linking in this case.
12787 aix_use_runtimelinking=yes
12788 LDFLAGS="$LDFLAGS -Wl,-brtl"
12789 fi
12790 ;;
12791 esac
12792
12793 exp_sym_flag='-bexport'
12794 no_entry_flag='-bnoentry'
12795 fi
12796
12797 # When large executables or shared objects are built, AIX ld can
12798 # have problems creating the table of contents. If linking a library
12799 # or program results in "error TOC overflow" add -mminimal-toc to
12800 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12801 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12802
12803 archive_cmds=''
12804 hardcode_direct=yes
12805 hardcode_direct_absolute=yes
12806 hardcode_libdir_separator=':'
12807 link_all_deplibs=yes
12808 file_list_spec='$wl-f,'
12809 case $with_aix_soname,$aix_use_runtimelinking in
12810 aix,*) ;; # traditional, no import file
12811 svr4,* | *,yes) # use import file
12812 # The Import File defines what to hardcode.
12813 hardcode_direct=no
12814 hardcode_direct_absolute=no
12815 ;;
12816 esac
12817
12818 if test yes = "$GCC"; then
12819 case $host_os in aix4.[012]|aix4.[012].*)
12820 # We only want to do this on AIX 4.2 and lower, the check
12821 # below for broken collect2 doesn't work under 4.3+
12822 collect2name=`$CC -print-prog-name=collect2`
12823 if test -f "$collect2name" &&
12824 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12825 then
12826 # We have reworked collect2
12827 :
12828 else
12829 # We have old collect2
12830 hardcode_direct=unsupported
12831 # It fails to find uninstalled libraries when the uninstalled
12832 # path is not listed in the libpath. Setting hardcode_minus_L
12833 # to unsupported forces relinking
12834 hardcode_minus_L=yes
12835 hardcode_libdir_flag_spec='-L$libdir'
12836 hardcode_libdir_separator=
12837 fi
12838 ;;
12839 esac
12840 shared_flag='-shared'
12841 if test yes = "$aix_use_runtimelinking"; then
12842 shared_flag="$shared_flag "'$wl-G'
12843 fi
12844 # Need to ensure runtime linking is disabled for the traditional
12845 # shared library, or the linker may eventually find shared libraries
12846 # /with/ Import File - we do not want to mix them.
12847 shared_flag_aix='-shared'
12848 shared_flag_svr4='-shared $wl-G'
12849 else
12850 # not using gcc
12851 if test ia64 = "$host_cpu"; then
12852 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12853 # chokes on -Wl,-G. The following line is correct:
12854 shared_flag='-G'
12855 else
12856 if test yes = "$aix_use_runtimelinking"; then
12857 shared_flag='$wl-G'
12858 else
12859 shared_flag='$wl-bM:SRE'
12860 fi
12861 shared_flag_aix='$wl-bM:SRE'
12862 shared_flag_svr4='$wl-G'
12863 fi
12864 fi
12865
12866 export_dynamic_flag_spec='$wl-bexpall'
12867 # It seems that -bexpall does not export symbols beginning with
12868 # underscore (_), so it is better to generate a list of symbols to export.
12869 always_export_symbols=yes
12870 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
12871 # Warning - without using the other runtime loading flags (-brtl),
12872 # -berok will link without error, but may produce a broken library.
12873 allow_undefined_flag='-berok'
12874 # Determine the default libpath from the value encoded in an
12875 # empty executable.
12876 if test set = "${lt_cv_aix_libpath+set}"; then
12877 aix_libpath=$lt_cv_aix_libpath
12878 else
12879 if test ${lt_cv_aix_libpath_+y}
12880 then :
12881 printf %s "(cached) " >&6
12882 else case e in #(
12883 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12884 /* end confdefs.h. */
12885
12886 int
12887 main (void)
12888 {
12889
12890 ;
12891 return 0;
12892 }
12893 _ACEOF
12894 if ac_fn_c_try_link "$LINENO"
12895 then :
12896
12897 lt_aix_libpath_sed='
12898 /Import File Strings/,/^$/ {
12899 /^0/ {
12900 s/^0 *\([^ ]*\) *$/\1/
12901 p
12902 }
12903 }'
12904 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12905 # Check for a 64-bit object if we didn't find anything.
12906 if test -z "$lt_cv_aix_libpath_"; then
12907 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12908 fi
12909 fi
12910 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12911 conftest$ac_exeext conftest.$ac_ext
12912 if test -z "$lt_cv_aix_libpath_"; then
12913 lt_cv_aix_libpath_=/usr/lib:/lib
12914 fi
12915 ;;
12916 esac
12917 fi
12918
12919 aix_libpath=$lt_cv_aix_libpath_
12920 fi
12921
12922 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12923 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
12924 else
12925 if test ia64 = "$host_cpu"; then
12926 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
12927 allow_undefined_flag="-z nodefs"
12928 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"
12929 else
12930 # Determine the default libpath from the value encoded in an
12931 # empty executable.
12932 if test set = "${lt_cv_aix_libpath+set}"; then
12933 aix_libpath=$lt_cv_aix_libpath
12934 else
12935 if test ${lt_cv_aix_libpath_+y}
12936 then :
12937 printf %s "(cached) " >&6
12938 else case e in #(
12939 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12940 /* end confdefs.h. */
12941
12942 int
12943 main (void)
12944 {
12945
12946 ;
12947 return 0;
12948 }
12949 _ACEOF
12950 if ac_fn_c_try_link "$LINENO"
12951 then :
12952
12953 lt_aix_libpath_sed='
12954 /Import File Strings/,/^$/ {
12955 /^0/ {
12956 s/^0 *\([^ ]*\) *$/\1/
12957 p
12958 }
12959 }'
12960 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12961 # Check for a 64-bit object if we didn't find anything.
12962 if test -z "$lt_cv_aix_libpath_"; then
12963 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12964 fi
12965 fi
12966 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12967 conftest$ac_exeext conftest.$ac_ext
12968 if test -z "$lt_cv_aix_libpath_"; then
12969 lt_cv_aix_libpath_=/usr/lib:/lib
12970 fi
12971 ;;
12972 esac
12973 fi
12974
12975 aix_libpath=$lt_cv_aix_libpath_
12976 fi
12977
12978 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12979 # Warning - without using the other run time loading flags,
12980 # -berok will link without error, but may produce a broken library.
12981 no_undefined_flag=' $wl-bernotok'
12982 allow_undefined_flag=' $wl-berok'
12983 if test yes = "$with_gnu_ld"; then
12984 # We only use this code for GNU lds that support --whole-archive.
12985 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
12986 else
12987 # Exported symbols can be pulled into shared objects from archives
12988 whole_archive_flag_spec='$convenience'
12989 fi
12990 archive_cmds_need_lc=yes
12991 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
12992 # -brtl affects multiple linker settings, -berok does not and is overridden later
12993 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
12994 if test svr4 != "$with_aix_soname"; then
12995 # This is similar to how AIX traditionally builds its shared libraries.
12996 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'
12997 fi
12998 if test aix != "$with_aix_soname"; then
12999 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'
13000 else
13001 # used by -dlpreopen to get the symbols
13002 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
13003 fi
13004 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
13005 fi
13006 fi
13007 ;;
13008
13009 amigaos*)
13010 case $host_cpu in
13011 powerpc)
13012 # see comment about AmigaOS4 .so support
13013 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13014 archive_expsym_cmds=''
13015 ;;
13016 m68k)
13017 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)'
13018 hardcode_libdir_flag_spec='-L$libdir'
13019 hardcode_minus_L=yes
13020 ;;
13021 esac
13022 ;;
13023
13024 bsdi[45]*)
13025 export_dynamic_flag_spec=-rdynamic
13026 ;;
13027
13028 cygwin* | mingw* | windows* | pw32* | cegcc*)
13029 # When not using gcc, we currently assume that we are using
13030 # Microsoft Visual C++ or Intel C++ Compiler.
13031 # hardcode_libdir_flag_spec is actually meaningless, as there is
13032 # no search path for DLLs.
13033 case $cc_basename in
13034 cl* | icl*)
13035 # Native MSVC or ICC
13036 hardcode_libdir_flag_spec=' '
13037 allow_undefined_flag=unsupported
13038 always_export_symbols=yes
13039 file_list_spec='@'
13040 # Tell ltmain to make .lib files, not .a files.
13041 libext=lib
13042 # Tell ltmain to make .dll files, not .so files.
13043 shrext_cmds=.dll
13044 # FIXME: Setting linknames here is a bad hack.
13045 archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13046 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13047 cp "$export_symbols" "$output_objdir/$soname.def";
13048 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13049 else
13050 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13051 fi~
13052 $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13053 linknames='
13054 # The linker will not automatically build a static lib if we build a DLL.
13055 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
13056 enable_shared_with_static_runtimes=yes
13057 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
13058 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13059 # Don't use ranlib
13060 old_postinstall_cmds='chmod 644 $oldlib'
13061 postlink_cmds='lt_outputfile="@OUTPUT@"~
13062 lt_tool_outputfile="@TOOL_OUTPUT@"~
13063 case $lt_outputfile in
13064 *.exe|*.EXE) ;;
13065 *)
13066 lt_outputfile=$lt_outputfile.exe
13067 lt_tool_outputfile=$lt_tool_outputfile.exe
13068 ;;
13069 esac~
13070 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13071 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13072 $RM "$lt_outputfile.manifest";
13073 fi'
13074 ;;
13075 *)
13076 # Assume MSVC and ICC wrapper
13077 hardcode_libdir_flag_spec=' '
13078 allow_undefined_flag=unsupported
13079 # Tell ltmain to make .lib files, not .a files.
13080 libext=lib
13081 # Tell ltmain to make .dll files, not .so files.
13082 shrext_cmds=.dll
13083 # FIXME: Setting linknames here is a bad hack.
13084 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13085 # The linker will automatically build a .lib file if we build a DLL.
13086 old_archive_from_new_cmds='true'
13087 # FIXME: Should let the user specify the lib program.
13088 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13089 enable_shared_with_static_runtimes=yes
13090 ;;
13091 esac
13092 ;;
13093
13094 darwin* | rhapsody*)
13095
13096
13097 archive_cmds_need_lc=no
13098 hardcode_direct=no
13099 hardcode_automatic=yes
13100 hardcode_shlibpath_var=unsupported
13101 if test yes = "$lt_cv_ld_force_load"; then
13102 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\"`'
13103
13104 else
13105 whole_archive_flag_spec=''
13106 fi
13107 link_all_deplibs=yes
13108 allow_undefined_flag=$_lt_dar_allow_undefined
13109 case $cc_basename in
13110 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13111 *) _lt_dar_can_shared=$GCC ;;
13112 esac
13113 if test yes = "$_lt_dar_can_shared"; then
13114 output_verbose_link_cmd=func_echo_all
13115 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
13116 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13117 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"
13118 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"
13119
13120 else
13121 ld_shlibs=no
13122 fi
13123
13124 ;;
13125
13126 dgux*)
13127 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13128 hardcode_libdir_flag_spec='-L$libdir'
13129 hardcode_shlibpath_var=no
13130 ;;
13131
13132 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13133 # support. Future versions do this automatically, but an explicit c++rt0.o
13134 # does not break anything, and helps significantly (at the cost of a little
13135 # extra space).
13136 freebsd2.2*)
13137 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13138 hardcode_libdir_flag_spec='-R$libdir'
13139 hardcode_direct=yes
13140 hardcode_shlibpath_var=no
13141 ;;
13142
13143 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13144 freebsd2.*)
13145 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13146 hardcode_direct=yes
13147 hardcode_minus_L=yes
13148 hardcode_shlibpath_var=no
13149 ;;
13150
13151 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13152 freebsd* | dragonfly* | midnightbsd*)
13153 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13154 hardcode_libdir_flag_spec='-R$libdir'
13155 hardcode_direct=yes
13156 hardcode_shlibpath_var=no
13157 ;;
13158
13159 hpux9*)
13160 if test yes = "$GCC"; then
13161 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'
13162 else
13163 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'
13164 fi
13165 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13166 hardcode_libdir_separator=:
13167 hardcode_direct=yes
13168
13169 # hardcode_minus_L: Not really in the search PATH,
13170 # but as the default location of the library.
13171 hardcode_minus_L=yes
13172 export_dynamic_flag_spec='$wl-E'
13173 ;;
13174
13175 hpux10*)
13176 if test yes,no = "$GCC,$with_gnu_ld"; then
13177 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13178 else
13179 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13180 fi
13181 if test no = "$with_gnu_ld"; then
13182 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13183 hardcode_libdir_separator=:
13184 hardcode_direct=yes
13185 hardcode_direct_absolute=yes
13186 export_dynamic_flag_spec='$wl-E'
13187 # hardcode_minus_L: Not really in the search PATH,
13188 # but as the default location of the library.
13189 hardcode_minus_L=yes
13190 fi
13191 ;;
13192
13193 hpux11*)
13194 if test yes,no = "$GCC,$with_gnu_ld"; then
13195 case $host_cpu in
13196 hppa*64*)
13197 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13198 ;;
13199 ia64*)
13200 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13201 ;;
13202 *)
13203 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13204 ;;
13205 esac
13206 else
13207 case $host_cpu in
13208 hppa*64*)
13209 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13210 ;;
13211 ia64*)
13212 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13213 ;;
13214 *)
13215
13216 # Older versions of the 11.00 compiler do not understand -b yet
13217 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13219 printf %s "checking if $CC understands -b... " >&6; }
13220 if test ${lt_cv_prog_compiler__b+y}
13221 then :
13222 printf %s "(cached) " >&6
13223 else case e in #(
13224 e) lt_cv_prog_compiler__b=no
13225 save_LDFLAGS=$LDFLAGS
13226 LDFLAGS="$LDFLAGS -b"
13227 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13228 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13229 # The linker can only warn and ignore the option if not recognized
13230 # So say no if there are warnings
13231 if test -s conftest.err; then
13232 # Append any errors to the config.log.
13233 cat conftest.err 1>&5
13234 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13235 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13236 if diff conftest.exp conftest.er2 >/dev/null; then
13237 lt_cv_prog_compiler__b=yes
13238 fi
13239 else
13240 lt_cv_prog_compiler__b=yes
13241 fi
13242 fi
13243 $RM -r conftest*
13244 LDFLAGS=$save_LDFLAGS
13245 ;;
13246 esac
13247 fi
13248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13249 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
13250
13251 if test yes = "$lt_cv_prog_compiler__b"; then
13252 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13253 else
13254 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13255 fi
13256
13257 ;;
13258 esac
13259 fi
13260 if test no = "$with_gnu_ld"; then
13261 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13262 hardcode_libdir_separator=:
13263
13264 case $host_cpu in
13265 hppa*64*|ia64*)
13266 hardcode_direct=no
13267 hardcode_shlibpath_var=no
13268 ;;
13269 *)
13270 hardcode_direct=yes
13271 hardcode_direct_absolute=yes
13272 export_dynamic_flag_spec='$wl-E'
13273
13274 # hardcode_minus_L: Not really in the search PATH,
13275 # but as the default location of the library.
13276 hardcode_minus_L=yes
13277 ;;
13278 esac
13279 fi
13280 ;;
13281
13282 irix5* | irix6* | nonstopux*)
13283 if test yes = "$GCC"; then
13284 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'
13285 # Try to use the -exported_symbol ld option, if it does not
13286 # work, assume that -exports_file does not work either and
13287 # implicitly export all symbols.
13288 # This should be the same for all languages, so no per-tag cache variable.
13289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13290 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13291 if test ${lt_cv_irix_exported_symbol+y}
13292 then :
13293 printf %s "(cached) " >&6
13294 else case e in #(
13295 e) save_LDFLAGS=$LDFLAGS
13296 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
13297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13298 /* end confdefs.h. */
13299 int foo (void) { return 0; }
13300 _ACEOF
13301 if ac_fn_c_try_link "$LINENO"
13302 then :
13303 lt_cv_irix_exported_symbol=yes
13304 else case e in #(
13305 e) lt_cv_irix_exported_symbol=no ;;
13306 esac
13307 fi
13308 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13309 conftest$ac_exeext conftest.$ac_ext
13310 LDFLAGS=$save_LDFLAGS ;;
13311 esac
13312 fi
13313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13314 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
13315 if test yes = "$lt_cv_irix_exported_symbol"; then
13316 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'
13317 fi
13318 else
13319 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'
13320 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'
13321 fi
13322 archive_cmds_need_lc='no'
13323 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13324 hardcode_libdir_separator=:
13325 inherit_rpath=yes
13326 link_all_deplibs=yes
13327 ;;
13328
13329 linux*)
13330 case $cc_basename in
13331 tcc*)
13332 # Fabrice Bellard et al's Tiny C Compiler
13333 ld_shlibs=yes
13334 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13335 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13336 ;;
13337 esac
13338 ;;
13339
13340 *-mlibc)
13341 ;;
13342
13343 netbsd* | netbsdelf*-gnu)
13344 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13345 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13346 else
13347 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13348 fi
13349 hardcode_libdir_flag_spec='-R$libdir'
13350 hardcode_direct=yes
13351 hardcode_shlibpath_var=no
13352 ;;
13353
13354 newsos6)
13355 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13356 hardcode_direct=yes
13357 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13358 hardcode_libdir_separator=:
13359 hardcode_shlibpath_var=no
13360 ;;
13361
13362 *nto* | *qnx*)
13363 ;;
13364
13365 openbsd*)
13366 if test -f /usr/libexec/ld.so; then
13367 hardcode_direct=yes
13368 hardcode_shlibpath_var=no
13369 hardcode_direct_absolute=yes
13370 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13371 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13372 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
13373 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13374 export_dynamic_flag_spec='$wl-E'
13375 else
13376 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13377 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13378 fi
13379 else
13380 ld_shlibs=no
13381 fi
13382 ;;
13383
13384 os2*)
13385 hardcode_libdir_flag_spec='-L$libdir'
13386 hardcode_minus_L=yes
13387 allow_undefined_flag=unsupported
13388 shrext_cmds=.dll
13389 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13390 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13391 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13392 $ECHO EXPORTS >> $output_objdir/$libname.def~
13393 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13394 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13395 emximp -o $lib $output_objdir/$libname.def'
13396 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13397 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13398 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13399 $ECHO EXPORTS >> $output_objdir/$libname.def~
13400 prefix_cmds="$SED"~
13401 if test EXPORTS = "`$SED 1q $export_symbols`"; then
13402 prefix_cmds="$prefix_cmds -e 1d";
13403 fi~
13404 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13405 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13406 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13407 emximp -o $lib $output_objdir/$libname.def'
13408 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13409 enable_shared_with_static_runtimes=yes
13410 file_list_spec='@'
13411 ;;
13412
13413 osf3*)
13414 if test yes = "$GCC"; then
13415 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13416 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'
13417 else
13418 allow_undefined_flag=' -expect_unresolved \*'
13419 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'
13420 fi
13421 archive_cmds_need_lc='no'
13422 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13423 hardcode_libdir_separator=:
13424 ;;
13425
13426 osf4* | osf5*) # as osf3* with the addition of -msym flag
13427 if test yes = "$GCC"; then
13428 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13429 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'
13430 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13431 else
13432 allow_undefined_flag=' -expect_unresolved \*'
13433 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'
13434 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~
13435 $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'
13436
13437 # Both c and cxx compiler support -rpath directly
13438 hardcode_libdir_flag_spec='-rpath $libdir'
13439 fi
13440 archive_cmds_need_lc='no'
13441 hardcode_libdir_separator=:
13442 ;;
13443
13444 serenity*)
13445 ;;
13446
13447 solaris*)
13448 no_undefined_flag=' -z defs'
13449 if test yes = "$GCC"; then
13450 wlarc='$wl'
13451 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13452 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13453 $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'
13454 else
13455 case `$CC -V 2>&1` in
13456 *"Compilers 5.0"*)
13457 wlarc=''
13458 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
13459 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13460 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13461 ;;
13462 *)
13463 wlarc='$wl'
13464 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13465 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13466 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13467 ;;
13468 esac
13469 fi
13470 hardcode_libdir_flag_spec='-R$libdir'
13471 hardcode_shlibpath_var=no
13472 case $host_os in
13473 solaris2.[0-5] | solaris2.[0-5].*) ;;
13474 *)
13475 # The compiler driver will combine and reorder linker options,
13476 # but understands '-z linker_flag'. GCC discards it without '$wl',
13477 # but is careful enough not to reorder.
13478 # Supported since Solaris 2.6 (maybe 2.5.1?)
13479 if test yes = "$GCC"; then
13480 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
13481 else
13482 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13483 fi
13484 ;;
13485 esac
13486 link_all_deplibs=yes
13487 ;;
13488
13489 sunos4*)
13490 if test sequent = "$host_vendor"; then
13491 # Use $CC to link under sequent, because it throws in some extra .o
13492 # files that make .init and .fini sections work.
13493 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13494 else
13495 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13496 fi
13497 hardcode_libdir_flag_spec='-L$libdir'
13498 hardcode_direct=yes
13499 hardcode_minus_L=yes
13500 hardcode_shlibpath_var=no
13501 ;;
13502
13503 sysv4)
13504 case $host_vendor in
13505 sni)
13506 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13507 hardcode_direct=yes # is this really true???
13508 ;;
13509 siemens)
13510 ## LD is ld it makes a PLAMLIB
13511 ## CC just makes a GrossModule.
13512 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13513 reload_cmds='$CC -r -o $output$reload_objs'
13514 hardcode_direct=no
13515 ;;
13516 motorola)
13517 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13518 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13519 ;;
13520 esac
13521 runpath_var='LD_RUN_PATH'
13522 hardcode_shlibpath_var=no
13523 ;;
13524
13525 sysv4.3*)
13526 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13527 hardcode_shlibpath_var=no
13528 export_dynamic_flag_spec='-Bexport'
13529 ;;
13530
13531 sysv4*MP*)
13532 if test -d /usr/nec; then
13533 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13534 hardcode_shlibpath_var=no
13535 runpath_var=LD_RUN_PATH
13536 hardcode_runpath_var=yes
13537 ld_shlibs=yes
13538 fi
13539 ;;
13540
13541 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13542 no_undefined_flag='$wl-z,text'
13543 archive_cmds_need_lc=no
13544 hardcode_shlibpath_var=no
13545 runpath_var='LD_RUN_PATH'
13546
13547 if test yes = "$GCC"; then
13548 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13549 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13550 else
13551 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13552 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13553 fi
13554 ;;
13555
13556 sysv5* | sco3.2v5* | sco5v6*)
13557 # Note: We CANNOT use -z defs as we might desire, because we do not
13558 # link with -lc, and that would cause any symbols used from libc to
13559 # always be unresolved, which means just about no library would
13560 # ever link correctly. If we're not using GNU ld we use -z text
13561 # though, which does catch some bad symbols but isn't as heavy-handed
13562 # as -z defs.
13563 no_undefined_flag='$wl-z,text'
13564 allow_undefined_flag='$wl-z,nodefs'
13565 archive_cmds_need_lc=no
13566 hardcode_shlibpath_var=no
13567 hardcode_libdir_flag_spec='$wl-R,$libdir'
13568 hardcode_libdir_separator=':'
13569 link_all_deplibs=yes
13570 export_dynamic_flag_spec='$wl-Bexport'
13571 runpath_var='LD_RUN_PATH'
13572
13573 if test yes = "$GCC"; then
13574 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13575 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13576 else
13577 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13578 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13579 fi
13580 ;;
13581
13582 uts4*)
13583 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13584 hardcode_libdir_flag_spec='-L$libdir'
13585 hardcode_shlibpath_var=no
13586 ;;
13587
13588 *)
13589 ld_shlibs=no
13590 ;;
13591 esac
13592
13593 if test sni = "$host_vendor"; then
13594 case $host in
13595 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13596 export_dynamic_flag_spec='$wl-Blargedynsym'
13597 ;;
13598 esac
13599 fi
13600 fi
13601
13602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13603 printf "%s\n" "$ld_shlibs" >&6; }
13604 test no = "$ld_shlibs" && can_build_shared=no
13605
13606 with_gnu_ld=$with_gnu_ld
13607
13608
13609
13610
13611
13612
13613
13614
13615
13616
13617
13618
13619
13620
13621
13622 #
13623 # Do we need to explicitly link libc?
13624 #
13625 case "x$archive_cmds_need_lc" in
13626 x|xyes)
13627 # Assume -lc should be added
13628 archive_cmds_need_lc=yes
13629
13630 if test yes,yes = "$GCC,$enable_shared"; then
13631 case $archive_cmds in
13632 *'~'*)
13633 # FIXME: we may have to deal with multi-command sequences.
13634 ;;
13635 '$CC '*)
13636 # Test whether the compiler implicitly links with -lc since on some
13637 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13638 # to ld, don't add -lc before -lgcc.
13639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13640 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
13641 if test ${lt_cv_archive_cmds_need_lc+y}
13642 then :
13643 printf %s "(cached) " >&6
13644 else case e in #(
13645 e) $RM conftest*
13646 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13647
13648 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13649 (eval $ac_compile) 2>&5
13650 ac_status=$?
13651 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13652 test $ac_status = 0; } 2>conftest.err; then
13653 soname=conftest
13654 lib=conftest
13655 libobjs=conftest.$ac_objext
13656 deplibs=
13657 wl=$lt_prog_compiler_wl
13658 pic_flag=$lt_prog_compiler_pic
13659 compiler_flags=-v
13660 linker_flags=-v
13661 verstring=
13662 output_objdir=.
13663 libname=conftest
13664 lt_save_allow_undefined_flag=$allow_undefined_flag
13665 allow_undefined_flag=
13666 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13667 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13668 ac_status=$?
13669 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13670 test $ac_status = 0; }
13671 then
13672 lt_cv_archive_cmds_need_lc=no
13673 else
13674 lt_cv_archive_cmds_need_lc=yes
13675 fi
13676 allow_undefined_flag=$lt_save_allow_undefined_flag
13677 else
13678 cat conftest.err 1>&5
13679 fi
13680 $RM conftest*
13681 ;;
13682 esac
13683 fi
13684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13685 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
13686 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13687 ;;
13688 esac
13689 fi
13690 ;;
13691 esac
13692
13693
13694
13695
13696
13697
13698
13699
13700
13701
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721
13722
13723
13724
13725
13726
13727
13728
13729
13730
13731
13732
13733
13734
13735
13736
13737
13738
13739
13740
13741
13742
13743
13744
13745
13746
13747
13748
13749
13750
13751
13752
13753
13754
13755
13756
13757
13758
13759
13760
13761
13762
13763
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775
13776
13777
13778
13779
13780
13781
13782
13783
13784
13785
13786
13787
13788
13789
13790
13791
13792
13793
13794
13795
13796
13797
13798
13799
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830
13831
13832
13833
13834
13835
13836
13837
13838
13839
13840
13841
13842
13843
13844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13845 printf %s "checking dynamic linker characteristics... " >&6; }
13846
13847 if test yes = "$GCC"; then
13848 case $host_os in
13849 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
13850 *) lt_awk_arg='/^libraries:/' ;;
13851 esac
13852 case $host_os in
13853 mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
13854 *) lt_sed_strip_eq='s|=/|/|g' ;;
13855 esac
13856 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13857 case $lt_search_path_spec in
13858 *\;*)
13859 # if the path contains ";" then we assume it to be the separator
13860 # otherwise default to the standard path separator (i.e. ":") - it is
13861 # assumed that no part of a normal pathname contains ";" but that should
13862 # okay in the real world where ";" in dirpaths is itself problematic.
13863 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13864 ;;
13865 *)
13866 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13867 ;;
13868 esac
13869 # Ok, now we have the path, separated by spaces, we can step through it
13870 # and add multilib dir if necessary...
13871 lt_tmp_lt_search_path_spec=
13872 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13873 # ...but if some path component already ends with the multilib dir we assume
13874 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
13875 case "$lt_multi_os_dir; $lt_search_path_spec " in
13876 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
13877 lt_multi_os_dir=
13878 ;;
13879 esac
13880 for lt_sys_path in $lt_search_path_spec; do
13881 if test -d "$lt_sys_path$lt_multi_os_dir"; then
13882 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
13883 elif test -n "$lt_multi_os_dir"; then
13884 test -d "$lt_sys_path" && \
13885 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13886 fi
13887 done
13888 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13889 BEGIN {RS = " "; FS = "/|\n";} {
13890 lt_foo = "";
13891 lt_count = 0;
13892 for (lt_i = NF; lt_i > 0; lt_i--) {
13893 if ($lt_i != "" && $lt_i != ".") {
13894 if ($lt_i == "..") {
13895 lt_count++;
13896 } else {
13897 if (lt_count == 0) {
13898 lt_foo = "/" $lt_i lt_foo;
13899 } else {
13900 lt_count--;
13901 }
13902 }
13903 }
13904 }
13905 if (lt_foo != "") { lt_freq[lt_foo]++; }
13906 if (lt_freq[lt_foo] == 1) { print lt_foo; }
13907 }'`
13908 # AWK program above erroneously prepends '/' to C:/dos/paths
13909 # for these hosts.
13910 case $host_os in
13911 mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13912 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
13913 esac
13914 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13915 else
13916 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13917 fi
13918 library_names_spec=
13919 libname_spec='lib$name'
13920 soname_spec=
13921 shrext_cmds=.so
13922 postinstall_cmds=
13923 postuninstall_cmds=
13924 finish_cmds=
13925 finish_eval=
13926 shlibpath_var=
13927 shlibpath_overrides_runpath=unknown
13928 version_type=none
13929 dynamic_linker="$host_os ld.so"
13930 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13931 need_lib_prefix=unknown
13932 hardcode_into_libs=no
13933
13934 # when you set need_version to no, make sure it does not cause -set_version
13935 # flags to be left without arguments
13936 need_version=unknown
13937
13938
13939
13940 case $host_os in
13941 aix3*)
13942 version_type=linux # correct to gnu/linux during the next big refactor
13943 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
13944 shlibpath_var=LIBPATH
13945
13946 # AIX 3 has no versioning support, so we append a major version to the name.
13947 soname_spec='$libname$release$shared_ext$major'
13948 ;;
13949
13950 aix[4-9]*)
13951 version_type=linux # correct to gnu/linux during the next big refactor
13952 need_lib_prefix=no
13953 need_version=no
13954 hardcode_into_libs=yes
13955 if test ia64 = "$host_cpu"; then
13956 # AIX 5 supports IA64
13957 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
13958 shlibpath_var=LD_LIBRARY_PATH
13959 else
13960 # With GCC up to 2.95.x, collect2 would create an import file
13961 # for dependence libraries. The import file would start with
13962 # the line '#! .'. This would cause the generated library to
13963 # depend on '.', always an invalid library. This was fixed in
13964 # development snapshots of GCC prior to 3.0.
13965 case $host_os in
13966 aix4 | aix4.[01] | aix4.[01].*)
13967 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13968 echo ' yes '
13969 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
13970 :
13971 else
13972 can_build_shared=no
13973 fi
13974 ;;
13975 esac
13976 # Using Import Files as archive members, it is possible to support
13977 # filename-based versioning of shared library archives on AIX. While
13978 # this would work for both with and without runtime linking, it will
13979 # prevent static linking of such archives. So we do filename-based
13980 # shared library versioning with .so extension only, which is used
13981 # when both runtime linking and shared linking is enabled.
13982 # Unfortunately, runtime linking may impact performance, so we do
13983 # not want this to be the default eventually. Also, we use the
13984 # versioned .so libs for executables only if there is the -brtl
13985 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
13986 # To allow for filename-based versioning support, we need to create
13987 # libNAME.so.V as an archive file, containing:
13988 # *) an Import File, referring to the versioned filename of the
13989 # archive as well as the shared archive member, telling the
13990 # bitwidth (32 or 64) of that shared object, and providing the
13991 # list of exported symbols of that shared object, eventually
13992 # decorated with the 'weak' keyword
13993 # *) the shared object with the F_LOADONLY flag set, to really avoid
13994 # it being seen by the linker.
13995 # At run time we better use the real file rather than another symlink,
13996 # but for link time we create the symlink libNAME.so -> libNAME.so.V
13997
13998 case $with_aix_soname,$aix_use_runtimelinking in
13999 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
14000 # soname into executable. Probably we can add versioning support to
14001 # collect2, so additional links can be useful in future.
14002 aix,yes) # traditional libtool
14003 dynamic_linker='AIX unversionable lib.so'
14004 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14005 # instead of lib<name>.a to let people know that these are not
14006 # typical AIX shared libraries.
14007 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14008 ;;
14009 aix,no) # traditional AIX only
14010 dynamic_linker='AIX lib.a(lib.so.V)'
14011 # We preserve .a as extension for shared libraries through AIX4.2
14012 # and later when we are not doing run time linking.
14013 library_names_spec='$libname$release.a $libname.a'
14014 soname_spec='$libname$release$shared_ext$major'
14015 ;;
14016 svr4,*) # full svr4 only
14017 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
14018 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14019 # We do not specify a path in Import Files, so LIBPATH fires.
14020 shlibpath_overrides_runpath=yes
14021 ;;
14022 *,yes) # both, prefer svr4
14023 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
14024 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14025 # unpreferred sharedlib libNAME.a needs extra handling
14026 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"'
14027 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"'
14028 # We do not specify a path in Import Files, so LIBPATH fires.
14029 shlibpath_overrides_runpath=yes
14030 ;;
14031 *,no) # both, prefer aix
14032 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
14033 library_names_spec='$libname$release.a $libname.a'
14034 soname_spec='$libname$release$shared_ext$major'
14035 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
14036 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)'
14037 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"'
14038 ;;
14039 esac
14040 shlibpath_var=LIBPATH
14041 fi
14042 ;;
14043
14044 amigaos*)
14045 case $host_cpu in
14046 powerpc)
14047 # Since July 2007 AmigaOS4 officially supports .so libraries.
14048 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14049 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14050 ;;
14051 m68k)
14052 library_names_spec='$libname.ixlibrary $libname.a'
14053 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14054 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'
14055 ;;
14056 esac
14057 ;;
14058
14059 beos*)
14060 library_names_spec='$libname$shared_ext'
14061 dynamic_linker="$host_os ld.so"
14062 shlibpath_var=LIBRARY_PATH
14063 ;;
14064
14065 bsdi[45]*)
14066 version_type=linux # correct to gnu/linux during the next big refactor
14067 need_version=no
14068 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14069 soname_spec='$libname$release$shared_ext$major'
14070 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14071 shlibpath_var=LD_LIBRARY_PATH
14072 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14073 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14074 # the default ld.so.conf also contains /usr/contrib/lib and
14075 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14076 # libtool to hard-code these into programs
14077 ;;
14078
14079 cygwin* | mingw* | windows* | pw32* | cegcc*)
14080 version_type=windows
14081 shrext_cmds=.dll
14082 need_version=no
14083 need_lib_prefix=no
14084
14085 case $GCC,$cc_basename in
14086 yes,*)
14087 # gcc
14088 library_names_spec='$libname.dll.a'
14089 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14090 # If user builds GCC with multilib enabled,
14091 # it should just install on $(libdir)
14092 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
14093 if test xyes = x"$multilib"; then
14094 postinstall_cmds='base_file=`basename \$file`~
14095 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14096 dldir=$destdir/`dirname \$dlpath`~
14097 $install_prog $dir/$dlname $destdir/$dlname~
14098 chmod a+x $destdir/$dlname~
14099 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14100 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
14101 fi'
14102 else
14103 postinstall_cmds='base_file=`basename \$file`~
14104 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14105 dldir=$destdir/`dirname \$dlpath`~
14106 test -d \$dldir || mkdir -p \$dldir~
14107 $install_prog $dir/$dlname \$dldir/$dlname~
14108 chmod a+x \$dldir/$dlname~
14109 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14110 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14111 fi'
14112 fi
14113 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14114 dlpath=$dir/\$dldll~
14115 $RM \$dlpath'
14116 shlibpath_overrides_runpath=yes
14117
14118 case $host_os in
14119 cygwin*)
14120 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14121 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14122
14123 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
14124 ;;
14125 mingw* | windows* | cegcc*)
14126 # MinGW DLLs use traditional 'lib' prefix
14127 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14128 ;;
14129 pw32*)
14130 # pw32 DLLs use 'pw' prefix rather than 'lib'
14131 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14132 ;;
14133 esac
14134 dynamic_linker='Win32 ld.exe'
14135 ;;
14136
14137 *,cl* | *,icl*)
14138 # Native MSVC or ICC
14139 libname_spec='$name'
14140 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14141 library_names_spec='$libname.dll.lib'
14142
14143 case $build_os in
14144 mingw* | windows*)
14145 sys_lib_search_path_spec=
14146 lt_save_ifs=$IFS
14147 IFS=';'
14148 for lt_path in $LIB
14149 do
14150 IFS=$lt_save_ifs
14151 # Let DOS variable expansion print the short 8.3 style file name.
14152 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14153 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14154 done
14155 IFS=$lt_save_ifs
14156 # Convert to MSYS style.
14157 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14158 ;;
14159 cygwin*)
14160 # Convert to unix form, then to dos form, then back to unix form
14161 # but this time dos style (no spaces!) so that the unix form looks
14162 # like /cygdrive/c/PROGRA~1:/cygdr...
14163 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14164 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14165 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14166 ;;
14167 *)
14168 sys_lib_search_path_spec=$LIB
14169 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14170 # It is most probably a Windows format PATH.
14171 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14172 else
14173 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14174 fi
14175 # FIXME: find the short name or the path components, as spaces are
14176 # common. (e.g. "Program Files" -> "PROGRA~1")
14177 ;;
14178 esac
14179
14180 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14181 postinstall_cmds='base_file=`basename \$file`~
14182 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14183 dldir=$destdir/`dirname \$dlpath`~
14184 test -d \$dldir || mkdir -p \$dldir~
14185 $install_prog $dir/$dlname \$dldir/$dlname'
14186 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14187 dlpath=$dir/\$dldll~
14188 $RM \$dlpath'
14189 shlibpath_overrides_runpath=yes
14190 dynamic_linker='Win32 link.exe'
14191 ;;
14192
14193 *)
14194 # Assume MSVC and ICC wrapper
14195 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
14196 dynamic_linker='Win32 ld.exe'
14197 ;;
14198 esac
14199 # FIXME: first we should search . and the directory the executable is in
14200 shlibpath_var=PATH
14201 ;;
14202
14203 darwin* | rhapsody*)
14204 dynamic_linker="$host_os dyld"
14205 version_type=darwin
14206 need_lib_prefix=no
14207 need_version=no
14208 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
14209 soname_spec='$libname$release$major$shared_ext'
14210 shlibpath_overrides_runpath=yes
14211 shlibpath_var=DYLD_LIBRARY_PATH
14212 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14213
14214 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14215 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14216 ;;
14217
14218 dgux*)
14219 version_type=linux # correct to gnu/linux during the next big refactor
14220 need_lib_prefix=no
14221 need_version=no
14222 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14223 soname_spec='$libname$release$shared_ext$major'
14224 shlibpath_var=LD_LIBRARY_PATH
14225 ;;
14226
14227 freebsd* | dragonfly* | midnightbsd*)
14228 # DragonFly does not have aout. When/if they implement a new
14229 # versioning mechanism, adjust this.
14230 if test -x /usr/bin/objformat; then
14231 objformat=`/usr/bin/objformat`
14232 else
14233 case $host_os in
14234 freebsd[23].*) objformat=aout ;;
14235 *) objformat=elf ;;
14236 esac
14237 fi
14238 version_type=freebsd-$objformat
14239 case $version_type in
14240 freebsd-elf*)
14241 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14242 soname_spec='$libname$release$shared_ext$major'
14243 need_version=no
14244 need_lib_prefix=no
14245 ;;
14246 freebsd-*)
14247 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14248 need_version=yes
14249 ;;
14250 esac
14251 case $host_cpu in
14252 powerpc64)
14253 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
14254 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
14255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14256 /* end confdefs.h. */
14257 int test_pointer_size[sizeof (void *) - 5];
14258
14259 _ACEOF
14260 if ac_fn_c_try_compile "$LINENO"
14261 then :
14262 shlibpath_var=LD_LIBRARY_PATH
14263 else case e in #(
14264 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
14265 esac
14266 fi
14267 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14268 ;;
14269 *)
14270 shlibpath_var=LD_LIBRARY_PATH
14271 ;;
14272 esac
14273 case $host_os in
14274 freebsd2.*)
14275 shlibpath_overrides_runpath=yes
14276 ;;
14277 freebsd3.[01]* | freebsdelf3.[01]*)
14278 shlibpath_overrides_runpath=yes
14279 hardcode_into_libs=yes
14280 ;;
14281 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14282 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14283 shlibpath_overrides_runpath=no
14284 hardcode_into_libs=yes
14285 ;;
14286 *) # from 4.6 on, and DragonFly
14287 shlibpath_overrides_runpath=yes
14288 hardcode_into_libs=yes
14289 ;;
14290 esac
14291 ;;
14292
14293 haiku*)
14294 version_type=linux # correct to gnu/linux during the next big refactor
14295 need_lib_prefix=no
14296 need_version=no
14297 dynamic_linker="$host_os runtime_loader"
14298 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14299 soname_spec='$libname$release$shared_ext$major'
14300 shlibpath_var=LIBRARY_PATH
14301 shlibpath_overrides_runpath=no
14302 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
14303 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
14304 hardcode_into_libs=no
14305 ;;
14306
14307 hpux9* | hpux10* | hpux11*)
14308 # Give a soname corresponding to the major version so that dld.sl refuses to
14309 # link against other versions.
14310 version_type=sunos
14311 need_lib_prefix=no
14312 need_version=no
14313 case $host_cpu in
14314 ia64*)
14315 shrext_cmds='.so'
14316 hardcode_into_libs=yes
14317 dynamic_linker="$host_os dld.so"
14318 shlibpath_var=LD_LIBRARY_PATH
14319 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14320 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14321 soname_spec='$libname$release$shared_ext$major'
14322 if test 32 = "$HPUX_IA64_MODE"; then
14323 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14324 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
14325 else
14326 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14327 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
14328 fi
14329 ;;
14330 hppa*64*)
14331 shrext_cmds='.sl'
14332 hardcode_into_libs=yes
14333 dynamic_linker="$host_os dld.sl"
14334 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14335 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14336 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14337 soname_spec='$libname$release$shared_ext$major'
14338 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14339 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14340 ;;
14341 *)
14342 shrext_cmds='.sl'
14343 dynamic_linker="$host_os dld.sl"
14344 shlibpath_var=SHLIB_PATH
14345 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14346 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14347 soname_spec='$libname$release$shared_ext$major'
14348 ;;
14349 esac
14350 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14351 postinstall_cmds='chmod 555 $lib'
14352 # or fails outright, so override atomically:
14353 install_override_mode=555
14354 ;;
14355
14356 interix[3-9]*)
14357 version_type=linux # correct to gnu/linux during the next big refactor
14358 need_lib_prefix=no
14359 need_version=no
14360 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14361 soname_spec='$libname$release$shared_ext$major'
14362 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14363 shlibpath_var=LD_LIBRARY_PATH
14364 shlibpath_overrides_runpath=no
14365 hardcode_into_libs=yes
14366 ;;
14367
14368 irix5* | irix6* | nonstopux*)
14369 case $host_os in
14370 nonstopux*) version_type=nonstopux ;;
14371 *)
14372 if test yes = "$lt_cv_prog_gnu_ld"; then
14373 version_type=linux # correct to gnu/linux during the next big refactor
14374 else
14375 version_type=irix
14376 fi ;;
14377 esac
14378 need_lib_prefix=no
14379 need_version=no
14380 soname_spec='$libname$release$shared_ext$major'
14381 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
14382 case $host_os in
14383 irix5* | nonstopux*)
14384 libsuff= shlibsuff=
14385 ;;
14386 *)
14387 case $LD in # libtool.m4 will add one of these switches to LD
14388 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14389 libsuff= shlibsuff= libmagic=32-bit;;
14390 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14391 libsuff=32 shlibsuff=N32 libmagic=N32;;
14392 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14393 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14394 *) libsuff= shlibsuff= libmagic=never-match;;
14395 esac
14396 ;;
14397 esac
14398 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14399 shlibpath_overrides_runpath=no
14400 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
14401 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
14402 hardcode_into_libs=yes
14403 ;;
14404
14405 # No shared lib support for Linux oldld, aout, or coff.
14406 linux*oldld* | linux*aout* | linux*coff*)
14407 dynamic_linker=no
14408 ;;
14409
14410 linux*android*)
14411 version_type=none # Android doesn't support versioned libraries.
14412 need_lib_prefix=no
14413 need_version=no
14414 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
14415 soname_spec='$libname$release$shared_ext'
14416 finish_cmds=
14417 shlibpath_var=LD_LIBRARY_PATH
14418 shlibpath_overrides_runpath=yes
14419
14420 # This implies no fast_install, which is unacceptable.
14421 # Some rework will be needed to allow for fast_install
14422 # before this can be enabled.
14423 hardcode_into_libs=yes
14424
14425 dynamic_linker='Android linker'
14426 # -rpath works at least for libraries that are not overridden by
14427 # libraries installed in system locations.
14428 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14429 ;;
14430
14431 # This must be glibc/ELF.
14432 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14433 version_type=linux # correct to gnu/linux during the next big refactor
14434 need_lib_prefix=no
14435 need_version=no
14436 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14437 soname_spec='$libname$release$shared_ext$major'
14438 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14439 shlibpath_var=LD_LIBRARY_PATH
14440 shlibpath_overrides_runpath=no
14441
14442 # Some binutils ld are patched to set DT_RUNPATH
14443 if test ${lt_cv_shlibpath_overrides_runpath+y}
14444 then :
14445 printf %s "(cached) " >&6
14446 else case e in #(
14447 e) lt_cv_shlibpath_overrides_runpath=no
14448 save_LDFLAGS=$LDFLAGS
14449 save_libdir=$libdir
14450 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14451 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14453 /* end confdefs.h. */
14454
14455 int
14456 main (void)
14457 {
14458
14459 ;
14460 return 0;
14461 }
14462 _ACEOF
14463 if ac_fn_c_try_link "$LINENO"
14464 then :
14465 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
14466 then :
14467 lt_cv_shlibpath_overrides_runpath=yes
14468 fi
14469 fi
14470 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14471 conftest$ac_exeext conftest.$ac_ext
14472 LDFLAGS=$save_LDFLAGS
14473 libdir=$save_libdir
14474 ;;
14475 esac
14476 fi
14477
14478 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14479
14480 # This implies no fast_install, which is unacceptable.
14481 # Some rework will be needed to allow for fast_install
14482 # before this can be enabled.
14483 hardcode_into_libs=yes
14484
14485 # Ideally, we could use ldconfig to report *all* directories which are
14486 # searched for libraries, however this is still not possible. Aside from not
14487 # being certain /sbin/ldconfig is available, command
14488 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
14489 # even though it is searched at run-time. Try to do the best guess by
14490 # appending ld.so.conf contents (and includes) to the search path.
14491 if test -f /etc/ld.so.conf; then
14492 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' ' '`
14493 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14494 fi
14495
14496 # We used to test for /lib/ld.so.1 and disable shared libraries on
14497 # powerpc, because MkLinux only supported shared libraries with the
14498 # GNU dynamic linker. Since this was broken with cross compilers,
14499 # most powerpc-linux boxes support dynamic linking these days and
14500 # people can always --disable-shared, the test was removed, and we
14501 # assume the GNU/Linux dynamic linker is in use.
14502 dynamic_linker='GNU/Linux ld.so'
14503 ;;
14504
14505 netbsdelf*-gnu)
14506 version_type=linux
14507 need_lib_prefix=no
14508 need_version=no
14509 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14510 soname_spec='$libname$release$shared_ext$major'
14511 shlibpath_var=LD_LIBRARY_PATH
14512 shlibpath_overrides_runpath=no
14513 hardcode_into_libs=yes
14514 dynamic_linker='NetBSD ld.elf_so'
14515 ;;
14516
14517 netbsd*)
14518 version_type=sunos
14519 need_lib_prefix=no
14520 need_version=no
14521 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14522 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14523 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14524 dynamic_linker='NetBSD (a.out) ld.so'
14525 else
14526 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14527 soname_spec='$libname$release$shared_ext$major'
14528 dynamic_linker='NetBSD ld.elf_so'
14529 fi
14530 shlibpath_var=LD_LIBRARY_PATH
14531 shlibpath_overrides_runpath=yes
14532 hardcode_into_libs=yes
14533 ;;
14534
14535 *-mlibc)
14536 version_type=linux # correct to gnu/linux during the next big refactor
14537 need_lib_prefix=no
14538 need_version=no
14539 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14540 soname_spec='$libname$release$shared_ext$major'
14541 dynamic_linker='mlibc ld.so'
14542 shlibpath_var=LD_LIBRARY_PATH
14543 shlibpath_overrides_runpath=no
14544 hardcode_into_libs=yes
14545 ;;
14546
14547 newsos6)
14548 version_type=linux # correct to gnu/linux during the next big refactor
14549 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14550 shlibpath_var=LD_LIBRARY_PATH
14551 shlibpath_overrides_runpath=yes
14552 ;;
14553
14554 *nto* | *qnx*)
14555 version_type=qnx
14556 need_lib_prefix=no
14557 need_version=no
14558 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14559 soname_spec='$libname$release$shared_ext$major'
14560 shlibpath_var=LD_LIBRARY_PATH
14561 shlibpath_overrides_runpath=no
14562 hardcode_into_libs=yes
14563 dynamic_linker='ldqnx.so'
14564 ;;
14565
14566 openbsd*)
14567 version_type=sunos
14568 sys_lib_dlsearch_path_spec=/usr/lib
14569 need_lib_prefix=no
14570 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14571 need_version=no
14572 else
14573 need_version=yes
14574 fi
14575 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14576 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14577 shlibpath_var=LD_LIBRARY_PATH
14578 shlibpath_overrides_runpath=yes
14579 ;;
14580
14581 os2*)
14582 libname_spec='$name'
14583 version_type=windows
14584 shrext_cmds=.dll
14585 need_version=no
14586 need_lib_prefix=no
14587 # OS/2 can only load a DLL with a base name of 8 characters or less.
14588 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
14589 v=$($ECHO $release$versuffix | tr -d .-);
14590 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
14591 $ECHO $n$v`$shared_ext'
14592 library_names_spec='${libname}_dll.$libext'
14593 dynamic_linker='OS/2 ld.exe'
14594 shlibpath_var=BEGINLIBPATH
14595 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14596 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14597 postinstall_cmds='base_file=`basename \$file`~
14598 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
14599 dldir=$destdir/`dirname \$dlpath`~
14600 test -d \$dldir || mkdir -p \$dldir~
14601 $install_prog $dir/$dlname \$dldir/$dlname~
14602 chmod a+x \$dldir/$dlname~
14603 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14604 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14605 fi'
14606 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
14607 dlpath=$dir/\$dldll~
14608 $RM \$dlpath'
14609 ;;
14610
14611 osf3* | osf4* | osf5*)
14612 version_type=osf
14613 need_lib_prefix=no
14614 need_version=no
14615 soname_spec='$libname$release$shared_ext$major'
14616 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14617 shlibpath_var=LD_LIBRARY_PATH
14618 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14619 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14620 ;;
14621
14622 rdos*)
14623 dynamic_linker=no
14624 ;;
14625
14626 serenity*)
14627 version_type=linux # correct to gnu/linux during the next big refactor
14628 need_lib_prefix=no
14629 need_version=no
14630 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14631 soname_spec='$libname$release$shared_ext$major'
14632 shlibpath_var=LD_LIBRARY_PATH
14633 shlibpath_overrides_runpath=no
14634 dynamic_linker='SerenityOS LibELF'
14635 ;;
14636
14637 solaris*)
14638 version_type=linux # correct to gnu/linux during the next big refactor
14639 need_lib_prefix=no
14640 need_version=no
14641 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14642 soname_spec='$libname$release$shared_ext$major'
14643 shlibpath_var=LD_LIBRARY_PATH
14644 shlibpath_overrides_runpath=yes
14645 hardcode_into_libs=yes
14646 # ldd complains unless libraries are executable
14647 postinstall_cmds='chmod +x $lib'
14648 ;;
14649
14650 sunos4*)
14651 version_type=sunos
14652 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14653 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14654 shlibpath_var=LD_LIBRARY_PATH
14655 shlibpath_overrides_runpath=yes
14656 if test yes = "$with_gnu_ld"; then
14657 need_lib_prefix=no
14658 fi
14659 need_version=yes
14660 ;;
14661
14662 sysv4 | sysv4.3*)
14663 version_type=linux # correct to gnu/linux during the next big refactor
14664 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14665 soname_spec='$libname$release$shared_ext$major'
14666 shlibpath_var=LD_LIBRARY_PATH
14667 case $host_vendor in
14668 sni)
14669 shlibpath_overrides_runpath=no
14670 need_lib_prefix=no
14671 runpath_var=LD_RUN_PATH
14672 ;;
14673 siemens)
14674 need_lib_prefix=no
14675 ;;
14676 motorola)
14677 need_lib_prefix=no
14678 need_version=no
14679 shlibpath_overrides_runpath=no
14680 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14681 ;;
14682 esac
14683 ;;
14684
14685 sysv4*MP*)
14686 if test -d /usr/nec; then
14687 version_type=linux # correct to gnu/linux during the next big refactor
14688 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
14689 soname_spec='$libname$shared_ext.$major'
14690 shlibpath_var=LD_LIBRARY_PATH
14691 fi
14692 ;;
14693
14694 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14695 version_type=sco
14696 need_lib_prefix=no
14697 need_version=no
14698 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
14699 soname_spec='$libname$release$shared_ext$major'
14700 shlibpath_var=LD_LIBRARY_PATH
14701 shlibpath_overrides_runpath=yes
14702 hardcode_into_libs=yes
14703 if test yes = "$with_gnu_ld"; then
14704 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14705 else
14706 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14707 case $host_os in
14708 sco3.2v5*)
14709 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14710 ;;
14711 esac
14712 fi
14713 sys_lib_dlsearch_path_spec='/usr/lib'
14714 ;;
14715
14716 tpf*)
14717 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14718 version_type=linux # correct to gnu/linux during the next big refactor
14719 need_lib_prefix=no
14720 need_version=no
14721 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14722 shlibpath_var=LD_LIBRARY_PATH
14723 shlibpath_overrides_runpath=no
14724 hardcode_into_libs=yes
14725 ;;
14726
14727 uts4*)
14728 version_type=linux # correct to gnu/linux during the next big refactor
14729 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14730 soname_spec='$libname$release$shared_ext$major'
14731 shlibpath_var=LD_LIBRARY_PATH
14732 ;;
14733
14734 emscripten*)
14735 version_type=none
14736 need_lib_prefix=no
14737 need_version=no
14738 library_names_spec='$libname$release$shared_ext'
14739 soname_spec='$libname$release$shared_ext'
14740 finish_cmds=
14741 dynamic_linker="Emscripten linker"
14742 lt_prog_compiler_wl=
14743 lt_prog_compiler_pic=
14744 lt_prog_compiler_static=
14745
14746
14747 if test yes = "$GCC"; then
14748 lt_prog_compiler_wl='-Wl,'
14749 lt_prog_compiler_static='-static'
14750
14751 case $host_os in
14752 aix*)
14753 # All AIX code is PIC.
14754 if test ia64 = "$host_cpu"; then
14755 # AIX 5 now supports IA64 processor
14756 lt_prog_compiler_static='-Bstatic'
14757 fi
14758 lt_prog_compiler_pic='-fPIC'
14759 ;;
14760
14761 amigaos*)
14762 case $host_cpu in
14763 powerpc)
14764 # see comment about AmigaOS4 .so support
14765 lt_prog_compiler_pic='-fPIC'
14766 ;;
14767 m68k)
14768 # FIXME: we need at least 68020 code to build shared libraries, but
14769 # adding the '-m68020' flag to GCC prevents building anything better,
14770 # like '-m68040'.
14771 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14772 ;;
14773 esac
14774 ;;
14775
14776 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14777 # PIC is the default for these OSes.
14778 ;;
14779
14780 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
14781 # This hack is so that the source file can tell whether it is being
14782 # built for inclusion in a dll (and should export symbols for example).
14783 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14784 # (--disable-auto-import) libraries
14785 lt_prog_compiler_pic='-DDLL_EXPORT'
14786 case $host_os in
14787 os2*)
14788 lt_prog_compiler_static='$wl-static'
14789 ;;
14790 esac
14791 ;;
14792
14793 darwin* | rhapsody*)
14794 # PIC is the default on this platform
14795 # Common symbols not allowed in MH_DYLIB files
14796 lt_prog_compiler_pic='-fno-common'
14797 ;;
14798
14799 haiku*)
14800 # PIC is the default for Haiku.
14801 # The "-static" flag exists, but is broken.
14802 lt_prog_compiler_static=
14803 ;;
14804
14805 hpux*)
14806 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14807 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14808 # sets the default TLS model and affects inlining.
14809 case $host_cpu in
14810 hppa*64*)
14811 # +Z the default
14812 ;;
14813 *)
14814 lt_prog_compiler_pic='-fPIC'
14815 ;;
14816 esac
14817 ;;
14818
14819 interix[3-9]*)
14820 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14821 # Instead, we relocate shared libraries at runtime.
14822 ;;
14823
14824 msdosdjgpp*)
14825 # Just because we use GCC doesn't mean we suddenly get shared libraries
14826 # on systems that don't support them.
14827 lt_prog_compiler_can_build_shared=no
14828 enable_shared=no
14829 ;;
14830
14831 *nto* | *qnx*)
14832 # QNX uses GNU C++, but need to define -shared option too, otherwise
14833 # it will coredump.
14834 lt_prog_compiler_pic='-fPIC -shared'
14835 ;;
14836
14837 sysv4*MP*)
14838 if test -d /usr/nec; then
14839 lt_prog_compiler_pic=-Kconform_pic
14840 fi
14841 ;;
14842
14843 *)
14844 lt_prog_compiler_pic='-fPIC'
14845 ;;
14846 esac
14847
14848 case $cc_basename in
14849 nvcc*) # Cuda Compiler Driver 2.2
14850 lt_prog_compiler_wl='-Xlinker '
14851 if test -n "$lt_prog_compiler_pic"; then
14852 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14853 fi
14854 ;;
14855 esac
14856 else
14857 # PORTME Check for flag to pass linker flags through the system compiler.
14858 case $host_os in
14859 aix*)
14860 lt_prog_compiler_wl='-Wl,'
14861 if test ia64 = "$host_cpu"; then
14862 # AIX 5 now supports IA64 processor
14863 lt_prog_compiler_static='-Bstatic'
14864 else
14865 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14866 fi
14867 ;;
14868
14869 darwin* | rhapsody*)
14870 # PIC is the default on this platform
14871 # Common symbols not allowed in MH_DYLIB files
14872 lt_prog_compiler_pic='-fno-common'
14873 case $cc_basename in
14874 nagfor*)
14875 # NAG Fortran compiler
14876 lt_prog_compiler_wl='-Wl,-Wl,,'
14877 lt_prog_compiler_pic='-PIC'
14878 lt_prog_compiler_static='-Bstatic'
14879 ;;
14880 esac
14881 ;;
14882
14883 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
14884 # This hack is so that the source file can tell whether it is being
14885 # built for inclusion in a dll (and should export symbols for example).
14886 lt_prog_compiler_pic='-DDLL_EXPORT'
14887 case $host_os in
14888 os2*)
14889 lt_prog_compiler_static='$wl-static'
14890 ;;
14891 esac
14892 ;;
14893
14894 hpux9* | hpux10* | hpux11*)
14895 lt_prog_compiler_wl='-Wl,'
14896 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14897 # not for PA HP-UX.
14898 case $host_cpu in
14899 hppa*64*|ia64*)
14900 # +Z the default
14901 ;;
14902 *)
14903 lt_prog_compiler_pic='+Z'
14904 ;;
14905 esac
14906 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14907 lt_prog_compiler_static='$wl-a ${wl}archive'
14908 ;;
14909
14910 irix5* | irix6* | nonstopux*)
14911 lt_prog_compiler_wl='-Wl,'
14912 # PIC (with -KPIC) is the default.
14913 lt_prog_compiler_static='-non_shared'
14914 ;;
14915
14916 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14917 case $cc_basename in
14918 # old Intel for x86_64, which still supported -KPIC.
14919 ecc*)
14920 lt_prog_compiler_wl='-Wl,'
14921 lt_prog_compiler_pic='-KPIC'
14922 lt_prog_compiler_static='-static'
14923 ;;
14924 *flang* | ftn | f18* | f95*)
14925 # Flang compiler.
14926 lt_prog_compiler_wl='-Wl,'
14927 lt_prog_compiler_pic='-fPIC'
14928 lt_prog_compiler_static='-static'
14929 ;;
14930 # icc used to be incompatible with GCC.
14931 # ICC 10 doesn't accept -KPIC any more.
14932 icc* | ifort*)
14933 lt_prog_compiler_wl='-Wl,'
14934 lt_prog_compiler_pic='-fPIC'
14935 lt_prog_compiler_static='-static'
14936 ;;
14937 # Lahey Fortran 8.1.
14938 lf95*)
14939 lt_prog_compiler_wl='-Wl,'
14940 lt_prog_compiler_pic='--shared'
14941 lt_prog_compiler_static='--static'
14942 ;;
14943 nagfor*)
14944 # NAG Fortran compiler
14945 lt_prog_compiler_wl='-Wl,-Wl,,'
14946 lt_prog_compiler_pic='-PIC'
14947 lt_prog_compiler_static='-Bstatic'
14948 ;;
14949 tcc*)
14950 # Fabrice Bellard et al's Tiny C Compiler
14951 lt_prog_compiler_wl='-Wl,'
14952 lt_prog_compiler_pic='-fPIC'
14953 lt_prog_compiler_static='-static'
14954 ;;
14955 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14956 # Portland Group compilers (*not* the Pentium gcc compiler,
14957 # which looks to be a dead project)
14958 lt_prog_compiler_wl='-Wl,'
14959 lt_prog_compiler_pic='-fpic'
14960 lt_prog_compiler_static='-Bstatic'
14961 ;;
14962 ccc*)
14963 lt_prog_compiler_wl='-Wl,'
14964 # All Alpha code is PIC.
14965 lt_prog_compiler_static='-non_shared'
14966 ;;
14967 xl* | bgxl* | bgf* | mpixl*)
14968 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14969 lt_prog_compiler_wl='-Wl,'
14970 lt_prog_compiler_pic='-qpic'
14971 lt_prog_compiler_static='-qstaticlink'
14972 ;;
14973 *)
14974 case `$CC -V 2>&1 | $SED 5q` in
14975 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
14976 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14977 lt_prog_compiler_pic='-KPIC'
14978 lt_prog_compiler_static='-Bstatic'
14979 lt_prog_compiler_wl=''
14980 ;;
14981 *Sun\ F* | *Sun*Fortran*)
14982 lt_prog_compiler_pic='-KPIC'
14983 lt_prog_compiler_static='-Bstatic'
14984 lt_prog_compiler_wl='-Qoption ld '
14985 ;;
14986 *Sun\ C*)
14987 # Sun C 5.9
14988 lt_prog_compiler_pic='-KPIC'
14989 lt_prog_compiler_static='-Bstatic'
14990 lt_prog_compiler_wl='-Wl,'
14991 ;;
14992 *Intel*\ [CF]*Compiler*)
14993 lt_prog_compiler_wl='-Wl,'
14994 lt_prog_compiler_pic='-fPIC'
14995 lt_prog_compiler_static='-static'
14996 ;;
14997 *Portland\ Group*)
14998 lt_prog_compiler_wl='-Wl,'
14999 lt_prog_compiler_pic='-fpic'
15000 lt_prog_compiler_static='-Bstatic'
15001 ;;
15002 esac
15003 ;;
15004 esac
15005 ;;
15006
15007 newsos6)
15008 lt_prog_compiler_pic='-KPIC'
15009 lt_prog_compiler_static='-Bstatic'
15010 ;;
15011
15012 *-mlibc)
15013 lt_prog_compiler_wl='-Wl,'
15014 lt_prog_compiler_pic='-fPIC'
15015 lt_prog_compiler_static='-static'
15016 ;;
15017
15018 *nto* | *qnx*)
15019 # QNX uses GNU C++, but need to define -shared option too, otherwise
15020 # it will coredump.
15021 lt_prog_compiler_pic='-fPIC -shared'
15022 ;;
15023
15024 osf3* | osf4* | osf5*)
15025 lt_prog_compiler_wl='-Wl,'
15026 # All OSF/1 code is PIC.
15027 lt_prog_compiler_static='-non_shared'
15028 ;;
15029
15030 rdos*)
15031 lt_prog_compiler_static='-non_shared'
15032 ;;
15033
15034 serenity*)
15035 ;;
15036
15037 solaris*)
15038 lt_prog_compiler_pic='-KPIC'
15039 lt_prog_compiler_static='-Bstatic'
15040 case $cc_basename in
15041 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
15042 lt_prog_compiler_wl='-Qoption ld ';;
15043 *)
15044 lt_prog_compiler_wl='-Wl,';;
15045 esac
15046 ;;
15047
15048 sunos4*)
15049 lt_prog_compiler_wl='-Qoption ld '
15050 lt_prog_compiler_pic='-PIC'
15051 lt_prog_compiler_static='-Bstatic'
15052 ;;
15053
15054 sysv4 | sysv4.2uw2* | sysv4.3*)
15055 lt_prog_compiler_wl='-Wl,'
15056 lt_prog_compiler_pic='-KPIC'
15057 lt_prog_compiler_static='-Bstatic'
15058 ;;
15059
15060 sysv4*MP*)
15061 if test -d /usr/nec; then
15062 lt_prog_compiler_pic='-Kconform_pic'
15063 lt_prog_compiler_static='-Bstatic'
15064 fi
15065 ;;
15066
15067 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15068 lt_prog_compiler_wl='-Wl,'
15069 lt_prog_compiler_pic='-KPIC'
15070 lt_prog_compiler_static='-Bstatic'
15071 ;;
15072
15073 unicos*)
15074 lt_prog_compiler_wl='-Wl,'
15075 lt_prog_compiler_can_build_shared=no
15076 ;;
15077
15078 uts4*)
15079 lt_prog_compiler_pic='-pic'
15080 lt_prog_compiler_static='-Bstatic'
15081 ;;
15082
15083 *)
15084 lt_prog_compiler_can_build_shared=no
15085 ;;
15086 esac
15087 fi
15088
15089 case $host_os in
15090 # For platforms that do not support PIC, -DPIC is meaningless:
15091 *djgpp*)
15092 lt_prog_compiler_pic=
15093 ;;
15094 *)
15095 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15096 ;;
15097 esac
15098
15099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15100 printf %s "checking for $compiler option to produce PIC... " >&6; }
15101 if test ${lt_cv_prog_compiler_pic+y}
15102 then :
15103 printf %s "(cached) " >&6
15104 else case e in #(
15105 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
15106 esac
15107 fi
15108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
15109 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
15110 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
15111
15112 #
15113 # Check to make sure the PIC flag actually works.
15114 #
15115 if test -n "$lt_prog_compiler_pic"; then
15116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15117 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15118 if test ${lt_cv_prog_compiler_pic_works+y}
15119 then :
15120 printf %s "(cached) " >&6
15121 else case e in #(
15122 e) lt_cv_prog_compiler_pic_works=no
15123 ac_outfile=conftest.$ac_objext
15124 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15125 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
15126 # Insert the option either (1) after the last *FLAGS variable, or
15127 # (2) before a word containing "conftest.", or (3) at the end.
15128 # Note that $ac_compile itself does not contain backslashes and begins
15129 # with a dollar sign (not a hyphen), so the echo should work correctly.
15130 # The option is referenced via a variable to avoid confusing sed.
15131 lt_compile=`echo "$ac_compile" | $SED \
15132 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15133 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15134 -e 's:$: $lt_compiler_flag:'`
15135 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15136 (eval "$lt_compile" 2>conftest.err)
15137 ac_status=$?
15138 cat conftest.err >&5
15139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15140 if (exit $ac_status) && test -s "$ac_outfile"; then
15141 # The compiler can only warn and ignore the option if not recognized
15142 # So say no if there are warnings other than the usual output.
15143 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15144 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15145 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15146 lt_cv_prog_compiler_pic_works=yes
15147 fi
15148 fi
15149 $RM conftest*
15150 ;;
15151 esac
15152 fi
15153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15154 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
15155
15156 if test yes = "$lt_cv_prog_compiler_pic_works"; then
15157 case $lt_prog_compiler_pic in
15158 "" | " "*) ;;
15159 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15160 esac
15161 else
15162 lt_prog_compiler_pic=
15163 lt_prog_compiler_can_build_shared=no
15164 fi
15165
15166 fi
15167
15168
15169
15170
15171
15172 #
15173 # Check to make sure the static flag actually works.
15174 #
15175 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15177 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15178 if test ${lt_cv_prog_compiler_static_works+y}
15179 then :
15180 printf %s "(cached) " >&6
15181 else case e in #(
15182 e) lt_cv_prog_compiler_static_works=no
15183 save_LDFLAGS=$LDFLAGS
15184 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15185 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15186 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15187 # The linker can only warn and ignore the option if not recognized
15188 # So say no if there are warnings
15189 if test -s conftest.err; then
15190 # Append any errors to the config.log.
15191 cat conftest.err 1>&5
15192 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15193 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15194 if diff conftest.exp conftest.er2 >/dev/null; then
15195 lt_cv_prog_compiler_static_works=yes
15196 fi
15197 else
15198 lt_cv_prog_compiler_static_works=yes
15199 fi
15200 fi
15201 $RM -r conftest*
15202 LDFLAGS=$save_LDFLAGS
15203 ;;
15204 esac
15205 fi
15206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15207 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
15208
15209 if test yes = "$lt_cv_prog_compiler_static_works"; then
15210 :
15211 else
15212 lt_prog_compiler_static=
15213 fi
15214
15215
15216
15217 ='-fPIC'
15218 archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
15219 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'
15220 archive_cmds_need_lc=no
15221 no_undefined_flag=
15222 ;;
15223
15224 *)
15225 dynamic_linker=no
15226 ;;
15227 esac
15228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15229 printf "%s\n" "$dynamic_linker" >&6; }
15230 test no = "$dynamic_linker" && can_build_shared=no
15231
15232 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15233 if test yes = "$GCC"; then
15234 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15235 fi
15236
15237 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
15238 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
15239 fi
15240
15241 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
15242 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
15243 fi
15244
15245 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
15246 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
15247
15248 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
15249 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
15250
15251 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
15252 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
15253
15254
15255
15256
15257
15258
15259
15260
15261
15262
15263
15264
15265
15266
15267
15268
15269
15270
15271
15272
15273
15274
15275
15276
15277
15278
15279
15280
15281
15282
15283
15284
15285
15286
15287
15288
15289
15290
15291
15292
15293
15294
15295
15296
15297
15298
15299
15300
15301
15302
15303
15304
15305
15306
15307
15308
15309
15310
15311
15312
15313
15314
15315
15316
15317
15318
15319
15320
15321
15322
15323
15324
15325
15326
15327
15328
15329
15330
15331
15332
15333
15334
15335
15336
15337
15338
15339
15340
15341
15342
15343
15344
15345
15346
15347
15348
15349
15350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15351 printf %s "checking how to hardcode library paths into programs... " >&6; }
15352 hardcode_action=
15353 if test -n "$hardcode_libdir_flag_spec" ||
15354 test -n "$runpath_var" ||
15355 test yes = "$hardcode_automatic"; then
15356
15357 # We can hardcode non-existent directories.
15358 if test no != "$hardcode_direct" &&
15359 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15360 # have to relink, otherwise we might link with an installed library
15361 # when we should be linking with a yet-to-be-installed one
15362 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
15363 test no != "$hardcode_minus_L"; then
15364 # Linking always hardcodes the temporary library directory.
15365 hardcode_action=relink
15366 else
15367 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15368 hardcode_action=immediate
15369 fi
15370 else
15371 # We cannot hardcode anything, or else we can only hardcode existing
15372 # directories.
15373 hardcode_action=unsupported
15374 fi
15375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
15376 printf "%s\n" "$hardcode_action" >&6; }
15377
15378 if test relink = "$hardcode_action" ||
15379 test yes = "$inherit_rpath"; then
15380 # Fast installation is not supported
15381 enable_fast_install=no
15382 elif test yes = "$shlibpath_overrides_runpath" ||
15383 test no = "$enable_shared"; then
15384 # Fast installation is not necessary
15385 enable_fast_install=needless
15386 fi
15387
15388
15389
15390
15391
15392
15393 if test yes != "$enable_dlopen"; then
15394 enable_dlopen=unknown
15395 enable_dlopen_self=unknown
15396 enable_dlopen_self_static=unknown
15397 else
15398 lt_cv_dlopen=no
15399 lt_cv_dlopen_libs=
15400
15401 case $host_os in
15402 beos*)
15403 lt_cv_dlopen=load_add_on
15404 lt_cv_dlopen_libs=
15405 lt_cv_dlopen_self=yes
15406 ;;
15407
15408 mingw* | windows* | pw32* | cegcc*)
15409 lt_cv_dlopen=LoadLibrary
15410 lt_cv_dlopen_libs=
15411 ;;
15412
15413 cygwin*)
15414 lt_cv_dlopen=dlopen
15415 lt_cv_dlopen_libs=
15416 ;;
15417
15418 darwin*)
15419 # if libdl is installed we need to link against it
15420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15421 printf %s "checking for dlopen in -ldl... " >&6; }
15422 if test ${ac_cv_lib_dl_dlopen+y}
15423 then :
15424 printf %s "(cached) " >&6
15425 else case e in #(
15426 e) ac_check_lib_save_LIBS=$LIBS
15427 LIBS="-ldl $LIBS"
15428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15429 /* end confdefs.h. */
15430
15431 /* Override any GCC internal prototype to avoid an error.
15432 Use char because int might match the return type of a GCC
15433 builtin and then its argument prototype would still apply.
15434 The 'extern "C"' is for builds by C++ compilers;
15435 although this is not generally supported in C code supporting it here
15436 has little cost and some practical benefit (sr 110532). */
15437 #ifdef __cplusplus
15438 extern "C"
15439 #endif
15440 char dlopen (void);
15441 int
15442 main (void)
15443 {
15444 return dlopen ();
15445 ;
15446 return 0;
15447 }
15448 _ACEOF
15449 if ac_fn_c_try_link "$LINENO"
15450 then :
15451 ac_cv_lib_dl_dlopen=yes
15452 else case e in #(
15453 e) ac_cv_lib_dl_dlopen=no ;;
15454 esac
15455 fi
15456 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15457 conftest$ac_exeext conftest.$ac_ext
15458 LIBS=$ac_check_lib_save_LIBS ;;
15459 esac
15460 fi
15461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15462 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
15463 if test "x$ac_cv_lib_dl_dlopen" = xyes
15464 then :
15465 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15466 else case e in #(
15467 e)
15468 lt_cv_dlopen=dyld
15469 lt_cv_dlopen_libs=
15470 lt_cv_dlopen_self=yes
15471 ;;
15472 esac
15473 fi
15474
15475 ;;
15476
15477 tpf*)
15478 # Don't try to run any link tests for TPF. We know it's impossible
15479 # because TPF is a cross-compiler, and we know how we open DSOs.
15480 lt_cv_dlopen=dlopen
15481 lt_cv_dlopen_libs=
15482 lt_cv_dlopen_self=no
15483 ;;
15484
15485 *)
15486 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15487 if test "x$ac_cv_func_shl_load" = xyes
15488 then :
15489 lt_cv_dlopen=shl_load
15490 else case e in #(
15491 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15492 printf %s "checking for shl_load in -ldld... " >&6; }
15493 if test ${ac_cv_lib_dld_shl_load+y}
15494 then :
15495 printf %s "(cached) " >&6
15496 else case e in #(
15497 e) ac_check_lib_save_LIBS=$LIBS
15498 LIBS="-ldld $LIBS"
15499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15500 /* end confdefs.h. */
15501
15502 /* Override any GCC internal prototype to avoid an error.
15503 Use char because int might match the return type of a GCC
15504 builtin and then its argument prototype would still apply.
15505 The 'extern "C"' is for builds by C++ compilers;
15506 although this is not generally supported in C code supporting it here
15507 has little cost and some practical benefit (sr 110532). */
15508 #ifdef __cplusplus
15509 extern "C"
15510 #endif
15511 char shl_load (void);
15512 int
15513 main (void)
15514 {
15515 return shl_load ();
15516 ;
15517 return 0;
15518 }
15519 _ACEOF
15520 if ac_fn_c_try_link "$LINENO"
15521 then :
15522 ac_cv_lib_dld_shl_load=yes
15523 else case e in #(
15524 e) ac_cv_lib_dld_shl_load=no ;;
15525 esac
15526 fi
15527 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15528 conftest$ac_exeext conftest.$ac_ext
15529 LIBS=$ac_check_lib_save_LIBS ;;
15530 esac
15531 fi
15532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15533 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
15534 if test "x$ac_cv_lib_dld_shl_load" = xyes
15535 then :
15536 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
15537 else case e in #(
15538 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15539 if test "x$ac_cv_func_dlopen" = xyes
15540 then :
15541 lt_cv_dlopen=dlopen
15542 else case e in #(
15543 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15544 printf %s "checking for dlopen in -ldl... " >&6; }
15545 if test ${ac_cv_lib_dl_dlopen+y}
15546 then :
15547 printf %s "(cached) " >&6
15548 else case e in #(
15549 e) ac_check_lib_save_LIBS=$LIBS
15550 LIBS="-ldl $LIBS"
15551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15552 /* end confdefs.h. */
15553
15554 /* Override any GCC internal prototype to avoid an error.
15555 Use char because int might match the return type of a GCC
15556 builtin and then its argument prototype would still apply.
15557 The 'extern "C"' is for builds by C++ compilers;
15558 although this is not generally supported in C code supporting it here
15559 has little cost and some practical benefit (sr 110532). */
15560 #ifdef __cplusplus
15561 extern "C"
15562 #endif
15563 char dlopen (void);
15564 int
15565 main (void)
15566 {
15567 return dlopen ();
15568 ;
15569 return 0;
15570 }
15571 _ACEOF
15572 if ac_fn_c_try_link "$LINENO"
15573 then :
15574 ac_cv_lib_dl_dlopen=yes
15575 else case e in #(
15576 e) ac_cv_lib_dl_dlopen=no ;;
15577 esac
15578 fi
15579 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15580 conftest$ac_exeext conftest.$ac_ext
15581 LIBS=$ac_check_lib_save_LIBS ;;
15582 esac
15583 fi
15584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15585 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
15586 if test "x$ac_cv_lib_dl_dlopen" = xyes
15587 then :
15588 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15589 else case e in #(
15590 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15591 printf %s "checking for dlopen in -lsvld... " >&6; }
15592 if test ${ac_cv_lib_svld_dlopen+y}
15593 then :
15594 printf %s "(cached) " >&6
15595 else case e in #(
15596 e) ac_check_lib_save_LIBS=$LIBS
15597 LIBS="-lsvld $LIBS"
15598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15599 /* end confdefs.h. */
15600
15601 /* Override any GCC internal prototype to avoid an error.
15602 Use char because int might match the return type of a GCC
15603 builtin and then its argument prototype would still apply.
15604 The 'extern "C"' is for builds by C++ compilers;
15605 although this is not generally supported in C code supporting it here
15606 has little cost and some practical benefit (sr 110532). */
15607 #ifdef __cplusplus
15608 extern "C"
15609 #endif
15610 char dlopen (void);
15611 int
15612 main (void)
15613 {
15614 return dlopen ();
15615 ;
15616 return 0;
15617 }
15618 _ACEOF
15619 if ac_fn_c_try_link "$LINENO"
15620 then :
15621 ac_cv_lib_svld_dlopen=yes
15622 else case e in #(
15623 e) ac_cv_lib_svld_dlopen=no ;;
15624 esac
15625 fi
15626 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15627 conftest$ac_exeext conftest.$ac_ext
15628 LIBS=$ac_check_lib_save_LIBS ;;
15629 esac
15630 fi
15631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15632 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
15633 if test "x$ac_cv_lib_svld_dlopen" = xyes
15634 then :
15635 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
15636 else case e in #(
15637 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15638 printf %s "checking for dld_link in -ldld... " >&6; }
15639 if test ${ac_cv_lib_dld_dld_link+y}
15640 then :
15641 printf %s "(cached) " >&6
15642 else case e in #(
15643 e) ac_check_lib_save_LIBS=$LIBS
15644 LIBS="-ldld $LIBS"
15645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15646 /* end confdefs.h. */
15647
15648 /* Override any GCC internal prototype to avoid an error.
15649 Use char because int might match the return type of a GCC
15650 builtin and then its argument prototype would still apply.
15651 The 'extern "C"' is for builds by C++ compilers;
15652 although this is not generally supported in C code supporting it here
15653 has little cost and some practical benefit (sr 110532). */
15654 #ifdef __cplusplus
15655 extern "C"
15656 #endif
15657 char dld_link (void);
15658 int
15659 main (void)
15660 {
15661 return dld_link ();
15662 ;
15663 return 0;
15664 }
15665 _ACEOF
15666 if ac_fn_c_try_link "$LINENO"
15667 then :
15668 ac_cv_lib_dld_dld_link=yes
15669 else case e in #(
15670 e) ac_cv_lib_dld_dld_link=no ;;
15671 esac
15672 fi
15673 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15674 conftest$ac_exeext conftest.$ac_ext
15675 LIBS=$ac_check_lib_save_LIBS ;;
15676 esac
15677 fi
15678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15679 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
15680 if test "x$ac_cv_lib_dld_dld_link" = xyes
15681 then :
15682 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
15683 fi
15684
15685 ;;
15686 esac
15687 fi
15688
15689 ;;
15690 esac
15691 fi
15692
15693 ;;
15694 esac
15695 fi
15696
15697 ;;
15698 esac
15699 fi
15700
15701 ;;
15702 esac
15703 fi
15704
15705 ;;
15706 esac
15707
15708 if test no = "$lt_cv_dlopen"; then
15709 enable_dlopen=no
15710 else
15711 enable_dlopen=yes
15712 fi
15713
15714 case $lt_cv_dlopen in
15715 dlopen)
15716 save_CPPFLAGS=$CPPFLAGS
15717 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15718
15719 save_LDFLAGS=$LDFLAGS
15720 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15721
15722 save_LIBS=$LIBS
15723 LIBS="$lt_cv_dlopen_libs $LIBS"
15724
15725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15726 printf %s "checking whether a program can dlopen itself... " >&6; }
15727 if test ${lt_cv_dlopen_self+y}
15728 then :
15729 printf %s "(cached) " >&6
15730 else case e in #(
15731 e) if test yes = "$cross_compiling"; then :
15732 lt_cv_dlopen_self=cross
15733 else
15734 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15735 lt_status=$lt_dlunknown
15736 cat > conftest.$ac_ext <<_LT_EOF
15737 #line $LINENO "configure"
15738 #include "confdefs.h"
15739
15740 #if HAVE_DLFCN_H
15741 #include <dlfcn.h>
15742 #endif
15743
15744 #include <stdio.h>
15745
15746 #ifdef RTLD_GLOBAL
15747 # define LT_DLGLOBAL RTLD_GLOBAL
15748 #else
15749 # ifdef DL_GLOBAL
15750 # define LT_DLGLOBAL DL_GLOBAL
15751 # else
15752 # define LT_DLGLOBAL 0
15753 # endif
15754 #endif
15755
15756 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15757 find out it does not work in some platform. */
15758 #ifndef LT_DLLAZY_OR_NOW
15759 # ifdef RTLD_LAZY
15760 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15761 # else
15762 # ifdef DL_LAZY
15763 # define LT_DLLAZY_OR_NOW DL_LAZY
15764 # else
15765 # ifdef RTLD_NOW
15766 # define LT_DLLAZY_OR_NOW RTLD_NOW
15767 # else
15768 # ifdef DL_NOW
15769 # define LT_DLLAZY_OR_NOW DL_NOW
15770 # else
15771 # define LT_DLLAZY_OR_NOW 0
15772 # endif
15773 # endif
15774 # endif
15775 # endif
15776 #endif
15777
15778 /* When -fvisibility=hidden is used, assume the code has been annotated
15779 correspondingly for the symbols needed. */
15780 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15781 int fnord (void) __attribute__((visibility("default")));
15782 #endif
15783
15784 int fnord (void) { return 42; }
15785 int main (void)
15786 {
15787 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15788 int status = $lt_dlunknown;
15789
15790 if (self)
15791 {
15792 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15793 else
15794 {
15795 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15796 else puts (dlerror ());
15797 }
15798 /* dlclose (self); */
15799 }
15800 else
15801 puts (dlerror ());
15802
15803 return status;
15804 }
15805 _LT_EOF
15806 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15807 (eval $ac_link) 2>&5
15808 ac_status=$?
15809 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15810 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15811 (./conftest; exit; ) >&5 2>/dev/null
15812 lt_status=$?
15813 case x$lt_status in
15814 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15815 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15816 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15817 esac
15818 else :
15819 # compilation failed
15820 lt_cv_dlopen_self=no
15821 fi
15822 fi
15823 rm -fr conftest*
15824
15825 ;;
15826 esac
15827 fi
15828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15829 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
15830
15831 if test yes = "$lt_cv_dlopen_self"; then
15832 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15834 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
15835 if test ${lt_cv_dlopen_self_static+y}
15836 then :
15837 printf %s "(cached) " >&6
15838 else case e in #(
15839 e) if test yes = "$cross_compiling"; then :
15840 lt_cv_dlopen_self_static=cross
15841 else
15842 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15843 lt_status=$lt_dlunknown
15844 cat > conftest.$ac_ext <<_LT_EOF
15845 #line $LINENO "configure"
15846 #include "confdefs.h"
15847
15848 #if HAVE_DLFCN_H
15849 #include <dlfcn.h>
15850 #endif
15851
15852 #include <stdio.h>
15853
15854 #ifdef RTLD_GLOBAL
15855 # define LT_DLGLOBAL RTLD_GLOBAL
15856 #else
15857 # ifdef DL_GLOBAL
15858 # define LT_DLGLOBAL DL_GLOBAL
15859 # else
15860 # define LT_DLGLOBAL 0
15861 # endif
15862 #endif
15863
15864 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15865 find out it does not work in some platform. */
15866 #ifndef LT_DLLAZY_OR_NOW
15867 # ifdef RTLD_LAZY
15868 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15869 # else
15870 # ifdef DL_LAZY
15871 # define LT_DLLAZY_OR_NOW DL_LAZY
15872 # else
15873 # ifdef RTLD_NOW
15874 # define LT_DLLAZY_OR_NOW RTLD_NOW
15875 # else
15876 # ifdef DL_NOW
15877 # define LT_DLLAZY_OR_NOW DL_NOW
15878 # else
15879 # define LT_DLLAZY_OR_NOW 0
15880 # endif
15881 # endif
15882 # endif
15883 # endif
15884 #endif
15885
15886 /* When -fvisibility=hidden is used, assume the code has been annotated
15887 correspondingly for the symbols needed. */
15888 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15889 int fnord (void) __attribute__((visibility("default")));
15890 #endif
15891
15892 int fnord (void) { return 42; }
15893 int main (void)
15894 {
15895 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15896 int status = $lt_dlunknown;
15897
15898 if (self)
15899 {
15900 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15901 else
15902 {
15903 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15904 else puts (dlerror ());
15905 }
15906 /* dlclose (self); */
15907 }
15908 else
15909 puts (dlerror ());
15910
15911 return status;
15912 }
15913 _LT_EOF
15914 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15915 (eval $ac_link) 2>&5
15916 ac_status=$?
15917 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15918 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15919 (./conftest; exit; ) >&5 2>/dev/null
15920 lt_status=$?
15921 case x$lt_status in
15922 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15923 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15924 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15925 esac
15926 else :
15927 # compilation failed
15928 lt_cv_dlopen_self_static=no
15929 fi
15930 fi
15931 rm -fr conftest*
15932
15933 ;;
15934 esac
15935 fi
15936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15937 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
15938 fi
15939
15940 CPPFLAGS=$save_CPPFLAGS
15941 LDFLAGS=$save_LDFLAGS
15942 LIBS=$save_LIBS
15943 ;;
15944 esac
15945
15946 case $lt_cv_dlopen_self in
15947 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15948 *) enable_dlopen_self=unknown ;;
15949 esac
15950
15951 case $lt_cv_dlopen_self_static in
15952 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15953 *) enable_dlopen_self_static=unknown ;;
15954 esac
15955 fi
15956
15957
15958
15959
15960
15961
15962
15963
15964
15965
15966
15967
15968
15969
15970
15971
15972
15973 striplib=
15974 old_striplib=
15975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15976 printf %s "checking whether stripping libraries is possible... " >&6; }
15977 if test -z "$STRIP"; then
15978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15979 printf "%s\n" "no" >&6; }
15980 else
15981 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15982 old_striplib="$STRIP --strip-debug"
15983 striplib="$STRIP --strip-unneeded"
15984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15985 printf "%s\n" "yes" >&6; }
15986 else
15987 case $host_os in
15988 darwin*)
15989 # FIXME - insert some real tests, host_os isn't really good enough
15990 striplib="$STRIP -x"
15991 old_striplib="$STRIP -S"
15992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15993 printf "%s\n" "yes" >&6; }
15994 ;;
15995 freebsd*)
15996 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
15997 old_striplib="$STRIP --strip-debug"
15998 striplib="$STRIP --strip-unneeded"
15999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16000 printf "%s\n" "yes" >&6; }
16001 else
16002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16003 printf "%s\n" "no" >&6; }
16004 fi
16005 ;;
16006 *)
16007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16008 printf "%s\n" "no" >&6; }
16009 ;;
16010 esac
16011 fi
16012 fi
16013
16014
16015
16016
16017
16018
16019
16020
16021
16022
16023
16024
16025 # Report what library types will actually be built
16026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
16027 printf %s "checking if libtool supports shared libraries... " >&6; }
16028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
16029 printf "%s\n" "$can_build_shared" >&6; }
16030
16031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
16032 printf %s "checking whether to build shared libraries... " >&6; }
16033 test no = "$can_build_shared" && enable_shared=no
16034
16035 # On AIX, shared libraries and static libraries use the same namespace, and
16036 # are all built from PIC.
16037 case $host_os in
16038 aix3*)
16039 test yes = "$enable_shared" && enable_static=no
16040 if test -n "$RANLIB"; then
16041 archive_cmds="$archive_cmds~\$RANLIB \$lib"
16042 postinstall_cmds='$RANLIB $lib'
16043 fi
16044 ;;
16045
16046 aix[4-9]*)
16047 if test ia64 != "$host_cpu"; then
16048 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
16049 yes,aix,yes) ;; # shared object as lib.so file only
16050 yes,svr4,*) ;; # shared object as lib.so archive member only
16051 yes,*) enable_static=no ;; # shared object in lib.a archive as well
16052 esac
16053 fi
16054 ;;
16055 esac
16056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
16057 printf "%s\n" "$enable_shared" >&6; }
16058
16059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
16060 printf %s "checking whether to build static libraries... " >&6; }
16061 # Make sure either enable_shared or enable_static is yes.
16062 test yes = "$enable_shared" || enable_static=yes
16063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
16064 printf "%s\n" "$enable_static" >&6; }
16065
16066
16067
16068
16069 fi
16070 ac_ext=c
16071 ac_cpp='$CPP $CPPFLAGS'
16072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16075
16076 CC=$lt_save_CC
16077
16078 if test -n "$CXX" && ( test no != "$CXX" &&
16079 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
16080 (test g++ != "$CXX"))); then
16081 ac_ext=cpp
16082 ac_cpp='$CXXCPP $CPPFLAGS'
16083 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16084 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16085 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
16087 printf %s "checking how to run the C++ preprocessor... " >&6; }
16088 if test -z "$CXXCPP"; then
16089 if test ${ac_cv_prog_CXXCPP+y}
16090 then :
16091 printf %s "(cached) " >&6
16092 else case e in #(
16093 e) # Double quotes because $CXX needs to be expanded
16094 for CXXCPP in "$CXX -E" cpp /lib/cpp
16095 do
16096 ac_preproc_ok=false
16097 for ac_cxx_preproc_warn_flag in '' yes
16098 do
16099 # Use a header file that comes with gcc, so configuring glibc
16100 # with a fresh cross-compiler works.
16101 # On the NeXT, cc -E runs the code through the compiler's parser,
16102 # not just through cpp. "Syntax error" is here to catch this case.
16103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16104 /* end confdefs.h. */
16105 #include <limits.h>
16106 Syntax error
16107 _ACEOF
16108 if ac_fn_cxx_try_cpp "$LINENO"
16109 then :
16110
16111 else case e in #(
16112 e) # Broken: fails on valid input.
16113 continue ;;
16114 esac
16115 fi
16116 rm -f conftest.err conftest.i conftest.$ac_ext
16117
16118 # OK, works on sane cases. Now check whether nonexistent headers
16119 # can be detected and how.
16120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16121 /* end confdefs.h. */
16122 #include <ac_nonexistent.h>
16123 _ACEOF
16124 if ac_fn_cxx_try_cpp "$LINENO"
16125 then :
16126 # Broken: success on invalid input.
16127 continue
16128 else case e in #(
16129 e) # Passes both tests.
16130 ac_preproc_ok=:
16131 break ;;
16132 esac
16133 fi
16134 rm -f conftest.err conftest.i conftest.$ac_ext
16135
16136 done
16137 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16138 rm -f conftest.i conftest.err conftest.$ac_ext
16139 if $ac_preproc_ok
16140 then :
16141 break
16142 fi
16143
16144 done
16145 ac_cv_prog_CXXCPP=$CXXCPP
16146 ;;
16147 esac
16148 fi
16149 CXXCPP=$ac_cv_prog_CXXCPP
16150 else
16151 ac_cv_prog_CXXCPP=$CXXCPP
16152 fi
16153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
16154 printf "%s\n" "$CXXCPP" >&6; }
16155 ac_preproc_ok=false
16156 for ac_cxx_preproc_warn_flag in '' yes
16157 do
16158 # Use a header file that comes with gcc, so configuring glibc
16159 # with a fresh cross-compiler works.
16160 # On the NeXT, cc -E runs the code through the compiler's parser,
16161 # not just through cpp. "Syntax error" is here to catch this case.
16162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16163 /* end confdefs.h. */
16164 #include <limits.h>
16165 Syntax error
16166 _ACEOF
16167 if ac_fn_cxx_try_cpp "$LINENO"
16168 then :
16169
16170 else case e in #(
16171 e) # Broken: fails on valid input.
16172 continue ;;
16173 esac
16174 fi
16175 rm -f conftest.err conftest.i conftest.$ac_ext
16176
16177 # OK, works on sane cases. Now check whether nonexistent headers
16178 # can be detected and how.
16179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16180 /* end confdefs.h. */
16181 #include <ac_nonexistent.h>
16182 _ACEOF
16183 if ac_fn_cxx_try_cpp "$LINENO"
16184 then :
16185 # Broken: success on invalid input.
16186 continue
16187 else case e in #(
16188 e) # Passes both tests.
16189 ac_preproc_ok=:
16190 break ;;
16191 esac
16192 fi
16193 rm -f conftest.err conftest.i conftest.$ac_ext
16194
16195 done
16196 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16197 rm -f conftest.i conftest.err conftest.$ac_ext
16198 if $ac_preproc_ok
16199 then :
16200
16201 else case e in #(
16202 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
16203 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
16204 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
16205 See 'config.log' for more details" "$LINENO" 5; } ;;
16206 esac
16207 fi
16208
16209 ac_ext=c
16210 ac_cpp='$CPP $CPPFLAGS'
16211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16214
16215 else
16216 _lt_caught_CXX_error=yes
16217 fi
16218
16219 ac_ext=cpp
16220 ac_cpp='$CXXCPP $CPPFLAGS'
16221 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16222 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16223 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16224
16225 archive_cmds_need_lc_CXX=no
16226 allow_undefined_flag_CXX=
16227 always_export_symbols_CXX=no
16228 archive_expsym_cmds_CXX=
16229 compiler_needs_object_CXX=no
16230 export_dynamic_flag_spec_CXX=
16231 hardcode_direct_CXX=no
16232 hardcode_direct_absolute_CXX=no
16233 hardcode_libdir_flag_spec_CXX=
16234 hardcode_libdir_separator_CXX=
16235 hardcode_minus_L_CXX=no
16236 hardcode_shlibpath_var_CXX=unsupported
16237 hardcode_automatic_CXX=no
16238 inherit_rpath_CXX=no
16239 module_cmds_CXX=
16240 module_expsym_cmds_CXX=
16241 link_all_deplibs_CXX=unknown
16242 old_archive_cmds_CXX=$old_archive_cmds
16243 reload_flag_CXX=$reload_flag
16244 reload_cmds_CXX=$reload_cmds
16245 no_undefined_flag_CXX=
16246 whole_archive_flag_spec_CXX=
16247 enable_shared_with_static_runtimes_CXX=no
16248
16249 # Source file extension for C++ test sources.
16250 ac_ext=cpp
16251
16252 # Object file extension for compiled C++ test sources.
16253 objext=o
16254 objext_CXX=$objext
16255
16256 # No sense in running all these tests if we already determined that
16257 # the CXX compiler isn't working. Some variables (like enable_shared)
16258 # are currently assumed to apply to all compilers on this platform,
16259 # and will be corrupted by setting them based on a non-working compiler.
16260 if test yes != "$_lt_caught_CXX_error"; then
16261 # Code to be used in simple compile tests
16262 lt_simple_compile_test_code="int some_variable = 0;"
16263
16264 # Code to be used in simple link tests
16265 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
16266
16267 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16268
16269
16270
16271
16272
16273
16274 # If no C compiler was specified, use CC.
16275 LTCC=${LTCC-"$CC"}
16276
16277 # If no C compiler flags were specified, use CFLAGS.
16278 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16279
16280 # Allow CC to be a program name with arguments.
16281 compiler=$CC
16282
16283
16284 # save warnings/boilerplate of simple test code
16285 ac_outfile=conftest.$ac_objext
16286 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16287 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16288 _lt_compiler_boilerplate=`cat conftest.err`
16289 $RM conftest*
16290
16291 ac_outfile=conftest.$ac_objext
16292 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16293 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16294 _lt_linker_boilerplate=`cat conftest.err`
16295 $RM -r conftest*
16296
16297
16298 # Allow CC to be a program name with arguments.
16299 lt_save_CC=$CC
16300 lt_save_CFLAGS=$CFLAGS
16301 lt_save_LD=$LD
16302 lt_save_GCC=$GCC
16303 GCC=$GXX
16304 lt_save_with_gnu_ld=$with_gnu_ld
16305 lt_save_path_LD=$lt_cv_path_LD
16306 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16307 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16308 else
16309 $as_unset lt_cv_prog_gnu_ld
16310 fi
16311 if test -n "${lt_cv_path_LDCXX+set}"; then
16312 lt_cv_path_LD=$lt_cv_path_LDCXX
16313 else
16314 $as_unset lt_cv_path_LD
16315 fi
16316 test -z "${LDCXX+set}" || LD=$LDCXX
16317 CC=${CXX-"c++"}
16318 CFLAGS=$CXXFLAGS
16319 compiler=$CC
16320 compiler_CXX=$CC
16321 func_cc_basename $compiler
16322 cc_basename=$func_cc_basename_result
16323
16324
16325 if test -n "$compiler"; then
16326 # We don't want -fno-exception when compiling C++ code, so set the
16327 # no_builtin_flag separately
16328 if test yes = "$GXX"; then
16329 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
16330 else
16331 lt_prog_compiler_no_builtin_flag_CXX=
16332 fi
16333
16334 if test yes = "$GXX"; then
16335 # Set up default GNU C++ configuration
16336
16337
16338
16339 # Check whether --with-gnu-ld was given.
16340 if test ${with_gnu_ld+y}
16341 then :
16342 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
16343 else case e in #(
16344 e) with_gnu_ld=no ;;
16345 esac
16346 fi
16347
16348 ac_prog=ld
16349 if test yes = "$GCC"; then
16350 # Check if gcc -print-prog-name=ld gives a path.
16351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16352 printf %s "checking for ld used by $CC... " >&6; }
16353 case $host in
16354 *-*-mingw* | *-*-windows*)
16355 # gcc leaves a trailing carriage return, which upsets mingw
16356 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16357 *)
16358 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16359 esac
16360 case $ac_prog in
16361 # Accept absolute paths.
16362 [\\/]* | ?:[\\/]*)
16363 re_direlt='/[^/][^/]*/\.\./'
16364 # Canonicalize the pathname of ld
16365 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16366 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16367 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16368 done
16369 test -z "$LD" && LD=$ac_prog
16370 ;;
16371 "")
16372 # If it fails, then pretend we aren't using GCC.
16373 ac_prog=ld
16374 ;;
16375 *)
16376 # If it is relative, then search for the first ld in PATH.
16377 with_gnu_ld=unknown
16378 ;;
16379 esac
16380 elif test yes = "$with_gnu_ld"; then
16381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16382 printf %s "checking for GNU ld... " >&6; }
16383 else
16384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16385 printf %s "checking for non-GNU ld... " >&6; }
16386 fi
16387 if test ${lt_cv_path_LD+y}
16388 then :
16389 printf %s "(cached) " >&6
16390 else case e in #(
16391 e) if test -z "$LD"; then
16392 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
16393 for ac_dir in $PATH; do
16394 IFS=$lt_save_ifs
16395 test -z "$ac_dir" && ac_dir=.
16396 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16397 lt_cv_path_LD=$ac_dir/$ac_prog
16398 # Check to see if the program is GNU ld. I'd rather use --version,
16399 # but apparently some variants of GNU ld only accept -v.
16400 # Break only if it was the GNU/non-GNU ld that we prefer.
16401 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16402 *GNU* | *'with BFD'*)
16403 test no != "$with_gnu_ld" && break
16404 ;;
16405 *)
16406 test yes != "$with_gnu_ld" && break
16407 ;;
16408 esac
16409 fi
16410 done
16411 IFS=$lt_save_ifs
16412 else
16413 lt_cv_path_LD=$LD # Let the user override the test with a path.
16414 fi ;;
16415 esac
16416 fi
16417
16418 LD=$lt_cv_path_LD
16419 if test -n "$LD"; then
16420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16421 printf "%s\n" "$LD" >&6; }
16422 else
16423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16424 printf "%s\n" "no" >&6; }
16425 fi
16426 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16428 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
16429 if test ${lt_cv_prog_gnu_ld+y}
16430 then :
16431 printf %s "(cached) " >&6
16432 else case e in #(
16433 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
16434 case `$LD -v 2>&1 </dev/null` in
16435 *GNU* | *'with BFD'*)
16436 lt_cv_prog_gnu_ld=yes
16437 ;;
16438 *)
16439 lt_cv_prog_gnu_ld=no
16440 ;;
16441 esac ;;
16442 esac
16443 fi
16444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16445 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
16446 with_gnu_ld=$lt_cv_prog_gnu_ld
16447
16448
16449
16450
16451
16452
16453
16454 # Check if GNU C++ uses GNU ld as the underlying linker, since the
16455 # archiving commands below assume that GNU ld is being used.
16456 if test yes = "$with_gnu_ld"; then
16457 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16458 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16459
16460 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16461 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16462
16463 # If archive_cmds runs LD, not CC, wlarc should be empty
16464 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
16465 # investigate it a little bit more. (MM)
16466 wlarc='$wl'
16467
16468 # ancient GNU ld didn't support --whole-archive et. al.
16469 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16470 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
16471 else
16472 whole_archive_flag_spec_CXX=
16473 fi
16474 else
16475 with_gnu_ld=no
16476 wlarc=
16477
16478 # A generic and very simple default shared library creation
16479 # command for GNU C++ for the case where it uses the native
16480 # linker, instead of GNU ld. If possible, this setting should
16481 # overridden to take advantage of the native linker features on
16482 # the platform it is being used on.
16483 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16484 fi
16485
16486 # Commands to make compiler produce verbose output that lists
16487 # what "hidden" libraries, object files and flags are used when
16488 # linking a shared library.
16489 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
16490
16491 else
16492 GXX=no
16493 with_gnu_ld=no
16494 wlarc=
16495 fi
16496
16497 # PORTME: fill in a description of your system's C++ link characteristics
16498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16499 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16500 ld_shlibs_CXX=yes
16501 case $host_os in
16502 aix3*)
16503 # FIXME: insert proper C++ library support
16504 ld_shlibs_CXX=no
16505 ;;
16506 aix[4-9]*)
16507 if test ia64 = "$host_cpu"; then
16508 # On IA64, the linker does run time linking by default, so we don't
16509 # have to do anything special.
16510 aix_use_runtimelinking=no
16511 exp_sym_flag='-Bexport'
16512 no_entry_flag=
16513 else
16514 aix_use_runtimelinking=no
16515
16516 # Test if we are trying to use run time linking or normal
16517 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16518 # have runtime linking enabled, and use it for executables.
16519 # For shared libraries, we enable/disable runtime linking
16520 # depending on the kind of the shared library created -
16521 # when "with_aix_soname,aix_use_runtimelinking" is:
16522 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
16523 # "aix,yes" lib.so shared, rtl:yes, for executables
16524 # lib.a static archive
16525 # "both,no" lib.so.V(shr.o) shared, rtl:yes
16526 # lib.a(lib.so.V) shared, rtl:no, for executables
16527 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
16528 # lib.a(lib.so.V) shared, rtl:no
16529 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
16530 # lib.a static archive
16531 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16532 for ld_flag in $LDFLAGS; do
16533 case $ld_flag in
16534 *-brtl*)
16535 aix_use_runtimelinking=yes
16536 break
16537 ;;
16538 esac
16539 done
16540 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
16541 # With aix-soname=svr4, we create the lib.so.V shared archives only,
16542 # so we don't have lib.a shared libs to link our executables.
16543 # We have to force runtime linking in this case.
16544 aix_use_runtimelinking=yes
16545 LDFLAGS="$LDFLAGS -Wl,-brtl"
16546 fi
16547 ;;
16548 esac
16549
16550 exp_sym_flag='-bexport'
16551 no_entry_flag='-bnoentry'
16552 fi
16553
16554 # When large executables or shared objects are built, AIX ld can
16555 # have problems creating the table of contents. If linking a library
16556 # or program results in "error TOC overflow" add -mminimal-toc to
16557 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16558 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16559
16560 archive_cmds_CXX=''
16561 hardcode_direct_CXX=yes
16562 hardcode_direct_absolute_CXX=yes
16563 hardcode_libdir_separator_CXX=':'
16564 link_all_deplibs_CXX=yes
16565 file_list_spec_CXX='$wl-f,'
16566 case $with_aix_soname,$aix_use_runtimelinking in
16567 aix,*) ;; # no import file
16568 svr4,* | *,yes) # use import file
16569 # The Import File defines what to hardcode.
16570 hardcode_direct_CXX=no
16571 hardcode_direct_absolute_CXX=no
16572 ;;
16573 esac
16574
16575 if test yes = "$GXX"; then
16576 case $host_os in aix4.[012]|aix4.[012].*)
16577 # We only want to do this on AIX 4.2 and lower, the check
16578 # below for broken collect2 doesn't work under 4.3+
16579 collect2name=`$CC -print-prog-name=collect2`
16580 if test -f "$collect2name" &&
16581 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16582 then
16583 # We have reworked collect2
16584 :
16585 else
16586 # We have old collect2
16587 hardcode_direct_CXX=unsupported
16588 # It fails to find uninstalled libraries when the uninstalled
16589 # path is not listed in the libpath. Setting hardcode_minus_L
16590 # to unsupported forces relinking
16591 hardcode_minus_L_CXX=yes
16592 hardcode_libdir_flag_spec_CXX='-L$libdir'
16593 hardcode_libdir_separator_CXX=
16594 fi
16595 esac
16596 shared_flag='-shared'
16597 if test yes = "$aix_use_runtimelinking"; then
16598 shared_flag=$shared_flag' $wl-G'
16599 fi
16600 # Need to ensure runtime linking is disabled for the traditional
16601 # shared library, or the linker may eventually find shared libraries
16602 # /with/ Import File - we do not want to mix them.
16603 shared_flag_aix='-shared'
16604 shared_flag_svr4='-shared $wl-G'
16605 else
16606 # not using gcc
16607 if test ia64 = "$host_cpu"; then
16608 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16609 # chokes on -Wl,-G. The following line is correct:
16610 shared_flag='-G'
16611 else
16612 if test yes = "$aix_use_runtimelinking"; then
16613 shared_flag='$wl-G'
16614 else
16615 shared_flag='$wl-bM:SRE'
16616 fi
16617 shared_flag_aix='$wl-bM:SRE'
16618 shared_flag_svr4='$wl-G'
16619 fi
16620 fi
16621
16622 export_dynamic_flag_spec_CXX='$wl-bexpall'
16623 # It seems that -bexpall does not export symbols beginning with
16624 # underscore (_), so it is better to generate a list of symbols to
16625 # export.
16626 always_export_symbols_CXX=yes
16627 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
16628 # Warning - without using the other runtime loading flags (-brtl),
16629 # -berok will link without error, but may produce a broken library.
16630 # The "-G" linker flag allows undefined symbols.
16631 no_undefined_flag_CXX='-bernotok'
16632 # Determine the default libpath from the value encoded in an empty
16633 # executable.
16634 if test set = "${lt_cv_aix_libpath+set}"; then
16635 aix_libpath=$lt_cv_aix_libpath
16636 else
16637 if test ${lt_cv_aix_libpath__CXX+y}
16638 then :
16639 printf %s "(cached) " >&6
16640 else case e in #(
16641 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16642 /* end confdefs.h. */
16643
16644 int
16645 main (void)
16646 {
16647
16648 ;
16649 return 0;
16650 }
16651 _ACEOF
16652 if ac_fn_cxx_try_link "$LINENO"
16653 then :
16654
16655 lt_aix_libpath_sed='
16656 /Import File Strings/,/^$/ {
16657 /^0/ {
16658 s/^0 *\([^ ]*\) *$/\1/
16659 p
16660 }
16661 }'
16662 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16663 # Check for a 64-bit object if we didn't find anything.
16664 if test -z "$lt_cv_aix_libpath__CXX"; then
16665 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16666 fi
16667 fi
16668 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16669 conftest$ac_exeext conftest.$ac_ext
16670 if test -z "$lt_cv_aix_libpath__CXX"; then
16671 lt_cv_aix_libpath__CXX=/usr/lib:/lib
16672 fi
16673 ;;
16674 esac
16675 fi
16676
16677 aix_libpath=$lt_cv_aix_libpath__CXX
16678 fi
16679
16680 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
16681
16682 archive_expsym_cmds_CXX='$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
16683 else
16684 if test ia64 = "$host_cpu"; then
16685 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
16686 allow_undefined_flag_CXX="-z nodefs"
16687 archive_expsym_cmds_CXX="\$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"
16688 else
16689 # Determine the default libpath from the value encoded in an
16690 # empty executable.
16691 if test set = "${lt_cv_aix_libpath+set}"; then
16692 aix_libpath=$lt_cv_aix_libpath
16693 else
16694 if test ${lt_cv_aix_libpath__CXX+y}
16695 then :
16696 printf %s "(cached) " >&6
16697 else case e in #(
16698 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16699 /* end confdefs.h. */
16700
16701 int
16702 main (void)
16703 {
16704
16705 ;
16706 return 0;
16707 }
16708 _ACEOF
16709 if ac_fn_cxx_try_link "$LINENO"
16710 then :
16711
16712 lt_aix_libpath_sed='
16713 /Import File Strings/,/^$/ {
16714 /^0/ {
16715 s/^0 *\([^ ]*\) *$/\1/
16716 p
16717 }
16718 }'
16719 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16720 # Check for a 64-bit object if we didn't find anything.
16721 if test -z "$lt_cv_aix_libpath__CXX"; then
16722 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16723 fi
16724 fi
16725 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16726 conftest$ac_exeext conftest.$ac_ext
16727 if test -z "$lt_cv_aix_libpath__CXX"; then
16728 lt_cv_aix_libpath__CXX=/usr/lib:/lib
16729 fi
16730 ;;
16731 esac
16732 fi
16733
16734 aix_libpath=$lt_cv_aix_libpath__CXX
16735 fi
16736
16737 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
16738 # Warning - without using the other run time loading flags,
16739 # -berok will link without error, but may produce a broken library.
16740 no_undefined_flag_CXX=' $wl-bernotok'
16741 allow_undefined_flag_CXX=' $wl-berok'
16742 if test yes = "$with_gnu_ld"; then
16743 # We only use this code for GNU lds that support --whole-archive.
16744 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
16745 else
16746 # Exported symbols can be pulled into shared objects from archives
16747 whole_archive_flag_spec_CXX='$convenience'
16748 fi
16749 archive_cmds_need_lc_CXX=yes
16750 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
16751 # -brtl affects multiple linker settings, -berok does not and is overridden later
16752 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
16753 if test svr4 != "$with_aix_soname"; then
16754 # This is similar to how AIX traditionally builds its shared
16755 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
16756 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$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'
16757 fi
16758 if test aix != "$with_aix_soname"; then
16759 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$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'
16760 else
16761 # used by -dlpreopen to get the symbols
16762 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
16763 fi
16764 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
16765 fi
16766 fi
16767 ;;
16768
16769 beos*)
16770 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16771 allow_undefined_flag_CXX=unsupported
16772 # Joseph Beckenbach <[email protected]> says some releases of gcc
16773 # support --undefined. This deserves some investigation. FIXME
16774 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16775 else
16776 ld_shlibs_CXX=no
16777 fi
16778 ;;
16779
16780 chorus*)
16781 case $cc_basename in
16782 *)
16783 # FIXME: insert proper C++ library support
16784 ld_shlibs_CXX=no
16785 ;;
16786 esac
16787 ;;
16788
16789 cygwin* | mingw* | windows* | pw32* | cegcc*)
16790 case $GXX,$cc_basename in
16791 ,cl* | no,cl* | ,icl* | no,icl*)
16792 # Native MSVC or ICC
16793 # hardcode_libdir_flag_spec is actually meaningless, as there is
16794 # no search path for DLLs.
16795 hardcode_libdir_flag_spec_CXX=' '
16796 allow_undefined_flag_CXX=unsupported
16797 always_export_symbols_CXX=yes
16798 file_list_spec_CXX='@'
16799 # Tell ltmain to make .lib files, not .a files.
16800 libext=lib
16801 # Tell ltmain to make .dll files, not .so files.
16802 shrext_cmds=.dll
16803 # FIXME: Setting linknames here is a bad hack.
16804 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
16805 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
16806 cp "$export_symbols" "$output_objdir/$soname.def";
16807 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
16808 else
16809 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
16810 fi~
16811 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16812 linknames='
16813 # The linker will not automatically build a static lib if we build a DLL.
16814 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
16815 enable_shared_with_static_runtimes_CXX=yes
16816 # Don't use ranlib
16817 old_postinstall_cmds_CXX='chmod 644 $oldlib'
16818 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
16819 lt_tool_outputfile="@TOOL_OUTPUT@"~
16820 case $lt_outputfile in
16821 *.exe|*.EXE) ;;
16822 *)
16823 lt_outputfile=$lt_outputfile.exe
16824 lt_tool_outputfile=$lt_tool_outputfile.exe
16825 ;;
16826 esac~
16827 func_to_tool_file "$lt_outputfile"~
16828 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
16829 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16830 $RM "$lt_outputfile.manifest";
16831 fi'
16832 ;;
16833 *)
16834 # g++
16835 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16836 # as there is no search path for DLLs.
16837 hardcode_libdir_flag_spec_CXX='-L$libdir'
16838 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
16839 allow_undefined_flag_CXX=unsupported
16840 always_export_symbols_CXX=no
16841 enable_shared_with_static_runtimes_CXX=yes
16842 file_list_spec_CXX='@'
16843
16844 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16845 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16846 # If the export-symbols file already is a .def file, use it as
16847 # is; otherwise, prepend EXPORTS...
16848 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
16849 cp $export_symbols $output_objdir/$soname.def;
16850 else
16851 echo EXPORTS > $output_objdir/$soname.def;
16852 cat $export_symbols >> $output_objdir/$soname.def;
16853 fi~
16854 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16855 else
16856 ld_shlibs_CXX=no
16857 fi
16858 ;;
16859 esac
16860 ;;
16861 darwin* | rhapsody*)
16862
16863
16864 archive_cmds_need_lc_CXX=no
16865 hardcode_direct_CXX=no
16866 hardcode_automatic_CXX=yes
16867 hardcode_shlibpath_var_CXX=unsupported
16868 if test yes = "$lt_cv_ld_force_load"; then
16869 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
16870
16871 else
16872 whole_archive_flag_spec_CXX=''
16873 fi
16874 link_all_deplibs_CXX=yes
16875 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
16876 case $cc_basename in
16877 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
16878 *) _lt_dar_can_shared=$GCC ;;
16879 esac
16880 if test yes = "$_lt_dar_can_shared"; then
16881 output_verbose_link_cmd=func_echo_all
16882 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
16883 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
16884 archive_expsym_cmds_CXX="$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"
16885 module_expsym_cmds_CXX="$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"
16886 if test yes = "$_lt_dar_needs_single_mod" -a yes != "$lt_cv_apple_cc_single_mod"; then
16887 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil"
16888 archive_expsym_cmds_CXX="$SED 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil"
16889 fi
16890
16891 else
16892 ld_shlibs_CXX=no
16893 fi
16894
16895 ;;
16896
16897 os2*)
16898 hardcode_libdir_flag_spec_CXX='-L$libdir'
16899 hardcode_minus_L_CXX=yes
16900 allow_undefined_flag_CXX=unsupported
16901 shrext_cmds=.dll
16902 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16903 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16904 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16905 $ECHO EXPORTS >> $output_objdir/$libname.def~
16906 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
16907 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16908 emximp -o $lib $output_objdir/$libname.def'
16909 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16910 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16911 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16912 $ECHO EXPORTS >> $output_objdir/$libname.def~
16913 prefix_cmds="$SED"~
16914 if test EXPORTS = "`$SED 1q $export_symbols`"; then
16915 prefix_cmds="$prefix_cmds -e 1d";
16916 fi~
16917 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
16918 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
16919 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16920 emximp -o $lib $output_objdir/$libname.def'
16921 old_archive_from_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
16922 enable_shared_with_static_runtimes_CXX=yes
16923 file_list_spec_CXX='@'
16924 ;;
16925
16926 dgux*)
16927 case $cc_basename in
16928 ec++*)
16929 # FIXME: insert proper C++ library support
16930 ld_shlibs_CXX=no
16931 ;;
16932 ghcx*)
16933 # Green Hills C++ Compiler
16934 # FIXME: insert proper C++ library support
16935 ld_shlibs_CXX=no
16936 ;;
16937 *)
16938 # FIXME: insert proper C++ library support
16939 ld_shlibs_CXX=no
16940 ;;
16941 esac
16942 ;;
16943
16944 freebsd2.*)
16945 # C++ shared libraries reported to be fairly broken before
16946 # switch to ELF
16947 ld_shlibs_CXX=no
16948 ;;
16949
16950 freebsd-elf*)
16951 archive_cmds_need_lc_CXX=no
16952 ;;
16953
16954 freebsd* | dragonfly* | midnightbsd*)
16955 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16956 # conventions
16957 ld_shlibs_CXX=yes
16958 ;;
16959
16960 haiku*)
16961 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16962 link_all_deplibs_CXX=no
16963 ;;
16964
16965 hpux9*)
16966 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
16967 hardcode_libdir_separator_CXX=:
16968 export_dynamic_flag_spec_CXX='$wl-E'
16969 hardcode_direct_CXX=yes
16970 hardcode_minus_L_CXX=yes # Not in the search PATH,
16971 # but as the default
16972 # location of the library.
16973
16974 case $cc_basename in
16975 CC*)
16976 # FIXME: insert proper C++ library support
16977 ld_shlibs_CXX=no
16978 ;;
16979 aCC*)
16980 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
16981 # Commands to make compiler produce verbose output that lists
16982 # what "hidden" libraries, object files and flags are used when
16983 # linking a shared library.
16984 #
16985 # There doesn't appear to be a way to prevent this compiler from
16986 # explicitly linking system object files so we need to strip them
16987 # from the output so that they don't get included in the library
16988 # dependencies.
16989 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "[-]L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
16990 ;;
16991 *)
16992 if test yes = "$GXX"; then
16993 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
16994 else
16995 # FIXME: insert proper C++ library support
16996 ld_shlibs_CXX=no
16997 fi
16998 ;;
16999 esac
17000 ;;
17001
17002 hpux10*|hpux11*)
17003 if test no = "$with_gnu_ld"; then
17004 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
17005 hardcode_libdir_separator_CXX=:
17006
17007 case $host_cpu in
17008 hppa*64*|ia64*)
17009 ;;
17010 *)
17011 export_dynamic_flag_spec_CXX='$wl-E'
17012 ;;
17013 esac
17014 fi
17015 case $host_cpu in
17016 hppa*64*|ia64*)
17017 hardcode_direct_CXX=no
17018 hardcode_shlibpath_var_CXX=no
17019 ;;
17020 *)
17021 hardcode_direct_CXX=yes
17022 hardcode_direct_absolute_CXX=yes
17023 hardcode_minus_L_CXX=yes # Not in the search PATH,
17024 # but as the default
17025 # location of the library.
17026 ;;
17027 esac
17028
17029 case $cc_basename in
17030 CC*)
17031 # FIXME: insert proper C++ library support
17032 ld_shlibs_CXX=no
17033 ;;
17034 aCC*)
17035 case $host_cpu in
17036 hppa*64*)
17037 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17038 ;;
17039 ia64*)
17040 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17041 ;;
17042 *)
17043 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17044 ;;
17045 esac
17046 # Commands to make compiler produce verbose output that lists
17047 # what "hidden" libraries, object files and flags are used when
17048 # linking a shared library.
17049 #
17050 # There doesn't appear to be a way to prevent this compiler from
17051 # explicitly linking system object files so we need to strip them
17052 # from the output so that they don't get included in the library
17053 # dependencies.
17054 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP " [-]L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
17055 ;;
17056 *)
17057 if test yes = "$GXX"; then
17058 if test no = "$with_gnu_ld"; then
17059 case $host_cpu in
17060 hppa*64*)
17061 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17062 ;;
17063 ia64*)
17064 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17065 ;;
17066 *)
17067 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17068 ;;
17069 esac
17070 fi
17071 else
17072 # FIXME: insert proper C++ library support
17073 ld_shlibs_CXX=no
17074 fi
17075 ;;
17076 esac
17077 ;;
17078
17079 interix[3-9]*)
17080 hardcode_direct_CXX=no
17081 hardcode_shlibpath_var_CXX=no
17082 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
17083 export_dynamic_flag_spec_CXX='$wl-E'
17084 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17085 # Instead, shared libraries are loaded at an image base (0x10000000 by
17086 # default) and relocated if they conflict, which is a slow very memory
17087 # consuming and fragmenting process. To avoid this, we pick a random,
17088 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17089 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17090 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17091 archive_expsym_cmds_CXX='$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'
17092 ;;
17093 irix5* | irix6*)
17094 case $cc_basename in
17095 CC*)
17096 # SGI C++
17097 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
17098
17099 # Archives containing C++ object files must be created using
17100 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
17101 # necessary to make sure instantiated templates are included
17102 # in the archive.
17103 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
17104 ;;
17105 *)
17106 if test yes = "$GXX"; then
17107 if test no = "$with_gnu_ld"; then
17108 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
17109 else
17110 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
17111 fi
17112 fi
17113 link_all_deplibs_CXX=yes
17114 ;;
17115 esac
17116 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
17117 hardcode_libdir_separator_CXX=:
17118 inherit_rpath_CXX=yes
17119 ;;
17120
17121 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17122 case $cc_basename in
17123 KCC*)
17124 # Kuck and Associates, Inc. (KAI) C++ Compiler
17125
17126 # KCC will only create a shared library if the output file
17127 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17128 # to its proper name (with version) after linking.
17129 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
17130 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib'
17131 # Commands to make compiler produce verbose output that lists
17132 # what "hidden" libraries, object files and flags are used when
17133 # linking a shared library.
17134 #
17135 # There doesn't appear to be a way to prevent this compiler from
17136 # explicitly linking system object files so we need to strip them
17137 # from the output so that they don't get included in the library
17138 # dependencies.
17139 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
17140
17141 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
17142 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
17143
17144 # Archives containing C++ object files must be created using
17145 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17146 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17147 ;;
17148 icpc* | ecpc* )
17149 # Intel C++
17150 with_gnu_ld=yes
17151 # version 8.0 and above of icpc choke on multiply defined symbols
17152 # if we add $predep_objects and $postdep_objects, however 7.1 and
17153 # earlier do not add the objects themselves.
17154 case `$CC -V 2>&1` in
17155 *"Version 7."*)
17156 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
17157 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
17158 ;;
17159 *) # Version 8.0 or newer
17160 tmp_idyn=
17161 case $host_cpu in
17162 ia64*) tmp_idyn=' -i_dynamic';;
17163 esac
17164 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17165 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
17166 ;;
17167 esac
17168 archive_cmds_need_lc_CXX=no
17169 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
17170 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
17171 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
17172 ;;
17173 pgCC* | pgcpp*)
17174 # Portland Group C++ compiler
17175 case `$CC -V` in
17176 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
17177 prelink_cmds_CXX='tpldir=Template.dir~
17178 rm -rf $tpldir~
17179 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
17180 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
17181 old_archive_cmds_CXX='tpldir=Template.dir~
17182 rm -rf $tpldir~
17183 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
17184 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
17185 $RANLIB $oldlib'
17186 archive_cmds_CXX='tpldir=Template.dir~
17187 rm -rf $tpldir~
17188 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
17189 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
17190 archive_expsym_cmds_CXX='tpldir=Template.dir~
17191 rm -rf $tpldir~
17192 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
17193 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
17194 ;;
17195 *) # Version 6 and above use weak symbols
17196 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
17197 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
17198 ;;
17199 esac
17200
17201 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
17202 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
17203 whole_archive_flag_spec_CXX='$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'
17204 ;;
17205 cxx*)
17206 # Compaq C++
17207 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
17208 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols'
17209
17210 runpath_var=LD_RUN_PATH
17211 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17212 hardcode_libdir_separator_CXX=:
17213
17214 # Commands to make compiler produce verbose output that lists
17215 # what "hidden" libraries, object files and flags are used when
17216 # linking a shared library.
17217 #
17218 # There doesn't appear to be a way to prevent this compiler from
17219 # explicitly linking system object files so we need to strip them
17220 # from the output so that they don't get included in the library
17221 # dependencies.
17222 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
17223 ;;
17224 xl* | mpixl* | bgxl*)
17225 # IBM XL 8.0 on PPC, with GNU ld
17226 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
17227 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
17228 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17229 if test yes = "$supports_anon_versioning"; then
17230 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
17231 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17232 echo "local: *; };" >> $output_objdir/$libname.ver~
17233 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
17234 fi
17235 ;;
17236 *)
17237 case `$CC -V 2>&1 | $SED 5q` in
17238 *Sun\ C*)
17239 # Sun C++ 5.9
17240 no_undefined_flag_CXX=' -zdefs'
17241 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17242 archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols'
17243 hardcode_libdir_flag_spec_CXX='-R$libdir'
17244 whole_archive_flag_spec_CXX='$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'
17245 compiler_needs_object_CXX=yes
17246
17247 # Not sure whether something based on
17248 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
17249 # would be better.
17250 output_verbose_link_cmd='func_echo_all'
17251
17252 # Archives containing C++ object files must be created using
17253 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17254 # necessary to make sure instantiated templates are included
17255 # in the archive.
17256 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17257 ;;
17258 esac
17259 ;;
17260 esac
17261 ;;
17262
17263 lynxos*)
17264 # FIXME: insert proper C++ library support
17265 ld_shlibs_CXX=no
17266 ;;
17267
17268 m88k*)
17269 # FIXME: insert proper C++ library support
17270 ld_shlibs_CXX=no
17271 ;;
17272
17273 mvs*)
17274 case $cc_basename in
17275 cxx*)
17276 # FIXME: insert proper C++ library support
17277 ld_shlibs_CXX=no
17278 ;;
17279 *)
17280 # FIXME: insert proper C++ library support
17281 ld_shlibs_CXX=no
17282 ;;
17283 esac
17284 ;;
17285
17286 *-mlibc)
17287 ld_shlibs_CXX=yes
17288 ;;
17289
17290 netbsd*)
17291 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17292 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
17293 wlarc=
17294 hardcode_libdir_flag_spec_CXX='-R$libdir'
17295 hardcode_direct_CXX=yes
17296 hardcode_shlibpath_var_CXX=no
17297 fi
17298 # Workaround some broken pre-1.5 toolchains
17299 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
17300 ;;
17301
17302 *nto* | *qnx*)
17303 ld_shlibs_CXX=yes
17304 ;;
17305
17306 openbsd*)
17307 if test -f /usr/libexec/ld.so; then
17308 hardcode_direct_CXX=yes
17309 hardcode_shlibpath_var_CXX=no
17310 hardcode_direct_absolute_CXX=yes
17311 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17312 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
17313 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
17314 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
17315 export_dynamic_flag_spec_CXX='$wl-E'
17316 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
17317 fi
17318 output_verbose_link_cmd=func_echo_all
17319 else
17320 ld_shlibs_CXX=no
17321 fi
17322 ;;
17323
17324 osf3* | osf4* | osf5*)
17325 case $cc_basename in
17326 KCC*)
17327 # Kuck and Associates, Inc. (KAI) C++ Compiler
17328
17329 # KCC will only create a shared library if the output file
17330 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17331 # to its proper name (with version) after linking.
17332 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
17333
17334 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
17335 hardcode_libdir_separator_CXX=:
17336
17337 # Archives containing C++ object files must be created using
17338 # the KAI C++ compiler.
17339 case $host in
17340 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
17341 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
17342 esac
17343 ;;
17344 RCC*)
17345 # Rational C++ 2.4.1
17346 # FIXME: insert proper C++ library support
17347 ld_shlibs_CXX=no
17348 ;;
17349 cxx*)
17350 case $host in
17351 osf3*)
17352 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
17353 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
17354 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
17355 ;;
17356 *)
17357 allow_undefined_flag_CXX=' -expect_unresolved \*'
17358 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
17359 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
17360 echo "-hidden">> $lib.exp~
17361 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~
17362 $RM $lib.exp'
17363 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17364 ;;
17365 esac
17366
17367 hardcode_libdir_separator_CXX=:
17368
17369 # Commands to make compiler produce verbose output that lists
17370 # what "hidden" libraries, object files and flags are used when
17371 # linking a shared library.
17372 #
17373 # There doesn't appear to be a way to prevent this compiler from
17374 # explicitly linking system object files so we need to strip them
17375 # from the output so that they don't get included in the library
17376 # dependencies.
17377 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
17378 ;;
17379 *)
17380 if test yes,no = "$GXX,$with_gnu_ld"; then
17381 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
17382 case $host in
17383 osf3*)
17384 archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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'
17385 ;;
17386 *)
17387 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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'
17388 ;;
17389 esac
17390
17391 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
17392 hardcode_libdir_separator_CXX=:
17393
17394 # Commands to make compiler produce verbose output that lists
17395 # what "hidden" libraries, object files and flags are used when
17396 # linking a shared library.
17397 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
17398
17399 else
17400 # FIXME: insert proper C++ library support
17401 ld_shlibs_CXX=no
17402 fi
17403 ;;
17404 esac
17405 ;;
17406
17407 psos*)
17408 # FIXME: insert proper C++ library support
17409 ld_shlibs_CXX=no
17410 ;;
17411
17412 serenity*)
17413 ;;
17414
17415 sunos4*)
17416 case $cc_basename in
17417 CC*)
17418 # Sun C++ 4.x
17419 # FIXME: insert proper C++ library support
17420 ld_shlibs_CXX=no
17421 ;;
17422 lcc*)
17423 # Lucid
17424 # FIXME: insert proper C++ library support
17425 ld_shlibs_CXX=no
17426 ;;
17427 *)
17428 # FIXME: insert proper C++ library support
17429 ld_shlibs_CXX=no
17430 ;;
17431 esac
17432 ;;
17433
17434 solaris*)
17435 case $cc_basename in
17436 CC* | sunCC*)
17437 # Sun C++ 4.2, 5.x and Centerline C++
17438 archive_cmds_need_lc_CXX=yes
17439 no_undefined_flag_CXX=' -zdefs'
17440 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17441 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17442 $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17443
17444 hardcode_libdir_flag_spec_CXX='-R$libdir'
17445 hardcode_shlibpath_var_CXX=no
17446 case $host_os in
17447 solaris2.[0-5] | solaris2.[0-5].*) ;;
17448 *)
17449 # The compiler driver will combine and reorder linker options,
17450 # but understands '-z linker_flag'.
17451 # Supported since Solaris 2.6 (maybe 2.5.1?)
17452 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
17453 ;;
17454 esac
17455 link_all_deplibs_CXX=yes
17456
17457 output_verbose_link_cmd='func_echo_all'
17458
17459 # Archives containing C++ object files must be created using
17460 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17461 # necessary to make sure instantiated templates are included
17462 # in the archive.
17463 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17464 ;;
17465 gcx*)
17466 # Green Hills C++ Compiler
17467 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
17468
17469 # The C++ compiler must be used to create the archive.
17470 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
17471 ;;
17472 *)
17473 # GNU C++ compiler with Solaris linker
17474 if test yes,no = "$GXX,$with_gnu_ld"; then
17475 no_undefined_flag_CXX=' $wl-z ${wl}defs'
17476 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
17477 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
17478 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17479 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17480
17481 # Commands to make compiler produce verbose output that lists
17482 # what "hidden" libraries, object files and flags are used when
17483 # linking a shared library.
17484 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
17485 else
17486 # g++ 2.7 appears to require '-G' NOT '-shared' on this
17487 # platform.
17488 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
17489 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17490 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17491
17492 # Commands to make compiler produce verbose output that lists
17493 # what "hidden" libraries, object files and flags are used when
17494 # linking a shared library.
17495 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
17496 fi
17497
17498 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
17499 case $host_os in
17500 solaris2.[0-5] | solaris2.[0-5].*) ;;
17501 *)
17502 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
17503 ;;
17504 esac
17505 fi
17506 ;;
17507 esac
17508 ;;
17509
17510 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17511 no_undefined_flag_CXX='$wl-z,text'
17512 archive_cmds_need_lc_CXX=no
17513 hardcode_shlibpath_var_CXX=no
17514 runpath_var='LD_RUN_PATH'
17515
17516 case $cc_basename in
17517 CC*)
17518 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17519 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17520 ;;
17521 *)
17522 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17523 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17524 ;;
17525 esac
17526 ;;
17527
17528 sysv5* | sco3.2v5* | sco5v6*)
17529 # Note: We CANNOT use -z defs as we might desire, because we do not
17530 # link with -lc, and that would cause any symbols used from libc to
17531 # always be unresolved, which means just about no library would
17532 # ever link correctly. If we're not using GNU ld we use -z text
17533 # though, which does catch some bad symbols but isn't as heavy-handed
17534 # as -z defs.
17535 no_undefined_flag_CXX='$wl-z,text'
17536 allow_undefined_flag_CXX='$wl-z,nodefs'
17537 archive_cmds_need_lc_CXX=no
17538 hardcode_shlibpath_var_CXX=no
17539 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
17540 hardcode_libdir_separator_CXX=':'
17541 link_all_deplibs_CXX=yes
17542 export_dynamic_flag_spec_CXX='$wl-Bexport'
17543 runpath_var='LD_RUN_PATH'
17544
17545 case $cc_basename in
17546 CC*)
17547 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17548 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17549 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
17550 '"$old_archive_cmds_CXX"
17551 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
17552 '"$reload_cmds_CXX"
17553 ;;
17554 *)
17555 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17556 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17557 ;;
17558 esac
17559 ;;
17560
17561 tandem*)
17562 case $cc_basename in
17563 NCC*)
17564 # NonStop-UX NCC 3.20
17565 # FIXME: insert proper C++ library support
17566 ld_shlibs_CXX=no
17567 ;;
17568 *)
17569 # FIXME: insert proper C++ library support
17570 ld_shlibs_CXX=no
17571 ;;
17572 esac
17573 ;;
17574
17575 vxworks*)
17576 # FIXME: insert proper C++ library support
17577 ld_shlibs_CXX=no
17578 ;;
17579
17580 *)
17581 # FIXME: insert proper C++ library support
17582 ld_shlibs_CXX=no
17583 ;;
17584 esac
17585
17586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17587 printf "%s\n" "$ld_shlibs_CXX" >&6; }
17588 test no = "$ld_shlibs_CXX" && can_build_shared=no
17589
17590 GCC_CXX=$GXX
17591 LD_CXX=$LD
17592
17593 ## CAVEAT EMPTOR:
17594 ## There is no encapsulation within the following macros, do not change
17595 ## the running order or otherwise move them around unless you know exactly
17596 ## what you are doing...
17597 # Dependencies to place before and after the object being linked:
17598 predep_objects_CXX=
17599 postdep_objects_CXX=
17600 predeps_CXX=
17601 postdeps_CXX=
17602 compiler_lib_search_path_CXX=
17603
17604 cat > conftest.$ac_ext <<_LT_EOF
17605 class Foo
17606 {
17607 public:
17608 Foo (void) { a = 0; }
17609 private:
17610 int a;
17611 };
17612 _LT_EOF
17613
17614
17615 _lt_libdeps_save_CFLAGS=$CFLAGS
17616 case "$CC $CFLAGS " in #(
17617 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
17618 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
17619 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
17620 esac
17621
17622 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17623 (eval $ac_compile) 2>&5
17624 ac_status=$?
17625 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17626 test $ac_status = 0; }; then
17627 # Parse the compiler output and extract the necessary
17628 # objects, libraries and library flags.
17629
17630 # Sentinel used to keep track of whether or not we are before
17631 # the conftest object file.
17632 pre_test_object_deps_done=no
17633
17634 for p in `eval "$output_verbose_link_cmd"`; do
17635 case $prev$p in
17636
17637 -L* | -R* | -l*)
17638 # Some compilers place space between "-{L,R,l}" and the path.
17639 # Remove the space.
17640 if test x-L = x"$p" ||
17641 test x-R = x"$p" ||
17642 test x-l = x"$p"; then
17643 prev=$p
17644 continue
17645 fi
17646
17647 # Expand the sysroot to ease extracting the directories later.
17648 if test -z "$prev"; then
17649 case $p in
17650 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
17651 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
17652 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
17653 esac
17654 fi
17655 case $p in
17656 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
17657 esac
17658 if test no = "$pre_test_object_deps_done"; then
17659 case $prev in
17660 -L | -R)
17661 # Internal compiler library paths should come after those
17662 # provided the user. The postdeps already come after the
17663 # user supplied libs so there is no need to process them.
17664 if test -z "$compiler_lib_search_path_CXX"; then
17665 compiler_lib_search_path_CXX=$prev$p
17666 else
17667 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
17668 fi
17669 ;;
17670 # The "-l" case would never come before the object being
17671 # linked, so don't bother handling this case.
17672 esac
17673 else
17674 if test -z "$postdeps_CXX"; then
17675 postdeps_CXX=$prev$p
17676 else
17677 postdeps_CXX="${postdeps_CXX} $prev$p"
17678 fi
17679 fi
17680 prev=
17681 ;;
17682
17683 *.lto.$objext) ;; # Ignore GCC LTO objects
17684 *.$objext)
17685 # This assumes that the test object file only shows up
17686 # once in the compiler output.
17687 if test "$p" = "conftest.$objext"; then
17688 pre_test_object_deps_done=yes
17689 continue
17690 fi
17691
17692 if test no = "$pre_test_object_deps_done"; then
17693 if test -z "$predep_objects_CXX"; then
17694 predep_objects_CXX=$p
17695 else
17696 predep_objects_CXX="$predep_objects_CXX $p"
17697 fi
17698 else
17699 if test -z "$postdep_objects_CXX"; then
17700 postdep_objects_CXX=$p
17701 else
17702 postdep_objects_CXX="$postdep_objects_CXX $p"
17703 fi
17704 fi
17705 ;;
17706
17707 *) ;; # Ignore the rest.
17708
17709 esac
17710 done
17711
17712 # Clean up.
17713 rm -f a.out a.exe
17714 else
17715 echo "libtool.m4: error: problem compiling CXX test program"
17716 fi
17717
17718 $RM -f confest.$objext
17719 CFLAGS=$_lt_libdeps_save_CFLAGS
17720
17721 # PORTME: override above test on systems where it is broken
17722 case $host_os in
17723 interix[3-9]*)
17724 # Interix 3.5 installs completely hosed .la files for C++, so rather than
17725 # hack all around it, let's just trust "g++" to DTRT.
17726 predep_objects_CXX=
17727 postdep_objects_CXX=
17728 postdeps_CXX=
17729 ;;
17730 esac
17731
17732
17733 case " $postdeps_CXX " in
17734 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
17735 esac
17736 compiler_lib_search_dirs_CXX=
17737 if test -n "${compiler_lib_search_path_CXX}"; then
17738 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
17739 fi
17740
17741
17742
17743
17744
17745
17746
17747
17748
17749
17750
17751
17752
17753
17754
17755
17756
17757
17758
17759
17760
17761
17762
17763
17764
17765
17766
17767
17768
17769
17770
17771 lt_prog_compiler_wl_CXX=
17772 lt_prog_compiler_pic_CXX=
17773 lt_prog_compiler_static_CXX=
17774
17775
17776 # C++ specific cases for pic, static, wl, etc.
17777 if test yes = "$GXX"; then
17778 lt_prog_compiler_wl_CXX='-Wl,'
17779 lt_prog_compiler_static_CXX='-static'
17780
17781 case $host_os in
17782 aix*)
17783 # All AIX code is PIC.
17784 if test ia64 = "$host_cpu"; then
17785 # AIX 5 now supports IA64 processor
17786 lt_prog_compiler_static_CXX='-Bstatic'
17787 fi
17788 lt_prog_compiler_pic_CXX='-fPIC'
17789 ;;
17790
17791 amigaos*)
17792 case $host_cpu in
17793 powerpc)
17794 # see comment about AmigaOS4 .so support
17795 lt_prog_compiler_pic_CXX='-fPIC'
17796 ;;
17797 m68k)
17798 # FIXME: we need at least 68020 code to build shared libraries, but
17799 # adding the '-m68020' flag to GCC prevents building anything better,
17800 # like '-m68040'.
17801 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
17802 ;;
17803 esac
17804 ;;
17805
17806 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17807 # PIC is the default for these OSes.
17808 ;;
17809 mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
17810 # This hack is so that the source file can tell whether it is being
17811 # built for inclusion in a dll (and should export symbols for example).
17812 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17813 # (--disable-auto-import) libraries
17814 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17815 case $host_os in
17816 os2*)
17817 lt_prog_compiler_static_CXX='$wl-static'
17818 ;;
17819 esac
17820 ;;
17821 darwin* | rhapsody*)
17822 # PIC is the default on this platform
17823 # Common symbols not allowed in MH_DYLIB files
17824 lt_prog_compiler_pic_CXX='-fno-common'
17825 ;;
17826 *djgpp*)
17827 # DJGPP does not support shared libraries at all
17828 lt_prog_compiler_pic_CXX=
17829 ;;
17830 haiku*)
17831 # PIC is the default for Haiku.
17832 # The "-static" flag exists, but is broken.
17833 lt_prog_compiler_static_CXX=
17834 ;;
17835 interix[3-9]*)
17836 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17837 # Instead, we relocate shared libraries at runtime.
17838 ;;
17839 sysv4*MP*)
17840 if test -d /usr/nec; then
17841 lt_prog_compiler_pic_CXX=-Kconform_pic
17842 fi
17843 ;;
17844 hpux*)
17845 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17846 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
17847 # sets the default TLS model and affects inlining.
17848 case $host_cpu in
17849 hppa*64*)
17850 ;;
17851 *)
17852 lt_prog_compiler_pic_CXX='-fPIC'
17853 ;;
17854 esac
17855 ;;
17856 *qnx* | *nto*)
17857 # QNX uses GNU C++, but need to define -shared option too, otherwise
17858 # it will coredump.
17859 lt_prog_compiler_pic_CXX='-fPIC -shared'
17860 ;;
17861 *)
17862 lt_prog_compiler_pic_CXX='-fPIC'
17863 ;;
17864 esac
17865 else
17866 case $host_os in
17867 aix[4-9]*)
17868 # All AIX code is PIC.
17869 if test ia64 = "$host_cpu"; then
17870 # AIX 5 now supports IA64 processor
17871 lt_prog_compiler_static_CXX='-Bstatic'
17872 else
17873 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
17874 fi
17875 ;;
17876 chorus*)
17877 case $cc_basename in
17878 cxch68*)
17879 # Green Hills C++ Compiler
17880 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
17881 ;;
17882 esac
17883 ;;
17884 mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
17885 # This hack is so that the source file can tell whether it is being
17886 # built for inclusion in a dll (and should export symbols for example).
17887 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17888 ;;
17889 dgux*)
17890 case $cc_basename in
17891 ec++*)
17892 lt_prog_compiler_pic_CXX='-KPIC'
17893 ;;
17894 ghcx*)
17895 # Green Hills C++ Compiler
17896 lt_prog_compiler_pic_CXX='-pic'
17897 ;;
17898 *)
17899 ;;
17900 esac
17901 ;;
17902 freebsd* | dragonfly* | midnightbsd*)
17903 # FreeBSD uses GNU C++
17904 ;;
17905 hpux9* | hpux10* | hpux11*)
17906 case $cc_basename in
17907 CC*)
17908 lt_prog_compiler_wl_CXX='-Wl,'
17909 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
17910 if test ia64 != "$host_cpu"; then
17911 lt_prog_compiler_pic_CXX='+Z'
17912 fi
17913 ;;
17914 aCC*)
17915 lt_prog_compiler_wl_CXX='-Wl,'
17916 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
17917 case $host_cpu in
17918 hppa*64*|ia64*)
17919 # +Z the default
17920 ;;
17921 *)
17922 lt_prog_compiler_pic_CXX='+Z'
17923 ;;
17924 esac
17925 ;;
17926 *)
17927 ;;
17928 esac
17929 ;;
17930 interix*)
17931 # This is c89, which is MS Visual C++ (no shared libs)
17932 # Anyone wants to do a port?
17933 ;;
17934 irix5* | irix6* | nonstopux*)
17935 case $cc_basename in
17936 CC*)
17937 lt_prog_compiler_wl_CXX='-Wl,'
17938 lt_prog_compiler_static_CXX='-non_shared'
17939 # CC pic flag -KPIC is the default.
17940 ;;
17941 *)
17942 ;;
17943 esac
17944 ;;
17945 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17946 case $cc_basename in
17947 KCC*)
17948 # KAI C++ Compiler
17949 lt_prog_compiler_wl_CXX='--backend -Wl,'
17950 lt_prog_compiler_pic_CXX='-fPIC'
17951 ;;
17952 ecpc* )
17953 # old Intel C++ for x86_64, which still supported -KPIC.
17954 lt_prog_compiler_wl_CXX='-Wl,'
17955 lt_prog_compiler_pic_CXX='-KPIC'
17956 lt_prog_compiler_static_CXX='-static'
17957 ;;
17958 icpc* )
17959 # Intel C++, used to be incompatible with GCC.
17960 # ICC 10 doesn't accept -KPIC any more.
17961 lt_prog_compiler_wl_CXX='-Wl,'
17962 lt_prog_compiler_pic_CXX='-fPIC'
17963 lt_prog_compiler_static_CXX='-static'
17964 ;;
17965 pgCC* | pgcpp*)
17966 # Portland Group C++ compiler
17967 lt_prog_compiler_wl_CXX='-Wl,'
17968 lt_prog_compiler_pic_CXX='-fpic'
17969 lt_prog_compiler_static_CXX='-Bstatic'
17970 ;;
17971 cxx*)
17972 # Compaq C++
17973 # Make sure the PIC flag is empty. It appears that all Alpha
17974 # Linux and Compaq Tru64 Unix objects are PIC.
17975 lt_prog_compiler_pic_CXX=
17976 lt_prog_compiler_static_CXX='-non_shared'
17977 ;;
17978 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
17979 # IBM XL 8.0, 9.0 on PPC and BlueGene
17980 lt_prog_compiler_wl_CXX='-Wl,'
17981 lt_prog_compiler_pic_CXX='-qpic'
17982 lt_prog_compiler_static_CXX='-qstaticlink'
17983 ;;
17984 *)
17985 case `$CC -V 2>&1 | $SED 5q` in
17986 *Sun\ C*)
17987 # Sun C++ 5.9
17988 lt_prog_compiler_pic_CXX='-KPIC'
17989 lt_prog_compiler_static_CXX='-Bstatic'
17990 lt_prog_compiler_wl_CXX='-Qoption ld '
17991 ;;
17992 esac
17993 ;;
17994 esac
17995 ;;
17996 lynxos*)
17997 ;;
17998 m88k*)
17999 ;;
18000 mvs*)
18001 case $cc_basename in
18002 cxx*)
18003 lt_prog_compiler_pic_CXX='-W c,exportall'
18004 ;;
18005 *)
18006 ;;
18007 esac
18008 ;;
18009 netbsd* | netbsdelf*-gnu)
18010 ;;
18011 *-mlibc)
18012 ;;
18013 *qnx* | *nto*)
18014 # QNX uses GNU C++, but need to define -shared option too, otherwise
18015 # it will coredump.
18016 lt_prog_compiler_pic_CXX='-fPIC -shared'
18017 ;;
18018 osf3* | osf4* | osf5*)
18019 case $cc_basename in
18020 KCC*)
18021 lt_prog_compiler_wl_CXX='--backend -Wl,'
18022 ;;
18023 RCC*)
18024 # Rational C++ 2.4.1
18025 lt_prog_compiler_pic_CXX='-pic'
18026 ;;
18027 cxx*)
18028 # Digital/Compaq C++
18029 lt_prog_compiler_wl_CXX='-Wl,'
18030 # Make sure the PIC flag is empty. It appears that all Alpha
18031 # Linux and Compaq Tru64 Unix objects are PIC.
18032 lt_prog_compiler_pic_CXX=
18033 lt_prog_compiler_static_CXX='-non_shared'
18034 ;;
18035 *)
18036 ;;
18037 esac
18038 ;;
18039 psos*)
18040 ;;
18041 serenity*)
18042 ;;
18043 solaris*)
18044 case $cc_basename in
18045 CC* | sunCC*)
18046 # Sun C++ 4.2, 5.x and Centerline C++
18047 lt_prog_compiler_pic_CXX='-KPIC'
18048 lt_prog_compiler_static_CXX='-Bstatic'
18049 lt_prog_compiler_wl_CXX='-Qoption ld '
18050 ;;
18051 gcx*)
18052 # Green Hills C++ Compiler
18053 lt_prog_compiler_pic_CXX='-PIC'
18054 ;;
18055 *)
18056 ;;
18057 esac
18058 ;;
18059 sunos4*)
18060 case $cc_basename in
18061 CC*)
18062 # Sun C++ 4.x
18063 lt_prog_compiler_pic_CXX='-pic'
18064 lt_prog_compiler_static_CXX='-Bstatic'
18065 ;;
18066 lcc*)
18067 # Lucid
18068 lt_prog_compiler_pic_CXX='-pic'
18069 ;;
18070 *)
18071 ;;
18072 esac
18073 ;;
18074 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18075 case $cc_basename in
18076 CC*)
18077 lt_prog_compiler_wl_CXX='-Wl,'
18078 lt_prog_compiler_pic_CXX='-KPIC'
18079 lt_prog_compiler_static_CXX='-Bstatic'
18080 ;;
18081 esac
18082 ;;
18083 tandem*)
18084 case $cc_basename in
18085 NCC*)
18086 # NonStop-UX NCC 3.20
18087 lt_prog_compiler_pic_CXX='-KPIC'
18088 ;;
18089 *)
18090 ;;
18091 esac
18092 ;;
18093 vxworks*)
18094 ;;
18095 *)
18096 lt_prog_compiler_can_build_shared_CXX=no
18097 ;;
18098 esac
18099 fi
18100
18101 case $host_os in
18102 # For platforms that do not support PIC, -DPIC is meaningless:
18103 *djgpp*)
18104 lt_prog_compiler_pic_CXX=
18105 ;;
18106 *)
18107 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
18108 ;;
18109 esac
18110
18111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
18112 printf %s "checking for $compiler option to produce PIC... " >&6; }
18113 if test ${lt_cv_prog_compiler_pic_CXX+y}
18114 then :
18115 printf %s "(cached) " >&6
18116 else case e in #(
18117 e) lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX ;;
18118 esac
18119 fi
18120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
18121 printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
18122 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
18123
18124 #
18125 # Check to make sure the PIC flag actually works.
18126 #
18127 if test -n "$lt_prog_compiler_pic_CXX"; then
18128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18129 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
18130 if test ${lt_cv_prog_compiler_pic_works_CXX+y}
18131 then :
18132 printf %s "(cached) " >&6
18133 else case e in #(
18134 e) lt_cv_prog_compiler_pic_works_CXX=no
18135 ac_outfile=conftest.$ac_objext
18136 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18137 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
18138 # Insert the option either (1) after the last *FLAGS variable, or
18139 # (2) before a word containing "conftest.", or (3) at the end.
18140 # Note that $ac_compile itself does not contain backslashes and begins
18141 # with a dollar sign (not a hyphen), so the echo should work correctly.
18142 # The option is referenced via a variable to avoid confusing sed.
18143 lt_compile=`echo "$ac_compile" | $SED \
18144 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18145 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18146 -e 's:$: $lt_compiler_flag:'`
18147 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18148 (eval "$lt_compile" 2>conftest.err)
18149 ac_status=$?
18150 cat conftest.err >&5
18151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18152 if (exit $ac_status) && test -s "$ac_outfile"; then
18153 # The compiler can only warn and ignore the option if not recognized
18154 # So say no if there are warnings other than the usual output.
18155 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
18156 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18157 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18158 lt_cv_prog_compiler_pic_works_CXX=yes
18159 fi
18160 fi
18161 $RM conftest*
18162 ;;
18163 esac
18164 fi
18165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
18166 printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
18167
18168 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
18169 case $lt_prog_compiler_pic_CXX in
18170 "" | " "*) ;;
18171 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18172 esac
18173 else
18174 lt_prog_compiler_pic_CXX=
18175 lt_prog_compiler_can_build_shared_CXX=no
18176 fi
18177
18178 fi
18179
18180
18181
18182
18183
18184 #
18185 # Check to make sure the static flag actually works.
18186 #
18187 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
18188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18189 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
18190 if test ${lt_cv_prog_compiler_static_works_CXX+y}
18191 then :
18192 printf %s "(cached) " >&6
18193 else case e in #(
18194 e) lt_cv_prog_compiler_static_works_CXX=no
18195 save_LDFLAGS=$LDFLAGS
18196 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18197 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18198 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18199 # The linker can only warn and ignore the option if not recognized
18200 # So say no if there are warnings
18201 if test -s conftest.err; then
18202 # Append any errors to the config.log.
18203 cat conftest.err 1>&5
18204 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
18205 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18206 if diff conftest.exp conftest.er2 >/dev/null; then
18207 lt_cv_prog_compiler_static_works_CXX=yes
18208 fi
18209 else
18210 lt_cv_prog_compiler_static_works_CXX=yes
18211 fi
18212 fi
18213 $RM -r conftest*
18214 LDFLAGS=$save_LDFLAGS
18215 ;;
18216 esac
18217 fi
18218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
18219 printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
18220
18221 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
18222 :
18223 else
18224 lt_prog_compiler_static_CXX=
18225 fi
18226
18227
18228
18229
18230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18231 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18232 if test ${lt_cv_prog_compiler_c_o_CXX+y}
18233 then :
18234 printf %s "(cached) " >&6
18235 else case e in #(
18236 e) lt_cv_prog_compiler_c_o_CXX=no
18237 $RM -r conftest 2>/dev/null
18238 mkdir conftest
18239 cd conftest
18240 mkdir out
18241 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18242
18243 lt_compiler_flag="-o out/conftest2.$ac_objext"
18244 # Insert the option either (1) after the last *FLAGS variable, or
18245 # (2) before a word containing "conftest.", or (3) at the end.
18246 # Note that $ac_compile itself does not contain backslashes and begins
18247 # with a dollar sign (not a hyphen), so the echo should work correctly.
18248 lt_compile=`echo "$ac_compile" | $SED \
18249 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18250 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18251 -e 's:$: $lt_compiler_flag:'`
18252 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18253 (eval "$lt_compile" 2>out/conftest.err)
18254 ac_status=$?
18255 cat out/conftest.err >&5
18256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18257 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18258 then
18259 # The compiler can only warn and ignore the option if not recognized
18260 # So say no if there are warnings
18261 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18262 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18263 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18264 lt_cv_prog_compiler_c_o_CXX=yes
18265 fi
18266 fi
18267 chmod u+w . 2>&5
18268 $RM conftest*
18269 # SGI C++ compiler will create directory out/ii_files/ for
18270 # template instantiation
18271 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18272 $RM out/* && rmdir out
18273 cd ..
18274 $RM -r conftest
18275 $RM conftest*
18276 ;;
18277 esac
18278 fi
18279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18280 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18281
18282
18283
18284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18285 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18286 if test ${lt_cv_prog_compiler_c_o_CXX+y}
18287 then :
18288 printf %s "(cached) " >&6
18289 else case e in #(
18290 e) lt_cv_prog_compiler_c_o_CXX=no
18291 $RM -r conftest 2>/dev/null
18292 mkdir conftest
18293 cd conftest
18294 mkdir out
18295 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18296
18297 lt_compiler_flag="-o out/conftest2.$ac_objext"
18298 # Insert the option either (1) after the last *FLAGS variable, or
18299 # (2) before a word containing "conftest.", or (3) at the end.
18300 # Note that $ac_compile itself does not contain backslashes and begins
18301 # with a dollar sign (not a hyphen), so the echo should work correctly.
18302 lt_compile=`echo "$ac_compile" | $SED \
18303 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18304 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18305 -e 's:$: $lt_compiler_flag:'`
18306 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18307 (eval "$lt_compile" 2>out/conftest.err)
18308 ac_status=$?
18309 cat out/conftest.err >&5
18310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18311 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18312 then
18313 # The compiler can only warn and ignore the option if not recognized
18314 # So say no if there are warnings
18315 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18316 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18317 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18318 lt_cv_prog_compiler_c_o_CXX=yes
18319 fi
18320 fi
18321 chmod u+w . 2>&5
18322 $RM conftest*
18323 # SGI C++ compiler will create directory out/ii_files/ for
18324 # template instantiation
18325 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18326 $RM out/* && rmdir out
18327 cd ..
18328 $RM -r conftest
18329 $RM conftest*
18330 ;;
18331 esac
18332 fi
18333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18334 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18335
18336
18337
18338
18339 hard_links=nottested
18340 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
18341 # do not overwrite the value of need_locks provided by the user
18342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
18343 printf %s "checking if we can lock with hard links... " >&6; }
18344 hard_links=yes
18345 $RM conftest*
18346 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18347 touch conftest.a
18348 ln conftest.a conftest.b 2>&5 || hard_links=no
18349 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
18351 printf "%s\n" "$hard_links" >&6; }
18352 if test no = "$hard_links"; then
18353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
18354 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
18355 need_locks=warn
18356 fi
18357 else
18358 need_locks=no
18359 fi
18360
18361
18362
18363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18364 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18365
18366 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18367 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
18368 case $host_os in
18369 aix[4-9]*)
18370 # If we're using GNU nm, then we don't want the "-C" option.
18371 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
18372 # Without the "-l" option, or with the "-B" option, AIX nm treats
18373 # weak defined symbols like other global defined symbols, whereas
18374 # GNU nm marks them as "W".
18375 # While the 'weak' keyword is ignored in the Export File, we need
18376 # it in the Import File for the 'aix-soname' feature, so we have
18377 # to replace the "-B" option with "-P" for AIX nm.
18378 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
18379 export_symbols_cmds_CXX='$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'
18380 else
18381 export_symbols_cmds_CXX='`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'
18382 fi
18383 ;;
18384 pw32*)
18385 export_symbols_cmds_CXX=$ltdll_cmds
18386 ;;
18387 cygwin* | mingw* | windows* | cegcc*)
18388 case $cc_basename in
18389 cl* | icl*)
18390 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
18391 ;;
18392 *)
18393 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
18394 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
18395 ;;
18396 esac
18397 ;;
18398 *)
18399 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18400 ;;
18401 esac
18402
18403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18404 printf "%s\n" "$ld_shlibs_CXX" >&6; }
18405 test no = "$ld_shlibs_CXX" && can_build_shared=no
18406
18407 with_gnu_ld_CXX=$with_gnu_ld
18408
18409
18410
18411
18412
18413
18414 #
18415 # Do we need to explicitly link libc?
18416 #
18417 case "x$archive_cmds_need_lc_CXX" in
18418 x|xyes)
18419 # Assume -lc should be added
18420 archive_cmds_need_lc_CXX=yes
18421
18422 if test yes,yes = "$GCC,$enable_shared"; then
18423 case $archive_cmds_CXX in
18424 *'~'*)
18425 # FIXME: we may have to deal with multi-command sequences.
18426 ;;
18427 '$CC '*)
18428 # Test whether the compiler implicitly links with -lc since on some
18429 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18430 # to ld, don't add -lc before -lgcc.
18431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18432 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
18433 if test ${lt_cv_archive_cmds_need_lc_CXX+y}
18434 then :
18435 printf %s "(cached) " >&6
18436 else case e in #(
18437 e) $RM conftest*
18438 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18439
18440 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18441 (eval $ac_compile) 2>&5
18442 ac_status=$?
18443 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18444 test $ac_status = 0; } 2>conftest.err; then
18445 soname=conftest
18446 lib=conftest
18447 libobjs=conftest.$ac_objext
18448 deplibs=
18449 wl=$lt_prog_compiler_wl_CXX
18450 pic_flag=$lt_prog_compiler_pic_CXX
18451 compiler_flags=-v
18452 linker_flags=-v
18453 verstring=
18454 output_objdir=.
18455 libname=conftest
18456 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
18457 allow_undefined_flag_CXX=
18458 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18459 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18460 ac_status=$?
18461 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18462 test $ac_status = 0; }
18463 then
18464 lt_cv_archive_cmds_need_lc_CXX=no
18465 else
18466 lt_cv_archive_cmds_need_lc_CXX=yes
18467 fi
18468 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18469 else
18470 cat conftest.err 1>&5
18471 fi
18472 $RM conftest*
18473 ;;
18474 esac
18475 fi
18476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
18477 printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
18478 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
18479 ;;
18480 esac
18481 fi
18482 ;;
18483 esac
18484
18485
18486
18487
18488
18489
18490
18491
18492
18493
18494
18495
18496
18497
18498
18499
18500
18501
18502
18503
18504
18505
18506
18507
18508
18509
18510
18511
18512
18513
18514
18515
18516
18517
18518
18519
18520
18521
18522
18523
18524
18525
18526
18527
18528
18529
18530
18531
18532
18533
18534
18535
18536
18537
18538
18539
18540
18541
18542
18543
18544
18545
18546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18547 printf %s "checking dynamic linker characteristics... " >&6; }
18548
18549 library_names_spec=
18550 libname_spec='lib$name'
18551 soname_spec=
18552 shrext_cmds=.so
18553 postinstall_cmds=
18554 postuninstall_cmds=
18555 finish_cmds=
18556 finish_eval=
18557 shlibpath_var=
18558 shlibpath_overrides_runpath=unknown
18559 version_type=none
18560 dynamic_linker="$host_os ld.so"
18561 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18562 need_lib_prefix=unknown
18563 hardcode_into_libs=no
18564
18565 # when you set need_version to no, make sure it does not cause -set_version
18566 # flags to be left without arguments
18567 need_version=unknown
18568
18569
18570
18571 case $host_os in
18572 aix3*)
18573 version_type=linux # correct to gnu/linux during the next big refactor
18574 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
18575 shlibpath_var=LIBPATH
18576
18577 # AIX 3 has no versioning support, so we append a major version to the name.
18578 soname_spec='$libname$release$shared_ext$major'
18579 ;;
18580
18581 aix[4-9]*)
18582 version_type=linux # correct to gnu/linux during the next big refactor
18583 need_lib_prefix=no
18584 need_version=no
18585 hardcode_into_libs=yes
18586 if test ia64 = "$host_cpu"; then
18587 # AIX 5 supports IA64
18588 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
18589 shlibpath_var=LD_LIBRARY_PATH
18590 else
18591 # With GCC up to 2.95.x, collect2 would create an import file
18592 # for dependence libraries. The import file would start with
18593 # the line '#! .'. This would cause the generated library to
18594 # depend on '.', always an invalid library. This was fixed in
18595 # development snapshots of GCC prior to 3.0.
18596 case $host_os in
18597 aix4 | aix4.[01] | aix4.[01].*)
18598 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18599 echo ' yes '
18600 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
18601 :
18602 else
18603 can_build_shared=no
18604 fi
18605 ;;
18606 esac
18607 # Using Import Files as archive members, it is possible to support
18608 # filename-based versioning of shared library archives on AIX. While
18609 # this would work for both with and without runtime linking, it will
18610 # prevent static linking of such archives. So we do filename-based
18611 # shared library versioning with .so extension only, which is used
18612 # when both runtime linking and shared linking is enabled.
18613 # Unfortunately, runtime linking may impact performance, so we do
18614 # not want this to be the default eventually. Also, we use the
18615 # versioned .so libs for executables only if there is the -brtl
18616 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
18617 # To allow for filename-based versioning support, we need to create
18618 # libNAME.so.V as an archive file, containing:
18619 # *) an Import File, referring to the versioned filename of the
18620 # archive as well as the shared archive member, telling the
18621 # bitwidth (32 or 64) of that shared object, and providing the
18622 # list of exported symbols of that shared object, eventually
18623 # decorated with the 'weak' keyword
18624 # *) the shared object with the F_LOADONLY flag set, to really avoid
18625 # it being seen by the linker.
18626 # At run time we better use the real file rather than another symlink,
18627 # but for link time we create the symlink libNAME.so -> libNAME.so.V
18628
18629 case $with_aix_soname,$aix_use_runtimelinking in
18630 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
18631 # soname into executable. Probably we can add versioning support to
18632 # collect2, so additional links can be useful in future.
18633 aix,yes) # traditional libtool
18634 dynamic_linker='AIX unversionable lib.so'
18635 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18636 # instead of lib<name>.a to let people know that these are not
18637 # typical AIX shared libraries.
18638 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18639 ;;
18640 aix,no) # traditional AIX only
18641 dynamic_linker='AIX lib.a(lib.so.V)'
18642 # We preserve .a as extension for shared libraries through AIX4.2
18643 # and later when we are not doing run time linking.
18644 library_names_spec='$libname$release.a $libname.a'
18645 soname_spec='$libname$release$shared_ext$major'
18646 ;;
18647 svr4,*) # full svr4 only
18648 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
18649 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
18650 # We do not specify a path in Import Files, so LIBPATH fires.
18651 shlibpath_overrides_runpath=yes
18652 ;;
18653 *,yes) # both, prefer svr4
18654 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
18655 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
18656 # unpreferred sharedlib libNAME.a needs extra handling
18657 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"'
18658 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"'
18659 # We do not specify a path in Import Files, so LIBPATH fires.
18660 shlibpath_overrides_runpath=yes
18661 ;;
18662 *,no) # both, prefer aix
18663 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
18664 library_names_spec='$libname$release.a $libname.a'
18665 soname_spec='$libname$release$shared_ext$major'
18666 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
18667 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)'
18668 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"'
18669 ;;
18670 esac
18671 shlibpath_var=LIBPATH
18672 fi
18673 ;;
18674
18675 amigaos*)
18676 case $host_cpu in
18677 powerpc)
18678 # Since July 2007 AmigaOS4 officially supports .so libraries.
18679 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18680 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18681 ;;
18682 m68k)
18683 library_names_spec='$libname.ixlibrary $libname.a'
18684 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18685 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'
18686 ;;
18687 esac
18688 ;;
18689
18690 beos*)
18691 library_names_spec='$libname$shared_ext'
18692 dynamic_linker="$host_os ld.so"
18693 shlibpath_var=LIBRARY_PATH
18694 ;;
18695
18696 bsdi[45]*)
18697 version_type=linux # correct to gnu/linux during the next big refactor
18698 need_version=no
18699 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18700 soname_spec='$libname$release$shared_ext$major'
18701 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18702 shlibpath_var=LD_LIBRARY_PATH
18703 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18704 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18705 # the default ld.so.conf also contains /usr/contrib/lib and
18706 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18707 # libtool to hard-code these into programs
18708 ;;
18709
18710 cygwin* | mingw* | windows* | pw32* | cegcc*)
18711 version_type=windows
18712 shrext_cmds=.dll
18713 need_version=no
18714 need_lib_prefix=no
18715
18716 case $GCC,$cc_basename in
18717 yes,*)
18718 # gcc
18719 library_names_spec='$libname.dll.a'
18720 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18721 # If user builds GCC with multilib enabled,
18722 # it should just install on $(libdir)
18723 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
18724 if test xyes = x"$multilib"; then
18725 postinstall_cmds='base_file=`basename \$file`~
18726 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
18727 dldir=$destdir/`dirname \$dlpath`~
18728 $install_prog $dir/$dlname $destdir/$dlname~
18729 chmod a+x $destdir/$dlname~
18730 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18731 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
18732 fi'
18733 else
18734 postinstall_cmds='base_file=`basename \$file`~
18735 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
18736 dldir=$destdir/`dirname \$dlpath`~
18737 test -d \$dldir || mkdir -p \$dldir~
18738 $install_prog $dir/$dlname \$dldir/$dlname~
18739 chmod a+x \$dldir/$dlname~
18740 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18741 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18742 fi'
18743 fi
18744 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18745 dlpath=$dir/\$dldll~
18746 $RM \$dlpath'
18747 shlibpath_overrides_runpath=yes
18748
18749 case $host_os in
18750 cygwin*)
18751 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18752 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18753
18754 ;;
18755 mingw* | windows* | cegcc*)
18756 # MinGW DLLs use traditional 'lib' prefix
18757 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18758 ;;
18759 pw32*)
18760 # pw32 DLLs use 'pw' prefix rather than 'lib'
18761 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18762 ;;
18763 esac
18764 dynamic_linker='Win32 ld.exe'
18765 ;;
18766
18767 *,cl* | *,icl*)
18768 # Native MSVC or ICC
18769 libname_spec='$name'
18770 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18771 library_names_spec='$libname.dll.lib'
18772
18773 case $build_os in
18774 mingw* | windows*)
18775 sys_lib_search_path_spec=
18776 lt_save_ifs=$IFS
18777 IFS=';'
18778 for lt_path in $LIB
18779 do
18780 IFS=$lt_save_ifs
18781 # Let DOS variable expansion print the short 8.3 style file name.
18782 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
18783 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
18784 done
18785 IFS=$lt_save_ifs
18786 # Convert to MSYS style.
18787 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
18788 ;;
18789 cygwin*)
18790 # Convert to unix form, then to dos form, then back to unix form
18791 # but this time dos style (no spaces!) so that the unix form looks
18792 # like /cygdrive/c/PROGRA~1:/cygdr...
18793 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
18794 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
18795 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18796 ;;
18797 *)
18798 sys_lib_search_path_spec=$LIB
18799 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
18800 # It is most probably a Windows format PATH.
18801 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18802 else
18803 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18804 fi
18805 # FIXME: find the short name or the path components, as spaces are
18806 # common. (e.g. "Program Files" -> "PROGRA~1")
18807 ;;
18808 esac
18809
18810 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18811 postinstall_cmds='base_file=`basename \$file`~
18812 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
18813 dldir=$destdir/`dirname \$dlpath`~
18814 test -d \$dldir || mkdir -p \$dldir~
18815 $install_prog $dir/$dlname \$dldir/$dlname'
18816 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18817 dlpath=$dir/\$dldll~
18818 $RM \$dlpath'
18819 shlibpath_overrides_runpath=yes
18820 dynamic_linker='Win32 link.exe'
18821 ;;
18822
18823 *)
18824 # Assume MSVC and ICC wrapper
18825 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
18826 dynamic_linker='Win32 ld.exe'
18827 ;;
18828 esac
18829 # FIXME: first we should search . and the directory the executable is in
18830 shlibpath_var=PATH
18831 ;;
18832
18833 darwin* | rhapsody*)
18834 dynamic_linker="$host_os dyld"
18835 version_type=darwin
18836 need_lib_prefix=no
18837 need_version=no
18838 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
18839 soname_spec='$libname$release$major$shared_ext'
18840 shlibpath_overrides_runpath=yes
18841 shlibpath_var=DYLD_LIBRARY_PATH
18842 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18843
18844 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18845 ;;
18846
18847 dgux*)
18848 version_type=linux # correct to gnu/linux during the next big refactor
18849 need_lib_prefix=no
18850 need_version=no
18851 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18852 soname_spec='$libname$release$shared_ext$major'
18853 shlibpath_var=LD_LIBRARY_PATH
18854 ;;
18855
18856 freebsd* | dragonfly* | midnightbsd*)
18857 # DragonFly does not have aout. When/if they implement a new
18858 # versioning mechanism, adjust this.
18859 if test -x /usr/bin/objformat; then
18860 objformat=`/usr/bin/objformat`
18861 else
18862 case $host_os in
18863 freebsd[23].*) objformat=aout ;;
18864 *) objformat=elf ;;
18865 esac
18866 fi
18867 version_type=freebsd-$objformat
18868 case $version_type in
18869 freebsd-elf*)
18870 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18871 soname_spec='$libname$release$shared_ext$major'
18872 need_version=no
18873 need_lib_prefix=no
18874 ;;
18875 freebsd-*)
18876 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18877 need_version=yes
18878 ;;
18879 esac
18880 case $host_cpu in
18881 powerpc64)
18882 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
18883 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
18884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18885 /* end confdefs.h. */
18886 int test_pointer_size[sizeof (void *) - 5];
18887
18888 _ACEOF
18889 if ac_fn_cxx_try_compile "$LINENO"
18890 then :
18891 shlibpath_var=LD_LIBRARY_PATH
18892 else case e in #(
18893 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
18894 esac
18895 fi
18896 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18897 ;;
18898 *)
18899 shlibpath_var=LD_LIBRARY_PATH
18900 ;;
18901 esac
18902 case $host_os in
18903 freebsd2.*)
18904 shlibpath_overrides_runpath=yes
18905 ;;
18906 freebsd3.[01]* | freebsdelf3.[01]*)
18907 shlibpath_overrides_runpath=yes
18908 hardcode_into_libs=yes
18909 ;;
18910 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18911 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18912 shlibpath_overrides_runpath=no
18913 hardcode_into_libs=yes
18914 ;;
18915 *) # from 4.6 on, and DragonFly
18916 shlibpath_overrides_runpath=yes
18917 hardcode_into_libs=yes
18918 ;;
18919 esac
18920 ;;
18921
18922 haiku*)
18923 version_type=linux # correct to gnu/linux during the next big refactor
18924 need_lib_prefix=no
18925 need_version=no
18926 dynamic_linker="$host_os runtime_loader"
18927 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18928 soname_spec='$libname$release$shared_ext$major'
18929 shlibpath_var=LIBRARY_PATH
18930 shlibpath_overrides_runpath=no
18931 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
18932 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
18933 hardcode_into_libs=no
18934 ;;
18935
18936 hpux9* | hpux10* | hpux11*)
18937 # Give a soname corresponding to the major version so that dld.sl refuses to
18938 # link against other versions.
18939 version_type=sunos
18940 need_lib_prefix=no
18941 need_version=no
18942 case $host_cpu in
18943 ia64*)
18944 shrext_cmds='.so'
18945 hardcode_into_libs=yes
18946 dynamic_linker="$host_os dld.so"
18947 shlibpath_var=LD_LIBRARY_PATH
18948 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18949 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18950 soname_spec='$libname$release$shared_ext$major'
18951 if test 32 = "$HPUX_IA64_MODE"; then
18952 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18953 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
18954 else
18955 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18956 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
18957 fi
18958 ;;
18959 hppa*64*)
18960 shrext_cmds='.sl'
18961 hardcode_into_libs=yes
18962 dynamic_linker="$host_os dld.sl"
18963 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18964 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18965 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18966 soname_spec='$libname$release$shared_ext$major'
18967 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18968 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18969 ;;
18970 *)
18971 shrext_cmds='.sl'
18972 dynamic_linker="$host_os dld.sl"
18973 shlibpath_var=SHLIB_PATH
18974 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18975 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18976 soname_spec='$libname$release$shared_ext$major'
18977 ;;
18978 esac
18979 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18980 postinstall_cmds='chmod 555 $lib'
18981 # or fails outright, so override atomically:
18982 install_override_mode=555
18983 ;;
18984
18985 interix[3-9]*)
18986 version_type=linux # correct to gnu/linux during the next big refactor
18987 need_lib_prefix=no
18988 need_version=no
18989 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18990 soname_spec='$libname$release$shared_ext$major'
18991 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18992 shlibpath_var=LD_LIBRARY_PATH
18993 shlibpath_overrides_runpath=no
18994 hardcode_into_libs=yes
18995 ;;
18996
18997 irix5* | irix6* | nonstopux*)
18998 case $host_os in
18999 nonstopux*) version_type=nonstopux ;;
19000 *)
19001 if test yes = "$lt_cv_prog_gnu_ld"; then
19002 version_type=linux # correct to gnu/linux during the next big refactor
19003 else
19004 version_type=irix
19005 fi ;;
19006 esac
19007 need_lib_prefix=no
19008 need_version=no
19009 soname_spec='$libname$release$shared_ext$major'
19010 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
19011 case $host_os in
19012 irix5* | nonstopux*)
19013 libsuff= shlibsuff=
19014 ;;
19015 *)
19016 case $LD in # libtool.m4 will add one of these switches to LD
19017 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19018 libsuff= shlibsuff= libmagic=32-bit;;
19019 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19020 libsuff=32 shlibsuff=N32 libmagic=N32;;
19021 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19022 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19023 *) libsuff= shlibsuff= libmagic=never-match;;
19024 esac
19025 ;;
19026 esac
19027 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19028 shlibpath_overrides_runpath=no
19029 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
19030 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
19031 hardcode_into_libs=yes
19032 ;;
19033
19034 # No shared lib support for Linux oldld, aout, or coff.
19035 linux*oldld* | linux*aout* | linux*coff*)
19036 dynamic_linker=no
19037 ;;
19038
19039 linux*android*)
19040 version_type=none # Android doesn't support versioned libraries.
19041 need_lib_prefix=no
19042 need_version=no
19043 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
19044 soname_spec='$libname$release$shared_ext'
19045 finish_cmds=
19046 shlibpath_var=LD_LIBRARY_PATH
19047 shlibpath_overrides_runpath=yes
19048
19049 # This implies no fast_install, which is unacceptable.
19050 # Some rework will be needed to allow for fast_install
19051 # before this can be enabled.
19052 hardcode_into_libs=yes
19053
19054 dynamic_linker='Android linker'
19055 # -rpath works at least for libraries that are not overridden by
19056 # libraries installed in system locations.
19057 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
19058 ;;
19059
19060 # This must be glibc/ELF.
19061 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
19062 version_type=linux # correct to gnu/linux during the next big refactor
19063 need_lib_prefix=no
19064 need_version=no
19065 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19066 soname_spec='$libname$release$shared_ext$major'
19067 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19068 shlibpath_var=LD_LIBRARY_PATH
19069 shlibpath_overrides_runpath=no
19070
19071 # Some binutils ld are patched to set DT_RUNPATH
19072 if test ${lt_cv_shlibpath_overrides_runpath+y}
19073 then :
19074 printf %s "(cached) " >&6
19075 else case e in #(
19076 e) lt_cv_shlibpath_overrides_runpath=no
19077 save_LDFLAGS=$LDFLAGS
19078 save_libdir=$libdir
19079 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
19080 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
19081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19082 /* end confdefs.h. */
19083
19084 int
19085 main (void)
19086 {
19087
19088 ;
19089 return 0;
19090 }
19091 _ACEOF
19092 if ac_fn_cxx_try_link "$LINENO"
19093 then :
19094 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
19095 then :
19096 lt_cv_shlibpath_overrides_runpath=yes
19097 fi
19098 fi
19099 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19100 conftest$ac_exeext conftest.$ac_ext
19101 LDFLAGS=$save_LDFLAGS
19102 libdir=$save_libdir
19103 ;;
19104 esac
19105 fi
19106
19107 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
19108
19109 # This implies no fast_install, which is unacceptable.
19110 # Some rework will be needed to allow for fast_install
19111 # before this can be enabled.
19112 hardcode_into_libs=yes
19113
19114 # Ideally, we could use ldconfig to report *all* directories which are
19115 # searched for libraries, however this is still not possible. Aside from not
19116 # being certain /sbin/ldconfig is available, command
19117 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
19118 # even though it is searched at run-time. Try to do the best guess by
19119 # appending ld.so.conf contents (and includes) to the search path.
19120 if test -f /etc/ld.so.conf; then
19121 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' ' '`
19122 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19123 fi
19124
19125 # We used to test for /lib/ld.so.1 and disable shared libraries on
19126 # powerpc, because MkLinux only supported shared libraries with the
19127 # GNU dynamic linker. Since this was broken with cross compilers,
19128 # most powerpc-linux boxes support dynamic linking these days and
19129 # people can always --disable-shared, the test was removed, and we
19130 # assume the GNU/Linux dynamic linker is in use.
19131 dynamic_linker='GNU/Linux ld.so'
19132 ;;
19133
19134 netbsdelf*-gnu)
19135 version_type=linux
19136 need_lib_prefix=no
19137 need_version=no
19138 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19139 soname_spec='$libname$release$shared_ext$major'
19140 shlibpath_var=LD_LIBRARY_PATH
19141 shlibpath_overrides_runpath=no
19142 hardcode_into_libs=yes
19143 dynamic_linker='NetBSD ld.elf_so'
19144 ;;
19145
19146 netbsd*)
19147 version_type=sunos
19148 need_lib_prefix=no
19149 need_version=no
19150 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19151 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
19152 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19153 dynamic_linker='NetBSD (a.out) ld.so'
19154 else
19155 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19156 soname_spec='$libname$release$shared_ext$major'
19157 dynamic_linker='NetBSD ld.elf_so'
19158 fi
19159 shlibpath_var=LD_LIBRARY_PATH
19160 shlibpath_overrides_runpath=yes
19161 hardcode_into_libs=yes
19162 ;;
19163
19164 *-mlibc)
19165 version_type=linux # correct to gnu/linux during the next big refactor
19166 need_lib_prefix=no
19167 need_version=no
19168 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19169 soname_spec='$libname$release$shared_ext$major'
19170 dynamic_linker='mlibc ld.so'
19171 shlibpath_var=LD_LIBRARY_PATH
19172 shlibpath_overrides_runpath=no
19173 hardcode_into_libs=yes
19174 ;;
19175
19176 newsos6)
19177 version_type=linux # correct to gnu/linux during the next big refactor
19178 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19179 shlibpath_var=LD_LIBRARY_PATH
19180 shlibpath_overrides_runpath=yes
19181 ;;
19182
19183 *nto* | *qnx*)
19184 version_type=qnx
19185 need_lib_prefix=no
19186 need_version=no
19187 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19188 soname_spec='$libname$release$shared_ext$major'
19189 shlibpath_var=LD_LIBRARY_PATH
19190 shlibpath_overrides_runpath=no
19191 hardcode_into_libs=yes
19192 dynamic_linker='ldqnx.so'
19193 ;;
19194
19195 openbsd*)
19196 version_type=sunos
19197 sys_lib_dlsearch_path_spec=/usr/lib
19198 need_lib_prefix=no
19199 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
19200 need_version=no
19201 else
19202 need_version=yes
19203 fi
19204 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
19205 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19206 shlibpath_var=LD_LIBRARY_PATH
19207 shlibpath_overrides_runpath=yes
19208 ;;
19209
19210 os2*)
19211 libname_spec='$name'
19212 version_type=windows
19213 shrext_cmds=.dll
19214 need_version=no
19215 need_lib_prefix=no
19216 # OS/2 can only load a DLL with a base name of 8 characters or less.
19217 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
19218 v=$($ECHO $release$versuffix | tr -d .-);
19219 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
19220 $ECHO $n$v`$shared_ext'
19221 library_names_spec='${libname}_dll.$libext'
19222 dynamic_linker='OS/2 ld.exe'
19223 shlibpath_var=BEGINLIBPATH
19224 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19225 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19226 postinstall_cmds='base_file=`basename \$file`~
19227 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
19228 dldir=$destdir/`dirname \$dlpath`~
19229 test -d \$dldir || mkdir -p \$dldir~
19230 $install_prog $dir/$dlname \$dldir/$dlname~
19231 chmod a+x \$dldir/$dlname~
19232 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19233 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19234 fi'
19235 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
19236 dlpath=$dir/\$dldll~
19237 $RM \$dlpath'
19238 ;;
19239
19240 osf3* | osf4* | osf5*)
19241 version_type=osf
19242 need_lib_prefix=no
19243 need_version=no
19244 soname_spec='$libname$release$shared_ext$major'
19245 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19246 shlibpath_var=LD_LIBRARY_PATH
19247 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19248 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19249 ;;
19250
19251 rdos*)
19252 dynamic_linker=no
19253 ;;
19254
19255 serenity*)
19256 version_type=linux # correct to gnu/linux during the next big refactor
19257 need_lib_prefix=no
19258 need_version=no
19259 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19260 soname_spec='$libname$release$shared_ext$major'
19261 shlibpath_var=LD_LIBRARY_PATH
19262 shlibpath_overrides_runpath=no
19263 dynamic_linker='SerenityOS LibELF'
19264 ;;
19265
19266 solaris*)
19267 version_type=linux # correct to gnu/linux during the next big refactor
19268 need_lib_prefix=no
19269 need_version=no
19270 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19271 soname_spec='$libname$release$shared_ext$major'
19272 shlibpath_var=LD_LIBRARY_PATH
19273 shlibpath_overrides_runpath=yes
19274 hardcode_into_libs=yes
19275 # ldd complains unless libraries are executable
19276 postinstall_cmds='chmod +x $lib'
19277 ;;
19278
19279 sunos4*)
19280 version_type=sunos
19281 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
19282 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19283 shlibpath_var=LD_LIBRARY_PATH
19284 shlibpath_overrides_runpath=yes
19285 if test yes = "$with_gnu_ld"; then
19286 need_lib_prefix=no
19287 fi
19288 need_version=yes
19289 ;;
19290
19291 sysv4 | sysv4.3*)
19292 version_type=linux # correct to gnu/linux during the next big refactor
19293 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19294 soname_spec='$libname$release$shared_ext$major'
19295 shlibpath_var=LD_LIBRARY_PATH
19296 case $host_vendor in
19297 sni)
19298 shlibpath_overrides_runpath=no
19299 need_lib_prefix=no
19300 runpath_var=LD_RUN_PATH
19301 ;;
19302 siemens)
19303 need_lib_prefix=no
19304 ;;
19305 motorola)
19306 need_lib_prefix=no
19307 need_version=no
19308 shlibpath_overrides_runpath=no
19309 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19310 ;;
19311 esac
19312 ;;
19313
19314 sysv4*MP*)
19315 if test -d /usr/nec; then
19316 version_type=linux # correct to gnu/linux during the next big refactor
19317 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
19318 soname_spec='$libname$shared_ext.$major'
19319 shlibpath_var=LD_LIBRARY_PATH
19320 fi
19321 ;;
19322
19323 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19324 version_type=sco
19325 need_lib_prefix=no
19326 need_version=no
19327 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
19328 soname_spec='$libname$release$shared_ext$major'
19329 shlibpath_var=LD_LIBRARY_PATH
19330 shlibpath_overrides_runpath=yes
19331 hardcode_into_libs=yes
19332 if test yes = "$with_gnu_ld"; then
19333 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19334 else
19335 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19336 case $host_os in
19337 sco3.2v5*)
19338 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19339 ;;
19340 esac
19341 fi
19342 sys_lib_dlsearch_path_spec='/usr/lib'
19343 ;;
19344
19345 tpf*)
19346 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
19347 version_type=linux # correct to gnu/linux during the next big refactor
19348 need_lib_prefix=no
19349 need_version=no
19350 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19351 shlibpath_var=LD_LIBRARY_PATH
19352 shlibpath_overrides_runpath=no
19353 hardcode_into_libs=yes
19354 ;;
19355
19356 uts4*)
19357 version_type=linux # correct to gnu/linux during the next big refactor
19358 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19359 soname_spec='$libname$release$shared_ext$major'
19360 shlibpath_var=LD_LIBRARY_PATH
19361 ;;
19362
19363 emscripten*)
19364 version_type=none
19365 need_lib_prefix=no
19366 need_version=no
19367 library_names_spec='$libname$release$shared_ext'
19368 soname_spec='$libname$release$shared_ext'
19369 finish_cmds=
19370 dynamic_linker="Emscripten linker"
19371 lt_prog_compiler_wl_CXX=
19372 lt_prog_compiler_pic_CXX=
19373 lt_prog_compiler_static_CXX=
19374
19375
19376 # C++ specific cases for pic, static, wl, etc.
19377 if test yes = "$GXX"; then
19378 lt_prog_compiler_wl_CXX='-Wl,'
19379 lt_prog_compiler_static_CXX='-static'
19380
19381 case $host_os in
19382 aix*)
19383 # All AIX code is PIC.
19384 if test ia64 = "$host_cpu"; then
19385 # AIX 5 now supports IA64 processor
19386 lt_prog_compiler_static_CXX='-Bstatic'
19387 fi
19388 lt_prog_compiler_pic_CXX='-fPIC'
19389 ;;
19390
19391 amigaos*)
19392 case $host_cpu in
19393 powerpc)
19394 # see comment about AmigaOS4 .so support
19395 lt_prog_compiler_pic_CXX='-fPIC'
19396 ;;
19397 m68k)
19398 # FIXME: we need at least 68020 code to build shared libraries, but
19399 # adding the '-m68020' flag to GCC prevents building anything better,
19400 # like '-m68040'.
19401 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19402 ;;
19403 esac
19404 ;;
19405
19406 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19407 # PIC is the default for these OSes.
19408 ;;
19409 mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
19410 # This hack is so that the source file can tell whether it is being
19411 # built for inclusion in a dll (and should export symbols for example).
19412 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19413 # (--disable-auto-import) libraries
19414 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19415 case $host_os in
19416 os2*)
19417 lt_prog_compiler_static_CXX='$wl-static'
19418 ;;
19419 esac
19420 ;;
19421 darwin* | rhapsody*)
19422 # PIC is the default on this platform
19423 # Common symbols not allowed in MH_DYLIB files
19424 lt_prog_compiler_pic_CXX='-fno-common'
19425 ;;
19426 *djgpp*)
19427 # DJGPP does not support shared libraries at all
19428 lt_prog_compiler_pic_CXX=
19429 ;;
19430 haiku*)
19431 # PIC is the default for Haiku.
19432 # The "-static" flag exists, but is broken.
19433 lt_prog_compiler_static_CXX=
19434 ;;
19435 interix[3-9]*)
19436 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19437 # Instead, we relocate shared libraries at runtime.
19438 ;;
19439 sysv4*MP*)
19440 if test -d /usr/nec; then
19441 lt_prog_compiler_pic_CXX=-Kconform_pic
19442 fi
19443 ;;
19444 hpux*)
19445 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19446 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19447 # sets the default TLS model and affects inlining.
19448 case $host_cpu in
19449 hppa*64*)
19450 ;;
19451 *)
19452 lt_prog_compiler_pic_CXX='-fPIC'
19453 ;;
19454 esac
19455 ;;
19456 *qnx* | *nto*)
19457 # QNX uses GNU C++, but need to define -shared option too, otherwise
19458 # it will coredump.
19459 lt_prog_compiler_pic_CXX='-fPIC -shared'
19460 ;;
19461 *)
19462 lt_prog_compiler_pic_CXX='-fPIC'
19463 ;;
19464 esac
19465 else
19466 case $host_os in
19467 aix[4-9]*)
19468 # All AIX code is PIC.
19469 if test ia64 = "$host_cpu"; then
19470 # AIX 5 now supports IA64 processor
19471 lt_prog_compiler_static_CXX='-Bstatic'
19472 else
19473 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19474 fi
19475 ;;
19476 chorus*)
19477 case $cc_basename in
19478 cxch68*)
19479 # Green Hills C++ Compiler
19480 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
19481 ;;
19482 esac
19483 ;;
19484 mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
19485 # This hack is so that the source file can tell whether it is being
19486 # built for inclusion in a dll (and should export symbols for example).
19487 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19488 ;;
19489 dgux*)
19490 case $cc_basename in
19491 ec++*)
19492 lt_prog_compiler_pic_CXX='-KPIC'
19493 ;;
19494 ghcx*)
19495 # Green Hills C++ Compiler
19496 lt_prog_compiler_pic_CXX='-pic'
19497 ;;
19498 *)
19499 ;;
19500 esac
19501 ;;
19502 freebsd* | dragonfly* | midnightbsd*)
19503 # FreeBSD uses GNU C++
19504 ;;
19505 hpux9* | hpux10* | hpux11*)
19506 case $cc_basename in
19507 CC*)
19508 lt_prog_compiler_wl_CXX='-Wl,'
19509 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
19510 if test ia64 != "$host_cpu"; then
19511 lt_prog_compiler_pic_CXX='+Z'
19512 fi
19513 ;;
19514 aCC*)
19515 lt_prog_compiler_wl_CXX='-Wl,'
19516 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
19517 case $host_cpu in
19518 hppa*64*|ia64*)
19519 # +Z the default
19520 ;;
19521 *)
19522 lt_prog_compiler_pic_CXX='+Z'
19523 ;;
19524 esac
19525 ;;
19526 *)
19527 ;;
19528 esac
19529 ;;
19530 interix*)
19531 # This is c89, which is MS Visual C++ (no shared libs)
19532 # Anyone wants to do a port?
19533 ;;
19534 irix5* | irix6* | nonstopux*)
19535 case $cc_basename in
19536 CC*)
19537 lt_prog_compiler_wl_CXX='-Wl,'
19538 lt_prog_compiler_static_CXX='-non_shared'
19539 # CC pic flag -KPIC is the default.
19540 ;;
19541 *)
19542 ;;
19543 esac
19544 ;;
19545 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
19546 case $cc_basename in
19547 KCC*)
19548 # KAI C++ Compiler
19549 lt_prog_compiler_wl_CXX='--backend -Wl,'
19550 lt_prog_compiler_pic_CXX='-fPIC'
19551 ;;
19552 ecpc* )
19553 # old Intel C++ for x86_64, which still supported -KPIC.
19554 lt_prog_compiler_wl_CXX='-Wl,'
19555 lt_prog_compiler_pic_CXX='-KPIC'
19556 lt_prog_compiler_static_CXX='-static'
19557 ;;
19558 icpc* )
19559 # Intel C++, used to be incompatible with GCC.
19560 # ICC 10 doesn't accept -KPIC any more.
19561 lt_prog_compiler_wl_CXX='-Wl,'
19562 lt_prog_compiler_pic_CXX='-fPIC'
19563 lt_prog_compiler_static_CXX='-static'
19564 ;;
19565 pgCC* | pgcpp*)
19566 # Portland Group C++ compiler
19567 lt_prog_compiler_wl_CXX='-Wl,'
19568 lt_prog_compiler_pic_CXX='-fpic'
19569 lt_prog_compiler_static_CXX='-Bstatic'
19570 ;;
19571 cxx*)
19572 # Compaq C++
19573 # Make sure the PIC flag is empty. It appears that all Alpha
19574 # Linux and Compaq Tru64 Unix objects are PIC.
19575 lt_prog_compiler_pic_CXX=
19576 lt_prog_compiler_static_CXX='-non_shared'
19577 ;;
19578 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19579 # IBM XL 8.0, 9.0 on PPC and BlueGene
19580 lt_prog_compiler_wl_CXX='-Wl,'
19581 lt_prog_compiler_pic_CXX='-qpic'
19582 lt_prog_compiler_static_CXX='-qstaticlink'
19583 ;;
19584 *)
19585 case `$CC -V 2>&1 | $SED 5q` in
19586 *Sun\ C*)
19587 # Sun C++ 5.9
19588 lt_prog_compiler_pic_CXX='-KPIC'
19589 lt_prog_compiler_static_CXX='-Bstatic'
19590 lt_prog_compiler_wl_CXX='-Qoption ld '
19591 ;;
19592 esac
19593 ;;
19594 esac
19595 ;;
19596 lynxos*)
19597 ;;
19598 m88k*)
19599 ;;
19600 mvs*)
19601 case $cc_basename in
19602 cxx*)
19603 lt_prog_compiler_pic_CXX='-W c,exportall'
19604 ;;
19605 *)
19606 ;;
19607 esac
19608 ;;
19609 netbsd* | netbsdelf*-gnu)
19610 ;;
19611 *-mlibc)
19612 ;;
19613 *qnx* | *nto*)
19614 # QNX uses GNU C++, but need to define -shared option too, otherwise
19615 # it will coredump.
19616 lt_prog_compiler_pic_CXX='-fPIC -shared'
19617 ;;
19618 osf3* | osf4* | osf5*)
19619 case $cc_basename in
19620 KCC*)
19621 lt_prog_compiler_wl_CXX='--backend -Wl,'
19622 ;;
19623 RCC*)
19624 # Rational C++ 2.4.1
19625 lt_prog_compiler_pic_CXX='-pic'
19626 ;;
19627 cxx*)
19628 # Digital/Compaq C++
19629 lt_prog_compiler_wl_CXX='-Wl,'
19630 # Make sure the PIC flag is empty. It appears that all Alpha
19631 # Linux and Compaq Tru64 Unix objects are PIC.
19632 lt_prog_compiler_pic_CXX=
19633 lt_prog_compiler_static_CXX='-non_shared'
19634 ;;
19635 *)
19636 ;;
19637 esac
19638 ;;
19639 psos*)
19640 ;;
19641 serenity*)
19642 ;;
19643 solaris*)
19644 case $cc_basename in
19645 CC* | sunCC*)
19646 # Sun C++ 4.2, 5.x and Centerline C++
19647 lt_prog_compiler_pic_CXX='-KPIC'
19648 lt_prog_compiler_static_CXX='-Bstatic'
19649 lt_prog_compiler_wl_CXX='-Qoption ld '
19650 ;;
19651 gcx*)
19652 # Green Hills C++ Compiler
19653 lt_prog_compiler_pic_CXX='-PIC'
19654 ;;
19655 *)
19656 ;;
19657 esac
19658 ;;
19659 sunos4*)
19660 case $cc_basename in
19661 CC*)
19662 # Sun C++ 4.x
19663 lt_prog_compiler_pic_CXX='-pic'
19664 lt_prog_compiler_static_CXX='-Bstatic'
19665 ;;
19666 lcc*)
19667 # Lucid
19668 lt_prog_compiler_pic_CXX='-pic'
19669 ;;
19670 *)
19671 ;;
19672 esac
19673 ;;
19674 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19675 case $cc_basename in
19676 CC*)
19677 lt_prog_compiler_wl_CXX='-Wl,'
19678 lt_prog_compiler_pic_CXX='-KPIC'
19679 lt_prog_compiler_static_CXX='-Bstatic'
19680 ;;
19681 esac
19682 ;;
19683 tandem*)
19684 case $cc_basename in
19685 NCC*)
19686 # NonStop-UX NCC 3.20
19687 lt_prog_compiler_pic_CXX='-KPIC'
19688 ;;
19689 *)
19690 ;;
19691 esac
19692 ;;
19693 vxworks*)
19694 ;;
19695 *)
19696 lt_prog_compiler_can_build_shared_CXX=no
19697 ;;
19698 esac
19699 fi
19700
19701 case $host_os in
19702 # For platforms that do not support PIC, -DPIC is meaningless:
19703 *djgpp*)
19704 lt_prog_compiler_pic_CXX=
19705 ;;
19706 *)
19707 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19708 ;;
19709 esac
19710
19711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19712 printf %s "checking for $compiler option to produce PIC... " >&6; }
19713 if test ${lt_cv_prog_compiler_pic_CXX+y}
19714 then :
19715 printf %s "(cached) " >&6
19716 else case e in #(
19717 e) lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX ;;
19718 esac
19719 fi
19720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
19721 printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
19722 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
19723
19724 #
19725 # Check to make sure the PIC flag actually works.
19726 #
19727 if test -n "$lt_prog_compiler_pic_CXX"; then
19728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19729 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
19730 if test ${lt_cv_prog_compiler_pic_works_CXX+y}
19731 then :
19732 printf %s "(cached) " >&6
19733 else case e in #(
19734 e) lt_cv_prog_compiler_pic_works_CXX=no
19735 ac_outfile=conftest.$ac_objext
19736 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19737 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
19738 # Insert the option either (1) after the last *FLAGS variable, or
19739 # (2) before a word containing "conftest.", or (3) at the end.
19740 # Note that $ac_compile itself does not contain backslashes and begins
19741 # with a dollar sign (not a hyphen), so the echo should work correctly.
19742 # The option is referenced via a variable to avoid confusing sed.
19743 lt_compile=`echo "$ac_compile" | $SED \
19744 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19745 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19746 -e 's:$: $lt_compiler_flag:'`
19747 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19748 (eval "$lt_compile" 2>conftest.err)
19749 ac_status=$?
19750 cat conftest.err >&5
19751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19752 if (exit $ac_status) && test -s "$ac_outfile"; then
19753 # The compiler can only warn and ignore the option if not recognized
19754 # So say no if there are warnings other than the usual output.
19755 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
19756 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19757 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19758 lt_cv_prog_compiler_pic_works_CXX=yes
19759 fi
19760 fi
19761 $RM conftest*
19762 ;;
19763 esac
19764 fi
19765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19766 printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19767
19768 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
19769 case $lt_prog_compiler_pic_CXX in
19770 "" | " "*) ;;
19771 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19772 esac
19773 else
19774 lt_prog_compiler_pic_CXX=
19775 lt_prog_compiler_can_build_shared_CXX=no
19776 fi
19777
19778 fi
19779
19780
19781
19782
19783
19784 #
19785 # Check to make sure the static flag actually works.
19786 #
19787 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19789 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
19790 if test ${lt_cv_prog_compiler_static_works_CXX+y}
19791 then :
19792 printf %s "(cached) " >&6
19793 else case e in #(
19794 e) lt_cv_prog_compiler_static_works_CXX=no
19795 save_LDFLAGS=$LDFLAGS
19796 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19797 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19798 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19799 # The linker can only warn and ignore the option if not recognized
19800 # So say no if there are warnings
19801 if test -s conftest.err; then
19802 # Append any errors to the config.log.
19803 cat conftest.err 1>&5
19804 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
19805 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19806 if diff conftest.exp conftest.er2 >/dev/null; then
19807 lt_cv_prog_compiler_static_works_CXX=yes
19808 fi
19809 else
19810 lt_cv_prog_compiler_static_works_CXX=yes
19811 fi
19812 fi
19813 $RM -r conftest*
19814 LDFLAGS=$save_LDFLAGS
19815 ;;
19816 esac
19817 fi
19818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19819 printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19820
19821 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
19822 :
19823 else
19824 lt_prog_compiler_static_CXX=
19825 fi
19826
19827
19828
19829 ='-fPIC'
19830 archive_cmds_CXX='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
19831 archive_expsym_cmds_CXX='$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'
19832 archive_cmds_need_lc_CXX=no
19833 no_undefined_flag_CXX=
19834 ;;
19835
19836 *)
19837 dynamic_linker=no
19838 ;;
19839 esac
19840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19841 printf "%s\n" "$dynamic_linker" >&6; }
19842 test no = "$dynamic_linker" && can_build_shared=no
19843
19844 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19845 if test yes = "$GCC"; then
19846 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19847 fi
19848
19849 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
19850 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
19851 fi
19852
19853 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
19854 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
19855 fi
19856
19857 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
19858 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
19859
19860 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
19861 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
19862
19863 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
19864 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
19865
19866
19867
19868
19869
19870
19871
19872
19873
19874
19875
19876
19877
19878
19879
19880
19881
19882
19883
19884
19885
19886
19887
19888
19889
19890
19891
19892
19893
19894
19895
19896
19897
19898
19899
19900
19901
19902
19903
19904
19905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19906 printf %s "checking how to hardcode library paths into programs... " >&6; }
19907 hardcode_action_CXX=
19908 if test -n "$hardcode_libdir_flag_spec_CXX" ||
19909 test -n "$runpath_var_CXX" ||
19910 test yes = "$hardcode_automatic_CXX"; then
19911
19912 # We can hardcode non-existent directories.
19913 if test no != "$hardcode_direct_CXX" &&
19914 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19915 # have to relink, otherwise we might link with an installed library
19916 # when we should be linking with a yet-to-be-installed one
19917 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
19918 test no != "$hardcode_minus_L_CXX"; then
19919 # Linking always hardcodes the temporary library directory.
19920 hardcode_action_CXX=relink
19921 else
19922 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19923 hardcode_action_CXX=immediate
19924 fi
19925 else
19926 # We cannot hardcode anything, or else we can only hardcode existing
19927 # directories.
19928 hardcode_action_CXX=unsupported
19929 fi
19930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
19931 printf "%s\n" "$hardcode_action_CXX" >&6; }
19932
19933 if test relink = "$hardcode_action_CXX" ||
19934 test yes = "$inherit_rpath_CXX"; then
19935 # Fast installation is not supported
19936 enable_fast_install=no
19937 elif test yes = "$shlibpath_overrides_runpath" ||
19938 test no = "$enable_shared"; then
19939 # Fast installation is not necessary
19940 enable_fast_install=needless
19941 fi
19942
19943
19944
19945
19946
19947
19948
19949 fi # test -n "$compiler"
19950
19951 CC=$lt_save_CC
19952 CFLAGS=$lt_save_CFLAGS
19953 LDCXX=$LD
19954 LD=$lt_save_LD
19955 GCC=$lt_save_GCC
19956 with_gnu_ld=$lt_save_with_gnu_ld
19957 lt_cv_path_LDCXX=$lt_cv_path_LD
19958 lt_cv_path_LD=$lt_save_path_LD
19959 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19960 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19961 fi # test yes != "$_lt_caught_CXX_error"
19962
19963 ac_ext=c
19964 ac_cpp='$CPP $CPPFLAGS'
19965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19968
19969
19970
19971
19972
19973
19974
19975
19976
19977
19978
19979
19980
19981
19982
19983 ac_config_commands="$ac_config_commands libtool"
19984
19985
19986
19987
19988 # Only expand once:
19989
19990
19991 # (end lt_init)
19992 # Check whether --enable-largefile was given.
19993 if test ${enable_largefile+y}
19994 then :
19995 enableval=$enable_largefile;
19996 fi
19997 if test "$enable_largefile,$enable_year2038" != no,no
19998 then :
19999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5
20000 printf %s "checking for $CC option to enable large file support... " >&6; }
20001 if test ${ac_cv_sys_largefile_opts+y}
20002 then :
20003 printf %s "(cached) " >&6
20004 else case e in #(
20005 e) ac_save_CC="$CC"
20006 ac_opt_found=no
20007 for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do
20008 if test x"$ac_opt" != x"none needed"
20009 then :
20010 CC="$ac_save_CC $ac_opt"
20011 fi
20012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20013 /* end confdefs.h. */
20014 #include <sys/types.h>
20015 #ifndef FTYPE
20016 # define FTYPE off_t
20017 #endif
20018 /* Check that FTYPE can represent 2**63 - 1 correctly.
20019 We can't simply define LARGE_FTYPE to be 9223372036854775807,
20020 since some C++ compilers masquerading as C compilers
20021 incorrectly reject 9223372036854775807. */
20022 #define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31))
20023 int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721
20024 && LARGE_FTYPE % 2147483647 == 1)
20025 ? 1 : -1];
20026 int
20027 main (void)
20028 {
20029
20030 ;
20031 return 0;
20032 }
20033 _ACEOF
20034 if ac_fn_c_try_compile "$LINENO"
20035 then :
20036 if test x"$ac_opt" = x"none needed"
20037 then :
20038 # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t.
20039 CC="$CC -DFTYPE=ino_t"
20040 if ac_fn_c_try_compile "$LINENO"
20041 then :
20042
20043 else case e in #(
20044 e) CC="$CC -D_FILE_OFFSET_BITS=64"
20045 if ac_fn_c_try_compile "$LINENO"
20046 then :
20047 ac_opt='-D_FILE_OFFSET_BITS=64'
20048 fi
20049 rm -f core conftest.err conftest.$ac_objext conftest.beam ;;
20050 esac
20051 fi
20052 rm -f core conftest.err conftest.$ac_objext conftest.beam
20053 fi
20054 ac_cv_sys_largefile_opts=$ac_opt
20055 ac_opt_found=yes
20056 fi
20057 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20058 test $ac_opt_found = no || break
20059 done
20060 CC="$ac_save_CC"
20061
20062 test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;;
20063 esac
20064 fi
20065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5
20066 printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; }
20067
20068 ac_have_largefile=yes
20069 case $ac_cv_sys_largefile_opts in #(
20070 "none needed") :
20071 ;; #(
20072 "supported through gnulib") :
20073 ;; #(
20074 "support not detected") :
20075 ac_have_largefile=no ;; #(
20076 "-D_FILE_OFFSET_BITS=64") :
20077
20078 printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
20079 ;; #(
20080 "-D_LARGE_FILES=1") :
20081
20082 printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h
20083 ;; #(
20084 "-n32") :
20085 CC="$CC -n32" ;; #(
20086 *) :
20087 as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;;
20088 esac
20089
20090 if test "$enable_year2038" != no
20091 then :
20092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option for timestamps after 2038" >&5
20093 printf %s "checking for $CC option for timestamps after 2038... " >&6; }
20094 if test ${ac_cv_sys_year2038_opts+y}
20095 then :
20096 printf %s "(cached) " >&6
20097 else case e in #(
20098 e) ac_save_CPPFLAGS="$CPPFLAGS"
20099 ac_opt_found=no
20100 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
20101 if test x"$ac_opt" != x"none needed"
20102 then :
20103 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
20104 fi
20105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20106 /* end confdefs.h. */
20107
20108 #include <time.h>
20109 /* Check that time_t can represent 2**32 - 1 correctly. */
20110 #define LARGE_TIME_T \\
20111 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
20112 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
20113 && LARGE_TIME_T % 65537 == 0)
20114 ? 1 : -1];
20115
20116 int
20117 main (void)
20118 {
20119
20120 ;
20121 return 0;
20122 }
20123 _ACEOF
20124 if ac_fn_c_try_compile "$LINENO"
20125 then :
20126 ac_cv_sys_year2038_opts="$ac_opt"
20127 ac_opt_found=yes
20128 fi
20129 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20130 test $ac_opt_found = no || break
20131 done
20132 CPPFLAGS="$ac_save_CPPFLAGS"
20133 test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;;
20134 esac
20135 fi
20136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5
20137 printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; }
20138
20139 ac_have_year2038=yes
20140 case $ac_cv_sys_year2038_opts in #(
20141 "none needed") :
20142 ;; #(
20143 "support not detected") :
20144 ac_have_year2038=no ;; #(
20145 "-D_TIME_BITS=64") :
20146
20147 printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h
20148 ;; #(
20149 "-D__MINGW_USE_VC2005_COMPAT") :
20150
20151 printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h
20152 ;; #(
20153 "-U_USE_32_BIT_TIME_T"*) :
20154 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
20155 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
20156 as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It
20157 will stop working after mid-January 2038. Remove
20158 _USE_32BIT_TIME_T from the compiler flags.
20159 See 'config.log' for more details" "$LINENO" 5; } ;; #(
20160 *) :
20161 as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;;
20162 esac
20163
20164 fi
20165
20166 fi
20167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for declarations of fseeko and ftello" >&5
20168 printf %s "checking for declarations of fseeko and ftello... " >&6; }
20169 if test ${ac_cv_func_fseeko_ftello+y}
20170 then :
20171 printf %s "(cached) " >&6
20172 else case e in #(
20173 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20174 /* end confdefs.h. */
20175
20176 #if defined __hpux && !defined _LARGEFILE_SOURCE
20177 # include <limits.h>
20178 # if LONG_MAX >> 31 == 0
20179 # error "32-bit HP-UX 11/ia64 needs _LARGEFILE_SOURCE for fseeko in C++"
20180 # endif
20181 #endif
20182 #include <sys/types.h> /* for off_t */
20183 #include <stdio.h>
20184
20185 int
20186 main (void)
20187 {
20188
20189 int (*fp1) (FILE *, off_t, int) = fseeko;
20190 off_t (*fp2) (FILE *) = ftello;
20191 return fseeko (stdin, 0, 0)
20192 && fp1 (stdin, 0, 0)
20193 && ftello (stdin) >= 0
20194 && fp2 (stdin) >= 0;
20195
20196 ;
20197 return 0;
20198 }
20199 _ACEOF
20200 if ac_fn_c_try_compile "$LINENO"
20201 then :
20202 ac_cv_func_fseeko_ftello=yes
20203 else case e in #(
20204 e) ac_save_CPPFLAGS="$CPPFLAGS"
20205 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE=1"
20206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20207 /* end confdefs.h. */
20208
20209 #if defined __hpux && !defined _LARGEFILE_SOURCE
20210 # include <limits.h>
20211 # if LONG_MAX >> 31 == 0
20212 # error "32-bit HP-UX 11/ia64 needs _LARGEFILE_SOURCE for fseeko in C++"
20213 # endif
20214 #endif
20215 #include <sys/types.h> /* for off_t */
20216 #include <stdio.h>
20217
20218 int
20219 main (void)
20220 {
20221
20222 int (*fp1) (FILE *, off_t, int) = fseeko;
20223 off_t (*fp2) (FILE *) = ftello;
20224 return fseeko (stdin, 0, 0)
20225 && fp1 (stdin, 0, 0)
20226 && ftello (stdin) >= 0
20227 && fp2 (stdin) >= 0;
20228
20229 ;
20230 return 0;
20231 }
20232 _ACEOF
20233 if ac_fn_c_try_compile "$LINENO"
20234 then :
20235 ac_cv_func_fseeko_ftello="need _LARGEFILE_SOURCE"
20236 else case e in #(
20237 e) ac_cv_func_fseeko_ftello=no ;;
20238 esac
20239 fi
20240 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
20241 esac
20242 fi
20243 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
20244 esac
20245 fi
20246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fseeko_ftello" >&5
20247 printf "%s\n" "$ac_cv_func_fseeko_ftello" >&6; }
20248 if test "$ac_cv_func_fseeko_ftello" != no
20249 then :
20250
20251 printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h
20252
20253 fi
20254 if test "$ac_cv_func_fseeko_ftello" = "need _LARGEFILE_SOURCE"
20255 then :
20256
20257 printf "%s\n" "#define _LARGEFILE_SOURCE 1" >>confdefs.h
20258
20259 fi
20260
20261 ac_header_dirent=no
20262 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20263 as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | sed "$as_sed_sh"`
20264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
20265 printf %s "checking for $ac_hdr that defines DIR... " >&6; }
20266 if eval test \${$as_ac_Header+y}
20267 then :
20268 printf %s "(cached) " >&6
20269 else case e in #(
20270 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20271 /* end confdefs.h. */
20272 #include <sys/types.h>
20273 #include <$ac_hdr>
20274
20275 int
20276 main (void)
20277 {
20278 if ((DIR *) 0)
20279 return 0;
20280 ;
20281 return 0;
20282 }
20283 _ACEOF
20284 if ac_fn_c_try_compile "$LINENO"
20285 then :
20286 eval "$as_ac_Header=yes"
20287 else case e in #(
20288 e) eval "$as_ac_Header=no" ;;
20289 esac
20290 fi
20291 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
20292 esac
20293 fi
20294 eval ac_res=\$$as_ac_Header
20295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20296 printf "%s\n" "$ac_res" >&6; }
20297 if eval test \"x\$"$as_ac_Header"\" = x"yes"
20298 then :
20299 cat >>confdefs.h <<_ACEOF
20300 #define `printf "%s\n" "HAVE_$ac_hdr" | sed "$as_sed_cpp"` 1
20301 _ACEOF
20302
20303 ac_header_dirent=$ac_hdr; break
20304 fi
20305
20306 done
20307 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20308 if test $ac_header_dirent = dirent.h; then
20309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
20310 printf %s "checking for library containing opendir... " >&6; }
20311 if test ${ac_cv_search_opendir+y}
20312 then :
20313 printf %s "(cached) " >&6
20314 else case e in #(
20315 e) ac_func_search_save_LIBS=$LIBS
20316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20317 /* end confdefs.h. */
20318
20319 /* Override any GCC internal prototype to avoid an error.
20320 Use char because int might match the return type of a GCC
20321 builtin and then its argument prototype would still apply.
20322 The 'extern "C"' is for builds by C++ compilers;
20323 although this is not generally supported in C code supporting it here
20324 has little cost and some practical benefit (sr 110532). */
20325 #ifdef __cplusplus
20326 extern "C"
20327 #endif
20328 char opendir (void);
20329 int
20330 main (void)
20331 {
20332 return opendir ();
20333 ;
20334 return 0;
20335 }
20336 _ACEOF
20337 for ac_lib in '' dir
20338 do
20339 if test -z "$ac_lib"; then
20340 ac_res="none required"
20341 else
20342 ac_res=-l$ac_lib
20343 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20344 fi
20345 if ac_fn_c_try_link "$LINENO"
20346 then :
20347 ac_cv_search_opendir=$ac_res
20348 fi
20349 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20350 conftest$ac_exeext
20351 if test ${ac_cv_search_opendir+y}
20352 then :
20353 break
20354 fi
20355 done
20356 if test ${ac_cv_search_opendir+y}
20357 then :
20358
20359 else case e in #(
20360 e) ac_cv_search_opendir=no ;;
20361 esac
20362 fi
20363 rm conftest.$ac_ext
20364 LIBS=$ac_func_search_save_LIBS ;;
20365 esac
20366 fi
20367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
20368 printf "%s\n" "$ac_cv_search_opendir" >&6; }
20369 ac_res=$ac_cv_search_opendir
20370 if test "$ac_res" != no
20371 then :
20372 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20373
20374 fi
20375
20376 else
20377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
20378 printf %s "checking for library containing opendir... " >&6; }
20379 if test ${ac_cv_search_opendir+y}
20380 then :
20381 printf %s "(cached) " >&6
20382 else case e in #(
20383 e) ac_func_search_save_LIBS=$LIBS
20384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20385 /* end confdefs.h. */
20386
20387 /* Override any GCC internal prototype to avoid an error.
20388 Use char because int might match the return type of a GCC
20389 builtin and then its argument prototype would still apply.
20390 The 'extern "C"' is for builds by C++ compilers;
20391 although this is not generally supported in C code supporting it here
20392 has little cost and some practical benefit (sr 110532). */
20393 #ifdef __cplusplus
20394 extern "C"
20395 #endif
20396 char opendir (void);
20397 int
20398 main (void)
20399 {
20400 return opendir ();
20401 ;
20402 return 0;
20403 }
20404 _ACEOF
20405 for ac_lib in '' x
20406 do
20407 if test -z "$ac_lib"; then
20408 ac_res="none required"
20409 else
20410 ac_res=-l$ac_lib
20411 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20412 fi
20413 if ac_fn_c_try_link "$LINENO"
20414 then :
20415 ac_cv_search_opendir=$ac_res
20416 fi
20417 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20418 conftest$ac_exeext
20419 if test ${ac_cv_search_opendir+y}
20420 then :
20421 break
20422 fi
20423 done
20424 if test ${ac_cv_search_opendir+y}
20425 then :
20426
20427 else case e in #(
20428 e) ac_cv_search_opendir=no ;;
20429 esac
20430 fi
20431 rm conftest.$ac_ext
20432 LIBS=$ac_func_search_save_LIBS ;;
20433 esac
20434 fi
20435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
20436 printf "%s\n" "$ac_cv_search_opendir" >&6; }
20437 ac_res=$ac_cv_search_opendir
20438 if test "$ac_res" != no
20439 then :
20440 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20441
20442 fi
20443
20444 fi
20445
20446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
20447 printf %s "checking whether closedir returns void... " >&6; }
20448 if test ${ac_cv_func_closedir_void+y}
20449 then :
20450 printf %s "(cached) " >&6
20451 else case e in #(
20452 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20453 /* end confdefs.h. */
20454
20455 #include <$ac_header_dirent>
20456
20457 int
20458 main (void)
20459 {
20460
20461 return closedir(0);
20462
20463 ;
20464 return 0;
20465 }
20466 _ACEOF
20467 if ac_fn_c_try_compile "$LINENO"
20468 then :
20469 ac_cv_func_closedir_void=no
20470 else case e in #(
20471 e) ac_cv_func_closedir_void=yes ;;
20472 esac
20473 fi
20474 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
20475 esac
20476 fi
20477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
20478 printf "%s\n" "$ac_cv_func_closedir_void" >&6; }
20479 if test $ac_cv_func_closedir_void = yes; then
20480
20481 printf "%s\n" "#define CLOSEDIR_VOID 1" >>confdefs.h
20482
20483 fi
20484
20485 ac_fn_c_check_header_compile "$LINENO" "assert.h" "ac_cv_header_assert_h" "$ac_includes_default"
20486 if test "x$ac_cv_header_assert_h" = xyes
20487 then :
20488 printf "%s\n" "#define HAVE_ASSERT_H 1" >>confdefs.h
20489
20490 fi
20491 ac_fn_c_check_header_compile "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
20492 if test "x$ac_cv_header_float_h" = xyes
20493 then :
20494 printf "%s\n" "#define HAVE_FLOAT_H 1" >>confdefs.h
20495
20496 fi
20497 ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
20498 if test "x$ac_cv_header_limits_h" = xyes
20499 then :
20500 printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
20501
20502 fi
20503 ac_fn_c_check_header_compile "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default"
20504 if test "x$ac_cv_header_pwd_h" = xyes
20505 then :
20506 printf "%s\n" "#define HAVE_PWD_H 1" >>confdefs.h
20507
20508 fi
20509 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
20510 if test "x$ac_cv_header_stdlib_h" = xyes
20511 then :
20512 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
20513
20514 fi
20515 ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
20516 if test "x$ac_cv_header_sys_param_h" = xyes
20517 then :
20518 printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
20519
20520 fi
20521
20522 ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
20523 if test "x$ac_cv_func_putenv" = xyes
20524 then :
20525 printf "%s\n" "#define HAVE_PUTENV 1" >>confdefs.h
20526
20527 fi
20528
20529 ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
20530 if test "x$ac_cv_func_getcwd" = xyes
20531 then :
20532 printf "%s\n" "#define HAVE_GETCWD 1" >>confdefs.h
20533
20534 fi
20535 ac_fn_c_check_func "$LINENO" "memcmp" "ac_cv_func_memcmp"
20536 if test "x$ac_cv_func_memcmp" = xyes
20537 then :
20538 printf "%s\n" "#define HAVE_MEMCMP 1" >>confdefs.h
20539
20540 fi
20541 ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
20542 if test "x$ac_cv_func_memcpy" = xyes
20543 then :
20544 printf "%s\n" "#define HAVE_MEMCPY 1" >>confdefs.h
20545
20546 fi
20547 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
20548 if test "x$ac_cv_func_mkstemp" = xyes
20549 then :
20550 printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h
20551
20552 fi
20553 ac_fn_c_check_func "$LINENO" "mktemp" "ac_cv_func_mktemp"
20554 if test "x$ac_cv_func_mktemp" = xyes
20555 then :
20556 printf "%s\n" "#define HAVE_MKTEMP 1" >>confdefs.h
20557
20558 fi
20559 ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
20560 if test "x$ac_cv_func_strchr" = xyes
20561 then :
20562 printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
20563
20564 fi
20565 ac_fn_c_check_func "$LINENO" "strrchr" "ac_cv_func_strrchr"
20566 if test "x$ac_cv_func_strrchr" = xyes
20567 then :
20568 printf "%s\n" "#define HAVE_STRRCHR 1" >>confdefs.h
20569
20570 fi
20571
20572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
20573 printf %s "checking for an ANSI C-conforming const... " >&6; }
20574 if test ${ac_cv_c_const+y}
20575 then :
20576 printf %s "(cached) " >&6
20577 else case e in #(
20578 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20579 /* end confdefs.h. */
20580
20581 int
20582 main (void)
20583 {
20584
20585 #ifndef __cplusplus
20586 /* Ultrix mips cc rejects this sort of thing. */
20587 typedef int charset[2];
20588 const charset cs = { 0, 0 };
20589 /* SunOS 4.1.1 cc rejects this. */
20590 char const *const *pcpcc;
20591 char **ppc;
20592 /* NEC SVR4.0.2 mips cc rejects this. */
20593 struct point {int x, y;};
20594 static struct point const zero = {0,0};
20595 /* IBM XL C 1.02.0.0 rejects this.
20596 It does not let you subtract one const X* pointer from another in
20597 an arm of an if-expression whose if-part is not a constant
20598 expression */
20599 const char *g = "string";
20600 pcpcc = &g + (g ? g-g : 0);
20601 /* HPUX 7.0 cc rejects these. */
20602 ++pcpcc;
20603 ppc = (char**) pcpcc;
20604 pcpcc = (char const *const *) ppc;
20605 { /* SCO 3.2v4 cc rejects this sort of thing. */
20606 char tx;
20607 char *t = &tx;
20608 char const *s = 0 ? (char *) 0 : (char const *) 0;
20609
20610 *t++ = 0;
20611 if (s) return 0;
20612 }
20613 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20614 int x[] = {25, 17};
20615 const int *foo = &x[0];
20616 ++foo;
20617 }
20618 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20619 typedef const int *iptr;
20620 iptr p = 0;
20621 ++p;
20622 }
20623 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
20624 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20625 struct s { int j; const int *ap[3]; } bx;
20626 struct s *b = &bx; b->j = 5;
20627 }
20628 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20629 const int foo = 10;
20630 if (!foo) return 0;
20631 }
20632 return !cs[0] && !zero.x;
20633 #endif
20634
20635 ;
20636 return 0;
20637 }
20638 _ACEOF
20639 if ac_fn_c_try_compile "$LINENO"
20640 then :
20641 ac_cv_c_const=yes
20642 else case e in #(
20643 e) ac_cv_c_const=no ;;
20644 esac
20645 fi
20646 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
20647 esac
20648 fi
20649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
20650 printf "%s\n" "$ac_cv_c_const" >&6; }
20651 if test $ac_cv_c_const = no; then
20652
20653 printf "%s\n" "#define const /**/" >>confdefs.h
20654
20655 fi
20656
20657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
20658 printf %s "checking for inline... " >&6; }
20659 if test ${ac_cv_c_inline+y}
20660 then :
20661 printf %s "(cached) " >&6
20662 else case e in #(
20663 e) ac_cv_c_inline=no
20664 for ac_kw in inline __inline__ __inline; do
20665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20666 /* end confdefs.h. */
20667 #ifndef __cplusplus
20668 typedef int foo_t;
20669 static $ac_kw foo_t static_foo (void) {return 0; }
20670 $ac_kw foo_t foo (void) {return 0; }
20671 #endif
20672
20673 _ACEOF
20674 if ac_fn_c_try_compile "$LINENO"
20675 then :
20676 ac_cv_c_inline=$ac_kw
20677 fi
20678 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20679 test "$ac_cv_c_inline" != no && break
20680 done
20681 ;;
20682 esac
20683 fi
20684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
20685 printf "%s\n" "$ac_cv_c_inline" >&6; }
20686
20687 case $ac_cv_c_inline in
20688 inline | yes) ;;
20689 *)
20690 case $ac_cv_c_inline in
20691 no) ac_val=;;
20692 *) ac_val=$ac_cv_c_inline;;
20693 esac
20694 cat >>confdefs.h <<_ACEOF
20695 #ifndef __cplusplus
20696 #define inline $ac_val
20697 #endif
20698 _ACEOF
20699 ;;
20700 esac
20701
20702 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
20703 if test "x$ac_cv_type_size_t" = xyes
20704 then :
20705
20706 else case e in #(
20707 e)
20708 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
20709 ;;
20710 esac
20711 fi
20712
20713 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
20714 case $ac_cv_c_int64_t in #(
20715 no|yes) ;; #(
20716 *)
20717
20718 printf "%s\n" "#define int64_t $ac_cv_c_int64_t" >>confdefs.h
20719 ;;
20720 esac
20721
20722 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
20723 case $ac_cv_c_uint64_t in #(
20724 no|yes) ;; #(
20725 *)
20726
20727 printf "%s\n" "#define _UINT64_T 1" >>confdefs.h
20728
20729
20730 printf "%s\n" "#define uint64_t $ac_cv_c_uint64_t" >>confdefs.h
20731 ;;
20732 esac
20733
20734 case :$ac_cv_c_int64_t:$ac_cv_c_int64_t: in #(
20735 *':no:'*) :
20736 as_fn_error $? "Sorry, your compiler does not support 64-bit integer types." "$LINENO" 5 ;; #(
20737 *) :
20738 ;;
20739 esac
20740 ac_fn_check_decl "$LINENO" "isascii" "ac_cv_have_decl_isascii" "#include <ctype.h>
20741 " "$ac_c_undeclared_builtin_options" "CFLAGS"
20742 if test "x$ac_cv_have_decl_isascii" = xyes
20743 then :
20744 ac_have_decl=1
20745 else case e in #(
20746 e) ac_have_decl=0 ;;
20747 esac
20748 fi
20749 printf "%s\n" "#define HAVE_DECL_ISASCII $ac_have_decl" >>confdefs.h
20750
20751 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
20752 if test "x$ac_cv_member_struct_stat_st_mtim" = xyes
20753 then :
20754
20755 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_MTIM 1" >>confdefs.h
20756
20757
20758 fi
20759
20760
20761 if test "x$host_alias" != x && test "x$build_alias" = x
20762 then :
20763 as_fn_error $? "when cross-compiling you must specify both --host and --build." "$LINENO" 5
20764 fi
20765 eval kpse_build_alias=\${build_alias-$build}
20766
20767
20768 if test "x$cross_compiling" = xyes; then
20769 cross_TRUE=
20770 cross_FALSE='#'
20771 else
20772 cross_TRUE='#'
20773 cross_FALSE=
20774 fi
20775
20776
20777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for native WIN32 or MINGW32" >&5
20778 printf %s "checking for native WIN32 or MINGW32... " >&6; }
20779 if test ${kpse_cv_have_win32+y}
20780 then :
20781 printf %s "(cached) " >&6
20782 else case e in #(
20783 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20784 /* end confdefs.h. */
20785 #ifndef WIN32
20786 choke me
20787 #endif
20788 int
20789 main (void)
20790 {
20791
20792 ;
20793 return 0;
20794 }
20795 _ACEOF
20796 if ac_fn_c_try_compile "$LINENO"
20797 then :
20798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20799 /* end confdefs.h. */
20800 #ifndef __MINGW32__
20801 choke me
20802 #endif
20803 int
20804 main (void)
20805 {
20806
20807 ;
20808 return 0;
20809 }
20810 _ACEOF
20811 if ac_fn_c_try_compile "$LINENO"
20812 then :
20813 kpse_cv_have_win32=mingw32
20814 else case e in #(
20815 e) kpse_cv_have_win32=native ;;
20816 esac
20817 fi
20818 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20819 else case e in #(
20820 e) kpse_cv_have_win32=no ;;
20821 esac
20822 fi
20823 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
20824 esac
20825 fi
20826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_have_win32" >&5
20827 printf "%s\n" "$kpse_cv_have_win32" >&6; }
20828
20829 LUA53_DEFINES='-DLUA_COMPAT_MODULE -DLUA_COMPAT_5_2 -DLUAI_HASHLIMIT=6'
20830
20831 if test "x$kpse_cv_have_win32" = xno; then
20832 LUA53_DEFINES="$LUA53_DEFINES -DLUA_USE_POSIX"
20833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
20834 printf %s "checking for library containing dlopen... " >&6; }
20835 if test ${ac_cv_search_dlopen+y}
20836 then :
20837 printf %s "(cached) " >&6
20838 else case e in #(
20839 e) ac_func_search_save_LIBS=$LIBS
20840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20841 /* end confdefs.h. */
20842
20843 /* Override any GCC internal prototype to avoid an error.
20844 Use char because int might match the return type of a GCC
20845 builtin and then its argument prototype would still apply.
20846 The 'extern "C"' is for builds by C++ compilers;
20847 although this is not generally supported in C code supporting it here
20848 has little cost and some practical benefit (sr 110532). */
20849 #ifdef __cplusplus
20850 extern "C"
20851 #endif
20852 char dlopen (void);
20853 int
20854 main (void)
20855 {
20856 return dlopen ();
20857 ;
20858 return 0;
20859 }
20860 _ACEOF
20861 for ac_lib in '' dl
20862 do
20863 if test -z "$ac_lib"; then
20864 ac_res="none required"
20865 else
20866 ac_res=-l$ac_lib
20867 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20868 fi
20869 if ac_fn_c_try_link "$LINENO"
20870 then :
20871 ac_cv_search_dlopen=$ac_res
20872 fi
20873 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20874 conftest$ac_exeext
20875 if test ${ac_cv_search_dlopen+y}
20876 then :
20877 break
20878 fi
20879 done
20880 if test ${ac_cv_search_dlopen+y}
20881 then :
20882
20883 else case e in #(
20884 e) ac_cv_search_dlopen=no ;;
20885 esac
20886 fi
20887 rm conftest.$ac_ext
20888 LIBS=$ac_func_search_save_LIBS ;;
20889 esac
20890 fi
20891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
20892 printf "%s\n" "$ac_cv_search_dlopen" >&6; }
20893 ac_res=$ac_cv_search_dlopen
20894 if test "$ac_res" != no
20895 then :
20896 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20897
20898 fi
20899
20900 if test "x$ac_cv_search_dlopen" != xno; then
20901 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
20902 "
20903 if test "x$ac_cv_header_dlfcn_h" = xyes
20904 then :
20905 LUA53_DEFINES="$LUA53_DEFINES -DLUA_USE_DLOPEN"
20906 fi
20907
20908 fi
20909 fi
20910
20911
20912 ac_config_headers="$ac_config_headers c-auto.h:c-auto.in"
20913
20914
20915 # The cast to long int works around a bug in the HP C Compiler
20916 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20917 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
20918 # This bug is HP SR number 8606223364.
20919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
20920 printf %s "checking size of int... " >&6; }
20921 if test ${ac_cv_sizeof_int+y}
20922 then :
20923 printf %s "(cached) " >&6
20924 else case e in #(
20925 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"
20926 then :
20927
20928 else case e in #(
20929 e) if test "$ac_cv_type_int" = yes; then
20930 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
20931 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
20932 as_fn_error 77 "cannot compute sizeof (int)
20933 See 'config.log' for more details" "$LINENO" 5; }
20934 else
20935 ac_cv_sizeof_int=0
20936 fi ;;
20937 esac
20938 fi
20939 ;;
20940 esac
20941 fi
20942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
20943 printf "%s\n" "$ac_cv_sizeof_int" >&6; }
20944
20945
20946
20947 printf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h
20948
20949
20950
20951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing pow" >&5
20952 printf %s "checking for library containing pow... " >&6; }
20953 if test ${ac_cv_search_pow+y}
20954 then :
20955 printf %s "(cached) " >&6
20956 else case e in #(
20957 e) ac_func_search_save_LIBS=$LIBS
20958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20959 /* end confdefs.h. */
20960
20961 /* Override any GCC internal prototype to avoid an error.
20962 Use char because int might match the return type of a GCC
20963 builtin and then its argument prototype would still apply.
20964 The 'extern "C"' is for builds by C++ compilers;
20965 although this is not generally supported in C code supporting it here
20966 has little cost and some practical benefit (sr 110532). */
20967 #ifdef __cplusplus
20968 extern "C"
20969 #endif
20970 char pow (void);
20971 int
20972 main (void)
20973 {
20974 return pow ();
20975 ;
20976 return 0;
20977 }
20978 _ACEOF
20979 for ac_lib in '' m
20980 do
20981 if test -z "$ac_lib"; then
20982 ac_res="none required"
20983 else
20984 ac_res=-l$ac_lib
20985 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20986 fi
20987 if ac_fn_c_try_link "$LINENO"
20988 then :
20989 ac_cv_search_pow=$ac_res
20990 fi
20991 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20992 conftest$ac_exeext
20993 if test ${ac_cv_search_pow+y}
20994 then :
20995 break
20996 fi
20997 done
20998 if test ${ac_cv_search_pow+y}
20999 then :
21000
21001 else case e in #(
21002 e) ac_cv_search_pow=no ;;
21003 esac
21004 fi
21005 rm conftest.$ac_ext
21006 LIBS=$ac_func_search_save_LIBS ;;
21007 esac
21008 fi
21009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pow" >&5
21010 printf "%s\n" "$ac_cv_search_pow" >&6; }
21011 ac_res=$ac_cv_search_pow
21012 if test "$ac_res" != no
21013 then :
21014 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21015
21016 fi
21017
21018
21019
21020
21021 printf "%s\n" "#define TL_VERSION \"TeX Live 2026\"" >>confdefs.h
21022
21023
21024 kpse_save_CPPFLAGS=$CPPFLAGS
21025 kpse_save_LIBS=$LIBS
21026
21027 ##tldbg _KPSE_INIT: Initialize TL infrastructure.
21028 kpse_BLD=`(cd "./../../." && pwd)`
21029 kpse_SRC=`(cd "$srcdir/../../." && pwd)`
21030
21031 echo 'tldbg:_KPSE_USE_LIBTOOL called, libtool package version: 2.5.4' >&5
21032 : ${CONFIG_LT=./config.lt}
21033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_LT" >&5
21034 printf "%s\n" "$as_me: creating $CONFIG_LT" >&6;}
21035 as_write_fail=0
21036 cat >"$CONFIG_LT" <<_ASEOF || as_write_fail=1
21037 #! $SHELL
21038 # Generated by $as_me.
21039 # Run this file to recreate a libtool stub with the current configuration.
21040 SHELL=\${CONFIG_SHELL-$SHELL}
21041 export SHELL
21042 _ASEOF
21043 cat >>"$CONFIG_LT" <<\_ASEOF || as_write_fail=1
21044 ## -------------------- ##
21045 ## M4sh Initialization. ##
21046 ## -------------------- ##
21047
21048 # Be more Bourne compatible
21049 DUALCASE=1; export DUALCASE # for MKS sh
21050 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21051 then :
21052 emulate sh
21053 NULLCMD=:
21054 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21055 # is contrary to our usage. Disable this feature.
21056 alias -g '${1+"$@"}'='"$@"'
21057 setopt NO_GLOB_SUBST
21058 else case e in #(
21059 e) case `(set -o) 2>/dev/null` in #(
21060 *posix*) :
21061 set -o posix ;; #(
21062 *) :
21063 ;;
21064 esac ;;
21065 esac
21066 fi
21067
21068
21069
21070 # Reset variables that may have inherited troublesome values from
21071 # the environment.
21072
21073 # IFS needs to be set, to space, tab, and newline, in precisely that order.
21074 # (If _AS_PATH_WALK were called with IFS unset, it would have the
21075 # side effect of setting IFS to empty, thus disabling word splitting.)
21076 # Quoting is to prevent editors from complaining about space-tab.
21077 as_nl='
21078 '
21079 export as_nl
21080 IFS=" "" $as_nl"
21081
21082 PS1='$ '
21083 PS2='> '
21084 PS4='+ '
21085
21086 # Ensure predictable behavior from utilities with locale-dependent output.
21087 LC_ALL=C
21088 export LC_ALL
21089 LANGUAGE=C
21090 export LANGUAGE
21091
21092 # We cannot yet rely on "unset" to work, but we need these variables
21093 # to be unset--not just set to an empty or harmless value--now, to
21094 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
21095 # also avoids known problems related to "unset" and subshell syntax
21096 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
21097 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
21098 do eval test \${$as_var+y} \
21099 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21100 done
21101
21102 # Ensure that fds 0, 1, and 2 are open.
21103 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
21104 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
21105 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
21106
21107 # The user is always right.
21108 if ${PATH_SEPARATOR+false} :; then
21109 PATH_SEPARATOR=:
21110 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21111 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21112 PATH_SEPARATOR=';'
21113 }
21114 fi
21115
21116
21117 # Find who we are. Look in the path if we contain no directory separator.
21118 as_myself=
21119 case $0 in #((
21120 *[\\/]* ) as_myself=$0 ;;
21121 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21122 for as_dir in $PATH
21123 do
21124 IFS=$as_save_IFS
21125 case $as_dir in #(((
21126 '') as_dir=./ ;;
21127 */) ;;
21128 *) as_dir=$as_dir/ ;;
21129 esac
21130 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
21131 done
21132 IFS=$as_save_IFS
21133
21134 ;;
21135 esac
21136 # We did not find ourselves, most probably we were run as 'sh COMMAND'
21137 # in which case we are not to be found in the path.
21138 if test "x$as_myself" = x; then
21139 as_myself=$0
21140 fi
21141 if test ! -f "$as_myself"; then
21142 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21143 exit 1
21144 fi
21145
21146
21147
21148 # as_fn_error STATUS ERROR [LINENO LOG_FD]
21149 # ----------------------------------------
21150 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21151 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21152 # script with STATUS, using 1 if that was 0.
21153 as_fn_error ()
21154 {
21155 as_status=$1; test $as_status -eq 0 && as_status=1
21156 if test "$4"; then
21157 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21158 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21159 fi
21160 printf "%s\n" "$as_me: error: $2" >&2
21161 as_fn_exit $as_status
21162 } # as_fn_error
21163
21164
21165 # as_fn_set_status STATUS
21166 # -----------------------
21167 # Set $? to STATUS, without forking.
21168 as_fn_set_status ()
21169 {
21170 return $1
21171 } # as_fn_set_status
21172
21173 # as_fn_exit STATUS
21174 # -----------------
21175 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21176 as_fn_exit ()
21177 {
21178 set +e
21179 as_fn_set_status $1
21180 exit $1
21181 } # as_fn_exit
21182
21183 # as_fn_unset VAR
21184 # ---------------
21185 # Portably unset VAR.
21186 as_fn_unset ()
21187 {
21188 { eval $1=; unset $1;}
21189 }
21190 as_unset=as_fn_unset
21191
21192 # as_fn_append VAR VALUE
21193 # ----------------------
21194 # Append the text in VALUE to the end of the definition contained in VAR. Take
21195 # advantage of any shell optimizations that allow amortized linear growth over
21196 # repeated appends, instead of the typical quadratic growth present in naive
21197 # implementations.
21198 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
21199 then :
21200 eval 'as_fn_append ()
21201 {
21202 eval $1+=\$2
21203 }'
21204 else case e in #(
21205 e) as_fn_append ()
21206 {
21207 eval $1=\$$1\$2
21208 } ;;
21209 esac
21210 fi # as_fn_append
21211
21212 # as_fn_arith ARG...
21213 # ------------------
21214 # Perform arithmetic evaluation on the ARGs, and store the result in the
21215 # global $as_val. Take advantage of shells that can avoid forks. The arguments
21216 # must be portable across $(()) and expr.
21217 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
21218 then :
21219 eval 'as_fn_arith ()
21220 {
21221 as_val=$(( $* ))
21222 }'
21223 else case e in #(
21224 e) as_fn_arith ()
21225 {
21226 as_val=`expr "$@" || test $? -eq 1`
21227 } ;;
21228 esac
21229 fi # as_fn_arith
21230
21231
21232 if expr a : '\(a\)' >/dev/null 2>&1 &&
21233 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21234 as_expr=expr
21235 else
21236 as_expr=false
21237 fi
21238
21239 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21240 as_basename=basename
21241 else
21242 as_basename=false
21243 fi
21244
21245 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21246 as_dirname=dirname
21247 else
21248 as_dirname=false
21249 fi
21250
21251 as_me=`$as_basename -- "$0" ||
21252 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21253 X"$0" : 'X\(//\)$' \| \
21254 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21255 printf "%s\n" X/"$0" |
21256 sed '/^.*\/\([^/][^/]*\)\/*$/{
21257 s//\1/
21258 q
21259 }
21260 /^X\/\(\/\/\)$/{
21261 s//\1/
21262 q
21263 }
21264 /^X\/\(\/\).*/{
21265 s//\1/
21266 q
21267 }
21268 s/.*/./; q'`
21269
21270 # Avoid depending upon Character Ranges.
21271 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21272 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21273 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21274 as_cr_digits='0123456789'
21275 as_cr_alnum=$as_cr_Letters$as_cr_digits
21276
21277
21278 # Determine whether it's possible to make 'echo' print without a newline.
21279 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
21280 # for compatibility with existing Makefiles.
21281 ECHO_C= ECHO_N= ECHO_T=
21282 case `echo -n x` in #(((((
21283 -n*)
21284 case `echo 'xy\c'` in
21285 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21286 xy) ECHO_C='\c';;
21287 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
21288 ECHO_T=' ';;
21289 esac;;
21290 *)
21291 ECHO_N='-n';;
21292 esac
21293
21294 # For backward compatibility with old third-party macros, we provide
21295 # the shell variables $as_echo and $as_echo_n. New code should use
21296 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
21297 as_echo='printf %s\n'
21298 as_echo_n='printf %s'
21299
21300 rm -f conf$$ conf$$.exe conf$$.file
21301 if test -d conf$$.dir; then
21302 rm -f conf$$.dir/conf$$.file
21303 else
21304 rm -f conf$$.dir
21305 mkdir conf$$.dir 2>/dev/null
21306 fi
21307 if (echo >conf$$.file) 2>/dev/null; then
21308 if ln -s conf$$.file conf$$ 2>/dev/null; then
21309 as_ln_s='ln -s'
21310 # ... but there are two gotchas:
21311 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
21312 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
21313 # In both cases, we have to default to 'cp -pR'.
21314 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21315 as_ln_s='cp -pR'
21316 elif ln conf$$.file conf$$ 2>/dev/null; then
21317 as_ln_s=ln
21318 else
21319 as_ln_s='cp -pR'
21320 fi
21321 else
21322 as_ln_s='cp -pR'
21323 fi
21324 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21325 rmdir conf$$.dir 2>/dev/null
21326
21327
21328 # as_fn_mkdir_p
21329 # -------------
21330 # Create "$as_dir" as a directory, including parents if necessary.
21331 as_fn_mkdir_p ()
21332 {
21333
21334 case $as_dir in #(
21335 -*) as_dir=./$as_dir;;
21336 esac
21337 test -d "$as_dir" || eval $as_mkdir_p || {
21338 as_dirs=
21339 while :; do
21340 case $as_dir in #(
21341 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21342 *) as_qdir=$as_dir;;
21343 esac
21344 as_dirs="'$as_qdir' $as_dirs"
21345 as_dir=`$as_dirname -- "$as_dir" ||
21346 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21347 X"$as_dir" : 'X\(//\)[^/]' \| \
21348 X"$as_dir" : 'X\(//\)$' \| \
21349 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21350 printf "%s\n" X"$as_dir" |
21351 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21352 s//\1/
21353 q
21354 }
21355 /^X\(\/\/\)[^/].*/{
21356 s//\1/
21357 q
21358 }
21359 /^X\(\/\/\)$/{
21360 s//\1/
21361 q
21362 }
21363 /^X\(\/\).*/{
21364 s//\1/
21365 q
21366 }
21367 s/.*/./; q'`
21368 test -d "$as_dir" && break
21369 done
21370 test -z "$as_dirs" || eval "mkdir $as_dirs"
21371 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21372
21373
21374 } # as_fn_mkdir_p
21375 if mkdir -p . 2>/dev/null; then
21376 as_mkdir_p='mkdir -p "$as_dir"'
21377 else
21378 test -d ./-p && rmdir ./-p
21379 as_mkdir_p=false
21380 fi
21381
21382
21383 # as_fn_executable_p FILE
21384 # -----------------------
21385 # Test if FILE is an executable regular file.
21386 as_fn_executable_p ()
21387 {
21388 test -f "$1" && test -x "$1"
21389 } # as_fn_executable_p
21390 as_test_x='test -x'
21391 as_executable_p=as_fn_executable_p
21392
21393 # Sed expression to map a string onto a valid CPP name.
21394 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
21395 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
21396
21397 # Sed expression to map a string onto a valid variable name.
21398 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
21399 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
21400
21401
21402 exec 6>&1
21403 ## --------------------------------- ##
21404 ## Main body of "$CONFIG_LT" script. ##
21405 ## --------------------------------- ##
21406 _ASEOF
21407 test $as_write_fail = 0 && chmod +x "$CONFIG_LT"
21408
21409 cat >>"$CONFIG_LT" <<\_LTEOF
21410 lt_cl_silent=false
21411 exec 5>>config.log
21412 {
21413 echo
21414 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21415 ## Running $as_me. ##
21416 _ASBOX
21417 } >&5
21418
21419 lt_cl_help="\
21420 '$as_me' creates a local libtool stub from the current configuration,
21421 for use in further configure time tests before the real libtool is
21422 generated.
21423
21424 Usage: $0 [OPTIONS]
21425
21426 -h, --help print this help, then exit
21427 -V, --version print version number, then exit
21428 -q, --quiet do not print progress messages
21429 -d, --debug don't remove temporary files
21430
21431 Report bugs to <[email protected]>."
21432
21433 lt_cl_version="\
21434 xdvipsk (TeX Live) config.lt 2026.1
21435 configured by $0, generated by GNU Autoconf 2.72.
21436
21437 Copyright (C) 2024 Free Software Foundation, Inc.
21438 This config.lt script is free software; the Free Software Foundation
21439 gives unlimited permission to copy, distribute and modify it."
21440
21441 while test 0 != $#
21442 do
21443 case $1 in
21444 --version | --v* | -V )
21445 echo "$lt_cl_version"; exit 0 ;;
21446 --help | --h* | -h )
21447 echo "$lt_cl_help"; exit 0 ;;
21448 --debug | --d* | -d )
21449 debug=: ;;
21450 --quiet | --q* | --silent | --s* | -q )
21451 lt_cl_silent=: ;;
21452
21453 -*) as_fn_error $? "unrecognized option: $1
21454 Try '$0 --help' for more information." "$LINENO" 5 ;;
21455
21456 *) as_fn_error $? "unrecognized argument: $1
21457 Try '$0 --help' for more information." "$LINENO" 5 ;;
21458 esac
21459 shift
21460 done
21461
21462 if $lt_cl_silent; then
21463 exec 6>/dev/null
21464 fi
21465 _LTEOF
21466
21467 cat >>"$CONFIG_LT" <<_LTEOF
21468
21469
21470 # The HP-UX ksh and POSIX shell print the target directory to stdout
21471 # if CDPATH is set.
21472 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21473
21474 sed_quote_subst='$sed_quote_subst'
21475 double_quote_subst='$double_quote_subst'
21476 delay_variable_subst='$delay_variable_subst'
21477 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21478 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21479 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
21480 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21481 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21482 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21483 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21484 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21485 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21486 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
21487 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21488 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21489 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
21490 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21491 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21492 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21493 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21494 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21495 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21496 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21497 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21498 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21499 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21500 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21501 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21502 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21503 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21504 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21505 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21506 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21507 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21508 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21509 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21510 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21511 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21512 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21513 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21514 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
21515 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21516 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21517 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21518 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21519 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21520 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21521 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
21522 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21523 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21524 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21525 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21526 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21527 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21528 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21529 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21530 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21531 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21532 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21533 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21534 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21535 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21536 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
21537 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21538 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"`'
21539 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
21540 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21541 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21542 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
21543 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21544 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21545 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21546 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21547 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21548 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21549 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21550 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21551 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21552 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21553 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21554 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21555 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21556 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21557 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21558 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21559 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21560 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21561 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21562 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21563 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21564 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21565 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21566 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21567 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21568 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21569 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21570 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21571 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21572 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21573 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21574 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21575 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21576 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21577 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21578 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21579 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21580 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21581 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21582 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21583 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21584 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21585 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21586 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21587 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21588 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21589 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21590 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21591 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21592 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21593 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21594 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21595 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21596 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21597 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21598 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21599 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21600 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21601 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21602 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21603 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21604 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21605 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21606 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21607 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
21608 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
21609 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21610 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21611 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21612 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21613 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21614 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21615 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
21616 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
21617 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
21618 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
21619 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
21620 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
21621 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
21622 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
21623 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21624 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21625 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
21626 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
21627 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
21628 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
21629 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
21630 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
21631 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
21632 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
21633 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
21634 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21635 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21636 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
21637 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21638 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21639 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21640 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21641 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21642 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21643 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
21644 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
21645 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
21646 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21647 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
21648 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
21649 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
21650 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
21651 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
21652 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
21653 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
21654 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
21655 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
21656 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21657 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
21658 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
21659 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21660 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21661 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
21662 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
21663 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
21664 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
21665 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
21666 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
21667 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
21668 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
21669
21670 LTCC='$LTCC'
21671 LTCFLAGS='$LTCFLAGS'
21672 compiler='$compiler_DEFAULT'
21673
21674 # A function that is used when there is no print builtin or printf.
21675 func_fallback_echo ()
21676 {
21677 eval 'cat <<_LTECHO_EOF
21678 \$1
21679 _LTECHO_EOF'
21680 }
21681
21682 # Quote evaled strings.
21683 for var in AS \
21684 DLLTOOL \
21685 OBJDUMP \
21686 SHELL \
21687 ECHO \
21688 PATH_SEPARATOR \
21689 SED \
21690 GREP \
21691 EGREP \
21692 FGREP \
21693 LD \
21694 NM \
21695 LN_S \
21696 lt_SP2NL \
21697 lt_NL2SP \
21698 reload_flag \
21699 FILECMD \
21700 deplibs_check_method \
21701 file_magic_cmd \
21702 file_magic_glob \
21703 want_nocaseglob \
21704 sharedlib_from_linklib_cmd \
21705 AR \
21706 archiver_list_spec \
21707 STRIP \
21708 RANLIB \
21709 CC \
21710 CFLAGS \
21711 compiler \
21712 lt_cv_sys_global_symbol_pipe \
21713 lt_cv_sys_global_symbol_to_cdecl \
21714 lt_cv_sys_global_symbol_to_import \
21715 lt_cv_sys_global_symbol_to_c_name_address \
21716 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21717 lt_cv_nm_interface \
21718 nm_file_list_spec \
21719 lt_cv_truncate_bin \
21720 lt_prog_compiler_no_builtin_flag \
21721 lt_prog_compiler_pic \
21722 lt_prog_compiler_wl \
21723 lt_prog_compiler_static \
21724 lt_cv_prog_compiler_c_o \
21725 need_locks \
21726 MANIFEST_TOOL \
21727 DSYMUTIL \
21728 NMEDIT \
21729 LIPO \
21730 OTOOL \
21731 OTOOL64 \
21732 shrext_cmds \
21733 export_dynamic_flag_spec \
21734 whole_archive_flag_spec \
21735 compiler_needs_object \
21736 with_gnu_ld \
21737 allow_undefined_flag \
21738 no_undefined_flag \
21739 hardcode_libdir_flag_spec \
21740 hardcode_libdir_separator \
21741 exclude_expsyms \
21742 include_expsyms \
21743 file_list_spec \
21744 variables_saved_for_relink \
21745 libname_spec \
21746 library_names_spec \
21747 soname_spec \
21748 install_override_mode \
21749 finish_eval \
21750 old_striplib \
21751 striplib \
21752 compiler_lib_search_dirs \
21753 predep_objects \
21754 postdep_objects \
21755 predeps \
21756 postdeps \
21757 compiler_lib_search_path \
21758 LD_CXX \
21759 reload_flag_CXX \
21760 compiler_CXX \
21761 lt_prog_compiler_no_builtin_flag_CXX \
21762 lt_prog_compiler_pic_CXX \
21763 lt_prog_compiler_wl_CXX \
21764 lt_prog_compiler_static_CXX \
21765 lt_cv_prog_compiler_c_o_CXX \
21766 export_dynamic_flag_spec_CXX \
21767 whole_archive_flag_spec_CXX \
21768 compiler_needs_object_CXX \
21769 with_gnu_ld_CXX \
21770 allow_undefined_flag_CXX \
21771 no_undefined_flag_CXX \
21772 hardcode_libdir_flag_spec_CXX \
21773 hardcode_libdir_separator_CXX \
21774 exclude_expsyms_CXX \
21775 include_expsyms_CXX \
21776 file_list_spec_CXX \
21777 compiler_lib_search_dirs_CXX \
21778 predep_objects_CXX \
21779 postdep_objects_CXX \
21780 predeps_CXX \
21781 postdeps_CXX \
21782 compiler_lib_search_path_CXX; do
21783 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21784 *[\\\\\\\`\\"\\\$]*)
21785 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21786 ;;
21787 *)
21788 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21789 ;;
21790 esac
21791 done
21792
21793 # Double-quote double-evaled strings.
21794 for var in reload_cmds \
21795 old_postinstall_cmds \
21796 old_postuninstall_cmds \
21797 old_archive_cmds \
21798 extract_expsyms_cmds \
21799 old_archive_from_new_cmds \
21800 old_archive_from_expsyms_cmds \
21801 archive_cmds \
21802 archive_expsym_cmds \
21803 module_cmds \
21804 module_expsym_cmds \
21805 export_symbols_cmds \
21806 prelink_cmds \
21807 postlink_cmds \
21808 postinstall_cmds \
21809 postuninstall_cmds \
21810 finish_cmds \
21811 sys_lib_search_path_spec \
21812 configure_time_dlsearch_path \
21813 configure_time_lt_sys_library_path \
21814 reload_cmds_CXX \
21815 old_archive_cmds_CXX \
21816 old_archive_from_new_cmds_CXX \
21817 old_archive_from_expsyms_cmds_CXX \
21818 archive_cmds_CXX \
21819 archive_expsym_cmds_CXX \
21820 module_cmds_CXX \
21821 module_expsym_cmds_CXX \
21822 export_symbols_cmds_CXX \
21823 prelink_cmds_CXX \
21824 postlink_cmds_CXX; do
21825 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21826 *[\\\\\\\`\\"\\\$]*)
21827 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21828 ;;
21829 *)
21830 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21831 ;;
21832 esac
21833 done
21834
21835 ac_aux_dir='$ac_aux_dir'
21836
21837 # See if we are running on zsh, and set the options that allow our
21838 # commands through without removal of \ escapes INIT.
21839 if test -n "\${ZSH_VERSION+set}"; then
21840 setopt NO_GLOB_SUBST
21841 fi
21842
21843
21844 PACKAGE='$PACKAGE'
21845 VERSION='$VERSION'
21846 RM='$RM'
21847 ofile='$ofile'
21848
21849
21850
21851
21852
21853 _LTEOF
21854
21855 cat >>"$CONFIG_LT" <<\_LTEOF
21856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
21857 printf "%s\n" "$as_me: creating $ofile" >&6;}
21858
21859
21860 # See if we are running on zsh, and set the options that allow our
21861 # commands through without removal of \ escapes.
21862 if test -n "${ZSH_VERSION+set}"; then
21863 setopt NO_GLOB_SUBST
21864 fi
21865
21866 cfgfile=${ofile}T
21867 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21868 $RM "$cfgfile"
21869
21870 cat <<_LT_EOF >> "$cfgfile"
21871 #! $SHELL
21872 # Generated automatically by $as_me ($PACKAGE) $VERSION
21873 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21874
21875 # Provide generalized library-building support services.
21876 # Written by Gordon Matzigkeit, 1996
21877
21878 # Copyright (C) 2024 Free Software Foundation, Inc.
21879 # This is free software; see the source for copying conditions. There is NO
21880 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21881
21882 # GNU Libtool is free software; you can redistribute it and/or modify
21883 # it under the terms of the GNU General Public License as published by
21884 # the Free Software Foundation; either version 2 of the License, or
21885 # (at your option) any later version.
21886 #
21887 # As a special exception to the GNU General Public License, if you
21888 # distribute this file as part of a program or library that is built
21889 # using GNU Libtool, you may include this file under the same
21890 # distribution terms that you use for the rest of that program.
21891 #
21892 # GNU Libtool is distributed in the hope that it will be useful, but
21893 # WITHOUT ANY WARRANTY; without even the implied warranty of
21894 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21895 # GNU General Public License for more details.
21896 #
21897 # You should have received a copy of the GNU General Public License
21898 # along with this program. If not, see <http://www.gnu.org/licenses/>.
21899
21900
21901 # The names of the tagged configurations supported by this script.
21902 available_tags='CXX '
21903
21904 # Configured defaults for sys_lib_dlsearch_path munging.
21905 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21906
21907 # ### BEGIN LIBTOOL CONFIG
21908
21909 # Which release of libtool.m4 was used?
21910 macro_version=$macro_version
21911 macro_revision=$macro_revision
21912
21913 # Assembler program.
21914 AS=$lt_AS
21915
21916 # DLL creation program.
21917 DLLTOOL=$lt_DLLTOOL
21918
21919 # Object dumper program.
21920 OBJDUMP=$lt_OBJDUMP
21921
21922 # Whether or not to build shared libraries.
21923 build_libtool_libs=$enable_shared
21924
21925 # Whether or not to build static libraries.
21926 build_old_libs=$enable_static
21927
21928 # What type of objects to build.
21929 pic_mode=$pic_mode
21930
21931 # Whether or not to optimize for fast installation.
21932 fast_install=$enable_fast_install
21933
21934 # Shared archive member basename,for filename based shared library versioning on AIX.
21935 shared_archive_member_spec=$shared_archive_member_spec
21936
21937 # Shell to use when invoking shell scripts.
21938 SHELL=$lt_SHELL
21939
21940 # An echo program that protects backslashes.
21941 ECHO=$lt_ECHO
21942
21943 # The PATH separator for the build system.
21944 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21945
21946 # The host system.
21947 host_alias=$host_alias
21948 host=$host
21949 host_os=$host_os
21950
21951 # The build system.
21952 build_alias=$build_alias
21953 build=$build
21954 build_os=$build_os
21955
21956 # A sed program that does not truncate output.
21957 SED=$lt_SED
21958
21959 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21960 Xsed="\$SED -e 1s/^X//"
21961
21962 # A grep program that handles long lines.
21963 GREP=$lt_GREP
21964
21965 # An ERE matcher.
21966 EGREP=$lt_EGREP
21967
21968 # A literal string matcher.
21969 FGREP=$lt_FGREP
21970
21971 # A BSD- or MS-compatible name lister.
21972 NM=$lt_NM
21973
21974 # Whether we need soft or hard links.
21975 LN_S=$lt_LN_S
21976
21977 # What is the maximum length of a command?
21978 max_cmd_len=$max_cmd_len
21979
21980 # Object file suffix (normally "o").
21981 objext=$ac_objext
21982
21983 # Executable file suffix (normally "").
21984 exeext=$exeext
21985
21986 # whether the shell understands "unset".
21987 lt_unset=$lt_unset
21988
21989 # turn spaces into newlines.
21990 SP2NL=$lt_lt_SP2NL
21991
21992 # turn newlines into spaces.
21993 NL2SP=$lt_lt_NL2SP
21994
21995 # convert \$build file names to \$host format.
21996 to_host_file_cmd=$lt_cv_to_host_file_cmd
21997
21998 # convert \$build files to toolchain format.
21999 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22000
22001 # A file(cmd) program that detects file types.
22002 FILECMD=$lt_FILECMD
22003
22004 # Method to check whether dependent libraries are shared objects.
22005 deplibs_check_method=$lt_deplibs_check_method
22006
22007 # Command to use when deplibs_check_method = "file_magic".
22008 file_magic_cmd=$lt_file_magic_cmd
22009
22010 # How to find potential files when deplibs_check_method = "file_magic".
22011 file_magic_glob=$lt_file_magic_glob
22012
22013 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22014 want_nocaseglob=$lt_want_nocaseglob
22015
22016 # Command to associate shared and link libraries.
22017 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22018
22019 # The archiver.
22020 AR=$lt_AR
22021
22022 # Flags to create an archive (by configure).
22023 lt_ar_flags=$lt_ar_flags
22024
22025 # Flags to create an archive.
22026 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
22027
22028 # How to feed a file listing to the archiver.
22029 archiver_list_spec=$lt_archiver_list_spec
22030
22031 # A symbol stripping program.
22032 STRIP=$lt_STRIP
22033
22034 # Commands used to install an old-style archive.
22035 RANLIB=$lt_RANLIB
22036 old_postinstall_cmds=$lt_old_postinstall_cmds
22037 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22038
22039 # Whether to use a lock for old archive extraction.
22040 lock_old_archive_extraction=$lock_old_archive_extraction
22041
22042 # A C compiler.
22043 LTCC=$lt_CC
22044
22045 # LTCC compiler flags.
22046 LTCFLAGS=$lt_CFLAGS
22047
22048 # Take the output of nm and produce a listing of raw symbols and C names.
22049 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22050
22051 # Transform the output of nm in a proper C declaration.
22052 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22053
22054 # Transform the output of nm into a list of symbols to manually relocate.
22055 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
22056
22057 # Transform the output of nm in a C name address pair.
22058 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22059
22060 # Transform the output of nm in a C name address pair when lib prefix is needed.
22061 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22062
22063 # The name lister interface.
22064 nm_interface=$lt_lt_cv_nm_interface
22065
22066 # Specify filename containing input files for \$NM.
22067 nm_file_list_spec=$lt_nm_file_list_spec
22068
22069 # The root where to search for dependent libraries,and where our libraries should be installed.
22070 lt_sysroot=$lt_sysroot
22071
22072 # Command to truncate a binary pipe.
22073 lt_truncate_bin=$lt_lt_cv_truncate_bin
22074
22075 # The name of the directory that contains temporary libtool files.
22076 objdir=$objdir
22077
22078 # Used to examine libraries when file_magic_cmd begins with "file".
22079 MAGIC_CMD=$MAGIC_CMD
22080
22081 # Must we lock files when doing compilation?
22082 need_locks=$lt_need_locks
22083
22084 # Manifest tool.
22085 MANIFEST_TOOL=$lt_MANIFEST_TOOL
22086
22087 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22088 DSYMUTIL=$lt_DSYMUTIL
22089
22090 # Tool to change global to local symbols on Mac OS X.
22091 NMEDIT=$lt_NMEDIT
22092
22093 # Tool to manipulate fat objects and archives on Mac OS X.
22094 LIPO=$lt_LIPO
22095
22096 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
22097 OTOOL=$lt_OTOOL
22098
22099 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22100 OTOOL64=$lt_OTOOL64
22101
22102 # Old archive suffix (normally "a").
22103 libext=$libext
22104
22105 # Shared library suffix (normally ".so").
22106 shrext_cmds=$lt_shrext_cmds
22107
22108 # The commands to extract the exported symbol list from a shared archive.
22109 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22110
22111 # Variables whose values should be saved in libtool wrapper scripts and
22112 # restored at link time.
22113 variables_saved_for_relink=$lt_variables_saved_for_relink
22114
22115 # Do we need the "lib" prefix for modules?
22116 need_lib_prefix=$need_lib_prefix
22117
22118 # Do we need a version for libraries?
22119 need_version=$need_version
22120
22121 # Library versioning type.
22122 version_type=$version_type
22123
22124 # Shared library runtime path variable.
22125 runpath_var=$runpath_var
22126
22127 # Shared library path variable.
22128 shlibpath_var=$shlibpath_var
22129
22130 # Is shlibpath searched before the hard-coded library search path?
22131 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22132
22133 # Format of library name prefix.
22134 libname_spec=$lt_libname_spec
22135
22136 # List of archive names. First name is the real one, the rest are links.
22137 # The last name is the one that the linker finds with -lNAME
22138 library_names_spec=$lt_library_names_spec
22139
22140 # The coded name of the library, if different from the real name.
22141 soname_spec=$lt_soname_spec
22142
22143 # Permission mode override for installation of shared libraries.
22144 install_override_mode=$lt_install_override_mode
22145
22146 # Command to use after installation of a shared archive.
22147 postinstall_cmds=$lt_postinstall_cmds
22148
22149 # Command to use after uninstallation of a shared archive.
22150 postuninstall_cmds=$lt_postuninstall_cmds
22151
22152 # Commands used to finish a libtool library installation in a directory.
22153 finish_cmds=$lt_finish_cmds
22154
22155 # As "finish_cmds", except a single script fragment to be evaled but
22156 # not shown.
22157 finish_eval=$lt_finish_eval
22158
22159 # Whether we should hardcode library paths into libraries.
22160 hardcode_into_libs=$hardcode_into_libs
22161
22162 # Compile-time system search path for libraries.
22163 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22164
22165 # Detected run-time system search path for libraries.
22166 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
22167
22168 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
22169 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
22170
22171 # Whether dlopen is supported.
22172 dlopen_support=$enable_dlopen
22173
22174 # Whether dlopen of programs is supported.
22175 dlopen_self=$enable_dlopen_self
22176
22177 # Whether dlopen of statically linked programs is supported.
22178 dlopen_self_static=$enable_dlopen_self_static
22179
22180 # Commands to strip libraries.
22181 old_striplib=$lt_old_striplib
22182 striplib=$lt_striplib
22183
22184
22185 # The linker used to build libraries.
22186 LD=$lt_LD
22187
22188 # How to create reloadable object files.
22189 reload_flag=$lt_reload_flag
22190 reload_cmds=$lt_reload_cmds
22191
22192 # Commands used to build an old-style archive.
22193 old_archive_cmds=$lt_old_archive_cmds
22194
22195 # A language specific compiler.
22196 CC=$lt_compiler
22197
22198 # Is the compiler the GNU compiler?
22199 with_gcc=$GCC
22200
22201 # Compiler flag to turn off builtin functions.
22202 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22203
22204 # Additional compiler flags for building library objects.
22205 pic_flag=$lt_lt_prog_compiler_pic
22206
22207 # How to pass a linker flag through the compiler.
22208 wl=$lt_lt_prog_compiler_wl
22209
22210 # Compiler flag to prevent dynamic linking.
22211 link_static_flag=$lt_lt_prog_compiler_static
22212
22213 # Does compiler simultaneously support -c and -o options?
22214 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22215
22216 # Whether or not to add -lc for building shared libraries.
22217 build_libtool_need_lc=$archive_cmds_need_lc
22218
22219 # Whether or not to disallow shared libs when runtime libs are static.
22220 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22221
22222 # Compiler flag to allow reflexive dlopens.
22223 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22224
22225 # Compiler flag to generate shared objects directly from archives.
22226 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22227
22228 # Whether the compiler copes with passing no objects directly.
22229 compiler_needs_object=$lt_compiler_needs_object
22230
22231 # Create an old-style archive from a shared archive.
22232 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22233
22234 # Create a temporary old-style archive to link instead of a shared archive.
22235 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22236
22237 # Commands used to build a shared archive.
22238 archive_cmds=$lt_archive_cmds
22239 archive_expsym_cmds=$lt_archive_expsym_cmds
22240
22241 # Commands used to build a loadable module if different from building
22242 # a shared archive.
22243 module_cmds=$lt_module_cmds
22244 module_expsym_cmds=$lt_module_expsym_cmds
22245
22246 # Whether we are building with GNU ld or not.
22247 with_gnu_ld=$lt_with_gnu_ld
22248
22249 # Flag that allows shared libraries with undefined symbols to be built.
22250 allow_undefined_flag=$lt_allow_undefined_flag
22251
22252 # Flag that enforces no undefined symbols.
22253 no_undefined_flag=$lt_no_undefined_flag
22254
22255 # Flag to hardcode \$libdir into a binary during linking.
22256 # This must work even if \$libdir does not exist
22257 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22258
22259 # Whether we need a single "-rpath" flag with a separated argument.
22260 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22261
22262 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22263 # DIR into the resulting binary.
22264 hardcode_direct=$hardcode_direct
22265
22266 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22267 # DIR into the resulting binary and the resulting library dependency is
22268 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
22269 # library is relocated.
22270 hardcode_direct_absolute=$hardcode_direct_absolute
22271
22272 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22273 # into the resulting binary.
22274 hardcode_minus_L=$hardcode_minus_L
22275
22276 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22277 # into the resulting binary.
22278 hardcode_shlibpath_var=$hardcode_shlibpath_var
22279
22280 # Set to "yes" if building a shared library automatically hardcodes DIR
22281 # into the library and all subsequent libraries and executables linked
22282 # against it.
22283 hardcode_automatic=$hardcode_automatic
22284
22285 # Set to yes if linker adds runtime paths of dependent libraries
22286 # to runtime path list.
22287 inherit_rpath=$inherit_rpath
22288
22289 # Whether libtool must link a program against all its dependency libraries.
22290 link_all_deplibs=$link_all_deplibs
22291
22292 # Set to "yes" if exported symbols are required.
22293 always_export_symbols=$always_export_symbols
22294
22295 # The commands to list exported symbols.
22296 export_symbols_cmds=$lt_export_symbols_cmds
22297
22298 # Symbols that should not be listed in the preloaded symbols.
22299 exclude_expsyms=$lt_exclude_expsyms
22300
22301 # Symbols that must always be exported.
22302 include_expsyms=$lt_include_expsyms
22303
22304 # Commands necessary for linking programs (against libraries) with templates.
22305 prelink_cmds=$lt_prelink_cmds
22306
22307 # Commands necessary for finishing linking programs.
22308 postlink_cmds=$lt_postlink_cmds
22309
22310 # Specify filename containing input files.
22311 file_list_spec=$lt_file_list_spec
22312
22313 # How to hardcode a shared library path into an executable.
22314 hardcode_action=$hardcode_action
22315
22316 # The directories searched by this compiler when creating a shared library.
22317 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
22318
22319 # Dependencies to place before and after the objects being linked to
22320 # create a shared library.
22321 predep_objects=$lt_predep_objects
22322 postdep_objects=$lt_postdep_objects
22323 predeps=$lt_predeps
22324 postdeps=$lt_postdeps
22325
22326 # The library search path used internally by the compiler when linking
22327 # a shared library.
22328 compiler_lib_search_path=$lt_compiler_lib_search_path
22329
22330 # ### END LIBTOOL CONFIG
22331
22332 _LT_EOF
22333
22334 cat <<'_LT_EOF' >> "$cfgfile"
22335
22336 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
22337
22338 # func_munge_path_list VARIABLE PATH
22339 # -----------------------------------
22340 # VARIABLE is name of variable containing _space_ separated list of
22341 # directories to be munged by the contents of PATH, which is string
22342 # having a format:
22343 # "DIR[:DIR]:"
22344 # string "DIR[ DIR]" will be prepended to VARIABLE
22345 # ":DIR[:DIR]"
22346 # string "DIR[ DIR]" will be appended to VARIABLE
22347 # "DIRP[:DIRP]::[DIRA:]DIRA"
22348 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
22349 # "DIRA[ DIRA]" will be appended to VARIABLE
22350 # "DIR[:DIR]"
22351 # VARIABLE will be replaced by "DIR[ DIR]"
22352 func_munge_path_list ()
22353 {
22354 case x$2 in
22355 x)
22356 ;;
22357 *:)
22358 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
22359 ;;
22360 x:*)
22361 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
22362 ;;
22363 *::*)
22364 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
22365 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
22366 ;;
22367 *)
22368 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
22369 ;;
22370 esac
22371 }
22372
22373
22374 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
22375 func_cc_basename ()
22376 {
22377 for cc_temp in $*""; do
22378 case $cc_temp in
22379 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22380 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22381 \-*) ;;
22382 *) break;;
22383 esac
22384 done
22385 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
22386 }
22387
22388
22389 # ### END FUNCTIONS SHARED WITH CONFIGURE
22390
22391 _LT_EOF
22392
22393 case $host_os in
22394 aix3*)
22395 cat <<\_LT_EOF >> "$cfgfile"
22396 # AIX sometimes has problems with the GCC collect2 program. For some
22397 # reason, if we set the COLLECT_NAMES environment variable, the problems
22398 # vanish in a puff of smoke.
22399 if test set != "${COLLECT_NAMES+set}"; then
22400 COLLECT_NAMES=
22401 export COLLECT_NAMES
22402 fi
22403 _LT_EOF
22404 ;;
22405 esac
22406
22407
22408
22409 ltmain=$ac_aux_dir/ltmain.sh
22410
22411
22412 # We use sed instead of cat because bash on DJGPP gets confused if
22413 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22414 # text mode, it properly converts lines to CR/LF. This bash problem
22415 # is reportedly fixed, but why not run on old versions too?
22416 $SED '$q' "$ltmain" >> "$cfgfile" \
22417 || (rm -f "$cfgfile"; exit 1)
22418
22419 mv -f "$cfgfile" "$ofile" ||
22420 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22421 chmod +x "$ofile"
22422
22423
22424 cat <<_LT_EOF >> "$ofile"
22425
22426 # ### BEGIN LIBTOOL TAG CONFIG: CXX
22427
22428 # The linker used to build libraries.
22429 LD=$lt_LD_CXX
22430
22431 # How to create reloadable object files.
22432 reload_flag=$lt_reload_flag_CXX
22433 reload_cmds=$lt_reload_cmds_CXX
22434
22435 # Commands used to build an old-style archive.
22436 old_archive_cmds=$lt_old_archive_cmds_CXX
22437
22438 # A language specific compiler.
22439 CC=$lt_compiler_CXX
22440
22441 # Is the compiler the GNU compiler?
22442 with_gcc=$GCC_CXX
22443
22444 # Compiler flag to turn off builtin functions.
22445 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
22446
22447 # Additional compiler flags for building library objects.
22448 pic_flag=$lt_lt_prog_compiler_pic_CXX
22449
22450 # How to pass a linker flag through the compiler.
22451 wl=$lt_lt_prog_compiler_wl_CXX
22452
22453 # Compiler flag to prevent dynamic linking.
22454 link_static_flag=$lt_lt_prog_compiler_static_CXX
22455
22456 # Does compiler simultaneously support -c and -o options?
22457 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
22458
22459 # Whether or not to add -lc for building shared libraries.
22460 build_libtool_need_lc=$archive_cmds_need_lc_CXX
22461
22462 # Whether or not to disallow shared libs when runtime libs are static.
22463 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
22464
22465 # Compiler flag to allow reflexive dlopens.
22466 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
22467
22468 # Compiler flag to generate shared objects directly from archives.
22469 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
22470
22471 # Whether the compiler copes with passing no objects directly.
22472 compiler_needs_object=$lt_compiler_needs_object_CXX
22473
22474 # Create an old-style archive from a shared archive.
22475 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
22476
22477 # Create a temporary old-style archive to link instead of a shared archive.
22478 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
22479
22480 # Commands used to build a shared archive.
22481 archive_cmds=$lt_archive_cmds_CXX
22482 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
22483
22484 # Commands used to build a loadable module if different from building
22485 # a shared archive.
22486 module_cmds=$lt_module_cmds_CXX
22487 module_expsym_cmds=$lt_module_expsym_cmds_CXX
22488
22489 # Whether we are building with GNU ld or not.
22490 with_gnu_ld=$lt_with_gnu_ld_CXX
22491
22492 # Flag that allows shared libraries with undefined symbols to be built.
22493 allow_undefined_flag=$lt_allow_undefined_flag_CXX
22494
22495 # Flag that enforces no undefined symbols.
22496 no_undefined_flag=$lt_no_undefined_flag_CXX
22497
22498 # Flag to hardcode \$libdir into a binary during linking.
22499 # This must work even if \$libdir does not exist
22500 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
22501
22502 # Whether we need a single "-rpath" flag with a separated argument.
22503 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
22504
22505 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22506 # DIR into the resulting binary.
22507 hardcode_direct=$hardcode_direct_CXX
22508
22509 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22510 # DIR into the resulting binary and the resulting library dependency is
22511 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
22512 # library is relocated.
22513 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
22514
22515 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22516 # into the resulting binary.
22517 hardcode_minus_L=$hardcode_minus_L_CXX
22518
22519 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22520 # into the resulting binary.
22521 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
22522
22523 # Set to "yes" if building a shared library automatically hardcodes DIR
22524 # into the library and all subsequent libraries and executables linked
22525 # against it.
22526 hardcode_automatic=$hardcode_automatic_CXX
22527
22528 # Set to yes if linker adds runtime paths of dependent libraries
22529 # to runtime path list.
22530 inherit_rpath=$inherit_rpath_CXX
22531
22532 # Whether libtool must link a program against all its dependency libraries.
22533 link_all_deplibs=$link_all_deplibs_CXX
22534
22535 # Set to "yes" if exported symbols are required.
22536 always_export_symbols=$always_export_symbols_CXX
22537
22538 # The commands to list exported symbols.
22539 export_symbols_cmds=$lt_export_symbols_cmds_CXX
22540
22541 # Symbols that should not be listed in the preloaded symbols.
22542 exclude_expsyms=$lt_exclude_expsyms_CXX
22543
22544 # Symbols that must always be exported.
22545 include_expsyms=$lt_include_expsyms_CXX
22546
22547 # Commands necessary for linking programs (against libraries) with templates.
22548 prelink_cmds=$lt_prelink_cmds_CXX
22549
22550 # Commands necessary for finishing linking programs.
22551 postlink_cmds=$lt_postlink_cmds_CXX
22552
22553 # Specify filename containing input files.
22554 file_list_spec=$lt_file_list_spec_CXX
22555
22556 # How to hardcode a shared library path into an executable.
22557 hardcode_action=$hardcode_action_CXX
22558
22559 # The directories searched by this compiler when creating a shared library.
22560 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
22561
22562 # Dependencies to place before and after the objects being linked to
22563 # create a shared library.
22564 predep_objects=$lt_predep_objects_CXX
22565 postdep_objects=$lt_postdep_objects_CXX
22566 predeps=$lt_predeps_CXX
22567 postdeps=$lt_postdeps_CXX
22568
22569 # The library search path used internally by the compiler when linking
22570 # a shared library.
22571 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
22572
22573 # ### END LIBTOOL TAG CONFIG: CXX
22574 _LT_EOF
22575
22576
22577 as_fn_exit 0
22578 _LTEOF
22579 chmod +x "$CONFIG_LT"
22580
22581 # configure is writing to config.log, but config.lt does its own redirection,
22582 # appending to config.log, which fails on DOS, as config.log is still kept
22583 # open by configure. Here we exec the FD to /dev/null, effectively closing
22584 # config.log, so it can be properly (re)opened and appended to by config.lt.
22585 lt_cl_success=:
22586 test yes = "$silent" &&
22587 lt_config_lt_args="$lt_config_lt_args --quiet"
22588 exec 5>/dev/null
22589 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
22590 exec 5>>config.log
22591 $lt_cl_success || as_fn_exit 1
22592
22593 #
22594 #
22595 ac_ext=c
22596 ac_cpp='$CPP $CPPFLAGS'
22597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22599 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22600 ac_link="./libtool --mode=link --tag=CC $ac_link"
22601
22602 if test -n "$ac_tool_prefix"; then
22603 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22604 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22606 printf %s "checking for $ac_word... " >&6; }
22607 if test ${ac_cv_prog_PKG_CONFIG+y}
22608 then :
22609 printf %s "(cached) " >&6
22610 else case e in #(
22611 e) if test -n "$PKG_CONFIG"; then
22612 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
22613 else
22614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22615 for as_dir in $PATH
22616 do
22617 IFS=$as_save_IFS
22618 case $as_dir in #(((
22619 '') as_dir=./ ;;
22620 */) ;;
22621 *) as_dir=$as_dir/ ;;
22622 esac
22623 for ac_exec_ext in '' $ac_executable_extensions; do
22624 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
22625 ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
22626 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
22627 break 2
22628 fi
22629 done
22630 done
22631 IFS=$as_save_IFS
22632
22633 fi ;;
22634 esac
22635 fi
22636 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
22637 if test -n "$PKG_CONFIG"; then
22638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22639 printf "%s\n" "$PKG_CONFIG" >&6; }
22640 else
22641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22642 printf "%s\n" "no" >&6; }
22643 fi
22644
22645
22646 fi
22647 if test -z "$ac_cv_prog_PKG_CONFIG"; then
22648 ac_ct_PKG_CONFIG=$PKG_CONFIG
22649 # Extract the first word of "pkg-config", so it can be a program name with args.
22650 set dummy pkg-config; ac_word=$2
22651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22652 printf %s "checking for $ac_word... " >&6; }
22653 if test ${ac_cv_prog_ac_ct_PKG_CONFIG+y}
22654 then :
22655 printf %s "(cached) " >&6
22656 else case e in #(
22657 e) if test -n "$ac_ct_PKG_CONFIG"; then
22658 ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
22659 else
22660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22661 for as_dir in $PATH
22662 do
22663 IFS=$as_save_IFS
22664 case $as_dir in #(((
22665 '') as_dir=./ ;;
22666 */) ;;
22667 *) as_dir=$as_dir/ ;;
22668 esac
22669 for ac_exec_ext in '' $ac_executable_extensions; do
22670 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
22671 ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
22672 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
22673 break 2
22674 fi
22675 done
22676 done
22677 IFS=$as_save_IFS
22678
22679 fi ;;
22680 esac
22681 fi
22682 ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
22683 if test -n "$ac_ct_PKG_CONFIG"; then
22684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PKG_CONFIG" >&5
22685 printf "%s\n" "$ac_ct_PKG_CONFIG" >&6; }
22686 else
22687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22688 printf "%s\n" "no" >&6; }
22689 fi
22690
22691 if test "x$ac_ct_PKG_CONFIG" = x; then
22692 PKG_CONFIG="false"
22693 else
22694 case $cross_compiling:$ac_tool_warned in
22695 yes:)
22696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22697 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22698 ac_tool_warned=yes ;;
22699 esac
22700 PKG_CONFIG=$ac_ct_PKG_CONFIG
22701 fi
22702 else
22703 PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
22704 fi
22705
22706 ##tldbg _KPSE_LIB_FLAGS: Setup kpathsea (-lkpathsea) flags.
22707 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
22708 ##tldbg _KPSE_LIB_FLAGS_TL: kpathsea (kpathsea) lt.
22709
22710 # Check whether --with-system-kpathsea was given.
22711 if test ${with_system_kpathsea+y}
22712 then :
22713 withval=$with_system_kpathsea;
22714 fi
22715 if test "x$with_system_kpathsea" = xyes; then
22716 if $PKG_CONFIG kpathsea; then
22717 KPATHSEA_INCLUDES=`$PKG_CONFIG kpathsea --cflags`
22718 KPATHSEA_LIBS=`$PKG_CONFIG kpathsea --libs`
22719 elif test "x$need_kpathsea:$with_system_kpathsea" = xyes:yes; then
22720 as_fn_error $? "did not find kpathsea" "$LINENO" 5
22721 fi
22722 else
22723 KPATHSEA_INCLUDES="-I$kpse_BLD/texk -I$kpse_SRC/texk"
22724 KPATHSEA_LIBS="$kpse_BLD/texk/kpathsea/libkpathsea.la"
22725 KPATHSEA_DEPEND='${top_builddir}/../kpathsea/libkpathsea.la'
22726 KPATHSEA_RULE='# Rebuild libkpathsea
22727 $(KPATHSEA_DEPEND): ${top_srcdir}/../kpathsea/*.[ch] ${top_builddir}/../kpathsea/paths.h
22728 cd ${top_builddir}/../kpathsea && $(MAKE) $(AM_MAKEFLAGS) rebuild
22729 ${top_builddir}/../kpathsea/paths.h:
22730 cd ${top_builddir}/../kpathsea && $(MAKE) $(AM_MAKEFLAGS) rebuild'
22731 fi
22732
22733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libkpathsea supports debugging" >&5
22734 printf %s "checking if libkpathsea supports debugging... " >&6; }
22735 if test ${kpse_cv_kpse_debug+y}
22736 then :
22737 printf %s "(cached) " >&6
22738 else case e in #(
22739 e) eval CPPFLAGS=\"$KPATHSEA_INCLUDES \$CPPFLAGS\"
22740 eval LIBS=\"$KPATHSEA_LIBS \$LIBS\"
22741
22742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22743 /* end confdefs.h. */
22744 #include <kpathsea/kpathsea.h>
22745 int
22746 main (void)
22747 {
22748 FILE *f = fopen("f", "r")
22749 ;
22750 return 0;
22751 }
22752 _ACEOF
22753 if ac_fn_c_try_link "$LINENO"
22754 then :
22755 kpse_cv_kpse_debug=yes
22756 else case e in #(
22757 e) kpse_cv_kpse_debug=no ;;
22758 esac
22759 fi
22760 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22761 conftest$ac_exeext conftest.$ac_ext
22762 CPPFLAGS=$kpse_save_CPPFLAGS
22763 LIBS=$kpse_save_LIBS
22764 ;;
22765 esac
22766 fi
22767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_kpse_debug" >&5
22768 printf "%s\n" "$kpse_cv_kpse_debug" >&6; }
22769 if test "x$kpse_cv_kpse_debug" != xyes
22770 then :
22771 KPATHSEA_INCLUDES="$KPATHSEA_INCLUDES -DNO_DEBUG"
22772 fi
22773
22774 ##tldbg _KPSE_LIB_FLAGS: Setup lua53 (-ltexlua53) flags.
22775 echo 'tldbg:_KPSE_LIB_FLAGS called: libdir=lua53, libname=texlua53, options=lt tree, tlincl=-IBLD/libs/lua53/include, tllib=BLD/libs/lua53/libtexlua53.la, tlextra=, rebuildsrcdeps=, rebuildblddeps=${top_builddir}/../../libs/lua53/include/lua.h.' >&5
22776 ##tldbg _KPSE_LIB_FLAGS_TL: lua53 (texlua53) lt tree.
22777 LUA53_INCLUDES="-I$kpse_BLD/libs/lua53/include"
22778 LUA53_LIBS="$kpse_BLD/libs/lua53/libtexlua53.la"
22779 LUA53_DEPEND='${top_builddir}/../../libs/lua53/libtexlua53.la'
22780 LUA53_RULE='# Rebuild libtexlua53
22781 $(LUA53_DEPEND): ${top_builddir}/../../libs/lua53/include/lua.h
22782 cd ${top_builddir}/../../libs/lua53 && $(MAKE) $(AM_MAKEFLAGS) rebuild
22783 ${top_builddir}/../../libs/lua53/include/lua.h:
22784 cd ${top_builddir}/../../libs/lua53 && $(MAKE) $(AM_MAKEFLAGS) rebuild'
22785
22786 ##tldbg _KPSE_LIB_FLAGS: Setup zlib (-lz) flags.
22787 echo 'tldbg:_KPSE_LIB_FLAGS called: libdir=zlib, libname=z, options=, tlincl=-IBLD/libs/zlib/include, tllib=BLD/libs/zlib/libz.a, tlextra=, rebuildsrcdeps=, rebuildblddeps=${top_builddir}/../../libs/zlib/include/zconf.h.' >&5
22788 ##tldbg _KPSE_LIB_FLAGS_TL: zlib (z) .
22789
22790 # Check whether --with-system-zlib was given.
22791 if test ${with_system_zlib+y}
22792 then :
22793 withval=$with_system_zlib;
22794 fi
22795
22796 # Check whether --with-zlib-includes was given.
22797 if test ${with_zlib_includes+y}
22798 then :
22799 withval=$with_zlib_includes;
22800 fi
22801
22802 # Check whether --with-zlib-libdir was given.
22803 if test ${with_zlib_libdir+y}
22804 then :
22805 withval=$with_zlib_libdir;
22806 fi
22807 if test "x$with_system_zlib" = xyes; then
22808 ##tldbg _KPSE_LIB_FLAGS_SYSTEM: zlib (z).
22809 if test "x$with_zlib_includes" != x && test "x$with_zlib_includes" != xyes; then
22810 ZLIB_INCLUDES="-I$with_zlib_includes"
22811 fi
22812 ZLIB_LIBS="-lz"
22813 if test "x$with_zlib_libdir" != x && test "x$with_zlib_libdir" != xyes; then
22814 ZLIB_LIBS="-L$with_zlib_libdir $ZLIB_LIBS"
22815 fi
22816 else
22817 ZLIB_INCLUDES="-I$kpse_BLD/libs/zlib/include"
22818 ZLIB_LIBS="$kpse_BLD/libs/zlib/libz.a"
22819 ZLIB_DEPEND='${top_builddir}/../../libs/zlib/libz.a'
22820 ZLIB_RULE='# Rebuild libz
22821 $(ZLIB_DEPEND): ${top_builddir}/../../libs/zlib/include/zconf.h
22822 cd ${top_builddir}/../../libs/zlib && $(MAKE) $(AM_MAKEFLAGS) rebuild
22823 ${top_builddir}/../../libs/zlib/include/zconf.h:
22824 cd ${top_builddir}/../../libs/zlib && $(MAKE) $(AM_MAKEFLAGS) rebuild'
22825 fi
22826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if <zlib.h> defines 'z_const'" >&5
22827 printf %s "checking if <zlib.h> defines 'z_const'... " >&6; }
22828 if test ${kpse_cv_have_decl_z_const+y}
22829 then :
22830 printf %s "(cached) " >&6
22831 else case e in #(
22832 e) eval CPPFLAGS=\"$ZLIB_INCLUDES \$CPPFLAGS\"
22833 eval LIBS=\"$ZLIB_LIBS \$LIBS\"
22834
22835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22836 /* end confdefs.h. */
22837 #include <zlib.h>
22838 int
22839 main (void)
22840 {
22841 z_const char * foo();
22842 ;
22843 return 0;
22844 }
22845 _ACEOF
22846 if ac_fn_c_try_compile "$LINENO"
22847 then :
22848 kpse_cv_have_decl_z_const=yes
22849 else case e in #(
22850 e) kpse_cv_have_decl_z_const=no ;;
22851 esac
22852 fi
22853 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22854 CPPFLAGS=$kpse_save_CPPFLAGS
22855 LIBS=$kpse_save_LIBS
22856 ;;
22857 esac
22858 fi
22859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_have_decl_z_const" >&5
22860 printf "%s\n" "$kpse_cv_have_decl_z_const" >&6; }
22861 case $kpse_cv_have_decl_z_const in #(
22862 yes) :
22863
22864 printf "%s\n" "#define ZLIB_CONST 1" >>confdefs.h
22865 ;; #(
22866 *) :
22867
22868 printf "%s\n" "#define z_const /**/" >>confdefs.h
22869 ;;
22870 esac
22871
22872 ##tldbg _KPSE_LIB_FLAGS: Setup libpng (-lpng) flags.
22873 echo 'tldbg:_KPSE_LIB_FLAGS called: libdir=libpng, libname=png, options=, tlincl=-IBLD/libs/libpng/include, tllib=BLD/libs/libpng/libpng.a, tlextra=, rebuildsrcdeps=, rebuildblddeps=${top_builddir}/../../libs/libpng/include/png.h.' >&5
22874 ##tldbg _KPSE_LIB_FLAGS_TL: libpng (png) .
22875
22876 # Check whether --with-system-libpng was given.
22877 if test ${with_system_libpng+y}
22878 then :
22879 withval=$with_system_libpng;
22880 fi
22881 if test "x$with_system_libpng" = xyes; then
22882 if $PKG_CONFIG libpng; then
22883 LIBPNG_INCLUDES=`$PKG_CONFIG libpng --cflags`
22884 LIBPNG_LIBS=`$PKG_CONFIG libpng --libs`
22885 elif test "x$need_libpng:$with_system_libpng" = xyes:yes; then
22886 as_fn_error $? "did not find libpng" "$LINENO" 5
22887 fi
22888 else
22889 LIBPNG_INCLUDES="-I$kpse_BLD/libs/libpng/include"
22890 LIBPNG_LIBS="$kpse_BLD/libs/libpng/libpng.a"
22891 LIBPNG_DEPEND='${top_builddir}/../../libs/libpng/libpng.a'
22892 LIBPNG_RULE='# Rebuild libpng
22893 $(LIBPNG_DEPEND): ${top_builddir}/../../libs/libpng/include/png.h
22894 cd ${top_builddir}/../../libs/libpng && $(MAKE) $(AM_MAKEFLAGS) rebuild
22895 ${top_builddir}/../../libs/libpng/include/png.h:
22896 cd ${top_builddir}/../../libs/libpng && $(MAKE) $(AM_MAKEFLAGS) rebuild'
22897 fi
22898
22899 ##tldbg _KPSE_LIB_FLAGS: Setup freetype2 (-lfreetype) flags.
22900 echo 'tldbg:_KPSE_LIB_FLAGS called: libdir=freetype2, libname=freetype, options=, tlincl=-IBLD/libs/freetype2/freetype2, tllib=BLD/libs/freetype2/libfreetype.a, tlextra=, rebuildsrcdeps=, rebuildblddeps=${top_builddir}/../../libs/freetype2/freetype2/ft2build.h.' >&5
22901 ##tldbg _KPSE_LIB_FLAGS_TL: freetype2 (freetype) .
22902
22903 # Check whether --with-system-freetype2 was given.
22904 if test ${with_system_freetype2+y}
22905 then :
22906 withval=$with_system_freetype2;
22907 fi
22908 if test "x$with_system_freetype2" = xyes; then
22909 if test -n "$ac_tool_prefix"; then
22910 # Extract the first word of "${ac_tool_prefix}freetype-config", so it can be a program name with args.
22911 set dummy ${ac_tool_prefix}freetype-config; ac_word=$2
22912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22913 printf %s "checking for $ac_word... " >&6; }
22914 if test ${ac_cv_prog_FT2_CONFIG+y}
22915 then :
22916 printf %s "(cached) " >&6
22917 else case e in #(
22918 e) if test -n "$FT2_CONFIG"; then
22919 ac_cv_prog_FT2_CONFIG="$FT2_CONFIG" # Let the user override the test.
22920 else
22921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22922 for as_dir in $PATH
22923 do
22924 IFS=$as_save_IFS
22925 case $as_dir in #(((
22926 '') as_dir=./ ;;
22927 */) ;;
22928 *) as_dir=$as_dir/ ;;
22929 esac
22930 for ac_exec_ext in '' $ac_executable_extensions; do
22931 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
22932 ac_cv_prog_FT2_CONFIG="${ac_tool_prefix}freetype-config"
22933 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
22934 break 2
22935 fi
22936 done
22937 done
22938 IFS=$as_save_IFS
22939
22940 fi ;;
22941 esac
22942 fi
22943 FT2_CONFIG=$ac_cv_prog_FT2_CONFIG
22944 if test -n "$FT2_CONFIG"; then
22945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FT2_CONFIG" >&5
22946 printf "%s\n" "$FT2_CONFIG" >&6; }
22947 else
22948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22949 printf "%s\n" "no" >&6; }
22950 fi
22951
22952
22953 fi
22954 if test -z "$ac_cv_prog_FT2_CONFIG"; then
22955 ac_ct_FT2_CONFIG=$FT2_CONFIG
22956 # Extract the first word of "freetype-config", so it can be a program name with args.
22957 set dummy freetype-config; ac_word=$2
22958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22959 printf %s "checking for $ac_word... " >&6; }
22960 if test ${ac_cv_prog_ac_ct_FT2_CONFIG+y}
22961 then :
22962 printf %s "(cached) " >&6
22963 else case e in #(
22964 e) if test -n "$ac_ct_FT2_CONFIG"; then
22965 ac_cv_prog_ac_ct_FT2_CONFIG="$ac_ct_FT2_CONFIG" # Let the user override the test.
22966 else
22967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22968 for as_dir in $PATH
22969 do
22970 IFS=$as_save_IFS
22971 case $as_dir in #(((
22972 '') as_dir=./ ;;
22973 */) ;;
22974 *) as_dir=$as_dir/ ;;
22975 esac
22976 for ac_exec_ext in '' $ac_executable_extensions; do
22977 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
22978 ac_cv_prog_ac_ct_FT2_CONFIG="freetype-config"
22979 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
22980 break 2
22981 fi
22982 done
22983 done
22984 IFS=$as_save_IFS
22985
22986 fi ;;
22987 esac
22988 fi
22989 ac_ct_FT2_CONFIG=$ac_cv_prog_ac_ct_FT2_CONFIG
22990 if test -n "$ac_ct_FT2_CONFIG"; then
22991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FT2_CONFIG" >&5
22992 printf "%s\n" "$ac_ct_FT2_CONFIG" >&6; }
22993 else
22994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22995 printf "%s\n" "no" >&6; }
22996 fi
22997
22998 if test "x$ac_ct_FT2_CONFIG" = x; then
22999 FT2_CONFIG="false"
23000 else
23001 case $cross_compiling:$ac_tool_warned in
23002 yes:)
23003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23004 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23005 ac_tool_warned=yes ;;
23006 esac
23007 FT2_CONFIG=$ac_ct_FT2_CONFIG
23008 fi
23009 else
23010 FT2_CONFIG="$ac_cv_prog_FT2_CONFIG"
23011 fi
23012 if test -n "$ac_tool_prefix"; then
23013 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
23014 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
23015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23016 printf %s "checking for $ac_word... " >&6; }
23017 if test ${ac_cv_prog_PKG_CONFIG+y}
23018 then :
23019 printf %s "(cached) " >&6
23020 else case e in #(
23021 e) if test -n "$PKG_CONFIG"; then
23022 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
23023 else
23024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23025 for as_dir in $PATH
23026 do
23027 IFS=$as_save_IFS
23028 case $as_dir in #(((
23029 '') as_dir=./ ;;
23030 */) ;;
23031 *) as_dir=$as_dir/ ;;
23032 esac
23033 for ac_exec_ext in '' $ac_executable_extensions; do
23034 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
23035 ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
23036 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
23037 break 2
23038 fi
23039 done
23040 done
23041 IFS=$as_save_IFS
23042
23043 fi ;;
23044 esac
23045 fi
23046 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
23047 if test -n "$PKG_CONFIG"; then
23048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
23049 printf "%s\n" "$PKG_CONFIG" >&6; }
23050 else
23051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23052 printf "%s\n" "no" >&6; }
23053 fi
23054
23055
23056 fi
23057 if test -z "$ac_cv_prog_PKG_CONFIG"; then
23058 ac_ct_PKG_CONFIG=$PKG_CONFIG
23059 # Extract the first word of "pkg-config", so it can be a program name with args.
23060 set dummy pkg-config; ac_word=$2
23061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23062 printf %s "checking for $ac_word... " >&6; }
23063 if test ${ac_cv_prog_ac_ct_PKG_CONFIG+y}
23064 then :
23065 printf %s "(cached) " >&6
23066 else case e in #(
23067 e) if test -n "$ac_ct_PKG_CONFIG"; then
23068 ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
23069 else
23070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23071 for as_dir in $PATH
23072 do
23073 IFS=$as_save_IFS
23074 case $as_dir in #(((
23075 '') as_dir=./ ;;
23076 */) ;;
23077 *) as_dir=$as_dir/ ;;
23078 esac
23079 for ac_exec_ext in '' $ac_executable_extensions; do
23080 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
23081 ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
23082 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
23083 break 2
23084 fi
23085 done
23086 done
23087 IFS=$as_save_IFS
23088
23089 fi ;;
23090 esac
23091 fi
23092 ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
23093 if test -n "$ac_ct_PKG_CONFIG"; then
23094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PKG_CONFIG" >&5
23095 printf "%s\n" "$ac_ct_PKG_CONFIG" >&6; }
23096 else
23097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23098 printf "%s\n" "no" >&6; }
23099 fi
23100
23101 if test "x$ac_ct_PKG_CONFIG" = x; then
23102 PKG_CONFIG="false"
23103 else
23104 case $cross_compiling:$ac_tool_warned in
23105 yes:)
23106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23107 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23108 ac_tool_warned=yes ;;
23109 esac
23110 PKG_CONFIG=$ac_ct_PKG_CONFIG
23111 fi
23112 else
23113 PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
23114 fi
23115 if $FT2_CONFIG --ftversion >/dev/null 2>&1; then
23116 FREETYPE2_INCLUDES=`$FT2_CONFIG --cflags`
23117 FREETYPE2_LIBS=`$FT2_CONFIG --libs`
23118 elif $PKG_CONFIG --libs freetype2 >/dev/null 2>&1; then
23119 FREETYPE2_INCLUDES=`$PKG_CONFIG --cflags freetype2`
23120 FREETYPE2_LIBS=`$PKG_CONFIG --libs freetype2`
23121 elif test "x$need_freetype2:$with_system_freetype2" = xyes:yes; then
23122 as_fn_error $? "did not find freetype-config required for system freetype2 library" "$LINENO" 5
23123 fi
23124 else
23125 FREETYPE2_INCLUDES="-I$kpse_BLD/libs/freetype2/freetype2"
23126 FREETYPE2_LIBS="$kpse_BLD/libs/freetype2/libfreetype.a"
23127 FREETYPE2_DEPEND='${top_builddir}/../../libs/freetype2/libfreetype.a'
23128 FREETYPE2_RULE='# Rebuild libfreetype
23129 $(FREETYPE2_DEPEND): ${top_builddir}/../../libs/freetype2/freetype2/ft2build.h
23130 cd ${top_builddir}/../../libs/freetype2 && $(MAKE) $(AM_MAKEFLAGS) rebuild
23131 ${top_builddir}/../../libs/freetype2/freetype2/ft2build.h:
23132 cd ${top_builddir}/../../libs/freetype2 && $(MAKE) $(AM_MAKEFLAGS) rebuild'
23133 fi
23134
23135
23136 echo timestamp >config.force
23137
23138 # distribute additional compiler and linker flags
23139 # --> set these variables instead of CXXFLAGS or LDFLAGS
23140
23141
23142
23143
23144 ac_config_files="$ac_config_files Makefile man/Makefile"
23145
23146
23147 # The subdirectory squeeze must be configured for the build system.
23148
23149
23150 subdirs="$subdirs squeeze"
23151
23152
23153
23154
23155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
23156 printf %s "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
23157 if test ${ac_cv_header_sys_wait_h+y}
23158 then :
23159 printf %s "(cached) " >&6
23160 else case e in #(
23161 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23162 /* end confdefs.h. */
23163 #include <sys/types.h>
23164 #include <sys/wait.h>
23165 #ifndef WEXITSTATUS
23166 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
23167 #endif
23168 #ifndef WIFEXITED
23169 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
23170 #endif
23171
23172 int
23173 main (void)
23174 {
23175 int s;
23176 wait (&s);
23177 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
23178 ;
23179 return 0;
23180 }
23181 _ACEOF
23182 if ac_fn_c_try_compile "$LINENO"
23183 then :
23184 ac_cv_header_sys_wait_h=yes
23185 else case e in #(
23186 e) ac_cv_header_sys_wait_h=no ;;
23187 esac
23188 fi
23189 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
23190 esac
23191 fi
23192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
23193 printf "%s\n" "$ac_cv_header_sys_wait_h" >&6; }
23194 if test $ac_cv_header_sys_wait_h = yes; then
23195
23196 printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
23197
23198 fi
23199
23200
23201 cat >confcache <<\_ACEOF
23202 # This file is a shell script that caches the results of configure
23203 # tests run on this system so they can be shared between configure
23204 # scripts and configure runs, see configure's option --config-cache.
23205 # It is not useful on other systems. If it contains results you don't
23206 # want to keep, you may remove or edit it.
23207 #
23208 # config.status only pays attention to the cache file if you give it
23209 # the --recheck option to rerun configure.
23210 #
23211 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
23212 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
23213 # following values.
23214
23215 _ACEOF
23216
23217 # The following way of writing the cache mishandles newlines in values,
23218 # but we know of no workaround that is simple, portable, and efficient.
23219 # So, we kill variables containing newlines.
23220 # Ultrix sh set writes to stderr and can't be redirected directly,
23221 # and sets the high bit in the cache file unless we assign to the vars.
23222 (
23223 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23224 eval ac_val=\$$ac_var
23225 case $ac_val in #(
23226 *${as_nl}*)
23227 case $ac_var in #(
23228 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
23229 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
23230 esac
23231 case $ac_var in #(
23232 _ | IFS | as_nl) ;; #(
23233 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
23234 *) { eval $ac_var=; unset $ac_var;} ;;
23235 esac ;;
23236 esac
23237 done
23238
23239 (set) 2>&1 |
23240 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23241 *${as_nl}ac_space=\ *)
23242 # 'set' does not quote correctly, so add quotes: double-quote
23243 # substitution turns \\\\ into \\, and sed turns \\ into \.
23244 sed -n \
23245 "s/'/'\\\\''/g;
23246 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23247 ;; #(
23248 *)
23249 # 'set' quotes correctly as required by POSIX, so do not add quotes.
23250 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23251 ;;
23252 esac |
23253 sort
23254 ) |
23255 sed '
23256 /^ac_cv_env_/b end
23257 t clear
23258 :clear
23259 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
23260 t end
23261 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23262 :end' >>confcache
23263 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23264 if test -w "$cache_file"; then
23265 if test "x$cache_file" != "x/dev/null"; then
23266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
23267 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
23268 if test ! -f "$cache_file" || test -h "$cache_file"; then
23269 cat confcache >"$cache_file"
23270 else
23271 case $cache_file in #(
23272 */* | ?:*)
23273 mv -f confcache "$cache_file"$$ &&
23274 mv -f "$cache_file"$$ "$cache_file" ;; #(
23275 *)
23276 mv -f confcache "$cache_file" ;;
23277 esac
23278 fi
23279 fi
23280 else
23281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
23282 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
23283 fi
23284 fi
23285 rm -f confcache
23286
23287 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23288 # Let make expand exec_prefix.
23289 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23290
23291 DEFS=-DHAVE_CONFIG_H
23292
23293 ac_libobjs=
23294 ac_ltlibobjs=
23295 U=
23296 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23297 # 1. Remove the extension, and $U if already installed.
23298 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23299 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
23300 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23301 # will be set to the directory where LIBOBJS objects are built.
23302 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23303 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
23304 done
23305 LIBOBJS=$ac_libobjs
23306
23307 LTLIBOBJS=$ac_ltlibobjs
23308
23309
23310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
23311 printf %s "checking that generated files are newer than configure... " >&6; }
23312 if test -n "$am_sleep_pid"; then
23313 # Hide warnings about reused PIDs.
23314 wait $am_sleep_pid 2>/dev/null
23315 fi
23316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
23317 printf "%s\n" "done" >&6; }
23318 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23319 as_fn_error $? "conditional \"AMDEP\" was never defined.
23320 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23321 fi
23322 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23323 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
23324 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23325 fi
23326 case $enable_silent_rules in # (((
23327 yes) AM_DEFAULT_VERBOSITY=0;;
23328 no) AM_DEFAULT_VERBOSITY=1;;
23329 esac
23330 if test $am_cv_make_support_nested_variables = yes; then
23331 AM_V='$(V)'
23332 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
23333 else
23334 AM_V=$AM_DEFAULT_VERBOSITY
23335 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
23336 fi
23337
23338 if test -n "$EXEEXT"; then
23339 am__EXEEXT_TRUE=
23340 am__EXEEXT_FALSE='#'
23341 else
23342 am__EXEEXT_TRUE='#'
23343 am__EXEEXT_FALSE=
23344 fi
23345
23346 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
23347 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
23348 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23349 fi
23350 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23351 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
23352 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23353 fi
23354 # Check whether --enable-year2038 was given.
23355 if test ${enable_year2038+y}
23356 then :
23357 enableval=$enable_year2038;
23358 fi
23359
23360 if test -z "${cross_TRUE}" && test -z "${cross_FALSE}"; then
23361 as_fn_error $? "conditional \"cross\" was never defined.
23362 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23363 fi
23364
23365 : "${CONFIG_STATUS=./config.status}"
23366 ac_write_fail=0
23367 ac_clean_files_save=$ac_clean_files
23368 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
23370 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
23371 as_write_fail=0
23372 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
23373 #! $SHELL
23374 # Generated by $as_me.
23375 # Run this file to recreate the current configuration.
23376 # Compiler output produced by configure, useful for debugging
23377 # configure, is in config.log if it exists.
23378
23379 debug=false
23380 ac_cs_recheck=false
23381 ac_cs_silent=false
23382
23383 SHELL=\${CONFIG_SHELL-$SHELL}
23384 export SHELL
23385 _ASEOF
23386 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
23387 ## -------------------- ##
23388 ## M4sh Initialization. ##
23389 ## -------------------- ##
23390
23391 # Be more Bourne compatible
23392 DUALCASE=1; export DUALCASE # for MKS sh
23393 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
23394 then :
23395 emulate sh
23396 NULLCMD=:
23397 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23398 # is contrary to our usage. Disable this feature.
23399 alias -g '${1+"$@"}'='"$@"'
23400 setopt NO_GLOB_SUBST
23401 else case e in #(
23402 e) case `(set -o) 2>/dev/null` in #(
23403 *posix*) :
23404 set -o posix ;; #(
23405 *) :
23406 ;;
23407 esac ;;
23408 esac
23409 fi
23410
23411
23412
23413 # Reset variables that may have inherited troublesome values from
23414 # the environment.
23415
23416 # IFS needs to be set, to space, tab, and newline, in precisely that order.
23417 # (If _AS_PATH_WALK were called with IFS unset, it would have the
23418 # side effect of setting IFS to empty, thus disabling word splitting.)
23419 # Quoting is to prevent editors from complaining about space-tab.
23420 as_nl='
23421 '
23422 export as_nl
23423 IFS=" "" $as_nl"
23424
23425 PS1='$ '
23426 PS2='> '
23427 PS4='+ '
23428
23429 # Ensure predictable behavior from utilities with locale-dependent output.
23430 LC_ALL=C
23431 export LC_ALL
23432 LANGUAGE=C
23433 export LANGUAGE
23434
23435 # We cannot yet rely on "unset" to work, but we need these variables
23436 # to be unset--not just set to an empty or harmless value--now, to
23437 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
23438 # also avoids known problems related to "unset" and subshell syntax
23439 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
23440 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
23441 do eval test \${$as_var+y} \
23442 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
23443 done
23444
23445 # Ensure that fds 0, 1, and 2 are open.
23446 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
23447 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
23448 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
23449
23450 # The user is always right.
23451 if ${PATH_SEPARATOR+false} :; then
23452 PATH_SEPARATOR=:
23453 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
23454 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
23455 PATH_SEPARATOR=';'
23456 }
23457 fi
23458
23459
23460 # Find who we are. Look in the path if we contain no directory separator.
23461 as_myself=
23462 case $0 in #((
23463 *[\\/]* ) as_myself=$0 ;;
23464 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23465 for as_dir in $PATH
23466 do
23467 IFS=$as_save_IFS
23468 case $as_dir in #(((
23469 '') as_dir=./ ;;
23470 */) ;;
23471 *) as_dir=$as_dir/ ;;
23472 esac
23473 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
23474 done
23475 IFS=$as_save_IFS
23476
23477 ;;
23478 esac
23479 # We did not find ourselves, most probably we were run as 'sh COMMAND'
23480 # in which case we are not to be found in the path.
23481 if test "x$as_myself" = x; then
23482 as_myself=$0
23483 fi
23484 if test ! -f "$as_myself"; then
23485 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23486 exit 1
23487 fi
23488
23489
23490
23491 # as_fn_error STATUS ERROR [LINENO LOG_FD]
23492 # ----------------------------------------
23493 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
23494 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
23495 # script with STATUS, using 1 if that was 0.
23496 as_fn_error ()
23497 {
23498 as_status=$1; test $as_status -eq 0 && as_status=1
23499 if test "$4"; then
23500 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
23501 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
23502 fi
23503 printf "%s\n" "$as_me: error: $2" >&2
23504 as_fn_exit $as_status
23505 } # as_fn_error
23506
23507
23508 # as_fn_set_status STATUS
23509 # -----------------------
23510 # Set $? to STATUS, without forking.
23511 as_fn_set_status ()
23512 {
23513 return $1
23514 } # as_fn_set_status
23515
23516 # as_fn_exit STATUS
23517 # -----------------
23518 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
23519 as_fn_exit ()
23520 {
23521 set +e
23522 as_fn_set_status $1
23523 exit $1
23524 } # as_fn_exit
23525
23526 # as_fn_unset VAR
23527 # ---------------
23528 # Portably unset VAR.
23529 as_fn_unset ()
23530 {
23531 { eval $1=; unset $1;}
23532 }
23533 as_unset=as_fn_unset
23534
23535 # as_fn_append VAR VALUE
23536 # ----------------------
23537 # Append the text in VALUE to the end of the definition contained in VAR. Take
23538 # advantage of any shell optimizations that allow amortized linear growth over
23539 # repeated appends, instead of the typical quadratic growth present in naive
23540 # implementations.
23541 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
23542 then :
23543 eval 'as_fn_append ()
23544 {
23545 eval $1+=\$2
23546 }'
23547 else case e in #(
23548 e) as_fn_append ()
23549 {
23550 eval $1=\$$1\$2
23551 } ;;
23552 esac
23553 fi # as_fn_append
23554
23555 # as_fn_arith ARG...
23556 # ------------------
23557 # Perform arithmetic evaluation on the ARGs, and store the result in the
23558 # global $as_val. Take advantage of shells that can avoid forks. The arguments
23559 # must be portable across $(()) and expr.
23560 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
23561 then :
23562 eval 'as_fn_arith ()
23563 {
23564 as_val=$(( $* ))
23565 }'
23566 else case e in #(
23567 e) as_fn_arith ()
23568 {
23569 as_val=`expr "$@" || test $? -eq 1`
23570 } ;;
23571 esac
23572 fi # as_fn_arith
23573
23574
23575 if expr a : '\(a\)' >/dev/null 2>&1 &&
23576 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23577 as_expr=expr
23578 else
23579 as_expr=false
23580 fi
23581
23582 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23583 as_basename=basename
23584 else
23585 as_basename=false
23586 fi
23587
23588 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23589 as_dirname=dirname
23590 else
23591 as_dirname=false
23592 fi
23593
23594 as_me=`$as_basename -- "$0" ||
23595 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23596 X"$0" : 'X\(//\)$' \| \
23597 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23598 printf "%s\n" X/"$0" |
23599 sed '/^.*\/\([^/][^/]*\)\/*$/{
23600 s//\1/
23601 q
23602 }
23603 /^X\/\(\/\/\)$/{
23604 s//\1/
23605 q
23606 }
23607 /^X\/\(\/\).*/{
23608 s//\1/
23609 q
23610 }
23611 s/.*/./; q'`
23612
23613 # Avoid depending upon Character Ranges.
23614 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23615 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23616 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23617 as_cr_digits='0123456789'
23618 as_cr_alnum=$as_cr_Letters$as_cr_digits
23619
23620
23621 # Determine whether it's possible to make 'echo' print without a newline.
23622 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
23623 # for compatibility with existing Makefiles.
23624 ECHO_C= ECHO_N= ECHO_T=
23625 case `echo -n x` in #(((((
23626 -n*)
23627 case `echo 'xy\c'` in
23628 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23629 xy) ECHO_C='\c';;
23630 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
23631 ECHO_T=' ';;
23632 esac;;
23633 *)
23634 ECHO_N='-n';;
23635 esac
23636
23637 # For backward compatibility with old third-party macros, we provide
23638 # the shell variables $as_echo and $as_echo_n. New code should use
23639 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
23640 as_echo='printf %s\n'
23641 as_echo_n='printf %s'
23642
23643 rm -f conf$$ conf$$.exe conf$$.file
23644 if test -d conf$$.dir; then
23645 rm -f conf$$.dir/conf$$.file
23646 else
23647 rm -f conf$$.dir
23648 mkdir conf$$.dir 2>/dev/null
23649 fi
23650 if (echo >conf$$.file) 2>/dev/null; then
23651 if ln -s conf$$.file conf$$ 2>/dev/null; then
23652 as_ln_s='ln -s'
23653 # ... but there are two gotchas:
23654 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
23655 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
23656 # In both cases, we have to default to 'cp -pR'.
23657 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23658 as_ln_s='cp -pR'
23659 elif ln conf$$.file conf$$ 2>/dev/null; then
23660 as_ln_s=ln
23661 else
23662 as_ln_s='cp -pR'
23663 fi
23664 else
23665 as_ln_s='cp -pR'
23666 fi
23667 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23668 rmdir conf$$.dir 2>/dev/null
23669
23670
23671 # as_fn_mkdir_p
23672 # -------------
23673 # Create "$as_dir" as a directory, including parents if necessary.
23674 as_fn_mkdir_p ()
23675 {
23676
23677 case $as_dir in #(
23678 -*) as_dir=./$as_dir;;
23679 esac
23680 test -d "$as_dir" || eval $as_mkdir_p || {
23681 as_dirs=
23682 while :; do
23683 case $as_dir in #(
23684 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23685 *) as_qdir=$as_dir;;
23686 esac
23687 as_dirs="'$as_qdir' $as_dirs"
23688 as_dir=`$as_dirname -- "$as_dir" ||
23689 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23690 X"$as_dir" : 'X\(//\)[^/]' \| \
23691 X"$as_dir" : 'X\(//\)$' \| \
23692 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23693 printf "%s\n" X"$as_dir" |
23694 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23695 s//\1/
23696 q
23697 }
23698 /^X\(\/\/\)[^/].*/{
23699 s//\1/
23700 q
23701 }
23702 /^X\(\/\/\)$/{
23703 s//\1/
23704 q
23705 }
23706 /^X\(\/\).*/{
23707 s//\1/
23708 q
23709 }
23710 s/.*/./; q'`
23711 test -d "$as_dir" && break
23712 done
23713 test -z "$as_dirs" || eval "mkdir $as_dirs"
23714 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
23715
23716
23717 } # as_fn_mkdir_p
23718 if mkdir -p . 2>/dev/null; then
23719 as_mkdir_p='mkdir -p "$as_dir"'
23720 else
23721 test -d ./-p && rmdir ./-p
23722 as_mkdir_p=false
23723 fi
23724
23725
23726 # as_fn_executable_p FILE
23727 # -----------------------
23728 # Test if FILE is an executable regular file.
23729 as_fn_executable_p ()
23730 {
23731 test -f "$1" && test -x "$1"
23732 } # as_fn_executable_p
23733 as_test_x='test -x'
23734 as_executable_p=as_fn_executable_p
23735
23736 # Sed expression to map a string onto a valid CPP name.
23737 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23738 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
23739
23740 # Sed expression to map a string onto a valid variable name.
23741 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
23742 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
23743
23744
23745 exec 6>&1
23746 ## ----------------------------------- ##
23747 ## Main body of $CONFIG_STATUS script. ##
23748 ## ----------------------------------- ##
23749 _ASEOF
23750 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
23751
23752 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23753 # Save the log message, to keep $0 and so on meaningful, and to
23754 # report actual input values of CONFIG_FILES etc. instead of their
23755 # values after options handling.
23756 ac_log="
23757 This file was extended by xdvipsk (TeX Live) $as_me 2026.1, which was
23758 generated by GNU Autoconf 2.72. Invocation command line was
23759
23760 CONFIG_FILES = $CONFIG_FILES
23761 CONFIG_HEADERS = $CONFIG_HEADERS
23762 CONFIG_LINKS = $CONFIG_LINKS
23763 CONFIG_COMMANDS = $CONFIG_COMMANDS
23764 $ $0 $@
23765
23766 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23767 "
23768
23769 _ACEOF
23770
23771 case $ac_config_files in *"
23772 "*) set x $ac_config_files; shift; ac_config_files=$*;;
23773 esac
23774
23775 case $ac_config_headers in *"
23776 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
23777 esac
23778
23779
23780 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23781 # Files that config.status was made for.
23782 config_files="$ac_config_files"
23783 config_headers="$ac_config_headers"
23784 config_commands="$ac_config_commands"
23785
23786 _ACEOF
23787
23788 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23789 ac_cs_usage="\
23790 '$as_me' instantiates files and other configuration actions
23791 from templates according to the current configuration. Unless the files
23792 and actions are specified as TAGs, all are instantiated by default.
23793
23794 Usage: $0 [OPTION]... [TAG]...
23795
23796 -h, --help print this help, then exit
23797 -V, --version print version number and configuration settings, then exit
23798 --config print configuration, then exit
23799 -q, --quiet, --silent
23800 do not print progress messages
23801 -d, --debug don't remove temporary files
23802 --recheck update $as_me by reconfiguring in the same conditions
23803 --file=FILE[:TEMPLATE]
23804 instantiate the configuration file FILE
23805 --header=FILE[:TEMPLATE]
23806 instantiate the configuration header FILE
23807
23808 Configuration files:
23809 $config_files
23810
23811 Configuration headers:
23812 $config_headers
23813
23814 Configuration commands:
23815 $config_commands
23816
23817 Report bugs to <[email protected]>."
23818
23819 _ACEOF
23820 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
23821 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
23822 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23823 ac_cs_config='$ac_cs_config_escaped'
23824 ac_cs_version="\\
23825 xdvipsk (TeX Live) config.status 2026.1
23826 configured by $0, generated by GNU Autoconf 2.72,
23827 with options \\"\$ac_cs_config\\"
23828
23829 Copyright (C) 2023 Free Software Foundation, Inc.
23830 This config.status script is free software; the Free Software Foundation
23831 gives unlimited permission to copy, distribute and modify it."
23832
23833 ac_pwd='$ac_pwd'
23834 srcdir='$srcdir'
23835 INSTALL='$INSTALL'
23836 MKDIR_P='$MKDIR_P'
23837 AWK='$AWK'
23838 test -n "\$AWK" || AWK=awk
23839 _ACEOF
23840
23841 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23842 # The default lists apply if the user does not specify any file.
23843 ac_need_defaults=:
23844 while test $# != 0
23845 do
23846 case $1 in
23847 --*=?*)
23848 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23849 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23850 ac_shift=:
23851 ;;
23852 --*=)
23853 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23854 ac_optarg=
23855 ac_shift=:
23856 ;;
23857 *)
23858 ac_option=$1
23859 ac_optarg=$2
23860 ac_shift=shift
23861 ;;
23862 esac
23863
23864 case $ac_option in
23865 # Handling of the options.
23866 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23867 ac_cs_recheck=: ;;
23868 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23869 printf "%s\n" "$ac_cs_version"; exit ;;
23870 --config | --confi | --conf | --con | --co | --c )
23871 printf "%s\n" "$ac_cs_config"; exit ;;
23872 --debug | --debu | --deb | --de | --d | -d )
23873 debug=: ;;
23874 --file | --fil | --fi | --f )
23875 $ac_shift
23876 case $ac_optarg in
23877 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23878 '') as_fn_error $? "missing file argument" ;;
23879 esac
23880 as_fn_append CONFIG_FILES " '$ac_optarg'"
23881 ac_need_defaults=false;;
23882 --header | --heade | --head | --hea )
23883 $ac_shift
23884 case $ac_optarg in
23885 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23886 esac
23887 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
23888 ac_need_defaults=false;;
23889 --he | --h)
23890 # Conflict between --help and --header
23891 as_fn_error $? "ambiguous option: '$1'
23892 Try '$0 --help' for more information.";;
23893 --help | --hel | -h )
23894 printf "%s\n" "$ac_cs_usage"; exit ;;
23895 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23896 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23897 ac_cs_silent=: ;;
23898
23899 # This is an error.
23900 -*) as_fn_error $? "unrecognized option: '$1'
23901 Try '$0 --help' for more information." ;;
23902
23903 *) as_fn_append ac_config_targets " $1"
23904 ac_need_defaults=false ;;
23905
23906 esac
23907 shift
23908 done
23909
23910 ac_configure_extra_args=
23911
23912 if $ac_cs_silent; then
23913 exec 6>/dev/null
23914 ac_configure_extra_args="$ac_configure_extra_args --silent"
23915 fi
23916
23917 _ACEOF
23918 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23919 if \$ac_cs_recheck; then
23920 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23921 shift
23922 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
23923 CONFIG_SHELL='$SHELL'
23924 export CONFIG_SHELL
23925 exec "\$@"
23926 fi
23927
23928 _ACEOF
23929 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23930 exec 5>>config.log
23931 {
23932 echo
23933 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23934 ## Running $as_me. ##
23935 _ASBOX
23936 printf "%s\n" "$ac_log"
23937 } >&5
23938
23939 _ACEOF
23940 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23941 #
23942 # INIT-COMMANDS
23943 #
23944 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
23945
23946
23947 # The HP-UX ksh and POSIX shell print the target directory to stdout
23948 # if CDPATH is set.
23949 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
23950
23951 sed_quote_subst='$sed_quote_subst'
23952 double_quote_subst='$double_quote_subst'
23953 delay_variable_subst='$delay_variable_subst'
23954 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
23955 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
23956 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
23957 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
23958 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
23959 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
23960 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
23961 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
23962 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
23963 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
23964 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
23965 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
23966 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
23967 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
23968 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
23969 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
23970 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
23971 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
23972 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
23973 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
23974 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
23975 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
23976 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
23977 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
23978 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
23979 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
23980 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
23981 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
23982 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
23983 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
23984 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
23985 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
23986 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
23987 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
23988 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
23989 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
23990 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
23991 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
23992 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
23993 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
23994 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
23995 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
23996 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
23997 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
23998 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
23999 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
24000 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
24001 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
24002 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
24003 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
24004 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
24005 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
24006 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
24007 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
24008 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
24009 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
24010 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
24011 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
24012 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
24013 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
24014 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
24015 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"`'
24016 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
24017 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
24018 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
24019 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
24020 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
24021 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
24022 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
24023 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
24024 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
24025 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
24026 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
24027 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
24028 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
24029 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
24030 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
24031 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
24032 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
24033 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
24034 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
24035 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
24036 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
24037 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
24038 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
24039 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
24040 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
24041 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
24042 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
24043 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
24044 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
24045 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
24046 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
24047 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
24048 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
24049 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
24050 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
24051 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
24052 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
24053 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
24054 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
24055 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
24056 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
24057 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
24058 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
24059 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
24060 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
24061 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
24062 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
24063 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
24064 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
24065 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
24066 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
24067 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
24068 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
24069 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
24070 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
24071 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
24072 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
24073 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
24074 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
24075 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
24076 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
24077 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
24078 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
24079 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
24080 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
24081 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
24082 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
24083 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
24084 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
24085 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
24086 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
24087 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
24088 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
24089 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
24090 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
24091 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
24092 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
24093 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
24094 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
24095 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
24096 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
24097 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
24098 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
24099 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
24100 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24101 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24102 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
24103 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
24104 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
24105 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
24106 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
24107 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
24108 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
24109 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
24110 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
24111 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
24112 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
24113 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
24114 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24115 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24116 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24117 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24118 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24119 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24120 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
24121 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
24122 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
24123 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
24124 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
24125 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
24126 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
24127 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
24128 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
24129 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
24130 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
24131 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
24132 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
24133 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24134 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
24135 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
24136 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24137 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24138 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
24139 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
24140 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
24141 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
24142 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
24143 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
24144 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
24145 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
24146
24147 LTCC='$LTCC'
24148 LTCFLAGS='$LTCFLAGS'
24149 compiler='$compiler_DEFAULT'
24150
24151 # A function that is used when there is no print builtin or printf.
24152 func_fallback_echo ()
24153 {
24154 eval 'cat <<_LTECHO_EOF
24155 \$1
24156 _LTECHO_EOF'
24157 }
24158
24159 # Quote evaled strings.
24160 for var in AS \
24161 DLLTOOL \
24162 OBJDUMP \
24163 SHELL \
24164 ECHO \
24165 PATH_SEPARATOR \
24166 SED \
24167 GREP \
24168 EGREP \
24169 FGREP \
24170 LD \
24171 NM \
24172 LN_S \
24173 lt_SP2NL \
24174 lt_NL2SP \
24175 reload_flag \
24176 FILECMD \
24177 deplibs_check_method \
24178 file_magic_cmd \
24179 file_magic_glob \
24180 want_nocaseglob \
24181 sharedlib_from_linklib_cmd \
24182 AR \
24183 archiver_list_spec \
24184 STRIP \
24185 RANLIB \
24186 CC \
24187 CFLAGS \
24188 compiler \
24189 lt_cv_sys_global_symbol_pipe \
24190 lt_cv_sys_global_symbol_to_cdecl \
24191 lt_cv_sys_global_symbol_to_import \
24192 lt_cv_sys_global_symbol_to_c_name_address \
24193 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
24194 lt_cv_nm_interface \
24195 nm_file_list_spec \
24196 lt_cv_truncate_bin \
24197 lt_prog_compiler_no_builtin_flag \
24198 lt_prog_compiler_pic \
24199 lt_prog_compiler_wl \
24200 lt_prog_compiler_static \
24201 lt_cv_prog_compiler_c_o \
24202 need_locks \
24203 MANIFEST_TOOL \
24204 DSYMUTIL \
24205 NMEDIT \
24206 LIPO \
24207 OTOOL \
24208 OTOOL64 \
24209 shrext_cmds \
24210 export_dynamic_flag_spec \
24211 whole_archive_flag_spec \
24212 compiler_needs_object \
24213 with_gnu_ld \
24214 allow_undefined_flag \
24215 no_undefined_flag \
24216 hardcode_libdir_flag_spec \
24217 hardcode_libdir_separator \
24218 exclude_expsyms \
24219 include_expsyms \
24220 file_list_spec \
24221 variables_saved_for_relink \
24222 libname_spec \
24223 library_names_spec \
24224 soname_spec \
24225 install_override_mode \
24226 finish_eval \
24227 old_striplib \
24228 striplib \
24229 compiler_lib_search_dirs \
24230 predep_objects \
24231 postdep_objects \
24232 predeps \
24233 postdeps \
24234 compiler_lib_search_path \
24235 LD_CXX \
24236 reload_flag_CXX \
24237 compiler_CXX \
24238 lt_prog_compiler_no_builtin_flag_CXX \
24239 lt_prog_compiler_pic_CXX \
24240 lt_prog_compiler_wl_CXX \
24241 lt_prog_compiler_static_CXX \
24242 lt_cv_prog_compiler_c_o_CXX \
24243 export_dynamic_flag_spec_CXX \
24244 whole_archive_flag_spec_CXX \
24245 compiler_needs_object_CXX \
24246 with_gnu_ld_CXX \
24247 allow_undefined_flag_CXX \
24248 no_undefined_flag_CXX \
24249 hardcode_libdir_flag_spec_CXX \
24250 hardcode_libdir_separator_CXX \
24251 exclude_expsyms_CXX \
24252 include_expsyms_CXX \
24253 file_list_spec_CXX \
24254 compiler_lib_search_dirs_CXX \
24255 predep_objects_CXX \
24256 postdep_objects_CXX \
24257 predeps_CXX \
24258 postdeps_CXX \
24259 compiler_lib_search_path_CXX; do
24260 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
24261 *[\\\\\\\`\\"\\\$]*)
24262 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
24263 ;;
24264 *)
24265 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
24266 ;;
24267 esac
24268 done
24269
24270 # Double-quote double-evaled strings.
24271 for var in reload_cmds \
24272 old_postinstall_cmds \
24273 old_postuninstall_cmds \
24274 old_archive_cmds \
24275 extract_expsyms_cmds \
24276 old_archive_from_new_cmds \
24277 old_archive_from_expsyms_cmds \
24278 archive_cmds \
24279 archive_expsym_cmds \
24280 module_cmds \
24281 module_expsym_cmds \
24282 export_symbols_cmds \
24283 prelink_cmds \
24284 postlink_cmds \
24285 postinstall_cmds \
24286 postuninstall_cmds \
24287 finish_cmds \
24288 sys_lib_search_path_spec \
24289 configure_time_dlsearch_path \
24290 configure_time_lt_sys_library_path \
24291 reload_cmds_CXX \
24292 old_archive_cmds_CXX \
24293 old_archive_from_new_cmds_CXX \
24294 old_archive_from_expsyms_cmds_CXX \
24295 archive_cmds_CXX \
24296 archive_expsym_cmds_CXX \
24297 module_cmds_CXX \
24298 module_expsym_cmds_CXX \
24299 export_symbols_cmds_CXX \
24300 prelink_cmds_CXX \
24301 postlink_cmds_CXX; do
24302 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
24303 *[\\\\\\\`\\"\\\$]*)
24304 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
24305 ;;
24306 *)
24307 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
24308 ;;
24309 esac
24310 done
24311
24312 ac_aux_dir='$ac_aux_dir'
24313
24314 # See if we are running on zsh, and set the options that allow our
24315 # commands through without removal of \ escapes INIT.
24316 if test -n "\${ZSH_VERSION+set}"; then
24317 setopt NO_GLOB_SUBST
24318 fi
24319
24320
24321 PACKAGE='$PACKAGE'
24322 VERSION='$VERSION'
24323 RM='$RM'
24324 ofile='$ofile'
24325
24326
24327
24328 ac_aux_dir='$ac_aux_dir'
24329
24330
24331
24332 _ACEOF
24333
24334 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24335
24336 # Handling of arguments.
24337 for ac_config_target in $ac_config_targets
24338 do
24339 case $ac_config_target in
24340 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24341 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
24342 "c-auto.h") CONFIG_HEADERS="$CONFIG_HEADERS c-auto.h:c-auto.in" ;;
24343 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24344 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
24345
24346 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
24347 esac
24348 done
24349
24350
24351 # If the user did not use the arguments to specify the items to instantiate,
24352 # then the envvar interface is used. Set only those that are not.
24353 # We use the long form for the default assignment because of an extremely
24354 # bizarre bug on SunOS 4.1.3.
24355 if $ac_need_defaults; then
24356 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
24357 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
24358 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
24359 fi
24360
24361 # Have a temporary directory for convenience. Make it in the build tree
24362 # simply because there is no reason against having it here, and in addition,
24363 # creating and moving files from /tmp can sometimes cause problems.
24364 # Hook for its removal unless debugging.
24365 # Note that there is a small window in which the directory will not be cleaned:
24366 # after its creation but before its name has been assigned to '$tmp'.
24367 $debug ||
24368 {
24369 tmp= ac_tmp=
24370 trap 'exit_status=$?
24371 : "${ac_tmp:=$tmp}"
24372 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
24373 ' 0
24374 trap 'as_fn_exit 1' 1 2 13 15
24375 }
24376 # Create a (secure) tmp directory for tmp files.
24377
24378 {
24379 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24380 test -d "$tmp"
24381 } ||
24382 {
24383 tmp=./conf$$-$RANDOM
24384 (umask 077 && mkdir "$tmp")
24385 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
24386 ac_tmp=$tmp
24387
24388 # Set up the scripts for CONFIG_FILES section.
24389 # No need to generate them if there are no CONFIG_FILES.
24390 # This happens for instance with './config.status config.h'.
24391 if test -n "$CONFIG_FILES"; then
24392
24393
24394 ac_cr=`echo X | tr X '\015'`
24395 # On cygwin, bash can eat \r inside `` if the user requested igncr.
24396 # But we know of no other shell where ac_cr would be empty at this
24397 # point, so we can use a bashism as a fallback.
24398 if test "x$ac_cr" = x; then
24399 eval ac_cr=\$\'\\r\'
24400 fi
24401 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
24402 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
24403 ac_cs_awk_cr='\\r'
24404 else
24405 ac_cs_awk_cr=$ac_cr
24406 fi
24407
24408 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
24409 _ACEOF
24410
24411
24412 {
24413 echo "cat >conf$$subs.awk <<_ACEOF" &&
24414 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
24415 echo "_ACEOF"
24416 } >conf$$subs.sh ||
24417 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24418 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
24419 ac_delim='%!_!# '
24420 for ac_last_try in false false false false false :; do
24421 . ./conf$$subs.sh ||
24422 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24423
24424 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
24425 if test $ac_delim_n = $ac_delim_num; then
24426 break
24427 elif $ac_last_try; then
24428 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24429 else
24430 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24431 fi
24432 done
24433 rm -f conf$$subs.sh
24434
24435 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24436 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
24437 _ACEOF
24438 sed -n '
24439 h
24440 s/^/S["/; s/!.*/"]=/
24441 p
24442 g
24443 s/^[^!]*!//
24444 :repl
24445 t repl
24446 s/'"$ac_delim"'$//
24447 t delim
24448 :nl
24449 h
24450 s/\(.\{148\}\)..*/\1/
24451 t more1
24452 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
24453 p
24454 n
24455 b repl
24456 :more1
24457 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24458 p
24459 g
24460 s/.\{148\}//
24461 t nl
24462 :delim
24463 h
24464 s/\(.\{148\}\)..*/\1/
24465 t more2
24466 s/["\\]/\\&/g; s/^/"/; s/$/"/
24467 p
24468 b
24469 :more2
24470 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24471 p
24472 g
24473 s/.\{148\}//
24474 t delim
24475 ' <conf$$subs.awk | sed '
24476 /^[^""]/{
24477 N
24478 s/\n//
24479 }
24480 ' >>$CONFIG_STATUS || ac_write_fail=1
24481 rm -f conf$$subs.awk
24482 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24483 _ACAWK
24484 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
24485 for (key in S) S_is_set[key] = 1
24486 FS = ""
24487
24488 }
24489 {
24490 line = $ 0
24491 nfields = split(line, field, "@")
24492 substed = 0
24493 len = length(field[1])
24494 for (i = 2; i < nfields; i++) {
24495 key = field[i]
24496 keylen = length(key)
24497 if (S_is_set[key]) {
24498 value = S[key]
24499 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
24500 len += length(value) + length(field[++i])
24501 substed = 1
24502 } else
24503 len += 1 + keylen
24504 }
24505
24506 print line
24507 }
24508
24509 _ACAWK
24510 _ACEOF
24511 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24512 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
24513 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
24514 else
24515 cat
24516 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
24517 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
24518 _ACEOF
24519
24520 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
24521 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
24522 # trailing colons and then remove the whole line if VPATH becomes empty
24523 # (actually we leave an empty line to preserve line numbers).
24524 if test "x$srcdir" = x.; then
24525 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
24526 h
24527 s///
24528 s/^/:/
24529 s/[ ]*$/:/
24530 s/:\$(srcdir):/:/g
24531 s/:\${srcdir}:/:/g
24532 s/:@srcdir@:/:/g
24533 s/^:*//
24534 s/:*$//
24535 x
24536 s/\(=[ ]*\).*/\1/
24537 G
24538 s/\n//
24539 s/^[^=]*=[ ]*$//
24540 }'
24541 fi
24542
24543 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24544 fi # test -n "$CONFIG_FILES"
24545
24546 # Set up the scripts for CONFIG_HEADERS section.
24547 # No need to generate them if there are no CONFIG_HEADERS.
24548 # This happens for instance with './config.status Makefile'.
24549 if test -n "$CONFIG_HEADERS"; then
24550 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
24551 BEGIN {
24552 _ACEOF
24553
24554 # Transform confdefs.h into an awk script 'defines.awk', embedded as
24555 # here-document in config.status, that substitutes the proper values into
24556 # config.h.in to produce config.h.
24557
24558 # Create a delimiter string that does not exist in confdefs.h, to ease
24559 # handling of long lines.
24560 ac_delim='%!_!# '
24561 for ac_last_try in false false :; do
24562 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
24563 if test -z "$ac_tt"; then
24564 break
24565 elif $ac_last_try; then
24566 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
24567 else
24568 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24569 fi
24570 done
24571
24572 # For the awk script, D is an array of macro values keyed by name,
24573 # likewise P contains macro parameters if any. Preserve backslash
24574 # newline sequences.
24575
24576 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24577 sed -n '
24578 s/.\{148\}/&'"$ac_delim"'/g
24579 t rset
24580 :rset
24581 s/^[ ]*#[ ]*define[ ][ ]*/ /
24582 t def
24583 d
24584 :def
24585 s/\\$//
24586 t bsnl
24587 s/["\\]/\\&/g
24588 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
24589 D["\1"]=" \3"/p
24590 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
24591 d
24592 :bsnl
24593 s/["\\]/\\&/g
24594 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
24595 D["\1"]=" \3\\\\\\n"\\/p
24596 t cont
24597 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
24598 t cont
24599 d
24600 :cont
24601 n
24602 s/.\{148\}/&'"$ac_delim"'/g
24603 t clear
24604 :clear
24605 s/\\$//
24606 t bsnlc
24607 s/["\\]/\\&/g; s/^/"/; s/$/"/p
24608 d
24609 :bsnlc
24610 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
24611 b cont
24612 ' <confdefs.h | sed '
24613 s/'"$ac_delim"'/"\\\
24614 "/g' >>$CONFIG_STATUS || ac_write_fail=1
24615
24616 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24617 for (key in D) D_is_set[key] = 1
24618 FS = ""
24619 }
24620 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
24621 line = \$ 0
24622 split(line, arg, " ")
24623 if (arg[1] == "#") {
24624 defundef = arg[2]
24625 mac1 = arg[3]
24626 } else {
24627 defundef = substr(arg[1], 2)
24628 mac1 = arg[2]
24629 }
24630 split(mac1, mac2, "(") #)
24631 macro = mac2[1]
24632 prefix = substr(line, 1, index(line, defundef) - 1)
24633 if (D_is_set[macro]) {
24634 # Preserve the white space surrounding the "#".
24635 print prefix "define", macro P[macro] D[macro]
24636 next
24637 } else {
24638 # Replace #undef with comments. This is necessary, for example,
24639 # in the case of _POSIX_SOURCE, which is predefined and required
24640 # on some systems where configure will not decide to define it.
24641 if (defundef == "undef") {
24642 print "/*", prefix defundef, macro, "*/"
24643 next
24644 }
24645 }
24646 }
24647 { print }
24648 _ACAWK
24649 _ACEOF
24650 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24651 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
24652 fi # test -n "$CONFIG_HEADERS"
24653
24654
24655 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
24656 shift
24657 for ac_tag
24658 do
24659 case $ac_tag in
24660 :[FHLC]) ac_mode=$ac_tag; continue;;
24661 esac
24662 case $ac_mode$ac_tag in
24663 :[FHL]*:*);;
24664 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
24665 :[FH]-) ac_tag=-:-;;
24666 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24667 esac
24668 ac_save_IFS=$IFS
24669 IFS=:
24670 set x $ac_tag
24671 IFS=$ac_save_IFS
24672 shift
24673 ac_file=$1
24674 shift
24675
24676 case $ac_mode in
24677 :L) ac_source=$1;;
24678 :[FH])
24679 ac_file_inputs=
24680 for ac_f
24681 do
24682 case $ac_f in
24683 -) ac_f="$ac_tmp/stdin";;
24684 *) # Look for the file first in the build tree, then in the source tree
24685 # (if the path is not absolute). The absolute path cannot be DOS-style,
24686 # because $ac_f cannot contain ':'.
24687 test -f "$ac_f" ||
24688 case $ac_f in
24689 [\\/$]*) false;;
24690 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24691 esac ||
24692 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
24693 esac
24694 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
24695 as_fn_append ac_file_inputs " '$ac_f'"
24696 done
24697
24698 # Let's still pretend it is 'configure' which instantiates (i.e., don't
24699 # use $as_me), people would be surprised to read:
24700 # /* config.h. Generated by config.status. */
24701 configure_input='Generated from '`
24702 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
24703 `' by configure.'
24704 if test x"$ac_file" != x-; then
24705 configure_input="$ac_file. $configure_input"
24706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
24707 printf "%s\n" "$as_me: creating $ac_file" >&6;}
24708 fi
24709 # Neutralize special characters interpreted by sed in replacement strings.
24710 case $configure_input in #(
24711 *\&* | *\|* | *\\* )
24712 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
24713 sed 's/[\\\\&|]/\\\\&/g'`;; #(
24714 *) ac_sed_conf_input=$configure_input;;
24715 esac
24716
24717 case $ac_tag in
24718 *:-:* | *:-) cat >"$ac_tmp/stdin" \
24719 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
24720 esac
24721 ;;
24722 esac
24723
24724 ac_dir=`$as_dirname -- "$ac_file" ||
24725 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24726 X"$ac_file" : 'X\(//\)[^/]' \| \
24727 X"$ac_file" : 'X\(//\)$' \| \
24728 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24729 printf "%s\n" X"$ac_file" |
24730 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24731 s//\1/
24732 q
24733 }
24734 /^X\(\/\/\)[^/].*/{
24735 s//\1/
24736 q
24737 }
24738 /^X\(\/\/\)$/{
24739 s//\1/
24740 q
24741 }
24742 /^X\(\/\).*/{
24743 s//\1/
24744 q
24745 }
24746 s/.*/./; q'`
24747 as_dir="$ac_dir"; as_fn_mkdir_p
24748 ac_builddir=.
24749
24750 case "$ac_dir" in
24751 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24752 *)
24753 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
24754 # A ".." for each directory in $ac_dir_suffix.
24755 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
24756 case $ac_top_builddir_sub in
24757 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24758 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24759 esac ;;
24760 esac
24761 ac_abs_top_builddir=$ac_pwd
24762 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24763 # for backward compatibility:
24764 ac_top_builddir=$ac_top_build_prefix
24765
24766 case $srcdir in
24767 .) # We are building in place.
24768 ac_srcdir=.
24769 ac_top_srcdir=$ac_top_builddir_sub
24770 ac_abs_top_srcdir=$ac_pwd ;;
24771 [\\/]* | ?:[\\/]* ) # Absolute name.
24772 ac_srcdir=$srcdir$ac_dir_suffix;
24773 ac_top_srcdir=$srcdir
24774 ac_abs_top_srcdir=$srcdir ;;
24775 *) # Relative name.
24776 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24777 ac_top_srcdir=$ac_top_build_prefix$srcdir
24778 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24779 esac
24780 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24781
24782
24783 case $ac_mode in
24784 :F)
24785 #
24786 # CONFIG_FILE
24787 #
24788
24789 case $INSTALL in
24790 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24791 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24792 esac
24793 ac_MKDIR_P=$MKDIR_P
24794 case $MKDIR_P in
24795 [\\/$]* | ?:[\\/]* ) ;;
24796 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
24797 esac
24798 _ACEOF
24799
24800 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24801 # If the template does not know about datarootdir, expand it.
24802 # FIXME: This hack should be removed a few years after 2.60.
24803 ac_datarootdir_hack=; ac_datarootdir_seen=
24804 ac_sed_dataroot='
24805 /datarootdir/ {
24806 p
24807 q
24808 }
24809 /@datadir@/p
24810 /@docdir@/p
24811 /@infodir@/p
24812 /@localedir@/p
24813 /@mandir@/p'
24814 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
24815 *datarootdir*) ac_datarootdir_seen=yes;;
24816 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24818 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24819 _ACEOF
24820 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24821 ac_datarootdir_hack='
24822 s&@datadir@&$datadir&g
24823 s&@docdir@&$docdir&g
24824 s&@infodir@&$infodir&g
24825 s&@localedir@&$localedir&g
24826 s&@mandir@&$mandir&g
24827 s&\\\${datarootdir}&$datarootdir&g' ;;
24828 esac
24829 _ACEOF
24830
24831 # Neutralize VPATH when '$srcdir' = '.'.
24832 # Shell code in configure.ac might set extrasub.
24833 # FIXME: do we really want to maintain this feature?
24834 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24835 ac_sed_extra="$ac_vpsub
24836 $extrasub
24837 _ACEOF
24838 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24839 :t
24840 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24841 s|@configure_input@|$ac_sed_conf_input|;t t
24842 s&@top_builddir@&$ac_top_builddir_sub&;t t
24843 s&@top_build_prefix@&$ac_top_build_prefix&;t t
24844 s&@srcdir@&$ac_srcdir&;t t
24845 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24846 s&@top_srcdir@&$ac_top_srcdir&;t t
24847 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24848 s&@builddir@&$ac_builddir&;t t
24849 s&@abs_builddir@&$ac_abs_builddir&;t t
24850 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24851 s&@INSTALL@&$ac_INSTALL&;t t
24852 s&@MKDIR_P@&$ac_MKDIR_P&;t t
24853 $ac_datarootdir_hack
24854 "
24855 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
24856 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24857
24858 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24859 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
24860 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
24861 "$ac_tmp/out"`; test -z "$ac_out"; } &&
24862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
24863 which seems to be undefined. Please make sure it is defined" >&5
24864 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
24865 which seems to be undefined. Please make sure it is defined" >&2;}
24866
24867 rm -f "$ac_tmp/stdin"
24868 case $ac_file in
24869 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
24870 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
24871 esac \
24872 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24873 ;;
24874 :H)
24875 #
24876 # CONFIG_HEADER
24877 #
24878 if test x"$ac_file" != x-; then
24879 {
24880 printf "%s\n" "/* $configure_input */" >&1 \
24881 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
24882 } >"$ac_tmp/config.h" \
24883 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24884 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
24885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
24886 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
24887 else
24888 rm -f "$ac_file"
24889 mv "$ac_tmp/config.h" "$ac_file" \
24890 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24891 fi
24892 else
24893 printf "%s\n" "/* $configure_input */" >&1 \
24894 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
24895 || as_fn_error $? "could not create -" "$LINENO" 5
24896 fi
24897 # Compute "$ac_file"'s index in $config_headers.
24898 _am_arg="$ac_file"
24899 _am_stamp_count=1
24900 for _am_header in $config_headers :; do
24901 case $_am_header in
24902 $_am_arg | $_am_arg:* )
24903 break ;;
24904 * )
24905 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24906 esac
24907 done
24908 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
24909 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24910 X"$_am_arg" : 'X\(//\)[^/]' \| \
24911 X"$_am_arg" : 'X\(//\)$' \| \
24912 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
24913 printf "%s\n" X"$_am_arg" |
24914 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24915 s//\1/
24916 q
24917 }
24918 /^X\(\/\/\)[^/].*/{
24919 s//\1/
24920 q
24921 }
24922 /^X\(\/\/\)$/{
24923 s//\1/
24924 q
24925 }
24926 /^X\(\/\).*/{
24927 s//\1/
24928 q
24929 }
24930 s/.*/./; q'`/stamp-h$_am_stamp_count
24931 ;;
24932
24933 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
24934 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
24935 ;;
24936 esac
24937
24938
24939 case $ac_file$ac_mode in
24940 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
24941 # Older Autoconf quotes --file arguments for eval, but not when files
24942 # are listed without --file. Let's play safe and only enable the eval
24943 # if we detect the quoting.
24944 # TODO: see whether this extra hack can be removed once we start
24945 # requiring Autoconf 2.70 or later.
24946 case $CONFIG_FILES in #(
24947 *\'*) :
24948 eval set x "$CONFIG_FILES" ;; #(
24949 *) :
24950 set x $CONFIG_FILES ;; #(
24951 *) :
24952 ;;
24953 esac
24954 shift
24955 # Used to flag and report bootstrapping failures.
24956 am_rc=0
24957 for am_mf
24958 do
24959 # Strip MF so we end up with the name of the file.
24960 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
24961 # Check whether this is an Automake generated Makefile which includes
24962 # dependency-tracking related rules and includes.
24963 # Grep'ing the whole file directly is not great: AIX grep has a line
24964 # limit of 2048, but all sed's we know have understand at least 4000.
24965 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
24966 || continue
24967 am_dirpart=`$as_dirname -- "$am_mf" ||
24968 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24969 X"$am_mf" : 'X\(//\)[^/]' \| \
24970 X"$am_mf" : 'X\(//\)$' \| \
24971 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
24972 printf "%s\n" X"$am_mf" |
24973 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24974 s//\1/
24975 q
24976 }
24977 /^X\(\/\/\)[^/].*/{
24978 s//\1/
24979 q
24980 }
24981 /^X\(\/\/\)$/{
24982 s//\1/
24983 q
24984 }
24985 /^X\(\/\).*/{
24986 s//\1/
24987 q
24988 }
24989 s/.*/./; q'`
24990 am_filepart=`$as_basename -- "$am_mf" ||
24991 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
24992 X"$am_mf" : 'X\(//\)$' \| \
24993 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
24994 printf "%s\n" X/"$am_mf" |
24995 sed '/^.*\/\([^/][^/]*\)\/*$/{
24996 s//\1/
24997 q
24998 }
24999 /^X\/\(\/\/\)$/{
25000 s//\1/
25001 q
25002 }
25003 /^X\/\(\/\).*/{
25004 s//\1/
25005 q
25006 }
25007 s/.*/./; q'`
25008 { echo "$as_me:$LINENO: cd "$am_dirpart" \
25009 && sed -e '/# am--include-marker/d' "$am_filepart" \
25010 | $MAKE -f - am--depfiles" >&5
25011 (cd "$am_dirpart" \
25012 && sed -e '/# am--include-marker/d' "$am_filepart" \
25013 | $MAKE -f - am--depfiles) >&5 2>&5
25014 ac_status=$?
25015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25016 (exit $ac_status); } || am_rc=$?
25017 done
25018 if test $am_rc -ne 0; then
25019 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
25020 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
25021 as_fn_error $? "Something went wrong bootstrapping makefile fragments
25022 for automatic dependency tracking. If GNU make was not used, consider
25023 re-running the configure script with MAKE=\"gmake\" (or whatever is
25024 necessary). You can also try re-running configure with the
25025 '--disable-dependency-tracking' option to at least be able to build
25026 the package (albeit without support for automatic dependency tracking).
25027 See 'config.log' for more details" "$LINENO" 5; }
25028 fi
25029 { am_dirpart=; unset am_dirpart;}
25030 { am_filepart=; unset am_filepart;}
25031 { am_mf=; unset am_mf;}
25032 { am_rc=; unset am_rc;}
25033 rm -f conftest-deps.mk
25034 }
25035 ;;
25036 "libtool":C)
25037
25038 # See if we are running on zsh, and set the options that allow our
25039 # commands through without removal of \ escapes.
25040 if test -n "${ZSH_VERSION+set}"; then
25041 setopt NO_GLOB_SUBST
25042 fi
25043
25044 cfgfile=${ofile}T
25045 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
25046 $RM "$cfgfile"
25047
25048 cat <<_LT_EOF >> "$cfgfile"
25049 #! $SHELL
25050 # Generated automatically by $as_me ($PACKAGE) $VERSION
25051 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
25052
25053 # Provide generalized library-building support services.
25054 # Written by Gordon Matzigkeit, 1996
25055
25056 # Copyright (C) 2024 Free Software Foundation, Inc.
25057 # This is free software; see the source for copying conditions. There is NO
25058 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
25059
25060 # GNU Libtool is free software; you can redistribute it and/or modify
25061 # it under the terms of the GNU General Public License as published by
25062 # the Free Software Foundation; either version 2 of the License, or
25063 # (at your option) any later version.
25064 #
25065 # As a special exception to the GNU General Public License, if you
25066 # distribute this file as part of a program or library that is built
25067 # using GNU Libtool, you may include this file under the same
25068 # distribution terms that you use for the rest of that program.
25069 #
25070 # GNU Libtool is distributed in the hope that it will be useful, but
25071 # WITHOUT ANY WARRANTY; without even the implied warranty of
25072 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25073 # GNU General Public License for more details.
25074 #
25075 # You should have received a copy of the GNU General Public License
25076 # along with this program. If not, see <http://www.gnu.org/licenses/>.
25077
25078
25079 # The names of the tagged configurations supported by this script.
25080 available_tags='CXX '
25081
25082 # Configured defaults for sys_lib_dlsearch_path munging.
25083 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
25084
25085 # ### BEGIN LIBTOOL CONFIG
25086
25087 # Which release of libtool.m4 was used?
25088 macro_version=$macro_version
25089 macro_revision=$macro_revision
25090
25091 # Assembler program.
25092 AS=$lt_AS
25093
25094 # DLL creation program.
25095 DLLTOOL=$lt_DLLTOOL
25096
25097 # Object dumper program.
25098 OBJDUMP=$lt_OBJDUMP
25099
25100 # Whether or not to build shared libraries.
25101 build_libtool_libs=$enable_shared
25102
25103 # Whether or not to build static libraries.
25104 build_old_libs=$enable_static
25105
25106 # What type of objects to build.
25107 pic_mode=$pic_mode
25108
25109 # Whether or not to optimize for fast installation.
25110 fast_install=$enable_fast_install
25111
25112 # Shared archive member basename,for filename based shared library versioning on AIX.
25113 shared_archive_member_spec=$shared_archive_member_spec
25114
25115 # Shell to use when invoking shell scripts.
25116 SHELL=$lt_SHELL
25117
25118 # An echo program that protects backslashes.
25119 ECHO=$lt_ECHO
25120
25121 # The PATH separator for the build system.
25122 PATH_SEPARATOR=$lt_PATH_SEPARATOR
25123
25124 # The host system.
25125 host_alias=$host_alias
25126 host=$host
25127 host_os=$host_os
25128
25129 # The build system.
25130 build_alias=$build_alias
25131 build=$build
25132 build_os=$build_os
25133
25134 # A sed program that does not truncate output.
25135 SED=$lt_SED
25136
25137 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
25138 Xsed="\$SED -e 1s/^X//"
25139
25140 # A grep program that handles long lines.
25141 GREP=$lt_GREP
25142
25143 # An ERE matcher.
25144 EGREP=$lt_EGREP
25145
25146 # A literal string matcher.
25147 FGREP=$lt_FGREP
25148
25149 # A BSD- or MS-compatible name lister.
25150 NM=$lt_NM
25151
25152 # Whether we need soft or hard links.
25153 LN_S=$lt_LN_S
25154
25155 # What is the maximum length of a command?
25156 max_cmd_len=$max_cmd_len
25157
25158 # Object file suffix (normally "o").
25159 objext=$ac_objext
25160
25161 # Executable file suffix (normally "").
25162 exeext=$exeext
25163
25164 # whether the shell understands "unset".
25165 lt_unset=$lt_unset
25166
25167 # turn spaces into newlines.
25168 SP2NL=$lt_lt_SP2NL
25169
25170 # turn newlines into spaces.
25171 NL2SP=$lt_lt_NL2SP
25172
25173 # convert \$build file names to \$host format.
25174 to_host_file_cmd=$lt_cv_to_host_file_cmd
25175
25176 # convert \$build files to toolchain format.
25177 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
25178
25179 # A file(cmd) program that detects file types.
25180 FILECMD=$lt_FILECMD
25181
25182 # Method to check whether dependent libraries are shared objects.
25183 deplibs_check_method=$lt_deplibs_check_method
25184
25185 # Command to use when deplibs_check_method = "file_magic".
25186 file_magic_cmd=$lt_file_magic_cmd
25187
25188 # How to find potential files when deplibs_check_method = "file_magic".
25189 file_magic_glob=$lt_file_magic_glob
25190
25191 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
25192 want_nocaseglob=$lt_want_nocaseglob
25193
25194 # Command to associate shared and link libraries.
25195 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
25196
25197 # The archiver.
25198 AR=$lt_AR
25199
25200 # Flags to create an archive (by configure).
25201 lt_ar_flags=$lt_ar_flags
25202
25203 # Flags to create an archive.
25204 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
25205
25206 # How to feed a file listing to the archiver.
25207 archiver_list_spec=$lt_archiver_list_spec
25208
25209 # A symbol stripping program.
25210 STRIP=$lt_STRIP
25211
25212 # Commands used to install an old-style archive.
25213 RANLIB=$lt_RANLIB
25214 old_postinstall_cmds=$lt_old_postinstall_cmds
25215 old_postuninstall_cmds=$lt_old_postuninstall_cmds
25216
25217 # Whether to use a lock for old archive extraction.
25218 lock_old_archive_extraction=$lock_old_archive_extraction
25219
25220 # A C compiler.
25221 LTCC=$lt_CC
25222
25223 # LTCC compiler flags.
25224 LTCFLAGS=$lt_CFLAGS
25225
25226 # Take the output of nm and produce a listing of raw symbols and C names.
25227 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25228
25229 # Transform the output of nm in a proper C declaration.
25230 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25231
25232 # Transform the output of nm into a list of symbols to manually relocate.
25233 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
25234
25235 # Transform the output of nm in a C name address pair.
25236 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25237
25238 # Transform the output of nm in a C name address pair when lib prefix is needed.
25239 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
25240
25241 # The name lister interface.
25242 nm_interface=$lt_lt_cv_nm_interface
25243
25244 # Specify filename containing input files for \$NM.
25245 nm_file_list_spec=$lt_nm_file_list_spec
25246
25247 # The root where to search for dependent libraries,and where our libraries should be installed.
25248 lt_sysroot=$lt_sysroot
25249
25250 # Command to truncate a binary pipe.
25251 lt_truncate_bin=$lt_lt_cv_truncate_bin
25252
25253 # The name of the directory that contains temporary libtool files.
25254 objdir=$objdir
25255
25256 # Used to examine libraries when file_magic_cmd begins with "file".
25257 MAGIC_CMD=$MAGIC_CMD
25258
25259 # Must we lock files when doing compilation?
25260 need_locks=$lt_need_locks
25261
25262 # Manifest tool.
25263 MANIFEST_TOOL=$lt_MANIFEST_TOOL
25264
25265 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
25266 DSYMUTIL=$lt_DSYMUTIL
25267
25268 # Tool to change global to local symbols on Mac OS X.
25269 NMEDIT=$lt_NMEDIT
25270
25271 # Tool to manipulate fat objects and archives on Mac OS X.
25272 LIPO=$lt_LIPO
25273
25274 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
25275 OTOOL=$lt_OTOOL
25276
25277 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
25278 OTOOL64=$lt_OTOOL64
25279
25280 # Old archive suffix (normally "a").
25281 libext=$libext
25282
25283 # Shared library suffix (normally ".so").
25284 shrext_cmds=$lt_shrext_cmds
25285
25286 # The commands to extract the exported symbol list from a shared archive.
25287 extract_expsyms_cmds=$lt_extract_expsyms_cmds
25288
25289 # Variables whose values should be saved in libtool wrapper scripts and
25290 # restored at link time.
25291 variables_saved_for_relink=$lt_variables_saved_for_relink
25292
25293 # Do we need the "lib" prefix for modules?
25294 need_lib_prefix=$need_lib_prefix
25295
25296 # Do we need a version for libraries?
25297 need_version=$need_version
25298
25299 # Library versioning type.
25300 version_type=$version_type
25301
25302 # Shared library runtime path variable.
25303 runpath_var=$runpath_var
25304
25305 # Shared library path variable.
25306 shlibpath_var=$shlibpath_var
25307
25308 # Is shlibpath searched before the hard-coded library search path?
25309 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25310
25311 # Format of library name prefix.
25312 libname_spec=$lt_libname_spec
25313
25314 # List of archive names. First name is the real one, the rest are links.
25315 # The last name is the one that the linker finds with -lNAME
25316 library_names_spec=$lt_library_names_spec
25317
25318 # The coded name of the library, if different from the real name.
25319 soname_spec=$lt_soname_spec
25320
25321 # Permission mode override for installation of shared libraries.
25322 install_override_mode=$lt_install_override_mode
25323
25324 # Command to use after installation of a shared archive.
25325 postinstall_cmds=$lt_postinstall_cmds
25326
25327 # Command to use after uninstallation of a shared archive.
25328 postuninstall_cmds=$lt_postuninstall_cmds
25329
25330 # Commands used to finish a libtool library installation in a directory.
25331 finish_cmds=$lt_finish_cmds
25332
25333 # As "finish_cmds", except a single script fragment to be evaled but
25334 # not shown.
25335 finish_eval=$lt_finish_eval
25336
25337 # Whether we should hardcode library paths into libraries.
25338 hardcode_into_libs=$hardcode_into_libs
25339
25340 # Compile-time system search path for libraries.
25341 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25342
25343 # Detected run-time system search path for libraries.
25344 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
25345
25346 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
25347 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
25348
25349 # Whether dlopen is supported.
25350 dlopen_support=$enable_dlopen
25351
25352 # Whether dlopen of programs is supported.
25353 dlopen_self=$enable_dlopen_self
25354
25355 # Whether dlopen of statically linked programs is supported.
25356 dlopen_self_static=$enable_dlopen_self_static
25357
25358 # Commands to strip libraries.
25359 old_striplib=$lt_old_striplib
25360 striplib=$lt_striplib
25361
25362
25363 # The linker used to build libraries.
25364 LD=$lt_LD
25365
25366 # How to create reloadable object files.
25367 reload_flag=$lt_reload_flag
25368 reload_cmds=$lt_reload_cmds
25369
25370 # Commands used to build an old-style archive.
25371 old_archive_cmds=$lt_old_archive_cmds
25372
25373 # A language specific compiler.
25374 CC=$lt_compiler
25375
25376 # Is the compiler the GNU compiler?
25377 with_gcc=$GCC
25378
25379 # Compiler flag to turn off builtin functions.
25380 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
25381
25382 # Additional compiler flags for building library objects.
25383 pic_flag=$lt_lt_prog_compiler_pic
25384
25385 # How to pass a linker flag through the compiler.
25386 wl=$lt_lt_prog_compiler_wl
25387
25388 # Compiler flag to prevent dynamic linking.
25389 link_static_flag=$lt_lt_prog_compiler_static
25390
25391 # Does compiler simultaneously support -c and -o options?
25392 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
25393
25394 # Whether or not to add -lc for building shared libraries.
25395 build_libtool_need_lc=$archive_cmds_need_lc
25396
25397 # Whether or not to disallow shared libs when runtime libs are static.
25398 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
25399
25400 # Compiler flag to allow reflexive dlopens.
25401 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
25402
25403 # Compiler flag to generate shared objects directly from archives.
25404 whole_archive_flag_spec=$lt_whole_archive_flag_spec
25405
25406 # Whether the compiler copes with passing no objects directly.
25407 compiler_needs_object=$lt_compiler_needs_object
25408
25409 # Create an old-style archive from a shared archive.
25410 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
25411
25412 # Create a temporary old-style archive to link instead of a shared archive.
25413 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
25414
25415 # Commands used to build a shared archive.
25416 archive_cmds=$lt_archive_cmds
25417 archive_expsym_cmds=$lt_archive_expsym_cmds
25418
25419 # Commands used to build a loadable module if different from building
25420 # a shared archive.
25421 module_cmds=$lt_module_cmds
25422 module_expsym_cmds=$lt_module_expsym_cmds
25423
25424 # Whether we are building with GNU ld or not.
25425 with_gnu_ld=$lt_with_gnu_ld
25426
25427 # Flag that allows shared libraries with undefined symbols to be built.
25428 allow_undefined_flag=$lt_allow_undefined_flag
25429
25430 # Flag that enforces no undefined symbols.
25431 no_undefined_flag=$lt_no_undefined_flag
25432
25433 # Flag to hardcode \$libdir into a binary during linking.
25434 # This must work even if \$libdir does not exist
25435 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
25436
25437 # Whether we need a single "-rpath" flag with a separated argument.
25438 hardcode_libdir_separator=$lt_hardcode_libdir_separator
25439
25440 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
25441 # DIR into the resulting binary.
25442 hardcode_direct=$hardcode_direct
25443
25444 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
25445 # DIR into the resulting binary and the resulting library dependency is
25446 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
25447 # library is relocated.
25448 hardcode_direct_absolute=$hardcode_direct_absolute
25449
25450 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
25451 # into the resulting binary.
25452 hardcode_minus_L=$hardcode_minus_L
25453
25454 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
25455 # into the resulting binary.
25456 hardcode_shlibpath_var=$hardcode_shlibpath_var
25457
25458 # Set to "yes" if building a shared library automatically hardcodes DIR
25459 # into the library and all subsequent libraries and executables linked
25460 # against it.
25461 hardcode_automatic=$hardcode_automatic
25462
25463 # Set to yes if linker adds runtime paths of dependent libraries
25464 # to runtime path list.
25465 inherit_rpath=$inherit_rpath
25466
25467 # Whether libtool must link a program against all its dependency libraries.
25468 link_all_deplibs=$link_all_deplibs
25469
25470 # Set to "yes" if exported symbols are required.
25471 always_export_symbols=$always_export_symbols
25472
25473 # The commands to list exported symbols.
25474 export_symbols_cmds=$lt_export_symbols_cmds
25475
25476 # Symbols that should not be listed in the preloaded symbols.
25477 exclude_expsyms=$lt_exclude_expsyms
25478
25479 # Symbols that must always be exported.
25480 include_expsyms=$lt_include_expsyms
25481
25482 # Commands necessary for linking programs (against libraries) with templates.
25483 prelink_cmds=$lt_prelink_cmds
25484
25485 # Commands necessary for finishing linking programs.
25486 postlink_cmds=$lt_postlink_cmds
25487
25488 # Specify filename containing input files.
25489 file_list_spec=$lt_file_list_spec
25490
25491 # How to hardcode a shared library path into an executable.
25492 hardcode_action=$hardcode_action
25493
25494 # The directories searched by this compiler when creating a shared library.
25495 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
25496
25497 # Dependencies to place before and after the objects being linked to
25498 # create a shared library.
25499 predep_objects=$lt_predep_objects
25500 postdep_objects=$lt_postdep_objects
25501 predeps=$lt_predeps
25502 postdeps=$lt_postdeps
25503
25504 # The library search path used internally by the compiler when linking
25505 # a shared library.
25506 compiler_lib_search_path=$lt_compiler_lib_search_path
25507
25508 # ### END LIBTOOL CONFIG
25509
25510 _LT_EOF
25511
25512 cat <<'_LT_EOF' >> "$cfgfile"
25513
25514 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
25515
25516 # func_munge_path_list VARIABLE PATH
25517 # -----------------------------------
25518 # VARIABLE is name of variable containing _space_ separated list of
25519 # directories to be munged by the contents of PATH, which is string
25520 # having a format:
25521 # "DIR[:DIR]:"
25522 # string "DIR[ DIR]" will be prepended to VARIABLE
25523 # ":DIR[:DIR]"
25524 # string "DIR[ DIR]" will be appended to VARIABLE
25525 # "DIRP[:DIRP]::[DIRA:]DIRA"
25526 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
25527 # "DIRA[ DIRA]" will be appended to VARIABLE
25528 # "DIR[:DIR]"
25529 # VARIABLE will be replaced by "DIR[ DIR]"
25530 func_munge_path_list ()
25531 {
25532 case x$2 in
25533 x)
25534 ;;
25535 *:)
25536 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
25537 ;;
25538 x:*)
25539 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
25540 ;;
25541 *::*)
25542 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
25543 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
25544 ;;
25545 *)
25546 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
25547 ;;
25548 esac
25549 }
25550
25551
25552 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
25553 func_cc_basename ()
25554 {
25555 for cc_temp in $*""; do
25556 case $cc_temp in
25557 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
25558 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
25559 \-*) ;;
25560 *) break;;
25561 esac
25562 done
25563 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
25564 }
25565
25566
25567 # ### END FUNCTIONS SHARED WITH CONFIGURE
25568
25569 _LT_EOF
25570
25571 case $host_os in
25572 aix3*)
25573 cat <<\_LT_EOF >> "$cfgfile"
25574 # AIX sometimes has problems with the GCC collect2 program. For some
25575 # reason, if we set the COLLECT_NAMES environment variable, the problems
25576 # vanish in a puff of smoke.
25577 if test set != "${COLLECT_NAMES+set}"; then
25578 COLLECT_NAMES=
25579 export COLLECT_NAMES
25580 fi
25581 _LT_EOF
25582 ;;
25583 esac
25584
25585
25586
25587 ltmain=$ac_aux_dir/ltmain.sh
25588
25589
25590 # We use sed instead of cat because bash on DJGPP gets confused if
25591 # if finds mixed CR/LF and LF-only lines. Since sed operates in
25592 # text mode, it properly converts lines to CR/LF. This bash problem
25593 # is reportedly fixed, but why not run on old versions too?
25594 $SED '$q' "$ltmain" >> "$cfgfile" \
25595 || (rm -f "$cfgfile"; exit 1)
25596
25597 mv -f "$cfgfile" "$ofile" ||
25598 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
25599 chmod +x "$ofile"
25600
25601
25602 cat <<_LT_EOF >> "$ofile"
25603
25604 # ### BEGIN LIBTOOL TAG CONFIG: CXX
25605
25606 # The linker used to build libraries.
25607 LD=$lt_LD_CXX
25608
25609 # How to create reloadable object files.
25610 reload_flag=$lt_reload_flag_CXX
25611 reload_cmds=$lt_reload_cmds_CXX
25612
25613 # Commands used to build an old-style archive.
25614 old_archive_cmds=$lt_old_archive_cmds_CXX
25615
25616 # A language specific compiler.
25617 CC=$lt_compiler_CXX
25618
25619 # Is the compiler the GNU compiler?
25620 with_gcc=$GCC_CXX
25621
25622 # Compiler flag to turn off builtin functions.
25623 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
25624
25625 # Additional compiler flags for building library objects.
25626 pic_flag=$lt_lt_prog_compiler_pic_CXX
25627
25628 # How to pass a linker flag through the compiler.
25629 wl=$lt_lt_prog_compiler_wl_CXX
25630
25631 # Compiler flag to prevent dynamic linking.
25632 link_static_flag=$lt_lt_prog_compiler_static_CXX
25633
25634 # Does compiler simultaneously support -c and -o options?
25635 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
25636
25637 # Whether or not to add -lc for building shared libraries.
25638 build_libtool_need_lc=$archive_cmds_need_lc_CXX
25639
25640 # Whether or not to disallow shared libs when runtime libs are static.
25641 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
25642
25643 # Compiler flag to allow reflexive dlopens.
25644 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
25645
25646 # Compiler flag to generate shared objects directly from archives.
25647 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
25648
25649 # Whether the compiler copes with passing no objects directly.
25650 compiler_needs_object=$lt_compiler_needs_object_CXX
25651
25652 # Create an old-style archive from a shared archive.
25653 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
25654
25655 # Create a temporary old-style archive to link instead of a shared archive.
25656 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
25657
25658 # Commands used to build a shared archive.
25659 archive_cmds=$lt_archive_cmds_CXX
25660 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
25661
25662 # Commands used to build a loadable module if different from building
25663 # a shared archive.
25664 module_cmds=$lt_module_cmds_CXX
25665 module_expsym_cmds=$lt_module_expsym_cmds_CXX
25666
25667 # Whether we are building with GNU ld or not.
25668 with_gnu_ld=$lt_with_gnu_ld_CXX
25669
25670 # Flag that allows shared libraries with undefined symbols to be built.
25671 allow_undefined_flag=$lt_allow_undefined_flag_CXX
25672
25673 # Flag that enforces no undefined symbols.
25674 no_undefined_flag=$lt_no_undefined_flag_CXX
25675
25676 # Flag to hardcode \$libdir into a binary during linking.
25677 # This must work even if \$libdir does not exist
25678 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
25679
25680 # Whether we need a single "-rpath" flag with a separated argument.
25681 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
25682
25683 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
25684 # DIR into the resulting binary.
25685 hardcode_direct=$hardcode_direct_CXX
25686
25687 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
25688 # DIR into the resulting binary and the resulting library dependency is
25689 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
25690 # library is relocated.
25691 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
25692
25693 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
25694 # into the resulting binary.
25695 hardcode_minus_L=$hardcode_minus_L_CXX
25696
25697 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
25698 # into the resulting binary.
25699 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
25700
25701 # Set to "yes" if building a shared library automatically hardcodes DIR
25702 # into the library and all subsequent libraries and executables linked
25703 # against it.
25704 hardcode_automatic=$hardcode_automatic_CXX
25705
25706 # Set to yes if linker adds runtime paths of dependent libraries
25707 # to runtime path list.
25708 inherit_rpath=$inherit_rpath_CXX
25709
25710 # Whether libtool must link a program against all its dependency libraries.
25711 link_all_deplibs=$link_all_deplibs_CXX
25712
25713 # Set to "yes" if exported symbols are required.
25714 always_export_symbols=$always_export_symbols_CXX
25715
25716 # The commands to list exported symbols.
25717 export_symbols_cmds=$lt_export_symbols_cmds_CXX
25718
25719 # Symbols that should not be listed in the preloaded symbols.
25720 exclude_expsyms=$lt_exclude_expsyms_CXX
25721
25722 # Symbols that must always be exported.
25723 include_expsyms=$lt_include_expsyms_CXX
25724
25725 # Commands necessary for linking programs (against libraries) with templates.
25726 prelink_cmds=$lt_prelink_cmds_CXX
25727
25728 # Commands necessary for finishing linking programs.
25729 postlink_cmds=$lt_postlink_cmds_CXX
25730
25731 # Specify filename containing input files.
25732 file_list_spec=$lt_file_list_spec_CXX
25733
25734 # How to hardcode a shared library path into an executable.
25735 hardcode_action=$hardcode_action_CXX
25736
25737 # The directories searched by this compiler when creating a shared library.
25738 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
25739
25740 # Dependencies to place before and after the objects being linked to
25741 # create a shared library.
25742 predep_objects=$lt_predep_objects_CXX
25743 postdep_objects=$lt_postdep_objects_CXX
25744 predeps=$lt_predeps_CXX
25745 postdeps=$lt_postdeps_CXX
25746
25747 # The library search path used internally by the compiler when linking
25748 # a shared library.
25749 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
25750
25751 # ### END LIBTOOL TAG CONFIG: CXX
25752 _LT_EOF
25753
25754 ;;
25755
25756 esac
25757 done # for ac_tag
25758
25759
25760 as_fn_exit 0
25761 _ACEOF
25762 ac_clean_files=$ac_clean_files_save
25763
25764 test $ac_write_fail = 0 ||
25765 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
25766
25767 if test "x$cross_compiling" = xyes
25768 then :
25769 if test "x$cache_file" != x/dev/null
25770 then :
25771 cache_file=config.cache
25772 fi
25773 ac_configure_args="$ac_configure_args --host='$kpse_build_alias' \
25774 CC='$BUILDCC' CFLAGS='$BUILDCFLAGS' \
25775 CPPFLAGS='$BUILDCPPFLAGS' LDFLAGS='$BUILDLDFLAGS'"
25776 fi
25777
25778 # configure is writing to config.log, and then calls config.status.
25779 # config.status does its own redirection, appending to config.log.
25780 # Unfortunately, on DOS this fails, as config.log is still kept open
25781 # by configure, so config.status won't be able to write to it; its
25782 # output is simply discarded. So we exec the FD to /dev/null,
25783 # effectively closing config.log, so it can be properly (re)opened and
25784 # appended to by config.status. When coming back to configure, we
25785 # need to make the FD available again.
25786 if test "$no_create" != yes; then
25787 ac_cs_success=:
25788 ac_config_status_args=
25789 test "$silent" = yes &&
25790 ac_config_status_args="$ac_config_status_args --quiet"
25791 exec 5>/dev/null
25792 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25793 exec 5>>config.log
25794 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25795 # would make configure fail if this is the last instruction.
25796 $ac_cs_success || as_fn_exit 1
25797 fi
25798
25799 #
25800 # CONFIG_SUBDIRS section.
25801 #
25802 if test "$no_recursion" != yes; then
25803
25804 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
25805 # so they do not pile up.
25806 ac_sub_configure_args=
25807 ac_prev=
25808 eval "set x $ac_configure_args"
25809 shift
25810 for ac_arg
25811 do
25812 if test -n "$ac_prev"; then
25813 ac_prev=
25814 continue
25815 fi
25816 case $ac_arg in
25817 -cache-file | --cache-file | --cache-fil | --cache-fi \
25818 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
25819 ac_prev=cache_file ;;
25820 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
25821 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
25822 | --c=*)
25823 ;;
25824 --config-cache | -C)
25825 ;;
25826 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
25827 ac_prev=srcdir ;;
25828 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
25829 ;;
25830 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
25831 ac_prev=prefix ;;
25832 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
25833 ;;
25834 --disable-option-checking)
25835 ;;
25836 *)
25837 case $ac_arg in
25838 *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
25839 esac
25840 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
25841 esac
25842 done
25843
25844 # Always prepend --prefix to ensure using the same prefix
25845 # in subdir configurations.
25846 ac_arg="--prefix=$prefix"
25847 case $ac_arg in
25848 *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
25849 esac
25850 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
25851
25852 # Pass --silent
25853 if test "$silent" = yes; then
25854 ac_sub_configure_args="--silent $ac_sub_configure_args"
25855 fi
25856
25857 # Always prepend --disable-option-checking to silence warnings, since
25858 # different subdirs can have different --enable and --with options.
25859 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
25860
25861 ac_popdir=`pwd`
25862 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
25863
25864 # Do not complain, so a configure script can configure whichever
25865 # parts of a large source tree are present.
25866 test -d "$srcdir/$ac_dir" || continue
25867
25868 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
25869 printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
25870 printf "%s\n" "$ac_msg" >&6
25871 as_dir="$ac_dir"; as_fn_mkdir_p
25872 ac_builddir=.
25873
25874 case "$ac_dir" in
25875 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25876 *)
25877 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
25878 # A ".." for each directory in $ac_dir_suffix.
25879 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
25880 case $ac_top_builddir_sub in
25881 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25882 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25883 esac ;;
25884 esac
25885 ac_abs_top_builddir=$ac_pwd
25886 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25887 # for backward compatibility:
25888 ac_top_builddir=$ac_top_build_prefix
25889
25890 case $srcdir in
25891 .) # We are building in place.
25892 ac_srcdir=.
25893 ac_top_srcdir=$ac_top_builddir_sub
25894 ac_abs_top_srcdir=$ac_pwd ;;
25895 [\\/]* | ?:[\\/]* ) # Absolute name.
25896 ac_srcdir=$srcdir$ac_dir_suffix;
25897 ac_top_srcdir=$srcdir
25898 ac_abs_top_srcdir=$srcdir ;;
25899 *) # Relative name.
25900 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25901 ac_top_srcdir=$ac_top_build_prefix$srcdir
25902 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25903 esac
25904 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25905
25906
25907 cd "$ac_dir"
25908
25909 # Check for configure.gnu first; this name is used for a wrapper for
25910 # Metaconfig's "Configure" on case-insensitive file systems.
25911 if test -f "$ac_srcdir/configure.gnu"; then
25912 ac_sub_configure=$ac_srcdir/configure.gnu
25913 elif test -f "$ac_srcdir/configure"; then
25914 ac_sub_configure=$ac_srcdir/configure
25915 else
25916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
25917 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
25918 ac_sub_configure=
25919 fi
25920
25921 # The recursion is here.
25922 if test -n "$ac_sub_configure"; then
25923 # Make the cache file name correct relative to the subdirectory.
25924 case $cache_file in
25925 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
25926 *) # Relative name.
25927 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
25928 esac
25929
25930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
25931 printf "%s\n" "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
25932 # The eval makes quoting arguments work.
25933 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
25934 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
25935 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
25936 fi
25937
25938 cd "$ac_popdir"
25939 done
25940 fi
25941 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
25942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
25943 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
25944 fi
25945
25946