Debian Codegraph @

texk/upmendex/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 upmendex (TeX Live) 1.22.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
7 # Inc.
8 #
9 #
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## -------------------- ##
13 ## M4sh Initialization. ##
14 ## -------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
19 then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else case e in #(
27 e) case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac ;;
33 esac
34 fi
35
36
37
38 # Reset variables that may have inherited troublesome values from
39 # the environment.
40
41 # IFS needs to be set, to space, tab, and newline, in precisely that order.
42 # (If _AS_PATH_WALK were called with IFS unset, it would have the
43 # side effect of setting IFS to empty, thus disabling word splitting.)
44 # Quoting is to prevent editors from complaining about space-tab.
45 as_nl='
46 '
47 export as_nl
48 IFS=" "" $as_nl"
49
50 PS1='$ '
51 PS2='> '
52 PS4='+ '
53
54 # Ensure predictable behavior from utilities with locale-dependent output.
55 LC_ALL=C
56 export LC_ALL
57 LANGUAGE=C
58 export LANGUAGE
59
60 # We cannot yet rely on "unset" to work, but we need these variables
61 # to be unset--not just set to an empty or harmless value--now, to
62 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
63 # also avoids known problems related to "unset" and subshell syntax
64 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
65 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
66 do eval test \${$as_var+y} \
67 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
68 done
69
70 # Ensure that fds 0, 1, and 2 are open.
71 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
72 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
73 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
74
75 # The user is always right.
76 if ${PATH_SEPARATOR+false} :; then
77 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
81 }
82 fi
83
84
85 # Find who we are. Look in the path if we contain no directory separator.
86 as_myself=
87 case $0 in #((
88 *[\\/]* ) as_myself=$0 ;;
89 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
90 for as_dir in $PATH
91 do
92 IFS=$as_save_IFS
93 case $as_dir in #(((
94 '') as_dir=./ ;;
95 */) ;;
96 *) as_dir=$as_dir/ ;;
97 esac
98 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as 'sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114
115 # Use a proper internal environment variable to ensure we don't fall
116 # into an infinite loop, continuously re-executing ourselves.
117 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
118 _as_can_reexec=no; export _as_can_reexec;
119 # We cannot yet assume a decent shell, so we have to provide a
120 # neutralization value for shells without unset; and this also
121 # works around shells that cannot unset nonexistent variables.
122 # Preserve -v and -x to the replacement shell.
123 BASH_ENV=/dev/null
124 ENV=/dev/null
125 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
126 case $- in # ((((
127 *v*x* | *x*v* ) as_opts=-vx ;;
128 *v* ) as_opts=-v ;;
129 *x* ) as_opts=-x ;;
130 * ) as_opts= ;;
131 esac
132 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
133 # Admittedly, this is quite paranoid, since all the known shells bail
134 # out after a failed 'exec'.
135 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
136 exit 255
137 fi
138 # We don't want this to propagate to other subprocesses.
139 { _as_can_reexec=; unset _as_can_reexec;}
140 if test "x$CONFIG_SHELL" = x; then
141 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
142 then :
143 emulate sh
144 NULLCMD=:
145 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
146 # is contrary to our usage. Disable this feature.
147 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 setopt NO_GLOB_SUBST
149 else case e in #(
150 e) case \`(set -o) 2>/dev/null\` in #(
151 *posix*) :
152 set -o posix ;; #(
153 *) :
154 ;;
155 esac ;;
156 esac
157 fi
158 "
159 as_required="as_fn_return () { (exit \$1); }
160 as_fn_success () { as_fn_return 0; }
161 as_fn_failure () { as_fn_return 1; }
162 as_fn_ret_success () { return 0; }
163 as_fn_ret_failure () { return 1; }
164
165 exitcode=0
166 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
167 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
168 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
169 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
170 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
171 then :
172
173 else case e in #(
174 e) exitcode=1; echo positional parameters were not saved. ;;
175 esac
176 fi
177 test x\$exitcode = x0 || exit 1
178 blah=\$(echo \$(echo blah))
179 test x\"\$blah\" = xblah || exit 1
180 test -x / || exit 1"
181 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
182 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
183 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
184 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
185
186 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
187 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
188 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190 PATH=/empty FPATH=/empty; export PATH FPATH
191 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
192 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
193 test \$(( 1 + 1 )) = 2 || exit 1"
194 if (eval "$as_required") 2>/dev/null
195 then :
196 as_have_required=yes
197 else case e in #(
198 e) as_have_required=no ;;
199 esac
200 fi
201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202 then :
203
204 else case e in #(
205 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206 as_found=false
207 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208 do
209 IFS=$as_save_IFS
210 case $as_dir in #(((
211 '') as_dir=./ ;;
212 */) ;;
213 *) as_dir=$as_dir/ ;;
214 esac
215 as_found=:
216 case $as_dir in #(
217 /*)
218 for as_base in sh bash ksh sh5; do
219 # Try only shells that exist, to save several forks.
220 as_shell=$as_dir$as_base
221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223 then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226 then :
227 break 2
228 fi
229 fi
230 done;;
231 esac
232 as_found=false
233 done
234 IFS=$as_save_IFS
235 if $as_found
236 then :
237
238 else case e in #(
239 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241 then :
242 CONFIG_SHELL=$SHELL as_have_required=yes
243 fi ;;
244 esac
245 fi
246
247
248 if test "x$CONFIG_SHELL" != x
249 then :
250 export CONFIG_SHELL
251 # We cannot yet assume a decent shell, so we have to provide a
252 # neutralization value for shells without unset; and this also
253 # works around shells that cannot unset nonexistent variables.
254 # Preserve -v and -x to the replacement shell.
255 BASH_ENV=/dev/null
256 ENV=/dev/null
257 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 case $- in # ((((
259 *v*x* | *x*v* ) as_opts=-vx ;;
260 *v* ) as_opts=-v ;;
261 *x* ) as_opts=-x ;;
262 * ) as_opts= ;;
263 esac
264 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
265 # Admittedly, this is quite paranoid, since all the known shells bail
266 # out after a failed 'exec'.
267 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
268 exit 255
269 fi
270
271 if test x$as_have_required = xno
272 then :
273 printf "%s\n" "$0: This script requires a shell more modern than all"
274 printf "%s\n" "$0: the shells that I found on your system."
275 if test ${ZSH_VERSION+y} ; then
276 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
277 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
278 else
279 printf "%s\n" "$0: Please tell [email protected] about your system,
280 $0: including any error possibly output before this
281 $0: message. Then install a modern shell, or manually run
282 $0: the script under such a shell if you do have one."
283 fi
284 exit 1
285 fi ;;
286 esac
287 fi
288 fi
289 SHELL=${CONFIG_SHELL-/bin/sh}
290 export SHELL
291 # Unset more variables known to interfere with behavior of common tools.
292 CLICOLOR_FORCE= GREP_OPTIONS=
293 unset CLICOLOR_FORCE GREP_OPTIONS
294
295 ## --------------------- ##
296 ## M4sh Shell Functions. ##
297 ## --------------------- ##
298 # as_fn_unset VAR
299 # ---------------
300 # Portably unset VAR.
301 as_fn_unset ()
302 {
303 { eval $1=; unset $1;}
304 }
305 as_unset=as_fn_unset
306
307
308 # as_fn_set_status STATUS
309 # -----------------------
310 # Set $? to STATUS, without forking.
311 as_fn_set_status ()
312 {
313 return $1
314 } # as_fn_set_status
315
316 # as_fn_exit STATUS
317 # -----------------
318 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
319 as_fn_exit ()
320 {
321 set +e
322 as_fn_set_status $1
323 exit $1
324 } # as_fn_exit
325
326 # as_fn_mkdir_p
327 # -------------
328 # Create "$as_dir" as a directory, including parents if necessary.
329 as_fn_mkdir_p ()
330 {
331
332 case $as_dir in #(
333 -*) as_dir=./$as_dir;;
334 esac
335 test -d "$as_dir" || eval $as_mkdir_p || {
336 as_dirs=
337 while :; do
338 case $as_dir in #(
339 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
340 *) as_qdir=$as_dir;;
341 esac
342 as_dirs="'$as_qdir' $as_dirs"
343 as_dir=`$as_dirname -- "$as_dir" ||
344 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
345 X"$as_dir" : 'X\(//\)[^/]' \| \
346 X"$as_dir" : 'X\(//\)$' \| \
347 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
348 printf "%s\n" X"$as_dir" |
349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
350 s//\1/
351 q
352 }
353 /^X\(\/\/\)[^/].*/{
354 s//\1/
355 q
356 }
357 /^X\(\/\/\)$/{
358 s//\1/
359 q
360 }
361 /^X\(\/\).*/{
362 s//\1/
363 q
364 }
365 s/.*/./; q'`
366 test -d "$as_dir" && break
367 done
368 test -z "$as_dirs" || eval "mkdir $as_dirs"
369 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
370
371
372 } # as_fn_mkdir_p
373
374 # as_fn_executable_p FILE
375 # -----------------------
376 # Test if FILE is an executable regular file.
377 as_fn_executable_p ()
378 {
379 test -f "$1" && test -x "$1"
380 } # as_fn_executable_p
381 # as_fn_append VAR VALUE
382 # ----------------------
383 # Append the text in VALUE to the end of the definition contained in VAR. Take
384 # advantage of any shell optimizations that allow amortized linear growth over
385 # repeated appends, instead of the typical quadratic growth present in naive
386 # implementations.
387 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
388 then :
389 eval 'as_fn_append ()
390 {
391 eval $1+=\$2
392 }'
393 else case e in #(
394 e) as_fn_append ()
395 {
396 eval $1=\$$1\$2
397 } ;;
398 esac
399 fi # as_fn_append
400
401 # as_fn_arith ARG...
402 # ------------------
403 # Perform arithmetic evaluation on the ARGs, and store the result in the
404 # global $as_val. Take advantage of shells that can avoid forks. The arguments
405 # must be portable across $(()) and expr.
406 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
407 then :
408 eval 'as_fn_arith ()
409 {
410 as_val=$(( $* ))
411 }'
412 else case e in #(
413 e) as_fn_arith ()
414 {
415 as_val=`expr "$@" || test $? -eq 1`
416 } ;;
417 esac
418 fi # as_fn_arith
419
420
421 # as_fn_error STATUS ERROR [LINENO LOG_FD]
422 # ----------------------------------------
423 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
424 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
425 # script with STATUS, using 1 if that was 0.
426 as_fn_error ()
427 {
428 as_status=$1; test $as_status -eq 0 && as_status=1
429 if test "$4"; then
430 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
431 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
432 fi
433 printf "%s\n" "$as_me: error: $2" >&2
434 as_fn_exit $as_status
435 } # as_fn_error
436
437 if expr a : '\(a\)' >/dev/null 2>&1 &&
438 test "X`expr 00001 : '.*\(...\)'`" = X001; then
439 as_expr=expr
440 else
441 as_expr=false
442 fi
443
444 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
445 as_basename=basename
446 else
447 as_basename=false
448 fi
449
450 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
451 as_dirname=dirname
452 else
453 as_dirname=false
454 fi
455
456 as_me=`$as_basename -- "$0" ||
457 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
458 X"$0" : 'X\(//\)$' \| \
459 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
460 printf "%s\n" X/"$0" |
461 sed '/^.*\/\([^/][^/]*\)\/*$/{
462 s//\1/
463 q
464 }
465 /^X\/\(\/\/\)$/{
466 s//\1/
467 q
468 }
469 /^X\/\(\/\).*/{
470 s//\1/
471 q
472 }
473 s/.*/./; q'`
474
475 # Avoid depending upon Character Ranges.
476 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
477 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
478 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
479 as_cr_digits='0123456789'
480 as_cr_alnum=$as_cr_Letters$as_cr_digits
481
482
483 as_lineno_1=$LINENO as_lineno_1a=$LINENO
484 as_lineno_2=$LINENO as_lineno_2a=$LINENO
485 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
486 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
487 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
488 sed -n '
489 p
490 /[$]LINENO/=
491 ' <$as_myself |
492 sed '
493 t clear
494 :clear
495 s/[$]LINENO.*/&-/
496 t lineno
497 b
498 :lineno
499 N
500 :loop
501 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
502 t loop
503 s/-\n.*//
504 ' >$as_me.lineno &&
505 chmod +x "$as_me.lineno" ||
506 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
507
508 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
509 # already done that, so ensure we don't try to do so again and fall
510 # in an infinite loop. This has already happened in practice.
511 _as_can_reexec=no; export _as_can_reexec
512 # Don't try to exec as it changes $[0], causing all sort of problems
513 # (the dirname of $[0] is not the place where we might find the
514 # original and so on. Autoconf is especially sensitive to this).
515 . "./$as_me.lineno"
516 # Exit status is that of the last command.
517 exit
518 }
519
520
521 # Determine whether it's possible to make 'echo' print without a newline.
522 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
523 # for compatibility with existing Makefiles.
524 ECHO_C= ECHO_N= ECHO_T=
525 case `echo -n x` in #(((((
526 -n*)
527 case `echo 'xy\c'` in
528 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
529 xy) ECHO_C='\c';;
530 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
531 ECHO_T=' ';;
532 esac;;
533 *)
534 ECHO_N='-n';;
535 esac
536
537 # For backward compatibility with old third-party macros, we provide
538 # the shell variables $as_echo and $as_echo_n. New code should use
539 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
540 as_echo='printf %s\n'
541 as_echo_n='printf %s'
542
543 rm -f conf$$ conf$$.exe conf$$.file
544 if test -d conf$$.dir; then
545 rm -f conf$$.dir/conf$$.file
546 else
547 rm -f conf$$.dir
548 mkdir conf$$.dir 2>/dev/null
549 fi
550 if (echo >conf$$.file) 2>/dev/null; then
551 if ln -s conf$$.file conf$$ 2>/dev/null; then
552 as_ln_s='ln -s'
553 # ... but there are two gotchas:
554 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
555 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
556 # In both cases, we have to default to 'cp -pR'.
557 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
558 as_ln_s='cp -pR'
559 elif ln conf$$.file conf$$ 2>/dev/null; then
560 as_ln_s=ln
561 else
562 as_ln_s='cp -pR'
563 fi
564 else
565 as_ln_s='cp -pR'
566 fi
567 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
568 rmdir conf$$.dir 2>/dev/null
569
570 if mkdir -p . 2>/dev/null; then
571 as_mkdir_p='mkdir -p "$as_dir"'
572 else
573 test -d ./-p && rmdir ./-p
574 as_mkdir_p=false
575 fi
576
577 as_test_x='test -x'
578 as_executable_p=as_fn_executable_p
579
580 # Sed expression to map a string onto a valid CPP name.
581 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
582 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
583
584 # Sed expression to map a string onto a valid variable name.
585 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
586 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
587
588 SHELL=${CONFIG_SHELL-/bin/sh}
589
590
591 test -n "$DJDIR" || exec 7<&0 </dev/null
592 exec 6>&1
593
594 # Name of the host.
595 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
596 # so uname gets run too.
597 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
598
599 #
600 # Initializations.
601 #
602 ac_default_prefix=/usr/local
603 ac_clean_files=
604 ac_config_libobj_dir=.
605 LIBOBJS=
606 cross_compiling=no
607 subdirs=
608 MFLAGS=
609 MAKEFLAGS=
610
611 # Identity of this package.
612 PACKAGE_NAME='upmendex (TeX Live)'
613 PACKAGE_TARNAME='upmendex--tex-live-'
614 PACKAGE_VERSION='1.22'
615 PACKAGE_STRING='upmendex (TeX Live) 1.22'
616 PACKAGE_BUGREPORT=''
617 PACKAGE_URL=''
618
619 ac_unique_file="main.c"
620 # Factoring default headers for most tests.
621 ac_includes_default="\
622 #include <stddef.h>
623 #ifdef HAVE_STDIO_H
624 # include <stdio.h>
625 #endif
626 #ifdef HAVE_STDLIB_H
627 # include <stdlib.h>
628 #endif
629 #ifdef HAVE_STRING_H
630 # include <string.h>
631 #endif
632 #ifdef HAVE_INTTYPES_H
633 # include <inttypes.h>
634 #endif
635 #ifdef HAVE_STDINT_H
636 # include <stdint.h>
637 #endif
638 #ifdef HAVE_STRINGS_H
639 # include <strings.h>
640 #endif
641 #ifdef HAVE_SYS_TYPES_H
642 # include <sys/types.h>
643 #endif
644 #ifdef HAVE_SYS_STAT_H
645 # include <sys/stat.h>
646 #endif
647 #ifdef HAVE_UNISTD_H
648 # include <unistd.h>
649 #endif"
650
651 ac_header_c_list=
652 enable_year2038=no
653 ac_subst_vars='am__EXEEXT_FALSE
654 am__EXEEXT_TRUE
655 LTLIBOBJS
656 LIBOBJS
657 ICU_RULE
658 ICU_DEPEND
659 ICU_LIBS
660 ICU_INCLUDES
661 ICU_CONFIG
662 PTHREAD_LIB
663 KPATHSEA_RULE
664 KPATHSEA_DEPEND
665 KPATHSEA_LIBS
666 KPATHSEA_INCLUDES
667 PKG_CONFIG
668 CXXLD
669 CXXCPP
670 WARNING_CXXFLAGS
671 am__fastdepCXX_FALSE
672 am__fastdepCXX_TRUE
673 CXXDEPMODE
674 ac_ct_CXX
675 CXXFLAGS
676 CXX
677 LT_SYS_LIBRARY_PATH
678 OTOOL64
679 OTOOL
680 LIPO
681 NMEDIT
682 DSYMUTIL
683 MANIFEST_TOOL
684 RANLIB
685 FILECMD
686 LN_S
687 NM
688 ac_ct_DUMPBIN
689 DUMPBIN
690 LD
691 FGREP
692 EGREP
693 GREP
694 SED
695 host_os
696 host_vendor
697 host_cpu
698 host
699 build_os
700 build_vendor
701 build_cpu
702 build
703 LIBTOOL
704 OBJDUMP
705 DLLTOOL
706 AS
707 ac_ct_AR
708 AR
709 WARNING_CFLAGS
710 am__fastdepCC_FALSE
711 am__fastdepCC_TRUE
712 CCDEPMODE
713 am__nodep
714 AMDEPBACKSLASH
715 AMDEP_FALSE
716 AMDEP_TRUE
717 am__include
718 DEPDIR
719 OBJEXT
720 EXEEXT
721 ac_ct_CC
722 CPPFLAGS
723 LDFLAGS
724 CFLAGS
725 CC
726 MAINT
727 MAINTAINER_MODE_FALSE
728 MAINTAINER_MODE_TRUE
729 am__xargs_n
730 am__rm_f_notfound
731 AM_BACKSLASH
732 AM_DEFAULT_VERBOSITY
733 AM_DEFAULT_V
734 AM_V
735 CSCOPE
736 ETAGS
737 CTAGS
738 am__untar
739 am__tar
740 AMTAR
741 am__leading_dot
742 SET_MAKE
743 AWK
744 mkdir_p
745 MKDIR_P
746 INSTALL_STRIP_PROGRAM
747 STRIP
748 install_sh
749 MAKEINFO
750 AUTOHEADER
751 AUTOMAKE
752 AUTOCONF
753 ACLOCAL
754 VERSION
755 PACKAGE
756 CYGPATH_W
757 am__isrc
758 INSTALL_DATA
759 INSTALL_SCRIPT
760 INSTALL_PROGRAM
761 target_alias
762 host_alias
763 build_alias
764 LIBS
765 ECHO_T
766 ECHO_N
767 ECHO_C
768 DEFS
769 mandir
770 localedir
771 libdir
772 psdir
773 pdfdir
774 dvidir
775 htmldir
776 infodir
777 docdir
778 oldincludedir
779 includedir
780 runstatedir
781 localstatedir
782 sharedstatedir
783 sysconfdir
784 datadir
785 datarootdir
786 libexecdir
787 sbindir
788 bindir
789 program_transform_name
790 prefix
791 exec_prefix
792 PACKAGE_URL
793 PACKAGE_BUGREPORT
794 PACKAGE_STRING
795 PACKAGE_VERSION
796 PACKAGE_TARNAME
797 PACKAGE_NAME
798 PATH_SEPARATOR
799 SHELL
800 am__quote'
801 ac_subst_files=''
802 ac_user_opts='
803 enable_option_checking
804 enable_silent_rules
805 enable_maintainer_mode
806 enable_dependency_tracking
807 enable_compiler_warnings
808 enable_shared
809 enable_static
810 enable_pic
811 with_pic
812 enable_fast_install
813 enable_aix_soname
814 with_aix_soname
815 with_gnu_ld
816 with_sysroot
817 enable_libtool_lock
818 enable_largefile
819 enable_cxx_runtime_hack
820 with_system_kpathsea
821 with_system_icu
822 enable_year2038
823 '
824 ac_precious_vars='build_alias
825 host_alias
826 target_alias
827 CC
828 CFLAGS
829 LDFLAGS
830 LIBS
831 CPPFLAGS
832 LT_SYS_LIBRARY_PATH
833 CXX
834 CXXFLAGS
835 CCC
836 CXXCPP'
837
838
839 # Initialize some variables set by options.
840 ac_init_help=
841 ac_init_version=false
842 ac_unrecognized_opts=
843 ac_unrecognized_sep=
844 # The variables have the same names as the options, with
845 # dashes changed to underlines.
846 cache_file=/dev/null
847 exec_prefix=NONE
848 no_create=
849 no_recursion=
850 prefix=NONE
851 program_prefix=NONE
852 program_suffix=NONE
853 program_transform_name=s,x,x,
854 silent=
855 site=
856 srcdir=
857 verbose=
858 x_includes=NONE
859 x_libraries=NONE
860
861 # Installation directory options.
862 # These are left unexpanded so users can "make install exec_prefix=/foo"
863 # and all the variables that are supposed to be based on exec_prefix
864 # by default will actually change.
865 # Use braces instead of parens because sh, perl, etc. also accept them.
866 # (The list follows the same order as the GNU Coding Standards.)
867 bindir='${exec_prefix}/bin'
868 sbindir='${exec_prefix}/sbin'
869 libexecdir='${exec_prefix}/libexec'
870 datarootdir='${prefix}/share'
871 datadir='${datarootdir}'
872 sysconfdir='${prefix}/etc'
873 sharedstatedir='${prefix}/com'
874 localstatedir='${prefix}/var'
875 runstatedir='${localstatedir}/run'
876 includedir='${prefix}/include'
877 oldincludedir='/usr/include'
878 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
879 infodir='${datarootdir}/info'
880 htmldir='${docdir}'
881 dvidir='${docdir}'
882 pdfdir='${docdir}'
883 psdir='${docdir}'
884 libdir='${exec_prefix}/lib'
885 localedir='${datarootdir}/locale'
886 mandir='${datarootdir}/man'
887
888 ac_prev=
889 ac_dashdash=
890 for ac_option
891 do
892 # If the previous option needs an argument, assign it.
893 if test -n "$ac_prev"; then
894 eval $ac_prev=\$ac_option
895 ac_prev=
896 continue
897 fi
898
899 case $ac_option in
900 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
901 *=) ac_optarg= ;;
902 *) ac_optarg=yes ;;
903 esac
904
905 case $ac_dashdash$ac_option in
906 --)
907 ac_dashdash=yes ;;
908
909 -bindir | --bindir | --bindi | --bind | --bin | --bi)
910 ac_prev=bindir ;;
911 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
912 bindir=$ac_optarg ;;
913
914 -build | --build | --buil | --bui | --bu)
915 ac_prev=build_alias ;;
916 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
917 build_alias=$ac_optarg ;;
918
919 -cache-file | --cache-file | --cache-fil | --cache-fi \
920 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
921 ac_prev=cache_file ;;
922 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
923 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
924 cache_file=$ac_optarg ;;
925
926 --config-cache | -C)
927 cache_file=config.cache ;;
928
929 -datadir | --datadir | --datadi | --datad)
930 ac_prev=datadir ;;
931 -datadir=* | --datadir=* | --datadi=* | --datad=*)
932 datadir=$ac_optarg ;;
933
934 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
935 | --dataroo | --dataro | --datar)
936 ac_prev=datarootdir ;;
937 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
938 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
939 datarootdir=$ac_optarg ;;
940
941 -disable-* | --disable-*)
942 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
943 # Reject names that are not valid shell variable names.
944 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
945 as_fn_error $? "invalid feature name: '$ac_useropt'"
946 ac_useropt_orig=$ac_useropt
947 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
948 case $ac_user_opts in
949 *"
950 "enable_$ac_useropt"
951 "*) ;;
952 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
953 ac_unrecognized_sep=', ';;
954 esac
955 eval enable_$ac_useropt=no ;;
956
957 -docdir | --docdir | --docdi | --doc | --do)
958 ac_prev=docdir ;;
959 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
960 docdir=$ac_optarg ;;
961
962 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
963 ac_prev=dvidir ;;
964 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
965 dvidir=$ac_optarg ;;
966
967 -enable-* | --enable-*)
968 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
969 # Reject names that are not valid shell variable names.
970 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
971 as_fn_error $? "invalid feature name: '$ac_useropt'"
972 ac_useropt_orig=$ac_useropt
973 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
974 case $ac_user_opts in
975 *"
976 "enable_$ac_useropt"
977 "*) ;;
978 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
979 ac_unrecognized_sep=', ';;
980 esac
981 eval enable_$ac_useropt=\$ac_optarg ;;
982
983 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
984 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
985 | --exec | --exe | --ex)
986 ac_prev=exec_prefix ;;
987 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
988 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
989 | --exec=* | --exe=* | --ex=*)
990 exec_prefix=$ac_optarg ;;
991
992 -gas | --gas | --ga | --g)
993 # Obsolete; use --with-gas.
994 with_gas=yes ;;
995
996 -help | --help | --hel | --he | -h)
997 ac_init_help=long ;;
998 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
999 ac_init_help=recursive ;;
1000 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1001 ac_init_help=short ;;
1002
1003 -host | --host | --hos | --ho)
1004 ac_prev=host_alias ;;
1005 -host=* | --host=* | --hos=* | --ho=*)
1006 host_alias=$ac_optarg ;;
1007
1008 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1009 ac_prev=htmldir ;;
1010 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1011 | --ht=*)
1012 htmldir=$ac_optarg ;;
1013
1014 -includedir | --includedir | --includedi | --included | --include \
1015 | --includ | --inclu | --incl | --inc)
1016 ac_prev=includedir ;;
1017 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1018 | --includ=* | --inclu=* | --incl=* | --inc=*)
1019 includedir=$ac_optarg ;;
1020
1021 -infodir | --infodir | --infodi | --infod | --info | --inf)
1022 ac_prev=infodir ;;
1023 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1024 infodir=$ac_optarg ;;
1025
1026 -libdir | --libdir | --libdi | --libd)
1027 ac_prev=libdir ;;
1028 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1029 libdir=$ac_optarg ;;
1030
1031 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1032 | --libexe | --libex | --libe)
1033 ac_prev=libexecdir ;;
1034 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1035 | --libexe=* | --libex=* | --libe=*)
1036 libexecdir=$ac_optarg ;;
1037
1038 -localedir | --localedir | --localedi | --localed | --locale)
1039 ac_prev=localedir ;;
1040 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1041 localedir=$ac_optarg ;;
1042
1043 -localstatedir | --localstatedir | --localstatedi | --localstated \
1044 | --localstate | --localstat | --localsta | --localst | --locals)
1045 ac_prev=localstatedir ;;
1046 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1047 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1048 localstatedir=$ac_optarg ;;
1049
1050 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1051 ac_prev=mandir ;;
1052 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1053 mandir=$ac_optarg ;;
1054
1055 -nfp | --nfp | --nf)
1056 # Obsolete; use --without-fp.
1057 with_fp=no ;;
1058
1059 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1060 | --no-cr | --no-c | -n)
1061 no_create=yes ;;
1062
1063 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1064 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1065 no_recursion=yes ;;
1066
1067 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1068 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1069 | --oldin | --oldi | --old | --ol | --o)
1070 ac_prev=oldincludedir ;;
1071 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1072 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1073 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1074 oldincludedir=$ac_optarg ;;
1075
1076 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1077 ac_prev=prefix ;;
1078 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1079 prefix=$ac_optarg ;;
1080
1081 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1082 | --program-pre | --program-pr | --program-p)
1083 ac_prev=program_prefix ;;
1084 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1085 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1086 program_prefix=$ac_optarg ;;
1087
1088 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1089 | --program-suf | --program-su | --program-s)
1090 ac_prev=program_suffix ;;
1091 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1092 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1093 program_suffix=$ac_optarg ;;
1094
1095 -program-transform-name | --program-transform-name \
1096 | --program-transform-nam | --program-transform-na \
1097 | --program-transform-n | --program-transform- \
1098 | --program-transform | --program-transfor \
1099 | --program-transfo | --program-transf \
1100 | --program-trans | --program-tran \
1101 | --progr-tra | --program-tr | --program-t)
1102 ac_prev=program_transform_name ;;
1103 -program-transform-name=* | --program-transform-name=* \
1104 | --program-transform-nam=* | --program-transform-na=* \
1105 | --program-transform-n=* | --program-transform-=* \
1106 | --program-transform=* | --program-transfor=* \
1107 | --program-transfo=* | --program-transf=* \
1108 | --program-trans=* | --program-tran=* \
1109 | --progr-tra=* | --program-tr=* | --program-t=*)
1110 program_transform_name=$ac_optarg ;;
1111
1112 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1113 ac_prev=pdfdir ;;
1114 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1115 pdfdir=$ac_optarg ;;
1116
1117 -psdir | --psdir | --psdi | --psd | --ps)
1118 ac_prev=psdir ;;
1119 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1120 psdir=$ac_optarg ;;
1121
1122 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1123 | -silent | --silent | --silen | --sile | --sil)
1124 silent=yes ;;
1125
1126 -runstatedir | --runstatedir | --runstatedi | --runstated \
1127 | --runstate | --runstat | --runsta | --runst | --runs \
1128 | --run | --ru | --r)
1129 ac_prev=runstatedir ;;
1130 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1131 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1132 | --run=* | --ru=* | --r=*)
1133 runstatedir=$ac_optarg ;;
1134
1135 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1136 ac_prev=sbindir ;;
1137 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1138 | --sbi=* | --sb=*)
1139 sbindir=$ac_optarg ;;
1140
1141 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1142 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1143 | --sharedst | --shareds | --shared | --share | --shar \
1144 | --sha | --sh)
1145 ac_prev=sharedstatedir ;;
1146 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1147 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1148 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1149 | --sha=* | --sh=*)
1150 sharedstatedir=$ac_optarg ;;
1151
1152 -site | --site | --sit)
1153 ac_prev=site ;;
1154 -site=* | --site=* | --sit=*)
1155 site=$ac_optarg ;;
1156
1157 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1158 ac_prev=srcdir ;;
1159 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1160 srcdir=$ac_optarg ;;
1161
1162 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1163 | --syscon | --sysco | --sysc | --sys | --sy)
1164 ac_prev=sysconfdir ;;
1165 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1166 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1167 sysconfdir=$ac_optarg ;;
1168
1169 -target | --target | --targe | --targ | --tar | --ta | --t)
1170 ac_prev=target_alias ;;
1171 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1172 target_alias=$ac_optarg ;;
1173
1174 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1175 verbose=yes ;;
1176
1177 -version | --version | --versio | --versi | --vers | -V)
1178 ac_init_version=: ;;
1179
1180 -with-* | --with-*)
1181 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1182 # Reject names that are not valid shell variable names.
1183 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1184 as_fn_error $? "invalid package name: '$ac_useropt'"
1185 ac_useropt_orig=$ac_useropt
1186 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1187 case $ac_user_opts in
1188 *"
1189 "with_$ac_useropt"
1190 "*) ;;
1191 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1192 ac_unrecognized_sep=', ';;
1193 esac
1194 eval with_$ac_useropt=\$ac_optarg ;;
1195
1196 -without-* | --without-*)
1197 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1198 # Reject names that are not valid shell variable names.
1199 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1200 as_fn_error $? "invalid package name: '$ac_useropt'"
1201 ac_useropt_orig=$ac_useropt
1202 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1203 case $ac_user_opts in
1204 *"
1205 "with_$ac_useropt"
1206 "*) ;;
1207 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1208 ac_unrecognized_sep=', ';;
1209 esac
1210 eval with_$ac_useropt=no ;;
1211
1212 --x)
1213 # Obsolete; use --with-x.
1214 with_x=yes ;;
1215
1216 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1217 | --x-incl | --x-inc | --x-in | --x-i)
1218 ac_prev=x_includes ;;
1219 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1220 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1221 x_includes=$ac_optarg ;;
1222
1223 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1224 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1225 ac_prev=x_libraries ;;
1226 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1227 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1228 x_libraries=$ac_optarg ;;
1229
1230 -*) as_fn_error $? "unrecognized option: '$ac_option'
1231 Try '$0 --help' for more information"
1232 ;;
1233
1234 *=*)
1235 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1236 # Reject names that are not valid shell variable names.
1237 case $ac_envvar in #(
1238 '' | [0-9]* | *[!_$as_cr_alnum]* )
1239 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1240 esac
1241 eval $ac_envvar=\$ac_optarg
1242 export $ac_envvar ;;
1243
1244 *)
1245 # FIXME: should be removed in autoconf 3.0.
1246 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1247 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1248 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1249 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1250 ;;
1251
1252 esac
1253 done
1254
1255 if test -n "$ac_prev"; then
1256 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1257 as_fn_error $? "missing argument to $ac_option"
1258 fi
1259
1260 if test -n "$ac_unrecognized_opts"; then
1261 case $enable_option_checking in
1262 no) ;;
1263 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1264 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1265 esac
1266 fi
1267
1268 # Check all directory arguments for consistency.
1269 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1270 datadir sysconfdir sharedstatedir localstatedir includedir \
1271 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1272 libdir localedir mandir runstatedir
1273 do
1274 eval ac_val=\$$ac_var
1275 # Remove trailing slashes.
1276 case $ac_val in
1277 */ )
1278 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1279 eval $ac_var=\$ac_val;;
1280 esac
1281 # Be sure to have absolute directory names.
1282 case $ac_val in
1283 [\\/$]* | ?:[\\/]* ) continue;;
1284 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1285 esac
1286 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1287 done
1288
1289 # There might be people who depend on the old broken behavior: '$host'
1290 # used to hold the argument of --host etc.
1291 # FIXME: To remove some day.
1292 build=$build_alias
1293 host=$host_alias
1294 target=$target_alias
1295
1296 # FIXME: To remove some day.
1297 if test "x$host_alias" != x; then
1298 if test "x$build_alias" = x; then
1299 cross_compiling=maybe
1300 elif test "x$build_alias" != "x$host_alias"; then
1301 cross_compiling=yes
1302 fi
1303 fi
1304
1305 ac_tool_prefix=
1306 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1307
1308 test "$silent" = yes && exec 6>/dev/null
1309
1310
1311 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1312 ac_ls_di=`ls -di .` &&
1313 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1314 as_fn_error $? "working directory cannot be determined"
1315 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1316 as_fn_error $? "pwd does not report name of working directory"
1317
1318
1319 # Find the source files, if location was not specified.
1320 if test -z "$srcdir"; then
1321 ac_srcdir_defaulted=yes
1322 # Try the directory containing this script, then the parent directory.
1323 ac_confdir=`$as_dirname -- "$as_myself" ||
1324 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1325 X"$as_myself" : 'X\(//\)[^/]' \| \
1326 X"$as_myself" : 'X\(//\)$' \| \
1327 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1328 printf "%s\n" X"$as_myself" |
1329 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1330 s//\1/
1331 q
1332 }
1333 /^X\(\/\/\)[^/].*/{
1334 s//\1/
1335 q
1336 }
1337 /^X\(\/\/\)$/{
1338 s//\1/
1339 q
1340 }
1341 /^X\(\/\).*/{
1342 s//\1/
1343 q
1344 }
1345 s/.*/./; q'`
1346 srcdir=$ac_confdir
1347 if test ! -r "$srcdir/$ac_unique_file"; then
1348 srcdir=..
1349 fi
1350 else
1351 ac_srcdir_defaulted=no
1352 fi
1353 if test ! -r "$srcdir/$ac_unique_file"; then
1354 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1355 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1356 fi
1357 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1358 ac_abs_confdir=`(
1359 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1360 pwd)`
1361 # When building in place, set srcdir=.
1362 if test "$ac_abs_confdir" = "$ac_pwd"; then
1363 srcdir=.
1364 fi
1365 # Remove unnecessary trailing slashes from srcdir.
1366 # Double slashes in file names in object file debugging info
1367 # mess up M-x gdb in Emacs.
1368 case $srcdir in
1369 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1370 esac
1371 for ac_var in $ac_precious_vars; do
1372 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1373 eval ac_env_${ac_var}_value=\$${ac_var}
1374 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1375 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1376 done
1377
1378 #
1379 # Report the --help message.
1380 #
1381 if test "$ac_init_help" = "long"; then
1382 # Omit some internal or obsolete options to make the list less imposing.
1383 # This message is too long to be a string in the A/UX 3.1 sh.
1384 cat <<_ACEOF
1385 'configure' configures upmendex (TeX Live) 1.22 to adapt to many kinds of systems.
1386
1387 Usage: $0 [OPTION]... [VAR=VALUE]...
1388
1389 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1390 VAR=VALUE. See below for descriptions of some of the useful variables.
1391
1392 Defaults for the options are specified in brackets.
1393
1394 Configuration:
1395 -h, --help display this help and exit
1396 --help=short display options specific to this package
1397 --help=recursive display the short help of all the included packages
1398 -V, --version display version information and exit
1399 -q, --quiet, --silent do not print 'checking ...' messages
1400 --cache-file=FILE cache test results in FILE [disabled]
1401 -C, --config-cache alias for '--cache-file=config.cache'
1402 -n, --no-create do not create output files
1403 --srcdir=DIR find the sources in DIR [configure dir or '..']
1404
1405 Installation directories:
1406 --prefix=PREFIX install architecture-independent files in PREFIX
1407 [$ac_default_prefix]
1408 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1409 [PREFIX]
1410
1411 By default, 'make install' will install all the files in
1412 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1413 an installation prefix other than '$ac_default_prefix' using '--prefix',
1414 for instance '--prefix=\$HOME'.
1415
1416 For better control, use the options below.
1417
1418 Fine tuning of the installation directories:
1419 --bindir=DIR user executables [EPREFIX/bin]
1420 --sbindir=DIR system admin executables [EPREFIX/sbin]
1421 --libexecdir=DIR program executables [EPREFIX/libexec]
1422 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1423 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1424 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1425 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1426 --libdir=DIR object code libraries [EPREFIX/lib]
1427 --includedir=DIR C header files [PREFIX/include]
1428 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1429 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1430 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1431 --infodir=DIR info documentation [DATAROOTDIR/info]
1432 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1433 --mandir=DIR man documentation [DATAROOTDIR/man]
1434 --docdir=DIR documentation root
1435 [DATAROOTDIR/doc/upmendex--tex-live-]
1436 --htmldir=DIR html documentation [DOCDIR]
1437 --dvidir=DIR dvi documentation [DOCDIR]
1438 --pdfdir=DIR pdf documentation [DOCDIR]
1439 --psdir=DIR ps documentation [DOCDIR]
1440 _ACEOF
1441
1442 cat <<\_ACEOF
1443
1444 Program names:
1445 --program-prefix=PREFIX prepend PREFIX to installed program names
1446 --program-suffix=SUFFIX append SUFFIX to installed program names
1447 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1448
1449 System types:
1450 --build=BUILD configure for building on BUILD [guessed]
1451 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1452 _ACEOF
1453 fi
1454
1455 if test -n "$ac_init_help"; then
1456 case $ac_init_help in
1457 short | recursive ) echo "Configuration of upmendex (TeX Live) 1.22:";;
1458 esac
1459 cat <<\_ACEOF
1460
1461 Optional Features:
1462 --disable-option-checking ignore unrecognized --enable/--with options
1463 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1464 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1465 --enable-silent-rules less verbose build output (undo: "make V=1")
1466 --disable-silent-rules verbose build output (undo: "make V=0")
1467 --enable-maintainer-mode
1468 enable make rules and dependencies not useful (and
1469 sometimes confusing) to the casual installer
1470 --enable-dependency-tracking
1471 do not reject slow dependency extractors
1472 --disable-dependency-tracking
1473 speeds up one-time build
1474 --enable-compiler-warnings=[no|min|yes|max|all]
1475 Turn on compiler warnings [default: yes if
1476 maintainer-mode, min otherwise]
1477 --enable-shared[=PKGS] build shared libraries [default=yes]
1478 --enable-static[=PKGS] build static libraries [default=yes]
1479 --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1480 both]
1481 --enable-fast-install[=PKGS]
1482 optimize for fast installation [default=yes]
1483 --enable-aix-soname=aix|svr4|both
1484 shared library versioning (aka "SONAME") variant to
1485 provide on AIX, [default=aix].
1486 --disable-libtool-lock avoid locking (might break parallel builds)
1487 --disable-largefile omit support for large files
1488 --enable-cxx-runtime-hack link C++ runtime statically
1489 --enable-year2038 support timestamps after 2038
1490
1491 Optional Packages:
1492 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1493 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1494 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1495 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1496 compiler's sysroot if not specified).
1497 --with-system-kpathsea use installed kpathsea headers and library (requires
1498 pkg-config)
1499 --with-system-icu use installed ICU headers and libraries (requires
1500 pkg-config or icu-config)
1501
1502 Some influential environment variables:
1503 CC C compiler command
1504 CFLAGS C compiler flags
1505 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1506 nonstandard directory <lib dir>
1507 LIBS libraries to pass to the linker, e.g. -l<library>
1508 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1509 you have headers in a nonstandard directory <include dir>
1510 LT_SYS_LIBRARY_PATH
1511 User-defined run-time library search path.
1512 CXX C++ compiler command
1513 CXXFLAGS C++ compiler flags
1514 CXXCPP C++ preprocessor
1515
1516 Use these variables to override the choices made by 'configure' or to help
1517 it to find libraries and programs with nonstandard names/locations.
1518
1519 Report bugs to the package provider.
1520 _ACEOF
1521 ac_status=$?
1522 fi
1523
1524 if test "$ac_init_help" = "recursive"; then
1525 # If there are subdirs, report their specific --help.
1526 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1527 test -d "$ac_dir" ||
1528 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1529 continue
1530 ac_builddir=.
1531
1532 case "$ac_dir" in
1533 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1534 *)
1535 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1536 # A ".." for each directory in $ac_dir_suffix.
1537 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1538 case $ac_top_builddir_sub in
1539 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1540 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1541 esac ;;
1542 esac
1543 ac_abs_top_builddir=$ac_pwd
1544 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1545 # for backward compatibility:
1546 ac_top_builddir=$ac_top_build_prefix
1547
1548 case $srcdir in
1549 .) # We are building in place.
1550 ac_srcdir=.
1551 ac_top_srcdir=$ac_top_builddir_sub
1552 ac_abs_top_srcdir=$ac_pwd ;;
1553 [\\/]* | ?:[\\/]* ) # Absolute name.
1554 ac_srcdir=$srcdir$ac_dir_suffix;
1555 ac_top_srcdir=$srcdir
1556 ac_abs_top_srcdir=$srcdir ;;
1557 *) # Relative name.
1558 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1559 ac_top_srcdir=$ac_top_build_prefix$srcdir
1560 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1561 esac
1562 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1563
1564 cd "$ac_dir" || { ac_status=$?; continue; }
1565 # Check for configure.gnu first; this name is used for a wrapper for
1566 # Metaconfig's "Configure" on case-insensitive file systems.
1567 if test -f "$ac_srcdir/configure.gnu"; then
1568 echo &&
1569 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1570 elif test -f "$ac_srcdir/configure"; then
1571 echo &&
1572 $SHELL "$ac_srcdir/configure" --help=recursive
1573 else
1574 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1575 fi || ac_status=$?
1576 cd "$ac_pwd" || { ac_status=$?; break; }
1577 done
1578 fi
1579
1580 test -n "$ac_init_help" && exit $ac_status
1581 if $ac_init_version; then
1582 cat <<\_ACEOF
1583 upmendex (TeX Live) configure 1.22
1584 generated by GNU Autoconf 2.72
1585
1586 Copyright (C) 2023 Free Software Foundation, Inc.
1587 This configure script is free software; the Free Software Foundation
1588 gives unlimited permission to copy, distribute and modify it.
1589 _ACEOF
1590 exit
1591 fi
1592
1593 ## ------------------------ ##
1594 ## Autoconf initialization. ##
1595 ## ------------------------ ##
1596
1597 # ac_fn_c_try_compile LINENO
1598 # --------------------------
1599 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1600 ac_fn_c_try_compile ()
1601 {
1602 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1603 rm -f conftest.$ac_objext conftest.beam
1604 if { { ac_try="$ac_compile"
1605 case "(($ac_try" in
1606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1607 *) ac_try_echo=$ac_try;;
1608 esac
1609 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1610 printf "%s\n" "$ac_try_echo"; } >&5
1611 (eval "$ac_compile") 2>conftest.err
1612 ac_status=$?
1613 if test -s conftest.err; then
1614 grep -v '^ *+' conftest.err >conftest.er1
1615 cat conftest.er1 >&5
1616 mv -f conftest.er1 conftest.err
1617 fi
1618 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1619 test $ac_status = 0; } && {
1620 test -z "$ac_c_werror_flag" ||
1621 test ! -s conftest.err
1622 } && test -s conftest.$ac_objext
1623 then :
1624 ac_retval=0
1625 else case e in #(
1626 e) printf "%s\n" "$as_me: failed program was:" >&5
1627 sed 's/^/| /' conftest.$ac_ext >&5
1628
1629 ac_retval=1 ;;
1630 esac
1631 fi
1632 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1633 as_fn_set_status $ac_retval
1634
1635 } # ac_fn_c_try_compile
1636
1637 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1638 # -------------------------------------------------------
1639 # Tests whether HEADER exists and can be compiled using the include files in
1640 # INCLUDES, setting the cache variable VAR accordingly.
1641 ac_fn_c_check_header_compile ()
1642 {
1643 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1645 printf %s "checking for $2... " >&6; }
1646 if eval test \${$3+y}
1647 then :
1648 printf %s "(cached) " >&6
1649 else case e in #(
1650 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1651 /* end confdefs.h. */
1652 $4
1653 #include <$2>
1654 _ACEOF
1655 if ac_fn_c_try_compile "$LINENO"
1656 then :
1657 eval "$3=yes"
1658 else case e in #(
1659 e) eval "$3=no" ;;
1660 esac
1661 fi
1662 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1663 esac
1664 fi
1665 eval ac_res=\$$3
1666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1667 printf "%s\n" "$ac_res" >&6; }
1668 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1669
1670 } # ac_fn_c_check_header_compile
1671
1672 # ac_fn_c_try_link LINENO
1673 # -----------------------
1674 # Try to link conftest.$ac_ext, and return whether this succeeded.
1675 ac_fn_c_try_link ()
1676 {
1677 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1678 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1679 if { { ac_try="$ac_link"
1680 case "(($ac_try" in
1681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1682 *) ac_try_echo=$ac_try;;
1683 esac
1684 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1685 printf "%s\n" "$ac_try_echo"; } >&5
1686 (eval "$ac_link") 2>conftest.err
1687 ac_status=$?
1688 if test -s conftest.err; then
1689 grep -v '^ *+' conftest.err >conftest.er1
1690 cat conftest.er1 >&5
1691 mv -f conftest.er1 conftest.err
1692 fi
1693 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1694 test $ac_status = 0; } && {
1695 test -z "$ac_c_werror_flag" ||
1696 test ! -s conftest.err
1697 } && test -s conftest$ac_exeext && {
1698 test "$cross_compiling" = yes ||
1699 test -x conftest$ac_exeext
1700 }
1701 then :
1702 ac_retval=0
1703 else case e in #(
1704 e) printf "%s\n" "$as_me: failed program was:" >&5
1705 sed 's/^/| /' conftest.$ac_ext >&5
1706
1707 ac_retval=1 ;;
1708 esac
1709 fi
1710 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1711 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1712 # interfere with the next link command; also delete a directory that is
1713 # left behind by Apple's compiler. We do this before executing the actions.
1714 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1715 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1716 as_fn_set_status $ac_retval
1717
1718 } # ac_fn_c_try_link
1719
1720 # ac_fn_c_check_func LINENO FUNC VAR
1721 # ----------------------------------
1722 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1723 ac_fn_c_check_func ()
1724 {
1725 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1727 printf %s "checking for $2... " >&6; }
1728 if eval test \${$3+y}
1729 then :
1730 printf %s "(cached) " >&6
1731 else case e in #(
1732 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1733 /* end confdefs.h. */
1734 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1735 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1736 #define $2 innocuous_$2
1737
1738 /* System header to define __stub macros and hopefully few prototypes,
1739 which can conflict with char $2 (void); below. */
1740
1741 #include <limits.h>
1742 #undef $2
1743
1744 /* Override any GCC internal prototype to avoid an error.
1745 Use char because int might match the return type of a GCC
1746 builtin and then its argument prototype would still apply. */
1747 #ifdef __cplusplus
1748 extern "C"
1749 #endif
1750 char $2 (void);
1751 /* The GNU C library defines this for functions which it implements
1752 to always fail with ENOSYS. Some functions are actually named
1753 something starting with __ and the normal name is an alias. */
1754 #if defined __stub_$2 || defined __stub___$2
1755 choke me
1756 #endif
1757
1758 int
1759 main (void)
1760 {
1761 return $2 ();
1762 ;
1763 return 0;
1764 }
1765 _ACEOF
1766 if ac_fn_c_try_link "$LINENO"
1767 then :
1768 eval "$3=yes"
1769 else case e in #(
1770 e) eval "$3=no" ;;
1771 esac
1772 fi
1773 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1774 conftest$ac_exeext conftest.$ac_ext ;;
1775 esac
1776 fi
1777 eval ac_res=\$$3
1778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1779 printf "%s\n" "$ac_res" >&6; }
1780 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1781
1782 } # ac_fn_c_check_func
1783
1784 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1785 # -------------------------------------------
1786 # Tests whether TYPE exists after having included INCLUDES, setting cache
1787 # variable VAR accordingly.
1788 ac_fn_c_check_type ()
1789 {
1790 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1792 printf %s "checking for $2... " >&6; }
1793 if eval test \${$3+y}
1794 then :
1795 printf %s "(cached) " >&6
1796 else case e in #(
1797 e) eval "$3=no"
1798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1799 /* end confdefs.h. */
1800 $4
1801 int
1802 main (void)
1803 {
1804 if (sizeof ($2))
1805 return 0;
1806 ;
1807 return 0;
1808 }
1809 _ACEOF
1810 if ac_fn_c_try_compile "$LINENO"
1811 then :
1812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1813 /* end confdefs.h. */
1814 $4
1815 int
1816 main (void)
1817 {
1818 if (sizeof (($2)))
1819 return 0;
1820 ;
1821 return 0;
1822 }
1823 _ACEOF
1824 if ac_fn_c_try_compile "$LINENO"
1825 then :
1826
1827 else case e in #(
1828 e) eval "$3=yes" ;;
1829 esac
1830 fi
1831 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1832 fi
1833 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1834 esac
1835 fi
1836 eval ac_res=\$$3
1837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1838 printf "%s\n" "$ac_res" >&6; }
1839 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1840
1841 } # ac_fn_c_check_type
1842
1843 # ac_fn_c_find_intX_t LINENO BITS VAR
1844 # -----------------------------------
1845 # Finds a signed integer type with width BITS, setting cache variable VAR
1846 # accordingly.
1847 ac_fn_c_find_intX_t ()
1848 {
1849 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1851 printf %s "checking for int$2_t... " >&6; }
1852 if eval test \${$3+y}
1853 then :
1854 printf %s "(cached) " >&6
1855 else case e in #(
1856 e) eval "$3=no"
1857 # Order is important - never check a type that is potentially smaller
1858 # than half of the expected target width.
1859 for ac_type in int$2_t 'int' 'long int' \
1860 'long long int' 'short int' 'signed char'; do
1861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1862 /* end confdefs.h. */
1863 $ac_includes_default
1864 enum { N = $2 / 2 - 1 };
1865 int
1866 main (void)
1867 {
1868 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
1869 test_array [0] = 0;
1870 return test_array [0];
1871
1872 ;
1873 return 0;
1874 }
1875 _ACEOF
1876 if ac_fn_c_try_compile "$LINENO"
1877 then :
1878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1879 /* end confdefs.h. */
1880 $ac_includes_default
1881 enum { N = $2 / 2 - 1 };
1882 int
1883 main (void)
1884 {
1885 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
1886 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
1887 test_array [0] = 0;
1888 return test_array [0];
1889
1890 ;
1891 return 0;
1892 }
1893 _ACEOF
1894 if ac_fn_c_try_compile "$LINENO"
1895 then :
1896
1897 else case e in #(
1898 e) case $ac_type in #(
1899 int$2_t) :
1900 eval "$3=yes" ;; #(
1901 *) :
1902 eval "$3=\$ac_type" ;;
1903 esac ;;
1904 esac
1905 fi
1906 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1907 fi
1908 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1909 if eval test \"x\$"$3"\" = x"no"
1910 then :
1911
1912 else case e in #(
1913 e) break ;;
1914 esac
1915 fi
1916 done ;;
1917 esac
1918 fi
1919 eval ac_res=\$$3
1920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1921 printf "%s\n" "$ac_res" >&6; }
1922 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1923
1924 } # ac_fn_c_find_intX_t
1925
1926 # ac_fn_c_find_uintX_t LINENO BITS VAR
1927 # ------------------------------------
1928 # Finds an unsigned integer type with width BITS, setting cache variable VAR
1929 # accordingly.
1930 ac_fn_c_find_uintX_t ()
1931 {
1932 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1934 printf %s "checking for uint$2_t... " >&6; }
1935 if eval test \${$3+y}
1936 then :
1937 printf %s "(cached) " >&6
1938 else case e in #(
1939 e) eval "$3=no"
1940 # Order is important - never check a type that is potentially smaller
1941 # than half of the expected target width.
1942 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1943 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1945 /* end confdefs.h. */
1946 $ac_includes_default
1947 int
1948 main (void)
1949 {
1950 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1951 test_array [0] = 0;
1952 return test_array [0];
1953
1954 ;
1955 return 0;
1956 }
1957 _ACEOF
1958 if ac_fn_c_try_compile "$LINENO"
1959 then :
1960 case $ac_type in #(
1961 uint$2_t) :
1962 eval "$3=yes" ;; #(
1963 *) :
1964 eval "$3=\$ac_type" ;;
1965 esac
1966 fi
1967 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1968 if eval test \"x\$"$3"\" = x"no"
1969 then :
1970
1971 else case e in #(
1972 e) break ;;
1973 esac
1974 fi
1975 done ;;
1976 esac
1977 fi
1978 eval ac_res=\$$3
1979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1980 printf "%s\n" "$ac_res" >&6; }
1981 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1982
1983 } # ac_fn_c_find_uintX_t
1984
1985 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1986 # ------------------------------------------------------------------
1987 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1988 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1989 ac_fn_check_decl ()
1990 {
1991 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1992 as_decl_name=`echo $2|sed 's/ *(.*//'`
1993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1994 printf %s "checking whether $as_decl_name is declared... " >&6; }
1995 if eval test \${$3+y}
1996 then :
1997 printf %s "(cached) " >&6
1998 else case e in #(
1999 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2000 eval ac_save_FLAGS=\$$6
2001 as_fn_append $6 " $5"
2002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2003 /* end confdefs.h. */
2004 $4
2005 int
2006 main (void)
2007 {
2008 #ifndef $as_decl_name
2009 #ifdef __cplusplus
2010 (void) $as_decl_use;
2011 #else
2012 (void) $as_decl_name;
2013 #endif
2014 #endif
2015
2016 ;
2017 return 0;
2018 }
2019 _ACEOF
2020 if ac_fn_c_try_compile "$LINENO"
2021 then :
2022 eval "$3=yes"
2023 else case e in #(
2024 e) eval "$3=no" ;;
2025 esac
2026 fi
2027 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2028 eval $6=\$ac_save_FLAGS
2029 ;;
2030 esac
2031 fi
2032 eval ac_res=\$$3
2033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2034 printf "%s\n" "$ac_res" >&6; }
2035 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2036
2037 } # ac_fn_check_decl
2038
2039 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2040 # ----------------------------------------------------
2041 # Tries to find if the field MEMBER exists in type AGGR, after including
2042 # INCLUDES, setting cache variable VAR accordingly.
2043 ac_fn_c_check_member ()
2044 {
2045 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2047 printf %s "checking for $2.$3... " >&6; }
2048 if eval test \${$4+y}
2049 then :
2050 printf %s "(cached) " >&6
2051 else case e in #(
2052 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2053 /* end confdefs.h. */
2054 $5
2055 int
2056 main (void)
2057 {
2058 static $2 ac_aggr;
2059 if (ac_aggr.$3)
2060 return 0;
2061 ;
2062 return 0;
2063 }
2064 _ACEOF
2065 if ac_fn_c_try_compile "$LINENO"
2066 then :
2067 eval "$4=yes"
2068 else case e in #(
2069 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2070 /* end confdefs.h. */
2071 $5
2072 int
2073 main (void)
2074 {
2075 static $2 ac_aggr;
2076 if (sizeof ac_aggr.$3)
2077 return 0;
2078 ;
2079 return 0;
2080 }
2081 _ACEOF
2082 if ac_fn_c_try_compile "$LINENO"
2083 then :
2084 eval "$4=yes"
2085 else case e in #(
2086 e) eval "$4=no" ;;
2087 esac
2088 fi
2089 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2090 esac
2091 fi
2092 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2093 esac
2094 fi
2095 eval ac_res=\$$4
2096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2097 printf "%s\n" "$ac_res" >&6; }
2098 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2099
2100 } # ac_fn_c_check_member
2101
2102 # ac_fn_cxx_try_compile LINENO
2103 # ----------------------------
2104 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2105 ac_fn_cxx_try_compile ()
2106 {
2107 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2108 rm -f conftest.$ac_objext conftest.beam
2109 if { { ac_try="$ac_compile"
2110 case "(($ac_try" in
2111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2112 *) ac_try_echo=$ac_try;;
2113 esac
2114 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2115 printf "%s\n" "$ac_try_echo"; } >&5
2116 (eval "$ac_compile") 2>conftest.err
2117 ac_status=$?
2118 if test -s conftest.err; then
2119 grep -v '^ *+' conftest.err >conftest.er1
2120 cat conftest.er1 >&5
2121 mv -f conftest.er1 conftest.err
2122 fi
2123 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2124 test $ac_status = 0; } && {
2125 test -z "$ac_cxx_werror_flag" ||
2126 test ! -s conftest.err
2127 } && test -s conftest.$ac_objext
2128 then :
2129 ac_retval=0
2130 else case e in #(
2131 e) printf "%s\n" "$as_me: failed program was:" >&5
2132 sed 's/^/| /' conftest.$ac_ext >&5
2133
2134 ac_retval=1 ;;
2135 esac
2136 fi
2137 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2138 as_fn_set_status $ac_retval
2139
2140 } # ac_fn_cxx_try_compile
2141
2142 # ac_fn_cxx_try_cpp LINENO
2143 # ------------------------
2144 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2145 ac_fn_cxx_try_cpp ()
2146 {
2147 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2148 if { { ac_try="$ac_cpp conftest.$ac_ext"
2149 case "(($ac_try" in
2150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2151 *) ac_try_echo=$ac_try;;
2152 esac
2153 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2154 printf "%s\n" "$ac_try_echo"; } >&5
2155 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2156 ac_status=$?
2157 if test -s conftest.err; then
2158 grep -v '^ *+' conftest.err >conftest.er1
2159 cat conftest.er1 >&5
2160 mv -f conftest.er1 conftest.err
2161 fi
2162 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2163 test $ac_status = 0; } > conftest.i && {
2164 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2165 test ! -s conftest.err
2166 }
2167 then :
2168 ac_retval=0
2169 else case e in #(
2170 e) printf "%s\n" "$as_me: failed program was:" >&5
2171 sed 's/^/| /' conftest.$ac_ext >&5
2172
2173 ac_retval=1 ;;
2174 esac
2175 fi
2176 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2177 as_fn_set_status $ac_retval
2178
2179 } # ac_fn_cxx_try_cpp
2180
2181 # ac_fn_cxx_try_link LINENO
2182 # -------------------------
2183 # Try to link conftest.$ac_ext, and return whether this succeeded.
2184 ac_fn_cxx_try_link ()
2185 {
2186 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2187 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
2188 if { { ac_try="$ac_link"
2189 case "(($ac_try" in
2190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2191 *) ac_try_echo=$ac_try;;
2192 esac
2193 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2194 printf "%s\n" "$ac_try_echo"; } >&5
2195 (eval "$ac_link") 2>conftest.err
2196 ac_status=$?
2197 if test -s conftest.err; then
2198 grep -v '^ *+' conftest.err >conftest.er1
2199 cat conftest.er1 >&5
2200 mv -f conftest.er1 conftest.err
2201 fi
2202 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2203 test $ac_status = 0; } && {
2204 test -z "$ac_cxx_werror_flag" ||
2205 test ! -s conftest.err
2206 } && test -s conftest$ac_exeext && {
2207 test "$cross_compiling" = yes ||
2208 test -x conftest$ac_exeext
2209 }
2210 then :
2211 ac_retval=0
2212 else case e in #(
2213 e) printf "%s\n" "$as_me: failed program was:" >&5
2214 sed 's/^/| /' conftest.$ac_ext >&5
2215
2216 ac_retval=1 ;;
2217 esac
2218 fi
2219 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2220 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2221 # interfere with the next link command; also delete a directory that is
2222 # left behind by Apple's compiler. We do this before executing the actions.
2223 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2224 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2225 as_fn_set_status $ac_retval
2226
2227 } # ac_fn_cxx_try_link
2228
2229 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2230 # ---------------------------------------------------------
2231 # Tests whether HEADER exists and can be compiled using the include files in
2232 # INCLUDES, setting the cache variable VAR accordingly.
2233 ac_fn_cxx_check_header_compile ()
2234 {
2235 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2237 printf %s "checking for $2... " >&6; }
2238 if eval test \${$3+y}
2239 then :
2240 printf %s "(cached) " >&6
2241 else case e in #(
2242 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2243 /* end confdefs.h. */
2244 $4
2245 #include <$2>
2246 _ACEOF
2247 if ac_fn_cxx_try_compile "$LINENO"
2248 then :
2249 eval "$3=yes"
2250 else case e in #(
2251 e) eval "$3=no" ;;
2252 esac
2253 fi
2254 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2255 esac
2256 fi
2257 eval ac_res=\$$3
2258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2259 printf "%s\n" "$ac_res" >&6; }
2260 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2261
2262 } # ac_fn_cxx_check_header_compile
2263 ac_configure_args_raw=
2264 for ac_arg
2265 do
2266 case $ac_arg in
2267 *\'*)
2268 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2269 esac
2270 as_fn_append ac_configure_args_raw " '$ac_arg'"
2271 done
2272
2273 case $ac_configure_args_raw in
2274 *$as_nl*)
2275 ac_safe_unquote= ;;
2276 *)
2277 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2278 ac_unsafe_a="$ac_unsafe_z#~"
2279 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2280 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2281 esac
2282
2283 cat >config.log <<_ACEOF
2284 This file contains any messages produced by compilers while
2285 running configure, to aid debugging if configure makes a mistake.
2286
2287 It was created by upmendex (TeX Live) $as_me 1.22, which was
2288 generated by GNU Autoconf 2.72. Invocation command line was
2289
2290 $ $0$ac_configure_args_raw
2291
2292 _ACEOF
2293 exec 5>>config.log
2294 {
2295 cat <<_ASUNAME
2296 ## --------- ##
2297 ## Platform. ##
2298 ## --------- ##
2299
2300 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2301 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2302 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2303 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2304 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2305
2306 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2307 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2308
2309 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2310 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2311 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2312 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2313 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2314 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2315 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2316
2317 _ASUNAME
2318
2319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2320 for as_dir in $PATH
2321 do
2322 IFS=$as_save_IFS
2323 case $as_dir in #(((
2324 '') as_dir=./ ;;
2325 */) ;;
2326 *) as_dir=$as_dir/ ;;
2327 esac
2328 printf "%s\n" "PATH: $as_dir"
2329 done
2330 IFS=$as_save_IFS
2331
2332 } >&5
2333
2334 cat >&5 <<_ACEOF
2335
2336
2337 ## ----------- ##
2338 ## Core tests. ##
2339 ## ----------- ##
2340
2341 _ACEOF
2342
2343
2344 # Keep a trace of the command line.
2345 # Strip out --no-create and --no-recursion so they do not pile up.
2346 # Strip out --silent because we don't want to record it for future runs.
2347 # Also quote any args containing shell meta-characters.
2348 # Make two passes to allow for proper duplicate-argument suppression.
2349 ac_configure_args=
2350 ac_configure_args0=
2351 ac_configure_args1=
2352 ac_must_keep_next=false
2353 for ac_pass in 1 2
2354 do
2355 for ac_arg
2356 do
2357 case $ac_arg in
2358 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2359 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2360 | -silent | --silent | --silen | --sile | --sil)
2361 continue ;;
2362 *\'*)
2363 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2364 esac
2365 case $ac_pass in
2366 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2367 2)
2368 as_fn_append ac_configure_args1 " '$ac_arg'"
2369 if test $ac_must_keep_next = true; then
2370 ac_must_keep_next=false # Got value, back to normal.
2371 else
2372 case $ac_arg in
2373 *=* | --config-cache | -C | -disable-* | --disable-* \
2374 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2375 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2376 | -with-* | --with-* | -without-* | --without-* | --x)
2377 case "$ac_configure_args0 " in
2378 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2379 esac
2380 ;;
2381 -* ) ac_must_keep_next=true ;;
2382 esac
2383 fi
2384 as_fn_append ac_configure_args " '$ac_arg'"
2385 ;;
2386 esac
2387 done
2388 done
2389 { ac_configure_args0=; unset ac_configure_args0;}
2390 { ac_configure_args1=; unset ac_configure_args1;}
2391
2392 # When interrupted or exit'd, cleanup temporary files, and complete
2393 # config.log. We remove comments because anyway the quotes in there
2394 # would cause problems or look ugly.
2395 # WARNING: Use '\'' to represent an apostrophe within the trap.
2396 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2397 trap 'exit_status=$?
2398 # Sanitize IFS.
2399 IFS=" "" $as_nl"
2400 # Save into config.log some information that might help in debugging.
2401 {
2402 echo
2403
2404 printf "%s\n" "## ---------------- ##
2405 ## Cache variables. ##
2406 ## ---------------- ##"
2407 echo
2408 # The following way of writing the cache mishandles newlines in values,
2409 (
2410 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2411 eval ac_val=\$$ac_var
2412 case $ac_val in #(
2413 *${as_nl}*)
2414 case $ac_var in #(
2415 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2416 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2417 esac
2418 case $ac_var in #(
2419 _ | IFS | as_nl) ;; #(
2420 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2421 *) { eval $ac_var=; unset $ac_var;} ;;
2422 esac ;;
2423 esac
2424 done
2425 (set) 2>&1 |
2426 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2427 *${as_nl}ac_space=\ *)
2428 sed -n \
2429 "s/'\''/'\''\\\\'\'''\''/g;
2430 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2431 ;; #(
2432 *)
2433 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2434 ;;
2435 esac |
2436 sort
2437 )
2438 echo
2439
2440 printf "%s\n" "## ----------------- ##
2441 ## Output variables. ##
2442 ## ----------------- ##"
2443 echo
2444 for ac_var in $ac_subst_vars
2445 do
2446 eval ac_val=\$$ac_var
2447 case $ac_val in
2448 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2449 esac
2450 printf "%s\n" "$ac_var='\''$ac_val'\''"
2451 done | sort
2452 echo
2453
2454 if test -n "$ac_subst_files"; then
2455 printf "%s\n" "## ------------------- ##
2456 ## File substitutions. ##
2457 ## ------------------- ##"
2458 echo
2459 for ac_var in $ac_subst_files
2460 do
2461 eval ac_val=\$$ac_var
2462 case $ac_val in
2463 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2464 esac
2465 printf "%s\n" "$ac_var='\''$ac_val'\''"
2466 done | sort
2467 echo
2468 fi
2469
2470 if test -s confdefs.h; then
2471 printf "%s\n" "## ----------- ##
2472 ## confdefs.h. ##
2473 ## ----------- ##"
2474 echo
2475 cat confdefs.h
2476 echo
2477 fi
2478 test "$ac_signal" != 0 &&
2479 printf "%s\n" "$as_me: caught signal $ac_signal"
2480 printf "%s\n" "$as_me: exit $exit_status"
2481 } >&5
2482 rm -f core *.core core.conftest.* &&
2483 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2484 exit $exit_status
2485 ' 0
2486 for ac_signal in 1 2 13 15; do
2487 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2488 done
2489 ac_signal=0
2490
2491 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2492 rm -f -r conftest* confdefs.h
2493
2494 printf "%s\n" "/* confdefs.h */" > confdefs.h
2495
2496 # Predefined preprocessor variables.
2497
2498 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2499
2500 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2501
2502 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2503
2504 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2505
2506 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2507
2508 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2509
2510
2511 # Let the site file select an alternate cache file if it wants to.
2512 # Prefer an explicitly selected file to automatically selected ones.
2513 if test -n "$CONFIG_SITE"; then
2514 ac_site_files="$CONFIG_SITE"
2515 elif test "x$prefix" != xNONE; then
2516 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2517 else
2518 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2519 fi
2520
2521 for ac_site_file in $ac_site_files
2522 do
2523 case $ac_site_file in #(
2524 */*) :
2525 ;; #(
2526 *) :
2527 ac_site_file=./$ac_site_file ;;
2528 esac
2529 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2531 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2532 sed 's/^/| /' "$ac_site_file" >&5
2533 . "$ac_site_file" \
2534 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2535 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2536 as_fn_error $? "failed to load site script $ac_site_file
2537 See 'config.log' for more details" "$LINENO" 5; }
2538 fi
2539 done
2540
2541 if test -r "$cache_file"; then
2542 # Some versions of bash will fail to source /dev/null (special files
2543 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2544 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2546 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2547 case $cache_file in
2548 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2549 *) . "./$cache_file";;
2550 esac
2551 fi
2552 else
2553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2554 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2555 >$cache_file
2556 fi
2557
2558 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2559 # Test code for whether the C compiler supports C89 (global declarations)
2560 ac_c_conftest_c89_globals='
2561 /* Does the compiler advertise C89 conformance?
2562 Do not test the value of __STDC__, because some compilers set it to 0
2563 while being otherwise adequately conformant. */
2564 #if !defined __STDC__
2565 # error "Compiler does not advertise C89 conformance"
2566 #endif
2567
2568 #include <stddef.h>
2569 #include <stdarg.h>
2570 struct stat;
2571 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2572 struct buf { int x; };
2573 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2574 static char *e (char **p, int i)
2575 {
2576 return p[i];
2577 }
2578 static char *f (char * (*g) (char **, int), char **p, ...)
2579 {
2580 char *s;
2581 va_list v;
2582 va_start (v,p);
2583 s = g (p, va_arg (v,int));
2584 va_end (v);
2585 return s;
2586 }
2587
2588 /* C89 style stringification. */
2589 #define noexpand_stringify(a) #a
2590 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2591
2592 /* C89 style token pasting. Exercises some of the corner cases that
2593 e.g. old MSVC gets wrong, but not very hard. */
2594 #define noexpand_concat(a,b) a##b
2595 #define expand_concat(a,b) noexpand_concat(a,b)
2596 extern int vA;
2597 extern int vbee;
2598 #define aye A
2599 #define bee B
2600 int *pvA = &expand_concat(v,aye);
2601 int *pvbee = &noexpand_concat(v,bee);
2602
2603 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2604 function prototypes and stuff, but not \xHH hex character constants.
2605 These do not provoke an error unfortunately, instead are silently treated
2606 as an "x". The following induces an error, until -std is added to get
2607 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2608 array size at least. It is necessary to write \x00 == 0 to get something
2609 that is true only with -std. */
2610 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2611
2612 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2613 inside strings and character constants. */
2614 #define FOO(x) '\''x'\''
2615 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2616
2617 int test (int i, double x);
2618 struct s1 {int (*f) (int a);};
2619 struct s2 {int (*f) (double a);};
2620 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2621 int, int);'
2622
2623 # Test code for whether the C compiler supports C89 (body of main).
2624 ac_c_conftest_c89_main='
2625 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2626 '
2627
2628 # Test code for whether the C compiler supports C99 (global declarations)
2629 ac_c_conftest_c99_globals='
2630 /* Does the compiler advertise C99 conformance? */
2631 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2632 # error "Compiler does not advertise C99 conformance"
2633 #endif
2634
2635 // See if C++-style comments work.
2636
2637 #include <stdbool.h>
2638 extern int puts (const char *);
2639 extern int printf (const char *, ...);
2640 extern int dprintf (int, const char *, ...);
2641 extern void *malloc (size_t);
2642 extern void free (void *);
2643
2644 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2645 // dprintf is used instead of fprintf to avoid needing to declare
2646 // FILE and stderr.
2647 #define debug(...) dprintf (2, __VA_ARGS__)
2648 #define showlist(...) puts (#__VA_ARGS__)
2649 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2650 static void
2651 test_varargs_macros (void)
2652 {
2653 int x = 1234;
2654 int y = 5678;
2655 debug ("Flag");
2656 debug ("X = %d\n", x);
2657 showlist (The first, second, and third items.);
2658 report (x>y, "x is %d but y is %d", x, y);
2659 }
2660
2661 // Check long long types.
2662 #define BIG64 18446744073709551615ull
2663 #define BIG32 4294967295ul
2664 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2665 #if !BIG_OK
2666 #error "your preprocessor is broken"
2667 #endif
2668 #if BIG_OK
2669 #else
2670 #error "your preprocessor is broken"
2671 #endif
2672 static long long int bignum = -9223372036854775807LL;
2673 static unsigned long long int ubignum = BIG64;
2674
2675 struct incomplete_array
2676 {
2677 int datasize;
2678 double data[];
2679 };
2680
2681 struct named_init {
2682 int number;
2683 const wchar_t *name;
2684 double average;
2685 };
2686
2687 typedef const char *ccp;
2688
2689 static inline int
2690 test_restrict (ccp restrict text)
2691 {
2692 // Iterate through items via the restricted pointer.
2693 // Also check for declarations in for loops.
2694 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2695 continue;
2696 return 0;
2697 }
2698
2699 // Check varargs and va_copy.
2700 static bool
2701 test_varargs (const char *format, ...)
2702 {
2703 va_list args;
2704 va_start (args, format);
2705 va_list args_copy;
2706 va_copy (args_copy, args);
2707
2708 const char *str = "";
2709 int number = 0;
2710 float fnumber = 0;
2711
2712 while (*format)
2713 {
2714 switch (*format++)
2715 {
2716 case '\''s'\'': // string
2717 str = va_arg (args_copy, const char *);
2718 break;
2719 case '\''d'\'': // int
2720 number = va_arg (args_copy, int);
2721 break;
2722 case '\''f'\'': // float
2723 fnumber = va_arg (args_copy, double);
2724 break;
2725 default:
2726 break;
2727 }
2728 }
2729 va_end (args_copy);
2730 va_end (args);
2731
2732 return *str && number && fnumber;
2733 }
2734 '
2735
2736 # Test code for whether the C compiler supports C99 (body of main).
2737 ac_c_conftest_c99_main='
2738 // Check bool.
2739 _Bool success = false;
2740 success |= (argc != 0);
2741
2742 // Check restrict.
2743 if (test_restrict ("String literal") == 0)
2744 success = true;
2745 char *restrict newvar = "Another string";
2746
2747 // Check varargs.
2748 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2749 test_varargs_macros ();
2750
2751 // Check flexible array members.
2752 struct incomplete_array *ia =
2753 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2754 ia->datasize = 10;
2755 for (int i = 0; i < ia->datasize; ++i)
2756 ia->data[i] = i * 1.234;
2757 // Work around memory leak warnings.
2758 free (ia);
2759
2760 // Check named initializers.
2761 struct named_init ni = {
2762 .number = 34,
2763 .name = L"Test wide string",
2764 .average = 543.34343,
2765 };
2766
2767 ni.number = 58;
2768
2769 int dynamic_array[ni.number];
2770 dynamic_array[0] = argv[0][0];
2771 dynamic_array[ni.number - 1] = 543;
2772
2773 // work around unused variable warnings
2774 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2775 || dynamic_array[ni.number - 1] != 543);
2776 '
2777
2778 # Test code for whether the C compiler supports C11 (global declarations)
2779 ac_c_conftest_c11_globals='
2780 /* Does the compiler advertise C11 conformance? */
2781 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2782 # error "Compiler does not advertise C11 conformance"
2783 #endif
2784
2785 // Check _Alignas.
2786 char _Alignas (double) aligned_as_double;
2787 char _Alignas (0) no_special_alignment;
2788 extern char aligned_as_int;
2789 char _Alignas (0) _Alignas (int) aligned_as_int;
2790
2791 // Check _Alignof.
2792 enum
2793 {
2794 int_alignment = _Alignof (int),
2795 int_array_alignment = _Alignof (int[100]),
2796 char_alignment = _Alignof (char)
2797 };
2798 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2799
2800 // Check _Noreturn.
2801 int _Noreturn does_not_return (void) { for (;;) continue; }
2802
2803 // Check _Static_assert.
2804 struct test_static_assert
2805 {
2806 int x;
2807 _Static_assert (sizeof (int) <= sizeof (long int),
2808 "_Static_assert does not work in struct");
2809 long int y;
2810 };
2811
2812 // Check UTF-8 literals.
2813 #define u8 syntax error!
2814 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2815
2816 // Check duplicate typedefs.
2817 typedef long *long_ptr;
2818 typedef long int *long_ptr;
2819 typedef long_ptr long_ptr;
2820
2821 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2822 struct anonymous
2823 {
2824 union {
2825 struct { int i; int j; };
2826 struct { int k; long int l; } w;
2827 };
2828 int m;
2829 } v1;
2830 '
2831
2832 # Test code for whether the C compiler supports C11 (body of main).
2833 ac_c_conftest_c11_main='
2834 _Static_assert ((offsetof (struct anonymous, i)
2835 == offsetof (struct anonymous, w.k)),
2836 "Anonymous union alignment botch");
2837 v1.i = 2;
2838 v1.w.k = 5;
2839 ok |= v1.i != 5;
2840 '
2841
2842 # Test code for whether the C compiler supports C11 (complete).
2843 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2844 ${ac_c_conftest_c99_globals}
2845 ${ac_c_conftest_c11_globals}
2846
2847 int
2848 main (int argc, char **argv)
2849 {
2850 int ok = 0;
2851 ${ac_c_conftest_c89_main}
2852 ${ac_c_conftest_c99_main}
2853 ${ac_c_conftest_c11_main}
2854 return ok;
2855 }
2856 "
2857
2858 # Test code for whether the C compiler supports C99 (complete).
2859 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2860 ${ac_c_conftest_c99_globals}
2861
2862 int
2863 main (int argc, char **argv)
2864 {
2865 int ok = 0;
2866 ${ac_c_conftest_c89_main}
2867 ${ac_c_conftest_c99_main}
2868 return ok;
2869 }
2870 "
2871
2872 # Test code for whether the C compiler supports C89 (complete).
2873 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2874
2875 int
2876 main (int argc, char **argv)
2877 {
2878 int ok = 0;
2879 ${ac_c_conftest_c89_main}
2880 return ok;
2881 }
2882 "
2883
2884 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2885 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2886 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2887 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2888 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2889 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2890 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2891 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2892 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2893 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2894 # Test code for whether the C++ compiler supports C++98 (global declarations)
2895 ac_cxx_conftest_cxx98_globals='
2896 // Does the compiler advertise C++98 conformance?
2897 #if !defined __cplusplus || __cplusplus < 199711L
2898 # error "Compiler does not advertise C++98 conformance"
2899 #endif
2900
2901 // These inclusions are to reject old compilers that
2902 // lack the unsuffixed header files.
2903 #include <cstdlib>
2904 #include <exception>
2905
2906 // <cassert> and <cstring> are *not* freestanding headers in C++98.
2907 extern void assert (int);
2908 namespace std {
2909 extern int strcmp (const char *, const char *);
2910 }
2911
2912 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
2913 using std::exception;
2914 using std::strcmp;
2915
2916 namespace {
2917
2918 void test_exception_syntax()
2919 {
2920 try {
2921 throw "test";
2922 } catch (const char *s) {
2923 // Extra parentheses suppress a warning when building autoconf itself,
2924 // due to lint rules shared with more typical C programs.
2925 assert (!(strcmp) (s, "test"));
2926 }
2927 }
2928
2929 template <typename T> struct test_template
2930 {
2931 T const val;
2932 explicit test_template(T t) : val(t) {}
2933 template <typename U> T add(U u) { return static_cast<T>(u) + val; }
2934 };
2935
2936 } // anonymous namespace
2937 '
2938
2939 # Test code for whether the C++ compiler supports C++98 (body of main)
2940 ac_cxx_conftest_cxx98_main='
2941 assert (argc);
2942 assert (! argv[0]);
2943 {
2944 test_exception_syntax ();
2945 test_template<double> tt (2.0);
2946 assert (tt.add (4) == 6.0);
2947 assert (true && !false);
2948 }
2949 '
2950
2951 # Test code for whether the C++ compiler supports C++11 (global declarations)
2952 ac_cxx_conftest_cxx11_globals='
2953 // Does the compiler advertise C++ 2011 conformance?
2954 #if !defined __cplusplus || __cplusplus < 201103L
2955 # error "Compiler does not advertise C++11 conformance"
2956 #endif
2957
2958 namespace cxx11test
2959 {
2960 constexpr int get_val() { return 20; }
2961
2962 struct testinit
2963 {
2964 int i;
2965 double d;
2966 };
2967
2968 class delegate
2969 {
2970 public:
2971 delegate(int n) : n(n) {}
2972 delegate(): delegate(2354) {}
2973
2974 virtual int getval() { return this->n; };
2975 protected:
2976 int n;
2977 };
2978
2979 class overridden : public delegate
2980 {
2981 public:
2982 overridden(int n): delegate(n) {}
2983 virtual int getval() override final { return this->n * 2; }
2984 };
2985
2986 class nocopy
2987 {
2988 public:
2989 nocopy(int i): i(i) {}
2990 nocopy() = default;
2991 nocopy(const nocopy&) = delete;
2992 nocopy & operator=(const nocopy&) = delete;
2993 private:
2994 int i;
2995 };
2996
2997 // for testing lambda expressions
2998 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
2999 {
3000 return f(v);
3001 }
3002
3003 // for testing variadic templates and trailing return types
3004 template <typename V> auto sum(V first) -> V
3005 {
3006 return first;
3007 }
3008 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
3009 {
3010 return first + sum(rest...);
3011 }
3012 }
3013 '
3014
3015 # Test code for whether the C++ compiler supports C++11 (body of main)
3016 ac_cxx_conftest_cxx11_main='
3017 {
3018 // Test auto and decltype
3019 auto a1 = 6538;
3020 auto a2 = 48573953.4;
3021 auto a3 = "String literal";
3022
3023 int total = 0;
3024 for (auto i = a3; *i; ++i) { total += *i; }
3025
3026 decltype(a2) a4 = 34895.034;
3027 }
3028 {
3029 // Test constexpr
3030 short sa[cxx11test::get_val()] = { 0 };
3031 }
3032 {
3033 // Test initializer lists
3034 cxx11test::testinit il = { 4323, 435234.23544 };
3035 }
3036 {
3037 // Test range-based for
3038 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
3039 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
3040 for (auto &x : array) { x += 23; }
3041 }
3042 {
3043 // Test lambda expressions
3044 using cxx11test::eval;
3045 assert (eval ([](int x) { return x*2; }, 21) == 42);
3046 double d = 2.0;
3047 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
3048 assert (d == 5.0);
3049 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
3050 assert (d == 5.0);
3051 }
3052 {
3053 // Test use of variadic templates
3054 using cxx11test::sum;
3055 auto a = sum(1);
3056 auto b = sum(1, 2);
3057 auto c = sum(1.0, 2.0, 3.0);
3058 }
3059 {
3060 // Test constructor delegation
3061 cxx11test::delegate d1;
3062 cxx11test::delegate d2();
3063 cxx11test::delegate d3(45);
3064 }
3065 {
3066 // Test override and final
3067 cxx11test::overridden o1(55464);
3068 }
3069 {
3070 // Test nullptr
3071 char *c = nullptr;
3072 }
3073 {
3074 // Test template brackets
3075 test_template<::test_template<int>> v(test_template<int>(12));
3076 }
3077 {
3078 // Unicode literals
3079 char const *utf8 = u8"UTF-8 string \u2500";
3080 char16_t const *utf16 = u"UTF-8 string \u2500";
3081 char32_t const *utf32 = U"UTF-32 string \u2500";
3082 }
3083 '
3084
3085 # Test code for whether the C compiler supports C++11 (complete).
3086 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
3087 ${ac_cxx_conftest_cxx11_globals}
3088
3089 int
3090 main (int argc, char **argv)
3091 {
3092 int ok = 0;
3093 ${ac_cxx_conftest_cxx98_main}
3094 ${ac_cxx_conftest_cxx11_main}
3095 return ok;
3096 }
3097 "
3098
3099 # Test code for whether the C compiler supports C++98 (complete).
3100 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
3101 int
3102 main (int argc, char **argv)
3103 {
3104 int ok = 0;
3105 ${ac_cxx_conftest_cxx98_main}
3106 return ok;
3107 }
3108 "
3109
3110
3111 # Auxiliary files required by this configure script.
3112 ac_aux_files="config.guess config.sub ltmain.sh ar-lib compile missing install-sh"
3113
3114 # Locations in which to look for auxiliary files.
3115 ac_aux_dir_candidates="${srcdir}/../../build-aux"
3116
3117 # Search for a directory containing all of the required auxiliary files,
3118 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3119 # If we don't find one directory that contains all the files we need,
3120 # we report the set of missing files from the *first* directory in
3121 # $ac_aux_dir_candidates and give up.
3122 ac_missing_aux_files=""
3123 ac_first_candidate=:
3124 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3126 as_found=false
3127 for as_dir in $ac_aux_dir_candidates
3128 do
3129 IFS=$as_save_IFS
3130 case $as_dir in #(((
3131 '') as_dir=./ ;;
3132 */) ;;
3133 *) as_dir=$as_dir/ ;;
3134 esac
3135 as_found=:
3136
3137 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
3138 ac_aux_dir_found=yes
3139 ac_install_sh=
3140 for ac_aux in $ac_aux_files
3141 do
3142 # As a special case, if "install-sh" is required, that requirement
3143 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3144 # and $ac_install_sh is set appropriately for whichever one is found.
3145 if test x"$ac_aux" = x"install-sh"
3146 then
3147 if test -f "${as_dir}install-sh"; then
3148 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
3149 ac_install_sh="${as_dir}install-sh -c"
3150 elif test -f "${as_dir}install.sh"; then
3151 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
3152 ac_install_sh="${as_dir}install.sh -c"
3153 elif test -f "${as_dir}shtool"; then
3154 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
3155 ac_install_sh="${as_dir}shtool install -c"
3156 else
3157 ac_aux_dir_found=no
3158 if $ac_first_candidate; then
3159 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3160 else
3161 break
3162 fi
3163 fi
3164 else
3165 if test -f "${as_dir}${ac_aux}"; then
3166 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
3167 else
3168 ac_aux_dir_found=no
3169 if $ac_first_candidate; then
3170 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3171 else
3172 break
3173 fi
3174 fi
3175 fi
3176 done
3177 if test "$ac_aux_dir_found" = yes; then
3178 ac_aux_dir="$as_dir"
3179 break
3180 fi
3181 ac_first_candidate=false
3182
3183 as_found=false
3184 done
3185 IFS=$as_save_IFS
3186 if $as_found
3187 then :
3188
3189 else case e in #(
3190 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
3191 esac
3192 fi
3193
3194
3195 # These three variables are undocumented and unsupported,
3196 # and are intended to be withdrawn in a future Autoconf release.
3197 # They can cause serious problems if a builder's source tree is in a directory
3198 # whose full name contains unusual characters.
3199 if test -f "${ac_aux_dir}config.guess"; then
3200 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3201 fi
3202 if test -f "${ac_aux_dir}config.sub"; then
3203 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3204 fi
3205 if test -f "$ac_aux_dir/configure"; then
3206 ac_configure="$SHELL ${ac_aux_dir}configure"
3207 fi
3208
3209 # Check that the precious variables saved in the cache have kept the same
3210 # value.
3211 ac_cache_corrupted=false
3212 for ac_var in $ac_precious_vars; do
3213 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3214 eval ac_new_set=\$ac_env_${ac_var}_set
3215 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3216 eval ac_new_val=\$ac_env_${ac_var}_value
3217 case $ac_old_set,$ac_new_set in
3218 set,)
3219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
3220 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
3221 ac_cache_corrupted=: ;;
3222 ,set)
3223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
3224 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
3225 ac_cache_corrupted=: ;;
3226 ,);;
3227 *)
3228 if test "x$ac_old_val" != "x$ac_new_val"; then
3229 # differences in whitespace do not lead to failure.
3230 ac_old_val_w=`echo x $ac_old_val`
3231 ac_new_val_w=`echo x $ac_new_val`
3232 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
3234 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
3235 ac_cache_corrupted=:
3236 else
3237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
3238 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
3239 eval $ac_var=\$ac_old_val
3240 fi
3241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
3242 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
3243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
3244 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
3245 fi;;
3246 esac
3247 # Pass precious variables to config.status.
3248 if test "$ac_new_set" = set; then
3249 case $ac_new_val in
3250 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3251 *) ac_arg=$ac_var=$ac_new_val ;;
3252 esac
3253 case " $ac_configure_args " in
3254 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3255 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3256 esac
3257 fi
3258 done
3259 if $ac_cache_corrupted; then
3260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3261 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3263 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3264 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
3265 and start over" "$LINENO" 5
3266 fi
3267 ## -------------------- ##
3268 ## Main body of script. ##
3269 ## -------------------- ##
3270
3271 ac_ext=c
3272 ac_cpp='$CPP $CPPFLAGS'
3273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3276
3277
3278
3279
3280
3281
3282
3283 am__api_version='1.18'
3284
3285
3286
3287 # Find a good install program. We prefer a C program (faster),
3288 # so one script is as good as another. But avoid the broken or
3289 # incompatible versions:
3290 # SysV /etc/install, /usr/sbin/install
3291 # SunOS /usr/etc/install
3292 # IRIX /sbin/install
3293 # AIX /bin/install
3294 # AmigaOS /C/install, which installs bootblocks on floppy discs
3295 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3296 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3297 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3298 # OS/2's system install, which has a completely different semantic
3299 # ./install, which can be erroneously created by make from ./install.sh.
3300 # Reject install programs that cannot install multiple files.
3301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3302 printf %s "checking for a BSD-compatible install... " >&6; }
3303 if test -z "$INSTALL"; then
3304 if test ${ac_cv_path_install+y}
3305 then :
3306 printf %s "(cached) " >&6
3307 else case e in #(
3308 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3309 for as_dir in $PATH
3310 do
3311 IFS=$as_save_IFS
3312 case $as_dir in #(((
3313 '') as_dir=./ ;;
3314 */) ;;
3315 *) as_dir=$as_dir/ ;;
3316 esac
3317 # Account for fact that we put trailing slashes in our PATH walk.
3318 case $as_dir in #((
3319 ./ | /[cC]/* | \
3320 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3321 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3322 /usr/ucb/* ) ;;
3323 *)
3324 # OSF1 and SCO ODT 3.0 have their own names for install.
3325 # Don't use installbsd from OSF since it installs stuff as root
3326 # by default.
3327 for ac_prog in ginstall scoinst install; do
3328 for ac_exec_ext in '' $ac_executable_extensions; do
3329 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3330 if test $ac_prog = install &&
3331 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3332 # AIX install. It has an incompatible calling convention.
3333 :
3334 elif test $ac_prog = install &&
3335 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3336 # program-specific install script used by HP pwplus--don't use.
3337 :
3338 else
3339 rm -rf conftest.one conftest.two conftest.dir
3340 echo one > conftest.one
3341 echo two > conftest.two
3342 mkdir conftest.dir
3343 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3344 test -s conftest.one && test -s conftest.two &&
3345 test -s conftest.dir/conftest.one &&
3346 test -s conftest.dir/conftest.two
3347 then
3348 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3349 break 3
3350 fi
3351 fi
3352 fi
3353 done
3354 done
3355 ;;
3356 esac
3357
3358 done
3359 IFS=$as_save_IFS
3360
3361 rm -rf conftest.one conftest.two conftest.dir
3362 ;;
3363 esac
3364 fi
3365 if test ${ac_cv_path_install+y}; then
3366 INSTALL=$ac_cv_path_install
3367 else
3368 # As a last resort, use the slow shell script. Don't cache a
3369 # value for INSTALL within a source directory, because that will
3370 # break other packages using the cache if that directory is
3371 # removed, or if the value is a relative name.
3372 INSTALL=$ac_install_sh
3373 fi
3374 fi
3375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3376 printf "%s\n" "$INSTALL" >&6; }
3377
3378 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3379 # It thinks the first close brace ends the variable substitution.
3380 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3381
3382 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3383
3384 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3385
3386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
3387 printf %s "checking whether sleep supports fractional seconds... " >&6; }
3388 if test ${am_cv_sleep_fractional_seconds+y}
3389 then :
3390 printf %s "(cached) " >&6
3391 else case e in #(
3392 e) if sleep 0.001 2>/dev/null
3393 then :
3394 am_cv_sleep_fractional_seconds=yes
3395 else case e in #(
3396 e) am_cv_sleep_fractional_seconds=no ;;
3397 esac
3398 fi
3399 ;;
3400 esac
3401 fi
3402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
3403 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
3404
3405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
3406 printf %s "checking filesystem timestamp resolution... " >&6; }
3407 if test ${am_cv_filesystem_timestamp_resolution+y}
3408 then :
3409 printf %s "(cached) " >&6
3410 else case e in #(
3411 e) # Default to the worst case.
3412 am_cv_filesystem_timestamp_resolution=2
3413
3414 # Only try to go finer than 1 sec if sleep can do it.
3415 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
3416 # - 1 sec is not much of a win compared to 2 sec, and
3417 # - it takes 2 seconds to perform the test whether 1 sec works.
3418 #
3419 # Instead, just use the default 2s on platforms that have 1s resolution,
3420 # accept the extra 1s delay when using $sleep in the Automake tests, in
3421 # exchange for not incurring the 2s delay for running the test for all
3422 # packages.
3423 #
3424 am_try_resolutions=
3425 if test "$am_cv_sleep_fractional_seconds" = yes; then
3426 # Even a millisecond often causes a bunch of false positives,
3427 # so just try a hundredth of a second. The time saved between .001 and
3428 # .01 is not terribly consequential.
3429 am_try_resolutions="0.01 0.1 $am_try_resolutions"
3430 fi
3431
3432 # In order to catch current-generation FAT out, we must *modify* files
3433 # that already exist; the *creation* timestamp is finer. Use names
3434 # that make ls -t sort them differently when they have equal
3435 # timestamps than when they have distinct timestamps, keeping
3436 # in mind that ls -t prints the *newest* file first.
3437 rm -f conftest.ts?
3438 : > conftest.ts1
3439 : > conftest.ts2
3440 : > conftest.ts3
3441
3442 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
3443 # clobber the current shell's arguments. (Outer-level square brackets
3444 # are removed by m4; they're present so that m4 does not expand
3445 # <dollar><star>; be careful, easy to get confused.)
3446 if (
3447 set X `ls -t conftest.ts[12]` &&
3448 {
3449 test "$*" != "X conftest.ts1 conftest.ts2" ||
3450 test "$*" != "X conftest.ts2 conftest.ts1";
3451 }
3452 ); then :; else
3453 # If neither matched, then we have a broken ls. This can happen
3454 # if, for instance, CONFIG_SHELL is bash and it inherits a
3455 # broken ls alias from the environment. This has actually
3456 # happened. Such a system could not be considered "sane".
3457 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
3458 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3459 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3460 as_fn_error $? "ls -t produces unexpected output.
3461 Make sure there is not a broken ls alias in your environment.
3462 See 'config.log' for more details" "$LINENO" 5; }
3463 fi
3464
3465 for am_try_res in $am_try_resolutions; do
3466 # Any one fine-grained sleep might happen to cross the boundary
3467 # between two values of a coarser actual resolution, but if we do
3468 # two fine-grained sleeps in a row, at least one of them will fall
3469 # entirely within a coarse interval.
3470 echo alpha > conftest.ts1
3471 sleep $am_try_res
3472 echo beta > conftest.ts2
3473 sleep $am_try_res
3474 echo gamma > conftest.ts3
3475
3476 # We assume that 'ls -t' will make use of high-resolution
3477 # timestamps if the operating system supports them at all.
3478 if (set X `ls -t conftest.ts?` &&
3479 test "$2" = conftest.ts3 &&
3480 test "$3" = conftest.ts2 &&
3481 test "$4" = conftest.ts1); then
3482 #
3483 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
3484 # because we don't need to test make.
3485 make_ok=true
3486 if test $am_try_res != 1; then
3487 # But if we've succeeded so far with a subsecond resolution, we
3488 # have one more thing to check: make. It can happen that
3489 # everything else supports the subsecond mtimes, but make doesn't;
3490 # notably on macOS, which ships make 3.81 from 2006 (the last one
3491 # released under GPLv2). https://bugs.gnu.org/68808
3492 #
3493 # We test $MAKE if it is defined in the environment, else "make".
3494 # It might get overridden later, but our hope is that in practice
3495 # it does not matter: it is the system "make" which is (by far)
3496 # the most likely to be broken, whereas if the user overrides it,
3497 # probably they did so with a better, or at least not worse, make.
3498 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
3499 #
3500 # Create a Makefile (real tab character here):
3501 rm -f conftest.mk
3502 echo 'conftest.ts1: conftest.ts2' >conftest.mk
3503 echo ' touch conftest.ts2' >>conftest.mk
3504 #
3505 # Now, running
3506 # touch conftest.ts1; touch conftest.ts2; make
3507 # should touch ts1 because ts2 is newer. This could happen by luck,
3508 # but most often, it will fail if make's support is insufficient. So
3509 # test for several consecutive successes.
3510 #
3511 # (We reuse conftest.ts[12] because we still want to modify existing
3512 # files, not create new ones, per above.)
3513 n=0
3514 make=${MAKE-make}
3515 until test $n -eq 3; do
3516 echo one > conftest.ts1
3517 sleep $am_try_res
3518 echo two > conftest.ts2 # ts2 should now be newer than ts1
3519 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
3520 make_ok=false
3521 break # out of $n loop
3522 fi
3523 n=`expr $n + 1`
3524 done
3525 fi
3526 #
3527 if $make_ok; then
3528 # Everything we know to check worked out, so call this resolution good.
3529 am_cv_filesystem_timestamp_resolution=$am_try_res
3530 break # out of $am_try_res loop
3531 fi
3532 # Otherwise, we'll go on to check the next resolution.
3533 fi
3534 done
3535 rm -f conftest.ts?
3536 # (end _am_filesystem_timestamp_resolution)
3537 ;;
3538 esac
3539 fi
3540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
3541 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
3542
3543 # This check should not be cached, as it may vary across builds of
3544 # different projects.
3545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3546 printf %s "checking whether build environment is sane... " >&6; }
3547 # Reject unsafe characters in $srcdir or the absolute working directory
3548 # name. Accept space and tab only in the latter.
3549 am_lf='
3550 '
3551 case `pwd` in
3552 *[\\\"\#\$\&\'\`$am_lf]*)
3553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3554 printf "%s\n" "no" >&6; }
3555 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3556 esac
3557 case $srcdir in
3558 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3560 printf "%s\n" "no" >&6; }
3561 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3562 esac
3563
3564 # Do 'set' in a subshell so we don't clobber the current shell's
3565 # arguments. Must try -L first in case configure is actually a
3566 # symlink; some systems play weird games with the mod time of symlinks
3567 # (eg FreeBSD returns the mod time of the symlink's containing
3568 # directory).
3569 am_build_env_is_sane=no
3570 am_has_slept=no
3571 rm -f conftest.file
3572 for am_try in 1 2; do
3573 echo "timestamp, slept: $am_has_slept" > conftest.file
3574 if (
3575 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3576 if test "$*" = "X"; then
3577 # -L didn't work.
3578 set X `ls -t "$srcdir/configure" conftest.file`
3579 fi
3580 test "$2" = conftest.file
3581 ); then
3582 am_build_env_is_sane=yes
3583 break
3584 fi
3585 # Just in case.
3586 sleep "$am_cv_filesystem_timestamp_resolution"
3587 am_has_slept=yes
3588 done
3589
3590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
3591 printf "%s\n" "$am_build_env_is_sane" >&6; }
3592 if test "$am_build_env_is_sane" = no; then
3593 as_fn_error $? "newly created file is older than distributed files!
3594 Check your system clock" "$LINENO" 5
3595 fi
3596
3597 # If we didn't sleep, we still need to ensure time stamps of config.status and
3598 # generated files are strictly newer.
3599 am_sleep_pid=
3600 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
3601 then :
3602
3603 else case e in #(
3604 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
3605 am_sleep_pid=$!
3606 ;;
3607 esac
3608 fi
3609
3610 rm -f conftest.file
3611
3612 test "$program_prefix" != NONE &&
3613 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3614 # Use a double $ so make ignores it.
3615 test "$program_suffix" != NONE &&
3616 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3617 # Double any \ or $.
3618 # By default was 's,x,x', remove it if useless.
3619 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3620 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3621
3622
3623 # Expand $ac_aux_dir to an absolute path.
3624 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3625
3626
3627 if test x"${MISSING+set}" != xset; then
3628 MISSING="\${SHELL} '$am_aux_dir/missing'"
3629 fi
3630 # Use eval to expand $SHELL
3631 if eval "$MISSING --is-lightweight"; then
3632 am_missing_run="$MISSING "
3633 else
3634 am_missing_run=
3635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3636 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3637 fi
3638
3639 if test x"${install_sh+set}" != xset; then
3640 case $am_aux_dir in
3641 *\ * | *\ *)
3642 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3643 *)
3644 install_sh="\${SHELL} $am_aux_dir/install-sh"
3645 esac
3646 fi
3647
3648 # Installed binaries are usually stripped using 'strip' when the user
3649 # run "make install-strip". However 'strip' might not be the right
3650 # tool to use in cross-compilation environments, therefore Automake
3651 # will honor the 'STRIP' environment variable to overrule this program.
3652 if test "$cross_compiling" != no; then
3653 if test -n "$ac_tool_prefix"; then
3654 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3655 set dummy ${ac_tool_prefix}strip; ac_word=$2
3656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3657 printf %s "checking for $ac_word... " >&6; }
3658 if test ${ac_cv_prog_STRIP+y}
3659 then :
3660 printf %s "(cached) " >&6
3661 else case e in #(
3662 e) if test -n "$STRIP"; then
3663 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3664 else
3665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3666 for as_dir in $PATH
3667 do
3668 IFS=$as_save_IFS
3669 case $as_dir in #(((
3670 '') as_dir=./ ;;
3671 */) ;;
3672 *) as_dir=$as_dir/ ;;
3673 esac
3674 for ac_exec_ext in '' $ac_executable_extensions; do
3675 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3676 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3677 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3678 break 2
3679 fi
3680 done
3681 done
3682 IFS=$as_save_IFS
3683
3684 fi ;;
3685 esac
3686 fi
3687 STRIP=$ac_cv_prog_STRIP
3688 if test -n "$STRIP"; then
3689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3690 printf "%s\n" "$STRIP" >&6; }
3691 else
3692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3693 printf "%s\n" "no" >&6; }
3694 fi
3695
3696
3697 fi
3698 if test -z "$ac_cv_prog_STRIP"; then
3699 ac_ct_STRIP=$STRIP
3700 # Extract the first word of "strip", so it can be a program name with args.
3701 set dummy strip; ac_word=$2
3702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3703 printf %s "checking for $ac_word... " >&6; }
3704 if test ${ac_cv_prog_ac_ct_STRIP+y}
3705 then :
3706 printf %s "(cached) " >&6
3707 else case e in #(
3708 e) if test -n "$ac_ct_STRIP"; then
3709 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3710 else
3711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3712 for as_dir in $PATH
3713 do
3714 IFS=$as_save_IFS
3715 case $as_dir in #(((
3716 '') as_dir=./ ;;
3717 */) ;;
3718 *) as_dir=$as_dir/ ;;
3719 esac
3720 for ac_exec_ext in '' $ac_executable_extensions; do
3721 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3722 ac_cv_prog_ac_ct_STRIP="strip"
3723 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3724 break 2
3725 fi
3726 done
3727 done
3728 IFS=$as_save_IFS
3729
3730 fi ;;
3731 esac
3732 fi
3733 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3734 if test -n "$ac_ct_STRIP"; then
3735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3736 printf "%s\n" "$ac_ct_STRIP" >&6; }
3737 else
3738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3739 printf "%s\n" "no" >&6; }
3740 fi
3741
3742 if test "x$ac_ct_STRIP" = x; then
3743 STRIP=":"
3744 else
3745 case $cross_compiling:$ac_tool_warned in
3746 yes:)
3747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3748 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3749 ac_tool_warned=yes ;;
3750 esac
3751 STRIP=$ac_ct_STRIP
3752 fi
3753 else
3754 STRIP="$ac_cv_prog_STRIP"
3755 fi
3756
3757 fi
3758 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3759
3760
3761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3762 printf %s "checking for a race-free mkdir -p... " >&6; }
3763 if test -z "$MKDIR_P"; then
3764 if test ${ac_cv_path_mkdir+y}
3765 then :
3766 printf %s "(cached) " >&6
3767 else case e in #(
3768 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3769 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3770 do
3771 IFS=$as_save_IFS
3772 case $as_dir in #(((
3773 '') as_dir=./ ;;
3774 */) ;;
3775 *) as_dir=$as_dir/ ;;
3776 esac
3777 for ac_prog in mkdir gmkdir; do
3778 for ac_exec_ext in '' $ac_executable_extensions; do
3779 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3780 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3781 'mkdir ('*'coreutils) '* | \
3782 *'BusyBox '* | \
3783 'mkdir (fileutils) '4.1*)
3784 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3785 break 3;;
3786 esac
3787 done
3788 done
3789 done
3790 IFS=$as_save_IFS
3791 ;;
3792 esac
3793 fi
3794
3795 test -d ./--version && rmdir ./--version
3796 if test ${ac_cv_path_mkdir+y}; then
3797 MKDIR_P="$ac_cv_path_mkdir -p"
3798 else
3799 # As a last resort, use plain mkdir -p,
3800 # in the hope it doesn't have the bugs of ancient mkdir.
3801 MKDIR_P='mkdir -p'
3802 fi
3803 fi
3804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3805 printf "%s\n" "$MKDIR_P" >&6; }
3806
3807 for ac_prog in gawk mawk nawk awk
3808 do
3809 # Extract the first word of "$ac_prog", so it can be a program name with args.
3810 set dummy $ac_prog; ac_word=$2
3811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3812 printf %s "checking for $ac_word... " >&6; }
3813 if test ${ac_cv_prog_AWK+y}
3814 then :
3815 printf %s "(cached) " >&6
3816 else case e in #(
3817 e) if test -n "$AWK"; then
3818 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3819 else
3820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3821 for as_dir in $PATH
3822 do
3823 IFS=$as_save_IFS
3824 case $as_dir in #(((
3825 '') as_dir=./ ;;
3826 */) ;;
3827 *) as_dir=$as_dir/ ;;
3828 esac
3829 for ac_exec_ext in '' $ac_executable_extensions; do
3830 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3831 ac_cv_prog_AWK="$ac_prog"
3832 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3833 break 2
3834 fi
3835 done
3836 done
3837 IFS=$as_save_IFS
3838
3839 fi ;;
3840 esac
3841 fi
3842 AWK=$ac_cv_prog_AWK
3843 if test -n "$AWK"; then
3844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3845 printf "%s\n" "$AWK" >&6; }
3846 else
3847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3848 printf "%s\n" "no" >&6; }
3849 fi
3850
3851
3852 test -n "$AWK" && break
3853 done
3854
3855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3856 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3857 set x ${MAKE-make}
3858 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3859 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3860 then :
3861 printf %s "(cached) " >&6
3862 else case e in #(
3863 e) cat >conftest.make <<\_ACEOF
3864 SHELL = /bin/sh
3865 all:
3866 @echo '@@@%%%=$(MAKE)=@@@%%%'
3867 _ACEOF
3868 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3869 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3870 *@@@%%%=?*=@@@%%%*)
3871 eval ac_cv_prog_make_${ac_make}_set=yes;;
3872 *)
3873 eval ac_cv_prog_make_${ac_make}_set=no;;
3874 esac
3875 rm -f conftest.make ;;
3876 esac
3877 fi
3878 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3880 printf "%s\n" "yes" >&6; }
3881 SET_MAKE=
3882 else
3883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3884 printf "%s\n" "no" >&6; }
3885 SET_MAKE="MAKE=${MAKE-make}"
3886 fi
3887
3888 rm -rf .tst 2>/dev/null
3889 mkdir .tst 2>/dev/null
3890 if test -d .tst; then
3891 am__leading_dot=.
3892 else
3893 am__leading_dot=_
3894 fi
3895 rmdir .tst 2>/dev/null
3896
3897 AM_DEFAULT_VERBOSITY=1
3898 # Check whether --enable-silent-rules was given.
3899 if test ${enable_silent_rules+y}
3900 then :
3901 enableval=$enable_silent_rules;
3902 fi
3903
3904 am_make=${MAKE-make}
3905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3906 printf %s "checking whether $am_make supports nested variables... " >&6; }
3907 if test ${am_cv_make_support_nested_variables+y}
3908 then :
3909 printf %s "(cached) " >&6
3910 else case e in #(
3911 e) if printf "%s\n" 'TRUE=$(BAR$(V))
3912 BAR0=false
3913 BAR1=true
3914 V=1
3915 am__doit:
3916 @$(TRUE)
3917 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3918 am_cv_make_support_nested_variables=yes
3919 else
3920 am_cv_make_support_nested_variables=no
3921 fi ;;
3922 esac
3923 fi
3924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3925 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3926 AM_BACKSLASH='\'
3927
3928 am__rm_f_notfound=
3929 if (rm -f && rm -fr && rm -rf) 2>/dev/null
3930 then :
3931
3932 else case e in #(
3933 e) am__rm_f_notfound='""' ;;
3934 esac
3935 fi
3936
3937
3938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
3939 printf %s "checking xargs -n works... " >&6; }
3940 if test ${am_cv_xargs_n_works+y}
3941 then :
3942 printf %s "(cached) " >&6
3943 else case e in #(
3944 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
3945 3"
3946 then :
3947 am_cv_xargs_n_works=yes
3948 else case e in #(
3949 e) am_cv_xargs_n_works=no ;;
3950 esac
3951 fi ;;
3952 esac
3953 fi
3954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
3955 printf "%s\n" "$am_cv_xargs_n_works" >&6; }
3956 if test "$am_cv_xargs_n_works" = yes
3957 then :
3958 am__xargs_n='xargs -n'
3959 else case e in #(
3960 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
3961 ;;
3962 esac
3963 fi
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974 DEPDIR="${am__leading_dot}deps"
3975
3976 ac_config_commands="$ac_config_commands depfiles"
3977
3978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3979 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3980 cat > confinc.mk << 'END'
3981 am__doit:
3982 @echo this is the am__doit target >confinc.out
3983 .PHONY: am__doit
3984 END
3985 am__include="#"
3986 am__quote=
3987 # BSD make does it like this.
3988 echo '.include "confinc.mk" # ignored' > confmf.BSD
3989 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3990 echo 'include confinc.mk # ignored' > confmf.GNU
3991 _am_result=no
3992 for s in GNU BSD; do
3993 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3994 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3995 ac_status=$?
3996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3997 (exit $ac_status); }
3998 case $?:`cat confinc.out 2>/dev/null` in #(
3999 '0:this is the am__doit target') :
4000 case $s in #(
4001 BSD) :
4002 am__include='.include' am__quote='"' ;; #(
4003 *) :
4004 am__include='include' am__quote='' ;;
4005 esac ;; #(
4006 *) :
4007 ;;
4008 esac
4009 if test "$am__include" != "#"; then
4010 _am_result="yes ($s style)"
4011 break
4012 fi
4013 done
4014 rm -f confinc.* confmf.*
4015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4016 printf "%s\n" "${_am_result}" >&6; }
4017
4018 # Check whether --enable-dependency-tracking was given.
4019 if test ${enable_dependency_tracking+y}
4020 then :
4021 enableval=$enable_dependency_tracking;
4022 fi
4023
4024 if test "x$enable_dependency_tracking" != xno; then
4025 am_depcomp="$ac_aux_dir/depcomp"
4026 AMDEPBACKSLASH='\'
4027 am__nodep='_no'
4028 fi
4029 if test "x$enable_dependency_tracking" != xno; then
4030 AMDEP_TRUE=
4031 AMDEP_FALSE='#'
4032 else
4033 AMDEP_TRUE='#'
4034 AMDEP_FALSE=
4035 fi
4036
4037
4038 ac_ext=c
4039 ac_cpp='$CPP $CPPFLAGS'
4040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4043 if test -n "$ac_tool_prefix"; then
4044 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4045 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4047 printf %s "checking for $ac_word... " >&6; }
4048 if test ${ac_cv_prog_CC+y}
4049 then :
4050 printf %s "(cached) " >&6
4051 else case e in #(
4052 e) if test -n "$CC"; then
4053 ac_cv_prog_CC="$CC" # Let the user override the test.
4054 else
4055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4056 for as_dir in $PATH
4057 do
4058 IFS=$as_save_IFS
4059 case $as_dir in #(((
4060 '') as_dir=./ ;;
4061 */) ;;
4062 *) as_dir=$as_dir/ ;;
4063 esac
4064 for ac_exec_ext in '' $ac_executable_extensions; do
4065 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4066 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4067 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4068 break 2
4069 fi
4070 done
4071 done
4072 IFS=$as_save_IFS
4073
4074 fi ;;
4075 esac
4076 fi
4077 CC=$ac_cv_prog_CC
4078 if test -n "$CC"; then
4079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4080 printf "%s\n" "$CC" >&6; }
4081 else
4082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4083 printf "%s\n" "no" >&6; }
4084 fi
4085
4086
4087 fi
4088 if test -z "$ac_cv_prog_CC"; then
4089 ac_ct_CC=$CC
4090 # Extract the first word of "gcc", so it can be a program name with args.
4091 set dummy gcc; ac_word=$2
4092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4093 printf %s "checking for $ac_word... " >&6; }
4094 if test ${ac_cv_prog_ac_ct_CC+y}
4095 then :
4096 printf %s "(cached) " >&6
4097 else case e in #(
4098 e) if test -n "$ac_ct_CC"; then
4099 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4100 else
4101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4102 for as_dir in $PATH
4103 do
4104 IFS=$as_save_IFS
4105 case $as_dir in #(((
4106 '') as_dir=./ ;;
4107 */) ;;
4108 *) as_dir=$as_dir/ ;;
4109 esac
4110 for ac_exec_ext in '' $ac_executable_extensions; do
4111 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4112 ac_cv_prog_ac_ct_CC="gcc"
4113 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4114 break 2
4115 fi
4116 done
4117 done
4118 IFS=$as_save_IFS
4119
4120 fi ;;
4121 esac
4122 fi
4123 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4124 if test -n "$ac_ct_CC"; then
4125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4126 printf "%s\n" "$ac_ct_CC" >&6; }
4127 else
4128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4129 printf "%s\n" "no" >&6; }
4130 fi
4131
4132 if test "x$ac_ct_CC" = x; then
4133 CC=""
4134 else
4135 case $cross_compiling:$ac_tool_warned in
4136 yes:)
4137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4138 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4139 ac_tool_warned=yes ;;
4140 esac
4141 CC=$ac_ct_CC
4142 fi
4143 else
4144 CC="$ac_cv_prog_CC"
4145 fi
4146
4147 if test -z "$CC"; then
4148 if test -n "$ac_tool_prefix"; then
4149 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4150 set dummy ${ac_tool_prefix}cc; ac_word=$2
4151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4152 printf %s "checking for $ac_word... " >&6; }
4153 if test ${ac_cv_prog_CC+y}
4154 then :
4155 printf %s "(cached) " >&6
4156 else case e in #(
4157 e) if test -n "$CC"; then
4158 ac_cv_prog_CC="$CC" # Let the user override the test.
4159 else
4160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4161 for as_dir in $PATH
4162 do
4163 IFS=$as_save_IFS
4164 case $as_dir in #(((
4165 '') as_dir=./ ;;
4166 */) ;;
4167 *) as_dir=$as_dir/ ;;
4168 esac
4169 for ac_exec_ext in '' $ac_executable_extensions; do
4170 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4171 ac_cv_prog_CC="${ac_tool_prefix}cc"
4172 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4173 break 2
4174 fi
4175 done
4176 done
4177 IFS=$as_save_IFS
4178
4179 fi ;;
4180 esac
4181 fi
4182 CC=$ac_cv_prog_CC
4183 if test -n "$CC"; then
4184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4185 printf "%s\n" "$CC" >&6; }
4186 else
4187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4188 printf "%s\n" "no" >&6; }
4189 fi
4190
4191
4192 fi
4193 fi
4194 if test -z "$CC"; then
4195 # Extract the first word of "cc", so it can be a program name with args.
4196 set dummy cc; ac_word=$2
4197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4198 printf %s "checking for $ac_word... " >&6; }
4199 if test ${ac_cv_prog_CC+y}
4200 then :
4201 printf %s "(cached) " >&6
4202 else case e in #(
4203 e) if test -n "$CC"; then
4204 ac_cv_prog_CC="$CC" # Let the user override the test.
4205 else
4206 ac_prog_rejected=no
4207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4208 for as_dir in $PATH
4209 do
4210 IFS=$as_save_IFS
4211 case $as_dir in #(((
4212 '') as_dir=./ ;;
4213 */) ;;
4214 *) as_dir=$as_dir/ ;;
4215 esac
4216 for ac_exec_ext in '' $ac_executable_extensions; do
4217 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4218 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4219 ac_prog_rejected=yes
4220 continue
4221 fi
4222 ac_cv_prog_CC="cc"
4223 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4224 break 2
4225 fi
4226 done
4227 done
4228 IFS=$as_save_IFS
4229
4230 if test $ac_prog_rejected = yes; then
4231 # We found a bogon in the path, so make sure we never use it.
4232 set dummy $ac_cv_prog_CC
4233 shift
4234 if test $# != 0; then
4235 # We chose a different compiler from the bogus one.
4236 # However, it has the same basename, so the bogon will be chosen
4237 # first if we set CC to just the basename; use the full file name.
4238 shift
4239 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4240 fi
4241 fi
4242 fi ;;
4243 esac
4244 fi
4245 CC=$ac_cv_prog_CC
4246 if test -n "$CC"; then
4247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4248 printf "%s\n" "$CC" >&6; }
4249 else
4250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4251 printf "%s\n" "no" >&6; }
4252 fi
4253
4254
4255 fi
4256 if test -z "$CC"; then
4257 if test -n "$ac_tool_prefix"; then
4258 for ac_prog in cl.exe
4259 do
4260 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4261 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4263 printf %s "checking for $ac_word... " >&6; }
4264 if test ${ac_cv_prog_CC+y}
4265 then :
4266 printf %s "(cached) " >&6
4267 else case e in #(
4268 e) if test -n "$CC"; then
4269 ac_cv_prog_CC="$CC" # Let the user override the test.
4270 else
4271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4272 for as_dir in $PATH
4273 do
4274 IFS=$as_save_IFS
4275 case $as_dir in #(((
4276 '') as_dir=./ ;;
4277 */) ;;
4278 *) as_dir=$as_dir/ ;;
4279 esac
4280 for ac_exec_ext in '' $ac_executable_extensions; do
4281 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4282 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4283 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4284 break 2
4285 fi
4286 done
4287 done
4288 IFS=$as_save_IFS
4289
4290 fi ;;
4291 esac
4292 fi
4293 CC=$ac_cv_prog_CC
4294 if test -n "$CC"; then
4295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4296 printf "%s\n" "$CC" >&6; }
4297 else
4298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4299 printf "%s\n" "no" >&6; }
4300 fi
4301
4302
4303 test -n "$CC" && break
4304 done
4305 fi
4306 if test -z "$CC"; then
4307 ac_ct_CC=$CC
4308 for ac_prog in cl.exe
4309 do
4310 # Extract the first word of "$ac_prog", so it can be a program name with args.
4311 set dummy $ac_prog; ac_word=$2
4312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4313 printf %s "checking for $ac_word... " >&6; }
4314 if test ${ac_cv_prog_ac_ct_CC+y}
4315 then :
4316 printf %s "(cached) " >&6
4317 else case e in #(
4318 e) if test -n "$ac_ct_CC"; then
4319 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4320 else
4321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4322 for as_dir in $PATH
4323 do
4324 IFS=$as_save_IFS
4325 case $as_dir in #(((
4326 '') as_dir=./ ;;
4327 */) ;;
4328 *) as_dir=$as_dir/ ;;
4329 esac
4330 for ac_exec_ext in '' $ac_executable_extensions; do
4331 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4332 ac_cv_prog_ac_ct_CC="$ac_prog"
4333 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4334 break 2
4335 fi
4336 done
4337 done
4338 IFS=$as_save_IFS
4339
4340 fi ;;
4341 esac
4342 fi
4343 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4344 if test -n "$ac_ct_CC"; then
4345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4346 printf "%s\n" "$ac_ct_CC" >&6; }
4347 else
4348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4349 printf "%s\n" "no" >&6; }
4350 fi
4351
4352
4353 test -n "$ac_ct_CC" && break
4354 done
4355
4356 if test "x$ac_ct_CC" = x; then
4357 CC=""
4358 else
4359 case $cross_compiling:$ac_tool_warned in
4360 yes:)
4361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4362 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4363 ac_tool_warned=yes ;;
4364 esac
4365 CC=$ac_ct_CC
4366 fi
4367 fi
4368
4369 fi
4370 if test -z "$CC"; then
4371 if test -n "$ac_tool_prefix"; then
4372 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4373 set dummy ${ac_tool_prefix}clang; ac_word=$2
4374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4375 printf %s "checking for $ac_word... " >&6; }
4376 if test ${ac_cv_prog_CC+y}
4377 then :
4378 printf %s "(cached) " >&6
4379 else case e in #(
4380 e) if test -n "$CC"; then
4381 ac_cv_prog_CC="$CC" # Let the user override the test.
4382 else
4383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4384 for as_dir in $PATH
4385 do
4386 IFS=$as_save_IFS
4387 case $as_dir in #(((
4388 '') as_dir=./ ;;
4389 */) ;;
4390 *) as_dir=$as_dir/ ;;
4391 esac
4392 for ac_exec_ext in '' $ac_executable_extensions; do
4393 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4394 ac_cv_prog_CC="${ac_tool_prefix}clang"
4395 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4396 break 2
4397 fi
4398 done
4399 done
4400 IFS=$as_save_IFS
4401
4402 fi ;;
4403 esac
4404 fi
4405 CC=$ac_cv_prog_CC
4406 if test -n "$CC"; then
4407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4408 printf "%s\n" "$CC" >&6; }
4409 else
4410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4411 printf "%s\n" "no" >&6; }
4412 fi
4413
4414
4415 fi
4416 if test -z "$ac_cv_prog_CC"; then
4417 ac_ct_CC=$CC
4418 # Extract the first word of "clang", so it can be a program name with args.
4419 set dummy clang; ac_word=$2
4420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4421 printf %s "checking for $ac_word... " >&6; }
4422 if test ${ac_cv_prog_ac_ct_CC+y}
4423 then :
4424 printf %s "(cached) " >&6
4425 else case e in #(
4426 e) if test -n "$ac_ct_CC"; then
4427 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4428 else
4429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4430 for as_dir in $PATH
4431 do
4432 IFS=$as_save_IFS
4433 case $as_dir in #(((
4434 '') as_dir=./ ;;
4435 */) ;;
4436 *) as_dir=$as_dir/ ;;
4437 esac
4438 for ac_exec_ext in '' $ac_executable_extensions; do
4439 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4440 ac_cv_prog_ac_ct_CC="clang"
4441 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4442 break 2
4443 fi
4444 done
4445 done
4446 IFS=$as_save_IFS
4447
4448 fi ;;
4449 esac
4450 fi
4451 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4452 if test -n "$ac_ct_CC"; then
4453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4454 printf "%s\n" "$ac_ct_CC" >&6; }
4455 else
4456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4457 printf "%s\n" "no" >&6; }
4458 fi
4459
4460 if test "x$ac_ct_CC" = x; then
4461 CC=""
4462 else
4463 case $cross_compiling:$ac_tool_warned in
4464 yes:)
4465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4466 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4467 ac_tool_warned=yes ;;
4468 esac
4469 CC=$ac_ct_CC
4470 fi
4471 else
4472 CC="$ac_cv_prog_CC"
4473 fi
4474
4475 fi
4476
4477
4478 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4479 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4480 as_fn_error $? "no acceptable C compiler found in \$PATH
4481 See 'config.log' for more details" "$LINENO" 5; }
4482
4483 # Provide some information about the compiler.
4484 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4485 set X $ac_compile
4486 ac_compiler=$2
4487 for ac_option in --version -v -V -qversion -version; do
4488 { { ac_try="$ac_compiler $ac_option >&5"
4489 case "(($ac_try" in
4490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4491 *) ac_try_echo=$ac_try;;
4492 esac
4493 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4494 printf "%s\n" "$ac_try_echo"; } >&5
4495 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4496 ac_status=$?
4497 if test -s conftest.err; then
4498 sed '10a\
4499 ... rest of stderr output deleted ...
4500 10q' conftest.err >conftest.er1
4501 cat conftest.er1 >&5
4502 fi
4503 rm -f conftest.er1 conftest.err
4504 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4505 test $ac_status = 0; }
4506 done
4507
4508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4509 /* end confdefs.h. */
4510
4511 int
4512 main (void)
4513 {
4514
4515 ;
4516 return 0;
4517 }
4518 _ACEOF
4519 ac_clean_files_save=$ac_clean_files
4520 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4521 # Try to create an executable without -o first, disregard a.out.
4522 # It will help us diagnose broken compilers, and finding out an intuition
4523 # of exeext.
4524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4525 printf %s "checking whether the C compiler works... " >&6; }
4526 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4527
4528 # The possible output files:
4529 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4530
4531 ac_rmfiles=
4532 for ac_file in $ac_files
4533 do
4534 case $ac_file in
4535 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4536 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4537 esac
4538 done
4539 rm -f $ac_rmfiles
4540
4541 if { { ac_try="$ac_link_default"
4542 case "(($ac_try" in
4543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4544 *) ac_try_echo=$ac_try;;
4545 esac
4546 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4547 printf "%s\n" "$ac_try_echo"; } >&5
4548 (eval "$ac_link_default") 2>&5
4549 ac_status=$?
4550 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4551 test $ac_status = 0; }
4552 then :
4553 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
4554 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
4555 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4556 # so that the user can short-circuit this test for compilers unknown to
4557 # Autoconf.
4558 for ac_file in $ac_files ''
4559 do
4560 test -f "$ac_file" || continue
4561 case $ac_file in
4562 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4563 ;;
4564 [ab].out )
4565 # We found the default executable, but exeext='' is most
4566 # certainly right.
4567 break;;
4568 *.* )
4569 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4570 then :; else
4571 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4572 fi
4573 # We set ac_cv_exeext here because the later test for it is not
4574 # safe: cross compilers may not add the suffix if given an '-o'
4575 # argument, so we may need to know it at that point already.
4576 # Even if this section looks crufty: it has the advantage of
4577 # actually working.
4578 break;;
4579 * )
4580 break;;
4581 esac
4582 done
4583 test "$ac_cv_exeext" = no && ac_cv_exeext=
4584
4585 else case e in #(
4586 e) ac_file='' ;;
4587 esac
4588 fi
4589 if test -z "$ac_file"
4590 then :
4591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4592 printf "%s\n" "no" >&6; }
4593 printf "%s\n" "$as_me: failed program was:" >&5
4594 sed 's/^/| /' conftest.$ac_ext >&5
4595
4596 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4597 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4598 as_fn_error 77 "C compiler cannot create executables
4599 See 'config.log' for more details" "$LINENO" 5; }
4600 else case e in #(
4601 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4602 printf "%s\n" "yes" >&6; } ;;
4603 esac
4604 fi
4605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4606 printf %s "checking for C compiler default output file name... " >&6; }
4607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4608 printf "%s\n" "$ac_file" >&6; }
4609 ac_exeext=$ac_cv_exeext
4610
4611 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4612 ac_clean_files=$ac_clean_files_save
4613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4614 printf %s "checking for suffix of executables... " >&6; }
4615 if { { ac_try="$ac_link"
4616 case "(($ac_try" in
4617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4618 *) ac_try_echo=$ac_try;;
4619 esac
4620 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4621 printf "%s\n" "$ac_try_echo"; } >&5
4622 (eval "$ac_link") 2>&5
4623 ac_status=$?
4624 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4625 test $ac_status = 0; }
4626 then :
4627 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
4628 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
4629 # work properly (i.e., refer to 'conftest.exe'), while it won't with
4630 # 'rm'.
4631 for ac_file in conftest.exe conftest conftest.*; do
4632 test -f "$ac_file" || continue
4633 case $ac_file in
4634 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4635 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4636 break;;
4637 * ) break;;
4638 esac
4639 done
4640 else case e in #(
4641 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4642 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4643 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4644 See 'config.log' for more details" "$LINENO" 5; } ;;
4645 esac
4646 fi
4647 rm -f conftest conftest$ac_cv_exeext
4648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4649 printf "%s\n" "$ac_cv_exeext" >&6; }
4650
4651 rm -f conftest.$ac_ext
4652 EXEEXT=$ac_cv_exeext
4653 ac_exeext=$EXEEXT
4654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4655 /* end confdefs.h. */
4656 #include <stdio.h>
4657 int
4658 main (void)
4659 {
4660 FILE *f = fopen ("conftest.out", "w");
4661 if (!f)
4662 return 1;
4663 return ferror (f) || fclose (f) != 0;
4664
4665 ;
4666 return 0;
4667 }
4668 _ACEOF
4669 ac_clean_files="$ac_clean_files conftest.out"
4670 # Check that the compiler produces executables we can run. If not, either
4671 # the compiler is broken, or we cross compile.
4672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4673 printf %s "checking whether we are cross compiling... " >&6; }
4674 if test "$cross_compiling" != yes; then
4675 { { ac_try="$ac_link"
4676 case "(($ac_try" in
4677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4678 *) ac_try_echo=$ac_try;;
4679 esac
4680 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4681 printf "%s\n" "$ac_try_echo"; } >&5
4682 (eval "$ac_link") 2>&5
4683 ac_status=$?
4684 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4685 test $ac_status = 0; }
4686 if { ac_try='./conftest$ac_cv_exeext'
4687 { { case "(($ac_try" in
4688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4689 *) ac_try_echo=$ac_try;;
4690 esac
4691 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4692 printf "%s\n" "$ac_try_echo"; } >&5
4693 (eval "$ac_try") 2>&5
4694 ac_status=$?
4695 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4696 test $ac_status = 0; }; }; then
4697 cross_compiling=no
4698 else
4699 if test "$cross_compiling" = maybe; then
4700 cross_compiling=yes
4701 else
4702 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4703 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4704 as_fn_error 77 "cannot run C compiled programs.
4705 If you meant to cross compile, use '--host'.
4706 See 'config.log' for more details" "$LINENO" 5; }
4707 fi
4708 fi
4709 fi
4710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4711 printf "%s\n" "$cross_compiling" >&6; }
4712
4713 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4714 conftest.o conftest.obj conftest.out
4715 ac_clean_files=$ac_clean_files_save
4716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4717 printf %s "checking for suffix of object files... " >&6; }
4718 if test ${ac_cv_objext+y}
4719 then :
4720 printf %s "(cached) " >&6
4721 else case e in #(
4722 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4723 /* end confdefs.h. */
4724
4725 int
4726 main (void)
4727 {
4728
4729 ;
4730 return 0;
4731 }
4732 _ACEOF
4733 rm -f conftest.o conftest.obj
4734 if { { ac_try="$ac_compile"
4735 case "(($ac_try" in
4736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4737 *) ac_try_echo=$ac_try;;
4738 esac
4739 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4740 printf "%s\n" "$ac_try_echo"; } >&5
4741 (eval "$ac_compile") 2>&5
4742 ac_status=$?
4743 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4744 test $ac_status = 0; }
4745 then :
4746 for ac_file in conftest.o conftest.obj conftest.*; do
4747 test -f "$ac_file" || continue;
4748 case $ac_file in
4749 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4750 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4751 break;;
4752 esac
4753 done
4754 else case e in #(
4755 e) printf "%s\n" "$as_me: failed program was:" >&5
4756 sed 's/^/| /' conftest.$ac_ext >&5
4757
4758 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4759 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4760 as_fn_error $? "cannot compute suffix of object files: cannot compile
4761 See 'config.log' for more details" "$LINENO" 5; } ;;
4762 esac
4763 fi
4764 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4765 esac
4766 fi
4767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4768 printf "%s\n" "$ac_cv_objext" >&6; }
4769 OBJEXT=$ac_cv_objext
4770 ac_objext=$OBJEXT
4771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4772 printf %s "checking whether the compiler supports GNU C... " >&6; }
4773 if test ${ac_cv_c_compiler_gnu+y}
4774 then :
4775 printf %s "(cached) " >&6
4776 else case e in #(
4777 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4778 /* end confdefs.h. */
4779
4780 int
4781 main (void)
4782 {
4783 #ifndef __GNUC__
4784 choke me
4785 #endif
4786
4787 ;
4788 return 0;
4789 }
4790 _ACEOF
4791 if ac_fn_c_try_compile "$LINENO"
4792 then :
4793 ac_compiler_gnu=yes
4794 else case e in #(
4795 e) ac_compiler_gnu=no ;;
4796 esac
4797 fi
4798 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4799 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4800 ;;
4801 esac
4802 fi
4803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4804 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4806
4807 if test $ac_compiler_gnu = yes; then
4808 GCC=yes
4809 else
4810 GCC=
4811 fi
4812 ac_test_CFLAGS=${CFLAGS+y}
4813 ac_save_CFLAGS=$CFLAGS
4814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4815 printf %s "checking whether $CC accepts -g... " >&6; }
4816 if test ${ac_cv_prog_cc_g+y}
4817 then :
4818 printf %s "(cached) " >&6
4819 else case e in #(
4820 e) ac_save_c_werror_flag=$ac_c_werror_flag
4821 ac_c_werror_flag=yes
4822 ac_cv_prog_cc_g=no
4823 CFLAGS="-g"
4824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4825 /* end confdefs.h. */
4826
4827 int
4828 main (void)
4829 {
4830
4831 ;
4832 return 0;
4833 }
4834 _ACEOF
4835 if ac_fn_c_try_compile "$LINENO"
4836 then :
4837 ac_cv_prog_cc_g=yes
4838 else case e in #(
4839 e) CFLAGS=""
4840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4841 /* end confdefs.h. */
4842
4843 int
4844 main (void)
4845 {
4846
4847 ;
4848 return 0;
4849 }
4850 _ACEOF
4851 if ac_fn_c_try_compile "$LINENO"
4852 then :
4853
4854 else case e in #(
4855 e) ac_c_werror_flag=$ac_save_c_werror_flag
4856 CFLAGS="-g"
4857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4858 /* end confdefs.h. */
4859
4860 int
4861 main (void)
4862 {
4863
4864 ;
4865 return 0;
4866 }
4867 _ACEOF
4868 if ac_fn_c_try_compile "$LINENO"
4869 then :
4870 ac_cv_prog_cc_g=yes
4871 fi
4872 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4873 esac
4874 fi
4875 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4876 esac
4877 fi
4878 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4879 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4880 esac
4881 fi
4882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4883 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4884 if test $ac_test_CFLAGS; then
4885 CFLAGS=$ac_save_CFLAGS
4886 elif test $ac_cv_prog_cc_g = yes; then
4887 if test "$GCC" = yes; then
4888 CFLAGS="-g -O2"
4889 else
4890 CFLAGS="-g"
4891 fi
4892 else
4893 if test "$GCC" = yes; then
4894 CFLAGS="-O2"
4895 else
4896 CFLAGS=
4897 fi
4898 fi
4899 ac_prog_cc_stdc=no
4900 if test x$ac_prog_cc_stdc = xno
4901 then :
4902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4903 printf %s "checking for $CC option to enable C11 features... " >&6; }
4904 if test ${ac_cv_prog_cc_c11+y}
4905 then :
4906 printf %s "(cached) " >&6
4907 else case e in #(
4908 e) ac_cv_prog_cc_c11=no
4909 ac_save_CC=$CC
4910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4911 /* end confdefs.h. */
4912 $ac_c_conftest_c11_program
4913 _ACEOF
4914 for ac_arg in '' -std=gnu11
4915 do
4916 CC="$ac_save_CC $ac_arg"
4917 if ac_fn_c_try_compile "$LINENO"
4918 then :
4919 ac_cv_prog_cc_c11=$ac_arg
4920 fi
4921 rm -f core conftest.err conftest.$ac_objext conftest.beam
4922 test "x$ac_cv_prog_cc_c11" != "xno" && break
4923 done
4924 rm -f conftest.$ac_ext
4925 CC=$ac_save_CC ;;
4926 esac
4927 fi
4928
4929 if test "x$ac_cv_prog_cc_c11" = xno
4930 then :
4931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4932 printf "%s\n" "unsupported" >&6; }
4933 else case e in #(
4934 e) if test "x$ac_cv_prog_cc_c11" = x
4935 then :
4936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4937 printf "%s\n" "none needed" >&6; }
4938 else case e in #(
4939 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4940 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4941 CC="$CC $ac_cv_prog_cc_c11" ;;
4942 esac
4943 fi
4944 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4945 ac_prog_cc_stdc=c11 ;;
4946 esac
4947 fi
4948 fi
4949 if test x$ac_prog_cc_stdc = xno
4950 then :
4951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4952 printf %s "checking for $CC option to enable C99 features... " >&6; }
4953 if test ${ac_cv_prog_cc_c99+y}
4954 then :
4955 printf %s "(cached) " >&6
4956 else case e in #(
4957 e) ac_cv_prog_cc_c99=no
4958 ac_save_CC=$CC
4959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4960 /* end confdefs.h. */
4961 $ac_c_conftest_c99_program
4962 _ACEOF
4963 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4964 do
4965 CC="$ac_save_CC $ac_arg"
4966 if ac_fn_c_try_compile "$LINENO"
4967 then :
4968 ac_cv_prog_cc_c99=$ac_arg
4969 fi
4970 rm -f core conftest.err conftest.$ac_objext conftest.beam
4971 test "x$ac_cv_prog_cc_c99" != "xno" && break
4972 done
4973 rm -f conftest.$ac_ext
4974 CC=$ac_save_CC ;;
4975 esac
4976 fi
4977
4978 if test "x$ac_cv_prog_cc_c99" = xno
4979 then :
4980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4981 printf "%s\n" "unsupported" >&6; }
4982 else case e in #(
4983 e) if test "x$ac_cv_prog_cc_c99" = x
4984 then :
4985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4986 printf "%s\n" "none needed" >&6; }
4987 else case e in #(
4988 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4989 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4990 CC="$CC $ac_cv_prog_cc_c99" ;;
4991 esac
4992 fi
4993 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4994 ac_prog_cc_stdc=c99 ;;
4995 esac
4996 fi
4997 fi
4998 if test x$ac_prog_cc_stdc = xno
4999 then :
5000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5001 printf %s "checking for $CC option to enable C89 features... " >&6; }
5002 if test ${ac_cv_prog_cc_c89+y}
5003 then :
5004 printf %s "(cached) " >&6
5005 else case e in #(
5006 e) ac_cv_prog_cc_c89=no
5007 ac_save_CC=$CC
5008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5009 /* end confdefs.h. */
5010 $ac_c_conftest_c89_program
5011 _ACEOF
5012 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5013 do
5014 CC="$ac_save_CC $ac_arg"
5015 if ac_fn_c_try_compile "$LINENO"
5016 then :
5017 ac_cv_prog_cc_c89=$ac_arg
5018 fi
5019 rm -f core conftest.err conftest.$ac_objext conftest.beam
5020 test "x$ac_cv_prog_cc_c89" != "xno" && break
5021 done
5022 rm -f conftest.$ac_ext
5023 CC=$ac_save_CC ;;
5024 esac
5025 fi
5026
5027 if test "x$ac_cv_prog_cc_c89" = xno
5028 then :
5029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5030 printf "%s\n" "unsupported" >&6; }
5031 else case e in #(
5032 e) if test "x$ac_cv_prog_cc_c89" = x
5033 then :
5034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5035 printf "%s\n" "none needed" >&6; }
5036 else case e in #(
5037 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5038 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5039 CC="$CC $ac_cv_prog_cc_c89" ;;
5040 esac
5041 fi
5042 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5043 ac_prog_cc_stdc=c89 ;;
5044 esac
5045 fi
5046 fi
5047
5048 ac_ext=c
5049 ac_cpp='$CPP $CPPFLAGS'
5050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5053
5054
5055 ac_ext=c
5056 ac_cpp='$CPP $CPPFLAGS'
5057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5061 printf %s "checking whether $CC understands -c and -o together... " >&6; }
5062 if test ${am_cv_prog_cc_c_o+y}
5063 then :
5064 printf %s "(cached) " >&6
5065 else case e in #(
5066 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5067 /* end confdefs.h. */
5068
5069 int
5070 main (void)
5071 {
5072
5073 ;
5074 return 0;
5075 }
5076 _ACEOF
5077 # Make sure it works both with $CC and with simple cc.
5078 # Following AC_PROG_CC_C_O, we do the test twice because some
5079 # compilers refuse to overwrite an existing .o file with -o,
5080 # though they will create one.
5081 am_cv_prog_cc_c_o=yes
5082 for am_i in 1 2; do
5083 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5084 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5085 ac_status=$?
5086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5087 (exit $ac_status); } \
5088 && test -f conftest2.$ac_objext; then
5089 : OK
5090 else
5091 am_cv_prog_cc_c_o=no
5092 break
5093 fi
5094 done
5095 # aligned with autoconf, so not including core; see bug#72225.
5096 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \
5097 conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \
5098 conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM
5099 unset am_i ;;
5100 esac
5101 fi
5102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5103 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
5104 if test "$am_cv_prog_cc_c_o" != yes; then
5105 # Losing compiler, so override with the script.
5106 # FIXME: It is wrong to rewrite CC.
5107 # But if we don't then we get into trouble of one sort or another.
5108 # A longer-term fix would be to have automake use am__CC in this case,
5109 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5110 CC="$am_aux_dir/compile $CC"
5111 fi
5112 ac_ext=c
5113 ac_cpp='$CPP $CPPFLAGS'
5114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5117
5118
5119 depcc="$CC" am_compiler_list=
5120
5121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5122 printf %s "checking dependency style of $depcc... " >&6; }
5123 if test ${am_cv_CC_dependencies_compiler_type+y}
5124 then :
5125 printf %s "(cached) " >&6
5126 else case e in #(
5127 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5128 # We make a subdir and do the tests there. Otherwise we can end up
5129 # making bogus files that we don't know about and never remove. For
5130 # instance it was reported that on HP-UX the gcc test will end up
5131 # making a dummy file named 'D' -- because '-MD' means "put the output
5132 # in D".
5133 rm -rf conftest.dir
5134 mkdir conftest.dir
5135 # Copy depcomp to subdir because otherwise we won't find it if we're
5136 # using a relative directory.
5137 cp "$am_depcomp" conftest.dir
5138 cd conftest.dir
5139 # We will build objects and dependencies in a subdirectory because
5140 # it helps to detect inapplicable dependency modes. For instance
5141 # both Tru64's cc and ICC support -MD to output dependencies as a
5142 # side effect of compilation, but ICC will put the dependencies in
5143 # the current directory while Tru64 will put them in the object
5144 # directory.
5145 mkdir sub
5146
5147 am_cv_CC_dependencies_compiler_type=none
5148 if test "$am_compiler_list" = ""; then
5149 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5150 fi
5151 am__universal=false
5152 case " $depcc " in #(
5153 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5154 esac
5155
5156 for depmode in $am_compiler_list; do
5157 # Setup a source with many dependencies, because some compilers
5158 # like to wrap large dependency lists on column 80 (with \), and
5159 # we should not choose a depcomp mode which is confused by this.
5160 #
5161 # We need to recreate these files for each test, as the compiler may
5162 # overwrite some of them when testing with obscure command lines.
5163 # This happens at least with the AIX C compiler.
5164 : > sub/conftest.c
5165 for i in 1 2 3 4 5 6; do
5166 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5167 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5168 # Solaris 10 /bin/sh.
5169 echo '/* dummy */' > sub/conftst$i.h
5170 done
5171 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5172
5173 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5174 # mode. It turns out that the SunPro C++ compiler does not properly
5175 # handle '-M -o', and we need to detect this. Also, some Intel
5176 # versions had trouble with output in subdirs.
5177 am__obj=sub/conftest.${OBJEXT-o}
5178 am__minus_obj="-o $am__obj"
5179 case $depmode in
5180 gcc)
5181 # This depmode causes a compiler race in universal mode.
5182 test "$am__universal" = false || continue
5183 ;;
5184 nosideeffect)
5185 # After this tag, mechanisms are not by side-effect, so they'll
5186 # only be used when explicitly requested.
5187 if test "x$enable_dependency_tracking" = xyes; then
5188 continue
5189 else
5190 break
5191 fi
5192 ;;
5193 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5194 # This compiler won't grok '-c -o', but also, the minuso test has
5195 # not run yet. These depmodes are late enough in the game, and
5196 # so weak that their functioning should not be impacted.
5197 am__obj=conftest.${OBJEXT-o}
5198 am__minus_obj=
5199 ;;
5200 none) break ;;
5201 esac
5202 if depmode=$depmode \
5203 source=sub/conftest.c object=$am__obj \
5204 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5205 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5206 >/dev/null 2>conftest.err &&
5207 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5208 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5209 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5210 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5211 # icc doesn't choke on unknown options, it will just issue warnings
5212 # or remarks (even with -Werror). So we grep stderr for any message
5213 # that says an option was ignored or not supported.
5214 # When given -MP, icc 7.0 and 7.1 complain thus:
5215 # icc: Command line warning: ignoring option '-M'; no argument required
5216 # The diagnosis changed in icc 8.0:
5217 # icc: Command line remark: option '-MP' not supported
5218 if (grep 'ignoring option' conftest.err ||
5219 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5220 am_cv_CC_dependencies_compiler_type=$depmode
5221 break
5222 fi
5223 fi
5224 done
5225
5226 cd ..
5227 rm -rf conftest.dir
5228 else
5229 am_cv_CC_dependencies_compiler_type=none
5230 fi
5231 ;;
5232 esac
5233 fi
5234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5235 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5236 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5237
5238 if
5239 test "x$enable_dependency_tracking" != xno \
5240 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5241 am__fastdepCC_TRUE=
5242 am__fastdepCC_FALSE='#'
5243 else
5244 am__fastdepCC_TRUE='#'
5245 am__fastdepCC_FALSE=
5246 fi
5247
5248
5249
5250 ac_header= ac_cache=
5251 for ac_item in $ac_header_c_list
5252 do
5253 if test $ac_cache; then
5254 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
5255 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
5256 printf "%s\n" "#define $ac_item 1" >> confdefs.h
5257 fi
5258 ac_header= ac_cache=
5259 elif test $ac_header; then
5260 ac_cache=$ac_item
5261 else
5262 ac_header=$ac_item
5263 fi
5264 done
5265
5266
5267
5268
5269
5270
5271
5272
5273 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5274 then :
5275
5276 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5277
5278 fi
5279
5280
5281
5282
5283
5284
5285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5286 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5287 if test ${ac_cv_safe_to_define___extensions__+y}
5288 then :
5289 printf %s "(cached) " >&6
5290 else case e in #(
5291 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5292 /* end confdefs.h. */
5293
5294 # define __EXTENSIONS__ 1
5295 $ac_includes_default
5296 int
5297 main (void)
5298 {
5299
5300 ;
5301 return 0;
5302 }
5303 _ACEOF
5304 if ac_fn_c_try_compile "$LINENO"
5305 then :
5306 ac_cv_safe_to_define___extensions__=yes
5307 else case e in #(
5308 e) ac_cv_safe_to_define___extensions__=no ;;
5309 esac
5310 fi
5311 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5312 esac
5313 fi
5314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5315 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
5316
5317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
5318 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
5319 if test ${ac_cv_should_define__xopen_source+y}
5320 then :
5321 printf %s "(cached) " >&6
5322 else case e in #(
5323 e) ac_cv_should_define__xopen_source=no
5324 if test $ac_cv_header_wchar_h = yes
5325 then :
5326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5327 /* end confdefs.h. */
5328
5329 #include <wchar.h>
5330 mbstate_t x;
5331 int
5332 main (void)
5333 {
5334
5335 ;
5336 return 0;
5337 }
5338 _ACEOF
5339 if ac_fn_c_try_compile "$LINENO"
5340 then :
5341
5342 else case e in #(
5343 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5344 /* end confdefs.h. */
5345
5346 #define _XOPEN_SOURCE 500
5347 #include <wchar.h>
5348 mbstate_t x;
5349 int
5350 main (void)
5351 {
5352
5353 ;
5354 return 0;
5355 }
5356 _ACEOF
5357 if ac_fn_c_try_compile "$LINENO"
5358 then :
5359 ac_cv_should_define__xopen_source=yes
5360 fi
5361 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5362 esac
5363 fi
5364 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5365 fi ;;
5366 esac
5367 fi
5368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5369 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
5370
5371 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
5372
5373 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5374
5375 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
5376
5377 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
5378
5379 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
5380
5381 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
5382
5383 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5384
5385 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
5386
5387 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
5388
5389 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
5390
5391 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
5392
5393 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
5394
5395 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
5396
5397 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
5398
5399 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
5400
5401 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
5402
5403 if test $ac_cv_header_minix_config_h = yes
5404 then :
5405 MINIX=yes
5406 printf "%s\n" "#define _MINIX 1" >>confdefs.h
5407
5408 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
5409
5410 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
5411
5412 else case e in #(
5413 e) MINIX= ;;
5414 esac
5415 fi
5416 if test $ac_cv_safe_to_define___extensions__ = yes
5417 then :
5418 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
5419
5420 fi
5421 if test $ac_cv_should_define__xopen_source = yes
5422 then :
5423 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
5424
5425 fi
5426
5427 # Check whether --enable-compiler-warnings was given.
5428 if test ${enable_compiler_warnings+y}
5429 then :
5430 enableval=$enable_compiler_warnings;
5431 fi
5432 case $enable_compiler_warnings in #(
5433 no | min | yes | max | all) :
5434 ;; #(
5435 *) :
5436 if test "x$enable_maintainer_mode" = xyes
5437 then :
5438 enable_compiler_warnings=yes
5439 else case e in #(
5440 e) enable_compiler_warnings=min ;;
5441 esac
5442 fi ;;
5443 esac
5444
5445 case `pwd` in
5446 *\ * | *\ *)
5447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5448 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5449 esac
5450
5451
5452
5453 macro_version='2.5.4'
5454 macro_revision='2.5.4'
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469 ltmain=$ac_aux_dir/ltmain.sh
5470
5471
5472
5473 # Make sure we can run config.sub.
5474 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
5475 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
5476
5477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5478 printf %s "checking build system type... " >&6; }
5479 if test ${ac_cv_build+y}
5480 then :
5481 printf %s "(cached) " >&6
5482 else case e in #(
5483 e) ac_build_alias=$build_alias
5484 test "x$ac_build_alias" = x &&
5485 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
5486 test "x$ac_build_alias" = x &&
5487 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5488 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
5489 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
5490 ;;
5491 esac
5492 fi
5493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5494 printf "%s\n" "$ac_cv_build" >&6; }
5495 case $ac_cv_build in
5496 *-*-*) ;;
5497 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5498 esac
5499 build=$ac_cv_build
5500 ac_save_IFS=$IFS; IFS='-'
5501 set x $ac_cv_build
5502 shift
5503 build_cpu=$1
5504 build_vendor=$2
5505 shift; shift
5506 # Remember, the first character of IFS is used to create $*,
5507 # except with old shells:
5508 build_os=$*
5509 IFS=$ac_save_IFS
5510 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5511
5512
5513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5514 printf %s "checking host system type... " >&6; }
5515 if test ${ac_cv_host+y}
5516 then :
5517 printf %s "(cached) " >&6
5518 else case e in #(
5519 e) if test "x$host_alias" = x; then
5520 ac_cv_host=$ac_cv_build
5521 else
5522 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
5523 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
5524 fi
5525 ;;
5526 esac
5527 fi
5528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5529 printf "%s\n" "$ac_cv_host" >&6; }
5530 case $ac_cv_host in
5531 *-*-*) ;;
5532 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5533 esac
5534 host=$ac_cv_host
5535 ac_save_IFS=$IFS; IFS='-'
5536 set x $ac_cv_host
5537 shift
5538 host_cpu=$1
5539 host_vendor=$2
5540 shift; shift
5541 # Remember, the first character of IFS is used to create $*,
5542 # except with old shells:
5543 host_os=$*
5544 IFS=$ac_save_IFS
5545 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5546
5547
5548 # Backslashify metacharacters that are still active within
5549 # double-quoted strings.
5550 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5551
5552 # Same as above, but do not quote variable references.
5553 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5554
5555 # Sed substitution to delay expansion of an escaped shell variable in a
5556 # double_quote_subst'ed string.
5557 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5558
5559 # Sed substitution to delay expansion of an escaped single quote.
5560 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5561
5562 # Sed substitution to avoid accidental globbing in evaled expressions
5563 no_glob_subst='s/\*/\\\*/g'
5564
5565 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5566 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5567 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5568
5569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5570 printf %s "checking how to print strings... " >&6; }
5571 # Test print first, because it will be a builtin if present.
5572 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5573 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5574 ECHO='print -r --'
5575 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5576 ECHO='printf %s\n'
5577 else
5578 # Use this function as a fallback that always works.
5579 func_fallback_echo ()
5580 {
5581 eval 'cat <<_LTECHO_EOF
5582 $1
5583 _LTECHO_EOF'
5584 }
5585 ECHO='func_fallback_echo'
5586 fi
5587
5588 # func_echo_all arg...
5589 # Invoke $ECHO with all args, space-separated.
5590 func_echo_all ()
5591 {
5592 $ECHO ""
5593 }
5594
5595 case $ECHO in
5596 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5597 printf "%s\n" "printf" >&6; } ;;
5598 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5599 printf "%s\n" "print -r" >&6; } ;;
5600 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5601 printf "%s\n" "cat" >&6; } ;;
5602 esac
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5618 printf %s "checking for a sed that does not truncate output... " >&6; }
5619 if test ${ac_cv_path_SED+y}
5620 then :
5621 printf %s "(cached) " >&6
5622 else case e in #(
5623 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5624 for ac_i in 1 2 3 4 5 6 7; do
5625 ac_script="$ac_script$as_nl$ac_script"
5626 done
5627 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5628 { ac_script=; unset ac_script;}
5629 if test -z "$SED"; then
5630 ac_path_SED_found=false
5631 # Loop through the user's path and test for each of PROGNAME-LIST
5632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5633 for as_dir in $PATH
5634 do
5635 IFS=$as_save_IFS
5636 case $as_dir in #(((
5637 '') as_dir=./ ;;
5638 */) ;;
5639 *) as_dir=$as_dir/ ;;
5640 esac
5641 for ac_prog in sed gsed
5642 do
5643 for ac_exec_ext in '' $ac_executable_extensions; do
5644 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5645 as_fn_executable_p "$ac_path_SED" || continue
5646 # Check for GNU ac_path_SED and select it if it is found.
5647 # Check for GNU $ac_path_SED
5648 case `"$ac_path_SED" --version 2>&1` in #(
5649 *GNU*)
5650 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5651 #(
5652 *)
5653 ac_count=0
5654 printf %s 0123456789 >"conftest.in"
5655 while :
5656 do
5657 cat "conftest.in" "conftest.in" >"conftest.tmp"
5658 mv "conftest.tmp" "conftest.in"
5659 cp "conftest.in" "conftest.nl"
5660 printf "%s\n" '' >> "conftest.nl"
5661 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5662 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5663 as_fn_arith $ac_count + 1 && ac_count=$as_val
5664 if test $ac_count -gt ${ac_path_SED_max-0}; then
5665 # Best one so far, save it but keep looking for a better one
5666 ac_cv_path_SED="$ac_path_SED"
5667 ac_path_SED_max=$ac_count
5668 fi
5669 # 10*(2^10) chars as input seems more than enough
5670 test $ac_count -gt 10 && break
5671 done
5672 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5673 esac
5674
5675 $ac_path_SED_found && break 3
5676 done
5677 done
5678 done
5679 IFS=$as_save_IFS
5680 if test -z "$ac_cv_path_SED"; then
5681 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5682 fi
5683 else
5684 ac_cv_path_SED=$SED
5685 fi
5686 ;;
5687 esac
5688 fi
5689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5690 printf "%s\n" "$ac_cv_path_SED" >&6; }
5691 SED="$ac_cv_path_SED"
5692 rm -f conftest.sed
5693
5694 test -z "$SED" && SED=sed
5695 Xsed="$SED -e 1s/^X//"
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5708 printf %s "checking for grep that handles long lines and -e... " >&6; }
5709 if test ${ac_cv_path_GREP+y}
5710 then :
5711 printf %s "(cached) " >&6
5712 else case e in #(
5713 e) if test -z "$GREP"; then
5714 ac_path_GREP_found=false
5715 # Loop through the user's path and test for each of PROGNAME-LIST
5716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5717 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5718 do
5719 IFS=$as_save_IFS
5720 case $as_dir in #(((
5721 '') as_dir=./ ;;
5722 */) ;;
5723 *) as_dir=$as_dir/ ;;
5724 esac
5725 for ac_prog in grep ggrep
5726 do
5727 for ac_exec_ext in '' $ac_executable_extensions; do
5728 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5729 as_fn_executable_p "$ac_path_GREP" || continue
5730 # Check for GNU ac_path_GREP and select it if it is found.
5731 # Check for GNU $ac_path_GREP
5732 case `"$ac_path_GREP" --version 2>&1` in #(
5733 *GNU*)
5734 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5735 #(
5736 *)
5737 ac_count=0
5738 printf %s 0123456789 >"conftest.in"
5739 while :
5740 do
5741 cat "conftest.in" "conftest.in" >"conftest.tmp"
5742 mv "conftest.tmp" "conftest.in"
5743 cp "conftest.in" "conftest.nl"
5744 printf "%s\n" 'GREP' >> "conftest.nl"
5745 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5746 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5747 as_fn_arith $ac_count + 1 && ac_count=$as_val
5748 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5749 # Best one so far, save it but keep looking for a better one
5750 ac_cv_path_GREP="$ac_path_GREP"
5751 ac_path_GREP_max=$ac_count
5752 fi
5753 # 10*(2^10) chars as input seems more than enough
5754 test $ac_count -gt 10 && break
5755 done
5756 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5757 esac
5758
5759 $ac_path_GREP_found && break 3
5760 done
5761 done
5762 done
5763 IFS=$as_save_IFS
5764 if test -z "$ac_cv_path_GREP"; then
5765 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5766 fi
5767 else
5768 ac_cv_path_GREP=$GREP
5769 fi
5770 ;;
5771 esac
5772 fi
5773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5774 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5775 GREP="$ac_cv_path_GREP"
5776
5777
5778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5779 printf %s "checking for egrep... " >&6; }
5780 if test ${ac_cv_path_EGREP+y}
5781 then :
5782 printf %s "(cached) " >&6
5783 else case e in #(
5784 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5785 then ac_cv_path_EGREP="$GREP -E"
5786 else
5787 if test -z "$EGREP"; then
5788 ac_path_EGREP_found=false
5789 # Loop through the user's path and test for each of PROGNAME-LIST
5790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5791 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5792 do
5793 IFS=$as_save_IFS
5794 case $as_dir in #(((
5795 '') as_dir=./ ;;
5796 */) ;;
5797 *) as_dir=$as_dir/ ;;
5798 esac
5799 for ac_prog in egrep
5800 do
5801 for ac_exec_ext in '' $ac_executable_extensions; do
5802 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5803 as_fn_executable_p "$ac_path_EGREP" || continue
5804 # Check for GNU ac_path_EGREP and select it if it is found.
5805 # Check for GNU $ac_path_EGREP
5806 case `"$ac_path_EGREP" --version 2>&1` in #(
5807 *GNU*)
5808 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5809 #(
5810 *)
5811 ac_count=0
5812 printf %s 0123456789 >"conftest.in"
5813 while :
5814 do
5815 cat "conftest.in" "conftest.in" >"conftest.tmp"
5816 mv "conftest.tmp" "conftest.in"
5817 cp "conftest.in" "conftest.nl"
5818 printf "%s\n" 'EGREP' >> "conftest.nl"
5819 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5820 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5821 as_fn_arith $ac_count + 1 && ac_count=$as_val
5822 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5823 # Best one so far, save it but keep looking for a better one
5824 ac_cv_path_EGREP="$ac_path_EGREP"
5825 ac_path_EGREP_max=$ac_count
5826 fi
5827 # 10*(2^10) chars as input seems more than enough
5828 test $ac_count -gt 10 && break
5829 done
5830 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5831 esac
5832
5833 $ac_path_EGREP_found && break 3
5834 done
5835 done
5836 done
5837 IFS=$as_save_IFS
5838 if test -z "$ac_cv_path_EGREP"; then
5839 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5840 fi
5841 else
5842 ac_cv_path_EGREP=$EGREP
5843 fi
5844
5845 fi ;;
5846 esac
5847 fi
5848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5849 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5850 EGREP="$ac_cv_path_EGREP"
5851
5852 EGREP_TRADITIONAL=$EGREP
5853 ac_cv_path_EGREP_TRADITIONAL=$EGREP
5854
5855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5856 printf %s "checking for fgrep... " >&6; }
5857 if test ${ac_cv_path_FGREP+y}
5858 then :
5859 printf %s "(cached) " >&6
5860 else case e in #(
5861 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5862 then ac_cv_path_FGREP="$GREP -F"
5863 else
5864 if test -z "$FGREP"; then
5865 ac_path_FGREP_found=false
5866 # Loop through the user's path and test for each of PROGNAME-LIST
5867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5868 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5869 do
5870 IFS=$as_save_IFS
5871 case $as_dir in #(((
5872 '') as_dir=./ ;;
5873 */) ;;
5874 *) as_dir=$as_dir/ ;;
5875 esac
5876 for ac_prog in fgrep
5877 do
5878 for ac_exec_ext in '' $ac_executable_extensions; do
5879 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5880 as_fn_executable_p "$ac_path_FGREP" || continue
5881 # Check for GNU ac_path_FGREP and select it if it is found.
5882 # Check for GNU $ac_path_FGREP
5883 case `"$ac_path_FGREP" --version 2>&1` in #(
5884 *GNU*)
5885 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5886 #(
5887 *)
5888 ac_count=0
5889 printf %s 0123456789 >"conftest.in"
5890 while :
5891 do
5892 cat "conftest.in" "conftest.in" >"conftest.tmp"
5893 mv "conftest.tmp" "conftest.in"
5894 cp "conftest.in" "conftest.nl"
5895 printf "%s\n" 'FGREP' >> "conftest.nl"
5896 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5897 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5898 as_fn_arith $ac_count + 1 && ac_count=$as_val
5899 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5900 # Best one so far, save it but keep looking for a better one
5901 ac_cv_path_FGREP="$ac_path_FGREP"
5902 ac_path_FGREP_max=$ac_count
5903 fi
5904 # 10*(2^10) chars as input seems more than enough
5905 test $ac_count -gt 10 && break
5906 done
5907 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5908 esac
5909
5910 $ac_path_FGREP_found && break 3
5911 done
5912 done
5913 done
5914 IFS=$as_save_IFS
5915 if test -z "$ac_cv_path_FGREP"; then
5916 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5917 fi
5918 else
5919 ac_cv_path_FGREP=$FGREP
5920 fi
5921
5922 fi ;;
5923 esac
5924 fi
5925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5926 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5927 FGREP="$ac_cv_path_FGREP"
5928
5929
5930 test -z "$GREP" && GREP=grep
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950 # Check whether --with-gnu-ld was given.
5951 if test ${with_gnu_ld+y}
5952 then :
5953 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5954 else case e in #(
5955 e) with_gnu_ld=no ;;
5956 esac
5957 fi
5958
5959 ac_prog=ld
5960 if test yes = "$GCC"; then
5961 # Check if gcc -print-prog-name=ld gives a path.
5962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5963 printf %s "checking for ld used by $CC... " >&6; }
5964 case $host in
5965 *-*-mingw* | *-*-windows*)
5966 # gcc leaves a trailing carriage return, which upsets mingw
5967 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5968 *)
5969 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5970 esac
5971 case $ac_prog in
5972 # Accept absolute paths.
5973 [\\/]* | ?:[\\/]*)
5974 re_direlt='/[^/][^/]*/\.\./'
5975 # Canonicalize the pathname of ld
5976 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5977 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5978 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5979 done
5980 test -z "$LD" && LD=$ac_prog
5981 ;;
5982 "")
5983 # If it fails, then pretend we aren't using GCC.
5984 ac_prog=ld
5985 ;;
5986 *)
5987 # If it is relative, then search for the first ld in PATH.
5988 with_gnu_ld=unknown
5989 ;;
5990 esac
5991 elif test yes = "$with_gnu_ld"; then
5992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5993 printf %s "checking for GNU ld... " >&6; }
5994 else
5995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5996 printf %s "checking for non-GNU ld... " >&6; }
5997 fi
5998 if test ${lt_cv_path_LD+y}
5999 then :
6000 printf %s "(cached) " >&6
6001 else case e in #(
6002 e) if test -z "$LD"; then
6003 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6004 for ac_dir in $PATH; do
6005 IFS=$lt_save_ifs
6006 test -z "$ac_dir" && ac_dir=.
6007 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6008 lt_cv_path_LD=$ac_dir/$ac_prog
6009 # Check to see if the program is GNU ld. I'd rather use --version,
6010 # but apparently some variants of GNU ld only accept -v.
6011 # Break only if it was the GNU/non-GNU ld that we prefer.
6012 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6013 *GNU* | *'with BFD'*)
6014 test no != "$with_gnu_ld" && break
6015 ;;
6016 *)
6017 test yes != "$with_gnu_ld" && break
6018 ;;
6019 esac
6020 fi
6021 done
6022 IFS=$lt_save_ifs
6023 else
6024 lt_cv_path_LD=$LD # Let the user override the test with a path.
6025 fi ;;
6026 esac
6027 fi
6028
6029 LD=$lt_cv_path_LD
6030 if test -n "$LD"; then
6031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6032 printf "%s\n" "$LD" >&6; }
6033 else
6034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6035 printf "%s\n" "no" >&6; }
6036 fi
6037 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6039 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
6040 if test ${lt_cv_prog_gnu_ld+y}
6041 then :
6042 printf %s "(cached) " >&6
6043 else case e in #(
6044 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
6045 case `$LD -v 2>&1 </dev/null` in
6046 *GNU* | *'with BFD'*)
6047 lt_cv_prog_gnu_ld=yes
6048 ;;
6049 *)
6050 lt_cv_prog_gnu_ld=no
6051 ;;
6052 esac ;;
6053 esac
6054 fi
6055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6056 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
6057 with_gnu_ld=$lt_cv_prog_gnu_ld
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6068 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6069 if test ${lt_cv_path_NM+y}
6070 then :
6071 printf %s "(cached) " >&6
6072 else case e in #(
6073 e) if test -n "$NM"; then
6074 # Let the user override the test.
6075 lt_cv_path_NM=$NM
6076 else
6077 lt_nm_to_check=${ac_tool_prefix}nm
6078 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6079 lt_nm_to_check="$lt_nm_to_check nm"
6080 fi
6081 for lt_tmp_nm in $lt_nm_to_check; do
6082 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6083 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6084 IFS=$lt_save_ifs
6085 test -z "$ac_dir" && ac_dir=.
6086 tmp_nm=$ac_dir/$lt_tmp_nm
6087 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6088 # Check to see if the nm accepts a BSD-compat flag.
6089 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6090 # nm: unknown option "B" ignored
6091 # Tru64's nm complains that /dev/null is an invalid object file
6092 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6093 case $build_os in
6094 mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
6095 *) lt_bad_file=/dev/null ;;
6096 esac
6097 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
6098 *$lt_bad_file* | *'Invalid file or object type'*)
6099 lt_cv_path_NM="$tmp_nm -B"
6100 break 2
6101 ;;
6102 *)
6103 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
6104 */dev/null*)
6105 lt_cv_path_NM="$tmp_nm -p"
6106 break 2
6107 ;;
6108 *)
6109 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6110 continue # so that we can try to find one that supports BSD flags
6111 ;;
6112 esac
6113 ;;
6114 esac
6115 fi
6116 done
6117 IFS=$lt_save_ifs
6118 done
6119 : ${lt_cv_path_NM=no}
6120 fi ;;
6121 esac
6122 fi
6123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6124 printf "%s\n" "$lt_cv_path_NM" >&6; }
6125 if test no != "$lt_cv_path_NM"; then
6126 NM=$lt_cv_path_NM
6127 else
6128 # Didn't find any BSD compatible name lister, look for dumpbin.
6129 if test -n "$DUMPBIN"; then :
6130 # Let the user override the test.
6131 else
6132 if test -n "$ac_tool_prefix"; then
6133 for ac_prog in dumpbin "link -dump"
6134 do
6135 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6136 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6138 printf %s "checking for $ac_word... " >&6; }
6139 if test ${ac_cv_prog_DUMPBIN+y}
6140 then :
6141 printf %s "(cached) " >&6
6142 else case e in #(
6143 e) if test -n "$DUMPBIN"; then
6144 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6145 else
6146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6147 for as_dir in $PATH
6148 do
6149 IFS=$as_save_IFS
6150 case $as_dir in #(((
6151 '') as_dir=./ ;;
6152 */) ;;
6153 *) as_dir=$as_dir/ ;;
6154 esac
6155 for ac_exec_ext in '' $ac_executable_extensions; do
6156 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6157 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6158 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6159 break 2
6160 fi
6161 done
6162 done
6163 IFS=$as_save_IFS
6164
6165 fi ;;
6166 esac
6167 fi
6168 DUMPBIN=$ac_cv_prog_DUMPBIN
6169 if test -n "$DUMPBIN"; then
6170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6171 printf "%s\n" "$DUMPBIN" >&6; }
6172 else
6173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6174 printf "%s\n" "no" >&6; }
6175 fi
6176
6177
6178 test -n "$DUMPBIN" && break
6179 done
6180 fi
6181 if test -z "$DUMPBIN"; then
6182 ac_ct_DUMPBIN=$DUMPBIN
6183 for ac_prog in dumpbin "link -dump"
6184 do
6185 # Extract the first word of "$ac_prog", so it can be a program name with args.
6186 set dummy $ac_prog; ac_word=$2
6187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6188 printf %s "checking for $ac_word... " >&6; }
6189 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
6190 then :
6191 printf %s "(cached) " >&6
6192 else case e in #(
6193 e) if test -n "$ac_ct_DUMPBIN"; then
6194 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6195 else
6196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6197 for as_dir in $PATH
6198 do
6199 IFS=$as_save_IFS
6200 case $as_dir in #(((
6201 '') as_dir=./ ;;
6202 */) ;;
6203 *) as_dir=$as_dir/ ;;
6204 esac
6205 for ac_exec_ext in '' $ac_executable_extensions; do
6206 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6207 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6208 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6209 break 2
6210 fi
6211 done
6212 done
6213 IFS=$as_save_IFS
6214
6215 fi ;;
6216 esac
6217 fi
6218 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6219 if test -n "$ac_ct_DUMPBIN"; then
6220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6221 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
6222 else
6223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6224 printf "%s\n" "no" >&6; }
6225 fi
6226
6227
6228 test -n "$ac_ct_DUMPBIN" && break
6229 done
6230
6231 if test "x$ac_ct_DUMPBIN" = x; then
6232 DUMPBIN=":"
6233 else
6234 case $cross_compiling:$ac_tool_warned in
6235 yes:)
6236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6237 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6238 ac_tool_warned=yes ;;
6239 esac
6240 DUMPBIN=$ac_ct_DUMPBIN
6241 fi
6242 fi
6243
6244 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
6245 *COFF*)
6246 DUMPBIN="$DUMPBIN -symbols -headers"
6247 ;;
6248 *)
6249 DUMPBIN=:
6250 ;;
6251 esac
6252 fi
6253
6254 if test : != "$DUMPBIN"; then
6255 NM=$DUMPBIN
6256 fi
6257 fi
6258 test -z "$NM" && NM=nm
6259
6260
6261
6262
6263
6264
6265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6266 printf %s "checking the name lister ($NM) interface... " >&6; }
6267 if test ${lt_cv_nm_interface+y}
6268 then :
6269 printf %s "(cached) " >&6
6270 else case e in #(
6271 e) lt_cv_nm_interface="BSD nm"
6272 echo "int some_variable = 0;" > conftest.$ac_ext
6273 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6274 (eval "$ac_compile" 2>conftest.err)
6275 cat conftest.err >&5
6276 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6277 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6278 cat conftest.err >&5
6279 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6280 cat conftest.out >&5
6281 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6282 lt_cv_nm_interface="MS dumpbin"
6283 fi
6284 rm -f conftest* ;;
6285 esac
6286 fi
6287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6288 printf "%s\n" "$lt_cv_nm_interface" >&6; }
6289
6290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6291 printf %s "checking whether ln -s works... " >&6; }
6292 LN_S=$as_ln_s
6293 if test "$LN_S" = "ln -s"; then
6294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6295 printf "%s\n" "yes" >&6; }
6296 else
6297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6298 printf "%s\n" "no, using $LN_S" >&6; }
6299 fi
6300
6301 # find the maximum length of command line arguments
6302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6303 printf %s "checking the maximum length of command line arguments... " >&6; }
6304 if test ${lt_cv_sys_max_cmd_len+y}
6305 then :
6306 printf %s "(cached) " >&6
6307 else case e in #(
6308 e) i=0
6309 teststring=ABCD
6310
6311 case $build_os in
6312 msdosdjgpp*)
6313 # On DJGPP, this test can blow up pretty badly due to problems in libc
6314 # (any single argument exceeding 2000 bytes causes a buffer overrun
6315 # during glob expansion). Even if it were fixed, the result of this
6316 # check would be larger than it should be.
6317 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6318 ;;
6319
6320 gnu* | ironclad*)
6321 # Under GNU Hurd and Ironclad, this test is not required because there
6322 # is no limit to the length of command line arguments.
6323 # Libtool will interpret -1 as no limit whatsoever
6324 lt_cv_sys_max_cmd_len=-1;
6325 ;;
6326
6327 cygwin* | mingw* | windows* | cegcc*)
6328 # On Win9x/ME, this test blows up -- it succeeds, but takes
6329 # about 5 minutes as the teststring grows exponentially.
6330 # Worse, since 9x/ME are not pre-emptively multitasking,
6331 # you end up with a "frozen" computer, even though with patience
6332 # the test eventually succeeds (with a max line length of 256k).
6333 # Instead, let's just punt: use the minimum linelength reported by
6334 # all of the supported platforms: 8192 (on NT/2K/XP).
6335 lt_cv_sys_max_cmd_len=8192;
6336 ;;
6337
6338 mint*)
6339 # On MiNT this can take a long time and run out of memory.
6340 lt_cv_sys_max_cmd_len=8192;
6341 ;;
6342
6343 amigaos*)
6344 # On AmigaOS with pdksh, this test takes hours, literally.
6345 # So we just punt and use a minimum line length of 8192.
6346 lt_cv_sys_max_cmd_len=8192;
6347 ;;
6348
6349 darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
6350 # This has been around since 386BSD, at least. Likely further.
6351 if test -x /sbin/sysctl; then
6352 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6353 elif test -x /usr/sbin/sysctl; then
6354 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6355 else
6356 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6357 fi
6358 # And add a safety zone
6359 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6360 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6361 ;;
6362
6363 interix*)
6364 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6365 lt_cv_sys_max_cmd_len=196608
6366 ;;
6367
6368 os2*)
6369 # The test takes a long time on OS/2.
6370 lt_cv_sys_max_cmd_len=8192
6371 ;;
6372
6373 osf*)
6374 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6375 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6376 # nice to cause kernel panics so lets avoid the loop below.
6377 # First set a reasonable default.
6378 lt_cv_sys_max_cmd_len=16384
6379 #
6380 if test -x /sbin/sysconfig; then
6381 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6382 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6383 esac
6384 fi
6385 ;;
6386 sco3.2v5*)
6387 lt_cv_sys_max_cmd_len=102400
6388 ;;
6389 sysv5* | sco5v6* | sysv4.2uw2*)
6390 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6391 if test -n "$kargmax"; then
6392 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
6393 else
6394 lt_cv_sys_max_cmd_len=32768
6395 fi
6396 ;;
6397 *)
6398 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6399 if test -n "$lt_cv_sys_max_cmd_len" && \
6400 test undefined != "$lt_cv_sys_max_cmd_len"; then
6401 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6402 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6403 else
6404 # Make teststring a little bigger before we do anything with it.
6405 # a 1K string should be a reasonable start.
6406 for i in 1 2 3 4 5 6 7 8; do
6407 teststring=$teststring$teststring
6408 done
6409 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6410 # If test is not a shell built-in, we'll probably end up computing a
6411 # maximum length that is only half of the actual maximum length, but
6412 # we can't tell.
6413 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6414 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6415 test 17 != "$i" # 1/2 MB should be enough
6416 do
6417 i=`expr $i + 1`
6418 teststring=$teststring$teststring
6419 done
6420 # Only check the string length outside the loop.
6421 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6422 teststring=
6423 # Add a significant safety factor because C++ compilers can tack on
6424 # massive amounts of additional arguments before passing them to the
6425 # linker. It appears as though 1/2 is a usable value.
6426 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6427 fi
6428 ;;
6429 esac
6430 ;;
6431 esac
6432 fi
6433
6434 if test -n "$lt_cv_sys_max_cmd_len"; then
6435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6436 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6437 else
6438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6439 printf "%s\n" "none" >&6; }
6440 fi
6441 max_cmd_len=$lt_cv_sys_max_cmd_len
6442
6443
6444
6445
6446
6447
6448 : ${CP="cp -f"}
6449 : ${MV="mv -f"}
6450 : ${RM="rm -f"}
6451
6452 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6453 lt_unset=unset
6454 else
6455 lt_unset=false
6456 fi
6457
6458
6459
6460
6461
6462 # test EBCDIC or ASCII
6463 case `echo X|tr X '\101'` in
6464 A) # ASCII based system
6465 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6466 lt_SP2NL='tr \040 \012'
6467 lt_NL2SP='tr \015\012 \040\040'
6468 ;;
6469 *) # EBCDIC based system
6470 lt_SP2NL='tr \100 \n'
6471 lt_NL2SP='tr \r\n \100\100'
6472 ;;
6473 esac
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6484 printf %s "checking how to convert $build file names to $host format... " >&6; }
6485 if test ${lt_cv_to_host_file_cmd+y}
6486 then :
6487 printf %s "(cached) " >&6
6488 else case e in #(
6489 e) case $host in
6490 *-*-mingw* )
6491 case $build in
6492 *-*-mingw* | *-*-windows* ) # actually msys
6493 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6494 ;;
6495 *-*-cygwin* )
6496 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6497 ;;
6498 * ) # otherwise, assume *nix
6499 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6500 ;;
6501 esac
6502 ;;
6503 *-*-cygwin* )
6504 case $build in
6505 *-*-mingw* | *-*-windows* ) # actually msys
6506 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6507 ;;
6508 *-*-cygwin* )
6509 lt_cv_to_host_file_cmd=func_convert_file_noop
6510 ;;
6511 * ) # otherwise, assume *nix
6512 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6513 ;;
6514 esac
6515 ;;
6516 * ) # unhandled hosts (and "normal" native builds)
6517 lt_cv_to_host_file_cmd=func_convert_file_noop
6518 ;;
6519 esac
6520 ;;
6521 esac
6522 fi
6523
6524 to_host_file_cmd=$lt_cv_to_host_file_cmd
6525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6526 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6527
6528
6529
6530
6531
6532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6533 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6534 if test ${lt_cv_to_tool_file_cmd+y}
6535 then :
6536 printf %s "(cached) " >&6
6537 else case e in #(
6538 e) #assume ordinary cross tools, or native build.
6539 lt_cv_to_tool_file_cmd=func_convert_file_noop
6540 case $host in
6541 *-*-mingw* | *-*-windows* )
6542 case $build in
6543 *-*-mingw* | *-*-windows* ) # actually msys
6544 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6545 ;;
6546 esac
6547 ;;
6548 esac
6549 ;;
6550 esac
6551 fi
6552
6553 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6555 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6556
6557
6558
6559
6560
6561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6562 printf %s "checking for $LD option to reload object files... " >&6; }
6563 if test ${lt_cv_ld_reload_flag+y}
6564 then :
6565 printf %s "(cached) " >&6
6566 else case e in #(
6567 e) lt_cv_ld_reload_flag='-r' ;;
6568 esac
6569 fi
6570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6571 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6572 reload_flag=$lt_cv_ld_reload_flag
6573 case $reload_flag in
6574 "" | " "*) ;;
6575 *) reload_flag=" $reload_flag" ;;
6576 esac
6577 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6578 case $host_os in
6579 cygwin* | mingw* | windows* | pw32* | cegcc*)
6580 if test yes != "$GCC"; then
6581 reload_cmds=false
6582 fi
6583 ;;
6584 darwin*)
6585 if test yes = "$GCC"; then
6586 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6587 else
6588 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6589 fi
6590 ;;
6591 esac
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601 # Extract the first word of "file", so it can be a program name with args.
6602 set dummy file; ac_word=$2
6603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6604 printf %s "checking for $ac_word... " >&6; }
6605 if test ${ac_cv_prog_FILECMD+y}
6606 then :
6607 printf %s "(cached) " >&6
6608 else case e in #(
6609 e) if test -n "$FILECMD"; then
6610 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
6611 else
6612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6613 for as_dir in $PATH
6614 do
6615 IFS=$as_save_IFS
6616 case $as_dir in #(((
6617 '') as_dir=./ ;;
6618 */) ;;
6619 *) as_dir=$as_dir/ ;;
6620 esac
6621 for ac_exec_ext in '' $ac_executable_extensions; do
6622 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6623 ac_cv_prog_FILECMD="file"
6624 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6625 break 2
6626 fi
6627 done
6628 done
6629 IFS=$as_save_IFS
6630
6631 test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":"
6632 fi ;;
6633 esac
6634 fi
6635 FILECMD=$ac_cv_prog_FILECMD
6636 if test -n "$FILECMD"; then
6637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6638 printf "%s\n" "$FILECMD" >&6; }
6639 else
6640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6641 printf "%s\n" "no" >&6; }
6642 fi
6643
6644
6645
6646
6647
6648
6649
6650
6651 if test -n "$ac_tool_prefix"; then
6652 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6653 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6655 printf %s "checking for $ac_word... " >&6; }
6656 if test ${ac_cv_prog_OBJDUMP+y}
6657 then :
6658 printf %s "(cached) " >&6
6659 else case e in #(
6660 e) if test -n "$OBJDUMP"; then
6661 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6662 else
6663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6664 for as_dir in $PATH
6665 do
6666 IFS=$as_save_IFS
6667 case $as_dir in #(((
6668 '') as_dir=./ ;;
6669 */) ;;
6670 *) as_dir=$as_dir/ ;;
6671 esac
6672 for ac_exec_ext in '' $ac_executable_extensions; do
6673 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6674 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6675 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6676 break 2
6677 fi
6678 done
6679 done
6680 IFS=$as_save_IFS
6681
6682 fi ;;
6683 esac
6684 fi
6685 OBJDUMP=$ac_cv_prog_OBJDUMP
6686 if test -n "$OBJDUMP"; then
6687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6688 printf "%s\n" "$OBJDUMP" >&6; }
6689 else
6690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6691 printf "%s\n" "no" >&6; }
6692 fi
6693
6694
6695 fi
6696 if test -z "$ac_cv_prog_OBJDUMP"; then
6697 ac_ct_OBJDUMP=$OBJDUMP
6698 # Extract the first word of "objdump", so it can be a program name with args.
6699 set dummy objdump; ac_word=$2
6700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6701 printf %s "checking for $ac_word... " >&6; }
6702 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6703 then :
6704 printf %s "(cached) " >&6
6705 else case e in #(
6706 e) if test -n "$ac_ct_OBJDUMP"; then
6707 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6708 else
6709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6710 for as_dir in $PATH
6711 do
6712 IFS=$as_save_IFS
6713 case $as_dir in #(((
6714 '') as_dir=./ ;;
6715 */) ;;
6716 *) as_dir=$as_dir/ ;;
6717 esac
6718 for ac_exec_ext in '' $ac_executable_extensions; do
6719 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6720 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6721 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6722 break 2
6723 fi
6724 done
6725 done
6726 IFS=$as_save_IFS
6727
6728 fi ;;
6729 esac
6730 fi
6731 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6732 if test -n "$ac_ct_OBJDUMP"; then
6733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6734 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6735 else
6736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6737 printf "%s\n" "no" >&6; }
6738 fi
6739
6740 if test "x$ac_ct_OBJDUMP" = x; then
6741 OBJDUMP="false"
6742 else
6743 case $cross_compiling:$ac_tool_warned in
6744 yes:)
6745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6746 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6747 ac_tool_warned=yes ;;
6748 esac
6749 OBJDUMP=$ac_ct_OBJDUMP
6750 fi
6751 else
6752 OBJDUMP="$ac_cv_prog_OBJDUMP"
6753 fi
6754
6755 test -z "$OBJDUMP" && OBJDUMP=objdump
6756
6757
6758
6759
6760
6761
6762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6763 printf %s "checking how to recognize dependent libraries... " >&6; }
6764 if test ${lt_cv_deplibs_check_method+y}
6765 then :
6766 printf %s "(cached) " >&6
6767 else case e in #(
6768 e) lt_cv_file_magic_cmd='$MAGIC_CMD'
6769 lt_cv_file_magic_test_file=
6770 lt_cv_deplibs_check_method='unknown'
6771 # Need to set the preceding variable on all platforms that support
6772 # interlibrary dependencies.
6773 # 'none' -- dependencies not supported.
6774 # 'unknown' -- same as none, but documents that we really don't know.
6775 # 'pass_all' -- all dependencies passed with no checks.
6776 # 'file_magic [[regex]]' -- check by looking for files in library path
6777 # that responds to the $file_magic_cmd with a given extended regex.
6778 # If you have 'file' or equivalent on your system and you're not sure
6779 # whether 'pass_all' will *always* work, you probably want this one.
6780
6781 case $host_os in
6782 aix[4-9]*)
6783 lt_cv_deplibs_check_method=pass_all
6784 ;;
6785
6786 beos*)
6787 lt_cv_deplibs_check_method=pass_all
6788 ;;
6789
6790 bsdi[45]*)
6791 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6792 lt_cv_file_magic_cmd='$FILECMD -L'
6793 lt_cv_file_magic_test_file=/shlib/libc.so
6794 ;;
6795
6796 cygwin*)
6797 # func_win32_libid is a shell function defined in ltmain.sh
6798 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6799 lt_cv_file_magic_cmd='func_win32_libid'
6800 ;;
6801
6802 mingw* | windows* | pw32*)
6803 # Base MSYS/MinGW do not provide the 'file' command needed by
6804 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6805 # unless we find 'file', for example because we are cross-compiling.
6806 if ( file / ) >/dev/null 2>&1; then
6807 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6808 lt_cv_file_magic_cmd='func_win32_libid'
6809 else
6810 # Keep this pattern in sync with the one in func_win32_libid.
6811 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
6812 lt_cv_file_magic_cmd='$OBJDUMP -f'
6813 fi
6814 ;;
6815
6816 cegcc*)
6817 # use the weaker test based on 'objdump'. See mingw*.
6818 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6819 lt_cv_file_magic_cmd='$OBJDUMP -f'
6820 ;;
6821
6822 darwin* | rhapsody*)
6823 lt_cv_deplibs_check_method=pass_all
6824 ;;
6825
6826 freebsd* | dragonfly* | midnightbsd*)
6827 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6828 case $host_cpu in
6829 i*86 )
6830 # Not sure whether the presence of OpenBSD here was a mistake.
6831 # Let's accept both of them until this is cleared up.
6832 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6833 lt_cv_file_magic_cmd=$FILECMD
6834 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6835 ;;
6836 esac
6837 else
6838 lt_cv_deplibs_check_method=pass_all
6839 fi
6840 ;;
6841
6842 haiku*)
6843 lt_cv_deplibs_check_method=pass_all
6844 ;;
6845
6846 hpux10.20* | hpux11*)
6847 lt_cv_file_magic_cmd=$FILECMD
6848 case $host_cpu in
6849 ia64*)
6850 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6851 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6852 ;;
6853 hppa*64*)
6854 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]'
6855 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6856 ;;
6857 *)
6858 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6859 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6860 ;;
6861 esac
6862 ;;
6863
6864 interix[3-9]*)
6865 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6866 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6867 ;;
6868
6869 irix5* | irix6* | nonstopux*)
6870 case $LD in
6871 *-32|*"-32 ") libmagic=32-bit;;
6872 *-n32|*"-n32 ") libmagic=N32;;
6873 *-64|*"-64 ") libmagic=64-bit;;
6874 *) libmagic=never-match;;
6875 esac
6876 lt_cv_deplibs_check_method=pass_all
6877 ;;
6878
6879 # This must be glibc/ELF.
6880 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6881 lt_cv_deplibs_check_method=pass_all
6882 ;;
6883
6884 *-mlibc)
6885 lt_cv_deplibs_check_method=pass_all
6886 ;;
6887
6888 netbsd* | netbsdelf*-gnu)
6889 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6890 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6891 else
6892 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6893 fi
6894 ;;
6895
6896 newos6*)
6897 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6898 lt_cv_file_magic_cmd=$FILECMD
6899 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6900 ;;
6901
6902 *nto* | *qnx*)
6903 lt_cv_deplibs_check_method=pass_all
6904 ;;
6905
6906 openbsd*)
6907 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6908 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6909 else
6910 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6911 fi
6912 ;;
6913
6914 osf3* | osf4* | osf5*)
6915 lt_cv_deplibs_check_method=pass_all
6916 ;;
6917
6918 rdos*)
6919 lt_cv_deplibs_check_method=pass_all
6920 ;;
6921
6922 serenity*)
6923 lt_cv_deplibs_check_method=pass_all
6924 ;;
6925
6926 solaris*)
6927 lt_cv_deplibs_check_method=pass_all
6928 ;;
6929
6930 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6931 lt_cv_deplibs_check_method=pass_all
6932 ;;
6933
6934 sysv4 | sysv4.3*)
6935 case $host_vendor in
6936 motorola)
6937 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]'
6938 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6939 ;;
6940 ncr)
6941 lt_cv_deplibs_check_method=pass_all
6942 ;;
6943 sequent)
6944 lt_cv_file_magic_cmd='/bin/file'
6945 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6946 ;;
6947 sni)
6948 lt_cv_file_magic_cmd='/bin/file'
6949 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6950 lt_cv_file_magic_test_file=/lib/libc.so
6951 ;;
6952 siemens)
6953 lt_cv_deplibs_check_method=pass_all
6954 ;;
6955 pc)
6956 lt_cv_deplibs_check_method=pass_all
6957 ;;
6958 esac
6959 ;;
6960
6961 tpf*)
6962 lt_cv_deplibs_check_method=pass_all
6963 ;;
6964 os2*)
6965 lt_cv_deplibs_check_method=pass_all
6966 ;;
6967 esac
6968 ;;
6969 esac
6970 fi
6971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6972 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6973
6974 file_magic_glob=
6975 want_nocaseglob=no
6976 if test "$build" = "$host"; then
6977 case $host_os in
6978 mingw* | windows* | pw32*)
6979 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6980 want_nocaseglob=yes
6981 else
6982 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6983 fi
6984 ;;
6985 esac
6986 fi
6987
6988 file_magic_cmd=$lt_cv_file_magic_cmd
6989 deplibs_check_method=$lt_cv_deplibs_check_method
6990 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013 if test -n "$ac_tool_prefix"; then
7014 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7015 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7017 printf %s "checking for $ac_word... " >&6; }
7018 if test ${ac_cv_prog_DLLTOOL+y}
7019 then :
7020 printf %s "(cached) " >&6
7021 else case e in #(
7022 e) if test -n "$DLLTOOL"; then
7023 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7024 else
7025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7026 for as_dir in $PATH
7027 do
7028 IFS=$as_save_IFS
7029 case $as_dir in #(((
7030 '') as_dir=./ ;;
7031 */) ;;
7032 *) as_dir=$as_dir/ ;;
7033 esac
7034 for ac_exec_ext in '' $ac_executable_extensions; do
7035 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7036 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7037 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7038 break 2
7039 fi
7040 done
7041 done
7042 IFS=$as_save_IFS
7043
7044 fi ;;
7045 esac
7046 fi
7047 DLLTOOL=$ac_cv_prog_DLLTOOL
7048 if test -n "$DLLTOOL"; then
7049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7050 printf "%s\n" "$DLLTOOL" >&6; }
7051 else
7052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7053 printf "%s\n" "no" >&6; }
7054 fi
7055
7056
7057 fi
7058 if test -z "$ac_cv_prog_DLLTOOL"; then
7059 ac_ct_DLLTOOL=$DLLTOOL
7060 # Extract the first word of "dlltool", so it can be a program name with args.
7061 set dummy dlltool; ac_word=$2
7062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7063 printf %s "checking for $ac_word... " >&6; }
7064 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
7065 then :
7066 printf %s "(cached) " >&6
7067 else case e in #(
7068 e) if test -n "$ac_ct_DLLTOOL"; then
7069 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7070 else
7071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7072 for as_dir in $PATH
7073 do
7074 IFS=$as_save_IFS
7075 case $as_dir in #(((
7076 '') as_dir=./ ;;
7077 */) ;;
7078 *) as_dir=$as_dir/ ;;
7079 esac
7080 for ac_exec_ext in '' $ac_executable_extensions; do
7081 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7082 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7083 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7084 break 2
7085 fi
7086 done
7087 done
7088 IFS=$as_save_IFS
7089
7090 fi ;;
7091 esac
7092 fi
7093 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7094 if test -n "$ac_ct_DLLTOOL"; then
7095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7096 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
7097 else
7098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7099 printf "%s\n" "no" >&6; }
7100 fi
7101
7102 if test "x$ac_ct_DLLTOOL" = x; then
7103 DLLTOOL="false"
7104 else
7105 case $cross_compiling:$ac_tool_warned in
7106 yes:)
7107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7108 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7109 ac_tool_warned=yes ;;
7110 esac
7111 DLLTOOL=$ac_ct_DLLTOOL
7112 fi
7113 else
7114 DLLTOOL="$ac_cv_prog_DLLTOOL"
7115 fi
7116
7117 test -z "$DLLTOOL" && DLLTOOL=dlltool
7118
7119
7120
7121
7122
7123
7124
7125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7126 printf %s "checking how to associate runtime and link libraries... " >&6; }
7127 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
7128 then :
7129 printf %s "(cached) " >&6
7130 else case e in #(
7131 e) lt_cv_sharedlib_from_linklib_cmd='unknown'
7132
7133 case $host_os in
7134 cygwin* | mingw* | windows* | pw32* | cegcc*)
7135 # two different shell functions defined in ltmain.sh;
7136 # decide which one to use based on capabilities of $DLLTOOL
7137 case `$DLLTOOL --help 2>&1` in
7138 *--identify-strict*)
7139 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7140 ;;
7141 *)
7142 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7143 ;;
7144 esac
7145 ;;
7146 *)
7147 # fallback: assume linklib IS sharedlib
7148 lt_cv_sharedlib_from_linklib_cmd=$ECHO
7149 ;;
7150 esac
7151 ;;
7152 esac
7153 fi
7154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7155 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7156 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7157 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7158
7159
7160
7161
7162
7163
7164
7165 if test -n "$ac_tool_prefix"; then
7166 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7167 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7169 printf %s "checking for $ac_word... " >&6; }
7170 if test ${ac_cv_prog_RANLIB+y}
7171 then :
7172 printf %s "(cached) " >&6
7173 else case e in #(
7174 e) if test -n "$RANLIB"; then
7175 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7176 else
7177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7178 for as_dir in $PATH
7179 do
7180 IFS=$as_save_IFS
7181 case $as_dir in #(((
7182 '') as_dir=./ ;;
7183 */) ;;
7184 *) as_dir=$as_dir/ ;;
7185 esac
7186 for ac_exec_ext in '' $ac_executable_extensions; do
7187 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7188 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7189 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7190 break 2
7191 fi
7192 done
7193 done
7194 IFS=$as_save_IFS
7195
7196 fi ;;
7197 esac
7198 fi
7199 RANLIB=$ac_cv_prog_RANLIB
7200 if test -n "$RANLIB"; then
7201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7202 printf "%s\n" "$RANLIB" >&6; }
7203 else
7204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7205 printf "%s\n" "no" >&6; }
7206 fi
7207
7208
7209 fi
7210 if test -z "$ac_cv_prog_RANLIB"; then
7211 ac_ct_RANLIB=$RANLIB
7212 # Extract the first word of "ranlib", so it can be a program name with args.
7213 set dummy ranlib; ac_word=$2
7214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7215 printf %s "checking for $ac_word... " >&6; }
7216 if test ${ac_cv_prog_ac_ct_RANLIB+y}
7217 then :
7218 printf %s "(cached) " >&6
7219 else case e in #(
7220 e) if test -n "$ac_ct_RANLIB"; then
7221 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7222 else
7223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7224 for as_dir in $PATH
7225 do
7226 IFS=$as_save_IFS
7227 case $as_dir in #(((
7228 '') as_dir=./ ;;
7229 */) ;;
7230 *) as_dir=$as_dir/ ;;
7231 esac
7232 for ac_exec_ext in '' $ac_executable_extensions; do
7233 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7234 ac_cv_prog_ac_ct_RANLIB="ranlib"
7235 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7236 break 2
7237 fi
7238 done
7239 done
7240 IFS=$as_save_IFS
7241
7242 fi ;;
7243 esac
7244 fi
7245 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7246 if test -n "$ac_ct_RANLIB"; then
7247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7248 printf "%s\n" "$ac_ct_RANLIB" >&6; }
7249 else
7250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7251 printf "%s\n" "no" >&6; }
7252 fi
7253
7254 if test "x$ac_ct_RANLIB" = x; then
7255 RANLIB=":"
7256 else
7257 case $cross_compiling:$ac_tool_warned in
7258 yes:)
7259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7260 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7261 ac_tool_warned=yes ;;
7262 esac
7263 RANLIB=$ac_ct_RANLIB
7264 fi
7265 else
7266 RANLIB="$ac_cv_prog_RANLIB"
7267 fi
7268
7269 if test -n "$ac_tool_prefix"; then
7270 for ac_prog in ar
7271 do
7272 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7273 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7275 printf %s "checking for $ac_word... " >&6; }
7276 if test ${ac_cv_prog_AR+y}
7277 then :
7278 printf %s "(cached) " >&6
7279 else case e in #(
7280 e) if test -n "$AR"; then
7281 ac_cv_prog_AR="$AR" # Let the user override the test.
7282 else
7283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7284 for as_dir in $PATH
7285 do
7286 IFS=$as_save_IFS
7287 case $as_dir in #(((
7288 '') as_dir=./ ;;
7289 */) ;;
7290 *) as_dir=$as_dir/ ;;
7291 esac
7292 for ac_exec_ext in '' $ac_executable_extensions; do
7293 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7294 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7295 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7296 break 2
7297 fi
7298 done
7299 done
7300 IFS=$as_save_IFS
7301
7302 fi ;;
7303 esac
7304 fi
7305 AR=$ac_cv_prog_AR
7306 if test -n "$AR"; then
7307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7308 printf "%s\n" "$AR" >&6; }
7309 else
7310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7311 printf "%s\n" "no" >&6; }
7312 fi
7313
7314
7315 test -n "$AR" && break
7316 done
7317 fi
7318 if test -z "$AR"; then
7319 ac_ct_AR=$AR
7320 for ac_prog in ar
7321 do
7322 # Extract the first word of "$ac_prog", so it can be a program name with args.
7323 set dummy $ac_prog; ac_word=$2
7324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7325 printf %s "checking for $ac_word... " >&6; }
7326 if test ${ac_cv_prog_ac_ct_AR+y}
7327 then :
7328 printf %s "(cached) " >&6
7329 else case e in #(
7330 e) if test -n "$ac_ct_AR"; then
7331 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7332 else
7333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7334 for as_dir in $PATH
7335 do
7336 IFS=$as_save_IFS
7337 case $as_dir in #(((
7338 '') as_dir=./ ;;
7339 */) ;;
7340 *) as_dir=$as_dir/ ;;
7341 esac
7342 for ac_exec_ext in '' $ac_executable_extensions; do
7343 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7344 ac_cv_prog_ac_ct_AR="$ac_prog"
7345 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7346 break 2
7347 fi
7348 done
7349 done
7350 IFS=$as_save_IFS
7351
7352 fi ;;
7353 esac
7354 fi
7355 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7356 if test -n "$ac_ct_AR"; then
7357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7358 printf "%s\n" "$ac_ct_AR" >&6; }
7359 else
7360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7361 printf "%s\n" "no" >&6; }
7362 fi
7363
7364
7365 test -n "$ac_ct_AR" && break
7366 done
7367
7368 if test "x$ac_ct_AR" = x; then
7369 AR="false"
7370 else
7371 case $cross_compiling:$ac_tool_warned in
7372 yes:)
7373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7374 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7375 ac_tool_warned=yes ;;
7376 esac
7377 AR=$ac_ct_AR
7378 fi
7379 fi
7380
7381 : ${AR=ar}
7382
7383
7384
7385
7386
7387
7388 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
7389 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
7390 # higher priority because that's what people were doing historically (setting
7391 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
7392 # variable obsoleted/removed.
7393
7394 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
7395 lt_ar_flags=$AR_FLAGS
7396
7397
7398
7399
7400
7401
7402 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
7403 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
7404
7405
7406
7407
7408
7409
7410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7411 printf %s "checking for archiver @FILE support... " >&6; }
7412 if test ${lt_cv_ar_at_file+y}
7413 then :
7414 printf %s "(cached) " >&6
7415 else case e in #(
7416 e) lt_cv_ar_at_file=no
7417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7418 /* end confdefs.h. */
7419
7420 int
7421 main (void)
7422 {
7423
7424 ;
7425 return 0;
7426 }
7427 _ACEOF
7428 if ac_fn_c_try_compile "$LINENO"
7429 then :
7430 echo conftest.$ac_objext > conftest.lst
7431 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7432 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7433 (eval $lt_ar_try) 2>&5
7434 ac_status=$?
7435 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7436 test $ac_status = 0; }
7437 if test 0 -eq "$ac_status"; then
7438 # Ensure the archiver fails upon bogus file names.
7439 rm -f conftest.$ac_objext libconftest.a
7440 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7441 (eval $lt_ar_try) 2>&5
7442 ac_status=$?
7443 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7444 test $ac_status = 0; }
7445 if test 0 -ne "$ac_status"; then
7446 lt_cv_ar_at_file=@
7447 fi
7448 fi
7449 rm -f conftest.* libconftest.a
7450
7451 fi
7452 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7453 ;;
7454 esac
7455 fi
7456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7457 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
7458
7459 if test no = "$lt_cv_ar_at_file"; then
7460 archiver_list_spec=
7461 else
7462 archiver_list_spec=$lt_cv_ar_at_file
7463 fi
7464
7465
7466
7467
7468
7469
7470
7471 if test -n "$ac_tool_prefix"; then
7472 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7473 set dummy ${ac_tool_prefix}strip; ac_word=$2
7474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7475 printf %s "checking for $ac_word... " >&6; }
7476 if test ${ac_cv_prog_STRIP+y}
7477 then :
7478 printf %s "(cached) " >&6
7479 else case e in #(
7480 e) if test -n "$STRIP"; then
7481 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7482 else
7483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7484 for as_dir in $PATH
7485 do
7486 IFS=$as_save_IFS
7487 case $as_dir in #(((
7488 '') as_dir=./ ;;
7489 */) ;;
7490 *) as_dir=$as_dir/ ;;
7491 esac
7492 for ac_exec_ext in '' $ac_executable_extensions; do
7493 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7494 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7495 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7496 break 2
7497 fi
7498 done
7499 done
7500 IFS=$as_save_IFS
7501
7502 fi ;;
7503 esac
7504 fi
7505 STRIP=$ac_cv_prog_STRIP
7506 if test -n "$STRIP"; then
7507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7508 printf "%s\n" "$STRIP" >&6; }
7509 else
7510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7511 printf "%s\n" "no" >&6; }
7512 fi
7513
7514
7515 fi
7516 if test -z "$ac_cv_prog_STRIP"; then
7517 ac_ct_STRIP=$STRIP
7518 # Extract the first word of "strip", so it can be a program name with args.
7519 set dummy strip; ac_word=$2
7520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7521 printf %s "checking for $ac_word... " >&6; }
7522 if test ${ac_cv_prog_ac_ct_STRIP+y}
7523 then :
7524 printf %s "(cached) " >&6
7525 else case e in #(
7526 e) if test -n "$ac_ct_STRIP"; then
7527 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7528 else
7529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7530 for as_dir in $PATH
7531 do
7532 IFS=$as_save_IFS
7533 case $as_dir in #(((
7534 '') as_dir=./ ;;
7535 */) ;;
7536 *) as_dir=$as_dir/ ;;
7537 esac
7538 for ac_exec_ext in '' $ac_executable_extensions; do
7539 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7540 ac_cv_prog_ac_ct_STRIP="strip"
7541 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7542 break 2
7543 fi
7544 done
7545 done
7546 IFS=$as_save_IFS
7547
7548 fi ;;
7549 esac
7550 fi
7551 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7552 if test -n "$ac_ct_STRIP"; then
7553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7554 printf "%s\n" "$ac_ct_STRIP" >&6; }
7555 else
7556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7557 printf "%s\n" "no" >&6; }
7558 fi
7559
7560 if test "x$ac_ct_STRIP" = x; then
7561 STRIP=":"
7562 else
7563 case $cross_compiling:$ac_tool_warned in
7564 yes:)
7565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7566 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7567 ac_tool_warned=yes ;;
7568 esac
7569 STRIP=$ac_ct_STRIP
7570 fi
7571 else
7572 STRIP="$ac_cv_prog_STRIP"
7573 fi
7574
7575 test -z "$STRIP" && STRIP=:
7576
7577
7578
7579
7580
7581
7582
7583 test -z "$RANLIB" && RANLIB=:
7584
7585
7586
7587
7588
7589
7590 # Determine commands to create old-style static archives.
7591 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7592 old_postinstall_cmds='chmod 644 $oldlib'
7593 old_postuninstall_cmds=
7594
7595 if test -n "$RANLIB"; then
7596 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7597 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7598 fi
7599
7600 case $host_os in
7601 darwin*)
7602 lock_old_archive_extraction=yes ;;
7603 *)
7604 lock_old_archive_extraction=no ;;
7605 esac
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645 # If no C compiler was specified, use CC.
7646 LTCC=${LTCC-"$CC"}
7647
7648 # If no C compiler flags were specified, use CFLAGS.
7649 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7650
7651 # Allow CC to be a program name with arguments.
7652 compiler=$CC
7653
7654
7655 # Check for command to grab the raw symbol name followed by C symbol from nm.
7656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7657 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7658 if test ${lt_cv_sys_global_symbol_pipe+y}
7659 then :
7660 printf %s "(cached) " >&6
7661 else case e in #(
7662 e)
7663 # These are sane defaults that work on at least a few old systems.
7664 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7665
7666 # Character class describing NM global symbol codes.
7667 symcode='[BCDEGRST]'
7668
7669 # Regexp to match symbols that can be accessed directly from C.
7670 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7671
7672 # Define system-specific variables.
7673 case $host_os in
7674 aix*)
7675 symcode='[BCDT]'
7676 ;;
7677 cygwin* | mingw* | windows* | pw32* | cegcc*)
7678 symcode='[ABCDGISTW]'
7679 ;;
7680 hpux*)
7681 if test ia64 = "$host_cpu"; then
7682 symcode='[ABCDEGRST]'
7683 fi
7684 ;;
7685 irix* | nonstopux*)
7686 symcode='[BCDEGRST]'
7687 ;;
7688 osf*)
7689 symcode='[BCDEGQRST]'
7690 ;;
7691 solaris*)
7692 symcode='[BCDRT]'
7693 ;;
7694 sco3.2v5*)
7695 symcode='[DT]'
7696 ;;
7697 sysv4.2uw2*)
7698 symcode='[DT]'
7699 ;;
7700 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7701 symcode='[ABDT]'
7702 ;;
7703 sysv4)
7704 symcode='[DFNSTU]'
7705 ;;
7706 esac
7707
7708 # If we're using GNU nm, then use its standard symbol codes.
7709 case `$NM -V 2>&1` in
7710 *GNU* | *'with BFD'*)
7711 symcode='[ABCDGIRSTW]' ;;
7712 esac
7713
7714 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7715 # Gets list of data symbols to import.
7716 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7717 # Adjust the below global symbol transforms to fixup imported variables.
7718 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7719 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7720 lt_c_name_lib_hook="\
7721 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7722 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7723 else
7724 # Disable hooks by default.
7725 lt_cv_sys_global_symbol_to_import=
7726 lt_cdecl_hook=
7727 lt_c_name_hook=
7728 lt_c_name_lib_hook=
7729 fi
7730
7731 # Transform an extracted symbol line into a proper C declaration.
7732 # Some systems (esp. on ia64) link data and code symbols differently,
7733 # so use this general approach.
7734 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7735 $lt_cdecl_hook\
7736 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7737 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7738
7739 # Transform an extracted symbol line into symbol name and symbol address
7740 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7741 $lt_c_name_hook\
7742 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7743 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7744
7745 # Transform an extracted symbol line into symbol name with lib prefix and
7746 # symbol address.
7747 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7748 $lt_c_name_lib_hook\
7749 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7750 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7751 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7752
7753 # Handle CRLF in mingw tool chain
7754 opt_cr=
7755 case $build_os in
7756 mingw* | windows*)
7757 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7758 ;;
7759 esac
7760
7761 # Try without a prefix underscore, then with it.
7762 for ac_symprfx in "" "_"; do
7763
7764 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7765 symxfrm="\\1 $ac_symprfx\\2 \\2"
7766
7767 # Write the raw and C identifiers.
7768 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7769 # Fake it for dumpbin and say T for any non-static function,
7770 # D for any global variable and I for any imported variable.
7771 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7772 # which start with @ or ?.
7773 lt_cv_sys_global_symbol_pipe="$AWK '"\
7774 " {last_section=section; section=\$ 3};"\
7775 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7776 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7777 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7778 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7779 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7780 " \$ 0!~/External *\|/{next};"\
7781 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7782 " {if(hide[section]) next};"\
7783 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7784 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7785 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7786 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7787 " ' prfx=^$ac_symprfx"
7788 else
7789 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7790 fi
7791 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7792
7793 # Check to see that the pipe works correctly.
7794 pipe_works=no
7795
7796 rm -f conftest*
7797 cat > conftest.$ac_ext <<_LT_EOF
7798 #ifdef __cplusplus
7799 extern "C" {
7800 #endif
7801 char nm_test_var;
7802 void nm_test_func(void);
7803 void nm_test_func(void){}
7804 #ifdef __cplusplus
7805 }
7806 #endif
7807 int main(void){nm_test_var='a';nm_test_func();return(0);}
7808 _LT_EOF
7809
7810 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7811 (eval $ac_compile) 2>&5
7812 ac_status=$?
7813 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7814 test $ac_status = 0; }; then
7815 # Now try to grab the symbols.
7816 nlist=conftest.nm
7817 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7818 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7819 # Try sorting and uniquifying the output.
7820 if sort "$nlist" | uniq > "$nlist"T; then
7821 mv -f "$nlist"T "$nlist"
7822 else
7823 rm -f "$nlist"T
7824 fi
7825
7826 # Make sure that we snagged all the symbols we need.
7827 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7828 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7829 cat <<_LT_EOF > conftest.$ac_ext
7830 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7831 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7832 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7833 relocations are performed -- see ld's documentation on pseudo-relocs. */
7834 # define LT_DLSYM_CONST
7835 #elif defined __osf__
7836 /* This system does not cope well with relocations in const data. */
7837 # define LT_DLSYM_CONST
7838 #else
7839 # define LT_DLSYM_CONST const
7840 #endif
7841
7842 #ifdef __cplusplus
7843 extern "C" {
7844 #endif
7845
7846 _LT_EOF
7847 # Now generate the symbol file.
7848 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7849
7850 cat <<_LT_EOF >> conftest.$ac_ext
7851
7852 /* The mapping between symbol names and symbols. */
7853 LT_DLSYM_CONST struct {
7854 const char *name;
7855 void *address;
7856 }
7857 lt__PROGRAM__LTX_preloaded_symbols[] =
7858 {
7859 { "@PROGRAM@", (void *) 0 },
7860 _LT_EOF
7861 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7862 cat <<\_LT_EOF >> conftest.$ac_ext
7863 {0, (void *) 0}
7864 };
7865
7866 /* This works around a problem in FreeBSD linker */
7867 #ifdef FREEBSD_WORKAROUND
7868 static const void *lt_preloaded_setup() {
7869 return lt__PROGRAM__LTX_preloaded_symbols;
7870 }
7871 #endif
7872
7873 #ifdef __cplusplus
7874 }
7875 #endif
7876 _LT_EOF
7877 # Now try linking the two files.
7878 mv conftest.$ac_objext conftstm.$ac_objext
7879 lt_globsym_save_LIBS=$LIBS
7880 lt_globsym_save_CFLAGS=$CFLAGS
7881 LIBS=conftstm.$ac_objext
7882 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7883 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7884 (eval $ac_link) 2>&5
7885 ac_status=$?
7886 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7887 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7888 pipe_works=yes
7889 fi
7890 LIBS=$lt_globsym_save_LIBS
7891 CFLAGS=$lt_globsym_save_CFLAGS
7892 else
7893 echo "cannot find nm_test_func in $nlist" >&5
7894 fi
7895 else
7896 echo "cannot find nm_test_var in $nlist" >&5
7897 fi
7898 else
7899 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7900 fi
7901 else
7902 echo "$progname: failed program was:" >&5
7903 cat conftest.$ac_ext >&5
7904 fi
7905 rm -rf conftest* conftst*
7906
7907 # Do not use the global_symbol_pipe unless it works.
7908 if test yes = "$pipe_works"; then
7909 break
7910 else
7911 lt_cv_sys_global_symbol_pipe=
7912 fi
7913 done
7914 ;;
7915 esac
7916 fi
7917
7918 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7919 lt_cv_sys_global_symbol_to_cdecl=
7920 fi
7921 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7923 printf "%s\n" "failed" >&6; }
7924 else
7925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7926 printf "%s\n" "ok" >&6; }
7927 fi
7928
7929 # Response file support.
7930 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7931 nm_file_list_spec='@'
7932 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7933 nm_file_list_spec='@'
7934 fi
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7973 printf %s "checking for sysroot... " >&6; }
7974
7975 # Check whether --with-sysroot was given.
7976 if test ${with_sysroot+y}
7977 then :
7978 withval=$with_sysroot;
7979 else case e in #(
7980 e) with_sysroot=no ;;
7981 esac
7982 fi
7983
7984
7985 lt_sysroot=
7986 case $with_sysroot in #(
7987 yes)
7988 if test yes = "$GCC"; then
7989 # Trim trailing / since we'll always append absolute paths and we want
7990 # to avoid //, if only for less confusing output for the user.
7991 lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`
7992 fi
7993 ;; #(
7994 /*)
7995 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7996 ;; #(
7997 no|'')
7998 ;; #(
7999 *)
8000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8001 printf "%s\n" "$with_sysroot" >&6; }
8002 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8003 ;;
8004 esac
8005
8006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8007 printf "%s\n" "${lt_sysroot:-no}" >&6; }
8008
8009
8010
8011
8012
8013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8014 printf %s "checking for a working dd... " >&6; }
8015 if test ${ac_cv_path_lt_DD+y}
8016 then :
8017 printf %s "(cached) " >&6
8018 else case e in #(
8019 e) printf 0123456789abcdef0123456789abcdef >conftest.i
8020 cat conftest.i conftest.i >conftest2.i
8021 : ${lt_DD:=$DD}
8022 if test -z "$lt_DD"; then
8023 ac_path_lt_DD_found=false
8024 # Loop through the user's path and test for each of PROGNAME-LIST
8025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8026 for as_dir in $PATH
8027 do
8028 IFS=$as_save_IFS
8029 case $as_dir in #(((
8030 '') as_dir=./ ;;
8031 */) ;;
8032 *) as_dir=$as_dir/ ;;
8033 esac
8034 for ac_prog in dd
8035 do
8036 for ac_exec_ext in '' $ac_executable_extensions; do
8037 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
8038 as_fn_executable_p "$ac_path_lt_DD" || continue
8039 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8040 cmp -s conftest.i conftest.out \
8041 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8042 fi
8043 $ac_path_lt_DD_found && break 3
8044 done
8045 done
8046 done
8047 IFS=$as_save_IFS
8048 if test -z "$ac_cv_path_lt_DD"; then
8049 :
8050 fi
8051 else
8052 ac_cv_path_lt_DD=$lt_DD
8053 fi
8054
8055 rm -f conftest.i conftest2.i conftest.out ;;
8056 esac
8057 fi
8058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8059 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
8060
8061
8062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8063 printf %s "checking how to truncate binary pipes... " >&6; }
8064 if test ${lt_cv_truncate_bin+y}
8065 then :
8066 printf %s "(cached) " >&6
8067 else case e in #(
8068 e) printf 0123456789abcdef0123456789abcdef >conftest.i
8069 cat conftest.i conftest.i >conftest2.i
8070 lt_cv_truncate_bin=
8071 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8072 cmp -s conftest.i conftest.out \
8073 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8074 fi
8075 rm -f conftest.i conftest2.i conftest.out
8076 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
8077 esac
8078 fi
8079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8080 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
8081
8082
8083
8084
8085
8086
8087
8088 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
8089 func_cc_basename ()
8090 {
8091 for cc_temp in $*""; do
8092 case $cc_temp in
8093 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8094 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8095 \-*) ;;
8096 *) break;;
8097 esac
8098 done
8099 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8100 }
8101
8102 # Check whether --enable-libtool-lock was given.
8103 if test ${enable_libtool_lock+y}
8104 then :
8105 enableval=$enable_libtool_lock;
8106 fi
8107
8108 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8109
8110 # Some flags need to be propagated to the compiler or linker for good
8111 # libtool support.
8112 case $host in
8113 ia64-*-hpux*)
8114 # Find out what ABI is being produced by ac_compile, and set mode
8115 # options accordingly.
8116 echo 'int i;' > conftest.$ac_ext
8117 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8118 (eval $ac_compile) 2>&5
8119 ac_status=$?
8120 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8121 test $ac_status = 0; }; then
8122 case `$FILECMD conftest.$ac_objext` in
8123 *ELF-32*)
8124 HPUX_IA64_MODE=32
8125 ;;
8126 *ELF-64*)
8127 HPUX_IA64_MODE=64
8128 ;;
8129 esac
8130 fi
8131 rm -rf conftest*
8132 ;;
8133 *-*-irix6*)
8134 # Find out what ABI is being produced by ac_compile, and set linker
8135 # options accordingly.
8136 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8137 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8138 (eval $ac_compile) 2>&5
8139 ac_status=$?
8140 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8141 test $ac_status = 0; }; then
8142 if test yes = "$lt_cv_prog_gnu_ld"; then
8143 case `$FILECMD conftest.$ac_objext` in
8144 *32-bit*)
8145 LD="${LD-ld} -melf32bsmip"
8146 ;;
8147 *N32*)
8148 LD="${LD-ld} -melf32bmipn32"
8149 ;;
8150 *64-bit*)
8151 LD="${LD-ld} -melf64bmip"
8152 ;;
8153 esac
8154 else
8155 case `$FILECMD conftest.$ac_objext` in
8156 *32-bit*)
8157 LD="${LD-ld} -32"
8158 ;;
8159 *N32*)
8160 LD="${LD-ld} -n32"
8161 ;;
8162 *64-bit*)
8163 LD="${LD-ld} -64"
8164 ;;
8165 esac
8166 fi
8167 fi
8168 rm -rf conftest*
8169 ;;
8170
8171 mips64*-*linux*)
8172 # Find out what ABI is being produced by ac_compile, and set linker
8173 # options accordingly.
8174 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8175 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8176 (eval $ac_compile) 2>&5
8177 ac_status=$?
8178 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8179 test $ac_status = 0; }; then
8180 emul=elf
8181 case `$FILECMD conftest.$ac_objext` in
8182 *32-bit*)
8183 emul="${emul}32"
8184 ;;
8185 *64-bit*)
8186 emul="${emul}64"
8187 ;;
8188 esac
8189 case `$FILECMD conftest.$ac_objext` in
8190 *MSB*)
8191 emul="${emul}btsmip"
8192 ;;
8193 *LSB*)
8194 emul="${emul}ltsmip"
8195 ;;
8196 esac
8197 case `$FILECMD conftest.$ac_objext` in
8198 *N32*)
8199 emul="${emul}n32"
8200 ;;
8201 esac
8202 LD="${LD-ld} -m $emul"
8203 fi
8204 rm -rf conftest*
8205 ;;
8206
8207 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8208 s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
8209 # Find out what ABI is being produced by ac_compile, and set linker
8210 # options accordingly. Note that the listed cases only cover the
8211 # situations where additional linker options are needed (such as when
8212 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8213 # vice versa); the common cases where no linker options are needed do
8214 # not appear in the list.
8215 echo 'int i;' > conftest.$ac_ext
8216 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8217 (eval $ac_compile) 2>&5
8218 ac_status=$?
8219 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8220 test $ac_status = 0; }; then
8221 case `$FILECMD conftest.o` in
8222 *32-bit*)
8223 case $host in
8224 x86_64-*kfreebsd*-gnu)
8225 LD="${LD-ld} -m elf_i386_fbsd"
8226 ;;
8227 x86_64-*linux*|x86_64-gnu*)
8228 case `$FILECMD conftest.o` in
8229 *x86-64*)
8230 LD="${LD-ld} -m elf32_x86_64"
8231 ;;
8232 *)
8233 LD="${LD-ld} -m elf_i386"
8234 ;;
8235 esac
8236 ;;
8237 powerpc64le-*linux*)
8238 LD="${LD-ld} -m elf32lppclinux"
8239 ;;
8240 powerpc64-*linux*)
8241 LD="${LD-ld} -m elf32ppclinux"
8242 ;;
8243 s390x-*linux*)
8244 LD="${LD-ld} -m elf_s390"
8245 ;;
8246 sparc64-*linux*)
8247 LD="${LD-ld} -m elf32_sparc"
8248 ;;
8249 esac
8250 ;;
8251 *64-bit*)
8252 case $host in
8253 x86_64-*kfreebsd*-gnu)
8254 LD="${LD-ld} -m elf_x86_64_fbsd"
8255 ;;
8256 x86_64-*linux*|x86_64-gnu*)
8257 LD="${LD-ld} -m elf_x86_64"
8258 ;;
8259 powerpcle-*linux*)
8260 LD="${LD-ld} -m elf64lppc"
8261 ;;
8262 powerpc-*linux*)
8263 LD="${LD-ld} -m elf64ppc"
8264 ;;
8265 s390*-*linux*|s390*-*tpf*)
8266 LD="${LD-ld} -m elf64_s390"
8267 ;;
8268 sparc*-*linux*)
8269 LD="${LD-ld} -m elf64_sparc"
8270 ;;
8271 esac
8272 ;;
8273 esac
8274 fi
8275 rm -rf conftest*
8276 ;;
8277
8278 *-*-sco3.2v5*)
8279 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8280 SAVE_CFLAGS=$CFLAGS
8281 CFLAGS="$CFLAGS -belf"
8282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8283 printf %s "checking whether the C compiler needs -belf... " >&6; }
8284 if test ${lt_cv_cc_needs_belf+y}
8285 then :
8286 printf %s "(cached) " >&6
8287 else case e in #(
8288 e) ac_ext=c
8289 ac_cpp='$CPP $CPPFLAGS'
8290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8293
8294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8295 /* end confdefs.h. */
8296
8297 int
8298 main (void)
8299 {
8300
8301 ;
8302 return 0;
8303 }
8304 _ACEOF
8305 if ac_fn_c_try_link "$LINENO"
8306 then :
8307 lt_cv_cc_needs_belf=yes
8308 else case e in #(
8309 e) lt_cv_cc_needs_belf=no ;;
8310 esac
8311 fi
8312 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8313 conftest$ac_exeext conftest.$ac_ext
8314 ac_ext=c
8315 ac_cpp='$CPP $CPPFLAGS'
8316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8319 ;;
8320 esac
8321 fi
8322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8323 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
8324 if test yes != "$lt_cv_cc_needs_belf"; then
8325 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8326 CFLAGS=$SAVE_CFLAGS
8327 fi
8328 ;;
8329 *-*solaris*)
8330 # Find out what ABI is being produced by ac_compile, and set linker
8331 # options accordingly.
8332 echo 'int i;' > conftest.$ac_ext
8333 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8334 (eval $ac_compile) 2>&5
8335 ac_status=$?
8336 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8337 test $ac_status = 0; }; then
8338 case `$FILECMD conftest.o` in
8339 *64-bit*)
8340 case $lt_cv_prog_gnu_ld in
8341 yes*)
8342 case $host in
8343 i?86-*-solaris*|x86_64-*-solaris*)
8344 LD="${LD-ld} -m elf_x86_64"
8345 ;;
8346 sparc*-*-solaris*)
8347 LD="${LD-ld} -m elf64_sparc"
8348 ;;
8349 esac
8350 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8351 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8352 LD=${LD-ld}_sol2
8353 fi
8354 ;;
8355 *)
8356 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8357 LD="${LD-ld} -64"
8358 fi
8359 ;;
8360 esac
8361 ;;
8362 esac
8363 fi
8364 rm -rf conftest*
8365 ;;
8366 esac
8367
8368 need_locks=$enable_libtool_lock
8369
8370 if test -n "$ac_tool_prefix"; then
8371 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8372 set dummy ${ac_tool_prefix}mt; ac_word=$2
8373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8374 printf %s "checking for $ac_word... " >&6; }
8375 if test ${ac_cv_prog_MANIFEST_TOOL+y}
8376 then :
8377 printf %s "(cached) " >&6
8378 else case e in #(
8379 e) if test -n "$MANIFEST_TOOL"; then
8380 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8381 else
8382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8383 for as_dir in $PATH
8384 do
8385 IFS=$as_save_IFS
8386 case $as_dir in #(((
8387 '') as_dir=./ ;;
8388 */) ;;
8389 *) as_dir=$as_dir/ ;;
8390 esac
8391 for ac_exec_ext in '' $ac_executable_extensions; do
8392 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8393 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8394 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8395 break 2
8396 fi
8397 done
8398 done
8399 IFS=$as_save_IFS
8400
8401 fi ;;
8402 esac
8403 fi
8404 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8405 if test -n "$MANIFEST_TOOL"; then
8406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8407 printf "%s\n" "$MANIFEST_TOOL" >&6; }
8408 else
8409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8410 printf "%s\n" "no" >&6; }
8411 fi
8412
8413
8414 fi
8415 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8416 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8417 # Extract the first word of "mt", so it can be a program name with args.
8418 set dummy mt; ac_word=$2
8419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8420 printf %s "checking for $ac_word... " >&6; }
8421 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8422 then :
8423 printf %s "(cached) " >&6
8424 else case e in #(
8425 e) if test -n "$ac_ct_MANIFEST_TOOL"; then
8426 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8427 else
8428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8429 for as_dir in $PATH
8430 do
8431 IFS=$as_save_IFS
8432 case $as_dir in #(((
8433 '') as_dir=./ ;;
8434 */) ;;
8435 *) as_dir=$as_dir/ ;;
8436 esac
8437 for ac_exec_ext in '' $ac_executable_extensions; do
8438 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8439 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8440 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8441 break 2
8442 fi
8443 done
8444 done
8445 IFS=$as_save_IFS
8446
8447 fi ;;
8448 esac
8449 fi
8450 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8451 if test -n "$ac_ct_MANIFEST_TOOL"; then
8452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8453 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
8454 else
8455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8456 printf "%s\n" "no" >&6; }
8457 fi
8458
8459 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8460 MANIFEST_TOOL=":"
8461 else
8462 case $cross_compiling:$ac_tool_warned in
8463 yes:)
8464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8465 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8466 ac_tool_warned=yes ;;
8467 esac
8468 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8469 fi
8470 else
8471 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8472 fi
8473
8474 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8476 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8477 if test ${lt_cv_path_manifest_tool+y}
8478 then :
8479 printf %s "(cached) " >&6
8480 else case e in #(
8481 e) lt_cv_path_manifest_tool=no
8482 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8483 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8484 cat conftest.err >&5
8485 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8486 lt_cv_path_manifest_tool=yes
8487 fi
8488 rm -f conftest* ;;
8489 esac
8490 fi
8491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5
8492 printf "%s\n" "$lt_cv_path_manifest_tool" >&6; }
8493 if test yes != "$lt_cv_path_manifest_tool"; then
8494 MANIFEST_TOOL=:
8495 fi
8496
8497
8498
8499
8500
8501
8502 case $host_os in
8503 rhapsody* | darwin*)
8504 if test -n "$ac_tool_prefix"; then
8505 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8506 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8508 printf %s "checking for $ac_word... " >&6; }
8509 if test ${ac_cv_prog_DSYMUTIL+y}
8510 then :
8511 printf %s "(cached) " >&6
8512 else case e in #(
8513 e) if test -n "$DSYMUTIL"; then
8514 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8515 else
8516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8517 for as_dir in $PATH
8518 do
8519 IFS=$as_save_IFS
8520 case $as_dir in #(((
8521 '') as_dir=./ ;;
8522 */) ;;
8523 *) as_dir=$as_dir/ ;;
8524 esac
8525 for ac_exec_ext in '' $ac_executable_extensions; do
8526 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8527 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8528 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8529 break 2
8530 fi
8531 done
8532 done
8533 IFS=$as_save_IFS
8534
8535 fi ;;
8536 esac
8537 fi
8538 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8539 if test -n "$DSYMUTIL"; then
8540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8541 printf "%s\n" "$DSYMUTIL" >&6; }
8542 else
8543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8544 printf "%s\n" "no" >&6; }
8545 fi
8546
8547
8548 fi
8549 if test -z "$ac_cv_prog_DSYMUTIL"; then
8550 ac_ct_DSYMUTIL=$DSYMUTIL
8551 # Extract the first word of "dsymutil", so it can be a program name with args.
8552 set dummy dsymutil; ac_word=$2
8553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8554 printf %s "checking for $ac_word... " >&6; }
8555 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8556 then :
8557 printf %s "(cached) " >&6
8558 else case e in #(
8559 e) if test -n "$ac_ct_DSYMUTIL"; then
8560 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8561 else
8562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8563 for as_dir in $PATH
8564 do
8565 IFS=$as_save_IFS
8566 case $as_dir in #(((
8567 '') as_dir=./ ;;
8568 */) ;;
8569 *) as_dir=$as_dir/ ;;
8570 esac
8571 for ac_exec_ext in '' $ac_executable_extensions; do
8572 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8573 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8574 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8575 break 2
8576 fi
8577 done
8578 done
8579 IFS=$as_save_IFS
8580
8581 fi ;;
8582 esac
8583 fi
8584 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8585 if test -n "$ac_ct_DSYMUTIL"; then
8586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8587 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8588 else
8589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8590 printf "%s\n" "no" >&6; }
8591 fi
8592
8593 if test "x$ac_ct_DSYMUTIL" = x; then
8594 DSYMUTIL=":"
8595 else
8596 case $cross_compiling:$ac_tool_warned in
8597 yes:)
8598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8599 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8600 ac_tool_warned=yes ;;
8601 esac
8602 DSYMUTIL=$ac_ct_DSYMUTIL
8603 fi
8604 else
8605 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8606 fi
8607
8608 if test -n "$ac_tool_prefix"; then
8609 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8610 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8612 printf %s "checking for $ac_word... " >&6; }
8613 if test ${ac_cv_prog_NMEDIT+y}
8614 then :
8615 printf %s "(cached) " >&6
8616 else case e in #(
8617 e) if test -n "$NMEDIT"; then
8618 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8619 else
8620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8621 for as_dir in $PATH
8622 do
8623 IFS=$as_save_IFS
8624 case $as_dir in #(((
8625 '') as_dir=./ ;;
8626 */) ;;
8627 *) as_dir=$as_dir/ ;;
8628 esac
8629 for ac_exec_ext in '' $ac_executable_extensions; do
8630 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8631 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8632 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8633 break 2
8634 fi
8635 done
8636 done
8637 IFS=$as_save_IFS
8638
8639 fi ;;
8640 esac
8641 fi
8642 NMEDIT=$ac_cv_prog_NMEDIT
8643 if test -n "$NMEDIT"; then
8644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8645 printf "%s\n" "$NMEDIT" >&6; }
8646 else
8647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8648 printf "%s\n" "no" >&6; }
8649 fi
8650
8651
8652 fi
8653 if test -z "$ac_cv_prog_NMEDIT"; then
8654 ac_ct_NMEDIT=$NMEDIT
8655 # Extract the first word of "nmedit", so it can be a program name with args.
8656 set dummy nmedit; ac_word=$2
8657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8658 printf %s "checking for $ac_word... " >&6; }
8659 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8660 then :
8661 printf %s "(cached) " >&6
8662 else case e in #(
8663 e) if test -n "$ac_ct_NMEDIT"; then
8664 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8665 else
8666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8667 for as_dir in $PATH
8668 do
8669 IFS=$as_save_IFS
8670 case $as_dir in #(((
8671 '') as_dir=./ ;;
8672 */) ;;
8673 *) as_dir=$as_dir/ ;;
8674 esac
8675 for ac_exec_ext in '' $ac_executable_extensions; do
8676 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8677 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8678 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8679 break 2
8680 fi
8681 done
8682 done
8683 IFS=$as_save_IFS
8684
8685 fi ;;
8686 esac
8687 fi
8688 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8689 if test -n "$ac_ct_NMEDIT"; then
8690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8691 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8692 else
8693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8694 printf "%s\n" "no" >&6; }
8695 fi
8696
8697 if test "x$ac_ct_NMEDIT" = x; then
8698 NMEDIT=":"
8699 else
8700 case $cross_compiling:$ac_tool_warned in
8701 yes:)
8702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8703 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8704 ac_tool_warned=yes ;;
8705 esac
8706 NMEDIT=$ac_ct_NMEDIT
8707 fi
8708 else
8709 NMEDIT="$ac_cv_prog_NMEDIT"
8710 fi
8711
8712 if test -n "$ac_tool_prefix"; then
8713 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8714 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8716 printf %s "checking for $ac_word... " >&6; }
8717 if test ${ac_cv_prog_LIPO+y}
8718 then :
8719 printf %s "(cached) " >&6
8720 else case e in #(
8721 e) if test -n "$LIPO"; then
8722 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8723 else
8724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8725 for as_dir in $PATH
8726 do
8727 IFS=$as_save_IFS
8728 case $as_dir in #(((
8729 '') as_dir=./ ;;
8730 */) ;;
8731 *) as_dir=$as_dir/ ;;
8732 esac
8733 for ac_exec_ext in '' $ac_executable_extensions; do
8734 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8735 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8736 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8737 break 2
8738 fi
8739 done
8740 done
8741 IFS=$as_save_IFS
8742
8743 fi ;;
8744 esac
8745 fi
8746 LIPO=$ac_cv_prog_LIPO
8747 if test -n "$LIPO"; then
8748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8749 printf "%s\n" "$LIPO" >&6; }
8750 else
8751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8752 printf "%s\n" "no" >&6; }
8753 fi
8754
8755
8756 fi
8757 if test -z "$ac_cv_prog_LIPO"; then
8758 ac_ct_LIPO=$LIPO
8759 # Extract the first word of "lipo", so it can be a program name with args.
8760 set dummy lipo; ac_word=$2
8761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8762 printf %s "checking for $ac_word... " >&6; }
8763 if test ${ac_cv_prog_ac_ct_LIPO+y}
8764 then :
8765 printf %s "(cached) " >&6
8766 else case e in #(
8767 e) if test -n "$ac_ct_LIPO"; then
8768 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8769 else
8770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8771 for as_dir in $PATH
8772 do
8773 IFS=$as_save_IFS
8774 case $as_dir in #(((
8775 '') as_dir=./ ;;
8776 */) ;;
8777 *) as_dir=$as_dir/ ;;
8778 esac
8779 for ac_exec_ext in '' $ac_executable_extensions; do
8780 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8781 ac_cv_prog_ac_ct_LIPO="lipo"
8782 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8783 break 2
8784 fi
8785 done
8786 done
8787 IFS=$as_save_IFS
8788
8789 fi ;;
8790 esac
8791 fi
8792 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8793 if test -n "$ac_ct_LIPO"; then
8794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8795 printf "%s\n" "$ac_ct_LIPO" >&6; }
8796 else
8797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8798 printf "%s\n" "no" >&6; }
8799 fi
8800
8801 if test "x$ac_ct_LIPO" = x; then
8802 LIPO=":"
8803 else
8804 case $cross_compiling:$ac_tool_warned in
8805 yes:)
8806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8807 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8808 ac_tool_warned=yes ;;
8809 esac
8810 LIPO=$ac_ct_LIPO
8811 fi
8812 else
8813 LIPO="$ac_cv_prog_LIPO"
8814 fi
8815
8816 if test -n "$ac_tool_prefix"; then
8817 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8818 set dummy ${ac_tool_prefix}otool; ac_word=$2
8819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8820 printf %s "checking for $ac_word... " >&6; }
8821 if test ${ac_cv_prog_OTOOL+y}
8822 then :
8823 printf %s "(cached) " >&6
8824 else case e in #(
8825 e) if test -n "$OTOOL"; then
8826 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8827 else
8828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8829 for as_dir in $PATH
8830 do
8831 IFS=$as_save_IFS
8832 case $as_dir in #(((
8833 '') as_dir=./ ;;
8834 */) ;;
8835 *) as_dir=$as_dir/ ;;
8836 esac
8837 for ac_exec_ext in '' $ac_executable_extensions; do
8838 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8839 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8840 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8841 break 2
8842 fi
8843 done
8844 done
8845 IFS=$as_save_IFS
8846
8847 fi ;;
8848 esac
8849 fi
8850 OTOOL=$ac_cv_prog_OTOOL
8851 if test -n "$OTOOL"; then
8852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8853 printf "%s\n" "$OTOOL" >&6; }
8854 else
8855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8856 printf "%s\n" "no" >&6; }
8857 fi
8858
8859
8860 fi
8861 if test -z "$ac_cv_prog_OTOOL"; then
8862 ac_ct_OTOOL=$OTOOL
8863 # Extract the first word of "otool", so it can be a program name with args.
8864 set dummy otool; ac_word=$2
8865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8866 printf %s "checking for $ac_word... " >&6; }
8867 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8868 then :
8869 printf %s "(cached) " >&6
8870 else case e in #(
8871 e) if test -n "$ac_ct_OTOOL"; then
8872 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8873 else
8874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8875 for as_dir in $PATH
8876 do
8877 IFS=$as_save_IFS
8878 case $as_dir in #(((
8879 '') as_dir=./ ;;
8880 */) ;;
8881 *) as_dir=$as_dir/ ;;
8882 esac
8883 for ac_exec_ext in '' $ac_executable_extensions; do
8884 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8885 ac_cv_prog_ac_ct_OTOOL="otool"
8886 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8887 break 2
8888 fi
8889 done
8890 done
8891 IFS=$as_save_IFS
8892
8893 fi ;;
8894 esac
8895 fi
8896 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8897 if test -n "$ac_ct_OTOOL"; then
8898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8899 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8900 else
8901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8902 printf "%s\n" "no" >&6; }
8903 fi
8904
8905 if test "x$ac_ct_OTOOL" = x; then
8906 OTOOL=":"
8907 else
8908 case $cross_compiling:$ac_tool_warned in
8909 yes:)
8910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8911 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8912 ac_tool_warned=yes ;;
8913 esac
8914 OTOOL=$ac_ct_OTOOL
8915 fi
8916 else
8917 OTOOL="$ac_cv_prog_OTOOL"
8918 fi
8919
8920 if test -n "$ac_tool_prefix"; then
8921 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8922 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8924 printf %s "checking for $ac_word... " >&6; }
8925 if test ${ac_cv_prog_OTOOL64+y}
8926 then :
8927 printf %s "(cached) " >&6
8928 else case e in #(
8929 e) if test -n "$OTOOL64"; then
8930 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8931 else
8932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8933 for as_dir in $PATH
8934 do
8935 IFS=$as_save_IFS
8936 case $as_dir in #(((
8937 '') as_dir=./ ;;
8938 */) ;;
8939 *) as_dir=$as_dir/ ;;
8940 esac
8941 for ac_exec_ext in '' $ac_executable_extensions; do
8942 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8943 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8944 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8945 break 2
8946 fi
8947 done
8948 done
8949 IFS=$as_save_IFS
8950
8951 fi ;;
8952 esac
8953 fi
8954 OTOOL64=$ac_cv_prog_OTOOL64
8955 if test -n "$OTOOL64"; then
8956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8957 printf "%s\n" "$OTOOL64" >&6; }
8958 else
8959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8960 printf "%s\n" "no" >&6; }
8961 fi
8962
8963
8964 fi
8965 if test -z "$ac_cv_prog_OTOOL64"; then
8966 ac_ct_OTOOL64=$OTOOL64
8967 # Extract the first word of "otool64", so it can be a program name with args.
8968 set dummy otool64; ac_word=$2
8969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8970 printf %s "checking for $ac_word... " >&6; }
8971 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8972 then :
8973 printf %s "(cached) " >&6
8974 else case e in #(
8975 e) if test -n "$ac_ct_OTOOL64"; then
8976 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8977 else
8978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8979 for as_dir in $PATH
8980 do
8981 IFS=$as_save_IFS
8982 case $as_dir in #(((
8983 '') as_dir=./ ;;
8984 */) ;;
8985 *) as_dir=$as_dir/ ;;
8986 esac
8987 for ac_exec_ext in '' $ac_executable_extensions; do
8988 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8989 ac_cv_prog_ac_ct_OTOOL64="otool64"
8990 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8991 break 2
8992 fi
8993 done
8994 done
8995 IFS=$as_save_IFS
8996
8997 fi ;;
8998 esac
8999 fi
9000 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9001 if test -n "$ac_ct_OTOOL64"; then
9002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9003 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
9004 else
9005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9006 printf "%s\n" "no" >&6; }
9007 fi
9008
9009 if test "x$ac_ct_OTOOL64" = x; then
9010 OTOOL64=":"
9011 else
9012 case $cross_compiling:$ac_tool_warned in
9013 yes:)
9014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9015 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9016 ac_tool_warned=yes ;;
9017 esac
9018 OTOOL64=$ac_ct_OTOOL64
9019 fi
9020 else
9021 OTOOL64="$ac_cv_prog_OTOOL64"
9022 fi
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9051 printf %s "checking for -single_module linker flag... " >&6; }
9052 if test ${lt_cv_apple_cc_single_mod+y}
9053 then :
9054 printf %s "(cached) " >&6
9055 else case e in #(
9056 e) lt_cv_apple_cc_single_mod=no
9057 if test -z "$LT_MULTI_MODULE"; then
9058 # By default we will add the -single_module flag. You can override
9059 # by either setting the environment variable LT_MULTI_MODULE
9060 # non-empty at configure time, or by adding -multi_module to the
9061 # link flags.
9062 rm -rf libconftest.dylib*
9063 echo "int foo(void){return 1;}" > conftest.c
9064 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9065 -dynamiclib -Wl,-single_module conftest.c" >&5
9066 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9067 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9068 _lt_result=$?
9069 # If there is a non-empty error log, and "single_module"
9070 # appears in it, assume the flag caused a linker warning
9071 if test -s conftest.err && $GREP single_module conftest.err; then
9072 cat conftest.err >&5
9073 # Otherwise, if the output was created with a 0 exit code from
9074 # the compiler, it worked.
9075 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9076 lt_cv_apple_cc_single_mod=yes
9077 else
9078 cat conftest.err >&5
9079 fi
9080 rm -rf libconftest.dylib*
9081 rm -f conftest.*
9082 fi ;;
9083 esac
9084 fi
9085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9086 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
9087
9088 # Feature test to disable chained fixups since it is not
9089 # compatible with '-undefined dynamic_lookup'
9090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
9091 printf %s "checking for -no_fixup_chains linker flag... " >&6; }
9092 if test ${lt_cv_support_no_fixup_chains+y}
9093 then :
9094 printf %s "(cached) " >&6
9095 else case e in #(
9096 e) save_LDFLAGS=$LDFLAGS
9097 LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
9098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9099 /* end confdefs.h. */
9100
9101 int
9102 main (void)
9103 {
9104
9105 ;
9106 return 0;
9107 }
9108 _ACEOF
9109 if ac_fn_c_try_link "$LINENO"
9110 then :
9111 lt_cv_support_no_fixup_chains=yes
9112 else case e in #(
9113 e) lt_cv_support_no_fixup_chains=no
9114 ;;
9115 esac
9116 fi
9117 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9118 conftest$ac_exeext conftest.$ac_ext
9119 LDFLAGS=$save_LDFLAGS
9120
9121 ;;
9122 esac
9123 fi
9124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
9125 printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; }
9126
9127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9128 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
9129 if test ${lt_cv_ld_exported_symbols_list+y}
9130 then :
9131 printf %s "(cached) " >&6
9132 else case e in #(
9133 e) lt_cv_ld_exported_symbols_list=no
9134 save_LDFLAGS=$LDFLAGS
9135 echo "_main" > conftest.sym
9136 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9138 /* end confdefs.h. */
9139
9140 int
9141 main (void)
9142 {
9143
9144 ;
9145 return 0;
9146 }
9147 _ACEOF
9148 if ac_fn_c_try_link "$LINENO"
9149 then :
9150 lt_cv_ld_exported_symbols_list=yes
9151 else case e in #(
9152 e) lt_cv_ld_exported_symbols_list=no ;;
9153 esac
9154 fi
9155 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9156 conftest$ac_exeext conftest.$ac_ext
9157 LDFLAGS=$save_LDFLAGS
9158 ;;
9159 esac
9160 fi
9161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9162 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
9163
9164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9165 printf %s "checking for -force_load linker flag... " >&6; }
9166 if test ${lt_cv_ld_force_load+y}
9167 then :
9168 printf %s "(cached) " >&6
9169 else case e in #(
9170 e) lt_cv_ld_force_load=no
9171 cat > conftest.c << _LT_EOF
9172 int forced_loaded() { return 2;}
9173 _LT_EOF
9174 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9175 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9176 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
9177 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
9178 echo "$RANLIB libconftest.a" >&5
9179 $RANLIB libconftest.a 2>&5
9180 cat > conftest.c << _LT_EOF
9181 int main(void) { return 0;}
9182 _LT_EOF
9183 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9184 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9185 _lt_result=$?
9186 if test -s conftest.err && $GREP force_load conftest.err; then
9187 cat conftest.err >&5
9188 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9189 lt_cv_ld_force_load=yes
9190 else
9191 cat conftest.err >&5
9192 fi
9193 rm -f conftest.err libconftest.a conftest conftest.c
9194 rm -rf conftest.dSYM
9195 ;;
9196 esac
9197 fi
9198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9199 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
9200 case $host_os in
9201 rhapsody* | darwin1.[012])
9202 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9203 darwin1.*)
9204 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9205 darwin*)
9206 case $MACOSX_DEPLOYMENT_TARGET,$host in
9207 10.[012],*|,*powerpc*-darwin[5-8]*)
9208 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9209 *)
9210 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
9211 if test yes = "$lt_cv_support_no_fixup_chains"; then
9212 as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'
9213 fi
9214 ;;
9215 esac
9216 ;;
9217 esac
9218 if test yes = "$lt_cv_apple_cc_single_mod"; then
9219 _lt_dar_single_mod='$single_module'
9220 fi
9221 _lt_dar_needs_single_mod=no
9222 case $host_os in
9223 rhapsody* | darwin1.*)
9224 _lt_dar_needs_single_mod=yes ;;
9225 darwin*)
9226 # When targeting Mac OS X 10.4 (darwin 8) or later,
9227 # -single_module is the default and -multi_module is unsupported.
9228 # The toolchain on macOS 10.14 (darwin 18) and later cannot
9229 # target any OS version that needs -single_module.
9230 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9231 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*)
9232 _lt_dar_needs_single_mod=yes ;;
9233 esac
9234 ;;
9235 esac
9236 if test yes = "$lt_cv_ld_exported_symbols_list"; then
9237 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9238 else
9239 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9240 fi
9241 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9242 _lt_dsymutil='~$DSYMUTIL $lib || :'
9243 else
9244 _lt_dsymutil=
9245 fi
9246 ;;
9247 esac
9248
9249 # func_munge_path_list VARIABLE PATH
9250 # -----------------------------------
9251 # VARIABLE is name of variable containing _space_ separated list of
9252 # directories to be munged by the contents of PATH, which is string
9253 # having a format:
9254 # "DIR[:DIR]:"
9255 # string "DIR[ DIR]" will be prepended to VARIABLE
9256 # ":DIR[:DIR]"
9257 # string "DIR[ DIR]" will be appended to VARIABLE
9258 # "DIRP[:DIRP]::[DIRA:]DIRA"
9259 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9260 # "DIRA[ DIRA]" will be appended to VARIABLE
9261 # "DIR[:DIR]"
9262 # VARIABLE will be replaced by "DIR[ DIR]"
9263 func_munge_path_list ()
9264 {
9265 case x$2 in
9266 x)
9267 ;;
9268 *:)
9269 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9270 ;;
9271 x:*)
9272 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9273 ;;
9274 *::*)
9275 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9276 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9277 ;;
9278 *)
9279 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9280 ;;
9281 esac
9282 }
9283
9284 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9285 "
9286 if test "x$ac_cv_header_dlfcn_h" = xyes
9287 then :
9288 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
9289
9290 fi
9291
9292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
9293 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
9294 if test ${ac_cv_c_undeclared_builtin_options+y}
9295 then :
9296 printf %s "(cached) " >&6
9297 else case e in #(
9298 e) ac_save_CFLAGS=$CFLAGS
9299 ac_cv_c_undeclared_builtin_options='cannot detect'
9300 for ac_arg in '' -fno-builtin; do
9301 CFLAGS="$ac_save_CFLAGS $ac_arg"
9302 # This test program should *not* compile successfully.
9303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9304 /* end confdefs.h. */
9305
9306 int
9307 main (void)
9308 {
9309 (void) strchr;
9310 ;
9311 return 0;
9312 }
9313 _ACEOF
9314 if ac_fn_c_try_compile "$LINENO"
9315 then :
9316
9317 else case e in #(
9318 e) # This test program should compile successfully.
9319 # No library function is consistently available on
9320 # freestanding implementations, so test against a dummy
9321 # declaration. Include always-available headers on the
9322 # off chance that they somehow elicit warnings.
9323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9324 /* end confdefs.h. */
9325 #include <float.h>
9326 #include <limits.h>
9327 #include <stdarg.h>
9328 #include <stddef.h>
9329 extern void ac_decl (int, char *);
9330
9331 int
9332 main (void)
9333 {
9334 (void) ac_decl (0, (char *) 0);
9335 (void) ac_decl;
9336
9337 ;
9338 return 0;
9339 }
9340 _ACEOF
9341 if ac_fn_c_try_compile "$LINENO"
9342 then :
9343 if test x"$ac_arg" = x
9344 then :
9345 ac_cv_c_undeclared_builtin_options='none needed'
9346 else case e in #(
9347 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
9348 esac
9349 fi
9350 break
9351 fi
9352 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9353 esac
9354 fi
9355 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9356 done
9357 CFLAGS=$ac_save_CFLAGS
9358 ;;
9359 esac
9360 fi
9361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
9362 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
9363 case $ac_cv_c_undeclared_builtin_options in #(
9364 'cannot detect') :
9365 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
9366 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
9367 as_fn_error $? "cannot make $CC report undeclared builtins
9368 See 'config.log' for more details" "$LINENO" 5; } ;; #(
9369 'none needed') :
9370 ac_c_undeclared_builtin_options='' ;; #(
9371 *) :
9372 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
9373 esac
9374
9375 echo 'tldbg:KPSE_COMMON called (pkg=upmendex, amopt=no-define)' >&5
9376 echo 'tldbg:KPSE_BASIC called (pkg=upmendex, amopt=no-define)' >&5
9377
9378 #
9379 # am_init_automake
9380 if test "`cd $srcdir && pwd`" != "`pwd`"; then
9381 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
9382 # is not polluted with repeated "-I."
9383 am__isrc=' -I$(srcdir)'
9384 # test to see if srcdir already configured
9385 if test -f $srcdir/config.status; then
9386 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
9387 fi
9388 fi
9389
9390 # test whether we have cygpath
9391 if test -z "$CYGPATH_W"; then
9392 if (cygpath --version) >/dev/null 2>/dev/null; then
9393 CYGPATH_W='cygpath -w'
9394 else
9395 CYGPATH_W=echo
9396 fi
9397 fi
9398
9399
9400 # Define the identity of the package.
9401 PACKAGE='upmendex--tex-live-'
9402 VERSION='1.22'
9403
9404
9405 # Some tools Automake needs.
9406
9407 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
9408
9409
9410 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
9411
9412
9413 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
9414
9415
9416 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
9417
9418
9419 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
9420
9421 # For better backward compatibility. To be removed once Automake 1.9.x
9422 # dies out for good. For more background, see:
9423 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
9424 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
9425 mkdir_p='$(MKDIR_P)'
9426
9427 # We need awk for the "check" target (and possibly the TAP driver). The
9428 # system "awk" is bad on some platforms.
9429 # Always define AMTAR for backward compatibility. Yes, it's still used
9430 # in the wild :-( We should find a proper way to deprecate it ...
9431 AMTAR='$${TAR-tar}'
9432
9433
9434 # We'll loop over all known methods to create a tar archive until one works.
9435 _am_tools='gnutar plaintar pax cpio none'
9436
9437 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
9438 # There is notably a 21 bits limit for the UID and the GID. In fact,
9439 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
9440 # and bug#13588).
9441 am_max_uid=2097151 # 2^21 - 1
9442 am_max_gid=$am_max_uid
9443 # The $UID and $GID variables are not portable, so we need to resort
9444 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
9445 # below are definitely unexpected, so allow the users to see them
9446 # (that is, avoid stderr redirection).
9447 am_uid=`id -u || echo unknown`
9448 am_gid=`id -g || echo unknown`
9449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
9450 printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
9451 if test x$am_uid = xunknown; then
9452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&5
9453 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&2;}
9454 elif test $am_uid -le $am_max_uid; then
9455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9456 printf "%s\n" "yes" >&6; }
9457 else
9458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9459 printf "%s\n" "no" >&6; }
9460 _am_tools=none
9461 fi
9462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
9463 printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
9464 if test x$gm_gid = xunknown; then
9465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&5
9466 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&2;}
9467 elif test $am_gid -le $am_max_gid; then
9468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9469 printf "%s\n" "yes" >&6; }
9470 else
9471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9472 printf "%s\n" "no" >&6; }
9473 _am_tools=none
9474 fi
9475
9476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
9477 printf %s "checking how to create a ustar tar archive... " >&6; }
9478
9479 # Go ahead even if we have the value already cached. We do so because we
9480 # need to set the values for the 'am__tar' and 'am__untar' variables.
9481 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
9482
9483 for _am_tool in $_am_tools; do
9484 case $_am_tool in
9485 gnutar)
9486 for _am_tar in tar gnutar gtar; do
9487 { echo "$as_me:$LINENO: $_am_tar --version" >&5
9488 ($_am_tar --version) >&5 2>&5
9489 ac_status=$?
9490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9491 (exit $ac_status); } && break
9492 done
9493 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
9494 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
9495 am__untar="$_am_tar -xf -"
9496 ;;
9497 plaintar)
9498 # Must skip GNU tar: if it does not support --format= it doesn't create
9499 # ustar tarball either.
9500 (tar --version) >/dev/null 2>&1 && continue
9501 am__tar='tar chf - "$$tardir"'
9502 am__tar_='tar chf - "$tardir"'
9503 am__untar='tar xf -'
9504 ;;
9505 pax)
9506 am__tar='pax -L -x ustar -w "$$tardir"'
9507 am__tar_='pax -L -x ustar -w "$tardir"'
9508 am__untar='pax -r'
9509 ;;
9510 cpio)
9511 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
9512 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
9513 am__untar='cpio -i -H ustar -d'
9514 ;;
9515 none)
9516 am__tar=false
9517 am__tar_=false
9518 am__untar=false
9519 ;;
9520 esac
9521
9522 # If the value was cached, stop now. We just wanted to have am__tar
9523 # and am__untar set.
9524 test -n "${am_cv_prog_tar_ustar}" && break
9525
9526 # tar/untar a dummy directory, and stop if the command works.
9527 rm -rf conftest.dir
9528 mkdir conftest.dir
9529 echo GrepMe > conftest.dir/file
9530 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
9531 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
9532 ac_status=$?
9533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9534 (exit $ac_status); }
9535 rm -rf conftest.dir
9536 if test -s conftest.tar; then
9537 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
9538 ($am__untar <conftest.tar) >&5 2>&5
9539 ac_status=$?
9540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9541 (exit $ac_status); }
9542 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
9543 (cat conftest.dir/file) >&5 2>&5
9544 ac_status=$?
9545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9546 (exit $ac_status); }
9547 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
9548 fi
9549 done
9550 rm -rf conftest.dir
9551
9552 if test ${am_cv_prog_tar_ustar+y}
9553 then :
9554 printf %s "(cached) " >&6
9555 else case e in #(
9556 e) am_cv_prog_tar_ustar=$_am_tool ;;
9557 esac
9558 fi
9559
9560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
9561 printf "%s\n" "$am_cv_prog_tar_ustar" >&6; }
9562
9563
9564
9565
9566
9567 # Variables for tags utilities; see am/tags.am
9568 if test -z "$CTAGS"; then
9569 CTAGS=ctags
9570 fi
9571
9572 if test -z "$ETAGS"; then
9573 ETAGS=etags
9574 fi
9575
9576 if test -z "$CSCOPE"; then
9577 CSCOPE=cscope
9578 fi
9579
9580
9581
9582
9583
9584
9585
9586
9587 # am_maintainer_mode
9588
9589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
9590 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
9591 # Check whether --enable-maintainer-mode was given.
9592 if test ${enable_maintainer_mode+y}
9593 then :
9594 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
9595 else case e in #(
9596 e) USE_MAINTAINER_MODE=no ;;
9597 esac
9598 fi
9599
9600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
9601 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
9602 if test $USE_MAINTAINER_MODE = yes; then
9603 MAINTAINER_MODE_TRUE=
9604 MAINTAINER_MODE_FALSE='#'
9605 else
9606 MAINTAINER_MODE_TRUE='#'
9607 MAINTAINER_MODE_FALSE=
9608 fi
9609
9610 MAINT=$MAINTAINER_MODE_TRUE
9611
9612
9613
9614 # See comments in kpse-setup.m4 about system extensions.
9615
9616
9617 # Check whether prototypes work.
9618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts prototypes" >&5
9619 printf %s "checking whether the compiler accepts prototypes... " >&6; }
9620 if test ${kb_cv_c_prototypes+y}
9621 then :
9622 printf %s "(cached) " >&6
9623 else case e in #(
9624 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9625 /* end confdefs.h. */
9626 #include <stdarg.h>
9627 int
9628 main (void)
9629 {
9630 extern void foo(int i,...);
9631 ;
9632 return 0;
9633 }
9634 _ACEOF
9635 if ac_fn_c_try_link "$LINENO"
9636 then :
9637 kb_cv_c_prototypes=yes
9638 else case e in #(
9639 e) kb_cv_c_prototypes=no ;;
9640 esac
9641 fi
9642 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9643 conftest$ac_exeext conftest.$ac_ext ;;
9644 esac
9645 fi
9646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kb_cv_c_prototypes" >&5
9647 printf "%s\n" "$kb_cv_c_prototypes" >&6; }
9648 if test "x$kb_cv_c_prototypes" = xno; then
9649 as_fn_error $? "Sorry, your compiler does not understand prototypes." "$LINENO" 5
9650 fi
9651
9652 # kpse_compiler_warnings options.
9653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking what warning flags to pass to the C compiler" >&5
9654 printf %s "checking what warning flags to pass to the C compiler... " >&6; }
9655 if test ${kpse_cv_warning_cflags+y}
9656 then :
9657 printf %s "(cached) " >&6
9658 else case e in #(
9659 e) if test "x$GCC" = xyes; then
9660 kpse_cv_warning_cflags=
9661 if test "x$enable_compiler_warnings" != xno; then
9662 kpse_cv_warning_cflags="-Wimplicit -Wreturn-type"
9663 case `$CC -dumpversion` in #(
9664 3.4.* | 4.* | 5.*) :
9665 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wdeclaration-after-statement" ;; #(
9666 *) :
9667 ;;
9668 esac
9669 case `$CC -dumpversion` in #(
9670 3.[234].* | 4.* | 5.*) :
9671 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wno-unknown-pragmas" ;; #(
9672 *) :
9673 ;;
9674 esac
9675 if test "x$enable_compiler_warnings" != xmin; then
9676 kpse_cv_warning_cflags="-Wall -Wunused $kpse_cv_warning_cflags"
9677 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wmissing-prototypes -Wmissing-declarations"
9678 if test "x$enable_compiler_warnings" != xyes; then
9679 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wparentheses -Wswitch -Wtrigraphs -Wpointer-arith"
9680 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wcast-qual -Wcast-align -Wwrite-strings"
9681 case `$CC -dumpversion` in #(
9682 3.4.* | 4.* | 5.*) :
9683 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wold-style-definition" ;; #(
9684 *) :
9685 ;;
9686 esac
9687 if test "x$enable_compiler_warnings" != xmax; then
9688 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wshadow"
9689 fi
9690 fi
9691 fi
9692 fi
9693 elif test "x$enable_compiler_warnings" = xno; then
9694 kpse_cv_warning_cflags=
9695 else
9696 kpse_cv_warning_cflags= # FIXME: warning flags for non-GNU C compilers
9697 fi ;;
9698 esac
9699 fi
9700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_warning_cflags" >&5
9701 printf "%s\n" "$kpse_cv_warning_cflags" >&6; }
9702 WARNING_CFLAGS=$kpse_cv_warning_cflags
9703
9704
9705
9706
9707
9708
9709
9710 # end of kpse_basic macro.
9711 echo 'tldbg:KPSE_BASIC done (pkg=upmendex, amopt=no-define)' >&5
9712
9713 # am_prog_ar must be called before lt_init.
9714
9715 if test -n "$ac_tool_prefix"; then
9716 for ac_prog in ar lib "link -lib"
9717 do
9718 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9719 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9721 printf %s "checking for $ac_word... " >&6; }
9722 if test ${ac_cv_prog_AR+y}
9723 then :
9724 printf %s "(cached) " >&6
9725 else case e in #(
9726 e) if test -n "$AR"; then
9727 ac_cv_prog_AR="$AR" # Let the user override the test.
9728 else
9729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9730 for as_dir in $PATH
9731 do
9732 IFS=$as_save_IFS
9733 case $as_dir in #(((
9734 '') as_dir=./ ;;
9735 */) ;;
9736 *) as_dir=$as_dir/ ;;
9737 esac
9738 for ac_exec_ext in '' $ac_executable_extensions; do
9739 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9740 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
9741 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9742 break 2
9743 fi
9744 done
9745 done
9746 IFS=$as_save_IFS
9747
9748 fi ;;
9749 esac
9750 fi
9751 AR=$ac_cv_prog_AR
9752 if test -n "$AR"; then
9753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9754 printf "%s\n" "$AR" >&6; }
9755 else
9756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9757 printf "%s\n" "no" >&6; }
9758 fi
9759
9760
9761 test -n "$AR" && break
9762 done
9763 fi
9764 if test -z "$AR"; then
9765 ac_ct_AR=$AR
9766 for ac_prog in ar lib "link -lib"
9767 do
9768 # Extract the first word of "$ac_prog", so it can be a program name with args.
9769 set dummy $ac_prog; ac_word=$2
9770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9771 printf %s "checking for $ac_word... " >&6; }
9772 if test ${ac_cv_prog_ac_ct_AR+y}
9773 then :
9774 printf %s "(cached) " >&6
9775 else case e in #(
9776 e) if test -n "$ac_ct_AR"; then
9777 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9778 else
9779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9780 for as_dir in $PATH
9781 do
9782 IFS=$as_save_IFS
9783 case $as_dir in #(((
9784 '') as_dir=./ ;;
9785 */) ;;
9786 *) as_dir=$as_dir/ ;;
9787 esac
9788 for ac_exec_ext in '' $ac_executable_extensions; do
9789 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9790 ac_cv_prog_ac_ct_AR="$ac_prog"
9791 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9792 break 2
9793 fi
9794 done
9795 done
9796 IFS=$as_save_IFS
9797
9798 fi ;;
9799 esac
9800 fi
9801 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9802 if test -n "$ac_ct_AR"; then
9803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9804 printf "%s\n" "$ac_ct_AR" >&6; }
9805 else
9806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9807 printf "%s\n" "no" >&6; }
9808 fi
9809
9810
9811 test -n "$ac_ct_AR" && break
9812 done
9813
9814 if test "x$ac_ct_AR" = x; then
9815 AR="false"
9816 else
9817 case $cross_compiling:$ac_tool_warned in
9818 yes:)
9819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9820 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9821 ac_tool_warned=yes ;;
9822 esac
9823 AR=$ac_ct_AR
9824 fi
9825 fi
9826
9827 : ${AR=ar}
9828 : ${ARFLAGS=cr}
9829
9830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
9831 printf %s "checking the archiver ($AR) interface... " >&6; }
9832 if test ${am_cv_ar_interface+y}
9833 then :
9834 printf %s "(cached) " >&6
9835 else case e in #(
9836 e) ac_ext=c
9837 ac_cpp='$CPP $CPPFLAGS'
9838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9841
9842 am_cv_ar_interface=ar
9843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9844 /* end confdefs.h. */
9845 int some_variable = 0;
9846 _ACEOF
9847 if ac_fn_c_try_compile "$LINENO"
9848 then :
9849 am_ar_try='$AR $ARFLAGS libconftest.a conftest.$ac_objext >&5'
9850 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
9851 (eval $am_ar_try) 2>&5
9852 ac_status=$?
9853 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9854 test $ac_status = 0; }
9855 if test "$ac_status" -eq 0; then
9856 am_cv_ar_interface=ar
9857 else
9858 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
9859 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
9860 (eval $am_ar_try) 2>&5
9861 ac_status=$?
9862 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9863 test $ac_status = 0; }
9864 if test "$ac_status" -eq 0; then
9865 am_cv_ar_interface=lib
9866 else
9867 am_cv_ar_interface=unknown
9868 fi
9869 fi
9870 rm -f conftest.lib libconftest.a
9871
9872 fi
9873 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9874 ac_ext=c
9875 ac_cpp='$CPP $CPPFLAGS'
9876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9879 ;;
9880 esac
9881 fi
9882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
9883 printf "%s\n" "$am_cv_ar_interface" >&6; }
9884
9885 case $am_cv_ar_interface in
9886 ar)
9887 ;;
9888 lib)
9889 # Microsoft lib, so override with the ar-lib wrapper script.
9890 # FIXME: It is wrong to rewrite AR.
9891 # But if we don't then we get into trouble of one sort or another.
9892 # A longer-term fix would be to have automake use am__AR in this case,
9893 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
9894 # similar.
9895 AR="$am_aux_dir/ar-lib $AR"
9896 ;;
9897 unknown)
9898 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
9899 ;;
9900 esac
9901
9902 # (end am_prog_ar)
9903 # starting lt_prereq + lt_init.
9904
9905
9906
9907
9908
9909 # Set options
9910 enable_win32_dll=yes
9911
9912 case $host in
9913 *-*-cygwin* | *-*-mingw* | *-*-windows* | *-*-pw32* | *-*-cegcc*)
9914 if test -n "$ac_tool_prefix"; then
9915 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
9916 set dummy ${ac_tool_prefix}as; ac_word=$2
9917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9918 printf %s "checking for $ac_word... " >&6; }
9919 if test ${ac_cv_prog_AS+y}
9920 then :
9921 printf %s "(cached) " >&6
9922 else case e in #(
9923 e) if test -n "$AS"; then
9924 ac_cv_prog_AS="$AS" # Let the user override the test.
9925 else
9926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9927 for as_dir in $PATH
9928 do
9929 IFS=$as_save_IFS
9930 case $as_dir in #(((
9931 '') as_dir=./ ;;
9932 */) ;;
9933 *) as_dir=$as_dir/ ;;
9934 esac
9935 for ac_exec_ext in '' $ac_executable_extensions; do
9936 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9937 ac_cv_prog_AS="${ac_tool_prefix}as"
9938 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9939 break 2
9940 fi
9941 done
9942 done
9943 IFS=$as_save_IFS
9944
9945 fi ;;
9946 esac
9947 fi
9948 AS=$ac_cv_prog_AS
9949 if test -n "$AS"; then
9950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
9951 printf "%s\n" "$AS" >&6; }
9952 else
9953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9954 printf "%s\n" "no" >&6; }
9955 fi
9956
9957
9958 fi
9959 if test -z "$ac_cv_prog_AS"; then
9960 ac_ct_AS=$AS
9961 # Extract the first word of "as", so it can be a program name with args.
9962 set dummy as; ac_word=$2
9963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9964 printf %s "checking for $ac_word... " >&6; }
9965 if test ${ac_cv_prog_ac_ct_AS+y}
9966 then :
9967 printf %s "(cached) " >&6
9968 else case e in #(
9969 e) if test -n "$ac_ct_AS"; then
9970 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
9971 else
9972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9973 for as_dir in $PATH
9974 do
9975 IFS=$as_save_IFS
9976 case $as_dir in #(((
9977 '') as_dir=./ ;;
9978 */) ;;
9979 *) as_dir=$as_dir/ ;;
9980 esac
9981 for ac_exec_ext in '' $ac_executable_extensions; do
9982 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9983 ac_cv_prog_ac_ct_AS="as"
9984 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9985 break 2
9986 fi
9987 done
9988 done
9989 IFS=$as_save_IFS
9990
9991 fi ;;
9992 esac
9993 fi
9994 ac_ct_AS=$ac_cv_prog_ac_ct_AS
9995 if test -n "$ac_ct_AS"; then
9996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
9997 printf "%s\n" "$ac_ct_AS" >&6; }
9998 else
9999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10000 printf "%s\n" "no" >&6; }
10001 fi
10002
10003 if test "x$ac_ct_AS" = x; then
10004 AS="false"
10005 else
10006 case $cross_compiling:$ac_tool_warned in
10007 yes:)
10008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10009 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10010 ac_tool_warned=yes ;;
10011 esac
10012 AS=$ac_ct_AS
10013 fi
10014 else
10015 AS="$ac_cv_prog_AS"
10016 fi
10017
10018 if test -n "$ac_tool_prefix"; then
10019 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10020 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10022 printf %s "checking for $ac_word... " >&6; }
10023 if test ${ac_cv_prog_DLLTOOL+y}
10024 then :
10025 printf %s "(cached) " >&6
10026 else case e in #(
10027 e) if test -n "$DLLTOOL"; then
10028 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10029 else
10030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10031 for as_dir in $PATH
10032 do
10033 IFS=$as_save_IFS
10034 case $as_dir in #(((
10035 '') as_dir=./ ;;
10036 */) ;;
10037 *) as_dir=$as_dir/ ;;
10038 esac
10039 for ac_exec_ext in '' $ac_executable_extensions; do
10040 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10041 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10042 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10043 break 2
10044 fi
10045 done
10046 done
10047 IFS=$as_save_IFS
10048
10049 fi ;;
10050 esac
10051 fi
10052 DLLTOOL=$ac_cv_prog_DLLTOOL
10053 if test -n "$DLLTOOL"; then
10054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10055 printf "%s\n" "$DLLTOOL" >&6; }
10056 else
10057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10058 printf "%s\n" "no" >&6; }
10059 fi
10060
10061
10062 fi
10063 if test -z "$ac_cv_prog_DLLTOOL"; then
10064 ac_ct_DLLTOOL=$DLLTOOL
10065 # Extract the first word of "dlltool", so it can be a program name with args.
10066 set dummy dlltool; ac_word=$2
10067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10068 printf %s "checking for $ac_word... " >&6; }
10069 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
10070 then :
10071 printf %s "(cached) " >&6
10072 else case e in #(
10073 e) if test -n "$ac_ct_DLLTOOL"; then
10074 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10075 else
10076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10077 for as_dir in $PATH
10078 do
10079 IFS=$as_save_IFS
10080 case $as_dir in #(((
10081 '') as_dir=./ ;;
10082 */) ;;
10083 *) as_dir=$as_dir/ ;;
10084 esac
10085 for ac_exec_ext in '' $ac_executable_extensions; do
10086 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10087 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10088 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10089 break 2
10090 fi
10091 done
10092 done
10093 IFS=$as_save_IFS
10094
10095 fi ;;
10096 esac
10097 fi
10098 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10099 if test -n "$ac_ct_DLLTOOL"; then
10100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10101 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
10102 else
10103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10104 printf "%s\n" "no" >&6; }
10105 fi
10106
10107 if test "x$ac_ct_DLLTOOL" = x; then
10108 DLLTOOL="false"
10109 else
10110 case $cross_compiling:$ac_tool_warned in
10111 yes:)
10112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10113 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10114 ac_tool_warned=yes ;;
10115 esac
10116 DLLTOOL=$ac_ct_DLLTOOL
10117 fi
10118 else
10119 DLLTOOL="$ac_cv_prog_DLLTOOL"
10120 fi
10121
10122 if test -n "$ac_tool_prefix"; then
10123 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10124 set dummy ${ac_tool_prefix}objdump; ac_word=$2
10125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10126 printf %s "checking for $ac_word... " >&6; }
10127 if test ${ac_cv_prog_OBJDUMP+y}
10128 then :
10129 printf %s "(cached) " >&6
10130 else case e in #(
10131 e) if test -n "$OBJDUMP"; then
10132 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10133 else
10134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10135 for as_dir in $PATH
10136 do
10137 IFS=$as_save_IFS
10138 case $as_dir in #(((
10139 '') as_dir=./ ;;
10140 */) ;;
10141 *) as_dir=$as_dir/ ;;
10142 esac
10143 for ac_exec_ext in '' $ac_executable_extensions; do
10144 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10145 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10146 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10147 break 2
10148 fi
10149 done
10150 done
10151 IFS=$as_save_IFS
10152
10153 fi ;;
10154 esac
10155 fi
10156 OBJDUMP=$ac_cv_prog_OBJDUMP
10157 if test -n "$OBJDUMP"; then
10158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10159 printf "%s\n" "$OBJDUMP" >&6; }
10160 else
10161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10162 printf "%s\n" "no" >&6; }
10163 fi
10164
10165
10166 fi
10167 if test -z "$ac_cv_prog_OBJDUMP"; then
10168 ac_ct_OBJDUMP=$OBJDUMP
10169 # Extract the first word of "objdump", so it can be a program name with args.
10170 set dummy objdump; ac_word=$2
10171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10172 printf %s "checking for $ac_word... " >&6; }
10173 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
10174 then :
10175 printf %s "(cached) " >&6
10176 else case e in #(
10177 e) if test -n "$ac_ct_OBJDUMP"; then
10178 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10179 else
10180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10181 for as_dir in $PATH
10182 do
10183 IFS=$as_save_IFS
10184 case $as_dir in #(((
10185 '') as_dir=./ ;;
10186 */) ;;
10187 *) as_dir=$as_dir/ ;;
10188 esac
10189 for ac_exec_ext in '' $ac_executable_extensions; do
10190 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10191 ac_cv_prog_ac_ct_OBJDUMP="objdump"
10192 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10193 break 2
10194 fi
10195 done
10196 done
10197 IFS=$as_save_IFS
10198
10199 fi ;;
10200 esac
10201 fi
10202 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10203 if test -n "$ac_ct_OBJDUMP"; then
10204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10205 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
10206 else
10207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10208 printf "%s\n" "no" >&6; }
10209 fi
10210
10211 if test "x$ac_ct_OBJDUMP" = x; then
10212 OBJDUMP="false"
10213 else
10214 case $cross_compiling:$ac_tool_warned in
10215 yes:)
10216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10217 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10218 ac_tool_warned=yes ;;
10219 esac
10220 OBJDUMP=$ac_ct_OBJDUMP
10221 fi
10222 else
10223 OBJDUMP="$ac_cv_prog_OBJDUMP"
10224 fi
10225
10226 ;;
10227 esac
10228
10229 test -z "$AS" && AS=as
10230
10231
10232
10233
10234
10235 test -z "$DLLTOOL" && DLLTOOL=dlltool
10236
10237
10238
10239
10240
10241 test -z "$OBJDUMP" && OBJDUMP=objdump
10242
10243
10244
10245
10246
10247
10248
10249 enable_dlopen=no
10250
10251
10252
10253 # Check whether --enable-shared was given.
10254 if test ${enable_shared+y}
10255 then :
10256 enableval=$enable_shared; p=${PACKAGE-default}
10257 case $enableval in
10258 yes) enable_shared=yes ;;
10259 no) enable_shared=no ;;
10260 *)
10261 enable_shared=no
10262 # Look at the argument we got. We use all the common list separators.
10263 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10264 for pkg in $enableval; do
10265 IFS=$lt_save_ifs
10266 if test "X$pkg" = "X$p"; then
10267 enable_shared=yes
10268 fi
10269 done
10270 IFS=$lt_save_ifs
10271 ;;
10272 esac
10273 else case e in #(
10274 e) enable_shared=yes ;;
10275 esac
10276 fi
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286 # Check whether --enable-static was given.
10287 if test ${enable_static+y}
10288 then :
10289 enableval=$enable_static; p=${PACKAGE-default}
10290 case $enableval in
10291 yes) enable_static=yes ;;
10292 no) enable_static=no ;;
10293 *)
10294 enable_static=no
10295 # Look at the argument we got. We use all the common list separators.
10296 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10297 for pkg in $enableval; do
10298 IFS=$lt_save_ifs
10299 if test "X$pkg" = "X$p"; then
10300 enable_static=yes
10301 fi
10302 done
10303 IFS=$lt_save_ifs
10304 ;;
10305 esac
10306 else case e in #(
10307 e) enable_static=yes ;;
10308 esac
10309 fi
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319 # Check whether --enable-pic was given.
10320 if test ${enable_pic+y}
10321 then :
10322 enableval=$enable_pic; lt_p=${PACKAGE-default}
10323 case $enableval in
10324 yes|no) pic_mode=$enableval ;;
10325 *)
10326 pic_mode=default
10327 # Look at the argument we got. We use all the common list separators.
10328 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10329 for lt_pkg in $enableval; do
10330 IFS=$lt_save_ifs
10331 if test "X$lt_pkg" = "X$lt_p"; then
10332 pic_mode=yes
10333 fi
10334 done
10335 IFS=$lt_save_ifs
10336 ;;
10337 esac
10338 else case e in #(
10339 e) # Check whether --with-pic was given.
10340 if test ${with_pic+y}
10341 then :
10342 withval=$with_pic; lt_p=${PACKAGE-default}
10343 case $withval in
10344 yes|no) pic_mode=$withval ;;
10345 *)
10346 pic_mode=default
10347 # Look at the argument we got. We use all the common list separators.
10348 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10349 for lt_pkg in $withval; do
10350 IFS=$lt_save_ifs
10351 if test "X$lt_pkg" = "X$lt_p"; then
10352 pic_mode=yes
10353 fi
10354 done
10355 IFS=$lt_save_ifs
10356 ;;
10357 esac
10358 else case e in #(
10359 e) pic_mode=default ;;
10360 esac
10361 fi
10362
10363 ;;
10364 esac
10365 fi
10366
10367
10368
10369
10370
10371
10372
10373
10374 # Check whether --enable-fast-install was given.
10375 if test ${enable_fast_install+y}
10376 then :
10377 enableval=$enable_fast_install; p=${PACKAGE-default}
10378 case $enableval in
10379 yes) enable_fast_install=yes ;;
10380 no) enable_fast_install=no ;;
10381 *)
10382 enable_fast_install=no
10383 # Look at the argument we got. We use all the common list separators.
10384 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10385 for pkg in $enableval; do
10386 IFS=$lt_save_ifs
10387 if test "X$pkg" = "X$p"; then
10388 enable_fast_install=yes
10389 fi
10390 done
10391 IFS=$lt_save_ifs
10392 ;;
10393 esac
10394 else case e in #(
10395 e) enable_fast_install=yes ;;
10396 esac
10397 fi
10398
10399
10400
10401
10402
10403
10404
10405
10406 shared_archive_member_spec=
10407 case $host,$enable_shared in
10408 power*-*-aix[5-9]*,yes)
10409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
10410 printf %s "checking which variant of shared library versioning to provide... " >&6; }
10411 # Check whether --enable-aix-soname was given.
10412 if test ${enable_aix_soname+y}
10413 then :
10414 enableval=$enable_aix_soname; case $enableval in
10415 aix|svr4|both)
10416 ;;
10417 *)
10418 as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5
10419 ;;
10420 esac
10421 lt_cv_with_aix_soname=$enable_aix_soname
10422 else case e in #(
10423 e) # Check whether --with-aix-soname was given.
10424 if test ${with_aix_soname+y}
10425 then :
10426 withval=$with_aix_soname; case $withval in
10427 aix|svr4|both)
10428 ;;
10429 *)
10430 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
10431 ;;
10432 esac
10433 lt_cv_with_aix_soname=$with_aix_soname
10434 else case e in #(
10435 e) if test ${lt_cv_with_aix_soname+y}
10436 then :
10437 printf %s "(cached) " >&6
10438 else case e in #(
10439 e) lt_cv_with_aix_soname=aix ;;
10440 esac
10441 fi
10442 ;;
10443 esac
10444 fi
10445
10446 enable_aix_soname=$lt_cv_with_aix_soname ;;
10447 esac
10448 fi
10449
10450 with_aix_soname=$enable_aix_soname
10451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
10452 printf "%s\n" "$with_aix_soname" >&6; }
10453 if test aix != "$with_aix_soname"; then
10454 # For the AIX way of multilib, we name the shared archive member
10455 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10456 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10457 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10458 # the AIX toolchain works better with OBJECT_MODE set (default 32).
10459 if test 64 = "${OBJECT_MODE-32}"; then
10460 shared_archive_member_spec=shr_64
10461 else
10462 shared_archive_member_spec=shr
10463 fi
10464 fi
10465 ;;
10466 *)
10467 with_aix_soname=aix
10468 ;;
10469 esac
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480 # This can be used to rebuild libtool when needed
10481 LIBTOOL_DEPS=$ltmain
10482
10483 # Always use our own libtool.
10484 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515 test -z "$LN_S" && LN_S="ln -s"
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530 if test -n "${ZSH_VERSION+set}"; then
10531 setopt NO_GLOB_SUBST
10532 fi
10533
10534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10535 printf %s "checking for objdir... " >&6; }
10536 if test ${lt_cv_objdir+y}
10537 then :
10538 printf %s "(cached) " >&6
10539 else case e in #(
10540 e) rm -f .libs 2>/dev/null
10541 mkdir .libs 2>/dev/null
10542 if test -d .libs; then
10543 lt_cv_objdir=.libs
10544 else
10545 # MS-DOS does not allow filenames that begin with a dot.
10546 lt_cv_objdir=_libs
10547 fi
10548 rmdir .libs 2>/dev/null ;;
10549 esac
10550 fi
10551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10552 printf "%s\n" "$lt_cv_objdir" >&6; }
10553 objdir=$lt_cv_objdir
10554
10555
10556
10557
10558
10559 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
10560
10561
10562
10563
10564 case $host_os in
10565 aix3*)
10566 # AIX sometimes has problems with the GCC collect2 program. For some
10567 # reason, if we set the COLLECT_NAMES environment variable, the problems
10568 # vanish in a puff of smoke.
10569 if test set != "${COLLECT_NAMES+set}"; then
10570 COLLECT_NAMES=
10571 export COLLECT_NAMES
10572 fi
10573 ;;
10574 esac
10575
10576 # Global variables:
10577 ofile=libtool
10578 can_build_shared=yes
10579
10580 # All known linkers require a '.a' archive for static linking (except MSVC and
10581 # ICC, which need '.lib').
10582 libext=a
10583
10584 with_gnu_ld=$lt_cv_prog_gnu_ld
10585
10586 old_CC=$CC
10587 old_CFLAGS=$CFLAGS
10588
10589 # Set sane defaults for various variables
10590 test -z "$CC" && CC=cc
10591 test -z "$LTCC" && LTCC=$CC
10592 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10593 test -z "$LD" && LD=ld
10594 test -z "$ac_objext" && ac_objext=o
10595
10596 func_cc_basename $compiler
10597 cc_basename=$func_cc_basename_result
10598
10599
10600 # Only perform the check for file, if the check method requires it
10601 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10602 case $deplibs_check_method in
10603 file_magic*)
10604 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10606 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
10607 if test ${lt_cv_path_MAGIC_CMD+y}
10608 then :
10609 printf %s "(cached) " >&6
10610 else case e in #(
10611 e) case $MAGIC_CMD in
10612 [\\/*] | ?:[\\/]*)
10613 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10614 ;;
10615 *)
10616 lt_save_MAGIC_CMD=$MAGIC_CMD
10617 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10618 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10619 for ac_dir in $ac_dummy; do
10620 IFS=$lt_save_ifs
10621 test -z "$ac_dir" && ac_dir=.
10622 if test -f "$ac_dir/${ac_tool_prefix}file"; then
10623 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10624 if test -n "$file_magic_test_file"; then
10625 case $deplibs_check_method in
10626 "file_magic "*)
10627 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10628 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10629 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10630 $EGREP "$file_magic_regex" > /dev/null; then
10631 :
10632 else
10633 cat <<_LT_EOF 1>&2
10634
10635 *** Warning: the command libtool uses to detect shared libraries,
10636 *** $file_magic_cmd, produces output that libtool cannot recognize.
10637 *** The result is that libtool may fail to recognize shared libraries
10638 *** as such. This will affect the creation of libtool libraries that
10639 *** depend on shared libraries, but programs linked with such libtool
10640 *** libraries will work regardless of this problem. Nevertheless, you
10641 *** may want to report the problem to your system manager and/or to
10642 *** [email protected]
10643
10644 _LT_EOF
10645 fi ;;
10646 esac
10647 fi
10648 break
10649 fi
10650 done
10651 IFS=$lt_save_ifs
10652 MAGIC_CMD=$lt_save_MAGIC_CMD
10653 ;;
10654 esac ;;
10655 esac
10656 fi
10657
10658 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10659 if test -n "$MAGIC_CMD"; then
10660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10661 printf "%s\n" "$MAGIC_CMD" >&6; }
10662 else
10663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10664 printf "%s\n" "no" >&6; }
10665 fi
10666
10667
10668
10669
10670
10671 if test -z "$lt_cv_path_MAGIC_CMD"; then
10672 if test -n "$ac_tool_prefix"; then
10673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10674 printf %s "checking for file... " >&6; }
10675 if test ${lt_cv_path_MAGIC_CMD+y}
10676 then :
10677 printf %s "(cached) " >&6
10678 else case e in #(
10679 e) case $MAGIC_CMD in
10680 [\\/*] | ?:[\\/]*)
10681 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10682 ;;
10683 *)
10684 lt_save_MAGIC_CMD=$MAGIC_CMD
10685 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10686 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10687 for ac_dir in $ac_dummy; do
10688 IFS=$lt_save_ifs
10689 test -z "$ac_dir" && ac_dir=.
10690 if test -f "$ac_dir/file"; then
10691 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10692 if test -n "$file_magic_test_file"; then
10693 case $deplibs_check_method in
10694 "file_magic "*)
10695 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10696 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10697 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10698 $EGREP "$file_magic_regex" > /dev/null; then
10699 :
10700 else
10701 cat <<_LT_EOF 1>&2
10702
10703 *** Warning: the command libtool uses to detect shared libraries,
10704 *** $file_magic_cmd, produces output that libtool cannot recognize.
10705 *** The result is that libtool may fail to recognize shared libraries
10706 *** as such. This will affect the creation of libtool libraries that
10707 *** depend on shared libraries, but programs linked with such libtool
10708 *** libraries will work regardless of this problem. Nevertheless, you
10709 *** may want to report the problem to your system manager and/or to
10710 *** [email protected]
10711
10712 _LT_EOF
10713 fi ;;
10714 esac
10715 fi
10716 break
10717 fi
10718 done
10719 IFS=$lt_save_ifs
10720 MAGIC_CMD=$lt_save_MAGIC_CMD
10721 ;;
10722 esac ;;
10723 esac
10724 fi
10725
10726 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10727 if test -n "$MAGIC_CMD"; then
10728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10729 printf "%s\n" "$MAGIC_CMD" >&6; }
10730 else
10731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10732 printf "%s\n" "no" >&6; }
10733 fi
10734
10735
10736 else
10737 MAGIC_CMD=:
10738 fi
10739 fi
10740
10741 fi
10742 ;;
10743 esac
10744
10745 # Use C for the default configuration in the libtool script
10746
10747 lt_save_CC=$CC
10748 ac_ext=c
10749 ac_cpp='$CPP $CPPFLAGS'
10750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10753
10754
10755 # Source file extension for C test sources.
10756 ac_ext=c
10757
10758 # Object file extension for compiled C test sources.
10759 objext=o
10760 objext=$objext
10761
10762 # Code to be used in simple compile tests
10763 lt_simple_compile_test_code="int some_variable = 0;"
10764
10765 # Code to be used in simple link tests
10766 lt_simple_link_test_code='int main(void){return(0);}'
10767
10768
10769
10770
10771
10772
10773
10774 # If no C compiler was specified, use CC.
10775 LTCC=${LTCC-"$CC"}
10776
10777 # If no C compiler flags were specified, use CFLAGS.
10778 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10779
10780 # Allow CC to be a program name with arguments.
10781 compiler=$CC
10782
10783 # Save the default compiler, since it gets overwritten when the other
10784 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10785 compiler_DEFAULT=$CC
10786
10787 # save warnings/boilerplate of simple test code
10788 ac_outfile=conftest.$ac_objext
10789 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10790 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10791 _lt_compiler_boilerplate=`cat conftest.err`
10792 $RM conftest*
10793
10794 ac_outfile=conftest.$ac_objext
10795 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10796 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10797 _lt_linker_boilerplate=`cat conftest.err`
10798 $RM -r conftest*
10799
10800
10801 ## CAVEAT EMPTOR:
10802 ## There is no encapsulation within the following macros, do not change
10803 ## the running order or otherwise move them around unless you know exactly
10804 ## what you are doing...
10805 if test -n "$compiler"; then
10806
10807 lt_prog_compiler_no_builtin_flag=
10808
10809 if test yes = "$GCC"; then
10810 case $cc_basename in
10811 nvcc*)
10812 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10813 *)
10814 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10815 esac
10816
10817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10818 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10819 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
10820 then :
10821 printf %s "(cached) " >&6
10822 else case e in #(
10823 e) lt_cv_prog_compiler_rtti_exceptions=no
10824 ac_outfile=conftest.$ac_objext
10825 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10826 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
10827 # Insert the option either (1) after the last *FLAGS variable, or
10828 # (2) before a word containing "conftest.", or (3) at the end.
10829 # Note that $ac_compile itself does not contain backslashes and begins
10830 # with a dollar sign (not a hyphen), so the echo should work correctly.
10831 # The option is referenced via a variable to avoid confusing sed.
10832 lt_compile=`echo "$ac_compile" | $SED \
10833 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10834 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10835 -e 's:$: $lt_compiler_flag:'`
10836 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10837 (eval "$lt_compile" 2>conftest.err)
10838 ac_status=$?
10839 cat conftest.err >&5
10840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10841 if (exit $ac_status) && test -s "$ac_outfile"; then
10842 # The compiler can only warn and ignore the option if not recognized
10843 # So say no if there are warnings other than the usual output.
10844 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10845 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10846 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10847 lt_cv_prog_compiler_rtti_exceptions=yes
10848 fi
10849 fi
10850 $RM conftest*
10851 ;;
10852 esac
10853 fi
10854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10855 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10856
10857 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10858 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10859 else
10860 :
10861 fi
10862
10863 fi
10864
10865
10866
10867
10868
10869
10870 lt_prog_compiler_wl=
10871 lt_prog_compiler_pic=
10872 lt_prog_compiler_static=
10873
10874
10875 if test yes = "$GCC"; then
10876 lt_prog_compiler_wl='-Wl,'
10877 lt_prog_compiler_static='-static'
10878
10879 case $host_os in
10880 aix*)
10881 # All AIX code is PIC.
10882 if test ia64 = "$host_cpu"; then
10883 # AIX 5 now supports IA64 processor
10884 lt_prog_compiler_static='-Bstatic'
10885 fi
10886 lt_prog_compiler_pic='-fPIC'
10887 ;;
10888
10889 amigaos*)
10890 case $host_cpu in
10891 powerpc)
10892 # see comment about AmigaOS4 .so support
10893 lt_prog_compiler_pic='-fPIC'
10894 ;;
10895 m68k)
10896 # FIXME: we need at least 68020 code to build shared libraries, but
10897 # adding the '-m68020' flag to GCC prevents building anything better,
10898 # like '-m68040'.
10899 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10900 ;;
10901 esac
10902 ;;
10903
10904 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10905 # PIC is the default for these OSes.
10906 ;;
10907
10908 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
10909 # This hack is so that the source file can tell whether it is being
10910 # built for inclusion in a dll (and should export symbols for example).
10911 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10912 # (--disable-auto-import) libraries
10913 lt_prog_compiler_pic='-DDLL_EXPORT'
10914 case $host_os in
10915 os2*)
10916 lt_prog_compiler_static='$wl-static'
10917 ;;
10918 esac
10919 ;;
10920
10921 darwin* | rhapsody*)
10922 # PIC is the default on this platform
10923 # Common symbols not allowed in MH_DYLIB files
10924 lt_prog_compiler_pic='-fno-common'
10925 ;;
10926
10927 haiku*)
10928 # PIC is the default for Haiku.
10929 # The "-static" flag exists, but is broken.
10930 lt_prog_compiler_static=
10931 ;;
10932
10933 hpux*)
10934 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10935 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10936 # sets the default TLS model and affects inlining.
10937 case $host_cpu in
10938 hppa*64*)
10939 # +Z the default
10940 ;;
10941 *)
10942 lt_prog_compiler_pic='-fPIC'
10943 ;;
10944 esac
10945 ;;
10946
10947 interix[3-9]*)
10948 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10949 # Instead, we relocate shared libraries at runtime.
10950 ;;
10951
10952 msdosdjgpp*)
10953 # Just because we use GCC doesn't mean we suddenly get shared libraries
10954 # on systems that don't support them.
10955 lt_prog_compiler_can_build_shared=no
10956 enable_shared=no
10957 ;;
10958
10959 *nto* | *qnx*)
10960 # QNX uses GNU C++, but need to define -shared option too, otherwise
10961 # it will coredump.
10962 lt_prog_compiler_pic='-fPIC -shared'
10963 ;;
10964
10965 sysv4*MP*)
10966 if test -d /usr/nec; then
10967 lt_prog_compiler_pic=-Kconform_pic
10968 fi
10969 ;;
10970
10971 *)
10972 lt_prog_compiler_pic='-fPIC'
10973 ;;
10974 esac
10975
10976 case $cc_basename in
10977 nvcc*) # Cuda Compiler Driver 2.2
10978 lt_prog_compiler_wl='-Xlinker '
10979 if test -n "$lt_prog_compiler_pic"; then
10980 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10981 fi
10982 ;;
10983 esac
10984 else
10985 # PORTME Check for flag to pass linker flags through the system compiler.
10986 case $host_os in
10987 aix*)
10988 lt_prog_compiler_wl='-Wl,'
10989 if test ia64 = "$host_cpu"; then
10990 # AIX 5 now supports IA64 processor
10991 lt_prog_compiler_static='-Bstatic'
10992 else
10993 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10994 fi
10995 ;;
10996
10997 darwin* | rhapsody*)
10998 # PIC is the default on this platform
10999 # Common symbols not allowed in MH_DYLIB files
11000 lt_prog_compiler_pic='-fno-common'
11001 case $cc_basename in
11002 nagfor*)
11003 # NAG Fortran compiler
11004 lt_prog_compiler_wl='-Wl,-Wl,,'
11005 lt_prog_compiler_pic='-PIC'
11006 lt_prog_compiler_static='-Bstatic'
11007 ;;
11008 esac
11009 ;;
11010
11011 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
11012 # This hack is so that the source file can tell whether it is being
11013 # built for inclusion in a dll (and should export symbols for example).
11014 lt_prog_compiler_pic='-DDLL_EXPORT'
11015 case $host_os in
11016 os2*)
11017 lt_prog_compiler_static='$wl-static'
11018 ;;
11019 esac
11020 ;;
11021
11022 hpux9* | hpux10* | hpux11*)
11023 lt_prog_compiler_wl='-Wl,'
11024 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11025 # not for PA HP-UX.
11026 case $host_cpu in
11027 hppa*64*|ia64*)
11028 # +Z the default
11029 ;;
11030 *)
11031 lt_prog_compiler_pic='+Z'
11032 ;;
11033 esac
11034 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11035 lt_prog_compiler_static='$wl-a ${wl}archive'
11036 ;;
11037
11038 irix5* | irix6* | nonstopux*)
11039 lt_prog_compiler_wl='-Wl,'
11040 # PIC (with -KPIC) is the default.
11041 lt_prog_compiler_static='-non_shared'
11042 ;;
11043
11044 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11045 case $cc_basename in
11046 # old Intel for x86_64, which still supported -KPIC.
11047 ecc*)
11048 lt_prog_compiler_wl='-Wl,'
11049 lt_prog_compiler_pic='-KPIC'
11050 lt_prog_compiler_static='-static'
11051 ;;
11052 *flang* | ftn | f18* | f95*)
11053 # Flang compiler.
11054 lt_prog_compiler_wl='-Wl,'
11055 lt_prog_compiler_pic='-fPIC'
11056 lt_prog_compiler_static='-static'
11057 ;;
11058 # icc used to be incompatible with GCC.
11059 # ICC 10 doesn't accept -KPIC any more.
11060 icc* | ifort*)
11061 lt_prog_compiler_wl='-Wl,'
11062 lt_prog_compiler_pic='-fPIC'
11063 lt_prog_compiler_static='-static'
11064 ;;
11065 # Lahey Fortran 8.1.
11066 lf95*)
11067 lt_prog_compiler_wl='-Wl,'
11068 lt_prog_compiler_pic='--shared'
11069 lt_prog_compiler_static='--static'
11070 ;;
11071 nagfor*)
11072 # NAG Fortran compiler
11073 lt_prog_compiler_wl='-Wl,-Wl,,'
11074 lt_prog_compiler_pic='-PIC'
11075 lt_prog_compiler_static='-Bstatic'
11076 ;;
11077 tcc*)
11078 # Fabrice Bellard et al's Tiny C Compiler
11079 lt_prog_compiler_wl='-Wl,'
11080 lt_prog_compiler_pic='-fPIC'
11081 lt_prog_compiler_static='-static'
11082 ;;
11083 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11084 # Portland Group compilers (*not* the Pentium gcc compiler,
11085 # which looks to be a dead project)
11086 lt_prog_compiler_wl='-Wl,'
11087 lt_prog_compiler_pic='-fpic'
11088 lt_prog_compiler_static='-Bstatic'
11089 ;;
11090 ccc*)
11091 lt_prog_compiler_wl='-Wl,'
11092 # All Alpha code is PIC.
11093 lt_prog_compiler_static='-non_shared'
11094 ;;
11095 xl* | bgxl* | bgf* | mpixl*)
11096 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11097 lt_prog_compiler_wl='-Wl,'
11098 lt_prog_compiler_pic='-qpic'
11099 lt_prog_compiler_static='-qstaticlink'
11100 ;;
11101 *)
11102 case `$CC -V 2>&1 | $SED 5q` in
11103 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11104 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11105 lt_prog_compiler_pic='-KPIC'
11106 lt_prog_compiler_static='-Bstatic'
11107 lt_prog_compiler_wl=''
11108 ;;
11109 *Sun\ F* | *Sun*Fortran*)
11110 lt_prog_compiler_pic='-KPIC'
11111 lt_prog_compiler_static='-Bstatic'
11112 lt_prog_compiler_wl='-Qoption ld '
11113 ;;
11114 *Sun\ C*)
11115 # Sun C 5.9
11116 lt_prog_compiler_pic='-KPIC'
11117 lt_prog_compiler_static='-Bstatic'
11118 lt_prog_compiler_wl='-Wl,'
11119 ;;
11120 *Intel*\ [CF]*Compiler*)
11121 lt_prog_compiler_wl='-Wl,'
11122 lt_prog_compiler_pic='-fPIC'
11123 lt_prog_compiler_static='-static'
11124 ;;
11125 *Portland\ Group*)
11126 lt_prog_compiler_wl='-Wl,'
11127 lt_prog_compiler_pic='-fpic'
11128 lt_prog_compiler_static='-Bstatic'
11129 ;;
11130 esac
11131 ;;
11132 esac
11133 ;;
11134
11135 newsos6)
11136 lt_prog_compiler_pic='-KPIC'
11137 lt_prog_compiler_static='-Bstatic'
11138 ;;
11139
11140 *-mlibc)
11141 lt_prog_compiler_wl='-Wl,'
11142 lt_prog_compiler_pic='-fPIC'
11143 lt_prog_compiler_static='-static'
11144 ;;
11145
11146 *nto* | *qnx*)
11147 # QNX uses GNU C++, but need to define -shared option too, otherwise
11148 # it will coredump.
11149 lt_prog_compiler_pic='-fPIC -shared'
11150 ;;
11151
11152 osf3* | osf4* | osf5*)
11153 lt_prog_compiler_wl='-Wl,'
11154 # All OSF/1 code is PIC.
11155 lt_prog_compiler_static='-non_shared'
11156 ;;
11157
11158 rdos*)
11159 lt_prog_compiler_static='-non_shared'
11160 ;;
11161
11162 serenity*)
11163 ;;
11164
11165 solaris*)
11166 lt_prog_compiler_pic='-KPIC'
11167 lt_prog_compiler_static='-Bstatic'
11168 case $cc_basename in
11169 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11170 lt_prog_compiler_wl='-Qoption ld ';;
11171 *)
11172 lt_prog_compiler_wl='-Wl,';;
11173 esac
11174 ;;
11175
11176 sunos4*)
11177 lt_prog_compiler_wl='-Qoption ld '
11178 lt_prog_compiler_pic='-PIC'
11179 lt_prog_compiler_static='-Bstatic'
11180 ;;
11181
11182 sysv4 | sysv4.2uw2* | sysv4.3*)
11183 lt_prog_compiler_wl='-Wl,'
11184 lt_prog_compiler_pic='-KPIC'
11185 lt_prog_compiler_static='-Bstatic'
11186 ;;
11187
11188 sysv4*MP*)
11189 if test -d /usr/nec; then
11190 lt_prog_compiler_pic='-Kconform_pic'
11191 lt_prog_compiler_static='-Bstatic'
11192 fi
11193 ;;
11194
11195 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11196 lt_prog_compiler_wl='-Wl,'
11197 lt_prog_compiler_pic='-KPIC'
11198 lt_prog_compiler_static='-Bstatic'
11199 ;;
11200
11201 unicos*)
11202 lt_prog_compiler_wl='-Wl,'
11203 lt_prog_compiler_can_build_shared=no
11204 ;;
11205
11206 uts4*)
11207 lt_prog_compiler_pic='-pic'
11208 lt_prog_compiler_static='-Bstatic'
11209 ;;
11210
11211 *)
11212 lt_prog_compiler_can_build_shared=no
11213 ;;
11214 esac
11215 fi
11216
11217 case $host_os in
11218 # For platforms that do not support PIC, -DPIC is meaningless:
11219 *djgpp*)
11220 lt_prog_compiler_pic=
11221 ;;
11222 *)
11223 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11224 ;;
11225 esac
11226
11227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11228 printf %s "checking for $compiler option to produce PIC... " >&6; }
11229 if test ${lt_cv_prog_compiler_pic+y}
11230 then :
11231 printf %s "(cached) " >&6
11232 else case e in #(
11233 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
11234 esac
11235 fi
11236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11237 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
11238 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11239
11240 #
11241 # Check to make sure the PIC flag actually works.
11242 #
11243 if test -n "$lt_prog_compiler_pic"; then
11244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11245 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11246 if test ${lt_cv_prog_compiler_pic_works+y}
11247 then :
11248 printf %s "(cached) " >&6
11249 else case e in #(
11250 e) lt_cv_prog_compiler_pic_works=no
11251 ac_outfile=conftest.$ac_objext
11252 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11253 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
11254 # Insert the option either (1) after the last *FLAGS variable, or
11255 # (2) before a word containing "conftest.", or (3) at the end.
11256 # Note that $ac_compile itself does not contain backslashes and begins
11257 # with a dollar sign (not a hyphen), so the echo should work correctly.
11258 # The option is referenced via a variable to avoid confusing sed.
11259 lt_compile=`echo "$ac_compile" | $SED \
11260 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11261 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11262 -e 's:$: $lt_compiler_flag:'`
11263 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11264 (eval "$lt_compile" 2>conftest.err)
11265 ac_status=$?
11266 cat conftest.err >&5
11267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11268 if (exit $ac_status) && test -s "$ac_outfile"; then
11269 # The compiler can only warn and ignore the option if not recognized
11270 # So say no if there are warnings other than the usual output.
11271 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11272 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11273 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11274 lt_cv_prog_compiler_pic_works=yes
11275 fi
11276 fi
11277 $RM conftest*
11278 ;;
11279 esac
11280 fi
11281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11282 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
11283
11284 if test yes = "$lt_cv_prog_compiler_pic_works"; then
11285 case $lt_prog_compiler_pic in
11286 "" | " "*) ;;
11287 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11288 esac
11289 else
11290 lt_prog_compiler_pic=
11291 lt_prog_compiler_can_build_shared=no
11292 fi
11293
11294 fi
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306 #
11307 # Check to make sure the static flag actually works.
11308 #
11309 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11311 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11312 if test ${lt_cv_prog_compiler_static_works+y}
11313 then :
11314 printf %s "(cached) " >&6
11315 else case e in #(
11316 e) lt_cv_prog_compiler_static_works=no
11317 save_LDFLAGS=$LDFLAGS
11318 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11319 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11320 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11321 # The linker can only warn and ignore the option if not recognized
11322 # So say no if there are warnings
11323 if test -s conftest.err; then
11324 # Append any errors to the config.log.
11325 cat conftest.err 1>&5
11326 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11327 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11328 if diff conftest.exp conftest.er2 >/dev/null; then
11329 lt_cv_prog_compiler_static_works=yes
11330 fi
11331 else
11332 lt_cv_prog_compiler_static_works=yes
11333 fi
11334 fi
11335 $RM -r conftest*
11336 LDFLAGS=$save_LDFLAGS
11337 ;;
11338 esac
11339 fi
11340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11341 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
11342
11343 if test yes = "$lt_cv_prog_compiler_static_works"; then
11344 :
11345 else
11346 lt_prog_compiler_static=
11347 fi
11348
11349
11350
11351
11352
11353
11354
11355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11356 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11357 if test ${lt_cv_prog_compiler_c_o+y}
11358 then :
11359 printf %s "(cached) " >&6
11360 else case e in #(
11361 e) lt_cv_prog_compiler_c_o=no
11362 $RM -r conftest 2>/dev/null
11363 mkdir conftest
11364 cd conftest
11365 mkdir out
11366 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11367
11368 lt_compiler_flag="-o out/conftest2.$ac_objext"
11369 # Insert the option either (1) after the last *FLAGS variable, or
11370 # (2) before a word containing "conftest.", or (3) at the end.
11371 # Note that $ac_compile itself does not contain backslashes and begins
11372 # with a dollar sign (not a hyphen), so the echo should work correctly.
11373 lt_compile=`echo "$ac_compile" | $SED \
11374 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11375 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11376 -e 's:$: $lt_compiler_flag:'`
11377 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11378 (eval "$lt_compile" 2>out/conftest.err)
11379 ac_status=$?
11380 cat out/conftest.err >&5
11381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11382 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11383 then
11384 # The compiler can only warn and ignore the option if not recognized
11385 # So say no if there are warnings
11386 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11387 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11388 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11389 lt_cv_prog_compiler_c_o=yes
11390 fi
11391 fi
11392 chmod u+w . 2>&5
11393 $RM conftest*
11394 # SGI C++ compiler will create directory out/ii_files/ for
11395 # template instantiation
11396 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11397 $RM out/* && rmdir out
11398 cd ..
11399 $RM -r conftest
11400 $RM conftest*
11401 ;;
11402 esac
11403 fi
11404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11405 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
11406
11407
11408
11409
11410
11411
11412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11413 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11414 if test ${lt_cv_prog_compiler_c_o+y}
11415 then :
11416 printf %s "(cached) " >&6
11417 else case e in #(
11418 e) lt_cv_prog_compiler_c_o=no
11419 $RM -r conftest 2>/dev/null
11420 mkdir conftest
11421 cd conftest
11422 mkdir out
11423 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11424
11425 lt_compiler_flag="-o out/conftest2.$ac_objext"
11426 # Insert the option either (1) after the last *FLAGS variable, or
11427 # (2) before a word containing "conftest.", or (3) at the end.
11428 # Note that $ac_compile itself does not contain backslashes and begins
11429 # with a dollar sign (not a hyphen), so the echo should work correctly.
11430 lt_compile=`echo "$ac_compile" | $SED \
11431 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11432 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11433 -e 's:$: $lt_compiler_flag:'`
11434 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11435 (eval "$lt_compile" 2>out/conftest.err)
11436 ac_status=$?
11437 cat out/conftest.err >&5
11438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11439 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11440 then
11441 # The compiler can only warn and ignore the option if not recognized
11442 # So say no if there are warnings
11443 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11444 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11445 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11446 lt_cv_prog_compiler_c_o=yes
11447 fi
11448 fi
11449 chmod u+w . 2>&5
11450 $RM conftest*
11451 # SGI C++ compiler will create directory out/ii_files/ for
11452 # template instantiation
11453 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11454 $RM out/* && rmdir out
11455 cd ..
11456 $RM -r conftest
11457 $RM conftest*
11458 ;;
11459 esac
11460 fi
11461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11462 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
11463
11464
11465
11466
11467 hard_links=nottested
11468 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
11469 # do not overwrite the value of need_locks provided by the user
11470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11471 printf %s "checking if we can lock with hard links... " >&6; }
11472 hard_links=yes
11473 $RM conftest*
11474 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11475 touch conftest.a
11476 ln conftest.a conftest.b 2>&5 || hard_links=no
11477 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11479 printf "%s\n" "$hard_links" >&6; }
11480 if test no = "$hard_links"; then
11481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11482 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
11483 need_locks=warn
11484 fi
11485 else
11486 need_locks=no
11487 fi
11488
11489
11490
11491
11492
11493
11494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11495 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11496
11497 runpath_var=
11498 allow_undefined_flag=
11499 always_export_symbols=no
11500 archive_cmds=
11501 archive_expsym_cmds=
11502 compiler_needs_object=no
11503 enable_shared_with_static_runtimes=no
11504 export_dynamic_flag_spec=
11505 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11506 hardcode_automatic=no
11507 hardcode_direct=no
11508 hardcode_direct_absolute=no
11509 hardcode_libdir_flag_spec=
11510 hardcode_libdir_separator=
11511 hardcode_minus_L=no
11512 hardcode_shlibpath_var=unsupported
11513 inherit_rpath=no
11514 link_all_deplibs=unknown
11515 module_cmds=
11516 module_expsym_cmds=
11517 old_archive_from_new_cmds=
11518 old_archive_from_expsyms_cmds=
11519 thread_safe_flag_spec=
11520 whole_archive_flag_spec=
11521 # include_expsyms should be a list of space-separated symbols to be *always*
11522 # included in the symbol list
11523 include_expsyms=
11524 # exclude_expsyms can be an extended regexp of symbols to exclude
11525 # it will be wrapped by ' (' and ')$', so one must not match beginning or
11526 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11527 # as well as any symbol that contains 'd'.
11528 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11529 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11530 # platforms (ab)use it in PIC code, but their linkers get confused if
11531 # the symbol is explicitly referenced. Since portable code cannot
11532 # rely on this symbol name, it's probably fine to never include it in
11533 # preloaded symbol tables.
11534 # Exclude shared library initialization/finalization symbols.
11535 extract_expsyms_cmds=
11536
11537 case $host_os in
11538 cygwin* | mingw* | windows* | pw32* | cegcc*)
11539 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
11540 # When not using gcc, we currently assume that we are using
11541 # Microsoft Visual C++ or Intel C++ Compiler.
11542 if test yes != "$GCC"; then
11543 with_gnu_ld=no
11544 fi
11545 ;;
11546 interix*)
11547 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
11548 with_gnu_ld=yes
11549 ;;
11550 esac
11551
11552 ld_shlibs=yes
11553
11554 # On some targets, GNU ld is compatible enough with the native linker
11555 # that we're better off using the native interface for both.
11556 lt_use_gnu_ld_interface=no
11557 if test yes = "$with_gnu_ld"; then
11558 case $host_os in
11559 aix*)
11560 # The AIX port of GNU ld has always aspired to compatibility
11561 # with the native linker. However, as the warning in the GNU ld
11562 # block says, versions before 2.19.5* couldn't really create working
11563 # shared libraries, regardless of the interface used.
11564 case `$LD -v 2>&1` in
11565 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11566 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11567 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11568 *)
11569 lt_use_gnu_ld_interface=yes
11570 ;;
11571 esac
11572 ;;
11573 *)
11574 lt_use_gnu_ld_interface=yes
11575 ;;
11576 esac
11577 fi
11578
11579 if test yes = "$lt_use_gnu_ld_interface"; then
11580 # If archive_cmds runs LD, not CC, wlarc should be empty
11581 wlarc='$wl'
11582
11583 # Set some defaults for GNU ld with shared library support. These
11584 # are reset later if shared libraries are not supported. Putting them
11585 # here allows them to be overridden if necessary.
11586 runpath_var=LD_RUN_PATH
11587 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11588 export_dynamic_flag_spec='$wl--export-dynamic'
11589 # ancient GNU ld didn't support --whole-archive et. al.
11590 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11591 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11592 else
11593 whole_archive_flag_spec=
11594 fi
11595 supports_anon_versioning=no
11596 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
11597 *GNU\ gold*) supports_anon_versioning=yes ;;
11598 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11599 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11600 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11601 *\ 2.11.*) ;; # other 2.11 versions
11602 *) supports_anon_versioning=yes ;;
11603 esac
11604
11605 # See if GNU ld supports shared libraries.
11606 case $host_os in
11607 aix[3-9]*)
11608 # On AIX/PPC, the GNU linker is very broken
11609 if test ia64 != "$host_cpu"; then
11610 ld_shlibs=no
11611 cat <<_LT_EOF 1>&2
11612
11613 *** Warning: the GNU linker, at least up to release 2.19, is reported
11614 *** to be unable to reliably create shared libraries on AIX.
11615 *** Therefore, libtool is disabling shared libraries support. If you
11616 *** really care for shared libraries, you may want to install binutils
11617 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11618 *** You will then need to restart the configuration process.
11619
11620 _LT_EOF
11621 fi
11622 ;;
11623
11624 amigaos*)
11625 case $host_cpu in
11626 powerpc)
11627 # see comment about AmigaOS4 .so support
11628 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11629 archive_expsym_cmds=''
11630 ;;
11631 m68k)
11632 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)'
11633 hardcode_libdir_flag_spec='-L$libdir'
11634 hardcode_minus_L=yes
11635 ;;
11636 esac
11637 ;;
11638
11639 beos*)
11640 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11641 allow_undefined_flag=unsupported
11642 # Joseph Beckenbach <[email protected]> says some releases of gcc
11643 # support --undefined. This deserves some investigation. FIXME
11644 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11645 else
11646 ld_shlibs=no
11647 fi
11648 ;;
11649
11650 cygwin* | mingw* | windows* | pw32* | cegcc*)
11651 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11652 # as there is no search path for DLLs.
11653 hardcode_libdir_flag_spec='-L$libdir'
11654 export_dynamic_flag_spec='$wl--export-all-symbols'
11655 allow_undefined_flag=unsupported
11656 always_export_symbols=no
11657 enable_shared_with_static_runtimes=yes
11658 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'
11659 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11660 file_list_spec='@'
11661
11662 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11663 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11664 # If the export-symbols file already is a .def file, use it as
11665 # is; otherwise, prepend EXPORTS...
11666 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11667 cp $export_symbols $output_objdir/$soname.def;
11668 else
11669 echo EXPORTS > $output_objdir/$soname.def;
11670 cat $export_symbols >> $output_objdir/$soname.def;
11671 fi~
11672 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11673 else
11674 ld_shlibs=no
11675 fi
11676 ;;
11677
11678 haiku*)
11679 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11680 link_all_deplibs=no
11681 ;;
11682
11683 os2*)
11684 hardcode_libdir_flag_spec='-L$libdir'
11685 hardcode_minus_L=yes
11686 allow_undefined_flag=unsupported
11687 shrext_cmds=.dll
11688 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11689 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11690 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11691 $ECHO EXPORTS >> $output_objdir/$libname.def~
11692 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11693 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11694 emximp -o $lib $output_objdir/$libname.def'
11695 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11696 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11697 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11698 $ECHO EXPORTS >> $output_objdir/$libname.def~
11699 prefix_cmds="$SED"~
11700 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11701 prefix_cmds="$prefix_cmds -e 1d";
11702 fi~
11703 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11704 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11705 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11706 emximp -o $lib $output_objdir/$libname.def'
11707 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11708 enable_shared_with_static_runtimes=yes
11709 file_list_spec='@'
11710 ;;
11711
11712 interix[3-9]*)
11713 hardcode_direct=no
11714 hardcode_shlibpath_var=no
11715 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11716 export_dynamic_flag_spec='$wl-E'
11717 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11718 # Instead, shared libraries are loaded at an image base (0x10000000 by
11719 # default) and relocated if they conflict, which is a slow very memory
11720 # consuming and fragmenting process. To avoid this, we pick a random,
11721 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11722 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11723 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11724 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'
11725 ;;
11726
11727 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11728 tmp_diet=no
11729 if test linux-dietlibc = "$host_os"; then
11730 case $cc_basename in
11731 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11732 esac
11733 fi
11734 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11735 && test no = "$tmp_diet"
11736 then
11737 tmp_addflag=' $pic_flag'
11738 tmp_sharedflag='-shared'
11739 case $cc_basename,$host_cpu in
11740 pgcc*) # Portland Group C compiler
11741 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'
11742 tmp_addflag=' $pic_flag'
11743 ;;
11744 pgf77* | pgf90* | pgf95* | pgfortran*)
11745 # Portland Group f77 and f90 compilers
11746 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'
11747 tmp_addflag=' $pic_flag -Mnomain' ;;
11748 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11749 tmp_addflag=' -i_dynamic' ;;
11750 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11751 tmp_addflag=' -i_dynamic -nofor_main' ;;
11752 ifc* | ifort*) # Intel Fortran compiler
11753 tmp_addflag=' -nofor_main' ;;
11754 lf95*) # Lahey Fortran 8.1
11755 whole_archive_flag_spec=
11756 tmp_sharedflag='--shared' ;;
11757 nagfor*) # NAGFOR 5.3
11758 tmp_sharedflag='-Wl,-shared' ;;
11759 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11760 tmp_sharedflag='-qmkshrobj'
11761 tmp_addflag= ;;
11762 nvcc*) # Cuda Compiler Driver 2.2
11763 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'
11764 compiler_needs_object=yes
11765 ;;
11766 esac
11767 case `$CC -V 2>&1 | $SED 5q` in
11768 *Sun\ C*) # Sun C 5.9
11769 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'
11770 compiler_needs_object=yes
11771 tmp_sharedflag='-G' ;;
11772 *Sun\ F*) # Sun Fortran 8.3
11773 tmp_sharedflag='-G' ;;
11774 esac
11775 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11776
11777 if test yes = "$supports_anon_versioning"; then
11778 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11779 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11780 echo "local: *; };" >> $output_objdir/$libname.ver~
11781 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11782 fi
11783
11784 case $cc_basename in
11785 tcc*)
11786 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11787 export_dynamic_flag_spec='-rdynamic'
11788 ;;
11789 xlf* | bgf* | bgxlf* | mpixlf*)
11790 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11791 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11792 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11793 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11794 if test yes = "$supports_anon_versioning"; then
11795 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11796 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11797 echo "local: *; };" >> $output_objdir/$libname.ver~
11798 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11799 fi
11800 ;;
11801 esac
11802 else
11803 ld_shlibs=no
11804 fi
11805 ;;
11806
11807 *-mlibc)
11808 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11809 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11810 ;;
11811
11812 netbsd* | netbsdelf*-gnu)
11813 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11814 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11815 wlarc=
11816 else
11817 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11818 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11819 fi
11820 ;;
11821
11822 solaris*)
11823 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11824 ld_shlibs=no
11825 cat <<_LT_EOF 1>&2
11826
11827 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11828 *** create shared libraries on Solaris systems. Therefore, libtool
11829 *** is disabling shared libraries support. We urge you to upgrade GNU
11830 *** binutils to release 2.9.1 or newer. Another option is to modify
11831 *** your PATH or compiler configuration so that the native linker is
11832 *** used, and then restart.
11833
11834 _LT_EOF
11835 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11836 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11837 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11838 else
11839 ld_shlibs=no
11840 fi
11841 ;;
11842
11843 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11844 case `$LD -v 2>&1` in
11845 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11846 ld_shlibs=no
11847 cat <<_LT_EOF 1>&2
11848
11849 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11850 *** reliably create shared libraries on SCO systems. Therefore, libtool
11851 *** is disabling shared libraries support. We urge you to upgrade GNU
11852 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11853 *** your PATH or compiler configuration so that the native linker is
11854 *** used, and then restart.
11855
11856 _LT_EOF
11857 ;;
11858 *)
11859 # For security reasons, it is highly recommended that you always
11860 # use absolute paths for naming shared libraries, and exclude the
11861 # DT_RUNPATH tag from executables and libraries. But doing so
11862 # requires that you compile everything twice, which is a pain.
11863 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11864 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11865 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11866 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11867 else
11868 ld_shlibs=no
11869 fi
11870 ;;
11871 esac
11872 ;;
11873
11874 sunos4*)
11875 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11876 wlarc=
11877 hardcode_direct=yes
11878 hardcode_shlibpath_var=no
11879 ;;
11880
11881 *)
11882 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11883 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11884 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11885 else
11886 ld_shlibs=no
11887 fi
11888 ;;
11889 esac
11890
11891 if test no = "$ld_shlibs"; then
11892 runpath_var=
11893 hardcode_libdir_flag_spec=
11894 export_dynamic_flag_spec=
11895 whole_archive_flag_spec=
11896 fi
11897 else
11898 # PORTME fill in a description of your system's linker (not GNU ld)
11899 case $host_os in
11900 aix3*)
11901 allow_undefined_flag=unsupported
11902 always_export_symbols=yes
11903 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'
11904 # Note: this linker hardcodes the directories in LIBPATH if there
11905 # are no directories specified by -L.
11906 hardcode_minus_L=yes
11907 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11908 # Neither direct hardcoding nor static linking is supported with a
11909 # broken collect2.
11910 hardcode_direct=unsupported
11911 fi
11912 ;;
11913
11914 aix[4-9]*)
11915 if test ia64 = "$host_cpu"; then
11916 # On IA64, the linker does run time linking by default, so we don't
11917 # have to do anything special.
11918 aix_use_runtimelinking=no
11919 exp_sym_flag='-Bexport'
11920 no_entry_flag=
11921 else
11922 # If we're using GNU nm, then we don't want the "-C" option.
11923 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
11924 # Without the "-l" option, or with the "-B" option, AIX nm treats
11925 # weak defined symbols like other global defined symbols, whereas
11926 # GNU nm marks them as "W".
11927 # While the 'weak' keyword is ignored in the Export File, we need
11928 # it in the Import File for the 'aix-soname' feature, so we have
11929 # to replace the "-B" option with "-P" for AIX nm.
11930 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11931 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'
11932 else
11933 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'
11934 fi
11935 aix_use_runtimelinking=no
11936
11937 # Test if we are trying to use run time linking or normal
11938 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11939 # have runtime linking enabled, and use it for executables.
11940 # For shared libraries, we enable/disable runtime linking
11941 # depending on the kind of the shared library created -
11942 # when "with_aix_soname,aix_use_runtimelinking" is:
11943 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
11944 # "aix,yes" lib.so shared, rtl:yes, for executables
11945 # lib.a static archive
11946 # "both,no" lib.so.V(shr.o) shared, rtl:yes
11947 # lib.a(lib.so.V) shared, rtl:no, for executables
11948 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11949 # lib.a(lib.so.V) shared, rtl:no
11950 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
11951 # lib.a static archive
11952 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11953 for ld_flag in $LDFLAGS; do
11954 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11955 aix_use_runtimelinking=yes
11956 break
11957 fi
11958 done
11959 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11960 # With aix-soname=svr4, we create the lib.so.V shared archives only,
11961 # so we don't have lib.a shared libs to link our executables.
11962 # We have to force runtime linking in this case.
11963 aix_use_runtimelinking=yes
11964 LDFLAGS="$LDFLAGS -Wl,-brtl"
11965 fi
11966 ;;
11967 esac
11968
11969 exp_sym_flag='-bexport'
11970 no_entry_flag='-bnoentry'
11971 fi
11972
11973 # When large executables or shared objects are built, AIX ld can
11974 # have problems creating the table of contents. If linking a library
11975 # or program results in "error TOC overflow" add -mminimal-toc to
11976 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11977 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11978
11979 archive_cmds=''
11980 hardcode_direct=yes
11981 hardcode_direct_absolute=yes
11982 hardcode_libdir_separator=':'
11983 link_all_deplibs=yes
11984 file_list_spec='$wl-f,'
11985 case $with_aix_soname,$aix_use_runtimelinking in
11986 aix,*) ;; # traditional, no import file
11987 svr4,* | *,yes) # use import file
11988 # The Import File defines what to hardcode.
11989 hardcode_direct=no
11990 hardcode_direct_absolute=no
11991 ;;
11992 esac
11993
11994 if test yes = "$GCC"; then
11995 case $host_os in aix4.[012]|aix4.[012].*)
11996 # We only want to do this on AIX 4.2 and lower, the check
11997 # below for broken collect2 doesn't work under 4.3+
11998 collect2name=`$CC -print-prog-name=collect2`
11999 if test -f "$collect2name" &&
12000 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12001 then
12002 # We have reworked collect2
12003 :
12004 else
12005 # We have old collect2
12006 hardcode_direct=unsupported
12007 # It fails to find uninstalled libraries when the uninstalled
12008 # path is not listed in the libpath. Setting hardcode_minus_L
12009 # to unsupported forces relinking
12010 hardcode_minus_L=yes
12011 hardcode_libdir_flag_spec='-L$libdir'
12012 hardcode_libdir_separator=
12013 fi
12014 ;;
12015 esac
12016 shared_flag='-shared'
12017 if test yes = "$aix_use_runtimelinking"; then
12018 shared_flag="$shared_flag "'$wl-G'
12019 fi
12020 # Need to ensure runtime linking is disabled for the traditional
12021 # shared library, or the linker may eventually find shared libraries
12022 # /with/ Import File - we do not want to mix them.
12023 shared_flag_aix='-shared'
12024 shared_flag_svr4='-shared $wl-G'
12025 else
12026 # not using gcc
12027 if test ia64 = "$host_cpu"; then
12028 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12029 # chokes on -Wl,-G. The following line is correct:
12030 shared_flag='-G'
12031 else
12032 if test yes = "$aix_use_runtimelinking"; then
12033 shared_flag='$wl-G'
12034 else
12035 shared_flag='$wl-bM:SRE'
12036 fi
12037 shared_flag_aix='$wl-bM:SRE'
12038 shared_flag_svr4='$wl-G'
12039 fi
12040 fi
12041
12042 export_dynamic_flag_spec='$wl-bexpall'
12043 # It seems that -bexpall does not export symbols beginning with
12044 # underscore (_), so it is better to generate a list of symbols to export.
12045 always_export_symbols=yes
12046 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
12047 # Warning - without using the other runtime loading flags (-brtl),
12048 # -berok will link without error, but may produce a broken library.
12049 allow_undefined_flag='-berok'
12050 # Determine the default libpath from the value encoded in an
12051 # empty executable.
12052 if test set = "${lt_cv_aix_libpath+set}"; then
12053 aix_libpath=$lt_cv_aix_libpath
12054 else
12055 if test ${lt_cv_aix_libpath_+y}
12056 then :
12057 printf %s "(cached) " >&6
12058 else case e in #(
12059 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12060 /* end confdefs.h. */
12061
12062 int
12063 main (void)
12064 {
12065
12066 ;
12067 return 0;
12068 }
12069 _ACEOF
12070 if ac_fn_c_try_link "$LINENO"
12071 then :
12072
12073 lt_aix_libpath_sed='
12074 /Import File Strings/,/^$/ {
12075 /^0/ {
12076 s/^0 *\([^ ]*\) *$/\1/
12077 p
12078 }
12079 }'
12080 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12081 # Check for a 64-bit object if we didn't find anything.
12082 if test -z "$lt_cv_aix_libpath_"; then
12083 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12084 fi
12085 fi
12086 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12087 conftest$ac_exeext conftest.$ac_ext
12088 if test -z "$lt_cv_aix_libpath_"; then
12089 lt_cv_aix_libpath_=/usr/lib:/lib
12090 fi
12091 ;;
12092 esac
12093 fi
12094
12095 aix_libpath=$lt_cv_aix_libpath_
12096 fi
12097
12098 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12099 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
12100 else
12101 if test ia64 = "$host_cpu"; then
12102 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
12103 allow_undefined_flag="-z nodefs"
12104 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"
12105 else
12106 # Determine the default libpath from the value encoded in an
12107 # empty executable.
12108 if test set = "${lt_cv_aix_libpath+set}"; then
12109 aix_libpath=$lt_cv_aix_libpath
12110 else
12111 if test ${lt_cv_aix_libpath_+y}
12112 then :
12113 printf %s "(cached) " >&6
12114 else case e in #(
12115 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12116 /* end confdefs.h. */
12117
12118 int
12119 main (void)
12120 {
12121
12122 ;
12123 return 0;
12124 }
12125 _ACEOF
12126 if ac_fn_c_try_link "$LINENO"
12127 then :
12128
12129 lt_aix_libpath_sed='
12130 /Import File Strings/,/^$/ {
12131 /^0/ {
12132 s/^0 *\([^ ]*\) *$/\1/
12133 p
12134 }
12135 }'
12136 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12137 # Check for a 64-bit object if we didn't find anything.
12138 if test -z "$lt_cv_aix_libpath_"; then
12139 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12140 fi
12141 fi
12142 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12143 conftest$ac_exeext conftest.$ac_ext
12144 if test -z "$lt_cv_aix_libpath_"; then
12145 lt_cv_aix_libpath_=/usr/lib:/lib
12146 fi
12147 ;;
12148 esac
12149 fi
12150
12151 aix_libpath=$lt_cv_aix_libpath_
12152 fi
12153
12154 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12155 # Warning - without using the other run time loading flags,
12156 # -berok will link without error, but may produce a broken library.
12157 no_undefined_flag=' $wl-bernotok'
12158 allow_undefined_flag=' $wl-berok'
12159 if test yes = "$with_gnu_ld"; then
12160 # We only use this code for GNU lds that support --whole-archive.
12161 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
12162 else
12163 # Exported symbols can be pulled into shared objects from archives
12164 whole_archive_flag_spec='$convenience'
12165 fi
12166 archive_cmds_need_lc=yes
12167 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
12168 # -brtl affects multiple linker settings, -berok does not and is overridden later
12169 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
12170 if test svr4 != "$with_aix_soname"; then
12171 # This is similar to how AIX traditionally builds its shared libraries.
12172 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'
12173 fi
12174 if test aix != "$with_aix_soname"; then
12175 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'
12176 else
12177 # used by -dlpreopen to get the symbols
12178 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
12179 fi
12180 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
12181 fi
12182 fi
12183 ;;
12184
12185 amigaos*)
12186 case $host_cpu in
12187 powerpc)
12188 # see comment about AmigaOS4 .so support
12189 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12190 archive_expsym_cmds=''
12191 ;;
12192 m68k)
12193 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)'
12194 hardcode_libdir_flag_spec='-L$libdir'
12195 hardcode_minus_L=yes
12196 ;;
12197 esac
12198 ;;
12199
12200 bsdi[45]*)
12201 export_dynamic_flag_spec=-rdynamic
12202 ;;
12203
12204 cygwin* | mingw* | windows* | pw32* | cegcc*)
12205 # When not using gcc, we currently assume that we are using
12206 # Microsoft Visual C++ or Intel C++ Compiler.
12207 # hardcode_libdir_flag_spec is actually meaningless, as there is
12208 # no search path for DLLs.
12209 case $cc_basename in
12210 cl* | icl*)
12211 # Native MSVC or ICC
12212 hardcode_libdir_flag_spec=' '
12213 allow_undefined_flag=unsupported
12214 always_export_symbols=yes
12215 file_list_spec='@'
12216 # Tell ltmain to make .lib files, not .a files.
12217 libext=lib
12218 # Tell ltmain to make .dll files, not .so files.
12219 shrext_cmds=.dll
12220 # FIXME: Setting linknames here is a bad hack.
12221 archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
12222 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12223 cp "$export_symbols" "$output_objdir/$soname.def";
12224 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
12225 else
12226 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
12227 fi~
12228 $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12229 linknames='
12230 # The linker will not automatically build a static lib if we build a DLL.
12231 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12232 enable_shared_with_static_runtimes=yes
12233 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12234 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12235 # Don't use ranlib
12236 old_postinstall_cmds='chmod 644 $oldlib'
12237 postlink_cmds='lt_outputfile="@OUTPUT@"~
12238 lt_tool_outputfile="@TOOL_OUTPUT@"~
12239 case $lt_outputfile in
12240 *.exe|*.EXE) ;;
12241 *)
12242 lt_outputfile=$lt_outputfile.exe
12243 lt_tool_outputfile=$lt_tool_outputfile.exe
12244 ;;
12245 esac~
12246 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
12247 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12248 $RM "$lt_outputfile.manifest";
12249 fi'
12250 ;;
12251 *)
12252 # Assume MSVC and ICC wrapper
12253 hardcode_libdir_flag_spec=' '
12254 allow_undefined_flag=unsupported
12255 # Tell ltmain to make .lib files, not .a files.
12256 libext=lib
12257 # Tell ltmain to make .dll files, not .so files.
12258 shrext_cmds=.dll
12259 # FIXME: Setting linknames here is a bad hack.
12260 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12261 # The linker will automatically build a .lib file if we build a DLL.
12262 old_archive_from_new_cmds='true'
12263 # FIXME: Should let the user specify the lib program.
12264 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12265 enable_shared_with_static_runtimes=yes
12266 ;;
12267 esac
12268 ;;
12269
12270 darwin* | rhapsody*)
12271
12272
12273 archive_cmds_need_lc=no
12274 hardcode_direct=no
12275 hardcode_automatic=yes
12276 hardcode_shlibpath_var=unsupported
12277 if test yes = "$lt_cv_ld_force_load"; then
12278 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\"`'
12279
12280 else
12281 whole_archive_flag_spec=''
12282 fi
12283 link_all_deplibs=yes
12284 allow_undefined_flag=$_lt_dar_allow_undefined
12285 case $cc_basename in
12286 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
12287 *) _lt_dar_can_shared=$GCC ;;
12288 esac
12289 if test yes = "$_lt_dar_can_shared"; then
12290 output_verbose_link_cmd=func_echo_all
12291 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
12292 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
12293 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"
12294 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"
12295
12296 else
12297 ld_shlibs=no
12298 fi
12299
12300 ;;
12301
12302 dgux*)
12303 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12304 hardcode_libdir_flag_spec='-L$libdir'
12305 hardcode_shlibpath_var=no
12306 ;;
12307
12308 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12309 # support. Future versions do this automatically, but an explicit c++rt0.o
12310 # does not break anything, and helps significantly (at the cost of a little
12311 # extra space).
12312 freebsd2.2*)
12313 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12314 hardcode_libdir_flag_spec='-R$libdir'
12315 hardcode_direct=yes
12316 hardcode_shlibpath_var=no
12317 ;;
12318
12319 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12320 freebsd2.*)
12321 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12322 hardcode_direct=yes
12323 hardcode_minus_L=yes
12324 hardcode_shlibpath_var=no
12325 ;;
12326
12327 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12328 freebsd* | dragonfly* | midnightbsd*)
12329 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12330 hardcode_libdir_flag_spec='-R$libdir'
12331 hardcode_direct=yes
12332 hardcode_shlibpath_var=no
12333 ;;
12334
12335 hpux9*)
12336 if test yes = "$GCC"; then
12337 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'
12338 else
12339 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'
12340 fi
12341 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12342 hardcode_libdir_separator=:
12343 hardcode_direct=yes
12344
12345 # hardcode_minus_L: Not really in the search PATH,
12346 # but as the default location of the library.
12347 hardcode_minus_L=yes
12348 export_dynamic_flag_spec='$wl-E'
12349 ;;
12350
12351 hpux10*)
12352 if test yes,no = "$GCC,$with_gnu_ld"; then
12353 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12354 else
12355 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12356 fi
12357 if test no = "$with_gnu_ld"; then
12358 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12359 hardcode_libdir_separator=:
12360 hardcode_direct=yes
12361 hardcode_direct_absolute=yes
12362 export_dynamic_flag_spec='$wl-E'
12363 # hardcode_minus_L: Not really in the search PATH,
12364 # but as the default location of the library.
12365 hardcode_minus_L=yes
12366 fi
12367 ;;
12368
12369 hpux11*)
12370 if test yes,no = "$GCC,$with_gnu_ld"; then
12371 case $host_cpu in
12372 hppa*64*)
12373 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12374 ;;
12375 ia64*)
12376 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12377 ;;
12378 *)
12379 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12380 ;;
12381 esac
12382 else
12383 case $host_cpu in
12384 hppa*64*)
12385 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12386 ;;
12387 ia64*)
12388 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12389 ;;
12390 *)
12391
12392 # Older versions of the 11.00 compiler do not understand -b yet
12393 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12395 printf %s "checking if $CC understands -b... " >&6; }
12396 if test ${lt_cv_prog_compiler__b+y}
12397 then :
12398 printf %s "(cached) " >&6
12399 else case e in #(
12400 e) lt_cv_prog_compiler__b=no
12401 save_LDFLAGS=$LDFLAGS
12402 LDFLAGS="$LDFLAGS -b"
12403 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12404 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12405 # The linker can only warn and ignore the option if not recognized
12406 # So say no if there are warnings
12407 if test -s conftest.err; then
12408 # Append any errors to the config.log.
12409 cat conftest.err 1>&5
12410 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12411 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12412 if diff conftest.exp conftest.er2 >/dev/null; then
12413 lt_cv_prog_compiler__b=yes
12414 fi
12415 else
12416 lt_cv_prog_compiler__b=yes
12417 fi
12418 fi
12419 $RM -r conftest*
12420 LDFLAGS=$save_LDFLAGS
12421 ;;
12422 esac
12423 fi
12424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12425 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
12426
12427 if test yes = "$lt_cv_prog_compiler__b"; then
12428 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12429 else
12430 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12431 fi
12432
12433 ;;
12434 esac
12435 fi
12436 if test no = "$with_gnu_ld"; then
12437 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12438 hardcode_libdir_separator=:
12439
12440 case $host_cpu in
12441 hppa*64*|ia64*)
12442 hardcode_direct=no
12443 hardcode_shlibpath_var=no
12444 ;;
12445 *)
12446 hardcode_direct=yes
12447 hardcode_direct_absolute=yes
12448 export_dynamic_flag_spec='$wl-E'
12449
12450 # hardcode_minus_L: Not really in the search PATH,
12451 # but as the default location of the library.
12452 hardcode_minus_L=yes
12453 ;;
12454 esac
12455 fi
12456 ;;
12457
12458 irix5* | irix6* | nonstopux*)
12459 if test yes = "$GCC"; then
12460 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'
12461 # Try to use the -exported_symbol ld option, if it does not
12462 # work, assume that -exports_file does not work either and
12463 # implicitly export all symbols.
12464 # This should be the same for all languages, so no per-tag cache variable.
12465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12466 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12467 if test ${lt_cv_irix_exported_symbol+y}
12468 then :
12469 printf %s "(cached) " >&6
12470 else case e in #(
12471 e) save_LDFLAGS=$LDFLAGS
12472 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
12473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12474 /* end confdefs.h. */
12475 int foo (void) { return 0; }
12476 _ACEOF
12477 if ac_fn_c_try_link "$LINENO"
12478 then :
12479 lt_cv_irix_exported_symbol=yes
12480 else case e in #(
12481 e) lt_cv_irix_exported_symbol=no ;;
12482 esac
12483 fi
12484 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12485 conftest$ac_exeext conftest.$ac_ext
12486 LDFLAGS=$save_LDFLAGS ;;
12487 esac
12488 fi
12489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12490 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
12491 if test yes = "$lt_cv_irix_exported_symbol"; then
12492 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'
12493 fi
12494 else
12495 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'
12496 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'
12497 fi
12498 archive_cmds_need_lc='no'
12499 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12500 hardcode_libdir_separator=:
12501 inherit_rpath=yes
12502 link_all_deplibs=yes
12503 ;;
12504
12505 linux*)
12506 case $cc_basename in
12507 tcc*)
12508 # Fabrice Bellard et al's Tiny C Compiler
12509 ld_shlibs=yes
12510 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12511 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12512 ;;
12513 esac
12514 ;;
12515
12516 *-mlibc)
12517 ;;
12518
12519 netbsd* | netbsdelf*-gnu)
12520 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12521 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12522 else
12523 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12524 fi
12525 hardcode_libdir_flag_spec='-R$libdir'
12526 hardcode_direct=yes
12527 hardcode_shlibpath_var=no
12528 ;;
12529
12530 newsos6)
12531 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12532 hardcode_direct=yes
12533 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12534 hardcode_libdir_separator=:
12535 hardcode_shlibpath_var=no
12536 ;;
12537
12538 *nto* | *qnx*)
12539 ;;
12540
12541 openbsd*)
12542 if test -f /usr/libexec/ld.so; then
12543 hardcode_direct=yes
12544 hardcode_shlibpath_var=no
12545 hardcode_direct_absolute=yes
12546 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12547 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12548 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12549 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12550 export_dynamic_flag_spec='$wl-E'
12551 else
12552 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12553 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12554 fi
12555 else
12556 ld_shlibs=no
12557 fi
12558 ;;
12559
12560 os2*)
12561 hardcode_libdir_flag_spec='-L$libdir'
12562 hardcode_minus_L=yes
12563 allow_undefined_flag=unsupported
12564 shrext_cmds=.dll
12565 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12566 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12567 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12568 $ECHO EXPORTS >> $output_objdir/$libname.def~
12569 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12570 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12571 emximp -o $lib $output_objdir/$libname.def'
12572 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12573 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12574 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12575 $ECHO EXPORTS >> $output_objdir/$libname.def~
12576 prefix_cmds="$SED"~
12577 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12578 prefix_cmds="$prefix_cmds -e 1d";
12579 fi~
12580 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12581 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12582 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12583 emximp -o $lib $output_objdir/$libname.def'
12584 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12585 enable_shared_with_static_runtimes=yes
12586 file_list_spec='@'
12587 ;;
12588
12589 osf3*)
12590 if test yes = "$GCC"; then
12591 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12592 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'
12593 else
12594 allow_undefined_flag=' -expect_unresolved \*'
12595 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'
12596 fi
12597 archive_cmds_need_lc='no'
12598 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12599 hardcode_libdir_separator=:
12600 ;;
12601
12602 osf4* | osf5*) # as osf3* with the addition of -msym flag
12603 if test yes = "$GCC"; then
12604 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12605 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'
12606 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12607 else
12608 allow_undefined_flag=' -expect_unresolved \*'
12609 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'
12610 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~
12611 $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'
12612
12613 # Both c and cxx compiler support -rpath directly
12614 hardcode_libdir_flag_spec='-rpath $libdir'
12615 fi
12616 archive_cmds_need_lc='no'
12617 hardcode_libdir_separator=:
12618 ;;
12619
12620 serenity*)
12621 ;;
12622
12623 solaris*)
12624 no_undefined_flag=' -z defs'
12625 if test yes = "$GCC"; then
12626 wlarc='$wl'
12627 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12628 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12629 $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'
12630 else
12631 case `$CC -V 2>&1` in
12632 *"Compilers 5.0"*)
12633 wlarc=''
12634 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12635 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12636 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12637 ;;
12638 *)
12639 wlarc='$wl'
12640 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12641 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12642 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12643 ;;
12644 esac
12645 fi
12646 hardcode_libdir_flag_spec='-R$libdir'
12647 hardcode_shlibpath_var=no
12648 case $host_os in
12649 solaris2.[0-5] | solaris2.[0-5].*) ;;
12650 *)
12651 # The compiler driver will combine and reorder linker options,
12652 # but understands '-z linker_flag'. GCC discards it without '$wl',
12653 # but is careful enough not to reorder.
12654 # Supported since Solaris 2.6 (maybe 2.5.1?)
12655 if test yes = "$GCC"; then
12656 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12657 else
12658 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12659 fi
12660 ;;
12661 esac
12662 link_all_deplibs=yes
12663 ;;
12664
12665 sunos4*)
12666 if test sequent = "$host_vendor"; then
12667 # Use $CC to link under sequent, because it throws in some extra .o
12668 # files that make .init and .fini sections work.
12669 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12670 else
12671 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12672 fi
12673 hardcode_libdir_flag_spec='-L$libdir'
12674 hardcode_direct=yes
12675 hardcode_minus_L=yes
12676 hardcode_shlibpath_var=no
12677 ;;
12678
12679 sysv4)
12680 case $host_vendor in
12681 sni)
12682 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12683 hardcode_direct=yes # is this really true???
12684 ;;
12685 siemens)
12686 ## LD is ld it makes a PLAMLIB
12687 ## CC just makes a GrossModule.
12688 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12689 reload_cmds='$CC -r -o $output$reload_objs'
12690 hardcode_direct=no
12691 ;;
12692 motorola)
12693 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12694 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12695 ;;
12696 esac
12697 runpath_var='LD_RUN_PATH'
12698 hardcode_shlibpath_var=no
12699 ;;
12700
12701 sysv4.3*)
12702 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12703 hardcode_shlibpath_var=no
12704 export_dynamic_flag_spec='-Bexport'
12705 ;;
12706
12707 sysv4*MP*)
12708 if test -d /usr/nec; then
12709 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12710 hardcode_shlibpath_var=no
12711 runpath_var=LD_RUN_PATH
12712 hardcode_runpath_var=yes
12713 ld_shlibs=yes
12714 fi
12715 ;;
12716
12717 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12718 no_undefined_flag='$wl-z,text'
12719 archive_cmds_need_lc=no
12720 hardcode_shlibpath_var=no
12721 runpath_var='LD_RUN_PATH'
12722
12723 if test yes = "$GCC"; then
12724 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12725 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12726 else
12727 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12728 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12729 fi
12730 ;;
12731
12732 sysv5* | sco3.2v5* | sco5v6*)
12733 # Note: We CANNOT use -z defs as we might desire, because we do not
12734 # link with -lc, and that would cause any symbols used from libc to
12735 # always be unresolved, which means just about no library would
12736 # ever link correctly. If we're not using GNU ld we use -z text
12737 # though, which does catch some bad symbols but isn't as heavy-handed
12738 # as -z defs.
12739 no_undefined_flag='$wl-z,text'
12740 allow_undefined_flag='$wl-z,nodefs'
12741 archive_cmds_need_lc=no
12742 hardcode_shlibpath_var=no
12743 hardcode_libdir_flag_spec='$wl-R,$libdir'
12744 hardcode_libdir_separator=':'
12745 link_all_deplibs=yes
12746 export_dynamic_flag_spec='$wl-Bexport'
12747 runpath_var='LD_RUN_PATH'
12748
12749 if test yes = "$GCC"; then
12750 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12751 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12752 else
12753 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12754 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12755 fi
12756 ;;
12757
12758 uts4*)
12759 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12760 hardcode_libdir_flag_spec='-L$libdir'
12761 hardcode_shlibpath_var=no
12762 ;;
12763
12764 *)
12765 ld_shlibs=no
12766 ;;
12767 esac
12768
12769 if test sni = "$host_vendor"; then
12770 case $host in
12771 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12772 export_dynamic_flag_spec='$wl-Blargedynsym'
12773 ;;
12774 esac
12775 fi
12776 fi
12777
12778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12779 printf "%s\n" "$ld_shlibs" >&6; }
12780 test no = "$ld_shlibs" && can_build_shared=no
12781
12782 with_gnu_ld=$with_gnu_ld
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798 #
12799 # Do we need to explicitly link libc?
12800 #
12801 case "x$archive_cmds_need_lc" in
12802 x|xyes)
12803 # Assume -lc should be added
12804 archive_cmds_need_lc=yes
12805
12806 if test yes,yes = "$GCC,$enable_shared"; then
12807 case $archive_cmds in
12808 *'~'*)
12809 # FIXME: we may have to deal with multi-command sequences.
12810 ;;
12811 '$CC '*)
12812 # Test whether the compiler implicitly links with -lc since on some
12813 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12814 # to ld, don't add -lc before -lgcc.
12815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12816 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
12817 if test ${lt_cv_archive_cmds_need_lc+y}
12818 then :
12819 printf %s "(cached) " >&6
12820 else case e in #(
12821 e) $RM conftest*
12822 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12823
12824 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12825 (eval $ac_compile) 2>&5
12826 ac_status=$?
12827 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12828 test $ac_status = 0; } 2>conftest.err; then
12829 soname=conftest
12830 lib=conftest
12831 libobjs=conftest.$ac_objext
12832 deplibs=
12833 wl=$lt_prog_compiler_wl
12834 pic_flag=$lt_prog_compiler_pic
12835 compiler_flags=-v
12836 linker_flags=-v
12837 verstring=
12838 output_objdir=.
12839 libname=conftest
12840 lt_save_allow_undefined_flag=$allow_undefined_flag
12841 allow_undefined_flag=
12842 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12843 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12844 ac_status=$?
12845 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12846 test $ac_status = 0; }
12847 then
12848 lt_cv_archive_cmds_need_lc=no
12849 else
12850 lt_cv_archive_cmds_need_lc=yes
12851 fi
12852 allow_undefined_flag=$lt_save_allow_undefined_flag
12853 else
12854 cat conftest.err 1>&5
12855 fi
12856 $RM conftest*
12857 ;;
12858 esac
12859 fi
12860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12861 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
12862 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12863 ;;
12864 esac
12865 fi
12866 ;;
12867 esac
12868
12869
12870
12871
12872
12873
12874
12875
12876
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905
12906
12907
12908
12909
12910
12911
12912
12913
12914
12915
12916
12917
12918
12919
12920
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965
12966
12967
12968
12969
12970
12971
12972
12973
12974
12975
12976
12977
12978
12979
12980
12981
12982
12983
12984
12985
12986
12987
12988
12989
12990
12991
12992
12993
12994
12995
12996
12997
12998
12999
13000
13001
13002
13003
13004
13005
13006
13007
13008
13009
13010
13011
13012
13013
13014
13015
13016
13017
13018
13019
13020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13021 printf %s "checking dynamic linker characteristics... " >&6; }
13022
13023 if test yes = "$GCC"; then
13024 case $host_os in
13025 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
13026 *) lt_awk_arg='/^libraries:/' ;;
13027 esac
13028 case $host_os in
13029 mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
13030 *) lt_sed_strip_eq='s|=/|/|g' ;;
13031 esac
13032 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13033 case $lt_search_path_spec in
13034 *\;*)
13035 # if the path contains ";" then we assume it to be the separator
13036 # otherwise default to the standard path separator (i.e. ":") - it is
13037 # assumed that no part of a normal pathname contains ";" but that should
13038 # okay in the real world where ";" in dirpaths is itself problematic.
13039 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13040 ;;
13041 *)
13042 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13043 ;;
13044 esac
13045 # Ok, now we have the path, separated by spaces, we can step through it
13046 # and add multilib dir if necessary...
13047 lt_tmp_lt_search_path_spec=
13048 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13049 # ...but if some path component already ends with the multilib dir we assume
13050 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
13051 case "$lt_multi_os_dir; $lt_search_path_spec " in
13052 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
13053 lt_multi_os_dir=
13054 ;;
13055 esac
13056 for lt_sys_path in $lt_search_path_spec; do
13057 if test -d "$lt_sys_path$lt_multi_os_dir"; then
13058 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
13059 elif test -n "$lt_multi_os_dir"; then
13060 test -d "$lt_sys_path" && \
13061 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13062 fi
13063 done
13064 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13065 BEGIN {RS = " "; FS = "/|\n";} {
13066 lt_foo = "";
13067 lt_count = 0;
13068 for (lt_i = NF; lt_i > 0; lt_i--) {
13069 if ($lt_i != "" && $lt_i != ".") {
13070 if ($lt_i == "..") {
13071 lt_count++;
13072 } else {
13073 if (lt_count == 0) {
13074 lt_foo = "/" $lt_i lt_foo;
13075 } else {
13076 lt_count--;
13077 }
13078 }
13079 }
13080 }
13081 if (lt_foo != "") { lt_freq[lt_foo]++; }
13082 if (lt_freq[lt_foo] == 1) { print lt_foo; }
13083 }'`
13084 # AWK program above erroneously prepends '/' to C:/dos/paths
13085 # for these hosts.
13086 case $host_os in
13087 mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13088 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
13089 esac
13090 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13091 else
13092 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13093 fi
13094 library_names_spec=
13095 libname_spec='lib$name'
13096 soname_spec=
13097 shrext_cmds=.so
13098 postinstall_cmds=
13099 postuninstall_cmds=
13100 finish_cmds=
13101 finish_eval=
13102 shlibpath_var=
13103 shlibpath_overrides_runpath=unknown
13104 version_type=none
13105 dynamic_linker="$host_os ld.so"
13106 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13107 need_lib_prefix=unknown
13108 hardcode_into_libs=no
13109
13110 # when you set need_version to no, make sure it does not cause -set_version
13111 # flags to be left without arguments
13112 need_version=unknown
13113
13114
13115
13116 case $host_os in
13117 aix3*)
13118 version_type=linux # correct to gnu/linux during the next big refactor
13119 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
13120 shlibpath_var=LIBPATH
13121
13122 # AIX 3 has no versioning support, so we append a major version to the name.
13123 soname_spec='$libname$release$shared_ext$major'
13124 ;;
13125
13126 aix[4-9]*)
13127 version_type=linux # correct to gnu/linux during the next big refactor
13128 need_lib_prefix=no
13129 need_version=no
13130 hardcode_into_libs=yes
13131 if test ia64 = "$host_cpu"; then
13132 # AIX 5 supports IA64
13133 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
13134 shlibpath_var=LD_LIBRARY_PATH
13135 else
13136 # With GCC up to 2.95.x, collect2 would create an import file
13137 # for dependence libraries. The import file would start with
13138 # the line '#! .'. This would cause the generated library to
13139 # depend on '.', always an invalid library. This was fixed in
13140 # development snapshots of GCC prior to 3.0.
13141 case $host_os in
13142 aix4 | aix4.[01] | aix4.[01].*)
13143 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13144 echo ' yes '
13145 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
13146 :
13147 else
13148 can_build_shared=no
13149 fi
13150 ;;
13151 esac
13152 # Using Import Files as archive members, it is possible to support
13153 # filename-based versioning of shared library archives on AIX. While
13154 # this would work for both with and without runtime linking, it will
13155 # prevent static linking of such archives. So we do filename-based
13156 # shared library versioning with .so extension only, which is used
13157 # when both runtime linking and shared linking is enabled.
13158 # Unfortunately, runtime linking may impact performance, so we do
13159 # not want this to be the default eventually. Also, we use the
13160 # versioned .so libs for executables only if there is the -brtl
13161 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
13162 # To allow for filename-based versioning support, we need to create
13163 # libNAME.so.V as an archive file, containing:
13164 # *) an Import File, referring to the versioned filename of the
13165 # archive as well as the shared archive member, telling the
13166 # bitwidth (32 or 64) of that shared object, and providing the
13167 # list of exported symbols of that shared object, eventually
13168 # decorated with the 'weak' keyword
13169 # *) the shared object with the F_LOADONLY flag set, to really avoid
13170 # it being seen by the linker.
13171 # At run time we better use the real file rather than another symlink,
13172 # but for link time we create the symlink libNAME.so -> libNAME.so.V
13173
13174 case $with_aix_soname,$aix_use_runtimelinking in
13175 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
13176 # soname into executable. Probably we can add versioning support to
13177 # collect2, so additional links can be useful in future.
13178 aix,yes) # traditional libtool
13179 dynamic_linker='AIX unversionable lib.so'
13180 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13181 # instead of lib<name>.a to let people know that these are not
13182 # typical AIX shared libraries.
13183 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13184 ;;
13185 aix,no) # traditional AIX only
13186 dynamic_linker='AIX lib.a(lib.so.V)'
13187 # We preserve .a as extension for shared libraries through AIX4.2
13188 # and later when we are not doing run time linking.
13189 library_names_spec='$libname$release.a $libname.a'
13190 soname_spec='$libname$release$shared_ext$major'
13191 ;;
13192 svr4,*) # full svr4 only
13193 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
13194 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13195 # We do not specify a path in Import Files, so LIBPATH fires.
13196 shlibpath_overrides_runpath=yes
13197 ;;
13198 *,yes) # both, prefer svr4
13199 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
13200 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13201 # unpreferred sharedlib libNAME.a needs extra handling
13202 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"'
13203 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"'
13204 # We do not specify a path in Import Files, so LIBPATH fires.
13205 shlibpath_overrides_runpath=yes
13206 ;;
13207 *,no) # both, prefer aix
13208 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
13209 library_names_spec='$libname$release.a $libname.a'
13210 soname_spec='$libname$release$shared_ext$major'
13211 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
13212 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)'
13213 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"'
13214 ;;
13215 esac
13216 shlibpath_var=LIBPATH
13217 fi
13218 ;;
13219
13220 amigaos*)
13221 case $host_cpu in
13222 powerpc)
13223 # Since July 2007 AmigaOS4 officially supports .so libraries.
13224 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13225 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13226 ;;
13227 m68k)
13228 library_names_spec='$libname.ixlibrary $libname.a'
13229 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13230 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'
13231 ;;
13232 esac
13233 ;;
13234
13235 beos*)
13236 library_names_spec='$libname$shared_ext'
13237 dynamic_linker="$host_os ld.so"
13238 shlibpath_var=LIBRARY_PATH
13239 ;;
13240
13241 bsdi[45]*)
13242 version_type=linux # correct to gnu/linux during the next big refactor
13243 need_version=no
13244 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13245 soname_spec='$libname$release$shared_ext$major'
13246 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13247 shlibpath_var=LD_LIBRARY_PATH
13248 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13249 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13250 # the default ld.so.conf also contains /usr/contrib/lib and
13251 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13252 # libtool to hard-code these into programs
13253 ;;
13254
13255 cygwin* | mingw* | windows* | pw32* | cegcc*)
13256 version_type=windows
13257 shrext_cmds=.dll
13258 need_version=no
13259 need_lib_prefix=no
13260
13261 case $GCC,$cc_basename in
13262 yes,*)
13263 # gcc
13264 library_names_spec='$libname.dll.a'
13265 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13266 # If user builds GCC with multilib enabled,
13267 # it should just install on $(libdir)
13268 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
13269 if test xyes = x"$multilib"; then
13270 postinstall_cmds='base_file=`basename \$file`~
13271 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13272 dldir=$destdir/`dirname \$dlpath`~
13273 $install_prog $dir/$dlname $destdir/$dlname~
13274 chmod a+x $destdir/$dlname~
13275 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13276 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
13277 fi'
13278 else
13279 postinstall_cmds='base_file=`basename \$file`~
13280 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13281 dldir=$destdir/`dirname \$dlpath`~
13282 test -d \$dldir || mkdir -p \$dldir~
13283 $install_prog $dir/$dlname \$dldir/$dlname~
13284 chmod a+x \$dldir/$dlname~
13285 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13286 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13287 fi'
13288 fi
13289 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13290 dlpath=$dir/\$dldll~
13291 $RM \$dlpath'
13292 shlibpath_overrides_runpath=yes
13293
13294 case $host_os in
13295 cygwin*)
13296 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13297 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13298
13299 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13300 ;;
13301 mingw* | windows* | cegcc*)
13302 # MinGW DLLs use traditional 'lib' prefix
13303 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13304 ;;
13305 pw32*)
13306 # pw32 DLLs use 'pw' prefix rather than 'lib'
13307 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13308 ;;
13309 esac
13310 dynamic_linker='Win32 ld.exe'
13311 ;;
13312
13313 *,cl* | *,icl*)
13314 # Native MSVC or ICC
13315 libname_spec='$name'
13316 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13317 library_names_spec='$libname.dll.lib'
13318
13319 case $build_os in
13320 mingw* | windows*)
13321 sys_lib_search_path_spec=
13322 lt_save_ifs=$IFS
13323 IFS=';'
13324 for lt_path in $LIB
13325 do
13326 IFS=$lt_save_ifs
13327 # Let DOS variable expansion print the short 8.3 style file name.
13328 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13329 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13330 done
13331 IFS=$lt_save_ifs
13332 # Convert to MSYS style.
13333 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13334 ;;
13335 cygwin*)
13336 # Convert to unix form, then to dos form, then back to unix form
13337 # but this time dos style (no spaces!) so that the unix form looks
13338 # like /cygdrive/c/PROGRA~1:/cygdr...
13339 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13340 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13341 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13342 ;;
13343 *)
13344 sys_lib_search_path_spec=$LIB
13345 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13346 # It is most probably a Windows format PATH.
13347 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13348 else
13349 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13350 fi
13351 # FIXME: find the short name or the path components, as spaces are
13352 # common. (e.g. "Program Files" -> "PROGRA~1")
13353 ;;
13354 esac
13355
13356 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13357 postinstall_cmds='base_file=`basename \$file`~
13358 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13359 dldir=$destdir/`dirname \$dlpath`~
13360 test -d \$dldir || mkdir -p \$dldir~
13361 $install_prog $dir/$dlname \$dldir/$dlname'
13362 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13363 dlpath=$dir/\$dldll~
13364 $RM \$dlpath'
13365 shlibpath_overrides_runpath=yes
13366 dynamic_linker='Win32 link.exe'
13367 ;;
13368
13369 *)
13370 # Assume MSVC and ICC wrapper
13371 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
13372 dynamic_linker='Win32 ld.exe'
13373 ;;
13374 esac
13375 # FIXME: first we should search . and the directory the executable is in
13376 shlibpath_var=PATH
13377 ;;
13378
13379 darwin* | rhapsody*)
13380 dynamic_linker="$host_os dyld"
13381 version_type=darwin
13382 need_lib_prefix=no
13383 need_version=no
13384 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
13385 soname_spec='$libname$release$major$shared_ext'
13386 shlibpath_overrides_runpath=yes
13387 shlibpath_var=DYLD_LIBRARY_PATH
13388 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13389
13390 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13391 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13392 ;;
13393
13394 dgux*)
13395 version_type=linux # correct to gnu/linux during the next big refactor
13396 need_lib_prefix=no
13397 need_version=no
13398 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13399 soname_spec='$libname$release$shared_ext$major'
13400 shlibpath_var=LD_LIBRARY_PATH
13401 ;;
13402
13403 freebsd* | dragonfly* | midnightbsd*)
13404 # DragonFly does not have aout. When/if they implement a new
13405 # versioning mechanism, adjust this.
13406 if test -x /usr/bin/objformat; then
13407 objformat=`/usr/bin/objformat`
13408 else
13409 case $host_os in
13410 freebsd[23].*) objformat=aout ;;
13411 *) objformat=elf ;;
13412 esac
13413 fi
13414 version_type=freebsd-$objformat
13415 case $version_type in
13416 freebsd-elf*)
13417 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13418 soname_spec='$libname$release$shared_ext$major'
13419 need_version=no
13420 need_lib_prefix=no
13421 ;;
13422 freebsd-*)
13423 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13424 need_version=yes
13425 ;;
13426 esac
13427 case $host_cpu in
13428 powerpc64)
13429 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
13430 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
13431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13432 /* end confdefs.h. */
13433 int test_pointer_size[sizeof (void *) - 5];
13434
13435 _ACEOF
13436 if ac_fn_c_try_compile "$LINENO"
13437 then :
13438 shlibpath_var=LD_LIBRARY_PATH
13439 else case e in #(
13440 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
13441 esac
13442 fi
13443 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13444 ;;
13445 *)
13446 shlibpath_var=LD_LIBRARY_PATH
13447 ;;
13448 esac
13449 case $host_os in
13450 freebsd2.*)
13451 shlibpath_overrides_runpath=yes
13452 ;;
13453 freebsd3.[01]* | freebsdelf3.[01]*)
13454 shlibpath_overrides_runpath=yes
13455 hardcode_into_libs=yes
13456 ;;
13457 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13458 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13459 shlibpath_overrides_runpath=no
13460 hardcode_into_libs=yes
13461 ;;
13462 *) # from 4.6 on, and DragonFly
13463 shlibpath_overrides_runpath=yes
13464 hardcode_into_libs=yes
13465 ;;
13466 esac
13467 ;;
13468
13469 haiku*)
13470 version_type=linux # correct to gnu/linux during the next big refactor
13471 need_lib_prefix=no
13472 need_version=no
13473 dynamic_linker="$host_os runtime_loader"
13474 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13475 soname_spec='$libname$release$shared_ext$major'
13476 shlibpath_var=LIBRARY_PATH
13477 shlibpath_overrides_runpath=no
13478 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
13479 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
13480 hardcode_into_libs=no
13481 ;;
13482
13483 hpux9* | hpux10* | hpux11*)
13484 # Give a soname corresponding to the major version so that dld.sl refuses to
13485 # link against other versions.
13486 version_type=sunos
13487 need_lib_prefix=no
13488 need_version=no
13489 case $host_cpu in
13490 ia64*)
13491 shrext_cmds='.so'
13492 hardcode_into_libs=yes
13493 dynamic_linker="$host_os dld.so"
13494 shlibpath_var=LD_LIBRARY_PATH
13495 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13496 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13497 soname_spec='$libname$release$shared_ext$major'
13498 if test 32 = "$HPUX_IA64_MODE"; then
13499 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13500 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
13501 else
13502 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13503 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
13504 fi
13505 ;;
13506 hppa*64*)
13507 shrext_cmds='.sl'
13508 hardcode_into_libs=yes
13509 dynamic_linker="$host_os dld.sl"
13510 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13511 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13512 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13513 soname_spec='$libname$release$shared_ext$major'
13514 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13515 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13516 ;;
13517 *)
13518 shrext_cmds='.sl'
13519 dynamic_linker="$host_os dld.sl"
13520 shlibpath_var=SHLIB_PATH
13521 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13522 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13523 soname_spec='$libname$release$shared_ext$major'
13524 ;;
13525 esac
13526 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13527 postinstall_cmds='chmod 555 $lib'
13528 # or fails outright, so override atomically:
13529 install_override_mode=555
13530 ;;
13531
13532 interix[3-9]*)
13533 version_type=linux # correct to gnu/linux during the next big refactor
13534 need_lib_prefix=no
13535 need_version=no
13536 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13537 soname_spec='$libname$release$shared_ext$major'
13538 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13539 shlibpath_var=LD_LIBRARY_PATH
13540 shlibpath_overrides_runpath=no
13541 hardcode_into_libs=yes
13542 ;;
13543
13544 irix5* | irix6* | nonstopux*)
13545 case $host_os in
13546 nonstopux*) version_type=nonstopux ;;
13547 *)
13548 if test yes = "$lt_cv_prog_gnu_ld"; then
13549 version_type=linux # correct to gnu/linux during the next big refactor
13550 else
13551 version_type=irix
13552 fi ;;
13553 esac
13554 need_lib_prefix=no
13555 need_version=no
13556 soname_spec='$libname$release$shared_ext$major'
13557 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
13558 case $host_os in
13559 irix5* | nonstopux*)
13560 libsuff= shlibsuff=
13561 ;;
13562 *)
13563 case $LD in # libtool.m4 will add one of these switches to LD
13564 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13565 libsuff= shlibsuff= libmagic=32-bit;;
13566 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13567 libsuff=32 shlibsuff=N32 libmagic=N32;;
13568 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13569 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13570 *) libsuff= shlibsuff= libmagic=never-match;;
13571 esac
13572 ;;
13573 esac
13574 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13575 shlibpath_overrides_runpath=no
13576 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13577 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
13578 hardcode_into_libs=yes
13579 ;;
13580
13581 # No shared lib support for Linux oldld, aout, or coff.
13582 linux*oldld* | linux*aout* | linux*coff*)
13583 dynamic_linker=no
13584 ;;
13585
13586 linux*android*)
13587 version_type=none # Android doesn't support versioned libraries.
13588 need_lib_prefix=no
13589 need_version=no
13590 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
13591 soname_spec='$libname$release$shared_ext'
13592 finish_cmds=
13593 shlibpath_var=LD_LIBRARY_PATH
13594 shlibpath_overrides_runpath=yes
13595
13596 # This implies no fast_install, which is unacceptable.
13597 # Some rework will be needed to allow for fast_install
13598 # before this can be enabled.
13599 hardcode_into_libs=yes
13600
13601 dynamic_linker='Android linker'
13602 # -rpath works at least for libraries that are not overridden by
13603 # libraries installed in system locations.
13604 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13605 ;;
13606
13607 # This must be glibc/ELF.
13608 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13609 version_type=linux # correct to gnu/linux during the next big refactor
13610 need_lib_prefix=no
13611 need_version=no
13612 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13613 soname_spec='$libname$release$shared_ext$major'
13614 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13615 shlibpath_var=LD_LIBRARY_PATH
13616 shlibpath_overrides_runpath=no
13617
13618 # Some binutils ld are patched to set DT_RUNPATH
13619 if test ${lt_cv_shlibpath_overrides_runpath+y}
13620 then :
13621 printf %s "(cached) " >&6
13622 else case e in #(
13623 e) lt_cv_shlibpath_overrides_runpath=no
13624 save_LDFLAGS=$LDFLAGS
13625 save_libdir=$libdir
13626 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13627 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13629 /* end confdefs.h. */
13630
13631 int
13632 main (void)
13633 {
13634
13635 ;
13636 return 0;
13637 }
13638 _ACEOF
13639 if ac_fn_c_try_link "$LINENO"
13640 then :
13641 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
13642 then :
13643 lt_cv_shlibpath_overrides_runpath=yes
13644 fi
13645 fi
13646 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13647 conftest$ac_exeext conftest.$ac_ext
13648 LDFLAGS=$save_LDFLAGS
13649 libdir=$save_libdir
13650 ;;
13651 esac
13652 fi
13653
13654 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13655
13656 # This implies no fast_install, which is unacceptable.
13657 # Some rework will be needed to allow for fast_install
13658 # before this can be enabled.
13659 hardcode_into_libs=yes
13660
13661 # Ideally, we could use ldconfig to report *all* directories which are
13662 # searched for libraries, however this is still not possible. Aside from not
13663 # being certain /sbin/ldconfig is available, command
13664 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13665 # even though it is searched at run-time. Try to do the best guess by
13666 # appending ld.so.conf contents (and includes) to the search path.
13667 if test -f /etc/ld.so.conf; then
13668 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' ' '`
13669 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13670 fi
13671
13672 # We used to test for /lib/ld.so.1 and disable shared libraries on
13673 # powerpc, because MkLinux only supported shared libraries with the
13674 # GNU dynamic linker. Since this was broken with cross compilers,
13675 # most powerpc-linux boxes support dynamic linking these days and
13676 # people can always --disable-shared, the test was removed, and we
13677 # assume the GNU/Linux dynamic linker is in use.
13678 dynamic_linker='GNU/Linux ld.so'
13679 ;;
13680
13681 netbsdelf*-gnu)
13682 version_type=linux
13683 need_lib_prefix=no
13684 need_version=no
13685 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13686 soname_spec='$libname$release$shared_ext$major'
13687 shlibpath_var=LD_LIBRARY_PATH
13688 shlibpath_overrides_runpath=no
13689 hardcode_into_libs=yes
13690 dynamic_linker='NetBSD ld.elf_so'
13691 ;;
13692
13693 netbsd*)
13694 version_type=sunos
13695 need_lib_prefix=no
13696 need_version=no
13697 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13698 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13699 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13700 dynamic_linker='NetBSD (a.out) ld.so'
13701 else
13702 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13703 soname_spec='$libname$release$shared_ext$major'
13704 dynamic_linker='NetBSD ld.elf_so'
13705 fi
13706 shlibpath_var=LD_LIBRARY_PATH
13707 shlibpath_overrides_runpath=yes
13708 hardcode_into_libs=yes
13709 ;;
13710
13711 *-mlibc)
13712 version_type=linux # correct to gnu/linux during the next big refactor
13713 need_lib_prefix=no
13714 need_version=no
13715 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13716 soname_spec='$libname$release$shared_ext$major'
13717 dynamic_linker='mlibc ld.so'
13718 shlibpath_var=LD_LIBRARY_PATH
13719 shlibpath_overrides_runpath=no
13720 hardcode_into_libs=yes
13721 ;;
13722
13723 newsos6)
13724 version_type=linux # correct to gnu/linux during the next big refactor
13725 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13726 shlibpath_var=LD_LIBRARY_PATH
13727 shlibpath_overrides_runpath=yes
13728 ;;
13729
13730 *nto* | *qnx*)
13731 version_type=qnx
13732 need_lib_prefix=no
13733 need_version=no
13734 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13735 soname_spec='$libname$release$shared_ext$major'
13736 shlibpath_var=LD_LIBRARY_PATH
13737 shlibpath_overrides_runpath=no
13738 hardcode_into_libs=yes
13739 dynamic_linker='ldqnx.so'
13740 ;;
13741
13742 openbsd*)
13743 version_type=sunos
13744 sys_lib_dlsearch_path_spec=/usr/lib
13745 need_lib_prefix=no
13746 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13747 need_version=no
13748 else
13749 need_version=yes
13750 fi
13751 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13752 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13753 shlibpath_var=LD_LIBRARY_PATH
13754 shlibpath_overrides_runpath=yes
13755 ;;
13756
13757 os2*)
13758 libname_spec='$name'
13759 version_type=windows
13760 shrext_cmds=.dll
13761 need_version=no
13762 need_lib_prefix=no
13763 # OS/2 can only load a DLL with a base name of 8 characters or less.
13764 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13765 v=$($ECHO $release$versuffix | tr -d .-);
13766 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13767 $ECHO $n$v`$shared_ext'
13768 library_names_spec='${libname}_dll.$libext'
13769 dynamic_linker='OS/2 ld.exe'
13770 shlibpath_var=BEGINLIBPATH
13771 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13772 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13773 postinstall_cmds='base_file=`basename \$file`~
13774 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13775 dldir=$destdir/`dirname \$dlpath`~
13776 test -d \$dldir || mkdir -p \$dldir~
13777 $install_prog $dir/$dlname \$dldir/$dlname~
13778 chmod a+x \$dldir/$dlname~
13779 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13780 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13781 fi'
13782 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13783 dlpath=$dir/\$dldll~
13784 $RM \$dlpath'
13785 ;;
13786
13787 osf3* | osf4* | osf5*)
13788 version_type=osf
13789 need_lib_prefix=no
13790 need_version=no
13791 soname_spec='$libname$release$shared_ext$major'
13792 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13793 shlibpath_var=LD_LIBRARY_PATH
13794 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13795 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13796 ;;
13797
13798 rdos*)
13799 dynamic_linker=no
13800 ;;
13801
13802 serenity*)
13803 version_type=linux # correct to gnu/linux during the next big refactor
13804 need_lib_prefix=no
13805 need_version=no
13806 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13807 soname_spec='$libname$release$shared_ext$major'
13808 shlibpath_var=LD_LIBRARY_PATH
13809 shlibpath_overrides_runpath=no
13810 dynamic_linker='SerenityOS LibELF'
13811 ;;
13812
13813 solaris*)
13814 version_type=linux # correct to gnu/linux during the next big refactor
13815 need_lib_prefix=no
13816 need_version=no
13817 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13818 soname_spec='$libname$release$shared_ext$major'
13819 shlibpath_var=LD_LIBRARY_PATH
13820 shlibpath_overrides_runpath=yes
13821 hardcode_into_libs=yes
13822 # ldd complains unless libraries are executable
13823 postinstall_cmds='chmod +x $lib'
13824 ;;
13825
13826 sunos4*)
13827 version_type=sunos
13828 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13829 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13830 shlibpath_var=LD_LIBRARY_PATH
13831 shlibpath_overrides_runpath=yes
13832 if test yes = "$with_gnu_ld"; then
13833 need_lib_prefix=no
13834 fi
13835 need_version=yes
13836 ;;
13837
13838 sysv4 | sysv4.3*)
13839 version_type=linux # correct to gnu/linux during the next big refactor
13840 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13841 soname_spec='$libname$release$shared_ext$major'
13842 shlibpath_var=LD_LIBRARY_PATH
13843 case $host_vendor in
13844 sni)
13845 shlibpath_overrides_runpath=no
13846 need_lib_prefix=no
13847 runpath_var=LD_RUN_PATH
13848 ;;
13849 siemens)
13850 need_lib_prefix=no
13851 ;;
13852 motorola)
13853 need_lib_prefix=no
13854 need_version=no
13855 shlibpath_overrides_runpath=no
13856 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13857 ;;
13858 esac
13859 ;;
13860
13861 sysv4*MP*)
13862 if test -d /usr/nec; then
13863 version_type=linux # correct to gnu/linux during the next big refactor
13864 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13865 soname_spec='$libname$shared_ext.$major'
13866 shlibpath_var=LD_LIBRARY_PATH
13867 fi
13868 ;;
13869
13870 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13871 version_type=sco
13872 need_lib_prefix=no
13873 need_version=no
13874 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13875 soname_spec='$libname$release$shared_ext$major'
13876 shlibpath_var=LD_LIBRARY_PATH
13877 shlibpath_overrides_runpath=yes
13878 hardcode_into_libs=yes
13879 if test yes = "$with_gnu_ld"; then
13880 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13881 else
13882 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13883 case $host_os in
13884 sco3.2v5*)
13885 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13886 ;;
13887 esac
13888 fi
13889 sys_lib_dlsearch_path_spec='/usr/lib'
13890 ;;
13891
13892 tpf*)
13893 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13894 version_type=linux # correct to gnu/linux during the next big refactor
13895 need_lib_prefix=no
13896 need_version=no
13897 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13898 shlibpath_var=LD_LIBRARY_PATH
13899 shlibpath_overrides_runpath=no
13900 hardcode_into_libs=yes
13901 ;;
13902
13903 uts4*)
13904 version_type=linux # correct to gnu/linux during the next big refactor
13905 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13906 soname_spec='$libname$release$shared_ext$major'
13907 shlibpath_var=LD_LIBRARY_PATH
13908 ;;
13909
13910 emscripten*)
13911 version_type=none
13912 need_lib_prefix=no
13913 need_version=no
13914 library_names_spec='$libname$release$shared_ext'
13915 soname_spec='$libname$release$shared_ext'
13916 finish_cmds=
13917 dynamic_linker="Emscripten linker"
13918 lt_prog_compiler_wl=
13919 lt_prog_compiler_pic=
13920 lt_prog_compiler_static=
13921
13922
13923 if test yes = "$GCC"; then
13924 lt_prog_compiler_wl='-Wl,'
13925 lt_prog_compiler_static='-static'
13926
13927 case $host_os in
13928 aix*)
13929 # All AIX code is PIC.
13930 if test ia64 = "$host_cpu"; then
13931 # AIX 5 now supports IA64 processor
13932 lt_prog_compiler_static='-Bstatic'
13933 fi
13934 lt_prog_compiler_pic='-fPIC'
13935 ;;
13936
13937 amigaos*)
13938 case $host_cpu in
13939 powerpc)
13940 # see comment about AmigaOS4 .so support
13941 lt_prog_compiler_pic='-fPIC'
13942 ;;
13943 m68k)
13944 # FIXME: we need at least 68020 code to build shared libraries, but
13945 # adding the '-m68020' flag to GCC prevents building anything better,
13946 # like '-m68040'.
13947 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13948 ;;
13949 esac
13950 ;;
13951
13952 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13953 # PIC is the default for these OSes.
13954 ;;
13955
13956 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
13957 # This hack is so that the source file can tell whether it is being
13958 # built for inclusion in a dll (and should export symbols for example).
13959 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13960 # (--disable-auto-import) libraries
13961 lt_prog_compiler_pic='-DDLL_EXPORT'
13962 case $host_os in
13963 os2*)
13964 lt_prog_compiler_static='$wl-static'
13965 ;;
13966 esac
13967 ;;
13968
13969 darwin* | rhapsody*)
13970 # PIC is the default on this platform
13971 # Common symbols not allowed in MH_DYLIB files
13972 lt_prog_compiler_pic='-fno-common'
13973 ;;
13974
13975 haiku*)
13976 # PIC is the default for Haiku.
13977 # The "-static" flag exists, but is broken.
13978 lt_prog_compiler_static=
13979 ;;
13980
13981 hpux*)
13982 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13983 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13984 # sets the default TLS model and affects inlining.
13985 case $host_cpu in
13986 hppa*64*)
13987 # +Z the default
13988 ;;
13989 *)
13990 lt_prog_compiler_pic='-fPIC'
13991 ;;
13992 esac
13993 ;;
13994
13995 interix[3-9]*)
13996 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13997 # Instead, we relocate shared libraries at runtime.
13998 ;;
13999
14000 msdosdjgpp*)
14001 # Just because we use GCC doesn't mean we suddenly get shared libraries
14002 # on systems that don't support them.
14003 lt_prog_compiler_can_build_shared=no
14004 enable_shared=no
14005 ;;
14006
14007 *nto* | *qnx*)
14008 # QNX uses GNU C++, but need to define -shared option too, otherwise
14009 # it will coredump.
14010 lt_prog_compiler_pic='-fPIC -shared'
14011 ;;
14012
14013 sysv4*MP*)
14014 if test -d /usr/nec; then
14015 lt_prog_compiler_pic=-Kconform_pic
14016 fi
14017 ;;
14018
14019 *)
14020 lt_prog_compiler_pic='-fPIC'
14021 ;;
14022 esac
14023
14024 case $cc_basename in
14025 nvcc*) # Cuda Compiler Driver 2.2
14026 lt_prog_compiler_wl='-Xlinker '
14027 if test -n "$lt_prog_compiler_pic"; then
14028 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14029 fi
14030 ;;
14031 esac
14032 else
14033 # PORTME Check for flag to pass linker flags through the system compiler.
14034 case $host_os in
14035 aix*)
14036 lt_prog_compiler_wl='-Wl,'
14037 if test ia64 = "$host_cpu"; then
14038 # AIX 5 now supports IA64 processor
14039 lt_prog_compiler_static='-Bstatic'
14040 else
14041 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14042 fi
14043 ;;
14044
14045 darwin* | rhapsody*)
14046 # PIC is the default on this platform
14047 # Common symbols not allowed in MH_DYLIB files
14048 lt_prog_compiler_pic='-fno-common'
14049 case $cc_basename in
14050 nagfor*)
14051 # NAG Fortran compiler
14052 lt_prog_compiler_wl='-Wl,-Wl,,'
14053 lt_prog_compiler_pic='-PIC'
14054 lt_prog_compiler_static='-Bstatic'
14055 ;;
14056 esac
14057 ;;
14058
14059 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
14060 # This hack is so that the source file can tell whether it is being
14061 # built for inclusion in a dll (and should export symbols for example).
14062 lt_prog_compiler_pic='-DDLL_EXPORT'
14063 case $host_os in
14064 os2*)
14065 lt_prog_compiler_static='$wl-static'
14066 ;;
14067 esac
14068 ;;
14069
14070 hpux9* | hpux10* | hpux11*)
14071 lt_prog_compiler_wl='-Wl,'
14072 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14073 # not for PA HP-UX.
14074 case $host_cpu in
14075 hppa*64*|ia64*)
14076 # +Z the default
14077 ;;
14078 *)
14079 lt_prog_compiler_pic='+Z'
14080 ;;
14081 esac
14082 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14083 lt_prog_compiler_static='$wl-a ${wl}archive'
14084 ;;
14085
14086 irix5* | irix6* | nonstopux*)
14087 lt_prog_compiler_wl='-Wl,'
14088 # PIC (with -KPIC) is the default.
14089 lt_prog_compiler_static='-non_shared'
14090 ;;
14091
14092 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14093 case $cc_basename in
14094 # old Intel for x86_64, which still supported -KPIC.
14095 ecc*)
14096 lt_prog_compiler_wl='-Wl,'
14097 lt_prog_compiler_pic='-KPIC'
14098 lt_prog_compiler_static='-static'
14099 ;;
14100 *flang* | ftn | f18* | f95*)
14101 # Flang compiler.
14102 lt_prog_compiler_wl='-Wl,'
14103 lt_prog_compiler_pic='-fPIC'
14104 lt_prog_compiler_static='-static'
14105 ;;
14106 # icc used to be incompatible with GCC.
14107 # ICC 10 doesn't accept -KPIC any more.
14108 icc* | ifort*)
14109 lt_prog_compiler_wl='-Wl,'
14110 lt_prog_compiler_pic='-fPIC'
14111 lt_prog_compiler_static='-static'
14112 ;;
14113 # Lahey Fortran 8.1.
14114 lf95*)
14115 lt_prog_compiler_wl='-Wl,'
14116 lt_prog_compiler_pic='--shared'
14117 lt_prog_compiler_static='--static'
14118 ;;
14119 nagfor*)
14120 # NAG Fortran compiler
14121 lt_prog_compiler_wl='-Wl,-Wl,,'
14122 lt_prog_compiler_pic='-PIC'
14123 lt_prog_compiler_static='-Bstatic'
14124 ;;
14125 tcc*)
14126 # Fabrice Bellard et al's Tiny C Compiler
14127 lt_prog_compiler_wl='-Wl,'
14128 lt_prog_compiler_pic='-fPIC'
14129 lt_prog_compiler_static='-static'
14130 ;;
14131 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14132 # Portland Group compilers (*not* the Pentium gcc compiler,
14133 # which looks to be a dead project)
14134 lt_prog_compiler_wl='-Wl,'
14135 lt_prog_compiler_pic='-fpic'
14136 lt_prog_compiler_static='-Bstatic'
14137 ;;
14138 ccc*)
14139 lt_prog_compiler_wl='-Wl,'
14140 # All Alpha code is PIC.
14141 lt_prog_compiler_static='-non_shared'
14142 ;;
14143 xl* | bgxl* | bgf* | mpixl*)
14144 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14145 lt_prog_compiler_wl='-Wl,'
14146 lt_prog_compiler_pic='-qpic'
14147 lt_prog_compiler_static='-qstaticlink'
14148 ;;
14149 *)
14150 case `$CC -V 2>&1 | $SED 5q` in
14151 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
14152 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14153 lt_prog_compiler_pic='-KPIC'
14154 lt_prog_compiler_static='-Bstatic'
14155 lt_prog_compiler_wl=''
14156 ;;
14157 *Sun\ F* | *Sun*Fortran*)
14158 lt_prog_compiler_pic='-KPIC'
14159 lt_prog_compiler_static='-Bstatic'
14160 lt_prog_compiler_wl='-Qoption ld '
14161 ;;
14162 *Sun\ C*)
14163 # Sun C 5.9
14164 lt_prog_compiler_pic='-KPIC'
14165 lt_prog_compiler_static='-Bstatic'
14166 lt_prog_compiler_wl='-Wl,'
14167 ;;
14168 *Intel*\ [CF]*Compiler*)
14169 lt_prog_compiler_wl='-Wl,'
14170 lt_prog_compiler_pic='-fPIC'
14171 lt_prog_compiler_static='-static'
14172 ;;
14173 *Portland\ Group*)
14174 lt_prog_compiler_wl='-Wl,'
14175 lt_prog_compiler_pic='-fpic'
14176 lt_prog_compiler_static='-Bstatic'
14177 ;;
14178 esac
14179 ;;
14180 esac
14181 ;;
14182
14183 newsos6)
14184 lt_prog_compiler_pic='-KPIC'
14185 lt_prog_compiler_static='-Bstatic'
14186 ;;
14187
14188 *-mlibc)
14189 lt_prog_compiler_wl='-Wl,'
14190 lt_prog_compiler_pic='-fPIC'
14191 lt_prog_compiler_static='-static'
14192 ;;
14193
14194 *nto* | *qnx*)
14195 # QNX uses GNU C++, but need to define -shared option too, otherwise
14196 # it will coredump.
14197 lt_prog_compiler_pic='-fPIC -shared'
14198 ;;
14199
14200 osf3* | osf4* | osf5*)
14201 lt_prog_compiler_wl='-Wl,'
14202 # All OSF/1 code is PIC.
14203 lt_prog_compiler_static='-non_shared'
14204 ;;
14205
14206 rdos*)
14207 lt_prog_compiler_static='-non_shared'
14208 ;;
14209
14210 serenity*)
14211 ;;
14212
14213 solaris*)
14214 lt_prog_compiler_pic='-KPIC'
14215 lt_prog_compiler_static='-Bstatic'
14216 case $cc_basename in
14217 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
14218 lt_prog_compiler_wl='-Qoption ld ';;
14219 *)
14220 lt_prog_compiler_wl='-Wl,';;
14221 esac
14222 ;;
14223
14224 sunos4*)
14225 lt_prog_compiler_wl='-Qoption ld '
14226 lt_prog_compiler_pic='-PIC'
14227 lt_prog_compiler_static='-Bstatic'
14228 ;;
14229
14230 sysv4 | sysv4.2uw2* | sysv4.3*)
14231 lt_prog_compiler_wl='-Wl,'
14232 lt_prog_compiler_pic='-KPIC'
14233 lt_prog_compiler_static='-Bstatic'
14234 ;;
14235
14236 sysv4*MP*)
14237 if test -d /usr/nec; then
14238 lt_prog_compiler_pic='-Kconform_pic'
14239 lt_prog_compiler_static='-Bstatic'
14240 fi
14241 ;;
14242
14243 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14244 lt_prog_compiler_wl='-Wl,'
14245 lt_prog_compiler_pic='-KPIC'
14246 lt_prog_compiler_static='-Bstatic'
14247 ;;
14248
14249 unicos*)
14250 lt_prog_compiler_wl='-Wl,'
14251 lt_prog_compiler_can_build_shared=no
14252 ;;
14253
14254 uts4*)
14255 lt_prog_compiler_pic='-pic'
14256 lt_prog_compiler_static='-Bstatic'
14257 ;;
14258
14259 *)
14260 lt_prog_compiler_can_build_shared=no
14261 ;;
14262 esac
14263 fi
14264
14265 case $host_os in
14266 # For platforms that do not support PIC, -DPIC is meaningless:
14267 *djgpp*)
14268 lt_prog_compiler_pic=
14269 ;;
14270 *)
14271 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14272 ;;
14273 esac
14274
14275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14276 printf %s "checking for $compiler option to produce PIC... " >&6; }
14277 if test ${lt_cv_prog_compiler_pic+y}
14278 then :
14279 printf %s "(cached) " >&6
14280 else case e in #(
14281 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
14282 esac
14283 fi
14284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14285 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
14286 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
14287
14288 #
14289 # Check to make sure the PIC flag actually works.
14290 #
14291 if test -n "$lt_prog_compiler_pic"; then
14292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14293 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14294 if test ${lt_cv_prog_compiler_pic_works+y}
14295 then :
14296 printf %s "(cached) " >&6
14297 else case e in #(
14298 e) lt_cv_prog_compiler_pic_works=no
14299 ac_outfile=conftest.$ac_objext
14300 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14301 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
14302 # Insert the option either (1) after the last *FLAGS variable, or
14303 # (2) before a word containing "conftest.", or (3) at the end.
14304 # Note that $ac_compile itself does not contain backslashes and begins
14305 # with a dollar sign (not a hyphen), so the echo should work correctly.
14306 # The option is referenced via a variable to avoid confusing sed.
14307 lt_compile=`echo "$ac_compile" | $SED \
14308 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14309 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14310 -e 's:$: $lt_compiler_flag:'`
14311 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14312 (eval "$lt_compile" 2>conftest.err)
14313 ac_status=$?
14314 cat conftest.err >&5
14315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14316 if (exit $ac_status) && test -s "$ac_outfile"; then
14317 # The compiler can only warn and ignore the option if not recognized
14318 # So say no if there are warnings other than the usual output.
14319 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14320 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14321 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14322 lt_cv_prog_compiler_pic_works=yes
14323 fi
14324 fi
14325 $RM conftest*
14326 ;;
14327 esac
14328 fi
14329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14330 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
14331
14332 if test yes = "$lt_cv_prog_compiler_pic_works"; then
14333 case $lt_prog_compiler_pic in
14334 "" | " "*) ;;
14335 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14336 esac
14337 else
14338 lt_prog_compiler_pic=
14339 lt_prog_compiler_can_build_shared=no
14340 fi
14341
14342 fi
14343
14344
14345
14346
14347
14348 #
14349 # Check to make sure the static flag actually works.
14350 #
14351 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14353 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14354 if test ${lt_cv_prog_compiler_static_works+y}
14355 then :
14356 printf %s "(cached) " >&6
14357 else case e in #(
14358 e) lt_cv_prog_compiler_static_works=no
14359 save_LDFLAGS=$LDFLAGS
14360 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14361 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14362 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14363 # The linker can only warn and ignore the option if not recognized
14364 # So say no if there are warnings
14365 if test -s conftest.err; then
14366 # Append any errors to the config.log.
14367 cat conftest.err 1>&5
14368 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14369 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14370 if diff conftest.exp conftest.er2 >/dev/null; then
14371 lt_cv_prog_compiler_static_works=yes
14372 fi
14373 else
14374 lt_cv_prog_compiler_static_works=yes
14375 fi
14376 fi
14377 $RM -r conftest*
14378 LDFLAGS=$save_LDFLAGS
14379 ;;
14380 esac
14381 fi
14382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14383 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
14384
14385 if test yes = "$lt_cv_prog_compiler_static_works"; then
14386 :
14387 else
14388 lt_prog_compiler_static=
14389 fi
14390
14391
14392
14393 ='-fPIC'
14394 archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
14395 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'
14396 archive_cmds_need_lc=no
14397 no_undefined_flag=
14398 ;;
14399
14400 *)
14401 dynamic_linker=no
14402 ;;
14403 esac
14404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14405 printf "%s\n" "$dynamic_linker" >&6; }
14406 test no = "$dynamic_linker" && can_build_shared=no
14407
14408 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14409 if test yes = "$GCC"; then
14410 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14411 fi
14412
14413 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14414 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
14415 fi
14416
14417 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14418 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
14419 fi
14420
14421 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14422 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14423
14424 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14425 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14426
14427 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14428 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
14429
14430
14431
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448
14449
14450
14451
14452
14453
14454
14455
14456
14457
14458
14459
14460
14461
14462
14463
14464
14465
14466
14467
14468
14469
14470
14471
14472
14473
14474
14475
14476
14477
14478
14479
14480
14481
14482
14483
14484
14485
14486
14487
14488
14489
14490
14491
14492
14493
14494
14495
14496
14497
14498
14499
14500
14501
14502
14503
14504
14505
14506
14507
14508
14509
14510
14511
14512
14513
14514
14515
14516
14517
14518
14519
14520
14521
14522
14523
14524
14525
14526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14527 printf %s "checking how to hardcode library paths into programs... " >&6; }
14528 hardcode_action=
14529 if test -n "$hardcode_libdir_flag_spec" ||
14530 test -n "$runpath_var" ||
14531 test yes = "$hardcode_automatic"; then
14532
14533 # We can hardcode non-existent directories.
14534 if test no != "$hardcode_direct" &&
14535 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14536 # have to relink, otherwise we might link with an installed library
14537 # when we should be linking with a yet-to-be-installed one
14538 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
14539 test no != "$hardcode_minus_L"; then
14540 # Linking always hardcodes the temporary library directory.
14541 hardcode_action=relink
14542 else
14543 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14544 hardcode_action=immediate
14545 fi
14546 else
14547 # We cannot hardcode anything, or else we can only hardcode existing
14548 # directories.
14549 hardcode_action=unsupported
14550 fi
14551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14552 printf "%s\n" "$hardcode_action" >&6; }
14553
14554 if test relink = "$hardcode_action" ||
14555 test yes = "$inherit_rpath"; then
14556 # Fast installation is not supported
14557 enable_fast_install=no
14558 elif test yes = "$shlibpath_overrides_runpath" ||
14559 test no = "$enable_shared"; then
14560 # Fast installation is not necessary
14561 enable_fast_install=needless
14562 fi
14563
14564
14565
14566
14567
14568
14569 if test yes != "$enable_dlopen"; then
14570 enable_dlopen=unknown
14571 enable_dlopen_self=unknown
14572 enable_dlopen_self_static=unknown
14573 else
14574 lt_cv_dlopen=no
14575 lt_cv_dlopen_libs=
14576
14577 case $host_os in
14578 beos*)
14579 lt_cv_dlopen=load_add_on
14580 lt_cv_dlopen_libs=
14581 lt_cv_dlopen_self=yes
14582 ;;
14583
14584 mingw* | windows* | pw32* | cegcc*)
14585 lt_cv_dlopen=LoadLibrary
14586 lt_cv_dlopen_libs=
14587 ;;
14588
14589 cygwin*)
14590 lt_cv_dlopen=dlopen
14591 lt_cv_dlopen_libs=
14592 ;;
14593
14594 darwin*)
14595 # if libdl is installed we need to link against it
14596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14597 printf %s "checking for dlopen in -ldl... " >&6; }
14598 if test ${ac_cv_lib_dl_dlopen+y}
14599 then :
14600 printf %s "(cached) " >&6
14601 else case e in #(
14602 e) ac_check_lib_save_LIBS=$LIBS
14603 LIBS="-ldl $LIBS"
14604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14605 /* end confdefs.h. */
14606
14607 /* Override any GCC internal prototype to avoid an error.
14608 Use char because int might match the return type of a GCC
14609 builtin and then its argument prototype would still apply.
14610 The 'extern "C"' is for builds by C++ compilers;
14611 although this is not generally supported in C code supporting it here
14612 has little cost and some practical benefit (sr 110532). */
14613 #ifdef __cplusplus
14614 extern "C"
14615 #endif
14616 char dlopen (void);
14617 int
14618 main (void)
14619 {
14620 return dlopen ();
14621 ;
14622 return 0;
14623 }
14624 _ACEOF
14625 if ac_fn_c_try_link "$LINENO"
14626 then :
14627 ac_cv_lib_dl_dlopen=yes
14628 else case e in #(
14629 e) ac_cv_lib_dl_dlopen=no ;;
14630 esac
14631 fi
14632 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14633 conftest$ac_exeext conftest.$ac_ext
14634 LIBS=$ac_check_lib_save_LIBS ;;
14635 esac
14636 fi
14637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14638 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
14639 if test "x$ac_cv_lib_dl_dlopen" = xyes
14640 then :
14641 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14642 else case e in #(
14643 e)
14644 lt_cv_dlopen=dyld
14645 lt_cv_dlopen_libs=
14646 lt_cv_dlopen_self=yes
14647 ;;
14648 esac
14649 fi
14650
14651 ;;
14652
14653 tpf*)
14654 # Don't try to run any link tests for TPF. We know it's impossible
14655 # because TPF is a cross-compiler, and we know how we open DSOs.
14656 lt_cv_dlopen=dlopen
14657 lt_cv_dlopen_libs=
14658 lt_cv_dlopen_self=no
14659 ;;
14660
14661 *)
14662 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14663 if test "x$ac_cv_func_shl_load" = xyes
14664 then :
14665 lt_cv_dlopen=shl_load
14666 else case e in #(
14667 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14668 printf %s "checking for shl_load in -ldld... " >&6; }
14669 if test ${ac_cv_lib_dld_shl_load+y}
14670 then :
14671 printf %s "(cached) " >&6
14672 else case e in #(
14673 e) ac_check_lib_save_LIBS=$LIBS
14674 LIBS="-ldld $LIBS"
14675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14676 /* end confdefs.h. */
14677
14678 /* Override any GCC internal prototype to avoid an error.
14679 Use char because int might match the return type of a GCC
14680 builtin and then its argument prototype would still apply.
14681 The 'extern "C"' is for builds by C++ compilers;
14682 although this is not generally supported in C code supporting it here
14683 has little cost and some practical benefit (sr 110532). */
14684 #ifdef __cplusplus
14685 extern "C"
14686 #endif
14687 char shl_load (void);
14688 int
14689 main (void)
14690 {
14691 return shl_load ();
14692 ;
14693 return 0;
14694 }
14695 _ACEOF
14696 if ac_fn_c_try_link "$LINENO"
14697 then :
14698 ac_cv_lib_dld_shl_load=yes
14699 else case e in #(
14700 e) ac_cv_lib_dld_shl_load=no ;;
14701 esac
14702 fi
14703 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14704 conftest$ac_exeext conftest.$ac_ext
14705 LIBS=$ac_check_lib_save_LIBS ;;
14706 esac
14707 fi
14708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14709 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
14710 if test "x$ac_cv_lib_dld_shl_load" = xyes
14711 then :
14712 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
14713 else case e in #(
14714 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14715 if test "x$ac_cv_func_dlopen" = xyes
14716 then :
14717 lt_cv_dlopen=dlopen
14718 else case e in #(
14719 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14720 printf %s "checking for dlopen in -ldl... " >&6; }
14721 if test ${ac_cv_lib_dl_dlopen+y}
14722 then :
14723 printf %s "(cached) " >&6
14724 else case e in #(
14725 e) ac_check_lib_save_LIBS=$LIBS
14726 LIBS="-ldl $LIBS"
14727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14728 /* end confdefs.h. */
14729
14730 /* Override any GCC internal prototype to avoid an error.
14731 Use char because int might match the return type of a GCC
14732 builtin and then its argument prototype would still apply.
14733 The 'extern "C"' is for builds by C++ compilers;
14734 although this is not generally supported in C code supporting it here
14735 has little cost and some practical benefit (sr 110532). */
14736 #ifdef __cplusplus
14737 extern "C"
14738 #endif
14739 char dlopen (void);
14740 int
14741 main (void)
14742 {
14743 return dlopen ();
14744 ;
14745 return 0;
14746 }
14747 _ACEOF
14748 if ac_fn_c_try_link "$LINENO"
14749 then :
14750 ac_cv_lib_dl_dlopen=yes
14751 else case e in #(
14752 e) ac_cv_lib_dl_dlopen=no ;;
14753 esac
14754 fi
14755 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14756 conftest$ac_exeext conftest.$ac_ext
14757 LIBS=$ac_check_lib_save_LIBS ;;
14758 esac
14759 fi
14760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14761 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
14762 if test "x$ac_cv_lib_dl_dlopen" = xyes
14763 then :
14764 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14765 else case e in #(
14766 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14767 printf %s "checking for dlopen in -lsvld... " >&6; }
14768 if test ${ac_cv_lib_svld_dlopen+y}
14769 then :
14770 printf %s "(cached) " >&6
14771 else case e in #(
14772 e) ac_check_lib_save_LIBS=$LIBS
14773 LIBS="-lsvld $LIBS"
14774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14775 /* end confdefs.h. */
14776
14777 /* Override any GCC internal prototype to avoid an error.
14778 Use char because int might match the return type of a GCC
14779 builtin and then its argument prototype would still apply.
14780 The 'extern "C"' is for builds by C++ compilers;
14781 although this is not generally supported in C code supporting it here
14782 has little cost and some practical benefit (sr 110532). */
14783 #ifdef __cplusplus
14784 extern "C"
14785 #endif
14786 char dlopen (void);
14787 int
14788 main (void)
14789 {
14790 return dlopen ();
14791 ;
14792 return 0;
14793 }
14794 _ACEOF
14795 if ac_fn_c_try_link "$LINENO"
14796 then :
14797 ac_cv_lib_svld_dlopen=yes
14798 else case e in #(
14799 e) ac_cv_lib_svld_dlopen=no ;;
14800 esac
14801 fi
14802 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14803 conftest$ac_exeext conftest.$ac_ext
14804 LIBS=$ac_check_lib_save_LIBS ;;
14805 esac
14806 fi
14807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14808 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
14809 if test "x$ac_cv_lib_svld_dlopen" = xyes
14810 then :
14811 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
14812 else case e in #(
14813 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14814 printf %s "checking for dld_link in -ldld... " >&6; }
14815 if test ${ac_cv_lib_dld_dld_link+y}
14816 then :
14817 printf %s "(cached) " >&6
14818 else case e in #(
14819 e) ac_check_lib_save_LIBS=$LIBS
14820 LIBS="-ldld $LIBS"
14821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14822 /* end confdefs.h. */
14823
14824 /* Override any GCC internal prototype to avoid an error.
14825 Use char because int might match the return type of a GCC
14826 builtin and then its argument prototype would still apply.
14827 The 'extern "C"' is for builds by C++ compilers;
14828 although this is not generally supported in C code supporting it here
14829 has little cost and some practical benefit (sr 110532). */
14830 #ifdef __cplusplus
14831 extern "C"
14832 #endif
14833 char dld_link (void);
14834 int
14835 main (void)
14836 {
14837 return dld_link ();
14838 ;
14839 return 0;
14840 }
14841 _ACEOF
14842 if ac_fn_c_try_link "$LINENO"
14843 then :
14844 ac_cv_lib_dld_dld_link=yes
14845 else case e in #(
14846 e) ac_cv_lib_dld_dld_link=no ;;
14847 esac
14848 fi
14849 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14850 conftest$ac_exeext conftest.$ac_ext
14851 LIBS=$ac_check_lib_save_LIBS ;;
14852 esac
14853 fi
14854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14855 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
14856 if test "x$ac_cv_lib_dld_dld_link" = xyes
14857 then :
14858 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
14859 fi
14860
14861 ;;
14862 esac
14863 fi
14864
14865 ;;
14866 esac
14867 fi
14868
14869 ;;
14870 esac
14871 fi
14872
14873 ;;
14874 esac
14875 fi
14876
14877 ;;
14878 esac
14879 fi
14880
14881 ;;
14882 esac
14883
14884 if test no = "$lt_cv_dlopen"; then
14885 enable_dlopen=no
14886 else
14887 enable_dlopen=yes
14888 fi
14889
14890 case $lt_cv_dlopen in
14891 dlopen)
14892 save_CPPFLAGS=$CPPFLAGS
14893 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14894
14895 save_LDFLAGS=$LDFLAGS
14896 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14897
14898 save_LIBS=$LIBS
14899 LIBS="$lt_cv_dlopen_libs $LIBS"
14900
14901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14902 printf %s "checking whether a program can dlopen itself... " >&6; }
14903 if test ${lt_cv_dlopen_self+y}
14904 then :
14905 printf %s "(cached) " >&6
14906 else case e in #(
14907 e) if test yes = "$cross_compiling"; then :
14908 lt_cv_dlopen_self=cross
14909 else
14910 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14911 lt_status=$lt_dlunknown
14912 cat > conftest.$ac_ext <<_LT_EOF
14913 #line $LINENO "configure"
14914 #include "confdefs.h"
14915
14916 #if HAVE_DLFCN_H
14917 #include <dlfcn.h>
14918 #endif
14919
14920 #include <stdio.h>
14921
14922 #ifdef RTLD_GLOBAL
14923 # define LT_DLGLOBAL RTLD_GLOBAL
14924 #else
14925 # ifdef DL_GLOBAL
14926 # define LT_DLGLOBAL DL_GLOBAL
14927 # else
14928 # define LT_DLGLOBAL 0
14929 # endif
14930 #endif
14931
14932 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14933 find out it does not work in some platform. */
14934 #ifndef LT_DLLAZY_OR_NOW
14935 # ifdef RTLD_LAZY
14936 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14937 # else
14938 # ifdef DL_LAZY
14939 # define LT_DLLAZY_OR_NOW DL_LAZY
14940 # else
14941 # ifdef RTLD_NOW
14942 # define LT_DLLAZY_OR_NOW RTLD_NOW
14943 # else
14944 # ifdef DL_NOW
14945 # define LT_DLLAZY_OR_NOW DL_NOW
14946 # else
14947 # define LT_DLLAZY_OR_NOW 0
14948 # endif
14949 # endif
14950 # endif
14951 # endif
14952 #endif
14953
14954 /* When -fvisibility=hidden is used, assume the code has been annotated
14955 correspondingly for the symbols needed. */
14956 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14957 int fnord (void) __attribute__((visibility("default")));
14958 #endif
14959
14960 int fnord (void) { return 42; }
14961 int main (void)
14962 {
14963 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14964 int status = $lt_dlunknown;
14965
14966 if (self)
14967 {
14968 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14969 else
14970 {
14971 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14972 else puts (dlerror ());
14973 }
14974 /* dlclose (self); */
14975 }
14976 else
14977 puts (dlerror ());
14978
14979 return status;
14980 }
14981 _LT_EOF
14982 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14983 (eval $ac_link) 2>&5
14984 ac_status=$?
14985 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14986 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14987 (./conftest; exit; ) >&5 2>/dev/null
14988 lt_status=$?
14989 case x$lt_status in
14990 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14991 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14992 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14993 esac
14994 else :
14995 # compilation failed
14996 lt_cv_dlopen_self=no
14997 fi
14998 fi
14999 rm -fr conftest*
15000
15001 ;;
15002 esac
15003 fi
15004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15005 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
15006
15007 if test yes = "$lt_cv_dlopen_self"; then
15008 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15010 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
15011 if test ${lt_cv_dlopen_self_static+y}
15012 then :
15013 printf %s "(cached) " >&6
15014 else case e in #(
15015 e) if test yes = "$cross_compiling"; then :
15016 lt_cv_dlopen_self_static=cross
15017 else
15018 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15019 lt_status=$lt_dlunknown
15020 cat > conftest.$ac_ext <<_LT_EOF
15021 #line $LINENO "configure"
15022 #include "confdefs.h"
15023
15024 #if HAVE_DLFCN_H
15025 #include <dlfcn.h>
15026 #endif
15027
15028 #include <stdio.h>
15029
15030 #ifdef RTLD_GLOBAL
15031 # define LT_DLGLOBAL RTLD_GLOBAL
15032 #else
15033 # ifdef DL_GLOBAL
15034 # define LT_DLGLOBAL DL_GLOBAL
15035 # else
15036 # define LT_DLGLOBAL 0
15037 # endif
15038 #endif
15039
15040 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15041 find out it does not work in some platform. */
15042 #ifndef LT_DLLAZY_OR_NOW
15043 # ifdef RTLD_LAZY
15044 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15045 # else
15046 # ifdef DL_LAZY
15047 # define LT_DLLAZY_OR_NOW DL_LAZY
15048 # else
15049 # ifdef RTLD_NOW
15050 # define LT_DLLAZY_OR_NOW RTLD_NOW
15051 # else
15052 # ifdef DL_NOW
15053 # define LT_DLLAZY_OR_NOW DL_NOW
15054 # else
15055 # define LT_DLLAZY_OR_NOW 0
15056 # endif
15057 # endif
15058 # endif
15059 # endif
15060 #endif
15061
15062 /* When -fvisibility=hidden is used, assume the code has been annotated
15063 correspondingly for the symbols needed. */
15064 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15065 int fnord (void) __attribute__((visibility("default")));
15066 #endif
15067
15068 int fnord (void) { return 42; }
15069 int main (void)
15070 {
15071 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15072 int status = $lt_dlunknown;
15073
15074 if (self)
15075 {
15076 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15077 else
15078 {
15079 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15080 else puts (dlerror ());
15081 }
15082 /* dlclose (self); */
15083 }
15084 else
15085 puts (dlerror ());
15086
15087 return status;
15088 }
15089 _LT_EOF
15090 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15091 (eval $ac_link) 2>&5
15092 ac_status=$?
15093 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15094 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15095 (./conftest; exit; ) >&5 2>/dev/null
15096 lt_status=$?
15097 case x$lt_status in
15098 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15099 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15100 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15101 esac
15102 else :
15103 # compilation failed
15104 lt_cv_dlopen_self_static=no
15105 fi
15106 fi
15107 rm -fr conftest*
15108
15109 ;;
15110 esac
15111 fi
15112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15113 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
15114 fi
15115
15116 CPPFLAGS=$save_CPPFLAGS
15117 LDFLAGS=$save_LDFLAGS
15118 LIBS=$save_LIBS
15119 ;;
15120 esac
15121
15122 case $lt_cv_dlopen_self in
15123 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15124 *) enable_dlopen_self=unknown ;;
15125 esac
15126
15127 case $lt_cv_dlopen_self_static in
15128 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15129 *) enable_dlopen_self_static=unknown ;;
15130 esac
15131 fi
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148
15149 striplib=
15150 old_striplib=
15151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15152 printf %s "checking whether stripping libraries is possible... " >&6; }
15153 if test -z "$STRIP"; then
15154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15155 printf "%s\n" "no" >&6; }
15156 else
15157 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15158 old_striplib="$STRIP --strip-debug"
15159 striplib="$STRIP --strip-unneeded"
15160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15161 printf "%s\n" "yes" >&6; }
15162 else
15163 case $host_os in
15164 darwin*)
15165 # FIXME - insert some real tests, host_os isn't really good enough
15166 striplib="$STRIP -x"
15167 old_striplib="$STRIP -S"
15168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15169 printf "%s\n" "yes" >&6; }
15170 ;;
15171 freebsd*)
15172 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
15173 old_striplib="$STRIP --strip-debug"
15174 striplib="$STRIP --strip-unneeded"
15175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15176 printf "%s\n" "yes" >&6; }
15177 else
15178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15179 printf "%s\n" "no" >&6; }
15180 fi
15181 ;;
15182 *)
15183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15184 printf "%s\n" "no" >&6; }
15185 ;;
15186 esac
15187 fi
15188 fi
15189
15190
15191
15192
15193
15194
15195
15196
15197
15198
15199
15200
15201 # Report what library types will actually be built
15202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15203 printf %s "checking if libtool supports shared libraries... " >&6; }
15204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15205 printf "%s\n" "$can_build_shared" >&6; }
15206
15207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15208 printf %s "checking whether to build shared libraries... " >&6; }
15209 test no = "$can_build_shared" && enable_shared=no
15210
15211 # On AIX, shared libraries and static libraries use the same namespace, and
15212 # are all built from PIC.
15213 case $host_os in
15214 aix3*)
15215 test yes = "$enable_shared" && enable_static=no
15216 if test -n "$RANLIB"; then
15217 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15218 postinstall_cmds='$RANLIB $lib'
15219 fi
15220 ;;
15221
15222 aix[4-9]*)
15223 if test ia64 != "$host_cpu"; then
15224 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
15225 yes,aix,yes) ;; # shared object as lib.so file only
15226 yes,svr4,*) ;; # shared object as lib.so archive member only
15227 yes,*) enable_static=no ;; # shared object in lib.a archive as well
15228 esac
15229 fi
15230 ;;
15231 esac
15232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15233 printf "%s\n" "$enable_shared" >&6; }
15234
15235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15236 printf %s "checking whether to build static libraries... " >&6; }
15237 # Make sure either enable_shared or enable_static is yes.
15238 test yes = "$enable_shared" || enable_static=yes
15239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15240 printf "%s\n" "$enable_static" >&6; }
15241
15242
15243
15244
15245 fi
15246 ac_ext=c
15247 ac_cpp='$CPP $CPPFLAGS'
15248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15251
15252 CC=$lt_save_CC
15253
15254
15255
15256
15257
15258
15259
15260
15261
15262
15263
15264
15265
15266
15267
15268 ac_config_commands="$ac_config_commands libtool"
15269
15270
15271
15272
15273 # Only expand once:
15274
15275
15276 # (end lt_init)
15277 # Check whether --enable-largefile was given.
15278 if test ${enable_largefile+y}
15279 then :
15280 enableval=$enable_largefile;
15281 fi
15282 if test "$enable_largefile,$enable_year2038" != no,no
15283 then :
15284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5
15285 printf %s "checking for $CC option to enable large file support... " >&6; }
15286 if test ${ac_cv_sys_largefile_opts+y}
15287 then :
15288 printf %s "(cached) " >&6
15289 else case e in #(
15290 e) ac_save_CC="$CC"
15291 ac_opt_found=no
15292 for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do
15293 if test x"$ac_opt" != x"none needed"
15294 then :
15295 CC="$ac_save_CC $ac_opt"
15296 fi
15297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15298 /* end confdefs.h. */
15299 #include <sys/types.h>
15300 #ifndef FTYPE
15301 # define FTYPE off_t
15302 #endif
15303 /* Check that FTYPE can represent 2**63 - 1 correctly.
15304 We can't simply define LARGE_FTYPE to be 9223372036854775807,
15305 since some C++ compilers masquerading as C compilers
15306 incorrectly reject 9223372036854775807. */
15307 #define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31))
15308 int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721
15309 && LARGE_FTYPE % 2147483647 == 1)
15310 ? 1 : -1];
15311 int
15312 main (void)
15313 {
15314
15315 ;
15316 return 0;
15317 }
15318 _ACEOF
15319 if ac_fn_c_try_compile "$LINENO"
15320 then :
15321 if test x"$ac_opt" = x"none needed"
15322 then :
15323 # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t.
15324 CC="$CC -DFTYPE=ino_t"
15325 if ac_fn_c_try_compile "$LINENO"
15326 then :
15327
15328 else case e in #(
15329 e) CC="$CC -D_FILE_OFFSET_BITS=64"
15330 if ac_fn_c_try_compile "$LINENO"
15331 then :
15332 ac_opt='-D_FILE_OFFSET_BITS=64'
15333 fi
15334 rm -f core conftest.err conftest.$ac_objext conftest.beam ;;
15335 esac
15336 fi
15337 rm -f core conftest.err conftest.$ac_objext conftest.beam
15338 fi
15339 ac_cv_sys_largefile_opts=$ac_opt
15340 ac_opt_found=yes
15341 fi
15342 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15343 test $ac_opt_found = no || break
15344 done
15345 CC="$ac_save_CC"
15346
15347 test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;;
15348 esac
15349 fi
15350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5
15351 printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; }
15352
15353 ac_have_largefile=yes
15354 case $ac_cv_sys_largefile_opts in #(
15355 "none needed") :
15356 ;; #(
15357 "supported through gnulib") :
15358 ;; #(
15359 "support not detected") :
15360 ac_have_largefile=no ;; #(
15361 "-D_FILE_OFFSET_BITS=64") :
15362
15363 printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
15364 ;; #(
15365 "-D_LARGE_FILES=1") :
15366
15367 printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h
15368 ;; #(
15369 "-n32") :
15370 CC="$CC -n32" ;; #(
15371 *) :
15372 as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;;
15373 esac
15374
15375 if test "$enable_year2038" != no
15376 then :
15377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option for timestamps after 2038" >&5
15378 printf %s "checking for $CC option for timestamps after 2038... " >&6; }
15379 if test ${ac_cv_sys_year2038_opts+y}
15380 then :
15381 printf %s "(cached) " >&6
15382 else case e in #(
15383 e) ac_save_CPPFLAGS="$CPPFLAGS"
15384 ac_opt_found=no
15385 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
15386 if test x"$ac_opt" != x"none needed"
15387 then :
15388 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
15389 fi
15390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15391 /* end confdefs.h. */
15392
15393 #include <time.h>
15394 /* Check that time_t can represent 2**32 - 1 correctly. */
15395 #define LARGE_TIME_T \\
15396 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
15397 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
15398 && LARGE_TIME_T % 65537 == 0)
15399 ? 1 : -1];
15400
15401 int
15402 main (void)
15403 {
15404
15405 ;
15406 return 0;
15407 }
15408 _ACEOF
15409 if ac_fn_c_try_compile "$LINENO"
15410 then :
15411 ac_cv_sys_year2038_opts="$ac_opt"
15412 ac_opt_found=yes
15413 fi
15414 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15415 test $ac_opt_found = no || break
15416 done
15417 CPPFLAGS="$ac_save_CPPFLAGS"
15418 test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;;
15419 esac
15420 fi
15421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5
15422 printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; }
15423
15424 ac_have_year2038=yes
15425 case $ac_cv_sys_year2038_opts in #(
15426 "none needed") :
15427 ;; #(
15428 "support not detected") :
15429 ac_have_year2038=no ;; #(
15430 "-D_TIME_BITS=64") :
15431
15432 printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h
15433 ;; #(
15434 "-D__MINGW_USE_VC2005_COMPAT") :
15435
15436 printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h
15437 ;; #(
15438 "-U_USE_32_BIT_TIME_T"*) :
15439 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
15440 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
15441 as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It
15442 will stop working after mid-January 2038. Remove
15443 _USE_32BIT_TIME_T from the compiler flags.
15444 See 'config.log' for more details" "$LINENO" 5; } ;; #(
15445 *) :
15446 as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;;
15447 esac
15448
15449 fi
15450
15451 fi
15452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for declarations of fseeko and ftello" >&5
15453 printf %s "checking for declarations of fseeko and ftello... " >&6; }
15454 if test ${ac_cv_func_fseeko_ftello+y}
15455 then :
15456 printf %s "(cached) " >&6
15457 else case e in #(
15458 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15459 /* end confdefs.h. */
15460
15461 #if defined __hpux && !defined _LARGEFILE_SOURCE
15462 # include <limits.h>
15463 # if LONG_MAX >> 31 == 0
15464 # error "32-bit HP-UX 11/ia64 needs _LARGEFILE_SOURCE for fseeko in C++"
15465 # endif
15466 #endif
15467 #include <sys/types.h> /* for off_t */
15468 #include <stdio.h>
15469
15470 int
15471 main (void)
15472 {
15473
15474 int (*fp1) (FILE *, off_t, int) = fseeko;
15475 off_t (*fp2) (FILE *) = ftello;
15476 return fseeko (stdin, 0, 0)
15477 && fp1 (stdin, 0, 0)
15478 && ftello (stdin) >= 0
15479 && fp2 (stdin) >= 0;
15480
15481 ;
15482 return 0;
15483 }
15484 _ACEOF
15485 if ac_fn_c_try_compile "$LINENO"
15486 then :
15487 ac_cv_func_fseeko_ftello=yes
15488 else case e in #(
15489 e) ac_save_CPPFLAGS="$CPPFLAGS"
15490 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE=1"
15491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15492 /* end confdefs.h. */
15493
15494 #if defined __hpux && !defined _LARGEFILE_SOURCE
15495 # include <limits.h>
15496 # if LONG_MAX >> 31 == 0
15497 # error "32-bit HP-UX 11/ia64 needs _LARGEFILE_SOURCE for fseeko in C++"
15498 # endif
15499 #endif
15500 #include <sys/types.h> /* for off_t */
15501 #include <stdio.h>
15502
15503 int
15504 main (void)
15505 {
15506
15507 int (*fp1) (FILE *, off_t, int) = fseeko;
15508 off_t (*fp2) (FILE *) = ftello;
15509 return fseeko (stdin, 0, 0)
15510 && fp1 (stdin, 0, 0)
15511 && ftello (stdin) >= 0
15512 && fp2 (stdin) >= 0;
15513
15514 ;
15515 return 0;
15516 }
15517 _ACEOF
15518 if ac_fn_c_try_compile "$LINENO"
15519 then :
15520 ac_cv_func_fseeko_ftello="need _LARGEFILE_SOURCE"
15521 else case e in #(
15522 e) ac_cv_func_fseeko_ftello=no ;;
15523 esac
15524 fi
15525 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15526 esac
15527 fi
15528 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15529 esac
15530 fi
15531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fseeko_ftello" >&5
15532 printf "%s\n" "$ac_cv_func_fseeko_ftello" >&6; }
15533 if test "$ac_cv_func_fseeko_ftello" != no
15534 then :
15535
15536 printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h
15537
15538 fi
15539 if test "$ac_cv_func_fseeko_ftello" = "need _LARGEFILE_SOURCE"
15540 then :
15541
15542 printf "%s\n" "#define _LARGEFILE_SOURCE 1" >>confdefs.h
15543
15544 fi
15545
15546 ac_header_dirent=no
15547 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15548 as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | sed "$as_sed_sh"`
15549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
15550 printf %s "checking for $ac_hdr that defines DIR... " >&6; }
15551 if eval test \${$as_ac_Header+y}
15552 then :
15553 printf %s "(cached) " >&6
15554 else case e in #(
15555 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15556 /* end confdefs.h. */
15557 #include <sys/types.h>
15558 #include <$ac_hdr>
15559
15560 int
15561 main (void)
15562 {
15563 if ((DIR *) 0)
15564 return 0;
15565 ;
15566 return 0;
15567 }
15568 _ACEOF
15569 if ac_fn_c_try_compile "$LINENO"
15570 then :
15571 eval "$as_ac_Header=yes"
15572 else case e in #(
15573 e) eval "$as_ac_Header=no" ;;
15574 esac
15575 fi
15576 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15577 esac
15578 fi
15579 eval ac_res=\$$as_ac_Header
15580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15581 printf "%s\n" "$ac_res" >&6; }
15582 if eval test \"x\$"$as_ac_Header"\" = x"yes"
15583 then :
15584 cat >>confdefs.h <<_ACEOF
15585 #define `printf "%s\n" "HAVE_$ac_hdr" | sed "$as_sed_cpp"` 1
15586 _ACEOF
15587
15588 ac_header_dirent=$ac_hdr; break
15589 fi
15590
15591 done
15592 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15593 if test $ac_header_dirent = dirent.h; then
15594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
15595 printf %s "checking for library containing opendir... " >&6; }
15596 if test ${ac_cv_search_opendir+y}
15597 then :
15598 printf %s "(cached) " >&6
15599 else case e in #(
15600 e) ac_func_search_save_LIBS=$LIBS
15601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15602 /* end confdefs.h. */
15603
15604 /* Override any GCC internal prototype to avoid an error.
15605 Use char because int might match the return type of a GCC
15606 builtin and then its argument prototype would still apply.
15607 The 'extern "C"' is for builds by C++ compilers;
15608 although this is not generally supported in C code supporting it here
15609 has little cost and some practical benefit (sr 110532). */
15610 #ifdef __cplusplus
15611 extern "C"
15612 #endif
15613 char opendir (void);
15614 int
15615 main (void)
15616 {
15617 return opendir ();
15618 ;
15619 return 0;
15620 }
15621 _ACEOF
15622 for ac_lib in '' dir
15623 do
15624 if test -z "$ac_lib"; then
15625 ac_res="none required"
15626 else
15627 ac_res=-l$ac_lib
15628 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15629 fi
15630 if ac_fn_c_try_link "$LINENO"
15631 then :
15632 ac_cv_search_opendir=$ac_res
15633 fi
15634 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15635 conftest$ac_exeext
15636 if test ${ac_cv_search_opendir+y}
15637 then :
15638 break
15639 fi
15640 done
15641 if test ${ac_cv_search_opendir+y}
15642 then :
15643
15644 else case e in #(
15645 e) ac_cv_search_opendir=no ;;
15646 esac
15647 fi
15648 rm conftest.$ac_ext
15649 LIBS=$ac_func_search_save_LIBS ;;
15650 esac
15651 fi
15652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15653 printf "%s\n" "$ac_cv_search_opendir" >&6; }
15654 ac_res=$ac_cv_search_opendir
15655 if test "$ac_res" != no
15656 then :
15657 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15658
15659 fi
15660
15661 else
15662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
15663 printf %s "checking for library containing opendir... " >&6; }
15664 if test ${ac_cv_search_opendir+y}
15665 then :
15666 printf %s "(cached) " >&6
15667 else case e in #(
15668 e) ac_func_search_save_LIBS=$LIBS
15669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15670 /* end confdefs.h. */
15671
15672 /* Override any GCC internal prototype to avoid an error.
15673 Use char because int might match the return type of a GCC
15674 builtin and then its argument prototype would still apply.
15675 The 'extern "C"' is for builds by C++ compilers;
15676 although this is not generally supported in C code supporting it here
15677 has little cost and some practical benefit (sr 110532). */
15678 #ifdef __cplusplus
15679 extern "C"
15680 #endif
15681 char opendir (void);
15682 int
15683 main (void)
15684 {
15685 return opendir ();
15686 ;
15687 return 0;
15688 }
15689 _ACEOF
15690 for ac_lib in '' x
15691 do
15692 if test -z "$ac_lib"; then
15693 ac_res="none required"
15694 else
15695 ac_res=-l$ac_lib
15696 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15697 fi
15698 if ac_fn_c_try_link "$LINENO"
15699 then :
15700 ac_cv_search_opendir=$ac_res
15701 fi
15702 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15703 conftest$ac_exeext
15704 if test ${ac_cv_search_opendir+y}
15705 then :
15706 break
15707 fi
15708 done
15709 if test ${ac_cv_search_opendir+y}
15710 then :
15711
15712 else case e in #(
15713 e) ac_cv_search_opendir=no ;;
15714 esac
15715 fi
15716 rm conftest.$ac_ext
15717 LIBS=$ac_func_search_save_LIBS ;;
15718 esac
15719 fi
15720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15721 printf "%s\n" "$ac_cv_search_opendir" >&6; }
15722 ac_res=$ac_cv_search_opendir
15723 if test "$ac_res" != no
15724 then :
15725 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15726
15727 fi
15728
15729 fi
15730
15731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
15732 printf %s "checking whether closedir returns void... " >&6; }
15733 if test ${ac_cv_func_closedir_void+y}
15734 then :
15735 printf %s "(cached) " >&6
15736 else case e in #(
15737 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15738 /* end confdefs.h. */
15739
15740 #include <$ac_header_dirent>
15741
15742 int
15743 main (void)
15744 {
15745
15746 return closedir(0);
15747
15748 ;
15749 return 0;
15750 }
15751 _ACEOF
15752 if ac_fn_c_try_compile "$LINENO"
15753 then :
15754 ac_cv_func_closedir_void=no
15755 else case e in #(
15756 e) ac_cv_func_closedir_void=yes ;;
15757 esac
15758 fi
15759 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15760 esac
15761 fi
15762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
15763 printf "%s\n" "$ac_cv_func_closedir_void" >&6; }
15764 if test $ac_cv_func_closedir_void = yes; then
15765
15766 printf "%s\n" "#define CLOSEDIR_VOID 1" >>confdefs.h
15767
15768 fi
15769
15770 ac_fn_c_check_header_compile "$LINENO" "assert.h" "ac_cv_header_assert_h" "$ac_includes_default"
15771 if test "x$ac_cv_header_assert_h" = xyes
15772 then :
15773 printf "%s\n" "#define HAVE_ASSERT_H 1" >>confdefs.h
15774
15775 fi
15776 ac_fn_c_check_header_compile "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
15777 if test "x$ac_cv_header_float_h" = xyes
15778 then :
15779 printf "%s\n" "#define HAVE_FLOAT_H 1" >>confdefs.h
15780
15781 fi
15782 ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
15783 if test "x$ac_cv_header_limits_h" = xyes
15784 then :
15785 printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
15786
15787 fi
15788 ac_fn_c_check_header_compile "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default"
15789 if test "x$ac_cv_header_pwd_h" = xyes
15790 then :
15791 printf "%s\n" "#define HAVE_PWD_H 1" >>confdefs.h
15792
15793 fi
15794 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
15795 if test "x$ac_cv_header_stdlib_h" = xyes
15796 then :
15797 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
15798
15799 fi
15800 ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
15801 if test "x$ac_cv_header_sys_param_h" = xyes
15802 then :
15803 printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
15804
15805 fi
15806
15807 ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
15808 if test "x$ac_cv_func_putenv" = xyes
15809 then :
15810 printf "%s\n" "#define HAVE_PUTENV 1" >>confdefs.h
15811
15812 fi
15813
15814 ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
15815 if test "x$ac_cv_func_getcwd" = xyes
15816 then :
15817 printf "%s\n" "#define HAVE_GETCWD 1" >>confdefs.h
15818
15819 fi
15820 ac_fn_c_check_func "$LINENO" "memcmp" "ac_cv_func_memcmp"
15821 if test "x$ac_cv_func_memcmp" = xyes
15822 then :
15823 printf "%s\n" "#define HAVE_MEMCMP 1" >>confdefs.h
15824
15825 fi
15826 ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
15827 if test "x$ac_cv_func_memcpy" = xyes
15828 then :
15829 printf "%s\n" "#define HAVE_MEMCPY 1" >>confdefs.h
15830
15831 fi
15832 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
15833 if test "x$ac_cv_func_mkstemp" = xyes
15834 then :
15835 printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h
15836
15837 fi
15838 ac_fn_c_check_func "$LINENO" "mktemp" "ac_cv_func_mktemp"
15839 if test "x$ac_cv_func_mktemp" = xyes
15840 then :
15841 printf "%s\n" "#define HAVE_MKTEMP 1" >>confdefs.h
15842
15843 fi
15844 ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
15845 if test "x$ac_cv_func_strchr" = xyes
15846 then :
15847 printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
15848
15849 fi
15850 ac_fn_c_check_func "$LINENO" "strrchr" "ac_cv_func_strrchr"
15851 if test "x$ac_cv_func_strrchr" = xyes
15852 then :
15853 printf "%s\n" "#define HAVE_STRRCHR 1" >>confdefs.h
15854
15855 fi
15856
15857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
15858 printf %s "checking for an ANSI C-conforming const... " >&6; }
15859 if test ${ac_cv_c_const+y}
15860 then :
15861 printf %s "(cached) " >&6
15862 else case e in #(
15863 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15864 /* end confdefs.h. */
15865
15866 int
15867 main (void)
15868 {
15869
15870 #ifndef __cplusplus
15871 /* Ultrix mips cc rejects this sort of thing. */
15872 typedef int charset[2];
15873 const charset cs = { 0, 0 };
15874 /* SunOS 4.1.1 cc rejects this. */
15875 char const *const *pcpcc;
15876 char **ppc;
15877 /* NEC SVR4.0.2 mips cc rejects this. */
15878 struct point {int x, y;};
15879 static struct point const zero = {0,0};
15880 /* IBM XL C 1.02.0.0 rejects this.
15881 It does not let you subtract one const X* pointer from another in
15882 an arm of an if-expression whose if-part is not a constant
15883 expression */
15884 const char *g = "string";
15885 pcpcc = &g + (g ? g-g : 0);
15886 /* HPUX 7.0 cc rejects these. */
15887 ++pcpcc;
15888 ppc = (char**) pcpcc;
15889 pcpcc = (char const *const *) ppc;
15890 { /* SCO 3.2v4 cc rejects this sort of thing. */
15891 char tx;
15892 char *t = &tx;
15893 char const *s = 0 ? (char *) 0 : (char const *) 0;
15894
15895 *t++ = 0;
15896 if (s) return 0;
15897 }
15898 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15899 int x[] = {25, 17};
15900 const int *foo = &x[0];
15901 ++foo;
15902 }
15903 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15904 typedef const int *iptr;
15905 iptr p = 0;
15906 ++p;
15907 }
15908 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
15909 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15910 struct s { int j; const int *ap[3]; } bx;
15911 struct s *b = &bx; b->j = 5;
15912 }
15913 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15914 const int foo = 10;
15915 if (!foo) return 0;
15916 }
15917 return !cs[0] && !zero.x;
15918 #endif
15919
15920 ;
15921 return 0;
15922 }
15923 _ACEOF
15924 if ac_fn_c_try_compile "$LINENO"
15925 then :
15926 ac_cv_c_const=yes
15927 else case e in #(
15928 e) ac_cv_c_const=no ;;
15929 esac
15930 fi
15931 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15932 esac
15933 fi
15934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
15935 printf "%s\n" "$ac_cv_c_const" >&6; }
15936 if test $ac_cv_c_const = no; then
15937
15938 printf "%s\n" "#define const /**/" >>confdefs.h
15939
15940 fi
15941
15942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15943 printf %s "checking for inline... " >&6; }
15944 if test ${ac_cv_c_inline+y}
15945 then :
15946 printf %s "(cached) " >&6
15947 else case e in #(
15948 e) ac_cv_c_inline=no
15949 for ac_kw in inline __inline__ __inline; do
15950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15951 /* end confdefs.h. */
15952 #ifndef __cplusplus
15953 typedef int foo_t;
15954 static $ac_kw foo_t static_foo (void) {return 0; }
15955 $ac_kw foo_t foo (void) {return 0; }
15956 #endif
15957
15958 _ACEOF
15959 if ac_fn_c_try_compile "$LINENO"
15960 then :
15961 ac_cv_c_inline=$ac_kw
15962 fi
15963 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15964 test "$ac_cv_c_inline" != no && break
15965 done
15966 ;;
15967 esac
15968 fi
15969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15970 printf "%s\n" "$ac_cv_c_inline" >&6; }
15971
15972 case $ac_cv_c_inline in
15973 inline | yes) ;;
15974 *)
15975 case $ac_cv_c_inline in
15976 no) ac_val=;;
15977 *) ac_val=$ac_cv_c_inline;;
15978 esac
15979 cat >>confdefs.h <<_ACEOF
15980 #ifndef __cplusplus
15981 #define inline $ac_val
15982 #endif
15983 _ACEOF
15984 ;;
15985 esac
15986
15987 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15988 if test "x$ac_cv_type_size_t" = xyes
15989 then :
15990
15991 else case e in #(
15992 e)
15993 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
15994 ;;
15995 esac
15996 fi
15997
15998 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
15999 case $ac_cv_c_int64_t in #(
16000 no|yes) ;; #(
16001 *)
16002
16003 printf "%s\n" "#define int64_t $ac_cv_c_int64_t" >>confdefs.h
16004 ;;
16005 esac
16006
16007 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
16008 case $ac_cv_c_uint64_t in #(
16009 no|yes) ;; #(
16010 *)
16011
16012 printf "%s\n" "#define _UINT64_T 1" >>confdefs.h
16013
16014
16015 printf "%s\n" "#define uint64_t $ac_cv_c_uint64_t" >>confdefs.h
16016 ;;
16017 esac
16018
16019 case :$ac_cv_c_int64_t:$ac_cv_c_int64_t: in #(
16020 *':no:'*) :
16021 as_fn_error $? "Sorry, your compiler does not support 64-bit integer types." "$LINENO" 5 ;; #(
16022 *) :
16023 ;;
16024 esac
16025 ac_fn_check_decl "$LINENO" "isascii" "ac_cv_have_decl_isascii" "#include <ctype.h>
16026 " "$ac_c_undeclared_builtin_options" "CFLAGS"
16027 if test "x$ac_cv_have_decl_isascii" = xyes
16028 then :
16029 ac_have_decl=1
16030 else case e in #(
16031 e) ac_have_decl=0 ;;
16032 esac
16033 fi
16034 printf "%s\n" "#define HAVE_DECL_ISASCII $ac_have_decl" >>confdefs.h
16035
16036 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
16037 if test "x$ac_cv_member_struct_stat_st_mtim" = xyes
16038 then :
16039
16040 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_MTIM 1" >>confdefs.h
16041
16042
16043 fi
16044
16045
16046
16047 ac_config_headers="$ac_config_headers c-auto.h:c-auto.in"
16048
16049
16050
16051
16052 printf "%s\n" "#define TL_VERSION \"TeX Live 2026\"" >>confdefs.h
16053
16054
16055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C99 variadic macros are supported" >&5
16056 printf %s "checking if C99 variadic macros are supported... " >&6; }
16057 if test ${kpse_cv_have___VA_ARGS__+y}
16058 then :
16059 printf %s "(cached) " >&6
16060 else case e in #(
16061 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16062 /* end confdefs.h. */
16063 #include <stdio.h>
16064 #define foo(format, ...) printf(format, __VA_ARGS__)
16065 int
16066 main (void)
16067 {
16068 foo("%s\n", "Hi, there");
16069 ;
16070 return 0;
16071 }
16072 _ACEOF
16073 if ac_fn_c_try_compile "$LINENO"
16074 then :
16075 kpse_cv_have___VA_ARGS__=yes
16076 else case e in #(
16077 e) kpse_cv_have___VA_ARGS__=no ;;
16078 esac
16079 fi
16080 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16081 esac
16082 fi
16083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_have___VA_ARGS__" >&5
16084 printf "%s\n" "$kpse_cv_have___VA_ARGS__" >&6; }
16085 case $kpse_cv_have___VA_ARGS__ in #(
16086 yes) :
16087
16088 printf "%s\n" "#define HAVE___VA_ARGS__ 1" >>confdefs.h
16089 ;; #(
16090 *) :
16091 ;;
16092 esac
16093
16094
16095
16096
16097
16098
16099
16100 ac_ext=cpp
16101 ac_cpp='$CXXCPP $CPPFLAGS'
16102 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16103 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16104 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16105 if test -z "$CXX"; then
16106 if test -n "$CCC"; then
16107 CXX=$CCC
16108 else
16109 if test -n "$ac_tool_prefix"; then
16110 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
16111 do
16112 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16113 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16115 printf %s "checking for $ac_word... " >&6; }
16116 if test ${ac_cv_prog_CXX+y}
16117 then :
16118 printf %s "(cached) " >&6
16119 else case e in #(
16120 e) if test -n "$CXX"; then
16121 ac_cv_prog_CXX="$CXX" # Let the user override the test.
16122 else
16123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16124 for as_dir in $PATH
16125 do
16126 IFS=$as_save_IFS
16127 case $as_dir in #(((
16128 '') as_dir=./ ;;
16129 */) ;;
16130 *) as_dir=$as_dir/ ;;
16131 esac
16132 for ac_exec_ext in '' $ac_executable_extensions; do
16133 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16134 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
16135 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16136 break 2
16137 fi
16138 done
16139 done
16140 IFS=$as_save_IFS
16141
16142 fi ;;
16143 esac
16144 fi
16145 CXX=$ac_cv_prog_CXX
16146 if test -n "$CXX"; then
16147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
16148 printf "%s\n" "$CXX" >&6; }
16149 else
16150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16151 printf "%s\n" "no" >&6; }
16152 fi
16153
16154
16155 test -n "$CXX" && break
16156 done
16157 fi
16158 if test -z "$CXX"; then
16159 ac_ct_CXX=$CXX
16160 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
16161 do
16162 # Extract the first word of "$ac_prog", so it can be a program name with args.
16163 set dummy $ac_prog; ac_word=$2
16164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16165 printf %s "checking for $ac_word... " >&6; }
16166 if test ${ac_cv_prog_ac_ct_CXX+y}
16167 then :
16168 printf %s "(cached) " >&6
16169 else case e in #(
16170 e) if test -n "$ac_ct_CXX"; then
16171 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
16172 else
16173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16174 for as_dir in $PATH
16175 do
16176 IFS=$as_save_IFS
16177 case $as_dir in #(((
16178 '') as_dir=./ ;;
16179 */) ;;
16180 *) as_dir=$as_dir/ ;;
16181 esac
16182 for ac_exec_ext in '' $ac_executable_extensions; do
16183 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16184 ac_cv_prog_ac_ct_CXX="$ac_prog"
16185 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16186 break 2
16187 fi
16188 done
16189 done
16190 IFS=$as_save_IFS
16191
16192 fi ;;
16193 esac
16194 fi
16195 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
16196 if test -n "$ac_ct_CXX"; then
16197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
16198 printf "%s\n" "$ac_ct_CXX" >&6; }
16199 else
16200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16201 printf "%s\n" "no" >&6; }
16202 fi
16203
16204
16205 test -n "$ac_ct_CXX" && break
16206 done
16207
16208 if test "x$ac_ct_CXX" = x; then
16209 CXX="g++"
16210 else
16211 case $cross_compiling:$ac_tool_warned in
16212 yes:)
16213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16214 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16215 ac_tool_warned=yes ;;
16216 esac
16217 CXX=$ac_ct_CXX
16218 fi
16219 fi
16220
16221 fi
16222 fi
16223 # Provide some information about the compiler.
16224 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
16225 set X $ac_compile
16226 ac_compiler=$2
16227 for ac_option in --version -v -V -qversion; do
16228 { { ac_try="$ac_compiler $ac_option >&5"
16229 case "(($ac_try" in
16230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16231 *) ac_try_echo=$ac_try;;
16232 esac
16233 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16234 printf "%s\n" "$ac_try_echo"; } >&5
16235 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
16236 ac_status=$?
16237 if test -s conftest.err; then
16238 sed '10a\
16239 ... rest of stderr output deleted ...
16240 10q' conftest.err >conftest.er1
16241 cat conftest.er1 >&5
16242 fi
16243 rm -f conftest.er1 conftest.err
16244 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16245 test $ac_status = 0; }
16246 done
16247
16248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
16249 printf %s "checking whether the compiler supports GNU C++... " >&6; }
16250 if test ${ac_cv_cxx_compiler_gnu+y}
16251 then :
16252 printf %s "(cached) " >&6
16253 else case e in #(
16254 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16255 /* end confdefs.h. */
16256
16257 int
16258 main (void)
16259 {
16260 #ifndef __GNUC__
16261 choke me
16262 #endif
16263
16264 ;
16265 return 0;
16266 }
16267 _ACEOF
16268 if ac_fn_cxx_try_compile "$LINENO"
16269 then :
16270 ac_compiler_gnu=yes
16271 else case e in #(
16272 e) ac_compiler_gnu=no ;;
16273 esac
16274 fi
16275 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16276 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
16277 ;;
16278 esac
16279 fi
16280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
16281 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
16282 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16283
16284 if test $ac_compiler_gnu = yes; then
16285 GXX=yes
16286 else
16287 GXX=
16288 fi
16289 ac_test_CXXFLAGS=${CXXFLAGS+y}
16290 ac_save_CXXFLAGS=$CXXFLAGS
16291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
16292 printf %s "checking whether $CXX accepts -g... " >&6; }
16293 if test ${ac_cv_prog_cxx_g+y}
16294 then :
16295 printf %s "(cached) " >&6
16296 else case e in #(
16297 e) ac_save_cxx_werror_flag=$ac_cxx_werror_flag
16298 ac_cxx_werror_flag=yes
16299 ac_cv_prog_cxx_g=no
16300 CXXFLAGS="-g"
16301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16302 /* end confdefs.h. */
16303
16304 int
16305 main (void)
16306 {
16307
16308 ;
16309 return 0;
16310 }
16311 _ACEOF
16312 if ac_fn_cxx_try_compile "$LINENO"
16313 then :
16314 ac_cv_prog_cxx_g=yes
16315 else case e in #(
16316 e) CXXFLAGS=""
16317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16318 /* end confdefs.h. */
16319
16320 int
16321 main (void)
16322 {
16323
16324 ;
16325 return 0;
16326 }
16327 _ACEOF
16328 if ac_fn_cxx_try_compile "$LINENO"
16329 then :
16330
16331 else case e in #(
16332 e) ac_cxx_werror_flag=$ac_save_cxx_werror_flag
16333 CXXFLAGS="-g"
16334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16335 /* end confdefs.h. */
16336
16337 int
16338 main (void)
16339 {
16340
16341 ;
16342 return 0;
16343 }
16344 _ACEOF
16345 if ac_fn_cxx_try_compile "$LINENO"
16346 then :
16347 ac_cv_prog_cxx_g=yes
16348 fi
16349 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16350 esac
16351 fi
16352 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16353 esac
16354 fi
16355 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16356 ac_cxx_werror_flag=$ac_save_cxx_werror_flag ;;
16357 esac
16358 fi
16359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
16360 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
16361 if test $ac_test_CXXFLAGS; then
16362 CXXFLAGS=$ac_save_CXXFLAGS
16363 elif test $ac_cv_prog_cxx_g = yes; then
16364 if test "$GXX" = yes; then
16365 CXXFLAGS="-g -O2"
16366 else
16367 CXXFLAGS="-g"
16368 fi
16369 else
16370 if test "$GXX" = yes; then
16371 CXXFLAGS="-O2"
16372 else
16373 CXXFLAGS=
16374 fi
16375 fi
16376 ac_prog_cxx_stdcxx=no
16377 if test x$ac_prog_cxx_stdcxx = xno
16378 then :
16379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
16380 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
16381 if test ${ac_cv_prog_cxx_cxx11+y}
16382 then :
16383 printf %s "(cached) " >&6
16384 else case e in #(
16385 e) ac_cv_prog_cxx_cxx11=no
16386 ac_save_CXX=$CXX
16387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16388 /* end confdefs.h. */
16389 $ac_cxx_conftest_cxx11_program
16390 _ACEOF
16391 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
16392 do
16393 CXX="$ac_save_CXX $ac_arg"
16394 if ac_fn_cxx_try_compile "$LINENO"
16395 then :
16396 ac_cv_prog_cxx_cxx11=$ac_arg
16397 fi
16398 rm -f core conftest.err conftest.$ac_objext conftest.beam
16399 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
16400 done
16401 rm -f conftest.$ac_ext
16402 CXX=$ac_save_CXX ;;
16403 esac
16404 fi
16405
16406 if test "x$ac_cv_prog_cxx_cxx11" = xno
16407 then :
16408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
16409 printf "%s\n" "unsupported" >&6; }
16410 else case e in #(
16411 e) if test "x$ac_cv_prog_cxx_cxx11" = x
16412 then :
16413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
16414 printf "%s\n" "none needed" >&6; }
16415 else case e in #(
16416 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
16417 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
16418 CXX="$CXX $ac_cv_prog_cxx_cxx11" ;;
16419 esac
16420 fi
16421 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
16422 ac_prog_cxx_stdcxx=cxx11 ;;
16423 esac
16424 fi
16425 fi
16426 if test x$ac_prog_cxx_stdcxx = xno
16427 then :
16428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
16429 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
16430 if test ${ac_cv_prog_cxx_cxx98+y}
16431 then :
16432 printf %s "(cached) " >&6
16433 else case e in #(
16434 e) ac_cv_prog_cxx_cxx98=no
16435 ac_save_CXX=$CXX
16436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16437 /* end confdefs.h. */
16438 $ac_cxx_conftest_cxx98_program
16439 _ACEOF
16440 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
16441 do
16442 CXX="$ac_save_CXX $ac_arg"
16443 if ac_fn_cxx_try_compile "$LINENO"
16444 then :
16445 ac_cv_prog_cxx_cxx98=$ac_arg
16446 fi
16447 rm -f core conftest.err conftest.$ac_objext conftest.beam
16448 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
16449 done
16450 rm -f conftest.$ac_ext
16451 CXX=$ac_save_CXX ;;
16452 esac
16453 fi
16454
16455 if test "x$ac_cv_prog_cxx_cxx98" = xno
16456 then :
16457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
16458 printf "%s\n" "unsupported" >&6; }
16459 else case e in #(
16460 e) if test "x$ac_cv_prog_cxx_cxx98" = x
16461 then :
16462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
16463 printf "%s\n" "none needed" >&6; }
16464 else case e in #(
16465 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
16466 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
16467 CXX="$CXX $ac_cv_prog_cxx_cxx98" ;;
16468 esac
16469 fi
16470 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
16471 ac_prog_cxx_stdcxx=cxx98 ;;
16472 esac
16473 fi
16474 fi
16475
16476 ac_ext=c
16477 ac_cpp='$CPP $CPPFLAGS'
16478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16481
16482 depcc="$CXX" am_compiler_list=
16483
16484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
16485 printf %s "checking dependency style of $depcc... " >&6; }
16486 if test ${am_cv_CXX_dependencies_compiler_type+y}
16487 then :
16488 printf %s "(cached) " >&6
16489 else case e in #(
16490 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
16491 # We make a subdir and do the tests there. Otherwise we can end up
16492 # making bogus files that we don't know about and never remove. For
16493 # instance it was reported that on HP-UX the gcc test will end up
16494 # making a dummy file named 'D' -- because '-MD' means "put the output
16495 # in D".
16496 rm -rf conftest.dir
16497 mkdir conftest.dir
16498 # Copy depcomp to subdir because otherwise we won't find it if we're
16499 # using a relative directory.
16500 cp "$am_depcomp" conftest.dir
16501 cd conftest.dir
16502 # We will build objects and dependencies in a subdirectory because
16503 # it helps to detect inapplicable dependency modes. For instance
16504 # both Tru64's cc and ICC support -MD to output dependencies as a
16505 # side effect of compilation, but ICC will put the dependencies in
16506 # the current directory while Tru64 will put them in the object
16507 # directory.
16508 mkdir sub
16509
16510 am_cv_CXX_dependencies_compiler_type=none
16511 if test "$am_compiler_list" = ""; then
16512 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
16513 fi
16514 am__universal=false
16515 case " $depcc " in #(
16516 *\ -arch\ *\ -arch\ *) am__universal=true ;;
16517 esac
16518
16519 for depmode in $am_compiler_list; do
16520 # Setup a source with many dependencies, because some compilers
16521 # like to wrap large dependency lists on column 80 (with \), and
16522 # we should not choose a depcomp mode which is confused by this.
16523 #
16524 # We need to recreate these files for each test, as the compiler may
16525 # overwrite some of them when testing with obscure command lines.
16526 # This happens at least with the AIX C compiler.
16527 : > sub/conftest.c
16528 for i in 1 2 3 4 5 6; do
16529 echo '#include "conftst'$i'.h"' >> sub/conftest.c
16530 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
16531 # Solaris 10 /bin/sh.
16532 echo '/* dummy */' > sub/conftst$i.h
16533 done
16534 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
16535
16536 # We check with '-c' and '-o' for the sake of the "dashmstdout"
16537 # mode. It turns out that the SunPro C++ compiler does not properly
16538 # handle '-M -o', and we need to detect this. Also, some Intel
16539 # versions had trouble with output in subdirs.
16540 am__obj=sub/conftest.${OBJEXT-o}
16541 am__minus_obj="-o $am__obj"
16542 case $depmode in
16543 gcc)
16544 # This depmode causes a compiler race in universal mode.
16545 test "$am__universal" = false || continue
16546 ;;
16547 nosideeffect)
16548 # After this tag, mechanisms are not by side-effect, so they'll
16549 # only be used when explicitly requested.
16550 if test "x$enable_dependency_tracking" = xyes; then
16551 continue
16552 else
16553 break
16554 fi
16555 ;;
16556 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
16557 # This compiler won't grok '-c -o', but also, the minuso test has
16558 # not run yet. These depmodes are late enough in the game, and
16559 # so weak that their functioning should not be impacted.
16560 am__obj=conftest.${OBJEXT-o}
16561 am__minus_obj=
16562 ;;
16563 none) break ;;
16564 esac
16565 if depmode=$depmode \
16566 source=sub/conftest.c object=$am__obj \
16567 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
16568 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
16569 >/dev/null 2>conftest.err &&
16570 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
16571 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
16572 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
16573 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
16574 # icc doesn't choke on unknown options, it will just issue warnings
16575 # or remarks (even with -Werror). So we grep stderr for any message
16576 # that says an option was ignored or not supported.
16577 # When given -MP, icc 7.0 and 7.1 complain thus:
16578 # icc: Command line warning: ignoring option '-M'; no argument required
16579 # The diagnosis changed in icc 8.0:
16580 # icc: Command line remark: option '-MP' not supported
16581 if (grep 'ignoring option' conftest.err ||
16582 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
16583 am_cv_CXX_dependencies_compiler_type=$depmode
16584 break
16585 fi
16586 fi
16587 done
16588
16589 cd ..
16590 rm -rf conftest.dir
16591 else
16592 am_cv_CXX_dependencies_compiler_type=none
16593 fi
16594 ;;
16595 esac
16596 fi
16597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
16598 printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
16599 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
16600
16601 if
16602 test "x$enable_dependency_tracking" != xno \
16603 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
16604 am__fastdepCXX_TRUE=
16605 am__fastdepCXX_FALSE='#'
16606 else
16607 am__fastdepCXX_TRUE='#'
16608 am__fastdepCXX_FALSE=
16609 fi
16610
16611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking what warning flags to pass to the C++ compiler" >&5
16612 printf %s "checking what warning flags to pass to the C++ compiler... " >&6; }
16613 if test ${kpse_cv_warning_cxxflags+y}
16614 then :
16615 printf %s "(cached) " >&6
16616 else case e in #(
16617 e) if test "x$GXX" = xyes; then
16618 kpse_cv_warning_cxxflags=
16619 kpse_warn_strings="-Wno-write-strings"
16620 if test "x$enable_compiler_warnings" != xno; then
16621 kpse_cv_warning_cxxflags="-Wreturn-type"
16622 case `$CXX -dumpversion` in #(
16623 3.* | 4.[012345].*) :
16624 kpse_cv_warning_cxxflags="-Wimplicit $kpse_cv_warning_cxxflags" ;; #(
16625 *) :
16626 ;;
16627 esac
16628 case `$CXX -dumpversion` in #(
16629 3.[234].* | 4.* | 5.*) :
16630 kpse_cv_warning_cxxflags="$kpse_cv_warning_cxxflags -Wno-unknown-pragmas" ;; #(
16631 *) :
16632 ;;
16633 esac
16634 if test "x$enable_compiler_warnings" != xmin; then
16635 kpse_cv_warning_cxxflags="-Wall -Wunused $kpse_cv_warning_cxxflags"
16636 if test "x$enable_compiler_warnings" != xyes; then
16637 kpse_cv_warning_cxxflags="$kpse_cv_warning_cxxflags -Wparentheses -Wswitch -Wtrigraphs -Wpointer-arith"
16638 kpse_cv_warning_cxxflags="$kpse_cv_warning_cxxflags -Wcast-qual -Wcast-align"
16639 kpse_warn_strings="-Wwrite-strings"
16640 if test "x$enable_compiler_warnings" != xmax; then
16641 kpse_cv_warning_cxxflags="$kpse_cv_warning_cxxflags -Wshadow"
16642 fi
16643 fi
16644 fi
16645 fi
16646 kpse_cv_warning_cxxflags="$kpse_cv_warning_cxxflags $kpse_warn_strings"
16647 elif test "x$enable_compiler_warnings" = xno; then
16648 kpse_cv_warning_cxxflags=
16649 else
16650 kpse_cv_warning_cxxflags= # FIXME: warning flags for non-GNU C++ compilers
16651 fi ;;
16652 esac
16653 fi
16654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_warning_cxxflags" >&5
16655 printf "%s\n" "$kpse_cv_warning_cxxflags" >&6; }
16656 WARNING_CXXFLAGS=$kpse_cv_warning_cxxflags
16657
16658
16659
16660
16661
16662 func_stripname_cnf ()
16663 {
16664 case $2 in
16665 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
16666 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
16667 esac
16668 } # func_stripname_cnf
16669
16670 if test -n "$CXX" && ( test no != "$CXX" &&
16671 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
16672 (test g++ != "$CXX"))); then
16673 ac_ext=cpp
16674 ac_cpp='$CXXCPP $CPPFLAGS'
16675 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16676 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16677 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
16679 printf %s "checking how to run the C++ preprocessor... " >&6; }
16680 if test -z "$CXXCPP"; then
16681 if test ${ac_cv_prog_CXXCPP+y}
16682 then :
16683 printf %s "(cached) " >&6
16684 else case e in #(
16685 e) # Double quotes because $CXX needs to be expanded
16686 for CXXCPP in "$CXX -E" cpp /lib/cpp
16687 do
16688 ac_preproc_ok=false
16689 for ac_cxx_preproc_warn_flag in '' yes
16690 do
16691 # Use a header file that comes with gcc, so configuring glibc
16692 # with a fresh cross-compiler works.
16693 # On the NeXT, cc -E runs the code through the compiler's parser,
16694 # not just through cpp. "Syntax error" is here to catch this case.
16695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16696 /* end confdefs.h. */
16697 #include <limits.h>
16698 Syntax error
16699 _ACEOF
16700 if ac_fn_cxx_try_cpp "$LINENO"
16701 then :
16702
16703 else case e in #(
16704 e) # Broken: fails on valid input.
16705 continue ;;
16706 esac
16707 fi
16708 rm -f conftest.err conftest.i conftest.$ac_ext
16709
16710 # OK, works on sane cases. Now check whether nonexistent headers
16711 # can be detected and how.
16712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16713 /* end confdefs.h. */
16714 #include <ac_nonexistent.h>
16715 _ACEOF
16716 if ac_fn_cxx_try_cpp "$LINENO"
16717 then :
16718 # Broken: success on invalid input.
16719 continue
16720 else case e in #(
16721 e) # Passes both tests.
16722 ac_preproc_ok=:
16723 break ;;
16724 esac
16725 fi
16726 rm -f conftest.err conftest.i conftest.$ac_ext
16727
16728 done
16729 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16730 rm -f conftest.i conftest.err conftest.$ac_ext
16731 if $ac_preproc_ok
16732 then :
16733 break
16734 fi
16735
16736 done
16737 ac_cv_prog_CXXCPP=$CXXCPP
16738 ;;
16739 esac
16740 fi
16741 CXXCPP=$ac_cv_prog_CXXCPP
16742 else
16743 ac_cv_prog_CXXCPP=$CXXCPP
16744 fi
16745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
16746 printf "%s\n" "$CXXCPP" >&6; }
16747 ac_preproc_ok=false
16748 for ac_cxx_preproc_warn_flag in '' yes
16749 do
16750 # Use a header file that comes with gcc, so configuring glibc
16751 # with a fresh cross-compiler works.
16752 # On the NeXT, cc -E runs the code through the compiler's parser,
16753 # not just through cpp. "Syntax error" is here to catch this case.
16754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16755 /* end confdefs.h. */
16756 #include <limits.h>
16757 Syntax error
16758 _ACEOF
16759 if ac_fn_cxx_try_cpp "$LINENO"
16760 then :
16761
16762 else case e in #(
16763 e) # Broken: fails on valid input.
16764 continue ;;
16765 esac
16766 fi
16767 rm -f conftest.err conftest.i conftest.$ac_ext
16768
16769 # OK, works on sane cases. Now check whether nonexistent headers
16770 # can be detected and how.
16771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16772 /* end confdefs.h. */
16773 #include <ac_nonexistent.h>
16774 _ACEOF
16775 if ac_fn_cxx_try_cpp "$LINENO"
16776 then :
16777 # Broken: success on invalid input.
16778 continue
16779 else case e in #(
16780 e) # Passes both tests.
16781 ac_preproc_ok=:
16782 break ;;
16783 esac
16784 fi
16785 rm -f conftest.err conftest.i conftest.$ac_ext
16786
16787 done
16788 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16789 rm -f conftest.i conftest.err conftest.$ac_ext
16790 if $ac_preproc_ok
16791 then :
16792
16793 else case e in #(
16794 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
16795 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
16796 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
16797 See 'config.log' for more details" "$LINENO" 5; } ;;
16798 esac
16799 fi
16800
16801 ac_ext=c
16802 ac_cpp='$CPP $CPPFLAGS'
16803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16806
16807 else
16808 _lt_caught_CXX_error=yes
16809 fi
16810
16811 ac_ext=cpp
16812 ac_cpp='$CXXCPP $CPPFLAGS'
16813 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16814 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16815 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16816
16817 archive_cmds_need_lc_CXX=no
16818 allow_undefined_flag_CXX=
16819 always_export_symbols_CXX=no
16820 archive_expsym_cmds_CXX=
16821 compiler_needs_object_CXX=no
16822 export_dynamic_flag_spec_CXX=
16823 hardcode_direct_CXX=no
16824 hardcode_direct_absolute_CXX=no
16825 hardcode_libdir_flag_spec_CXX=
16826 hardcode_libdir_separator_CXX=
16827 hardcode_minus_L_CXX=no
16828 hardcode_shlibpath_var_CXX=unsupported
16829 hardcode_automatic_CXX=no
16830 inherit_rpath_CXX=no
16831 module_cmds_CXX=
16832 module_expsym_cmds_CXX=
16833 link_all_deplibs_CXX=unknown
16834 old_archive_cmds_CXX=$old_archive_cmds
16835 reload_flag_CXX=$reload_flag
16836 reload_cmds_CXX=$reload_cmds
16837 no_undefined_flag_CXX=
16838 whole_archive_flag_spec_CXX=
16839 enable_shared_with_static_runtimes_CXX=no
16840
16841 # Source file extension for C++ test sources.
16842 ac_ext=cpp
16843
16844 # Object file extension for compiled C++ test sources.
16845 objext=o
16846 objext_CXX=$objext
16847
16848 # No sense in running all these tests if we already determined that
16849 # the CXX compiler isn't working. Some variables (like enable_shared)
16850 # are currently assumed to apply to all compilers on this platform,
16851 # and will be corrupted by setting them based on a non-working compiler.
16852 if test yes != "$_lt_caught_CXX_error"; then
16853 # Code to be used in simple compile tests
16854 lt_simple_compile_test_code="int some_variable = 0;"
16855
16856 # Code to be used in simple link tests
16857 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
16858
16859 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16860
16861
16862
16863
16864
16865
16866 # If no C compiler was specified, use CC.
16867 LTCC=${LTCC-"$CC"}
16868
16869 # If no C compiler flags were specified, use CFLAGS.
16870 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16871
16872 # Allow CC to be a program name with arguments.
16873 compiler=$CC
16874
16875
16876 # save warnings/boilerplate of simple test code
16877 ac_outfile=conftest.$ac_objext
16878 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16879 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16880 _lt_compiler_boilerplate=`cat conftest.err`
16881 $RM conftest*
16882
16883 ac_outfile=conftest.$ac_objext
16884 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16885 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16886 _lt_linker_boilerplate=`cat conftest.err`
16887 $RM -r conftest*
16888
16889
16890 # Allow CC to be a program name with arguments.
16891 lt_save_CC=$CC
16892 lt_save_CFLAGS=$CFLAGS
16893 lt_save_LD=$LD
16894 lt_save_GCC=$GCC
16895 GCC=$GXX
16896 lt_save_with_gnu_ld=$with_gnu_ld
16897 lt_save_path_LD=$lt_cv_path_LD
16898 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16899 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16900 else
16901 $as_unset lt_cv_prog_gnu_ld
16902 fi
16903 if test -n "${lt_cv_path_LDCXX+set}"; then
16904 lt_cv_path_LD=$lt_cv_path_LDCXX
16905 else
16906 $as_unset lt_cv_path_LD
16907 fi
16908 test -z "${LDCXX+set}" || LD=$LDCXX
16909 CC=${CXX-"c++"}
16910 CFLAGS=$CXXFLAGS
16911 compiler=$CC
16912 compiler_CXX=$CC
16913 func_cc_basename $compiler
16914 cc_basename=$func_cc_basename_result
16915
16916
16917 if test -n "$compiler"; then
16918 # We don't want -fno-exception when compiling C++ code, so set the
16919 # no_builtin_flag separately
16920 if test yes = "$GXX"; then
16921 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
16922 else
16923 lt_prog_compiler_no_builtin_flag_CXX=
16924 fi
16925
16926 if test yes = "$GXX"; then
16927 # Set up default GNU C++ configuration
16928
16929
16930
16931 # Check whether --with-gnu-ld was given.
16932 if test ${with_gnu_ld+y}
16933 then :
16934 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
16935 else case e in #(
16936 e) with_gnu_ld=no ;;
16937 esac
16938 fi
16939
16940 ac_prog=ld
16941 if test yes = "$GCC"; then
16942 # Check if gcc -print-prog-name=ld gives a path.
16943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16944 printf %s "checking for ld used by $CC... " >&6; }
16945 case $host in
16946 *-*-mingw* | *-*-windows*)
16947 # gcc leaves a trailing carriage return, which upsets mingw
16948 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16949 *)
16950 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16951 esac
16952 case $ac_prog in
16953 # Accept absolute paths.
16954 [\\/]* | ?:[\\/]*)
16955 re_direlt='/[^/][^/]*/\.\./'
16956 # Canonicalize the pathname of ld
16957 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16958 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16959 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16960 done
16961 test -z "$LD" && LD=$ac_prog
16962 ;;
16963 "")
16964 # If it fails, then pretend we aren't using GCC.
16965 ac_prog=ld
16966 ;;
16967 *)
16968 # If it is relative, then search for the first ld in PATH.
16969 with_gnu_ld=unknown
16970 ;;
16971 esac
16972 elif test yes = "$with_gnu_ld"; then
16973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16974 printf %s "checking for GNU ld... " >&6; }
16975 else
16976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16977 printf %s "checking for non-GNU ld... " >&6; }
16978 fi
16979 if test ${lt_cv_path_LD+y}
16980 then :
16981 printf %s "(cached) " >&6
16982 else case e in #(
16983 e) if test -z "$LD"; then
16984 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
16985 for ac_dir in $PATH; do
16986 IFS=$lt_save_ifs
16987 test -z "$ac_dir" && ac_dir=.
16988 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16989 lt_cv_path_LD=$ac_dir/$ac_prog
16990 # Check to see if the program is GNU ld. I'd rather use --version,
16991 # but apparently some variants of GNU ld only accept -v.
16992 # Break only if it was the GNU/non-GNU ld that we prefer.
16993 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16994 *GNU* | *'with BFD'*)
16995 test no != "$with_gnu_ld" && break
16996 ;;
16997 *)
16998 test yes != "$with_gnu_ld" && break
16999 ;;
17000 esac
17001 fi
17002 done
17003 IFS=$lt_save_ifs
17004 else
17005 lt_cv_path_LD=$LD # Let the user override the test with a path.
17006 fi ;;
17007 esac
17008 fi
17009
17010 LD=$lt_cv_path_LD
17011 if test -n "$LD"; then
17012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17013 printf "%s\n" "$LD" >&6; }
17014 else
17015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17016 printf "%s\n" "no" >&6; }
17017 fi
17018 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
17019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17020 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
17021 if test ${lt_cv_prog_gnu_ld+y}
17022 then :
17023 printf %s "(cached) " >&6
17024 else case e in #(
17025 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
17026 case `$LD -v 2>&1 </dev/null` in
17027 *GNU* | *'with BFD'*)
17028 lt_cv_prog_gnu_ld=yes
17029 ;;
17030 *)
17031 lt_cv_prog_gnu_ld=no
17032 ;;
17033 esac ;;
17034 esac
17035 fi
17036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17037 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
17038 with_gnu_ld=$lt_cv_prog_gnu_ld
17039
17040
17041
17042
17043
17044
17045
17046 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17047 # archiving commands below assume that GNU ld is being used.
17048 if test yes = "$with_gnu_ld"; then
17049 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
17050 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'
17051
17052 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
17053 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
17054
17055 # If archive_cmds runs LD, not CC, wlarc should be empty
17056 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17057 # investigate it a little bit more. (MM)
17058 wlarc='$wl'
17059
17060 # ancient GNU ld didn't support --whole-archive et. al.
17061 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
17062 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
17063 else
17064 whole_archive_flag_spec_CXX=
17065 fi
17066 else
17067 with_gnu_ld=no
17068 wlarc=
17069
17070 # A generic and very simple default shared library creation
17071 # command for GNU C++ for the case where it uses the native
17072 # linker, instead of GNU ld. If possible, this setting should
17073 # overridden to take advantage of the native linker features on
17074 # the platform it is being used on.
17075 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17076 fi
17077
17078 # Commands to make compiler produce verbose output that lists
17079 # what "hidden" libraries, object files and flags are used when
17080 # linking a shared library.
17081 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
17082
17083 else
17084 GXX=no
17085 with_gnu_ld=no
17086 wlarc=
17087 fi
17088
17089 # PORTME: fill in a description of your system's C++ link characteristics
17090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17091 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17092 ld_shlibs_CXX=yes
17093 case $host_os in
17094 aix3*)
17095 # FIXME: insert proper C++ library support
17096 ld_shlibs_CXX=no
17097 ;;
17098 aix[4-9]*)
17099 if test ia64 = "$host_cpu"; then
17100 # On IA64, the linker does run time linking by default, so we don't
17101 # have to do anything special.
17102 aix_use_runtimelinking=no
17103 exp_sym_flag='-Bexport'
17104 no_entry_flag=
17105 else
17106 aix_use_runtimelinking=no
17107
17108 # Test if we are trying to use run time linking or normal
17109 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17110 # have runtime linking enabled, and use it for executables.
17111 # For shared libraries, we enable/disable runtime linking
17112 # depending on the kind of the shared library created -
17113 # when "with_aix_soname,aix_use_runtimelinking" is:
17114 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
17115 # "aix,yes" lib.so shared, rtl:yes, for executables
17116 # lib.a static archive
17117 # "both,no" lib.so.V(shr.o) shared, rtl:yes
17118 # lib.a(lib.so.V) shared, rtl:no, for executables
17119 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
17120 # lib.a(lib.so.V) shared, rtl:no
17121 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
17122 # lib.a static archive
17123 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17124 for ld_flag in $LDFLAGS; do
17125 case $ld_flag in
17126 *-brtl*)
17127 aix_use_runtimelinking=yes
17128 break
17129 ;;
17130 esac
17131 done
17132 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
17133 # With aix-soname=svr4, we create the lib.so.V shared archives only,
17134 # so we don't have lib.a shared libs to link our executables.
17135 # We have to force runtime linking in this case.
17136 aix_use_runtimelinking=yes
17137 LDFLAGS="$LDFLAGS -Wl,-brtl"
17138 fi
17139 ;;
17140 esac
17141
17142 exp_sym_flag='-bexport'
17143 no_entry_flag='-bnoentry'
17144 fi
17145
17146 # When large executables or shared objects are built, AIX ld can
17147 # have problems creating the table of contents. If linking a library
17148 # or program results in "error TOC overflow" add -mminimal-toc to
17149 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17150 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17151
17152 archive_cmds_CXX=''
17153 hardcode_direct_CXX=yes
17154 hardcode_direct_absolute_CXX=yes
17155 hardcode_libdir_separator_CXX=':'
17156 link_all_deplibs_CXX=yes
17157 file_list_spec_CXX='$wl-f,'
17158 case $with_aix_soname,$aix_use_runtimelinking in
17159 aix,*) ;; # no import file
17160 svr4,* | *,yes) # use import file
17161 # The Import File defines what to hardcode.
17162 hardcode_direct_CXX=no
17163 hardcode_direct_absolute_CXX=no
17164 ;;
17165 esac
17166
17167 if test yes = "$GXX"; then
17168 case $host_os in aix4.[012]|aix4.[012].*)
17169 # We only want to do this on AIX 4.2 and lower, the check
17170 # below for broken collect2 doesn't work under 4.3+
17171 collect2name=`$CC -print-prog-name=collect2`
17172 if test -f "$collect2name" &&
17173 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17174 then
17175 # We have reworked collect2
17176 :
17177 else
17178 # We have old collect2
17179 hardcode_direct_CXX=unsupported
17180 # It fails to find uninstalled libraries when the uninstalled
17181 # path is not listed in the libpath. Setting hardcode_minus_L
17182 # to unsupported forces relinking
17183 hardcode_minus_L_CXX=yes
17184 hardcode_libdir_flag_spec_CXX='-L$libdir'
17185 hardcode_libdir_separator_CXX=
17186 fi
17187 esac
17188 shared_flag='-shared'
17189 if test yes = "$aix_use_runtimelinking"; then
17190 shared_flag=$shared_flag' $wl-G'
17191 fi
17192 # Need to ensure runtime linking is disabled for the traditional
17193 # shared library, or the linker may eventually find shared libraries
17194 # /with/ Import File - we do not want to mix them.
17195 shared_flag_aix='-shared'
17196 shared_flag_svr4='-shared $wl-G'
17197 else
17198 # not using gcc
17199 if test ia64 = "$host_cpu"; then
17200 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17201 # chokes on -Wl,-G. The following line is correct:
17202 shared_flag='-G'
17203 else
17204 if test yes = "$aix_use_runtimelinking"; then
17205 shared_flag='$wl-G'
17206 else
17207 shared_flag='$wl-bM:SRE'
17208 fi
17209 shared_flag_aix='$wl-bM:SRE'
17210 shared_flag_svr4='$wl-G'
17211 fi
17212 fi
17213
17214 export_dynamic_flag_spec_CXX='$wl-bexpall'
17215 # It seems that -bexpall does not export symbols beginning with
17216 # underscore (_), so it is better to generate a list of symbols to
17217 # export.
17218 always_export_symbols_CXX=yes
17219 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
17220 # Warning - without using the other runtime loading flags (-brtl),
17221 # -berok will link without error, but may produce a broken library.
17222 # The "-G" linker flag allows undefined symbols.
17223 no_undefined_flag_CXX='-bernotok'
17224 # Determine the default libpath from the value encoded in an empty
17225 # executable.
17226 if test set = "${lt_cv_aix_libpath+set}"; then
17227 aix_libpath=$lt_cv_aix_libpath
17228 else
17229 if test ${lt_cv_aix_libpath__CXX+y}
17230 then :
17231 printf %s "(cached) " >&6
17232 else case e in #(
17233 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17234 /* end confdefs.h. */
17235
17236 int
17237 main (void)
17238 {
17239
17240 ;
17241 return 0;
17242 }
17243 _ACEOF
17244 if ac_fn_cxx_try_link "$LINENO"
17245 then :
17246
17247 lt_aix_libpath_sed='
17248 /Import File Strings/,/^$/ {
17249 /^0/ {
17250 s/^0 *\([^ ]*\) *$/\1/
17251 p
17252 }
17253 }'
17254 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17255 # Check for a 64-bit object if we didn't find anything.
17256 if test -z "$lt_cv_aix_libpath__CXX"; then
17257 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17258 fi
17259 fi
17260 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17261 conftest$ac_exeext conftest.$ac_ext
17262 if test -z "$lt_cv_aix_libpath__CXX"; then
17263 lt_cv_aix_libpath__CXX=/usr/lib:/lib
17264 fi
17265 ;;
17266 esac
17267 fi
17268
17269 aix_libpath=$lt_cv_aix_libpath__CXX
17270 fi
17271
17272 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
17273
17274 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
17275 else
17276 if test ia64 = "$host_cpu"; then
17277 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
17278 allow_undefined_flag_CXX="-z nodefs"
17279 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"
17280 else
17281 # Determine the default libpath from the value encoded in an
17282 # empty executable.
17283 if test set = "${lt_cv_aix_libpath+set}"; then
17284 aix_libpath=$lt_cv_aix_libpath
17285 else
17286 if test ${lt_cv_aix_libpath__CXX+y}
17287 then :
17288 printf %s "(cached) " >&6
17289 else case e in #(
17290 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17291 /* end confdefs.h. */
17292
17293 int
17294 main (void)
17295 {
17296
17297 ;
17298 return 0;
17299 }
17300 _ACEOF
17301 if ac_fn_cxx_try_link "$LINENO"
17302 then :
17303
17304 lt_aix_libpath_sed='
17305 /Import File Strings/,/^$/ {
17306 /^0/ {
17307 s/^0 *\([^ ]*\) *$/\1/
17308 p
17309 }
17310 }'
17311 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17312 # Check for a 64-bit object if we didn't find anything.
17313 if test -z "$lt_cv_aix_libpath__CXX"; then
17314 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17315 fi
17316 fi
17317 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17318 conftest$ac_exeext conftest.$ac_ext
17319 if test -z "$lt_cv_aix_libpath__CXX"; then
17320 lt_cv_aix_libpath__CXX=/usr/lib:/lib
17321 fi
17322 ;;
17323 esac
17324 fi
17325
17326 aix_libpath=$lt_cv_aix_libpath__CXX
17327 fi
17328
17329 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
17330 # Warning - without using the other run time loading flags,
17331 # -berok will link without error, but may produce a broken library.
17332 no_undefined_flag_CXX=' $wl-bernotok'
17333 allow_undefined_flag_CXX=' $wl-berok'
17334 if test yes = "$with_gnu_ld"; then
17335 # We only use this code for GNU lds that support --whole-archive.
17336 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
17337 else
17338 # Exported symbols can be pulled into shared objects from archives
17339 whole_archive_flag_spec_CXX='$convenience'
17340 fi
17341 archive_cmds_need_lc_CXX=yes
17342 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
17343 # -brtl affects multiple linker settings, -berok does not and is overridden later
17344 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
17345 if test svr4 != "$with_aix_soname"; then
17346 # This is similar to how AIX traditionally builds its shared
17347 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
17348 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'
17349 fi
17350 if test aix != "$with_aix_soname"; then
17351 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'
17352 else
17353 # used by -dlpreopen to get the symbols
17354 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
17355 fi
17356 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
17357 fi
17358 fi
17359 ;;
17360
17361 beos*)
17362 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17363 allow_undefined_flag_CXX=unsupported
17364 # Joseph Beckenbach <[email protected]> says some releases of gcc
17365 # support --undefined. This deserves some investigation. FIXME
17366 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17367 else
17368 ld_shlibs_CXX=no
17369 fi
17370 ;;
17371
17372 chorus*)
17373 case $cc_basename in
17374 *)
17375 # FIXME: insert proper C++ library support
17376 ld_shlibs_CXX=no
17377 ;;
17378 esac
17379 ;;
17380
17381 cygwin* | mingw* | windows* | pw32* | cegcc*)
17382 case $GXX,$cc_basename in
17383 ,cl* | no,cl* | ,icl* | no,icl*)
17384 # Native MSVC or ICC
17385 # hardcode_libdir_flag_spec is actually meaningless, as there is
17386 # no search path for DLLs.
17387 hardcode_libdir_flag_spec_CXX=' '
17388 allow_undefined_flag_CXX=unsupported
17389 always_export_symbols_CXX=yes
17390 file_list_spec_CXX='@'
17391 # Tell ltmain to make .lib files, not .a files.
17392 libext=lib
17393 # Tell ltmain to make .dll files, not .so files.
17394 shrext_cmds=.dll
17395 # FIXME: Setting linknames here is a bad hack.
17396 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
17397 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
17398 cp "$export_symbols" "$output_objdir/$soname.def";
17399 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
17400 else
17401 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
17402 fi~
17403 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
17404 linknames='
17405 # The linker will not automatically build a static lib if we build a DLL.
17406 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
17407 enable_shared_with_static_runtimes_CXX=yes
17408 # Don't use ranlib
17409 old_postinstall_cmds_CXX='chmod 644 $oldlib'
17410 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
17411 lt_tool_outputfile="@TOOL_OUTPUT@"~
17412 case $lt_outputfile in
17413 *.exe|*.EXE) ;;
17414 *)
17415 lt_outputfile=$lt_outputfile.exe
17416 lt_tool_outputfile=$lt_tool_outputfile.exe
17417 ;;
17418 esac~
17419 func_to_tool_file "$lt_outputfile"~
17420 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
17421 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
17422 $RM "$lt_outputfile.manifest";
17423 fi'
17424 ;;
17425 *)
17426 # g++
17427 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
17428 # as there is no search path for DLLs.
17429 hardcode_libdir_flag_spec_CXX='-L$libdir'
17430 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
17431 allow_undefined_flag_CXX=unsupported
17432 always_export_symbols_CXX=no
17433 enable_shared_with_static_runtimes_CXX=yes
17434 file_list_spec_CXX='@'
17435
17436 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17437 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'
17438 # If the export-symbols file already is a .def file, use it as
17439 # is; otherwise, prepend EXPORTS...
17440 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
17441 cp $export_symbols $output_objdir/$soname.def;
17442 else
17443 echo EXPORTS > $output_objdir/$soname.def;
17444 cat $export_symbols >> $output_objdir/$soname.def;
17445 fi~
17446 $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'
17447 else
17448 ld_shlibs_CXX=no
17449 fi
17450 ;;
17451 esac
17452 ;;
17453 darwin* | rhapsody*)
17454
17455
17456 archive_cmds_need_lc_CXX=no
17457 hardcode_direct_CXX=no
17458 hardcode_automatic_CXX=yes
17459 hardcode_shlibpath_var_CXX=unsupported
17460 if test yes = "$lt_cv_ld_force_load"; then
17461 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\"`'
17462
17463 else
17464 whole_archive_flag_spec_CXX=''
17465 fi
17466 link_all_deplibs_CXX=yes
17467 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
17468 case $cc_basename in
17469 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
17470 *) _lt_dar_can_shared=$GCC ;;
17471 esac
17472 if test yes = "$_lt_dar_can_shared"; then
17473 output_verbose_link_cmd=func_echo_all
17474 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"
17475 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
17476 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"
17477 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"
17478 if test yes = "$_lt_dar_needs_single_mod" -a yes != "$lt_cv_apple_cc_single_mod"; then
17479 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"
17480 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"
17481 fi
17482
17483 else
17484 ld_shlibs_CXX=no
17485 fi
17486
17487 ;;
17488
17489 os2*)
17490 hardcode_libdir_flag_spec_CXX='-L$libdir'
17491 hardcode_minus_L_CXX=yes
17492 allow_undefined_flag_CXX=unsupported
17493 shrext_cmds=.dll
17494 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17495 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17496 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17497 $ECHO EXPORTS >> $output_objdir/$libname.def~
17498 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
17499 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17500 emximp -o $lib $output_objdir/$libname.def'
17501 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17502 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17503 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17504 $ECHO EXPORTS >> $output_objdir/$libname.def~
17505 prefix_cmds="$SED"~
17506 if test EXPORTS = "`$SED 1q $export_symbols`"; then
17507 prefix_cmds="$prefix_cmds -e 1d";
17508 fi~
17509 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
17510 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
17511 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17512 emximp -o $lib $output_objdir/$libname.def'
17513 old_archive_from_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
17514 enable_shared_with_static_runtimes_CXX=yes
17515 file_list_spec_CXX='@'
17516 ;;
17517
17518 dgux*)
17519 case $cc_basename in
17520 ec++*)
17521 # FIXME: insert proper C++ library support
17522 ld_shlibs_CXX=no
17523 ;;
17524 ghcx*)
17525 # Green Hills C++ Compiler
17526 # FIXME: insert proper C++ library support
17527 ld_shlibs_CXX=no
17528 ;;
17529 *)
17530 # FIXME: insert proper C++ library support
17531 ld_shlibs_CXX=no
17532 ;;
17533 esac
17534 ;;
17535
17536 freebsd2.*)
17537 # C++ shared libraries reported to be fairly broken before
17538 # switch to ELF
17539 ld_shlibs_CXX=no
17540 ;;
17541
17542 freebsd-elf*)
17543 archive_cmds_need_lc_CXX=no
17544 ;;
17545
17546 freebsd* | dragonfly* | midnightbsd*)
17547 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
17548 # conventions
17549 ld_shlibs_CXX=yes
17550 ;;
17551
17552 haiku*)
17553 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17554 link_all_deplibs_CXX=no
17555 ;;
17556
17557 hpux9*)
17558 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
17559 hardcode_libdir_separator_CXX=:
17560 export_dynamic_flag_spec_CXX='$wl-E'
17561 hardcode_direct_CXX=yes
17562 hardcode_minus_L_CXX=yes # Not in the search PATH,
17563 # but as the default
17564 # location of the library.
17565
17566 case $cc_basename in
17567 CC*)
17568 # FIXME: insert proper C++ library support
17569 ld_shlibs_CXX=no
17570 ;;
17571 aCC*)
17572 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'
17573 # Commands to make compiler produce verbose output that lists
17574 # what "hidden" libraries, object files and flags are used when
17575 # linking a shared library.
17576 #
17577 # There doesn't appear to be a way to prevent this compiler from
17578 # explicitly linking system object files so we need to strip them
17579 # from the output so that they don't get included in the library
17580 # dependencies.
17581 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"'
17582 ;;
17583 *)
17584 if test yes = "$GXX"; then
17585 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'
17586 else
17587 # FIXME: insert proper C++ library support
17588 ld_shlibs_CXX=no
17589 fi
17590 ;;
17591 esac
17592 ;;
17593
17594 hpux10*|hpux11*)
17595 if test no = "$with_gnu_ld"; then
17596 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
17597 hardcode_libdir_separator_CXX=:
17598
17599 case $host_cpu in
17600 hppa*64*|ia64*)
17601 ;;
17602 *)
17603 export_dynamic_flag_spec_CXX='$wl-E'
17604 ;;
17605 esac
17606 fi
17607 case $host_cpu in
17608 hppa*64*|ia64*)
17609 hardcode_direct_CXX=no
17610 hardcode_shlibpath_var_CXX=no
17611 ;;
17612 *)
17613 hardcode_direct_CXX=yes
17614 hardcode_direct_absolute_CXX=yes
17615 hardcode_minus_L_CXX=yes # Not in the search PATH,
17616 # but as the default
17617 # location of the library.
17618 ;;
17619 esac
17620
17621 case $cc_basename in
17622 CC*)
17623 # FIXME: insert proper C++ library support
17624 ld_shlibs_CXX=no
17625 ;;
17626 aCC*)
17627 case $host_cpu in
17628 hppa*64*)
17629 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17630 ;;
17631 ia64*)
17632 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17633 ;;
17634 *)
17635 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17636 ;;
17637 esac
17638 # Commands to make compiler produce verbose output that lists
17639 # what "hidden" libraries, object files and flags are used when
17640 # linking a shared library.
17641 #
17642 # There doesn't appear to be a way to prevent this compiler from
17643 # explicitly linking system object files so we need to strip them
17644 # from the output so that they don't get included in the library
17645 # dependencies.
17646 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"'
17647 ;;
17648 *)
17649 if test yes = "$GXX"; then
17650 if test no = "$with_gnu_ld"; then
17651 case $host_cpu in
17652 hppa*64*)
17653 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17654 ;;
17655 ia64*)
17656 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17657 ;;
17658 *)
17659 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'
17660 ;;
17661 esac
17662 fi
17663 else
17664 # FIXME: insert proper C++ library support
17665 ld_shlibs_CXX=no
17666 fi
17667 ;;
17668 esac
17669 ;;
17670
17671 interix[3-9]*)
17672 hardcode_direct_CXX=no
17673 hardcode_shlibpath_var_CXX=no
17674 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
17675 export_dynamic_flag_spec_CXX='$wl-E'
17676 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17677 # Instead, shared libraries are loaded at an image base (0x10000000 by
17678 # default) and relocated if they conflict, which is a slow very memory
17679 # consuming and fragmenting process. To avoid this, we pick a random,
17680 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17681 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17682 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'
17683 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'
17684 ;;
17685 irix5* | irix6*)
17686 case $cc_basename in
17687 CC*)
17688 # SGI C++
17689 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'
17690
17691 # Archives containing C++ object files must be created using
17692 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
17693 # necessary to make sure instantiated templates are included
17694 # in the archive.
17695 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
17696 ;;
17697 *)
17698 if test yes = "$GXX"; then
17699 if test no = "$with_gnu_ld"; then
17700 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'
17701 else
17702 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'
17703 fi
17704 fi
17705 link_all_deplibs_CXX=yes
17706 ;;
17707 esac
17708 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
17709 hardcode_libdir_separator_CXX=:
17710 inherit_rpath_CXX=yes
17711 ;;
17712
17713 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17714 case $cc_basename in
17715 KCC*)
17716 # Kuck and Associates, Inc. (KAI) C++ Compiler
17717
17718 # KCC will only create a shared library if the output file
17719 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17720 # to its proper name (with version) after linking.
17721 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'
17722 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'
17723 # Commands to make compiler produce verbose output that lists
17724 # what "hidden" libraries, object files and flags are used when
17725 # linking a shared library.
17726 #
17727 # There doesn't appear to be a way to prevent this compiler from
17728 # explicitly linking system object files so we need to strip them
17729 # from the output so that they don't get included in the library
17730 # dependencies.
17731 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"'
17732
17733 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
17734 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
17735
17736 # Archives containing C++ object files must be created using
17737 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17738 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17739 ;;
17740 icpc* | ecpc* )
17741 # Intel C++
17742 with_gnu_ld=yes
17743 # version 8.0 and above of icpc choke on multiply defined symbols
17744 # if we add $predep_objects and $postdep_objects, however 7.1 and
17745 # earlier do not add the objects themselves.
17746 case `$CC -V 2>&1` in
17747 *"Version 7."*)
17748 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
17749 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'
17750 ;;
17751 *) # Version 8.0 or newer
17752 tmp_idyn=
17753 case $host_cpu in
17754 ia64*) tmp_idyn=' -i_dynamic';;
17755 esac
17756 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17757 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'
17758 ;;
17759 esac
17760 archive_cmds_need_lc_CXX=no
17761 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
17762 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
17763 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
17764 ;;
17765 pgCC* | pgcpp*)
17766 # Portland Group C++ compiler
17767 case `$CC -V` in
17768 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
17769 prelink_cmds_CXX='tpldir=Template.dir~
17770 rm -rf $tpldir~
17771 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
17772 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
17773 old_archive_cmds_CXX='tpldir=Template.dir~
17774 rm -rf $tpldir~
17775 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
17776 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
17777 $RANLIB $oldlib'
17778 archive_cmds_CXX='tpldir=Template.dir~
17779 rm -rf $tpldir~
17780 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
17781 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
17782 archive_expsym_cmds_CXX='tpldir=Template.dir~
17783 rm -rf $tpldir~
17784 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
17785 $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'
17786 ;;
17787 *) # Version 6 and above use weak symbols
17788 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
17789 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'
17790 ;;
17791 esac
17792
17793 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
17794 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
17795 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'
17796 ;;
17797 cxx*)
17798 # Compaq C++
17799 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
17800 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'
17801
17802 runpath_var=LD_RUN_PATH
17803 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17804 hardcode_libdir_separator_CXX=:
17805
17806 # Commands to make compiler produce verbose output that lists
17807 # what "hidden" libraries, object files and flags are used when
17808 # linking a shared library.
17809 #
17810 # There doesn't appear to be a way to prevent this compiler from
17811 # explicitly linking system object files so we need to strip them
17812 # from the output so that they don't get included in the library
17813 # dependencies.
17814 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'
17815 ;;
17816 xl* | mpixl* | bgxl*)
17817 # IBM XL 8.0 on PPC, with GNU ld
17818 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
17819 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
17820 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17821 if test yes = "$supports_anon_versioning"; then
17822 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
17823 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17824 echo "local: *; };" >> $output_objdir/$libname.ver~
17825 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
17826 fi
17827 ;;
17828 *)
17829 case `$CC -V 2>&1 | $SED 5q` in
17830 *Sun\ C*)
17831 # Sun C++ 5.9
17832 no_undefined_flag_CXX=' -zdefs'
17833 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17834 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'
17835 hardcode_libdir_flag_spec_CXX='-R$libdir'
17836 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'
17837 compiler_needs_object_CXX=yes
17838
17839 # Not sure whether something based on
17840 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
17841 # would be better.
17842 output_verbose_link_cmd='func_echo_all'
17843
17844 # Archives containing C++ object files must be created using
17845 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17846 # necessary to make sure instantiated templates are included
17847 # in the archive.
17848 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17849 ;;
17850 esac
17851 ;;
17852 esac
17853 ;;
17854
17855 lynxos*)
17856 # FIXME: insert proper C++ library support
17857 ld_shlibs_CXX=no
17858 ;;
17859
17860 m88k*)
17861 # FIXME: insert proper C++ library support
17862 ld_shlibs_CXX=no
17863 ;;
17864
17865 mvs*)
17866 case $cc_basename in
17867 cxx*)
17868 # FIXME: insert proper C++ library support
17869 ld_shlibs_CXX=no
17870 ;;
17871 *)
17872 # FIXME: insert proper C++ library support
17873 ld_shlibs_CXX=no
17874 ;;
17875 esac
17876 ;;
17877
17878 *-mlibc)
17879 ld_shlibs_CXX=yes
17880 ;;
17881
17882 netbsd*)
17883 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17884 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
17885 wlarc=
17886 hardcode_libdir_flag_spec_CXX='-R$libdir'
17887 hardcode_direct_CXX=yes
17888 hardcode_shlibpath_var_CXX=no
17889 fi
17890 # Workaround some broken pre-1.5 toolchains
17891 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
17892 ;;
17893
17894 *nto* | *qnx*)
17895 ld_shlibs_CXX=yes
17896 ;;
17897
17898 openbsd*)
17899 if test -f /usr/libexec/ld.so; then
17900 hardcode_direct_CXX=yes
17901 hardcode_shlibpath_var_CXX=no
17902 hardcode_direct_absolute_CXX=yes
17903 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17904 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
17905 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
17906 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
17907 export_dynamic_flag_spec_CXX='$wl-E'
17908 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
17909 fi
17910 output_verbose_link_cmd=func_echo_all
17911 else
17912 ld_shlibs_CXX=no
17913 fi
17914 ;;
17915
17916 osf3* | osf4* | osf5*)
17917 case $cc_basename in
17918 KCC*)
17919 # Kuck and Associates, Inc. (KAI) C++ Compiler
17920
17921 # KCC will only create a shared library if the output file
17922 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17923 # to its proper name (with version) after linking.
17924 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'
17925
17926 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
17927 hardcode_libdir_separator_CXX=:
17928
17929 # Archives containing C++ object files must be created using
17930 # the KAI C++ compiler.
17931 case $host in
17932 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
17933 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
17934 esac
17935 ;;
17936 RCC*)
17937 # Rational C++ 2.4.1
17938 # FIXME: insert proper C++ library support
17939 ld_shlibs_CXX=no
17940 ;;
17941 cxx*)
17942 case $host in
17943 osf3*)
17944 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
17945 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'
17946 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
17947 ;;
17948 *)
17949 allow_undefined_flag_CXX=' -expect_unresolved \*'
17950 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'
17951 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
17952 echo "-hidden">> $lib.exp~
17953 $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~
17954 $RM $lib.exp'
17955 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17956 ;;
17957 esac
17958
17959 hardcode_libdir_separator_CXX=:
17960
17961 # Commands to make compiler produce verbose output that lists
17962 # what "hidden" libraries, object files and flags are used when
17963 # linking a shared library.
17964 #
17965 # There doesn't appear to be a way to prevent this compiler from
17966 # explicitly linking system object files so we need to strip them
17967 # from the output so that they don't get included in the library
17968 # dependencies.
17969 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"'
17970 ;;
17971 *)
17972 if test yes,no = "$GXX,$with_gnu_ld"; then
17973 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
17974 case $host in
17975 osf3*)
17976 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'
17977 ;;
17978 *)
17979 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'
17980 ;;
17981 esac
17982
17983 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
17984 hardcode_libdir_separator_CXX=:
17985
17986 # Commands to make compiler produce verbose output that lists
17987 # what "hidden" libraries, object files and flags are used when
17988 # linking a shared library.
17989 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
17990
17991 else
17992 # FIXME: insert proper C++ library support
17993 ld_shlibs_CXX=no
17994 fi
17995 ;;
17996 esac
17997 ;;
17998
17999 psos*)
18000 # FIXME: insert proper C++ library support
18001 ld_shlibs_CXX=no
18002 ;;
18003
18004 serenity*)
18005 ;;
18006
18007 sunos4*)
18008 case $cc_basename in
18009 CC*)
18010 # Sun C++ 4.x
18011 # FIXME: insert proper C++ library support
18012 ld_shlibs_CXX=no
18013 ;;
18014 lcc*)
18015 # Lucid
18016 # FIXME: insert proper C++ library support
18017 ld_shlibs_CXX=no
18018 ;;
18019 *)
18020 # FIXME: insert proper C++ library support
18021 ld_shlibs_CXX=no
18022 ;;
18023 esac
18024 ;;
18025
18026 solaris*)
18027 case $cc_basename in
18028 CC* | sunCC*)
18029 # Sun C++ 4.2, 5.x and Centerline C++
18030 archive_cmds_need_lc_CXX=yes
18031 no_undefined_flag_CXX=' -zdefs'
18032 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18033 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18034 $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'
18035
18036 hardcode_libdir_flag_spec_CXX='-R$libdir'
18037 hardcode_shlibpath_var_CXX=no
18038 case $host_os in
18039 solaris2.[0-5] | solaris2.[0-5].*) ;;
18040 *)
18041 # The compiler driver will combine and reorder linker options,
18042 # but understands '-z linker_flag'.
18043 # Supported since Solaris 2.6 (maybe 2.5.1?)
18044 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
18045 ;;
18046 esac
18047 link_all_deplibs_CXX=yes
18048
18049 output_verbose_link_cmd='func_echo_all'
18050
18051 # Archives containing C++ object files must be created using
18052 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18053 # necessary to make sure instantiated templates are included
18054 # in the archive.
18055 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18056 ;;
18057 gcx*)
18058 # Green Hills C++ Compiler
18059 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
18060
18061 # The C++ compiler must be used to create the archive.
18062 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18063 ;;
18064 *)
18065 # GNU C++ compiler with Solaris linker
18066 if test yes,no = "$GXX,$with_gnu_ld"; then
18067 no_undefined_flag_CXX=' $wl-z ${wl}defs'
18068 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
18069 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
18070 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18071 $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'
18072
18073 # Commands to make compiler produce verbose output that lists
18074 # what "hidden" libraries, object files and flags are used when
18075 # linking a shared library.
18076 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
18077 else
18078 # g++ 2.7 appears to require '-G' NOT '-shared' on this
18079 # platform.
18080 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
18081 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18082 $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'
18083
18084 # Commands to make compiler produce verbose output that lists
18085 # what "hidden" libraries, object files and flags are used when
18086 # linking a shared library.
18087 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
18088 fi
18089
18090 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
18091 case $host_os in
18092 solaris2.[0-5] | solaris2.[0-5].*) ;;
18093 *)
18094 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
18095 ;;
18096 esac
18097 fi
18098 ;;
18099 esac
18100 ;;
18101
18102 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18103 no_undefined_flag_CXX='$wl-z,text'
18104 archive_cmds_need_lc_CXX=no
18105 hardcode_shlibpath_var_CXX=no
18106 runpath_var='LD_RUN_PATH'
18107
18108 case $cc_basename in
18109 CC*)
18110 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18111 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18112 ;;
18113 *)
18114 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18115 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18116 ;;
18117 esac
18118 ;;
18119
18120 sysv5* | sco3.2v5* | sco5v6*)
18121 # Note: We CANNOT use -z defs as we might desire, because we do not
18122 # link with -lc, and that would cause any symbols used from libc to
18123 # always be unresolved, which means just about no library would
18124 # ever link correctly. If we're not using GNU ld we use -z text
18125 # though, which does catch some bad symbols but isn't as heavy-handed
18126 # as -z defs.
18127 no_undefined_flag_CXX='$wl-z,text'
18128 allow_undefined_flag_CXX='$wl-z,nodefs'
18129 archive_cmds_need_lc_CXX=no
18130 hardcode_shlibpath_var_CXX=no
18131 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
18132 hardcode_libdir_separator_CXX=':'
18133 link_all_deplibs_CXX=yes
18134 export_dynamic_flag_spec_CXX='$wl-Bexport'
18135 runpath_var='LD_RUN_PATH'
18136
18137 case $cc_basename in
18138 CC*)
18139 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18140 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18141 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
18142 '"$old_archive_cmds_CXX"
18143 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
18144 '"$reload_cmds_CXX"
18145 ;;
18146 *)
18147 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18148 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18149 ;;
18150 esac
18151 ;;
18152
18153 tandem*)
18154 case $cc_basename in
18155 NCC*)
18156 # NonStop-UX NCC 3.20
18157 # FIXME: insert proper C++ library support
18158 ld_shlibs_CXX=no
18159 ;;
18160 *)
18161 # FIXME: insert proper C++ library support
18162 ld_shlibs_CXX=no
18163 ;;
18164 esac
18165 ;;
18166
18167 vxworks*)
18168 # FIXME: insert proper C++ library support
18169 ld_shlibs_CXX=no
18170 ;;
18171
18172 *)
18173 # FIXME: insert proper C++ library support
18174 ld_shlibs_CXX=no
18175 ;;
18176 esac
18177
18178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18179 printf "%s\n" "$ld_shlibs_CXX" >&6; }
18180 test no = "$ld_shlibs_CXX" && can_build_shared=no
18181
18182 GCC_CXX=$GXX
18183 LD_CXX=$LD
18184
18185 ## CAVEAT EMPTOR:
18186 ## There is no encapsulation within the following macros, do not change
18187 ## the running order or otherwise move them around unless you know exactly
18188 ## what you are doing...
18189 # Dependencies to place before and after the object being linked:
18190 predep_objects_CXX=
18191 postdep_objects_CXX=
18192 predeps_CXX=
18193 postdeps_CXX=
18194 compiler_lib_search_path_CXX=
18195
18196 cat > conftest.$ac_ext <<_LT_EOF
18197 class Foo
18198 {
18199 public:
18200 Foo (void) { a = 0; }
18201 private:
18202 int a;
18203 };
18204 _LT_EOF
18205
18206
18207 _lt_libdeps_save_CFLAGS=$CFLAGS
18208 case "$CC $CFLAGS " in #(
18209 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
18210 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
18211 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
18212 esac
18213
18214 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18215 (eval $ac_compile) 2>&5
18216 ac_status=$?
18217 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18218 test $ac_status = 0; }; then
18219 # Parse the compiler output and extract the necessary
18220 # objects, libraries and library flags.
18221
18222 # Sentinel used to keep track of whether or not we are before
18223 # the conftest object file.
18224 pre_test_object_deps_done=no
18225
18226 for p in `eval "$output_verbose_link_cmd"`; do
18227 case $prev$p in
18228
18229 -L* | -R* | -l*)
18230 # Some compilers place space between "-{L,R,l}" and the path.
18231 # Remove the space.
18232 if test x-L = x"$p" ||
18233 test x-R = x"$p" ||
18234 test x-l = x"$p"; then
18235 prev=$p
18236 continue
18237 fi
18238
18239 # Expand the sysroot to ease extracting the directories later.
18240 if test -z "$prev"; then
18241 case $p in
18242 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
18243 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
18244 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
18245 esac
18246 fi
18247 case $p in
18248 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
18249 esac
18250 if test no = "$pre_test_object_deps_done"; then
18251 case $prev in
18252 -L | -R)
18253 # Internal compiler library paths should come after those
18254 # provided the user. The postdeps already come after the
18255 # user supplied libs so there is no need to process them.
18256 if test -z "$compiler_lib_search_path_CXX"; then
18257 compiler_lib_search_path_CXX=$prev$p
18258 else
18259 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
18260 fi
18261 ;;
18262 # The "-l" case would never come before the object being
18263 # linked, so don't bother handling this case.
18264 esac
18265 else
18266 if test -z "$postdeps_CXX"; then
18267 postdeps_CXX=$prev$p
18268 else
18269 postdeps_CXX="${postdeps_CXX} $prev$p"
18270 fi
18271 fi
18272 prev=
18273 ;;
18274
18275 *.lto.$objext) ;; # Ignore GCC LTO objects
18276 *.$objext)
18277 # This assumes that the test object file only shows up
18278 # once in the compiler output.
18279 if test "$p" = "conftest.$objext"; then
18280 pre_test_object_deps_done=yes
18281 continue
18282 fi
18283
18284 if test no = "$pre_test_object_deps_done"; then
18285 if test -z "$predep_objects_CXX"; then
18286 predep_objects_CXX=$p
18287 else
18288 predep_objects_CXX="$predep_objects_CXX $p"
18289 fi
18290 else
18291 if test -z "$postdep_objects_CXX"; then
18292 postdep_objects_CXX=$p
18293 else
18294 postdep_objects_CXX="$postdep_objects_CXX $p"
18295 fi
18296 fi
18297 ;;
18298
18299 *) ;; # Ignore the rest.
18300
18301 esac
18302 done
18303
18304 # Clean up.
18305 rm -f a.out a.exe
18306 else
18307 echo "libtool.m4: error: problem compiling CXX test program"
18308 fi
18309
18310 $RM -f confest.$objext
18311 CFLAGS=$_lt_libdeps_save_CFLAGS
18312
18313 # PORTME: override above test on systems where it is broken
18314 case $host_os in
18315 interix[3-9]*)
18316 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18317 # hack all around it, let's just trust "g++" to DTRT.
18318 predep_objects_CXX=
18319 postdep_objects_CXX=
18320 postdeps_CXX=
18321 ;;
18322 esac
18323
18324
18325 case " $postdeps_CXX " in
18326 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
18327 esac
18328 compiler_lib_search_dirs_CXX=
18329 if test -n "${compiler_lib_search_path_CXX}"; then
18330 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
18331 fi
18332
18333
18334
18335
18336
18337
18338
18339
18340
18341
18342
18343
18344
18345
18346
18347
18348
18349
18350
18351
18352
18353
18354
18355
18356
18357
18358
18359
18360
18361
18362
18363 lt_prog_compiler_wl_CXX=
18364 lt_prog_compiler_pic_CXX=
18365 lt_prog_compiler_static_CXX=
18366
18367
18368 # C++ specific cases for pic, static, wl, etc.
18369 if test yes = "$GXX"; then
18370 lt_prog_compiler_wl_CXX='-Wl,'
18371 lt_prog_compiler_static_CXX='-static'
18372
18373 case $host_os in
18374 aix*)
18375 # All AIX code is PIC.
18376 if test ia64 = "$host_cpu"; then
18377 # AIX 5 now supports IA64 processor
18378 lt_prog_compiler_static_CXX='-Bstatic'
18379 fi
18380 lt_prog_compiler_pic_CXX='-fPIC'
18381 ;;
18382
18383 amigaos*)
18384 case $host_cpu in
18385 powerpc)
18386 # see comment about AmigaOS4 .so support
18387 lt_prog_compiler_pic_CXX='-fPIC'
18388 ;;
18389 m68k)
18390 # FIXME: we need at least 68020 code to build shared libraries, but
18391 # adding the '-m68020' flag to GCC prevents building anything better,
18392 # like '-m68040'.
18393 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
18394 ;;
18395 esac
18396 ;;
18397
18398 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18399 # PIC is the default for these OSes.
18400 ;;
18401 mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
18402 # This hack is so that the source file can tell whether it is being
18403 # built for inclusion in a dll (and should export symbols for example).
18404 # Although the cygwin gcc ignores -fPIC, still need this for old-style
18405 # (--disable-auto-import) libraries
18406 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18407 case $host_os in
18408 os2*)
18409 lt_prog_compiler_static_CXX='$wl-static'
18410 ;;
18411 esac
18412 ;;
18413 darwin* | rhapsody*)
18414 # PIC is the default on this platform
18415 # Common symbols not allowed in MH_DYLIB files
18416 lt_prog_compiler_pic_CXX='-fno-common'
18417 ;;
18418 *djgpp*)
18419 # DJGPP does not support shared libraries at all
18420 lt_prog_compiler_pic_CXX=
18421 ;;
18422 haiku*)
18423 # PIC is the default for Haiku.
18424 # The "-static" flag exists, but is broken.
18425 lt_prog_compiler_static_CXX=
18426 ;;
18427 interix[3-9]*)
18428 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18429 # Instead, we relocate shared libraries at runtime.
18430 ;;
18431 sysv4*MP*)
18432 if test -d /usr/nec; then
18433 lt_prog_compiler_pic_CXX=-Kconform_pic
18434 fi
18435 ;;
18436 hpux*)
18437 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
18438 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
18439 # sets the default TLS model and affects inlining.
18440 case $host_cpu in
18441 hppa*64*)
18442 ;;
18443 *)
18444 lt_prog_compiler_pic_CXX='-fPIC'
18445 ;;
18446 esac
18447 ;;
18448 *qnx* | *nto*)
18449 # QNX uses GNU C++, but need to define -shared option too, otherwise
18450 # it will coredump.
18451 lt_prog_compiler_pic_CXX='-fPIC -shared'
18452 ;;
18453 *)
18454 lt_prog_compiler_pic_CXX='-fPIC'
18455 ;;
18456 esac
18457 else
18458 case $host_os in
18459 aix[4-9]*)
18460 # All AIX code is PIC.
18461 if test ia64 = "$host_cpu"; then
18462 # AIX 5 now supports IA64 processor
18463 lt_prog_compiler_static_CXX='-Bstatic'
18464 else
18465 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
18466 fi
18467 ;;
18468 chorus*)
18469 case $cc_basename in
18470 cxch68*)
18471 # Green Hills C++ Compiler
18472 # _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"
18473 ;;
18474 esac
18475 ;;
18476 mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
18477 # This hack is so that the source file can tell whether it is being
18478 # built for inclusion in a dll (and should export symbols for example).
18479 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18480 ;;
18481 dgux*)
18482 case $cc_basename in
18483 ec++*)
18484 lt_prog_compiler_pic_CXX='-KPIC'
18485 ;;
18486 ghcx*)
18487 # Green Hills C++ Compiler
18488 lt_prog_compiler_pic_CXX='-pic'
18489 ;;
18490 *)
18491 ;;
18492 esac
18493 ;;
18494 freebsd* | dragonfly* | midnightbsd*)
18495 # FreeBSD uses GNU C++
18496 ;;
18497 hpux9* | hpux10* | hpux11*)
18498 case $cc_basename in
18499 CC*)
18500 lt_prog_compiler_wl_CXX='-Wl,'
18501 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
18502 if test ia64 != "$host_cpu"; then
18503 lt_prog_compiler_pic_CXX='+Z'
18504 fi
18505 ;;
18506 aCC*)
18507 lt_prog_compiler_wl_CXX='-Wl,'
18508 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
18509 case $host_cpu in
18510 hppa*64*|ia64*)
18511 # +Z the default
18512 ;;
18513 *)
18514 lt_prog_compiler_pic_CXX='+Z'
18515 ;;
18516 esac
18517 ;;
18518 *)
18519 ;;
18520 esac
18521 ;;
18522 interix*)
18523 # This is c89, which is MS Visual C++ (no shared libs)
18524 # Anyone wants to do a port?
18525 ;;
18526 irix5* | irix6* | nonstopux*)
18527 case $cc_basename in
18528 CC*)
18529 lt_prog_compiler_wl_CXX='-Wl,'
18530 lt_prog_compiler_static_CXX='-non_shared'
18531 # CC pic flag -KPIC is the default.
18532 ;;
18533 *)
18534 ;;
18535 esac
18536 ;;
18537 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
18538 case $cc_basename in
18539 KCC*)
18540 # KAI C++ Compiler
18541 lt_prog_compiler_wl_CXX='--backend -Wl,'
18542 lt_prog_compiler_pic_CXX='-fPIC'
18543 ;;
18544 ecpc* )
18545 # old Intel C++ for x86_64, which still supported -KPIC.
18546 lt_prog_compiler_wl_CXX='-Wl,'
18547 lt_prog_compiler_pic_CXX='-KPIC'
18548 lt_prog_compiler_static_CXX='-static'
18549 ;;
18550 icpc* )
18551 # Intel C++, used to be incompatible with GCC.
18552 # ICC 10 doesn't accept -KPIC any more.
18553 lt_prog_compiler_wl_CXX='-Wl,'
18554 lt_prog_compiler_pic_CXX='-fPIC'
18555 lt_prog_compiler_static_CXX='-static'
18556 ;;
18557 pgCC* | pgcpp*)
18558 # Portland Group C++ compiler
18559 lt_prog_compiler_wl_CXX='-Wl,'
18560 lt_prog_compiler_pic_CXX='-fpic'
18561 lt_prog_compiler_static_CXX='-Bstatic'
18562 ;;
18563 cxx*)
18564 # Compaq C++
18565 # Make sure the PIC flag is empty. It appears that all Alpha
18566 # Linux and Compaq Tru64 Unix objects are PIC.
18567 lt_prog_compiler_pic_CXX=
18568 lt_prog_compiler_static_CXX='-non_shared'
18569 ;;
18570 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
18571 # IBM XL 8.0, 9.0 on PPC and BlueGene
18572 lt_prog_compiler_wl_CXX='-Wl,'
18573 lt_prog_compiler_pic_CXX='-qpic'
18574 lt_prog_compiler_static_CXX='-qstaticlink'
18575 ;;
18576 *)
18577 case `$CC -V 2>&1 | $SED 5q` in
18578 *Sun\ C*)
18579 # Sun C++ 5.9
18580 lt_prog_compiler_pic_CXX='-KPIC'
18581 lt_prog_compiler_static_CXX='-Bstatic'
18582 lt_prog_compiler_wl_CXX='-Qoption ld '
18583 ;;
18584 esac
18585 ;;
18586 esac
18587 ;;
18588 lynxos*)
18589 ;;
18590 m88k*)
18591 ;;
18592 mvs*)
18593 case $cc_basename in
18594 cxx*)
18595 lt_prog_compiler_pic_CXX='-W c,exportall'
18596 ;;
18597 *)
18598 ;;
18599 esac
18600 ;;
18601 netbsd* | netbsdelf*-gnu)
18602 ;;
18603 *-mlibc)
18604 ;;
18605 *qnx* | *nto*)
18606 # QNX uses GNU C++, but need to define -shared option too, otherwise
18607 # it will coredump.
18608 lt_prog_compiler_pic_CXX='-fPIC -shared'
18609 ;;
18610 osf3* | osf4* | osf5*)
18611 case $cc_basename in
18612 KCC*)
18613 lt_prog_compiler_wl_CXX='--backend -Wl,'
18614 ;;
18615 RCC*)
18616 # Rational C++ 2.4.1
18617 lt_prog_compiler_pic_CXX='-pic'
18618 ;;
18619 cxx*)
18620 # Digital/Compaq C++
18621 lt_prog_compiler_wl_CXX='-Wl,'
18622 # Make sure the PIC flag is empty. It appears that all Alpha
18623 # Linux and Compaq Tru64 Unix objects are PIC.
18624 lt_prog_compiler_pic_CXX=
18625 lt_prog_compiler_static_CXX='-non_shared'
18626 ;;
18627 *)
18628 ;;
18629 esac
18630 ;;
18631 psos*)
18632 ;;
18633 serenity*)
18634 ;;
18635 solaris*)
18636 case $cc_basename in
18637 CC* | sunCC*)
18638 # Sun C++ 4.2, 5.x and Centerline C++
18639 lt_prog_compiler_pic_CXX='-KPIC'
18640 lt_prog_compiler_static_CXX='-Bstatic'
18641 lt_prog_compiler_wl_CXX='-Qoption ld '
18642 ;;
18643 gcx*)
18644 # Green Hills C++ Compiler
18645 lt_prog_compiler_pic_CXX='-PIC'
18646 ;;
18647 *)
18648 ;;
18649 esac
18650 ;;
18651 sunos4*)
18652 case $cc_basename in
18653 CC*)
18654 # Sun C++ 4.x
18655 lt_prog_compiler_pic_CXX='-pic'
18656 lt_prog_compiler_static_CXX='-Bstatic'
18657 ;;
18658 lcc*)
18659 # Lucid
18660 lt_prog_compiler_pic_CXX='-pic'
18661 ;;
18662 *)
18663 ;;
18664 esac
18665 ;;
18666 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18667 case $cc_basename in
18668 CC*)
18669 lt_prog_compiler_wl_CXX='-Wl,'
18670 lt_prog_compiler_pic_CXX='-KPIC'
18671 lt_prog_compiler_static_CXX='-Bstatic'
18672 ;;
18673 esac
18674 ;;
18675 tandem*)
18676 case $cc_basename in
18677 NCC*)
18678 # NonStop-UX NCC 3.20
18679 lt_prog_compiler_pic_CXX='-KPIC'
18680 ;;
18681 *)
18682 ;;
18683 esac
18684 ;;
18685 vxworks*)
18686 ;;
18687 *)
18688 lt_prog_compiler_can_build_shared_CXX=no
18689 ;;
18690 esac
18691 fi
18692
18693 case $host_os in
18694 # For platforms that do not support PIC, -DPIC is meaningless:
18695 *djgpp*)
18696 lt_prog_compiler_pic_CXX=
18697 ;;
18698 *)
18699 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
18700 ;;
18701 esac
18702
18703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
18704 printf %s "checking for $compiler option to produce PIC... " >&6; }
18705 if test ${lt_cv_prog_compiler_pic_CXX+y}
18706 then :
18707 printf %s "(cached) " >&6
18708 else case e in #(
18709 e) lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX ;;
18710 esac
18711 fi
18712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
18713 printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
18714 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
18715
18716 #
18717 # Check to make sure the PIC flag actually works.
18718 #
18719 if test -n "$lt_prog_compiler_pic_CXX"; then
18720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18721 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
18722 if test ${lt_cv_prog_compiler_pic_works_CXX+y}
18723 then :
18724 printf %s "(cached) " >&6
18725 else case e in #(
18726 e) lt_cv_prog_compiler_pic_works_CXX=no
18727 ac_outfile=conftest.$ac_objext
18728 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18729 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
18730 # Insert the option either (1) after the last *FLAGS variable, or
18731 # (2) before a word containing "conftest.", or (3) at the end.
18732 # Note that $ac_compile itself does not contain backslashes and begins
18733 # with a dollar sign (not a hyphen), so the echo should work correctly.
18734 # The option is referenced via a variable to avoid confusing sed.
18735 lt_compile=`echo "$ac_compile" | $SED \
18736 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18737 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18738 -e 's:$: $lt_compiler_flag:'`
18739 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18740 (eval "$lt_compile" 2>conftest.err)
18741 ac_status=$?
18742 cat conftest.err >&5
18743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18744 if (exit $ac_status) && test -s "$ac_outfile"; then
18745 # The compiler can only warn and ignore the option if not recognized
18746 # So say no if there are warnings other than the usual output.
18747 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
18748 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18749 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18750 lt_cv_prog_compiler_pic_works_CXX=yes
18751 fi
18752 fi
18753 $RM conftest*
18754 ;;
18755 esac
18756 fi
18757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
18758 printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
18759
18760 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
18761 case $lt_prog_compiler_pic_CXX in
18762 "" | " "*) ;;
18763 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18764 esac
18765 else
18766 lt_prog_compiler_pic_CXX=
18767 lt_prog_compiler_can_build_shared_CXX=no
18768 fi
18769
18770 fi
18771
18772
18773
18774
18775
18776 #
18777 # Check to make sure the static flag actually works.
18778 #
18779 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
18780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18781 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
18782 if test ${lt_cv_prog_compiler_static_works_CXX+y}
18783 then :
18784 printf %s "(cached) " >&6
18785 else case e in #(
18786 e) lt_cv_prog_compiler_static_works_CXX=no
18787 save_LDFLAGS=$LDFLAGS
18788 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18789 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18790 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18791 # The linker can only warn and ignore the option if not recognized
18792 # So say no if there are warnings
18793 if test -s conftest.err; then
18794 # Append any errors to the config.log.
18795 cat conftest.err 1>&5
18796 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
18797 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18798 if diff conftest.exp conftest.er2 >/dev/null; then
18799 lt_cv_prog_compiler_static_works_CXX=yes
18800 fi
18801 else
18802 lt_cv_prog_compiler_static_works_CXX=yes
18803 fi
18804 fi
18805 $RM -r conftest*
18806 LDFLAGS=$save_LDFLAGS
18807 ;;
18808 esac
18809 fi
18810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
18811 printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
18812
18813 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
18814 :
18815 else
18816 lt_prog_compiler_static_CXX=
18817 fi
18818
18819
18820
18821
18822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18823 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18824 if test ${lt_cv_prog_compiler_c_o_CXX+y}
18825 then :
18826 printf %s "(cached) " >&6
18827 else case e in #(
18828 e) lt_cv_prog_compiler_c_o_CXX=no
18829 $RM -r conftest 2>/dev/null
18830 mkdir conftest
18831 cd conftest
18832 mkdir out
18833 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18834
18835 lt_compiler_flag="-o out/conftest2.$ac_objext"
18836 # Insert the option either (1) after the last *FLAGS variable, or
18837 # (2) before a word containing "conftest.", or (3) at the end.
18838 # Note that $ac_compile itself does not contain backslashes and begins
18839 # with a dollar sign (not a hyphen), so the echo should work correctly.
18840 lt_compile=`echo "$ac_compile" | $SED \
18841 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18842 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18843 -e 's:$: $lt_compiler_flag:'`
18844 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18845 (eval "$lt_compile" 2>out/conftest.err)
18846 ac_status=$?
18847 cat out/conftest.err >&5
18848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18849 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18850 then
18851 # The compiler can only warn and ignore the option if not recognized
18852 # So say no if there are warnings
18853 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18854 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18855 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18856 lt_cv_prog_compiler_c_o_CXX=yes
18857 fi
18858 fi
18859 chmod u+w . 2>&5
18860 $RM conftest*
18861 # SGI C++ compiler will create directory out/ii_files/ for
18862 # template instantiation
18863 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18864 $RM out/* && rmdir out
18865 cd ..
18866 $RM -r conftest
18867 $RM conftest*
18868 ;;
18869 esac
18870 fi
18871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18872 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18873
18874
18875
18876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18877 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18878 if test ${lt_cv_prog_compiler_c_o_CXX+y}
18879 then :
18880 printf %s "(cached) " >&6
18881 else case e in #(
18882 e) lt_cv_prog_compiler_c_o_CXX=no
18883 $RM -r conftest 2>/dev/null
18884 mkdir conftest
18885 cd conftest
18886 mkdir out
18887 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18888
18889 lt_compiler_flag="-o out/conftest2.$ac_objext"
18890 # Insert the option either (1) after the last *FLAGS variable, or
18891 # (2) before a word containing "conftest.", or (3) at the end.
18892 # Note that $ac_compile itself does not contain backslashes and begins
18893 # with a dollar sign (not a hyphen), so the echo should work correctly.
18894 lt_compile=`echo "$ac_compile" | $SED \
18895 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18896 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18897 -e 's:$: $lt_compiler_flag:'`
18898 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18899 (eval "$lt_compile" 2>out/conftest.err)
18900 ac_status=$?
18901 cat out/conftest.err >&5
18902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18903 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18904 then
18905 # The compiler can only warn and ignore the option if not recognized
18906 # So say no if there are warnings
18907 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18908 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18909 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18910 lt_cv_prog_compiler_c_o_CXX=yes
18911 fi
18912 fi
18913 chmod u+w . 2>&5
18914 $RM conftest*
18915 # SGI C++ compiler will create directory out/ii_files/ for
18916 # template instantiation
18917 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18918 $RM out/* && rmdir out
18919 cd ..
18920 $RM -r conftest
18921 $RM conftest*
18922 ;;
18923 esac
18924 fi
18925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18926 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18927
18928
18929
18930
18931 hard_links=nottested
18932 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
18933 # do not overwrite the value of need_locks provided by the user
18934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
18935 printf %s "checking if we can lock with hard links... " >&6; }
18936 hard_links=yes
18937 $RM conftest*
18938 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18939 touch conftest.a
18940 ln conftest.a conftest.b 2>&5 || hard_links=no
18941 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
18943 printf "%s\n" "$hard_links" >&6; }
18944 if test no = "$hard_links"; then
18945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
18946 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
18947 need_locks=warn
18948 fi
18949 else
18950 need_locks=no
18951 fi
18952
18953
18954
18955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18956 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18957
18958 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18959 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
18960 case $host_os in
18961 aix[4-9]*)
18962 # If we're using GNU nm, then we don't want the "-C" option.
18963 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
18964 # Without the "-l" option, or with the "-B" option, AIX nm treats
18965 # weak defined symbols like other global defined symbols, whereas
18966 # GNU nm marks them as "W".
18967 # While the 'weak' keyword is ignored in the Export File, we need
18968 # it in the Import File for the 'aix-soname' feature, so we have
18969 # to replace the "-B" option with "-P" for AIX nm.
18970 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
18971 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'
18972 else
18973 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'
18974 fi
18975 ;;
18976 pw32*)
18977 export_symbols_cmds_CXX=$ltdll_cmds
18978 ;;
18979 cygwin* | mingw* | windows* | cegcc*)
18980 case $cc_basename in
18981 cl* | icl*)
18982 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
18983 ;;
18984 *)
18985 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'
18986 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
18987 ;;
18988 esac
18989 ;;
18990 *)
18991 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18992 ;;
18993 esac
18994
18995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18996 printf "%s\n" "$ld_shlibs_CXX" >&6; }
18997 test no = "$ld_shlibs_CXX" && can_build_shared=no
18998
18999 with_gnu_ld_CXX=$with_gnu_ld
19000
19001
19002
19003
19004
19005
19006 #
19007 # Do we need to explicitly link libc?
19008 #
19009 case "x$archive_cmds_need_lc_CXX" in
19010 x|xyes)
19011 # Assume -lc should be added
19012 archive_cmds_need_lc_CXX=yes
19013
19014 if test yes,yes = "$GCC,$enable_shared"; then
19015 case $archive_cmds_CXX in
19016 *'~'*)
19017 # FIXME: we may have to deal with multi-command sequences.
19018 ;;
19019 '$CC '*)
19020 # Test whether the compiler implicitly links with -lc since on some
19021 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19022 # to ld, don't add -lc before -lgcc.
19023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19024 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
19025 if test ${lt_cv_archive_cmds_need_lc_CXX+y}
19026 then :
19027 printf %s "(cached) " >&6
19028 else case e in #(
19029 e) $RM conftest*
19030 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19031
19032 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19033 (eval $ac_compile) 2>&5
19034 ac_status=$?
19035 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19036 test $ac_status = 0; } 2>conftest.err; then
19037 soname=conftest
19038 lib=conftest
19039 libobjs=conftest.$ac_objext
19040 deplibs=
19041 wl=$lt_prog_compiler_wl_CXX
19042 pic_flag=$lt_prog_compiler_pic_CXX
19043 compiler_flags=-v
19044 linker_flags=-v
19045 verstring=
19046 output_objdir=.
19047 libname=conftest
19048 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19049 allow_undefined_flag_CXX=
19050 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
19051 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19052 ac_status=$?
19053 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19054 test $ac_status = 0; }
19055 then
19056 lt_cv_archive_cmds_need_lc_CXX=no
19057 else
19058 lt_cv_archive_cmds_need_lc_CXX=yes
19059 fi
19060 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19061 else
19062 cat conftest.err 1>&5
19063 fi
19064 $RM conftest*
19065 ;;
19066 esac
19067 fi
19068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
19069 printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
19070 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
19071 ;;
19072 esac
19073 fi
19074 ;;
19075 esac
19076
19077
19078
19079
19080
19081
19082
19083
19084
19085
19086
19087
19088
19089
19090
19091
19092
19093
19094
19095
19096
19097
19098
19099
19100
19101
19102
19103
19104
19105
19106
19107
19108
19109
19110
19111
19112
19113
19114
19115
19116
19117
19118
19119
19120
19121
19122
19123
19124
19125
19126
19127
19128
19129
19130
19131
19132
19133
19134
19135
19136
19137
19138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19139 printf %s "checking dynamic linker characteristics... " >&6; }
19140
19141 library_names_spec=
19142 libname_spec='lib$name'
19143 soname_spec=
19144 shrext_cmds=.so
19145 postinstall_cmds=
19146 postuninstall_cmds=
19147 finish_cmds=
19148 finish_eval=
19149 shlibpath_var=
19150 shlibpath_overrides_runpath=unknown
19151 version_type=none
19152 dynamic_linker="$host_os ld.so"
19153 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19154 need_lib_prefix=unknown
19155 hardcode_into_libs=no
19156
19157 # when you set need_version to no, make sure it does not cause -set_version
19158 # flags to be left without arguments
19159 need_version=unknown
19160
19161
19162
19163 case $host_os in
19164 aix3*)
19165 version_type=linux # correct to gnu/linux during the next big refactor
19166 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
19167 shlibpath_var=LIBPATH
19168
19169 # AIX 3 has no versioning support, so we append a major version to the name.
19170 soname_spec='$libname$release$shared_ext$major'
19171 ;;
19172
19173 aix[4-9]*)
19174 version_type=linux # correct to gnu/linux during the next big refactor
19175 need_lib_prefix=no
19176 need_version=no
19177 hardcode_into_libs=yes
19178 if test ia64 = "$host_cpu"; then
19179 # AIX 5 supports IA64
19180 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
19181 shlibpath_var=LD_LIBRARY_PATH
19182 else
19183 # With GCC up to 2.95.x, collect2 would create an import file
19184 # for dependence libraries. The import file would start with
19185 # the line '#! .'. This would cause the generated library to
19186 # depend on '.', always an invalid library. This was fixed in
19187 # development snapshots of GCC prior to 3.0.
19188 case $host_os in
19189 aix4 | aix4.[01] | aix4.[01].*)
19190 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19191 echo ' yes '
19192 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
19193 :
19194 else
19195 can_build_shared=no
19196 fi
19197 ;;
19198 esac
19199 # Using Import Files as archive members, it is possible to support
19200 # filename-based versioning of shared library archives on AIX. While
19201 # this would work for both with and without runtime linking, it will
19202 # prevent static linking of such archives. So we do filename-based
19203 # shared library versioning with .so extension only, which is used
19204 # when both runtime linking and shared linking is enabled.
19205 # Unfortunately, runtime linking may impact performance, so we do
19206 # not want this to be the default eventually. Also, we use the
19207 # versioned .so libs for executables only if there is the -brtl
19208 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
19209 # To allow for filename-based versioning support, we need to create
19210 # libNAME.so.V as an archive file, containing:
19211 # *) an Import File, referring to the versioned filename of the
19212 # archive as well as the shared archive member, telling the
19213 # bitwidth (32 or 64) of that shared object, and providing the
19214 # list of exported symbols of that shared object, eventually
19215 # decorated with the 'weak' keyword
19216 # *) the shared object with the F_LOADONLY flag set, to really avoid
19217 # it being seen by the linker.
19218 # At run time we better use the real file rather than another symlink,
19219 # but for link time we create the symlink libNAME.so -> libNAME.so.V
19220
19221 case $with_aix_soname,$aix_use_runtimelinking in
19222 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
19223 # soname into executable. Probably we can add versioning support to
19224 # collect2, so additional links can be useful in future.
19225 aix,yes) # traditional libtool
19226 dynamic_linker='AIX unversionable lib.so'
19227 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19228 # instead of lib<name>.a to let people know that these are not
19229 # typical AIX shared libraries.
19230 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19231 ;;
19232 aix,no) # traditional AIX only
19233 dynamic_linker='AIX lib.a(lib.so.V)'
19234 # We preserve .a as extension for shared libraries through AIX4.2
19235 # and later when we are not doing run time linking.
19236 library_names_spec='$libname$release.a $libname.a'
19237 soname_spec='$libname$release$shared_ext$major'
19238 ;;
19239 svr4,*) # full svr4 only
19240 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
19241 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
19242 # We do not specify a path in Import Files, so LIBPATH fires.
19243 shlibpath_overrides_runpath=yes
19244 ;;
19245 *,yes) # both, prefer svr4
19246 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
19247 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
19248 # unpreferred sharedlib libNAME.a needs extra handling
19249 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"'
19250 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"'
19251 # We do not specify a path in Import Files, so LIBPATH fires.
19252 shlibpath_overrides_runpath=yes
19253 ;;
19254 *,no) # both, prefer aix
19255 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
19256 library_names_spec='$libname$release.a $libname.a'
19257 soname_spec='$libname$release$shared_ext$major'
19258 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
19259 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)'
19260 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"'
19261 ;;
19262 esac
19263 shlibpath_var=LIBPATH
19264 fi
19265 ;;
19266
19267 amigaos*)
19268 case $host_cpu in
19269 powerpc)
19270 # Since July 2007 AmigaOS4 officially supports .so libraries.
19271 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19272 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19273 ;;
19274 m68k)
19275 library_names_spec='$libname.ixlibrary $libname.a'
19276 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19277 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'
19278 ;;
19279 esac
19280 ;;
19281
19282 beos*)
19283 library_names_spec='$libname$shared_ext'
19284 dynamic_linker="$host_os ld.so"
19285 shlibpath_var=LIBRARY_PATH
19286 ;;
19287
19288 bsdi[45]*)
19289 version_type=linux # correct to gnu/linux during the next big refactor
19290 need_version=no
19291 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19292 soname_spec='$libname$release$shared_ext$major'
19293 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19294 shlibpath_var=LD_LIBRARY_PATH
19295 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19296 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19297 # the default ld.so.conf also contains /usr/contrib/lib and
19298 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19299 # libtool to hard-code these into programs
19300 ;;
19301
19302 cygwin* | mingw* | windows* | pw32* | cegcc*)
19303 version_type=windows
19304 shrext_cmds=.dll
19305 need_version=no
19306 need_lib_prefix=no
19307
19308 case $GCC,$cc_basename in
19309 yes,*)
19310 # gcc
19311 library_names_spec='$libname.dll.a'
19312 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19313 # If user builds GCC with multilib enabled,
19314 # it should just install on $(libdir)
19315 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
19316 if test xyes = x"$multilib"; then
19317 postinstall_cmds='base_file=`basename \$file`~
19318 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
19319 dldir=$destdir/`dirname \$dlpath`~
19320 $install_prog $dir/$dlname $destdir/$dlname~
19321 chmod a+x $destdir/$dlname~
19322 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19323 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
19324 fi'
19325 else
19326 postinstall_cmds='base_file=`basename \$file`~
19327 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
19328 dldir=$destdir/`dirname \$dlpath`~
19329 test -d \$dldir || mkdir -p \$dldir~
19330 $install_prog $dir/$dlname \$dldir/$dlname~
19331 chmod a+x \$dldir/$dlname~
19332 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19333 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19334 fi'
19335 fi
19336 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19337 dlpath=$dir/\$dldll~
19338 $RM \$dlpath'
19339 shlibpath_overrides_runpath=yes
19340
19341 case $host_os in
19342 cygwin*)
19343 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19344 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
19345
19346 ;;
19347 mingw* | windows* | cegcc*)
19348 # MinGW DLLs use traditional 'lib' prefix
19349 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
19350 ;;
19351 pw32*)
19352 # pw32 DLLs use 'pw' prefix rather than 'lib'
19353 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
19354 ;;
19355 esac
19356 dynamic_linker='Win32 ld.exe'
19357 ;;
19358
19359 *,cl* | *,icl*)
19360 # Native MSVC or ICC
19361 libname_spec='$name'
19362 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
19363 library_names_spec='$libname.dll.lib'
19364
19365 case $build_os in
19366 mingw* | windows*)
19367 sys_lib_search_path_spec=
19368 lt_save_ifs=$IFS
19369 IFS=';'
19370 for lt_path in $LIB
19371 do
19372 IFS=$lt_save_ifs
19373 # Let DOS variable expansion print the short 8.3 style file name.
19374 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
19375 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
19376 done
19377 IFS=$lt_save_ifs
19378 # Convert to MSYS style.
19379 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
19380 ;;
19381 cygwin*)
19382 # Convert to unix form, then to dos form, then back to unix form
19383 # but this time dos style (no spaces!) so that the unix form looks
19384 # like /cygdrive/c/PROGRA~1:/cygdr...
19385 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
19386 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
19387 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19388 ;;
19389 *)
19390 sys_lib_search_path_spec=$LIB
19391 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
19392 # It is most probably a Windows format PATH.
19393 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19394 else
19395 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19396 fi
19397 # FIXME: find the short name or the path components, as spaces are
19398 # common. (e.g. "Program Files" -> "PROGRA~1")
19399 ;;
19400 esac
19401
19402 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19403 postinstall_cmds='base_file=`basename \$file`~
19404 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
19405 dldir=$destdir/`dirname \$dlpath`~
19406 test -d \$dldir || mkdir -p \$dldir~
19407 $install_prog $dir/$dlname \$dldir/$dlname'
19408 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19409 dlpath=$dir/\$dldll~
19410 $RM \$dlpath'
19411 shlibpath_overrides_runpath=yes
19412 dynamic_linker='Win32 link.exe'
19413 ;;
19414
19415 *)
19416 # Assume MSVC and ICC wrapper
19417 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
19418 dynamic_linker='Win32 ld.exe'
19419 ;;
19420 esac
19421 # FIXME: first we should search . and the directory the executable is in
19422 shlibpath_var=PATH
19423 ;;
19424
19425 darwin* | rhapsody*)
19426 dynamic_linker="$host_os dyld"
19427 version_type=darwin
19428 need_lib_prefix=no
19429 need_version=no
19430 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
19431 soname_spec='$libname$release$major$shared_ext'
19432 shlibpath_overrides_runpath=yes
19433 shlibpath_var=DYLD_LIBRARY_PATH
19434 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19435
19436 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19437 ;;
19438
19439 dgux*)
19440 version_type=linux # correct to gnu/linux during the next big refactor
19441 need_lib_prefix=no
19442 need_version=no
19443 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19444 soname_spec='$libname$release$shared_ext$major'
19445 shlibpath_var=LD_LIBRARY_PATH
19446 ;;
19447
19448 freebsd* | dragonfly* | midnightbsd*)
19449 # DragonFly does not have aout. When/if they implement a new
19450 # versioning mechanism, adjust this.
19451 if test -x /usr/bin/objformat; then
19452 objformat=`/usr/bin/objformat`
19453 else
19454 case $host_os in
19455 freebsd[23].*) objformat=aout ;;
19456 *) objformat=elf ;;
19457 esac
19458 fi
19459 version_type=freebsd-$objformat
19460 case $version_type in
19461 freebsd-elf*)
19462 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19463 soname_spec='$libname$release$shared_ext$major'
19464 need_version=no
19465 need_lib_prefix=no
19466 ;;
19467 freebsd-*)
19468 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
19469 need_version=yes
19470 ;;
19471 esac
19472 case $host_cpu in
19473 powerpc64)
19474 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
19475 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
19476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19477 /* end confdefs.h. */
19478 int test_pointer_size[sizeof (void *) - 5];
19479
19480 _ACEOF
19481 if ac_fn_cxx_try_compile "$LINENO"
19482 then :
19483 shlibpath_var=LD_LIBRARY_PATH
19484 else case e in #(
19485 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
19486 esac
19487 fi
19488 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19489 ;;
19490 *)
19491 shlibpath_var=LD_LIBRARY_PATH
19492 ;;
19493 esac
19494 case $host_os in
19495 freebsd2.*)
19496 shlibpath_overrides_runpath=yes
19497 ;;
19498 freebsd3.[01]* | freebsdelf3.[01]*)
19499 shlibpath_overrides_runpath=yes
19500 hardcode_into_libs=yes
19501 ;;
19502 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19503 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19504 shlibpath_overrides_runpath=no
19505 hardcode_into_libs=yes
19506 ;;
19507 *) # from 4.6 on, and DragonFly
19508 shlibpath_overrides_runpath=yes
19509 hardcode_into_libs=yes
19510 ;;
19511 esac
19512 ;;
19513
19514 haiku*)
19515 version_type=linux # correct to gnu/linux during the next big refactor
19516 need_lib_prefix=no
19517 need_version=no
19518 dynamic_linker="$host_os runtime_loader"
19519 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19520 soname_spec='$libname$release$shared_ext$major'
19521 shlibpath_var=LIBRARY_PATH
19522 shlibpath_overrides_runpath=no
19523 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
19524 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
19525 hardcode_into_libs=no
19526 ;;
19527
19528 hpux9* | hpux10* | hpux11*)
19529 # Give a soname corresponding to the major version so that dld.sl refuses to
19530 # link against other versions.
19531 version_type=sunos
19532 need_lib_prefix=no
19533 need_version=no
19534 case $host_cpu in
19535 ia64*)
19536 shrext_cmds='.so'
19537 hardcode_into_libs=yes
19538 dynamic_linker="$host_os dld.so"
19539 shlibpath_var=LD_LIBRARY_PATH
19540 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19541 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19542 soname_spec='$libname$release$shared_ext$major'
19543 if test 32 = "$HPUX_IA64_MODE"; then
19544 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19545 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
19546 else
19547 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19548 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
19549 fi
19550 ;;
19551 hppa*64*)
19552 shrext_cmds='.sl'
19553 hardcode_into_libs=yes
19554 dynamic_linker="$host_os dld.sl"
19555 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19556 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19557 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19558 soname_spec='$libname$release$shared_ext$major'
19559 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19560 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19561 ;;
19562 *)
19563 shrext_cmds='.sl'
19564 dynamic_linker="$host_os dld.sl"
19565 shlibpath_var=SHLIB_PATH
19566 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19567 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19568 soname_spec='$libname$release$shared_ext$major'
19569 ;;
19570 esac
19571 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
19572 postinstall_cmds='chmod 555 $lib'
19573 # or fails outright, so override atomically:
19574 install_override_mode=555
19575 ;;
19576
19577 interix[3-9]*)
19578 version_type=linux # correct to gnu/linux during the next big refactor
19579 need_lib_prefix=no
19580 need_version=no
19581 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19582 soname_spec='$libname$release$shared_ext$major'
19583 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19584 shlibpath_var=LD_LIBRARY_PATH
19585 shlibpath_overrides_runpath=no
19586 hardcode_into_libs=yes
19587 ;;
19588
19589 irix5* | irix6* | nonstopux*)
19590 case $host_os in
19591 nonstopux*) version_type=nonstopux ;;
19592 *)
19593 if test yes = "$lt_cv_prog_gnu_ld"; then
19594 version_type=linux # correct to gnu/linux during the next big refactor
19595 else
19596 version_type=irix
19597 fi ;;
19598 esac
19599 need_lib_prefix=no
19600 need_version=no
19601 soname_spec='$libname$release$shared_ext$major'
19602 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
19603 case $host_os in
19604 irix5* | nonstopux*)
19605 libsuff= shlibsuff=
19606 ;;
19607 *)
19608 case $LD in # libtool.m4 will add one of these switches to LD
19609 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19610 libsuff= shlibsuff= libmagic=32-bit;;
19611 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19612 libsuff=32 shlibsuff=N32 libmagic=N32;;
19613 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19614 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19615 *) libsuff= shlibsuff= libmagic=never-match;;
19616 esac
19617 ;;
19618 esac
19619 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19620 shlibpath_overrides_runpath=no
19621 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
19622 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
19623 hardcode_into_libs=yes
19624 ;;
19625
19626 # No shared lib support for Linux oldld, aout, or coff.
19627 linux*oldld* | linux*aout* | linux*coff*)
19628 dynamic_linker=no
19629 ;;
19630
19631 linux*android*)
19632 version_type=none # Android doesn't support versioned libraries.
19633 need_lib_prefix=no
19634 need_version=no
19635 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
19636 soname_spec='$libname$release$shared_ext'
19637 finish_cmds=
19638 shlibpath_var=LD_LIBRARY_PATH
19639 shlibpath_overrides_runpath=yes
19640
19641 # This implies no fast_install, which is unacceptable.
19642 # Some rework will be needed to allow for fast_install
19643 # before this can be enabled.
19644 hardcode_into_libs=yes
19645
19646 dynamic_linker='Android linker'
19647 # -rpath works at least for libraries that are not overridden by
19648 # libraries installed in system locations.
19649 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
19650 ;;
19651
19652 # This must be glibc/ELF.
19653 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
19654 version_type=linux # correct to gnu/linux during the next big refactor
19655 need_lib_prefix=no
19656 need_version=no
19657 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19658 soname_spec='$libname$release$shared_ext$major'
19659 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19660 shlibpath_var=LD_LIBRARY_PATH
19661 shlibpath_overrides_runpath=no
19662
19663 # Some binutils ld are patched to set DT_RUNPATH
19664 if test ${lt_cv_shlibpath_overrides_runpath+y}
19665 then :
19666 printf %s "(cached) " >&6
19667 else case e in #(
19668 e) lt_cv_shlibpath_overrides_runpath=no
19669 save_LDFLAGS=$LDFLAGS
19670 save_libdir=$libdir
19671 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
19672 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
19673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19674 /* end confdefs.h. */
19675
19676 int
19677 main (void)
19678 {
19679
19680 ;
19681 return 0;
19682 }
19683 _ACEOF
19684 if ac_fn_cxx_try_link "$LINENO"
19685 then :
19686 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
19687 then :
19688 lt_cv_shlibpath_overrides_runpath=yes
19689 fi
19690 fi
19691 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19692 conftest$ac_exeext conftest.$ac_ext
19693 LDFLAGS=$save_LDFLAGS
19694 libdir=$save_libdir
19695 ;;
19696 esac
19697 fi
19698
19699 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
19700
19701 # This implies no fast_install, which is unacceptable.
19702 # Some rework will be needed to allow for fast_install
19703 # before this can be enabled.
19704 hardcode_into_libs=yes
19705
19706 # Ideally, we could use ldconfig to report *all* directories which are
19707 # searched for libraries, however this is still not possible. Aside from not
19708 # being certain /sbin/ldconfig is available, command
19709 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
19710 # even though it is searched at run-time. Try to do the best guess by
19711 # appending ld.so.conf contents (and includes) to the search path.
19712 if test -f /etc/ld.so.conf; then
19713 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' ' '`
19714 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19715 fi
19716
19717 # We used to test for /lib/ld.so.1 and disable shared libraries on
19718 # powerpc, because MkLinux only supported shared libraries with the
19719 # GNU dynamic linker. Since this was broken with cross compilers,
19720 # most powerpc-linux boxes support dynamic linking these days and
19721 # people can always --disable-shared, the test was removed, and we
19722 # assume the GNU/Linux dynamic linker is in use.
19723 dynamic_linker='GNU/Linux ld.so'
19724 ;;
19725
19726 netbsdelf*-gnu)
19727 version_type=linux
19728 need_lib_prefix=no
19729 need_version=no
19730 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19731 soname_spec='$libname$release$shared_ext$major'
19732 shlibpath_var=LD_LIBRARY_PATH
19733 shlibpath_overrides_runpath=no
19734 hardcode_into_libs=yes
19735 dynamic_linker='NetBSD ld.elf_so'
19736 ;;
19737
19738 netbsd*)
19739 version_type=sunos
19740 need_lib_prefix=no
19741 need_version=no
19742 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19743 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
19744 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19745 dynamic_linker='NetBSD (a.out) ld.so'
19746 else
19747 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19748 soname_spec='$libname$release$shared_ext$major'
19749 dynamic_linker='NetBSD ld.elf_so'
19750 fi
19751 shlibpath_var=LD_LIBRARY_PATH
19752 shlibpath_overrides_runpath=yes
19753 hardcode_into_libs=yes
19754 ;;
19755
19756 *-mlibc)
19757 version_type=linux # correct to gnu/linux during the next big refactor
19758 need_lib_prefix=no
19759 need_version=no
19760 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19761 soname_spec='$libname$release$shared_ext$major'
19762 dynamic_linker='mlibc ld.so'
19763 shlibpath_var=LD_LIBRARY_PATH
19764 shlibpath_overrides_runpath=no
19765 hardcode_into_libs=yes
19766 ;;
19767
19768 newsos6)
19769 version_type=linux # correct to gnu/linux during the next big refactor
19770 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19771 shlibpath_var=LD_LIBRARY_PATH
19772 shlibpath_overrides_runpath=yes
19773 ;;
19774
19775 *nto* | *qnx*)
19776 version_type=qnx
19777 need_lib_prefix=no
19778 need_version=no
19779 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19780 soname_spec='$libname$release$shared_ext$major'
19781 shlibpath_var=LD_LIBRARY_PATH
19782 shlibpath_overrides_runpath=no
19783 hardcode_into_libs=yes
19784 dynamic_linker='ldqnx.so'
19785 ;;
19786
19787 openbsd*)
19788 version_type=sunos
19789 sys_lib_dlsearch_path_spec=/usr/lib
19790 need_lib_prefix=no
19791 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
19792 need_version=no
19793 else
19794 need_version=yes
19795 fi
19796 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
19797 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19798 shlibpath_var=LD_LIBRARY_PATH
19799 shlibpath_overrides_runpath=yes
19800 ;;
19801
19802 os2*)
19803 libname_spec='$name'
19804 version_type=windows
19805 shrext_cmds=.dll
19806 need_version=no
19807 need_lib_prefix=no
19808 # OS/2 can only load a DLL with a base name of 8 characters or less.
19809 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
19810 v=$($ECHO $release$versuffix | tr -d .-);
19811 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
19812 $ECHO $n$v`$shared_ext'
19813 library_names_spec='${libname}_dll.$libext'
19814 dynamic_linker='OS/2 ld.exe'
19815 shlibpath_var=BEGINLIBPATH
19816 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19817 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19818 postinstall_cmds='base_file=`basename \$file`~
19819 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
19820 dldir=$destdir/`dirname \$dlpath`~
19821 test -d \$dldir || mkdir -p \$dldir~
19822 $install_prog $dir/$dlname \$dldir/$dlname~
19823 chmod a+x \$dldir/$dlname~
19824 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19825 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19826 fi'
19827 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
19828 dlpath=$dir/\$dldll~
19829 $RM \$dlpath'
19830 ;;
19831
19832 osf3* | osf4* | osf5*)
19833 version_type=osf
19834 need_lib_prefix=no
19835 need_version=no
19836 soname_spec='$libname$release$shared_ext$major'
19837 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19838 shlibpath_var=LD_LIBRARY_PATH
19839 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19840 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19841 ;;
19842
19843 rdos*)
19844 dynamic_linker=no
19845 ;;
19846
19847 serenity*)
19848 version_type=linux # correct to gnu/linux during the next big refactor
19849 need_lib_prefix=no
19850 need_version=no
19851 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19852 soname_spec='$libname$release$shared_ext$major'
19853 shlibpath_var=LD_LIBRARY_PATH
19854 shlibpath_overrides_runpath=no
19855 dynamic_linker='SerenityOS LibELF'
19856 ;;
19857
19858 solaris*)
19859 version_type=linux # correct to gnu/linux during the next big refactor
19860 need_lib_prefix=no
19861 need_version=no
19862 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19863 soname_spec='$libname$release$shared_ext$major'
19864 shlibpath_var=LD_LIBRARY_PATH
19865 shlibpath_overrides_runpath=yes
19866 hardcode_into_libs=yes
19867 # ldd complains unless libraries are executable
19868 postinstall_cmds='chmod +x $lib'
19869 ;;
19870
19871 sunos4*)
19872 version_type=sunos
19873 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
19874 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19875 shlibpath_var=LD_LIBRARY_PATH
19876 shlibpath_overrides_runpath=yes
19877 if test yes = "$with_gnu_ld"; then
19878 need_lib_prefix=no
19879 fi
19880 need_version=yes
19881 ;;
19882
19883 sysv4 | sysv4.3*)
19884 version_type=linux # correct to gnu/linux during the next big refactor
19885 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19886 soname_spec='$libname$release$shared_ext$major'
19887 shlibpath_var=LD_LIBRARY_PATH
19888 case $host_vendor in
19889 sni)
19890 shlibpath_overrides_runpath=no
19891 need_lib_prefix=no
19892 runpath_var=LD_RUN_PATH
19893 ;;
19894 siemens)
19895 need_lib_prefix=no
19896 ;;
19897 motorola)
19898 need_lib_prefix=no
19899 need_version=no
19900 shlibpath_overrides_runpath=no
19901 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19902 ;;
19903 esac
19904 ;;
19905
19906 sysv4*MP*)
19907 if test -d /usr/nec; then
19908 version_type=linux # correct to gnu/linux during the next big refactor
19909 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
19910 soname_spec='$libname$shared_ext.$major'
19911 shlibpath_var=LD_LIBRARY_PATH
19912 fi
19913 ;;
19914
19915 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19916 version_type=sco
19917 need_lib_prefix=no
19918 need_version=no
19919 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
19920 soname_spec='$libname$release$shared_ext$major'
19921 shlibpath_var=LD_LIBRARY_PATH
19922 shlibpath_overrides_runpath=yes
19923 hardcode_into_libs=yes
19924 if test yes = "$with_gnu_ld"; then
19925 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19926 else
19927 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19928 case $host_os in
19929 sco3.2v5*)
19930 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19931 ;;
19932 esac
19933 fi
19934 sys_lib_dlsearch_path_spec='/usr/lib'
19935 ;;
19936
19937 tpf*)
19938 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
19939 version_type=linux # correct to gnu/linux during the next big refactor
19940 need_lib_prefix=no
19941 need_version=no
19942 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19943 shlibpath_var=LD_LIBRARY_PATH
19944 shlibpath_overrides_runpath=no
19945 hardcode_into_libs=yes
19946 ;;
19947
19948 uts4*)
19949 version_type=linux # correct to gnu/linux during the next big refactor
19950 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19951 soname_spec='$libname$release$shared_ext$major'
19952 shlibpath_var=LD_LIBRARY_PATH
19953 ;;
19954
19955 emscripten*)
19956 version_type=none
19957 need_lib_prefix=no
19958 need_version=no
19959 library_names_spec='$libname$release$shared_ext'
19960 soname_spec='$libname$release$shared_ext'
19961 finish_cmds=
19962 dynamic_linker="Emscripten linker"
19963 lt_prog_compiler_wl_CXX=
19964 lt_prog_compiler_pic_CXX=
19965 lt_prog_compiler_static_CXX=
19966
19967
19968 # C++ specific cases for pic, static, wl, etc.
19969 if test yes = "$GXX"; then
19970 lt_prog_compiler_wl_CXX='-Wl,'
19971 lt_prog_compiler_static_CXX='-static'
19972
19973 case $host_os in
19974 aix*)
19975 # All AIX code is PIC.
19976 if test ia64 = "$host_cpu"; then
19977 # AIX 5 now supports IA64 processor
19978 lt_prog_compiler_static_CXX='-Bstatic'
19979 fi
19980 lt_prog_compiler_pic_CXX='-fPIC'
19981 ;;
19982
19983 amigaos*)
19984 case $host_cpu in
19985 powerpc)
19986 # see comment about AmigaOS4 .so support
19987 lt_prog_compiler_pic_CXX='-fPIC'
19988 ;;
19989 m68k)
19990 # FIXME: we need at least 68020 code to build shared libraries, but
19991 # adding the '-m68020' flag to GCC prevents building anything better,
19992 # like '-m68040'.
19993 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19994 ;;
19995 esac
19996 ;;
19997
19998 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19999 # PIC is the default for these OSes.
20000 ;;
20001 mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
20002 # This hack is so that the source file can tell whether it is being
20003 # built for inclusion in a dll (and should export symbols for example).
20004 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20005 # (--disable-auto-import) libraries
20006 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20007 case $host_os in
20008 os2*)
20009 lt_prog_compiler_static_CXX='$wl-static'
20010 ;;
20011 esac
20012 ;;
20013 darwin* | rhapsody*)
20014 # PIC is the default on this platform
20015 # Common symbols not allowed in MH_DYLIB files
20016 lt_prog_compiler_pic_CXX='-fno-common'
20017 ;;
20018 *djgpp*)
20019 # DJGPP does not support shared libraries at all
20020 lt_prog_compiler_pic_CXX=
20021 ;;
20022 haiku*)
20023 # PIC is the default for Haiku.
20024 # The "-static" flag exists, but is broken.
20025 lt_prog_compiler_static_CXX=
20026 ;;
20027 interix[3-9]*)
20028 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20029 # Instead, we relocate shared libraries at runtime.
20030 ;;
20031 sysv4*MP*)
20032 if test -d /usr/nec; then
20033 lt_prog_compiler_pic_CXX=-Kconform_pic
20034 fi
20035 ;;
20036 hpux*)
20037 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20038 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20039 # sets the default TLS model and affects inlining.
20040 case $host_cpu in
20041 hppa*64*)
20042 ;;
20043 *)
20044 lt_prog_compiler_pic_CXX='-fPIC'
20045 ;;
20046 esac
20047 ;;
20048 *qnx* | *nto*)
20049 # QNX uses GNU C++, but need to define -shared option too, otherwise
20050 # it will coredump.
20051 lt_prog_compiler_pic_CXX='-fPIC -shared'
20052 ;;
20053 *)
20054 lt_prog_compiler_pic_CXX='-fPIC'
20055 ;;
20056 esac
20057 else
20058 case $host_os in
20059 aix[4-9]*)
20060 # All AIX code is PIC.
20061 if test ia64 = "$host_cpu"; then
20062 # AIX 5 now supports IA64 processor
20063 lt_prog_compiler_static_CXX='-Bstatic'
20064 else
20065 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20066 fi
20067 ;;
20068 chorus*)
20069 case $cc_basename in
20070 cxch68*)
20071 # Green Hills C++ Compiler
20072 # _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"
20073 ;;
20074 esac
20075 ;;
20076 mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
20077 # This hack is so that the source file can tell whether it is being
20078 # built for inclusion in a dll (and should export symbols for example).
20079 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20080 ;;
20081 dgux*)
20082 case $cc_basename in
20083 ec++*)
20084 lt_prog_compiler_pic_CXX='-KPIC'
20085 ;;
20086 ghcx*)
20087 # Green Hills C++ Compiler
20088 lt_prog_compiler_pic_CXX='-pic'
20089 ;;
20090 *)
20091 ;;
20092 esac
20093 ;;
20094 freebsd* | dragonfly* | midnightbsd*)
20095 # FreeBSD uses GNU C++
20096 ;;
20097 hpux9* | hpux10* | hpux11*)
20098 case $cc_basename in
20099 CC*)
20100 lt_prog_compiler_wl_CXX='-Wl,'
20101 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
20102 if test ia64 != "$host_cpu"; then
20103 lt_prog_compiler_pic_CXX='+Z'
20104 fi
20105 ;;
20106 aCC*)
20107 lt_prog_compiler_wl_CXX='-Wl,'
20108 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
20109 case $host_cpu in
20110 hppa*64*|ia64*)
20111 # +Z the default
20112 ;;
20113 *)
20114 lt_prog_compiler_pic_CXX='+Z'
20115 ;;
20116 esac
20117 ;;
20118 *)
20119 ;;
20120 esac
20121 ;;
20122 interix*)
20123 # This is c89, which is MS Visual C++ (no shared libs)
20124 # Anyone wants to do a port?
20125 ;;
20126 irix5* | irix6* | nonstopux*)
20127 case $cc_basename in
20128 CC*)
20129 lt_prog_compiler_wl_CXX='-Wl,'
20130 lt_prog_compiler_static_CXX='-non_shared'
20131 # CC pic flag -KPIC is the default.
20132 ;;
20133 *)
20134 ;;
20135 esac
20136 ;;
20137 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
20138 case $cc_basename in
20139 KCC*)
20140 # KAI C++ Compiler
20141 lt_prog_compiler_wl_CXX='--backend -Wl,'
20142 lt_prog_compiler_pic_CXX='-fPIC'
20143 ;;
20144 ecpc* )
20145 # old Intel C++ for x86_64, which still supported -KPIC.
20146 lt_prog_compiler_wl_CXX='-Wl,'
20147 lt_prog_compiler_pic_CXX='-KPIC'
20148 lt_prog_compiler_static_CXX='-static'
20149 ;;
20150 icpc* )
20151 # Intel C++, used to be incompatible with GCC.
20152 # ICC 10 doesn't accept -KPIC any more.
20153 lt_prog_compiler_wl_CXX='-Wl,'
20154 lt_prog_compiler_pic_CXX='-fPIC'
20155 lt_prog_compiler_static_CXX='-static'
20156 ;;
20157 pgCC* | pgcpp*)
20158 # Portland Group C++ compiler
20159 lt_prog_compiler_wl_CXX='-Wl,'
20160 lt_prog_compiler_pic_CXX='-fpic'
20161 lt_prog_compiler_static_CXX='-Bstatic'
20162 ;;
20163 cxx*)
20164 # Compaq C++
20165 # Make sure the PIC flag is empty. It appears that all Alpha
20166 # Linux and Compaq Tru64 Unix objects are PIC.
20167 lt_prog_compiler_pic_CXX=
20168 lt_prog_compiler_static_CXX='-non_shared'
20169 ;;
20170 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20171 # IBM XL 8.0, 9.0 on PPC and BlueGene
20172 lt_prog_compiler_wl_CXX='-Wl,'
20173 lt_prog_compiler_pic_CXX='-qpic'
20174 lt_prog_compiler_static_CXX='-qstaticlink'
20175 ;;
20176 *)
20177 case `$CC -V 2>&1 | $SED 5q` in
20178 *Sun\ C*)
20179 # Sun C++ 5.9
20180 lt_prog_compiler_pic_CXX='-KPIC'
20181 lt_prog_compiler_static_CXX='-Bstatic'
20182 lt_prog_compiler_wl_CXX='-Qoption ld '
20183 ;;
20184 esac
20185 ;;
20186 esac
20187 ;;
20188 lynxos*)
20189 ;;
20190 m88k*)
20191 ;;
20192 mvs*)
20193 case $cc_basename in
20194 cxx*)
20195 lt_prog_compiler_pic_CXX='-W c,exportall'
20196 ;;
20197 *)
20198 ;;
20199 esac
20200 ;;
20201 netbsd* | netbsdelf*-gnu)
20202 ;;
20203 *-mlibc)
20204 ;;
20205 *qnx* | *nto*)
20206 # QNX uses GNU C++, but need to define -shared option too, otherwise
20207 # it will coredump.
20208 lt_prog_compiler_pic_CXX='-fPIC -shared'
20209 ;;
20210 osf3* | osf4* | osf5*)
20211 case $cc_basename in
20212 KCC*)
20213 lt_prog_compiler_wl_CXX='--backend -Wl,'
20214 ;;
20215 RCC*)
20216 # Rational C++ 2.4.1
20217 lt_prog_compiler_pic_CXX='-pic'
20218 ;;
20219 cxx*)
20220 # Digital/Compaq C++
20221 lt_prog_compiler_wl_CXX='-Wl,'
20222 # Make sure the PIC flag is empty. It appears that all Alpha
20223 # Linux and Compaq Tru64 Unix objects are PIC.
20224 lt_prog_compiler_pic_CXX=
20225 lt_prog_compiler_static_CXX='-non_shared'
20226 ;;
20227 *)
20228 ;;
20229 esac
20230 ;;
20231 psos*)
20232 ;;
20233 serenity*)
20234 ;;
20235 solaris*)
20236 case $cc_basename in
20237 CC* | sunCC*)
20238 # Sun C++ 4.2, 5.x and Centerline C++
20239 lt_prog_compiler_pic_CXX='-KPIC'
20240 lt_prog_compiler_static_CXX='-Bstatic'
20241 lt_prog_compiler_wl_CXX='-Qoption ld '
20242 ;;
20243 gcx*)
20244 # Green Hills C++ Compiler
20245 lt_prog_compiler_pic_CXX='-PIC'
20246 ;;
20247 *)
20248 ;;
20249 esac
20250 ;;
20251 sunos4*)
20252 case $cc_basename in
20253 CC*)
20254 # Sun C++ 4.x
20255 lt_prog_compiler_pic_CXX='-pic'
20256 lt_prog_compiler_static_CXX='-Bstatic'
20257 ;;
20258 lcc*)
20259 # Lucid
20260 lt_prog_compiler_pic_CXX='-pic'
20261 ;;
20262 *)
20263 ;;
20264 esac
20265 ;;
20266 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20267 case $cc_basename in
20268 CC*)
20269 lt_prog_compiler_wl_CXX='-Wl,'
20270 lt_prog_compiler_pic_CXX='-KPIC'
20271 lt_prog_compiler_static_CXX='-Bstatic'
20272 ;;
20273 esac
20274 ;;
20275 tandem*)
20276 case $cc_basename in
20277 NCC*)
20278 # NonStop-UX NCC 3.20
20279 lt_prog_compiler_pic_CXX='-KPIC'
20280 ;;
20281 *)
20282 ;;
20283 esac
20284 ;;
20285 vxworks*)
20286 ;;
20287 *)
20288 lt_prog_compiler_can_build_shared_CXX=no
20289 ;;
20290 esac
20291 fi
20292
20293 case $host_os in
20294 # For platforms that do not support PIC, -DPIC is meaningless:
20295 *djgpp*)
20296 lt_prog_compiler_pic_CXX=
20297 ;;
20298 *)
20299 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20300 ;;
20301 esac
20302
20303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20304 printf %s "checking for $compiler option to produce PIC... " >&6; }
20305 if test ${lt_cv_prog_compiler_pic_CXX+y}
20306 then :
20307 printf %s "(cached) " >&6
20308 else case e in #(
20309 e) lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX ;;
20310 esac
20311 fi
20312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
20313 printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
20314 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
20315
20316 #
20317 # Check to make sure the PIC flag actually works.
20318 #
20319 if test -n "$lt_prog_compiler_pic_CXX"; then
20320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20321 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20322 if test ${lt_cv_prog_compiler_pic_works_CXX+y}
20323 then :
20324 printf %s "(cached) " >&6
20325 else case e in #(
20326 e) lt_cv_prog_compiler_pic_works_CXX=no
20327 ac_outfile=conftest.$ac_objext
20328 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20329 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
20330 # Insert the option either (1) after the last *FLAGS variable, or
20331 # (2) before a word containing "conftest.", or (3) at the end.
20332 # Note that $ac_compile itself does not contain backslashes and begins
20333 # with a dollar sign (not a hyphen), so the echo should work correctly.
20334 # The option is referenced via a variable to avoid confusing sed.
20335 lt_compile=`echo "$ac_compile" | $SED \
20336 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20337 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20338 -e 's:$: $lt_compiler_flag:'`
20339 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20340 (eval "$lt_compile" 2>conftest.err)
20341 ac_status=$?
20342 cat conftest.err >&5
20343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20344 if (exit $ac_status) && test -s "$ac_outfile"; then
20345 # The compiler can only warn and ignore the option if not recognized
20346 # So say no if there are warnings other than the usual output.
20347 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20348 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20349 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20350 lt_cv_prog_compiler_pic_works_CXX=yes
20351 fi
20352 fi
20353 $RM conftest*
20354 ;;
20355 esac
20356 fi
20357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20358 printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20359
20360 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
20361 case $lt_prog_compiler_pic_CXX in
20362 "" | " "*) ;;
20363 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20364 esac
20365 else
20366 lt_prog_compiler_pic_CXX=
20367 lt_prog_compiler_can_build_shared_CXX=no
20368 fi
20369
20370 fi
20371
20372
20373
20374
20375
20376 #
20377 # Check to make sure the static flag actually works.
20378 #
20379 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20381 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20382 if test ${lt_cv_prog_compiler_static_works_CXX+y}
20383 then :
20384 printf %s "(cached) " >&6
20385 else case e in #(
20386 e) lt_cv_prog_compiler_static_works_CXX=no
20387 save_LDFLAGS=$LDFLAGS
20388 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20389 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20390 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20391 # The linker can only warn and ignore the option if not recognized
20392 # So say no if there are warnings
20393 if test -s conftest.err; then
20394 # Append any errors to the config.log.
20395 cat conftest.err 1>&5
20396 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20397 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20398 if diff conftest.exp conftest.er2 >/dev/null; then
20399 lt_cv_prog_compiler_static_works_CXX=yes
20400 fi
20401 else
20402 lt_cv_prog_compiler_static_works_CXX=yes
20403 fi
20404 fi
20405 $RM -r conftest*
20406 LDFLAGS=$save_LDFLAGS
20407 ;;
20408 esac
20409 fi
20410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20411 printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20412
20413 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
20414 :
20415 else
20416 lt_prog_compiler_static_CXX=
20417 fi
20418
20419
20420
20421 ='-fPIC'
20422 archive_cmds_CXX='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
20423 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'
20424 archive_cmds_need_lc_CXX=no
20425 no_undefined_flag_CXX=
20426 ;;
20427
20428 *)
20429 dynamic_linker=no
20430 ;;
20431 esac
20432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20433 printf "%s\n" "$dynamic_linker" >&6; }
20434 test no = "$dynamic_linker" && can_build_shared=no
20435
20436 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20437 if test yes = "$GCC"; then
20438 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20439 fi
20440
20441 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
20442 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
20443 fi
20444
20445 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
20446 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
20447 fi
20448
20449 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
20450 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
20451
20452 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
20453 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
20454
20455 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
20456 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
20457
20458
20459
20460
20461
20462
20463
20464
20465
20466
20467
20468
20469
20470
20471
20472
20473
20474
20475
20476
20477
20478
20479
20480
20481
20482
20483
20484
20485
20486
20487
20488
20489
20490
20491
20492
20493
20494
20495
20496
20497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20498 printf %s "checking how to hardcode library paths into programs... " >&6; }
20499 hardcode_action_CXX=
20500 if test -n "$hardcode_libdir_flag_spec_CXX" ||
20501 test -n "$runpath_var_CXX" ||
20502 test yes = "$hardcode_automatic_CXX"; then
20503
20504 # We can hardcode non-existent directories.
20505 if test no != "$hardcode_direct_CXX" &&
20506 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20507 # have to relink, otherwise we might link with an installed library
20508 # when we should be linking with a yet-to-be-installed one
20509 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
20510 test no != "$hardcode_minus_L_CXX"; then
20511 # Linking always hardcodes the temporary library directory.
20512 hardcode_action_CXX=relink
20513 else
20514 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20515 hardcode_action_CXX=immediate
20516 fi
20517 else
20518 # We cannot hardcode anything, or else we can only hardcode existing
20519 # directories.
20520 hardcode_action_CXX=unsupported
20521 fi
20522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20523 printf "%s\n" "$hardcode_action_CXX" >&6; }
20524
20525 if test relink = "$hardcode_action_CXX" ||
20526 test yes = "$inherit_rpath_CXX"; then
20527 # Fast installation is not supported
20528 enable_fast_install=no
20529 elif test yes = "$shlibpath_overrides_runpath" ||
20530 test no = "$enable_shared"; then
20531 # Fast installation is not necessary
20532 enable_fast_install=needless
20533 fi
20534
20535
20536
20537
20538
20539
20540
20541 fi # test -n "$compiler"
20542
20543 CC=$lt_save_CC
20544 CFLAGS=$lt_save_CFLAGS
20545 LDCXX=$LD
20546 LD=$lt_save_LD
20547 GCC=$lt_save_GCC
20548 with_gnu_ld=$lt_save_with_gnu_ld
20549 lt_cv_path_LDCXX=$lt_cv_path_LD
20550 lt_cv_path_LD=$lt_save_path_LD
20551 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20552 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20553 fi # test yes != "$_lt_caught_CXX_error"
20554
20555 ac_ext=c
20556 ac_cpp='$CPP $CPPFLAGS'
20557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20560
20561
20562 # Check whether --enable-cxx-runtime-hack was given.
20563 if test ${enable_cxx_runtime_hack+y}
20564 then :
20565 enableval=$enable_cxx_runtime_hack;
20566 fi
20567
20568 if test "x$GXX:$enable_cxx_runtime_hack" = xyes:yes; then
20569
20570 ac_ext=cpp
20571 ac_cpp='$CXXCPP $CPPFLAGS'
20572 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20573 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20574 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20575
20576 ac_fn_cxx_check_header_compile "$LINENO" "iostream" "ac_cv_header_iostream" "$ac_includes_default"
20577 if test "x$ac_cv_header_iostream" = xyes
20578 then :
20579 printf "%s\n" "#define HAVE_IOSTREAM 1" >>confdefs.h
20580
20581 fi
20582
20583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for statically linking C++ runtime library" >&5
20584 printf %s "checking for statically linking C++ runtime library... " >&6; }
20585 if test ${kpse_cv_cxx_hack+y}
20586 then :
20587 printf %s "(cached) " >&6
20588 else case e in #(
20589 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20590 /* end confdefs.h. */
20591 #ifdef HAVE_IOSTREAM
20592 #include <iostream>
20593 using namespace std;
20594 #else
20595 #include <iostream.h>
20596 #endif
20597 int
20598 main (void)
20599 {
20600 cout <<"worksok\n";
20601 ;
20602 return 0;
20603 }
20604 _ACEOF
20605 case $host in #(
20606 *cygwin*) :
20607 flags_try0='-Wl,-Bstatic -lstdc++ -Wl,-Bdynamic' ;; #(
20608 *) :
20609 flags_try0='-nodefaultlibs -Wl,-Bstatic -lstdc++ -Wl,-Bdynamic -lm'
20610 flags_try1='-lgcc_eh -lgcc -lc -lgcc_eh -lgcc'
20611 flags_try2='-lgcc -lc -lgcc' ;;
20612 esac
20613 kpse_save_LIBS=$LIBS
20614 cpp_link_hack=false
20615 for flags in "$flags_try1" "$flags_try2"; do
20616 LIBS="$kpse_save_LIBS $flags_try0 $flags"
20617 if ac_fn_cxx_try_link "$LINENO"
20618 then :
20619 if test "x$cross_compiling" = xyes
20620 then :
20621 cpp_link_hack=true; break
20622 else case e in #(
20623 e) case `(./conftest$ac_exeext; exit) 2>/dev/null` in #(
20624 worksok) :
20625 cpp_link_hack=true; break ;; #(
20626 *) :
20627 ;;
20628 esac ;;
20629 esac
20630 fi
20631 fi
20632 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20633 conftest$ac_exeext
20634 done
20635 LIBS=$kpse_save_LIBS
20636 if $cpp_link_hack; then
20637 kpse_cv_cxx_hack=ok
20638 kpse_cv_cxx_flags="$flags_try0 $flags"
20639 else
20640 kpse_cv_cxx_hack="not supported"
20641 fi ;;
20642 esac
20643 fi
20644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_cxx_hack" >&5
20645 printf "%s\n" "$kpse_cv_cxx_hack" >&6; }
20646 if test "x$kpse_cv_cxx_hack" = xok; then
20647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using $kpse_cv_cxx_flags" >&5
20648 printf "%s\n" "$as_me: using $kpse_cv_cxx_flags" >&6;}
20649 fi
20650 ac_ext=c
20651 ac_cpp='$CPP $CPPFLAGS'
20652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20655
20656
20657 fi
20658 if test "x$kpse_cv_cxx_hack" = xok; then
20659 CXXLD='$(top_builddir)/CXXLD.sh'
20660 cxxld_sh="#! ${CONFIG_SHELL-/bin/sh}
20661 # CXXLD.sh. Generated by configure.
20662 set -- $CXX \"\$@\" $kpse_cv_cxx_flags
20663 echo \"\$0:\" \"\$@\"
20664 exec \"\$@\""
20665 ac_config_commands="$ac_config_commands CXXLD.sh"
20666
20667 else
20668 CXXLD='$(CXX)'
20669 fi
20670
20671
20672
20673 kpse_save_CPPFLAGS=$CPPFLAGS
20674 kpse_save_LIBS=$LIBS
20675
20676 ##tldbg _KPSE_INIT: Initialize TL infrastructure.
20677 kpse_BLD=`(cd "./../../." && pwd)`
20678 kpse_SRC=`(cd "$srcdir/../../." && pwd)`
20679
20680 echo 'tldbg:_KPSE_USE_LIBTOOL called, libtool package version: 2.5.4' >&5
20681 : ${CONFIG_LT=./config.lt}
20682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_LT" >&5
20683 printf "%s\n" "$as_me: creating $CONFIG_LT" >&6;}
20684 as_write_fail=0
20685 cat >"$CONFIG_LT" <<_ASEOF || as_write_fail=1
20686 #! $SHELL
20687 # Generated by $as_me.
20688 # Run this file to recreate a libtool stub with the current configuration.
20689 SHELL=\${CONFIG_SHELL-$SHELL}
20690 export SHELL
20691 _ASEOF
20692 cat >>"$CONFIG_LT" <<\_ASEOF || as_write_fail=1
20693 ## -------------------- ##
20694 ## M4sh Initialization. ##
20695 ## -------------------- ##
20696
20697 # Be more Bourne compatible
20698 DUALCASE=1; export DUALCASE # for MKS sh
20699 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20700 then :
20701 emulate sh
20702 NULLCMD=:
20703 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20704 # is contrary to our usage. Disable this feature.
20705 alias -g '${1+"$@"}'='"$@"'
20706 setopt NO_GLOB_SUBST
20707 else case e in #(
20708 e) case `(set -o) 2>/dev/null` in #(
20709 *posix*) :
20710 set -o posix ;; #(
20711 *) :
20712 ;;
20713 esac ;;
20714 esac
20715 fi
20716
20717
20718
20719 # Reset variables that may have inherited troublesome values from
20720 # the environment.
20721
20722 # IFS needs to be set, to space, tab, and newline, in precisely that order.
20723 # (If _AS_PATH_WALK were called with IFS unset, it would have the
20724 # side effect of setting IFS to empty, thus disabling word splitting.)
20725 # Quoting is to prevent editors from complaining about space-tab.
20726 as_nl='
20727 '
20728 export as_nl
20729 IFS=" "" $as_nl"
20730
20731 PS1='$ '
20732 PS2='> '
20733 PS4='+ '
20734
20735 # Ensure predictable behavior from utilities with locale-dependent output.
20736 LC_ALL=C
20737 export LC_ALL
20738 LANGUAGE=C
20739 export LANGUAGE
20740
20741 # We cannot yet rely on "unset" to work, but we need these variables
20742 # to be unset--not just set to an empty or harmless value--now, to
20743 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
20744 # also avoids known problems related to "unset" and subshell syntax
20745 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
20746 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
20747 do eval test \${$as_var+y} \
20748 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20749 done
20750
20751 # Ensure that fds 0, 1, and 2 are open.
20752 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
20753 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
20754 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
20755
20756 # The user is always right.
20757 if ${PATH_SEPARATOR+false} :; then
20758 PATH_SEPARATOR=:
20759 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20760 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20761 PATH_SEPARATOR=';'
20762 }
20763 fi
20764
20765
20766 # Find who we are. Look in the path if we contain no directory separator.
20767 as_myself=
20768 case $0 in #((
20769 *[\\/]* ) as_myself=$0 ;;
20770 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20771 for as_dir in $PATH
20772 do
20773 IFS=$as_save_IFS
20774 case $as_dir in #(((
20775 '') as_dir=./ ;;
20776 */) ;;
20777 *) as_dir=$as_dir/ ;;
20778 esac
20779 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
20780 done
20781 IFS=$as_save_IFS
20782
20783 ;;
20784 esac
20785 # We did not find ourselves, most probably we were run as 'sh COMMAND'
20786 # in which case we are not to be found in the path.
20787 if test "x$as_myself" = x; then
20788 as_myself=$0
20789 fi
20790 if test ! -f "$as_myself"; then
20791 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20792 exit 1
20793 fi
20794
20795
20796
20797 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20798 # ----------------------------------------
20799 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20800 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20801 # script with STATUS, using 1 if that was 0.
20802 as_fn_error ()
20803 {
20804 as_status=$1; test $as_status -eq 0 && as_status=1
20805 if test "$4"; then
20806 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20807 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20808 fi
20809 printf "%s\n" "$as_me: error: $2" >&2
20810 as_fn_exit $as_status
20811 } # as_fn_error
20812
20813
20814 # as_fn_set_status STATUS
20815 # -----------------------
20816 # Set $? to STATUS, without forking.
20817 as_fn_set_status ()
20818 {
20819 return $1
20820 } # as_fn_set_status
20821
20822 # as_fn_exit STATUS
20823 # -----------------
20824 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20825 as_fn_exit ()
20826 {
20827 set +e
20828 as_fn_set_status $1
20829 exit $1
20830 } # as_fn_exit
20831
20832 # as_fn_unset VAR
20833 # ---------------
20834 # Portably unset VAR.
20835 as_fn_unset ()
20836 {
20837 { eval $1=; unset $1;}
20838 }
20839 as_unset=as_fn_unset
20840
20841 # as_fn_append VAR VALUE
20842 # ----------------------
20843 # Append the text in VALUE to the end of the definition contained in VAR. Take
20844 # advantage of any shell optimizations that allow amortized linear growth over
20845 # repeated appends, instead of the typical quadratic growth present in naive
20846 # implementations.
20847 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
20848 then :
20849 eval 'as_fn_append ()
20850 {
20851 eval $1+=\$2
20852 }'
20853 else case e in #(
20854 e) as_fn_append ()
20855 {
20856 eval $1=\$$1\$2
20857 } ;;
20858 esac
20859 fi # as_fn_append
20860
20861 # as_fn_arith ARG...
20862 # ------------------
20863 # Perform arithmetic evaluation on the ARGs, and store the result in the
20864 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20865 # must be portable across $(()) and expr.
20866 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
20867 then :
20868 eval 'as_fn_arith ()
20869 {
20870 as_val=$(( $* ))
20871 }'
20872 else case e in #(
20873 e) as_fn_arith ()
20874 {
20875 as_val=`expr "$@" || test $? -eq 1`
20876 } ;;
20877 esac
20878 fi # as_fn_arith
20879
20880
20881 if expr a : '\(a\)' >/dev/null 2>&1 &&
20882 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20883 as_expr=expr
20884 else
20885 as_expr=false
20886 fi
20887
20888 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20889 as_basename=basename
20890 else
20891 as_basename=false
20892 fi
20893
20894 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20895 as_dirname=dirname
20896 else
20897 as_dirname=false
20898 fi
20899
20900 as_me=`$as_basename -- "$0" ||
20901 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20902 X"$0" : 'X\(//\)$' \| \
20903 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20904 printf "%s\n" X/"$0" |
20905 sed '/^.*\/\([^/][^/]*\)\/*$/{
20906 s//\1/
20907 q
20908 }
20909 /^X\/\(\/\/\)$/{
20910 s//\1/
20911 q
20912 }
20913 /^X\/\(\/\).*/{
20914 s//\1/
20915 q
20916 }
20917 s/.*/./; q'`
20918
20919 # Avoid depending upon Character Ranges.
20920 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20921 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20922 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20923 as_cr_digits='0123456789'
20924 as_cr_alnum=$as_cr_Letters$as_cr_digits
20925
20926
20927 # Determine whether it's possible to make 'echo' print without a newline.
20928 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
20929 # for compatibility with existing Makefiles.
20930 ECHO_C= ECHO_N= ECHO_T=
20931 case `echo -n x` in #(((((
20932 -n*)
20933 case `echo 'xy\c'` in
20934 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20935 xy) ECHO_C='\c';;
20936 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20937 ECHO_T=' ';;
20938 esac;;
20939 *)
20940 ECHO_N='-n';;
20941 esac
20942
20943 # For backward compatibility with old third-party macros, we provide
20944 # the shell variables $as_echo and $as_echo_n. New code should use
20945 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
20946 as_echo='printf %s\n'
20947 as_echo_n='printf %s'
20948
20949 rm -f conf$$ conf$$.exe conf$$.file
20950 if test -d conf$$.dir; then
20951 rm -f conf$$.dir/conf$$.file
20952 else
20953 rm -f conf$$.dir
20954 mkdir conf$$.dir 2>/dev/null
20955 fi
20956 if (echo >conf$$.file) 2>/dev/null; then
20957 if ln -s conf$$.file conf$$ 2>/dev/null; then
20958 as_ln_s='ln -s'
20959 # ... but there are two gotchas:
20960 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
20961 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
20962 # In both cases, we have to default to 'cp -pR'.
20963 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20964 as_ln_s='cp -pR'
20965 elif ln conf$$.file conf$$ 2>/dev/null; then
20966 as_ln_s=ln
20967 else
20968 as_ln_s='cp -pR'
20969 fi
20970 else
20971 as_ln_s='cp -pR'
20972 fi
20973 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20974 rmdir conf$$.dir 2>/dev/null
20975
20976
20977 # as_fn_mkdir_p
20978 # -------------
20979 # Create "$as_dir" as a directory, including parents if necessary.
20980 as_fn_mkdir_p ()
20981 {
20982
20983 case $as_dir in #(
20984 -*) as_dir=./$as_dir;;
20985 esac
20986 test -d "$as_dir" || eval $as_mkdir_p || {
20987 as_dirs=
20988 while :; do
20989 case $as_dir in #(
20990 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20991 *) as_qdir=$as_dir;;
20992 esac
20993 as_dirs="'$as_qdir' $as_dirs"
20994 as_dir=`$as_dirname -- "$as_dir" ||
20995 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20996 X"$as_dir" : 'X\(//\)[^/]' \| \
20997 X"$as_dir" : 'X\(//\)$' \| \
20998 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20999 printf "%s\n" X"$as_dir" |
21000 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21001 s//\1/
21002 q
21003 }
21004 /^X\(\/\/\)[^/].*/{
21005 s//\1/
21006 q
21007 }
21008 /^X\(\/\/\)$/{
21009 s//\1/
21010 q
21011 }
21012 /^X\(\/\).*/{
21013 s//\1/
21014 q
21015 }
21016 s/.*/./; q'`
21017 test -d "$as_dir" && break
21018 done
21019 test -z "$as_dirs" || eval "mkdir $as_dirs"
21020 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21021
21022
21023 } # as_fn_mkdir_p
21024 if mkdir -p . 2>/dev/null; then
21025 as_mkdir_p='mkdir -p "$as_dir"'
21026 else
21027 test -d ./-p && rmdir ./-p
21028 as_mkdir_p=false
21029 fi
21030
21031
21032 # as_fn_executable_p FILE
21033 # -----------------------
21034 # Test if FILE is an executable regular file.
21035 as_fn_executable_p ()
21036 {
21037 test -f "$1" && test -x "$1"
21038 } # as_fn_executable_p
21039 as_test_x='test -x'
21040 as_executable_p=as_fn_executable_p
21041
21042 # Sed expression to map a string onto a valid CPP name.
21043 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
21044 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
21045
21046 # Sed expression to map a string onto a valid variable name.
21047 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
21048 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
21049
21050
21051 exec 6>&1
21052 ## --------------------------------- ##
21053 ## Main body of "$CONFIG_LT" script. ##
21054 ## --------------------------------- ##
21055 _ASEOF
21056 test $as_write_fail = 0 && chmod +x "$CONFIG_LT"
21057
21058 cat >>"$CONFIG_LT" <<\_LTEOF
21059 lt_cl_silent=false
21060 exec 5>>config.log
21061 {
21062 echo
21063 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21064 ## Running $as_me. ##
21065 _ASBOX
21066 } >&5
21067
21068 lt_cl_help="\
21069 '$as_me' creates a local libtool stub from the current configuration,
21070 for use in further configure time tests before the real libtool is
21071 generated.
21072
21073 Usage: $0 [OPTIONS]
21074
21075 -h, --help print this help, then exit
21076 -V, --version print version number, then exit
21077 -q, --quiet do not print progress messages
21078 -d, --debug don't remove temporary files
21079
21080 Report bugs to <[email protected]>."
21081
21082 lt_cl_version="\
21083 upmendex (TeX Live) config.lt 1.22
21084 configured by $0, generated by GNU Autoconf 2.72.
21085
21086 Copyright (C) 2024 Free Software Foundation, Inc.
21087 This config.lt script is free software; the Free Software Foundation
21088 gives unlimited permission to copy, distribute and modify it."
21089
21090 while test 0 != $#
21091 do
21092 case $1 in
21093 --version | --v* | -V )
21094 echo "$lt_cl_version"; exit 0 ;;
21095 --help | --h* | -h )
21096 echo "$lt_cl_help"; exit 0 ;;
21097 --debug | --d* | -d )
21098 debug=: ;;
21099 --quiet | --q* | --silent | --s* | -q )
21100 lt_cl_silent=: ;;
21101
21102 -*) as_fn_error $? "unrecognized option: $1
21103 Try '$0 --help' for more information." "$LINENO" 5 ;;
21104
21105 *) as_fn_error $? "unrecognized argument: $1
21106 Try '$0 --help' for more information." "$LINENO" 5 ;;
21107 esac
21108 shift
21109 done
21110
21111 if $lt_cl_silent; then
21112 exec 6>/dev/null
21113 fi
21114 _LTEOF
21115
21116 cat >>"$CONFIG_LT" <<_LTEOF
21117
21118
21119 # The HP-UX ksh and POSIX shell print the target directory to stdout
21120 # if CDPATH is set.
21121 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21122
21123 sed_quote_subst='$sed_quote_subst'
21124 double_quote_subst='$double_quote_subst'
21125 delay_variable_subst='$delay_variable_subst'
21126 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21127 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21128 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
21129 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21130 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21131 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21132 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21133 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21134 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21135 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
21136 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21137 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21138 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
21139 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21140 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21141 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21142 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21143 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21144 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21145 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21146 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21147 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21148 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21149 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21150 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21151 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21152 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21153 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21154 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21155 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21156 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21157 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21158 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21159 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21160 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21161 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21162 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21163 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
21164 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21165 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21166 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21167 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21168 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21169 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21170 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
21171 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21172 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21173 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21174 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21175 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21176 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21177 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21178 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21179 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21180 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21181 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21182 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21183 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21184 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21185 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
21186 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21187 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"`'
21188 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
21189 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21190 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21191 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
21192 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21193 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21194 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21195 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21196 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21197 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21198 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21199 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21200 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21201 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21202 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21203 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21204 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21205 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21206 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21207 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21208 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21209 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21210 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21211 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21212 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21213 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21214 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21215 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21216 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21217 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21218 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21219 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21220 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21221 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21222 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21223 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21224 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21225 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21226 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21227 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21228 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21229 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21230 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21231 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21232 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21233 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21234 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21235 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21236 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21237 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21238 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21239 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21240 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21241 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21242 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21243 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21244 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21245 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21246 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21247 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21248 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21249 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21250 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21251 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21252 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21253 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21254 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21255 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21256 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
21257 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
21258 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21259 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21260 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21261 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21262 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21263 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21264 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
21265 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
21266 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
21267 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
21268 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
21269 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
21270 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
21271 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
21272 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21273 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21274 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
21275 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
21276 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
21277 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
21278 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
21279 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
21280 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
21281 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
21282 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
21283 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21284 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21285 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
21286 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21287 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21288 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21289 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21290 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21291 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21292 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
21293 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
21294 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
21295 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21296 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
21297 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
21298 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
21299 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
21300 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
21301 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
21302 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
21303 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
21304 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
21305 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21306 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
21307 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
21308 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21309 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21310 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
21311 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
21312 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
21313 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
21314 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
21315 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
21316 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
21317 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
21318
21319 LTCC='$LTCC'
21320 LTCFLAGS='$LTCFLAGS'
21321 compiler='$compiler_DEFAULT'
21322
21323 # A function that is used when there is no print builtin or printf.
21324 func_fallback_echo ()
21325 {
21326 eval 'cat <<_LTECHO_EOF
21327 \$1
21328 _LTECHO_EOF'
21329 }
21330
21331 # Quote evaled strings.
21332 for var in AS \
21333 DLLTOOL \
21334 OBJDUMP \
21335 SHELL \
21336 ECHO \
21337 PATH_SEPARATOR \
21338 SED \
21339 GREP \
21340 EGREP \
21341 FGREP \
21342 LD \
21343 NM \
21344 LN_S \
21345 lt_SP2NL \
21346 lt_NL2SP \
21347 reload_flag \
21348 FILECMD \
21349 deplibs_check_method \
21350 file_magic_cmd \
21351 file_magic_glob \
21352 want_nocaseglob \
21353 sharedlib_from_linklib_cmd \
21354 AR \
21355 archiver_list_spec \
21356 STRIP \
21357 RANLIB \
21358 CC \
21359 CFLAGS \
21360 compiler \
21361 lt_cv_sys_global_symbol_pipe \
21362 lt_cv_sys_global_symbol_to_cdecl \
21363 lt_cv_sys_global_symbol_to_import \
21364 lt_cv_sys_global_symbol_to_c_name_address \
21365 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21366 lt_cv_nm_interface \
21367 nm_file_list_spec \
21368 lt_cv_truncate_bin \
21369 lt_prog_compiler_no_builtin_flag \
21370 lt_prog_compiler_pic \
21371 lt_prog_compiler_wl \
21372 lt_prog_compiler_static \
21373 lt_cv_prog_compiler_c_o \
21374 need_locks \
21375 MANIFEST_TOOL \
21376 DSYMUTIL \
21377 NMEDIT \
21378 LIPO \
21379 OTOOL \
21380 OTOOL64 \
21381 shrext_cmds \
21382 export_dynamic_flag_spec \
21383 whole_archive_flag_spec \
21384 compiler_needs_object \
21385 with_gnu_ld \
21386 allow_undefined_flag \
21387 no_undefined_flag \
21388 hardcode_libdir_flag_spec \
21389 hardcode_libdir_separator \
21390 exclude_expsyms \
21391 include_expsyms \
21392 file_list_spec \
21393 variables_saved_for_relink \
21394 libname_spec \
21395 library_names_spec \
21396 soname_spec \
21397 install_override_mode \
21398 finish_eval \
21399 old_striplib \
21400 striplib \
21401 compiler_lib_search_dirs \
21402 predep_objects \
21403 postdep_objects \
21404 predeps \
21405 postdeps \
21406 compiler_lib_search_path \
21407 LD_CXX \
21408 reload_flag_CXX \
21409 compiler_CXX \
21410 lt_prog_compiler_no_builtin_flag_CXX \
21411 lt_prog_compiler_pic_CXX \
21412 lt_prog_compiler_wl_CXX \
21413 lt_prog_compiler_static_CXX \
21414 lt_cv_prog_compiler_c_o_CXX \
21415 export_dynamic_flag_spec_CXX \
21416 whole_archive_flag_spec_CXX \
21417 compiler_needs_object_CXX \
21418 with_gnu_ld_CXX \
21419 allow_undefined_flag_CXX \
21420 no_undefined_flag_CXX \
21421 hardcode_libdir_flag_spec_CXX \
21422 hardcode_libdir_separator_CXX \
21423 exclude_expsyms_CXX \
21424 include_expsyms_CXX \
21425 file_list_spec_CXX \
21426 compiler_lib_search_dirs_CXX \
21427 predep_objects_CXX \
21428 postdep_objects_CXX \
21429 predeps_CXX \
21430 postdeps_CXX \
21431 compiler_lib_search_path_CXX; do
21432 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21433 *[\\\\\\\`\\"\\\$]*)
21434 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21435 ;;
21436 *)
21437 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21438 ;;
21439 esac
21440 done
21441
21442 # Double-quote double-evaled strings.
21443 for var in reload_cmds \
21444 old_postinstall_cmds \
21445 old_postuninstall_cmds \
21446 old_archive_cmds \
21447 extract_expsyms_cmds \
21448 old_archive_from_new_cmds \
21449 old_archive_from_expsyms_cmds \
21450 archive_cmds \
21451 archive_expsym_cmds \
21452 module_cmds \
21453 module_expsym_cmds \
21454 export_symbols_cmds \
21455 prelink_cmds \
21456 postlink_cmds \
21457 postinstall_cmds \
21458 postuninstall_cmds \
21459 finish_cmds \
21460 sys_lib_search_path_spec \
21461 configure_time_dlsearch_path \
21462 configure_time_lt_sys_library_path \
21463 reload_cmds_CXX \
21464 old_archive_cmds_CXX \
21465 old_archive_from_new_cmds_CXX \
21466 old_archive_from_expsyms_cmds_CXX \
21467 archive_cmds_CXX \
21468 archive_expsym_cmds_CXX \
21469 module_cmds_CXX \
21470 module_expsym_cmds_CXX \
21471 export_symbols_cmds_CXX \
21472 prelink_cmds_CXX \
21473 postlink_cmds_CXX; do
21474 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21475 *[\\\\\\\`\\"\\\$]*)
21476 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21477 ;;
21478 *)
21479 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21480 ;;
21481 esac
21482 done
21483
21484 ac_aux_dir='$ac_aux_dir'
21485
21486 # See if we are running on zsh, and set the options that allow our
21487 # commands through without removal of \ escapes INIT.
21488 if test -n "\${ZSH_VERSION+set}"; then
21489 setopt NO_GLOB_SUBST
21490 fi
21491
21492
21493 PACKAGE='$PACKAGE'
21494 VERSION='$VERSION'
21495 RM='$RM'
21496 ofile='$ofile'
21497
21498
21499
21500
21501
21502 _LTEOF
21503
21504 cat >>"$CONFIG_LT" <<\_LTEOF
21505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
21506 printf "%s\n" "$as_me: creating $ofile" >&6;}
21507
21508
21509 # See if we are running on zsh, and set the options that allow our
21510 # commands through without removal of \ escapes.
21511 if test -n "${ZSH_VERSION+set}"; then
21512 setopt NO_GLOB_SUBST
21513 fi
21514
21515 cfgfile=${ofile}T
21516 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21517 $RM "$cfgfile"
21518
21519 cat <<_LT_EOF >> "$cfgfile"
21520 #! $SHELL
21521 # Generated automatically by $as_me ($PACKAGE) $VERSION
21522 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21523
21524 # Provide generalized library-building support services.
21525 # Written by Gordon Matzigkeit, 1996
21526
21527 # Copyright (C) 2024 Free Software Foundation, Inc.
21528 # This is free software; see the source for copying conditions. There is NO
21529 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21530
21531 # GNU Libtool is free software; you can redistribute it and/or modify
21532 # it under the terms of the GNU General Public License as published by
21533 # the Free Software Foundation; either version 2 of the License, or
21534 # (at your option) any later version.
21535 #
21536 # As a special exception to the GNU General Public License, if you
21537 # distribute this file as part of a program or library that is built
21538 # using GNU Libtool, you may include this file under the same
21539 # distribution terms that you use for the rest of that program.
21540 #
21541 # GNU Libtool is distributed in the hope that it will be useful, but
21542 # WITHOUT ANY WARRANTY; without even the implied warranty of
21543 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21544 # GNU General Public License for more details.
21545 #
21546 # You should have received a copy of the GNU General Public License
21547 # along with this program. If not, see <http://www.gnu.org/licenses/>.
21548
21549
21550 # The names of the tagged configurations supported by this script.
21551 available_tags='CXX '
21552
21553 # Configured defaults for sys_lib_dlsearch_path munging.
21554 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21555
21556 # ### BEGIN LIBTOOL CONFIG
21557
21558 # Which release of libtool.m4 was used?
21559 macro_version=$macro_version
21560 macro_revision=$macro_revision
21561
21562 # Assembler program.
21563 AS=$lt_AS
21564
21565 # DLL creation program.
21566 DLLTOOL=$lt_DLLTOOL
21567
21568 # Object dumper program.
21569 OBJDUMP=$lt_OBJDUMP
21570
21571 # Whether or not to build shared libraries.
21572 build_libtool_libs=$enable_shared
21573
21574 # Whether or not to build static libraries.
21575 build_old_libs=$enable_static
21576
21577 # What type of objects to build.
21578 pic_mode=$pic_mode
21579
21580 # Whether or not to optimize for fast installation.
21581 fast_install=$enable_fast_install
21582
21583 # Shared archive member basename,for filename based shared library versioning on AIX.
21584 shared_archive_member_spec=$shared_archive_member_spec
21585
21586 # Shell to use when invoking shell scripts.
21587 SHELL=$lt_SHELL
21588
21589 # An echo program that protects backslashes.
21590 ECHO=$lt_ECHO
21591
21592 # The PATH separator for the build system.
21593 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21594
21595 # The host system.
21596 host_alias=$host_alias
21597 host=$host
21598 host_os=$host_os
21599
21600 # The build system.
21601 build_alias=$build_alias
21602 build=$build
21603 build_os=$build_os
21604
21605 # A sed program that does not truncate output.
21606 SED=$lt_SED
21607
21608 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21609 Xsed="\$SED -e 1s/^X//"
21610
21611 # A grep program that handles long lines.
21612 GREP=$lt_GREP
21613
21614 # An ERE matcher.
21615 EGREP=$lt_EGREP
21616
21617 # A literal string matcher.
21618 FGREP=$lt_FGREP
21619
21620 # A BSD- or MS-compatible name lister.
21621 NM=$lt_NM
21622
21623 # Whether we need soft or hard links.
21624 LN_S=$lt_LN_S
21625
21626 # What is the maximum length of a command?
21627 max_cmd_len=$max_cmd_len
21628
21629 # Object file suffix (normally "o").
21630 objext=$ac_objext
21631
21632 # Executable file suffix (normally "").
21633 exeext=$exeext
21634
21635 # whether the shell understands "unset".
21636 lt_unset=$lt_unset
21637
21638 # turn spaces into newlines.
21639 SP2NL=$lt_lt_SP2NL
21640
21641 # turn newlines into spaces.
21642 NL2SP=$lt_lt_NL2SP
21643
21644 # convert \$build file names to \$host format.
21645 to_host_file_cmd=$lt_cv_to_host_file_cmd
21646
21647 # convert \$build files to toolchain format.
21648 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21649
21650 # A file(cmd) program that detects file types.
21651 FILECMD=$lt_FILECMD
21652
21653 # Method to check whether dependent libraries are shared objects.
21654 deplibs_check_method=$lt_deplibs_check_method
21655
21656 # Command to use when deplibs_check_method = "file_magic".
21657 file_magic_cmd=$lt_file_magic_cmd
21658
21659 # How to find potential files when deplibs_check_method = "file_magic".
21660 file_magic_glob=$lt_file_magic_glob
21661
21662 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21663 want_nocaseglob=$lt_want_nocaseglob
21664
21665 # Command to associate shared and link libraries.
21666 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21667
21668 # The archiver.
21669 AR=$lt_AR
21670
21671 # Flags to create an archive (by configure).
21672 lt_ar_flags=$lt_ar_flags
21673
21674 # Flags to create an archive.
21675 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
21676
21677 # How to feed a file listing to the archiver.
21678 archiver_list_spec=$lt_archiver_list_spec
21679
21680 # A symbol stripping program.
21681 STRIP=$lt_STRIP
21682
21683 # Commands used to install an old-style archive.
21684 RANLIB=$lt_RANLIB
21685 old_postinstall_cmds=$lt_old_postinstall_cmds
21686 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21687
21688 # Whether to use a lock for old archive extraction.
21689 lock_old_archive_extraction=$lock_old_archive_extraction
21690
21691 # A C compiler.
21692 LTCC=$lt_CC
21693
21694 # LTCC compiler flags.
21695 LTCFLAGS=$lt_CFLAGS
21696
21697 # Take the output of nm and produce a listing of raw symbols and C names.
21698 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21699
21700 # Transform the output of nm in a proper C declaration.
21701 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21702
21703 # Transform the output of nm into a list of symbols to manually relocate.
21704 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21705
21706 # Transform the output of nm in a C name address pair.
21707 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21708
21709 # Transform the output of nm in a C name address pair when lib prefix is needed.
21710 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21711
21712 # The name lister interface.
21713 nm_interface=$lt_lt_cv_nm_interface
21714
21715 # Specify filename containing input files for \$NM.
21716 nm_file_list_spec=$lt_nm_file_list_spec
21717
21718 # The root where to search for dependent libraries,and where our libraries should be installed.
21719 lt_sysroot=$lt_sysroot
21720
21721 # Command to truncate a binary pipe.
21722 lt_truncate_bin=$lt_lt_cv_truncate_bin
21723
21724 # The name of the directory that contains temporary libtool files.
21725 objdir=$objdir
21726
21727 # Used to examine libraries when file_magic_cmd begins with "file".
21728 MAGIC_CMD=$MAGIC_CMD
21729
21730 # Must we lock files when doing compilation?
21731 need_locks=$lt_need_locks
21732
21733 # Manifest tool.
21734 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21735
21736 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21737 DSYMUTIL=$lt_DSYMUTIL
21738
21739 # Tool to change global to local symbols on Mac OS X.
21740 NMEDIT=$lt_NMEDIT
21741
21742 # Tool to manipulate fat objects and archives on Mac OS X.
21743 LIPO=$lt_LIPO
21744
21745 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21746 OTOOL=$lt_OTOOL
21747
21748 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21749 OTOOL64=$lt_OTOOL64
21750
21751 # Old archive suffix (normally "a").
21752 libext=$libext
21753
21754 # Shared library suffix (normally ".so").
21755 shrext_cmds=$lt_shrext_cmds
21756
21757 # The commands to extract the exported symbol list from a shared archive.
21758 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21759
21760 # Variables whose values should be saved in libtool wrapper scripts and
21761 # restored at link time.
21762 variables_saved_for_relink=$lt_variables_saved_for_relink
21763
21764 # Do we need the "lib" prefix for modules?
21765 need_lib_prefix=$need_lib_prefix
21766
21767 # Do we need a version for libraries?
21768 need_version=$need_version
21769
21770 # Library versioning type.
21771 version_type=$version_type
21772
21773 # Shared library runtime path variable.
21774 runpath_var=$runpath_var
21775
21776 # Shared library path variable.
21777 shlibpath_var=$shlibpath_var
21778
21779 # Is shlibpath searched before the hard-coded library search path?
21780 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21781
21782 # Format of library name prefix.
21783 libname_spec=$lt_libname_spec
21784
21785 # List of archive names. First name is the real one, the rest are links.
21786 # The last name is the one that the linker finds with -lNAME
21787 library_names_spec=$lt_library_names_spec
21788
21789 # The coded name of the library, if different from the real name.
21790 soname_spec=$lt_soname_spec
21791
21792 # Permission mode override for installation of shared libraries.
21793 install_override_mode=$lt_install_override_mode
21794
21795 # Command to use after installation of a shared archive.
21796 postinstall_cmds=$lt_postinstall_cmds
21797
21798 # Command to use after uninstallation of a shared archive.
21799 postuninstall_cmds=$lt_postuninstall_cmds
21800
21801 # Commands used to finish a libtool library installation in a directory.
21802 finish_cmds=$lt_finish_cmds
21803
21804 # As "finish_cmds", except a single script fragment to be evaled but
21805 # not shown.
21806 finish_eval=$lt_finish_eval
21807
21808 # Whether we should hardcode library paths into libraries.
21809 hardcode_into_libs=$hardcode_into_libs
21810
21811 # Compile-time system search path for libraries.
21812 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21813
21814 # Detected run-time system search path for libraries.
21815 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
21816
21817 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
21818 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
21819
21820 # Whether dlopen is supported.
21821 dlopen_support=$enable_dlopen
21822
21823 # Whether dlopen of programs is supported.
21824 dlopen_self=$enable_dlopen_self
21825
21826 # Whether dlopen of statically linked programs is supported.
21827 dlopen_self_static=$enable_dlopen_self_static
21828
21829 # Commands to strip libraries.
21830 old_striplib=$lt_old_striplib
21831 striplib=$lt_striplib
21832
21833
21834 # The linker used to build libraries.
21835 LD=$lt_LD
21836
21837 # How to create reloadable object files.
21838 reload_flag=$lt_reload_flag
21839 reload_cmds=$lt_reload_cmds
21840
21841 # Commands used to build an old-style archive.
21842 old_archive_cmds=$lt_old_archive_cmds
21843
21844 # A language specific compiler.
21845 CC=$lt_compiler
21846
21847 # Is the compiler the GNU compiler?
21848 with_gcc=$GCC
21849
21850 # Compiler flag to turn off builtin functions.
21851 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21852
21853 # Additional compiler flags for building library objects.
21854 pic_flag=$lt_lt_prog_compiler_pic
21855
21856 # How to pass a linker flag through the compiler.
21857 wl=$lt_lt_prog_compiler_wl
21858
21859 # Compiler flag to prevent dynamic linking.
21860 link_static_flag=$lt_lt_prog_compiler_static
21861
21862 # Does compiler simultaneously support -c and -o options?
21863 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21864
21865 # Whether or not to add -lc for building shared libraries.
21866 build_libtool_need_lc=$archive_cmds_need_lc
21867
21868 # Whether or not to disallow shared libs when runtime libs are static.
21869 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21870
21871 # Compiler flag to allow reflexive dlopens.
21872 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21873
21874 # Compiler flag to generate shared objects directly from archives.
21875 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21876
21877 # Whether the compiler copes with passing no objects directly.
21878 compiler_needs_object=$lt_compiler_needs_object
21879
21880 # Create an old-style archive from a shared archive.
21881 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21882
21883 # Create a temporary old-style archive to link instead of a shared archive.
21884 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21885
21886 # Commands used to build a shared archive.
21887 archive_cmds=$lt_archive_cmds
21888 archive_expsym_cmds=$lt_archive_expsym_cmds
21889
21890 # Commands used to build a loadable module if different from building
21891 # a shared archive.
21892 module_cmds=$lt_module_cmds
21893 module_expsym_cmds=$lt_module_expsym_cmds
21894
21895 # Whether we are building with GNU ld or not.
21896 with_gnu_ld=$lt_with_gnu_ld
21897
21898 # Flag that allows shared libraries with undefined symbols to be built.
21899 allow_undefined_flag=$lt_allow_undefined_flag
21900
21901 # Flag that enforces no undefined symbols.
21902 no_undefined_flag=$lt_no_undefined_flag
21903
21904 # Flag to hardcode \$libdir into a binary during linking.
21905 # This must work even if \$libdir does not exist
21906 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21907
21908 # Whether we need a single "-rpath" flag with a separated argument.
21909 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21910
21911 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21912 # DIR into the resulting binary.
21913 hardcode_direct=$hardcode_direct
21914
21915 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21916 # DIR into the resulting binary and the resulting library dependency is
21917 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
21918 # library is relocated.
21919 hardcode_direct_absolute=$hardcode_direct_absolute
21920
21921 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21922 # into the resulting binary.
21923 hardcode_minus_L=$hardcode_minus_L
21924
21925 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21926 # into the resulting binary.
21927 hardcode_shlibpath_var=$hardcode_shlibpath_var
21928
21929 # Set to "yes" if building a shared library automatically hardcodes DIR
21930 # into the library and all subsequent libraries and executables linked
21931 # against it.
21932 hardcode_automatic=$hardcode_automatic
21933
21934 # Set to yes if linker adds runtime paths of dependent libraries
21935 # to runtime path list.
21936 inherit_rpath=$inherit_rpath
21937
21938 # Whether libtool must link a program against all its dependency libraries.
21939 link_all_deplibs=$link_all_deplibs
21940
21941 # Set to "yes" if exported symbols are required.
21942 always_export_symbols=$always_export_symbols
21943
21944 # The commands to list exported symbols.
21945 export_symbols_cmds=$lt_export_symbols_cmds
21946
21947 # Symbols that should not be listed in the preloaded symbols.
21948 exclude_expsyms=$lt_exclude_expsyms
21949
21950 # Symbols that must always be exported.
21951 include_expsyms=$lt_include_expsyms
21952
21953 # Commands necessary for linking programs (against libraries) with templates.
21954 prelink_cmds=$lt_prelink_cmds
21955
21956 # Commands necessary for finishing linking programs.
21957 postlink_cmds=$lt_postlink_cmds
21958
21959 # Specify filename containing input files.
21960 file_list_spec=$lt_file_list_spec
21961
21962 # How to hardcode a shared library path into an executable.
21963 hardcode_action=$hardcode_action
21964
21965 # The directories searched by this compiler when creating a shared library.
21966 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
21967
21968 # Dependencies to place before and after the objects being linked to
21969 # create a shared library.
21970 predep_objects=$lt_predep_objects
21971 postdep_objects=$lt_postdep_objects
21972 predeps=$lt_predeps
21973 postdeps=$lt_postdeps
21974
21975 # The library search path used internally by the compiler when linking
21976 # a shared library.
21977 compiler_lib_search_path=$lt_compiler_lib_search_path
21978
21979 # ### END LIBTOOL CONFIG
21980
21981 _LT_EOF
21982
21983 cat <<'_LT_EOF' >> "$cfgfile"
21984
21985 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
21986
21987 # func_munge_path_list VARIABLE PATH
21988 # -----------------------------------
21989 # VARIABLE is name of variable containing _space_ separated list of
21990 # directories to be munged by the contents of PATH, which is string
21991 # having a format:
21992 # "DIR[:DIR]:"
21993 # string "DIR[ DIR]" will be prepended to VARIABLE
21994 # ":DIR[:DIR]"
21995 # string "DIR[ DIR]" will be appended to VARIABLE
21996 # "DIRP[:DIRP]::[DIRA:]DIRA"
21997 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
21998 # "DIRA[ DIRA]" will be appended to VARIABLE
21999 # "DIR[:DIR]"
22000 # VARIABLE will be replaced by "DIR[ DIR]"
22001 func_munge_path_list ()
22002 {
22003 case x$2 in
22004 x)
22005 ;;
22006 *:)
22007 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
22008 ;;
22009 x:*)
22010 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
22011 ;;
22012 *::*)
22013 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
22014 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
22015 ;;
22016 *)
22017 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
22018 ;;
22019 esac
22020 }
22021
22022
22023 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
22024 func_cc_basename ()
22025 {
22026 for cc_temp in $*""; do
22027 case $cc_temp in
22028 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22029 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22030 \-*) ;;
22031 *) break;;
22032 esac
22033 done
22034 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
22035 }
22036
22037
22038 # ### END FUNCTIONS SHARED WITH CONFIGURE
22039
22040 _LT_EOF
22041
22042 case $host_os in
22043 aix3*)
22044 cat <<\_LT_EOF >> "$cfgfile"
22045 # AIX sometimes has problems with the GCC collect2 program. For some
22046 # reason, if we set the COLLECT_NAMES environment variable, the problems
22047 # vanish in a puff of smoke.
22048 if test set != "${COLLECT_NAMES+set}"; then
22049 COLLECT_NAMES=
22050 export COLLECT_NAMES
22051 fi
22052 _LT_EOF
22053 ;;
22054 esac
22055
22056
22057
22058 ltmain=$ac_aux_dir/ltmain.sh
22059
22060
22061 # We use sed instead of cat because bash on DJGPP gets confused if
22062 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22063 # text mode, it properly converts lines to CR/LF. This bash problem
22064 # is reportedly fixed, but why not run on old versions too?
22065 $SED '$q' "$ltmain" >> "$cfgfile" \
22066 || (rm -f "$cfgfile"; exit 1)
22067
22068 mv -f "$cfgfile" "$ofile" ||
22069 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22070 chmod +x "$ofile"
22071
22072
22073 cat <<_LT_EOF >> "$ofile"
22074
22075 # ### BEGIN LIBTOOL TAG CONFIG: CXX
22076
22077 # The linker used to build libraries.
22078 LD=$lt_LD_CXX
22079
22080 # How to create reloadable object files.
22081 reload_flag=$lt_reload_flag_CXX
22082 reload_cmds=$lt_reload_cmds_CXX
22083
22084 # Commands used to build an old-style archive.
22085 old_archive_cmds=$lt_old_archive_cmds_CXX
22086
22087 # A language specific compiler.
22088 CC=$lt_compiler_CXX
22089
22090 # Is the compiler the GNU compiler?
22091 with_gcc=$GCC_CXX
22092
22093 # Compiler flag to turn off builtin functions.
22094 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
22095
22096 # Additional compiler flags for building library objects.
22097 pic_flag=$lt_lt_prog_compiler_pic_CXX
22098
22099 # How to pass a linker flag through the compiler.
22100 wl=$lt_lt_prog_compiler_wl_CXX
22101
22102 # Compiler flag to prevent dynamic linking.
22103 link_static_flag=$lt_lt_prog_compiler_static_CXX
22104
22105 # Does compiler simultaneously support -c and -o options?
22106 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
22107
22108 # Whether or not to add -lc for building shared libraries.
22109 build_libtool_need_lc=$archive_cmds_need_lc_CXX
22110
22111 # Whether or not to disallow shared libs when runtime libs are static.
22112 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
22113
22114 # Compiler flag to allow reflexive dlopens.
22115 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
22116
22117 # Compiler flag to generate shared objects directly from archives.
22118 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
22119
22120 # Whether the compiler copes with passing no objects directly.
22121 compiler_needs_object=$lt_compiler_needs_object_CXX
22122
22123 # Create an old-style archive from a shared archive.
22124 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
22125
22126 # Create a temporary old-style archive to link instead of a shared archive.
22127 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
22128
22129 # Commands used to build a shared archive.
22130 archive_cmds=$lt_archive_cmds_CXX
22131 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
22132
22133 # Commands used to build a loadable module if different from building
22134 # a shared archive.
22135 module_cmds=$lt_module_cmds_CXX
22136 module_expsym_cmds=$lt_module_expsym_cmds_CXX
22137
22138 # Whether we are building with GNU ld or not.
22139 with_gnu_ld=$lt_with_gnu_ld_CXX
22140
22141 # Flag that allows shared libraries with undefined symbols to be built.
22142 allow_undefined_flag=$lt_allow_undefined_flag_CXX
22143
22144 # Flag that enforces no undefined symbols.
22145 no_undefined_flag=$lt_no_undefined_flag_CXX
22146
22147 # Flag to hardcode \$libdir into a binary during linking.
22148 # This must work even if \$libdir does not exist
22149 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
22150
22151 # Whether we need a single "-rpath" flag with a separated argument.
22152 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
22153
22154 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22155 # DIR into the resulting binary.
22156 hardcode_direct=$hardcode_direct_CXX
22157
22158 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22159 # DIR into the resulting binary and the resulting library dependency is
22160 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
22161 # library is relocated.
22162 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
22163
22164 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22165 # into the resulting binary.
22166 hardcode_minus_L=$hardcode_minus_L_CXX
22167
22168 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22169 # into the resulting binary.
22170 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
22171
22172 # Set to "yes" if building a shared library automatically hardcodes DIR
22173 # into the library and all subsequent libraries and executables linked
22174 # against it.
22175 hardcode_automatic=$hardcode_automatic_CXX
22176
22177 # Set to yes if linker adds runtime paths of dependent libraries
22178 # to runtime path list.
22179 inherit_rpath=$inherit_rpath_CXX
22180
22181 # Whether libtool must link a program against all its dependency libraries.
22182 link_all_deplibs=$link_all_deplibs_CXX
22183
22184 # Set to "yes" if exported symbols are required.
22185 always_export_symbols=$always_export_symbols_CXX
22186
22187 # The commands to list exported symbols.
22188 export_symbols_cmds=$lt_export_symbols_cmds_CXX
22189
22190 # Symbols that should not be listed in the preloaded symbols.
22191 exclude_expsyms=$lt_exclude_expsyms_CXX
22192
22193 # Symbols that must always be exported.
22194 include_expsyms=$lt_include_expsyms_CXX
22195
22196 # Commands necessary for linking programs (against libraries) with templates.
22197 prelink_cmds=$lt_prelink_cmds_CXX
22198
22199 # Commands necessary for finishing linking programs.
22200 postlink_cmds=$lt_postlink_cmds_CXX
22201
22202 # Specify filename containing input files.
22203 file_list_spec=$lt_file_list_spec_CXX
22204
22205 # How to hardcode a shared library path into an executable.
22206 hardcode_action=$hardcode_action_CXX
22207
22208 # The directories searched by this compiler when creating a shared library.
22209 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
22210
22211 # Dependencies to place before and after the objects being linked to
22212 # create a shared library.
22213 predep_objects=$lt_predep_objects_CXX
22214 postdep_objects=$lt_postdep_objects_CXX
22215 predeps=$lt_predeps_CXX
22216 postdeps=$lt_postdeps_CXX
22217
22218 # The library search path used internally by the compiler when linking
22219 # a shared library.
22220 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
22221
22222 # ### END LIBTOOL TAG CONFIG: CXX
22223 _LT_EOF
22224
22225
22226 as_fn_exit 0
22227 _LTEOF
22228 chmod +x "$CONFIG_LT"
22229
22230 # configure is writing to config.log, but config.lt does its own redirection,
22231 # appending to config.log, which fails on DOS, as config.log is still kept
22232 # open by configure. Here we exec the FD to /dev/null, effectively closing
22233 # config.log, so it can be properly (re)opened and appended to by config.lt.
22234 lt_cl_success=:
22235 test yes = "$silent" &&
22236 lt_config_lt_args="$lt_config_lt_args --quiet"
22237 exec 5>/dev/null
22238 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
22239 exec 5>>config.log
22240 $lt_cl_success || as_fn_exit 1
22241
22242 #
22243 #
22244 ac_ext=c
22245 ac_cpp='$CPP $CPPFLAGS'
22246 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22247 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22248 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22249 ac_link="./libtool --mode=link --tag=CC $ac_link"
22250
22251 if test -n "$ac_tool_prefix"; then
22252 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22253 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22255 printf %s "checking for $ac_word... " >&6; }
22256 if test ${ac_cv_prog_PKG_CONFIG+y}
22257 then :
22258 printf %s "(cached) " >&6
22259 else case e in #(
22260 e) if test -n "$PKG_CONFIG"; then
22261 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
22262 else
22263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22264 for as_dir in $PATH
22265 do
22266 IFS=$as_save_IFS
22267 case $as_dir in #(((
22268 '') as_dir=./ ;;
22269 */) ;;
22270 *) as_dir=$as_dir/ ;;
22271 esac
22272 for ac_exec_ext in '' $ac_executable_extensions; do
22273 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
22274 ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
22275 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
22276 break 2
22277 fi
22278 done
22279 done
22280 IFS=$as_save_IFS
22281
22282 fi ;;
22283 esac
22284 fi
22285 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
22286 if test -n "$PKG_CONFIG"; then
22287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22288 printf "%s\n" "$PKG_CONFIG" >&6; }
22289 else
22290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22291 printf "%s\n" "no" >&6; }
22292 fi
22293
22294
22295 fi
22296 if test -z "$ac_cv_prog_PKG_CONFIG"; then
22297 ac_ct_PKG_CONFIG=$PKG_CONFIG
22298 # Extract the first word of "pkg-config", so it can be a program name with args.
22299 set dummy pkg-config; ac_word=$2
22300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22301 printf %s "checking for $ac_word... " >&6; }
22302 if test ${ac_cv_prog_ac_ct_PKG_CONFIG+y}
22303 then :
22304 printf %s "(cached) " >&6
22305 else case e in #(
22306 e) if test -n "$ac_ct_PKG_CONFIG"; then
22307 ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
22308 else
22309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22310 for as_dir in $PATH
22311 do
22312 IFS=$as_save_IFS
22313 case $as_dir in #(((
22314 '') as_dir=./ ;;
22315 */) ;;
22316 *) as_dir=$as_dir/ ;;
22317 esac
22318 for ac_exec_ext in '' $ac_executable_extensions; do
22319 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
22320 ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
22321 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
22322 break 2
22323 fi
22324 done
22325 done
22326 IFS=$as_save_IFS
22327
22328 fi ;;
22329 esac
22330 fi
22331 ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
22332 if test -n "$ac_ct_PKG_CONFIG"; then
22333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PKG_CONFIG" >&5
22334 printf "%s\n" "$ac_ct_PKG_CONFIG" >&6; }
22335 else
22336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22337 printf "%s\n" "no" >&6; }
22338 fi
22339
22340 if test "x$ac_ct_PKG_CONFIG" = x; then
22341 PKG_CONFIG="false"
22342 else
22343 case $cross_compiling:$ac_tool_warned in
22344 yes:)
22345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22346 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22347 ac_tool_warned=yes ;;
22348 esac
22349 PKG_CONFIG=$ac_ct_PKG_CONFIG
22350 fi
22351 else
22352 PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
22353 fi
22354
22355 ##tldbg _KPSE_LIB_FLAGS: Setup kpathsea (-lkpathsea) flags.
22356 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
22357 ##tldbg _KPSE_LIB_FLAGS_TL: kpathsea (kpathsea) lt.
22358
22359 # Check whether --with-system-kpathsea was given.
22360 if test ${with_system_kpathsea+y}
22361 then :
22362 withval=$with_system_kpathsea;
22363 fi
22364 if test "x$with_system_kpathsea" = xyes; then
22365 if $PKG_CONFIG kpathsea; then
22366 KPATHSEA_INCLUDES=`$PKG_CONFIG kpathsea --cflags`
22367 KPATHSEA_LIBS=`$PKG_CONFIG kpathsea --libs`
22368 elif test "x$need_kpathsea:$with_system_kpathsea" = xyes:yes; then
22369 as_fn_error $? "did not find kpathsea" "$LINENO" 5
22370 fi
22371 else
22372 KPATHSEA_INCLUDES="-I$kpse_BLD/texk -I$kpse_SRC/texk"
22373 KPATHSEA_LIBS="$kpse_BLD/texk/kpathsea/libkpathsea.la"
22374 KPATHSEA_DEPEND='${top_builddir}/../kpathsea/libkpathsea.la'
22375 KPATHSEA_RULE='# Rebuild libkpathsea
22376 $(KPATHSEA_DEPEND): ${top_srcdir}/../kpathsea/*.[ch] ${top_builddir}/../kpathsea/paths.h
22377 cd ${top_builddir}/../kpathsea && $(MAKE) $(AM_MAKEFLAGS) rebuild
22378 ${top_builddir}/../kpathsea/paths.h:
22379 cd ${top_builddir}/../kpathsea && $(MAKE) $(AM_MAKEFLAGS) rebuild'
22380 fi
22381
22382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libkpathsea supports debugging" >&5
22383 printf %s "checking if libkpathsea supports debugging... " >&6; }
22384 if test ${kpse_cv_kpse_debug+y}
22385 then :
22386 printf %s "(cached) " >&6
22387 else case e in #(
22388 e) eval CPPFLAGS=\"$KPATHSEA_INCLUDES \$CPPFLAGS\"
22389 eval LIBS=\"$KPATHSEA_LIBS \$LIBS\"
22390
22391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22392 /* end confdefs.h. */
22393 #include <kpathsea/kpathsea.h>
22394 int
22395 main (void)
22396 {
22397 FILE *f = fopen("f", "r")
22398 ;
22399 return 0;
22400 }
22401 _ACEOF
22402 if ac_fn_c_try_link "$LINENO"
22403 then :
22404 kpse_cv_kpse_debug=yes
22405 else case e in #(
22406 e) kpse_cv_kpse_debug=no ;;
22407 esac
22408 fi
22409 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22410 conftest$ac_exeext conftest.$ac_ext
22411 CPPFLAGS=$kpse_save_CPPFLAGS
22412 LIBS=$kpse_save_LIBS
22413 ;;
22414 esac
22415 fi
22416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_kpse_debug" >&5
22417 printf "%s\n" "$kpse_cv_kpse_debug" >&6; }
22418 if test "x$kpse_cv_kpse_debug" != xyes
22419 then :
22420 KPATHSEA_INCLUDES="$KPATHSEA_INCLUDES -DNO_DEBUG"
22421 fi
22422
22423 kpse_search_save_LIBS=$LIBS
22424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
22425 printf %s "checking for library containing pthread_create... " >&6; }
22426 if test ${ac_cv_search_pthread_create+y}
22427 then :
22428 printf %s "(cached) " >&6
22429 else case e in #(
22430 e) ac_func_search_save_LIBS=$LIBS
22431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22432 /* end confdefs.h. */
22433
22434 /* Override any GCC internal prototype to avoid an error.
22435 Use char because int might match the return type of a GCC
22436 builtin and then its argument prototype would still apply.
22437 The 'extern "C"' is for builds by C++ compilers;
22438 although this is not generally supported in C code supporting it here
22439 has little cost and some practical benefit (sr 110532). */
22440 #ifdef __cplusplus
22441 extern "C"
22442 #endif
22443 char pthread_create (void);
22444 int
22445 main (void)
22446 {
22447 return pthread_create ();
22448 ;
22449 return 0;
22450 }
22451 _ACEOF
22452 for ac_lib in '' pthread
22453 do
22454 if test -z "$ac_lib"; then
22455 ac_res="none required"
22456 else
22457 ac_res=-l$ac_lib
22458 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22459 fi
22460 if ac_fn_c_try_link "$LINENO"
22461 then :
22462 ac_cv_search_pthread_create=$ac_res
22463 fi
22464 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22465 conftest$ac_exeext
22466 if test ${ac_cv_search_pthread_create+y}
22467 then :
22468 break
22469 fi
22470 done
22471 if test ${ac_cv_search_pthread_create+y}
22472 then :
22473
22474 else case e in #(
22475 e) ac_cv_search_pthread_create=no ;;
22476 esac
22477 fi
22478 rm conftest.$ac_ext
22479 LIBS=$ac_func_search_save_LIBS ;;
22480 esac
22481 fi
22482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
22483 printf "%s\n" "$ac_cv_search_pthread_create" >&6; }
22484 ac_res=$ac_cv_search_pthread_create
22485 if test "$ac_res" != no
22486 then :
22487 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22488
22489 fi
22490
22491 LIBS=$kpse_search_save_LIBS
22492 case $ac_cv_search_pthread_create in #(
22493 "none required") :
22494 ;; #(
22495 no) :
22496 as_fn_error $? "Sorry, did not find pthread_create()" "$LINENO" 5 ;; #(
22497 *) :
22498 PTHREAD_LIB=$ac_cv_search_pthread_create ;;
22499 esac
22500
22501 echo 'tldbg:KPSE_ICU_FLAGS called: more-icu-libs=icuio icui18n, icu-config-args=--ldflags-icuio.' >&5
22502 ##tldbg _KPSE_LIB_FLAGS: Setup icu (-licuxxx) flags.
22503 echo 'tldbg:_KPSE_LIB_FLAGS called: libdir=icu, libname=icuxxx, options=, tlincl=-DU_STATIC_IMPLEMENTATION -IBLD/libs/icu/include, tllib=BLD/libs/icu/icu-build/lib/libicuio.a BLD/libs/icu/icu-build/lib/libicui18n.a BLD/libs/icu/icu-build/lib/libicuuc.a BLD/libs/icu/icu-build/lib/libicudata.a, tlextra=, rebuildsrcdeps=, rebuildblddeps=${top_builddir}/../../libs/icu/include/unicode/uversion.h.' >&5
22504 ##tldbg _KPSE_LIB_FLAGS_TL: icu (icuxxx) .
22505
22506 # Check whether --with-system-icu was given.
22507 if test ${with_system_icu+y}
22508 then :
22509 withval=$with_system_icu;
22510 fi
22511 if test "x$with_system_icu" = xyes; then
22512 echo 'tldbg:KPSE_ICU_SYSTEM_FLAGS called.' >&5
22513 if test -n "$ac_tool_prefix"; then
22514 # Extract the first word of "${ac_tool_prefix}icu-config", so it can be a program name with args.
22515 set dummy ${ac_tool_prefix}icu-config; ac_word=$2
22516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22517 printf %s "checking for $ac_word... " >&6; }
22518 if test ${ac_cv_prog_ICU_CONFIG+y}
22519 then :
22520 printf %s "(cached) " >&6
22521 else case e in #(
22522 e) if test -n "$ICU_CONFIG"; then
22523 ac_cv_prog_ICU_CONFIG="$ICU_CONFIG" # Let the user override the test.
22524 else
22525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22526 for as_dir in $PATH
22527 do
22528 IFS=$as_save_IFS
22529 case $as_dir in #(((
22530 '') as_dir=./ ;;
22531 */) ;;
22532 *) as_dir=$as_dir/ ;;
22533 esac
22534 for ac_exec_ext in '' $ac_executable_extensions; do
22535 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
22536 ac_cv_prog_ICU_CONFIG="${ac_tool_prefix}icu-config"
22537 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
22538 break 2
22539 fi
22540 done
22541 done
22542 IFS=$as_save_IFS
22543
22544 fi ;;
22545 esac
22546 fi
22547 ICU_CONFIG=$ac_cv_prog_ICU_CONFIG
22548 if test -n "$ICU_CONFIG"; then
22549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ICU_CONFIG" >&5
22550 printf "%s\n" "$ICU_CONFIG" >&6; }
22551 else
22552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22553 printf "%s\n" "no" >&6; }
22554 fi
22555
22556
22557 fi
22558 if test -z "$ac_cv_prog_ICU_CONFIG"; then
22559 ac_ct_ICU_CONFIG=$ICU_CONFIG
22560 # Extract the first word of "icu-config", so it can be a program name with args.
22561 set dummy icu-config; ac_word=$2
22562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22563 printf %s "checking for $ac_word... " >&6; }
22564 if test ${ac_cv_prog_ac_ct_ICU_CONFIG+y}
22565 then :
22566 printf %s "(cached) " >&6
22567 else case e in #(
22568 e) if test -n "$ac_ct_ICU_CONFIG"; then
22569 ac_cv_prog_ac_ct_ICU_CONFIG="$ac_ct_ICU_CONFIG" # Let the user override the test.
22570 else
22571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22572 for as_dir in $PATH
22573 do
22574 IFS=$as_save_IFS
22575 case $as_dir in #(((
22576 '') as_dir=./ ;;
22577 */) ;;
22578 *) as_dir=$as_dir/ ;;
22579 esac
22580 for ac_exec_ext in '' $ac_executable_extensions; do
22581 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
22582 ac_cv_prog_ac_ct_ICU_CONFIG="icu-config"
22583 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
22584 break 2
22585 fi
22586 done
22587 done
22588 IFS=$as_save_IFS
22589
22590 fi ;;
22591 esac
22592 fi
22593 ac_ct_ICU_CONFIG=$ac_cv_prog_ac_ct_ICU_CONFIG
22594 if test -n "$ac_ct_ICU_CONFIG"; then
22595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_ICU_CONFIG" >&5
22596 printf "%s\n" "$ac_ct_ICU_CONFIG" >&6; }
22597 else
22598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22599 printf "%s\n" "no" >&6; }
22600 fi
22601
22602 if test "x$ac_ct_ICU_CONFIG" = x; then
22603 ICU_CONFIG="false"
22604 else
22605 case $cross_compiling:$ac_tool_warned in
22606 yes:)
22607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22608 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22609 ac_tool_warned=yes ;;
22610 esac
22611 ICU_CONFIG=$ac_ct_ICU_CONFIG
22612 fi
22613 else
22614 ICU_CONFIG="$ac_cv_prog_ICU_CONFIG"
22615 fi
22616 if test -n "$ac_tool_prefix"; then
22617 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22618 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22620 printf %s "checking for $ac_word... " >&6; }
22621 if test ${ac_cv_prog_PKG_CONFIG+y}
22622 then :
22623 printf %s "(cached) " >&6
22624 else case e in #(
22625 e) if test -n "$PKG_CONFIG"; then
22626 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
22627 else
22628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22629 for as_dir in $PATH
22630 do
22631 IFS=$as_save_IFS
22632 case $as_dir in #(((
22633 '') as_dir=./ ;;
22634 */) ;;
22635 *) as_dir=$as_dir/ ;;
22636 esac
22637 for ac_exec_ext in '' $ac_executable_extensions; do
22638 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
22639 ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
22640 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
22641 break 2
22642 fi
22643 done
22644 done
22645 IFS=$as_save_IFS
22646
22647 fi ;;
22648 esac
22649 fi
22650 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
22651 if test -n "$PKG_CONFIG"; then
22652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22653 printf "%s\n" "$PKG_CONFIG" >&6; }
22654 else
22655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22656 printf "%s\n" "no" >&6; }
22657 fi
22658
22659
22660 fi
22661 if test -z "$ac_cv_prog_PKG_CONFIG"; then
22662 ac_ct_PKG_CONFIG=$PKG_CONFIG
22663 # Extract the first word of "pkg-config", so it can be a program name with args.
22664 set dummy pkg-config; ac_word=$2
22665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22666 printf %s "checking for $ac_word... " >&6; }
22667 if test ${ac_cv_prog_ac_ct_PKG_CONFIG+y}
22668 then :
22669 printf %s "(cached) " >&6
22670 else case e in #(
22671 e) if test -n "$ac_ct_PKG_CONFIG"; then
22672 ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
22673 else
22674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22675 for as_dir in $PATH
22676 do
22677 IFS=$as_save_IFS
22678 case $as_dir in #(((
22679 '') as_dir=./ ;;
22680 */) ;;
22681 *) as_dir=$as_dir/ ;;
22682 esac
22683 for ac_exec_ext in '' $ac_executable_extensions; do
22684 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
22685 ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
22686 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
22687 break 2
22688 fi
22689 done
22690 done
22691 IFS=$as_save_IFS
22692
22693 fi ;;
22694 esac
22695 fi
22696 ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
22697 if test -n "$ac_ct_PKG_CONFIG"; then
22698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PKG_CONFIG" >&5
22699 printf "%s\n" "$ac_ct_PKG_CONFIG" >&6; }
22700 else
22701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22702 printf "%s\n" "no" >&6; }
22703 fi
22704
22705 if test "x$ac_ct_PKG_CONFIG" = x; then
22706 PKG_CONFIG="false"
22707 else
22708 case $cross_compiling:$ac_tool_warned in
22709 yes:)
22710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22711 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22712 ac_tool_warned=yes ;;
22713 esac
22714 PKG_CONFIG=$ac_ct_PKG_CONFIG
22715 fi
22716 else
22717 PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
22718 fi
22719 if $ICU_CONFIG --version >/dev/null 2>&1; then
22720 ICU_INCLUDES=`$ICU_CONFIG --cppflags`
22721 ICU_LIBS=`$ICU_CONFIG --ldflags-searchpath --ldflags-icuio --ldflags-libsonly --ldflags-system`
22722 elif $PKG_CONFIG --libs icu-uc icu-io >/dev/null 2>&1; then
22723 ICU_INCLUDES=`$PKG_CONFIG --cflags icu-uc icu-io`
22724 ICU_LIBS=`$PKG_CONFIG --libs icu-uc icu-io`
22725 elif test "x$need_icu:$with_system_icu" = xyes:yes; then
22726 as_fn_error $? "did not find either pkg-config or icu-config; one is required for system icu library support" "$LINENO" 5
22727 fi
22728 else
22729 ICU_INCLUDES="-DU_STATIC_IMPLEMENTATION -I$kpse_BLD/libs/icu/include"
22730 ICU_LIBS="$kpse_BLD/libs/icu/icu-build/lib/libicuio.a $kpse_BLD/libs/icu/icu-build/lib/libicui18n.a $kpse_BLD/libs/icu/icu-build/lib/libicuuc.a $kpse_BLD/libs/icu/icu-build/lib/libicudata.a"
22731 ICU_DEPEND='${top_builddir}/../../libs/icu/icu-build/lib/libicuio.a ${top_builddir}/../../libs/icu/icu-build/lib/libicui18n.a ${top_builddir}/../../libs/icu/icu-build/lib/libicuuc.a ${top_builddir}/../../libs/icu/icu-build/lib/libicudata.a'
22732 ICU_RULE='# Rebuild libicuxxx
22733 $(ICU_DEPEND): ${top_builddir}/../../libs/icu/include/unicode/uversion.h
22734 cd ${top_builddir}/../../libs/icu && $(MAKE) $(AM_MAKEFLAGS) rebuild
22735 ${top_builddir}/../../libs/icu/include/unicode/uversion.h:
22736 cd ${top_builddir}/../../libs/icu && $(MAKE) $(AM_MAKEFLAGS) rebuild'
22737 fi
22738 # checking for openbsd to add -lpthread for icu.
22739 case $build_os in
22740 openbsd*)
22741 eval ICUXXX_LIBS=\"$ICUXXX_LIBS -lpthread\"
22742 ;;
22743 esac
22744
22745
22746 ac_config_files="$ac_config_files Makefile"
22747
22748
22749 cat >confcache <<\_ACEOF
22750 # This file is a shell script that caches the results of configure
22751 # tests run on this system so they can be shared between configure
22752 # scripts and configure runs, see configure's option --config-cache.
22753 # It is not useful on other systems. If it contains results you don't
22754 # want to keep, you may remove or edit it.
22755 #
22756 # config.status only pays attention to the cache file if you give it
22757 # the --recheck option to rerun configure.
22758 #
22759 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
22760 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
22761 # following values.
22762
22763 _ACEOF
22764
22765 # The following way of writing the cache mishandles newlines in values,
22766 # but we know of no workaround that is simple, portable, and efficient.
22767 # So, we kill variables containing newlines.
22768 # Ultrix sh set writes to stderr and can't be redirected directly,
22769 # and sets the high bit in the cache file unless we assign to the vars.
22770 (
22771 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22772 eval ac_val=\$$ac_var
22773 case $ac_val in #(
22774 *${as_nl}*)
22775 case $ac_var in #(
22776 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
22777 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22778 esac
22779 case $ac_var in #(
22780 _ | IFS | as_nl) ;; #(
22781 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22782 *) { eval $ac_var=; unset $ac_var;} ;;
22783 esac ;;
22784 esac
22785 done
22786
22787 (set) 2>&1 |
22788 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22789 *${as_nl}ac_space=\ *)
22790 # 'set' does not quote correctly, so add quotes: double-quote
22791 # substitution turns \\\\ into \\, and sed turns \\ into \.
22792 sed -n \
22793 "s/'/'\\\\''/g;
22794 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22795 ;; #(
22796 *)
22797 # 'set' quotes correctly as required by POSIX, so do not add quotes.
22798 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22799 ;;
22800 esac |
22801 sort
22802 ) |
22803 sed '
22804 /^ac_cv_env_/b end
22805 t clear
22806 :clear
22807 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
22808 t end
22809 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22810 :end' >>confcache
22811 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22812 if test -w "$cache_file"; then
22813 if test "x$cache_file" != "x/dev/null"; then
22814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
22815 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
22816 if test ! -f "$cache_file" || test -h "$cache_file"; then
22817 cat confcache >"$cache_file"
22818 else
22819 case $cache_file in #(
22820 */* | ?:*)
22821 mv -f confcache "$cache_file"$$ &&
22822 mv -f "$cache_file"$$ "$cache_file" ;; #(
22823 *)
22824 mv -f confcache "$cache_file" ;;
22825 esac
22826 fi
22827 fi
22828 else
22829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
22830 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
22831 fi
22832 fi
22833 rm -f confcache
22834
22835 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22836 # Let make expand exec_prefix.
22837 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22838
22839 DEFS=-DHAVE_CONFIG_H
22840
22841 ac_libobjs=
22842 ac_ltlibobjs=
22843 U=
22844 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22845 # 1. Remove the extension, and $U if already installed.
22846 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22847 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
22848 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22849 # will be set to the directory where LIBOBJS objects are built.
22850 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22851 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
22852 done
22853 LIBOBJS=$ac_libobjs
22854
22855 LTLIBOBJS=$ac_ltlibobjs
22856
22857
22858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
22859 printf %s "checking that generated files are newer than configure... " >&6; }
22860 if test -n "$am_sleep_pid"; then
22861 # Hide warnings about reused PIDs.
22862 wait $am_sleep_pid 2>/dev/null
22863 fi
22864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
22865 printf "%s\n" "done" >&6; }
22866 case $enable_silent_rules in # (((
22867 yes) AM_DEFAULT_VERBOSITY=0;;
22868 no) AM_DEFAULT_VERBOSITY=1;;
22869 esac
22870 if test $am_cv_make_support_nested_variables = yes; then
22871 AM_V='$(V)'
22872 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
22873 else
22874 AM_V=$AM_DEFAULT_VERBOSITY
22875 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
22876 fi
22877
22878 if test -n "$EXEEXT"; then
22879 am__EXEEXT_TRUE=
22880 am__EXEEXT_FALSE='#'
22881 else
22882 am__EXEEXT_TRUE='#'
22883 am__EXEEXT_FALSE=
22884 fi
22885
22886 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22887 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
22888 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22889 fi
22890 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22891 as_fn_error $? "conditional \"AMDEP\" was never defined.
22892 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22893 fi
22894 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22895 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
22896 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22897 fi
22898 # Check whether --enable-year2038 was given.
22899 if test ${enable_year2038+y}
22900 then :
22901 enableval=$enable_year2038;
22902 fi
22903
22904 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22905 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
22906 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22907 fi
22908
22909 : "${CONFIG_STATUS=./config.status}"
22910 ac_write_fail=0
22911 ac_clean_files_save=$ac_clean_files
22912 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
22914 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
22915 as_write_fail=0
22916 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
22917 #! $SHELL
22918 # Generated by $as_me.
22919 # Run this file to recreate the current configuration.
22920 # Compiler output produced by configure, useful for debugging
22921 # configure, is in config.log if it exists.
22922
22923 debug=false
22924 ac_cs_recheck=false
22925 ac_cs_silent=false
22926
22927 SHELL=\${CONFIG_SHELL-$SHELL}
22928 export SHELL
22929 _ASEOF
22930 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
22931 ## -------------------- ##
22932 ## M4sh Initialization. ##
22933 ## -------------------- ##
22934
22935 # Be more Bourne compatible
22936 DUALCASE=1; export DUALCASE # for MKS sh
22937 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22938 then :
22939 emulate sh
22940 NULLCMD=:
22941 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22942 # is contrary to our usage. Disable this feature.
22943 alias -g '${1+"$@"}'='"$@"'
22944 setopt NO_GLOB_SUBST
22945 else case e in #(
22946 e) case `(set -o) 2>/dev/null` in #(
22947 *posix*) :
22948 set -o posix ;; #(
22949 *) :
22950 ;;
22951 esac ;;
22952 esac
22953 fi
22954
22955
22956
22957 # Reset variables that may have inherited troublesome values from
22958 # the environment.
22959
22960 # IFS needs to be set, to space, tab, and newline, in precisely that order.
22961 # (If _AS_PATH_WALK were called with IFS unset, it would have the
22962 # side effect of setting IFS to empty, thus disabling word splitting.)
22963 # Quoting is to prevent editors from complaining about space-tab.
22964 as_nl='
22965 '
22966 export as_nl
22967 IFS=" "" $as_nl"
22968
22969 PS1='$ '
22970 PS2='> '
22971 PS4='+ '
22972
22973 # Ensure predictable behavior from utilities with locale-dependent output.
22974 LC_ALL=C
22975 export LC_ALL
22976 LANGUAGE=C
22977 export LANGUAGE
22978
22979 # We cannot yet rely on "unset" to work, but we need these variables
22980 # to be unset--not just set to an empty or harmless value--now, to
22981 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
22982 # also avoids known problems related to "unset" and subshell syntax
22983 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
22984 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
22985 do eval test \${$as_var+y} \
22986 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
22987 done
22988
22989 # Ensure that fds 0, 1, and 2 are open.
22990 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
22991 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
22992 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
22993
22994 # The user is always right.
22995 if ${PATH_SEPARATOR+false} :; then
22996 PATH_SEPARATOR=:
22997 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22998 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22999 PATH_SEPARATOR=';'
23000 }
23001 fi
23002
23003
23004 # Find who we are. Look in the path if we contain no directory separator.
23005 as_myself=
23006 case $0 in #((
23007 *[\\/]* ) as_myself=$0 ;;
23008 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23009 for as_dir in $PATH
23010 do
23011 IFS=$as_save_IFS
23012 case $as_dir in #(((
23013 '') as_dir=./ ;;
23014 */) ;;
23015 *) as_dir=$as_dir/ ;;
23016 esac
23017 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
23018 done
23019 IFS=$as_save_IFS
23020
23021 ;;
23022 esac
23023 # We did not find ourselves, most probably we were run as 'sh COMMAND'
23024 # in which case we are not to be found in the path.
23025 if test "x$as_myself" = x; then
23026 as_myself=$0
23027 fi
23028 if test ! -f "$as_myself"; then
23029 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23030 exit 1
23031 fi
23032
23033
23034
23035 # as_fn_error STATUS ERROR [LINENO LOG_FD]
23036 # ----------------------------------------
23037 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
23038 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
23039 # script with STATUS, using 1 if that was 0.
23040 as_fn_error ()
23041 {
23042 as_status=$1; test $as_status -eq 0 && as_status=1
23043 if test "$4"; then
23044 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
23045 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
23046 fi
23047 printf "%s\n" "$as_me: error: $2" >&2
23048 as_fn_exit $as_status
23049 } # as_fn_error
23050
23051
23052 # as_fn_set_status STATUS
23053 # -----------------------
23054 # Set $? to STATUS, without forking.
23055 as_fn_set_status ()
23056 {
23057 return $1
23058 } # as_fn_set_status
23059
23060 # as_fn_exit STATUS
23061 # -----------------
23062 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
23063 as_fn_exit ()
23064 {
23065 set +e
23066 as_fn_set_status $1
23067 exit $1
23068 } # as_fn_exit
23069
23070 # as_fn_unset VAR
23071 # ---------------
23072 # Portably unset VAR.
23073 as_fn_unset ()
23074 {
23075 { eval $1=; unset $1;}
23076 }
23077 as_unset=as_fn_unset
23078
23079 # as_fn_append VAR VALUE
23080 # ----------------------
23081 # Append the text in VALUE to the end of the definition contained in VAR. Take
23082 # advantage of any shell optimizations that allow amortized linear growth over
23083 # repeated appends, instead of the typical quadratic growth present in naive
23084 # implementations.
23085 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
23086 then :
23087 eval 'as_fn_append ()
23088 {
23089 eval $1+=\$2
23090 }'
23091 else case e in #(
23092 e) as_fn_append ()
23093 {
23094 eval $1=\$$1\$2
23095 } ;;
23096 esac
23097 fi # as_fn_append
23098
23099 # as_fn_arith ARG...
23100 # ------------------
23101 # Perform arithmetic evaluation on the ARGs, and store the result in the
23102 # global $as_val. Take advantage of shells that can avoid forks. The arguments
23103 # must be portable across $(()) and expr.
23104 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
23105 then :
23106 eval 'as_fn_arith ()
23107 {
23108 as_val=$(( $* ))
23109 }'
23110 else case e in #(
23111 e) as_fn_arith ()
23112 {
23113 as_val=`expr "$@" || test $? -eq 1`
23114 } ;;
23115 esac
23116 fi # as_fn_arith
23117
23118
23119 if expr a : '\(a\)' >/dev/null 2>&1 &&
23120 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23121 as_expr=expr
23122 else
23123 as_expr=false
23124 fi
23125
23126 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23127 as_basename=basename
23128 else
23129 as_basename=false
23130 fi
23131
23132 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23133 as_dirname=dirname
23134 else
23135 as_dirname=false
23136 fi
23137
23138 as_me=`$as_basename -- "$0" ||
23139 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23140 X"$0" : 'X\(//\)$' \| \
23141 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23142 printf "%s\n" X/"$0" |
23143 sed '/^.*\/\([^/][^/]*\)\/*$/{
23144 s//\1/
23145 q
23146 }
23147 /^X\/\(\/\/\)$/{
23148 s//\1/
23149 q
23150 }
23151 /^X\/\(\/\).*/{
23152 s//\1/
23153 q
23154 }
23155 s/.*/./; q'`
23156
23157 # Avoid depending upon Character Ranges.
23158 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23159 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23160 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23161 as_cr_digits='0123456789'
23162 as_cr_alnum=$as_cr_Letters$as_cr_digits
23163
23164
23165 # Determine whether it's possible to make 'echo' print without a newline.
23166 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
23167 # for compatibility with existing Makefiles.
23168 ECHO_C= ECHO_N= ECHO_T=
23169 case `echo -n x` in #(((((
23170 -n*)
23171 case `echo 'xy\c'` in
23172 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23173 xy) ECHO_C='\c';;
23174 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
23175 ECHO_T=' ';;
23176 esac;;
23177 *)
23178 ECHO_N='-n';;
23179 esac
23180
23181 # For backward compatibility with old third-party macros, we provide
23182 # the shell variables $as_echo and $as_echo_n. New code should use
23183 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
23184 as_echo='printf %s\n'
23185 as_echo_n='printf %s'
23186
23187 rm -f conf$$ conf$$.exe conf$$.file
23188 if test -d conf$$.dir; then
23189 rm -f conf$$.dir/conf$$.file
23190 else
23191 rm -f conf$$.dir
23192 mkdir conf$$.dir 2>/dev/null
23193 fi
23194 if (echo >conf$$.file) 2>/dev/null; then
23195 if ln -s conf$$.file conf$$ 2>/dev/null; then
23196 as_ln_s='ln -s'
23197 # ... but there are two gotchas:
23198 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
23199 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
23200 # In both cases, we have to default to 'cp -pR'.
23201 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23202 as_ln_s='cp -pR'
23203 elif ln conf$$.file conf$$ 2>/dev/null; then
23204 as_ln_s=ln
23205 else
23206 as_ln_s='cp -pR'
23207 fi
23208 else
23209 as_ln_s='cp -pR'
23210 fi
23211 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23212 rmdir conf$$.dir 2>/dev/null
23213
23214
23215 # as_fn_mkdir_p
23216 # -------------
23217 # Create "$as_dir" as a directory, including parents if necessary.
23218 as_fn_mkdir_p ()
23219 {
23220
23221 case $as_dir in #(
23222 -*) as_dir=./$as_dir;;
23223 esac
23224 test -d "$as_dir" || eval $as_mkdir_p || {
23225 as_dirs=
23226 while :; do
23227 case $as_dir in #(
23228 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23229 *) as_qdir=$as_dir;;
23230 esac
23231 as_dirs="'$as_qdir' $as_dirs"
23232 as_dir=`$as_dirname -- "$as_dir" ||
23233 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23234 X"$as_dir" : 'X\(//\)[^/]' \| \
23235 X"$as_dir" : 'X\(//\)$' \| \
23236 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23237 printf "%s\n" X"$as_dir" |
23238 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23239 s//\1/
23240 q
23241 }
23242 /^X\(\/\/\)[^/].*/{
23243 s//\1/
23244 q
23245 }
23246 /^X\(\/\/\)$/{
23247 s//\1/
23248 q
23249 }
23250 /^X\(\/\).*/{
23251 s//\1/
23252 q
23253 }
23254 s/.*/./; q'`
23255 test -d "$as_dir" && break
23256 done
23257 test -z "$as_dirs" || eval "mkdir $as_dirs"
23258 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
23259
23260
23261 } # as_fn_mkdir_p
23262 if mkdir -p . 2>/dev/null; then
23263 as_mkdir_p='mkdir -p "$as_dir"'
23264 else
23265 test -d ./-p && rmdir ./-p
23266 as_mkdir_p=false
23267 fi
23268
23269
23270 # as_fn_executable_p FILE
23271 # -----------------------
23272 # Test if FILE is an executable regular file.
23273 as_fn_executable_p ()
23274 {
23275 test -f "$1" && test -x "$1"
23276 } # as_fn_executable_p
23277 as_test_x='test -x'
23278 as_executable_p=as_fn_executable_p
23279
23280 # Sed expression to map a string onto a valid CPP name.
23281 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23282 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
23283
23284 # Sed expression to map a string onto a valid variable name.
23285 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
23286 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
23287
23288
23289 exec 6>&1
23290 ## ----------------------------------- ##
23291 ## Main body of $CONFIG_STATUS script. ##
23292 ## ----------------------------------- ##
23293 _ASEOF
23294 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
23295
23296 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23297 # Save the log message, to keep $0 and so on meaningful, and to
23298 # report actual input values of CONFIG_FILES etc. instead of their
23299 # values after options handling.
23300 ac_log="
23301 This file was extended by upmendex (TeX Live) $as_me 1.22, which was
23302 generated by GNU Autoconf 2.72. Invocation command line was
23303
23304 CONFIG_FILES = $CONFIG_FILES
23305 CONFIG_HEADERS = $CONFIG_HEADERS
23306 CONFIG_LINKS = $CONFIG_LINKS
23307 CONFIG_COMMANDS = $CONFIG_COMMANDS
23308 $ $0 $@
23309
23310 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23311 "
23312
23313 _ACEOF
23314
23315 case $ac_config_files in *"
23316 "*) set x $ac_config_files; shift; ac_config_files=$*;;
23317 esac
23318
23319 case $ac_config_headers in *"
23320 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
23321 esac
23322
23323
23324 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23325 # Files that config.status was made for.
23326 config_files="$ac_config_files"
23327 config_headers="$ac_config_headers"
23328 config_commands="$ac_config_commands"
23329
23330 _ACEOF
23331
23332 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23333 ac_cs_usage="\
23334 '$as_me' instantiates files and other configuration actions
23335 from templates according to the current configuration. Unless the files
23336 and actions are specified as TAGs, all are instantiated by default.
23337
23338 Usage: $0 [OPTION]... [TAG]...
23339
23340 -h, --help print this help, then exit
23341 -V, --version print version number and configuration settings, then exit
23342 --config print configuration, then exit
23343 -q, --quiet, --silent
23344 do not print progress messages
23345 -d, --debug don't remove temporary files
23346 --recheck update $as_me by reconfiguring in the same conditions
23347 --file=FILE[:TEMPLATE]
23348 instantiate the configuration file FILE
23349 --header=FILE[:TEMPLATE]
23350 instantiate the configuration header FILE
23351
23352 Configuration files:
23353 $config_files
23354
23355 Configuration headers:
23356 $config_headers
23357
23358 Configuration commands:
23359 $config_commands
23360
23361 Report bugs to the package provider."
23362
23363 _ACEOF
23364 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
23365 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
23366 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23367 ac_cs_config='$ac_cs_config_escaped'
23368 ac_cs_version="\\
23369 upmendex (TeX Live) config.status 1.22
23370 configured by $0, generated by GNU Autoconf 2.72,
23371 with options \\"\$ac_cs_config\\"
23372
23373 Copyright (C) 2023 Free Software Foundation, Inc.
23374 This config.status script is free software; the Free Software Foundation
23375 gives unlimited permission to copy, distribute and modify it."
23376
23377 ac_pwd='$ac_pwd'
23378 srcdir='$srcdir'
23379 INSTALL='$INSTALL'
23380 MKDIR_P='$MKDIR_P'
23381 AWK='$AWK'
23382 test -n "\$AWK" || AWK=awk
23383 _ACEOF
23384
23385 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23386 # The default lists apply if the user does not specify any file.
23387 ac_need_defaults=:
23388 while test $# != 0
23389 do
23390 case $1 in
23391 --*=?*)
23392 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23393 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23394 ac_shift=:
23395 ;;
23396 --*=)
23397 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23398 ac_optarg=
23399 ac_shift=:
23400 ;;
23401 *)
23402 ac_option=$1
23403 ac_optarg=$2
23404 ac_shift=shift
23405 ;;
23406 esac
23407
23408 case $ac_option in
23409 # Handling of the options.
23410 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23411 ac_cs_recheck=: ;;
23412 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23413 printf "%s\n" "$ac_cs_version"; exit ;;
23414 --config | --confi | --conf | --con | --co | --c )
23415 printf "%s\n" "$ac_cs_config"; exit ;;
23416 --debug | --debu | --deb | --de | --d | -d )
23417 debug=: ;;
23418 --file | --fil | --fi | --f )
23419 $ac_shift
23420 case $ac_optarg in
23421 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23422 '') as_fn_error $? "missing file argument" ;;
23423 esac
23424 as_fn_append CONFIG_FILES " '$ac_optarg'"
23425 ac_need_defaults=false;;
23426 --header | --heade | --head | --hea )
23427 $ac_shift
23428 case $ac_optarg in
23429 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23430 esac
23431 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
23432 ac_need_defaults=false;;
23433 --he | --h)
23434 # Conflict between --help and --header
23435 as_fn_error $? "ambiguous option: '$1'
23436 Try '$0 --help' for more information.";;
23437 --help | --hel | -h )
23438 printf "%s\n" "$ac_cs_usage"; exit ;;
23439 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23440 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23441 ac_cs_silent=: ;;
23442
23443 # This is an error.
23444 -*) as_fn_error $? "unrecognized option: '$1'
23445 Try '$0 --help' for more information." ;;
23446
23447 *) as_fn_append ac_config_targets " $1"
23448 ac_need_defaults=false ;;
23449
23450 esac
23451 shift
23452 done
23453
23454 ac_configure_extra_args=
23455
23456 if $ac_cs_silent; then
23457 exec 6>/dev/null
23458 ac_configure_extra_args="$ac_configure_extra_args --silent"
23459 fi
23460
23461 _ACEOF
23462 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23463 if \$ac_cs_recheck; then
23464 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23465 shift
23466 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
23467 CONFIG_SHELL='$SHELL'
23468 export CONFIG_SHELL
23469 exec "\$@"
23470 fi
23471
23472 _ACEOF
23473 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23474 exec 5>>config.log
23475 {
23476 echo
23477 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23478 ## Running $as_me. ##
23479 _ASBOX
23480 printf "%s\n" "$ac_log"
23481 } >&5
23482
23483 _ACEOF
23484 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23485 #
23486 # INIT-COMMANDS
23487 #
23488 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
23489
23490
23491 # The HP-UX ksh and POSIX shell print the target directory to stdout
23492 # if CDPATH is set.
23493 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
23494
23495 sed_quote_subst='$sed_quote_subst'
23496 double_quote_subst='$double_quote_subst'
23497 delay_variable_subst='$delay_variable_subst'
23498 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
23499 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
23500 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
23501 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
23502 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
23503 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
23504 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
23505 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
23506 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
23507 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
23508 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
23509 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
23510 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
23511 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
23512 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
23513 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
23514 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
23515 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
23516 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
23517 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
23518 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
23519 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
23520 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
23521 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
23522 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
23523 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
23524 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
23525 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
23526 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
23527 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
23528 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
23529 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
23530 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
23531 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
23532 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
23533 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
23534 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
23535 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
23536 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
23537 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
23538 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
23539 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
23540 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
23541 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
23542 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
23543 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
23544 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
23545 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
23546 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
23547 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
23548 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
23549 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
23550 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
23551 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
23552 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
23553 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
23554 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
23555 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
23556 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
23557 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
23558 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
23559 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"`'
23560 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
23561 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
23562 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
23563 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
23564 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
23565 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
23566 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
23567 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
23568 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
23569 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
23570 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
23571 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
23572 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
23573 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
23574 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
23575 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
23576 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
23577 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
23578 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
23579 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
23580 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
23581 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
23582 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
23583 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
23584 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
23585 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
23586 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
23587 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
23588 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
23589 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
23590 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
23591 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
23592 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
23593 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
23594 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
23595 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
23596 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
23597 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
23598 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
23599 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
23600 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
23601 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
23602 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
23603 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
23604 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
23605 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
23606 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
23607 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
23608 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
23609 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
23610 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
23611 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
23612 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
23613 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
23614 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
23615 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
23616 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
23617 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
23618 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
23619 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
23620 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
23621 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
23622 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
23623 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
23624 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
23625 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
23626 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
23627 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
23628 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
23629 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
23630 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
23631 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
23632 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
23633 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
23634 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
23635 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
23636 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
23637 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
23638 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
23639 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
23640 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
23641 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
23642 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
23643 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
23644 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23645 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23646 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
23647 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
23648 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
23649 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
23650 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
23651 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
23652 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
23653 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
23654 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
23655 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
23656 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
23657 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
23658 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23659 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23660 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23661 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23662 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23663 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23664 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
23665 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
23666 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
23667 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
23668 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
23669 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
23670 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
23671 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
23672 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
23673 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
23674 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
23675 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
23676 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
23677 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23678 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
23679 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
23680 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23681 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23682 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
23683 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
23684 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
23685 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
23686 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
23687 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
23688 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
23689 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
23690
23691 LTCC='$LTCC'
23692 LTCFLAGS='$LTCFLAGS'
23693 compiler='$compiler_DEFAULT'
23694
23695 # A function that is used when there is no print builtin or printf.
23696 func_fallback_echo ()
23697 {
23698 eval 'cat <<_LTECHO_EOF
23699 \$1
23700 _LTECHO_EOF'
23701 }
23702
23703 # Quote evaled strings.
23704 for var in AS \
23705 DLLTOOL \
23706 OBJDUMP \
23707 SHELL \
23708 ECHO \
23709 PATH_SEPARATOR \
23710 SED \
23711 GREP \
23712 EGREP \
23713 FGREP \
23714 LD \
23715 NM \
23716 LN_S \
23717 lt_SP2NL \
23718 lt_NL2SP \
23719 reload_flag \
23720 FILECMD \
23721 deplibs_check_method \
23722 file_magic_cmd \
23723 file_magic_glob \
23724 want_nocaseglob \
23725 sharedlib_from_linklib_cmd \
23726 AR \
23727 archiver_list_spec \
23728 STRIP \
23729 RANLIB \
23730 CC \
23731 CFLAGS \
23732 compiler \
23733 lt_cv_sys_global_symbol_pipe \
23734 lt_cv_sys_global_symbol_to_cdecl \
23735 lt_cv_sys_global_symbol_to_import \
23736 lt_cv_sys_global_symbol_to_c_name_address \
23737 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
23738 lt_cv_nm_interface \
23739 nm_file_list_spec \
23740 lt_cv_truncate_bin \
23741 lt_prog_compiler_no_builtin_flag \
23742 lt_prog_compiler_pic \
23743 lt_prog_compiler_wl \
23744 lt_prog_compiler_static \
23745 lt_cv_prog_compiler_c_o \
23746 need_locks \
23747 MANIFEST_TOOL \
23748 DSYMUTIL \
23749 NMEDIT \
23750 LIPO \
23751 OTOOL \
23752 OTOOL64 \
23753 shrext_cmds \
23754 export_dynamic_flag_spec \
23755 whole_archive_flag_spec \
23756 compiler_needs_object \
23757 with_gnu_ld \
23758 allow_undefined_flag \
23759 no_undefined_flag \
23760 hardcode_libdir_flag_spec \
23761 hardcode_libdir_separator \
23762 exclude_expsyms \
23763 include_expsyms \
23764 file_list_spec \
23765 variables_saved_for_relink \
23766 libname_spec \
23767 library_names_spec \
23768 soname_spec \
23769 install_override_mode \
23770 finish_eval \
23771 old_striplib \
23772 striplib \
23773 compiler_lib_search_dirs \
23774 predep_objects \
23775 postdep_objects \
23776 predeps \
23777 postdeps \
23778 compiler_lib_search_path \
23779 LD_CXX \
23780 reload_flag_CXX \
23781 compiler_CXX \
23782 lt_prog_compiler_no_builtin_flag_CXX \
23783 lt_prog_compiler_pic_CXX \
23784 lt_prog_compiler_wl_CXX \
23785 lt_prog_compiler_static_CXX \
23786 lt_cv_prog_compiler_c_o_CXX \
23787 export_dynamic_flag_spec_CXX \
23788 whole_archive_flag_spec_CXX \
23789 compiler_needs_object_CXX \
23790 with_gnu_ld_CXX \
23791 allow_undefined_flag_CXX \
23792 no_undefined_flag_CXX \
23793 hardcode_libdir_flag_spec_CXX \
23794 hardcode_libdir_separator_CXX \
23795 exclude_expsyms_CXX \
23796 include_expsyms_CXX \
23797 file_list_spec_CXX \
23798 compiler_lib_search_dirs_CXX \
23799 predep_objects_CXX \
23800 postdep_objects_CXX \
23801 predeps_CXX \
23802 postdeps_CXX \
23803 compiler_lib_search_path_CXX; do
23804 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
23805 *[\\\\\\\`\\"\\\$]*)
23806 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
23807 ;;
23808 *)
23809 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23810 ;;
23811 esac
23812 done
23813
23814 # Double-quote double-evaled strings.
23815 for var in reload_cmds \
23816 old_postinstall_cmds \
23817 old_postuninstall_cmds \
23818 old_archive_cmds \
23819 extract_expsyms_cmds \
23820 old_archive_from_new_cmds \
23821 old_archive_from_expsyms_cmds \
23822 archive_cmds \
23823 archive_expsym_cmds \
23824 module_cmds \
23825 module_expsym_cmds \
23826 export_symbols_cmds \
23827 prelink_cmds \
23828 postlink_cmds \
23829 postinstall_cmds \
23830 postuninstall_cmds \
23831 finish_cmds \
23832 sys_lib_search_path_spec \
23833 configure_time_dlsearch_path \
23834 configure_time_lt_sys_library_path \
23835 reload_cmds_CXX \
23836 old_archive_cmds_CXX \
23837 old_archive_from_new_cmds_CXX \
23838 old_archive_from_expsyms_cmds_CXX \
23839 archive_cmds_CXX \
23840 archive_expsym_cmds_CXX \
23841 module_cmds_CXX \
23842 module_expsym_cmds_CXX \
23843 export_symbols_cmds_CXX \
23844 prelink_cmds_CXX \
23845 postlink_cmds_CXX; do
23846 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
23847 *[\\\\\\\`\\"\\\$]*)
23848 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
23849 ;;
23850 *)
23851 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23852 ;;
23853 esac
23854 done
23855
23856 ac_aux_dir='$ac_aux_dir'
23857
23858 # See if we are running on zsh, and set the options that allow our
23859 # commands through without removal of \ escapes INIT.
23860 if test -n "\${ZSH_VERSION+set}"; then
23861 setopt NO_GLOB_SUBST
23862 fi
23863
23864
23865 PACKAGE='$PACKAGE'
23866 VERSION='$VERSION'
23867 RM='$RM'
23868 ofile='$ofile'
23869
23870
23871
23872 ac_aux_dir='$ac_aux_dir'
23873
23874
23875 cxxld_sh='$cxxld_sh'
23876
23877 _ACEOF
23878
23879 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23880
23881 # Handling of arguments.
23882 for ac_config_target in $ac_config_targets
23883 do
23884 case $ac_config_target in
23885 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23886 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
23887 "c-auto.h") CONFIG_HEADERS="$CONFIG_HEADERS c-auto.h:c-auto.in" ;;
23888 "CXXLD.sh") CONFIG_COMMANDS="$CONFIG_COMMANDS CXXLD.sh" ;;
23889 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23890
23891 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
23892 esac
23893 done
23894
23895
23896 # If the user did not use the arguments to specify the items to instantiate,
23897 # then the envvar interface is used. Set only those that are not.
23898 # We use the long form for the default assignment because of an extremely
23899 # bizarre bug on SunOS 4.1.3.
23900 if $ac_need_defaults; then
23901 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
23902 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
23903 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
23904 fi
23905
23906 # Have a temporary directory for convenience. Make it in the build tree
23907 # simply because there is no reason against having it here, and in addition,
23908 # creating and moving files from /tmp can sometimes cause problems.
23909 # Hook for its removal unless debugging.
23910 # Note that there is a small window in which the directory will not be cleaned:
23911 # after its creation but before its name has been assigned to '$tmp'.
23912 $debug ||
23913 {
23914 tmp= ac_tmp=
23915 trap 'exit_status=$?
23916 : "${ac_tmp:=$tmp}"
23917 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
23918 ' 0
23919 trap 'as_fn_exit 1' 1 2 13 15
23920 }
23921 # Create a (secure) tmp directory for tmp files.
23922
23923 {
23924 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23925 test -d "$tmp"
23926 } ||
23927 {
23928 tmp=./conf$$-$RANDOM
23929 (umask 077 && mkdir "$tmp")
23930 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
23931 ac_tmp=$tmp
23932
23933 # Set up the scripts for CONFIG_FILES section.
23934 # No need to generate them if there are no CONFIG_FILES.
23935 # This happens for instance with './config.status config.h'.
23936 if test -n "$CONFIG_FILES"; then
23937
23938
23939 ac_cr=`echo X | tr X '\015'`
23940 # On cygwin, bash can eat \r inside `` if the user requested igncr.
23941 # But we know of no other shell where ac_cr would be empty at this
23942 # point, so we can use a bashism as a fallback.
23943 if test "x$ac_cr" = x; then
23944 eval ac_cr=\$\'\\r\'
23945 fi
23946 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23947 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23948 ac_cs_awk_cr='\\r'
23949 else
23950 ac_cs_awk_cr=$ac_cr
23951 fi
23952
23953 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
23954 _ACEOF
23955
23956
23957 {
23958 echo "cat >conf$$subs.awk <<_ACEOF" &&
23959 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23960 echo "_ACEOF"
23961 } >conf$$subs.sh ||
23962 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23963 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
23964 ac_delim='%!_!# '
23965 for ac_last_try in false false false false false :; do
23966 . ./conf$$subs.sh ||
23967 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23968
23969 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
23970 if test $ac_delim_n = $ac_delim_num; then
23971 break
23972 elif $ac_last_try; then
23973 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23974 else
23975 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23976 fi
23977 done
23978 rm -f conf$$subs.sh
23979
23980 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23981 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
23982 _ACEOF
23983 sed -n '
23984 h
23985 s/^/S["/; s/!.*/"]=/
23986 p
23987 g
23988 s/^[^!]*!//
23989 :repl
23990 t repl
23991 s/'"$ac_delim"'$//
23992 t delim
23993 :nl
23994 h
23995 s/\(.\{148\}\)..*/\1/
23996 t more1
23997 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23998 p
23999 n
24000 b repl
24001 :more1
24002 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24003 p
24004 g
24005 s/.\{148\}//
24006 t nl
24007 :delim
24008 h
24009 s/\(.\{148\}\)..*/\1/
24010 t more2
24011 s/["\\]/\\&/g; s/^/"/; s/$/"/
24012 p
24013 b
24014 :more2
24015 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24016 p
24017 g
24018 s/.\{148\}//
24019 t delim
24020 ' <conf$$subs.awk | sed '
24021 /^[^""]/{
24022 N
24023 s/\n//
24024 }
24025 ' >>$CONFIG_STATUS || ac_write_fail=1
24026 rm -f conf$$subs.awk
24027 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24028 _ACAWK
24029 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
24030 for (key in S) S_is_set[key] = 1
24031 FS = ""
24032
24033 }
24034 {
24035 line = $ 0
24036 nfields = split(line, field, "@")
24037 substed = 0
24038 len = length(field[1])
24039 for (i = 2; i < nfields; i++) {
24040 key = field[i]
24041 keylen = length(key)
24042 if (S_is_set[key]) {
24043 value = S[key]
24044 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
24045 len += length(value) + length(field[++i])
24046 substed = 1
24047 } else
24048 len += 1 + keylen
24049 }
24050
24051 print line
24052 }
24053
24054 _ACAWK
24055 _ACEOF
24056 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24057 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
24058 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
24059 else
24060 cat
24061 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
24062 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
24063 _ACEOF
24064
24065 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
24066 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
24067 # trailing colons and then remove the whole line if VPATH becomes empty
24068 # (actually we leave an empty line to preserve line numbers).
24069 if test "x$srcdir" = x.; then
24070 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
24071 h
24072 s///
24073 s/^/:/
24074 s/[ ]*$/:/
24075 s/:\$(srcdir):/:/g
24076 s/:\${srcdir}:/:/g
24077 s/:@srcdir@:/:/g
24078 s/^:*//
24079 s/:*$//
24080 x
24081 s/\(=[ ]*\).*/\1/
24082 G
24083 s/\n//
24084 s/^[^=]*=[ ]*$//
24085 }'
24086 fi
24087
24088 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24089 fi # test -n "$CONFIG_FILES"
24090
24091 # Set up the scripts for CONFIG_HEADERS section.
24092 # No need to generate them if there are no CONFIG_HEADERS.
24093 # This happens for instance with './config.status Makefile'.
24094 if test -n "$CONFIG_HEADERS"; then
24095 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
24096 BEGIN {
24097 _ACEOF
24098
24099 # Transform confdefs.h into an awk script 'defines.awk', embedded as
24100 # here-document in config.status, that substitutes the proper values into
24101 # config.h.in to produce config.h.
24102
24103 # Create a delimiter string that does not exist in confdefs.h, to ease
24104 # handling of long lines.
24105 ac_delim='%!_!# '
24106 for ac_last_try in false false :; do
24107 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
24108 if test -z "$ac_tt"; then
24109 break
24110 elif $ac_last_try; then
24111 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
24112 else
24113 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24114 fi
24115 done
24116
24117 # For the awk script, D is an array of macro values keyed by name,
24118 # likewise P contains macro parameters if any. Preserve backslash
24119 # newline sequences.
24120
24121 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24122 sed -n '
24123 s/.\{148\}/&'"$ac_delim"'/g
24124 t rset
24125 :rset
24126 s/^[ ]*#[ ]*define[ ][ ]*/ /
24127 t def
24128 d
24129 :def
24130 s/\\$//
24131 t bsnl
24132 s/["\\]/\\&/g
24133 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
24134 D["\1"]=" \3"/p
24135 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
24136 d
24137 :bsnl
24138 s/["\\]/\\&/g
24139 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
24140 D["\1"]=" \3\\\\\\n"\\/p
24141 t cont
24142 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
24143 t cont
24144 d
24145 :cont
24146 n
24147 s/.\{148\}/&'"$ac_delim"'/g
24148 t clear
24149 :clear
24150 s/\\$//
24151 t bsnlc
24152 s/["\\]/\\&/g; s/^/"/; s/$/"/p
24153 d
24154 :bsnlc
24155 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
24156 b cont
24157 ' <confdefs.h | sed '
24158 s/'"$ac_delim"'/"\\\
24159 "/g' >>$CONFIG_STATUS || ac_write_fail=1
24160
24161 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24162 for (key in D) D_is_set[key] = 1
24163 FS = ""
24164 }
24165 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
24166 line = \$ 0
24167 split(line, arg, " ")
24168 if (arg[1] == "#") {
24169 defundef = arg[2]
24170 mac1 = arg[3]
24171 } else {
24172 defundef = substr(arg[1], 2)
24173 mac1 = arg[2]
24174 }
24175 split(mac1, mac2, "(") #)
24176 macro = mac2[1]
24177 prefix = substr(line, 1, index(line, defundef) - 1)
24178 if (D_is_set[macro]) {
24179 # Preserve the white space surrounding the "#".
24180 print prefix "define", macro P[macro] D[macro]
24181 next
24182 } else {
24183 # Replace #undef with comments. This is necessary, for example,
24184 # in the case of _POSIX_SOURCE, which is predefined and required
24185 # on some systems where configure will not decide to define it.
24186 if (defundef == "undef") {
24187 print "/*", prefix defundef, macro, "*/"
24188 next
24189 }
24190 }
24191 }
24192 { print }
24193 _ACAWK
24194 _ACEOF
24195 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24196 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
24197 fi # test -n "$CONFIG_HEADERS"
24198
24199
24200 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
24201 shift
24202 for ac_tag
24203 do
24204 case $ac_tag in
24205 :[FHLC]) ac_mode=$ac_tag; continue;;
24206 esac
24207 case $ac_mode$ac_tag in
24208 :[FHL]*:*);;
24209 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
24210 :[FH]-) ac_tag=-:-;;
24211 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24212 esac
24213 ac_save_IFS=$IFS
24214 IFS=:
24215 set x $ac_tag
24216 IFS=$ac_save_IFS
24217 shift
24218 ac_file=$1
24219 shift
24220
24221 case $ac_mode in
24222 :L) ac_source=$1;;
24223 :[FH])
24224 ac_file_inputs=
24225 for ac_f
24226 do
24227 case $ac_f in
24228 -) ac_f="$ac_tmp/stdin";;
24229 *) # Look for the file first in the build tree, then in the source tree
24230 # (if the path is not absolute). The absolute path cannot be DOS-style,
24231 # because $ac_f cannot contain ':'.
24232 test -f "$ac_f" ||
24233 case $ac_f in
24234 [\\/$]*) false;;
24235 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24236 esac ||
24237 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
24238 esac
24239 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
24240 as_fn_append ac_file_inputs " '$ac_f'"
24241 done
24242
24243 # Let's still pretend it is 'configure' which instantiates (i.e., don't
24244 # use $as_me), people would be surprised to read:
24245 # /* config.h. Generated by config.status. */
24246 configure_input='Generated from '`
24247 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
24248 `' by configure.'
24249 if test x"$ac_file" != x-; then
24250 configure_input="$ac_file. $configure_input"
24251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
24252 printf "%s\n" "$as_me: creating $ac_file" >&6;}
24253 fi
24254 # Neutralize special characters interpreted by sed in replacement strings.
24255 case $configure_input in #(
24256 *\&* | *\|* | *\\* )
24257 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
24258 sed 's/[\\\\&|]/\\\\&/g'`;; #(
24259 *) ac_sed_conf_input=$configure_input;;
24260 esac
24261
24262 case $ac_tag in
24263 *:-:* | *:-) cat >"$ac_tmp/stdin" \
24264 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
24265 esac
24266 ;;
24267 esac
24268
24269 ac_dir=`$as_dirname -- "$ac_file" ||
24270 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24271 X"$ac_file" : 'X\(//\)[^/]' \| \
24272 X"$ac_file" : 'X\(//\)$' \| \
24273 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24274 printf "%s\n" X"$ac_file" |
24275 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24276 s//\1/
24277 q
24278 }
24279 /^X\(\/\/\)[^/].*/{
24280 s//\1/
24281 q
24282 }
24283 /^X\(\/\/\)$/{
24284 s//\1/
24285 q
24286 }
24287 /^X\(\/\).*/{
24288 s//\1/
24289 q
24290 }
24291 s/.*/./; q'`
24292 as_dir="$ac_dir"; as_fn_mkdir_p
24293 ac_builddir=.
24294
24295 case "$ac_dir" in
24296 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24297 *)
24298 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
24299 # A ".." for each directory in $ac_dir_suffix.
24300 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
24301 case $ac_top_builddir_sub in
24302 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24303 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24304 esac ;;
24305 esac
24306 ac_abs_top_builddir=$ac_pwd
24307 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24308 # for backward compatibility:
24309 ac_top_builddir=$ac_top_build_prefix
24310
24311 case $srcdir in
24312 .) # We are building in place.
24313 ac_srcdir=.
24314 ac_top_srcdir=$ac_top_builddir_sub
24315 ac_abs_top_srcdir=$ac_pwd ;;
24316 [\\/]* | ?:[\\/]* ) # Absolute name.
24317 ac_srcdir=$srcdir$ac_dir_suffix;
24318 ac_top_srcdir=$srcdir
24319 ac_abs_top_srcdir=$srcdir ;;
24320 *) # Relative name.
24321 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24322 ac_top_srcdir=$ac_top_build_prefix$srcdir
24323 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24324 esac
24325 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24326
24327
24328 case $ac_mode in
24329 :F)
24330 #
24331 # CONFIG_FILE
24332 #
24333
24334 case $INSTALL in
24335 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24336 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24337 esac
24338 ac_MKDIR_P=$MKDIR_P
24339 case $MKDIR_P in
24340 [\\/$]* | ?:[\\/]* ) ;;
24341 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
24342 esac
24343 _ACEOF
24344
24345 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24346 # If the template does not know about datarootdir, expand it.
24347 # FIXME: This hack should be removed a few years after 2.60.
24348 ac_datarootdir_hack=; ac_datarootdir_seen=
24349 ac_sed_dataroot='
24350 /datarootdir/ {
24351 p
24352 q
24353 }
24354 /@datadir@/p
24355 /@docdir@/p
24356 /@infodir@/p
24357 /@localedir@/p
24358 /@mandir@/p'
24359 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
24360 *datarootdir*) ac_datarootdir_seen=yes;;
24361 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24363 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24364 _ACEOF
24365 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24366 ac_datarootdir_hack='
24367 s&@datadir@&$datadir&g
24368 s&@docdir@&$docdir&g
24369 s&@infodir@&$infodir&g
24370 s&@localedir@&$localedir&g
24371 s&@mandir@&$mandir&g
24372 s&\\\${datarootdir}&$datarootdir&g' ;;
24373 esac
24374 _ACEOF
24375
24376 # Neutralize VPATH when '$srcdir' = '.'.
24377 # Shell code in configure.ac might set extrasub.
24378 # FIXME: do we really want to maintain this feature?
24379 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24380 ac_sed_extra="$ac_vpsub
24381 $extrasub
24382 _ACEOF
24383 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24384 :t
24385 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24386 s|@configure_input@|$ac_sed_conf_input|;t t
24387 s&@top_builddir@&$ac_top_builddir_sub&;t t
24388 s&@top_build_prefix@&$ac_top_build_prefix&;t t
24389 s&@srcdir@&$ac_srcdir&;t t
24390 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24391 s&@top_srcdir@&$ac_top_srcdir&;t t
24392 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24393 s&@builddir@&$ac_builddir&;t t
24394 s&@abs_builddir@&$ac_abs_builddir&;t t
24395 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24396 s&@INSTALL@&$ac_INSTALL&;t t
24397 s&@MKDIR_P@&$ac_MKDIR_P&;t t
24398 $ac_datarootdir_hack
24399 "
24400 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
24401 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24402
24403 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24404 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
24405 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
24406 "$ac_tmp/out"`; test -z "$ac_out"; } &&
24407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
24408 which seems to be undefined. Please make sure it is defined" >&5
24409 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
24410 which seems to be undefined. Please make sure it is defined" >&2;}
24411
24412 rm -f "$ac_tmp/stdin"
24413 case $ac_file in
24414 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
24415 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
24416 esac \
24417 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24418 ;;
24419 :H)
24420 #
24421 # CONFIG_HEADER
24422 #
24423 if test x"$ac_file" != x-; then
24424 {
24425 printf "%s\n" "/* $configure_input */" >&1 \
24426 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
24427 } >"$ac_tmp/config.h" \
24428 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24429 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
24430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
24431 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
24432 else
24433 rm -f "$ac_file"
24434 mv "$ac_tmp/config.h" "$ac_file" \
24435 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24436 fi
24437 else
24438 printf "%s\n" "/* $configure_input */" >&1 \
24439 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
24440 || as_fn_error $? "could not create -" "$LINENO" 5
24441 fi
24442 # Compute "$ac_file"'s index in $config_headers.
24443 _am_arg="$ac_file"
24444 _am_stamp_count=1
24445 for _am_header in $config_headers :; do
24446 case $_am_header in
24447 $_am_arg | $_am_arg:* )
24448 break ;;
24449 * )
24450 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24451 esac
24452 done
24453 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
24454 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24455 X"$_am_arg" : 'X\(//\)[^/]' \| \
24456 X"$_am_arg" : 'X\(//\)$' \| \
24457 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
24458 printf "%s\n" X"$_am_arg" |
24459 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24460 s//\1/
24461 q
24462 }
24463 /^X\(\/\/\)[^/].*/{
24464 s//\1/
24465 q
24466 }
24467 /^X\(\/\/\)$/{
24468 s//\1/
24469 q
24470 }
24471 /^X\(\/\).*/{
24472 s//\1/
24473 q
24474 }
24475 s/.*/./; q'`/stamp-h$_am_stamp_count
24476 ;;
24477
24478 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
24479 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
24480 ;;
24481 esac
24482
24483
24484 case $ac_file$ac_mode in
24485 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
24486 # Older Autoconf quotes --file arguments for eval, but not when files
24487 # are listed without --file. Let's play safe and only enable the eval
24488 # if we detect the quoting.
24489 # TODO: see whether this extra hack can be removed once we start
24490 # requiring Autoconf 2.70 or later.
24491 case $CONFIG_FILES in #(
24492 *\'*) :
24493 eval set x "$CONFIG_FILES" ;; #(
24494 *) :
24495 set x $CONFIG_FILES ;; #(
24496 *) :
24497 ;;
24498 esac
24499 shift
24500 # Used to flag and report bootstrapping failures.
24501 am_rc=0
24502 for am_mf
24503 do
24504 # Strip MF so we end up with the name of the file.
24505 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
24506 # Check whether this is an Automake generated Makefile which includes
24507 # dependency-tracking related rules and includes.
24508 # Grep'ing the whole file directly is not great: AIX grep has a line
24509 # limit of 2048, but all sed's we know have understand at least 4000.
24510 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
24511 || continue
24512 am_dirpart=`$as_dirname -- "$am_mf" ||
24513 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24514 X"$am_mf" : 'X\(//\)[^/]' \| \
24515 X"$am_mf" : 'X\(//\)$' \| \
24516 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
24517 printf "%s\n" X"$am_mf" |
24518 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24519 s//\1/
24520 q
24521 }
24522 /^X\(\/\/\)[^/].*/{
24523 s//\1/
24524 q
24525 }
24526 /^X\(\/\/\)$/{
24527 s//\1/
24528 q
24529 }
24530 /^X\(\/\).*/{
24531 s//\1/
24532 q
24533 }
24534 s/.*/./; q'`
24535 am_filepart=`$as_basename -- "$am_mf" ||
24536 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
24537 X"$am_mf" : 'X\(//\)$' \| \
24538 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
24539 printf "%s\n" X/"$am_mf" |
24540 sed '/^.*\/\([^/][^/]*\)\/*$/{
24541 s//\1/
24542 q
24543 }
24544 /^X\/\(\/\/\)$/{
24545 s//\1/
24546 q
24547 }
24548 /^X\/\(\/\).*/{
24549 s//\1/
24550 q
24551 }
24552 s/.*/./; q'`
24553 { echo "$as_me:$LINENO: cd "$am_dirpart" \
24554 && sed -e '/# am--include-marker/d' "$am_filepart" \
24555 | $MAKE -f - am--depfiles" >&5
24556 (cd "$am_dirpart" \
24557 && sed -e '/# am--include-marker/d' "$am_filepart" \
24558 | $MAKE -f - am--depfiles) >&5 2>&5
24559 ac_status=$?
24560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24561 (exit $ac_status); } || am_rc=$?
24562 done
24563 if test $am_rc -ne 0; then
24564 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
24565 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
24566 as_fn_error $? "Something went wrong bootstrapping makefile fragments
24567 for automatic dependency tracking. If GNU make was not used, consider
24568 re-running the configure script with MAKE=\"gmake\" (or whatever is
24569 necessary). You can also try re-running configure with the
24570 '--disable-dependency-tracking' option to at least be able to build
24571 the package (albeit without support for automatic dependency tracking).
24572 See 'config.log' for more details" "$LINENO" 5; }
24573 fi
24574 { am_dirpart=; unset am_dirpart;}
24575 { am_filepart=; unset am_filepart;}
24576 { am_mf=; unset am_mf;}
24577 { am_rc=; unset am_rc;}
24578 rm -f conftest-deps.mk
24579 }
24580 ;;
24581 "libtool":C)
24582
24583 # See if we are running on zsh, and set the options that allow our
24584 # commands through without removal of \ escapes.
24585 if test -n "${ZSH_VERSION+set}"; then
24586 setopt NO_GLOB_SUBST
24587 fi
24588
24589 cfgfile=${ofile}T
24590 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
24591 $RM "$cfgfile"
24592
24593 cat <<_LT_EOF >> "$cfgfile"
24594 #! $SHELL
24595 # Generated automatically by $as_me ($PACKAGE) $VERSION
24596 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
24597
24598 # Provide generalized library-building support services.
24599 # Written by Gordon Matzigkeit, 1996
24600
24601 # Copyright (C) 2024 Free Software Foundation, Inc.
24602 # This is free software; see the source for copying conditions. There is NO
24603 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
24604
24605 # GNU Libtool is free software; you can redistribute it and/or modify
24606 # it under the terms of the GNU General Public License as published by
24607 # the Free Software Foundation; either version 2 of the License, or
24608 # (at your option) any later version.
24609 #
24610 # As a special exception to the GNU General Public License, if you
24611 # distribute this file as part of a program or library that is built
24612 # using GNU Libtool, you may include this file under the same
24613 # distribution terms that you use for the rest of that program.
24614 #
24615 # GNU Libtool is distributed in the hope that it will be useful, but
24616 # WITHOUT ANY WARRANTY; without even the implied warranty of
24617 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24618 # GNU General Public License for more details.
24619 #
24620 # You should have received a copy of the GNU General Public License
24621 # along with this program. If not, see <http://www.gnu.org/licenses/>.
24622
24623
24624 # The names of the tagged configurations supported by this script.
24625 available_tags='CXX '
24626
24627 # Configured defaults for sys_lib_dlsearch_path munging.
24628 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
24629
24630 # ### BEGIN LIBTOOL CONFIG
24631
24632 # Which release of libtool.m4 was used?
24633 macro_version=$macro_version
24634 macro_revision=$macro_revision
24635
24636 # Assembler program.
24637 AS=$lt_AS
24638
24639 # DLL creation program.
24640 DLLTOOL=$lt_DLLTOOL
24641
24642 # Object dumper program.
24643 OBJDUMP=$lt_OBJDUMP
24644
24645 # Whether or not to build shared libraries.
24646 build_libtool_libs=$enable_shared
24647
24648 # Whether or not to build static libraries.
24649 build_old_libs=$enable_static
24650
24651 # What type of objects to build.
24652 pic_mode=$pic_mode
24653
24654 # Whether or not to optimize for fast installation.
24655 fast_install=$enable_fast_install
24656
24657 # Shared archive member basename,for filename based shared library versioning on AIX.
24658 shared_archive_member_spec=$shared_archive_member_spec
24659
24660 # Shell to use when invoking shell scripts.
24661 SHELL=$lt_SHELL
24662
24663 # An echo program that protects backslashes.
24664 ECHO=$lt_ECHO
24665
24666 # The PATH separator for the build system.
24667 PATH_SEPARATOR=$lt_PATH_SEPARATOR
24668
24669 # The host system.
24670 host_alias=$host_alias
24671 host=$host
24672 host_os=$host_os
24673
24674 # The build system.
24675 build_alias=$build_alias
24676 build=$build
24677 build_os=$build_os
24678
24679 # A sed program that does not truncate output.
24680 SED=$lt_SED
24681
24682 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
24683 Xsed="\$SED -e 1s/^X//"
24684
24685 # A grep program that handles long lines.
24686 GREP=$lt_GREP
24687
24688 # An ERE matcher.
24689 EGREP=$lt_EGREP
24690
24691 # A literal string matcher.
24692 FGREP=$lt_FGREP
24693
24694 # A BSD- or MS-compatible name lister.
24695 NM=$lt_NM
24696
24697 # Whether we need soft or hard links.
24698 LN_S=$lt_LN_S
24699
24700 # What is the maximum length of a command?
24701 max_cmd_len=$max_cmd_len
24702
24703 # Object file suffix (normally "o").
24704 objext=$ac_objext
24705
24706 # Executable file suffix (normally "").
24707 exeext=$exeext
24708
24709 # whether the shell understands "unset".
24710 lt_unset=$lt_unset
24711
24712 # turn spaces into newlines.
24713 SP2NL=$lt_lt_SP2NL
24714
24715 # turn newlines into spaces.
24716 NL2SP=$lt_lt_NL2SP
24717
24718 # convert \$build file names to \$host format.
24719 to_host_file_cmd=$lt_cv_to_host_file_cmd
24720
24721 # convert \$build files to toolchain format.
24722 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
24723
24724 # A file(cmd) program that detects file types.
24725 FILECMD=$lt_FILECMD
24726
24727 # Method to check whether dependent libraries are shared objects.
24728 deplibs_check_method=$lt_deplibs_check_method
24729
24730 # Command to use when deplibs_check_method = "file_magic".
24731 file_magic_cmd=$lt_file_magic_cmd
24732
24733 # How to find potential files when deplibs_check_method = "file_magic".
24734 file_magic_glob=$lt_file_magic_glob
24735
24736 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
24737 want_nocaseglob=$lt_want_nocaseglob
24738
24739 # Command to associate shared and link libraries.
24740 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
24741
24742 # The archiver.
24743 AR=$lt_AR
24744
24745 # Flags to create an archive (by configure).
24746 lt_ar_flags=$lt_ar_flags
24747
24748 # Flags to create an archive.
24749 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
24750
24751 # How to feed a file listing to the archiver.
24752 archiver_list_spec=$lt_archiver_list_spec
24753
24754 # A symbol stripping program.
24755 STRIP=$lt_STRIP
24756
24757 # Commands used to install an old-style archive.
24758 RANLIB=$lt_RANLIB
24759 old_postinstall_cmds=$lt_old_postinstall_cmds
24760 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24761
24762 # Whether to use a lock for old archive extraction.
24763 lock_old_archive_extraction=$lock_old_archive_extraction
24764
24765 # A C compiler.
24766 LTCC=$lt_CC
24767
24768 # LTCC compiler flags.
24769 LTCFLAGS=$lt_CFLAGS
24770
24771 # Take the output of nm and produce a listing of raw symbols and C names.
24772 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24773
24774 # Transform the output of nm in a proper C declaration.
24775 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24776
24777 # Transform the output of nm into a list of symbols to manually relocate.
24778 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
24779
24780 # Transform the output of nm in a C name address pair.
24781 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24782
24783 # Transform the output of nm in a C name address pair when lib prefix is needed.
24784 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
24785
24786 # The name lister interface.
24787 nm_interface=$lt_lt_cv_nm_interface
24788
24789 # Specify filename containing input files for \$NM.
24790 nm_file_list_spec=$lt_nm_file_list_spec
24791
24792 # The root where to search for dependent libraries,and where our libraries should be installed.
24793 lt_sysroot=$lt_sysroot
24794
24795 # Command to truncate a binary pipe.
24796 lt_truncate_bin=$lt_lt_cv_truncate_bin
24797
24798 # The name of the directory that contains temporary libtool files.
24799 objdir=$objdir
24800
24801 # Used to examine libraries when file_magic_cmd begins with "file".
24802 MAGIC_CMD=$MAGIC_CMD
24803
24804 # Must we lock files when doing compilation?
24805 need_locks=$lt_need_locks
24806
24807 # Manifest tool.
24808 MANIFEST_TOOL=$lt_MANIFEST_TOOL
24809
24810 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
24811 DSYMUTIL=$lt_DSYMUTIL
24812
24813 # Tool to change global to local symbols on Mac OS X.
24814 NMEDIT=$lt_NMEDIT
24815
24816 # Tool to manipulate fat objects and archives on Mac OS X.
24817 LIPO=$lt_LIPO
24818
24819 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
24820 OTOOL=$lt_OTOOL
24821
24822 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
24823 OTOOL64=$lt_OTOOL64
24824
24825 # Old archive suffix (normally "a").
24826 libext=$libext
24827
24828 # Shared library suffix (normally ".so").
24829 shrext_cmds=$lt_shrext_cmds
24830
24831 # The commands to extract the exported symbol list from a shared archive.
24832 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24833
24834 # Variables whose values should be saved in libtool wrapper scripts and
24835 # restored at link time.
24836 variables_saved_for_relink=$lt_variables_saved_for_relink
24837
24838 # Do we need the "lib" prefix for modules?
24839 need_lib_prefix=$need_lib_prefix
24840
24841 # Do we need a version for libraries?
24842 need_version=$need_version
24843
24844 # Library versioning type.
24845 version_type=$version_type
24846
24847 # Shared library runtime path variable.
24848 runpath_var=$runpath_var
24849
24850 # Shared library path variable.
24851 shlibpath_var=$shlibpath_var
24852
24853 # Is shlibpath searched before the hard-coded library search path?
24854 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24855
24856 # Format of library name prefix.
24857 libname_spec=$lt_libname_spec
24858
24859 # List of archive names. First name is the real one, the rest are links.
24860 # The last name is the one that the linker finds with -lNAME
24861 library_names_spec=$lt_library_names_spec
24862
24863 # The coded name of the library, if different from the real name.
24864 soname_spec=$lt_soname_spec
24865
24866 # Permission mode override for installation of shared libraries.
24867 install_override_mode=$lt_install_override_mode
24868
24869 # Command to use after installation of a shared archive.
24870 postinstall_cmds=$lt_postinstall_cmds
24871
24872 # Command to use after uninstallation of a shared archive.
24873 postuninstall_cmds=$lt_postuninstall_cmds
24874
24875 # Commands used to finish a libtool library installation in a directory.
24876 finish_cmds=$lt_finish_cmds
24877
24878 # As "finish_cmds", except a single script fragment to be evaled but
24879 # not shown.
24880 finish_eval=$lt_finish_eval
24881
24882 # Whether we should hardcode library paths into libraries.
24883 hardcode_into_libs=$hardcode_into_libs
24884
24885 # Compile-time system search path for libraries.
24886 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24887
24888 # Detected run-time system search path for libraries.
24889 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
24890
24891 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
24892 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
24893
24894 # Whether dlopen is supported.
24895 dlopen_support=$enable_dlopen
24896
24897 # Whether dlopen of programs is supported.
24898 dlopen_self=$enable_dlopen_self
24899
24900 # Whether dlopen of statically linked programs is supported.
24901 dlopen_self_static=$enable_dlopen_self_static
24902
24903 # Commands to strip libraries.
24904 old_striplib=$lt_old_striplib
24905 striplib=$lt_striplib
24906
24907
24908 # The linker used to build libraries.
24909 LD=$lt_LD
24910
24911 # How to create reloadable object files.
24912 reload_flag=$lt_reload_flag
24913 reload_cmds=$lt_reload_cmds
24914
24915 # Commands used to build an old-style archive.
24916 old_archive_cmds=$lt_old_archive_cmds
24917
24918 # A language specific compiler.
24919 CC=$lt_compiler
24920
24921 # Is the compiler the GNU compiler?
24922 with_gcc=$GCC
24923
24924 # Compiler flag to turn off builtin functions.
24925 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
24926
24927 # Additional compiler flags for building library objects.
24928 pic_flag=$lt_lt_prog_compiler_pic
24929
24930 # How to pass a linker flag through the compiler.
24931 wl=$lt_lt_prog_compiler_wl
24932
24933 # Compiler flag to prevent dynamic linking.
24934 link_static_flag=$lt_lt_prog_compiler_static
24935
24936 # Does compiler simultaneously support -c and -o options?
24937 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
24938
24939 # Whether or not to add -lc for building shared libraries.
24940 build_libtool_need_lc=$archive_cmds_need_lc
24941
24942 # Whether or not to disallow shared libs when runtime libs are static.
24943 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
24944
24945 # Compiler flag to allow reflexive dlopens.
24946 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
24947
24948 # Compiler flag to generate shared objects directly from archives.
24949 whole_archive_flag_spec=$lt_whole_archive_flag_spec
24950
24951 # Whether the compiler copes with passing no objects directly.
24952 compiler_needs_object=$lt_compiler_needs_object
24953
24954 # Create an old-style archive from a shared archive.
24955 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
24956
24957 # Create a temporary old-style archive to link instead of a shared archive.
24958 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
24959
24960 # Commands used to build a shared archive.
24961 archive_cmds=$lt_archive_cmds
24962 archive_expsym_cmds=$lt_archive_expsym_cmds
24963
24964 # Commands used to build a loadable module if different from building
24965 # a shared archive.
24966 module_cmds=$lt_module_cmds
24967 module_expsym_cmds=$lt_module_expsym_cmds
24968
24969 # Whether we are building with GNU ld or not.
24970 with_gnu_ld=$lt_with_gnu_ld
24971
24972 # Flag that allows shared libraries with undefined symbols to be built.
24973 allow_undefined_flag=$lt_allow_undefined_flag
24974
24975 # Flag that enforces no undefined symbols.
24976 no_undefined_flag=$lt_no_undefined_flag
24977
24978 # Flag to hardcode \$libdir into a binary during linking.
24979 # This must work even if \$libdir does not exist
24980 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
24981
24982 # Whether we need a single "-rpath" flag with a separated argument.
24983 hardcode_libdir_separator=$lt_hardcode_libdir_separator
24984
24985 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24986 # DIR into the resulting binary.
24987 hardcode_direct=$hardcode_direct
24988
24989 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24990 # DIR into the resulting binary and the resulting library dependency is
24991 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
24992 # library is relocated.
24993 hardcode_direct_absolute=$hardcode_direct_absolute
24994
24995 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24996 # into the resulting binary.
24997 hardcode_minus_L=$hardcode_minus_L
24998
24999 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
25000 # into the resulting binary.
25001 hardcode_shlibpath_var=$hardcode_shlibpath_var
25002
25003 # Set to "yes" if building a shared library automatically hardcodes DIR
25004 # into the library and all subsequent libraries and executables linked
25005 # against it.
25006 hardcode_automatic=$hardcode_automatic
25007
25008 # Set to yes if linker adds runtime paths of dependent libraries
25009 # to runtime path list.
25010 inherit_rpath=$inherit_rpath
25011
25012 # Whether libtool must link a program against all its dependency libraries.
25013 link_all_deplibs=$link_all_deplibs
25014
25015 # Set to "yes" if exported symbols are required.
25016 always_export_symbols=$always_export_symbols
25017
25018 # The commands to list exported symbols.
25019 export_symbols_cmds=$lt_export_symbols_cmds
25020
25021 # Symbols that should not be listed in the preloaded symbols.
25022 exclude_expsyms=$lt_exclude_expsyms
25023
25024 # Symbols that must always be exported.
25025 include_expsyms=$lt_include_expsyms
25026
25027 # Commands necessary for linking programs (against libraries) with templates.
25028 prelink_cmds=$lt_prelink_cmds
25029
25030 # Commands necessary for finishing linking programs.
25031 postlink_cmds=$lt_postlink_cmds
25032
25033 # Specify filename containing input files.
25034 file_list_spec=$lt_file_list_spec
25035
25036 # How to hardcode a shared library path into an executable.
25037 hardcode_action=$hardcode_action
25038
25039 # The directories searched by this compiler when creating a shared library.
25040 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
25041
25042 # Dependencies to place before and after the objects being linked to
25043 # create a shared library.
25044 predep_objects=$lt_predep_objects
25045 postdep_objects=$lt_postdep_objects
25046 predeps=$lt_predeps
25047 postdeps=$lt_postdeps
25048
25049 # The library search path used internally by the compiler when linking
25050 # a shared library.
25051 compiler_lib_search_path=$lt_compiler_lib_search_path
25052
25053 # ### END LIBTOOL CONFIG
25054
25055 _LT_EOF
25056
25057 cat <<'_LT_EOF' >> "$cfgfile"
25058
25059 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
25060
25061 # func_munge_path_list VARIABLE PATH
25062 # -----------------------------------
25063 # VARIABLE is name of variable containing _space_ separated list of
25064 # directories to be munged by the contents of PATH, which is string
25065 # having a format:
25066 # "DIR[:DIR]:"
25067 # string "DIR[ DIR]" will be prepended to VARIABLE
25068 # ":DIR[:DIR]"
25069 # string "DIR[ DIR]" will be appended to VARIABLE
25070 # "DIRP[:DIRP]::[DIRA:]DIRA"
25071 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
25072 # "DIRA[ DIRA]" will be appended to VARIABLE
25073 # "DIR[:DIR]"
25074 # VARIABLE will be replaced by "DIR[ DIR]"
25075 func_munge_path_list ()
25076 {
25077 case x$2 in
25078 x)
25079 ;;
25080 *:)
25081 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
25082 ;;
25083 x:*)
25084 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
25085 ;;
25086 *::*)
25087 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
25088 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
25089 ;;
25090 *)
25091 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
25092 ;;
25093 esac
25094 }
25095
25096
25097 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
25098 func_cc_basename ()
25099 {
25100 for cc_temp in $*""; do
25101 case $cc_temp in
25102 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
25103 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
25104 \-*) ;;
25105 *) break;;
25106 esac
25107 done
25108 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
25109 }
25110
25111
25112 # ### END FUNCTIONS SHARED WITH CONFIGURE
25113
25114 _LT_EOF
25115
25116 case $host_os in
25117 aix3*)
25118 cat <<\_LT_EOF >> "$cfgfile"
25119 # AIX sometimes has problems with the GCC collect2 program. For some
25120 # reason, if we set the COLLECT_NAMES environment variable, the problems
25121 # vanish in a puff of smoke.
25122 if test set != "${COLLECT_NAMES+set}"; then
25123 COLLECT_NAMES=
25124 export COLLECT_NAMES
25125 fi
25126 _LT_EOF
25127 ;;
25128 esac
25129
25130
25131
25132 ltmain=$ac_aux_dir/ltmain.sh
25133
25134
25135 # We use sed instead of cat because bash on DJGPP gets confused if
25136 # if finds mixed CR/LF and LF-only lines. Since sed operates in
25137 # text mode, it properly converts lines to CR/LF. This bash problem
25138 # is reportedly fixed, but why not run on old versions too?
25139 $SED '$q' "$ltmain" >> "$cfgfile" \
25140 || (rm -f "$cfgfile"; exit 1)
25141
25142 mv -f "$cfgfile" "$ofile" ||
25143 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
25144 chmod +x "$ofile"
25145
25146
25147 cat <<_LT_EOF >> "$ofile"
25148
25149 # ### BEGIN LIBTOOL TAG CONFIG: CXX
25150
25151 # The linker used to build libraries.
25152 LD=$lt_LD_CXX
25153
25154 # How to create reloadable object files.
25155 reload_flag=$lt_reload_flag_CXX
25156 reload_cmds=$lt_reload_cmds_CXX
25157
25158 # Commands used to build an old-style archive.
25159 old_archive_cmds=$lt_old_archive_cmds_CXX
25160
25161 # A language specific compiler.
25162 CC=$lt_compiler_CXX
25163
25164 # Is the compiler the GNU compiler?
25165 with_gcc=$GCC_CXX
25166
25167 # Compiler flag to turn off builtin functions.
25168 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
25169
25170 # Additional compiler flags for building library objects.
25171 pic_flag=$lt_lt_prog_compiler_pic_CXX
25172
25173 # How to pass a linker flag through the compiler.
25174 wl=$lt_lt_prog_compiler_wl_CXX
25175
25176 # Compiler flag to prevent dynamic linking.
25177 link_static_flag=$lt_lt_prog_compiler_static_CXX
25178
25179 # Does compiler simultaneously support -c and -o options?
25180 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
25181
25182 # Whether or not to add -lc for building shared libraries.
25183 build_libtool_need_lc=$archive_cmds_need_lc_CXX
25184
25185 # Whether or not to disallow shared libs when runtime libs are static.
25186 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
25187
25188 # Compiler flag to allow reflexive dlopens.
25189 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
25190
25191 # Compiler flag to generate shared objects directly from archives.
25192 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
25193
25194 # Whether the compiler copes with passing no objects directly.
25195 compiler_needs_object=$lt_compiler_needs_object_CXX
25196
25197 # Create an old-style archive from a shared archive.
25198 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
25199
25200 # Create a temporary old-style archive to link instead of a shared archive.
25201 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
25202
25203 # Commands used to build a shared archive.
25204 archive_cmds=$lt_archive_cmds_CXX
25205 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
25206
25207 # Commands used to build a loadable module if different from building
25208 # a shared archive.
25209 module_cmds=$lt_module_cmds_CXX
25210 module_expsym_cmds=$lt_module_expsym_cmds_CXX
25211
25212 # Whether we are building with GNU ld or not.
25213 with_gnu_ld=$lt_with_gnu_ld_CXX
25214
25215 # Flag that allows shared libraries with undefined symbols to be built.
25216 allow_undefined_flag=$lt_allow_undefined_flag_CXX
25217
25218 # Flag that enforces no undefined symbols.
25219 no_undefined_flag=$lt_no_undefined_flag_CXX
25220
25221 # Flag to hardcode \$libdir into a binary during linking.
25222 # This must work even if \$libdir does not exist
25223 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
25224
25225 # Whether we need a single "-rpath" flag with a separated argument.
25226 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
25227
25228 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
25229 # DIR into the resulting binary.
25230 hardcode_direct=$hardcode_direct_CXX
25231
25232 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
25233 # DIR into the resulting binary and the resulting library dependency is
25234 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
25235 # library is relocated.
25236 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
25237
25238 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
25239 # into the resulting binary.
25240 hardcode_minus_L=$hardcode_minus_L_CXX
25241
25242 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
25243 # into the resulting binary.
25244 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
25245
25246 # Set to "yes" if building a shared library automatically hardcodes DIR
25247 # into the library and all subsequent libraries and executables linked
25248 # against it.
25249 hardcode_automatic=$hardcode_automatic_CXX
25250
25251 # Set to yes if linker adds runtime paths of dependent libraries
25252 # to runtime path list.
25253 inherit_rpath=$inherit_rpath_CXX
25254
25255 # Whether libtool must link a program against all its dependency libraries.
25256 link_all_deplibs=$link_all_deplibs_CXX
25257
25258 # Set to "yes" if exported symbols are required.
25259 always_export_symbols=$always_export_symbols_CXX
25260
25261 # The commands to list exported symbols.
25262 export_symbols_cmds=$lt_export_symbols_cmds_CXX
25263
25264 # Symbols that should not be listed in the preloaded symbols.
25265 exclude_expsyms=$lt_exclude_expsyms_CXX
25266
25267 # Symbols that must always be exported.
25268 include_expsyms=$lt_include_expsyms_CXX
25269
25270 # Commands necessary for linking programs (against libraries) with templates.
25271 prelink_cmds=$lt_prelink_cmds_CXX
25272
25273 # Commands necessary for finishing linking programs.
25274 postlink_cmds=$lt_postlink_cmds_CXX
25275
25276 # Specify filename containing input files.
25277 file_list_spec=$lt_file_list_spec_CXX
25278
25279 # How to hardcode a shared library path into an executable.
25280 hardcode_action=$hardcode_action_CXX
25281
25282 # The directories searched by this compiler when creating a shared library.
25283 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
25284
25285 # Dependencies to place before and after the objects being linked to
25286 # create a shared library.
25287 predep_objects=$lt_predep_objects_CXX
25288 postdep_objects=$lt_postdep_objects_CXX
25289 predeps=$lt_predeps_CXX
25290 postdeps=$lt_postdeps_CXX
25291
25292 # The library search path used internally by the compiler when linking
25293 # a shared library.
25294 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
25295
25296 # ### END LIBTOOL TAG CONFIG: CXX
25297 _LT_EOF
25298
25299 ;;
25300 "CXXLD.sh":C) echo "$cxxld_sh" >CXXLD.sh; chmod +x CXXLD.sh ;;
25301
25302 esac
25303 done # for ac_tag
25304
25305
25306 as_fn_exit 0
25307 _ACEOF
25308 ac_clean_files=$ac_clean_files_save
25309
25310 test $ac_write_fail = 0 ||
25311 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
25312
25313
25314 # configure is writing to config.log, and then calls config.status.
25315 # config.status does its own redirection, appending to config.log.
25316 # Unfortunately, on DOS this fails, as config.log is still kept open
25317 # by configure, so config.status won't be able to write to it; its
25318 # output is simply discarded. So we exec the FD to /dev/null,
25319 # effectively closing config.log, so it can be properly (re)opened and
25320 # appended to by config.status. When coming back to configure, we
25321 # need to make the FD available again.
25322 if test "$no_create" != yes; then
25323 ac_cs_success=:
25324 ac_config_status_args=
25325 test "$silent" = yes &&
25326 ac_config_status_args="$ac_config_status_args --quiet"
25327 exec 5>/dev/null
25328 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25329 exec 5>>config.log
25330 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25331 # would make configure fail if this is the last instruction.
25332 $ac_cs_success || as_fn_exit 1
25333 fi
25334 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
25335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
25336 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
25337 fi
25338
25339