Debian Codegraph @

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 dump 0.4b55.
4 #
5 # Report bugs to <https://dump.sourceforge.io>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21 then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else case e in #(
29 e) case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as 'sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed 'exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
144 then :
145 emulate sh
146 NULLCMD=:
147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
148 # is contrary to our usage. Disable this feature.
149 alias -g '\${1+\"\$@\"}'='\"\$@\"'
150 setopt NO_GLOB_SUBST
151 else case e in #(
152 e) case \`(set -o) 2>/dev/null\` in #(
153 *posix*) :
154 set -o posix ;; #(
155 *) :
156 ;;
157 esac ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else case e in #(
176 e) exitcode=1; echo positional parameters were not saved. ;;
177 esac
178 fi
179 test x\$exitcode = x0 || exit 1
180 blah=\$(echo \$(echo blah))
181 test x\"\$blah\" = xblah || exit 1
182 test -x / || exit 1"
183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
187
188 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
189 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
192 PATH=/empty FPATH=/empty; export PATH FPATH
193 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
194 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
195 test \$(( 1 + 1 )) = 2 || exit 1"
196 if (eval "$as_required") 2>/dev/null
197 then :
198 as_have_required=yes
199 else case e in #(
200 e) as_have_required=no ;;
201 esac
202 fi
203 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
204 then :
205
206 else case e in #(
207 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
208 as_found=false
209 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
210 do
211 IFS=$as_save_IFS
212 case $as_dir in #(((
213 '') as_dir=./ ;;
214 */) ;;
215 *) as_dir=$as_dir/ ;;
216 esac
217 as_found=:
218 case $as_dir in #(
219 /*)
220 for as_base in sh bash ksh sh5; do
221 # Try only shells that exist, to save several forks.
222 as_shell=$as_dir$as_base
223 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
224 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
225 then :
226 CONFIG_SHELL=$as_shell as_have_required=yes
227 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
228 then :
229 break 2
230 fi
231 fi
232 done;;
233 esac
234 as_found=false
235 done
236 IFS=$as_save_IFS
237 if $as_found
238 then :
239
240 else case e in #(
241 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
243 then :
244 CONFIG_SHELL=$SHELL as_have_required=yes
245 fi ;;
246 esac
247 fi
248
249
250 if test "x$CONFIG_SHELL" != x
251 then :
252 export CONFIG_SHELL
253 # We cannot yet assume a decent shell, so we have to provide a
254 # neutralization value for shells without unset; and this also
255 # works around shells that cannot unset nonexistent variables.
256 # Preserve -v and -x to the replacement shell.
257 BASH_ENV=/dev/null
258 ENV=/dev/null
259 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
260 case $- in # ((((
261 *v*x* | *x*v* ) as_opts=-vx ;;
262 *v* ) as_opts=-v ;;
263 *x* ) as_opts=-x ;;
264 * ) as_opts= ;;
265 esac
266 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
267 # Admittedly, this is quite paranoid, since all the known shells bail
268 # out after a failed 'exec'.
269 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
270 exit 255
271 fi
272
273 if test x$as_have_required = xno
274 then :
275 printf "%s\n" "$0: This script requires a shell more modern than all"
276 printf "%s\n" "$0: the shells that I found on your system."
277 if test ${ZSH_VERSION+y} ; then
278 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
279 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
280 else
281 printf "%s\n" "$0: Please tell [email protected] and
282 $0: https://dump.sourceforge.io about your system,
283 $0: including any error possibly output before this
284 $0: message. Then install a modern shell, or manually run
285 $0: the script under such a shell if you do have one."
286 fi
287 exit 1
288 fi ;;
289 esac
290 fi
291 fi
292 SHELL=${CONFIG_SHELL-/bin/sh}
293 export SHELL
294 # Unset more variables known to interfere with behavior of common tools.
295 CLICOLOR_FORCE= GREP_OPTIONS=
296 unset CLICOLOR_FORCE GREP_OPTIONS
297
298 ## --------------------- ##
299 ## M4sh Shell Functions. ##
300 ## --------------------- ##
301 # as_fn_unset VAR
302 # ---------------
303 # Portably unset VAR.
304 as_fn_unset ()
305 {
306 { eval $1=; unset $1;}
307 }
308 as_unset=as_fn_unset
309
310
311 # as_fn_set_status STATUS
312 # -----------------------
313 # Set $? to STATUS, without forking.
314 as_fn_set_status ()
315 {
316 return $1
317 } # as_fn_set_status
318
319 # as_fn_exit STATUS
320 # -----------------
321 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
322 as_fn_exit ()
323 {
324 set +e
325 as_fn_set_status $1
326 exit $1
327 } # as_fn_exit
328
329 # as_fn_mkdir_p
330 # -------------
331 # Create "$as_dir" as a directory, including parents if necessary.
332 as_fn_mkdir_p ()
333 {
334
335 case $as_dir in #(
336 -*) as_dir=./$as_dir;;
337 esac
338 test -d "$as_dir" || eval $as_mkdir_p || {
339 as_dirs=
340 while :; do
341 case $as_dir in #(
342 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
343 *) as_qdir=$as_dir;;
344 esac
345 as_dirs="'$as_qdir' $as_dirs"
346 as_dir=`$as_dirname -- "$as_dir" ||
347 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
348 X"$as_dir" : 'X\(//\)[^/]' \| \
349 X"$as_dir" : 'X\(//\)$' \| \
350 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
351 printf "%s\n" X"$as_dir" |
352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
353 s//\1/
354 q
355 }
356 /^X\(\/\/\)[^/].*/{
357 s//\1/
358 q
359 }
360 /^X\(\/\/\)$/{
361 s//\1/
362 q
363 }
364 /^X\(\/\).*/{
365 s//\1/
366 q
367 }
368 s/.*/./; q'`
369 test -d "$as_dir" && break
370 done
371 test -z "$as_dirs" || eval "mkdir $as_dirs"
372 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
373
374
375 } # as_fn_mkdir_p
376
377 # as_fn_executable_p FILE
378 # -----------------------
379 # Test if FILE is an executable regular file.
380 as_fn_executable_p ()
381 {
382 test -f "$1" && test -x "$1"
383 } # as_fn_executable_p
384 # as_fn_append VAR VALUE
385 # ----------------------
386 # Append the text in VALUE to the end of the definition contained in VAR. Take
387 # advantage of any shell optimizations that allow amortized linear growth over
388 # repeated appends, instead of the typical quadratic growth present in naive
389 # implementations.
390 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
391 then :
392 eval 'as_fn_append ()
393 {
394 eval $1+=\$2
395 }'
396 else case e in #(
397 e) as_fn_append ()
398 {
399 eval $1=\$$1\$2
400 } ;;
401 esac
402 fi # as_fn_append
403
404 # as_fn_arith ARG...
405 # ------------------
406 # Perform arithmetic evaluation on the ARGs, and store the result in the
407 # global $as_val. Take advantage of shells that can avoid forks. The arguments
408 # must be portable across $(()) and expr.
409 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
410 then :
411 eval 'as_fn_arith ()
412 {
413 as_val=$(( $* ))
414 }'
415 else case e in #(
416 e) as_fn_arith ()
417 {
418 as_val=`expr "$@" || test $? -eq 1`
419 } ;;
420 esac
421 fi # as_fn_arith
422
423
424 # as_fn_error STATUS ERROR [LINENO LOG_FD]
425 # ----------------------------------------
426 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
427 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
428 # script with STATUS, using 1 if that was 0.
429 as_fn_error ()
430 {
431 as_status=$1; test $as_status -eq 0 && as_status=1
432 if test "$4"; then
433 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
434 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
435 fi
436 printf "%s\n" "$as_me: error: $2" >&2
437 as_fn_exit $as_status
438 } # as_fn_error
439
440 if expr a : '\(a\)' >/dev/null 2>&1 &&
441 test "X`expr 00001 : '.*\(...\)'`" = X001; then
442 as_expr=expr
443 else
444 as_expr=false
445 fi
446
447 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
448 as_basename=basename
449 else
450 as_basename=false
451 fi
452
453 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
454 as_dirname=dirname
455 else
456 as_dirname=false
457 fi
458
459 as_me=`$as_basename -- "$0" ||
460 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
461 X"$0" : 'X\(//\)$' \| \
462 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
463 printf "%s\n" X/"$0" |
464 sed '/^.*\/\([^/][^/]*\)\/*$/{
465 s//\1/
466 q
467 }
468 /^X\/\(\/\/\)$/{
469 s//\1/
470 q
471 }
472 /^X\/\(\/\).*/{
473 s//\1/
474 q
475 }
476 s/.*/./; q'`
477
478 # Avoid depending upon Character Ranges.
479 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
480 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
481 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
482 as_cr_digits='0123456789'
483 as_cr_alnum=$as_cr_Letters$as_cr_digits
484
485
486 as_lineno_1=$LINENO as_lineno_1a=$LINENO
487 as_lineno_2=$LINENO as_lineno_2a=$LINENO
488 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
489 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
490 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
491 sed -n '
492 p
493 /[$]LINENO/=
494 ' <$as_myself |
495 sed '
496 t clear
497 :clear
498 s/[$]LINENO.*/&-/
499 t lineno
500 b
501 :lineno
502 N
503 :loop
504 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
505 t loop
506 s/-\n.*//
507 ' >$as_me.lineno &&
508 chmod +x "$as_me.lineno" ||
509 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
510
511 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
512 # already done that, so ensure we don't try to do so again and fall
513 # in an infinite loop. This has already happened in practice.
514 _as_can_reexec=no; export _as_can_reexec
515 # Don't try to exec as it changes $[0], causing all sort of problems
516 # (the dirname of $[0] is not the place where we might find the
517 # original and so on. Autoconf is especially sensitive to this).
518 . "./$as_me.lineno"
519 # Exit status is that of the last command.
520 exit
521 }
522
523
524 # Determine whether it's possible to make 'echo' print without a newline.
525 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
526 # for compatibility with existing Makefiles.
527 ECHO_C= ECHO_N= ECHO_T=
528 case `echo -n x` in #(((((
529 -n*)
530 case `echo 'xy\c'` in
531 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
532 xy) ECHO_C='\c';;
533 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
534 ECHO_T=' ';;
535 esac;;
536 *)
537 ECHO_N='-n';;
538 esac
539
540 # For backward compatibility with old third-party macros, we provide
541 # the shell variables $as_echo and $as_echo_n. New code should use
542 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
543 as_echo='printf %s\n'
544 as_echo_n='printf %s'
545
546 rm -f conf$$ conf$$.exe conf$$.file
547 if test -d conf$$.dir; then
548 rm -f conf$$.dir/conf$$.file
549 else
550 rm -f conf$$.dir
551 mkdir conf$$.dir 2>/dev/null
552 fi
553 if (echo >conf$$.file) 2>/dev/null; then
554 if ln -s conf$$.file conf$$ 2>/dev/null; then
555 as_ln_s='ln -s'
556 # ... but there are two gotchas:
557 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
558 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
559 # In both cases, we have to default to 'cp -pR'.
560 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
561 as_ln_s='cp -pR'
562 elif ln conf$$.file conf$$ 2>/dev/null; then
563 as_ln_s=ln
564 else
565 as_ln_s='cp -pR'
566 fi
567 else
568 as_ln_s='cp -pR'
569 fi
570 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
571 rmdir conf$$.dir 2>/dev/null
572
573 if mkdir -p . 2>/dev/null; then
574 as_mkdir_p='mkdir -p "$as_dir"'
575 else
576 test -d ./-p && rmdir ./-p
577 as_mkdir_p=false
578 fi
579
580 as_test_x='test -x'
581 as_executable_p=as_fn_executable_p
582
583 # Sed expression to map a string onto a valid CPP name.
584 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
585 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
586
587 # Sed expression to map a string onto a valid variable name.
588 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
589 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
590
591 SHELL=${CONFIG_SHELL-/bin/sh}
592
593
594 test -n "$DJDIR" || exec 7<&0 </dev/null
595 exec 6>&1
596
597 # Name of the host.
598 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
599 # so uname gets run too.
600 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
601
602 #
603 # Initializations.
604 #
605 ac_default_prefix=/usr/local
606 ac_clean_files=
607 ac_config_libobj_dir=.
608 LIBOBJS=
609 cross_compiling=no
610 subdirs=
611 MFLAGS=
612 MAKEFLAGS=
613
614 # Identity of this package.
615 PACKAGE_NAME='dump'
616 PACKAGE_TARNAME='dump'
617 PACKAGE_VERSION='0.4b55'
618 PACKAGE_STRING='dump 0.4b55'
619 PACKAGE_BUGREPORT='https://dump.sourceforge.io'
620 PACKAGE_URL=''
621
622 # Factoring default headers for most tests.
623 ac_includes_default="\
624 #include <stddef.h>
625 #ifdef HAVE_STDIO_H
626 # include <stdio.h>
627 #endif
628 #ifdef HAVE_STDLIB_H
629 # include <stdlib.h>
630 #endif
631 #ifdef HAVE_STRING_H
632 # include <string.h>
633 #endif
634 #ifdef HAVE_INTTYPES_H
635 # include <inttypes.h>
636 #endif
637 #ifdef HAVE_STDINT_H
638 # include <stdint.h>
639 #endif
640 #ifdef HAVE_STRINGS_H
641 # include <strings.h>
642 #endif
643 #ifdef HAVE_SYS_TYPES_H
644 # include <sys/types.h>
645 #endif
646 #ifdef HAVE_SYS_STAT_H
647 # include <sys/stat.h>
648 #endif
649 #ifdef HAVE_UNISTD_H
650 # include <unistd.h>
651 #endif"
652
653 ac_header_c_list=
654 enable_year2038=no
655 ac_subst_vars='am__EXEEXT_FALSE
656 am__EXEEXT_TRUE
657 LTLIBOBJS
658 LIBOBJS
659 SSL_LIBS
660 SSL_CFLAGS
661 CPP
662 SQLITE3
663 LZOLIB
664 BZLIB
665 ZLIB_LIBS
666 ZLIB_CFLAGS
667 READLINE
668 UUID_LIBS
669 UUID_CFLAGS
670 BLKID_LIBS
671 BLKID_CFLAGS
672 COM_ERR_LIBS
673 COM_ERR_CFLAGS
674 EXT2FS_LIBS
675 EXT2FS_CFLAGS
676 RMTPATH
677 DUMPDATESPATH
678 SELINUX_LIBS
679 SELINUX_CFLAGS
680 BUILD_ERMT_FALSE
681 BUILD_ERMT_TRUE
682 BUILD_RMT_FALSE
683 BUILD_RMT_TRUE
684 WERROR_FLAGS
685 DATE
686 CXXCPP
687 LT_SYS_LIBRARY_PATH
688 OTOOL64
689 OTOOL
690 LIPO
691 NMEDIT
692 DSYMUTIL
693 MANIFEST_TOOL
694 RANLIB
695 ac_ct_AR
696 AR
697 DLLTOOL
698 OBJDUMP
699 FILECMD
700 NM
701 ac_ct_DUMPBIN
702 DUMPBIN
703 LD
704 FGREP
705 EGREP
706 GREP
707 SED
708 LIBTOOL
709 host_os
710 host_vendor
711 host_cpu
712 host
713 build_os
714 build_vendor
715 build_cpu
716 build
717 am__fastdepCXX_FALSE
718 am__fastdepCXX_TRUE
719 CXXDEPMODE
720 ac_ct_CXX
721 CXXFLAGS
722 CXX
723 am__fastdepCC_FALSE
724 am__fastdepCC_TRUE
725 CCDEPMODE
726 am__nodep
727 AMDEPBACKSLASH
728 AMDEP_FALSE
729 AMDEP_TRUE
730 am__include
731 DEPDIR
732 OBJEXT
733 EXEEXT
734 ac_ct_CC
735 CPPFLAGS
736 LDFLAGS
737 CFLAGS
738 CC
739 PKG_CONFIG_LIBDIR
740 PKG_CONFIG_PATH
741 PKG_CONFIG
742 LN_S
743 am__xargs_n
744 am__rm_f_notfound
745 AM_BACKSLASH
746 AM_DEFAULT_VERBOSITY
747 AM_DEFAULT_V
748 AM_V
749 CSCOPE
750 ETAGS
751 CTAGS
752 am__untar
753 am__tar
754 AMTAR
755 am__leading_dot
756 SET_MAKE
757 AWK
758 mkdir_p
759 MKDIR_P
760 INSTALL_STRIP_PROGRAM
761 STRIP
762 install_sh
763 MAKEINFO
764 AUTOHEADER
765 AUTOMAKE
766 AUTOCONF
767 ACLOCAL
768 VERSION
769 PACKAGE
770 CYGPATH_W
771 am__isrc
772 INSTALL_DATA
773 INSTALL_SCRIPT
774 INSTALL_PROGRAM
775 target_alias
776 host_alias
777 build_alias
778 LIBS
779 ECHO_T
780 ECHO_N
781 ECHO_C
782 DEFS
783 mandir
784 localedir
785 libdir
786 psdir
787 pdfdir
788 dvidir
789 htmldir
790 infodir
791 docdir
792 oldincludedir
793 includedir
794 runstatedir
795 localstatedir
796 sharedstatedir
797 sysconfdir
798 datadir
799 datarootdir
800 libexecdir
801 sbindir
802 bindir
803 program_transform_name
804 prefix
805 exec_prefix
806 PACKAGE_URL
807 PACKAGE_BUGREPORT
808 PACKAGE_STRING
809 PACKAGE_VERSION
810 PACKAGE_TARNAME
811 PACKAGE_NAME
812 PATH_SEPARATOR
813 SHELL
814 am__quote'
815 ac_subst_files=''
816 ac_user_opts='
817 enable_option_checking
818 enable_silent_rules
819 enable_dependency_tracking
820 enable_largefile
821 enable_shared
822 enable_static
823 enable_pic
824 with_pic
825 enable_fast_install
826 enable_aix_soname
827 with_aix_soname
828 with_gnu_ld
829 with_sysroot
830 enable_libtool_lock
831 enable_werror
832 enable_static_progs
833 enable_rmt
834 enable_ermt
835 enable_readline
836 enable_qfa
837 enable_macosx
838 enable_selinux
839 with_dumpdatespath
840 with_rmtpath
841 enable_blkid
842 enable_uuid
843 enable_zlib
844 enable_bzip2
845 enable_lzo
846 enable_sqlite
847 enable_ssl
848 enable_year2038
849 '
850 ac_precious_vars='build_alias
851 host_alias
852 target_alias
853 PKG_CONFIG
854 PKG_CONFIG_PATH
855 PKG_CONFIG_LIBDIR
856 CC
857 CFLAGS
858 LDFLAGS
859 LIBS
860 CPPFLAGS
861 CXX
862 CXXFLAGS
863 CCC
864 LT_SYS_LIBRARY_PATH
865 CXXCPP
866 SELINUX_CFLAGS
867 SELINUX_LIBS
868 EXT2FS_CFLAGS
869 EXT2FS_LIBS
870 COM_ERR_CFLAGS
871 COM_ERR_LIBS
872 BLKID_CFLAGS
873 BLKID_LIBS
874 UUID_CFLAGS
875 UUID_LIBS
876 ZLIB_CFLAGS
877 ZLIB_LIBS
878 CPP
879 SSL_CFLAGS
880 SSL_LIBS'
881
882
883 # Initialize some variables set by options.
884 ac_init_help=
885 ac_init_version=false
886 ac_unrecognized_opts=
887 ac_unrecognized_sep=
888 # The variables have the same names as the options, with
889 # dashes changed to underlines.
890 cache_file=/dev/null
891 exec_prefix=NONE
892 no_create=
893 no_recursion=
894 prefix=NONE
895 program_prefix=NONE
896 program_suffix=NONE
897 program_transform_name=s,x,x,
898 silent=
899 site=
900 srcdir=
901 verbose=
902 x_includes=NONE
903 x_libraries=NONE
904
905 # Installation directory options.
906 # These are left unexpanded so users can "make install exec_prefix=/foo"
907 # and all the variables that are supposed to be based on exec_prefix
908 # by default will actually change.
909 # Use braces instead of parens because sh, perl, etc. also accept them.
910 # (The list follows the same order as the GNU Coding Standards.)
911 bindir='${exec_prefix}/bin'
912 sbindir='${exec_prefix}/sbin'
913 libexecdir='${exec_prefix}/libexec'
914 datarootdir='${prefix}/share'
915 datadir='${datarootdir}'
916 sysconfdir='${prefix}/etc'
917 sharedstatedir='${prefix}/com'
918 localstatedir='${prefix}/var'
919 runstatedir='${localstatedir}/run'
920 includedir='${prefix}/include'
921 oldincludedir='/usr/include'
922 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
923 infodir='${datarootdir}/info'
924 htmldir='${docdir}'
925 dvidir='${docdir}'
926 pdfdir='${docdir}'
927 psdir='${docdir}'
928 libdir='${exec_prefix}/lib'
929 localedir='${datarootdir}/locale'
930 mandir='${datarootdir}/man'
931
932 ac_prev=
933 ac_dashdash=
934 for ac_option
935 do
936 # If the previous option needs an argument, assign it.
937 if test -n "$ac_prev"; then
938 eval $ac_prev=\$ac_option
939 ac_prev=
940 continue
941 fi
942
943 case $ac_option in
944 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
945 *=) ac_optarg= ;;
946 *) ac_optarg=yes ;;
947 esac
948
949 case $ac_dashdash$ac_option in
950 --)
951 ac_dashdash=yes ;;
952
953 -bindir | --bindir | --bindi | --bind | --bin | --bi)
954 ac_prev=bindir ;;
955 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
956 bindir=$ac_optarg ;;
957
958 -build | --build | --buil | --bui | --bu)
959 ac_prev=build_alias ;;
960 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
961 build_alias=$ac_optarg ;;
962
963 -cache-file | --cache-file | --cache-fil | --cache-fi \
964 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
965 ac_prev=cache_file ;;
966 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
967 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
968 cache_file=$ac_optarg ;;
969
970 --config-cache | -C)
971 cache_file=config.cache ;;
972
973 -datadir | --datadir | --datadi | --datad)
974 ac_prev=datadir ;;
975 -datadir=* | --datadir=* | --datadi=* | --datad=*)
976 datadir=$ac_optarg ;;
977
978 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
979 | --dataroo | --dataro | --datar)
980 ac_prev=datarootdir ;;
981 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
982 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
983 datarootdir=$ac_optarg ;;
984
985 -disable-* | --disable-*)
986 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
987 # Reject names that are not valid shell variable names.
988 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
989 as_fn_error $? "invalid feature name: '$ac_useropt'"
990 ac_useropt_orig=$ac_useropt
991 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
992 case $ac_user_opts in
993 *"
994 "enable_$ac_useropt"
995 "*) ;;
996 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
997 ac_unrecognized_sep=', ';;
998 esac
999 eval enable_$ac_useropt=no ;;
1000
1001 -docdir | --docdir | --docdi | --doc | --do)
1002 ac_prev=docdir ;;
1003 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1004 docdir=$ac_optarg ;;
1005
1006 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1007 ac_prev=dvidir ;;
1008 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1009 dvidir=$ac_optarg ;;
1010
1011 -enable-* | --enable-*)
1012 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1013 # Reject names that are not valid shell variable names.
1014 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1015 as_fn_error $? "invalid feature name: '$ac_useropt'"
1016 ac_useropt_orig=$ac_useropt
1017 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1018 case $ac_user_opts in
1019 *"
1020 "enable_$ac_useropt"
1021 "*) ;;
1022 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1023 ac_unrecognized_sep=', ';;
1024 esac
1025 eval enable_$ac_useropt=\$ac_optarg ;;
1026
1027 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1028 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1029 | --exec | --exe | --ex)
1030 ac_prev=exec_prefix ;;
1031 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1032 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1033 | --exec=* | --exe=* | --ex=*)
1034 exec_prefix=$ac_optarg ;;
1035
1036 -gas | --gas | --ga | --g)
1037 # Obsolete; use --with-gas.
1038 with_gas=yes ;;
1039
1040 -help | --help | --hel | --he | -h)
1041 ac_init_help=long ;;
1042 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1043 ac_init_help=recursive ;;
1044 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1045 ac_init_help=short ;;
1046
1047 -host | --host | --hos | --ho)
1048 ac_prev=host_alias ;;
1049 -host=* | --host=* | --hos=* | --ho=*)
1050 host_alias=$ac_optarg ;;
1051
1052 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1053 ac_prev=htmldir ;;
1054 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1055 | --ht=*)
1056 htmldir=$ac_optarg ;;
1057
1058 -includedir | --includedir | --includedi | --included | --include \
1059 | --includ | --inclu | --incl | --inc)
1060 ac_prev=includedir ;;
1061 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1062 | --includ=* | --inclu=* | --incl=* | --inc=*)
1063 includedir=$ac_optarg ;;
1064
1065 -infodir | --infodir | --infodi | --infod | --info | --inf)
1066 ac_prev=infodir ;;
1067 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1068 infodir=$ac_optarg ;;
1069
1070 -libdir | --libdir | --libdi | --libd)
1071 ac_prev=libdir ;;
1072 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1073 libdir=$ac_optarg ;;
1074
1075 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1076 | --libexe | --libex | --libe)
1077 ac_prev=libexecdir ;;
1078 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1079 | --libexe=* | --libex=* | --libe=*)
1080 libexecdir=$ac_optarg ;;
1081
1082 -localedir | --localedir | --localedi | --localed | --locale)
1083 ac_prev=localedir ;;
1084 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1085 localedir=$ac_optarg ;;
1086
1087 -localstatedir | --localstatedir | --localstatedi | --localstated \
1088 | --localstate | --localstat | --localsta | --localst | --locals)
1089 ac_prev=localstatedir ;;
1090 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1091 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1092 localstatedir=$ac_optarg ;;
1093
1094 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1095 ac_prev=mandir ;;
1096 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1097 mandir=$ac_optarg ;;
1098
1099 -nfp | --nfp | --nf)
1100 # Obsolete; use --without-fp.
1101 with_fp=no ;;
1102
1103 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1104 | --no-cr | --no-c | -n)
1105 no_create=yes ;;
1106
1107 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1108 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1109 no_recursion=yes ;;
1110
1111 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1112 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1113 | --oldin | --oldi | --old | --ol | --o)
1114 ac_prev=oldincludedir ;;
1115 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1116 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1117 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1118 oldincludedir=$ac_optarg ;;
1119
1120 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1121 ac_prev=prefix ;;
1122 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1123 prefix=$ac_optarg ;;
1124
1125 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1126 | --program-pre | --program-pr | --program-p)
1127 ac_prev=program_prefix ;;
1128 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1129 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1130 program_prefix=$ac_optarg ;;
1131
1132 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1133 | --program-suf | --program-su | --program-s)
1134 ac_prev=program_suffix ;;
1135 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1136 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1137 program_suffix=$ac_optarg ;;
1138
1139 -program-transform-name | --program-transform-name \
1140 | --program-transform-nam | --program-transform-na \
1141 | --program-transform-n | --program-transform- \
1142 | --program-transform | --program-transfor \
1143 | --program-transfo | --program-transf \
1144 | --program-trans | --program-tran \
1145 | --progr-tra | --program-tr | --program-t)
1146 ac_prev=program_transform_name ;;
1147 -program-transform-name=* | --program-transform-name=* \
1148 | --program-transform-nam=* | --program-transform-na=* \
1149 | --program-transform-n=* | --program-transform-=* \
1150 | --program-transform=* | --program-transfor=* \
1151 | --program-transfo=* | --program-transf=* \
1152 | --program-trans=* | --program-tran=* \
1153 | --progr-tra=* | --program-tr=* | --program-t=*)
1154 program_transform_name=$ac_optarg ;;
1155
1156 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1157 ac_prev=pdfdir ;;
1158 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1159 pdfdir=$ac_optarg ;;
1160
1161 -psdir | --psdir | --psdi | --psd | --ps)
1162 ac_prev=psdir ;;
1163 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1164 psdir=$ac_optarg ;;
1165
1166 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1167 | -silent | --silent | --silen | --sile | --sil)
1168 silent=yes ;;
1169
1170 -runstatedir | --runstatedir | --runstatedi | --runstated \
1171 | --runstate | --runstat | --runsta | --runst | --runs \
1172 | --run | --ru | --r)
1173 ac_prev=runstatedir ;;
1174 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1175 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1176 | --run=* | --ru=* | --r=*)
1177 runstatedir=$ac_optarg ;;
1178
1179 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1180 ac_prev=sbindir ;;
1181 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1182 | --sbi=* | --sb=*)
1183 sbindir=$ac_optarg ;;
1184
1185 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1186 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1187 | --sharedst | --shareds | --shared | --share | --shar \
1188 | --sha | --sh)
1189 ac_prev=sharedstatedir ;;
1190 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1191 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1192 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1193 | --sha=* | --sh=*)
1194 sharedstatedir=$ac_optarg ;;
1195
1196 -site | --site | --sit)
1197 ac_prev=site ;;
1198 -site=* | --site=* | --sit=*)
1199 site=$ac_optarg ;;
1200
1201 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1202 ac_prev=srcdir ;;
1203 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1204 srcdir=$ac_optarg ;;
1205
1206 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1207 | --syscon | --sysco | --sysc | --sys | --sy)
1208 ac_prev=sysconfdir ;;
1209 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1210 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1211 sysconfdir=$ac_optarg ;;
1212
1213 -target | --target | --targe | --targ | --tar | --ta | --t)
1214 ac_prev=target_alias ;;
1215 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1216 target_alias=$ac_optarg ;;
1217
1218 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1219 verbose=yes ;;
1220
1221 -version | --version | --versio | --versi | --vers | -V)
1222 ac_init_version=: ;;
1223
1224 -with-* | --with-*)
1225 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1226 # Reject names that are not valid shell variable names.
1227 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1228 as_fn_error $? "invalid package name: '$ac_useropt'"
1229 ac_useropt_orig=$ac_useropt
1230 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1231 case $ac_user_opts in
1232 *"
1233 "with_$ac_useropt"
1234 "*) ;;
1235 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1236 ac_unrecognized_sep=', ';;
1237 esac
1238 eval with_$ac_useropt=\$ac_optarg ;;
1239
1240 -without-* | --without-*)
1241 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1242 # Reject names that are not valid shell variable names.
1243 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1244 as_fn_error $? "invalid package name: '$ac_useropt'"
1245 ac_useropt_orig=$ac_useropt
1246 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1247 case $ac_user_opts in
1248 *"
1249 "with_$ac_useropt"
1250 "*) ;;
1251 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1252 ac_unrecognized_sep=', ';;
1253 esac
1254 eval with_$ac_useropt=no ;;
1255
1256 --x)
1257 # Obsolete; use --with-x.
1258 with_x=yes ;;
1259
1260 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1261 | --x-incl | --x-inc | --x-in | --x-i)
1262 ac_prev=x_includes ;;
1263 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1264 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1265 x_includes=$ac_optarg ;;
1266
1267 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1268 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1269 ac_prev=x_libraries ;;
1270 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1271 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1272 x_libraries=$ac_optarg ;;
1273
1274 -*) as_fn_error $? "unrecognized option: '$ac_option'
1275 Try '$0 --help' for more information"
1276 ;;
1277
1278 *=*)
1279 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1280 # Reject names that are not valid shell variable names.
1281 case $ac_envvar in #(
1282 '' | [0-9]* | *[!_$as_cr_alnum]* )
1283 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1284 esac
1285 eval $ac_envvar=\$ac_optarg
1286 export $ac_envvar ;;
1287
1288 *)
1289 # FIXME: should be removed in autoconf 3.0.
1290 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1291 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1292 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1293 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1294 ;;
1295
1296 esac
1297 done
1298
1299 if test -n "$ac_prev"; then
1300 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1301 as_fn_error $? "missing argument to $ac_option"
1302 fi
1303
1304 if test -n "$ac_unrecognized_opts"; then
1305 case $enable_option_checking in
1306 no) ;;
1307 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1308 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1309 esac
1310 fi
1311
1312 # Check all directory arguments for consistency.
1313 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1314 datadir sysconfdir sharedstatedir localstatedir includedir \
1315 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1316 libdir localedir mandir runstatedir
1317 do
1318 eval ac_val=\$$ac_var
1319 # Remove trailing slashes.
1320 case $ac_val in
1321 */ )
1322 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1323 eval $ac_var=\$ac_val;;
1324 esac
1325 # Be sure to have absolute directory names.
1326 case $ac_val in
1327 [\\/$]* | ?:[\\/]* ) continue;;
1328 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1329 esac
1330 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1331 done
1332
1333 # There might be people who depend on the old broken behavior: '$host'
1334 # used to hold the argument of --host etc.
1335 # FIXME: To remove some day.
1336 build=$build_alias
1337 host=$host_alias
1338 target=$target_alias
1339
1340 # FIXME: To remove some day.
1341 if test "x$host_alias" != x; then
1342 if test "x$build_alias" = x; then
1343 cross_compiling=maybe
1344 elif test "x$build_alias" != "x$host_alias"; then
1345 cross_compiling=yes
1346 fi
1347 fi
1348
1349 ac_tool_prefix=
1350 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1351
1352 test "$silent" = yes && exec 6>/dev/null
1353
1354
1355 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1356 ac_ls_di=`ls -di .` &&
1357 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1358 as_fn_error $? "working directory cannot be determined"
1359 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1360 as_fn_error $? "pwd does not report name of working directory"
1361
1362
1363 # Find the source files, if location was not specified.
1364 if test -z "$srcdir"; then
1365 ac_srcdir_defaulted=yes
1366 # Try the directory containing this script, then the parent directory.
1367 ac_confdir=`$as_dirname -- "$as_myself" ||
1368 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1369 X"$as_myself" : 'X\(//\)[^/]' \| \
1370 X"$as_myself" : 'X\(//\)$' \| \
1371 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1372 printf "%s\n" X"$as_myself" |
1373 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1374 s//\1/
1375 q
1376 }
1377 /^X\(\/\/\)[^/].*/{
1378 s//\1/
1379 q
1380 }
1381 /^X\(\/\/\)$/{
1382 s//\1/
1383 q
1384 }
1385 /^X\(\/\).*/{
1386 s//\1/
1387 q
1388 }
1389 s/.*/./; q'`
1390 srcdir=$ac_confdir
1391 if test ! -r "$srcdir/$ac_unique_file"; then
1392 srcdir=..
1393 fi
1394 else
1395 ac_srcdir_defaulted=no
1396 fi
1397 if test ! -r "$srcdir/$ac_unique_file"; then
1398 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1399 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1400 fi
1401 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1402 ac_abs_confdir=`(
1403 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1404 pwd)`
1405 # When building in place, set srcdir=.
1406 if test "$ac_abs_confdir" = "$ac_pwd"; then
1407 srcdir=.
1408 fi
1409 # Remove unnecessary trailing slashes from srcdir.
1410 # Double slashes in file names in object file debugging info
1411 # mess up M-x gdb in Emacs.
1412 case $srcdir in
1413 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1414 esac
1415 for ac_var in $ac_precious_vars; do
1416 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1417 eval ac_env_${ac_var}_value=\$${ac_var}
1418 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1419 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1420 done
1421
1422 #
1423 # Report the --help message.
1424 #
1425 if test "$ac_init_help" = "long"; then
1426 # Omit some internal or obsolete options to make the list less imposing.
1427 # This message is too long to be a string in the A/UX 3.1 sh.
1428 cat <<_ACEOF
1429 'configure' configures dump 0.4b55 to adapt to many kinds of systems.
1430
1431 Usage: $0 [OPTION]... [VAR=VALUE]...
1432
1433 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1434 VAR=VALUE. See below for descriptions of some of the useful variables.
1435
1436 Defaults for the options are specified in brackets.
1437
1438 Configuration:
1439 -h, --help display this help and exit
1440 --help=short display options specific to this package
1441 --help=recursive display the short help of all the included packages
1442 -V, --version display version information and exit
1443 -q, --quiet, --silent do not print 'checking ...' messages
1444 --cache-file=FILE cache test results in FILE [disabled]
1445 -C, --config-cache alias for '--cache-file=config.cache'
1446 -n, --no-create do not create output files
1447 --srcdir=DIR find the sources in DIR [configure dir or '..']
1448
1449 Installation directories:
1450 --prefix=PREFIX install architecture-independent files in PREFIX
1451 [$ac_default_prefix]
1452 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1453 [PREFIX]
1454
1455 By default, 'make install' will install all the files in
1456 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1457 an installation prefix other than '$ac_default_prefix' using '--prefix',
1458 for instance '--prefix=\$HOME'.
1459
1460 For better control, use the options below.
1461
1462 Fine tuning of the installation directories:
1463 --bindir=DIR user executables [EPREFIX/bin]
1464 --sbindir=DIR system admin executables [EPREFIX/sbin]
1465 --libexecdir=DIR program executables [EPREFIX/libexec]
1466 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1467 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1468 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1469 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1470 --libdir=DIR object code libraries [EPREFIX/lib]
1471 --includedir=DIR C header files [PREFIX/include]
1472 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1473 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1474 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1475 --infodir=DIR info documentation [DATAROOTDIR/info]
1476 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1477 --mandir=DIR man documentation [DATAROOTDIR/man]
1478 --docdir=DIR documentation root [DATAROOTDIR/doc/dump]
1479 --htmldir=DIR html documentation [DOCDIR]
1480 --dvidir=DIR dvi documentation [DOCDIR]
1481 --pdfdir=DIR pdf documentation [DOCDIR]
1482 --psdir=DIR ps documentation [DOCDIR]
1483 _ACEOF
1484
1485 cat <<\_ACEOF
1486
1487 Program names:
1488 --program-prefix=PREFIX prepend PREFIX to installed program names
1489 --program-suffix=SUFFIX append SUFFIX to installed program names
1490 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1491
1492 System types:
1493 --build=BUILD configure for building on BUILD [guessed]
1494 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1495 _ACEOF
1496 fi
1497
1498 if test -n "$ac_init_help"; then
1499 case $ac_init_help in
1500 short | recursive ) echo "Configuration of dump 0.4b55:";;
1501 esac
1502 cat <<\_ACEOF
1503
1504 Optional Features:
1505 --disable-option-checking ignore unrecognized --enable/--with options
1506 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1507 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1508 --enable-silent-rules less verbose build output (undo: "make V=1")
1509 --disable-silent-rules verbose build output (undo: "make V=0")
1510 --enable-dependency-tracking
1511 do not reject slow dependency extractors
1512 --disable-dependency-tracking
1513 speeds up one-time build
1514 --disable-largefile omit support for large files
1515 --enable-shared[=PKGS] build shared libraries [default=yes]
1516 --enable-static[=PKGS] build static libraries [default=yes]
1517 --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1518 both]
1519 --enable-fast-install[=PKGS]
1520 optimize for fast installation [default=yes]
1521 --enable-aix-soname=aix|svr4|both
1522 shared library versioning (aka "SONAME") variant to
1523 provide on AIX, [default=aix].
1524 --disable-libtool-lock avoid locking (might break parallel builds)
1525 --enable-werror Use Werror during compilation [default=no]
1526 --enable-static-progs link dump and restore statically [default=no]
1527 --enable-rmt compile and install rmt [default=yes]
1528 --enable-ermt compile ermt, an encrypting version of rmt
1529 [default=no]
1530 --enable-readline enable readline support in restore [default=yes]
1531 --enable-qfa enable Quick File Access support [default=yes]
1532 --enable-macosx include Mac OSX restore compatibility [default=no]
1533 --enable-selinux restore can translate SELinux EAs [default=auto]
1534 --disable-blkid enable blkid support
1535 --disable-uuid enable uuid support
1536 --disable-zlib enable zlib compression support
1537 --disable-bzip2 enable bzip2 compression support
1538 --disable-lzo enable lzo compression support
1539 --disable-sqlite disable sqlite indexing support
1540 --disable-ssl disable ssl support
1541 --enable-year2038 support timestamps after 2038
1542
1543 Optional Packages:
1544 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1545 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1546 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1547 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1548 compiler's sysroot if not specified).
1549 --with-dumpdatespath=PATH
1550 select path for dumpdates file
1551 --with-rmtpath=PATH select path for rmt program
1552
1553 Some influential environment variables:
1554 PKG_CONFIG path to pkg-config utility
1555 PKG_CONFIG_PATH
1556 directories to add to pkg-config's search path
1557 PKG_CONFIG_LIBDIR
1558 path overriding pkg-config's built-in search path
1559 CC C compiler command
1560 CFLAGS C compiler flags
1561 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1562 nonstandard directory <lib dir>
1563 LIBS libraries to pass to the linker, e.g. -l<library>
1564 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1565 you have headers in a nonstandard directory <include dir>
1566 CXX C++ compiler command
1567 CXXFLAGS C++ compiler flags
1568 LT_SYS_LIBRARY_PATH
1569 User-defined run-time library search path.
1570 CXXCPP C++ preprocessor
1571 SELINUX_CFLAGS
1572 C compiler flags for SELINUX, overriding pkg-config
1573 SELINUX_LIBS
1574 linker flags for SELINUX, overriding pkg-config
1575 EXT2FS_CFLAGS
1576 C compiler flags for EXT2FS, overriding pkg-config
1577 EXT2FS_LIBS linker flags for EXT2FS, overriding pkg-config
1578 COM_ERR_CFLAGS
1579 C compiler flags for COM_ERR, overriding pkg-config
1580 COM_ERR_LIBS
1581 linker flags for COM_ERR, overriding pkg-config
1582 BLKID_CFLAGS
1583 C compiler flags for BLKID, overriding pkg-config
1584 BLKID_LIBS linker flags for BLKID, overriding pkg-config
1585 UUID_CFLAGS C compiler flags for UUID, overriding pkg-config
1586 UUID_LIBS linker flags for UUID, overriding pkg-config
1587 ZLIB_CFLAGS C compiler flags for ZLIB, overriding pkg-config
1588 ZLIB_LIBS linker flags for ZLIB, overriding pkg-config
1589 CPP C preprocessor
1590 SSL_CFLAGS C compiler flags for SSL, overriding pkg-config
1591 SSL_LIBS linker flags for SSL, overriding pkg-config
1592
1593 Use these variables to override the choices made by 'configure' or to help
1594 it to find libraries and programs with nonstandard names/locations.
1595
1596 Report bugs to <https://dump.sourceforge.io>.
1597 _ACEOF
1598 ac_status=$?
1599 fi
1600
1601 if test "$ac_init_help" = "recursive"; then
1602 # If there are subdirs, report their specific --help.
1603 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1604 test -d "$ac_dir" ||
1605 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1606 continue
1607 ac_builddir=.
1608
1609 case "$ac_dir" in
1610 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1611 *)
1612 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1613 # A ".." for each directory in $ac_dir_suffix.
1614 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1615 case $ac_top_builddir_sub in
1616 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1617 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1618 esac ;;
1619 esac
1620 ac_abs_top_builddir=$ac_pwd
1621 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1622 # for backward compatibility:
1623 ac_top_builddir=$ac_top_build_prefix
1624
1625 case $srcdir in
1626 .) # We are building in place.
1627 ac_srcdir=.
1628 ac_top_srcdir=$ac_top_builddir_sub
1629 ac_abs_top_srcdir=$ac_pwd ;;
1630 [\\/]* | ?:[\\/]* ) # Absolute name.
1631 ac_srcdir=$srcdir$ac_dir_suffix;
1632 ac_top_srcdir=$srcdir
1633 ac_abs_top_srcdir=$srcdir ;;
1634 *) # Relative name.
1635 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1636 ac_top_srcdir=$ac_top_build_prefix$srcdir
1637 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1638 esac
1639 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1640
1641 cd "$ac_dir" || { ac_status=$?; continue; }
1642 # Check for configure.gnu first; this name is used for a wrapper for
1643 # Metaconfig's "Configure" on case-insensitive file systems.
1644 if test -f "$ac_srcdir/configure.gnu"; then
1645 echo &&
1646 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1647 elif test -f "$ac_srcdir/configure"; then
1648 echo &&
1649 $SHELL "$ac_srcdir/configure" --help=recursive
1650 else
1651 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1652 fi || ac_status=$?
1653 cd "$ac_pwd" || { ac_status=$?; break; }
1654 done
1655 fi
1656
1657 test -n "$ac_init_help" && exit $ac_status
1658 if $ac_init_version; then
1659 cat <<\_ACEOF
1660 dump configure 0.4b55
1661 generated by GNU Autoconf 2.72
1662
1663 Copyright (C) 2023 Free Software Foundation, Inc.
1664 This configure script is free software; the Free Software Foundation
1665 gives unlimited permission to copy, distribute and modify it.
1666 _ACEOF
1667 exit
1668 fi
1669
1670 ## ------------------------ ##
1671 ## Autoconf initialization. ##
1672 ## ------------------------ ##
1673
1674 # ac_fn_c_try_compile LINENO
1675 # --------------------------
1676 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1677 ac_fn_c_try_compile ()
1678 {
1679 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1680 rm -f conftest.$ac_objext conftest.beam
1681 if { { ac_try="$ac_compile"
1682 case "(($ac_try" in
1683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1684 *) ac_try_echo=$ac_try;;
1685 esac
1686 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1687 printf "%s\n" "$ac_try_echo"; } >&5
1688 (eval "$ac_compile") 2>conftest.err
1689 ac_status=$?
1690 if test -s conftest.err; then
1691 grep -v '^ *+' conftest.err >conftest.er1
1692 cat conftest.er1 >&5
1693 mv -f conftest.er1 conftest.err
1694 fi
1695 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1696 test $ac_status = 0; } && {
1697 test -z "$ac_c_werror_flag" ||
1698 test ! -s conftest.err
1699 } && test -s conftest.$ac_objext
1700 then :
1701 ac_retval=0
1702 else case e in #(
1703 e) printf "%s\n" "$as_me: failed program was:" >&5
1704 sed 's/^/| /' conftest.$ac_ext >&5
1705
1706 ac_retval=1 ;;
1707 esac
1708 fi
1709 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1710 as_fn_set_status $ac_retval
1711
1712 } # ac_fn_c_try_compile
1713
1714 # ac_fn_cxx_try_compile LINENO
1715 # ----------------------------
1716 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1717 ac_fn_cxx_try_compile ()
1718 {
1719 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1720 rm -f conftest.$ac_objext conftest.beam
1721 if { { ac_try="$ac_compile"
1722 case "(($ac_try" in
1723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1724 *) ac_try_echo=$ac_try;;
1725 esac
1726 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1727 printf "%s\n" "$ac_try_echo"; } >&5
1728 (eval "$ac_compile") 2>conftest.err
1729 ac_status=$?
1730 if test -s conftest.err; then
1731 grep -v '^ *+' conftest.err >conftest.er1
1732 cat conftest.er1 >&5
1733 mv -f conftest.er1 conftest.err
1734 fi
1735 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1736 test $ac_status = 0; } && {
1737 test -z "$ac_cxx_werror_flag" ||
1738 test ! -s conftest.err
1739 } && test -s conftest.$ac_objext
1740 then :
1741 ac_retval=0
1742 else case e in #(
1743 e) printf "%s\n" "$as_me: failed program was:" >&5
1744 sed 's/^/| /' conftest.$ac_ext >&5
1745
1746 ac_retval=1 ;;
1747 esac
1748 fi
1749 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1750 as_fn_set_status $ac_retval
1751
1752 } # ac_fn_cxx_try_compile
1753
1754 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1755 # -------------------------------------------------------
1756 # Tests whether HEADER exists and can be compiled using the include files in
1757 # INCLUDES, setting the cache variable VAR accordingly.
1758 ac_fn_c_check_header_compile ()
1759 {
1760 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1762 printf %s "checking for $2... " >&6; }
1763 if eval test \${$3+y}
1764 then :
1765 printf %s "(cached) " >&6
1766 else case e in #(
1767 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1768 /* end confdefs.h. */
1769 $4
1770 #include <$2>
1771 _ACEOF
1772 if ac_fn_c_try_compile "$LINENO"
1773 then :
1774 eval "$3=yes"
1775 else case e in #(
1776 e) eval "$3=no" ;;
1777 esac
1778 fi
1779 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1780 esac
1781 fi
1782 eval ac_res=\$$3
1783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1784 printf "%s\n" "$ac_res" >&6; }
1785 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1786
1787 } # ac_fn_c_check_header_compile
1788
1789 # ac_fn_c_try_link LINENO
1790 # -----------------------
1791 # Try to link conftest.$ac_ext, and return whether this succeeded.
1792 ac_fn_c_try_link ()
1793 {
1794 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1795 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1796 if { { ac_try="$ac_link"
1797 case "(($ac_try" in
1798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1799 *) ac_try_echo=$ac_try;;
1800 esac
1801 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1802 printf "%s\n" "$ac_try_echo"; } >&5
1803 (eval "$ac_link") 2>conftest.err
1804 ac_status=$?
1805 if test -s conftest.err; then
1806 grep -v '^ *+' conftest.err >conftest.er1
1807 cat conftest.er1 >&5
1808 mv -f conftest.er1 conftest.err
1809 fi
1810 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1811 test $ac_status = 0; } && {
1812 test -z "$ac_c_werror_flag" ||
1813 test ! -s conftest.err
1814 } && test -s conftest$ac_exeext && {
1815 test "$cross_compiling" = yes ||
1816 test -x conftest$ac_exeext
1817 }
1818 then :
1819 ac_retval=0
1820 else case e in #(
1821 e) printf "%s\n" "$as_me: failed program was:" >&5
1822 sed 's/^/| /' conftest.$ac_ext >&5
1823
1824 ac_retval=1 ;;
1825 esac
1826 fi
1827 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1828 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1829 # interfere with the next link command; also delete a directory that is
1830 # left behind by Apple's compiler. We do this before executing the actions.
1831 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1832 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1833 as_fn_set_status $ac_retval
1834
1835 } # ac_fn_c_try_link
1836
1837 # ac_fn_c_check_func LINENO FUNC VAR
1838 # ----------------------------------
1839 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1840 ac_fn_c_check_func ()
1841 {
1842 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1844 printf %s "checking for $2... " >&6; }
1845 if eval test \${$3+y}
1846 then :
1847 printf %s "(cached) " >&6
1848 else case e in #(
1849 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1850 /* end confdefs.h. */
1851 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1852 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1853 #define $2 innocuous_$2
1854
1855 /* System header to define __stub macros and hopefully few prototypes,
1856 which can conflict with char $2 (void); below. */
1857
1858 #include <limits.h>
1859 #undef $2
1860
1861 /* Override any GCC internal prototype to avoid an error.
1862 Use char because int might match the return type of a GCC
1863 builtin and then its argument prototype would still apply. */
1864 #ifdef __cplusplus
1865 extern "C"
1866 #endif
1867 char $2 (void);
1868 /* The GNU C library defines this for functions which it implements
1869 to always fail with ENOSYS. Some functions are actually named
1870 something starting with __ and the normal name is an alias. */
1871 #if defined __stub_$2 || defined __stub___$2
1872 choke me
1873 #endif
1874
1875 int
1876 main (void)
1877 {
1878 return $2 ();
1879 ;
1880 return 0;
1881 }
1882 _ACEOF
1883 if ac_fn_c_try_link "$LINENO"
1884 then :
1885 eval "$3=yes"
1886 else case e in #(
1887 e) eval "$3=no" ;;
1888 esac
1889 fi
1890 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1891 conftest$ac_exeext conftest.$ac_ext ;;
1892 esac
1893 fi
1894 eval ac_res=\$$3
1895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1896 printf "%s\n" "$ac_res" >&6; }
1897 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1898
1899 } # ac_fn_c_check_func
1900
1901 # ac_fn_cxx_try_cpp LINENO
1902 # ------------------------
1903 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1904 ac_fn_cxx_try_cpp ()
1905 {
1906 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1907 if { { ac_try="$ac_cpp conftest.$ac_ext"
1908 case "(($ac_try" in
1909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1910 *) ac_try_echo=$ac_try;;
1911 esac
1912 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1913 printf "%s\n" "$ac_try_echo"; } >&5
1914 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1915 ac_status=$?
1916 if test -s conftest.err; then
1917 grep -v '^ *+' conftest.err >conftest.er1
1918 cat conftest.er1 >&5
1919 mv -f conftest.er1 conftest.err
1920 fi
1921 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1922 test $ac_status = 0; } > conftest.i && {
1923 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1924 test ! -s conftest.err
1925 }
1926 then :
1927 ac_retval=0
1928 else case e in #(
1929 e) printf "%s\n" "$as_me: failed program was:" >&5
1930 sed 's/^/| /' conftest.$ac_ext >&5
1931
1932 ac_retval=1 ;;
1933 esac
1934 fi
1935 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1936 as_fn_set_status $ac_retval
1937
1938 } # ac_fn_cxx_try_cpp
1939
1940 # ac_fn_cxx_try_link LINENO
1941 # -------------------------
1942 # Try to link conftest.$ac_ext, and return whether this succeeded.
1943 ac_fn_cxx_try_link ()
1944 {
1945 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1946 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1947 if { { ac_try="$ac_link"
1948 case "(($ac_try" in
1949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1950 *) ac_try_echo=$ac_try;;
1951 esac
1952 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1953 printf "%s\n" "$ac_try_echo"; } >&5
1954 (eval "$ac_link") 2>conftest.err
1955 ac_status=$?
1956 if test -s conftest.err; then
1957 grep -v '^ *+' conftest.err >conftest.er1
1958 cat conftest.er1 >&5
1959 mv -f conftest.er1 conftest.err
1960 fi
1961 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1962 test $ac_status = 0; } && {
1963 test -z "$ac_cxx_werror_flag" ||
1964 test ! -s conftest.err
1965 } && test -s conftest$ac_exeext && {
1966 test "$cross_compiling" = yes ||
1967 test -x conftest$ac_exeext
1968 }
1969 then :
1970 ac_retval=0
1971 else case e in #(
1972 e) printf "%s\n" "$as_me: failed program was:" >&5
1973 sed 's/^/| /' conftest.$ac_ext >&5
1974
1975 ac_retval=1 ;;
1976 esac
1977 fi
1978 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1979 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1980 # interfere with the next link command; also delete a directory that is
1981 # left behind by Apple's compiler. We do this before executing the actions.
1982 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1983 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1984 as_fn_set_status $ac_retval
1985
1986 } # ac_fn_cxx_try_link
1987
1988 # ac_fn_c_try_cpp LINENO
1989 # ----------------------
1990 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1991 ac_fn_c_try_cpp ()
1992 {
1993 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1994 if { { ac_try="$ac_cpp conftest.$ac_ext"
1995 case "(($ac_try" in
1996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1997 *) ac_try_echo=$ac_try;;
1998 esac
1999 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2000 printf "%s\n" "$ac_try_echo"; } >&5
2001 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2002 ac_status=$?
2003 if test -s conftest.err; then
2004 grep -v '^ *+' conftest.err >conftest.er1
2005 cat conftest.er1 >&5
2006 mv -f conftest.er1 conftest.err
2007 fi
2008 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2009 test $ac_status = 0; } > conftest.i && {
2010 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2011 test ! -s conftest.err
2012 }
2013 then :
2014 ac_retval=0
2015 else case e in #(
2016 e) printf "%s\n" "$as_me: failed program was:" >&5
2017 sed 's/^/| /' conftest.$ac_ext >&5
2018
2019 ac_retval=1 ;;
2020 esac
2021 fi
2022 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2023 as_fn_set_status $ac_retval
2024
2025 } # ac_fn_c_try_cpp
2026
2027 # ac_fn_c_find_intX_t LINENO BITS VAR
2028 # -----------------------------------
2029 # Finds a signed integer type with width BITS, setting cache variable VAR
2030 # accordingly.
2031 ac_fn_c_find_intX_t ()
2032 {
2033 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2035 printf %s "checking for int$2_t... " >&6; }
2036 if eval test \${$3+y}
2037 then :
2038 printf %s "(cached) " >&6
2039 else case e in #(
2040 e) eval "$3=no"
2041 # Order is important - never check a type that is potentially smaller
2042 # than half of the expected target width.
2043 for ac_type in int$2_t 'int' 'long int' \
2044 'long long int' 'short int' 'signed char'; do
2045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2046 /* end confdefs.h. */
2047 $ac_includes_default
2048 enum { N = $2 / 2 - 1 };
2049 int
2050 main (void)
2051 {
2052 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2053 test_array [0] = 0;
2054 return test_array [0];
2055
2056 ;
2057 return 0;
2058 }
2059 _ACEOF
2060 if ac_fn_c_try_compile "$LINENO"
2061 then :
2062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2063 /* end confdefs.h. */
2064 $ac_includes_default
2065 enum { N = $2 / 2 - 1 };
2066 int
2067 main (void)
2068 {
2069 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2070 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2071 test_array [0] = 0;
2072 return test_array [0];
2073
2074 ;
2075 return 0;
2076 }
2077 _ACEOF
2078 if ac_fn_c_try_compile "$LINENO"
2079 then :
2080
2081 else case e in #(
2082 e) case $ac_type in #(
2083 int$2_t) :
2084 eval "$3=yes" ;; #(
2085 *) :
2086 eval "$3=\$ac_type" ;;
2087 esac ;;
2088 esac
2089 fi
2090 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2091 fi
2092 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2093 if eval test \"x\$"$3"\" = x"no"
2094 then :
2095
2096 else case e in #(
2097 e) break ;;
2098 esac
2099 fi
2100 done ;;
2101 esac
2102 fi
2103 eval ac_res=\$$3
2104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2105 printf "%s\n" "$ac_res" >&6; }
2106 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2107
2108 } # ac_fn_c_find_intX_t
2109
2110 # ac_fn_c_find_uintX_t LINENO BITS VAR
2111 # ------------------------------------
2112 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2113 # accordingly.
2114 ac_fn_c_find_uintX_t ()
2115 {
2116 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2118 printf %s "checking for uint$2_t... " >&6; }
2119 if eval test \${$3+y}
2120 then :
2121 printf %s "(cached) " >&6
2122 else case e in #(
2123 e) eval "$3=no"
2124 # Order is important - never check a type that is potentially smaller
2125 # than half of the expected target width.
2126 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2127 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2129 /* end confdefs.h. */
2130 $ac_includes_default
2131 int
2132 main (void)
2133 {
2134 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2135 test_array [0] = 0;
2136 return test_array [0];
2137
2138 ;
2139 return 0;
2140 }
2141 _ACEOF
2142 if ac_fn_c_try_compile "$LINENO"
2143 then :
2144 case $ac_type in #(
2145 uint$2_t) :
2146 eval "$3=yes" ;; #(
2147 *) :
2148 eval "$3=\$ac_type" ;;
2149 esac
2150 fi
2151 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2152 if eval test \"x\$"$3"\" = x"no"
2153 then :
2154
2155 else case e in #(
2156 e) break ;;
2157 esac
2158 fi
2159 done ;;
2160 esac
2161 fi
2162 eval ac_res=\$$3
2163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2164 printf "%s\n" "$ac_res" >&6; }
2165 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2166
2167 } # ac_fn_c_find_uintX_t
2168 ac_configure_args_raw=
2169 for ac_arg
2170 do
2171 case $ac_arg in
2172 *\'*)
2173 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2174 esac
2175 as_fn_append ac_configure_args_raw " '$ac_arg'"
2176 done
2177
2178 case $ac_configure_args_raw in
2179 *$as_nl*)
2180 ac_safe_unquote= ;;
2181 *)
2182 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2183 ac_unsafe_a="$ac_unsafe_z#~"
2184 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2185 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2186 esac
2187
2188 cat >config.log <<_ACEOF
2189 This file contains any messages produced by compilers while
2190 running configure, to aid debugging if configure makes a mistake.
2191
2192 It was created by dump $as_me 0.4b55, which was
2193 generated by GNU Autoconf 2.72. Invocation command line was
2194
2195 $ $0$ac_configure_args_raw
2196
2197 _ACEOF
2198 exec 5>>config.log
2199 {
2200 cat <<_ASUNAME
2201 ## --------- ##
2202 ## Platform. ##
2203 ## --------- ##
2204
2205 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2206 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2207 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2208 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2209 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2210
2211 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2212 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2213
2214 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2215 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2216 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2217 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2218 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2219 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2220 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2221
2222 _ASUNAME
2223
2224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2225 for as_dir in $PATH
2226 do
2227 IFS=$as_save_IFS
2228 case $as_dir in #(((
2229 '') as_dir=./ ;;
2230 */) ;;
2231 *) as_dir=$as_dir/ ;;
2232 esac
2233 printf "%s\n" "PATH: $as_dir"
2234 done
2235 IFS=$as_save_IFS
2236
2237 } >&5
2238
2239 cat >&5 <<_ACEOF
2240
2241
2242 ## ----------- ##
2243 ## Core tests. ##
2244 ## ----------- ##
2245
2246 _ACEOF
2247
2248
2249 # Keep a trace of the command line.
2250 # Strip out --no-create and --no-recursion so they do not pile up.
2251 # Strip out --silent because we don't want to record it for future runs.
2252 # Also quote any args containing shell meta-characters.
2253 # Make two passes to allow for proper duplicate-argument suppression.
2254 ac_configure_args=
2255 ac_configure_args0=
2256 ac_configure_args1=
2257 ac_must_keep_next=false
2258 for ac_pass in 1 2
2259 do
2260 for ac_arg
2261 do
2262 case $ac_arg in
2263 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2264 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2265 | -silent | --silent | --silen | --sile | --sil)
2266 continue ;;
2267 *\'*)
2268 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2269 esac
2270 case $ac_pass in
2271 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2272 2)
2273 as_fn_append ac_configure_args1 " '$ac_arg'"
2274 if test $ac_must_keep_next = true; then
2275 ac_must_keep_next=false # Got value, back to normal.
2276 else
2277 case $ac_arg in
2278 *=* | --config-cache | -C | -disable-* | --disable-* \
2279 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2280 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2281 | -with-* | --with-* | -without-* | --without-* | --x)
2282 case "$ac_configure_args0 " in
2283 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2284 esac
2285 ;;
2286 -* ) ac_must_keep_next=true ;;
2287 esac
2288 fi
2289 as_fn_append ac_configure_args " '$ac_arg'"
2290 ;;
2291 esac
2292 done
2293 done
2294 { ac_configure_args0=; unset ac_configure_args0;}
2295 { ac_configure_args1=; unset ac_configure_args1;}
2296
2297 # When interrupted or exit'd, cleanup temporary files, and complete
2298 # config.log. We remove comments because anyway the quotes in there
2299 # would cause problems or look ugly.
2300 # WARNING: Use '\'' to represent an apostrophe within the trap.
2301 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2302 trap 'exit_status=$?
2303 # Sanitize IFS.
2304 IFS=" "" $as_nl"
2305 # Save into config.log some information that might help in debugging.
2306 {
2307 echo
2308
2309 printf "%s\n" "## ---------------- ##
2310 ## Cache variables. ##
2311 ## ---------------- ##"
2312 echo
2313 # The following way of writing the cache mishandles newlines in values,
2314 (
2315 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2316 eval ac_val=\$$ac_var
2317 case $ac_val in #(
2318 *${as_nl}*)
2319 case $ac_var in #(
2320 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2321 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2322 esac
2323 case $ac_var in #(
2324 _ | IFS | as_nl) ;; #(
2325 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2326 *) { eval $ac_var=; unset $ac_var;} ;;
2327 esac ;;
2328 esac
2329 done
2330 (set) 2>&1 |
2331 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2332 *${as_nl}ac_space=\ *)
2333 sed -n \
2334 "s/'\''/'\''\\\\'\'''\''/g;
2335 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2336 ;; #(
2337 *)
2338 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2339 ;;
2340 esac |
2341 sort
2342 )
2343 echo
2344
2345 printf "%s\n" "## ----------------- ##
2346 ## Output variables. ##
2347 ## ----------------- ##"
2348 echo
2349 for ac_var in $ac_subst_vars
2350 do
2351 eval ac_val=\$$ac_var
2352 case $ac_val in
2353 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2354 esac
2355 printf "%s\n" "$ac_var='\''$ac_val'\''"
2356 done | sort
2357 echo
2358
2359 if test -n "$ac_subst_files"; then
2360 printf "%s\n" "## ------------------- ##
2361 ## File substitutions. ##
2362 ## ------------------- ##"
2363 echo
2364 for ac_var in $ac_subst_files
2365 do
2366 eval ac_val=\$$ac_var
2367 case $ac_val in
2368 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2369 esac
2370 printf "%s\n" "$ac_var='\''$ac_val'\''"
2371 done | sort
2372 echo
2373 fi
2374
2375 if test -s confdefs.h; then
2376 printf "%s\n" "## ----------- ##
2377 ## confdefs.h. ##
2378 ## ----------- ##"
2379 echo
2380 cat confdefs.h
2381 echo
2382 fi
2383 test "$ac_signal" != 0 &&
2384 printf "%s\n" "$as_me: caught signal $ac_signal"
2385 printf "%s\n" "$as_me: exit $exit_status"
2386 } >&5
2387 rm -f core *.core core.conftest.* &&
2388 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2389 exit $exit_status
2390 ' 0
2391 for ac_signal in 1 2 13 15; do
2392 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2393 done
2394 ac_signal=0
2395
2396 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2397 rm -f -r conftest* confdefs.h
2398
2399 printf "%s\n" "/* confdefs.h */" > confdefs.h
2400
2401 # Predefined preprocessor variables.
2402
2403 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2404
2405 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2406
2407 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2408
2409 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2410
2411 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2412
2413 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2414
2415
2416 # Let the site file select an alternate cache file if it wants to.
2417 # Prefer an explicitly selected file to automatically selected ones.
2418 if test -n "$CONFIG_SITE"; then
2419 ac_site_files="$CONFIG_SITE"
2420 elif test "x$prefix" != xNONE; then
2421 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2422 else
2423 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2424 fi
2425
2426 for ac_site_file in $ac_site_files
2427 do
2428 case $ac_site_file in #(
2429 */*) :
2430 ;; #(
2431 *) :
2432 ac_site_file=./$ac_site_file ;;
2433 esac
2434 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2436 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2437 sed 's/^/| /' "$ac_site_file" >&5
2438 . "$ac_site_file" \
2439 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2440 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2441 as_fn_error $? "failed to load site script $ac_site_file
2442 See 'config.log' for more details" "$LINENO" 5; }
2443 fi
2444 done
2445
2446 if test -r "$cache_file"; then
2447 # Some versions of bash will fail to source /dev/null (special files
2448 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2449 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2451 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2452 case $cache_file in
2453 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2454 *) . "./$cache_file";;
2455 esac
2456 fi
2457 else
2458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2459 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2460 >$cache_file
2461 fi
2462
2463 # Test code for whether the C compiler supports C89 (global declarations)
2464 ac_c_conftest_c89_globals='
2465 /* Does the compiler advertise C89 conformance?
2466 Do not test the value of __STDC__, because some compilers set it to 0
2467 while being otherwise adequately conformant. */
2468 #if !defined __STDC__
2469 # error "Compiler does not advertise C89 conformance"
2470 #endif
2471
2472 #include <stddef.h>
2473 #include <stdarg.h>
2474 struct stat;
2475 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2476 struct buf { int x; };
2477 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2478 static char *e (char **p, int i)
2479 {
2480 return p[i];
2481 }
2482 static char *f (char * (*g) (char **, int), char **p, ...)
2483 {
2484 char *s;
2485 va_list v;
2486 va_start (v,p);
2487 s = g (p, va_arg (v,int));
2488 va_end (v);
2489 return s;
2490 }
2491
2492 /* C89 style stringification. */
2493 #define noexpand_stringify(a) #a
2494 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2495
2496 /* C89 style token pasting. Exercises some of the corner cases that
2497 e.g. old MSVC gets wrong, but not very hard. */
2498 #define noexpand_concat(a,b) a##b
2499 #define expand_concat(a,b) noexpand_concat(a,b)
2500 extern int vA;
2501 extern int vbee;
2502 #define aye A
2503 #define bee B
2504 int *pvA = &expand_concat(v,aye);
2505 int *pvbee = &noexpand_concat(v,bee);
2506
2507 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2508 function prototypes and stuff, but not \xHH hex character constants.
2509 These do not provoke an error unfortunately, instead are silently treated
2510 as an "x". The following induces an error, until -std is added to get
2511 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2512 array size at least. It is necessary to write \x00 == 0 to get something
2513 that is true only with -std. */
2514 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2515
2516 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2517 inside strings and character constants. */
2518 #define FOO(x) '\''x'\''
2519 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2520
2521 int test (int i, double x);
2522 struct s1 {int (*f) (int a);};
2523 struct s2 {int (*f) (double a);};
2524 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2525 int, int);'
2526
2527 # Test code for whether the C compiler supports C89 (body of main).
2528 ac_c_conftest_c89_main='
2529 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2530 '
2531
2532 # Test code for whether the C compiler supports C99 (global declarations)
2533 ac_c_conftest_c99_globals='
2534 /* Does the compiler advertise C99 conformance? */
2535 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2536 # error "Compiler does not advertise C99 conformance"
2537 #endif
2538
2539 // See if C++-style comments work.
2540
2541 #include <stdbool.h>
2542 extern int puts (const char *);
2543 extern int printf (const char *, ...);
2544 extern int dprintf (int, const char *, ...);
2545 extern void *malloc (size_t);
2546 extern void free (void *);
2547
2548 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2549 // dprintf is used instead of fprintf to avoid needing to declare
2550 // FILE and stderr.
2551 #define debug(...) dprintf (2, __VA_ARGS__)
2552 #define showlist(...) puts (#__VA_ARGS__)
2553 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2554 static void
2555 test_varargs_macros (void)
2556 {
2557 int x = 1234;
2558 int y = 5678;
2559 debug ("Flag");
2560 debug ("X = %d\n", x);
2561 showlist (The first, second, and third items.);
2562 report (x>y, "x is %d but y is %d", x, y);
2563 }
2564
2565 // Check long long types.
2566 #define BIG64 18446744073709551615ull
2567 #define BIG32 4294967295ul
2568 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2569 #if !BIG_OK
2570 #error "your preprocessor is broken"
2571 #endif
2572 #if BIG_OK
2573 #else
2574 #error "your preprocessor is broken"
2575 #endif
2576 static long long int bignum = -9223372036854775807LL;
2577 static unsigned long long int ubignum = BIG64;
2578
2579 struct incomplete_array
2580 {
2581 int datasize;
2582 double data[];
2583 };
2584
2585 struct named_init {
2586 int number;
2587 const wchar_t *name;
2588 double average;
2589 };
2590
2591 typedef const char *ccp;
2592
2593 static inline int
2594 test_restrict (ccp restrict text)
2595 {
2596 // Iterate through items via the restricted pointer.
2597 // Also check for declarations in for loops.
2598 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2599 continue;
2600 return 0;
2601 }
2602
2603 // Check varargs and va_copy.
2604 static bool
2605 test_varargs (const char *format, ...)
2606 {
2607 va_list args;
2608 va_start (args, format);
2609 va_list args_copy;
2610 va_copy (args_copy, args);
2611
2612 const char *str = "";
2613 int number = 0;
2614 float fnumber = 0;
2615
2616 while (*format)
2617 {
2618 switch (*format++)
2619 {
2620 case '\''s'\'': // string
2621 str = va_arg (args_copy, const char *);
2622 break;
2623 case '\''d'\'': // int
2624 number = va_arg (args_copy, int);
2625 break;
2626 case '\''f'\'': // float
2627 fnumber = va_arg (args_copy, double);
2628 break;
2629 default:
2630 break;
2631 }
2632 }
2633 va_end (args_copy);
2634 va_end (args);
2635
2636 return *str && number && fnumber;
2637 }
2638 '
2639
2640 # Test code for whether the C compiler supports C99 (body of main).
2641 ac_c_conftest_c99_main='
2642 // Check bool.
2643 _Bool success = false;
2644 success |= (argc != 0);
2645
2646 // Check restrict.
2647 if (test_restrict ("String literal") == 0)
2648 success = true;
2649 char *restrict newvar = "Another string";
2650
2651 // Check varargs.
2652 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2653 test_varargs_macros ();
2654
2655 // Check flexible array members.
2656 struct incomplete_array *ia =
2657 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2658 ia->datasize = 10;
2659 for (int i = 0; i < ia->datasize; ++i)
2660 ia->data[i] = i * 1.234;
2661 // Work around memory leak warnings.
2662 free (ia);
2663
2664 // Check named initializers.
2665 struct named_init ni = {
2666 .number = 34,
2667 .name = L"Test wide string",
2668 .average = 543.34343,
2669 };
2670
2671 ni.number = 58;
2672
2673 int dynamic_array[ni.number];
2674 dynamic_array[0] = argv[0][0];
2675 dynamic_array[ni.number - 1] = 543;
2676
2677 // work around unused variable warnings
2678 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2679 || dynamic_array[ni.number - 1] != 543);
2680 '
2681
2682 # Test code for whether the C compiler supports C11 (global declarations)
2683 ac_c_conftest_c11_globals='
2684 /* Does the compiler advertise C11 conformance? */
2685 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2686 # error "Compiler does not advertise C11 conformance"
2687 #endif
2688
2689 // Check _Alignas.
2690 char _Alignas (double) aligned_as_double;
2691 char _Alignas (0) no_special_alignment;
2692 extern char aligned_as_int;
2693 char _Alignas (0) _Alignas (int) aligned_as_int;
2694
2695 // Check _Alignof.
2696 enum
2697 {
2698 int_alignment = _Alignof (int),
2699 int_array_alignment = _Alignof (int[100]),
2700 char_alignment = _Alignof (char)
2701 };
2702 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2703
2704 // Check _Noreturn.
2705 int _Noreturn does_not_return (void) { for (;;) continue; }
2706
2707 // Check _Static_assert.
2708 struct test_static_assert
2709 {
2710 int x;
2711 _Static_assert (sizeof (int) <= sizeof (long int),
2712 "_Static_assert does not work in struct");
2713 long int y;
2714 };
2715
2716 // Check UTF-8 literals.
2717 #define u8 syntax error!
2718 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2719
2720 // Check duplicate typedefs.
2721 typedef long *long_ptr;
2722 typedef long int *long_ptr;
2723 typedef long_ptr long_ptr;
2724
2725 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2726 struct anonymous
2727 {
2728 union {
2729 struct { int i; int j; };
2730 struct { int k; long int l; } w;
2731 };
2732 int m;
2733 } v1;
2734 '
2735
2736 # Test code for whether the C compiler supports C11 (body of main).
2737 ac_c_conftest_c11_main='
2738 _Static_assert ((offsetof (struct anonymous, i)
2739 == offsetof (struct anonymous, w.k)),
2740 "Anonymous union alignment botch");
2741 v1.i = 2;
2742 v1.w.k = 5;
2743 ok |= v1.i != 5;
2744 '
2745
2746 # Test code for whether the C compiler supports C11 (complete).
2747 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2748 ${ac_c_conftest_c99_globals}
2749 ${ac_c_conftest_c11_globals}
2750
2751 int
2752 main (int argc, char **argv)
2753 {
2754 int ok = 0;
2755 ${ac_c_conftest_c89_main}
2756 ${ac_c_conftest_c99_main}
2757 ${ac_c_conftest_c11_main}
2758 return ok;
2759 }
2760 "
2761
2762 # Test code for whether the C compiler supports C99 (complete).
2763 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2764 ${ac_c_conftest_c99_globals}
2765
2766 int
2767 main (int argc, char **argv)
2768 {
2769 int ok = 0;
2770 ${ac_c_conftest_c89_main}
2771 ${ac_c_conftest_c99_main}
2772 return ok;
2773 }
2774 "
2775
2776 # Test code for whether the C compiler supports C89 (complete).
2777 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2778
2779 int
2780 main (int argc, char **argv)
2781 {
2782 int ok = 0;
2783 ${ac_c_conftest_c89_main}
2784 return ok;
2785 }
2786 "
2787
2788 # Test code for whether the C++ compiler supports C++98 (global declarations)
2789 ac_cxx_conftest_cxx98_globals='
2790 // Does the compiler advertise C++98 conformance?
2791 #if !defined __cplusplus || __cplusplus < 199711L
2792 # error "Compiler does not advertise C++98 conformance"
2793 #endif
2794
2795 // These inclusions are to reject old compilers that
2796 // lack the unsuffixed header files.
2797 #include <cstdlib>
2798 #include <exception>
2799
2800 // <cassert> and <cstring> are *not* freestanding headers in C++98.
2801 extern void assert (int);
2802 namespace std {
2803 extern int strcmp (const char *, const char *);
2804 }
2805
2806 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
2807 using std::exception;
2808 using std::strcmp;
2809
2810 namespace {
2811
2812 void test_exception_syntax()
2813 {
2814 try {
2815 throw "test";
2816 } catch (const char *s) {
2817 // Extra parentheses suppress a warning when building autoconf itself,
2818 // due to lint rules shared with more typical C programs.
2819 assert (!(strcmp) (s, "test"));
2820 }
2821 }
2822
2823 template <typename T> struct test_template
2824 {
2825 T const val;
2826 explicit test_template(T t) : val(t) {}
2827 template <typename U> T add(U u) { return static_cast<T>(u) + val; }
2828 };
2829
2830 } // anonymous namespace
2831 '
2832
2833 # Test code for whether the C++ compiler supports C++98 (body of main)
2834 ac_cxx_conftest_cxx98_main='
2835 assert (argc);
2836 assert (! argv[0]);
2837 {
2838 test_exception_syntax ();
2839 test_template<double> tt (2.0);
2840 assert (tt.add (4) == 6.0);
2841 assert (true && !false);
2842 }
2843 '
2844
2845 # Test code for whether the C++ compiler supports C++11 (global declarations)
2846 ac_cxx_conftest_cxx11_globals='
2847 // Does the compiler advertise C++ 2011 conformance?
2848 #if !defined __cplusplus || __cplusplus < 201103L
2849 # error "Compiler does not advertise C++11 conformance"
2850 #endif
2851
2852 namespace cxx11test
2853 {
2854 constexpr int get_val() { return 20; }
2855
2856 struct testinit
2857 {
2858 int i;
2859 double d;
2860 };
2861
2862 class delegate
2863 {
2864 public:
2865 delegate(int n) : n(n) {}
2866 delegate(): delegate(2354) {}
2867
2868 virtual int getval() { return this->n; };
2869 protected:
2870 int n;
2871 };
2872
2873 class overridden : public delegate
2874 {
2875 public:
2876 overridden(int n): delegate(n) {}
2877 virtual int getval() override final { return this->n * 2; }
2878 };
2879
2880 class nocopy
2881 {
2882 public:
2883 nocopy(int i): i(i) {}
2884 nocopy() = default;
2885 nocopy(const nocopy&) = delete;
2886 nocopy & operator=(const nocopy&) = delete;
2887 private:
2888 int i;
2889 };
2890
2891 // for testing lambda expressions
2892 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
2893 {
2894 return f(v);
2895 }
2896
2897 // for testing variadic templates and trailing return types
2898 template <typename V> auto sum(V first) -> V
2899 {
2900 return first;
2901 }
2902 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
2903 {
2904 return first + sum(rest...);
2905 }
2906 }
2907 '
2908
2909 # Test code for whether the C++ compiler supports C++11 (body of main)
2910 ac_cxx_conftest_cxx11_main='
2911 {
2912 // Test auto and decltype
2913 auto a1 = 6538;
2914 auto a2 = 48573953.4;
2915 auto a3 = "String literal";
2916
2917 int total = 0;
2918 for (auto i = a3; *i; ++i) { total += *i; }
2919
2920 decltype(a2) a4 = 34895.034;
2921 }
2922 {
2923 // Test constexpr
2924 short sa[cxx11test::get_val()] = { 0 };
2925 }
2926 {
2927 // Test initializer lists
2928 cxx11test::testinit il = { 4323, 435234.23544 };
2929 }
2930 {
2931 // Test range-based for
2932 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
2933 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
2934 for (auto &x : array) { x += 23; }
2935 }
2936 {
2937 // Test lambda expressions
2938 using cxx11test::eval;
2939 assert (eval ([](int x) { return x*2; }, 21) == 42);
2940 double d = 2.0;
2941 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
2942 assert (d == 5.0);
2943 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
2944 assert (d == 5.0);
2945 }
2946 {
2947 // Test use of variadic templates
2948 using cxx11test::sum;
2949 auto a = sum(1);
2950 auto b = sum(1, 2);
2951 auto c = sum(1.0, 2.0, 3.0);
2952 }
2953 {
2954 // Test constructor delegation
2955 cxx11test::delegate d1;
2956 cxx11test::delegate d2();
2957 cxx11test::delegate d3(45);
2958 }
2959 {
2960 // Test override and final
2961 cxx11test::overridden o1(55464);
2962 }
2963 {
2964 // Test nullptr
2965 char *c = nullptr;
2966 }
2967 {
2968 // Test template brackets
2969 test_template<::test_template<int>> v(test_template<int>(12));
2970 }
2971 {
2972 // Unicode literals
2973 char const *utf8 = u8"UTF-8 string \u2500";
2974 char16_t const *utf16 = u"UTF-8 string \u2500";
2975 char32_t const *utf32 = U"UTF-32 string \u2500";
2976 }
2977 '
2978
2979 # Test code for whether the C compiler supports C++11 (complete).
2980 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
2981 ${ac_cxx_conftest_cxx11_globals}
2982
2983 int
2984 main (int argc, char **argv)
2985 {
2986 int ok = 0;
2987 ${ac_cxx_conftest_cxx98_main}
2988 ${ac_cxx_conftest_cxx11_main}
2989 return ok;
2990 }
2991 "
2992
2993 # Test code for whether the C compiler supports C++98 (complete).
2994 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
2995 int
2996 main (int argc, char **argv)
2997 {
2998 int ok = 0;
2999 ${ac_cxx_conftest_cxx98_main}
3000 return ok;
3001 }
3002 "
3003
3004 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
3005 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
3006 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
3007 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
3008 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
3009 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
3010 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
3011 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
3012 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
3013 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
3014 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
3015
3016 # Auxiliary files required by this configure script.
3017 ac_aux_files="ltmain.sh config.guess config.sub compile missing install-sh"
3018
3019 # Locations in which to look for auxiliary files.
3020 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
3021
3022 # Search for a directory containing all of the required auxiliary files,
3023 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3024 # If we don't find one directory that contains all the files we need,
3025 # we report the set of missing files from the *first* directory in
3026 # $ac_aux_dir_candidates and give up.
3027 ac_missing_aux_files=""
3028 ac_first_candidate=:
3029 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3031 as_found=false
3032 for as_dir in $ac_aux_dir_candidates
3033 do
3034 IFS=$as_save_IFS
3035 case $as_dir in #(((
3036 '') as_dir=./ ;;
3037 */) ;;
3038 *) as_dir=$as_dir/ ;;
3039 esac
3040 as_found=:
3041
3042 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
3043 ac_aux_dir_found=yes
3044 ac_install_sh=
3045 for ac_aux in $ac_aux_files
3046 do
3047 # As a special case, if "install-sh" is required, that requirement
3048 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3049 # and $ac_install_sh is set appropriately for whichever one is found.
3050 if test x"$ac_aux" = x"install-sh"
3051 then
3052 if test -f "${as_dir}install-sh"; then
3053 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
3054 ac_install_sh="${as_dir}install-sh -c"
3055 elif test -f "${as_dir}install.sh"; then
3056 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
3057 ac_install_sh="${as_dir}install.sh -c"
3058 elif test -f "${as_dir}shtool"; then
3059 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
3060 ac_install_sh="${as_dir}shtool install -c"
3061 else
3062 ac_aux_dir_found=no
3063 if $ac_first_candidate; then
3064 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3065 else
3066 break
3067 fi
3068 fi
3069 else
3070 if test -f "${as_dir}${ac_aux}"; then
3071 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
3072 else
3073 ac_aux_dir_found=no
3074 if $ac_first_candidate; then
3075 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3076 else
3077 break
3078 fi
3079 fi
3080 fi
3081 done
3082 if test "$ac_aux_dir_found" = yes; then
3083 ac_aux_dir="$as_dir"
3084 break
3085 fi
3086 ac_first_candidate=false
3087
3088 as_found=false
3089 done
3090 IFS=$as_save_IFS
3091 if $as_found
3092 then :
3093
3094 else case e in #(
3095 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
3096 esac
3097 fi
3098
3099
3100 # These three variables are undocumented and unsupported,
3101 # and are intended to be withdrawn in a future Autoconf release.
3102 # They can cause serious problems if a builder's source tree is in a directory
3103 # whose full name contains unusual characters.
3104 if test -f "${ac_aux_dir}config.guess"; then
3105 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3106 fi
3107 if test -f "${ac_aux_dir}config.sub"; then
3108 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3109 fi
3110 if test -f "$ac_aux_dir/configure"; then
3111 ac_configure="$SHELL ${ac_aux_dir}configure"
3112 fi
3113
3114 # Check that the precious variables saved in the cache have kept the same
3115 # value.
3116 ac_cache_corrupted=false
3117 for ac_var in $ac_precious_vars; do
3118 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3119 eval ac_new_set=\$ac_env_${ac_var}_set
3120 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3121 eval ac_new_val=\$ac_env_${ac_var}_value
3122 case $ac_old_set,$ac_new_set in
3123 set,)
3124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
3125 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
3126 ac_cache_corrupted=: ;;
3127 ,set)
3128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
3129 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
3130 ac_cache_corrupted=: ;;
3131 ,);;
3132 *)
3133 if test "x$ac_old_val" != "x$ac_new_val"; then
3134 # differences in whitespace do not lead to failure.
3135 ac_old_val_w=`echo x $ac_old_val`
3136 ac_new_val_w=`echo x $ac_new_val`
3137 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
3139 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
3140 ac_cache_corrupted=:
3141 else
3142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
3143 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
3144 eval $ac_var=\$ac_old_val
3145 fi
3146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
3147 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
3148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
3149 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
3150 fi;;
3151 esac
3152 # Pass precious variables to config.status.
3153 if test "$ac_new_set" = set; then
3154 case $ac_new_val in
3155 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3156 *) ac_arg=$ac_var=$ac_new_val ;;
3157 esac
3158 case " $ac_configure_args " in
3159 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3160 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3161 esac
3162 fi
3163 done
3164 if $ac_cache_corrupted; then
3165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3166 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3168 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3169 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
3170 and start over" "$LINENO" 5
3171 fi
3172 ## -------------------- ##
3173 ## Main body of script. ##
3174 ## -------------------- ##
3175
3176 ac_ext=c
3177 ac_cpp='$CPP $CPPFLAGS'
3178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3181
3182
3183
3184 am__api_version='1.17'
3185
3186
3187
3188 # Find a good install program. We prefer a C program (faster),
3189 # so one script is as good as another. But avoid the broken or
3190 # incompatible versions:
3191 # SysV /etc/install, /usr/sbin/install
3192 # SunOS /usr/etc/install
3193 # IRIX /sbin/install
3194 # AIX /bin/install
3195 # AmigaOS /C/install, which installs bootblocks on floppy discs
3196 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3197 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3198 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3199 # OS/2's system install, which has a completely different semantic
3200 # ./install, which can be erroneously created by make from ./install.sh.
3201 # Reject install programs that cannot install multiple files.
3202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3203 printf %s "checking for a BSD-compatible install... " >&6; }
3204 if test -z "$INSTALL"; then
3205 if test ${ac_cv_path_install+y}
3206 then :
3207 printf %s "(cached) " >&6
3208 else case e in #(
3209 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3210 for as_dir in $PATH
3211 do
3212 IFS=$as_save_IFS
3213 case $as_dir in #(((
3214 '') as_dir=./ ;;
3215 */) ;;
3216 *) as_dir=$as_dir/ ;;
3217 esac
3218 # Account for fact that we put trailing slashes in our PATH walk.
3219 case $as_dir in #((
3220 ./ | /[cC]/* | \
3221 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3222 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3223 /usr/ucb/* ) ;;
3224 *)
3225 # OSF1 and SCO ODT 3.0 have their own names for install.
3226 # Don't use installbsd from OSF since it installs stuff as root
3227 # by default.
3228 for ac_prog in ginstall scoinst install; do
3229 for ac_exec_ext in '' $ac_executable_extensions; do
3230 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3231 if test $ac_prog = install &&
3232 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3233 # AIX install. It has an incompatible calling convention.
3234 :
3235 elif test $ac_prog = install &&
3236 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3237 # program-specific install script used by HP pwplus--don't use.
3238 :
3239 else
3240 rm -rf conftest.one conftest.two conftest.dir
3241 echo one > conftest.one
3242 echo two > conftest.two
3243 mkdir conftest.dir
3244 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3245 test -s conftest.one && test -s conftest.two &&
3246 test -s conftest.dir/conftest.one &&
3247 test -s conftest.dir/conftest.two
3248 then
3249 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3250 break 3
3251 fi
3252 fi
3253 fi
3254 done
3255 done
3256 ;;
3257 esac
3258
3259 done
3260 IFS=$as_save_IFS
3261
3262 rm -rf conftest.one conftest.two conftest.dir
3263 ;;
3264 esac
3265 fi
3266 if test ${ac_cv_path_install+y}; then
3267 INSTALL=$ac_cv_path_install
3268 else
3269 # As a last resort, use the slow shell script. Don't cache a
3270 # value for INSTALL within a source directory, because that will
3271 # break other packages using the cache if that directory is
3272 # removed, or if the value is a relative name.
3273 INSTALL=$ac_install_sh
3274 fi
3275 fi
3276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3277 printf "%s\n" "$INSTALL" >&6; }
3278
3279 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3280 # It thinks the first close brace ends the variable substitution.
3281 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3282
3283 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3284
3285 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3286
3287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
3288 printf %s "checking whether sleep supports fractional seconds... " >&6; }
3289 if test ${am_cv_sleep_fractional_seconds+y}
3290 then :
3291 printf %s "(cached) " >&6
3292 else case e in #(
3293 e) if sleep 0.001 2>/dev/null
3294 then :
3295 am_cv_sleep_fractional_seconds=yes
3296 else case e in #(
3297 e) am_cv_sleep_fractional_seconds=no ;;
3298 esac
3299 fi
3300 ;;
3301 esac
3302 fi
3303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
3304 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
3305
3306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
3307 printf %s "checking filesystem timestamp resolution... " >&6; }
3308 if test ${am_cv_filesystem_timestamp_resolution+y}
3309 then :
3310 printf %s "(cached) " >&6
3311 else case e in #(
3312 e) # Default to the worst case.
3313 am_cv_filesystem_timestamp_resolution=2
3314
3315 # Only try to go finer than 1 sec if sleep can do it.
3316 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
3317 # - 1 sec is not much of a win compared to 2 sec, and
3318 # - it takes 2 seconds to perform the test whether 1 sec works.
3319 #
3320 # Instead, just use the default 2s on platforms that have 1s resolution,
3321 # accept the extra 1s delay when using $sleep in the Automake tests, in
3322 # exchange for not incurring the 2s delay for running the test for all
3323 # packages.
3324 #
3325 am_try_resolutions=
3326 if test "$am_cv_sleep_fractional_seconds" = yes; then
3327 # Even a millisecond often causes a bunch of false positives,
3328 # so just try a hundredth of a second. The time saved between .001 and
3329 # .01 is not terribly consequential.
3330 am_try_resolutions="0.01 0.1 $am_try_resolutions"
3331 fi
3332
3333 # In order to catch current-generation FAT out, we must *modify* files
3334 # that already exist; the *creation* timestamp is finer. Use names
3335 # that make ls -t sort them differently when they have equal
3336 # timestamps than when they have distinct timestamps, keeping
3337 # in mind that ls -t prints the *newest* file first.
3338 rm -f conftest.ts?
3339 : > conftest.ts1
3340 : > conftest.ts2
3341 : > conftest.ts3
3342
3343 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
3344 # clobber the current shell's arguments. (Outer-level square brackets
3345 # are removed by m4; they're present so that m4 does not expand
3346 # <dollar><star>; be careful, easy to get confused.)
3347 if (
3348 set X `ls -t conftest.ts[12]` &&
3349 {
3350 test "$*" != "X conftest.ts1 conftest.ts2" ||
3351 test "$*" != "X conftest.ts2 conftest.ts1";
3352 }
3353 ); then :; else
3354 # If neither matched, then we have a broken ls. This can happen
3355 # if, for instance, CONFIG_SHELL is bash and it inherits a
3356 # broken ls alias from the environment. This has actually
3357 # happened. Such a system could not be considered "sane".
3358 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
3359 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3360 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3361 as_fn_error $? "ls -t produces unexpected output.
3362 Make sure there is not a broken ls alias in your environment.
3363 See 'config.log' for more details" "$LINENO" 5; }
3364 fi
3365
3366 for am_try_res in $am_try_resolutions; do
3367 # Any one fine-grained sleep might happen to cross the boundary
3368 # between two values of a coarser actual resolution, but if we do
3369 # two fine-grained sleeps in a row, at least one of them will fall
3370 # entirely within a coarse interval.
3371 echo alpha > conftest.ts1
3372 sleep $am_try_res
3373 echo beta > conftest.ts2
3374 sleep $am_try_res
3375 echo gamma > conftest.ts3
3376
3377 # We assume that 'ls -t' will make use of high-resolution
3378 # timestamps if the operating system supports them at all.
3379 if (set X `ls -t conftest.ts?` &&
3380 test "$2" = conftest.ts3 &&
3381 test "$3" = conftest.ts2 &&
3382 test "$4" = conftest.ts1); then
3383 #
3384 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
3385 # because we don't need to test make.
3386 make_ok=true
3387 if test $am_try_res != 1; then
3388 # But if we've succeeded so far with a subsecond resolution, we
3389 # have one more thing to check: make. It can happen that
3390 # everything else supports the subsecond mtimes, but make doesn't;
3391 # notably on macOS, which ships make 3.81 from 2006 (the last one
3392 # released under GPLv2). https://bugs.gnu.org/68808
3393 #
3394 # We test $MAKE if it is defined in the environment, else "make".
3395 # It might get overridden later, but our hope is that in practice
3396 # it does not matter: it is the system "make" which is (by far)
3397 # the most likely to be broken, whereas if the user overrides it,
3398 # probably they did so with a better, or at least not worse, make.
3399 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
3400 #
3401 # Create a Makefile (real tab character here):
3402 rm -f conftest.mk
3403 echo 'conftest.ts1: conftest.ts2' >conftest.mk
3404 echo ' touch conftest.ts2' >>conftest.mk
3405 #
3406 # Now, running
3407 # touch conftest.ts1; touch conftest.ts2; make
3408 # should touch ts1 because ts2 is newer. This could happen by luck,
3409 # but most often, it will fail if make's support is insufficient. So
3410 # test for several consecutive successes.
3411 #
3412 # (We reuse conftest.ts[12] because we still want to modify existing
3413 # files, not create new ones, per above.)
3414 n=0
3415 make=${MAKE-make}
3416 until test $n -eq 3; do
3417 echo one > conftest.ts1
3418 sleep $am_try_res
3419 echo two > conftest.ts2 # ts2 should now be newer than ts1
3420 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
3421 make_ok=false
3422 break # out of $n loop
3423 fi
3424 n=`expr $n + 1`
3425 done
3426 fi
3427 #
3428 if $make_ok; then
3429 # Everything we know to check worked out, so call this resolution good.
3430 am_cv_filesystem_timestamp_resolution=$am_try_res
3431 break # out of $am_try_res loop
3432 fi
3433 # Otherwise, we'll go on to check the next resolution.
3434 fi
3435 done
3436 rm -f conftest.ts?
3437 # (end _am_filesystem_timestamp_resolution)
3438 ;;
3439 esac
3440 fi
3441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
3442 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
3443
3444 # This check should not be cached, as it may vary across builds of
3445 # different projects.
3446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3447 printf %s "checking whether build environment is sane... " >&6; }
3448 # Reject unsafe characters in $srcdir or the absolute working directory
3449 # name. Accept space and tab only in the latter.
3450 am_lf='
3451 '
3452 case `pwd` in
3453 *[\\\"\#\$\&\'\`$am_lf]*)
3454 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3455 esac
3456 case $srcdir in
3457 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3458 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3459 esac
3460
3461 # Do 'set' in a subshell so we don't clobber the current shell's
3462 # arguments. Must try -L first in case configure is actually a
3463 # symlink; some systems play weird games with the mod time of symlinks
3464 # (eg FreeBSD returns the mod time of the symlink's containing
3465 # directory).
3466 am_build_env_is_sane=no
3467 am_has_slept=no
3468 rm -f conftest.file
3469 for am_try in 1 2; do
3470 echo "timestamp, slept: $am_has_slept" > conftest.file
3471 if (
3472 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3473 if test "$*" = "X"; then
3474 # -L didn't work.
3475 set X `ls -t "$srcdir/configure" conftest.file`
3476 fi
3477 test "$2" = conftest.file
3478 ); then
3479 am_build_env_is_sane=yes
3480 break
3481 fi
3482 # Just in case.
3483 sleep "$am_cv_filesystem_timestamp_resolution"
3484 am_has_slept=yes
3485 done
3486
3487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
3488 printf "%s\n" "$am_build_env_is_sane" >&6; }
3489 if test "$am_build_env_is_sane" = no; then
3490 as_fn_error $? "newly created file is older than distributed files!
3491 Check your system clock" "$LINENO" 5
3492 fi
3493
3494 # If we didn't sleep, we still need to ensure time stamps of config.status and
3495 # generated files are strictly newer.
3496 am_sleep_pid=
3497 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
3498 then :
3499
3500 else case e in #(
3501 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
3502 am_sleep_pid=$!
3503 ;;
3504 esac
3505 fi
3506
3507 rm -f conftest.file
3508
3509 test "$program_prefix" != NONE &&
3510 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3511 # Use a double $ so make ignores it.
3512 test "$program_suffix" != NONE &&
3513 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3514 # Double any \ or $.
3515 # By default was 's,x,x', remove it if useless.
3516 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3517 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3518
3519
3520 # Expand $ac_aux_dir to an absolute path.
3521 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3522
3523
3524 if test x"${MISSING+set}" != xset; then
3525 MISSING="\${SHELL} '$am_aux_dir/missing'"
3526 fi
3527 # Use eval to expand $SHELL
3528 if eval "$MISSING --is-lightweight"; then
3529 am_missing_run="$MISSING "
3530 else
3531 am_missing_run=
3532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3533 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3534 fi
3535
3536 if test x"${install_sh+set}" != xset; then
3537 case $am_aux_dir in
3538 *\ * | *\ *)
3539 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3540 *)
3541 install_sh="\${SHELL} $am_aux_dir/install-sh"
3542 esac
3543 fi
3544
3545 # Installed binaries are usually stripped using 'strip' when the user
3546 # run "make install-strip". However 'strip' might not be the right
3547 # tool to use in cross-compilation environments, therefore Automake
3548 # will honor the 'STRIP' environment variable to overrule this program.
3549 if test "$cross_compiling" != no; then
3550 if test -n "$ac_tool_prefix"; then
3551 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3552 set dummy ${ac_tool_prefix}strip; ac_word=$2
3553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3554 printf %s "checking for $ac_word... " >&6; }
3555 if test ${ac_cv_prog_STRIP+y}
3556 then :
3557 printf %s "(cached) " >&6
3558 else case e in #(
3559 e) if test -n "$STRIP"; then
3560 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3561 else
3562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3563 for as_dir in $PATH
3564 do
3565 IFS=$as_save_IFS
3566 case $as_dir in #(((
3567 '') as_dir=./ ;;
3568 */) ;;
3569 *) as_dir=$as_dir/ ;;
3570 esac
3571 for ac_exec_ext in '' $ac_executable_extensions; do
3572 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3573 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3574 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3575 break 2
3576 fi
3577 done
3578 done
3579 IFS=$as_save_IFS
3580
3581 fi ;;
3582 esac
3583 fi
3584 STRIP=$ac_cv_prog_STRIP
3585 if test -n "$STRIP"; then
3586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3587 printf "%s\n" "$STRIP" >&6; }
3588 else
3589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3590 printf "%s\n" "no" >&6; }
3591 fi
3592
3593
3594 fi
3595 if test -z "$ac_cv_prog_STRIP"; then
3596 ac_ct_STRIP=$STRIP
3597 # Extract the first word of "strip", so it can be a program name with args.
3598 set dummy strip; ac_word=$2
3599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3600 printf %s "checking for $ac_word... " >&6; }
3601 if test ${ac_cv_prog_ac_ct_STRIP+y}
3602 then :
3603 printf %s "(cached) " >&6
3604 else case e in #(
3605 e) if test -n "$ac_ct_STRIP"; then
3606 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3607 else
3608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3609 for as_dir in $PATH
3610 do
3611 IFS=$as_save_IFS
3612 case $as_dir in #(((
3613 '') as_dir=./ ;;
3614 */) ;;
3615 *) as_dir=$as_dir/ ;;
3616 esac
3617 for ac_exec_ext in '' $ac_executable_extensions; do
3618 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3619 ac_cv_prog_ac_ct_STRIP="strip"
3620 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3621 break 2
3622 fi
3623 done
3624 done
3625 IFS=$as_save_IFS
3626
3627 fi ;;
3628 esac
3629 fi
3630 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3631 if test -n "$ac_ct_STRIP"; then
3632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3633 printf "%s\n" "$ac_ct_STRIP" >&6; }
3634 else
3635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3636 printf "%s\n" "no" >&6; }
3637 fi
3638
3639 if test "x$ac_ct_STRIP" = x; then
3640 STRIP=":"
3641 else
3642 case $cross_compiling:$ac_tool_warned in
3643 yes:)
3644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3645 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3646 ac_tool_warned=yes ;;
3647 esac
3648 STRIP=$ac_ct_STRIP
3649 fi
3650 else
3651 STRIP="$ac_cv_prog_STRIP"
3652 fi
3653
3654 fi
3655 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3656
3657
3658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3659 printf %s "checking for a race-free mkdir -p... " >&6; }
3660 if test -z "$MKDIR_P"; then
3661 if test ${ac_cv_path_mkdir+y}
3662 then :
3663 printf %s "(cached) " >&6
3664 else case e in #(
3665 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3666 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
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_prog in mkdir gmkdir; do
3675 for ac_exec_ext in '' $ac_executable_extensions; do
3676 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3677 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3678 'mkdir ('*'coreutils) '* | \
3679 *'BusyBox '* | \
3680 'mkdir (fileutils) '4.1*)
3681 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3682 break 3;;
3683 esac
3684 done
3685 done
3686 done
3687 IFS=$as_save_IFS
3688 ;;
3689 esac
3690 fi
3691
3692 test -d ./--version && rmdir ./--version
3693 if test ${ac_cv_path_mkdir+y}; then
3694 MKDIR_P="$ac_cv_path_mkdir -p"
3695 else
3696 # As a last resort, use plain mkdir -p,
3697 # in the hope it doesn't have the bugs of ancient mkdir.
3698 MKDIR_P='mkdir -p'
3699 fi
3700 fi
3701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3702 printf "%s\n" "$MKDIR_P" >&6; }
3703
3704 for ac_prog in gawk mawk nawk awk
3705 do
3706 # Extract the first word of "$ac_prog", so it can be a program name with args.
3707 set dummy $ac_prog; ac_word=$2
3708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3709 printf %s "checking for $ac_word... " >&6; }
3710 if test ${ac_cv_prog_AWK+y}
3711 then :
3712 printf %s "(cached) " >&6
3713 else case e in #(
3714 e) if test -n "$AWK"; then
3715 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3716 else
3717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3718 for as_dir in $PATH
3719 do
3720 IFS=$as_save_IFS
3721 case $as_dir in #(((
3722 '') as_dir=./ ;;
3723 */) ;;
3724 *) as_dir=$as_dir/ ;;
3725 esac
3726 for ac_exec_ext in '' $ac_executable_extensions; do
3727 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3728 ac_cv_prog_AWK="$ac_prog"
3729 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3730 break 2
3731 fi
3732 done
3733 done
3734 IFS=$as_save_IFS
3735
3736 fi ;;
3737 esac
3738 fi
3739 AWK=$ac_cv_prog_AWK
3740 if test -n "$AWK"; then
3741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3742 printf "%s\n" "$AWK" >&6; }
3743 else
3744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3745 printf "%s\n" "no" >&6; }
3746 fi
3747
3748
3749 test -n "$AWK" && break
3750 done
3751
3752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3753 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3754 set x ${MAKE-make}
3755 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3756 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3757 then :
3758 printf %s "(cached) " >&6
3759 else case e in #(
3760 e) cat >conftest.make <<\_ACEOF
3761 SHELL = /bin/sh
3762 all:
3763 @echo '@@@%%%=$(MAKE)=@@@%%%'
3764 _ACEOF
3765 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3766 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3767 *@@@%%%=?*=@@@%%%*)
3768 eval ac_cv_prog_make_${ac_make}_set=yes;;
3769 *)
3770 eval ac_cv_prog_make_${ac_make}_set=no;;
3771 esac
3772 rm -f conftest.make ;;
3773 esac
3774 fi
3775 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3777 printf "%s\n" "yes" >&6; }
3778 SET_MAKE=
3779 else
3780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3781 printf "%s\n" "no" >&6; }
3782 SET_MAKE="MAKE=${MAKE-make}"
3783 fi
3784
3785 rm -rf .tst 2>/dev/null
3786 mkdir .tst 2>/dev/null
3787 if test -d .tst; then
3788 am__leading_dot=.
3789 else
3790 am__leading_dot=_
3791 fi
3792 rmdir .tst 2>/dev/null
3793
3794 AM_DEFAULT_VERBOSITY=1
3795 # Check whether --enable-silent-rules was given.
3796 if test ${enable_silent_rules+y}
3797 then :
3798 enableval=$enable_silent_rules;
3799 fi
3800
3801 am_make=${MAKE-make}
3802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3803 printf %s "checking whether $am_make supports nested variables... " >&6; }
3804 if test ${am_cv_make_support_nested_variables+y}
3805 then :
3806 printf %s "(cached) " >&6
3807 else case e in #(
3808 e) if printf "%s\n" 'TRUE=$(BAR$(V))
3809 BAR0=false
3810 BAR1=true
3811 V=1
3812 am__doit:
3813 @$(TRUE)
3814 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3815 am_cv_make_support_nested_variables=yes
3816 else
3817 am_cv_make_support_nested_variables=no
3818 fi ;;
3819 esac
3820 fi
3821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3822 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3823 AM_BACKSLASH='\'
3824
3825 am__rm_f_notfound=
3826 if (rm -f && rm -fr && rm -rf) 2>/dev/null
3827 then :
3828
3829 else case e in #(
3830 e) am__rm_f_notfound='""' ;;
3831 esac
3832 fi
3833
3834
3835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
3836 printf %s "checking xargs -n works... " >&6; }
3837 if test ${am_cv_xargs_n_works+y}
3838 then :
3839 printf %s "(cached) " >&6
3840 else case e in #(
3841 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
3842 3"
3843 then :
3844 am_cv_xargs_n_works=yes
3845 else case e in #(
3846 e) am_cv_xargs_n_works=no ;;
3847 esac
3848 fi ;;
3849 esac
3850 fi
3851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
3852 printf "%s\n" "$am_cv_xargs_n_works" >&6; }
3853 if test "$am_cv_xargs_n_works" = yes
3854 then :
3855 am__xargs_n='xargs -n'
3856 else case e in #(
3857 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
3858 ;;
3859 esac
3860 fi
3861
3862 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3863 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3864 # is not polluted with repeated "-I."
3865 am__isrc=' -I$(srcdir)'
3866 # test to see if srcdir already configured
3867 if test -f $srcdir/config.status; then
3868 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3869 fi
3870 fi
3871
3872 # test whether we have cygpath
3873 if test -z "$CYGPATH_W"; then
3874 if (cygpath --version) >/dev/null 2>/dev/null; then
3875 CYGPATH_W='cygpath -w'
3876 else
3877 CYGPATH_W=echo
3878 fi
3879 fi
3880
3881
3882 # Define the identity of the package.
3883 PACKAGE='dump'
3884 VERSION='0.4b55'
3885
3886
3887 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3888
3889
3890 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3891
3892 # Some tools Automake needs.
3893
3894 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3895
3896
3897 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3898
3899
3900 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3901
3902
3903 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3904
3905
3906 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3907
3908 # For better backward compatibility. To be removed once Automake 1.9.x
3909 # dies out for good. For more background, see:
3910 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3911 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3912 mkdir_p='$(MKDIR_P)'
3913
3914 # We need awk for the "check" target (and possibly the TAP driver). The
3915 # system "awk" is bad on some platforms.
3916 # Always define AMTAR for backward compatibility. Yes, it's still used
3917 # in the wild :-( We should find a proper way to deprecate it ...
3918 AMTAR='$${TAR-tar}'
3919
3920
3921 # We'll loop over all known methods to create a tar archive until one works.
3922 _am_tools='gnutar pax cpio none'
3923
3924 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3925
3926
3927
3928
3929
3930 # Variables for tags utilities; see am/tags.am
3931 if test -z "$CTAGS"; then
3932 CTAGS=ctags
3933 fi
3934
3935 if test -z "$ETAGS"; then
3936 ETAGS=etags
3937 fi
3938
3939 if test -z "$CSCOPE"; then
3940 CSCOPE=cscope
3941 fi
3942
3943
3944
3945
3946
3947
3948
3949
3950 AM_DEFAULT_VERBOSITY=1
3951
3952
3953 ac_config_headers="$ac_config_headers config.h"
3954
3955
3956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3957 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3958 set x ${MAKE-make}
3959 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3960 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3961 then :
3962 printf %s "(cached) " >&6
3963 else case e in #(
3964 e) cat >conftest.make <<\_ACEOF
3965 SHELL = /bin/sh
3966 all:
3967 @echo '@@@%%%=$(MAKE)=@@@%%%'
3968 _ACEOF
3969 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3970 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3971 *@@@%%%=?*=@@@%%%*)
3972 eval ac_cv_prog_make_${ac_make}_set=yes;;
3973 *)
3974 eval ac_cv_prog_make_${ac_make}_set=no;;
3975 esac
3976 rm -f conftest.make ;;
3977 esac
3978 fi
3979 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3981 printf "%s\n" "yes" >&6; }
3982 SET_MAKE=
3983 else
3984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3985 printf "%s\n" "no" >&6; }
3986 SET_MAKE="MAKE=${MAKE-make}"
3987 fi
3988
3989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3990 printf %s "checking whether ln -s works... " >&6; }
3991 LN_S=$as_ln_s
3992 if test "$LN_S" = "ln -s"; then
3993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3994 printf "%s\n" "yes" >&6; }
3995 else
3996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3997 printf "%s\n" "no, using $LN_S" >&6; }
3998 fi
3999
4000
4001
4002
4003
4004
4005
4006
4007 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4008 if test -n "$ac_tool_prefix"; then
4009 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4010 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4012 printf %s "checking for $ac_word... " >&6; }
4013 if test ${ac_cv_path_PKG_CONFIG+y}
4014 then :
4015 printf %s "(cached) " >&6
4016 else case e in #(
4017 e) case $PKG_CONFIG in
4018 [\\/]* | ?:[\\/]*)
4019 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4020 ;;
4021 *)
4022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4023 for as_dir in $PATH
4024 do
4025 IFS=$as_save_IFS
4026 case $as_dir in #(((
4027 '') as_dir=./ ;;
4028 */) ;;
4029 *) as_dir=$as_dir/ ;;
4030 esac
4031 for ac_exec_ext in '' $ac_executable_extensions; do
4032 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4033 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4034 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4035 break 2
4036 fi
4037 done
4038 done
4039 IFS=$as_save_IFS
4040
4041 ;;
4042 esac ;;
4043 esac
4044 fi
4045 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4046 if test -n "$PKG_CONFIG"; then
4047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4048 printf "%s\n" "$PKG_CONFIG" >&6; }
4049 else
4050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4051 printf "%s\n" "no" >&6; }
4052 fi
4053
4054
4055 fi
4056 if test -z "$ac_cv_path_PKG_CONFIG"; then
4057 ac_pt_PKG_CONFIG=$PKG_CONFIG
4058 # Extract the first word of "pkg-config", so it can be a program name with args.
4059 set dummy pkg-config; ac_word=$2
4060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4061 printf %s "checking for $ac_word... " >&6; }
4062 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4063 then :
4064 printf %s "(cached) " >&6
4065 else case e in #(
4066 e) case $ac_pt_PKG_CONFIG in
4067 [\\/]* | ?:[\\/]*)
4068 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4069 ;;
4070 *)
4071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4072 for as_dir in $PATH
4073 do
4074 IFS=$as_save_IFS
4075 case $as_dir in #(((
4076 '') as_dir=./ ;;
4077 */) ;;
4078 *) as_dir=$as_dir/ ;;
4079 esac
4080 for ac_exec_ext in '' $ac_executable_extensions; do
4081 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4082 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4083 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4084 break 2
4085 fi
4086 done
4087 done
4088 IFS=$as_save_IFS
4089
4090 ;;
4091 esac ;;
4092 esac
4093 fi
4094 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4095 if test -n "$ac_pt_PKG_CONFIG"; then
4096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4097 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4098 else
4099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4100 printf "%s\n" "no" >&6; }
4101 fi
4102
4103 if test "x$ac_pt_PKG_CONFIG" = x; then
4104 PKG_CONFIG=""
4105 else
4106 case $cross_compiling:$ac_tool_warned in
4107 yes:)
4108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4109 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4110 ac_tool_warned=yes ;;
4111 esac
4112 PKG_CONFIG=$ac_pt_PKG_CONFIG
4113 fi
4114 else
4115 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4116 fi
4117
4118 fi
4119 if test -n "$PKG_CONFIG"; then
4120 _pkg_min_version=0.9.0
4121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4122 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4123 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4125 printf "%s\n" "yes" >&6; }
4126 else
4127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4128 printf "%s\n" "no" >&6; }
4129 PKG_CONFIG=""
4130 fi
4131 fi
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141 ac_ext=c
4142 ac_cpp='$CPP $CPPFLAGS'
4143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4146 if test -n "$ac_tool_prefix"; then
4147 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4148 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4150 printf %s "checking for $ac_word... " >&6; }
4151 if test ${ac_cv_prog_CC+y}
4152 then :
4153 printf %s "(cached) " >&6
4154 else case e in #(
4155 e) if test -n "$CC"; then
4156 ac_cv_prog_CC="$CC" # Let the user override the test.
4157 else
4158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4159 for as_dir in $PATH
4160 do
4161 IFS=$as_save_IFS
4162 case $as_dir in #(((
4163 '') as_dir=./ ;;
4164 */) ;;
4165 *) as_dir=$as_dir/ ;;
4166 esac
4167 for ac_exec_ext in '' $ac_executable_extensions; do
4168 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4169 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4170 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4171 break 2
4172 fi
4173 done
4174 done
4175 IFS=$as_save_IFS
4176
4177 fi ;;
4178 esac
4179 fi
4180 CC=$ac_cv_prog_CC
4181 if test -n "$CC"; then
4182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4183 printf "%s\n" "$CC" >&6; }
4184 else
4185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4186 printf "%s\n" "no" >&6; }
4187 fi
4188
4189
4190 fi
4191 if test -z "$ac_cv_prog_CC"; then
4192 ac_ct_CC=$CC
4193 # Extract the first word of "gcc", so it can be a program name with args.
4194 set dummy gcc; ac_word=$2
4195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4196 printf %s "checking for $ac_word... " >&6; }
4197 if test ${ac_cv_prog_ac_ct_CC+y}
4198 then :
4199 printf %s "(cached) " >&6
4200 else case e in #(
4201 e) if test -n "$ac_ct_CC"; then
4202 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4203 else
4204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4205 for as_dir in $PATH
4206 do
4207 IFS=$as_save_IFS
4208 case $as_dir in #(((
4209 '') as_dir=./ ;;
4210 */) ;;
4211 *) as_dir=$as_dir/ ;;
4212 esac
4213 for ac_exec_ext in '' $ac_executable_extensions; do
4214 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4215 ac_cv_prog_ac_ct_CC="gcc"
4216 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4217 break 2
4218 fi
4219 done
4220 done
4221 IFS=$as_save_IFS
4222
4223 fi ;;
4224 esac
4225 fi
4226 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4227 if test -n "$ac_ct_CC"; then
4228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4229 printf "%s\n" "$ac_ct_CC" >&6; }
4230 else
4231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4232 printf "%s\n" "no" >&6; }
4233 fi
4234
4235 if test "x$ac_ct_CC" = x; then
4236 CC=""
4237 else
4238 case $cross_compiling:$ac_tool_warned in
4239 yes:)
4240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4241 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4242 ac_tool_warned=yes ;;
4243 esac
4244 CC=$ac_ct_CC
4245 fi
4246 else
4247 CC="$ac_cv_prog_CC"
4248 fi
4249
4250 if test -z "$CC"; then
4251 if test -n "$ac_tool_prefix"; then
4252 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4253 set dummy ${ac_tool_prefix}cc; ac_word=$2
4254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4255 printf %s "checking for $ac_word... " >&6; }
4256 if test ${ac_cv_prog_CC+y}
4257 then :
4258 printf %s "(cached) " >&6
4259 else case e in #(
4260 e) if test -n "$CC"; then
4261 ac_cv_prog_CC="$CC" # Let the user override the test.
4262 else
4263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4264 for as_dir in $PATH
4265 do
4266 IFS=$as_save_IFS
4267 case $as_dir in #(((
4268 '') as_dir=./ ;;
4269 */) ;;
4270 *) as_dir=$as_dir/ ;;
4271 esac
4272 for ac_exec_ext in '' $ac_executable_extensions; do
4273 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4274 ac_cv_prog_CC="${ac_tool_prefix}cc"
4275 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4276 break 2
4277 fi
4278 done
4279 done
4280 IFS=$as_save_IFS
4281
4282 fi ;;
4283 esac
4284 fi
4285 CC=$ac_cv_prog_CC
4286 if test -n "$CC"; then
4287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4288 printf "%s\n" "$CC" >&6; }
4289 else
4290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4291 printf "%s\n" "no" >&6; }
4292 fi
4293
4294
4295 fi
4296 fi
4297 if test -z "$CC"; then
4298 # Extract the first word of "cc", so it can be a program name with args.
4299 set dummy cc; ac_word=$2
4300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4301 printf %s "checking for $ac_word... " >&6; }
4302 if test ${ac_cv_prog_CC+y}
4303 then :
4304 printf %s "(cached) " >&6
4305 else case e in #(
4306 e) if test -n "$CC"; then
4307 ac_cv_prog_CC="$CC" # Let the user override the test.
4308 else
4309 ac_prog_rejected=no
4310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4311 for as_dir in $PATH
4312 do
4313 IFS=$as_save_IFS
4314 case $as_dir in #(((
4315 '') as_dir=./ ;;
4316 */) ;;
4317 *) as_dir=$as_dir/ ;;
4318 esac
4319 for ac_exec_ext in '' $ac_executable_extensions; do
4320 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4321 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4322 ac_prog_rejected=yes
4323 continue
4324 fi
4325 ac_cv_prog_CC="cc"
4326 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4327 break 2
4328 fi
4329 done
4330 done
4331 IFS=$as_save_IFS
4332
4333 if test $ac_prog_rejected = yes; then
4334 # We found a bogon in the path, so make sure we never use it.
4335 set dummy $ac_cv_prog_CC
4336 shift
4337 if test $# != 0; then
4338 # We chose a different compiler from the bogus one.
4339 # However, it has the same basename, so the bogon will be chosen
4340 # first if we set CC to just the basename; use the full file name.
4341 shift
4342 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4343 fi
4344 fi
4345 fi ;;
4346 esac
4347 fi
4348 CC=$ac_cv_prog_CC
4349 if test -n "$CC"; then
4350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4351 printf "%s\n" "$CC" >&6; }
4352 else
4353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4354 printf "%s\n" "no" >&6; }
4355 fi
4356
4357
4358 fi
4359 if test -z "$CC"; then
4360 if test -n "$ac_tool_prefix"; then
4361 for ac_prog in cl.exe
4362 do
4363 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4364 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4366 printf %s "checking for $ac_word... " >&6; }
4367 if test ${ac_cv_prog_CC+y}
4368 then :
4369 printf %s "(cached) " >&6
4370 else case e in #(
4371 e) if test -n "$CC"; then
4372 ac_cv_prog_CC="$CC" # Let the user override the test.
4373 else
4374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4375 for as_dir in $PATH
4376 do
4377 IFS=$as_save_IFS
4378 case $as_dir in #(((
4379 '') as_dir=./ ;;
4380 */) ;;
4381 *) as_dir=$as_dir/ ;;
4382 esac
4383 for ac_exec_ext in '' $ac_executable_extensions; do
4384 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4385 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4386 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4387 break 2
4388 fi
4389 done
4390 done
4391 IFS=$as_save_IFS
4392
4393 fi ;;
4394 esac
4395 fi
4396 CC=$ac_cv_prog_CC
4397 if test -n "$CC"; then
4398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4399 printf "%s\n" "$CC" >&6; }
4400 else
4401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4402 printf "%s\n" "no" >&6; }
4403 fi
4404
4405
4406 test -n "$CC" && break
4407 done
4408 fi
4409 if test -z "$CC"; then
4410 ac_ct_CC=$CC
4411 for ac_prog in cl.exe
4412 do
4413 # Extract the first word of "$ac_prog", so it can be a program name with args.
4414 set dummy $ac_prog; ac_word=$2
4415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4416 printf %s "checking for $ac_word... " >&6; }
4417 if test ${ac_cv_prog_ac_ct_CC+y}
4418 then :
4419 printf %s "(cached) " >&6
4420 else case e in #(
4421 e) if test -n "$ac_ct_CC"; then
4422 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4423 else
4424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4425 for as_dir in $PATH
4426 do
4427 IFS=$as_save_IFS
4428 case $as_dir in #(((
4429 '') as_dir=./ ;;
4430 */) ;;
4431 *) as_dir=$as_dir/ ;;
4432 esac
4433 for ac_exec_ext in '' $ac_executable_extensions; do
4434 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4435 ac_cv_prog_ac_ct_CC="$ac_prog"
4436 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4437 break 2
4438 fi
4439 done
4440 done
4441 IFS=$as_save_IFS
4442
4443 fi ;;
4444 esac
4445 fi
4446 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4447 if test -n "$ac_ct_CC"; then
4448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4449 printf "%s\n" "$ac_ct_CC" >&6; }
4450 else
4451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4452 printf "%s\n" "no" >&6; }
4453 fi
4454
4455
4456 test -n "$ac_ct_CC" && break
4457 done
4458
4459 if test "x$ac_ct_CC" = x; then
4460 CC=""
4461 else
4462 case $cross_compiling:$ac_tool_warned in
4463 yes:)
4464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4465 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4466 ac_tool_warned=yes ;;
4467 esac
4468 CC=$ac_ct_CC
4469 fi
4470 fi
4471
4472 fi
4473 if test -z "$CC"; then
4474 if test -n "$ac_tool_prefix"; then
4475 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4476 set dummy ${ac_tool_prefix}clang; ac_word=$2
4477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4478 printf %s "checking for $ac_word... " >&6; }
4479 if test ${ac_cv_prog_CC+y}
4480 then :
4481 printf %s "(cached) " >&6
4482 else case e in #(
4483 e) if test -n "$CC"; then
4484 ac_cv_prog_CC="$CC" # Let the user override the test.
4485 else
4486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4487 for as_dir in $PATH
4488 do
4489 IFS=$as_save_IFS
4490 case $as_dir in #(((
4491 '') as_dir=./ ;;
4492 */) ;;
4493 *) as_dir=$as_dir/ ;;
4494 esac
4495 for ac_exec_ext in '' $ac_executable_extensions; do
4496 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4497 ac_cv_prog_CC="${ac_tool_prefix}clang"
4498 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4499 break 2
4500 fi
4501 done
4502 done
4503 IFS=$as_save_IFS
4504
4505 fi ;;
4506 esac
4507 fi
4508 CC=$ac_cv_prog_CC
4509 if test -n "$CC"; then
4510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4511 printf "%s\n" "$CC" >&6; }
4512 else
4513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4514 printf "%s\n" "no" >&6; }
4515 fi
4516
4517
4518 fi
4519 if test -z "$ac_cv_prog_CC"; then
4520 ac_ct_CC=$CC
4521 # Extract the first word of "clang", so it can be a program name with args.
4522 set dummy clang; ac_word=$2
4523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4524 printf %s "checking for $ac_word... " >&6; }
4525 if test ${ac_cv_prog_ac_ct_CC+y}
4526 then :
4527 printf %s "(cached) " >&6
4528 else case e in #(
4529 e) if test -n "$ac_ct_CC"; then
4530 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4531 else
4532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4533 for as_dir in $PATH
4534 do
4535 IFS=$as_save_IFS
4536 case $as_dir in #(((
4537 '') as_dir=./ ;;
4538 */) ;;
4539 *) as_dir=$as_dir/ ;;
4540 esac
4541 for ac_exec_ext in '' $ac_executable_extensions; do
4542 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4543 ac_cv_prog_ac_ct_CC="clang"
4544 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4545 break 2
4546 fi
4547 done
4548 done
4549 IFS=$as_save_IFS
4550
4551 fi ;;
4552 esac
4553 fi
4554 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4555 if test -n "$ac_ct_CC"; then
4556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4557 printf "%s\n" "$ac_ct_CC" >&6; }
4558 else
4559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4560 printf "%s\n" "no" >&6; }
4561 fi
4562
4563 if test "x$ac_ct_CC" = x; then
4564 CC=""
4565 else
4566 case $cross_compiling:$ac_tool_warned in
4567 yes:)
4568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4569 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4570 ac_tool_warned=yes ;;
4571 esac
4572 CC=$ac_ct_CC
4573 fi
4574 else
4575 CC="$ac_cv_prog_CC"
4576 fi
4577
4578 fi
4579
4580
4581 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4582 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4583 as_fn_error $? "no acceptable C compiler found in \$PATH
4584 See 'config.log' for more details" "$LINENO" 5; }
4585
4586 # Provide some information about the compiler.
4587 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4588 set X $ac_compile
4589 ac_compiler=$2
4590 for ac_option in --version -v -V -qversion -version; do
4591 { { ac_try="$ac_compiler $ac_option >&5"
4592 case "(($ac_try" in
4593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4594 *) ac_try_echo=$ac_try;;
4595 esac
4596 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4597 printf "%s\n" "$ac_try_echo"; } >&5
4598 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4599 ac_status=$?
4600 if test -s conftest.err; then
4601 sed '10a\
4602 ... rest of stderr output deleted ...
4603 10q' conftest.err >conftest.er1
4604 cat conftest.er1 >&5
4605 fi
4606 rm -f conftest.er1 conftest.err
4607 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4608 test $ac_status = 0; }
4609 done
4610
4611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4612 /* end confdefs.h. */
4613
4614 int
4615 main (void)
4616 {
4617
4618 ;
4619 return 0;
4620 }
4621 _ACEOF
4622 ac_clean_files_save=$ac_clean_files
4623 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4624 # Try to create an executable without -o first, disregard a.out.
4625 # It will help us diagnose broken compilers, and finding out an intuition
4626 # of exeext.
4627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4628 printf %s "checking whether the C compiler works... " >&6; }
4629 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4630
4631 # The possible output files:
4632 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4633
4634 ac_rmfiles=
4635 for ac_file in $ac_files
4636 do
4637 case $ac_file in
4638 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4639 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4640 esac
4641 done
4642 rm -f $ac_rmfiles
4643
4644 if { { ac_try="$ac_link_default"
4645 case "(($ac_try" in
4646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4647 *) ac_try_echo=$ac_try;;
4648 esac
4649 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4650 printf "%s\n" "$ac_try_echo"; } >&5
4651 (eval "$ac_link_default") 2>&5
4652 ac_status=$?
4653 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4654 test $ac_status = 0; }
4655 then :
4656 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
4657 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
4658 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4659 # so that the user can short-circuit this test for compilers unknown to
4660 # Autoconf.
4661 for ac_file in $ac_files ''
4662 do
4663 test -f "$ac_file" || continue
4664 case $ac_file in
4665 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4666 ;;
4667 [ab].out )
4668 # We found the default executable, but exeext='' is most
4669 # certainly right.
4670 break;;
4671 *.* )
4672 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4673 then :; else
4674 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4675 fi
4676 # We set ac_cv_exeext here because the later test for it is not
4677 # safe: cross compilers may not add the suffix if given an '-o'
4678 # argument, so we may need to know it at that point already.
4679 # Even if this section looks crufty: it has the advantage of
4680 # actually working.
4681 break;;
4682 * )
4683 break;;
4684 esac
4685 done
4686 test "$ac_cv_exeext" = no && ac_cv_exeext=
4687
4688 else case e in #(
4689 e) ac_file='' ;;
4690 esac
4691 fi
4692 if test -z "$ac_file"
4693 then :
4694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4695 printf "%s\n" "no" >&6; }
4696 printf "%s\n" "$as_me: failed program was:" >&5
4697 sed 's/^/| /' conftest.$ac_ext >&5
4698
4699 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4700 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4701 as_fn_error 77 "C compiler cannot create executables
4702 See 'config.log' for more details" "$LINENO" 5; }
4703 else case e in #(
4704 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4705 printf "%s\n" "yes" >&6; } ;;
4706 esac
4707 fi
4708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4709 printf %s "checking for C compiler default output file name... " >&6; }
4710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4711 printf "%s\n" "$ac_file" >&6; }
4712 ac_exeext=$ac_cv_exeext
4713
4714 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4715 ac_clean_files=$ac_clean_files_save
4716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4717 printf %s "checking for suffix of executables... " >&6; }
4718 if { { ac_try="$ac_link"
4719 case "(($ac_try" in
4720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4721 *) ac_try_echo=$ac_try;;
4722 esac
4723 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4724 printf "%s\n" "$ac_try_echo"; } >&5
4725 (eval "$ac_link") 2>&5
4726 ac_status=$?
4727 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4728 test $ac_status = 0; }
4729 then :
4730 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
4731 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
4732 # work properly (i.e., refer to 'conftest.exe'), while it won't with
4733 # 'rm'.
4734 for ac_file in conftest.exe conftest conftest.*; do
4735 test -f "$ac_file" || continue
4736 case $ac_file in
4737 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4738 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4739 break;;
4740 * ) break;;
4741 esac
4742 done
4743 else case e in #(
4744 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4745 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4746 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4747 See 'config.log' for more details" "$LINENO" 5; } ;;
4748 esac
4749 fi
4750 rm -f conftest conftest$ac_cv_exeext
4751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4752 printf "%s\n" "$ac_cv_exeext" >&6; }
4753
4754 rm -f conftest.$ac_ext
4755 EXEEXT=$ac_cv_exeext
4756 ac_exeext=$EXEEXT
4757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4758 /* end confdefs.h. */
4759 #include <stdio.h>
4760 int
4761 main (void)
4762 {
4763 FILE *f = fopen ("conftest.out", "w");
4764 if (!f)
4765 return 1;
4766 return ferror (f) || fclose (f) != 0;
4767
4768 ;
4769 return 0;
4770 }
4771 _ACEOF
4772 ac_clean_files="$ac_clean_files conftest.out"
4773 # Check that the compiler produces executables we can run. If not, either
4774 # the compiler is broken, or we cross compile.
4775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4776 printf %s "checking whether we are cross compiling... " >&6; }
4777 if test "$cross_compiling" != yes; then
4778 { { ac_try="$ac_link"
4779 case "(($ac_try" in
4780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4781 *) ac_try_echo=$ac_try;;
4782 esac
4783 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4784 printf "%s\n" "$ac_try_echo"; } >&5
4785 (eval "$ac_link") 2>&5
4786 ac_status=$?
4787 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4788 test $ac_status = 0; }
4789 if { ac_try='./conftest$ac_cv_exeext'
4790 { { case "(($ac_try" in
4791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4792 *) ac_try_echo=$ac_try;;
4793 esac
4794 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4795 printf "%s\n" "$ac_try_echo"; } >&5
4796 (eval "$ac_try") 2>&5
4797 ac_status=$?
4798 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4799 test $ac_status = 0; }; }; then
4800 cross_compiling=no
4801 else
4802 if test "$cross_compiling" = maybe; then
4803 cross_compiling=yes
4804 else
4805 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4806 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4807 as_fn_error 77 "cannot run C compiled programs.
4808 If you meant to cross compile, use '--host'.
4809 See 'config.log' for more details" "$LINENO" 5; }
4810 fi
4811 fi
4812 fi
4813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4814 printf "%s\n" "$cross_compiling" >&6; }
4815
4816 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4817 conftest.o conftest.obj conftest.out
4818 ac_clean_files=$ac_clean_files_save
4819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4820 printf %s "checking for suffix of object files... " >&6; }
4821 if test ${ac_cv_objext+y}
4822 then :
4823 printf %s "(cached) " >&6
4824 else case e in #(
4825 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4826 /* end confdefs.h. */
4827
4828 int
4829 main (void)
4830 {
4831
4832 ;
4833 return 0;
4834 }
4835 _ACEOF
4836 rm -f conftest.o conftest.obj
4837 if { { ac_try="$ac_compile"
4838 case "(($ac_try" in
4839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4840 *) ac_try_echo=$ac_try;;
4841 esac
4842 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4843 printf "%s\n" "$ac_try_echo"; } >&5
4844 (eval "$ac_compile") 2>&5
4845 ac_status=$?
4846 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4847 test $ac_status = 0; }
4848 then :
4849 for ac_file in conftest.o conftest.obj conftest.*; do
4850 test -f "$ac_file" || continue;
4851 case $ac_file in
4852 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4853 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4854 break;;
4855 esac
4856 done
4857 else case e in #(
4858 e) printf "%s\n" "$as_me: failed program was:" >&5
4859 sed 's/^/| /' conftest.$ac_ext >&5
4860
4861 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4862 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4863 as_fn_error $? "cannot compute suffix of object files: cannot compile
4864 See 'config.log' for more details" "$LINENO" 5; } ;;
4865 esac
4866 fi
4867 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4868 esac
4869 fi
4870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4871 printf "%s\n" "$ac_cv_objext" >&6; }
4872 OBJEXT=$ac_cv_objext
4873 ac_objext=$OBJEXT
4874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4875 printf %s "checking whether the compiler supports GNU C... " >&6; }
4876 if test ${ac_cv_c_compiler_gnu+y}
4877 then :
4878 printf %s "(cached) " >&6
4879 else case e in #(
4880 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4881 /* end confdefs.h. */
4882
4883 int
4884 main (void)
4885 {
4886 #ifndef __GNUC__
4887 choke me
4888 #endif
4889
4890 ;
4891 return 0;
4892 }
4893 _ACEOF
4894 if ac_fn_c_try_compile "$LINENO"
4895 then :
4896 ac_compiler_gnu=yes
4897 else case e in #(
4898 e) ac_compiler_gnu=no ;;
4899 esac
4900 fi
4901 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4902 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4903 ;;
4904 esac
4905 fi
4906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4907 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4909
4910 if test $ac_compiler_gnu = yes; then
4911 GCC=yes
4912 else
4913 GCC=
4914 fi
4915 ac_test_CFLAGS=${CFLAGS+y}
4916 ac_save_CFLAGS=$CFLAGS
4917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4918 printf %s "checking whether $CC accepts -g... " >&6; }
4919 if test ${ac_cv_prog_cc_g+y}
4920 then :
4921 printf %s "(cached) " >&6
4922 else case e in #(
4923 e) ac_save_c_werror_flag=$ac_c_werror_flag
4924 ac_c_werror_flag=yes
4925 ac_cv_prog_cc_g=no
4926 CFLAGS="-g"
4927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4928 /* end confdefs.h. */
4929
4930 int
4931 main (void)
4932 {
4933
4934 ;
4935 return 0;
4936 }
4937 _ACEOF
4938 if ac_fn_c_try_compile "$LINENO"
4939 then :
4940 ac_cv_prog_cc_g=yes
4941 else case e in #(
4942 e) CFLAGS=""
4943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4944 /* end confdefs.h. */
4945
4946 int
4947 main (void)
4948 {
4949
4950 ;
4951 return 0;
4952 }
4953 _ACEOF
4954 if ac_fn_c_try_compile "$LINENO"
4955 then :
4956
4957 else case e in #(
4958 e) ac_c_werror_flag=$ac_save_c_werror_flag
4959 CFLAGS="-g"
4960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4961 /* end confdefs.h. */
4962
4963 int
4964 main (void)
4965 {
4966
4967 ;
4968 return 0;
4969 }
4970 _ACEOF
4971 if ac_fn_c_try_compile "$LINENO"
4972 then :
4973 ac_cv_prog_cc_g=yes
4974 fi
4975 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4976 esac
4977 fi
4978 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4979 esac
4980 fi
4981 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4982 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4983 esac
4984 fi
4985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4986 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4987 if test $ac_test_CFLAGS; then
4988 CFLAGS=$ac_save_CFLAGS
4989 elif test $ac_cv_prog_cc_g = yes; then
4990 if test "$GCC" = yes; then
4991 CFLAGS="-g -O2"
4992 else
4993 CFLAGS="-g"
4994 fi
4995 else
4996 if test "$GCC" = yes; then
4997 CFLAGS="-O2"
4998 else
4999 CFLAGS=
5000 fi
5001 fi
5002 ac_prog_cc_stdc=no
5003 if test x$ac_prog_cc_stdc = xno
5004 then :
5005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5006 printf %s "checking for $CC option to enable C11 features... " >&6; }
5007 if test ${ac_cv_prog_cc_c11+y}
5008 then :
5009 printf %s "(cached) " >&6
5010 else case e in #(
5011 e) ac_cv_prog_cc_c11=no
5012 ac_save_CC=$CC
5013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5014 /* end confdefs.h. */
5015 $ac_c_conftest_c11_program
5016 _ACEOF
5017 for ac_arg in '' -std=gnu11
5018 do
5019 CC="$ac_save_CC $ac_arg"
5020 if ac_fn_c_try_compile "$LINENO"
5021 then :
5022 ac_cv_prog_cc_c11=$ac_arg
5023 fi
5024 rm -f core conftest.err conftest.$ac_objext conftest.beam
5025 test "x$ac_cv_prog_cc_c11" != "xno" && break
5026 done
5027 rm -f conftest.$ac_ext
5028 CC=$ac_save_CC ;;
5029 esac
5030 fi
5031
5032 if test "x$ac_cv_prog_cc_c11" = xno
5033 then :
5034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5035 printf "%s\n" "unsupported" >&6; }
5036 else case e in #(
5037 e) if test "x$ac_cv_prog_cc_c11" = x
5038 then :
5039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5040 printf "%s\n" "none needed" >&6; }
5041 else case e in #(
5042 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5043 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5044 CC="$CC $ac_cv_prog_cc_c11" ;;
5045 esac
5046 fi
5047 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5048 ac_prog_cc_stdc=c11 ;;
5049 esac
5050 fi
5051 fi
5052 if test x$ac_prog_cc_stdc = xno
5053 then :
5054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5055 printf %s "checking for $CC option to enable C99 features... " >&6; }
5056 if test ${ac_cv_prog_cc_c99+y}
5057 then :
5058 printf %s "(cached) " >&6
5059 else case e in #(
5060 e) ac_cv_prog_cc_c99=no
5061 ac_save_CC=$CC
5062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5063 /* end confdefs.h. */
5064 $ac_c_conftest_c99_program
5065 _ACEOF
5066 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5067 do
5068 CC="$ac_save_CC $ac_arg"
5069 if ac_fn_c_try_compile "$LINENO"
5070 then :
5071 ac_cv_prog_cc_c99=$ac_arg
5072 fi
5073 rm -f core conftest.err conftest.$ac_objext conftest.beam
5074 test "x$ac_cv_prog_cc_c99" != "xno" && break
5075 done
5076 rm -f conftest.$ac_ext
5077 CC=$ac_save_CC ;;
5078 esac
5079 fi
5080
5081 if test "x$ac_cv_prog_cc_c99" = xno
5082 then :
5083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5084 printf "%s\n" "unsupported" >&6; }
5085 else case e in #(
5086 e) if test "x$ac_cv_prog_cc_c99" = x
5087 then :
5088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5089 printf "%s\n" "none needed" >&6; }
5090 else case e in #(
5091 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5092 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5093 CC="$CC $ac_cv_prog_cc_c99" ;;
5094 esac
5095 fi
5096 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5097 ac_prog_cc_stdc=c99 ;;
5098 esac
5099 fi
5100 fi
5101 if test x$ac_prog_cc_stdc = xno
5102 then :
5103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5104 printf %s "checking for $CC option to enable C89 features... " >&6; }
5105 if test ${ac_cv_prog_cc_c89+y}
5106 then :
5107 printf %s "(cached) " >&6
5108 else case e in #(
5109 e) ac_cv_prog_cc_c89=no
5110 ac_save_CC=$CC
5111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5112 /* end confdefs.h. */
5113 $ac_c_conftest_c89_program
5114 _ACEOF
5115 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5116 do
5117 CC="$ac_save_CC $ac_arg"
5118 if ac_fn_c_try_compile "$LINENO"
5119 then :
5120 ac_cv_prog_cc_c89=$ac_arg
5121 fi
5122 rm -f core conftest.err conftest.$ac_objext conftest.beam
5123 test "x$ac_cv_prog_cc_c89" != "xno" && break
5124 done
5125 rm -f conftest.$ac_ext
5126 CC=$ac_save_CC ;;
5127 esac
5128 fi
5129
5130 if test "x$ac_cv_prog_cc_c89" = xno
5131 then :
5132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5133 printf "%s\n" "unsupported" >&6; }
5134 else case e in #(
5135 e) if test "x$ac_cv_prog_cc_c89" = x
5136 then :
5137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5138 printf "%s\n" "none needed" >&6; }
5139 else case e in #(
5140 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5141 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5142 CC="$CC $ac_cv_prog_cc_c89" ;;
5143 esac
5144 fi
5145 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5146 ac_prog_cc_stdc=c89 ;;
5147 esac
5148 fi
5149 fi
5150
5151 ac_ext=c
5152 ac_cpp='$CPP $CPPFLAGS'
5153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5156
5157
5158 ac_ext=c
5159 ac_cpp='$CPP $CPPFLAGS'
5160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5162 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5164 printf %s "checking whether $CC understands -c and -o together... " >&6; }
5165 if test ${am_cv_prog_cc_c_o+y}
5166 then :
5167 printf %s "(cached) " >&6
5168 else case e in #(
5169 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5170 /* end confdefs.h. */
5171
5172 int
5173 main (void)
5174 {
5175
5176 ;
5177 return 0;
5178 }
5179 _ACEOF
5180 # Make sure it works both with $CC and with simple cc.
5181 # Following AC_PROG_CC_C_O, we do the test twice because some
5182 # compilers refuse to overwrite an existing .o file with -o,
5183 # though they will create one.
5184 am_cv_prog_cc_c_o=yes
5185 for am_i in 1 2; do
5186 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5187 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5188 ac_status=$?
5189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5190 (exit $ac_status); } \
5191 && test -f conftest2.$ac_objext; then
5192 : OK
5193 else
5194 am_cv_prog_cc_c_o=no
5195 break
5196 fi
5197 done
5198 rm -f core conftest*
5199 unset am_i ;;
5200 esac
5201 fi
5202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5203 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
5204 if test "$am_cv_prog_cc_c_o" != yes; then
5205 # Losing compiler, so override with the script.
5206 # FIXME: It is wrong to rewrite CC.
5207 # But if we don't then we get into trouble of one sort or another.
5208 # A longer-term fix would be to have automake use am__CC in this case,
5209 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5210 CC="$am_aux_dir/compile $CC"
5211 fi
5212 ac_ext=c
5213 ac_cpp='$CPP $CPPFLAGS'
5214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5217
5218 DEPDIR="${am__leading_dot}deps"
5219
5220 ac_config_commands="$ac_config_commands depfiles"
5221
5222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
5223 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
5224 cat > confinc.mk << 'END'
5225 am__doit:
5226 @echo this is the am__doit target >confinc.out
5227 .PHONY: am__doit
5228 END
5229 am__include="#"
5230 am__quote=
5231 # BSD make does it like this.
5232 echo '.include "confinc.mk" # ignored' > confmf.BSD
5233 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
5234 echo 'include confinc.mk # ignored' > confmf.GNU
5235 _am_result=no
5236 for s in GNU BSD; do
5237 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
5238 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
5239 ac_status=$?
5240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5241 (exit $ac_status); }
5242 case $?:`cat confinc.out 2>/dev/null` in #(
5243 '0:this is the am__doit target') :
5244 case $s in #(
5245 BSD) :
5246 am__include='.include' am__quote='"' ;; #(
5247 *) :
5248 am__include='include' am__quote='' ;;
5249 esac ;; #(
5250 *) :
5251 ;;
5252 esac
5253 if test "$am__include" != "#"; then
5254 _am_result="yes ($s style)"
5255 break
5256 fi
5257 done
5258 rm -f confinc.* confmf.*
5259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
5260 printf "%s\n" "${_am_result}" >&6; }
5261
5262 # Check whether --enable-dependency-tracking was given.
5263 if test ${enable_dependency_tracking+y}
5264 then :
5265 enableval=$enable_dependency_tracking;
5266 fi
5267
5268 if test "x$enable_dependency_tracking" != xno; then
5269 am_depcomp="$ac_aux_dir/depcomp"
5270 AMDEPBACKSLASH='\'
5271 am__nodep='_no'
5272 fi
5273 if test "x$enable_dependency_tracking" != xno; then
5274 AMDEP_TRUE=
5275 AMDEP_FALSE='#'
5276 else
5277 AMDEP_TRUE='#'
5278 AMDEP_FALSE=
5279 fi
5280
5281
5282
5283 depcc="$CC" am_compiler_list=
5284
5285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5286 printf %s "checking dependency style of $depcc... " >&6; }
5287 if test ${am_cv_CC_dependencies_compiler_type+y}
5288 then :
5289 printf %s "(cached) " >&6
5290 else case e in #(
5291 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5292 # We make a subdir and do the tests there. Otherwise we can end up
5293 # making bogus files that we don't know about and never remove. For
5294 # instance it was reported that on HP-UX the gcc test will end up
5295 # making a dummy file named 'D' -- because '-MD' means "put the output
5296 # in D".
5297 rm -rf conftest.dir
5298 mkdir conftest.dir
5299 # Copy depcomp to subdir because otherwise we won't find it if we're
5300 # using a relative directory.
5301 cp "$am_depcomp" conftest.dir
5302 cd conftest.dir
5303 # We will build objects and dependencies in a subdirectory because
5304 # it helps to detect inapplicable dependency modes. For instance
5305 # both Tru64's cc and ICC support -MD to output dependencies as a
5306 # side effect of compilation, but ICC will put the dependencies in
5307 # the current directory while Tru64 will put them in the object
5308 # directory.
5309 mkdir sub
5310
5311 am_cv_CC_dependencies_compiler_type=none
5312 if test "$am_compiler_list" = ""; then
5313 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5314 fi
5315 am__universal=false
5316 case " $depcc " in #(
5317 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5318 esac
5319
5320 for depmode in $am_compiler_list; do
5321 # Setup a source with many dependencies, because some compilers
5322 # like to wrap large dependency lists on column 80 (with \), and
5323 # we should not choose a depcomp mode which is confused by this.
5324 #
5325 # We need to recreate these files for each test, as the compiler may
5326 # overwrite some of them when testing with obscure command lines.
5327 # This happens at least with the AIX C compiler.
5328 : > sub/conftest.c
5329 for i in 1 2 3 4 5 6; do
5330 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5331 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5332 # Solaris 10 /bin/sh.
5333 echo '/* dummy */' > sub/conftst$i.h
5334 done
5335 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5336
5337 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5338 # mode. It turns out that the SunPro C++ compiler does not properly
5339 # handle '-M -o', and we need to detect this. Also, some Intel
5340 # versions had trouble with output in subdirs.
5341 am__obj=sub/conftest.${OBJEXT-o}
5342 am__minus_obj="-o $am__obj"
5343 case $depmode in
5344 gcc)
5345 # This depmode causes a compiler race in universal mode.
5346 test "$am__universal" = false || continue
5347 ;;
5348 nosideeffect)
5349 # After this tag, mechanisms are not by side-effect, so they'll
5350 # only be used when explicitly requested.
5351 if test "x$enable_dependency_tracking" = xyes; then
5352 continue
5353 else
5354 break
5355 fi
5356 ;;
5357 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5358 # This compiler won't grok '-c -o', but also, the minuso test has
5359 # not run yet. These depmodes are late enough in the game, and
5360 # so weak that their functioning should not be impacted.
5361 am__obj=conftest.${OBJEXT-o}
5362 am__minus_obj=
5363 ;;
5364 none) break ;;
5365 esac
5366 if depmode=$depmode \
5367 source=sub/conftest.c object=$am__obj \
5368 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5369 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5370 >/dev/null 2>conftest.err &&
5371 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5372 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5373 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5374 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5375 # icc doesn't choke on unknown options, it will just issue warnings
5376 # or remarks (even with -Werror). So we grep stderr for any message
5377 # that says an option was ignored or not supported.
5378 # When given -MP, icc 7.0 and 7.1 complain thus:
5379 # icc: Command line warning: ignoring option '-M'; no argument required
5380 # The diagnosis changed in icc 8.0:
5381 # icc: Command line remark: option '-MP' not supported
5382 if (grep 'ignoring option' conftest.err ||
5383 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5384 am_cv_CC_dependencies_compiler_type=$depmode
5385 break
5386 fi
5387 fi
5388 done
5389
5390 cd ..
5391 rm -rf conftest.dir
5392 else
5393 am_cv_CC_dependencies_compiler_type=none
5394 fi
5395 ;;
5396 esac
5397 fi
5398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5399 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5400 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5401
5402 if
5403 test "x$enable_dependency_tracking" != xno \
5404 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5405 am__fastdepCC_TRUE=
5406 am__fastdepCC_FALSE='#'
5407 else
5408 am__fastdepCC_TRUE='#'
5409 am__fastdepCC_FALSE=
5410 fi
5411
5412
5413
5414
5415
5416
5417
5418
5419 ac_ext=cpp
5420 ac_cpp='$CXXCPP $CPPFLAGS'
5421 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5422 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5423 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5424 if test -z "$CXX"; then
5425 if test -n "$CCC"; then
5426 CXX=$CCC
5427 else
5428 if test -n "$ac_tool_prefix"; then
5429 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
5430 do
5431 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5432 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5434 printf %s "checking for $ac_word... " >&6; }
5435 if test ${ac_cv_prog_CXX+y}
5436 then :
5437 printf %s "(cached) " >&6
5438 else case e in #(
5439 e) if test -n "$CXX"; then
5440 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5441 else
5442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5443 for as_dir in $PATH
5444 do
5445 IFS=$as_save_IFS
5446 case $as_dir in #(((
5447 '') as_dir=./ ;;
5448 */) ;;
5449 *) as_dir=$as_dir/ ;;
5450 esac
5451 for ac_exec_ext in '' $ac_executable_extensions; do
5452 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5453 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5454 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5455 break 2
5456 fi
5457 done
5458 done
5459 IFS=$as_save_IFS
5460
5461 fi ;;
5462 esac
5463 fi
5464 CXX=$ac_cv_prog_CXX
5465 if test -n "$CXX"; then
5466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5467 printf "%s\n" "$CXX" >&6; }
5468 else
5469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5470 printf "%s\n" "no" >&6; }
5471 fi
5472
5473
5474 test -n "$CXX" && break
5475 done
5476 fi
5477 if test -z "$CXX"; then
5478 ac_ct_CXX=$CXX
5479 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
5480 do
5481 # Extract the first word of "$ac_prog", so it can be a program name with args.
5482 set dummy $ac_prog; ac_word=$2
5483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5484 printf %s "checking for $ac_word... " >&6; }
5485 if test ${ac_cv_prog_ac_ct_CXX+y}
5486 then :
5487 printf %s "(cached) " >&6
5488 else case e in #(
5489 e) if test -n "$ac_ct_CXX"; then
5490 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5491 else
5492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5493 for as_dir in $PATH
5494 do
5495 IFS=$as_save_IFS
5496 case $as_dir in #(((
5497 '') as_dir=./ ;;
5498 */) ;;
5499 *) as_dir=$as_dir/ ;;
5500 esac
5501 for ac_exec_ext in '' $ac_executable_extensions; do
5502 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5503 ac_cv_prog_ac_ct_CXX="$ac_prog"
5504 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5505 break 2
5506 fi
5507 done
5508 done
5509 IFS=$as_save_IFS
5510
5511 fi ;;
5512 esac
5513 fi
5514 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5515 if test -n "$ac_ct_CXX"; then
5516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5517 printf "%s\n" "$ac_ct_CXX" >&6; }
5518 else
5519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5520 printf "%s\n" "no" >&6; }
5521 fi
5522
5523
5524 test -n "$ac_ct_CXX" && break
5525 done
5526
5527 if test "x$ac_ct_CXX" = x; then
5528 CXX="g++"
5529 else
5530 case $cross_compiling:$ac_tool_warned in
5531 yes:)
5532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5533 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5534 ac_tool_warned=yes ;;
5535 esac
5536 CXX=$ac_ct_CXX
5537 fi
5538 fi
5539
5540 fi
5541 fi
5542 # Provide some information about the compiler.
5543 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5544 set X $ac_compile
5545 ac_compiler=$2
5546 for ac_option in --version -v -V -qversion; do
5547 { { ac_try="$ac_compiler $ac_option >&5"
5548 case "(($ac_try" in
5549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5550 *) ac_try_echo=$ac_try;;
5551 esac
5552 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5553 printf "%s\n" "$ac_try_echo"; } >&5
5554 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5555 ac_status=$?
5556 if test -s conftest.err; then
5557 sed '10a\
5558 ... rest of stderr output deleted ...
5559 10q' conftest.err >conftest.er1
5560 cat conftest.er1 >&5
5561 fi
5562 rm -f conftest.er1 conftest.err
5563 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5564 test $ac_status = 0; }
5565 done
5566
5567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
5568 printf %s "checking whether the compiler supports GNU C++... " >&6; }
5569 if test ${ac_cv_cxx_compiler_gnu+y}
5570 then :
5571 printf %s "(cached) " >&6
5572 else case e in #(
5573 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5574 /* end confdefs.h. */
5575
5576 int
5577 main (void)
5578 {
5579 #ifndef __GNUC__
5580 choke me
5581 #endif
5582
5583 ;
5584 return 0;
5585 }
5586 _ACEOF
5587 if ac_fn_cxx_try_compile "$LINENO"
5588 then :
5589 ac_compiler_gnu=yes
5590 else case e in #(
5591 e) ac_compiler_gnu=no ;;
5592 esac
5593 fi
5594 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5595 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5596 ;;
5597 esac
5598 fi
5599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5600 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
5601 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5602
5603 if test $ac_compiler_gnu = yes; then
5604 GXX=yes
5605 else
5606 GXX=
5607 fi
5608 ac_test_CXXFLAGS=${CXXFLAGS+y}
5609 ac_save_CXXFLAGS=$CXXFLAGS
5610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5611 printf %s "checking whether $CXX accepts -g... " >&6; }
5612 if test ${ac_cv_prog_cxx_g+y}
5613 then :
5614 printf %s "(cached) " >&6
5615 else case e in #(
5616 e) ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5617 ac_cxx_werror_flag=yes
5618 ac_cv_prog_cxx_g=no
5619 CXXFLAGS="-g"
5620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5621 /* end confdefs.h. */
5622
5623 int
5624 main (void)
5625 {
5626
5627 ;
5628 return 0;
5629 }
5630 _ACEOF
5631 if ac_fn_cxx_try_compile "$LINENO"
5632 then :
5633 ac_cv_prog_cxx_g=yes
5634 else case e in #(
5635 e) CXXFLAGS=""
5636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5637 /* end confdefs.h. */
5638
5639 int
5640 main (void)
5641 {
5642
5643 ;
5644 return 0;
5645 }
5646 _ACEOF
5647 if ac_fn_cxx_try_compile "$LINENO"
5648 then :
5649
5650 else case e in #(
5651 e) ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5652 CXXFLAGS="-g"
5653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5654 /* end confdefs.h. */
5655
5656 int
5657 main (void)
5658 {
5659
5660 ;
5661 return 0;
5662 }
5663 _ACEOF
5664 if ac_fn_cxx_try_compile "$LINENO"
5665 then :
5666 ac_cv_prog_cxx_g=yes
5667 fi
5668 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5669 esac
5670 fi
5671 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5672 esac
5673 fi
5674 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5675 ac_cxx_werror_flag=$ac_save_cxx_werror_flag ;;
5676 esac
5677 fi
5678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5679 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
5680 if test $ac_test_CXXFLAGS; then
5681 CXXFLAGS=$ac_save_CXXFLAGS
5682 elif test $ac_cv_prog_cxx_g = yes; then
5683 if test "$GXX" = yes; then
5684 CXXFLAGS="-g -O2"
5685 else
5686 CXXFLAGS="-g"
5687 fi
5688 else
5689 if test "$GXX" = yes; then
5690 CXXFLAGS="-O2"
5691 else
5692 CXXFLAGS=
5693 fi
5694 fi
5695 ac_prog_cxx_stdcxx=no
5696 if test x$ac_prog_cxx_stdcxx = xno
5697 then :
5698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
5699 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
5700 if test ${ac_cv_prog_cxx_cxx11+y}
5701 then :
5702 printf %s "(cached) " >&6
5703 else case e in #(
5704 e) ac_cv_prog_cxx_cxx11=no
5705 ac_save_CXX=$CXX
5706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5707 /* end confdefs.h. */
5708 $ac_cxx_conftest_cxx11_program
5709 _ACEOF
5710 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
5711 do
5712 CXX="$ac_save_CXX $ac_arg"
5713 if ac_fn_cxx_try_compile "$LINENO"
5714 then :
5715 ac_cv_prog_cxx_cxx11=$ac_arg
5716 fi
5717 rm -f core conftest.err conftest.$ac_objext conftest.beam
5718 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
5719 done
5720 rm -f conftest.$ac_ext
5721 CXX=$ac_save_CXX ;;
5722 esac
5723 fi
5724
5725 if test "x$ac_cv_prog_cxx_cxx11" = xno
5726 then :
5727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5728 printf "%s\n" "unsupported" >&6; }
5729 else case e in #(
5730 e) if test "x$ac_cv_prog_cxx_cxx11" = x
5731 then :
5732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5733 printf "%s\n" "none needed" >&6; }
5734 else case e in #(
5735 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
5736 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
5737 CXX="$CXX $ac_cv_prog_cxx_cxx11" ;;
5738 esac
5739 fi
5740 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
5741 ac_prog_cxx_stdcxx=cxx11 ;;
5742 esac
5743 fi
5744 fi
5745 if test x$ac_prog_cxx_stdcxx = xno
5746 then :
5747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
5748 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
5749 if test ${ac_cv_prog_cxx_cxx98+y}
5750 then :
5751 printf %s "(cached) " >&6
5752 else case e in #(
5753 e) ac_cv_prog_cxx_cxx98=no
5754 ac_save_CXX=$CXX
5755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5756 /* end confdefs.h. */
5757 $ac_cxx_conftest_cxx98_program
5758 _ACEOF
5759 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
5760 do
5761 CXX="$ac_save_CXX $ac_arg"
5762 if ac_fn_cxx_try_compile "$LINENO"
5763 then :
5764 ac_cv_prog_cxx_cxx98=$ac_arg
5765 fi
5766 rm -f core conftest.err conftest.$ac_objext conftest.beam
5767 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
5768 done
5769 rm -f conftest.$ac_ext
5770 CXX=$ac_save_CXX ;;
5771 esac
5772 fi
5773
5774 if test "x$ac_cv_prog_cxx_cxx98" = xno
5775 then :
5776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5777 printf "%s\n" "unsupported" >&6; }
5778 else case e in #(
5779 e) if test "x$ac_cv_prog_cxx_cxx98" = x
5780 then :
5781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5782 printf "%s\n" "none needed" >&6; }
5783 else case e in #(
5784 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
5785 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
5786 CXX="$CXX $ac_cv_prog_cxx_cxx98" ;;
5787 esac
5788 fi
5789 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
5790 ac_prog_cxx_stdcxx=cxx98 ;;
5791 esac
5792 fi
5793 fi
5794
5795 ac_ext=c
5796 ac_cpp='$CPP $CPPFLAGS'
5797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5800
5801 depcc="$CXX" am_compiler_list=
5802
5803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5804 printf %s "checking dependency style of $depcc... " >&6; }
5805 if test ${am_cv_CXX_dependencies_compiler_type+y}
5806 then :
5807 printf %s "(cached) " >&6
5808 else case e in #(
5809 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5810 # We make a subdir and do the tests there. Otherwise we can end up
5811 # making bogus files that we don't know about and never remove. For
5812 # instance it was reported that on HP-UX the gcc test will end up
5813 # making a dummy file named 'D' -- because '-MD' means "put the output
5814 # in D".
5815 rm -rf conftest.dir
5816 mkdir conftest.dir
5817 # Copy depcomp to subdir because otherwise we won't find it if we're
5818 # using a relative directory.
5819 cp "$am_depcomp" conftest.dir
5820 cd conftest.dir
5821 # We will build objects and dependencies in a subdirectory because
5822 # it helps to detect inapplicable dependency modes. For instance
5823 # both Tru64's cc and ICC support -MD to output dependencies as a
5824 # side effect of compilation, but ICC will put the dependencies in
5825 # the current directory while Tru64 will put them in the object
5826 # directory.
5827 mkdir sub
5828
5829 am_cv_CXX_dependencies_compiler_type=none
5830 if test "$am_compiler_list" = ""; then
5831 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5832 fi
5833 am__universal=false
5834 case " $depcc " in #(
5835 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5836 esac
5837
5838 for depmode in $am_compiler_list; do
5839 # Setup a source with many dependencies, because some compilers
5840 # like to wrap large dependency lists on column 80 (with \), and
5841 # we should not choose a depcomp mode which is confused by this.
5842 #
5843 # We need to recreate these files for each test, as the compiler may
5844 # overwrite some of them when testing with obscure command lines.
5845 # This happens at least with the AIX C compiler.
5846 : > sub/conftest.c
5847 for i in 1 2 3 4 5 6; do
5848 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5849 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5850 # Solaris 10 /bin/sh.
5851 echo '/* dummy */' > sub/conftst$i.h
5852 done
5853 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5854
5855 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5856 # mode. It turns out that the SunPro C++ compiler does not properly
5857 # handle '-M -o', and we need to detect this. Also, some Intel
5858 # versions had trouble with output in subdirs.
5859 am__obj=sub/conftest.${OBJEXT-o}
5860 am__minus_obj="-o $am__obj"
5861 case $depmode in
5862 gcc)
5863 # This depmode causes a compiler race in universal mode.
5864 test "$am__universal" = false || continue
5865 ;;
5866 nosideeffect)
5867 # After this tag, mechanisms are not by side-effect, so they'll
5868 # only be used when explicitly requested.
5869 if test "x$enable_dependency_tracking" = xyes; then
5870 continue
5871 else
5872 break
5873 fi
5874 ;;
5875 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5876 # This compiler won't grok '-c -o', but also, the minuso test has
5877 # not run yet. These depmodes are late enough in the game, and
5878 # so weak that their functioning should not be impacted.
5879 am__obj=conftest.${OBJEXT-o}
5880 am__minus_obj=
5881 ;;
5882 none) break ;;
5883 esac
5884 if depmode=$depmode \
5885 source=sub/conftest.c object=$am__obj \
5886 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5887 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5888 >/dev/null 2>conftest.err &&
5889 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5890 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5891 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5892 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5893 # icc doesn't choke on unknown options, it will just issue warnings
5894 # or remarks (even with -Werror). So we grep stderr for any message
5895 # that says an option was ignored or not supported.
5896 # When given -MP, icc 7.0 and 7.1 complain thus:
5897 # icc: Command line warning: ignoring option '-M'; no argument required
5898 # The diagnosis changed in icc 8.0:
5899 # icc: Command line remark: option '-MP' not supported
5900 if (grep 'ignoring option' conftest.err ||
5901 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5902 am_cv_CXX_dependencies_compiler_type=$depmode
5903 break
5904 fi
5905 fi
5906 done
5907
5908 cd ..
5909 rm -rf conftest.dir
5910 else
5911 am_cv_CXX_dependencies_compiler_type=none
5912 fi
5913 ;;
5914 esac
5915 fi
5916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5917 printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
5918 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5919
5920 if
5921 test "x$enable_dependency_tracking" != xno \
5922 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5923 am__fastdepCXX_TRUE=
5924 am__fastdepCXX_FALSE='#'
5925 else
5926 am__fastdepCXX_TRUE='#'
5927 am__fastdepCXX_FALSE=
5928 fi
5929
5930
5931
5932
5933
5934 ac_header= ac_cache=
5935 for ac_item in $ac_header_c_list
5936 do
5937 if test $ac_cache; then
5938 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
5939 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
5940 printf "%s\n" "#define $ac_item 1" >> confdefs.h
5941 fi
5942 ac_header= ac_cache=
5943 elif test $ac_header; then
5944 ac_cache=$ac_item
5945 else
5946 ac_header=$ac_item
5947 fi
5948 done
5949
5950
5951
5952
5953
5954
5955
5956
5957 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5958 then :
5959
5960 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5961
5962 fi
5963
5964
5965
5966
5967
5968
5969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5970 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5971 if test ${ac_cv_safe_to_define___extensions__+y}
5972 then :
5973 printf %s "(cached) " >&6
5974 else case e in #(
5975 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5976 /* end confdefs.h. */
5977
5978 # define __EXTENSIONS__ 1
5979 $ac_includes_default
5980 int
5981 main (void)
5982 {
5983
5984 ;
5985 return 0;
5986 }
5987 _ACEOF
5988 if ac_fn_c_try_compile "$LINENO"
5989 then :
5990 ac_cv_safe_to_define___extensions__=yes
5991 else case e in #(
5992 e) ac_cv_safe_to_define___extensions__=no ;;
5993 esac
5994 fi
5995 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5996 esac
5997 fi
5998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5999 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
6000
6001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
6002 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
6003 if test ${ac_cv_should_define__xopen_source+y}
6004 then :
6005 printf %s "(cached) " >&6
6006 else case e in #(
6007 e) ac_cv_should_define__xopen_source=no
6008 if test $ac_cv_header_wchar_h = yes
6009 then :
6010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6011 /* end confdefs.h. */
6012
6013 #include <wchar.h>
6014 mbstate_t x;
6015 int
6016 main (void)
6017 {
6018
6019 ;
6020 return 0;
6021 }
6022 _ACEOF
6023 if ac_fn_c_try_compile "$LINENO"
6024 then :
6025
6026 else case e in #(
6027 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6028 /* end confdefs.h. */
6029
6030 #define _XOPEN_SOURCE 500
6031 #include <wchar.h>
6032 mbstate_t x;
6033 int
6034 main (void)
6035 {
6036
6037 ;
6038 return 0;
6039 }
6040 _ACEOF
6041 if ac_fn_c_try_compile "$LINENO"
6042 then :
6043 ac_cv_should_define__xopen_source=yes
6044 fi
6045 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6046 esac
6047 fi
6048 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6049 fi ;;
6050 esac
6051 fi
6052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
6053 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
6054
6055 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
6056
6057 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6058
6059 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
6060
6061 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
6062
6063 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
6064
6065 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
6066
6067 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6068
6069 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
6070
6071 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
6072
6073 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
6074
6075 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
6076
6077 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
6078
6079 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
6080
6081 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
6082
6083 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
6084
6085 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
6086
6087 if test $ac_cv_header_minix_config_h = yes
6088 then :
6089 MINIX=yes
6090 printf "%s\n" "#define _MINIX 1" >>confdefs.h
6091
6092 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
6093
6094 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
6095
6096 else case e in #(
6097 e) MINIX= ;;
6098 esac
6099 fi
6100 if test $ac_cv_safe_to_define___extensions__ = yes
6101 then :
6102 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
6103
6104 fi
6105 if test $ac_cv_should_define__xopen_source = yes
6106 then :
6107 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
6108
6109 fi
6110
6111 # Check whether --enable-largefile was given.
6112 if test ${enable_largefile+y}
6113 then :
6114 enableval=$enable_largefile;
6115 fi
6116 if test "$enable_largefile,$enable_year2038" != no,no
6117 then :
6118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CPPFLAGS option for large files" >&5
6119 printf %s "checking for $CPPFLAGS option for large files... " >&6; }
6120 if test ${ac_cv_sys_largefile_opts+y}
6121 then :
6122 printf %s "(cached) " >&6
6123 else case e in #(
6124 e) ac_save_CPPFLAGS=$CPPFLAGS
6125 ac_opt_found=no
6126 for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1"; do
6127 if test x"$ac_opt" != x"none needed"
6128 then :
6129 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
6130 fi
6131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6132 /* end confdefs.h. */
6133 #include <sys/types.h>
6134 #ifndef FTYPE
6135 # define FTYPE off_t
6136 #endif
6137 /* Check that FTYPE can represent 2**63 - 1 correctly.
6138 We can't simply define LARGE_FTYPE to be 9223372036854775807,
6139 since some C++ compilers masquerading as C compilers
6140 incorrectly reject 9223372036854775807. */
6141 #define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31))
6142 int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721
6143 && LARGE_FTYPE % 2147483647 == 1)
6144 ? 1 : -1];
6145 int
6146 main (void)
6147 {
6148
6149 ;
6150 return 0;
6151 }
6152 _ACEOF
6153 if ac_fn_c_try_compile "$LINENO"
6154 then :
6155 if test x"$ac_opt" = x"none needed"
6156 then :
6157 # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t.
6158 CPPFLAGS="$CPPFLAGS -DFTYPE=ino_t"
6159 if ac_fn_c_try_compile "$LINENO"
6160 then :
6161
6162 else case e in #(
6163 e) CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=64"
6164 if ac_fn_c_try_compile "$LINENO"
6165 then :
6166 ac_opt='-D_FILE_OFFSET_BITS=64'
6167 fi
6168 rm -f core conftest.err conftest.$ac_objext conftest.beam ;;
6169 esac
6170 fi
6171 rm -f core conftest.err conftest.$ac_objext conftest.beam
6172 fi
6173 ac_cv_sys_largefile_opts=$ac_opt
6174 ac_opt_found=yes
6175 fi
6176 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6177 test $ac_opt_found = no || break
6178 done
6179 CPPFLAGS=$ac_save_CPPFLAGS
6180
6181 test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;;
6182 esac
6183 fi
6184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5
6185 printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; }
6186
6187 ac_have_largefile=yes
6188 case $ac_cv_sys_largefile_opts in #(
6189 "none needed") :
6190 ;; #(
6191 "supported through gnulib") :
6192 ;; #(
6193 "support not detected") :
6194 ac_have_largefile=no ;; #(
6195 "-D_FILE_OFFSET_BITS=64") :
6196
6197 printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
6198 ;; #(
6199 "-D_LARGE_FILES=1") :
6200
6201 printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h
6202 ;; #(
6203 *) :
6204 as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;;
6205 esac
6206
6207 if test "$enable_year2038" != no
6208 then :
6209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CPPFLAGS option for timestamps after 2038" >&5
6210 printf %s "checking for $CPPFLAGS option for timestamps after 2038... " >&6; }
6211 if test ${ac_cv_sys_year2038_opts+y}
6212 then :
6213 printf %s "(cached) " >&6
6214 else case e in #(
6215 e) ac_save_CPPFLAGS="$CPPFLAGS"
6216 ac_opt_found=no
6217 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
6218 if test x"$ac_opt" != x"none needed"
6219 then :
6220 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
6221 fi
6222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6223 /* end confdefs.h. */
6224
6225 #include <time.h>
6226 /* Check that time_t can represent 2**32 - 1 correctly. */
6227 #define LARGE_TIME_T \\
6228 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
6229 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
6230 && LARGE_TIME_T % 65537 == 0)
6231 ? 1 : -1];
6232
6233 int
6234 main (void)
6235 {
6236
6237 ;
6238 return 0;
6239 }
6240 _ACEOF
6241 if ac_fn_c_try_compile "$LINENO"
6242 then :
6243 ac_cv_sys_year2038_opts="$ac_opt"
6244 ac_opt_found=yes
6245 fi
6246 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6247 test $ac_opt_found = no || break
6248 done
6249 CPPFLAGS="$ac_save_CPPFLAGS"
6250 test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;;
6251 esac
6252 fi
6253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5
6254 printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; }
6255
6256 ac_have_year2038=yes
6257 case $ac_cv_sys_year2038_opts in #(
6258 "none needed") :
6259 ;; #(
6260 "support not detected") :
6261 ac_have_year2038=no ;; #(
6262 "-D_TIME_BITS=64") :
6263
6264 printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h
6265 ;; #(
6266 "-D__MINGW_USE_VC2005_COMPAT") :
6267
6268 printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h
6269 ;; #(
6270 "-U_USE_32_BIT_TIME_T"*) :
6271 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
6272 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
6273 as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It
6274 will stop working after mid-January 2038. Remove
6275 _USE_32BIT_TIME_T from the compiler flags.
6276 See 'config.log' for more details" "$LINENO" 5; } ;; #(
6277 *) :
6278 as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;;
6279 esac
6280
6281 fi
6282
6283 fi
6284
6285
6286 # Make sure we can run config.sub.
6287 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
6288 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
6289
6290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6291 printf %s "checking build system type... " >&6; }
6292 if test ${ac_cv_build+y}
6293 then :
6294 printf %s "(cached) " >&6
6295 else case e in #(
6296 e) ac_build_alias=$build_alias
6297 test "x$ac_build_alias" = x &&
6298 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
6299 test "x$ac_build_alias" = x &&
6300 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6301 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
6302 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
6303 ;;
6304 esac
6305 fi
6306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6307 printf "%s\n" "$ac_cv_build" >&6; }
6308 case $ac_cv_build in
6309 *-*-*) ;;
6310 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6311 esac
6312 build=$ac_cv_build
6313 ac_save_IFS=$IFS; IFS='-'
6314 set x $ac_cv_build
6315 shift
6316 build_cpu=$1
6317 build_vendor=$2
6318 shift; shift
6319 # Remember, the first character of IFS is used to create $*,
6320 # except with old shells:
6321 build_os=$*
6322 IFS=$ac_save_IFS
6323 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6324
6325
6326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6327 printf %s "checking host system type... " >&6; }
6328 if test ${ac_cv_host+y}
6329 then :
6330 printf %s "(cached) " >&6
6331 else case e in #(
6332 e) if test "x$host_alias" = x; then
6333 ac_cv_host=$ac_cv_build
6334 else
6335 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
6336 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
6337 fi
6338 ;;
6339 esac
6340 fi
6341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6342 printf "%s\n" "$ac_cv_host" >&6; }
6343 case $ac_cv_host in
6344 *-*-*) ;;
6345 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6346 esac
6347 host=$ac_cv_host
6348 ac_save_IFS=$IFS; IFS='-'
6349 set x $ac_cv_host
6350 shift
6351 host_cpu=$1
6352 host_vendor=$2
6353 shift; shift
6354 # Remember, the first character of IFS is used to create $*,
6355 # except with old shells:
6356 host_os=$*
6357 IFS=$ac_save_IFS
6358 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6359
6360
6361
6362 case `pwd` in
6363 *\ * | *\ *)
6364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6365 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6366 esac
6367
6368
6369
6370 macro_version='2.5.4'
6371 macro_revision='2.5.4'
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386 ltmain=$ac_aux_dir/ltmain.sh
6387
6388 # Backslashify metacharacters that are still active within
6389 # double-quoted strings.
6390 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6391
6392 # Same as above, but do not quote variable references.
6393 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6394
6395 # Sed substitution to delay expansion of an escaped shell variable in a
6396 # double_quote_subst'ed string.
6397 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6398
6399 # Sed substitution to delay expansion of an escaped single quote.
6400 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6401
6402 # Sed substitution to avoid accidental globbing in evaled expressions
6403 no_glob_subst='s/\*/\\\*/g'
6404
6405 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6406 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6407 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6408
6409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6410 printf %s "checking how to print strings... " >&6; }
6411 # Test print first, because it will be a builtin if present.
6412 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6413 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6414 ECHO='print -r --'
6415 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6416 ECHO='printf %s\n'
6417 else
6418 # Use this function as a fallback that always works.
6419 func_fallback_echo ()
6420 {
6421 eval 'cat <<_LTECHO_EOF
6422 $1
6423 _LTECHO_EOF'
6424 }
6425 ECHO='func_fallback_echo'
6426 fi
6427
6428 # func_echo_all arg...
6429 # Invoke $ECHO with all args, space-separated.
6430 func_echo_all ()
6431 {
6432 $ECHO ""
6433 }
6434
6435 case $ECHO in
6436 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6437 printf "%s\n" "printf" >&6; } ;;
6438 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6439 printf "%s\n" "print -r" >&6; } ;;
6440 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6441 printf "%s\n" "cat" >&6; } ;;
6442 esac
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6458 printf %s "checking for a sed that does not truncate output... " >&6; }
6459 if test ${ac_cv_path_SED+y}
6460 then :
6461 printf %s "(cached) " >&6
6462 else case e in #(
6463 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6464 for ac_i in 1 2 3 4 5 6 7; do
6465 ac_script="$ac_script$as_nl$ac_script"
6466 done
6467 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6468 { ac_script=; unset ac_script;}
6469 if test -z "$SED"; then
6470 ac_path_SED_found=false
6471 # Loop through the user's path and test for each of PROGNAME-LIST
6472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6473 for as_dir in $PATH
6474 do
6475 IFS=$as_save_IFS
6476 case $as_dir in #(((
6477 '') as_dir=./ ;;
6478 */) ;;
6479 *) as_dir=$as_dir/ ;;
6480 esac
6481 for ac_prog in sed gsed
6482 do
6483 for ac_exec_ext in '' $ac_executable_extensions; do
6484 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
6485 as_fn_executable_p "$ac_path_SED" || continue
6486 # Check for GNU ac_path_SED and select it if it is found.
6487 # Check for GNU $ac_path_SED
6488 case `"$ac_path_SED" --version 2>&1` in #(
6489 *GNU*)
6490 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6491 #(
6492 *)
6493 ac_count=0
6494 printf %s 0123456789 >"conftest.in"
6495 while :
6496 do
6497 cat "conftest.in" "conftest.in" >"conftest.tmp"
6498 mv "conftest.tmp" "conftest.in"
6499 cp "conftest.in" "conftest.nl"
6500 printf "%s\n" '' >> "conftest.nl"
6501 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6502 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6503 as_fn_arith $ac_count + 1 && ac_count=$as_val
6504 if test $ac_count -gt ${ac_path_SED_max-0}; then
6505 # Best one so far, save it but keep looking for a better one
6506 ac_cv_path_SED="$ac_path_SED"
6507 ac_path_SED_max=$ac_count
6508 fi
6509 # 10*(2^10) chars as input seems more than enough
6510 test $ac_count -gt 10 && break
6511 done
6512 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6513 esac
6514
6515 $ac_path_SED_found && break 3
6516 done
6517 done
6518 done
6519 IFS=$as_save_IFS
6520 if test -z "$ac_cv_path_SED"; then
6521 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6522 fi
6523 else
6524 ac_cv_path_SED=$SED
6525 fi
6526 ;;
6527 esac
6528 fi
6529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6530 printf "%s\n" "$ac_cv_path_SED" >&6; }
6531 SED="$ac_cv_path_SED"
6532 rm -f conftest.sed
6533
6534 test -z "$SED" && SED=sed
6535 Xsed="$SED -e 1s/^X//"
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6548 printf %s "checking for grep that handles long lines and -e... " >&6; }
6549 if test ${ac_cv_path_GREP+y}
6550 then :
6551 printf %s "(cached) " >&6
6552 else case e in #(
6553 e) if test -z "$GREP"; then
6554 ac_path_GREP_found=false
6555 # Loop through the user's path and test for each of PROGNAME-LIST
6556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6557 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6558 do
6559 IFS=$as_save_IFS
6560 case $as_dir in #(((
6561 '') as_dir=./ ;;
6562 */) ;;
6563 *) as_dir=$as_dir/ ;;
6564 esac
6565 for ac_prog in grep ggrep
6566 do
6567 for ac_exec_ext in '' $ac_executable_extensions; do
6568 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
6569 as_fn_executable_p "$ac_path_GREP" || continue
6570 # Check for GNU ac_path_GREP and select it if it is found.
6571 # Check for GNU $ac_path_GREP
6572 case `"$ac_path_GREP" --version 2>&1` in #(
6573 *GNU*)
6574 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6575 #(
6576 *)
6577 ac_count=0
6578 printf %s 0123456789 >"conftest.in"
6579 while :
6580 do
6581 cat "conftest.in" "conftest.in" >"conftest.tmp"
6582 mv "conftest.tmp" "conftest.in"
6583 cp "conftest.in" "conftest.nl"
6584 printf "%s\n" 'GREP' >> "conftest.nl"
6585 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6586 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6587 as_fn_arith $ac_count + 1 && ac_count=$as_val
6588 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6589 # Best one so far, save it but keep looking for a better one
6590 ac_cv_path_GREP="$ac_path_GREP"
6591 ac_path_GREP_max=$ac_count
6592 fi
6593 # 10*(2^10) chars as input seems more than enough
6594 test $ac_count -gt 10 && break
6595 done
6596 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6597 esac
6598
6599 $ac_path_GREP_found && break 3
6600 done
6601 done
6602 done
6603 IFS=$as_save_IFS
6604 if test -z "$ac_cv_path_GREP"; then
6605 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6606 fi
6607 else
6608 ac_cv_path_GREP=$GREP
6609 fi
6610 ;;
6611 esac
6612 fi
6613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6614 printf "%s\n" "$ac_cv_path_GREP" >&6; }
6615 GREP="$ac_cv_path_GREP"
6616
6617
6618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6619 printf %s "checking for egrep... " >&6; }
6620 if test ${ac_cv_path_EGREP+y}
6621 then :
6622 printf %s "(cached) " >&6
6623 else case e in #(
6624 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6625 then ac_cv_path_EGREP="$GREP -E"
6626 else
6627 if test -z "$EGREP"; then
6628 ac_path_EGREP_found=false
6629 # Loop through the user's path and test for each of PROGNAME-LIST
6630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6631 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6632 do
6633 IFS=$as_save_IFS
6634 case $as_dir in #(((
6635 '') as_dir=./ ;;
6636 */) ;;
6637 *) as_dir=$as_dir/ ;;
6638 esac
6639 for ac_prog in egrep
6640 do
6641 for ac_exec_ext in '' $ac_executable_extensions; do
6642 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
6643 as_fn_executable_p "$ac_path_EGREP" || continue
6644 # Check for GNU ac_path_EGREP and select it if it is found.
6645 # Check for GNU $ac_path_EGREP
6646 case `"$ac_path_EGREP" --version 2>&1` in #(
6647 *GNU*)
6648 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6649 #(
6650 *)
6651 ac_count=0
6652 printf %s 0123456789 >"conftest.in"
6653 while :
6654 do
6655 cat "conftest.in" "conftest.in" >"conftest.tmp"
6656 mv "conftest.tmp" "conftest.in"
6657 cp "conftest.in" "conftest.nl"
6658 printf "%s\n" 'EGREP' >> "conftest.nl"
6659 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6660 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6661 as_fn_arith $ac_count + 1 && ac_count=$as_val
6662 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6663 # Best one so far, save it but keep looking for a better one
6664 ac_cv_path_EGREP="$ac_path_EGREP"
6665 ac_path_EGREP_max=$ac_count
6666 fi
6667 # 10*(2^10) chars as input seems more than enough
6668 test $ac_count -gt 10 && break
6669 done
6670 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6671 esac
6672
6673 $ac_path_EGREP_found && break 3
6674 done
6675 done
6676 done
6677 IFS=$as_save_IFS
6678 if test -z "$ac_cv_path_EGREP"; then
6679 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6680 fi
6681 else
6682 ac_cv_path_EGREP=$EGREP
6683 fi
6684
6685 fi ;;
6686 esac
6687 fi
6688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6689 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
6690 EGREP="$ac_cv_path_EGREP"
6691
6692 EGREP_TRADITIONAL=$EGREP
6693 ac_cv_path_EGREP_TRADITIONAL=$EGREP
6694
6695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6696 printf %s "checking for fgrep... " >&6; }
6697 if test ${ac_cv_path_FGREP+y}
6698 then :
6699 printf %s "(cached) " >&6
6700 else case e in #(
6701 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6702 then ac_cv_path_FGREP="$GREP -F"
6703 else
6704 if test -z "$FGREP"; then
6705 ac_path_FGREP_found=false
6706 # Loop through the user's path and test for each of PROGNAME-LIST
6707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6708 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6709 do
6710 IFS=$as_save_IFS
6711 case $as_dir in #(((
6712 '') as_dir=./ ;;
6713 */) ;;
6714 *) as_dir=$as_dir/ ;;
6715 esac
6716 for ac_prog in fgrep
6717 do
6718 for ac_exec_ext in '' $ac_executable_extensions; do
6719 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
6720 as_fn_executable_p "$ac_path_FGREP" || continue
6721 # Check for GNU ac_path_FGREP and select it if it is found.
6722 # Check for GNU $ac_path_FGREP
6723 case `"$ac_path_FGREP" --version 2>&1` in #(
6724 *GNU*)
6725 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6726 #(
6727 *)
6728 ac_count=0
6729 printf %s 0123456789 >"conftest.in"
6730 while :
6731 do
6732 cat "conftest.in" "conftest.in" >"conftest.tmp"
6733 mv "conftest.tmp" "conftest.in"
6734 cp "conftest.in" "conftest.nl"
6735 printf "%s\n" 'FGREP' >> "conftest.nl"
6736 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6737 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6738 as_fn_arith $ac_count + 1 && ac_count=$as_val
6739 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6740 # Best one so far, save it but keep looking for a better one
6741 ac_cv_path_FGREP="$ac_path_FGREP"
6742 ac_path_FGREP_max=$ac_count
6743 fi
6744 # 10*(2^10) chars as input seems more than enough
6745 test $ac_count -gt 10 && break
6746 done
6747 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6748 esac
6749
6750 $ac_path_FGREP_found && break 3
6751 done
6752 done
6753 done
6754 IFS=$as_save_IFS
6755 if test -z "$ac_cv_path_FGREP"; then
6756 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6757 fi
6758 else
6759 ac_cv_path_FGREP=$FGREP
6760 fi
6761
6762 fi ;;
6763 esac
6764 fi
6765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6766 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
6767 FGREP="$ac_cv_path_FGREP"
6768
6769
6770 test -z "$GREP" && GREP=grep
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790 # Check whether --with-gnu-ld was given.
6791 if test ${with_gnu_ld+y}
6792 then :
6793 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6794 else case e in #(
6795 e) with_gnu_ld=no ;;
6796 esac
6797 fi
6798
6799 ac_prog=ld
6800 if test yes = "$GCC"; then
6801 # Check if gcc -print-prog-name=ld gives a path.
6802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6803 printf %s "checking for ld used by $CC... " >&6; }
6804 case $host in
6805 *-*-mingw* | *-*-windows*)
6806 # gcc leaves a trailing carriage return, which upsets mingw
6807 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6808 *)
6809 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6810 esac
6811 case $ac_prog in
6812 # Accept absolute paths.
6813 [\\/]* | ?:[\\/]*)
6814 re_direlt='/[^/][^/]*/\.\./'
6815 # Canonicalize the pathname of ld
6816 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6817 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6818 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6819 done
6820 test -z "$LD" && LD=$ac_prog
6821 ;;
6822 "")
6823 # If it fails, then pretend we aren't using GCC.
6824 ac_prog=ld
6825 ;;
6826 *)
6827 # If it is relative, then search for the first ld in PATH.
6828 with_gnu_ld=unknown
6829 ;;
6830 esac
6831 elif test yes = "$with_gnu_ld"; then
6832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6833 printf %s "checking for GNU ld... " >&6; }
6834 else
6835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6836 printf %s "checking for non-GNU ld... " >&6; }
6837 fi
6838 if test ${lt_cv_path_LD+y}
6839 then :
6840 printf %s "(cached) " >&6
6841 else case e in #(
6842 e) if test -z "$LD"; then
6843 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6844 for ac_dir in $PATH; do
6845 IFS=$lt_save_ifs
6846 test -z "$ac_dir" && ac_dir=.
6847 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6848 lt_cv_path_LD=$ac_dir/$ac_prog
6849 # Check to see if the program is GNU ld. I'd rather use --version,
6850 # but apparently some variants of GNU ld only accept -v.
6851 # Break only if it was the GNU/non-GNU ld that we prefer.
6852 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6853 *GNU* | *'with BFD'*)
6854 test no != "$with_gnu_ld" && break
6855 ;;
6856 *)
6857 test yes != "$with_gnu_ld" && break
6858 ;;
6859 esac
6860 fi
6861 done
6862 IFS=$lt_save_ifs
6863 else
6864 lt_cv_path_LD=$LD # Let the user override the test with a path.
6865 fi ;;
6866 esac
6867 fi
6868
6869 LD=$lt_cv_path_LD
6870 if test -n "$LD"; then
6871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6872 printf "%s\n" "$LD" >&6; }
6873 else
6874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6875 printf "%s\n" "no" >&6; }
6876 fi
6877 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6879 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
6880 if test ${lt_cv_prog_gnu_ld+y}
6881 then :
6882 printf %s "(cached) " >&6
6883 else case e in #(
6884 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
6885 case `$LD -v 2>&1 </dev/null` in
6886 *GNU* | *'with BFD'*)
6887 lt_cv_prog_gnu_ld=yes
6888 ;;
6889 *)
6890 lt_cv_prog_gnu_ld=no
6891 ;;
6892 esac ;;
6893 esac
6894 fi
6895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6896 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
6897 with_gnu_ld=$lt_cv_prog_gnu_ld
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6908 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6909 if test ${lt_cv_path_NM+y}
6910 then :
6911 printf %s "(cached) " >&6
6912 else case e in #(
6913 e) if test -n "$NM"; then
6914 # Let the user override the test.
6915 lt_cv_path_NM=$NM
6916 else
6917 lt_nm_to_check=${ac_tool_prefix}nm
6918 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6919 lt_nm_to_check="$lt_nm_to_check nm"
6920 fi
6921 for lt_tmp_nm in $lt_nm_to_check; do
6922 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6923 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6924 IFS=$lt_save_ifs
6925 test -z "$ac_dir" && ac_dir=.
6926 tmp_nm=$ac_dir/$lt_tmp_nm
6927 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6928 # Check to see if the nm accepts a BSD-compat flag.
6929 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6930 # nm: unknown option "B" ignored
6931 # Tru64's nm complains that /dev/null is an invalid object file
6932 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6933 case $build_os in
6934 mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
6935 *) lt_bad_file=/dev/null ;;
6936 esac
6937 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
6938 *$lt_bad_file* | *'Invalid file or object type'*)
6939 lt_cv_path_NM="$tmp_nm -B"
6940 break 2
6941 ;;
6942 *)
6943 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
6944 */dev/null*)
6945 lt_cv_path_NM="$tmp_nm -p"
6946 break 2
6947 ;;
6948 *)
6949 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6950 continue # so that we can try to find one that supports BSD flags
6951 ;;
6952 esac
6953 ;;
6954 esac
6955 fi
6956 done
6957 IFS=$lt_save_ifs
6958 done
6959 : ${lt_cv_path_NM=no}
6960 fi ;;
6961 esac
6962 fi
6963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6964 printf "%s\n" "$lt_cv_path_NM" >&6; }
6965 if test no != "$lt_cv_path_NM"; then
6966 NM=$lt_cv_path_NM
6967 else
6968 # Didn't find any BSD compatible name lister, look for dumpbin.
6969 if test -n "$DUMPBIN"; then :
6970 # Let the user override the test.
6971 else
6972 if test -n "$ac_tool_prefix"; then
6973 for ac_prog in dumpbin "link -dump"
6974 do
6975 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6976 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6978 printf %s "checking for $ac_word... " >&6; }
6979 if test ${ac_cv_prog_DUMPBIN+y}
6980 then :
6981 printf %s "(cached) " >&6
6982 else case e in #(
6983 e) if test -n "$DUMPBIN"; then
6984 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6985 else
6986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6987 for as_dir in $PATH
6988 do
6989 IFS=$as_save_IFS
6990 case $as_dir in #(((
6991 '') as_dir=./ ;;
6992 */) ;;
6993 *) as_dir=$as_dir/ ;;
6994 esac
6995 for ac_exec_ext in '' $ac_executable_extensions; do
6996 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6997 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6998 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6999 break 2
7000 fi
7001 done
7002 done
7003 IFS=$as_save_IFS
7004
7005 fi ;;
7006 esac
7007 fi
7008 DUMPBIN=$ac_cv_prog_DUMPBIN
7009 if test -n "$DUMPBIN"; then
7010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7011 printf "%s\n" "$DUMPBIN" >&6; }
7012 else
7013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7014 printf "%s\n" "no" >&6; }
7015 fi
7016
7017
7018 test -n "$DUMPBIN" && break
7019 done
7020 fi
7021 if test -z "$DUMPBIN"; then
7022 ac_ct_DUMPBIN=$DUMPBIN
7023 for ac_prog in dumpbin "link -dump"
7024 do
7025 # Extract the first word of "$ac_prog", so it can be a program name with args.
7026 set dummy $ac_prog; ac_word=$2
7027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7028 printf %s "checking for $ac_word... " >&6; }
7029 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
7030 then :
7031 printf %s "(cached) " >&6
7032 else case e in #(
7033 e) if test -n "$ac_ct_DUMPBIN"; then
7034 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7035 else
7036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7037 for as_dir in $PATH
7038 do
7039 IFS=$as_save_IFS
7040 case $as_dir in #(((
7041 '') as_dir=./ ;;
7042 */) ;;
7043 *) as_dir=$as_dir/ ;;
7044 esac
7045 for ac_exec_ext in '' $ac_executable_extensions; do
7046 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7047 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7048 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7049 break 2
7050 fi
7051 done
7052 done
7053 IFS=$as_save_IFS
7054
7055 fi ;;
7056 esac
7057 fi
7058 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7059 if test -n "$ac_ct_DUMPBIN"; then
7060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7061 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
7062 else
7063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7064 printf "%s\n" "no" >&6; }
7065 fi
7066
7067
7068 test -n "$ac_ct_DUMPBIN" && break
7069 done
7070
7071 if test "x$ac_ct_DUMPBIN" = x; then
7072 DUMPBIN=":"
7073 else
7074 case $cross_compiling:$ac_tool_warned in
7075 yes:)
7076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7077 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7078 ac_tool_warned=yes ;;
7079 esac
7080 DUMPBIN=$ac_ct_DUMPBIN
7081 fi
7082 fi
7083
7084 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
7085 *COFF*)
7086 DUMPBIN="$DUMPBIN -symbols -headers"
7087 ;;
7088 *)
7089 DUMPBIN=:
7090 ;;
7091 esac
7092 fi
7093
7094 if test : != "$DUMPBIN"; then
7095 NM=$DUMPBIN
7096 fi
7097 fi
7098 test -z "$NM" && NM=nm
7099
7100
7101
7102
7103
7104
7105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7106 printf %s "checking the name lister ($NM) interface... " >&6; }
7107 if test ${lt_cv_nm_interface+y}
7108 then :
7109 printf %s "(cached) " >&6
7110 else case e in #(
7111 e) lt_cv_nm_interface="BSD nm"
7112 echo "int some_variable = 0;" > conftest.$ac_ext
7113 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7114 (eval "$ac_compile" 2>conftest.err)
7115 cat conftest.err >&5
7116 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7117 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7118 cat conftest.err >&5
7119 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7120 cat conftest.out >&5
7121 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7122 lt_cv_nm_interface="MS dumpbin"
7123 fi
7124 rm -f conftest* ;;
7125 esac
7126 fi
7127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7128 printf "%s\n" "$lt_cv_nm_interface" >&6; }
7129
7130 # find the maximum length of command line arguments
7131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7132 printf %s "checking the maximum length of command line arguments... " >&6; }
7133 if test ${lt_cv_sys_max_cmd_len+y}
7134 then :
7135 printf %s "(cached) " >&6
7136 else case e in #(
7137 e) i=0
7138 teststring=ABCD
7139
7140 case $build_os in
7141 msdosdjgpp*)
7142 # On DJGPP, this test can blow up pretty badly due to problems in libc
7143 # (any single argument exceeding 2000 bytes causes a buffer overrun
7144 # during glob expansion). Even if it were fixed, the result of this
7145 # check would be larger than it should be.
7146 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7147 ;;
7148
7149 gnu* | ironclad*)
7150 # Under GNU Hurd and Ironclad, this test is not required because there
7151 # is no limit to the length of command line arguments.
7152 # Libtool will interpret -1 as no limit whatsoever
7153 lt_cv_sys_max_cmd_len=-1;
7154 ;;
7155
7156 cygwin* | mingw* | windows* | cegcc*)
7157 # On Win9x/ME, this test blows up -- it succeeds, but takes
7158 # about 5 minutes as the teststring grows exponentially.
7159 # Worse, since 9x/ME are not pre-emptively multitasking,
7160 # you end up with a "frozen" computer, even though with patience
7161 # the test eventually succeeds (with a max line length of 256k).
7162 # Instead, let's just punt: use the minimum linelength reported by
7163 # all of the supported platforms: 8192 (on NT/2K/XP).
7164 lt_cv_sys_max_cmd_len=8192;
7165 ;;
7166
7167 mint*)
7168 # On MiNT this can take a long time and run out of memory.
7169 lt_cv_sys_max_cmd_len=8192;
7170 ;;
7171
7172 amigaos*)
7173 # On AmigaOS with pdksh, this test takes hours, literally.
7174 # So we just punt and use a minimum line length of 8192.
7175 lt_cv_sys_max_cmd_len=8192;
7176 ;;
7177
7178 darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
7179 # This has been around since 386BSD, at least. Likely further.
7180 if test -x /sbin/sysctl; then
7181 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7182 elif test -x /usr/sbin/sysctl; then
7183 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7184 else
7185 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7186 fi
7187 # And add a safety zone
7188 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7189 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7190 ;;
7191
7192 interix*)
7193 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7194 lt_cv_sys_max_cmd_len=196608
7195 ;;
7196
7197 os2*)
7198 # The test takes a long time on OS/2.
7199 lt_cv_sys_max_cmd_len=8192
7200 ;;
7201
7202 osf*)
7203 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7204 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7205 # nice to cause kernel panics so lets avoid the loop below.
7206 # First set a reasonable default.
7207 lt_cv_sys_max_cmd_len=16384
7208 #
7209 if test -x /sbin/sysconfig; then
7210 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7211 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7212 esac
7213 fi
7214 ;;
7215 sco3.2v5*)
7216 lt_cv_sys_max_cmd_len=102400
7217 ;;
7218 sysv5* | sco5v6* | sysv4.2uw2*)
7219 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7220 if test -n "$kargmax"; then
7221 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
7222 else
7223 lt_cv_sys_max_cmd_len=32768
7224 fi
7225 ;;
7226 *)
7227 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7228 if test -n "$lt_cv_sys_max_cmd_len" && \
7229 test undefined != "$lt_cv_sys_max_cmd_len"; then
7230 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7231 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7232 else
7233 # Make teststring a little bigger before we do anything with it.
7234 # a 1K string should be a reasonable start.
7235 for i in 1 2 3 4 5 6 7 8; do
7236 teststring=$teststring$teststring
7237 done
7238 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7239 # If test is not a shell built-in, we'll probably end up computing a
7240 # maximum length that is only half of the actual maximum length, but
7241 # we can't tell.
7242 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
7243 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7244 test 17 != "$i" # 1/2 MB should be enough
7245 do
7246 i=`expr $i + 1`
7247 teststring=$teststring$teststring
7248 done
7249 # Only check the string length outside the loop.
7250 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7251 teststring=
7252 # Add a significant safety factor because C++ compilers can tack on
7253 # massive amounts of additional arguments before passing them to the
7254 # linker. It appears as though 1/2 is a usable value.
7255 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7256 fi
7257 ;;
7258 esac
7259 ;;
7260 esac
7261 fi
7262
7263 if test -n "$lt_cv_sys_max_cmd_len"; then
7264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7265 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
7266 else
7267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
7268 printf "%s\n" "none" >&6; }
7269 fi
7270 max_cmd_len=$lt_cv_sys_max_cmd_len
7271
7272
7273
7274
7275
7276
7277 : ${CP="cp -f"}
7278 : ${MV="mv -f"}
7279 : ${RM="rm -f"}
7280
7281 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7282 lt_unset=unset
7283 else
7284 lt_unset=false
7285 fi
7286
7287
7288
7289
7290
7291 # test EBCDIC or ASCII
7292 case `echo X|tr X '\101'` in
7293 A) # ASCII based system
7294 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7295 lt_SP2NL='tr \040 \012'
7296 lt_NL2SP='tr \015\012 \040\040'
7297 ;;
7298 *) # EBCDIC based system
7299 lt_SP2NL='tr \100 \n'
7300 lt_NL2SP='tr \r\n \100\100'
7301 ;;
7302 esac
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7313 printf %s "checking how to convert $build file names to $host format... " >&6; }
7314 if test ${lt_cv_to_host_file_cmd+y}
7315 then :
7316 printf %s "(cached) " >&6
7317 else case e in #(
7318 e) case $host in
7319 *-*-mingw* )
7320 case $build in
7321 *-*-mingw* | *-*-windows* ) # actually msys
7322 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7323 ;;
7324 *-*-cygwin* )
7325 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7326 ;;
7327 * ) # otherwise, assume *nix
7328 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7329 ;;
7330 esac
7331 ;;
7332 *-*-cygwin* )
7333 case $build in
7334 *-*-mingw* | *-*-windows* ) # actually msys
7335 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7336 ;;
7337 *-*-cygwin* )
7338 lt_cv_to_host_file_cmd=func_convert_file_noop
7339 ;;
7340 * ) # otherwise, assume *nix
7341 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7342 ;;
7343 esac
7344 ;;
7345 * ) # unhandled hosts (and "normal" native builds)
7346 lt_cv_to_host_file_cmd=func_convert_file_noop
7347 ;;
7348 esac
7349 ;;
7350 esac
7351 fi
7352
7353 to_host_file_cmd=$lt_cv_to_host_file_cmd
7354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7355 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
7356
7357
7358
7359
7360
7361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7362 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
7363 if test ${lt_cv_to_tool_file_cmd+y}
7364 then :
7365 printf %s "(cached) " >&6
7366 else case e in #(
7367 e) #assume ordinary cross tools, or native build.
7368 lt_cv_to_tool_file_cmd=func_convert_file_noop
7369 case $host in
7370 *-*-mingw* | *-*-windows* )
7371 case $build in
7372 *-*-mingw* | *-*-windows* ) # actually msys
7373 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7374 ;;
7375 esac
7376 ;;
7377 esac
7378 ;;
7379 esac
7380 fi
7381
7382 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7384 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
7385
7386
7387
7388
7389
7390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7391 printf %s "checking for $LD option to reload object files... " >&6; }
7392 if test ${lt_cv_ld_reload_flag+y}
7393 then :
7394 printf %s "(cached) " >&6
7395 else case e in #(
7396 e) lt_cv_ld_reload_flag='-r' ;;
7397 esac
7398 fi
7399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7400 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
7401 reload_flag=$lt_cv_ld_reload_flag
7402 case $reload_flag in
7403 "" | " "*) ;;
7404 *) reload_flag=" $reload_flag" ;;
7405 esac
7406 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7407 case $host_os in
7408 cygwin* | mingw* | windows* | pw32* | cegcc*)
7409 if test yes != "$GCC"; then
7410 reload_cmds=false
7411 fi
7412 ;;
7413 darwin*)
7414 if test yes = "$GCC"; then
7415 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
7416 else
7417 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7418 fi
7419 ;;
7420 esac
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430 # Extract the first word of "file", so it can be a program name with args.
7431 set dummy file; ac_word=$2
7432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7433 printf %s "checking for $ac_word... " >&6; }
7434 if test ${ac_cv_prog_FILECMD+y}
7435 then :
7436 printf %s "(cached) " >&6
7437 else case e in #(
7438 e) if test -n "$FILECMD"; then
7439 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
7440 else
7441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7442 for as_dir in $PATH
7443 do
7444 IFS=$as_save_IFS
7445 case $as_dir in #(((
7446 '') as_dir=./ ;;
7447 */) ;;
7448 *) as_dir=$as_dir/ ;;
7449 esac
7450 for ac_exec_ext in '' $ac_executable_extensions; do
7451 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7452 ac_cv_prog_FILECMD="file"
7453 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7454 break 2
7455 fi
7456 done
7457 done
7458 IFS=$as_save_IFS
7459
7460 test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":"
7461 fi ;;
7462 esac
7463 fi
7464 FILECMD=$ac_cv_prog_FILECMD
7465 if test -n "$FILECMD"; then
7466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
7467 printf "%s\n" "$FILECMD" >&6; }
7468 else
7469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7470 printf "%s\n" "no" >&6; }
7471 fi
7472
7473
7474
7475
7476
7477
7478
7479
7480 if test -n "$ac_tool_prefix"; then
7481 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7482 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7484 printf %s "checking for $ac_word... " >&6; }
7485 if test ${ac_cv_prog_OBJDUMP+y}
7486 then :
7487 printf %s "(cached) " >&6
7488 else case e in #(
7489 e) if test -n "$OBJDUMP"; then
7490 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7491 else
7492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7493 for as_dir in $PATH
7494 do
7495 IFS=$as_save_IFS
7496 case $as_dir in #(((
7497 '') as_dir=./ ;;
7498 */) ;;
7499 *) as_dir=$as_dir/ ;;
7500 esac
7501 for ac_exec_ext in '' $ac_executable_extensions; do
7502 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7503 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7504 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7505 break 2
7506 fi
7507 done
7508 done
7509 IFS=$as_save_IFS
7510
7511 fi ;;
7512 esac
7513 fi
7514 OBJDUMP=$ac_cv_prog_OBJDUMP
7515 if test -n "$OBJDUMP"; then
7516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7517 printf "%s\n" "$OBJDUMP" >&6; }
7518 else
7519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7520 printf "%s\n" "no" >&6; }
7521 fi
7522
7523
7524 fi
7525 if test -z "$ac_cv_prog_OBJDUMP"; then
7526 ac_ct_OBJDUMP=$OBJDUMP
7527 # Extract the first word of "objdump", so it can be a program name with args.
7528 set dummy objdump; ac_word=$2
7529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7530 printf %s "checking for $ac_word... " >&6; }
7531 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
7532 then :
7533 printf %s "(cached) " >&6
7534 else case e in #(
7535 e) if test -n "$ac_ct_OBJDUMP"; then
7536 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7537 else
7538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7539 for as_dir in $PATH
7540 do
7541 IFS=$as_save_IFS
7542 case $as_dir in #(((
7543 '') as_dir=./ ;;
7544 */) ;;
7545 *) as_dir=$as_dir/ ;;
7546 esac
7547 for ac_exec_ext in '' $ac_executable_extensions; do
7548 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7549 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7550 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7551 break 2
7552 fi
7553 done
7554 done
7555 IFS=$as_save_IFS
7556
7557 fi ;;
7558 esac
7559 fi
7560 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7561 if test -n "$ac_ct_OBJDUMP"; then
7562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7563 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
7564 else
7565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7566 printf "%s\n" "no" >&6; }
7567 fi
7568
7569 if test "x$ac_ct_OBJDUMP" = x; then
7570 OBJDUMP="false"
7571 else
7572 case $cross_compiling:$ac_tool_warned in
7573 yes:)
7574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7575 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7576 ac_tool_warned=yes ;;
7577 esac
7578 OBJDUMP=$ac_ct_OBJDUMP
7579 fi
7580 else
7581 OBJDUMP="$ac_cv_prog_OBJDUMP"
7582 fi
7583
7584 test -z "$OBJDUMP" && OBJDUMP=objdump
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7595 printf %s "checking how to recognize dependent libraries... " >&6; }
7596 if test ${lt_cv_deplibs_check_method+y}
7597 then :
7598 printf %s "(cached) " >&6
7599 else case e in #(
7600 e) lt_cv_file_magic_cmd='$MAGIC_CMD'
7601 lt_cv_file_magic_test_file=
7602 lt_cv_deplibs_check_method='unknown'
7603 # Need to set the preceding variable on all platforms that support
7604 # interlibrary dependencies.
7605 # 'none' -- dependencies not supported.
7606 # 'unknown' -- same as none, but documents that we really don't know.
7607 # 'pass_all' -- all dependencies passed with no checks.
7608 # 'file_magic [[regex]]' -- check by looking for files in library path
7609 # that responds to the $file_magic_cmd with a given extended regex.
7610 # If you have 'file' or equivalent on your system and you're not sure
7611 # whether 'pass_all' will *always* work, you probably want this one.
7612
7613 case $host_os in
7614 aix[4-9]*)
7615 lt_cv_deplibs_check_method=pass_all
7616 ;;
7617
7618 beos*)
7619 lt_cv_deplibs_check_method=pass_all
7620 ;;
7621
7622 bsdi[45]*)
7623 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7624 lt_cv_file_magic_cmd='$FILECMD -L'
7625 lt_cv_file_magic_test_file=/shlib/libc.so
7626 ;;
7627
7628 cygwin*)
7629 # func_win32_libid is a shell function defined in ltmain.sh
7630 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7631 lt_cv_file_magic_cmd='func_win32_libid'
7632 ;;
7633
7634 mingw* | windows* | pw32*)
7635 # Base MSYS/MinGW do not provide the 'file' command needed by
7636 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7637 # unless we find 'file', for example because we are cross-compiling.
7638 if ( file / ) >/dev/null 2>&1; then
7639 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7640 lt_cv_file_magic_cmd='func_win32_libid'
7641 else
7642 # Keep this pattern in sync with the one in func_win32_libid.
7643 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
7644 lt_cv_file_magic_cmd='$OBJDUMP -f'
7645 fi
7646 ;;
7647
7648 cegcc*)
7649 # use the weaker test based on 'objdump'. See mingw*.
7650 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7651 lt_cv_file_magic_cmd='$OBJDUMP -f'
7652 ;;
7653
7654 darwin* | rhapsody*)
7655 lt_cv_deplibs_check_method=pass_all
7656 ;;
7657
7658 freebsd* | dragonfly* | midnightbsd*)
7659 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7660 case $host_cpu in
7661 i*86 )
7662 # Not sure whether the presence of OpenBSD here was a mistake.
7663 # Let's accept both of them until this is cleared up.
7664 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7665 lt_cv_file_magic_cmd=$FILECMD
7666 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7667 ;;
7668 esac
7669 else
7670 lt_cv_deplibs_check_method=pass_all
7671 fi
7672 ;;
7673
7674 haiku*)
7675 lt_cv_deplibs_check_method=pass_all
7676 ;;
7677
7678 hpux10.20* | hpux11*)
7679 lt_cv_file_magic_cmd=$FILECMD
7680 case $host_cpu in
7681 ia64*)
7682 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7683 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7684 ;;
7685 hppa*64*)
7686 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]'
7687 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7688 ;;
7689 *)
7690 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7691 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7692 ;;
7693 esac
7694 ;;
7695
7696 interix[3-9]*)
7697 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7698 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7699 ;;
7700
7701 irix5* | irix6* | nonstopux*)
7702 case $LD in
7703 *-32|*"-32 ") libmagic=32-bit;;
7704 *-n32|*"-n32 ") libmagic=N32;;
7705 *-64|*"-64 ") libmagic=64-bit;;
7706 *) libmagic=never-match;;
7707 esac
7708 lt_cv_deplibs_check_method=pass_all
7709 ;;
7710
7711 # This must be glibc/ELF.
7712 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7713 lt_cv_deplibs_check_method=pass_all
7714 ;;
7715
7716 *-mlibc)
7717 lt_cv_deplibs_check_method=pass_all
7718 ;;
7719
7720 netbsd* | netbsdelf*-gnu)
7721 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7722 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7723 else
7724 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7725 fi
7726 ;;
7727
7728 newos6*)
7729 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7730 lt_cv_file_magic_cmd=$FILECMD
7731 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7732 ;;
7733
7734 *nto* | *qnx*)
7735 lt_cv_deplibs_check_method=pass_all
7736 ;;
7737
7738 openbsd*)
7739 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7740 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7741 else
7742 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7743 fi
7744 ;;
7745
7746 osf3* | osf4* | osf5*)
7747 lt_cv_deplibs_check_method=pass_all
7748 ;;
7749
7750 rdos*)
7751 lt_cv_deplibs_check_method=pass_all
7752 ;;
7753
7754 serenity*)
7755 lt_cv_deplibs_check_method=pass_all
7756 ;;
7757
7758 solaris*)
7759 lt_cv_deplibs_check_method=pass_all
7760 ;;
7761
7762 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7763 lt_cv_deplibs_check_method=pass_all
7764 ;;
7765
7766 sysv4 | sysv4.3*)
7767 case $host_vendor in
7768 motorola)
7769 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]'
7770 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7771 ;;
7772 ncr)
7773 lt_cv_deplibs_check_method=pass_all
7774 ;;
7775 sequent)
7776 lt_cv_file_magic_cmd='/bin/file'
7777 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7778 ;;
7779 sni)
7780 lt_cv_file_magic_cmd='/bin/file'
7781 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7782 lt_cv_file_magic_test_file=/lib/libc.so
7783 ;;
7784 siemens)
7785 lt_cv_deplibs_check_method=pass_all
7786 ;;
7787 pc)
7788 lt_cv_deplibs_check_method=pass_all
7789 ;;
7790 esac
7791 ;;
7792
7793 tpf*)
7794 lt_cv_deplibs_check_method=pass_all
7795 ;;
7796 os2*)
7797 lt_cv_deplibs_check_method=pass_all
7798 ;;
7799 esac
7800 ;;
7801 esac
7802 fi
7803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7804 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
7805
7806 file_magic_glob=
7807 want_nocaseglob=no
7808 if test "$build" = "$host"; then
7809 case $host_os in
7810 mingw* | windows* | pw32*)
7811 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7812 want_nocaseglob=yes
7813 else
7814 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7815 fi
7816 ;;
7817 esac
7818 fi
7819
7820 file_magic_cmd=$lt_cv_file_magic_cmd
7821 deplibs_check_method=$lt_cv_deplibs_check_method
7822 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845 if test -n "$ac_tool_prefix"; then
7846 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7847 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7849 printf %s "checking for $ac_word... " >&6; }
7850 if test ${ac_cv_prog_DLLTOOL+y}
7851 then :
7852 printf %s "(cached) " >&6
7853 else case e in #(
7854 e) if test -n "$DLLTOOL"; then
7855 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7856 else
7857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7858 for as_dir in $PATH
7859 do
7860 IFS=$as_save_IFS
7861 case $as_dir in #(((
7862 '') as_dir=./ ;;
7863 */) ;;
7864 *) as_dir=$as_dir/ ;;
7865 esac
7866 for ac_exec_ext in '' $ac_executable_extensions; do
7867 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7868 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7869 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7870 break 2
7871 fi
7872 done
7873 done
7874 IFS=$as_save_IFS
7875
7876 fi ;;
7877 esac
7878 fi
7879 DLLTOOL=$ac_cv_prog_DLLTOOL
7880 if test -n "$DLLTOOL"; then
7881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7882 printf "%s\n" "$DLLTOOL" >&6; }
7883 else
7884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7885 printf "%s\n" "no" >&6; }
7886 fi
7887
7888
7889 fi
7890 if test -z "$ac_cv_prog_DLLTOOL"; then
7891 ac_ct_DLLTOOL=$DLLTOOL
7892 # Extract the first word of "dlltool", so it can be a program name with args.
7893 set dummy dlltool; ac_word=$2
7894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7895 printf %s "checking for $ac_word... " >&6; }
7896 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
7897 then :
7898 printf %s "(cached) " >&6
7899 else case e in #(
7900 e) if test -n "$ac_ct_DLLTOOL"; then
7901 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7902 else
7903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7904 for as_dir in $PATH
7905 do
7906 IFS=$as_save_IFS
7907 case $as_dir in #(((
7908 '') as_dir=./ ;;
7909 */) ;;
7910 *) as_dir=$as_dir/ ;;
7911 esac
7912 for ac_exec_ext in '' $ac_executable_extensions; do
7913 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7914 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7915 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7916 break 2
7917 fi
7918 done
7919 done
7920 IFS=$as_save_IFS
7921
7922 fi ;;
7923 esac
7924 fi
7925 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7926 if test -n "$ac_ct_DLLTOOL"; then
7927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7928 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
7929 else
7930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7931 printf "%s\n" "no" >&6; }
7932 fi
7933
7934 if test "x$ac_ct_DLLTOOL" = x; then
7935 DLLTOOL="false"
7936 else
7937 case $cross_compiling:$ac_tool_warned in
7938 yes:)
7939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7940 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7941 ac_tool_warned=yes ;;
7942 esac
7943 DLLTOOL=$ac_ct_DLLTOOL
7944 fi
7945 else
7946 DLLTOOL="$ac_cv_prog_DLLTOOL"
7947 fi
7948
7949 test -z "$DLLTOOL" && DLLTOOL=dlltool
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7961 printf %s "checking how to associate runtime and link libraries... " >&6; }
7962 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
7963 then :
7964 printf %s "(cached) " >&6
7965 else case e in #(
7966 e) lt_cv_sharedlib_from_linklib_cmd='unknown'
7967
7968 case $host_os in
7969 cygwin* | mingw* | windows* | pw32* | cegcc*)
7970 # two different shell functions defined in ltmain.sh;
7971 # decide which one to use based on capabilities of $DLLTOOL
7972 case `$DLLTOOL --help 2>&1` in
7973 *--identify-strict*)
7974 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7975 ;;
7976 *)
7977 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7978 ;;
7979 esac
7980 ;;
7981 *)
7982 # fallback: assume linklib IS sharedlib
7983 lt_cv_sharedlib_from_linklib_cmd=$ECHO
7984 ;;
7985 esac
7986 ;;
7987 esac
7988 fi
7989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7990 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7991 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7992 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7993
7994
7995
7996
7997
7998
7999
8000 if test -n "$ac_tool_prefix"; then
8001 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8002 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8004 printf %s "checking for $ac_word... " >&6; }
8005 if test ${ac_cv_prog_RANLIB+y}
8006 then :
8007 printf %s "(cached) " >&6
8008 else case e in #(
8009 e) if test -n "$RANLIB"; then
8010 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8011 else
8012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8013 for as_dir in $PATH
8014 do
8015 IFS=$as_save_IFS
8016 case $as_dir in #(((
8017 '') as_dir=./ ;;
8018 */) ;;
8019 *) as_dir=$as_dir/ ;;
8020 esac
8021 for ac_exec_ext in '' $ac_executable_extensions; do
8022 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8023 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8024 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8025 break 2
8026 fi
8027 done
8028 done
8029 IFS=$as_save_IFS
8030
8031 fi ;;
8032 esac
8033 fi
8034 RANLIB=$ac_cv_prog_RANLIB
8035 if test -n "$RANLIB"; then
8036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8037 printf "%s\n" "$RANLIB" >&6; }
8038 else
8039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8040 printf "%s\n" "no" >&6; }
8041 fi
8042
8043
8044 fi
8045 if test -z "$ac_cv_prog_RANLIB"; then
8046 ac_ct_RANLIB=$RANLIB
8047 # Extract the first word of "ranlib", so it can be a program name with args.
8048 set dummy ranlib; ac_word=$2
8049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8050 printf %s "checking for $ac_word... " >&6; }
8051 if test ${ac_cv_prog_ac_ct_RANLIB+y}
8052 then :
8053 printf %s "(cached) " >&6
8054 else case e in #(
8055 e) if test -n "$ac_ct_RANLIB"; then
8056 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8057 else
8058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8059 for as_dir in $PATH
8060 do
8061 IFS=$as_save_IFS
8062 case $as_dir in #(((
8063 '') as_dir=./ ;;
8064 */) ;;
8065 *) as_dir=$as_dir/ ;;
8066 esac
8067 for ac_exec_ext in '' $ac_executable_extensions; do
8068 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8069 ac_cv_prog_ac_ct_RANLIB="ranlib"
8070 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8071 break 2
8072 fi
8073 done
8074 done
8075 IFS=$as_save_IFS
8076
8077 fi ;;
8078 esac
8079 fi
8080 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8081 if test -n "$ac_ct_RANLIB"; then
8082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8083 printf "%s\n" "$ac_ct_RANLIB" >&6; }
8084 else
8085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8086 printf "%s\n" "no" >&6; }
8087 fi
8088
8089 if test "x$ac_ct_RANLIB" = x; then
8090 RANLIB=":"
8091 else
8092 case $cross_compiling:$ac_tool_warned in
8093 yes:)
8094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8095 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8096 ac_tool_warned=yes ;;
8097 esac
8098 RANLIB=$ac_ct_RANLIB
8099 fi
8100 else
8101 RANLIB="$ac_cv_prog_RANLIB"
8102 fi
8103
8104 if test -n "$ac_tool_prefix"; then
8105 for ac_prog in ar
8106 do
8107 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8108 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8110 printf %s "checking for $ac_word... " >&6; }
8111 if test ${ac_cv_prog_AR+y}
8112 then :
8113 printf %s "(cached) " >&6
8114 else case e in #(
8115 e) if test -n "$AR"; then
8116 ac_cv_prog_AR="$AR" # Let the user override the test.
8117 else
8118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8119 for as_dir in $PATH
8120 do
8121 IFS=$as_save_IFS
8122 case $as_dir in #(((
8123 '') as_dir=./ ;;
8124 */) ;;
8125 *) as_dir=$as_dir/ ;;
8126 esac
8127 for ac_exec_ext in '' $ac_executable_extensions; do
8128 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8129 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8130 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8131 break 2
8132 fi
8133 done
8134 done
8135 IFS=$as_save_IFS
8136
8137 fi ;;
8138 esac
8139 fi
8140 AR=$ac_cv_prog_AR
8141 if test -n "$AR"; then
8142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8143 printf "%s\n" "$AR" >&6; }
8144 else
8145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8146 printf "%s\n" "no" >&6; }
8147 fi
8148
8149
8150 test -n "$AR" && break
8151 done
8152 fi
8153 if test -z "$AR"; then
8154 ac_ct_AR=$AR
8155 for ac_prog in ar
8156 do
8157 # Extract the first word of "$ac_prog", so it can be a program name with args.
8158 set dummy $ac_prog; ac_word=$2
8159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8160 printf %s "checking for $ac_word... " >&6; }
8161 if test ${ac_cv_prog_ac_ct_AR+y}
8162 then :
8163 printf %s "(cached) " >&6
8164 else case e in #(
8165 e) if test -n "$ac_ct_AR"; then
8166 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8167 else
8168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8169 for as_dir in $PATH
8170 do
8171 IFS=$as_save_IFS
8172 case $as_dir in #(((
8173 '') as_dir=./ ;;
8174 */) ;;
8175 *) as_dir=$as_dir/ ;;
8176 esac
8177 for ac_exec_ext in '' $ac_executable_extensions; do
8178 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8179 ac_cv_prog_ac_ct_AR="$ac_prog"
8180 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8181 break 2
8182 fi
8183 done
8184 done
8185 IFS=$as_save_IFS
8186
8187 fi ;;
8188 esac
8189 fi
8190 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8191 if test -n "$ac_ct_AR"; then
8192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8193 printf "%s\n" "$ac_ct_AR" >&6; }
8194 else
8195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8196 printf "%s\n" "no" >&6; }
8197 fi
8198
8199
8200 test -n "$ac_ct_AR" && break
8201 done
8202
8203 if test "x$ac_ct_AR" = x; then
8204 AR="false"
8205 else
8206 case $cross_compiling:$ac_tool_warned in
8207 yes:)
8208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8209 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8210 ac_tool_warned=yes ;;
8211 esac
8212 AR=$ac_ct_AR
8213 fi
8214 fi
8215
8216 : ${AR=ar}
8217
8218
8219
8220
8221
8222
8223 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
8224 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
8225 # higher priority because that's what people were doing historically (setting
8226 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
8227 # variable obsoleted/removed.
8228
8229 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
8230 lt_ar_flags=$AR_FLAGS
8231
8232
8233
8234
8235
8236
8237 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
8238 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
8239
8240
8241
8242
8243
8244
8245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8246 printf %s "checking for archiver @FILE support... " >&6; }
8247 if test ${lt_cv_ar_at_file+y}
8248 then :
8249 printf %s "(cached) " >&6
8250 else case e in #(
8251 e) lt_cv_ar_at_file=no
8252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8253 /* end confdefs.h. */
8254
8255 int
8256 main (void)
8257 {
8258
8259 ;
8260 return 0;
8261 }
8262 _ACEOF
8263 if ac_fn_c_try_compile "$LINENO"
8264 then :
8265 echo conftest.$ac_objext > conftest.lst
8266 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8267 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8268 (eval $lt_ar_try) 2>&5
8269 ac_status=$?
8270 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8271 test $ac_status = 0; }
8272 if test 0 -eq "$ac_status"; then
8273 # Ensure the archiver fails upon bogus file names.
8274 rm -f conftest.$ac_objext libconftest.a
8275 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8276 (eval $lt_ar_try) 2>&5
8277 ac_status=$?
8278 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8279 test $ac_status = 0; }
8280 if test 0 -ne "$ac_status"; then
8281 lt_cv_ar_at_file=@
8282 fi
8283 fi
8284 rm -f conftest.* libconftest.a
8285
8286 fi
8287 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8288 ;;
8289 esac
8290 fi
8291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8292 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
8293
8294 if test no = "$lt_cv_ar_at_file"; then
8295 archiver_list_spec=
8296 else
8297 archiver_list_spec=$lt_cv_ar_at_file
8298 fi
8299
8300
8301
8302
8303
8304
8305
8306 if test -n "$ac_tool_prefix"; then
8307 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8308 set dummy ${ac_tool_prefix}strip; ac_word=$2
8309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8310 printf %s "checking for $ac_word... " >&6; }
8311 if test ${ac_cv_prog_STRIP+y}
8312 then :
8313 printf %s "(cached) " >&6
8314 else case e in #(
8315 e) if test -n "$STRIP"; then
8316 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8317 else
8318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8319 for as_dir in $PATH
8320 do
8321 IFS=$as_save_IFS
8322 case $as_dir in #(((
8323 '') as_dir=./ ;;
8324 */) ;;
8325 *) as_dir=$as_dir/ ;;
8326 esac
8327 for ac_exec_ext in '' $ac_executable_extensions; do
8328 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8329 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8330 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8331 break 2
8332 fi
8333 done
8334 done
8335 IFS=$as_save_IFS
8336
8337 fi ;;
8338 esac
8339 fi
8340 STRIP=$ac_cv_prog_STRIP
8341 if test -n "$STRIP"; then
8342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8343 printf "%s\n" "$STRIP" >&6; }
8344 else
8345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8346 printf "%s\n" "no" >&6; }
8347 fi
8348
8349
8350 fi
8351 if test -z "$ac_cv_prog_STRIP"; then
8352 ac_ct_STRIP=$STRIP
8353 # Extract the first word of "strip", so it can be a program name with args.
8354 set dummy strip; ac_word=$2
8355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8356 printf %s "checking for $ac_word... " >&6; }
8357 if test ${ac_cv_prog_ac_ct_STRIP+y}
8358 then :
8359 printf %s "(cached) " >&6
8360 else case e in #(
8361 e) if test -n "$ac_ct_STRIP"; then
8362 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8363 else
8364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8365 for as_dir in $PATH
8366 do
8367 IFS=$as_save_IFS
8368 case $as_dir in #(((
8369 '') as_dir=./ ;;
8370 */) ;;
8371 *) as_dir=$as_dir/ ;;
8372 esac
8373 for ac_exec_ext in '' $ac_executable_extensions; do
8374 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8375 ac_cv_prog_ac_ct_STRIP="strip"
8376 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8377 break 2
8378 fi
8379 done
8380 done
8381 IFS=$as_save_IFS
8382
8383 fi ;;
8384 esac
8385 fi
8386 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8387 if test -n "$ac_ct_STRIP"; then
8388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8389 printf "%s\n" "$ac_ct_STRIP" >&6; }
8390 else
8391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8392 printf "%s\n" "no" >&6; }
8393 fi
8394
8395 if test "x$ac_ct_STRIP" = x; then
8396 STRIP=":"
8397 else
8398 case $cross_compiling:$ac_tool_warned in
8399 yes:)
8400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8401 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8402 ac_tool_warned=yes ;;
8403 esac
8404 STRIP=$ac_ct_STRIP
8405 fi
8406 else
8407 STRIP="$ac_cv_prog_STRIP"
8408 fi
8409
8410 test -z "$STRIP" && STRIP=:
8411
8412
8413
8414
8415
8416
8417
8418 test -z "$RANLIB" && RANLIB=:
8419
8420
8421
8422
8423
8424
8425 # Determine commands to create old-style static archives.
8426 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8427 old_postinstall_cmds='chmod 644 $oldlib'
8428 old_postuninstall_cmds=
8429
8430 if test -n "$RANLIB"; then
8431 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8432 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8433 fi
8434
8435 case $host_os in
8436 darwin*)
8437 lock_old_archive_extraction=yes ;;
8438 *)
8439 lock_old_archive_extraction=no ;;
8440 esac
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480 # If no C compiler was specified, use CC.
8481 LTCC=${LTCC-"$CC"}
8482
8483 # If no C compiler flags were specified, use CFLAGS.
8484 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8485
8486 # Allow CC to be a program name with arguments.
8487 compiler=$CC
8488
8489
8490 # Check for command to grab the raw symbol name followed by C symbol from nm.
8491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8492 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
8493 if test ${lt_cv_sys_global_symbol_pipe+y}
8494 then :
8495 printf %s "(cached) " >&6
8496 else case e in #(
8497 e)
8498 # These are sane defaults that work on at least a few old systems.
8499 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8500
8501 # Character class describing NM global symbol codes.
8502 symcode='[BCDEGRST]'
8503
8504 # Regexp to match symbols that can be accessed directly from C.
8505 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8506
8507 # Define system-specific variables.
8508 case $host_os in
8509 aix*)
8510 symcode='[BCDT]'
8511 ;;
8512 cygwin* | mingw* | windows* | pw32* | cegcc*)
8513 symcode='[ABCDGISTW]'
8514 ;;
8515 hpux*)
8516 if test ia64 = "$host_cpu"; then
8517 symcode='[ABCDEGRST]'
8518 fi
8519 ;;
8520 irix* | nonstopux*)
8521 symcode='[BCDEGRST]'
8522 ;;
8523 osf*)
8524 symcode='[BCDEGQRST]'
8525 ;;
8526 solaris*)
8527 symcode='[BCDRT]'
8528 ;;
8529 sco3.2v5*)
8530 symcode='[DT]'
8531 ;;
8532 sysv4.2uw2*)
8533 symcode='[DT]'
8534 ;;
8535 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8536 symcode='[ABDT]'
8537 ;;
8538 sysv4)
8539 symcode='[DFNSTU]'
8540 ;;
8541 esac
8542
8543 # If we're using GNU nm, then use its standard symbol codes.
8544 case `$NM -V 2>&1` in
8545 *GNU* | *'with BFD'*)
8546 symcode='[ABCDGIRSTW]' ;;
8547 esac
8548
8549 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8550 # Gets list of data symbols to import.
8551 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
8552 # Adjust the below global symbol transforms to fixup imported variables.
8553 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
8554 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
8555 lt_c_name_lib_hook="\
8556 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
8557 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
8558 else
8559 # Disable hooks by default.
8560 lt_cv_sys_global_symbol_to_import=
8561 lt_cdecl_hook=
8562 lt_c_name_hook=
8563 lt_c_name_lib_hook=
8564 fi
8565
8566 # Transform an extracted symbol line into a proper C declaration.
8567 # Some systems (esp. on ia64) link data and code symbols differently,
8568 # so use this general approach.
8569 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
8570 $lt_cdecl_hook\
8571 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
8572 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
8573
8574 # Transform an extracted symbol line into symbol name and symbol address
8575 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
8576 $lt_c_name_hook\
8577 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8578 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
8579
8580 # Transform an extracted symbol line into symbol name with lib prefix and
8581 # symbol address.
8582 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
8583 $lt_c_name_lib_hook\
8584 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8585 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
8586 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
8587
8588 # Handle CRLF in mingw tool chain
8589 opt_cr=
8590 case $build_os in
8591 mingw* | windows*)
8592 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8593 ;;
8594 esac
8595
8596 # Try without a prefix underscore, then with it.
8597 for ac_symprfx in "" "_"; do
8598
8599 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8600 symxfrm="\\1 $ac_symprfx\\2 \\2"
8601
8602 # Write the raw and C identifiers.
8603 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8604 # Fake it for dumpbin and say T for any non-static function,
8605 # D for any global variable and I for any imported variable.
8606 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
8607 # which start with @ or ?.
8608 lt_cv_sys_global_symbol_pipe="$AWK '"\
8609 " {last_section=section; section=\$ 3};"\
8610 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8611 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8612 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8613 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8614 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8615 " \$ 0!~/External *\|/{next};"\
8616 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8617 " {if(hide[section]) next};"\
8618 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8619 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8620 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8621 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8622 " ' prfx=^$ac_symprfx"
8623 else
8624 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8625 fi
8626 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
8627
8628 # Check to see that the pipe works correctly.
8629 pipe_works=no
8630
8631 rm -f conftest*
8632 cat > conftest.$ac_ext <<_LT_EOF
8633 #ifdef __cplusplus
8634 extern "C" {
8635 #endif
8636 char nm_test_var;
8637 void nm_test_func(void);
8638 void nm_test_func(void){}
8639 #ifdef __cplusplus
8640 }
8641 #endif
8642 int main(void){nm_test_var='a';nm_test_func();return(0);}
8643 _LT_EOF
8644
8645 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8646 (eval $ac_compile) 2>&5
8647 ac_status=$?
8648 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8649 test $ac_status = 0; }; then
8650 # Now try to grab the symbols.
8651 nlist=conftest.nm
8652 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
8653 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
8654 # Try sorting and uniquifying the output.
8655 if sort "$nlist" | uniq > "$nlist"T; then
8656 mv -f "$nlist"T "$nlist"
8657 else
8658 rm -f "$nlist"T
8659 fi
8660
8661 # Make sure that we snagged all the symbols we need.
8662 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8663 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8664 cat <<_LT_EOF > conftest.$ac_ext
8665 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8666 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8667 /* DATA imports from DLLs on WIN32 can't be const, because runtime
8668 relocations are performed -- see ld's documentation on pseudo-relocs. */
8669 # define LT_DLSYM_CONST
8670 #elif defined __osf__
8671 /* This system does not cope well with relocations in const data. */
8672 # define LT_DLSYM_CONST
8673 #else
8674 # define LT_DLSYM_CONST const
8675 #endif
8676
8677 #ifdef __cplusplus
8678 extern "C" {
8679 #endif
8680
8681 _LT_EOF
8682 # Now generate the symbol file.
8683 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8684
8685 cat <<_LT_EOF >> conftest.$ac_ext
8686
8687 /* The mapping between symbol names and symbols. */
8688 LT_DLSYM_CONST struct {
8689 const char *name;
8690 void *address;
8691 }
8692 lt__PROGRAM__LTX_preloaded_symbols[] =
8693 {
8694 { "@PROGRAM@", (void *) 0 },
8695 _LT_EOF
8696 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8697 cat <<\_LT_EOF >> conftest.$ac_ext
8698 {0, (void *) 0}
8699 };
8700
8701 /* This works around a problem in FreeBSD linker */
8702 #ifdef FREEBSD_WORKAROUND
8703 static const void *lt_preloaded_setup() {
8704 return lt__PROGRAM__LTX_preloaded_symbols;
8705 }
8706 #endif
8707
8708 #ifdef __cplusplus
8709 }
8710 #endif
8711 _LT_EOF
8712 # Now try linking the two files.
8713 mv conftest.$ac_objext conftstm.$ac_objext
8714 lt_globsym_save_LIBS=$LIBS
8715 lt_globsym_save_CFLAGS=$CFLAGS
8716 LIBS=conftstm.$ac_objext
8717 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8718 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8719 (eval $ac_link) 2>&5
8720 ac_status=$?
8721 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8722 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8723 pipe_works=yes
8724 fi
8725 LIBS=$lt_globsym_save_LIBS
8726 CFLAGS=$lt_globsym_save_CFLAGS
8727 else
8728 echo "cannot find nm_test_func in $nlist" >&5
8729 fi
8730 else
8731 echo "cannot find nm_test_var in $nlist" >&5
8732 fi
8733 else
8734 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8735 fi
8736 else
8737 echo "$progname: failed program was:" >&5
8738 cat conftest.$ac_ext >&5
8739 fi
8740 rm -rf conftest* conftst*
8741
8742 # Do not use the global_symbol_pipe unless it works.
8743 if test yes = "$pipe_works"; then
8744 break
8745 else
8746 lt_cv_sys_global_symbol_pipe=
8747 fi
8748 done
8749 ;;
8750 esac
8751 fi
8752
8753 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8754 lt_cv_sys_global_symbol_to_cdecl=
8755 fi
8756 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8758 printf "%s\n" "failed" >&6; }
8759 else
8760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8761 printf "%s\n" "ok" >&6; }
8762 fi
8763
8764 # Response file support.
8765 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8766 nm_file_list_spec='@'
8767 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8768 nm_file_list_spec='@'
8769 fi
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8808 printf %s "checking for sysroot... " >&6; }
8809
8810 # Check whether --with-sysroot was given.
8811 if test ${with_sysroot+y}
8812 then :
8813 withval=$with_sysroot;
8814 else case e in #(
8815 e) with_sysroot=no ;;
8816 esac
8817 fi
8818
8819
8820 lt_sysroot=
8821 case $with_sysroot in #(
8822 yes)
8823 if test yes = "$GCC"; then
8824 # Trim trailing / since we'll always append absolute paths and we want
8825 # to avoid //, if only for less confusing output for the user.
8826 lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`
8827 fi
8828 ;; #(
8829 /*)
8830 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
8831 ;; #(
8832 no|'')
8833 ;; #(
8834 *)
8835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8836 printf "%s\n" "$with_sysroot" >&6; }
8837 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8838 ;;
8839 esac
8840
8841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8842 printf "%s\n" "${lt_sysroot:-no}" >&6; }
8843
8844
8845
8846
8847
8848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8849 printf %s "checking for a working dd... " >&6; }
8850 if test ${ac_cv_path_lt_DD+y}
8851 then :
8852 printf %s "(cached) " >&6
8853 else case e in #(
8854 e) printf 0123456789abcdef0123456789abcdef >conftest.i
8855 cat conftest.i conftest.i >conftest2.i
8856 : ${lt_DD:=$DD}
8857 if test -z "$lt_DD"; then
8858 ac_path_lt_DD_found=false
8859 # Loop through the user's path and test for each of PROGNAME-LIST
8860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8861 for as_dir in $PATH
8862 do
8863 IFS=$as_save_IFS
8864 case $as_dir in #(((
8865 '') as_dir=./ ;;
8866 */) ;;
8867 *) as_dir=$as_dir/ ;;
8868 esac
8869 for ac_prog in dd
8870 do
8871 for ac_exec_ext in '' $ac_executable_extensions; do
8872 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
8873 as_fn_executable_p "$ac_path_lt_DD" || continue
8874 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8875 cmp -s conftest.i conftest.out \
8876 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8877 fi
8878 $ac_path_lt_DD_found && break 3
8879 done
8880 done
8881 done
8882 IFS=$as_save_IFS
8883 if test -z "$ac_cv_path_lt_DD"; then
8884 :
8885 fi
8886 else
8887 ac_cv_path_lt_DD=$lt_DD
8888 fi
8889
8890 rm -f conftest.i conftest2.i conftest.out ;;
8891 esac
8892 fi
8893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8894 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
8895
8896
8897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8898 printf %s "checking how to truncate binary pipes... " >&6; }
8899 if test ${lt_cv_truncate_bin+y}
8900 then :
8901 printf %s "(cached) " >&6
8902 else case e in #(
8903 e) printf 0123456789abcdef0123456789abcdef >conftest.i
8904 cat conftest.i conftest.i >conftest2.i
8905 lt_cv_truncate_bin=
8906 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8907 cmp -s conftest.i conftest.out \
8908 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8909 fi
8910 rm -f conftest.i conftest2.i conftest.out
8911 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
8912 esac
8913 fi
8914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8915 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
8916
8917
8918
8919
8920
8921
8922
8923 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
8924 func_cc_basename ()
8925 {
8926 for cc_temp in $*""; do
8927 case $cc_temp in
8928 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8929 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8930 \-*) ;;
8931 *) break;;
8932 esac
8933 done
8934 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8935 }
8936
8937 # Check whether --enable-libtool-lock was given.
8938 if test ${enable_libtool_lock+y}
8939 then :
8940 enableval=$enable_libtool_lock;
8941 fi
8942
8943 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8944
8945 # Some flags need to be propagated to the compiler or linker for good
8946 # libtool support.
8947 case $host in
8948 ia64-*-hpux*)
8949 # Find out what ABI is being produced by ac_compile, and set mode
8950 # options accordingly.
8951 echo 'int i;' > conftest.$ac_ext
8952 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8953 (eval $ac_compile) 2>&5
8954 ac_status=$?
8955 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8956 test $ac_status = 0; }; then
8957 case `$FILECMD conftest.$ac_objext` in
8958 *ELF-32*)
8959 HPUX_IA64_MODE=32
8960 ;;
8961 *ELF-64*)
8962 HPUX_IA64_MODE=64
8963 ;;
8964 esac
8965 fi
8966 rm -rf conftest*
8967 ;;
8968 *-*-irix6*)
8969 # Find out what ABI is being produced by ac_compile, and set linker
8970 # options accordingly.
8971 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8972 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8973 (eval $ac_compile) 2>&5
8974 ac_status=$?
8975 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8976 test $ac_status = 0; }; then
8977 if test yes = "$lt_cv_prog_gnu_ld"; then
8978 case `$FILECMD conftest.$ac_objext` in
8979 *32-bit*)
8980 LD="${LD-ld} -melf32bsmip"
8981 ;;
8982 *N32*)
8983 LD="${LD-ld} -melf32bmipn32"
8984 ;;
8985 *64-bit*)
8986 LD="${LD-ld} -melf64bmip"
8987 ;;
8988 esac
8989 else
8990 case `$FILECMD conftest.$ac_objext` in
8991 *32-bit*)
8992 LD="${LD-ld} -32"
8993 ;;
8994 *N32*)
8995 LD="${LD-ld} -n32"
8996 ;;
8997 *64-bit*)
8998 LD="${LD-ld} -64"
8999 ;;
9000 esac
9001 fi
9002 fi
9003 rm -rf conftest*
9004 ;;
9005
9006 mips64*-*linux*)
9007 # Find out what ABI is being produced by ac_compile, and set linker
9008 # options accordingly.
9009 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9010 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9011 (eval $ac_compile) 2>&5
9012 ac_status=$?
9013 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9014 test $ac_status = 0; }; then
9015 emul=elf
9016 case `$FILECMD conftest.$ac_objext` in
9017 *32-bit*)
9018 emul="${emul}32"
9019 ;;
9020 *64-bit*)
9021 emul="${emul}64"
9022 ;;
9023 esac
9024 case `$FILECMD conftest.$ac_objext` in
9025 *MSB*)
9026 emul="${emul}btsmip"
9027 ;;
9028 *LSB*)
9029 emul="${emul}ltsmip"
9030 ;;
9031 esac
9032 case `$FILECMD conftest.$ac_objext` in
9033 *N32*)
9034 emul="${emul}n32"
9035 ;;
9036 esac
9037 LD="${LD-ld} -m $emul"
9038 fi
9039 rm -rf conftest*
9040 ;;
9041
9042 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9043 s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
9044 # Find out what ABI is being produced by ac_compile, and set linker
9045 # options accordingly. Note that the listed cases only cover the
9046 # situations where additional linker options are needed (such as when
9047 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9048 # vice versa); the common cases where no linker options are needed do
9049 # not appear in the list.
9050 echo 'int i;' > conftest.$ac_ext
9051 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9052 (eval $ac_compile) 2>&5
9053 ac_status=$?
9054 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9055 test $ac_status = 0; }; then
9056 case `$FILECMD conftest.o` in
9057 *32-bit*)
9058 case $host in
9059 x86_64-*kfreebsd*-gnu)
9060 LD="${LD-ld} -m elf_i386_fbsd"
9061 ;;
9062 x86_64-*linux*|x86_64-gnu*)
9063 case `$FILECMD conftest.o` in
9064 *x86-64*)
9065 LD="${LD-ld} -m elf32_x86_64"
9066 ;;
9067 *)
9068 LD="${LD-ld} -m elf_i386"
9069 ;;
9070 esac
9071 ;;
9072 powerpc64le-*linux*)
9073 LD="${LD-ld} -m elf32lppclinux"
9074 ;;
9075 powerpc64-*linux*)
9076 LD="${LD-ld} -m elf32ppclinux"
9077 ;;
9078 s390x-*linux*)
9079 LD="${LD-ld} -m elf_s390"
9080 ;;
9081 sparc64-*linux*)
9082 LD="${LD-ld} -m elf32_sparc"
9083 ;;
9084 esac
9085 ;;
9086 *64-bit*)
9087 case $host in
9088 x86_64-*kfreebsd*-gnu)
9089 LD="${LD-ld} -m elf_x86_64_fbsd"
9090 ;;
9091 x86_64-*linux*|x86_64-gnu*)
9092 LD="${LD-ld} -m elf_x86_64"
9093 ;;
9094 powerpcle-*linux*)
9095 LD="${LD-ld} -m elf64lppc"
9096 ;;
9097 powerpc-*linux*)
9098 LD="${LD-ld} -m elf64ppc"
9099 ;;
9100 s390*-*linux*|s390*-*tpf*)
9101 LD="${LD-ld} -m elf64_s390"
9102 ;;
9103 sparc*-*linux*)
9104 LD="${LD-ld} -m elf64_sparc"
9105 ;;
9106 esac
9107 ;;
9108 esac
9109 fi
9110 rm -rf conftest*
9111 ;;
9112
9113 *-*-sco3.2v5*)
9114 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9115 SAVE_CFLAGS=$CFLAGS
9116 CFLAGS="$CFLAGS -belf"
9117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9118 printf %s "checking whether the C compiler needs -belf... " >&6; }
9119 if test ${lt_cv_cc_needs_belf+y}
9120 then :
9121 printf %s "(cached) " >&6
9122 else case e in #(
9123 e) ac_ext=c
9124 ac_cpp='$CPP $CPPFLAGS'
9125 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9126 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9127 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9128
9129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9130 /* end confdefs.h. */
9131
9132 int
9133 main (void)
9134 {
9135
9136 ;
9137 return 0;
9138 }
9139 _ACEOF
9140 if ac_fn_c_try_link "$LINENO"
9141 then :
9142 lt_cv_cc_needs_belf=yes
9143 else case e in #(
9144 e) lt_cv_cc_needs_belf=no ;;
9145 esac
9146 fi
9147 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9148 conftest$ac_exeext conftest.$ac_ext
9149 ac_ext=c
9150 ac_cpp='$CPP $CPPFLAGS'
9151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9154 ;;
9155 esac
9156 fi
9157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9158 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
9159 if test yes != "$lt_cv_cc_needs_belf"; then
9160 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9161 CFLAGS=$SAVE_CFLAGS
9162 fi
9163 ;;
9164 *-*solaris*)
9165 # Find out what ABI is being produced by ac_compile, and set linker
9166 # options accordingly.
9167 echo 'int i;' > conftest.$ac_ext
9168 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9169 (eval $ac_compile) 2>&5
9170 ac_status=$?
9171 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9172 test $ac_status = 0; }; then
9173 case `$FILECMD conftest.o` in
9174 *64-bit*)
9175 case $lt_cv_prog_gnu_ld in
9176 yes*)
9177 case $host in
9178 i?86-*-solaris*|x86_64-*-solaris*)
9179 LD="${LD-ld} -m elf_x86_64"
9180 ;;
9181 sparc*-*-solaris*)
9182 LD="${LD-ld} -m elf64_sparc"
9183 ;;
9184 esac
9185 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
9186 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9187 LD=${LD-ld}_sol2
9188 fi
9189 ;;
9190 *)
9191 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9192 LD="${LD-ld} -64"
9193 fi
9194 ;;
9195 esac
9196 ;;
9197 esac
9198 fi
9199 rm -rf conftest*
9200 ;;
9201 esac
9202
9203 need_locks=$enable_libtool_lock
9204
9205 if test -n "$ac_tool_prefix"; then
9206 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9207 set dummy ${ac_tool_prefix}mt; ac_word=$2
9208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9209 printf %s "checking for $ac_word... " >&6; }
9210 if test ${ac_cv_prog_MANIFEST_TOOL+y}
9211 then :
9212 printf %s "(cached) " >&6
9213 else case e in #(
9214 e) if test -n "$MANIFEST_TOOL"; then
9215 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9216 else
9217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9218 for as_dir in $PATH
9219 do
9220 IFS=$as_save_IFS
9221 case $as_dir in #(((
9222 '') as_dir=./ ;;
9223 */) ;;
9224 *) as_dir=$as_dir/ ;;
9225 esac
9226 for ac_exec_ext in '' $ac_executable_extensions; do
9227 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9228 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9229 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9230 break 2
9231 fi
9232 done
9233 done
9234 IFS=$as_save_IFS
9235
9236 fi ;;
9237 esac
9238 fi
9239 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9240 if test -n "$MANIFEST_TOOL"; then
9241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9242 printf "%s\n" "$MANIFEST_TOOL" >&6; }
9243 else
9244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9245 printf "%s\n" "no" >&6; }
9246 fi
9247
9248
9249 fi
9250 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9251 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9252 # Extract the first word of "mt", so it can be a program name with args.
9253 set dummy mt; ac_word=$2
9254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9255 printf %s "checking for $ac_word... " >&6; }
9256 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
9257 then :
9258 printf %s "(cached) " >&6
9259 else case e in #(
9260 e) if test -n "$ac_ct_MANIFEST_TOOL"; then
9261 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9262 else
9263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9264 for as_dir in $PATH
9265 do
9266 IFS=$as_save_IFS
9267 case $as_dir in #(((
9268 '') as_dir=./ ;;
9269 */) ;;
9270 *) as_dir=$as_dir/ ;;
9271 esac
9272 for ac_exec_ext in '' $ac_executable_extensions; do
9273 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9274 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9275 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9276 break 2
9277 fi
9278 done
9279 done
9280 IFS=$as_save_IFS
9281
9282 fi ;;
9283 esac
9284 fi
9285 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9286 if test -n "$ac_ct_MANIFEST_TOOL"; then
9287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9288 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
9289 else
9290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9291 printf "%s\n" "no" >&6; }
9292 fi
9293
9294 if test "x$ac_ct_MANIFEST_TOOL" = x; then
9295 MANIFEST_TOOL=":"
9296 else
9297 case $cross_compiling:$ac_tool_warned in
9298 yes:)
9299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9300 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9301 ac_tool_warned=yes ;;
9302 esac
9303 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9304 fi
9305 else
9306 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9307 fi
9308
9309 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9311 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9312 if test ${lt_cv_path_manifest_tool+y}
9313 then :
9314 printf %s "(cached) " >&6
9315 else case e in #(
9316 e) lt_cv_path_manifest_tool=no
9317 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9318 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9319 cat conftest.err >&5
9320 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9321 lt_cv_path_manifest_tool=yes
9322 fi
9323 rm -f conftest* ;;
9324 esac
9325 fi
9326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5
9327 printf "%s\n" "$lt_cv_path_manifest_tool" >&6; }
9328 if test yes != "$lt_cv_path_manifest_tool"; then
9329 MANIFEST_TOOL=:
9330 fi
9331
9332
9333
9334
9335
9336
9337 case $host_os in
9338 rhapsody* | darwin*)
9339 if test -n "$ac_tool_prefix"; then
9340 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9341 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9343 printf %s "checking for $ac_word... " >&6; }
9344 if test ${ac_cv_prog_DSYMUTIL+y}
9345 then :
9346 printf %s "(cached) " >&6
9347 else case e in #(
9348 e) if test -n "$DSYMUTIL"; then
9349 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9350 else
9351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9352 for as_dir in $PATH
9353 do
9354 IFS=$as_save_IFS
9355 case $as_dir in #(((
9356 '') as_dir=./ ;;
9357 */) ;;
9358 *) as_dir=$as_dir/ ;;
9359 esac
9360 for ac_exec_ext in '' $ac_executable_extensions; do
9361 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9362 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9363 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9364 break 2
9365 fi
9366 done
9367 done
9368 IFS=$as_save_IFS
9369
9370 fi ;;
9371 esac
9372 fi
9373 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9374 if test -n "$DSYMUTIL"; then
9375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9376 printf "%s\n" "$DSYMUTIL" >&6; }
9377 else
9378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9379 printf "%s\n" "no" >&6; }
9380 fi
9381
9382
9383 fi
9384 if test -z "$ac_cv_prog_DSYMUTIL"; then
9385 ac_ct_DSYMUTIL=$DSYMUTIL
9386 # Extract the first word of "dsymutil", so it can be a program name with args.
9387 set dummy dsymutil; ac_word=$2
9388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9389 printf %s "checking for $ac_word... " >&6; }
9390 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
9391 then :
9392 printf %s "(cached) " >&6
9393 else case e in #(
9394 e) if test -n "$ac_ct_DSYMUTIL"; then
9395 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9396 else
9397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9398 for as_dir in $PATH
9399 do
9400 IFS=$as_save_IFS
9401 case $as_dir in #(((
9402 '') as_dir=./ ;;
9403 */) ;;
9404 *) as_dir=$as_dir/ ;;
9405 esac
9406 for ac_exec_ext in '' $ac_executable_extensions; do
9407 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9408 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9409 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9410 break 2
9411 fi
9412 done
9413 done
9414 IFS=$as_save_IFS
9415
9416 fi ;;
9417 esac
9418 fi
9419 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9420 if test -n "$ac_ct_DSYMUTIL"; then
9421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9422 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
9423 else
9424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9425 printf "%s\n" "no" >&6; }
9426 fi
9427
9428 if test "x$ac_ct_DSYMUTIL" = x; then
9429 DSYMUTIL=":"
9430 else
9431 case $cross_compiling:$ac_tool_warned in
9432 yes:)
9433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9434 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9435 ac_tool_warned=yes ;;
9436 esac
9437 DSYMUTIL=$ac_ct_DSYMUTIL
9438 fi
9439 else
9440 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9441 fi
9442
9443 if test -n "$ac_tool_prefix"; then
9444 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9445 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9447 printf %s "checking for $ac_word... " >&6; }
9448 if test ${ac_cv_prog_NMEDIT+y}
9449 then :
9450 printf %s "(cached) " >&6
9451 else case e in #(
9452 e) if test -n "$NMEDIT"; then
9453 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9454 else
9455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9456 for as_dir in $PATH
9457 do
9458 IFS=$as_save_IFS
9459 case $as_dir in #(((
9460 '') as_dir=./ ;;
9461 */) ;;
9462 *) as_dir=$as_dir/ ;;
9463 esac
9464 for ac_exec_ext in '' $ac_executable_extensions; do
9465 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9466 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9467 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9468 break 2
9469 fi
9470 done
9471 done
9472 IFS=$as_save_IFS
9473
9474 fi ;;
9475 esac
9476 fi
9477 NMEDIT=$ac_cv_prog_NMEDIT
9478 if test -n "$NMEDIT"; then
9479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9480 printf "%s\n" "$NMEDIT" >&6; }
9481 else
9482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9483 printf "%s\n" "no" >&6; }
9484 fi
9485
9486
9487 fi
9488 if test -z "$ac_cv_prog_NMEDIT"; then
9489 ac_ct_NMEDIT=$NMEDIT
9490 # Extract the first word of "nmedit", so it can be a program name with args.
9491 set dummy nmedit; ac_word=$2
9492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9493 printf %s "checking for $ac_word... " >&6; }
9494 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
9495 then :
9496 printf %s "(cached) " >&6
9497 else case e in #(
9498 e) if test -n "$ac_ct_NMEDIT"; then
9499 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9500 else
9501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9502 for as_dir in $PATH
9503 do
9504 IFS=$as_save_IFS
9505 case $as_dir in #(((
9506 '') as_dir=./ ;;
9507 */) ;;
9508 *) as_dir=$as_dir/ ;;
9509 esac
9510 for ac_exec_ext in '' $ac_executable_extensions; do
9511 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9512 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9513 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9514 break 2
9515 fi
9516 done
9517 done
9518 IFS=$as_save_IFS
9519
9520 fi ;;
9521 esac
9522 fi
9523 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9524 if test -n "$ac_ct_NMEDIT"; then
9525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9526 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
9527 else
9528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9529 printf "%s\n" "no" >&6; }
9530 fi
9531
9532 if test "x$ac_ct_NMEDIT" = x; then
9533 NMEDIT=":"
9534 else
9535 case $cross_compiling:$ac_tool_warned in
9536 yes:)
9537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9538 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9539 ac_tool_warned=yes ;;
9540 esac
9541 NMEDIT=$ac_ct_NMEDIT
9542 fi
9543 else
9544 NMEDIT="$ac_cv_prog_NMEDIT"
9545 fi
9546
9547 if test -n "$ac_tool_prefix"; then
9548 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9549 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9551 printf %s "checking for $ac_word... " >&6; }
9552 if test ${ac_cv_prog_LIPO+y}
9553 then :
9554 printf %s "(cached) " >&6
9555 else case e in #(
9556 e) if test -n "$LIPO"; then
9557 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9558 else
9559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9560 for as_dir in $PATH
9561 do
9562 IFS=$as_save_IFS
9563 case $as_dir in #(((
9564 '') as_dir=./ ;;
9565 */) ;;
9566 *) as_dir=$as_dir/ ;;
9567 esac
9568 for ac_exec_ext in '' $ac_executable_extensions; do
9569 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9570 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9571 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9572 break 2
9573 fi
9574 done
9575 done
9576 IFS=$as_save_IFS
9577
9578 fi ;;
9579 esac
9580 fi
9581 LIPO=$ac_cv_prog_LIPO
9582 if test -n "$LIPO"; then
9583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9584 printf "%s\n" "$LIPO" >&6; }
9585 else
9586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9587 printf "%s\n" "no" >&6; }
9588 fi
9589
9590
9591 fi
9592 if test -z "$ac_cv_prog_LIPO"; then
9593 ac_ct_LIPO=$LIPO
9594 # Extract the first word of "lipo", so it can be a program name with args.
9595 set dummy lipo; ac_word=$2
9596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9597 printf %s "checking for $ac_word... " >&6; }
9598 if test ${ac_cv_prog_ac_ct_LIPO+y}
9599 then :
9600 printf %s "(cached) " >&6
9601 else case e in #(
9602 e) if test -n "$ac_ct_LIPO"; then
9603 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9604 else
9605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9606 for as_dir in $PATH
9607 do
9608 IFS=$as_save_IFS
9609 case $as_dir in #(((
9610 '') as_dir=./ ;;
9611 */) ;;
9612 *) as_dir=$as_dir/ ;;
9613 esac
9614 for ac_exec_ext in '' $ac_executable_extensions; do
9615 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9616 ac_cv_prog_ac_ct_LIPO="lipo"
9617 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9618 break 2
9619 fi
9620 done
9621 done
9622 IFS=$as_save_IFS
9623
9624 fi ;;
9625 esac
9626 fi
9627 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9628 if test -n "$ac_ct_LIPO"; then
9629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9630 printf "%s\n" "$ac_ct_LIPO" >&6; }
9631 else
9632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9633 printf "%s\n" "no" >&6; }
9634 fi
9635
9636 if test "x$ac_ct_LIPO" = x; then
9637 LIPO=":"
9638 else
9639 case $cross_compiling:$ac_tool_warned in
9640 yes:)
9641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9642 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9643 ac_tool_warned=yes ;;
9644 esac
9645 LIPO=$ac_ct_LIPO
9646 fi
9647 else
9648 LIPO="$ac_cv_prog_LIPO"
9649 fi
9650
9651 if test -n "$ac_tool_prefix"; then
9652 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9653 set dummy ${ac_tool_prefix}otool; ac_word=$2
9654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9655 printf %s "checking for $ac_word... " >&6; }
9656 if test ${ac_cv_prog_OTOOL+y}
9657 then :
9658 printf %s "(cached) " >&6
9659 else case e in #(
9660 e) if test -n "$OTOOL"; then
9661 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9662 else
9663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9664 for as_dir in $PATH
9665 do
9666 IFS=$as_save_IFS
9667 case $as_dir in #(((
9668 '') as_dir=./ ;;
9669 */) ;;
9670 *) as_dir=$as_dir/ ;;
9671 esac
9672 for ac_exec_ext in '' $ac_executable_extensions; do
9673 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9674 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9675 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9676 break 2
9677 fi
9678 done
9679 done
9680 IFS=$as_save_IFS
9681
9682 fi ;;
9683 esac
9684 fi
9685 OTOOL=$ac_cv_prog_OTOOL
9686 if test -n "$OTOOL"; then
9687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9688 printf "%s\n" "$OTOOL" >&6; }
9689 else
9690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9691 printf "%s\n" "no" >&6; }
9692 fi
9693
9694
9695 fi
9696 if test -z "$ac_cv_prog_OTOOL"; then
9697 ac_ct_OTOOL=$OTOOL
9698 # Extract the first word of "otool", so it can be a program name with args.
9699 set dummy otool; ac_word=$2
9700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9701 printf %s "checking for $ac_word... " >&6; }
9702 if test ${ac_cv_prog_ac_ct_OTOOL+y}
9703 then :
9704 printf %s "(cached) " >&6
9705 else case e in #(
9706 e) if test -n "$ac_ct_OTOOL"; then
9707 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9708 else
9709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9710 for as_dir in $PATH
9711 do
9712 IFS=$as_save_IFS
9713 case $as_dir in #(((
9714 '') as_dir=./ ;;
9715 */) ;;
9716 *) as_dir=$as_dir/ ;;
9717 esac
9718 for ac_exec_ext in '' $ac_executable_extensions; do
9719 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9720 ac_cv_prog_ac_ct_OTOOL="otool"
9721 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9722 break 2
9723 fi
9724 done
9725 done
9726 IFS=$as_save_IFS
9727
9728 fi ;;
9729 esac
9730 fi
9731 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9732 if test -n "$ac_ct_OTOOL"; then
9733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9734 printf "%s\n" "$ac_ct_OTOOL" >&6; }
9735 else
9736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9737 printf "%s\n" "no" >&6; }
9738 fi
9739
9740 if test "x$ac_ct_OTOOL" = x; then
9741 OTOOL=":"
9742 else
9743 case $cross_compiling:$ac_tool_warned in
9744 yes:)
9745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9746 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9747 ac_tool_warned=yes ;;
9748 esac
9749 OTOOL=$ac_ct_OTOOL
9750 fi
9751 else
9752 OTOOL="$ac_cv_prog_OTOOL"
9753 fi
9754
9755 if test -n "$ac_tool_prefix"; then
9756 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9757 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9759 printf %s "checking for $ac_word... " >&6; }
9760 if test ${ac_cv_prog_OTOOL64+y}
9761 then :
9762 printf %s "(cached) " >&6
9763 else case e in #(
9764 e) if test -n "$OTOOL64"; then
9765 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9766 else
9767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9768 for as_dir in $PATH
9769 do
9770 IFS=$as_save_IFS
9771 case $as_dir in #(((
9772 '') as_dir=./ ;;
9773 */) ;;
9774 *) as_dir=$as_dir/ ;;
9775 esac
9776 for ac_exec_ext in '' $ac_executable_extensions; do
9777 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9778 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9779 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9780 break 2
9781 fi
9782 done
9783 done
9784 IFS=$as_save_IFS
9785
9786 fi ;;
9787 esac
9788 fi
9789 OTOOL64=$ac_cv_prog_OTOOL64
9790 if test -n "$OTOOL64"; then
9791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9792 printf "%s\n" "$OTOOL64" >&6; }
9793 else
9794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9795 printf "%s\n" "no" >&6; }
9796 fi
9797
9798
9799 fi
9800 if test -z "$ac_cv_prog_OTOOL64"; then
9801 ac_ct_OTOOL64=$OTOOL64
9802 # Extract the first word of "otool64", so it can be a program name with args.
9803 set dummy otool64; ac_word=$2
9804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9805 printf %s "checking for $ac_word... " >&6; }
9806 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
9807 then :
9808 printf %s "(cached) " >&6
9809 else case e in #(
9810 e) if test -n "$ac_ct_OTOOL64"; then
9811 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9812 else
9813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9814 for as_dir in $PATH
9815 do
9816 IFS=$as_save_IFS
9817 case $as_dir in #(((
9818 '') as_dir=./ ;;
9819 */) ;;
9820 *) as_dir=$as_dir/ ;;
9821 esac
9822 for ac_exec_ext in '' $ac_executable_extensions; do
9823 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9824 ac_cv_prog_ac_ct_OTOOL64="otool64"
9825 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9826 break 2
9827 fi
9828 done
9829 done
9830 IFS=$as_save_IFS
9831
9832 fi ;;
9833 esac
9834 fi
9835 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9836 if test -n "$ac_ct_OTOOL64"; then
9837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9838 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
9839 else
9840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9841 printf "%s\n" "no" >&6; }
9842 fi
9843
9844 if test "x$ac_ct_OTOOL64" = x; then
9845 OTOOL64=":"
9846 else
9847 case $cross_compiling:$ac_tool_warned in
9848 yes:)
9849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9850 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9851 ac_tool_warned=yes ;;
9852 esac
9853 OTOOL64=$ac_ct_OTOOL64
9854 fi
9855 else
9856 OTOOL64="$ac_cv_prog_OTOOL64"
9857 fi
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9886 printf %s "checking for -single_module linker flag... " >&6; }
9887 if test ${lt_cv_apple_cc_single_mod+y}
9888 then :
9889 printf %s "(cached) " >&6
9890 else case e in #(
9891 e) lt_cv_apple_cc_single_mod=no
9892 if test -z "$LT_MULTI_MODULE"; then
9893 # By default we will add the -single_module flag. You can override
9894 # by either setting the environment variable LT_MULTI_MODULE
9895 # non-empty at configure time, or by adding -multi_module to the
9896 # link flags.
9897 rm -rf libconftest.dylib*
9898 echo "int foo(void){return 1;}" > conftest.c
9899 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9900 -dynamiclib -Wl,-single_module conftest.c" >&5
9901 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9902 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9903 _lt_result=$?
9904 # If there is a non-empty error log, and "single_module"
9905 # appears in it, assume the flag caused a linker warning
9906 if test -s conftest.err && $GREP single_module conftest.err; then
9907 cat conftest.err >&5
9908 # Otherwise, if the output was created with a 0 exit code from
9909 # the compiler, it worked.
9910 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9911 lt_cv_apple_cc_single_mod=yes
9912 else
9913 cat conftest.err >&5
9914 fi
9915 rm -rf libconftest.dylib*
9916 rm -f conftest.*
9917 fi ;;
9918 esac
9919 fi
9920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9921 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
9922
9923 # Feature test to disable chained fixups since it is not
9924 # compatible with '-undefined dynamic_lookup'
9925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
9926 printf %s "checking for -no_fixup_chains linker flag... " >&6; }
9927 if test ${lt_cv_support_no_fixup_chains+y}
9928 then :
9929 printf %s "(cached) " >&6
9930 else case e in #(
9931 e) save_LDFLAGS=$LDFLAGS
9932 LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
9933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9934 /* end confdefs.h. */
9935
9936 int
9937 main (void)
9938 {
9939
9940 ;
9941 return 0;
9942 }
9943 _ACEOF
9944 if ac_fn_c_try_link "$LINENO"
9945 then :
9946 lt_cv_support_no_fixup_chains=yes
9947 else case e in #(
9948 e) lt_cv_support_no_fixup_chains=no
9949 ;;
9950 esac
9951 fi
9952 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9953 conftest$ac_exeext conftest.$ac_ext
9954 LDFLAGS=$save_LDFLAGS
9955
9956 ;;
9957 esac
9958 fi
9959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
9960 printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; }
9961
9962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9963 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
9964 if test ${lt_cv_ld_exported_symbols_list+y}
9965 then :
9966 printf %s "(cached) " >&6
9967 else case e in #(
9968 e) lt_cv_ld_exported_symbols_list=no
9969 save_LDFLAGS=$LDFLAGS
9970 echo "_main" > conftest.sym
9971 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9973 /* end confdefs.h. */
9974
9975 int
9976 main (void)
9977 {
9978
9979 ;
9980 return 0;
9981 }
9982 _ACEOF
9983 if ac_fn_c_try_link "$LINENO"
9984 then :
9985 lt_cv_ld_exported_symbols_list=yes
9986 else case e in #(
9987 e) lt_cv_ld_exported_symbols_list=no ;;
9988 esac
9989 fi
9990 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9991 conftest$ac_exeext conftest.$ac_ext
9992 LDFLAGS=$save_LDFLAGS
9993 ;;
9994 esac
9995 fi
9996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9997 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
9998
9999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10000 printf %s "checking for -force_load linker flag... " >&6; }
10001 if test ${lt_cv_ld_force_load+y}
10002 then :
10003 printf %s "(cached) " >&6
10004 else case e in #(
10005 e) lt_cv_ld_force_load=no
10006 cat > conftest.c << _LT_EOF
10007 int forced_loaded() { return 2;}
10008 _LT_EOF
10009 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10010 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10011 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
10012 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
10013 echo "$RANLIB libconftest.a" >&5
10014 $RANLIB libconftest.a 2>&5
10015 cat > conftest.c << _LT_EOF
10016 int main(void) { return 0;}
10017 _LT_EOF
10018 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10019 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10020 _lt_result=$?
10021 if test -s conftest.err && $GREP force_load conftest.err; then
10022 cat conftest.err >&5
10023 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10024 lt_cv_ld_force_load=yes
10025 else
10026 cat conftest.err >&5
10027 fi
10028 rm -f conftest.err libconftest.a conftest conftest.c
10029 rm -rf conftest.dSYM
10030 ;;
10031 esac
10032 fi
10033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10034 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
10035 case $host_os in
10036 rhapsody* | darwin1.[012])
10037 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10038 darwin1.*)
10039 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10040 darwin*)
10041 case $MACOSX_DEPLOYMENT_TARGET,$host in
10042 10.[012],*|,*powerpc*-darwin[5-8]*)
10043 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10044 *)
10045 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
10046 if test yes = "$lt_cv_support_no_fixup_chains"; then
10047 as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'
10048 fi
10049 ;;
10050 esac
10051 ;;
10052 esac
10053 if test yes = "$lt_cv_apple_cc_single_mod"; then
10054 _lt_dar_single_mod='$single_module'
10055 fi
10056 _lt_dar_needs_single_mod=no
10057 case $host_os in
10058 rhapsody* | darwin1.*)
10059 _lt_dar_needs_single_mod=yes ;;
10060 darwin*)
10061 # When targeting Mac OS X 10.4 (darwin 8) or later,
10062 # -single_module is the default and -multi_module is unsupported.
10063 # The toolchain on macOS 10.14 (darwin 18) and later cannot
10064 # target any OS version that needs -single_module.
10065 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10066 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*)
10067 _lt_dar_needs_single_mod=yes ;;
10068 esac
10069 ;;
10070 esac
10071 if test yes = "$lt_cv_ld_exported_symbols_list"; then
10072 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10073 else
10074 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10075 fi
10076 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10077 _lt_dsymutil='~$DSYMUTIL $lib || :'
10078 else
10079 _lt_dsymutil=
10080 fi
10081 ;;
10082 esac
10083
10084 # func_munge_path_list VARIABLE PATH
10085 # -----------------------------------
10086 # VARIABLE is name of variable containing _space_ separated list of
10087 # directories to be munged by the contents of PATH, which is string
10088 # having a format:
10089 # "DIR[:DIR]:"
10090 # string "DIR[ DIR]" will be prepended to VARIABLE
10091 # ":DIR[:DIR]"
10092 # string "DIR[ DIR]" will be appended to VARIABLE
10093 # "DIRP[:DIRP]::[DIRA:]DIRA"
10094 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10095 # "DIRA[ DIRA]" will be appended to VARIABLE
10096 # "DIR[:DIR]"
10097 # VARIABLE will be replaced by "DIR[ DIR]"
10098 func_munge_path_list ()
10099 {
10100 case x$2 in
10101 x)
10102 ;;
10103 *:)
10104 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10105 ;;
10106 x:*)
10107 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10108 ;;
10109 *::*)
10110 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10111 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10112 ;;
10113 *)
10114 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10115 ;;
10116 esac
10117 }
10118
10119 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10120 "
10121 if test "x$ac_cv_header_dlfcn_h" = xyes
10122 then :
10123 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
10124
10125 fi
10126
10127
10128
10129
10130 func_stripname_cnf ()
10131 {
10132 case $2 in
10133 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
10134 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
10135 esac
10136 } # func_stripname_cnf
10137
10138
10139
10140
10141
10142 # Set options
10143
10144
10145
10146 enable_dlopen=no
10147
10148
10149 enable_win32_dll=no
10150
10151
10152 # Check whether --enable-shared was given.
10153 if test ${enable_shared+y}
10154 then :
10155 enableval=$enable_shared; p=${PACKAGE-default}
10156 case $enableval in
10157 yes) enable_shared=yes ;;
10158 no) enable_shared=no ;;
10159 *)
10160 enable_shared=no
10161 # Look at the argument we got. We use all the common list separators.
10162 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10163 for pkg in $enableval; do
10164 IFS=$lt_save_ifs
10165 if test "X$pkg" = "X$p"; then
10166 enable_shared=yes
10167 fi
10168 done
10169 IFS=$lt_save_ifs
10170 ;;
10171 esac
10172 else case e in #(
10173 e) enable_shared=yes ;;
10174 esac
10175 fi
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185 # Check whether --enable-static was given.
10186 if test ${enable_static+y}
10187 then :
10188 enableval=$enable_static; p=${PACKAGE-default}
10189 case $enableval in
10190 yes) enable_static=yes ;;
10191 no) enable_static=no ;;
10192 *)
10193 enable_static=no
10194 # Look at the argument we got. We use all the common list separators.
10195 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10196 for pkg in $enableval; do
10197 IFS=$lt_save_ifs
10198 if test "X$pkg" = "X$p"; then
10199 enable_static=yes
10200 fi
10201 done
10202 IFS=$lt_save_ifs
10203 ;;
10204 esac
10205 else case e in #(
10206 e) enable_static=yes ;;
10207 esac
10208 fi
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218 # Check whether --enable-pic was given.
10219 if test ${enable_pic+y}
10220 then :
10221 enableval=$enable_pic; lt_p=${PACKAGE-default}
10222 case $enableval in
10223 yes|no) pic_mode=$enableval ;;
10224 *)
10225 pic_mode=default
10226 # Look at the argument we got. We use all the common list separators.
10227 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10228 for lt_pkg in $enableval; do
10229 IFS=$lt_save_ifs
10230 if test "X$lt_pkg" = "X$lt_p"; then
10231 pic_mode=yes
10232 fi
10233 done
10234 IFS=$lt_save_ifs
10235 ;;
10236 esac
10237 else case e in #(
10238 e) # Check whether --with-pic was given.
10239 if test ${with_pic+y}
10240 then :
10241 withval=$with_pic; lt_p=${PACKAGE-default}
10242 case $withval in
10243 yes|no) pic_mode=$withval ;;
10244 *)
10245 pic_mode=default
10246 # Look at the argument we got. We use all the common list separators.
10247 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10248 for lt_pkg in $withval; do
10249 IFS=$lt_save_ifs
10250 if test "X$lt_pkg" = "X$lt_p"; then
10251 pic_mode=yes
10252 fi
10253 done
10254 IFS=$lt_save_ifs
10255 ;;
10256 esac
10257 else case e in #(
10258 e) pic_mode=default ;;
10259 esac
10260 fi
10261
10262 ;;
10263 esac
10264 fi
10265
10266
10267
10268
10269
10270
10271
10272
10273 # Check whether --enable-fast-install was given.
10274 if test ${enable_fast_install+y}
10275 then :
10276 enableval=$enable_fast_install; p=${PACKAGE-default}
10277 case $enableval in
10278 yes) enable_fast_install=yes ;;
10279 no) enable_fast_install=no ;;
10280 *)
10281 enable_fast_install=no
10282 # Look at the argument we got. We use all the common list separators.
10283 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10284 for pkg in $enableval; do
10285 IFS=$lt_save_ifs
10286 if test "X$pkg" = "X$p"; then
10287 enable_fast_install=yes
10288 fi
10289 done
10290 IFS=$lt_save_ifs
10291 ;;
10292 esac
10293 else case e in #(
10294 e) enable_fast_install=yes ;;
10295 esac
10296 fi
10297
10298
10299
10300
10301
10302
10303
10304
10305 shared_archive_member_spec=
10306 case $host,$enable_shared in
10307 power*-*-aix[5-9]*,yes)
10308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
10309 printf %s "checking which variant of shared library versioning to provide... " >&6; }
10310 # Check whether --enable-aix-soname was given.
10311 if test ${enable_aix_soname+y}
10312 then :
10313 enableval=$enable_aix_soname; case $enableval in
10314 aix|svr4|both)
10315 ;;
10316 *)
10317 as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5
10318 ;;
10319 esac
10320 lt_cv_with_aix_soname=$enable_aix_soname
10321 else case e in #(
10322 e) # Check whether --with-aix-soname was given.
10323 if test ${with_aix_soname+y}
10324 then :
10325 withval=$with_aix_soname; case $withval in
10326 aix|svr4|both)
10327 ;;
10328 *)
10329 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
10330 ;;
10331 esac
10332 lt_cv_with_aix_soname=$with_aix_soname
10333 else case e in #(
10334 e) if test ${lt_cv_with_aix_soname+y}
10335 then :
10336 printf %s "(cached) " >&6
10337 else case e in #(
10338 e) lt_cv_with_aix_soname=aix ;;
10339 esac
10340 fi
10341 ;;
10342 esac
10343 fi
10344
10345 enable_aix_soname=$lt_cv_with_aix_soname ;;
10346 esac
10347 fi
10348
10349 with_aix_soname=$enable_aix_soname
10350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
10351 printf "%s\n" "$with_aix_soname" >&6; }
10352 if test aix != "$with_aix_soname"; then
10353 # For the AIX way of multilib, we name the shared archive member
10354 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10355 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10356 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10357 # the AIX toolchain works better with OBJECT_MODE set (default 32).
10358 if test 64 = "${OBJECT_MODE-32}"; then
10359 shared_archive_member_spec=shr_64
10360 else
10361 shared_archive_member_spec=shr
10362 fi
10363 fi
10364 ;;
10365 *)
10366 with_aix_soname=aix
10367 ;;
10368 esac
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379 # This can be used to rebuild libtool when needed
10380 LIBTOOL_DEPS=$ltmain
10381
10382 # Always use our own libtool.
10383 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414 test -z "$LN_S" && LN_S="ln -s"
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429 if test -n "${ZSH_VERSION+set}"; then
10430 setopt NO_GLOB_SUBST
10431 fi
10432
10433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10434 printf %s "checking for objdir... " >&6; }
10435 if test ${lt_cv_objdir+y}
10436 then :
10437 printf %s "(cached) " >&6
10438 else case e in #(
10439 e) rm -f .libs 2>/dev/null
10440 mkdir .libs 2>/dev/null
10441 if test -d .libs; then
10442 lt_cv_objdir=.libs
10443 else
10444 # MS-DOS does not allow filenames that begin with a dot.
10445 lt_cv_objdir=_libs
10446 fi
10447 rmdir .libs 2>/dev/null ;;
10448 esac
10449 fi
10450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10451 printf "%s\n" "$lt_cv_objdir" >&6; }
10452 objdir=$lt_cv_objdir
10453
10454
10455
10456
10457
10458 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
10459
10460
10461
10462
10463 case $host_os in
10464 aix3*)
10465 # AIX sometimes has problems with the GCC collect2 program. For some
10466 # reason, if we set the COLLECT_NAMES environment variable, the problems
10467 # vanish in a puff of smoke.
10468 if test set != "${COLLECT_NAMES+set}"; then
10469 COLLECT_NAMES=
10470 export COLLECT_NAMES
10471 fi
10472 ;;
10473 esac
10474
10475 # Global variables:
10476 ofile=libtool
10477 can_build_shared=yes
10478
10479 # All known linkers require a '.a' archive for static linking (except MSVC and
10480 # ICC, which need '.lib').
10481 libext=a
10482
10483 with_gnu_ld=$lt_cv_prog_gnu_ld
10484
10485 old_CC=$CC
10486 old_CFLAGS=$CFLAGS
10487
10488 # Set sane defaults for various variables
10489 test -z "$CC" && CC=cc
10490 test -z "$LTCC" && LTCC=$CC
10491 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10492 test -z "$LD" && LD=ld
10493 test -z "$ac_objext" && ac_objext=o
10494
10495 func_cc_basename $compiler
10496 cc_basename=$func_cc_basename_result
10497
10498
10499 # Only perform the check for file, if the check method requires it
10500 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10501 case $deplibs_check_method in
10502 file_magic*)
10503 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10505 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
10506 if test ${lt_cv_path_MAGIC_CMD+y}
10507 then :
10508 printf %s "(cached) " >&6
10509 else case e in #(
10510 e) case $MAGIC_CMD in
10511 [\\/*] | ?:[\\/]*)
10512 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10513 ;;
10514 *)
10515 lt_save_MAGIC_CMD=$MAGIC_CMD
10516 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10517 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10518 for ac_dir in $ac_dummy; do
10519 IFS=$lt_save_ifs
10520 test -z "$ac_dir" && ac_dir=.
10521 if test -f "$ac_dir/${ac_tool_prefix}file"; then
10522 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10523 if test -n "$file_magic_test_file"; then
10524 case $deplibs_check_method in
10525 "file_magic "*)
10526 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10527 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10528 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10529 $EGREP "$file_magic_regex" > /dev/null; then
10530 :
10531 else
10532 cat <<_LT_EOF 1>&2
10533
10534 *** Warning: the command libtool uses to detect shared libraries,
10535 *** $file_magic_cmd, produces output that libtool cannot recognize.
10536 *** The result is that libtool may fail to recognize shared libraries
10537 *** as such. This will affect the creation of libtool libraries that
10538 *** depend on shared libraries, but programs linked with such libtool
10539 *** libraries will work regardless of this problem. Nevertheless, you
10540 *** may want to report the problem to your system manager and/or to
10541 *** [email protected]
10542
10543 _LT_EOF
10544 fi ;;
10545 esac
10546 fi
10547 break
10548 fi
10549 done
10550 IFS=$lt_save_ifs
10551 MAGIC_CMD=$lt_save_MAGIC_CMD
10552 ;;
10553 esac ;;
10554 esac
10555 fi
10556
10557 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10558 if test -n "$MAGIC_CMD"; then
10559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10560 printf "%s\n" "$MAGIC_CMD" >&6; }
10561 else
10562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10563 printf "%s\n" "no" >&6; }
10564 fi
10565
10566
10567
10568
10569
10570 if test -z "$lt_cv_path_MAGIC_CMD"; then
10571 if test -n "$ac_tool_prefix"; then
10572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10573 printf %s "checking for file... " >&6; }
10574 if test ${lt_cv_path_MAGIC_CMD+y}
10575 then :
10576 printf %s "(cached) " >&6
10577 else case e in #(
10578 e) case $MAGIC_CMD in
10579 [\\/*] | ?:[\\/]*)
10580 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10581 ;;
10582 *)
10583 lt_save_MAGIC_CMD=$MAGIC_CMD
10584 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10585 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10586 for ac_dir in $ac_dummy; do
10587 IFS=$lt_save_ifs
10588 test -z "$ac_dir" && ac_dir=.
10589 if test -f "$ac_dir/file"; then
10590 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10591 if test -n "$file_magic_test_file"; then
10592 case $deplibs_check_method in
10593 "file_magic "*)
10594 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10595 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10596 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10597 $EGREP "$file_magic_regex" > /dev/null; then
10598 :
10599 else
10600 cat <<_LT_EOF 1>&2
10601
10602 *** Warning: the command libtool uses to detect shared libraries,
10603 *** $file_magic_cmd, produces output that libtool cannot recognize.
10604 *** The result is that libtool may fail to recognize shared libraries
10605 *** as such. This will affect the creation of libtool libraries that
10606 *** depend on shared libraries, but programs linked with such libtool
10607 *** libraries will work regardless of this problem. Nevertheless, you
10608 *** may want to report the problem to your system manager and/or to
10609 *** [email protected]
10610
10611 _LT_EOF
10612 fi ;;
10613 esac
10614 fi
10615 break
10616 fi
10617 done
10618 IFS=$lt_save_ifs
10619 MAGIC_CMD=$lt_save_MAGIC_CMD
10620 ;;
10621 esac ;;
10622 esac
10623 fi
10624
10625 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10626 if test -n "$MAGIC_CMD"; then
10627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10628 printf "%s\n" "$MAGIC_CMD" >&6; }
10629 else
10630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10631 printf "%s\n" "no" >&6; }
10632 fi
10633
10634
10635 else
10636 MAGIC_CMD=:
10637 fi
10638 fi
10639
10640 fi
10641 ;;
10642 esac
10643
10644 # Use C for the default configuration in the libtool script
10645
10646 lt_save_CC=$CC
10647 ac_ext=c
10648 ac_cpp='$CPP $CPPFLAGS'
10649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10652
10653
10654 # Source file extension for C test sources.
10655 ac_ext=c
10656
10657 # Object file extension for compiled C test sources.
10658 objext=o
10659 objext=$objext
10660
10661 # Code to be used in simple compile tests
10662 lt_simple_compile_test_code="int some_variable = 0;"
10663
10664 # Code to be used in simple link tests
10665 lt_simple_link_test_code='int main(void){return(0);}'
10666
10667
10668
10669
10670
10671
10672
10673 # If no C compiler was specified, use CC.
10674 LTCC=${LTCC-"$CC"}
10675
10676 # If no C compiler flags were specified, use CFLAGS.
10677 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10678
10679 # Allow CC to be a program name with arguments.
10680 compiler=$CC
10681
10682 # Save the default compiler, since it gets overwritten when the other
10683 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10684 compiler_DEFAULT=$CC
10685
10686 # save warnings/boilerplate of simple test code
10687 ac_outfile=conftest.$ac_objext
10688 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10689 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10690 _lt_compiler_boilerplate=`cat conftest.err`
10691 $RM conftest*
10692
10693 ac_outfile=conftest.$ac_objext
10694 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10695 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10696 _lt_linker_boilerplate=`cat conftest.err`
10697 $RM -r conftest*
10698
10699
10700 ## CAVEAT EMPTOR:
10701 ## There is no encapsulation within the following macros, do not change
10702 ## the running order or otherwise move them around unless you know exactly
10703 ## what you are doing...
10704 if test -n "$compiler"; then
10705
10706 lt_prog_compiler_no_builtin_flag=
10707
10708 if test yes = "$GCC"; then
10709 case $cc_basename in
10710 nvcc*)
10711 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10712 *)
10713 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10714 esac
10715
10716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10717 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10718 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
10719 then :
10720 printf %s "(cached) " >&6
10721 else case e in #(
10722 e) lt_cv_prog_compiler_rtti_exceptions=no
10723 ac_outfile=conftest.$ac_objext
10724 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10725 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
10726 # Insert the option either (1) after the last *FLAGS variable, or
10727 # (2) before a word containing "conftest.", or (3) at the end.
10728 # Note that $ac_compile itself does not contain backslashes and begins
10729 # with a dollar sign (not a hyphen), so the echo should work correctly.
10730 # The option is referenced via a variable to avoid confusing sed.
10731 lt_compile=`echo "$ac_compile" | $SED \
10732 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10733 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10734 -e 's:$: $lt_compiler_flag:'`
10735 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10736 (eval "$lt_compile" 2>conftest.err)
10737 ac_status=$?
10738 cat conftest.err >&5
10739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10740 if (exit $ac_status) && test -s "$ac_outfile"; then
10741 # The compiler can only warn and ignore the option if not recognized
10742 # So say no if there are warnings other than the usual output.
10743 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10744 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10745 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10746 lt_cv_prog_compiler_rtti_exceptions=yes
10747 fi
10748 fi
10749 $RM conftest*
10750 ;;
10751 esac
10752 fi
10753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10754 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10755
10756 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10757 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10758 else
10759 :
10760 fi
10761
10762 fi
10763
10764
10765
10766
10767
10768
10769 lt_prog_compiler_wl=
10770 lt_prog_compiler_pic=
10771 lt_prog_compiler_static=
10772
10773
10774 if test yes = "$GCC"; then
10775 lt_prog_compiler_wl='-Wl,'
10776 lt_prog_compiler_static='-static'
10777
10778 case $host_os in
10779 aix*)
10780 # All AIX code is PIC.
10781 if test ia64 = "$host_cpu"; then
10782 # AIX 5 now supports IA64 processor
10783 lt_prog_compiler_static='-Bstatic'
10784 fi
10785 lt_prog_compiler_pic='-fPIC'
10786 ;;
10787
10788 amigaos*)
10789 case $host_cpu in
10790 powerpc)
10791 # see comment about AmigaOS4 .so support
10792 lt_prog_compiler_pic='-fPIC'
10793 ;;
10794 m68k)
10795 # FIXME: we need at least 68020 code to build shared libraries, but
10796 # adding the '-m68020' flag to GCC prevents building anything better,
10797 # like '-m68040'.
10798 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10799 ;;
10800 esac
10801 ;;
10802
10803 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10804 # PIC is the default for these OSes.
10805 ;;
10806
10807 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
10808 # This hack is so that the source file can tell whether it is being
10809 # built for inclusion in a dll (and should export symbols for example).
10810 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10811 # (--disable-auto-import) libraries
10812 lt_prog_compiler_pic='-DDLL_EXPORT'
10813 case $host_os in
10814 os2*)
10815 lt_prog_compiler_static='$wl-static'
10816 ;;
10817 esac
10818 ;;
10819
10820 darwin* | rhapsody*)
10821 # PIC is the default on this platform
10822 # Common symbols not allowed in MH_DYLIB files
10823 lt_prog_compiler_pic='-fno-common'
10824 ;;
10825
10826 haiku*)
10827 # PIC is the default for Haiku.
10828 # The "-static" flag exists, but is broken.
10829 lt_prog_compiler_static=
10830 ;;
10831
10832 hpux*)
10833 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10834 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10835 # sets the default TLS model and affects inlining.
10836 case $host_cpu in
10837 hppa*64*)
10838 # +Z the default
10839 ;;
10840 *)
10841 lt_prog_compiler_pic='-fPIC'
10842 ;;
10843 esac
10844 ;;
10845
10846 interix[3-9]*)
10847 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10848 # Instead, we relocate shared libraries at runtime.
10849 ;;
10850
10851 msdosdjgpp*)
10852 # Just because we use GCC doesn't mean we suddenly get shared libraries
10853 # on systems that don't support them.
10854 lt_prog_compiler_can_build_shared=no
10855 enable_shared=no
10856 ;;
10857
10858 *nto* | *qnx*)
10859 # QNX uses GNU C++, but need to define -shared option too, otherwise
10860 # it will coredump.
10861 lt_prog_compiler_pic='-fPIC -shared'
10862 ;;
10863
10864 sysv4*MP*)
10865 if test -d /usr/nec; then
10866 lt_prog_compiler_pic=-Kconform_pic
10867 fi
10868 ;;
10869
10870 *)
10871 lt_prog_compiler_pic='-fPIC'
10872 ;;
10873 esac
10874
10875 case $cc_basename in
10876 nvcc*) # Cuda Compiler Driver 2.2
10877 lt_prog_compiler_wl='-Xlinker '
10878 if test -n "$lt_prog_compiler_pic"; then
10879 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10880 fi
10881 ;;
10882 esac
10883 else
10884 # PORTME Check for flag to pass linker flags through the system compiler.
10885 case $host_os in
10886 aix*)
10887 lt_prog_compiler_wl='-Wl,'
10888 if test ia64 = "$host_cpu"; then
10889 # AIX 5 now supports IA64 processor
10890 lt_prog_compiler_static='-Bstatic'
10891 else
10892 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10893 fi
10894 ;;
10895
10896 darwin* | rhapsody*)
10897 # PIC is the default on this platform
10898 # Common symbols not allowed in MH_DYLIB files
10899 lt_prog_compiler_pic='-fno-common'
10900 case $cc_basename in
10901 nagfor*)
10902 # NAG Fortran compiler
10903 lt_prog_compiler_wl='-Wl,-Wl,,'
10904 lt_prog_compiler_pic='-PIC'
10905 lt_prog_compiler_static='-Bstatic'
10906 ;;
10907 esac
10908 ;;
10909
10910 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
10911 # This hack is so that the source file can tell whether it is being
10912 # built for inclusion in a dll (and should export symbols for example).
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 hpux9* | hpux10* | hpux11*)
10922 lt_prog_compiler_wl='-Wl,'
10923 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10924 # not for PA HP-UX.
10925 case $host_cpu in
10926 hppa*64*|ia64*)
10927 # +Z the default
10928 ;;
10929 *)
10930 lt_prog_compiler_pic='+Z'
10931 ;;
10932 esac
10933 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10934 lt_prog_compiler_static='$wl-a ${wl}archive'
10935 ;;
10936
10937 irix5* | irix6* | nonstopux*)
10938 lt_prog_compiler_wl='-Wl,'
10939 # PIC (with -KPIC) is the default.
10940 lt_prog_compiler_static='-non_shared'
10941 ;;
10942
10943 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10944 case $cc_basename in
10945 # old Intel for x86_64, which still supported -KPIC.
10946 ecc*)
10947 lt_prog_compiler_wl='-Wl,'
10948 lt_prog_compiler_pic='-KPIC'
10949 lt_prog_compiler_static='-static'
10950 ;;
10951 *flang* | ftn | f18* | f95*)
10952 # Flang compiler.
10953 lt_prog_compiler_wl='-Wl,'
10954 lt_prog_compiler_pic='-fPIC'
10955 lt_prog_compiler_static='-static'
10956 ;;
10957 # flang / f18. f95 an alias for gfortran or flang on Debian
10958 flang* | f18* | f95*)
10959 lt_prog_compiler_wl='-Wl,'
10960 lt_prog_compiler_pic='-fPIC'
10961 lt_prog_compiler_static='-static'
10962 ;;
10963 # icc used to be incompatible with GCC.
10964 # ICC 10 doesn't accept -KPIC any more.
10965 icc* | ifort*)
10966 lt_prog_compiler_wl='-Wl,'
10967 lt_prog_compiler_pic='-fPIC'
10968 lt_prog_compiler_static='-static'
10969 ;;
10970 # Lahey Fortran 8.1.
10971 lf95*)
10972 lt_prog_compiler_wl='-Wl,'
10973 lt_prog_compiler_pic='--shared'
10974 lt_prog_compiler_static='--static'
10975 ;;
10976 nagfor*)
10977 # NAG Fortran compiler
10978 lt_prog_compiler_wl='-Wl,-Wl,,'
10979 lt_prog_compiler_pic='-PIC'
10980 lt_prog_compiler_static='-Bstatic'
10981 ;;
10982 tcc*)
10983 # Fabrice Bellard et al's Tiny C Compiler
10984 lt_prog_compiler_wl='-Wl,'
10985 lt_prog_compiler_pic='-fPIC'
10986 lt_prog_compiler_static='-static'
10987 ;;
10988 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10989 # Portland Group compilers (*not* the Pentium gcc compiler,
10990 # which looks to be a dead project)
10991 lt_prog_compiler_wl='-Wl,'
10992 lt_prog_compiler_pic='-fpic'
10993 lt_prog_compiler_static='-Bstatic'
10994 ;;
10995 ccc*)
10996 lt_prog_compiler_wl='-Wl,'
10997 # All Alpha code is PIC.
10998 lt_prog_compiler_static='-non_shared'
10999 ;;
11000 xl* | bgxl* | bgf* | mpixl*)
11001 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11002 lt_prog_compiler_wl='-Wl,'
11003 lt_prog_compiler_pic='-qpic'
11004 lt_prog_compiler_static='-qstaticlink'
11005 ;;
11006 *)
11007 case `$CC -V 2>&1 | $SED 5q` in
11008 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11009 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11010 lt_prog_compiler_pic='-KPIC'
11011 lt_prog_compiler_static='-Bstatic'
11012 lt_prog_compiler_wl=''
11013 ;;
11014 *Sun\ F* | *Sun*Fortran*)
11015 lt_prog_compiler_pic='-KPIC'
11016 lt_prog_compiler_static='-Bstatic'
11017 lt_prog_compiler_wl='-Qoption ld '
11018 ;;
11019 *Sun\ C*)
11020 # Sun C 5.9
11021 lt_prog_compiler_pic='-KPIC'
11022 lt_prog_compiler_static='-Bstatic'
11023 lt_prog_compiler_wl='-Wl,'
11024 ;;
11025 *Intel*\ [CF]*Compiler*)
11026 lt_prog_compiler_wl='-Wl,'
11027 lt_prog_compiler_pic='-fPIC'
11028 lt_prog_compiler_static='-static'
11029 ;;
11030 *Portland\ Group*)
11031 lt_prog_compiler_wl='-Wl,'
11032 lt_prog_compiler_pic='-fpic'
11033 lt_prog_compiler_static='-Bstatic'
11034 ;;
11035 esac
11036 ;;
11037 esac
11038 ;;
11039
11040 newsos6)
11041 lt_prog_compiler_pic='-KPIC'
11042 lt_prog_compiler_static='-Bstatic'
11043 ;;
11044
11045 *-mlibc)
11046 lt_prog_compiler_wl='-Wl,'
11047 lt_prog_compiler_pic='-fPIC'
11048 lt_prog_compiler_static='-static'
11049 ;;
11050
11051 *nto* | *qnx*)
11052 # QNX uses GNU C++, but need to define -shared option too, otherwise
11053 # it will coredump.
11054 lt_prog_compiler_pic='-fPIC -shared'
11055 ;;
11056
11057 osf3* | osf4* | osf5*)
11058 lt_prog_compiler_wl='-Wl,'
11059 # All OSF/1 code is PIC.
11060 lt_prog_compiler_static='-non_shared'
11061 ;;
11062
11063 rdos*)
11064 lt_prog_compiler_static='-non_shared'
11065 ;;
11066
11067 serenity*)
11068 ;;
11069
11070 solaris*)
11071 lt_prog_compiler_pic='-KPIC'
11072 lt_prog_compiler_static='-Bstatic'
11073 case $cc_basename in
11074 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11075 lt_prog_compiler_wl='-Qoption ld ';;
11076 *)
11077 lt_prog_compiler_wl='-Wl,';;
11078 esac
11079 ;;
11080
11081 sunos4*)
11082 lt_prog_compiler_wl='-Qoption ld '
11083 lt_prog_compiler_pic='-PIC'
11084 lt_prog_compiler_static='-Bstatic'
11085 ;;
11086
11087 sysv4 | sysv4.2uw2* | sysv4.3*)
11088 lt_prog_compiler_wl='-Wl,'
11089 lt_prog_compiler_pic='-KPIC'
11090 lt_prog_compiler_static='-Bstatic'
11091 ;;
11092
11093 sysv4*MP*)
11094 if test -d /usr/nec; then
11095 lt_prog_compiler_pic='-Kconform_pic'
11096 lt_prog_compiler_static='-Bstatic'
11097 fi
11098 ;;
11099
11100 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11101 lt_prog_compiler_wl='-Wl,'
11102 lt_prog_compiler_pic='-KPIC'
11103 lt_prog_compiler_static='-Bstatic'
11104 ;;
11105
11106 unicos*)
11107 lt_prog_compiler_wl='-Wl,'
11108 lt_prog_compiler_can_build_shared=no
11109 ;;
11110
11111 uts4*)
11112 lt_prog_compiler_pic='-pic'
11113 lt_prog_compiler_static='-Bstatic'
11114 ;;
11115
11116 *)
11117 lt_prog_compiler_can_build_shared=no
11118 ;;
11119 esac
11120 fi
11121
11122 case $host_os in
11123 # For platforms that do not support PIC, -DPIC is meaningless:
11124 *djgpp*)
11125 lt_prog_compiler_pic=
11126 ;;
11127 *)
11128 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11129 ;;
11130 esac
11131
11132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11133 printf %s "checking for $compiler option to produce PIC... " >&6; }
11134 if test ${lt_cv_prog_compiler_pic+y}
11135 then :
11136 printf %s "(cached) " >&6
11137 else case e in #(
11138 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
11139 esac
11140 fi
11141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11142 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
11143 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11144
11145 #
11146 # Check to make sure the PIC flag actually works.
11147 #
11148 if test -n "$lt_prog_compiler_pic"; then
11149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11150 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11151 if test ${lt_cv_prog_compiler_pic_works+y}
11152 then :
11153 printf %s "(cached) " >&6
11154 else case e in #(
11155 e) lt_cv_prog_compiler_pic_works=no
11156 ac_outfile=conftest.$ac_objext
11157 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11158 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
11159 # Insert the option either (1) after the last *FLAGS variable, or
11160 # (2) before a word containing "conftest.", or (3) at the end.
11161 # Note that $ac_compile itself does not contain backslashes and begins
11162 # with a dollar sign (not a hyphen), so the echo should work correctly.
11163 # The option is referenced via a variable to avoid confusing sed.
11164 lt_compile=`echo "$ac_compile" | $SED \
11165 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11166 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11167 -e 's:$: $lt_compiler_flag:'`
11168 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11169 (eval "$lt_compile" 2>conftest.err)
11170 ac_status=$?
11171 cat conftest.err >&5
11172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11173 if (exit $ac_status) && test -s "$ac_outfile"; then
11174 # The compiler can only warn and ignore the option if not recognized
11175 # So say no if there are warnings other than the usual output.
11176 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11177 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11178 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11179 lt_cv_prog_compiler_pic_works=yes
11180 fi
11181 fi
11182 $RM conftest*
11183 ;;
11184 esac
11185 fi
11186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11187 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
11188
11189 if test yes = "$lt_cv_prog_compiler_pic_works"; then
11190 case $lt_prog_compiler_pic in
11191 "" | " "*) ;;
11192 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11193 esac
11194 else
11195 lt_prog_compiler_pic=
11196 lt_prog_compiler_can_build_shared=no
11197 fi
11198
11199 fi
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211 #
11212 # Check to make sure the static flag actually works.
11213 #
11214 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11216 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11217 if test ${lt_cv_prog_compiler_static_works+y}
11218 then :
11219 printf %s "(cached) " >&6
11220 else case e in #(
11221 e) lt_cv_prog_compiler_static_works=no
11222 save_LDFLAGS=$LDFLAGS
11223 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11224 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11225 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11226 # The linker can only warn and ignore the option if not recognized
11227 # So say no if there are warnings
11228 if test -s conftest.err; then
11229 # Append any errors to the config.log.
11230 cat conftest.err 1>&5
11231 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11232 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11233 if diff conftest.exp conftest.er2 >/dev/null; then
11234 lt_cv_prog_compiler_static_works=yes
11235 fi
11236 else
11237 lt_cv_prog_compiler_static_works=yes
11238 fi
11239 fi
11240 $RM -r conftest*
11241 LDFLAGS=$save_LDFLAGS
11242 ;;
11243 esac
11244 fi
11245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11246 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
11247
11248 if test yes = "$lt_cv_prog_compiler_static_works"; then
11249 :
11250 else
11251 lt_prog_compiler_static=
11252 fi
11253
11254
11255
11256
11257
11258
11259
11260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11261 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11262 if test ${lt_cv_prog_compiler_c_o+y}
11263 then :
11264 printf %s "(cached) " >&6
11265 else case e in #(
11266 e) lt_cv_prog_compiler_c_o=no
11267 $RM -r conftest 2>/dev/null
11268 mkdir conftest
11269 cd conftest
11270 mkdir out
11271 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11272
11273 lt_compiler_flag="-o out/conftest2.$ac_objext"
11274 # Insert the option either (1) after the last *FLAGS variable, or
11275 # (2) before a word containing "conftest.", or (3) at the end.
11276 # Note that $ac_compile itself does not contain backslashes and begins
11277 # with a dollar sign (not a hyphen), so the echo should work correctly.
11278 lt_compile=`echo "$ac_compile" | $SED \
11279 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11280 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11281 -e 's:$: $lt_compiler_flag:'`
11282 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11283 (eval "$lt_compile" 2>out/conftest.err)
11284 ac_status=$?
11285 cat out/conftest.err >&5
11286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11287 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11288 then
11289 # The compiler can only warn and ignore the option if not recognized
11290 # So say no if there are warnings
11291 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11292 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11293 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11294 lt_cv_prog_compiler_c_o=yes
11295 fi
11296 fi
11297 chmod u+w . 2>&5
11298 $RM conftest*
11299 # SGI C++ compiler will create directory out/ii_files/ for
11300 # template instantiation
11301 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11302 $RM out/* && rmdir out
11303 cd ..
11304 $RM -r conftest
11305 $RM conftest*
11306 ;;
11307 esac
11308 fi
11309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11310 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
11311
11312
11313
11314
11315
11316
11317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11318 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11319 if test ${lt_cv_prog_compiler_c_o+y}
11320 then :
11321 printf %s "(cached) " >&6
11322 else case e in #(
11323 e) lt_cv_prog_compiler_c_o=no
11324 $RM -r conftest 2>/dev/null
11325 mkdir conftest
11326 cd conftest
11327 mkdir out
11328 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11329
11330 lt_compiler_flag="-o out/conftest2.$ac_objext"
11331 # Insert the option either (1) after the last *FLAGS variable, or
11332 # (2) before a word containing "conftest.", or (3) at the end.
11333 # Note that $ac_compile itself does not contain backslashes and begins
11334 # with a dollar sign (not a hyphen), so the echo should work correctly.
11335 lt_compile=`echo "$ac_compile" | $SED \
11336 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11337 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11338 -e 's:$: $lt_compiler_flag:'`
11339 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11340 (eval "$lt_compile" 2>out/conftest.err)
11341 ac_status=$?
11342 cat out/conftest.err >&5
11343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11344 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11345 then
11346 # The compiler can only warn and ignore the option if not recognized
11347 # So say no if there are warnings
11348 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11349 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11350 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11351 lt_cv_prog_compiler_c_o=yes
11352 fi
11353 fi
11354 chmod u+w . 2>&5
11355 $RM conftest*
11356 # SGI C++ compiler will create directory out/ii_files/ for
11357 # template instantiation
11358 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11359 $RM out/* && rmdir out
11360 cd ..
11361 $RM -r conftest
11362 $RM conftest*
11363 ;;
11364 esac
11365 fi
11366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11367 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
11368
11369
11370
11371
11372 hard_links=nottested
11373 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
11374 # do not overwrite the value of need_locks provided by the user
11375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11376 printf %s "checking if we can lock with hard links... " >&6; }
11377 hard_links=yes
11378 $RM conftest*
11379 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11380 touch conftest.a
11381 ln conftest.a conftest.b 2>&5 || hard_links=no
11382 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11384 printf "%s\n" "$hard_links" >&6; }
11385 if test no = "$hard_links"; then
11386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11387 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
11388 need_locks=warn
11389 fi
11390 else
11391 need_locks=no
11392 fi
11393
11394
11395
11396
11397
11398
11399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11400 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11401
11402 runpath_var=
11403 allow_undefined_flag=
11404 always_export_symbols=no
11405 archive_cmds=
11406 archive_expsym_cmds=
11407 compiler_needs_object=no
11408 enable_shared_with_static_runtimes=no
11409 export_dynamic_flag_spec=
11410 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11411 hardcode_automatic=no
11412 hardcode_direct=no
11413 hardcode_direct_absolute=no
11414 hardcode_libdir_flag_spec=
11415 hardcode_libdir_separator=
11416 hardcode_minus_L=no
11417 hardcode_shlibpath_var=unsupported
11418 inherit_rpath=no
11419 link_all_deplibs=unknown
11420 module_cmds=
11421 module_expsym_cmds=
11422 old_archive_from_new_cmds=
11423 old_archive_from_expsyms_cmds=
11424 thread_safe_flag_spec=
11425 whole_archive_flag_spec=
11426 # include_expsyms should be a list of space-separated symbols to be *always*
11427 # included in the symbol list
11428 include_expsyms=
11429 # exclude_expsyms can be an extended regexp of symbols to exclude
11430 # it will be wrapped by ' (' and ')$', so one must not match beginning or
11431 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11432 # as well as any symbol that contains 'd'.
11433 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11434 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11435 # platforms (ab)use it in PIC code, but their linkers get confused if
11436 # the symbol is explicitly referenced. Since portable code cannot
11437 # rely on this symbol name, it's probably fine to never include it in
11438 # preloaded symbol tables.
11439 # Exclude shared library initialization/finalization symbols.
11440 extract_expsyms_cmds=
11441
11442 case $host_os in
11443 cygwin* | mingw* | windows* | pw32* | cegcc*)
11444 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
11445 # When not using gcc, we currently assume that we are using
11446 # Microsoft Visual C++ or Intel C++ Compiler.
11447 if test yes != "$GCC"; then
11448 with_gnu_ld=no
11449 fi
11450 ;;
11451 interix*)
11452 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
11453 with_gnu_ld=yes
11454 ;;
11455 linux* | k*bsd*-gnu | gnu*)
11456 link_all_deplibs=no
11457 ;;
11458 esac
11459
11460 ld_shlibs=yes
11461
11462 # On some targets, GNU ld is compatible enough with the native linker
11463 # that we're better off using the native interface for both.
11464 lt_use_gnu_ld_interface=no
11465 if test yes = "$with_gnu_ld"; then
11466 case $host_os in
11467 aix*)
11468 # The AIX port of GNU ld has always aspired to compatibility
11469 # with the native linker. However, as the warning in the GNU ld
11470 # block says, versions before 2.19.5* couldn't really create working
11471 # shared libraries, regardless of the interface used.
11472 case `$LD -v 2>&1` in
11473 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11474 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11475 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11476 *)
11477 lt_use_gnu_ld_interface=yes
11478 ;;
11479 esac
11480 ;;
11481 *)
11482 lt_use_gnu_ld_interface=yes
11483 ;;
11484 esac
11485 fi
11486
11487 if test yes = "$lt_use_gnu_ld_interface"; then
11488 # If archive_cmds runs LD, not CC, wlarc should be empty
11489 wlarc='$wl'
11490
11491 # Set some defaults for GNU ld with shared library support. These
11492 # are reset later if shared libraries are not supported. Putting them
11493 # here allows them to be overridden if necessary.
11494 runpath_var=LD_RUN_PATH
11495 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11496 export_dynamic_flag_spec='$wl--export-dynamic'
11497 # ancient GNU ld didn't support --whole-archive et. al.
11498 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11499 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11500 else
11501 whole_archive_flag_spec=
11502 fi
11503 supports_anon_versioning=no
11504 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
11505 *GNU\ gold*) supports_anon_versioning=yes ;;
11506 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11507 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11508 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11509 *\ 2.11.*) ;; # other 2.11 versions
11510 *) supports_anon_versioning=yes ;;
11511 esac
11512
11513 # See if GNU ld supports shared libraries.
11514 case $host_os in
11515 aix[3-9]*)
11516 # On AIX/PPC, the GNU linker is very broken
11517 if test ia64 != "$host_cpu"; then
11518 ld_shlibs=no
11519 cat <<_LT_EOF 1>&2
11520
11521 *** Warning: the GNU linker, at least up to release 2.19, is reported
11522 *** to be unable to reliably create shared libraries on AIX.
11523 *** Therefore, libtool is disabling shared libraries support. If you
11524 *** really care for shared libraries, you may want to install binutils
11525 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11526 *** You will then need to restart the configuration process.
11527
11528 _LT_EOF
11529 fi
11530 ;;
11531
11532 amigaos*)
11533 case $host_cpu in
11534 powerpc)
11535 # see comment about AmigaOS4 .so support
11536 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11537 archive_expsym_cmds=''
11538 ;;
11539 m68k)
11540 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)'
11541 hardcode_libdir_flag_spec='-L$libdir'
11542 hardcode_minus_L=yes
11543 ;;
11544 esac
11545 ;;
11546
11547 beos*)
11548 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11549 allow_undefined_flag=unsupported
11550 # Joseph Beckenbach <[email protected]> says some releases of gcc
11551 # support --undefined. This deserves some investigation. FIXME
11552 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11553 else
11554 ld_shlibs=no
11555 fi
11556 ;;
11557
11558 cygwin* | mingw* | windows* | pw32* | cegcc*)
11559 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11560 # as there is no search path for DLLs.
11561 hardcode_libdir_flag_spec='-L$libdir'
11562 export_dynamic_flag_spec='$wl--export-all-symbols'
11563 allow_undefined_flag=unsupported
11564 always_export_symbols=no
11565 enable_shared_with_static_runtimes=yes
11566 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'
11567 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11568 file_list_spec='@'
11569
11570 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11571 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11572 # If the export-symbols file already is a .def file, use it as
11573 # is; otherwise, prepend EXPORTS...
11574 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11575 cp $export_symbols $output_objdir/$soname.def;
11576 else
11577 echo EXPORTS > $output_objdir/$soname.def;
11578 cat $export_symbols >> $output_objdir/$soname.def;
11579 fi~
11580 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11581 else
11582 ld_shlibs=no
11583 fi
11584 ;;
11585
11586 haiku*)
11587 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11588 link_all_deplibs=no
11589 ;;
11590
11591 os2*)
11592 hardcode_libdir_flag_spec='-L$libdir'
11593 hardcode_minus_L=yes
11594 allow_undefined_flag=unsupported
11595 shrext_cmds=.dll
11596 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11597 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11598 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11599 $ECHO EXPORTS >> $output_objdir/$libname.def~
11600 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11601 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11602 emximp -o $lib $output_objdir/$libname.def'
11603 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11604 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11605 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11606 $ECHO EXPORTS >> $output_objdir/$libname.def~
11607 prefix_cmds="$SED"~
11608 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11609 prefix_cmds="$prefix_cmds -e 1d";
11610 fi~
11611 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11612 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11613 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11614 emximp -o $lib $output_objdir/$libname.def'
11615 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11616 enable_shared_with_static_runtimes=yes
11617 file_list_spec='@'
11618 ;;
11619
11620 interix[3-9]*)
11621 hardcode_direct=no
11622 hardcode_shlibpath_var=no
11623 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11624 export_dynamic_flag_spec='$wl-E'
11625 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11626 # Instead, shared libraries are loaded at an image base (0x10000000 by
11627 # default) and relocated if they conflict, which is a slow very memory
11628 # consuming and fragmenting process. To avoid this, we pick a random,
11629 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11630 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11631 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11632 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'
11633 ;;
11634
11635 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11636 tmp_diet=no
11637 if test linux-dietlibc = "$host_os"; then
11638 case $cc_basename in
11639 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11640 esac
11641 fi
11642 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11643 && test no = "$tmp_diet"
11644 then
11645 tmp_addflag=' $pic_flag'
11646 tmp_sharedflag='-shared'
11647 case $cc_basename,$host_cpu in
11648 pgcc*) # Portland Group C compiler
11649 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'
11650 tmp_addflag=' $pic_flag'
11651 ;;
11652 pgf77* | pgf90* | pgf95* | pgfortran*)
11653 # Portland Group f77 and f90 compilers
11654 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'
11655 tmp_addflag=' $pic_flag -Mnomain' ;;
11656 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11657 tmp_addflag=' -i_dynamic' ;;
11658 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11659 tmp_addflag=' -i_dynamic -nofor_main' ;;
11660 ifc* | ifort*) # Intel Fortran compiler
11661 tmp_addflag=' -nofor_main' ;;
11662 lf95*) # Lahey Fortran 8.1
11663 whole_archive_flag_spec=
11664 tmp_sharedflag='--shared' ;;
11665 nagfor*) # NAGFOR 5.3
11666 tmp_sharedflag='-Wl,-shared' ;;
11667 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11668 tmp_sharedflag='-qmkshrobj'
11669 tmp_addflag= ;;
11670 nvcc*) # Cuda Compiler Driver 2.2
11671 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'
11672 compiler_needs_object=yes
11673 ;;
11674 esac
11675 case `$CC -V 2>&1 | $SED 5q` in
11676 *Sun\ C*) # Sun C 5.9
11677 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'
11678 compiler_needs_object=yes
11679 tmp_sharedflag='-G' ;;
11680 *Sun\ F*) # Sun Fortran 8.3
11681 tmp_sharedflag='-G' ;;
11682 esac
11683 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11684
11685 if test yes = "$supports_anon_versioning"; then
11686 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11687 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11688 echo "local: *; };" >> $output_objdir/$libname.ver~
11689 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11690 fi
11691
11692 case $cc_basename in
11693 tcc*)
11694 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11695 export_dynamic_flag_spec='-rdynamic'
11696 ;;
11697 xlf* | bgf* | bgxlf* | mpixlf*)
11698 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11699 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11700 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11701 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11702 if test yes = "$supports_anon_versioning"; then
11703 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11704 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11705 echo "local: *; };" >> $output_objdir/$libname.ver~
11706 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11707 fi
11708 ;;
11709 esac
11710 else
11711 ld_shlibs=no
11712 fi
11713 ;;
11714
11715 *-mlibc)
11716 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11717 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11718 ;;
11719
11720 netbsd* | netbsdelf*-gnu)
11721 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11722 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11723 wlarc=
11724 else
11725 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11726 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11727 fi
11728 ;;
11729
11730 solaris*)
11731 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11732 ld_shlibs=no
11733 cat <<_LT_EOF 1>&2
11734
11735 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11736 *** create shared libraries on Solaris systems. Therefore, libtool
11737 *** is disabling shared libraries support. We urge you to upgrade GNU
11738 *** binutils to release 2.9.1 or newer. Another option is to modify
11739 *** your PATH or compiler configuration so that the native linker is
11740 *** used, and then restart.
11741
11742 _LT_EOF
11743 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11744 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11745 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11746 else
11747 ld_shlibs=no
11748 fi
11749 ;;
11750
11751 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11752 case `$LD -v 2>&1` in
11753 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11754 ld_shlibs=no
11755 cat <<_LT_EOF 1>&2
11756
11757 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11758 *** reliably create shared libraries on SCO systems. Therefore, libtool
11759 *** is disabling shared libraries support. We urge you to upgrade GNU
11760 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11761 *** your PATH or compiler configuration so that the native linker is
11762 *** used, and then restart.
11763
11764 _LT_EOF
11765 ;;
11766 *)
11767 # For security reasons, it is highly recommended that you always
11768 # use absolute paths for naming shared libraries, and exclude the
11769 # DT_RUNPATH tag from executables and libraries. But doing so
11770 # requires that you compile everything twice, which is a pain.
11771 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11772 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11773 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11774 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11775 else
11776 ld_shlibs=no
11777 fi
11778 ;;
11779 esac
11780 ;;
11781
11782 sunos4*)
11783 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11784 wlarc=
11785 hardcode_direct=yes
11786 hardcode_shlibpath_var=no
11787 ;;
11788
11789 *)
11790 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11791 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11792 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11793 else
11794 ld_shlibs=no
11795 fi
11796 ;;
11797 esac
11798
11799 if test no = "$ld_shlibs"; then
11800 runpath_var=
11801 hardcode_libdir_flag_spec=
11802 export_dynamic_flag_spec=
11803 whole_archive_flag_spec=
11804 fi
11805 else
11806 # PORTME fill in a description of your system's linker (not GNU ld)
11807 case $host_os in
11808 aix3*)
11809 allow_undefined_flag=unsupported
11810 always_export_symbols=yes
11811 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'
11812 # Note: this linker hardcodes the directories in LIBPATH if there
11813 # are no directories specified by -L.
11814 hardcode_minus_L=yes
11815 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11816 # Neither direct hardcoding nor static linking is supported with a
11817 # broken collect2.
11818 hardcode_direct=unsupported
11819 fi
11820 ;;
11821
11822 aix[4-9]*)
11823 if test ia64 = "$host_cpu"; then
11824 # On IA64, the linker does run time linking by default, so we don't
11825 # have to do anything special.
11826 aix_use_runtimelinking=no
11827 exp_sym_flag='-Bexport'
11828 no_entry_flag=
11829 else
11830 # If we're using GNU nm, then we don't want the "-C" option.
11831 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
11832 # Without the "-l" option, or with the "-B" option, AIX nm treats
11833 # weak defined symbols like other global defined symbols, whereas
11834 # GNU nm marks them as "W".
11835 # While the 'weak' keyword is ignored in the Export File, we need
11836 # it in the Import File for the 'aix-soname' feature, so we have
11837 # to replace the "-B" option with "-P" for AIX nm.
11838 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11839 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'
11840 else
11841 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'
11842 fi
11843 aix_use_runtimelinking=no
11844
11845 # Test if we are trying to use run time linking or normal
11846 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11847 # have runtime linking enabled, and use it for executables.
11848 # For shared libraries, we enable/disable runtime linking
11849 # depending on the kind of the shared library created -
11850 # when "with_aix_soname,aix_use_runtimelinking" is:
11851 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
11852 # "aix,yes" lib.so shared, rtl:yes, for executables
11853 # lib.a static archive
11854 # "both,no" lib.so.V(shr.o) shared, rtl:yes
11855 # lib.a(lib.so.V) shared, rtl:no, for executables
11856 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11857 # lib.a(lib.so.V) shared, rtl:no
11858 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
11859 # lib.a static archive
11860 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11861 for ld_flag in $LDFLAGS; do
11862 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11863 aix_use_runtimelinking=yes
11864 break
11865 fi
11866 done
11867 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11868 # With aix-soname=svr4, we create the lib.so.V shared archives only,
11869 # so we don't have lib.a shared libs to link our executables.
11870 # We have to force runtime linking in this case.
11871 aix_use_runtimelinking=yes
11872 LDFLAGS="$LDFLAGS -Wl,-brtl"
11873 fi
11874 ;;
11875 esac
11876
11877 exp_sym_flag='-bexport'
11878 no_entry_flag='-bnoentry'
11879 fi
11880
11881 # When large executables or shared objects are built, AIX ld can
11882 # have problems creating the table of contents. If linking a library
11883 # or program results in "error TOC overflow" add -mminimal-toc to
11884 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11885 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11886
11887 archive_cmds=''
11888 hardcode_direct=yes
11889 hardcode_direct_absolute=yes
11890 hardcode_libdir_separator=':'
11891 link_all_deplibs=yes
11892 file_list_spec='$wl-f,'
11893 case $with_aix_soname,$aix_use_runtimelinking in
11894 aix,*) ;; # traditional, no import file
11895 svr4,* | *,yes) # use import file
11896 # The Import File defines what to hardcode.
11897 hardcode_direct=no
11898 hardcode_direct_absolute=no
11899 ;;
11900 esac
11901
11902 if test yes = "$GCC"; then
11903 case $host_os in aix4.[012]|aix4.[012].*)
11904 # We only want to do this on AIX 4.2 and lower, the check
11905 # below for broken collect2 doesn't work under 4.3+
11906 collect2name=`$CC -print-prog-name=collect2`
11907 if test -f "$collect2name" &&
11908 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11909 then
11910 # We have reworked collect2
11911 :
11912 else
11913 # We have old collect2
11914 hardcode_direct=unsupported
11915 # It fails to find uninstalled libraries when the uninstalled
11916 # path is not listed in the libpath. Setting hardcode_minus_L
11917 # to unsupported forces relinking
11918 hardcode_minus_L=yes
11919 hardcode_libdir_flag_spec='-L$libdir'
11920 hardcode_libdir_separator=
11921 fi
11922 ;;
11923 esac
11924 shared_flag='-shared'
11925 if test yes = "$aix_use_runtimelinking"; then
11926 shared_flag="$shared_flag "'$wl-G'
11927 fi
11928 # Need to ensure runtime linking is disabled for the traditional
11929 # shared library, or the linker may eventually find shared libraries
11930 # /with/ Import File - we do not want to mix them.
11931 shared_flag_aix='-shared'
11932 shared_flag_svr4='-shared $wl-G'
11933 else
11934 # not using gcc
11935 if test ia64 = "$host_cpu"; then
11936 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11937 # chokes on -Wl,-G. The following line is correct:
11938 shared_flag='-G'
11939 else
11940 if test yes = "$aix_use_runtimelinking"; then
11941 shared_flag='$wl-G'
11942 else
11943 shared_flag='$wl-bM:SRE'
11944 fi
11945 shared_flag_aix='$wl-bM:SRE'
11946 shared_flag_svr4='$wl-G'
11947 fi
11948 fi
11949
11950 export_dynamic_flag_spec='$wl-bexpall'
11951 # It seems that -bexpall does not export symbols beginning with
11952 # underscore (_), so it is better to generate a list of symbols to export.
11953 always_export_symbols=yes
11954 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11955 # Warning - without using the other runtime loading flags (-brtl),
11956 # -berok will link without error, but may produce a broken library.
11957 allow_undefined_flag='-berok'
11958 # Determine the default libpath from the value encoded in an
11959 # empty executable.
11960 if test set = "${lt_cv_aix_libpath+set}"; then
11961 aix_libpath=$lt_cv_aix_libpath
11962 else
11963 if test ${lt_cv_aix_libpath_+y}
11964 then :
11965 printf %s "(cached) " >&6
11966 else case e in #(
11967 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11968 /* end confdefs.h. */
11969
11970 int
11971 main (void)
11972 {
11973
11974 ;
11975 return 0;
11976 }
11977 _ACEOF
11978 if ac_fn_c_try_link "$LINENO"
11979 then :
11980
11981 lt_aix_libpath_sed='
11982 /Import File Strings/,/^$/ {
11983 /^0/ {
11984 s/^0 *\([^ ]*\) *$/\1/
11985 p
11986 }
11987 }'
11988 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11989 # Check for a 64-bit object if we didn't find anything.
11990 if test -z "$lt_cv_aix_libpath_"; then
11991 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11992 fi
11993 fi
11994 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11995 conftest$ac_exeext conftest.$ac_ext
11996 if test -z "$lt_cv_aix_libpath_"; then
11997 lt_cv_aix_libpath_=/usr/lib:/lib
11998 fi
11999 ;;
12000 esac
12001 fi
12002
12003 aix_libpath=$lt_cv_aix_libpath_
12004 fi
12005
12006 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12007 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
12008 else
12009 if test ia64 = "$host_cpu"; then
12010 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
12011 allow_undefined_flag="-z nodefs"
12012 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"
12013 else
12014 # Determine the default libpath from the value encoded in an
12015 # empty executable.
12016 if test set = "${lt_cv_aix_libpath+set}"; then
12017 aix_libpath=$lt_cv_aix_libpath
12018 else
12019 if test ${lt_cv_aix_libpath_+y}
12020 then :
12021 printf %s "(cached) " >&6
12022 else case e in #(
12023 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12024 /* end confdefs.h. */
12025
12026 int
12027 main (void)
12028 {
12029
12030 ;
12031 return 0;
12032 }
12033 _ACEOF
12034 if ac_fn_c_try_link "$LINENO"
12035 then :
12036
12037 lt_aix_libpath_sed='
12038 /Import File Strings/,/^$/ {
12039 /^0/ {
12040 s/^0 *\([^ ]*\) *$/\1/
12041 p
12042 }
12043 }'
12044 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12045 # Check for a 64-bit object if we didn't find anything.
12046 if test -z "$lt_cv_aix_libpath_"; then
12047 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12048 fi
12049 fi
12050 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12051 conftest$ac_exeext conftest.$ac_ext
12052 if test -z "$lt_cv_aix_libpath_"; then
12053 lt_cv_aix_libpath_=/usr/lib:/lib
12054 fi
12055 ;;
12056 esac
12057 fi
12058
12059 aix_libpath=$lt_cv_aix_libpath_
12060 fi
12061
12062 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12063 # Warning - without using the other run time loading flags,
12064 # -berok will link without error, but may produce a broken library.
12065 no_undefined_flag=' $wl-bernotok'
12066 allow_undefined_flag=' $wl-berok'
12067 if test yes = "$with_gnu_ld"; then
12068 # We only use this code for GNU lds that support --whole-archive.
12069 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
12070 else
12071 # Exported symbols can be pulled into shared objects from archives
12072 whole_archive_flag_spec='$convenience'
12073 fi
12074 archive_cmds_need_lc=yes
12075 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
12076 # -brtl affects multiple linker settings, -berok does not and is overridden later
12077 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
12078 if test svr4 != "$with_aix_soname"; then
12079 # This is similar to how AIX traditionally builds its shared libraries.
12080 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'
12081 fi
12082 if test aix != "$with_aix_soname"; then
12083 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'
12084 else
12085 # used by -dlpreopen to get the symbols
12086 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
12087 fi
12088 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
12089 fi
12090 fi
12091 ;;
12092
12093 amigaos*)
12094 case $host_cpu in
12095 powerpc)
12096 # see comment about AmigaOS4 .so support
12097 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12098 archive_expsym_cmds=''
12099 ;;
12100 m68k)
12101 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)'
12102 hardcode_libdir_flag_spec='-L$libdir'
12103 hardcode_minus_L=yes
12104 ;;
12105 esac
12106 ;;
12107
12108 bsdi[45]*)
12109 export_dynamic_flag_spec=-rdynamic
12110 ;;
12111
12112 cygwin* | mingw* | windows* | pw32* | cegcc*)
12113 # When not using gcc, we currently assume that we are using
12114 # Microsoft Visual C++ or Intel C++ Compiler.
12115 # hardcode_libdir_flag_spec is actually meaningless, as there is
12116 # no search path for DLLs.
12117 case $cc_basename in
12118 cl* | icl*)
12119 # Native MSVC or ICC
12120 hardcode_libdir_flag_spec=' '
12121 allow_undefined_flag=unsupported
12122 always_export_symbols=yes
12123 file_list_spec='@'
12124 # Tell ltmain to make .lib files, not .a files.
12125 libext=lib
12126 # Tell ltmain to make .dll files, not .so files.
12127 shrext_cmds=.dll
12128 # FIXME: Setting linknames here is a bad hack.
12129 archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
12130 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12131 cp "$export_symbols" "$output_objdir/$soname.def";
12132 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
12133 else
12134 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
12135 fi~
12136 $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12137 linknames='
12138 # The linker will not automatically build a static lib if we build a DLL.
12139 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12140 enable_shared_with_static_runtimes=yes
12141 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12142 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12143 # Don't use ranlib
12144 old_postinstall_cmds='chmod 644 $oldlib'
12145 postlink_cmds='lt_outputfile="@OUTPUT@"~
12146 lt_tool_outputfile="@TOOL_OUTPUT@"~
12147 case $lt_outputfile in
12148 *.exe|*.EXE) ;;
12149 *)
12150 lt_outputfile=$lt_outputfile.exe
12151 lt_tool_outputfile=$lt_tool_outputfile.exe
12152 ;;
12153 esac~
12154 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
12155 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12156 $RM "$lt_outputfile.manifest";
12157 fi'
12158 ;;
12159 *)
12160 # Assume MSVC and ICC wrapper
12161 hardcode_libdir_flag_spec=' '
12162 allow_undefined_flag=unsupported
12163 # Tell ltmain to make .lib files, not .a files.
12164 libext=lib
12165 # Tell ltmain to make .dll files, not .so files.
12166 shrext_cmds=.dll
12167 # FIXME: Setting linknames here is a bad hack.
12168 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12169 # The linker will automatically build a .lib file if we build a DLL.
12170 old_archive_from_new_cmds='true'
12171 # FIXME: Should let the user specify the lib program.
12172 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12173 enable_shared_with_static_runtimes=yes
12174 ;;
12175 esac
12176 ;;
12177
12178 darwin* | rhapsody*)
12179
12180
12181 archive_cmds_need_lc=no
12182 hardcode_direct=no
12183 hardcode_automatic=yes
12184 hardcode_shlibpath_var=unsupported
12185 if test yes = "$lt_cv_ld_force_load"; then
12186 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\"`'
12187
12188 else
12189 whole_archive_flag_spec=''
12190 fi
12191 link_all_deplibs=yes
12192 allow_undefined_flag=$_lt_dar_allow_undefined
12193 case $cc_basename in
12194 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
12195 *) _lt_dar_can_shared=$GCC ;;
12196 esac
12197 if test yes = "$_lt_dar_can_shared"; then
12198 output_verbose_link_cmd=func_echo_all
12199 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
12200 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
12201 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"
12202 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"
12203
12204 else
12205 ld_shlibs=no
12206 fi
12207
12208 ;;
12209
12210 dgux*)
12211 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12212 hardcode_libdir_flag_spec='-L$libdir'
12213 hardcode_shlibpath_var=no
12214 ;;
12215
12216 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12217 # support. Future versions do this automatically, but an explicit c++rt0.o
12218 # does not break anything, and helps significantly (at the cost of a little
12219 # extra space).
12220 freebsd2.2*)
12221 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12222 hardcode_libdir_flag_spec='-R$libdir'
12223 hardcode_direct=yes
12224 hardcode_shlibpath_var=no
12225 ;;
12226
12227 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12228 freebsd2.*)
12229 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12230 hardcode_direct=yes
12231 hardcode_minus_L=yes
12232 hardcode_shlibpath_var=no
12233 ;;
12234
12235 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12236 freebsd* | dragonfly* | midnightbsd*)
12237 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12238 hardcode_libdir_flag_spec='-R$libdir'
12239 hardcode_direct=yes
12240 hardcode_shlibpath_var=no
12241 ;;
12242
12243 hpux9*)
12244 if test yes = "$GCC"; then
12245 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'
12246 else
12247 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'
12248 fi
12249 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12250 hardcode_libdir_separator=:
12251 hardcode_direct=yes
12252
12253 # hardcode_minus_L: Not really in the search PATH,
12254 # but as the default location of the library.
12255 hardcode_minus_L=yes
12256 export_dynamic_flag_spec='$wl-E'
12257 ;;
12258
12259 hpux10*)
12260 if test yes,no = "$GCC,$with_gnu_ld"; then
12261 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12262 else
12263 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12264 fi
12265 if test no = "$with_gnu_ld"; then
12266 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12267 hardcode_libdir_separator=:
12268 hardcode_direct=yes
12269 hardcode_direct_absolute=yes
12270 export_dynamic_flag_spec='$wl-E'
12271 # hardcode_minus_L: Not really in the search PATH,
12272 # but as the default location of the library.
12273 hardcode_minus_L=yes
12274 fi
12275 ;;
12276
12277 hpux11*)
12278 if test yes,no = "$GCC,$with_gnu_ld"; then
12279 case $host_cpu in
12280 hppa*64*)
12281 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12282 ;;
12283 ia64*)
12284 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12285 ;;
12286 *)
12287 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12288 ;;
12289 esac
12290 else
12291 case $host_cpu in
12292 hppa*64*)
12293 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12294 ;;
12295 ia64*)
12296 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12297 ;;
12298 *)
12299
12300 # Older versions of the 11.00 compiler do not understand -b yet
12301 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12303 printf %s "checking if $CC understands -b... " >&6; }
12304 if test ${lt_cv_prog_compiler__b+y}
12305 then :
12306 printf %s "(cached) " >&6
12307 else case e in #(
12308 e) lt_cv_prog_compiler__b=no
12309 save_LDFLAGS=$LDFLAGS
12310 LDFLAGS="$LDFLAGS -b"
12311 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12312 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12313 # The linker can only warn and ignore the option if not recognized
12314 # So say no if there are warnings
12315 if test -s conftest.err; then
12316 # Append any errors to the config.log.
12317 cat conftest.err 1>&5
12318 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12319 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12320 if diff conftest.exp conftest.er2 >/dev/null; then
12321 lt_cv_prog_compiler__b=yes
12322 fi
12323 else
12324 lt_cv_prog_compiler__b=yes
12325 fi
12326 fi
12327 $RM -r conftest*
12328 LDFLAGS=$save_LDFLAGS
12329 ;;
12330 esac
12331 fi
12332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12333 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
12334
12335 if test yes = "$lt_cv_prog_compiler__b"; then
12336 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12337 else
12338 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12339 fi
12340
12341 ;;
12342 esac
12343 fi
12344 if test no = "$with_gnu_ld"; then
12345 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12346 hardcode_libdir_separator=:
12347
12348 case $host_cpu in
12349 hppa*64*|ia64*)
12350 hardcode_direct=no
12351 hardcode_shlibpath_var=no
12352 ;;
12353 *)
12354 hardcode_direct=yes
12355 hardcode_direct_absolute=yes
12356 export_dynamic_flag_spec='$wl-E'
12357
12358 # hardcode_minus_L: Not really in the search PATH,
12359 # but as the default location of the library.
12360 hardcode_minus_L=yes
12361 ;;
12362 esac
12363 fi
12364 ;;
12365
12366 irix5* | irix6* | nonstopux*)
12367 if test yes = "$GCC"; then
12368 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'
12369 # Try to use the -exported_symbol ld option, if it does not
12370 # work, assume that -exports_file does not work either and
12371 # implicitly export all symbols.
12372 # This should be the same for all languages, so no per-tag cache variable.
12373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12374 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12375 if test ${lt_cv_irix_exported_symbol+y}
12376 then :
12377 printf %s "(cached) " >&6
12378 else case e in #(
12379 e) save_LDFLAGS=$LDFLAGS
12380 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
12381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12382 /* end confdefs.h. */
12383 int foo (void) { return 0; }
12384 _ACEOF
12385 if ac_fn_c_try_link "$LINENO"
12386 then :
12387 lt_cv_irix_exported_symbol=yes
12388 else case e in #(
12389 e) lt_cv_irix_exported_symbol=no ;;
12390 esac
12391 fi
12392 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12393 conftest$ac_exeext conftest.$ac_ext
12394 LDFLAGS=$save_LDFLAGS ;;
12395 esac
12396 fi
12397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12398 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
12399 if test yes = "$lt_cv_irix_exported_symbol"; then
12400 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'
12401 fi
12402 link_all_deplibs=no
12403 else
12404 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'
12405 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'
12406 fi
12407 archive_cmds_need_lc='no'
12408 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12409 hardcode_libdir_separator=:
12410 inherit_rpath=yes
12411 link_all_deplibs=yes
12412 ;;
12413
12414 linux*)
12415 case $cc_basename in
12416 tcc*)
12417 # Fabrice Bellard et al's Tiny C Compiler
12418 ld_shlibs=yes
12419 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12420 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12421 ;;
12422 esac
12423 ;;
12424
12425 *-mlibc)
12426 ;;
12427
12428 netbsd* | netbsdelf*-gnu)
12429 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12430 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12431 else
12432 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12433 fi
12434 hardcode_libdir_flag_spec='-R$libdir'
12435 hardcode_direct=yes
12436 hardcode_shlibpath_var=no
12437 ;;
12438
12439 newsos6)
12440 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12441 hardcode_direct=yes
12442 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12443 hardcode_libdir_separator=:
12444 hardcode_shlibpath_var=no
12445 ;;
12446
12447 *nto* | *qnx*)
12448 ;;
12449
12450 openbsd*)
12451 if test -f /usr/libexec/ld.so; then
12452 hardcode_direct=yes
12453 hardcode_shlibpath_var=no
12454 hardcode_direct_absolute=yes
12455 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12456 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12457 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12458 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12459 export_dynamic_flag_spec='$wl-E'
12460 else
12461 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12462 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12463 fi
12464 else
12465 ld_shlibs=no
12466 fi
12467 ;;
12468
12469 os2*)
12470 hardcode_libdir_flag_spec='-L$libdir'
12471 hardcode_minus_L=yes
12472 allow_undefined_flag=unsupported
12473 shrext_cmds=.dll
12474 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12475 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12476 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12477 $ECHO EXPORTS >> $output_objdir/$libname.def~
12478 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12479 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12480 emximp -o $lib $output_objdir/$libname.def'
12481 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12482 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12483 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12484 $ECHO EXPORTS >> $output_objdir/$libname.def~
12485 prefix_cmds="$SED"~
12486 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12487 prefix_cmds="$prefix_cmds -e 1d";
12488 fi~
12489 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12490 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12491 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12492 emximp -o $lib $output_objdir/$libname.def'
12493 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12494 enable_shared_with_static_runtimes=yes
12495 file_list_spec='@'
12496 ;;
12497
12498 osf3*)
12499 if test yes = "$GCC"; then
12500 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12501 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'
12502 else
12503 allow_undefined_flag=' -expect_unresolved \*'
12504 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'
12505 fi
12506 archive_cmds_need_lc='no'
12507 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12508 hardcode_libdir_separator=:
12509 ;;
12510
12511 osf4* | osf5*) # as osf3* with the addition of -msym flag
12512 if test yes = "$GCC"; then
12513 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12514 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'
12515 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12516 else
12517 allow_undefined_flag=' -expect_unresolved \*'
12518 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'
12519 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~
12520 $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'
12521
12522 # Both c and cxx compiler support -rpath directly
12523 hardcode_libdir_flag_spec='-rpath $libdir'
12524 fi
12525 archive_cmds_need_lc='no'
12526 hardcode_libdir_separator=:
12527 ;;
12528
12529 serenity*)
12530 ;;
12531
12532 solaris*)
12533 no_undefined_flag=' -z defs'
12534 if test yes = "$GCC"; then
12535 wlarc='$wl'
12536 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12537 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12538 $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'
12539 else
12540 case `$CC -V 2>&1` in
12541 *"Compilers 5.0"*)
12542 wlarc=''
12543 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12544 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12545 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12546 ;;
12547 *)
12548 wlarc='$wl'
12549 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12550 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12551 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12552 ;;
12553 esac
12554 fi
12555 hardcode_libdir_flag_spec='-R$libdir'
12556 hardcode_shlibpath_var=no
12557 case $host_os in
12558 solaris2.[0-5] | solaris2.[0-5].*) ;;
12559 *)
12560 # The compiler driver will combine and reorder linker options,
12561 # but understands '-z linker_flag'. GCC discards it without '$wl',
12562 # but is careful enough not to reorder.
12563 # Supported since Solaris 2.6 (maybe 2.5.1?)
12564 if test yes = "$GCC"; then
12565 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12566 else
12567 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12568 fi
12569 ;;
12570 esac
12571 link_all_deplibs=yes
12572 ;;
12573
12574 sunos4*)
12575 if test sequent = "$host_vendor"; then
12576 # Use $CC to link under sequent, because it throws in some extra .o
12577 # files that make .init and .fini sections work.
12578 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12579 else
12580 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12581 fi
12582 hardcode_libdir_flag_spec='-L$libdir'
12583 hardcode_direct=yes
12584 hardcode_minus_L=yes
12585 hardcode_shlibpath_var=no
12586 ;;
12587
12588 sysv4)
12589 case $host_vendor in
12590 sni)
12591 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12592 hardcode_direct=yes # is this really true???
12593 ;;
12594 siemens)
12595 ## LD is ld it makes a PLAMLIB
12596 ## CC just makes a GrossModule.
12597 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12598 reload_cmds='$CC -r -o $output$reload_objs'
12599 hardcode_direct=no
12600 ;;
12601 motorola)
12602 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12603 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12604 ;;
12605 esac
12606 runpath_var='LD_RUN_PATH'
12607 hardcode_shlibpath_var=no
12608 ;;
12609
12610 sysv4.3*)
12611 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12612 hardcode_shlibpath_var=no
12613 export_dynamic_flag_spec='-Bexport'
12614 ;;
12615
12616 sysv4*MP*)
12617 if test -d /usr/nec; then
12618 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12619 hardcode_shlibpath_var=no
12620 runpath_var=LD_RUN_PATH
12621 hardcode_runpath_var=yes
12622 ld_shlibs=yes
12623 fi
12624 ;;
12625
12626 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12627 no_undefined_flag='$wl-z,text'
12628 archive_cmds_need_lc=no
12629 hardcode_shlibpath_var=no
12630 runpath_var='LD_RUN_PATH'
12631
12632 if test yes = "$GCC"; then
12633 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12634 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12635 else
12636 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12637 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12638 fi
12639 ;;
12640
12641 sysv5* | sco3.2v5* | sco5v6*)
12642 # Note: We CANNOT use -z defs as we might desire, because we do not
12643 # link with -lc, and that would cause any symbols used from libc to
12644 # always be unresolved, which means just about no library would
12645 # ever link correctly. If we're not using GNU ld we use -z text
12646 # though, which does catch some bad symbols but isn't as heavy-handed
12647 # as -z defs.
12648 no_undefined_flag='$wl-z,text'
12649 allow_undefined_flag='$wl-z,nodefs'
12650 archive_cmds_need_lc=no
12651 hardcode_shlibpath_var=no
12652 hardcode_libdir_flag_spec='$wl-R,$libdir'
12653 hardcode_libdir_separator=':'
12654 link_all_deplibs=yes
12655 export_dynamic_flag_spec='$wl-Bexport'
12656 runpath_var='LD_RUN_PATH'
12657
12658 if test yes = "$GCC"; then
12659 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12660 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12661 else
12662 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12663 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12664 fi
12665 ;;
12666
12667 uts4*)
12668 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12669 hardcode_libdir_flag_spec='-L$libdir'
12670 hardcode_shlibpath_var=no
12671 ;;
12672
12673 *)
12674 ld_shlibs=no
12675 ;;
12676 esac
12677
12678 if test sni = "$host_vendor"; then
12679 case $host in
12680 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12681 export_dynamic_flag_spec='$wl-Blargedynsym'
12682 ;;
12683 esac
12684 fi
12685 fi
12686
12687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12688 printf "%s\n" "$ld_shlibs" >&6; }
12689 test no = "$ld_shlibs" && can_build_shared=no
12690
12691 with_gnu_ld=$with_gnu_ld
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707 #
12708 # Do we need to explicitly link libc?
12709 #
12710 case "x$archive_cmds_need_lc" in
12711 x|xyes)
12712 # Assume -lc should be added
12713 archive_cmds_need_lc=yes
12714
12715 if test yes,yes = "$GCC,$enable_shared"; then
12716 case $archive_cmds in
12717 *'~'*)
12718 # FIXME: we may have to deal with multi-command sequences.
12719 ;;
12720 '$CC '*)
12721 # Test whether the compiler implicitly links with -lc since on some
12722 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12723 # to ld, don't add -lc before -lgcc.
12724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12725 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
12726 if test ${lt_cv_archive_cmds_need_lc+y}
12727 then :
12728 printf %s "(cached) " >&6
12729 else case e in #(
12730 e) $RM conftest*
12731 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12732
12733 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12734 (eval $ac_compile) 2>&5
12735 ac_status=$?
12736 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12737 test $ac_status = 0; } 2>conftest.err; then
12738 soname=conftest
12739 lib=conftest
12740 libobjs=conftest.$ac_objext
12741 deplibs=
12742 wl=$lt_prog_compiler_wl
12743 pic_flag=$lt_prog_compiler_pic
12744 compiler_flags=-v
12745 linker_flags=-v
12746 verstring=
12747 output_objdir=.
12748 libname=conftest
12749 lt_save_allow_undefined_flag=$allow_undefined_flag
12750 allow_undefined_flag=
12751 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12752 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12753 ac_status=$?
12754 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12755 test $ac_status = 0; }
12756 then
12757 lt_cv_archive_cmds_need_lc=no
12758 else
12759 lt_cv_archive_cmds_need_lc=yes
12760 fi
12761 allow_undefined_flag=$lt_save_allow_undefined_flag
12762 else
12763 cat conftest.err 1>&5
12764 fi
12765 $RM conftest*
12766 ;;
12767 esac
12768 fi
12769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12770 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
12771 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12772 ;;
12773 esac
12774 fi
12775 ;;
12776 esac
12777
12778
12779
12780
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802
12803
12804
12805
12806
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819
12820
12821
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860
12861
12862
12863
12864
12865
12866
12867
12868
12869
12870
12871
12872
12873
12874
12875
12876
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890
12891
12892
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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12930 printf %s "checking dynamic linker characteristics... " >&6; }
12931
12932 if test yes = "$GCC"; then
12933 case $host_os in
12934 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12935 *) lt_awk_arg='/^libraries:/' ;;
12936 esac
12937 case $host_os in
12938 mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12939 *) lt_sed_strip_eq='s|=/|/|g' ;;
12940 esac
12941 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12942 case $lt_search_path_spec in
12943 *\;*)
12944 # if the path contains ";" then we assume it to be the separator
12945 # otherwise default to the standard path separator (i.e. ":") - it is
12946 # assumed that no part of a normal pathname contains ";" but that should
12947 # okay in the real world where ";" in dirpaths is itself problematic.
12948 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12949 ;;
12950 *)
12951 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12952 ;;
12953 esac
12954 # Ok, now we have the path, separated by spaces, we can step through it
12955 # and add multilib dir if necessary...
12956 lt_tmp_lt_search_path_spec=
12957 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12958 # ...but if some path component already ends with the multilib dir we assume
12959 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12960 case "$lt_multi_os_dir; $lt_search_path_spec " in
12961 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12962 lt_multi_os_dir=
12963 ;;
12964 esac
12965 for lt_sys_path in $lt_search_path_spec; do
12966 if test -d "$lt_sys_path$lt_multi_os_dir"; then
12967 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12968 elif test -n "$lt_multi_os_dir"; then
12969 test -d "$lt_sys_path" && \
12970 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12971 fi
12972 done
12973 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12974 BEGIN {RS = " "; FS = "/|\n";} {
12975 lt_foo = "";
12976 lt_count = 0;
12977 for (lt_i = NF; lt_i > 0; lt_i--) {
12978 if ($lt_i != "" && $lt_i != ".") {
12979 if ($lt_i == "..") {
12980 lt_count++;
12981 } else {
12982 if (lt_count == 0) {
12983 lt_foo = "/" $lt_i lt_foo;
12984 } else {
12985 lt_count--;
12986 }
12987 }
12988 }
12989 }
12990 if (lt_foo != "") { lt_freq[lt_foo]++; }
12991 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12992 }'`
12993 # AWK program above erroneously prepends '/' to C:/dos/paths
12994 # for these hosts.
12995 case $host_os in
12996 mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12997 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12998 esac
12999 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13000 else
13001 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13002 fi
13003 library_names_spec=
13004 libname_spec='lib$name'
13005 soname_spec=
13006 shrext_cmds=.so
13007 postinstall_cmds=
13008 postuninstall_cmds=
13009 finish_cmds=
13010 finish_eval=
13011 shlibpath_var=
13012 shlibpath_overrides_runpath=unknown
13013 version_type=none
13014 dynamic_linker="$host_os ld.so"
13015 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13016 need_lib_prefix=unknown
13017 hardcode_into_libs=no
13018
13019 # when you set need_version to no, make sure it does not cause -set_version
13020 # flags to be left without arguments
13021 need_version=unknown
13022
13023
13024
13025 case $host_os in
13026 aix3*)
13027 version_type=linux # correct to gnu/linux during the next big refactor
13028 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
13029 shlibpath_var=LIBPATH
13030
13031 # AIX 3 has no versioning support, so we append a major version to the name.
13032 soname_spec='$libname$release$shared_ext$major'
13033 ;;
13034
13035 aix[4-9]*)
13036 version_type=linux # correct to gnu/linux during the next big refactor
13037 need_lib_prefix=no
13038 need_version=no
13039 hardcode_into_libs=yes
13040 if test ia64 = "$host_cpu"; then
13041 # AIX 5 supports IA64
13042 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
13043 shlibpath_var=LD_LIBRARY_PATH
13044 else
13045 # With GCC up to 2.95.x, collect2 would create an import file
13046 # for dependence libraries. The import file would start with
13047 # the line '#! .'. This would cause the generated library to
13048 # depend on '.', always an invalid library. This was fixed in
13049 # development snapshots of GCC prior to 3.0.
13050 case $host_os in
13051 aix4 | aix4.[01] | aix4.[01].*)
13052 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13053 echo ' yes '
13054 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
13055 :
13056 else
13057 can_build_shared=no
13058 fi
13059 ;;
13060 esac
13061 # Using Import Files as archive members, it is possible to support
13062 # filename-based versioning of shared library archives on AIX. While
13063 # this would work for both with and without runtime linking, it will
13064 # prevent static linking of such archives. So we do filename-based
13065 # shared library versioning with .so extension only, which is used
13066 # when both runtime linking and shared linking is enabled.
13067 # Unfortunately, runtime linking may impact performance, so we do
13068 # not want this to be the default eventually. Also, we use the
13069 # versioned .so libs for executables only if there is the -brtl
13070 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
13071 # To allow for filename-based versioning support, we need to create
13072 # libNAME.so.V as an archive file, containing:
13073 # *) an Import File, referring to the versioned filename of the
13074 # archive as well as the shared archive member, telling the
13075 # bitwidth (32 or 64) of that shared object, and providing the
13076 # list of exported symbols of that shared object, eventually
13077 # decorated with the 'weak' keyword
13078 # *) the shared object with the F_LOADONLY flag set, to really avoid
13079 # it being seen by the linker.
13080 # At run time we better use the real file rather than another symlink,
13081 # but for link time we create the symlink libNAME.so -> libNAME.so.V
13082
13083 case $with_aix_soname,$aix_use_runtimelinking in
13084 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
13085 # soname into executable. Probably we can add versioning support to
13086 # collect2, so additional links can be useful in future.
13087 aix,yes) # traditional libtool
13088 dynamic_linker='AIX unversionable lib.so'
13089 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13090 # instead of lib<name>.a to let people know that these are not
13091 # typical AIX shared libraries.
13092 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13093 ;;
13094 aix,no) # traditional AIX only
13095 dynamic_linker='AIX lib.a(lib.so.V)'
13096 # We preserve .a as extension for shared libraries through AIX4.2
13097 # and later when we are not doing run time linking.
13098 library_names_spec='$libname$release.a $libname.a'
13099 soname_spec='$libname$release$shared_ext$major'
13100 ;;
13101 svr4,*) # full svr4 only
13102 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
13103 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13104 # We do not specify a path in Import Files, so LIBPATH fires.
13105 shlibpath_overrides_runpath=yes
13106 ;;
13107 *,yes) # both, prefer svr4
13108 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
13109 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13110 # unpreferred sharedlib libNAME.a needs extra handling
13111 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"'
13112 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"'
13113 # We do not specify a path in Import Files, so LIBPATH fires.
13114 shlibpath_overrides_runpath=yes
13115 ;;
13116 *,no) # both, prefer aix
13117 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
13118 library_names_spec='$libname$release.a $libname.a'
13119 soname_spec='$libname$release$shared_ext$major'
13120 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
13121 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)'
13122 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"'
13123 ;;
13124 esac
13125 shlibpath_var=LIBPATH
13126 fi
13127 ;;
13128
13129 amigaos*)
13130 case $host_cpu in
13131 powerpc)
13132 # Since July 2007 AmigaOS4 officially supports .so libraries.
13133 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13134 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13135 ;;
13136 m68k)
13137 library_names_spec='$libname.ixlibrary $libname.a'
13138 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13139 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'
13140 ;;
13141 esac
13142 ;;
13143
13144 beos*)
13145 library_names_spec='$libname$shared_ext'
13146 dynamic_linker="$host_os ld.so"
13147 shlibpath_var=LIBRARY_PATH
13148 ;;
13149
13150 bsdi[45]*)
13151 version_type=linux # correct to gnu/linux during the next big refactor
13152 need_version=no
13153 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13154 soname_spec='$libname$release$shared_ext$major'
13155 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13156 shlibpath_var=LD_LIBRARY_PATH
13157 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13158 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13159 # the default ld.so.conf also contains /usr/contrib/lib and
13160 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13161 # libtool to hard-code these into programs
13162 ;;
13163
13164 cygwin* | mingw* | windows* | pw32* | cegcc*)
13165 version_type=windows
13166 shrext_cmds=.dll
13167 need_version=no
13168 need_lib_prefix=no
13169
13170 case $GCC,$cc_basename in
13171 yes,*)
13172 # gcc
13173 library_names_spec='$libname.dll.a'
13174 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13175 # If user builds GCC with multilib enabled,
13176 # it should just install on $(libdir)
13177 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
13178 if test xyes = x"$multilib"; then
13179 postinstall_cmds='base_file=`basename \$file`~
13180 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13181 dldir=$destdir/`dirname \$dlpath`~
13182 $install_prog $dir/$dlname $destdir/$dlname~
13183 chmod a+x $destdir/$dlname~
13184 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13185 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
13186 fi'
13187 else
13188 postinstall_cmds='base_file=`basename \$file`~
13189 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13190 dldir=$destdir/`dirname \$dlpath`~
13191 test -d \$dldir || mkdir -p \$dldir~
13192 $install_prog $dir/$dlname \$dldir/$dlname~
13193 chmod a+x \$dldir/$dlname~
13194 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13195 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13196 fi'
13197 fi
13198 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13199 dlpath=$dir/\$dldll~
13200 $RM \$dlpath'
13201 shlibpath_overrides_runpath=yes
13202
13203 case $host_os in
13204 cygwin*)
13205 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13206 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13207
13208 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13209 ;;
13210 mingw* | windows* | cegcc*)
13211 # MinGW DLLs use traditional 'lib' prefix
13212 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13213 ;;
13214 pw32*)
13215 # pw32 DLLs use 'pw' prefix rather than 'lib'
13216 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13217 ;;
13218 esac
13219 dynamic_linker='Win32 ld.exe'
13220 ;;
13221
13222 *,cl* | *,icl*)
13223 # Native MSVC or ICC
13224 libname_spec='$name'
13225 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13226 library_names_spec='$libname.dll.lib'
13227
13228 case $build_os in
13229 mingw* | windows*)
13230 sys_lib_search_path_spec=
13231 lt_save_ifs=$IFS
13232 IFS=';'
13233 for lt_path in $LIB
13234 do
13235 IFS=$lt_save_ifs
13236 # Let DOS variable expansion print the short 8.3 style file name.
13237 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13238 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13239 done
13240 IFS=$lt_save_ifs
13241 # Convert to MSYS style.
13242 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13243 ;;
13244 cygwin*)
13245 # Convert to unix form, then to dos form, then back to unix form
13246 # but this time dos style (no spaces!) so that the unix form looks
13247 # like /cygdrive/c/PROGRA~1:/cygdr...
13248 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13249 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13250 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13251 ;;
13252 *)
13253 sys_lib_search_path_spec=$LIB
13254 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13255 # It is most probably a Windows format PATH.
13256 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13257 else
13258 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13259 fi
13260 # FIXME: find the short name or the path components, as spaces are
13261 # common. (e.g. "Program Files" -> "PROGRA~1")
13262 ;;
13263 esac
13264
13265 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13266 postinstall_cmds='base_file=`basename \$file`~
13267 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13268 dldir=$destdir/`dirname \$dlpath`~
13269 test -d \$dldir || mkdir -p \$dldir~
13270 $install_prog $dir/$dlname \$dldir/$dlname'
13271 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13272 dlpath=$dir/\$dldll~
13273 $RM \$dlpath'
13274 shlibpath_overrides_runpath=yes
13275 dynamic_linker='Win32 link.exe'
13276 ;;
13277
13278 *)
13279 # Assume MSVC and ICC wrapper
13280 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
13281 dynamic_linker='Win32 ld.exe'
13282 ;;
13283 esac
13284 # FIXME: first we should search . and the directory the executable is in
13285 shlibpath_var=PATH
13286 ;;
13287
13288 darwin* | rhapsody*)
13289 dynamic_linker="$host_os dyld"
13290 version_type=darwin
13291 need_lib_prefix=no
13292 need_version=no
13293 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
13294 soname_spec='$libname$release$major$shared_ext'
13295 shlibpath_overrides_runpath=yes
13296 shlibpath_var=DYLD_LIBRARY_PATH
13297 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13298
13299 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13300 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13301 ;;
13302
13303 dgux*)
13304 version_type=linux # correct to gnu/linux during the next big refactor
13305 need_lib_prefix=no
13306 need_version=no
13307 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13308 soname_spec='$libname$release$shared_ext$major'
13309 shlibpath_var=LD_LIBRARY_PATH
13310 ;;
13311
13312 freebsd* | dragonfly* | midnightbsd*)
13313 # DragonFly does not have aout. When/if they implement a new
13314 # versioning mechanism, adjust this.
13315 if test -x /usr/bin/objformat; then
13316 objformat=`/usr/bin/objformat`
13317 else
13318 case $host_os in
13319 freebsd[23].*) objformat=aout ;;
13320 *) objformat=elf ;;
13321 esac
13322 fi
13323 version_type=freebsd-$objformat
13324 case $version_type in
13325 freebsd-elf*)
13326 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13327 soname_spec='$libname$release$shared_ext$major'
13328 need_version=no
13329 need_lib_prefix=no
13330 ;;
13331 freebsd-*)
13332 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13333 need_version=yes
13334 ;;
13335 esac
13336 case $host_cpu in
13337 powerpc64)
13338 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
13339 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
13340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13341 /* end confdefs.h. */
13342 int test_pointer_size[sizeof (void *) - 5];
13343
13344 _ACEOF
13345 if ac_fn_c_try_compile "$LINENO"
13346 then :
13347 shlibpath_var=LD_LIBRARY_PATH
13348 else case e in #(
13349 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
13350 esac
13351 fi
13352 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13353 ;;
13354 *)
13355 shlibpath_var=LD_LIBRARY_PATH
13356 ;;
13357 esac
13358 case $host_os in
13359 freebsd2.*)
13360 shlibpath_overrides_runpath=yes
13361 ;;
13362 freebsd3.[01]* | freebsdelf3.[01]*)
13363 shlibpath_overrides_runpath=yes
13364 hardcode_into_libs=yes
13365 ;;
13366 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13367 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13368 shlibpath_overrides_runpath=no
13369 hardcode_into_libs=yes
13370 ;;
13371 *) # from 4.6 on, and DragonFly
13372 shlibpath_overrides_runpath=yes
13373 hardcode_into_libs=yes
13374 ;;
13375 esac
13376 ;;
13377
13378 haiku*)
13379 version_type=linux # correct to gnu/linux during the next big refactor
13380 need_lib_prefix=no
13381 need_version=no
13382 dynamic_linker="$host_os runtime_loader"
13383 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13384 soname_spec='$libname$release$shared_ext$major'
13385 shlibpath_var=LIBRARY_PATH
13386 shlibpath_overrides_runpath=no
13387 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
13388 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
13389 hardcode_into_libs=no
13390 ;;
13391
13392 hpux9* | hpux10* | hpux11*)
13393 # Give a soname corresponding to the major version so that dld.sl refuses to
13394 # link against other versions.
13395 version_type=sunos
13396 need_lib_prefix=no
13397 need_version=no
13398 case $host_cpu in
13399 ia64*)
13400 shrext_cmds='.so'
13401 hardcode_into_libs=yes
13402 dynamic_linker="$host_os dld.so"
13403 shlibpath_var=LD_LIBRARY_PATH
13404 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13405 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13406 soname_spec='$libname$release$shared_ext$major'
13407 if test 32 = "$HPUX_IA64_MODE"; then
13408 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13409 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
13410 else
13411 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13412 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
13413 fi
13414 ;;
13415 hppa*64*)
13416 shrext_cmds='.sl'
13417 hardcode_into_libs=yes
13418 dynamic_linker="$host_os dld.sl"
13419 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13420 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13421 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13422 soname_spec='$libname$release$shared_ext$major'
13423 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13424 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13425 ;;
13426 *)
13427 shrext_cmds='.sl'
13428 dynamic_linker="$host_os dld.sl"
13429 shlibpath_var=SHLIB_PATH
13430 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13431 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13432 soname_spec='$libname$release$shared_ext$major'
13433 ;;
13434 esac
13435 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13436 postinstall_cmds='chmod 555 $lib'
13437 # or fails outright, so override atomically:
13438 install_override_mode=555
13439 ;;
13440
13441 interix[3-9]*)
13442 version_type=linux # correct to gnu/linux during the next big refactor
13443 need_lib_prefix=no
13444 need_version=no
13445 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13446 soname_spec='$libname$release$shared_ext$major'
13447 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13448 shlibpath_var=LD_LIBRARY_PATH
13449 shlibpath_overrides_runpath=no
13450 hardcode_into_libs=yes
13451 ;;
13452
13453 irix5* | irix6* | nonstopux*)
13454 case $host_os in
13455 nonstopux*) version_type=nonstopux ;;
13456 *)
13457 if test yes = "$lt_cv_prog_gnu_ld"; then
13458 version_type=linux # correct to gnu/linux during the next big refactor
13459 else
13460 version_type=irix
13461 fi ;;
13462 esac
13463 need_lib_prefix=no
13464 need_version=no
13465 soname_spec='$libname$release$shared_ext$major'
13466 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
13467 case $host_os in
13468 irix5* | nonstopux*)
13469 libsuff= shlibsuff=
13470 ;;
13471 *)
13472 case $LD in # libtool.m4 will add one of these switches to LD
13473 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13474 libsuff= shlibsuff= libmagic=32-bit;;
13475 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13476 libsuff=32 shlibsuff=N32 libmagic=N32;;
13477 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13478 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13479 *) libsuff= shlibsuff= libmagic=never-match;;
13480 esac
13481 ;;
13482 esac
13483 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13484 shlibpath_overrides_runpath=no
13485 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13486 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
13487 hardcode_into_libs=yes
13488 ;;
13489
13490 # No shared lib support for Linux oldld, aout, or coff.
13491 linux*oldld* | linux*aout* | linux*coff*)
13492 dynamic_linker=no
13493 ;;
13494
13495 linux*android*)
13496 version_type=none # Android doesn't support versioned libraries.
13497 need_lib_prefix=no
13498 need_version=no
13499 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
13500 soname_spec='$libname$release$shared_ext'
13501 finish_cmds=
13502 shlibpath_var=LD_LIBRARY_PATH
13503 shlibpath_overrides_runpath=yes
13504
13505 # This implies no fast_install, which is unacceptable.
13506 # Some rework will be needed to allow for fast_install
13507 # before this can be enabled.
13508 hardcode_into_libs=yes
13509
13510 dynamic_linker='Android linker'
13511 # -rpath works at least for libraries that are not overridden by
13512 # libraries installed in system locations.
13513 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13514 ;;
13515
13516 # This must be glibc/ELF.
13517 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13518 version_type=linux # correct to gnu/linux during the next big refactor
13519 need_lib_prefix=no
13520 need_version=no
13521 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13522 soname_spec='$libname$release$shared_ext$major'
13523 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13524 shlibpath_var=LD_LIBRARY_PATH
13525 shlibpath_overrides_runpath=no
13526
13527 # Some binutils ld are patched to set DT_RUNPATH
13528 if test ${lt_cv_shlibpath_overrides_runpath+y}
13529 then :
13530 printf %s "(cached) " >&6
13531 else case e in #(
13532 e) lt_cv_shlibpath_overrides_runpath=no
13533 save_LDFLAGS=$LDFLAGS
13534 save_libdir=$libdir
13535 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13536 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13538 /* end confdefs.h. */
13539
13540 int
13541 main (void)
13542 {
13543
13544 ;
13545 return 0;
13546 }
13547 _ACEOF
13548 if ac_fn_c_try_link "$LINENO"
13549 then :
13550 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
13551 then :
13552 lt_cv_shlibpath_overrides_runpath=yes
13553 fi
13554 fi
13555 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13556 conftest$ac_exeext conftest.$ac_ext
13557 LDFLAGS=$save_LDFLAGS
13558 libdir=$save_libdir
13559 ;;
13560 esac
13561 fi
13562
13563 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13564
13565 # This implies no fast_install, which is unacceptable.
13566 # Some rework will be needed to allow for fast_install
13567 # before this can be enabled.
13568 hardcode_into_libs=yes
13569
13570 # Ideally, we could use ldconfig to report *all* directories which are
13571 # searched for libraries, however this is still not possible. Aside from not
13572 # being certain /sbin/ldconfig is available, command
13573 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13574 # even though it is searched at run-time. Try to do the best guess by
13575 # appending ld.so.conf contents (and includes) to the search path.
13576 if test -f /etc/ld.so.conf; then
13577 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' ' '`
13578 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13579 fi
13580
13581 # We used to test for /lib/ld.so.1 and disable shared libraries on
13582 # powerpc, because MkLinux only supported shared libraries with the
13583 # GNU dynamic linker. Since this was broken with cross compilers,
13584 # most powerpc-linux boxes support dynamic linking these days and
13585 # people can always --disable-shared, the test was removed, and we
13586 # assume the GNU/Linux dynamic linker is in use.
13587 dynamic_linker='GNU/Linux ld.so'
13588 ;;
13589
13590 netbsdelf*-gnu)
13591 version_type=linux
13592 need_lib_prefix=no
13593 need_version=no
13594 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13595 soname_spec='$libname$release$shared_ext$major'
13596 shlibpath_var=LD_LIBRARY_PATH
13597 shlibpath_overrides_runpath=no
13598 hardcode_into_libs=yes
13599 dynamic_linker='NetBSD ld.elf_so'
13600 ;;
13601
13602 netbsdelf*-gnu)
13603 version_type=linux
13604 need_lib_prefix=no
13605 need_version=no
13606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13607 soname_spec='${libname}${release}${shared_ext}$major'
13608 shlibpath_var=LD_LIBRARY_PATH
13609 shlibpath_overrides_runpath=no
13610 hardcode_into_libs=yes
13611 dynamic_linker='NetBSD ld.elf_so'
13612 ;;
13613
13614 netbsd*)
13615 version_type=sunos
13616 need_lib_prefix=no
13617 need_version=no
13618 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13619 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13620 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13621 dynamic_linker='NetBSD (a.out) ld.so'
13622 else
13623 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13624 soname_spec='$libname$release$shared_ext$major'
13625 dynamic_linker='NetBSD ld.elf_so'
13626 fi
13627 shlibpath_var=LD_LIBRARY_PATH
13628 shlibpath_overrides_runpath=yes
13629 hardcode_into_libs=yes
13630 ;;
13631
13632 *-mlibc)
13633 version_type=linux # correct to gnu/linux during the next big refactor
13634 need_lib_prefix=no
13635 need_version=no
13636 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13637 soname_spec='$libname$release$shared_ext$major'
13638 dynamic_linker='mlibc ld.so'
13639 shlibpath_var=LD_LIBRARY_PATH
13640 shlibpath_overrides_runpath=no
13641 hardcode_into_libs=yes
13642 ;;
13643
13644 newsos6)
13645 version_type=linux # correct to gnu/linux during the next big refactor
13646 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13647 shlibpath_var=LD_LIBRARY_PATH
13648 shlibpath_overrides_runpath=yes
13649 ;;
13650
13651 *nto* | *qnx*)
13652 version_type=qnx
13653 need_lib_prefix=no
13654 need_version=no
13655 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13656 soname_spec='$libname$release$shared_ext$major'
13657 shlibpath_var=LD_LIBRARY_PATH
13658 shlibpath_overrides_runpath=no
13659 hardcode_into_libs=yes
13660 dynamic_linker='ldqnx.so'
13661 ;;
13662
13663 openbsd*)
13664 version_type=sunos
13665 sys_lib_dlsearch_path_spec=/usr/lib
13666 need_lib_prefix=no
13667 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13668 need_version=no
13669 else
13670 need_version=yes
13671 fi
13672 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13673 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13674 shlibpath_var=LD_LIBRARY_PATH
13675 shlibpath_overrides_runpath=yes
13676 ;;
13677
13678 os2*)
13679 libname_spec='$name'
13680 version_type=windows
13681 shrext_cmds=.dll
13682 need_version=no
13683 need_lib_prefix=no
13684 # OS/2 can only load a DLL with a base name of 8 characters or less.
13685 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13686 v=$($ECHO $release$versuffix | tr -d .-);
13687 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13688 $ECHO $n$v`$shared_ext'
13689 library_names_spec='${libname}_dll.$libext'
13690 dynamic_linker='OS/2 ld.exe'
13691 shlibpath_var=BEGINLIBPATH
13692 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13693 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13694 postinstall_cmds='base_file=`basename \$file`~
13695 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13696 dldir=$destdir/`dirname \$dlpath`~
13697 test -d \$dldir || mkdir -p \$dldir~
13698 $install_prog $dir/$dlname \$dldir/$dlname~
13699 chmod a+x \$dldir/$dlname~
13700 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13701 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13702 fi'
13703 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13704 dlpath=$dir/\$dldll~
13705 $RM \$dlpath'
13706 ;;
13707
13708 osf3* | osf4* | osf5*)
13709 version_type=osf
13710 need_lib_prefix=no
13711 need_version=no
13712 soname_spec='$libname$release$shared_ext$major'
13713 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13714 shlibpath_var=LD_LIBRARY_PATH
13715 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13716 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13717 ;;
13718
13719 rdos*)
13720 dynamic_linker=no
13721 ;;
13722
13723 serenity*)
13724 version_type=linux # correct to gnu/linux during the next big refactor
13725 need_lib_prefix=no
13726 need_version=no
13727 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13728 soname_spec='$libname$release$shared_ext$major'
13729 shlibpath_var=LD_LIBRARY_PATH
13730 shlibpath_overrides_runpath=no
13731 dynamic_linker='SerenityOS LibELF'
13732 ;;
13733
13734 solaris*)
13735 version_type=linux # correct to gnu/linux during the next big refactor
13736 need_lib_prefix=no
13737 need_version=no
13738 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13739 soname_spec='$libname$release$shared_ext$major'
13740 shlibpath_var=LD_LIBRARY_PATH
13741 shlibpath_overrides_runpath=yes
13742 hardcode_into_libs=yes
13743 # ldd complains unless libraries are executable
13744 postinstall_cmds='chmod +x $lib'
13745 ;;
13746
13747 sunos4*)
13748 version_type=sunos
13749 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13750 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13751 shlibpath_var=LD_LIBRARY_PATH
13752 shlibpath_overrides_runpath=yes
13753 if test yes = "$with_gnu_ld"; then
13754 need_lib_prefix=no
13755 fi
13756 need_version=yes
13757 ;;
13758
13759 sysv4 | sysv4.3*)
13760 version_type=linux # correct to gnu/linux during the next big refactor
13761 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13762 soname_spec='$libname$release$shared_ext$major'
13763 shlibpath_var=LD_LIBRARY_PATH
13764 case $host_vendor in
13765 sni)
13766 shlibpath_overrides_runpath=no
13767 need_lib_prefix=no
13768 runpath_var=LD_RUN_PATH
13769 ;;
13770 siemens)
13771 need_lib_prefix=no
13772 ;;
13773 motorola)
13774 need_lib_prefix=no
13775 need_version=no
13776 shlibpath_overrides_runpath=no
13777 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13778 ;;
13779 esac
13780 ;;
13781
13782 sysv4*MP*)
13783 if test -d /usr/nec; then
13784 version_type=linux # correct to gnu/linux during the next big refactor
13785 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13786 soname_spec='$libname$shared_ext.$major'
13787 shlibpath_var=LD_LIBRARY_PATH
13788 fi
13789 ;;
13790
13791 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13792 version_type=sco
13793 need_lib_prefix=no
13794 need_version=no
13795 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13796 soname_spec='$libname$release$shared_ext$major'
13797 shlibpath_var=LD_LIBRARY_PATH
13798 shlibpath_overrides_runpath=yes
13799 hardcode_into_libs=yes
13800 if test yes = "$with_gnu_ld"; then
13801 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13802 else
13803 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13804 case $host_os in
13805 sco3.2v5*)
13806 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13807 ;;
13808 esac
13809 fi
13810 sys_lib_dlsearch_path_spec='/usr/lib'
13811 ;;
13812
13813 tpf*)
13814 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13815 version_type=linux # correct to gnu/linux during the next big refactor
13816 need_lib_prefix=no
13817 need_version=no
13818 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13819 shlibpath_var=LD_LIBRARY_PATH
13820 shlibpath_overrides_runpath=no
13821 hardcode_into_libs=yes
13822 ;;
13823
13824 uts4*)
13825 version_type=linux # correct to gnu/linux during the next big refactor
13826 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13827 soname_spec='$libname$release$shared_ext$major'
13828 shlibpath_var=LD_LIBRARY_PATH
13829 ;;
13830
13831 emscripten*)
13832 version_type=none
13833 need_lib_prefix=no
13834 need_version=no
13835 library_names_spec='$libname$release$shared_ext'
13836 soname_spec='$libname$release$shared_ext'
13837 finish_cmds=
13838 dynamic_linker="Emscripten linker"
13839 lt_prog_compiler_wl=
13840 lt_prog_compiler_pic=
13841 lt_prog_compiler_static=
13842
13843
13844 if test yes = "$GCC"; then
13845 lt_prog_compiler_wl='-Wl,'
13846 lt_prog_compiler_static='-static'
13847
13848 case $host_os in
13849 aix*)
13850 # All AIX code is PIC.
13851 if test ia64 = "$host_cpu"; then
13852 # AIX 5 now supports IA64 processor
13853 lt_prog_compiler_static='-Bstatic'
13854 fi
13855 lt_prog_compiler_pic='-fPIC'
13856 ;;
13857
13858 amigaos*)
13859 case $host_cpu in
13860 powerpc)
13861 # see comment about AmigaOS4 .so support
13862 lt_prog_compiler_pic='-fPIC'
13863 ;;
13864 m68k)
13865 # FIXME: we need at least 68020 code to build shared libraries, but
13866 # adding the '-m68020' flag to GCC prevents building anything better,
13867 # like '-m68040'.
13868 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13869 ;;
13870 esac
13871 ;;
13872
13873 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13874 # PIC is the default for these OSes.
13875 ;;
13876
13877 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
13878 # This hack is so that the source file can tell whether it is being
13879 # built for inclusion in a dll (and should export symbols for example).
13880 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13881 # (--disable-auto-import) libraries
13882 lt_prog_compiler_pic='-DDLL_EXPORT'
13883 case $host_os in
13884 os2*)
13885 lt_prog_compiler_static='$wl-static'
13886 ;;
13887 esac
13888 ;;
13889
13890 darwin* | rhapsody*)
13891 # PIC is the default on this platform
13892 # Common symbols not allowed in MH_DYLIB files
13893 lt_prog_compiler_pic='-fno-common'
13894 ;;
13895
13896 haiku*)
13897 # PIC is the default for Haiku.
13898 # The "-static" flag exists, but is broken.
13899 lt_prog_compiler_static=
13900 ;;
13901
13902 hpux*)
13903 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13904 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13905 # sets the default TLS model and affects inlining.
13906 case $host_cpu in
13907 hppa*64*)
13908 # +Z the default
13909 ;;
13910 *)
13911 lt_prog_compiler_pic='-fPIC'
13912 ;;
13913 esac
13914 ;;
13915
13916 interix[3-9]*)
13917 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13918 # Instead, we relocate shared libraries at runtime.
13919 ;;
13920
13921 msdosdjgpp*)
13922 # Just because we use GCC doesn't mean we suddenly get shared libraries
13923 # on systems that don't support them.
13924 lt_prog_compiler_can_build_shared=no
13925 enable_shared=no
13926 ;;
13927
13928 *nto* | *qnx*)
13929 # QNX uses GNU C++, but need to define -shared option too, otherwise
13930 # it will coredump.
13931 lt_prog_compiler_pic='-fPIC -shared'
13932 ;;
13933
13934 sysv4*MP*)
13935 if test -d /usr/nec; then
13936 lt_prog_compiler_pic=-Kconform_pic
13937 fi
13938 ;;
13939
13940 *)
13941 lt_prog_compiler_pic='-fPIC'
13942 ;;
13943 esac
13944
13945 case $cc_basename in
13946 nvcc*) # Cuda Compiler Driver 2.2
13947 lt_prog_compiler_wl='-Xlinker '
13948 if test -n "$lt_prog_compiler_pic"; then
13949 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
13950 fi
13951 ;;
13952 esac
13953 else
13954 # PORTME Check for flag to pass linker flags through the system compiler.
13955 case $host_os in
13956 aix*)
13957 lt_prog_compiler_wl='-Wl,'
13958 if test ia64 = "$host_cpu"; then
13959 # AIX 5 now supports IA64 processor
13960 lt_prog_compiler_static='-Bstatic'
13961 else
13962 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13963 fi
13964 ;;
13965
13966 darwin* | rhapsody*)
13967 # PIC is the default on this platform
13968 # Common symbols not allowed in MH_DYLIB files
13969 lt_prog_compiler_pic='-fno-common'
13970 case $cc_basename in
13971 nagfor*)
13972 # NAG Fortran compiler
13973 lt_prog_compiler_wl='-Wl,-Wl,,'
13974 lt_prog_compiler_pic='-PIC'
13975 lt_prog_compiler_static='-Bstatic'
13976 ;;
13977 esac
13978 ;;
13979
13980 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
13981 # This hack is so that the source file can tell whether it is being
13982 # built for inclusion in a dll (and should export symbols for example).
13983 lt_prog_compiler_pic='-DDLL_EXPORT'
13984 case $host_os in
13985 os2*)
13986 lt_prog_compiler_static='$wl-static'
13987 ;;
13988 esac
13989 ;;
13990
13991 hpux9* | hpux10* | hpux11*)
13992 lt_prog_compiler_wl='-Wl,'
13993 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13994 # not for PA HP-UX.
13995 case $host_cpu in
13996 hppa*64*|ia64*)
13997 # +Z the default
13998 ;;
13999 *)
14000 lt_prog_compiler_pic='+Z'
14001 ;;
14002 esac
14003 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14004 lt_prog_compiler_static='$wl-a ${wl}archive'
14005 ;;
14006
14007 irix5* | irix6* | nonstopux*)
14008 lt_prog_compiler_wl='-Wl,'
14009 # PIC (with -KPIC) is the default.
14010 lt_prog_compiler_static='-non_shared'
14011 ;;
14012
14013 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14014 case $cc_basename in
14015 # old Intel for x86_64, which still supported -KPIC.
14016 ecc*)
14017 lt_prog_compiler_wl='-Wl,'
14018 lt_prog_compiler_pic='-KPIC'
14019 lt_prog_compiler_static='-static'
14020 ;;
14021 *flang* | ftn | f18* | f95*)
14022 # Flang compiler.
14023 lt_prog_compiler_wl='-Wl,'
14024 lt_prog_compiler_pic='-fPIC'
14025 lt_prog_compiler_static='-static'
14026 ;;
14027 # flang / f18. f95 an alias for gfortran or flang on Debian
14028 flang* | f18* | f95*)
14029 lt_prog_compiler_wl='-Wl,'
14030 lt_prog_compiler_pic='-fPIC'
14031 lt_prog_compiler_static='-static'
14032 ;;
14033 # icc used to be incompatible with GCC.
14034 # ICC 10 doesn't accept -KPIC any more.
14035 icc* | ifort*)
14036 lt_prog_compiler_wl='-Wl,'
14037 lt_prog_compiler_pic='-fPIC'
14038 lt_prog_compiler_static='-static'
14039 ;;
14040 # Lahey Fortran 8.1.
14041 lf95*)
14042 lt_prog_compiler_wl='-Wl,'
14043 lt_prog_compiler_pic='--shared'
14044 lt_prog_compiler_static='--static'
14045 ;;
14046 nagfor*)
14047 # NAG Fortran compiler
14048 lt_prog_compiler_wl='-Wl,-Wl,,'
14049 lt_prog_compiler_pic='-PIC'
14050 lt_prog_compiler_static='-Bstatic'
14051 ;;
14052 tcc*)
14053 # Fabrice Bellard et al's Tiny C Compiler
14054 lt_prog_compiler_wl='-Wl,'
14055 lt_prog_compiler_pic='-fPIC'
14056 lt_prog_compiler_static='-static'
14057 ;;
14058 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14059 # Portland Group compilers (*not* the Pentium gcc compiler,
14060 # which looks to be a dead project)
14061 lt_prog_compiler_wl='-Wl,'
14062 lt_prog_compiler_pic='-fpic'
14063 lt_prog_compiler_static='-Bstatic'
14064 ;;
14065 ccc*)
14066 lt_prog_compiler_wl='-Wl,'
14067 # All Alpha code is PIC.
14068 lt_prog_compiler_static='-non_shared'
14069 ;;
14070 xl* | bgxl* | bgf* | mpixl*)
14071 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14072 lt_prog_compiler_wl='-Wl,'
14073 lt_prog_compiler_pic='-qpic'
14074 lt_prog_compiler_static='-qstaticlink'
14075 ;;
14076 *)
14077 case `$CC -V 2>&1 | $SED 5q` in
14078 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
14079 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14080 lt_prog_compiler_pic='-KPIC'
14081 lt_prog_compiler_static='-Bstatic'
14082 lt_prog_compiler_wl=''
14083 ;;
14084 *Sun\ F* | *Sun*Fortran*)
14085 lt_prog_compiler_pic='-KPIC'
14086 lt_prog_compiler_static='-Bstatic'
14087 lt_prog_compiler_wl='-Qoption ld '
14088 ;;
14089 *Sun\ C*)
14090 # Sun C 5.9
14091 lt_prog_compiler_pic='-KPIC'
14092 lt_prog_compiler_static='-Bstatic'
14093 lt_prog_compiler_wl='-Wl,'
14094 ;;
14095 *Intel*\ [CF]*Compiler*)
14096 lt_prog_compiler_wl='-Wl,'
14097 lt_prog_compiler_pic='-fPIC'
14098 lt_prog_compiler_static='-static'
14099 ;;
14100 *Portland\ Group*)
14101 lt_prog_compiler_wl='-Wl,'
14102 lt_prog_compiler_pic='-fpic'
14103 lt_prog_compiler_static='-Bstatic'
14104 ;;
14105 esac
14106 ;;
14107 esac
14108 ;;
14109
14110 newsos6)
14111 lt_prog_compiler_pic='-KPIC'
14112 lt_prog_compiler_static='-Bstatic'
14113 ;;
14114
14115 *-mlibc)
14116 lt_prog_compiler_wl='-Wl,'
14117 lt_prog_compiler_pic='-fPIC'
14118 lt_prog_compiler_static='-static'
14119 ;;
14120
14121 *nto* | *qnx*)
14122 # QNX uses GNU C++, but need to define -shared option too, otherwise
14123 # it will coredump.
14124 lt_prog_compiler_pic='-fPIC -shared'
14125 ;;
14126
14127 osf3* | osf4* | osf5*)
14128 lt_prog_compiler_wl='-Wl,'
14129 # All OSF/1 code is PIC.
14130 lt_prog_compiler_static='-non_shared'
14131 ;;
14132
14133 rdos*)
14134 lt_prog_compiler_static='-non_shared'
14135 ;;
14136
14137 serenity*)
14138 ;;
14139
14140 solaris*)
14141 lt_prog_compiler_pic='-KPIC'
14142 lt_prog_compiler_static='-Bstatic'
14143 case $cc_basename in
14144 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
14145 lt_prog_compiler_wl='-Qoption ld ';;
14146 *)
14147 lt_prog_compiler_wl='-Wl,';;
14148 esac
14149 ;;
14150
14151 sunos4*)
14152 lt_prog_compiler_wl='-Qoption ld '
14153 lt_prog_compiler_pic='-PIC'
14154 lt_prog_compiler_static='-Bstatic'
14155 ;;
14156
14157 sysv4 | sysv4.2uw2* | sysv4.3*)
14158 lt_prog_compiler_wl='-Wl,'
14159 lt_prog_compiler_pic='-KPIC'
14160 lt_prog_compiler_static='-Bstatic'
14161 ;;
14162
14163 sysv4*MP*)
14164 if test -d /usr/nec; then
14165 lt_prog_compiler_pic='-Kconform_pic'
14166 lt_prog_compiler_static='-Bstatic'
14167 fi
14168 ;;
14169
14170 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14171 lt_prog_compiler_wl='-Wl,'
14172 lt_prog_compiler_pic='-KPIC'
14173 lt_prog_compiler_static='-Bstatic'
14174 ;;
14175
14176 unicos*)
14177 lt_prog_compiler_wl='-Wl,'
14178 lt_prog_compiler_can_build_shared=no
14179 ;;
14180
14181 uts4*)
14182 lt_prog_compiler_pic='-pic'
14183 lt_prog_compiler_static='-Bstatic'
14184 ;;
14185
14186 *)
14187 lt_prog_compiler_can_build_shared=no
14188 ;;
14189 esac
14190 fi
14191
14192 case $host_os in
14193 # For platforms that do not support PIC, -DPIC is meaningless:
14194 *djgpp*)
14195 lt_prog_compiler_pic=
14196 ;;
14197 *)
14198 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14199 ;;
14200 esac
14201
14202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14203 printf %s "checking for $compiler option to produce PIC... " >&6; }
14204 if test ${lt_cv_prog_compiler_pic+y}
14205 then :
14206 printf %s "(cached) " >&6
14207 else case e in #(
14208 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
14209 esac
14210 fi
14211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14212 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
14213 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
14214
14215 #
14216 # Check to make sure the PIC flag actually works.
14217 #
14218 if test -n "$lt_prog_compiler_pic"; then
14219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14220 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14221 if test ${lt_cv_prog_compiler_pic_works+y}
14222 then :
14223 printf %s "(cached) " >&6
14224 else case e in #(
14225 e) lt_cv_prog_compiler_pic_works=no
14226 ac_outfile=conftest.$ac_objext
14227 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14228 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
14229 # Insert the option either (1) after the last *FLAGS variable, or
14230 # (2) before a word containing "conftest.", or (3) at the end.
14231 # Note that $ac_compile itself does not contain backslashes and begins
14232 # with a dollar sign (not a hyphen), so the echo should work correctly.
14233 # The option is referenced via a variable to avoid confusing sed.
14234 lt_compile=`echo "$ac_compile" | $SED \
14235 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14236 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14237 -e 's:$: $lt_compiler_flag:'`
14238 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14239 (eval "$lt_compile" 2>conftest.err)
14240 ac_status=$?
14241 cat conftest.err >&5
14242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14243 if (exit $ac_status) && test -s "$ac_outfile"; then
14244 # The compiler can only warn and ignore the option if not recognized
14245 # So say no if there are warnings other than the usual output.
14246 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14247 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14248 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14249 lt_cv_prog_compiler_pic_works=yes
14250 fi
14251 fi
14252 $RM conftest*
14253 ;;
14254 esac
14255 fi
14256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14257 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
14258
14259 if test yes = "$lt_cv_prog_compiler_pic_works"; then
14260 case $lt_prog_compiler_pic in
14261 "" | " "*) ;;
14262 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14263 esac
14264 else
14265 lt_prog_compiler_pic=
14266 lt_prog_compiler_can_build_shared=no
14267 fi
14268
14269 fi
14270
14271
14272
14273
14274
14275 #
14276 # Check to make sure the static flag actually works.
14277 #
14278 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14280 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14281 if test ${lt_cv_prog_compiler_static_works+y}
14282 then :
14283 printf %s "(cached) " >&6
14284 else case e in #(
14285 e) lt_cv_prog_compiler_static_works=no
14286 save_LDFLAGS=$LDFLAGS
14287 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14288 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14289 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14290 # The linker can only warn and ignore the option if not recognized
14291 # So say no if there are warnings
14292 if test -s conftest.err; then
14293 # Append any errors to the config.log.
14294 cat conftest.err 1>&5
14295 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14296 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14297 if diff conftest.exp conftest.er2 >/dev/null; then
14298 lt_cv_prog_compiler_static_works=yes
14299 fi
14300 else
14301 lt_cv_prog_compiler_static_works=yes
14302 fi
14303 fi
14304 $RM -r conftest*
14305 LDFLAGS=$save_LDFLAGS
14306 ;;
14307 esac
14308 fi
14309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14310 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
14311
14312 if test yes = "$lt_cv_prog_compiler_static_works"; then
14313 :
14314 else
14315 lt_prog_compiler_static=
14316 fi
14317
14318
14319
14320 ='-fPIC'
14321 archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
14322 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'
14323 archive_cmds_need_lc=no
14324 no_undefined_flag=
14325 ;;
14326
14327 *)
14328 dynamic_linker=no
14329 ;;
14330 esac
14331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14332 printf "%s\n" "$dynamic_linker" >&6; }
14333 test no = "$dynamic_linker" && can_build_shared=no
14334
14335 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14336 if test yes = "$GCC"; then
14337 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14338 fi
14339
14340 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14341 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
14342 fi
14343
14344 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14345 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
14346 fi
14347
14348 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14349 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14350
14351 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14352 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14353
14354 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14355 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
14356
14357
14358
14359
14360
14361
14362
14363
14364
14365
14366
14367
14368
14369
14370
14371
14372
14373
14374
14375
14376
14377
14378
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392
14393
14394
14395
14396
14397
14398
14399
14400
14401
14402
14403
14404
14405
14406
14407
14408
14409
14410
14411
14412
14413
14414
14415
14416
14417
14418
14419
14420
14421
14422
14423
14424
14425
14426
14427
14428
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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14454 printf %s "checking how to hardcode library paths into programs... " >&6; }
14455 hardcode_action=
14456 if test -n "$hardcode_libdir_flag_spec" ||
14457 test -n "$runpath_var" ||
14458 test yes = "$hardcode_automatic"; then
14459
14460 # We can hardcode non-existent directories.
14461 if test no != "$hardcode_direct" &&
14462 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14463 # have to relink, otherwise we might link with an installed library
14464 # when we should be linking with a yet-to-be-installed one
14465 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
14466 test no != "$hardcode_minus_L"; then
14467 # Linking always hardcodes the temporary library directory.
14468 hardcode_action=relink
14469 else
14470 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14471 hardcode_action=immediate
14472 fi
14473 else
14474 # We cannot hardcode anything, or else we can only hardcode existing
14475 # directories.
14476 hardcode_action=unsupported
14477 fi
14478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14479 printf "%s\n" "$hardcode_action" >&6; }
14480
14481 if test relink = "$hardcode_action" ||
14482 test yes = "$inherit_rpath"; then
14483 # Fast installation is not supported
14484 enable_fast_install=no
14485 elif test yes = "$shlibpath_overrides_runpath" ||
14486 test no = "$enable_shared"; then
14487 # Fast installation is not necessary
14488 enable_fast_install=needless
14489 fi
14490
14491
14492
14493
14494
14495
14496 if test yes != "$enable_dlopen"; then
14497 enable_dlopen=unknown
14498 enable_dlopen_self=unknown
14499 enable_dlopen_self_static=unknown
14500 else
14501 lt_cv_dlopen=no
14502 lt_cv_dlopen_libs=
14503
14504 case $host_os in
14505 beos*)
14506 lt_cv_dlopen=load_add_on
14507 lt_cv_dlopen_libs=
14508 lt_cv_dlopen_self=yes
14509 ;;
14510
14511 mingw* | windows* | pw32* | cegcc*)
14512 lt_cv_dlopen=LoadLibrary
14513 lt_cv_dlopen_libs=
14514 ;;
14515
14516 cygwin*)
14517 lt_cv_dlopen=dlopen
14518 lt_cv_dlopen_libs=
14519 ;;
14520
14521 darwin*)
14522 # if libdl is installed we need to link against it
14523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14524 printf %s "checking for dlopen in -ldl... " >&6; }
14525 if test ${ac_cv_lib_dl_dlopen+y}
14526 then :
14527 printf %s "(cached) " >&6
14528 else case e in #(
14529 e) ac_check_lib_save_LIBS=$LIBS
14530 LIBS="-ldl $LIBS"
14531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14532 /* end confdefs.h. */
14533
14534 /* Override any GCC internal prototype to avoid an error.
14535 Use char because int might match the return type of a GCC
14536 builtin and then its argument prototype would still apply.
14537 The 'extern "C"' is for builds by C++ compilers;
14538 although this is not generally supported in C code supporting it here
14539 has little cost and some practical benefit (sr 110532). */
14540 #ifdef __cplusplus
14541 extern "C"
14542 #endif
14543 char dlopen (void);
14544 int
14545 main (void)
14546 {
14547 return dlopen ();
14548 ;
14549 return 0;
14550 }
14551 _ACEOF
14552 if ac_fn_c_try_link "$LINENO"
14553 then :
14554 ac_cv_lib_dl_dlopen=yes
14555 else case e in #(
14556 e) ac_cv_lib_dl_dlopen=no ;;
14557 esac
14558 fi
14559 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14560 conftest$ac_exeext conftest.$ac_ext
14561 LIBS=$ac_check_lib_save_LIBS ;;
14562 esac
14563 fi
14564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14565 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
14566 if test "x$ac_cv_lib_dl_dlopen" = xyes
14567 then :
14568 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14569 else case e in #(
14570 e)
14571 lt_cv_dlopen=dyld
14572 lt_cv_dlopen_libs=
14573 lt_cv_dlopen_self=yes
14574 ;;
14575 esac
14576 fi
14577
14578 ;;
14579
14580 tpf*)
14581 # Don't try to run any link tests for TPF. We know it's impossible
14582 # because TPF is a cross-compiler, and we know how we open DSOs.
14583 lt_cv_dlopen=dlopen
14584 lt_cv_dlopen_libs=
14585 lt_cv_dlopen_self=no
14586 ;;
14587
14588 *)
14589 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14590 if test "x$ac_cv_func_shl_load" = xyes
14591 then :
14592 lt_cv_dlopen=shl_load
14593 else case e in #(
14594 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14595 printf %s "checking for shl_load in -ldld... " >&6; }
14596 if test ${ac_cv_lib_dld_shl_load+y}
14597 then :
14598 printf %s "(cached) " >&6
14599 else case e in #(
14600 e) ac_check_lib_save_LIBS=$LIBS
14601 LIBS="-ldld $LIBS"
14602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14603 /* end confdefs.h. */
14604
14605 /* Override any GCC internal prototype to avoid an error.
14606 Use char because int might match the return type of a GCC
14607 builtin and then its argument prototype would still apply.
14608 The 'extern "C"' is for builds by C++ compilers;
14609 although this is not generally supported in C code supporting it here
14610 has little cost and some practical benefit (sr 110532). */
14611 #ifdef __cplusplus
14612 extern "C"
14613 #endif
14614 char shl_load (void);
14615 int
14616 main (void)
14617 {
14618 return shl_load ();
14619 ;
14620 return 0;
14621 }
14622 _ACEOF
14623 if ac_fn_c_try_link "$LINENO"
14624 then :
14625 ac_cv_lib_dld_shl_load=yes
14626 else case e in #(
14627 e) ac_cv_lib_dld_shl_load=no ;;
14628 esac
14629 fi
14630 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14631 conftest$ac_exeext conftest.$ac_ext
14632 LIBS=$ac_check_lib_save_LIBS ;;
14633 esac
14634 fi
14635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14636 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
14637 if test "x$ac_cv_lib_dld_shl_load" = xyes
14638 then :
14639 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
14640 else case e in #(
14641 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14642 if test "x$ac_cv_func_dlopen" = xyes
14643 then :
14644 lt_cv_dlopen=dlopen
14645 else case e in #(
14646 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14647 printf %s "checking for dlopen in -ldl... " >&6; }
14648 if test ${ac_cv_lib_dl_dlopen+y}
14649 then :
14650 printf %s "(cached) " >&6
14651 else case e in #(
14652 e) ac_check_lib_save_LIBS=$LIBS
14653 LIBS="-ldl $LIBS"
14654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14655 /* end confdefs.h. */
14656
14657 /* Override any GCC internal prototype to avoid an error.
14658 Use char because int might match the return type of a GCC
14659 builtin and then its argument prototype would still apply.
14660 The 'extern "C"' is for builds by C++ compilers;
14661 although this is not generally supported in C code supporting it here
14662 has little cost and some practical benefit (sr 110532). */
14663 #ifdef __cplusplus
14664 extern "C"
14665 #endif
14666 char dlopen (void);
14667 int
14668 main (void)
14669 {
14670 return dlopen ();
14671 ;
14672 return 0;
14673 }
14674 _ACEOF
14675 if ac_fn_c_try_link "$LINENO"
14676 then :
14677 ac_cv_lib_dl_dlopen=yes
14678 else case e in #(
14679 e) ac_cv_lib_dl_dlopen=no ;;
14680 esac
14681 fi
14682 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14683 conftest$ac_exeext conftest.$ac_ext
14684 LIBS=$ac_check_lib_save_LIBS ;;
14685 esac
14686 fi
14687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14688 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
14689 if test "x$ac_cv_lib_dl_dlopen" = xyes
14690 then :
14691 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14692 else case e in #(
14693 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14694 printf %s "checking for dlopen in -lsvld... " >&6; }
14695 if test ${ac_cv_lib_svld_dlopen+y}
14696 then :
14697 printf %s "(cached) " >&6
14698 else case e in #(
14699 e) ac_check_lib_save_LIBS=$LIBS
14700 LIBS="-lsvld $LIBS"
14701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14702 /* end confdefs.h. */
14703
14704 /* Override any GCC internal prototype to avoid an error.
14705 Use char because int might match the return type of a GCC
14706 builtin and then its argument prototype would still apply.
14707 The 'extern "C"' is for builds by C++ compilers;
14708 although this is not generally supported in C code supporting it here
14709 has little cost and some practical benefit (sr 110532). */
14710 #ifdef __cplusplus
14711 extern "C"
14712 #endif
14713 char dlopen (void);
14714 int
14715 main (void)
14716 {
14717 return dlopen ();
14718 ;
14719 return 0;
14720 }
14721 _ACEOF
14722 if ac_fn_c_try_link "$LINENO"
14723 then :
14724 ac_cv_lib_svld_dlopen=yes
14725 else case e in #(
14726 e) ac_cv_lib_svld_dlopen=no ;;
14727 esac
14728 fi
14729 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14730 conftest$ac_exeext conftest.$ac_ext
14731 LIBS=$ac_check_lib_save_LIBS ;;
14732 esac
14733 fi
14734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14735 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
14736 if test "x$ac_cv_lib_svld_dlopen" = xyes
14737 then :
14738 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
14739 else case e in #(
14740 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14741 printf %s "checking for dld_link in -ldld... " >&6; }
14742 if test ${ac_cv_lib_dld_dld_link+y}
14743 then :
14744 printf %s "(cached) " >&6
14745 else case e in #(
14746 e) ac_check_lib_save_LIBS=$LIBS
14747 LIBS="-ldld $LIBS"
14748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14749 /* end confdefs.h. */
14750
14751 /* Override any GCC internal prototype to avoid an error.
14752 Use char because int might match the return type of a GCC
14753 builtin and then its argument prototype would still apply.
14754 The 'extern "C"' is for builds by C++ compilers;
14755 although this is not generally supported in C code supporting it here
14756 has little cost and some practical benefit (sr 110532). */
14757 #ifdef __cplusplus
14758 extern "C"
14759 #endif
14760 char dld_link (void);
14761 int
14762 main (void)
14763 {
14764 return dld_link ();
14765 ;
14766 return 0;
14767 }
14768 _ACEOF
14769 if ac_fn_c_try_link "$LINENO"
14770 then :
14771 ac_cv_lib_dld_dld_link=yes
14772 else case e in #(
14773 e) ac_cv_lib_dld_dld_link=no ;;
14774 esac
14775 fi
14776 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14777 conftest$ac_exeext conftest.$ac_ext
14778 LIBS=$ac_check_lib_save_LIBS ;;
14779 esac
14780 fi
14781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14782 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
14783 if test "x$ac_cv_lib_dld_dld_link" = xyes
14784 then :
14785 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
14786 fi
14787
14788 ;;
14789 esac
14790 fi
14791
14792 ;;
14793 esac
14794 fi
14795
14796 ;;
14797 esac
14798 fi
14799
14800 ;;
14801 esac
14802 fi
14803
14804 ;;
14805 esac
14806 fi
14807
14808 ;;
14809 esac
14810
14811 if test no = "$lt_cv_dlopen"; then
14812 enable_dlopen=no
14813 else
14814 enable_dlopen=yes
14815 fi
14816
14817 case $lt_cv_dlopen in
14818 dlopen)
14819 save_CPPFLAGS=$CPPFLAGS
14820 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14821
14822 save_LDFLAGS=$LDFLAGS
14823 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14824
14825 save_LIBS=$LIBS
14826 LIBS="$lt_cv_dlopen_libs $LIBS"
14827
14828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14829 printf %s "checking whether a program can dlopen itself... " >&6; }
14830 if test ${lt_cv_dlopen_self+y}
14831 then :
14832 printf %s "(cached) " >&6
14833 else case e in #(
14834 e) if test yes = "$cross_compiling"; then :
14835 lt_cv_dlopen_self=cross
14836 else
14837 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14838 lt_status=$lt_dlunknown
14839 cat > conftest.$ac_ext <<_LT_EOF
14840 #line $LINENO "configure"
14841 #include "confdefs.h"
14842
14843 #if HAVE_DLFCN_H
14844 #include <dlfcn.h>
14845 #endif
14846
14847 #include <stdio.h>
14848
14849 #ifdef RTLD_GLOBAL
14850 # define LT_DLGLOBAL RTLD_GLOBAL
14851 #else
14852 # ifdef DL_GLOBAL
14853 # define LT_DLGLOBAL DL_GLOBAL
14854 # else
14855 # define LT_DLGLOBAL 0
14856 # endif
14857 #endif
14858
14859 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14860 find out it does not work in some platform. */
14861 #ifndef LT_DLLAZY_OR_NOW
14862 # ifdef RTLD_LAZY
14863 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14864 # else
14865 # ifdef DL_LAZY
14866 # define LT_DLLAZY_OR_NOW DL_LAZY
14867 # else
14868 # ifdef RTLD_NOW
14869 # define LT_DLLAZY_OR_NOW RTLD_NOW
14870 # else
14871 # ifdef DL_NOW
14872 # define LT_DLLAZY_OR_NOW DL_NOW
14873 # else
14874 # define LT_DLLAZY_OR_NOW 0
14875 # endif
14876 # endif
14877 # endif
14878 # endif
14879 #endif
14880
14881 /* When -fvisibility=hidden is used, assume the code has been annotated
14882 correspondingly for the symbols needed. */
14883 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14884 int fnord (void) __attribute__((visibility("default")));
14885 #endif
14886
14887 int fnord (void) { return 42; }
14888 int main (void)
14889 {
14890 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14891 int status = $lt_dlunknown;
14892
14893 if (self)
14894 {
14895 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14896 else
14897 {
14898 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14899 else puts (dlerror ());
14900 }
14901 /* dlclose (self); */
14902 }
14903 else
14904 puts (dlerror ());
14905
14906 return status;
14907 }
14908 _LT_EOF
14909 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14910 (eval $ac_link) 2>&5
14911 ac_status=$?
14912 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14913 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14914 (./conftest; exit; ) >&5 2>/dev/null
14915 lt_status=$?
14916 case x$lt_status in
14917 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14918 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14919 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14920 esac
14921 else :
14922 # compilation failed
14923 lt_cv_dlopen_self=no
14924 fi
14925 fi
14926 rm -fr conftest*
14927
14928 ;;
14929 esac
14930 fi
14931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14932 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
14933
14934 if test yes = "$lt_cv_dlopen_self"; then
14935 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14937 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
14938 if test ${lt_cv_dlopen_self_static+y}
14939 then :
14940 printf %s "(cached) " >&6
14941 else case e in #(
14942 e) if test yes = "$cross_compiling"; then :
14943 lt_cv_dlopen_self_static=cross
14944 else
14945 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14946 lt_status=$lt_dlunknown
14947 cat > conftest.$ac_ext <<_LT_EOF
14948 #line $LINENO "configure"
14949 #include "confdefs.h"
14950
14951 #if HAVE_DLFCN_H
14952 #include <dlfcn.h>
14953 #endif
14954
14955 #include <stdio.h>
14956
14957 #ifdef RTLD_GLOBAL
14958 # define LT_DLGLOBAL RTLD_GLOBAL
14959 #else
14960 # ifdef DL_GLOBAL
14961 # define LT_DLGLOBAL DL_GLOBAL
14962 # else
14963 # define LT_DLGLOBAL 0
14964 # endif
14965 #endif
14966
14967 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14968 find out it does not work in some platform. */
14969 #ifndef LT_DLLAZY_OR_NOW
14970 # ifdef RTLD_LAZY
14971 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14972 # else
14973 # ifdef DL_LAZY
14974 # define LT_DLLAZY_OR_NOW DL_LAZY
14975 # else
14976 # ifdef RTLD_NOW
14977 # define LT_DLLAZY_OR_NOW RTLD_NOW
14978 # else
14979 # ifdef DL_NOW
14980 # define LT_DLLAZY_OR_NOW DL_NOW
14981 # else
14982 # define LT_DLLAZY_OR_NOW 0
14983 # endif
14984 # endif
14985 # endif
14986 # endif
14987 #endif
14988
14989 /* When -fvisibility=hidden is used, assume the code has been annotated
14990 correspondingly for the symbols needed. */
14991 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14992 int fnord (void) __attribute__((visibility("default")));
14993 #endif
14994
14995 int fnord (void) { return 42; }
14996 int main (void)
14997 {
14998 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14999 int status = $lt_dlunknown;
15000
15001 if (self)
15002 {
15003 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15004 else
15005 {
15006 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15007 else puts (dlerror ());
15008 }
15009 /* dlclose (self); */
15010 }
15011 else
15012 puts (dlerror ());
15013
15014 return status;
15015 }
15016 _LT_EOF
15017 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15018 (eval $ac_link) 2>&5
15019 ac_status=$?
15020 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15021 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15022 (./conftest; exit; ) >&5 2>/dev/null
15023 lt_status=$?
15024 case x$lt_status in
15025 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15026 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15027 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15028 esac
15029 else :
15030 # compilation failed
15031 lt_cv_dlopen_self_static=no
15032 fi
15033 fi
15034 rm -fr conftest*
15035
15036 ;;
15037 esac
15038 fi
15039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15040 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
15041 fi
15042
15043 CPPFLAGS=$save_CPPFLAGS
15044 LDFLAGS=$save_LDFLAGS
15045 LIBS=$save_LIBS
15046 ;;
15047 esac
15048
15049 case $lt_cv_dlopen_self in
15050 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15051 *) enable_dlopen_self=unknown ;;
15052 esac
15053
15054 case $lt_cv_dlopen_self_static in
15055 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15056 *) enable_dlopen_self_static=unknown ;;
15057 esac
15058 fi
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076 striplib=
15077 old_striplib=
15078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15079 printf %s "checking whether stripping libraries is possible... " >&6; }
15080 if test -z "$STRIP"; then
15081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15082 printf "%s\n" "no" >&6; }
15083 else
15084 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15085 old_striplib="$STRIP --strip-debug"
15086 striplib="$STRIP --strip-unneeded"
15087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15088 printf "%s\n" "yes" >&6; }
15089 else
15090 case $host_os in
15091 darwin*)
15092 # FIXME - insert some real tests, host_os isn't really good enough
15093 striplib="$STRIP -x"
15094 old_striplib="$STRIP -S"
15095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15096 printf "%s\n" "yes" >&6; }
15097 ;;
15098 freebsd*)
15099 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
15100 old_striplib="$STRIP --strip-debug"
15101 striplib="$STRIP --strip-unneeded"
15102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15103 printf "%s\n" "yes" >&6; }
15104 else
15105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15106 printf "%s\n" "no" >&6; }
15107 fi
15108 ;;
15109 *)
15110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15111 printf "%s\n" "no" >&6; }
15112 ;;
15113 esac
15114 fi
15115 fi
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125
15126
15127
15128 # Report what library types will actually be built
15129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15130 printf %s "checking if libtool supports shared libraries... " >&6; }
15131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15132 printf "%s\n" "$can_build_shared" >&6; }
15133
15134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15135 printf %s "checking whether to build shared libraries... " >&6; }
15136 test no = "$can_build_shared" && enable_shared=no
15137
15138 # On AIX, shared libraries and static libraries use the same namespace, and
15139 # are all built from PIC.
15140 case $host_os in
15141 aix3*)
15142 test yes = "$enable_shared" && enable_static=no
15143 if test -n "$RANLIB"; then
15144 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15145 postinstall_cmds='$RANLIB $lib'
15146 fi
15147 ;;
15148
15149 aix[4-9]*)
15150 if test ia64 != "$host_cpu"; then
15151 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
15152 yes,aix,yes) ;; # shared object as lib.so file only
15153 yes,svr4,*) ;; # shared object as lib.so archive member only
15154 yes,*) enable_static=no ;; # shared object in lib.a archive as well
15155 esac
15156 fi
15157 ;;
15158 esac
15159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15160 printf "%s\n" "$enable_shared" >&6; }
15161
15162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15163 printf %s "checking whether to build static libraries... " >&6; }
15164 # Make sure either enable_shared or enable_static is yes.
15165 test yes = "$enable_shared" || enable_static=yes
15166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15167 printf "%s\n" "$enable_static" >&6; }
15168
15169
15170
15171
15172 fi
15173 ac_ext=c
15174 ac_cpp='$CPP $CPPFLAGS'
15175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15178
15179 CC=$lt_save_CC
15180
15181 if test -n "$CXX" && ( test no != "$CXX" &&
15182 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
15183 (test g++ != "$CXX"))); then
15184 ac_ext=cpp
15185 ac_cpp='$CXXCPP $CPPFLAGS'
15186 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15187 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15188 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
15190 printf %s "checking how to run the C++ preprocessor... " >&6; }
15191 if test -z "$CXXCPP"; then
15192 if test ${ac_cv_prog_CXXCPP+y}
15193 then :
15194 printf %s "(cached) " >&6
15195 else case e in #(
15196 e) # Double quotes because $CXX needs to be expanded
15197 for CXXCPP in "$CXX -E" cpp /lib/cpp
15198 do
15199 ac_preproc_ok=false
15200 for ac_cxx_preproc_warn_flag in '' yes
15201 do
15202 # Use a header file that comes with gcc, so configuring glibc
15203 # with a fresh cross-compiler works.
15204 # On the NeXT, cc -E runs the code through the compiler's parser,
15205 # not just through cpp. "Syntax error" is here to catch this case.
15206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15207 /* end confdefs.h. */
15208 #include <limits.h>
15209 Syntax error
15210 _ACEOF
15211 if ac_fn_cxx_try_cpp "$LINENO"
15212 then :
15213
15214 else case e in #(
15215 e) # Broken: fails on valid input.
15216 continue ;;
15217 esac
15218 fi
15219 rm -f conftest.err conftest.i conftest.$ac_ext
15220
15221 # OK, works on sane cases. Now check whether nonexistent headers
15222 # can be detected and how.
15223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15224 /* end confdefs.h. */
15225 #include <ac_nonexistent.h>
15226 _ACEOF
15227 if ac_fn_cxx_try_cpp "$LINENO"
15228 then :
15229 # Broken: success on invalid input.
15230 continue
15231 else case e in #(
15232 e) # Passes both tests.
15233 ac_preproc_ok=:
15234 break ;;
15235 esac
15236 fi
15237 rm -f conftest.err conftest.i conftest.$ac_ext
15238
15239 done
15240 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15241 rm -f conftest.i conftest.err conftest.$ac_ext
15242 if $ac_preproc_ok
15243 then :
15244 break
15245 fi
15246
15247 done
15248 ac_cv_prog_CXXCPP=$CXXCPP
15249 ;;
15250 esac
15251 fi
15252 CXXCPP=$ac_cv_prog_CXXCPP
15253 else
15254 ac_cv_prog_CXXCPP=$CXXCPP
15255 fi
15256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
15257 printf "%s\n" "$CXXCPP" >&6; }
15258 ac_preproc_ok=false
15259 for ac_cxx_preproc_warn_flag in '' yes
15260 do
15261 # Use a header file that comes with gcc, so configuring glibc
15262 # with a fresh cross-compiler works.
15263 # On the NeXT, cc -E runs the code through the compiler's parser,
15264 # not just through cpp. "Syntax error" is here to catch this case.
15265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15266 /* end confdefs.h. */
15267 #include <limits.h>
15268 Syntax error
15269 _ACEOF
15270 if ac_fn_cxx_try_cpp "$LINENO"
15271 then :
15272
15273 else case e in #(
15274 e) # Broken: fails on valid input.
15275 continue ;;
15276 esac
15277 fi
15278 rm -f conftest.err conftest.i conftest.$ac_ext
15279
15280 # OK, works on sane cases. Now check whether nonexistent headers
15281 # can be detected and how.
15282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15283 /* end confdefs.h. */
15284 #include <ac_nonexistent.h>
15285 _ACEOF
15286 if ac_fn_cxx_try_cpp "$LINENO"
15287 then :
15288 # Broken: success on invalid input.
15289 continue
15290 else case e in #(
15291 e) # Passes both tests.
15292 ac_preproc_ok=:
15293 break ;;
15294 esac
15295 fi
15296 rm -f conftest.err conftest.i conftest.$ac_ext
15297
15298 done
15299 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15300 rm -f conftest.i conftest.err conftest.$ac_ext
15301 if $ac_preproc_ok
15302 then :
15303
15304 else case e in #(
15305 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
15306 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
15307 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
15308 See 'config.log' for more details" "$LINENO" 5; } ;;
15309 esac
15310 fi
15311
15312 ac_ext=c
15313 ac_cpp='$CPP $CPPFLAGS'
15314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15317
15318 else
15319 _lt_caught_CXX_error=yes
15320 fi
15321
15322 ac_ext=cpp
15323 ac_cpp='$CXXCPP $CPPFLAGS'
15324 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15325 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15326 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15327
15328 archive_cmds_need_lc_CXX=no
15329 allow_undefined_flag_CXX=
15330 always_export_symbols_CXX=no
15331 archive_expsym_cmds_CXX=
15332 compiler_needs_object_CXX=no
15333 export_dynamic_flag_spec_CXX=
15334 hardcode_direct_CXX=no
15335 hardcode_direct_absolute_CXX=no
15336 hardcode_libdir_flag_spec_CXX=
15337 hardcode_libdir_separator_CXX=
15338 hardcode_minus_L_CXX=no
15339 hardcode_shlibpath_var_CXX=unsupported
15340 hardcode_automatic_CXX=no
15341 inherit_rpath_CXX=no
15342 module_cmds_CXX=
15343 module_expsym_cmds_CXX=
15344 link_all_deplibs_CXX=unknown
15345 old_archive_cmds_CXX=$old_archive_cmds
15346 reload_flag_CXX=$reload_flag
15347 reload_cmds_CXX=$reload_cmds
15348 no_undefined_flag_CXX=
15349 whole_archive_flag_spec_CXX=
15350 enable_shared_with_static_runtimes_CXX=no
15351
15352 # Source file extension for C++ test sources.
15353 ac_ext=cpp
15354
15355 # Object file extension for compiled C++ test sources.
15356 objext=o
15357 objext_CXX=$objext
15358
15359 # No sense in running all these tests if we already determined that
15360 # the CXX compiler isn't working. Some variables (like enable_shared)
15361 # are currently assumed to apply to all compilers on this platform,
15362 # and will be corrupted by setting them based on a non-working compiler.
15363 if test yes != "$_lt_caught_CXX_error"; then
15364 # Code to be used in simple compile tests
15365 lt_simple_compile_test_code="int some_variable = 0;"
15366
15367 # Code to be used in simple link tests
15368 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
15369
15370 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15371
15372
15373
15374
15375
15376
15377 # If no C compiler was specified, use CC.
15378 LTCC=${LTCC-"$CC"}
15379
15380 # If no C compiler flags were specified, use CFLAGS.
15381 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15382
15383 # Allow CC to be a program name with arguments.
15384 compiler=$CC
15385
15386
15387 # save warnings/boilerplate of simple test code
15388 ac_outfile=conftest.$ac_objext
15389 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15390 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15391 _lt_compiler_boilerplate=`cat conftest.err`
15392 $RM conftest*
15393
15394 ac_outfile=conftest.$ac_objext
15395 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15396 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15397 _lt_linker_boilerplate=`cat conftest.err`
15398 $RM -r conftest*
15399
15400
15401 # Allow CC to be a program name with arguments.
15402 lt_save_CC=$CC
15403 lt_save_CFLAGS=$CFLAGS
15404 lt_save_LD=$LD
15405 lt_save_GCC=$GCC
15406 GCC=$GXX
15407 lt_save_with_gnu_ld=$with_gnu_ld
15408 lt_save_path_LD=$lt_cv_path_LD
15409 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15410 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15411 else
15412 $as_unset lt_cv_prog_gnu_ld
15413 fi
15414 if test -n "${lt_cv_path_LDCXX+set}"; then
15415 lt_cv_path_LD=$lt_cv_path_LDCXX
15416 else
15417 $as_unset lt_cv_path_LD
15418 fi
15419 test -z "${LDCXX+set}" || LD=$LDCXX
15420 CC=${CXX-"c++"}
15421 CFLAGS=$CXXFLAGS
15422 compiler=$CC
15423 compiler_CXX=$CC
15424 func_cc_basename $compiler
15425 cc_basename=$func_cc_basename_result
15426
15427
15428 if test -n "$compiler"; then
15429 # We don't want -fno-exception when compiling C++ code, so set the
15430 # no_builtin_flag separately
15431 if test yes = "$GXX"; then
15432 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15433 else
15434 lt_prog_compiler_no_builtin_flag_CXX=
15435 fi
15436
15437 if test yes = "$GXX"; then
15438 # Set up default GNU C++ configuration
15439
15440
15441
15442 # Check whether --with-gnu-ld was given.
15443 if test ${with_gnu_ld+y}
15444 then :
15445 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
15446 else case e in #(
15447 e) with_gnu_ld=no ;;
15448 esac
15449 fi
15450
15451 ac_prog=ld
15452 if test yes = "$GCC"; then
15453 # Check if gcc -print-prog-name=ld gives a path.
15454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15455 printf %s "checking for ld used by $CC... " >&6; }
15456 case $host in
15457 *-*-mingw* | *-*-windows*)
15458 # gcc leaves a trailing carriage return, which upsets mingw
15459 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15460 *)
15461 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15462 esac
15463 case $ac_prog in
15464 # Accept absolute paths.
15465 [\\/]* | ?:[\\/]*)
15466 re_direlt='/[^/][^/]*/\.\./'
15467 # Canonicalize the pathname of ld
15468 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15469 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15470 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15471 done
15472 test -z "$LD" && LD=$ac_prog
15473 ;;
15474 "")
15475 # If it fails, then pretend we aren't using GCC.
15476 ac_prog=ld
15477 ;;
15478 *)
15479 # If it is relative, then search for the first ld in PATH.
15480 with_gnu_ld=unknown
15481 ;;
15482 esac
15483 elif test yes = "$with_gnu_ld"; then
15484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15485 printf %s "checking for GNU ld... " >&6; }
15486 else
15487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15488 printf %s "checking for non-GNU ld... " >&6; }
15489 fi
15490 if test ${lt_cv_path_LD+y}
15491 then :
15492 printf %s "(cached) " >&6
15493 else case e in #(
15494 e) if test -z "$LD"; then
15495 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15496 for ac_dir in $PATH; do
15497 IFS=$lt_save_ifs
15498 test -z "$ac_dir" && ac_dir=.
15499 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15500 lt_cv_path_LD=$ac_dir/$ac_prog
15501 # Check to see if the program is GNU ld. I'd rather use --version,
15502 # but apparently some variants of GNU ld only accept -v.
15503 # Break only if it was the GNU/non-GNU ld that we prefer.
15504 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15505 *GNU* | *'with BFD'*)
15506 test no != "$with_gnu_ld" && break
15507 ;;
15508 *)
15509 test yes != "$with_gnu_ld" && break
15510 ;;
15511 esac
15512 fi
15513 done
15514 IFS=$lt_save_ifs
15515 else
15516 lt_cv_path_LD=$LD # Let the user override the test with a path.
15517 fi ;;
15518 esac
15519 fi
15520
15521 LD=$lt_cv_path_LD
15522 if test -n "$LD"; then
15523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15524 printf "%s\n" "$LD" >&6; }
15525 else
15526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15527 printf "%s\n" "no" >&6; }
15528 fi
15529 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15531 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
15532 if test ${lt_cv_prog_gnu_ld+y}
15533 then :
15534 printf %s "(cached) " >&6
15535 else case e in #(
15536 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
15537 case `$LD -v 2>&1 </dev/null` in
15538 *GNU* | *'with BFD'*)
15539 lt_cv_prog_gnu_ld=yes
15540 ;;
15541 *)
15542 lt_cv_prog_gnu_ld=no
15543 ;;
15544 esac ;;
15545 esac
15546 fi
15547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15548 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
15549 with_gnu_ld=$lt_cv_prog_gnu_ld
15550
15551
15552
15553
15554
15555
15556
15557 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15558 # archiving commands below assume that GNU ld is being used.
15559 if test yes = "$with_gnu_ld"; then
15560 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15561 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'
15562
15563 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15564 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15565
15566 # If archive_cmds runs LD, not CC, wlarc should be empty
15567 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15568 # investigate it a little bit more. (MM)
15569 wlarc='$wl'
15570
15571 # ancient GNU ld didn't support --whole-archive et. al.
15572 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15573 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15574 else
15575 whole_archive_flag_spec_CXX=
15576 fi
15577 else
15578 with_gnu_ld=no
15579 wlarc=
15580
15581 # A generic and very simple default shared library creation
15582 # command for GNU C++ for the case where it uses the native
15583 # linker, instead of GNU ld. If possible, this setting should
15584 # overridden to take advantage of the native linker features on
15585 # the platform it is being used on.
15586 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15587 fi
15588
15589 # Commands to make compiler produce verbose output that lists
15590 # what "hidden" libraries, object files and flags are used when
15591 # linking a shared library.
15592 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
15593
15594 else
15595 GXX=no
15596 with_gnu_ld=no
15597 wlarc=
15598 fi
15599
15600 # PORTME: fill in a description of your system's C++ link characteristics
15601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15602 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15603 ld_shlibs_CXX=yes
15604 case $host_os in
15605 aix3*)
15606 # FIXME: insert proper C++ library support
15607 ld_shlibs_CXX=no
15608 ;;
15609 aix[4-9]*)
15610 if test ia64 = "$host_cpu"; then
15611 # On IA64, the linker does run time linking by default, so we don't
15612 # have to do anything special.
15613 aix_use_runtimelinking=no
15614 exp_sym_flag='-Bexport'
15615 no_entry_flag=
15616 else
15617 aix_use_runtimelinking=no
15618
15619 # Test if we are trying to use run time linking or normal
15620 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15621 # have runtime linking enabled, and use it for executables.
15622 # For shared libraries, we enable/disable runtime linking
15623 # depending on the kind of the shared library created -
15624 # when "with_aix_soname,aix_use_runtimelinking" is:
15625 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
15626 # "aix,yes" lib.so shared, rtl:yes, for executables
15627 # lib.a static archive
15628 # "both,no" lib.so.V(shr.o) shared, rtl:yes
15629 # lib.a(lib.so.V) shared, rtl:no, for executables
15630 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
15631 # lib.a(lib.so.V) shared, rtl:no
15632 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
15633 # lib.a static archive
15634 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15635 for ld_flag in $LDFLAGS; do
15636 case $ld_flag in
15637 *-brtl*)
15638 aix_use_runtimelinking=yes
15639 break
15640 ;;
15641 esac
15642 done
15643 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
15644 # With aix-soname=svr4, we create the lib.so.V shared archives only,
15645 # so we don't have lib.a shared libs to link our executables.
15646 # We have to force runtime linking in this case.
15647 aix_use_runtimelinking=yes
15648 LDFLAGS="$LDFLAGS -Wl,-brtl"
15649 fi
15650 ;;
15651 esac
15652
15653 exp_sym_flag='-bexport'
15654 no_entry_flag='-bnoentry'
15655 fi
15656
15657 # When large executables or shared objects are built, AIX ld can
15658 # have problems creating the table of contents. If linking a library
15659 # or program results in "error TOC overflow" add -mminimal-toc to
15660 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15661 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15662
15663 archive_cmds_CXX=''
15664 hardcode_direct_CXX=yes
15665 hardcode_direct_absolute_CXX=yes
15666 hardcode_libdir_separator_CXX=':'
15667 link_all_deplibs_CXX=yes
15668 file_list_spec_CXX='$wl-f,'
15669 case $with_aix_soname,$aix_use_runtimelinking in
15670 aix,*) ;; # no import file
15671 svr4,* | *,yes) # use import file
15672 # The Import File defines what to hardcode.
15673 hardcode_direct_CXX=no
15674 hardcode_direct_absolute_CXX=no
15675 ;;
15676 esac
15677
15678 if test yes = "$GXX"; then
15679 case $host_os in aix4.[012]|aix4.[012].*)
15680 # We only want to do this on AIX 4.2 and lower, the check
15681 # below for broken collect2 doesn't work under 4.3+
15682 collect2name=`$CC -print-prog-name=collect2`
15683 if test -f "$collect2name" &&
15684 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15685 then
15686 # We have reworked collect2
15687 :
15688 else
15689 # We have old collect2
15690 hardcode_direct_CXX=unsupported
15691 # It fails to find uninstalled libraries when the uninstalled
15692 # path is not listed in the libpath. Setting hardcode_minus_L
15693 # to unsupported forces relinking
15694 hardcode_minus_L_CXX=yes
15695 hardcode_libdir_flag_spec_CXX='-L$libdir'
15696 hardcode_libdir_separator_CXX=
15697 fi
15698 esac
15699 shared_flag='-shared'
15700 if test yes = "$aix_use_runtimelinking"; then
15701 shared_flag=$shared_flag' $wl-G'
15702 fi
15703 # Need to ensure runtime linking is disabled for the traditional
15704 # shared library, or the linker may eventually find shared libraries
15705 # /with/ Import File - we do not want to mix them.
15706 shared_flag_aix='-shared'
15707 shared_flag_svr4='-shared $wl-G'
15708 else
15709 # not using gcc
15710 if test ia64 = "$host_cpu"; then
15711 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15712 # chokes on -Wl,-G. The following line is correct:
15713 shared_flag='-G'
15714 else
15715 if test yes = "$aix_use_runtimelinking"; then
15716 shared_flag='$wl-G'
15717 else
15718 shared_flag='$wl-bM:SRE'
15719 fi
15720 shared_flag_aix='$wl-bM:SRE'
15721 shared_flag_svr4='$wl-G'
15722 fi
15723 fi
15724
15725 export_dynamic_flag_spec_CXX='$wl-bexpall'
15726 # It seems that -bexpall does not export symbols beginning with
15727 # underscore (_), so it is better to generate a list of symbols to
15728 # export.
15729 always_export_symbols_CXX=yes
15730 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
15731 # Warning - without using the other runtime loading flags (-brtl),
15732 # -berok will link without error, but may produce a broken library.
15733 # The "-G" linker flag allows undefined symbols.
15734 no_undefined_flag_CXX='-bernotok'
15735 # Determine the default libpath from the value encoded in an empty
15736 # executable.
15737 if test set = "${lt_cv_aix_libpath+set}"; then
15738 aix_libpath=$lt_cv_aix_libpath
15739 else
15740 if test ${lt_cv_aix_libpath__CXX+y}
15741 then :
15742 printf %s "(cached) " >&6
15743 else case e in #(
15744 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15745 /* end confdefs.h. */
15746
15747 int
15748 main (void)
15749 {
15750
15751 ;
15752 return 0;
15753 }
15754 _ACEOF
15755 if ac_fn_cxx_try_link "$LINENO"
15756 then :
15757
15758 lt_aix_libpath_sed='
15759 /Import File Strings/,/^$/ {
15760 /^0/ {
15761 s/^0 *\([^ ]*\) *$/\1/
15762 p
15763 }
15764 }'
15765 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15766 # Check for a 64-bit object if we didn't find anything.
15767 if test -z "$lt_cv_aix_libpath__CXX"; then
15768 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15769 fi
15770 fi
15771 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15772 conftest$ac_exeext conftest.$ac_ext
15773 if test -z "$lt_cv_aix_libpath__CXX"; then
15774 lt_cv_aix_libpath__CXX=/usr/lib:/lib
15775 fi
15776 ;;
15777 esac
15778 fi
15779
15780 aix_libpath=$lt_cv_aix_libpath__CXX
15781 fi
15782
15783 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15784
15785 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
15786 else
15787 if test ia64 = "$host_cpu"; then
15788 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
15789 allow_undefined_flag_CXX="-z nodefs"
15790 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"
15791 else
15792 # Determine the default libpath from the value encoded in an
15793 # empty executable.
15794 if test set = "${lt_cv_aix_libpath+set}"; then
15795 aix_libpath=$lt_cv_aix_libpath
15796 else
15797 if test ${lt_cv_aix_libpath__CXX+y}
15798 then :
15799 printf %s "(cached) " >&6
15800 else case e in #(
15801 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15802 /* end confdefs.h. */
15803
15804 int
15805 main (void)
15806 {
15807
15808 ;
15809 return 0;
15810 }
15811 _ACEOF
15812 if ac_fn_cxx_try_link "$LINENO"
15813 then :
15814
15815 lt_aix_libpath_sed='
15816 /Import File Strings/,/^$/ {
15817 /^0/ {
15818 s/^0 *\([^ ]*\) *$/\1/
15819 p
15820 }
15821 }'
15822 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15823 # Check for a 64-bit object if we didn't find anything.
15824 if test -z "$lt_cv_aix_libpath__CXX"; then
15825 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15826 fi
15827 fi
15828 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15829 conftest$ac_exeext conftest.$ac_ext
15830 if test -z "$lt_cv_aix_libpath__CXX"; then
15831 lt_cv_aix_libpath__CXX=/usr/lib:/lib
15832 fi
15833 ;;
15834 esac
15835 fi
15836
15837 aix_libpath=$lt_cv_aix_libpath__CXX
15838 fi
15839
15840 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15841 # Warning - without using the other run time loading flags,
15842 # -berok will link without error, but may produce a broken library.
15843 no_undefined_flag_CXX=' $wl-bernotok'
15844 allow_undefined_flag_CXX=' $wl-berok'
15845 if test yes = "$with_gnu_ld"; then
15846 # We only use this code for GNU lds that support --whole-archive.
15847 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
15848 else
15849 # Exported symbols can be pulled into shared objects from archives
15850 whole_archive_flag_spec_CXX='$convenience'
15851 fi
15852 archive_cmds_need_lc_CXX=yes
15853 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
15854 # -brtl affects multiple linker settings, -berok does not and is overridden later
15855 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
15856 if test svr4 != "$with_aix_soname"; then
15857 # This is similar to how AIX traditionally builds its shared
15858 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
15859 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'
15860 fi
15861 if test aix != "$with_aix_soname"; then
15862 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'
15863 else
15864 # used by -dlpreopen to get the symbols
15865 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
15866 fi
15867 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
15868 fi
15869 fi
15870 ;;
15871
15872 beos*)
15873 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15874 allow_undefined_flag_CXX=unsupported
15875 # Joseph Beckenbach <[email protected]> says some releases of gcc
15876 # support --undefined. This deserves some investigation. FIXME
15877 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15878 else
15879 ld_shlibs_CXX=no
15880 fi
15881 ;;
15882
15883 chorus*)
15884 case $cc_basename in
15885 *)
15886 # FIXME: insert proper C++ library support
15887 ld_shlibs_CXX=no
15888 ;;
15889 esac
15890 ;;
15891
15892 cygwin* | mingw* | windows* | pw32* | cegcc*)
15893 case $GXX,$cc_basename in
15894 ,cl* | no,cl* | ,icl* | no,icl*)
15895 # Native MSVC or ICC
15896 # hardcode_libdir_flag_spec is actually meaningless, as there is
15897 # no search path for DLLs.
15898 hardcode_libdir_flag_spec_CXX=' '
15899 allow_undefined_flag_CXX=unsupported
15900 always_export_symbols_CXX=yes
15901 file_list_spec_CXX='@'
15902 # Tell ltmain to make .lib files, not .a files.
15903 libext=lib
15904 # Tell ltmain to make .dll files, not .so files.
15905 shrext_cmds=.dll
15906 # FIXME: Setting linknames here is a bad hack.
15907 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
15908 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
15909 cp "$export_symbols" "$output_objdir/$soname.def";
15910 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
15911 else
15912 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
15913 fi~
15914 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15915 linknames='
15916 # The linker will not automatically build a static lib if we build a DLL.
15917 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
15918 enable_shared_with_static_runtimes_CXX=yes
15919 # Don't use ranlib
15920 old_postinstall_cmds_CXX='chmod 644 $oldlib'
15921 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
15922 lt_tool_outputfile="@TOOL_OUTPUT@"~
15923 case $lt_outputfile in
15924 *.exe|*.EXE) ;;
15925 *)
15926 lt_outputfile=$lt_outputfile.exe
15927 lt_tool_outputfile=$lt_tool_outputfile.exe
15928 ;;
15929 esac~
15930 func_to_tool_file "$lt_outputfile"~
15931 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
15932 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15933 $RM "$lt_outputfile.manifest";
15934 fi'
15935 ;;
15936 *)
15937 # g++
15938 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15939 # as there is no search path for DLLs.
15940 hardcode_libdir_flag_spec_CXX='-L$libdir'
15941 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
15942 allow_undefined_flag_CXX=unsupported
15943 always_export_symbols_CXX=no
15944 enable_shared_with_static_runtimes_CXX=yes
15945 file_list_spec_CXX='@'
15946
15947 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15948 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'
15949 # If the export-symbols file already is a .def file, use it as
15950 # is; otherwise, prepend EXPORTS...
15951 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
15952 cp $export_symbols $output_objdir/$soname.def;
15953 else
15954 echo EXPORTS > $output_objdir/$soname.def;
15955 cat $export_symbols >> $output_objdir/$soname.def;
15956 fi~
15957 $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'
15958 else
15959 ld_shlibs_CXX=no
15960 fi
15961 ;;
15962 esac
15963 ;;
15964 darwin* | rhapsody*)
15965
15966
15967 archive_cmds_need_lc_CXX=no
15968 hardcode_direct_CXX=no
15969 hardcode_automatic_CXX=yes
15970 hardcode_shlibpath_var_CXX=unsupported
15971 if test yes = "$lt_cv_ld_force_load"; then
15972 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\"`'
15973
15974 else
15975 whole_archive_flag_spec_CXX=''
15976 fi
15977 link_all_deplibs_CXX=yes
15978 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
15979 case $cc_basename in
15980 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
15981 *) _lt_dar_can_shared=$GCC ;;
15982 esac
15983 if test yes = "$_lt_dar_can_shared"; then
15984 output_verbose_link_cmd=func_echo_all
15985 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"
15986 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
15987 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"
15988 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"
15989 if test yes = "$_lt_dar_needs_single_mod" -a yes != "$lt_cv_apple_cc_single_mod"; then
15990 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"
15991 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"
15992 fi
15993
15994 else
15995 ld_shlibs_CXX=no
15996 fi
15997
15998 ;;
15999
16000 os2*)
16001 hardcode_libdir_flag_spec_CXX='-L$libdir'
16002 hardcode_minus_L_CXX=yes
16003 allow_undefined_flag_CXX=unsupported
16004 shrext_cmds=.dll
16005 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16006 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16007 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16008 $ECHO EXPORTS >> $output_objdir/$libname.def~
16009 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
16010 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16011 emximp -o $lib $output_objdir/$libname.def'
16012 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16013 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16014 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16015 $ECHO EXPORTS >> $output_objdir/$libname.def~
16016 prefix_cmds="$SED"~
16017 if test EXPORTS = "`$SED 1q $export_symbols`"; then
16018 prefix_cmds="$prefix_cmds -e 1d";
16019 fi~
16020 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
16021 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
16022 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16023 emximp -o $lib $output_objdir/$libname.def'
16024 old_archive_from_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
16025 enable_shared_with_static_runtimes_CXX=yes
16026 file_list_spec_CXX='@'
16027 ;;
16028
16029 dgux*)
16030 case $cc_basename in
16031 ec++*)
16032 # FIXME: insert proper C++ library support
16033 ld_shlibs_CXX=no
16034 ;;
16035 ghcx*)
16036 # Green Hills C++ Compiler
16037 # FIXME: insert proper C++ library support
16038 ld_shlibs_CXX=no
16039 ;;
16040 *)
16041 # FIXME: insert proper C++ library support
16042 ld_shlibs_CXX=no
16043 ;;
16044 esac
16045 ;;
16046
16047 freebsd2.*)
16048 # C++ shared libraries reported to be fairly broken before
16049 # switch to ELF
16050 ld_shlibs_CXX=no
16051 ;;
16052
16053 freebsd-elf*)
16054 archive_cmds_need_lc_CXX=no
16055 ;;
16056
16057 freebsd* | dragonfly* | midnightbsd*)
16058 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16059 # conventions
16060 ld_shlibs_CXX=yes
16061 ;;
16062
16063 haiku*)
16064 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16065 link_all_deplibs_CXX=no
16066 ;;
16067
16068 hpux9*)
16069 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
16070 hardcode_libdir_separator_CXX=:
16071 export_dynamic_flag_spec_CXX='$wl-E'
16072 hardcode_direct_CXX=yes
16073 hardcode_minus_L_CXX=yes # Not in the search PATH,
16074 # but as the default
16075 # location of the library.
16076
16077 case $cc_basename in
16078 CC*)
16079 # FIXME: insert proper C++ library support
16080 ld_shlibs_CXX=no
16081 ;;
16082 aCC*)
16083 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'
16084 # Commands to make compiler produce verbose output that lists
16085 # what "hidden" libraries, object files and flags are used when
16086 # linking a shared library.
16087 #
16088 # There doesn't appear to be a way to prevent this compiler from
16089 # explicitly linking system object files so we need to strip them
16090 # from the output so that they don't get included in the library
16091 # dependencies.
16092 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"'
16093 ;;
16094 *)
16095 if test yes = "$GXX"; then
16096 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'
16097 else
16098 # FIXME: insert proper C++ library support
16099 ld_shlibs_CXX=no
16100 fi
16101 ;;
16102 esac
16103 ;;
16104
16105 hpux10*|hpux11*)
16106 if test no = "$with_gnu_ld"; then
16107 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
16108 hardcode_libdir_separator_CXX=:
16109
16110 case $host_cpu in
16111 hppa*64*|ia64*)
16112 ;;
16113 *)
16114 export_dynamic_flag_spec_CXX='$wl-E'
16115 ;;
16116 esac
16117 fi
16118 case $host_cpu in
16119 hppa*64*|ia64*)
16120 hardcode_direct_CXX=no
16121 hardcode_shlibpath_var_CXX=no
16122 ;;
16123 *)
16124 hardcode_direct_CXX=yes
16125 hardcode_direct_absolute_CXX=yes
16126 hardcode_minus_L_CXX=yes # Not in the search PATH,
16127 # but as the default
16128 # location of the library.
16129 ;;
16130 esac
16131
16132 case $cc_basename in
16133 CC*)
16134 # FIXME: insert proper C++ library support
16135 ld_shlibs_CXX=no
16136 ;;
16137 aCC*)
16138 case $host_cpu in
16139 hppa*64*)
16140 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16141 ;;
16142 ia64*)
16143 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16144 ;;
16145 *)
16146 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16147 ;;
16148 esac
16149 # Commands to make compiler produce verbose output that lists
16150 # what "hidden" libraries, object files and flags are used when
16151 # linking a shared library.
16152 #
16153 # There doesn't appear to be a way to prevent this compiler from
16154 # explicitly linking system object files so we need to strip them
16155 # from the output so that they don't get included in the library
16156 # dependencies.
16157 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"'
16158 ;;
16159 *)
16160 if test yes = "$GXX"; then
16161 if test no = "$with_gnu_ld"; then
16162 case $host_cpu in
16163 hppa*64*)
16164 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16165 ;;
16166 ia64*)
16167 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16168 ;;
16169 *)
16170 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'
16171 ;;
16172 esac
16173 fi
16174 else
16175 # FIXME: insert proper C++ library support
16176 ld_shlibs_CXX=no
16177 fi
16178 ;;
16179 esac
16180 ;;
16181
16182 interix[3-9]*)
16183 hardcode_direct_CXX=no
16184 hardcode_shlibpath_var_CXX=no
16185 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16186 export_dynamic_flag_spec_CXX='$wl-E'
16187 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16188 # Instead, shared libraries are loaded at an image base (0x10000000 by
16189 # default) and relocated if they conflict, which is a slow very memory
16190 # consuming and fragmenting process. To avoid this, we pick a random,
16191 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16192 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16193 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'
16194 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'
16195 ;;
16196 irix5* | irix6*)
16197 case $cc_basename in
16198 CC*)
16199 # SGI C++
16200 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'
16201
16202 # Archives containing C++ object files must be created using
16203 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
16204 # necessary to make sure instantiated templates are included
16205 # in the archive.
16206 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16207 ;;
16208 *)
16209 if test yes = "$GXX"; then
16210 if test no = "$with_gnu_ld"; then
16211 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'
16212 else
16213 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'
16214 fi
16215 fi
16216 link_all_deplibs_CXX=yes
16217 ;;
16218 esac
16219 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16220 hardcode_libdir_separator_CXX=:
16221 inherit_rpath_CXX=yes
16222 ;;
16223
16224 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16225 case $cc_basename in
16226 KCC*)
16227 # Kuck and Associates, Inc. (KAI) C++ Compiler
16228
16229 # KCC will only create a shared library if the output file
16230 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16231 # to its proper name (with version) after linking.
16232 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'
16233 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'
16234 # Commands to make compiler produce verbose output that lists
16235 # what "hidden" libraries, object files and flags are used when
16236 # linking a shared library.
16237 #
16238 # There doesn't appear to be a way to prevent this compiler from
16239 # explicitly linking system object files so we need to strip them
16240 # from the output so that they don't get included in the library
16241 # dependencies.
16242 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"'
16243
16244 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16245 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16246
16247 # Archives containing C++ object files must be created using
16248 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16249 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16250 ;;
16251 icpc* | ecpc* )
16252 # Intel C++
16253 with_gnu_ld=yes
16254 # version 8.0 and above of icpc choke on multiply defined symbols
16255 # if we add $predep_objects and $postdep_objects, however 7.1 and
16256 # earlier do not add the objects themselves.
16257 case `$CC -V 2>&1` in
16258 *"Version 7."*)
16259 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16260 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'
16261 ;;
16262 *) # Version 8.0 or newer
16263 tmp_idyn=
16264 case $host_cpu in
16265 ia64*) tmp_idyn=' -i_dynamic';;
16266 esac
16267 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16268 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'
16269 ;;
16270 esac
16271 archive_cmds_need_lc_CXX=no
16272 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16273 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16274 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
16275 ;;
16276 pgCC* | pgcpp*)
16277 # Portland Group C++ compiler
16278 case `$CC -V` in
16279 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
16280 prelink_cmds_CXX='tpldir=Template.dir~
16281 rm -rf $tpldir~
16282 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
16283 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
16284 old_archive_cmds_CXX='tpldir=Template.dir~
16285 rm -rf $tpldir~
16286 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
16287 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
16288 $RANLIB $oldlib'
16289 archive_cmds_CXX='tpldir=Template.dir~
16290 rm -rf $tpldir~
16291 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16292 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16293 archive_expsym_cmds_CXX='tpldir=Template.dir~
16294 rm -rf $tpldir~
16295 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16296 $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'
16297 ;;
16298 *) # Version 6 and above use weak symbols
16299 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16300 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'
16301 ;;
16302 esac
16303
16304 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
16305 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16306 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'
16307 ;;
16308 cxx*)
16309 # Compaq C++
16310 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16311 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'
16312
16313 runpath_var=LD_RUN_PATH
16314 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16315 hardcode_libdir_separator_CXX=:
16316
16317 # Commands to make compiler produce verbose output that lists
16318 # what "hidden" libraries, object files and flags are used when
16319 # linking a shared library.
16320 #
16321 # There doesn't appear to be a way to prevent this compiler from
16322 # explicitly linking system object files so we need to strip them
16323 # from the output so that they don't get included in the library
16324 # dependencies.
16325 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'
16326 ;;
16327 xl* | mpixl* | bgxl*)
16328 # IBM XL 8.0 on PPC, with GNU ld
16329 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16330 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16331 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16332 if test yes = "$supports_anon_versioning"; then
16333 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
16334 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16335 echo "local: *; };" >> $output_objdir/$libname.ver~
16336 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
16337 fi
16338 ;;
16339 *)
16340 case `$CC -V 2>&1 | $SED 5q` in
16341 *Sun\ C*)
16342 # Sun C++ 5.9
16343 no_undefined_flag_CXX=' -zdefs'
16344 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16345 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'
16346 hardcode_libdir_flag_spec_CXX='-R$libdir'
16347 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'
16348 compiler_needs_object_CXX=yes
16349
16350 # Not sure whether something based on
16351 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
16352 # would be better.
16353 output_verbose_link_cmd='func_echo_all'
16354
16355 # Archives containing C++ object files must be created using
16356 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16357 # necessary to make sure instantiated templates are included
16358 # in the archive.
16359 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16360 ;;
16361 esac
16362 ;;
16363 esac
16364 ;;
16365
16366 lynxos*)
16367 # FIXME: insert proper C++ library support
16368 ld_shlibs_CXX=no
16369 ;;
16370
16371 m88k*)
16372 # FIXME: insert proper C++ library support
16373 ld_shlibs_CXX=no
16374 ;;
16375
16376 mvs*)
16377 case $cc_basename in
16378 cxx*)
16379 # FIXME: insert proper C++ library support
16380 ld_shlibs_CXX=no
16381 ;;
16382 *)
16383 # FIXME: insert proper C++ library support
16384 ld_shlibs_CXX=no
16385 ;;
16386 esac
16387 ;;
16388
16389 *-mlibc)
16390 ld_shlibs_CXX=yes
16391 ;;
16392
16393 netbsd*)
16394 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16395 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16396 wlarc=
16397 hardcode_libdir_flag_spec_CXX='-R$libdir'
16398 hardcode_direct_CXX=yes
16399 hardcode_shlibpath_var_CXX=no
16400 fi
16401 # Workaround some broken pre-1.5 toolchains
16402 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16403 ;;
16404
16405 *nto* | *qnx*)
16406 ld_shlibs_CXX=yes
16407 ;;
16408
16409 openbsd*)
16410 if test -f /usr/libexec/ld.so; then
16411 hardcode_direct_CXX=yes
16412 hardcode_shlibpath_var_CXX=no
16413 hardcode_direct_absolute_CXX=yes
16414 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16415 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16416 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
16417 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
16418 export_dynamic_flag_spec_CXX='$wl-E'
16419 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
16420 fi
16421 output_verbose_link_cmd=func_echo_all
16422 else
16423 ld_shlibs_CXX=no
16424 fi
16425 ;;
16426
16427 osf3* | osf4* | osf5*)
16428 case $cc_basename in
16429 KCC*)
16430 # Kuck and Associates, Inc. (KAI) C++ Compiler
16431
16432 # KCC will only create a shared library if the output file
16433 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16434 # to its proper name (with version) after linking.
16435 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'
16436
16437 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16438 hardcode_libdir_separator_CXX=:
16439
16440 # Archives containing C++ object files must be created using
16441 # the KAI C++ compiler.
16442 case $host in
16443 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
16444 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
16445 esac
16446 ;;
16447 RCC*)
16448 # Rational C++ 2.4.1
16449 # FIXME: insert proper C++ library support
16450 ld_shlibs_CXX=no
16451 ;;
16452 cxx*)
16453 case $host in
16454 osf3*)
16455 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
16456 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'
16457 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16458 ;;
16459 *)
16460 allow_undefined_flag_CXX=' -expect_unresolved \*'
16461 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'
16462 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16463 echo "-hidden">> $lib.exp~
16464 $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~
16465 $RM $lib.exp'
16466 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16467 ;;
16468 esac
16469
16470 hardcode_libdir_separator_CXX=:
16471
16472 # Commands to make compiler produce verbose output that lists
16473 # what "hidden" libraries, object files and flags are used when
16474 # linking a shared library.
16475 #
16476 # There doesn't appear to be a way to prevent this compiler from
16477 # explicitly linking system object files so we need to strip them
16478 # from the output so that they don't get included in the library
16479 # dependencies.
16480 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"'
16481 ;;
16482 *)
16483 if test yes,no = "$GXX,$with_gnu_ld"; then
16484 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
16485 case $host in
16486 osf3*)
16487 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'
16488 ;;
16489 *)
16490 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'
16491 ;;
16492 esac
16493
16494 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16495 hardcode_libdir_separator_CXX=:
16496
16497 # Commands to make compiler produce verbose output that lists
16498 # what "hidden" libraries, object files and flags are used when
16499 # linking a shared library.
16500 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
16501
16502 else
16503 # FIXME: insert proper C++ library support
16504 ld_shlibs_CXX=no
16505 fi
16506 ;;
16507 esac
16508 ;;
16509
16510 psos*)
16511 # FIXME: insert proper C++ library support
16512 ld_shlibs_CXX=no
16513 ;;
16514
16515 serenity*)
16516 ;;
16517
16518 sunos4*)
16519 case $cc_basename in
16520 CC*)
16521 # Sun C++ 4.x
16522 # FIXME: insert proper C++ library support
16523 ld_shlibs_CXX=no
16524 ;;
16525 lcc*)
16526 # Lucid
16527 # FIXME: insert proper C++ library support
16528 ld_shlibs_CXX=no
16529 ;;
16530 *)
16531 # FIXME: insert proper C++ library support
16532 ld_shlibs_CXX=no
16533 ;;
16534 esac
16535 ;;
16536
16537 solaris*)
16538 case $cc_basename in
16539 CC* | sunCC*)
16540 # Sun C++ 4.2, 5.x and Centerline C++
16541 archive_cmds_need_lc_CXX=yes
16542 no_undefined_flag_CXX=' -zdefs'
16543 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16544 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16545 $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'
16546
16547 hardcode_libdir_flag_spec_CXX='-R$libdir'
16548 hardcode_shlibpath_var_CXX=no
16549 case $host_os in
16550 solaris2.[0-5] | solaris2.[0-5].*) ;;
16551 *)
16552 # The compiler driver will combine and reorder linker options,
16553 # but understands '-z linker_flag'.
16554 # Supported since Solaris 2.6 (maybe 2.5.1?)
16555 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
16556 ;;
16557 esac
16558 link_all_deplibs_CXX=yes
16559
16560 output_verbose_link_cmd='func_echo_all'
16561
16562 # Archives containing C++ object files must be created using
16563 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16564 # necessary to make sure instantiated templates are included
16565 # in the archive.
16566 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16567 ;;
16568 gcx*)
16569 # Green Hills C++ Compiler
16570 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16571
16572 # The C++ compiler must be used to create the archive.
16573 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16574 ;;
16575 *)
16576 # GNU C++ compiler with Solaris linker
16577 if test yes,no = "$GXX,$with_gnu_ld"; then
16578 no_undefined_flag_CXX=' $wl-z ${wl}defs'
16579 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
16580 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16581 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16582 $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'
16583
16584 # Commands to make compiler produce verbose output that lists
16585 # what "hidden" libraries, object files and flags are used when
16586 # linking a shared library.
16587 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
16588 else
16589 # g++ 2.7 appears to require '-G' NOT '-shared' on this
16590 # platform.
16591 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16592 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16593 $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'
16594
16595 # Commands to make compiler produce verbose output that lists
16596 # what "hidden" libraries, object files and flags are used when
16597 # linking a shared library.
16598 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
16599 fi
16600
16601 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
16602 case $host_os in
16603 solaris2.[0-5] | solaris2.[0-5].*) ;;
16604 *)
16605 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
16606 ;;
16607 esac
16608 fi
16609 ;;
16610 esac
16611 ;;
16612
16613 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16614 no_undefined_flag_CXX='$wl-z,text'
16615 archive_cmds_need_lc_CXX=no
16616 hardcode_shlibpath_var_CXX=no
16617 runpath_var='LD_RUN_PATH'
16618
16619 case $cc_basename in
16620 CC*)
16621 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16622 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16623 ;;
16624 *)
16625 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16626 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16627 ;;
16628 esac
16629 ;;
16630
16631 sysv5* | sco3.2v5* | sco5v6*)
16632 # Note: We CANNOT use -z defs as we might desire, because we do not
16633 # link with -lc, and that would cause any symbols used from libc to
16634 # always be unresolved, which means just about no library would
16635 # ever link correctly. If we're not using GNU ld we use -z text
16636 # though, which does catch some bad symbols but isn't as heavy-handed
16637 # as -z defs.
16638 no_undefined_flag_CXX='$wl-z,text'
16639 allow_undefined_flag_CXX='$wl-z,nodefs'
16640 archive_cmds_need_lc_CXX=no
16641 hardcode_shlibpath_var_CXX=no
16642 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
16643 hardcode_libdir_separator_CXX=':'
16644 link_all_deplibs_CXX=yes
16645 export_dynamic_flag_spec_CXX='$wl-Bexport'
16646 runpath_var='LD_RUN_PATH'
16647
16648 case $cc_basename in
16649 CC*)
16650 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16651 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16652 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
16653 '"$old_archive_cmds_CXX"
16654 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
16655 '"$reload_cmds_CXX"
16656 ;;
16657 *)
16658 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16659 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16660 ;;
16661 esac
16662 ;;
16663
16664 tandem*)
16665 case $cc_basename in
16666 NCC*)
16667 # NonStop-UX NCC 3.20
16668 # FIXME: insert proper C++ library support
16669 ld_shlibs_CXX=no
16670 ;;
16671 *)
16672 # FIXME: insert proper C++ library support
16673 ld_shlibs_CXX=no
16674 ;;
16675 esac
16676 ;;
16677
16678 vxworks*)
16679 # FIXME: insert proper C++ library support
16680 ld_shlibs_CXX=no
16681 ;;
16682
16683 *)
16684 # FIXME: insert proper C++ library support
16685 ld_shlibs_CXX=no
16686 ;;
16687 esac
16688
16689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16690 printf "%s\n" "$ld_shlibs_CXX" >&6; }
16691 test no = "$ld_shlibs_CXX" && can_build_shared=no
16692
16693 GCC_CXX=$GXX
16694 LD_CXX=$LD
16695
16696 ## CAVEAT EMPTOR:
16697 ## There is no encapsulation within the following macros, do not change
16698 ## the running order or otherwise move them around unless you know exactly
16699 ## what you are doing...
16700 # Dependencies to place before and after the object being linked:
16701 predep_objects_CXX=
16702 postdep_objects_CXX=
16703 predeps_CXX=
16704 postdeps_CXX=
16705 compiler_lib_search_path_CXX=
16706
16707 cat > conftest.$ac_ext <<_LT_EOF
16708 class Foo
16709 {
16710 public:
16711 Foo (void) { a = 0; }
16712 private:
16713 int a;
16714 };
16715 _LT_EOF
16716
16717
16718 _lt_libdeps_save_CFLAGS=$CFLAGS
16719 case "$CC $CFLAGS " in #(
16720 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
16721 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
16722 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
16723 esac
16724
16725 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16726 (eval $ac_compile) 2>&5
16727 ac_status=$?
16728 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16729 test $ac_status = 0; }; then
16730 # Parse the compiler output and extract the necessary
16731 # objects, libraries and library flags.
16732
16733 # Sentinel used to keep track of whether or not we are before
16734 # the conftest object file.
16735 pre_test_object_deps_done=no
16736
16737 for p in `eval "$output_verbose_link_cmd"`; do
16738 case $prev$p in
16739
16740 -L* | -R* | -l*)
16741 # Some compilers place space between "-{L,R,l}" and the path.
16742 # Remove the space.
16743 if test x-L = x"$p" ||
16744 test x-R = x"$p" ||
16745 test x-l = x"$p"; then
16746 prev=$p
16747 continue
16748 fi
16749
16750 # Expand the sysroot to ease extracting the directories later.
16751 if test -z "$prev"; then
16752 case $p in
16753 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
16754 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
16755 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
16756 esac
16757 fi
16758 case $p in
16759 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
16760 esac
16761 if test no = "$pre_test_object_deps_done"; then
16762 case $prev in
16763 -L | -R)
16764 # Internal compiler library paths should come after those
16765 # provided the user. The postdeps already come after the
16766 # user supplied libs so there is no need to process them.
16767 if test -z "$compiler_lib_search_path_CXX"; then
16768 compiler_lib_search_path_CXX=$prev$p
16769 else
16770 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
16771 fi
16772 ;;
16773 # The "-l" case would never come before the object being
16774 # linked, so don't bother handling this case.
16775 esac
16776 else
16777 if test -z "$postdeps_CXX"; then
16778 postdeps_CXX=$prev$p
16779 else
16780 postdeps_CXX="${postdeps_CXX} $prev$p"
16781 fi
16782 fi
16783 prev=
16784 ;;
16785
16786 *.lto.$objext) ;; # Ignore GCC LTO objects
16787 *.$objext)
16788 # This assumes that the test object file only shows up
16789 # once in the compiler output.
16790 if test "$p" = "conftest.$objext"; then
16791 pre_test_object_deps_done=yes
16792 continue
16793 fi
16794
16795 if test no = "$pre_test_object_deps_done"; then
16796 if test -z "$predep_objects_CXX"; then
16797 predep_objects_CXX=$p
16798 else
16799 predep_objects_CXX="$predep_objects_CXX $p"
16800 fi
16801 else
16802 if test -z "$postdep_objects_CXX"; then
16803 postdep_objects_CXX=$p
16804 else
16805 postdep_objects_CXX="$postdep_objects_CXX $p"
16806 fi
16807 fi
16808 ;;
16809
16810 *) ;; # Ignore the rest.
16811
16812 esac
16813 done
16814
16815 # Clean up.
16816 rm -f a.out a.exe
16817 else
16818 echo "libtool.m4: error: problem compiling CXX test program"
16819 fi
16820
16821 $RM -f confest.$objext
16822 CFLAGS=$_lt_libdeps_save_CFLAGS
16823
16824 # PORTME: override above test on systems where it is broken
16825 case $host_os in
16826 interix[3-9]*)
16827 # Interix 3.5 installs completely hosed .la files for C++, so rather than
16828 # hack all around it, let's just trust "g++" to DTRT.
16829 predep_objects_CXX=
16830 postdep_objects_CXX=
16831 postdeps_CXX=
16832 ;;
16833 esac
16834
16835
16836 case " $postdeps_CXX " in
16837 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16838 esac
16839 compiler_lib_search_dirs_CXX=
16840 if test -n "${compiler_lib_search_path_CXX}"; then
16841 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
16842 fi
16843
16844
16845
16846
16847
16848
16849
16850
16851
16852
16853
16854
16855
16856
16857
16858
16859
16860
16861
16862
16863
16864
16865
16866
16867
16868
16869
16870
16871
16872
16873
16874 lt_prog_compiler_wl_CXX=
16875 lt_prog_compiler_pic_CXX=
16876 lt_prog_compiler_static_CXX=
16877
16878
16879 # C++ specific cases for pic, static, wl, etc.
16880 if test yes = "$GXX"; then
16881 lt_prog_compiler_wl_CXX='-Wl,'
16882 lt_prog_compiler_static_CXX='-static'
16883
16884 case $host_os in
16885 aix*)
16886 # All AIX code is PIC.
16887 if test ia64 = "$host_cpu"; then
16888 # AIX 5 now supports IA64 processor
16889 lt_prog_compiler_static_CXX='-Bstatic'
16890 fi
16891 lt_prog_compiler_pic_CXX='-fPIC'
16892 ;;
16893
16894 amigaos*)
16895 case $host_cpu in
16896 powerpc)
16897 # see comment about AmigaOS4 .so support
16898 lt_prog_compiler_pic_CXX='-fPIC'
16899 ;;
16900 m68k)
16901 # FIXME: we need at least 68020 code to build shared libraries, but
16902 # adding the '-m68020' flag to GCC prevents building anything better,
16903 # like '-m68040'.
16904 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16905 ;;
16906 esac
16907 ;;
16908
16909 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16910 # PIC is the default for these OSes.
16911 ;;
16912 mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
16913 # This hack is so that the source file can tell whether it is being
16914 # built for inclusion in a dll (and should export symbols for example).
16915 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16916 # (--disable-auto-import) libraries
16917 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16918 case $host_os in
16919 os2*)
16920 lt_prog_compiler_static_CXX='$wl-static'
16921 ;;
16922 esac
16923 ;;
16924 darwin* | rhapsody*)
16925 # PIC is the default on this platform
16926 # Common symbols not allowed in MH_DYLIB files
16927 lt_prog_compiler_pic_CXX='-fno-common'
16928 ;;
16929 *djgpp*)
16930 # DJGPP does not support shared libraries at all
16931 lt_prog_compiler_pic_CXX=
16932 ;;
16933 haiku*)
16934 # PIC is the default for Haiku.
16935 # The "-static" flag exists, but is broken.
16936 lt_prog_compiler_static_CXX=
16937 ;;
16938 interix[3-9]*)
16939 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16940 # Instead, we relocate shared libraries at runtime.
16941 ;;
16942 sysv4*MP*)
16943 if test -d /usr/nec; then
16944 lt_prog_compiler_pic_CXX=-Kconform_pic
16945 fi
16946 ;;
16947 hpux*)
16948 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16949 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16950 # sets the default TLS model and affects inlining.
16951 case $host_cpu in
16952 hppa*64*)
16953 ;;
16954 *)
16955 lt_prog_compiler_pic_CXX='-fPIC'
16956 ;;
16957 esac
16958 ;;
16959 *qnx* | *nto*)
16960 # QNX uses GNU C++, but need to define -shared option too, otherwise
16961 # it will coredump.
16962 lt_prog_compiler_pic_CXX='-fPIC -shared'
16963 ;;
16964 *)
16965 lt_prog_compiler_pic_CXX='-fPIC'
16966 ;;
16967 esac
16968 else
16969 case $host_os in
16970 aix[4-9]*)
16971 # All AIX code is PIC.
16972 if test ia64 = "$host_cpu"; then
16973 # AIX 5 now supports IA64 processor
16974 lt_prog_compiler_static_CXX='-Bstatic'
16975 else
16976 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16977 fi
16978 ;;
16979 chorus*)
16980 case $cc_basename in
16981 cxch68*)
16982 # Green Hills C++ Compiler
16983 # _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"
16984 ;;
16985 esac
16986 ;;
16987 mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
16988 # This hack is so that the source file can tell whether it is being
16989 # built for inclusion in a dll (and should export symbols for example).
16990 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16991 ;;
16992 dgux*)
16993 case $cc_basename in
16994 ec++*)
16995 lt_prog_compiler_pic_CXX='-KPIC'
16996 ;;
16997 ghcx*)
16998 # Green Hills C++ Compiler
16999 lt_prog_compiler_pic_CXX='-pic'
17000 ;;
17001 *)
17002 ;;
17003 esac
17004 ;;
17005 freebsd* | dragonfly* | midnightbsd*)
17006 # FreeBSD uses GNU C++
17007 ;;
17008 hpux9* | hpux10* | hpux11*)
17009 case $cc_basename in
17010 CC*)
17011 lt_prog_compiler_wl_CXX='-Wl,'
17012 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
17013 if test ia64 != "$host_cpu"; then
17014 lt_prog_compiler_pic_CXX='+Z'
17015 fi
17016 ;;
17017 aCC*)
17018 lt_prog_compiler_wl_CXX='-Wl,'
17019 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
17020 case $host_cpu in
17021 hppa*64*|ia64*)
17022 # +Z the default
17023 ;;
17024 *)
17025 lt_prog_compiler_pic_CXX='+Z'
17026 ;;
17027 esac
17028 ;;
17029 *)
17030 ;;
17031 esac
17032 ;;
17033 interix*)
17034 # This is c89, which is MS Visual C++ (no shared libs)
17035 # Anyone wants to do a port?
17036 ;;
17037 irix5* | irix6* | nonstopux*)
17038 case $cc_basename in
17039 CC*)
17040 lt_prog_compiler_wl_CXX='-Wl,'
17041 lt_prog_compiler_static_CXX='-non_shared'
17042 # CC pic flag -KPIC is the default.
17043 ;;
17044 *)
17045 ;;
17046 esac
17047 ;;
17048 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17049 case $cc_basename in
17050 KCC*)
17051 # KAI C++ Compiler
17052 lt_prog_compiler_wl_CXX='--backend -Wl,'
17053 lt_prog_compiler_pic_CXX='-fPIC'
17054 ;;
17055 ecpc* )
17056 # old Intel C++ for x86_64, which still supported -KPIC.
17057 lt_prog_compiler_wl_CXX='-Wl,'
17058 lt_prog_compiler_pic_CXX='-KPIC'
17059 lt_prog_compiler_static_CXX='-static'
17060 ;;
17061 icpc* )
17062 # Intel C++, used to be incompatible with GCC.
17063 # ICC 10 doesn't accept -KPIC any more.
17064 lt_prog_compiler_wl_CXX='-Wl,'
17065 lt_prog_compiler_pic_CXX='-fPIC'
17066 lt_prog_compiler_static_CXX='-static'
17067 ;;
17068 pgCC* | pgcpp*)
17069 # Portland Group C++ compiler
17070 lt_prog_compiler_wl_CXX='-Wl,'
17071 lt_prog_compiler_pic_CXX='-fpic'
17072 lt_prog_compiler_static_CXX='-Bstatic'
17073 ;;
17074 cxx*)
17075 # Compaq C++
17076 # Make sure the PIC flag is empty. It appears that all Alpha
17077 # Linux and Compaq Tru64 Unix objects are PIC.
17078 lt_prog_compiler_pic_CXX=
17079 lt_prog_compiler_static_CXX='-non_shared'
17080 ;;
17081 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
17082 # IBM XL 8.0, 9.0 on PPC and BlueGene
17083 lt_prog_compiler_wl_CXX='-Wl,'
17084 lt_prog_compiler_pic_CXX='-qpic'
17085 lt_prog_compiler_static_CXX='-qstaticlink'
17086 ;;
17087 *)
17088 case `$CC -V 2>&1 | $SED 5q` in
17089 *Sun\ C*)
17090 # Sun C++ 5.9
17091 lt_prog_compiler_pic_CXX='-KPIC'
17092 lt_prog_compiler_static_CXX='-Bstatic'
17093 lt_prog_compiler_wl_CXX='-Qoption ld '
17094 ;;
17095 esac
17096 ;;
17097 esac
17098 ;;
17099 lynxos*)
17100 ;;
17101 m88k*)
17102 ;;
17103 mvs*)
17104 case $cc_basename in
17105 cxx*)
17106 lt_prog_compiler_pic_CXX='-W c,exportall'
17107 ;;
17108 *)
17109 ;;
17110 esac
17111 ;;
17112 netbsd* | netbsdelf*-gnu)
17113 ;;
17114 *-mlibc)
17115 ;;
17116 *qnx* | *nto*)
17117 # QNX uses GNU C++, but need to define -shared option too, otherwise
17118 # it will coredump.
17119 lt_prog_compiler_pic_CXX='-fPIC -shared'
17120 ;;
17121 osf3* | osf4* | osf5*)
17122 case $cc_basename in
17123 KCC*)
17124 lt_prog_compiler_wl_CXX='--backend -Wl,'
17125 ;;
17126 RCC*)
17127 # Rational C++ 2.4.1
17128 lt_prog_compiler_pic_CXX='-pic'
17129 ;;
17130 cxx*)
17131 # Digital/Compaq C++
17132 lt_prog_compiler_wl_CXX='-Wl,'
17133 # Make sure the PIC flag is empty. It appears that all Alpha
17134 # Linux and Compaq Tru64 Unix objects are PIC.
17135 lt_prog_compiler_pic_CXX=
17136 lt_prog_compiler_static_CXX='-non_shared'
17137 ;;
17138 *)
17139 ;;
17140 esac
17141 ;;
17142 psos*)
17143 ;;
17144 serenity*)
17145 ;;
17146 solaris*)
17147 case $cc_basename in
17148 CC* | sunCC*)
17149 # Sun C++ 4.2, 5.x and Centerline C++
17150 lt_prog_compiler_pic_CXX='-KPIC'
17151 lt_prog_compiler_static_CXX='-Bstatic'
17152 lt_prog_compiler_wl_CXX='-Qoption ld '
17153 ;;
17154 gcx*)
17155 # Green Hills C++ Compiler
17156 lt_prog_compiler_pic_CXX='-PIC'
17157 ;;
17158 *)
17159 ;;
17160 esac
17161 ;;
17162 sunos4*)
17163 case $cc_basename in
17164 CC*)
17165 # Sun C++ 4.x
17166 lt_prog_compiler_pic_CXX='-pic'
17167 lt_prog_compiler_static_CXX='-Bstatic'
17168 ;;
17169 lcc*)
17170 # Lucid
17171 lt_prog_compiler_pic_CXX='-pic'
17172 ;;
17173 *)
17174 ;;
17175 esac
17176 ;;
17177 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17178 case $cc_basename in
17179 CC*)
17180 lt_prog_compiler_wl_CXX='-Wl,'
17181 lt_prog_compiler_pic_CXX='-KPIC'
17182 lt_prog_compiler_static_CXX='-Bstatic'
17183 ;;
17184 esac
17185 ;;
17186 tandem*)
17187 case $cc_basename in
17188 NCC*)
17189 # NonStop-UX NCC 3.20
17190 lt_prog_compiler_pic_CXX='-KPIC'
17191 ;;
17192 *)
17193 ;;
17194 esac
17195 ;;
17196 vxworks*)
17197 ;;
17198 *)
17199 lt_prog_compiler_can_build_shared_CXX=no
17200 ;;
17201 esac
17202 fi
17203
17204 case $host_os in
17205 # For platforms that do not support PIC, -DPIC is meaningless:
17206 *djgpp*)
17207 lt_prog_compiler_pic_CXX=
17208 ;;
17209 *)
17210 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17211 ;;
17212 esac
17213
17214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17215 printf %s "checking for $compiler option to produce PIC... " >&6; }
17216 if test ${lt_cv_prog_compiler_pic_CXX+y}
17217 then :
17218 printf %s "(cached) " >&6
17219 else case e in #(
17220 e) lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX ;;
17221 esac
17222 fi
17223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
17224 printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
17225 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
17226
17227 #
17228 # Check to make sure the PIC flag actually works.
17229 #
17230 if test -n "$lt_prog_compiler_pic_CXX"; then
17231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
17232 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
17233 if test ${lt_cv_prog_compiler_pic_works_CXX+y}
17234 then :
17235 printf %s "(cached) " >&6
17236 else case e in #(
17237 e) lt_cv_prog_compiler_pic_works_CXX=no
17238 ac_outfile=conftest.$ac_objext
17239 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17240 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
17241 # Insert the option either (1) after the last *FLAGS variable, or
17242 # (2) before a word containing "conftest.", or (3) at the end.
17243 # Note that $ac_compile itself does not contain backslashes and begins
17244 # with a dollar sign (not a hyphen), so the echo should work correctly.
17245 # The option is referenced via a variable to avoid confusing sed.
17246 lt_compile=`echo "$ac_compile" | $SED \
17247 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17248 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17249 -e 's:$: $lt_compiler_flag:'`
17250 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17251 (eval "$lt_compile" 2>conftest.err)
17252 ac_status=$?
17253 cat conftest.err >&5
17254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17255 if (exit $ac_status) && test -s "$ac_outfile"; then
17256 # The compiler can only warn and ignore the option if not recognized
17257 # So say no if there are warnings other than the usual output.
17258 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17259 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17260 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17261 lt_cv_prog_compiler_pic_works_CXX=yes
17262 fi
17263 fi
17264 $RM conftest*
17265 ;;
17266 esac
17267 fi
17268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
17269 printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
17270
17271 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
17272 case $lt_prog_compiler_pic_CXX in
17273 "" | " "*) ;;
17274 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17275 esac
17276 else
17277 lt_prog_compiler_pic_CXX=
17278 lt_prog_compiler_can_build_shared_CXX=no
17279 fi
17280
17281 fi
17282
17283
17284
17285
17286
17287 #
17288 # Check to make sure the static flag actually works.
17289 #
17290 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
17291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17292 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17293 if test ${lt_cv_prog_compiler_static_works_CXX+y}
17294 then :
17295 printf %s "(cached) " >&6
17296 else case e in #(
17297 e) lt_cv_prog_compiler_static_works_CXX=no
17298 save_LDFLAGS=$LDFLAGS
17299 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17300 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17301 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17302 # The linker can only warn and ignore the option if not recognized
17303 # So say no if there are warnings
17304 if test -s conftest.err; then
17305 # Append any errors to the config.log.
17306 cat conftest.err 1>&5
17307 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17308 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17309 if diff conftest.exp conftest.er2 >/dev/null; then
17310 lt_cv_prog_compiler_static_works_CXX=yes
17311 fi
17312 else
17313 lt_cv_prog_compiler_static_works_CXX=yes
17314 fi
17315 fi
17316 $RM -r conftest*
17317 LDFLAGS=$save_LDFLAGS
17318 ;;
17319 esac
17320 fi
17321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
17322 printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
17323
17324 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
17325 :
17326 else
17327 lt_prog_compiler_static_CXX=
17328 fi
17329
17330
17331
17332
17333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17334 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17335 if test ${lt_cv_prog_compiler_c_o_CXX+y}
17336 then :
17337 printf %s "(cached) " >&6
17338 else case e in #(
17339 e) lt_cv_prog_compiler_c_o_CXX=no
17340 $RM -r conftest 2>/dev/null
17341 mkdir conftest
17342 cd conftest
17343 mkdir out
17344 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17345
17346 lt_compiler_flag="-o out/conftest2.$ac_objext"
17347 # Insert the option either (1) after the last *FLAGS variable, or
17348 # (2) before a word containing "conftest.", or (3) at the end.
17349 # Note that $ac_compile itself does not contain backslashes and begins
17350 # with a dollar sign (not a hyphen), so the echo should work correctly.
17351 lt_compile=`echo "$ac_compile" | $SED \
17352 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17353 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17354 -e 's:$: $lt_compiler_flag:'`
17355 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17356 (eval "$lt_compile" 2>out/conftest.err)
17357 ac_status=$?
17358 cat out/conftest.err >&5
17359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17360 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17361 then
17362 # The compiler can only warn and ignore the option if not recognized
17363 # So say no if there are warnings
17364 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17365 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17366 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17367 lt_cv_prog_compiler_c_o_CXX=yes
17368 fi
17369 fi
17370 chmod u+w . 2>&5
17371 $RM conftest*
17372 # SGI C++ compiler will create directory out/ii_files/ for
17373 # template instantiation
17374 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17375 $RM out/* && rmdir out
17376 cd ..
17377 $RM -r conftest
17378 $RM conftest*
17379 ;;
17380 esac
17381 fi
17382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17383 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17384
17385
17386
17387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17388 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17389 if test ${lt_cv_prog_compiler_c_o_CXX+y}
17390 then :
17391 printf %s "(cached) " >&6
17392 else case e in #(
17393 e) lt_cv_prog_compiler_c_o_CXX=no
17394 $RM -r conftest 2>/dev/null
17395 mkdir conftest
17396 cd conftest
17397 mkdir out
17398 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17399
17400 lt_compiler_flag="-o out/conftest2.$ac_objext"
17401 # Insert the option either (1) after the last *FLAGS variable, or
17402 # (2) before a word containing "conftest.", or (3) at the end.
17403 # Note that $ac_compile itself does not contain backslashes and begins
17404 # with a dollar sign (not a hyphen), so the echo should work correctly.
17405 lt_compile=`echo "$ac_compile" | $SED \
17406 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17407 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17408 -e 's:$: $lt_compiler_flag:'`
17409 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17410 (eval "$lt_compile" 2>out/conftest.err)
17411 ac_status=$?
17412 cat out/conftest.err >&5
17413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17414 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17415 then
17416 # The compiler can only warn and ignore the option if not recognized
17417 # So say no if there are warnings
17418 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17419 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17420 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17421 lt_cv_prog_compiler_c_o_CXX=yes
17422 fi
17423 fi
17424 chmod u+w . 2>&5
17425 $RM conftest*
17426 # SGI C++ compiler will create directory out/ii_files/ for
17427 # template instantiation
17428 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17429 $RM out/* && rmdir out
17430 cd ..
17431 $RM -r conftest
17432 $RM conftest*
17433 ;;
17434 esac
17435 fi
17436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17437 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17438
17439
17440
17441
17442 hard_links=nottested
17443 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
17444 # do not overwrite the value of need_locks provided by the user
17445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17446 printf %s "checking if we can lock with hard links... " >&6; }
17447 hard_links=yes
17448 $RM conftest*
17449 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17450 touch conftest.a
17451 ln conftest.a conftest.b 2>&5 || hard_links=no
17452 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17454 printf "%s\n" "$hard_links" >&6; }
17455 if test no = "$hard_links"; then
17456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
17457 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
17458 need_locks=warn
17459 fi
17460 else
17461 need_locks=no
17462 fi
17463
17464
17465
17466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17467 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17468
17469 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17470 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17471 case $host_os in
17472 aix[4-9]*)
17473 # If we're using GNU nm, then we don't want the "-C" option.
17474 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
17475 # Without the "-l" option, or with the "-B" option, AIX nm treats
17476 # weak defined symbols like other global defined symbols, whereas
17477 # GNU nm marks them as "W".
17478 # While the 'weak' keyword is ignored in the Export File, we need
17479 # it in the Import File for the 'aix-soname' feature, so we have
17480 # to replace the "-B" option with "-P" for AIX nm.
17481 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17482 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'
17483 else
17484 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'
17485 fi
17486 ;;
17487 pw32*)
17488 export_symbols_cmds_CXX=$ltdll_cmds
17489 ;;
17490 cygwin* | mingw* | windows* | cegcc*)
17491 case $cc_basename in
17492 cl* | icl*)
17493 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
17494 ;;
17495 *)
17496 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'
17497 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
17498 ;;
17499 esac
17500 ;;
17501 linux* | k*bsd*-gnu | gnu*)
17502 link_all_deplibs_CXX=no
17503 ;;
17504 *)
17505 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17506 ;;
17507 esac
17508
17509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17510 printf "%s\n" "$ld_shlibs_CXX" >&6; }
17511 test no = "$ld_shlibs_CXX" && can_build_shared=no
17512
17513 with_gnu_ld_CXX=$with_gnu_ld
17514
17515
17516
17517
17518
17519
17520 #
17521 # Do we need to explicitly link libc?
17522 #
17523 case "x$archive_cmds_need_lc_CXX" in
17524 x|xyes)
17525 # Assume -lc should be added
17526 archive_cmds_need_lc_CXX=yes
17527
17528 if test yes,yes = "$GCC,$enable_shared"; then
17529 case $archive_cmds_CXX in
17530 *'~'*)
17531 # FIXME: we may have to deal with multi-command sequences.
17532 ;;
17533 '$CC '*)
17534 # Test whether the compiler implicitly links with -lc since on some
17535 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17536 # to ld, don't add -lc before -lgcc.
17537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17538 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
17539 if test ${lt_cv_archive_cmds_need_lc_CXX+y}
17540 then :
17541 printf %s "(cached) " >&6
17542 else case e in #(
17543 e) $RM conftest*
17544 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17545
17546 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17547 (eval $ac_compile) 2>&5
17548 ac_status=$?
17549 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17550 test $ac_status = 0; } 2>conftest.err; then
17551 soname=conftest
17552 lib=conftest
17553 libobjs=conftest.$ac_objext
17554 deplibs=
17555 wl=$lt_prog_compiler_wl_CXX
17556 pic_flag=$lt_prog_compiler_pic_CXX
17557 compiler_flags=-v
17558 linker_flags=-v
17559 verstring=
17560 output_objdir=.
17561 libname=conftest
17562 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17563 allow_undefined_flag_CXX=
17564 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17565 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17566 ac_status=$?
17567 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17568 test $ac_status = 0; }
17569 then
17570 lt_cv_archive_cmds_need_lc_CXX=no
17571 else
17572 lt_cv_archive_cmds_need_lc_CXX=yes
17573 fi
17574 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17575 else
17576 cat conftest.err 1>&5
17577 fi
17578 $RM conftest*
17579 ;;
17580 esac
17581 fi
17582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
17583 printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
17584 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
17585 ;;
17586 esac
17587 fi
17588 ;;
17589 esac
17590
17591
17592
17593
17594
17595
17596
17597
17598
17599
17600
17601
17602
17603
17604
17605
17606
17607
17608
17609
17610
17611
17612
17613
17614
17615
17616
17617
17618
17619
17620
17621
17622
17623
17624
17625
17626
17627
17628
17629
17630
17631
17632
17633
17634
17635
17636
17637
17638
17639
17640
17641
17642
17643
17644
17645
17646
17647
17648
17649
17650
17651
17652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17653 printf %s "checking dynamic linker characteristics... " >&6; }
17654
17655 library_names_spec=
17656 libname_spec='lib$name'
17657 soname_spec=
17658 shrext_cmds=.so
17659 postinstall_cmds=
17660 postuninstall_cmds=
17661 finish_cmds=
17662 finish_eval=
17663 shlibpath_var=
17664 shlibpath_overrides_runpath=unknown
17665 version_type=none
17666 dynamic_linker="$host_os ld.so"
17667 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17668 need_lib_prefix=unknown
17669 hardcode_into_libs=no
17670
17671 # when you set need_version to no, make sure it does not cause -set_version
17672 # flags to be left without arguments
17673 need_version=unknown
17674
17675
17676
17677 case $host_os in
17678 aix3*)
17679 version_type=linux # correct to gnu/linux during the next big refactor
17680 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
17681 shlibpath_var=LIBPATH
17682
17683 # AIX 3 has no versioning support, so we append a major version to the name.
17684 soname_spec='$libname$release$shared_ext$major'
17685 ;;
17686
17687 aix[4-9]*)
17688 version_type=linux # correct to gnu/linux during the next big refactor
17689 need_lib_prefix=no
17690 need_version=no
17691 hardcode_into_libs=yes
17692 if test ia64 = "$host_cpu"; then
17693 # AIX 5 supports IA64
17694 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
17695 shlibpath_var=LD_LIBRARY_PATH
17696 else
17697 # With GCC up to 2.95.x, collect2 would create an import file
17698 # for dependence libraries. The import file would start with
17699 # the line '#! .'. This would cause the generated library to
17700 # depend on '.', always an invalid library. This was fixed in
17701 # development snapshots of GCC prior to 3.0.
17702 case $host_os in
17703 aix4 | aix4.[01] | aix4.[01].*)
17704 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17705 echo ' yes '
17706 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
17707 :
17708 else
17709 can_build_shared=no
17710 fi
17711 ;;
17712 esac
17713 # Using Import Files as archive members, it is possible to support
17714 # filename-based versioning of shared library archives on AIX. While
17715 # this would work for both with and without runtime linking, it will
17716 # prevent static linking of such archives. So we do filename-based
17717 # shared library versioning with .so extension only, which is used
17718 # when both runtime linking and shared linking is enabled.
17719 # Unfortunately, runtime linking may impact performance, so we do
17720 # not want this to be the default eventually. Also, we use the
17721 # versioned .so libs for executables only if there is the -brtl
17722 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
17723 # To allow for filename-based versioning support, we need to create
17724 # libNAME.so.V as an archive file, containing:
17725 # *) an Import File, referring to the versioned filename of the
17726 # archive as well as the shared archive member, telling the
17727 # bitwidth (32 or 64) of that shared object, and providing the
17728 # list of exported symbols of that shared object, eventually
17729 # decorated with the 'weak' keyword
17730 # *) the shared object with the F_LOADONLY flag set, to really avoid
17731 # it being seen by the linker.
17732 # At run time we better use the real file rather than another symlink,
17733 # but for link time we create the symlink libNAME.so -> libNAME.so.V
17734
17735 case $with_aix_soname,$aix_use_runtimelinking in
17736 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
17737 # soname into executable. Probably we can add versioning support to
17738 # collect2, so additional links can be useful in future.
17739 aix,yes) # traditional libtool
17740 dynamic_linker='AIX unversionable lib.so'
17741 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17742 # instead of lib<name>.a to let people know that these are not
17743 # typical AIX shared libraries.
17744 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17745 ;;
17746 aix,no) # traditional AIX only
17747 dynamic_linker='AIX lib.a(lib.so.V)'
17748 # We preserve .a as extension for shared libraries through AIX4.2
17749 # and later when we are not doing run time linking.
17750 library_names_spec='$libname$release.a $libname.a'
17751 soname_spec='$libname$release$shared_ext$major'
17752 ;;
17753 svr4,*) # full svr4 only
17754 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
17755 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17756 # We do not specify a path in Import Files, so LIBPATH fires.
17757 shlibpath_overrides_runpath=yes
17758 ;;
17759 *,yes) # both, prefer svr4
17760 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
17761 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17762 # unpreferred sharedlib libNAME.a needs extra handling
17763 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"'
17764 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"'
17765 # We do not specify a path in Import Files, so LIBPATH fires.
17766 shlibpath_overrides_runpath=yes
17767 ;;
17768 *,no) # both, prefer aix
17769 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
17770 library_names_spec='$libname$release.a $libname.a'
17771 soname_spec='$libname$release$shared_ext$major'
17772 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
17773 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)'
17774 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"'
17775 ;;
17776 esac
17777 shlibpath_var=LIBPATH
17778 fi
17779 ;;
17780
17781 amigaos*)
17782 case $host_cpu in
17783 powerpc)
17784 # Since July 2007 AmigaOS4 officially supports .so libraries.
17785 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17786 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17787 ;;
17788 m68k)
17789 library_names_spec='$libname.ixlibrary $libname.a'
17790 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17791 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'
17792 ;;
17793 esac
17794 ;;
17795
17796 beos*)
17797 library_names_spec='$libname$shared_ext'
17798 dynamic_linker="$host_os ld.so"
17799 shlibpath_var=LIBRARY_PATH
17800 ;;
17801
17802 bsdi[45]*)
17803 version_type=linux # correct to gnu/linux during the next big refactor
17804 need_version=no
17805 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17806 soname_spec='$libname$release$shared_ext$major'
17807 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17808 shlibpath_var=LD_LIBRARY_PATH
17809 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17810 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17811 # the default ld.so.conf also contains /usr/contrib/lib and
17812 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17813 # libtool to hard-code these into programs
17814 ;;
17815
17816 cygwin* | mingw* | windows* | pw32* | cegcc*)
17817 version_type=windows
17818 shrext_cmds=.dll
17819 need_version=no
17820 need_lib_prefix=no
17821
17822 case $GCC,$cc_basename in
17823 yes,*)
17824 # gcc
17825 library_names_spec='$libname.dll.a'
17826 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17827 # If user builds GCC with multilib enabled,
17828 # it should just install on $(libdir)
17829 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
17830 if test xyes = x"$multilib"; then
17831 postinstall_cmds='base_file=`basename \$file`~
17832 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17833 dldir=$destdir/`dirname \$dlpath`~
17834 $install_prog $dir/$dlname $destdir/$dlname~
17835 chmod a+x $destdir/$dlname~
17836 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17837 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
17838 fi'
17839 else
17840 postinstall_cmds='base_file=`basename \$file`~
17841 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17842 dldir=$destdir/`dirname \$dlpath`~
17843 test -d \$dldir || mkdir -p \$dldir~
17844 $install_prog $dir/$dlname \$dldir/$dlname~
17845 chmod a+x \$dldir/$dlname~
17846 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17847 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17848 fi'
17849 fi
17850 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17851 dlpath=$dir/\$dldll~
17852 $RM \$dlpath'
17853 shlibpath_overrides_runpath=yes
17854
17855 case $host_os in
17856 cygwin*)
17857 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17858 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17859
17860 ;;
17861 mingw* | windows* | cegcc*)
17862 # MinGW DLLs use traditional 'lib' prefix
17863 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17864 ;;
17865 pw32*)
17866 # pw32 DLLs use 'pw' prefix rather than 'lib'
17867 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17868 ;;
17869 esac
17870 dynamic_linker='Win32 ld.exe'
17871 ;;
17872
17873 *,cl* | *,icl*)
17874 # Native MSVC or ICC
17875 libname_spec='$name'
17876 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17877 library_names_spec='$libname.dll.lib'
17878
17879 case $build_os in
17880 mingw* | windows*)
17881 sys_lib_search_path_spec=
17882 lt_save_ifs=$IFS
17883 IFS=';'
17884 for lt_path in $LIB
17885 do
17886 IFS=$lt_save_ifs
17887 # Let DOS variable expansion print the short 8.3 style file name.
17888 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17889 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17890 done
17891 IFS=$lt_save_ifs
17892 # Convert to MSYS style.
17893 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17894 ;;
17895 cygwin*)
17896 # Convert to unix form, then to dos form, then back to unix form
17897 # but this time dos style (no spaces!) so that the unix form looks
17898 # like /cygdrive/c/PROGRA~1:/cygdr...
17899 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17900 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17901 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17902 ;;
17903 *)
17904 sys_lib_search_path_spec=$LIB
17905 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17906 # It is most probably a Windows format PATH.
17907 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17908 else
17909 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17910 fi
17911 # FIXME: find the short name or the path components, as spaces are
17912 # common. (e.g. "Program Files" -> "PROGRA~1")
17913 ;;
17914 esac
17915
17916 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17917 postinstall_cmds='base_file=`basename \$file`~
17918 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17919 dldir=$destdir/`dirname \$dlpath`~
17920 test -d \$dldir || mkdir -p \$dldir~
17921 $install_prog $dir/$dlname \$dldir/$dlname'
17922 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17923 dlpath=$dir/\$dldll~
17924 $RM \$dlpath'
17925 shlibpath_overrides_runpath=yes
17926 dynamic_linker='Win32 link.exe'
17927 ;;
17928
17929 *)
17930 # Assume MSVC and ICC wrapper
17931 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
17932 dynamic_linker='Win32 ld.exe'
17933 ;;
17934 esac
17935 # FIXME: first we should search . and the directory the executable is in
17936 shlibpath_var=PATH
17937 ;;
17938
17939 darwin* | rhapsody*)
17940 dynamic_linker="$host_os dyld"
17941 version_type=darwin
17942 need_lib_prefix=no
17943 need_version=no
17944 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
17945 soname_spec='$libname$release$major$shared_ext'
17946 shlibpath_overrides_runpath=yes
17947 shlibpath_var=DYLD_LIBRARY_PATH
17948 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17949
17950 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17951 ;;
17952
17953 dgux*)
17954 version_type=linux # correct to gnu/linux during the next big refactor
17955 need_lib_prefix=no
17956 need_version=no
17957 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17958 soname_spec='$libname$release$shared_ext$major'
17959 shlibpath_var=LD_LIBRARY_PATH
17960 ;;
17961
17962 freebsd* | dragonfly* | midnightbsd*)
17963 # DragonFly does not have aout. When/if they implement a new
17964 # versioning mechanism, adjust this.
17965 if test -x /usr/bin/objformat; then
17966 objformat=`/usr/bin/objformat`
17967 else
17968 case $host_os in
17969 freebsd[23].*) objformat=aout ;;
17970 *) objformat=elf ;;
17971 esac
17972 fi
17973 version_type=freebsd-$objformat
17974 case $version_type in
17975 freebsd-elf*)
17976 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17977 soname_spec='$libname$release$shared_ext$major'
17978 need_version=no
17979 need_lib_prefix=no
17980 ;;
17981 freebsd-*)
17982 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17983 need_version=yes
17984 ;;
17985 esac
17986 case $host_cpu in
17987 powerpc64)
17988 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
17989 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
17990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17991 /* end confdefs.h. */
17992 int test_pointer_size[sizeof (void *) - 5];
17993
17994 _ACEOF
17995 if ac_fn_cxx_try_compile "$LINENO"
17996 then :
17997 shlibpath_var=LD_LIBRARY_PATH
17998 else case e in #(
17999 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
18000 esac
18001 fi
18002 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18003 ;;
18004 *)
18005 shlibpath_var=LD_LIBRARY_PATH
18006 ;;
18007 esac
18008 case $host_os in
18009 freebsd2.*)
18010 shlibpath_overrides_runpath=yes
18011 ;;
18012 freebsd3.[01]* | freebsdelf3.[01]*)
18013 shlibpath_overrides_runpath=yes
18014 hardcode_into_libs=yes
18015 ;;
18016 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18017 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18018 shlibpath_overrides_runpath=no
18019 hardcode_into_libs=yes
18020 ;;
18021 *) # from 4.6 on, and DragonFly
18022 shlibpath_overrides_runpath=yes
18023 hardcode_into_libs=yes
18024 ;;
18025 esac
18026 ;;
18027
18028 haiku*)
18029 version_type=linux # correct to gnu/linux during the next big refactor
18030 need_lib_prefix=no
18031 need_version=no
18032 dynamic_linker="$host_os runtime_loader"
18033 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18034 soname_spec='$libname$release$shared_ext$major'
18035 shlibpath_var=LIBRARY_PATH
18036 shlibpath_overrides_runpath=no
18037 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
18038 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
18039 hardcode_into_libs=no
18040 ;;
18041
18042 hpux9* | hpux10* | hpux11*)
18043 # Give a soname corresponding to the major version so that dld.sl refuses to
18044 # link against other versions.
18045 version_type=sunos
18046 need_lib_prefix=no
18047 need_version=no
18048 case $host_cpu in
18049 ia64*)
18050 shrext_cmds='.so'
18051 hardcode_into_libs=yes
18052 dynamic_linker="$host_os dld.so"
18053 shlibpath_var=LD_LIBRARY_PATH
18054 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18055 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18056 soname_spec='$libname$release$shared_ext$major'
18057 if test 32 = "$HPUX_IA64_MODE"; then
18058 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18059 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
18060 else
18061 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18062 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
18063 fi
18064 ;;
18065 hppa*64*)
18066 shrext_cmds='.sl'
18067 hardcode_into_libs=yes
18068 dynamic_linker="$host_os dld.sl"
18069 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18070 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18071 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18072 soname_spec='$libname$release$shared_ext$major'
18073 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18074 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18075 ;;
18076 *)
18077 shrext_cmds='.sl'
18078 dynamic_linker="$host_os dld.sl"
18079 shlibpath_var=SHLIB_PATH
18080 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18081 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18082 soname_spec='$libname$release$shared_ext$major'
18083 ;;
18084 esac
18085 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18086 postinstall_cmds='chmod 555 $lib'
18087 # or fails outright, so override atomically:
18088 install_override_mode=555
18089 ;;
18090
18091 interix[3-9]*)
18092 version_type=linux # correct to gnu/linux during the next big refactor
18093 need_lib_prefix=no
18094 need_version=no
18095 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18096 soname_spec='$libname$release$shared_ext$major'
18097 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18098 shlibpath_var=LD_LIBRARY_PATH
18099 shlibpath_overrides_runpath=no
18100 hardcode_into_libs=yes
18101 ;;
18102
18103 irix5* | irix6* | nonstopux*)
18104 case $host_os in
18105 nonstopux*) version_type=nonstopux ;;
18106 *)
18107 if test yes = "$lt_cv_prog_gnu_ld"; then
18108 version_type=linux # correct to gnu/linux during the next big refactor
18109 else
18110 version_type=irix
18111 fi ;;
18112 esac
18113 need_lib_prefix=no
18114 need_version=no
18115 soname_spec='$libname$release$shared_ext$major'
18116 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
18117 case $host_os in
18118 irix5* | nonstopux*)
18119 libsuff= shlibsuff=
18120 ;;
18121 *)
18122 case $LD in # libtool.m4 will add one of these switches to LD
18123 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18124 libsuff= shlibsuff= libmagic=32-bit;;
18125 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18126 libsuff=32 shlibsuff=N32 libmagic=N32;;
18127 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18128 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18129 *) libsuff= shlibsuff= libmagic=never-match;;
18130 esac
18131 ;;
18132 esac
18133 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18134 shlibpath_overrides_runpath=no
18135 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
18136 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
18137 hardcode_into_libs=yes
18138 ;;
18139
18140 # No shared lib support for Linux oldld, aout, or coff.
18141 linux*oldld* | linux*aout* | linux*coff*)
18142 dynamic_linker=no
18143 ;;
18144
18145 linux*android*)
18146 version_type=none # Android doesn't support versioned libraries.
18147 need_lib_prefix=no
18148 need_version=no
18149 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
18150 soname_spec='$libname$release$shared_ext'
18151 finish_cmds=
18152 shlibpath_var=LD_LIBRARY_PATH
18153 shlibpath_overrides_runpath=yes
18154
18155 # This implies no fast_install, which is unacceptable.
18156 # Some rework will be needed to allow for fast_install
18157 # before this can be enabled.
18158 hardcode_into_libs=yes
18159
18160 dynamic_linker='Android linker'
18161 # -rpath works at least for libraries that are not overridden by
18162 # libraries installed in system locations.
18163 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
18164 ;;
18165
18166 # This must be glibc/ELF.
18167 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
18168 version_type=linux # correct to gnu/linux during the next big refactor
18169 need_lib_prefix=no
18170 need_version=no
18171 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18172 soname_spec='$libname$release$shared_ext$major'
18173 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18174 shlibpath_var=LD_LIBRARY_PATH
18175 shlibpath_overrides_runpath=no
18176
18177 # Some binutils ld are patched to set DT_RUNPATH
18178 if test ${lt_cv_shlibpath_overrides_runpath+y}
18179 then :
18180 printf %s "(cached) " >&6
18181 else case e in #(
18182 e) lt_cv_shlibpath_overrides_runpath=no
18183 save_LDFLAGS=$LDFLAGS
18184 save_libdir=$libdir
18185 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
18186 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
18187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18188 /* end confdefs.h. */
18189
18190 int
18191 main (void)
18192 {
18193
18194 ;
18195 return 0;
18196 }
18197 _ACEOF
18198 if ac_fn_cxx_try_link "$LINENO"
18199 then :
18200 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
18201 then :
18202 lt_cv_shlibpath_overrides_runpath=yes
18203 fi
18204 fi
18205 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18206 conftest$ac_exeext conftest.$ac_ext
18207 LDFLAGS=$save_LDFLAGS
18208 libdir=$save_libdir
18209 ;;
18210 esac
18211 fi
18212
18213 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18214
18215 # This implies no fast_install, which is unacceptable.
18216 # Some rework will be needed to allow for fast_install
18217 # before this can be enabled.
18218 hardcode_into_libs=yes
18219
18220 # Ideally, we could use ldconfig to report *all* directories which are
18221 # searched for libraries, however this is still not possible. Aside from not
18222 # being certain /sbin/ldconfig is available, command
18223 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
18224 # even though it is searched at run-time. Try to do the best guess by
18225 # appending ld.so.conf contents (and includes) to the search path.
18226 if test -f /etc/ld.so.conf; then
18227 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' ' '`
18228 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18229 fi
18230
18231 # We used to test for /lib/ld.so.1 and disable shared libraries on
18232 # powerpc, because MkLinux only supported shared libraries with the
18233 # GNU dynamic linker. Since this was broken with cross compilers,
18234 # most powerpc-linux boxes support dynamic linking these days and
18235 # people can always --disable-shared, the test was removed, and we
18236 # assume the GNU/Linux dynamic linker is in use.
18237 dynamic_linker='GNU/Linux ld.so'
18238 ;;
18239
18240 netbsdelf*-gnu)
18241 version_type=linux
18242 need_lib_prefix=no
18243 need_version=no
18244 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18245 soname_spec='$libname$release$shared_ext$major'
18246 shlibpath_var=LD_LIBRARY_PATH
18247 shlibpath_overrides_runpath=no
18248 hardcode_into_libs=yes
18249 dynamic_linker='NetBSD ld.elf_so'
18250 ;;
18251
18252 netbsdelf*-gnu)
18253 version_type=linux
18254 need_lib_prefix=no
18255 need_version=no
18256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18257 soname_spec='${libname}${release}${shared_ext}$major'
18258 shlibpath_var=LD_LIBRARY_PATH
18259 shlibpath_overrides_runpath=no
18260 hardcode_into_libs=yes
18261 dynamic_linker='NetBSD ld.elf_so'
18262 ;;
18263
18264 netbsd*)
18265 version_type=sunos
18266 need_lib_prefix=no
18267 need_version=no
18268 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18269 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18270 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18271 dynamic_linker='NetBSD (a.out) ld.so'
18272 else
18273 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18274 soname_spec='$libname$release$shared_ext$major'
18275 dynamic_linker='NetBSD ld.elf_so'
18276 fi
18277 shlibpath_var=LD_LIBRARY_PATH
18278 shlibpath_overrides_runpath=yes
18279 hardcode_into_libs=yes
18280 ;;
18281
18282 *-mlibc)
18283 version_type=linux # correct to gnu/linux during the next big refactor
18284 need_lib_prefix=no
18285 need_version=no
18286 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18287 soname_spec='$libname$release$shared_ext$major'
18288 dynamic_linker='mlibc ld.so'
18289 shlibpath_var=LD_LIBRARY_PATH
18290 shlibpath_overrides_runpath=no
18291 hardcode_into_libs=yes
18292 ;;
18293
18294 newsos6)
18295 version_type=linux # correct to gnu/linux during the next big refactor
18296 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18297 shlibpath_var=LD_LIBRARY_PATH
18298 shlibpath_overrides_runpath=yes
18299 ;;
18300
18301 *nto* | *qnx*)
18302 version_type=qnx
18303 need_lib_prefix=no
18304 need_version=no
18305 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18306 soname_spec='$libname$release$shared_ext$major'
18307 shlibpath_var=LD_LIBRARY_PATH
18308 shlibpath_overrides_runpath=no
18309 hardcode_into_libs=yes
18310 dynamic_linker='ldqnx.so'
18311 ;;
18312
18313 openbsd*)
18314 version_type=sunos
18315 sys_lib_dlsearch_path_spec=/usr/lib
18316 need_lib_prefix=no
18317 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
18318 need_version=no
18319 else
18320 need_version=yes
18321 fi
18322 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18323 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18324 shlibpath_var=LD_LIBRARY_PATH
18325 shlibpath_overrides_runpath=yes
18326 ;;
18327
18328 os2*)
18329 libname_spec='$name'
18330 version_type=windows
18331 shrext_cmds=.dll
18332 need_version=no
18333 need_lib_prefix=no
18334 # OS/2 can only load a DLL with a base name of 8 characters or less.
18335 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
18336 v=$($ECHO $release$versuffix | tr -d .-);
18337 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
18338 $ECHO $n$v`$shared_ext'
18339 library_names_spec='${libname}_dll.$libext'
18340 dynamic_linker='OS/2 ld.exe'
18341 shlibpath_var=BEGINLIBPATH
18342 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18343 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18344 postinstall_cmds='base_file=`basename \$file`~
18345 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
18346 dldir=$destdir/`dirname \$dlpath`~
18347 test -d \$dldir || mkdir -p \$dldir~
18348 $install_prog $dir/$dlname \$dldir/$dlname~
18349 chmod a+x \$dldir/$dlname~
18350 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18351 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18352 fi'
18353 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
18354 dlpath=$dir/\$dldll~
18355 $RM \$dlpath'
18356 ;;
18357
18358 osf3* | osf4* | osf5*)
18359 version_type=osf
18360 need_lib_prefix=no
18361 need_version=no
18362 soname_spec='$libname$release$shared_ext$major'
18363 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18364 shlibpath_var=LD_LIBRARY_PATH
18365 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18366 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18367 ;;
18368
18369 rdos*)
18370 dynamic_linker=no
18371 ;;
18372
18373 serenity*)
18374 version_type=linux # correct to gnu/linux during the next big refactor
18375 need_lib_prefix=no
18376 need_version=no
18377 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18378 soname_spec='$libname$release$shared_ext$major'
18379 shlibpath_var=LD_LIBRARY_PATH
18380 shlibpath_overrides_runpath=no
18381 dynamic_linker='SerenityOS LibELF'
18382 ;;
18383
18384 solaris*)
18385 version_type=linux # correct to gnu/linux during the next big refactor
18386 need_lib_prefix=no
18387 need_version=no
18388 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18389 soname_spec='$libname$release$shared_ext$major'
18390 shlibpath_var=LD_LIBRARY_PATH
18391 shlibpath_overrides_runpath=yes
18392 hardcode_into_libs=yes
18393 # ldd complains unless libraries are executable
18394 postinstall_cmds='chmod +x $lib'
18395 ;;
18396
18397 sunos4*)
18398 version_type=sunos
18399 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18400 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18401 shlibpath_var=LD_LIBRARY_PATH
18402 shlibpath_overrides_runpath=yes
18403 if test yes = "$with_gnu_ld"; then
18404 need_lib_prefix=no
18405 fi
18406 need_version=yes
18407 ;;
18408
18409 sysv4 | sysv4.3*)
18410 version_type=linux # correct to gnu/linux during the next big refactor
18411 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18412 soname_spec='$libname$release$shared_ext$major'
18413 shlibpath_var=LD_LIBRARY_PATH
18414 case $host_vendor in
18415 sni)
18416 shlibpath_overrides_runpath=no
18417 need_lib_prefix=no
18418 runpath_var=LD_RUN_PATH
18419 ;;
18420 siemens)
18421 need_lib_prefix=no
18422 ;;
18423 motorola)
18424 need_lib_prefix=no
18425 need_version=no
18426 shlibpath_overrides_runpath=no
18427 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18428 ;;
18429 esac
18430 ;;
18431
18432 sysv4*MP*)
18433 if test -d /usr/nec; then
18434 version_type=linux # correct to gnu/linux during the next big refactor
18435 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
18436 soname_spec='$libname$shared_ext.$major'
18437 shlibpath_var=LD_LIBRARY_PATH
18438 fi
18439 ;;
18440
18441 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18442 version_type=sco
18443 need_lib_prefix=no
18444 need_version=no
18445 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
18446 soname_spec='$libname$release$shared_ext$major'
18447 shlibpath_var=LD_LIBRARY_PATH
18448 shlibpath_overrides_runpath=yes
18449 hardcode_into_libs=yes
18450 if test yes = "$with_gnu_ld"; then
18451 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18452 else
18453 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18454 case $host_os in
18455 sco3.2v5*)
18456 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18457 ;;
18458 esac
18459 fi
18460 sys_lib_dlsearch_path_spec='/usr/lib'
18461 ;;
18462
18463 tpf*)
18464 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18465 version_type=linux # correct to gnu/linux during the next big refactor
18466 need_lib_prefix=no
18467 need_version=no
18468 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18469 shlibpath_var=LD_LIBRARY_PATH
18470 shlibpath_overrides_runpath=no
18471 hardcode_into_libs=yes
18472 ;;
18473
18474 uts4*)
18475 version_type=linux # correct to gnu/linux during the next big refactor
18476 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18477 soname_spec='$libname$release$shared_ext$major'
18478 shlibpath_var=LD_LIBRARY_PATH
18479 ;;
18480
18481 emscripten*)
18482 version_type=none
18483 need_lib_prefix=no
18484 need_version=no
18485 library_names_spec='$libname$release$shared_ext'
18486 soname_spec='$libname$release$shared_ext'
18487 finish_cmds=
18488 dynamic_linker="Emscripten linker"
18489 lt_prog_compiler_wl_CXX=
18490 lt_prog_compiler_pic_CXX=
18491 lt_prog_compiler_static_CXX=
18492
18493
18494 # C++ specific cases for pic, static, wl, etc.
18495 if test yes = "$GXX"; then
18496 lt_prog_compiler_wl_CXX='-Wl,'
18497 lt_prog_compiler_static_CXX='-static'
18498
18499 case $host_os in
18500 aix*)
18501 # All AIX code is PIC.
18502 if test ia64 = "$host_cpu"; then
18503 # AIX 5 now supports IA64 processor
18504 lt_prog_compiler_static_CXX='-Bstatic'
18505 fi
18506 lt_prog_compiler_pic_CXX='-fPIC'
18507 ;;
18508
18509 amigaos*)
18510 case $host_cpu in
18511 powerpc)
18512 # see comment about AmigaOS4 .so support
18513 lt_prog_compiler_pic_CXX='-fPIC'
18514 ;;
18515 m68k)
18516 # FIXME: we need at least 68020 code to build shared libraries, but
18517 # adding the '-m68020' flag to GCC prevents building anything better,
18518 # like '-m68040'.
18519 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
18520 ;;
18521 esac
18522 ;;
18523
18524 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18525 # PIC is the default for these OSes.
18526 ;;
18527 mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
18528 # This hack is so that the source file can tell whether it is being
18529 # built for inclusion in a dll (and should export symbols for example).
18530 # Although the cygwin gcc ignores -fPIC, still need this for old-style
18531 # (--disable-auto-import) libraries
18532 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18533 case $host_os in
18534 os2*)
18535 lt_prog_compiler_static_CXX='$wl-static'
18536 ;;
18537 esac
18538 ;;
18539 darwin* | rhapsody*)
18540 # PIC is the default on this platform
18541 # Common symbols not allowed in MH_DYLIB files
18542 lt_prog_compiler_pic_CXX='-fno-common'
18543 ;;
18544 *djgpp*)
18545 # DJGPP does not support shared libraries at all
18546 lt_prog_compiler_pic_CXX=
18547 ;;
18548 haiku*)
18549 # PIC is the default for Haiku.
18550 # The "-static" flag exists, but is broken.
18551 lt_prog_compiler_static_CXX=
18552 ;;
18553 interix[3-9]*)
18554 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18555 # Instead, we relocate shared libraries at runtime.
18556 ;;
18557 sysv4*MP*)
18558 if test -d /usr/nec; then
18559 lt_prog_compiler_pic_CXX=-Kconform_pic
18560 fi
18561 ;;
18562 hpux*)
18563 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
18564 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
18565 # sets the default TLS model and affects inlining.
18566 case $host_cpu in
18567 hppa*64*)
18568 ;;
18569 *)
18570 lt_prog_compiler_pic_CXX='-fPIC'
18571 ;;
18572 esac
18573 ;;
18574 *qnx* | *nto*)
18575 # QNX uses GNU C++, but need to define -shared option too, otherwise
18576 # it will coredump.
18577 lt_prog_compiler_pic_CXX='-fPIC -shared'
18578 ;;
18579 *)
18580 lt_prog_compiler_pic_CXX='-fPIC'
18581 ;;
18582 esac
18583 else
18584 case $host_os in
18585 aix[4-9]*)
18586 # All AIX code is PIC.
18587 if test ia64 = "$host_cpu"; then
18588 # AIX 5 now supports IA64 processor
18589 lt_prog_compiler_static_CXX='-Bstatic'
18590 else
18591 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
18592 fi
18593 ;;
18594 chorus*)
18595 case $cc_basename in
18596 cxch68*)
18597 # Green Hills C++ Compiler
18598 # _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"
18599 ;;
18600 esac
18601 ;;
18602 mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
18603 # This hack is so that the source file can tell whether it is being
18604 # built for inclusion in a dll (and should export symbols for example).
18605 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18606 ;;
18607 dgux*)
18608 case $cc_basename in
18609 ec++*)
18610 lt_prog_compiler_pic_CXX='-KPIC'
18611 ;;
18612 ghcx*)
18613 # Green Hills C++ Compiler
18614 lt_prog_compiler_pic_CXX='-pic'
18615 ;;
18616 *)
18617 ;;
18618 esac
18619 ;;
18620 freebsd* | dragonfly* | midnightbsd*)
18621 # FreeBSD uses GNU C++
18622 ;;
18623 hpux9* | hpux10* | hpux11*)
18624 case $cc_basename in
18625 CC*)
18626 lt_prog_compiler_wl_CXX='-Wl,'
18627 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
18628 if test ia64 != "$host_cpu"; then
18629 lt_prog_compiler_pic_CXX='+Z'
18630 fi
18631 ;;
18632 aCC*)
18633 lt_prog_compiler_wl_CXX='-Wl,'
18634 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
18635 case $host_cpu in
18636 hppa*64*|ia64*)
18637 # +Z the default
18638 ;;
18639 *)
18640 lt_prog_compiler_pic_CXX='+Z'
18641 ;;
18642 esac
18643 ;;
18644 *)
18645 ;;
18646 esac
18647 ;;
18648 interix*)
18649 # This is c89, which is MS Visual C++ (no shared libs)
18650 # Anyone wants to do a port?
18651 ;;
18652 irix5* | irix6* | nonstopux*)
18653 case $cc_basename in
18654 CC*)
18655 lt_prog_compiler_wl_CXX='-Wl,'
18656 lt_prog_compiler_static_CXX='-non_shared'
18657 # CC pic flag -KPIC is the default.
18658 ;;
18659 *)
18660 ;;
18661 esac
18662 ;;
18663 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
18664 case $cc_basename in
18665 KCC*)
18666 # KAI C++ Compiler
18667 lt_prog_compiler_wl_CXX='--backend -Wl,'
18668 lt_prog_compiler_pic_CXX='-fPIC'
18669 ;;
18670 ecpc* )
18671 # old Intel C++ for x86_64, which still supported -KPIC.
18672 lt_prog_compiler_wl_CXX='-Wl,'
18673 lt_prog_compiler_pic_CXX='-KPIC'
18674 lt_prog_compiler_static_CXX='-static'
18675 ;;
18676 icpc* )
18677 # Intel C++, used to be incompatible with GCC.
18678 # ICC 10 doesn't accept -KPIC any more.
18679 lt_prog_compiler_wl_CXX='-Wl,'
18680 lt_prog_compiler_pic_CXX='-fPIC'
18681 lt_prog_compiler_static_CXX='-static'
18682 ;;
18683 pgCC* | pgcpp*)
18684 # Portland Group C++ compiler
18685 lt_prog_compiler_wl_CXX='-Wl,'
18686 lt_prog_compiler_pic_CXX='-fpic'
18687 lt_prog_compiler_static_CXX='-Bstatic'
18688 ;;
18689 cxx*)
18690 # Compaq C++
18691 # Make sure the PIC flag is empty. It appears that all Alpha
18692 # Linux and Compaq Tru64 Unix objects are PIC.
18693 lt_prog_compiler_pic_CXX=
18694 lt_prog_compiler_static_CXX='-non_shared'
18695 ;;
18696 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
18697 # IBM XL 8.0, 9.0 on PPC and BlueGene
18698 lt_prog_compiler_wl_CXX='-Wl,'
18699 lt_prog_compiler_pic_CXX='-qpic'
18700 lt_prog_compiler_static_CXX='-qstaticlink'
18701 ;;
18702 *)
18703 case `$CC -V 2>&1 | $SED 5q` in
18704 *Sun\ C*)
18705 # Sun C++ 5.9
18706 lt_prog_compiler_pic_CXX='-KPIC'
18707 lt_prog_compiler_static_CXX='-Bstatic'
18708 lt_prog_compiler_wl_CXX='-Qoption ld '
18709 ;;
18710 esac
18711 ;;
18712 esac
18713 ;;
18714 lynxos*)
18715 ;;
18716 m88k*)
18717 ;;
18718 mvs*)
18719 case $cc_basename in
18720 cxx*)
18721 lt_prog_compiler_pic_CXX='-W c,exportall'
18722 ;;
18723 *)
18724 ;;
18725 esac
18726 ;;
18727 netbsd* | netbsdelf*-gnu)
18728 ;;
18729 *-mlibc)
18730 ;;
18731 *qnx* | *nto*)
18732 # QNX uses GNU C++, but need to define -shared option too, otherwise
18733 # it will coredump.
18734 lt_prog_compiler_pic_CXX='-fPIC -shared'
18735 ;;
18736 osf3* | osf4* | osf5*)
18737 case $cc_basename in
18738 KCC*)
18739 lt_prog_compiler_wl_CXX='--backend -Wl,'
18740 ;;
18741 RCC*)
18742 # Rational C++ 2.4.1
18743 lt_prog_compiler_pic_CXX='-pic'
18744 ;;
18745 cxx*)
18746 # Digital/Compaq C++
18747 lt_prog_compiler_wl_CXX='-Wl,'
18748 # Make sure the PIC flag is empty. It appears that all Alpha
18749 # Linux and Compaq Tru64 Unix objects are PIC.
18750 lt_prog_compiler_pic_CXX=
18751 lt_prog_compiler_static_CXX='-non_shared'
18752 ;;
18753 *)
18754 ;;
18755 esac
18756 ;;
18757 psos*)
18758 ;;
18759 serenity*)
18760 ;;
18761 solaris*)
18762 case $cc_basename in
18763 CC* | sunCC*)
18764 # Sun C++ 4.2, 5.x and Centerline C++
18765 lt_prog_compiler_pic_CXX='-KPIC'
18766 lt_prog_compiler_static_CXX='-Bstatic'
18767 lt_prog_compiler_wl_CXX='-Qoption ld '
18768 ;;
18769 gcx*)
18770 # Green Hills C++ Compiler
18771 lt_prog_compiler_pic_CXX='-PIC'
18772 ;;
18773 *)
18774 ;;
18775 esac
18776 ;;
18777 sunos4*)
18778 case $cc_basename in
18779 CC*)
18780 # Sun C++ 4.x
18781 lt_prog_compiler_pic_CXX='-pic'
18782 lt_prog_compiler_static_CXX='-Bstatic'
18783 ;;
18784 lcc*)
18785 # Lucid
18786 lt_prog_compiler_pic_CXX='-pic'
18787 ;;
18788 *)
18789 ;;
18790 esac
18791 ;;
18792 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18793 case $cc_basename in
18794 CC*)
18795 lt_prog_compiler_wl_CXX='-Wl,'
18796 lt_prog_compiler_pic_CXX='-KPIC'
18797 lt_prog_compiler_static_CXX='-Bstatic'
18798 ;;
18799 esac
18800 ;;
18801 tandem*)
18802 case $cc_basename in
18803 NCC*)
18804 # NonStop-UX NCC 3.20
18805 lt_prog_compiler_pic_CXX='-KPIC'
18806 ;;
18807 *)
18808 ;;
18809 esac
18810 ;;
18811 vxworks*)
18812 ;;
18813 *)
18814 lt_prog_compiler_can_build_shared_CXX=no
18815 ;;
18816 esac
18817 fi
18818
18819 case $host_os in
18820 # For platforms that do not support PIC, -DPIC is meaningless:
18821 *djgpp*)
18822 lt_prog_compiler_pic_CXX=
18823 ;;
18824 *)
18825 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
18826 ;;
18827 esac
18828
18829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
18830 printf %s "checking for $compiler option to produce PIC... " >&6; }
18831 if test ${lt_cv_prog_compiler_pic_CXX+y}
18832 then :
18833 printf %s "(cached) " >&6
18834 else case e in #(
18835 e) lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX ;;
18836 esac
18837 fi
18838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
18839 printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
18840 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
18841
18842 #
18843 # Check to make sure the PIC flag actually works.
18844 #
18845 if test -n "$lt_prog_compiler_pic_CXX"; then
18846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18847 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
18848 if test ${lt_cv_prog_compiler_pic_works_CXX+y}
18849 then :
18850 printf %s "(cached) " >&6
18851 else case e in #(
18852 e) lt_cv_prog_compiler_pic_works_CXX=no
18853 ac_outfile=conftest.$ac_objext
18854 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18855 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
18856 # Insert the option either (1) after the last *FLAGS variable, or
18857 # (2) before a word containing "conftest.", or (3) at the end.
18858 # Note that $ac_compile itself does not contain backslashes and begins
18859 # with a dollar sign (not a hyphen), so the echo should work correctly.
18860 # The option is referenced via a variable to avoid confusing sed.
18861 lt_compile=`echo "$ac_compile" | $SED \
18862 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18863 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18864 -e 's:$: $lt_compiler_flag:'`
18865 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18866 (eval "$lt_compile" 2>conftest.err)
18867 ac_status=$?
18868 cat conftest.err >&5
18869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18870 if (exit $ac_status) && test -s "$ac_outfile"; then
18871 # The compiler can only warn and ignore the option if not recognized
18872 # So say no if there are warnings other than the usual output.
18873 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
18874 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18875 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18876 lt_cv_prog_compiler_pic_works_CXX=yes
18877 fi
18878 fi
18879 $RM conftest*
18880 ;;
18881 esac
18882 fi
18883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
18884 printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
18885
18886 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
18887 case $lt_prog_compiler_pic_CXX in
18888 "" | " "*) ;;
18889 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18890 esac
18891 else
18892 lt_prog_compiler_pic_CXX=
18893 lt_prog_compiler_can_build_shared_CXX=no
18894 fi
18895
18896 fi
18897
18898
18899
18900
18901
18902 #
18903 # Check to make sure the static flag actually works.
18904 #
18905 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
18906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18907 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
18908 if test ${lt_cv_prog_compiler_static_works_CXX+y}
18909 then :
18910 printf %s "(cached) " >&6
18911 else case e in #(
18912 e) lt_cv_prog_compiler_static_works_CXX=no
18913 save_LDFLAGS=$LDFLAGS
18914 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18915 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18916 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18917 # The linker can only warn and ignore the option if not recognized
18918 # So say no if there are warnings
18919 if test -s conftest.err; then
18920 # Append any errors to the config.log.
18921 cat conftest.err 1>&5
18922 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
18923 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18924 if diff conftest.exp conftest.er2 >/dev/null; then
18925 lt_cv_prog_compiler_static_works_CXX=yes
18926 fi
18927 else
18928 lt_cv_prog_compiler_static_works_CXX=yes
18929 fi
18930 fi
18931 $RM -r conftest*
18932 LDFLAGS=$save_LDFLAGS
18933 ;;
18934 esac
18935 fi
18936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
18937 printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
18938
18939 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
18940 :
18941 else
18942 lt_prog_compiler_static_CXX=
18943 fi
18944
18945
18946
18947 ='-fPIC'
18948 archive_cmds_CXX='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
18949 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'
18950 archive_cmds_need_lc_CXX=no
18951 no_undefined_flag_CXX=
18952 ;;
18953
18954 *)
18955 dynamic_linker=no
18956 ;;
18957 esac
18958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18959 printf "%s\n" "$dynamic_linker" >&6; }
18960 test no = "$dynamic_linker" && can_build_shared=no
18961
18962 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18963 if test yes = "$GCC"; then
18964 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18965 fi
18966
18967 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
18968 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
18969 fi
18970
18971 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
18972 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
18973 fi
18974
18975 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
18976 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
18977
18978 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
18979 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
18980
18981 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
18982 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
18983
18984
18985
18986
18987
18988
18989
18990
18991
18992
18993
18994
18995
18996
18997
18998
18999
19000
19001
19002
19003
19004
19005
19006
19007
19008
19009
19010
19011
19012
19013
19014
19015
19016
19017
19018
19019
19020
19021
19022
19023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19024 printf %s "checking how to hardcode library paths into programs... " >&6; }
19025 hardcode_action_CXX=
19026 if test -n "$hardcode_libdir_flag_spec_CXX" ||
19027 test -n "$runpath_var_CXX" ||
19028 test yes = "$hardcode_automatic_CXX"; then
19029
19030 # We can hardcode non-existent directories.
19031 if test no != "$hardcode_direct_CXX" &&
19032 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19033 # have to relink, otherwise we might link with an installed library
19034 # when we should be linking with a yet-to-be-installed one
19035 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
19036 test no != "$hardcode_minus_L_CXX"; then
19037 # Linking always hardcodes the temporary library directory.
19038 hardcode_action_CXX=relink
19039 else
19040 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19041 hardcode_action_CXX=immediate
19042 fi
19043 else
19044 # We cannot hardcode anything, or else we can only hardcode existing
19045 # directories.
19046 hardcode_action_CXX=unsupported
19047 fi
19048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
19049 printf "%s\n" "$hardcode_action_CXX" >&6; }
19050
19051 if test relink = "$hardcode_action_CXX" ||
19052 test yes = "$inherit_rpath_CXX"; then
19053 # Fast installation is not supported
19054 enable_fast_install=no
19055 elif test yes = "$shlibpath_overrides_runpath" ||
19056 test no = "$enable_shared"; then
19057 # Fast installation is not necessary
19058 enable_fast_install=needless
19059 fi
19060
19061
19062
19063
19064
19065
19066
19067 fi # test -n "$compiler"
19068
19069 CC=$lt_save_CC
19070 CFLAGS=$lt_save_CFLAGS
19071 LDCXX=$LD
19072 LD=$lt_save_LD
19073 GCC=$lt_save_GCC
19074 with_gnu_ld=$lt_save_with_gnu_ld
19075 lt_cv_path_LDCXX=$lt_cv_path_LD
19076 lt_cv_path_LD=$lt_save_path_LD
19077 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19078 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19079 fi # test yes != "$_lt_caught_CXX_error"
19080
19081 ac_ext=c
19082 ac_cpp='$CPP $CPPFLAGS'
19083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19086
19087
19088
19089
19090
19091
19092
19093
19094
19095
19096
19097
19098
19099
19100
19101 ac_config_commands="$ac_config_commands libtool"
19102
19103
19104
19105
19106 # Only expand once:
19107
19108
19109
19110 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
19111 if test "x$ac_cv_header_sys_types_h" = xyes
19112 then :
19113 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
19114
19115 fi
19116
19117 ac_config_files="$ac_config_files dump.lsm Makefile common/Makefile compat/lib/Makefile dump/Makefile restore/Makefile rmt/Makefile faketape/Makefile"
19118
19119
19120 DATE="10 Jun 2026"
19121
19122
19123 CPPFLAGS="${CPPFLAGS} -D_USE_BSD_SIGNAL "'-D_PATH_DUMPDATES=\"$(DUMPDATESPATH)\" -D_DUMP_VERSION=\"$(VERSION)\"'
19124
19125 CFLAGS="${CFLAGS} -W -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wno-char-subscripts -Wcast-qual -Wdiscarded-qualifiers -Wwrite-strings"
19126 CXXFLAGS="${CXXFLAGS} -W -Wall -std=c++20"
19127
19128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to disable werror" >&5
19129 printf %s "checking whether to disable werror... " >&6; }
19130 # Check whether --enable-werror was given.
19131 if test ${enable_werror+y}
19132 then :
19133 enableval=$enable_werror;
19134 fi
19135
19136 if test "$enable_werror" = "no"
19137 then
19138 WERROR_FLAGS=""
19139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19140 printf "%s\n" "yes" >&6; }
19141 else
19142 WERROR_FLAGS="-Werror"
19143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19144 printf "%s\n" "no" >&6; }
19145 fi
19146
19147
19148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static binaries" >&5
19149 printf %s "checking whether to build static binaries... " >&6; }
19150 # Check whether --enable-static-progs was given.
19151 if test ${enable_static_progs+y}
19152 then :
19153 enableval=$enable_static_progs;
19154 fi
19155
19156 if test "$enable_static_progs" = "yes"
19157 then
19158 LDFLAGS="$LDFLAGS -static"
19159 PKG_CONFIG="$PKG_CONFIG --static"
19160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19161 printf "%s\n" "yes" >&6; }
19162 else
19163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19164 printf "%s\n" "no" >&6; }
19165 fi
19166
19167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build rmt" >&5
19168 printf %s "checking whether to build rmt... " >&6; }
19169 BUILD_RMT=yes
19170 # Check whether --enable-rmt was given.
19171 if test ${enable_rmt+y}
19172 then :
19173 enableval=$enable_rmt;
19174 fi
19175
19176 if test "$enable_rmt" = "no"; then
19177 BUILD_RMT=no
19178 fi
19179 if test "$BUILD_RMT" = "yes"; then
19180 BUILD_RMT_TRUE=
19181 BUILD_RMT_FALSE='#'
19182 else
19183 BUILD_RMT_TRUE='#'
19184 BUILD_RMT_FALSE=
19185 fi
19186
19187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BUILD_RMT" >&5
19188 printf "%s\n" "$BUILD_RMT" >&6; }
19189
19190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build ermt" >&5
19191 printf %s "checking whether to build ermt... " >&6; }
19192 BUILD_ERMT=no
19193 # Check whether --enable-ermt was given.
19194 if test ${enable_ermt+y}
19195 then :
19196 enableval=$enable_ermt;
19197 fi
19198
19199 if test "$enable_ermt" = "yes"; then
19200 if test "$BUILD_RMT" != "yes"; then
19201 as_fn_error $? "ermt requires --enable-rmt" "$LINENO" 5
19202 fi
19203 BUILD_ERMT=yes
19204 fi
19205 if test "$BUILD_ERMT" = "yes"; then
19206 BUILD_ERMT_TRUE=
19207 BUILD_ERMT_FALSE='#'
19208 else
19209 BUILD_ERMT_TRUE='#'
19210 BUILD_ERMT_FALSE=
19211 fi
19212
19213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BUILD_ERMT" >&5
19214 printf "%s\n" "$BUILD_ERMT" >&6; }
19215
19216 # Check whether --enable-readline was given.
19217 if test ${enable_readline+y}
19218 then :
19219 enableval=$enable_readline; if test "$enableval" = "no"
19220 then
19221 READLINE=""
19222 echo "Not including readline support"
19223 else
19224 READLINE="yes"
19225
19226 printf "%s\n" "#define HAVE_READLINE 1" >>confdefs.h
19227
19228 echo "Including readline support"
19229 fi
19230
19231 else case e in #(
19232 e) READLINE="yes"
19233
19234 printf "%s\n" "#define HAVE_READLINE 1" >>confdefs.h
19235
19236 echo "Including readline support by default"
19237 ;;
19238 esac
19239 fi
19240
19241
19242 # Check whether --enable-qfa was given.
19243 if test ${enable_qfa+y}
19244 then :
19245 enableval=$enable_qfa; if test "$enableval" = "yes"
19246 then
19247
19248 printf "%s\n" "#define USE_QFA 1" >>confdefs.h
19249
19250 echo "Enabling Quick File Access support"
19251 else
19252 echo "Not enabling Quick File Access support"
19253 fi
19254
19255 else case e in #(
19256 e)
19257 printf "%s\n" "#define USE_QFA 1" >>confdefs.h
19258
19259 echo "Enabling Quick File Access support by default"
19260 ;;
19261 esac
19262 fi
19263
19264
19265 # Check whether --enable-macosx was given.
19266 if test ${enable_macosx+y}
19267 then :
19268 enableval=$enable_macosx; if test "$enableval" = "yes"
19269 then
19270
19271 printf "%s\n" "#define DUMP_MACOSX 1" >>confdefs.h
19272
19273 echo "Including Mac OSX restore compatibility code"
19274 else
19275 echo "Not including Mac OSX restore compatibility code"
19276 fi
19277
19278 else case e in #(
19279 e) echo "Not including Mac OSX restore compatibility code by default"
19280 ;;
19281 esac
19282 fi
19283
19284
19285 # Check whether --enable-selinux was given.
19286 if test ${enable_selinux+y}
19287 then :
19288 enableval=$enable_selinux;
19289 fi
19290
19291 if test "$enable_selinux" != "no"; then
19292 found_selinux="yes"
19293
19294 pkg_failed=no
19295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libselinux" >&5
19296 printf %s "checking for libselinux... " >&6; }
19297
19298 if test -n "$SELINUX_CFLAGS"; then
19299 pkg_cv_SELINUX_CFLAGS="$SELINUX_CFLAGS"
19300 elif test -n "$PKG_CONFIG"; then
19301 if test -n "$PKG_CONFIG" && \
19302 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libselinux\""; } >&5
19303 ($PKG_CONFIG --exists --print-errors "libselinux") 2>&5
19304 ac_status=$?
19305 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19306 test $ac_status = 0; }; then
19307 pkg_cv_SELINUX_CFLAGS=`$PKG_CONFIG --cflags "libselinux" 2>/dev/null`
19308 test "x$?" != "x0" && pkg_failed=yes
19309 else
19310 pkg_failed=yes
19311 fi
19312 else
19313 pkg_failed=untried
19314 fi
19315 if test -n "$SELINUX_LIBS"; then
19316 pkg_cv_SELINUX_LIBS="$SELINUX_LIBS"
19317 elif test -n "$PKG_CONFIG"; then
19318 if test -n "$PKG_CONFIG" && \
19319 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libselinux\""; } >&5
19320 ($PKG_CONFIG --exists --print-errors "libselinux") 2>&5
19321 ac_status=$?
19322 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19323 test $ac_status = 0; }; then
19324 pkg_cv_SELINUX_LIBS=`$PKG_CONFIG --libs "libselinux" 2>/dev/null`
19325 test "x$?" != "x0" && pkg_failed=yes
19326 else
19327 pkg_failed=yes
19328 fi
19329 else
19330 pkg_failed=untried
19331 fi
19332
19333
19334
19335 if test $pkg_failed = yes; then
19336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19337 printf "%s\n" "no" >&6; }
19338
19339 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19340 _pkg_short_errors_supported=yes
19341 else
19342 _pkg_short_errors_supported=no
19343 fi
19344 if test $_pkg_short_errors_supported = yes; then
19345 SELINUX_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libselinux" 2>&1`
19346 else
19347 SELINUX_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libselinux" 2>&1`
19348 fi
19349 # Put the nasty error message in config.log where it belongs
19350 echo "$SELINUX_PKG_ERRORS" >&5
19351
19352
19353 found_selinux="no"
19354 if test "$enable_selinux" = "yes"; then
19355 as_fn_error $? "SELinux support requested, but not found" "$LINENO" 5
19356 fi
19357
19358 elif test $pkg_failed = untried; then
19359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19360 printf "%s\n" "no" >&6; }
19361
19362 found_selinux="no"
19363 if test "$enable_selinux" = "yes"; then
19364 as_fn_error $? "SELinux support requested, but not found" "$LINENO" 5
19365 fi
19366
19367 else
19368 SELINUX_CFLAGS=$pkg_cv_SELINUX_CFLAGS
19369 SELINUX_LIBS=$pkg_cv_SELINUX_LIBS
19370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19371 printf "%s\n" "yes" >&6; }
19372
19373 fi
19374 if test "$found_selinux" != "no"; then
19375
19376 printf "%s\n" "#define TRANSSELINUX 1" >>confdefs.h
19377
19378 fi
19379 fi
19380
19381
19382 # Check whether --with-dumpdatespath was given.
19383 if test ${with_dumpdatespath+y}
19384 then :
19385 withval=$with_dumpdatespath; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: DUMPDATESPATH is $withval" >&5
19386 printf "%s\n" "DUMPDATESPATH is $withval" >&6; }
19387 DUMPDATESPATH=$withval
19388 else case e in #(
19389 e) DUMPDATESPATH="${sysconfdir}/dumpdates"
19390 echo "DUMPDATESPATH defaults to $DUMPDATESPATH"
19391 ;;
19392 esac
19393 fi
19394
19395
19396
19397 # Check whether --with-rmtpath was given.
19398 if test ${with_rmtpath+y}
19399 then :
19400 withval=$with_rmtpath; RMTPATH=$withval
19401 else case e in #(
19402 e) RMTPATH='/etc/rmt' ;;
19403 esac
19404 fi
19405
19406
19407 CPPFLAGS="${CPPFLAGS} "'-D_PATH_RMT=\"$(RMTPATH)\"'
19408
19409
19410 pkg_failed=no
19411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ext2fs" >&5
19412 printf %s "checking for ext2fs... " >&6; }
19413
19414 if test -n "$EXT2FS_CFLAGS"; then
19415 pkg_cv_EXT2FS_CFLAGS="$EXT2FS_CFLAGS"
19416 elif test -n "$PKG_CONFIG"; then
19417 if test -n "$PKG_CONFIG" && \
19418 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ext2fs\""; } >&5
19419 ($PKG_CONFIG --exists --print-errors "ext2fs") 2>&5
19420 ac_status=$?
19421 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19422 test $ac_status = 0; }; then
19423 pkg_cv_EXT2FS_CFLAGS=`$PKG_CONFIG --cflags "ext2fs" 2>/dev/null`
19424 test "x$?" != "x0" && pkg_failed=yes
19425 else
19426 pkg_failed=yes
19427 fi
19428 else
19429 pkg_failed=untried
19430 fi
19431 if test -n "$EXT2FS_LIBS"; then
19432 pkg_cv_EXT2FS_LIBS="$EXT2FS_LIBS"
19433 elif test -n "$PKG_CONFIG"; then
19434 if test -n "$PKG_CONFIG" && \
19435 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ext2fs\""; } >&5
19436 ($PKG_CONFIG --exists --print-errors "ext2fs") 2>&5
19437 ac_status=$?
19438 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19439 test $ac_status = 0; }; then
19440 pkg_cv_EXT2FS_LIBS=`$PKG_CONFIG --libs "ext2fs" 2>/dev/null`
19441 test "x$?" != "x0" && pkg_failed=yes
19442 else
19443 pkg_failed=yes
19444 fi
19445 else
19446 pkg_failed=untried
19447 fi
19448
19449
19450
19451 if test $pkg_failed = yes; then
19452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19453 printf "%s\n" "no" >&6; }
19454
19455 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19456 _pkg_short_errors_supported=yes
19457 else
19458 _pkg_short_errors_supported=no
19459 fi
19460 if test $_pkg_short_errors_supported = yes; then
19461 EXT2FS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ext2fs" 2>&1`
19462 else
19463 EXT2FS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ext2fs" 2>&1`
19464 fi
19465 # Put the nasty error message in config.log where it belongs
19466 echo "$EXT2FS_PKG_ERRORS" >&5
19467
19468 as_fn_error $? "Package requirements (ext2fs) were not met:
19469
19470 $EXT2FS_PKG_ERRORS
19471
19472 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19473 installed software in a non-standard prefix.
19474
19475 Alternatively, you may set the environment variables EXT2FS_CFLAGS
19476 and EXT2FS_LIBS to avoid the need to call pkg-config.
19477 See the pkg-config man page for more details." "$LINENO" 5
19478 elif test $pkg_failed = untried; then
19479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19480 printf "%s\n" "no" >&6; }
19481 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
19482 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
19483 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19484 is in your PATH or set the PKG_CONFIG environment variable to the full
19485 path to pkg-config.
19486
19487 Alternatively, you may set the environment variables EXT2FS_CFLAGS
19488 and EXT2FS_LIBS to avoid the need to call pkg-config.
19489 See the pkg-config man page for more details.
19490
19491 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19492 See 'config.log' for more details" "$LINENO" 5; }
19493 else
19494 EXT2FS_CFLAGS=$pkg_cv_EXT2FS_CFLAGS
19495 EXT2FS_LIBS=$pkg_cv_EXT2FS_LIBS
19496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19497 printf "%s\n" "yes" >&6; }
19498
19499 fi
19500
19501 pkg_failed=no
19502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for com_err" >&5
19503 printf %s "checking for com_err... " >&6; }
19504
19505 if test -n "$COM_ERR_CFLAGS"; then
19506 pkg_cv_COM_ERR_CFLAGS="$COM_ERR_CFLAGS"
19507 elif test -n "$PKG_CONFIG"; then
19508 if test -n "$PKG_CONFIG" && \
19509 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"com_err\""; } >&5
19510 ($PKG_CONFIG --exists --print-errors "com_err") 2>&5
19511 ac_status=$?
19512 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19513 test $ac_status = 0; }; then
19514 pkg_cv_COM_ERR_CFLAGS=`$PKG_CONFIG --cflags "com_err" 2>/dev/null`
19515 test "x$?" != "x0" && pkg_failed=yes
19516 else
19517 pkg_failed=yes
19518 fi
19519 else
19520 pkg_failed=untried
19521 fi
19522 if test -n "$COM_ERR_LIBS"; then
19523 pkg_cv_COM_ERR_LIBS="$COM_ERR_LIBS"
19524 elif test -n "$PKG_CONFIG"; then
19525 if test -n "$PKG_CONFIG" && \
19526 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"com_err\""; } >&5
19527 ($PKG_CONFIG --exists --print-errors "com_err") 2>&5
19528 ac_status=$?
19529 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19530 test $ac_status = 0; }; then
19531 pkg_cv_COM_ERR_LIBS=`$PKG_CONFIG --libs "com_err" 2>/dev/null`
19532 test "x$?" != "x0" && pkg_failed=yes
19533 else
19534 pkg_failed=yes
19535 fi
19536 else
19537 pkg_failed=untried
19538 fi
19539
19540
19541
19542 if test $pkg_failed = yes; then
19543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19544 printf "%s\n" "no" >&6; }
19545
19546 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19547 _pkg_short_errors_supported=yes
19548 else
19549 _pkg_short_errors_supported=no
19550 fi
19551 if test $_pkg_short_errors_supported = yes; then
19552 COM_ERR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "com_err" 2>&1`
19553 else
19554 COM_ERR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "com_err" 2>&1`
19555 fi
19556 # Put the nasty error message in config.log where it belongs
19557 echo "$COM_ERR_PKG_ERRORS" >&5
19558
19559 as_fn_error $? "Package requirements (com_err) were not met:
19560
19561 $COM_ERR_PKG_ERRORS
19562
19563 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19564 installed software in a non-standard prefix.
19565
19566 Alternatively, you may set the environment variables COM_ERR_CFLAGS
19567 and COM_ERR_LIBS to avoid the need to call pkg-config.
19568 See the pkg-config man page for more details." "$LINENO" 5
19569 elif test $pkg_failed = untried; then
19570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19571 printf "%s\n" "no" >&6; }
19572 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
19573 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
19574 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19575 is in your PATH or set the PKG_CONFIG environment variable to the full
19576 path to pkg-config.
19577
19578 Alternatively, you may set the environment variables COM_ERR_CFLAGS
19579 and COM_ERR_LIBS to avoid the need to call pkg-config.
19580 See the pkg-config man page for more details.
19581
19582 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19583 See 'config.log' for more details" "$LINENO" 5; }
19584 else
19585 COM_ERR_CFLAGS=$pkg_cv_COM_ERR_CFLAGS
19586 COM_ERR_LIBS=$pkg_cv_COM_ERR_LIBS
19587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19588 printf "%s\n" "yes" >&6; }
19589
19590 fi
19591
19592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ext2fs_read_inode_full in -lext2fs" >&5
19593 printf %s "checking for ext2fs_read_inode_full in -lext2fs... " >&6; }
19594 if test ${ac_cv_lib_ext2fs_ext2fs_read_inode_full+y}
19595 then :
19596 printf %s "(cached) " >&6
19597 else case e in #(
19598 e) ac_check_lib_save_LIBS=$LIBS
19599 LIBS="-lext2fs $LIBS"
19600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19601 /* end confdefs.h. */
19602
19603 /* Override any GCC internal prototype to avoid an error.
19604 Use char because int might match the return type of a GCC
19605 builtin and then its argument prototype would still apply.
19606 The 'extern "C"' is for builds by C++ compilers;
19607 although this is not generally supported in C code supporting it here
19608 has little cost and some practical benefit (sr 110532). */
19609 #ifdef __cplusplus
19610 extern "C"
19611 #endif
19612 char ext2fs_read_inode_full (void);
19613 int
19614 main (void)
19615 {
19616 return ext2fs_read_inode_full ();
19617 ;
19618 return 0;
19619 }
19620 _ACEOF
19621 if ac_fn_c_try_link "$LINENO"
19622 then :
19623 ac_cv_lib_ext2fs_ext2fs_read_inode_full=yes
19624 else case e in #(
19625 e) ac_cv_lib_ext2fs_ext2fs_read_inode_full=no ;;
19626 esac
19627 fi
19628 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19629 conftest$ac_exeext conftest.$ac_ext
19630 LIBS=$ac_check_lib_save_LIBS ;;
19631 esac
19632 fi
19633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ext2fs_ext2fs_read_inode_full" >&5
19634 printf "%s\n" "$ac_cv_lib_ext2fs_ext2fs_read_inode_full" >&6; }
19635 if test "x$ac_cv_lib_ext2fs_ext2fs_read_inode_full" = xyes
19636 then :
19637 rif=yes
19638 else case e in #(
19639 e) rif=no ;;
19640 esac
19641 fi
19642
19643 if test "$rif" = yes; then
19644
19645 printf "%s\n" "#define HAVE_EXT2FS_READ_INODE_FULL 1" >>confdefs.h
19646
19647 fi
19648
19649 ac_fn_c_check_header_compile "$LINENO" "ext2fs/ext2_fs.h" "ac_cv_header_ext2fs_ext2_fs_h" "$ac_includes_default"
19650 if test "x$ac_cv_header_ext2fs_ext2_fs_h" = xyes
19651 then :
19652 printf "%s\n" "#define HAVE_EXT2FS_EXT2_FS_H 1" >>confdefs.h
19653
19654 fi
19655
19656
19657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ext2_ino_t type in libext2fs headers" >&5
19658 printf %s "checking for ext2_ino_t type in libext2fs headers... " >&6; }
19659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19660 /* end confdefs.h. */
19661 #include <stdio.h>
19662 #ifdef HAVE_EXT2FS_EXT2_FS_H
19663 #include <ext2fs/ext2_fs.h>
19664 #else
19665 #include <linux/ext2_fs.h>
19666 #endif
19667 #include <ext2fs/ext2fs.h>
19668 int
19669 main (void)
19670 {
19671 ext2_ino_t ino = 0;
19672 ;
19673 return 0;
19674 }
19675 _ACEOF
19676 if ac_fn_c_try_compile "$LINENO"
19677 then :
19678
19679 printf "%s\n" "#define HAVE_EXT2_INO_T 1" >>confdefs.h
19680
19681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19682 printf "%s\n" "yes" >&6; }
19683 else case e in #(
19684 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19685 printf "%s\n" "no" >&6; } ;;
19686 esac
19687 fi
19688 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19689
19690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for s_journal_inum field in ext2_super_block struct" >&5
19691 printf %s "checking for s_journal_inum field in ext2_super_block struct... " >&6; }
19692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19693 /* end confdefs.h. */
19694 #include <stdio.h>
19695 #ifdef HAVE_EXT2FS_EXT2_FS_H
19696 #include <ext2fs/ext2_fs.h>
19697 #else
19698 #include <linux/ext2_fs.h>
19699 #endif
19700 #include <ext2fs/ext2fs.h>
19701 int
19702 main (void)
19703 {
19704 struct ext2_super_block es; es.s_journal_inum = 0;
19705 ;
19706 return 0;
19707 }
19708 _ACEOF
19709 if ac_fn_c_try_compile "$LINENO"
19710 then :
19711
19712 printf "%s\n" "#define HAVE_EXT2_JOURNAL_INUM 1" >>confdefs.h
19713
19714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19715 printf "%s\n" "yes" >&6; }
19716 else case e in #(
19717 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19718 printf "%s\n" "no" >&6; } ;;
19719 esac
19720 fi
19721 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19722
19723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if SEEK_HOLE and SEEK_DATA is supported by lseek" >&5
19724 printf %s "checking if SEEK_HOLE and SEEK_DATA is supported by lseek... " >&6; }
19725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19726 /* end confdefs.h. */
19727 #include <unistd.h>
19728 int
19729 main (void)
19730 {
19731 int sh = SEEK_HOLE; int sd = SEEK_DATA;
19732 ;
19733 return 0;
19734 }
19735 _ACEOF
19736 if ac_fn_c_try_compile "$LINENO"
19737 then :
19738
19739 printf "%s\n" "#define HAVE_SEEK_HOLE 1" >>confdefs.h
19740
19741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19742 printf "%s\n" "yes" >&6; }
19743 else case e in #(
19744 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19745 printf "%s\n" "no" >&6; } ;;
19746 esac
19747 fi
19748 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19749
19750 # Check whether --enable-blkid was given.
19751 if test ${enable_blkid+y}
19752 then :
19753 enableval=$enable_blkid; enable_blkid=$enableval
19754 else case e in #(
19755 e)
19756 case "$host_os" in
19757 linux*)
19758 enable_blkid=yes
19759 ;;
19760 *)
19761 enable_blkid=
19762 ;;
19763 esac
19764 ;;
19765 esac
19766 fi
19767
19768 if test "$enable_blkid" != "no"; then
19769
19770 pkg_failed=no
19771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid" >&5
19772 printf %s "checking for blkid... " >&6; }
19773
19774 if test -n "$BLKID_CFLAGS"; then
19775 pkg_cv_BLKID_CFLAGS="$BLKID_CFLAGS"
19776 elif test -n "$PKG_CONFIG"; then
19777 if test -n "$PKG_CONFIG" && \
19778 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"blkid\""; } >&5
19779 ($PKG_CONFIG --exists --print-errors "blkid") 2>&5
19780 ac_status=$?
19781 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19782 test $ac_status = 0; }; then
19783 pkg_cv_BLKID_CFLAGS=`$PKG_CONFIG --cflags "blkid" 2>/dev/null`
19784 test "x$?" != "x0" && pkg_failed=yes
19785 else
19786 pkg_failed=yes
19787 fi
19788 else
19789 pkg_failed=untried
19790 fi
19791 if test -n "$BLKID_LIBS"; then
19792 pkg_cv_BLKID_LIBS="$BLKID_LIBS"
19793 elif test -n "$PKG_CONFIG"; then
19794 if test -n "$PKG_CONFIG" && \
19795 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"blkid\""; } >&5
19796 ($PKG_CONFIG --exists --print-errors "blkid") 2>&5
19797 ac_status=$?
19798 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19799 test $ac_status = 0; }; then
19800 pkg_cv_BLKID_LIBS=`$PKG_CONFIG --libs "blkid" 2>/dev/null`
19801 test "x$?" != "x0" && pkg_failed=yes
19802 else
19803 pkg_failed=yes
19804 fi
19805 else
19806 pkg_failed=untried
19807 fi
19808
19809
19810
19811 if test $pkg_failed = yes; then
19812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19813 printf "%s\n" "no" >&6; }
19814
19815 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19816 _pkg_short_errors_supported=yes
19817 else
19818 _pkg_short_errors_supported=no
19819 fi
19820 if test $_pkg_short_errors_supported = yes; then
19821 BLKID_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "blkid" 2>&1`
19822 else
19823 BLKID_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "blkid" 2>&1`
19824 fi
19825 # Put the nasty error message in config.log where it belongs
19826 echo "$BLKID_PKG_ERRORS" >&5
19827
19828
19829 found_blkid="no"
19830 if test "$enable_blkid" = "yes"; then
19831 as_fn_error $? "blkid support requested, but not found" "$LINENO" 5
19832 fi
19833
19834 elif test $pkg_failed = untried; then
19835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19836 printf "%s\n" "no" >&6; }
19837
19838 found_blkid="no"
19839 if test "$enable_blkid" = "yes"; then
19840 as_fn_error $? "blkid support requested, but not found" "$LINENO" 5
19841 fi
19842
19843 else
19844 BLKID_CFLAGS=$pkg_cv_BLKID_CFLAGS
19845 BLKID_LIBS=$pkg_cv_BLKID_LIBS
19846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19847 printf "%s\n" "yes" >&6; }
19848
19849 fi
19850 if test "$found_blkid" != "no"; then
19851
19852 printf "%s\n" "#define HAVE_BLKID 1" >>confdefs.h
19853
19854 fi
19855 fi
19856
19857 # Check whether --enable-uuid was given.
19858 if test ${enable_uuid+y}
19859 then :
19860 enableval=$enable_uuid;
19861 fi
19862
19863 if test "$enable_uuid" != "no"; then
19864
19865 pkg_failed=no
19866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uuid" >&5
19867 printf %s "checking for uuid... " >&6; }
19868
19869 if test -n "$UUID_CFLAGS"; then
19870 pkg_cv_UUID_CFLAGS="$UUID_CFLAGS"
19871 elif test -n "$PKG_CONFIG"; then
19872 if test -n "$PKG_CONFIG" && \
19873 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"uuid\""; } >&5
19874 ($PKG_CONFIG --exists --print-errors "uuid") 2>&5
19875 ac_status=$?
19876 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19877 test $ac_status = 0; }; then
19878 pkg_cv_UUID_CFLAGS=`$PKG_CONFIG --cflags "uuid" 2>/dev/null`
19879 test "x$?" != "x0" && pkg_failed=yes
19880 else
19881 pkg_failed=yes
19882 fi
19883 else
19884 pkg_failed=untried
19885 fi
19886 if test -n "$UUID_LIBS"; then
19887 pkg_cv_UUID_LIBS="$UUID_LIBS"
19888 elif test -n "$PKG_CONFIG"; then
19889 if test -n "$PKG_CONFIG" && \
19890 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"uuid\""; } >&5
19891 ($PKG_CONFIG --exists --print-errors "uuid") 2>&5
19892 ac_status=$?
19893 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19894 test $ac_status = 0; }; then
19895 pkg_cv_UUID_LIBS=`$PKG_CONFIG --libs "uuid" 2>/dev/null`
19896 test "x$?" != "x0" && pkg_failed=yes
19897 else
19898 pkg_failed=yes
19899 fi
19900 else
19901 pkg_failed=untried
19902 fi
19903
19904
19905
19906 if test $pkg_failed = yes; then
19907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19908 printf "%s\n" "no" >&6; }
19909
19910 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19911 _pkg_short_errors_supported=yes
19912 else
19913 _pkg_short_errors_supported=no
19914 fi
19915 if test $_pkg_short_errors_supported = yes; then
19916 UUID_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "uuid" 2>&1`
19917 else
19918 UUID_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "uuid" 2>&1`
19919 fi
19920 # Put the nasty error message in config.log where it belongs
19921 echo "$UUID_PKG_ERRORS" >&5
19922
19923
19924 found_uuid="no"
19925 if test "$enable_uuid" = "yes"; then
19926 as_fn_error $? "uuid support requested, but not found" "$LINENO" 5
19927 fi
19928
19929 elif test $pkg_failed = untried; then
19930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19931 printf "%s\n" "no" >&6; }
19932
19933 found_uuid="no"
19934 if test "$enable_uuid" = "yes"; then
19935 as_fn_error $? "uuid support requested, but not found" "$LINENO" 5
19936 fi
19937
19938 else
19939 UUID_CFLAGS=$pkg_cv_UUID_CFLAGS
19940 UUID_LIBS=$pkg_cv_UUID_LIBS
19941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19942 printf "%s\n" "yes" >&6; }
19943
19944 fi
19945 if test "$found_uuid" != "no"; then
19946
19947 printf "%s\n" "#define HAVE_UUID 1" >>confdefs.h
19948
19949 fi
19950 fi
19951
19952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
19953 printf %s "checking for tgetent in -lncurses... " >&6; }
19954 if test ${ac_cv_lib_ncurses_tgetent+y}
19955 then :
19956 printf %s "(cached) " >&6
19957 else case e in #(
19958 e) ac_check_lib_save_LIBS=$LIBS
19959 LIBS="-lncurses $LIBS"
19960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19961 /* end confdefs.h. */
19962
19963 /* Override any GCC internal prototype to avoid an error.
19964 Use char because int might match the return type of a GCC
19965 builtin and then its argument prototype would still apply.
19966 The 'extern "C"' is for builds by C++ compilers;
19967 although this is not generally supported in C code supporting it here
19968 has little cost and some practical benefit (sr 110532). */
19969 #ifdef __cplusplus
19970 extern "C"
19971 #endif
19972 char tgetent (void);
19973 int
19974 main (void)
19975 {
19976 return tgetent ();
19977 ;
19978 return 0;
19979 }
19980 _ACEOF
19981 if ac_fn_c_try_link "$LINENO"
19982 then :
19983 ac_cv_lib_ncurses_tgetent=yes
19984 else case e in #(
19985 e) ac_cv_lib_ncurses_tgetent=no ;;
19986 esac
19987 fi
19988 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19989 conftest$ac_exeext conftest.$ac_ext
19990 LIBS=$ac_check_lib_save_LIBS ;;
19991 esac
19992 fi
19993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
19994 printf "%s\n" "$ac_cv_lib_ncurses_tgetent" >&6; }
19995 if test "x$ac_cv_lib_ncurses_tgetent" = xyes
19996 then :
19997 ncurses_lib=yes
19998 else case e in #(
19999 e) ncurses_lib=no ;;
20000 esac
20001 fi
20002
20003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
20004 printf %s "checking for tgetent in -ltermcap... " >&6; }
20005 if test ${ac_cv_lib_termcap_tgetent+y}
20006 then :
20007 printf %s "(cached) " >&6
20008 else case e in #(
20009 e) ac_check_lib_save_LIBS=$LIBS
20010 LIBS="-ltermcap $LIBS"
20011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20012 /* end confdefs.h. */
20013
20014 /* Override any GCC internal prototype to avoid an error.
20015 Use char because int might match the return type of a GCC
20016 builtin and then its argument prototype would still apply.
20017 The 'extern "C"' is for builds by C++ compilers;
20018 although this is not generally supported in C code supporting it here
20019 has little cost and some practical benefit (sr 110532). */
20020 #ifdef __cplusplus
20021 extern "C"
20022 #endif
20023 char tgetent (void);
20024 int
20025 main (void)
20026 {
20027 return tgetent ();
20028 ;
20029 return 0;
20030 }
20031 _ACEOF
20032 if ac_fn_c_try_link "$LINENO"
20033 then :
20034 ac_cv_lib_termcap_tgetent=yes
20035 else case e in #(
20036 e) ac_cv_lib_termcap_tgetent=no ;;
20037 esac
20038 fi
20039 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20040 conftest$ac_exeext conftest.$ac_ext
20041 LIBS=$ac_check_lib_save_LIBS ;;
20042 esac
20043 fi
20044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
20045 printf "%s\n" "$ac_cv_lib_termcap_tgetent" >&6; }
20046 if test "x$ac_cv_lib_termcap_tgetent" = xyes
20047 then :
20048 termcap_lib=yes
20049 else case e in #(
20050 e) termcap_lib=no ;;
20051 esac
20052 fi
20053
20054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
20055 printf %s "checking for tgetent in -ltinfo... " >&6; }
20056 if test ${ac_cv_lib_tinfo_tgetent+y}
20057 then :
20058 printf %s "(cached) " >&6
20059 else case e in #(
20060 e) ac_check_lib_save_LIBS=$LIBS
20061 LIBS="-ltinfo $LIBS"
20062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20063 /* end confdefs.h. */
20064
20065 /* Override any GCC internal prototype to avoid an error.
20066 Use char because int might match the return type of a GCC
20067 builtin and then its argument prototype would still apply.
20068 The 'extern "C"' is for builds by C++ compilers;
20069 although this is not generally supported in C code supporting it here
20070 has little cost and some practical benefit (sr 110532). */
20071 #ifdef __cplusplus
20072 extern "C"
20073 #endif
20074 char tgetent (void);
20075 int
20076 main (void)
20077 {
20078 return tgetent ();
20079 ;
20080 return 0;
20081 }
20082 _ACEOF
20083 if ac_fn_c_try_link "$LINENO"
20084 then :
20085 ac_cv_lib_tinfo_tgetent=yes
20086 else case e in #(
20087 e) ac_cv_lib_tinfo_tgetent=no ;;
20088 esac
20089 fi
20090 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20091 conftest$ac_exeext conftest.$ac_ext
20092 LIBS=$ac_check_lib_save_LIBS ;;
20093 esac
20094 fi
20095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5
20096 printf "%s\n" "$ac_cv_lib_tinfo_tgetent" >&6; }
20097 if test "x$ac_cv_lib_tinfo_tgetent" = xyes
20098 then :
20099 tinfo_lib=yes
20100 else case e in #(
20101 e) tinfo_lib=no ;;
20102 esac
20103 fi
20104
20105
20106 if test "$ncurses_lib" = no -a "$termcap_lib" = no -a "$tinfo_lib" = no; then
20107 if test "$READLINE" = "yes"; then
20108 as_fn_error $? "You need to install the ncurses or termcap library or configure without --enable-readline" "$LINENO" 5
20109 fi
20110 fi
20111 if test "$tinfo_lib" = yes; then
20112 rdllib="-ltinfo"
20113 elif test "$ncurses_lib" = yes; then
20114 rdllib="-lncurses"
20115 elif test "$termcap_lib" = yes; then
20116 rdllib="-ltermcap"
20117 fi
20118
20119 ac_fn_c_check_header_compile "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
20120 if test "x$ac_cv_header_readline_readline_h" = xyes
20121 then :
20122 readline_h=yes
20123 else case e in #(
20124 e) readline_h=no ;;
20125 esac
20126 fi
20127
20128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
20129 printf %s "checking for readline in -lreadline... " >&6; }
20130 if test ${ac_cv_lib_readline_readline+y}
20131 then :
20132 printf %s "(cached) " >&6
20133 else case e in #(
20134 e) ac_check_lib_save_LIBS=$LIBS
20135 LIBS="-lreadline $rdllib $LIBS"
20136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20137 /* end confdefs.h. */
20138
20139 /* Override any GCC internal prototype to avoid an error.
20140 Use char because int might match the return type of a GCC
20141 builtin and then its argument prototype would still apply.
20142 The 'extern "C"' is for builds by C++ compilers;
20143 although this is not generally supported in C code supporting it here
20144 has little cost and some practical benefit (sr 110532). */
20145 #ifdef __cplusplus
20146 extern "C"
20147 #endif
20148 char readline (void);
20149 int
20150 main (void)
20151 {
20152 return readline ();
20153 ;
20154 return 0;
20155 }
20156 _ACEOF
20157 if ac_fn_c_try_link "$LINENO"
20158 then :
20159 ac_cv_lib_readline_readline=yes
20160 else case e in #(
20161 e) ac_cv_lib_readline_readline=no ;;
20162 esac
20163 fi
20164 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20165 conftest$ac_exeext conftest.$ac_ext
20166 LIBS=$ac_check_lib_save_LIBS ;;
20167 esac
20168 fi
20169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
20170 printf "%s\n" "$ac_cv_lib_readline_readline" >&6; }
20171 if test "x$ac_cv_lib_readline_readline" = xyes
20172 then :
20173 readline_lib=yes
20174 else case e in #(
20175 e) readline_lib=no ;;
20176 esac
20177 fi
20178
20179 if test "$readline_h" = no -o "$readline_lib" = no; then
20180 if test "$READLINE" = "yes"; then
20181 as_fn_error $? "You need to install the GNU readline library or configure without --enable-readline" "$LINENO" 5
20182 fi
20183 fi
20184 if test "$READLINE" = yes; then
20185 READLINE="-lreadline $rdllib"
20186 fi
20187
20188
20189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rl_completion_matches in -lreadline" >&5
20190 printf %s "checking for rl_completion_matches in -lreadline... " >&6; }
20191 if test ${ac_cv_lib_readline_rl_completion_matches+y}
20192 then :
20193 printf %s "(cached) " >&6
20194 else case e in #(
20195 e) ac_check_lib_save_LIBS=$LIBS
20196 LIBS="-lreadline $rdllib $LIBS"
20197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20198 /* end confdefs.h. */
20199
20200 /* Override any GCC internal prototype to avoid an error.
20201 Use char because int might match the return type of a GCC
20202 builtin and then its argument prototype would still apply.
20203 The 'extern "C"' is for builds by C++ compilers;
20204 although this is not generally supported in C code supporting it here
20205 has little cost and some practical benefit (sr 110532). */
20206 #ifdef __cplusplus
20207 extern "C"
20208 #endif
20209 char rl_completion_matches (void);
20210 int
20211 main (void)
20212 {
20213 return rl_completion_matches ();
20214 ;
20215 return 0;
20216 }
20217 _ACEOF
20218 if ac_fn_c_try_link "$LINENO"
20219 then :
20220 ac_cv_lib_readline_rl_completion_matches=yes
20221 else case e in #(
20222 e) ac_cv_lib_readline_rl_completion_matches=no ;;
20223 esac
20224 fi
20225 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20226 conftest$ac_exeext conftest.$ac_ext
20227 LIBS=$ac_check_lib_save_LIBS ;;
20228 esac
20229 fi
20230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_matches" >&5
20231 printf "%s\n" "$ac_cv_lib_readline_rl_completion_matches" >&6; }
20232 if test "x$ac_cv_lib_readline_rl_completion_matches" = xyes
20233 then :
20234 rlcm=yes
20235 else case e in #(
20236 e) rlcm=no ;;
20237 esac
20238 fi
20239
20240 if test "$rlcm" = yes; then
20241
20242 printf "%s\n" "#define HAVE_READLINE_RLCM 1" >>confdefs.h
20243
20244 fi
20245
20246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rl_completion_append_character in -lreadline" >&5
20247 printf %s "checking for rl_completion_append_character in -lreadline... " >&6; }
20248 if test ${ac_cv_lib_readline_rl_completion_append_character+y}
20249 then :
20250 printf %s "(cached) " >&6
20251 else case e in #(
20252 e) ac_check_lib_save_LIBS=$LIBS
20253 LIBS="-lreadline $rdllib $LIBS"
20254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20255 /* end confdefs.h. */
20256
20257 /* Override any GCC internal prototype to avoid an error.
20258 Use char because int might match the return type of a GCC
20259 builtin and then its argument prototype would still apply.
20260 The 'extern "C"' is for builds by C++ compilers;
20261 although this is not generally supported in C code supporting it here
20262 has little cost and some practical benefit (sr 110532). */
20263 #ifdef __cplusplus
20264 extern "C"
20265 #endif
20266 char rl_completion_append_character (void);
20267 int
20268 main (void)
20269 {
20270 return rl_completion_append_character ();
20271 ;
20272 return 0;
20273 }
20274 _ACEOF
20275 if ac_fn_c_try_link "$LINENO"
20276 then :
20277 ac_cv_lib_readline_rl_completion_append_character=yes
20278 else case e in #(
20279 e) ac_cv_lib_readline_rl_completion_append_character=no ;;
20280 esac
20281 fi
20282 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20283 conftest$ac_exeext conftest.$ac_ext
20284 LIBS=$ac_check_lib_save_LIBS ;;
20285 esac
20286 fi
20287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_append_character" >&5
20288 printf "%s\n" "$ac_cv_lib_readline_rl_completion_append_character" >&6; }
20289 if test "x$ac_cv_lib_readline_rl_completion_append_character" = xyes
20290 then :
20291 rcac=yes
20292 else case e in #(
20293 e) rcac=no ;;
20294 esac
20295 fi
20296
20297 if test "$rcac" = yes; then
20298
20299 printf "%s\n" "#define HAVE_READLINE_CAC 1" >>confdefs.h
20300
20301 fi
20302
20303 # Check whether --enable-zlib was given.
20304 if test ${enable_zlib+y}
20305 then :
20306 enableval=$enable_zlib;
20307 fi
20308
20309 if test "$enable_zlib" != "no"; then
20310
20311 pkg_failed=no
20312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for zlib" >&5
20313 printf %s "checking for zlib... " >&6; }
20314
20315 if test -n "$ZLIB_CFLAGS"; then
20316 pkg_cv_ZLIB_CFLAGS="$ZLIB_CFLAGS"
20317 elif test -n "$PKG_CONFIG"; then
20318 if test -n "$PKG_CONFIG" && \
20319 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
20320 ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
20321 ac_status=$?
20322 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20323 test $ac_status = 0; }; then
20324 pkg_cv_ZLIB_CFLAGS=`$PKG_CONFIG --cflags "zlib" 2>/dev/null`
20325 test "x$?" != "x0" && pkg_failed=yes
20326 else
20327 pkg_failed=yes
20328 fi
20329 else
20330 pkg_failed=untried
20331 fi
20332 if test -n "$ZLIB_LIBS"; then
20333 pkg_cv_ZLIB_LIBS="$ZLIB_LIBS"
20334 elif test -n "$PKG_CONFIG"; then
20335 if test -n "$PKG_CONFIG" && \
20336 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
20337 ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
20338 ac_status=$?
20339 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20340 test $ac_status = 0; }; then
20341 pkg_cv_ZLIB_LIBS=`$PKG_CONFIG --libs "zlib" 2>/dev/null`
20342 test "x$?" != "x0" && pkg_failed=yes
20343 else
20344 pkg_failed=yes
20345 fi
20346 else
20347 pkg_failed=untried
20348 fi
20349
20350
20351
20352 if test $pkg_failed = yes; then
20353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20354 printf "%s\n" "no" >&6; }
20355
20356 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20357 _pkg_short_errors_supported=yes
20358 else
20359 _pkg_short_errors_supported=no
20360 fi
20361 if test $_pkg_short_errors_supported = yes; then
20362 ZLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib" 2>&1`
20363 else
20364 ZLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib" 2>&1`
20365 fi
20366 # Put the nasty error message in config.log where it belongs
20367 echo "$ZLIB_PKG_ERRORS" >&5
20368
20369
20370 found_zlib="no"
20371 if test "$enable_zlib" = "yes"; then
20372 as_fn_error $? "zlib support requested, but not found" "$LINENO" 5
20373 fi
20374
20375 elif test $pkg_failed = untried; then
20376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20377 printf "%s\n" "no" >&6; }
20378
20379 found_zlib="no"
20380 if test "$enable_zlib" = "yes"; then
20381 as_fn_error $? "zlib support requested, but not found" "$LINENO" 5
20382 fi
20383
20384 else
20385 ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS
20386 ZLIB_LIBS=$pkg_cv_ZLIB_LIBS
20387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20388 printf "%s\n" "yes" >&6; }
20389
20390 fi
20391 if test "$found_zlib" != "no"; then
20392
20393 printf "%s\n" "#define HAVE_ZLIB 1" >>confdefs.h
20394
20395 fi
20396 fi
20397
20398 # Check whether --enable-bzip2 was given.
20399 if test ${enable_bzip2+y}
20400 then :
20401 enableval=$enable_bzip2;
20402 fi
20403
20404 BZLIB=
20405 if test "$enable_bzip2" != "no"; then
20406 ac_fn_c_check_header_compile "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
20407 if test "x$ac_cv_header_bzlib_h" = xyes
20408 then :
20409 bzlib_h=yes
20410 else case e in #(
20411 e) bzlib_h=no ;;
20412 esac
20413 fi
20414
20415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzBuffToBuffCompress in -lbz2" >&5
20416 printf %s "checking for BZ2_bzBuffToBuffCompress in -lbz2... " >&6; }
20417 if test ${ac_cv_lib_bz2_BZ2_bzBuffToBuffCompress+y}
20418 then :
20419 printf %s "(cached) " >&6
20420 else case e in #(
20421 e) ac_check_lib_save_LIBS=$LIBS
20422 LIBS="-lbz2 $LIBS"
20423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20424 /* end confdefs.h. */
20425
20426 /* Override any GCC internal prototype to avoid an error.
20427 Use char because int might match the return type of a GCC
20428 builtin and then its argument prototype would still apply.
20429 The 'extern "C"' is for builds by C++ compilers;
20430 although this is not generally supported in C code supporting it here
20431 has little cost and some practical benefit (sr 110532). */
20432 #ifdef __cplusplus
20433 extern "C"
20434 #endif
20435 char BZ2_bzBuffToBuffCompress (void);
20436 int
20437 main (void)
20438 {
20439 return BZ2_bzBuffToBuffCompress ();
20440 ;
20441 return 0;
20442 }
20443 _ACEOF
20444 if ac_fn_c_try_link "$LINENO"
20445 then :
20446 ac_cv_lib_bz2_BZ2_bzBuffToBuffCompress=yes
20447 else case e in #(
20448 e) ac_cv_lib_bz2_BZ2_bzBuffToBuffCompress=no ;;
20449 esac
20450 fi
20451 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20452 conftest$ac_exeext conftest.$ac_ext
20453 LIBS=$ac_check_lib_save_LIBS ;;
20454 esac
20455 fi
20456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzBuffToBuffCompress" >&5
20457 printf "%s\n" "$ac_cv_lib_bz2_BZ2_bzBuffToBuffCompress" >&6; }
20458 if test "x$ac_cv_lib_bz2_BZ2_bzBuffToBuffCompress" = xyes
20459 then :
20460 bzlib_lib=yes
20461 else case e in #(
20462 e) bzlib_lib=no ;;
20463 esac
20464 fi
20465
20466
20467 if test "$bzlib_h" = yes -a "$bzlib_lib" = yes; then
20468 BZLIB="-lbz2"
20469
20470 printf "%s\n" "#define HAVE_BZLIB 1" >>confdefs.h
20471
20472 elif test "$enable_bzip2" = "yes"; then
20473 as_fn_error $? "bzip2 support requested, but not found" "$LINENO" 5
20474 fi
20475 fi
20476
20477
20478 # Check whether --enable-lzo was given.
20479 if test ${enable_lzo+y}
20480 then :
20481 enableval=$enable_lzo;
20482 fi
20483
20484 LZOLIB=
20485 if test "$enable_lzo" != "no"; then
20486 ac_fn_c_check_header_compile "$LINENO" "lzo/lzo1x.h" "ac_cv_header_lzo_lzo1x_h" "$ac_includes_default"
20487 if test "x$ac_cv_header_lzo_lzo1x_h" = xyes
20488 then :
20489 lzo_h=yes
20490 else case e in #(
20491 e) lzo_h=no ;;
20492 esac
20493 fi
20494
20495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lzo1x_1_compress in -llzo2" >&5
20496 printf %s "checking for lzo1x_1_compress in -llzo2... " >&6; }
20497 if test ${ac_cv_lib_lzo2_lzo1x_1_compress+y}
20498 then :
20499 printf %s "(cached) " >&6
20500 else case e in #(
20501 e) ac_check_lib_save_LIBS=$LIBS
20502 LIBS="-llzo2 $LIBS"
20503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20504 /* end confdefs.h. */
20505
20506 /* Override any GCC internal prototype to avoid an error.
20507 Use char because int might match the return type of a GCC
20508 builtin and then its argument prototype would still apply.
20509 The 'extern "C"' is for builds by C++ compilers;
20510 although this is not generally supported in C code supporting it here
20511 has little cost and some practical benefit (sr 110532). */
20512 #ifdef __cplusplus
20513 extern "C"
20514 #endif
20515 char lzo1x_1_compress (void);
20516 int
20517 main (void)
20518 {
20519 return lzo1x_1_compress ();
20520 ;
20521 return 0;
20522 }
20523 _ACEOF
20524 if ac_fn_c_try_link "$LINENO"
20525 then :
20526 ac_cv_lib_lzo2_lzo1x_1_compress=yes
20527 else case e in #(
20528 e) ac_cv_lib_lzo2_lzo1x_1_compress=no ;;
20529 esac
20530 fi
20531 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20532 conftest$ac_exeext conftest.$ac_ext
20533 LIBS=$ac_check_lib_save_LIBS ;;
20534 esac
20535 fi
20536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzo2_lzo1x_1_compress" >&5
20537 printf "%s\n" "$ac_cv_lib_lzo2_lzo1x_1_compress" >&6; }
20538 if test "x$ac_cv_lib_lzo2_lzo1x_1_compress" = xyes
20539 then :
20540 lzo_lib=yes
20541 else case e in #(
20542 e) lzo_lib=no ;;
20543 esac
20544 fi
20545
20546
20547 if test "$lzo_h" = yes -a "$lzo_lib" = yes; then
20548 LZOLIB="-llzo2"
20549
20550 printf "%s\n" "#define HAVE_LZO 1" >>confdefs.h
20551
20552 elif test "$enable_lzo" = "yes"; then
20553 as_fn_error $? "lzo support requested, but not found" "$LINENO" 5
20554 fi
20555 fi
20556
20557
20558 # Check whether --enable-sqlite was given.
20559 if test ${enable_sqlite+y}
20560 then :
20561 enableval=$enable_sqlite;
20562 fi
20563
20564 SQLITE3=
20565 if test "$enable_sqlite" != "no"; then
20566 ac_fn_c_check_header_compile "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default"
20567 if test "x$ac_cv_header_sqlite3_h" = xyes
20568 then :
20569 sqlite3_h=yes
20570 else case e in #(
20571 e) sqlite3_h=no ;;
20572 esac
20573 fi
20574
20575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_initialize in -lsqlite3" >&5
20576 printf %s "checking for sqlite3_initialize in -lsqlite3... " >&6; }
20577 if test ${ac_cv_lib_sqlite3_sqlite3_initialize+y}
20578 then :
20579 printf %s "(cached) " >&6
20580 else case e in #(
20581 e) ac_check_lib_save_LIBS=$LIBS
20582 LIBS="-lsqlite3 $LIBS"
20583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20584 /* end confdefs.h. */
20585
20586 /* Override any GCC internal prototype to avoid an error.
20587 Use char because int might match the return type of a GCC
20588 builtin and then its argument prototype would still apply.
20589 The 'extern "C"' is for builds by C++ compilers;
20590 although this is not generally supported in C code supporting it here
20591 has little cost and some practical benefit (sr 110532). */
20592 #ifdef __cplusplus
20593 extern "C"
20594 #endif
20595 char sqlite3_initialize (void);
20596 int
20597 main (void)
20598 {
20599 return sqlite3_initialize ();
20600 ;
20601 return 0;
20602 }
20603 _ACEOF
20604 if ac_fn_c_try_link "$LINENO"
20605 then :
20606 ac_cv_lib_sqlite3_sqlite3_initialize=yes
20607 else case e in #(
20608 e) ac_cv_lib_sqlite3_sqlite3_initialize=no ;;
20609 esac
20610 fi
20611 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20612 conftest$ac_exeext conftest.$ac_ext
20613 LIBS=$ac_check_lib_save_LIBS ;;
20614 esac
20615 fi
20616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_initialize" >&5
20617 printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_initialize" >&6; }
20618 if test "x$ac_cv_lib_sqlite3_sqlite3_initialize" = xyes
20619 then :
20620 sqlite3_lib=yes
20621 else case e in #(
20622 e) sqlite3_lib=no ;;
20623 esac
20624 fi
20625
20626 if test "$sqlite3_h" = yes -a "$sqlite3_lib" = yes; then
20627 SQLITE3="-lsqlite3"
20628
20629 printf "%s\n" "#define HAVE_SQLITE3 1" >>confdefs.h
20630
20631 elif test "$enable_sqlite" = "yes"; then
20632 as_fn_error $? "sqlite support requested, but not found" "$LINENO" 5
20633 fi
20634 fi
20635
20636
20637 ac_fn_c_check_func "$LINENO" "err" "ac_cv_func_err"
20638 if test "x$ac_cv_func_err" = xyes
20639 then :
20640 printf "%s\n" "#define HAVE_ERR 1" >>confdefs.h
20641
20642 fi
20643 ac_fn_c_check_func "$LINENO" "errx" "ac_cv_func_errx"
20644 if test "x$ac_cv_func_errx" = xyes
20645 then :
20646 printf "%s\n" "#define HAVE_ERRX 1" >>confdefs.h
20647
20648 fi
20649 ac_fn_c_check_func "$LINENO" "verr" "ac_cv_func_verr"
20650 if test "x$ac_cv_func_verr" = xyes
20651 then :
20652 printf "%s\n" "#define HAVE_VERR 1" >>confdefs.h
20653
20654 fi
20655 ac_fn_c_check_func "$LINENO" "verrx" "ac_cv_func_verrx"
20656 if test "x$ac_cv_func_verrx" = xyes
20657 then :
20658 printf "%s\n" "#define HAVE_VERRX 1" >>confdefs.h
20659
20660 fi
20661 ac_fn_c_check_func "$LINENO" "vwarn" "ac_cv_func_vwarn"
20662 if test "x$ac_cv_func_vwarn" = xyes
20663 then :
20664 printf "%s\n" "#define HAVE_VWARN 1" >>confdefs.h
20665
20666 fi
20667 ac_fn_c_check_func "$LINENO" "vwarnx" "ac_cv_func_vwarnx"
20668 if test "x$ac_cv_func_vwarnx" = xyes
20669 then :
20670 printf "%s\n" "#define HAVE_VWARNX 1" >>confdefs.h
20671
20672 fi
20673 ac_fn_c_check_func "$LINENO" "warn" "ac_cv_func_warn"
20674 if test "x$ac_cv_func_warn" = xyes
20675 then :
20676 printf "%s\n" "#define HAVE_WARN 1" >>confdefs.h
20677
20678 fi
20679 ac_fn_c_check_func "$LINENO" "warnx" "ac_cv_func_warnx"
20680 if test "x$ac_cv_func_warnx" = xyes
20681 then :
20682 printf "%s\n" "#define HAVE_WARNX 1" >>confdefs.h
20683
20684 fi
20685 ac_fn_c_check_func "$LINENO" "realpath" "ac_cv_func_realpath"
20686 if test "x$ac_cv_func_realpath" = xyes
20687 then :
20688 printf "%s\n" "#define HAVE_REALPATH 1" >>confdefs.h
20689
20690 fi
20691 ac_fn_c_check_func "$LINENO" "lchown" "ac_cv_func_lchown"
20692 if test "x$ac_cv_func_lchown" = xyes
20693 then :
20694 printf "%s\n" "#define HAVE_LCHOWN 1" >>confdefs.h
20695
20696 fi
20697 ac_fn_c_check_func "$LINENO" "utimensat" "ac_cv_func_utimensat"
20698 if test "x$ac_cv_func_utimensat" = xyes
20699 then :
20700 printf "%s\n" "#define HAVE_UTIMENSAT 1" >>confdefs.h
20701
20702 fi
20703
20704 ac_fn_c_check_func "$LINENO" "glob" "ac_cv_func_glob"
20705 if test "x$ac_cv_func_glob" = xyes
20706 then :
20707
20708 fi
20709
20710
20711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for extended glob routines" >&5
20712 printf %s "checking for extended glob routines... " >&6; }
20713 if test "$ac_cv_func_glob" = "yes"; then
20714 ac_ext=c
20715 ac_cpp='$CPP $CPPFLAGS'
20716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
20720 printf %s "checking how to run the C preprocessor... " >&6; }
20721 # On Suns, sometimes $CPP names a directory.
20722 if test -n "$CPP" && test -d "$CPP"; then
20723 CPP=
20724 fi
20725 if test -z "$CPP"; then
20726 if test ${ac_cv_prog_CPP+y}
20727 then :
20728 printf %s "(cached) " >&6
20729 else case e in #(
20730 e) # Double quotes because $CC needs to be expanded
20731 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
20732 do
20733 ac_preproc_ok=false
20734 for ac_c_preproc_warn_flag in '' yes
20735 do
20736 # Use a header file that comes with gcc, so configuring glibc
20737 # with a fresh cross-compiler works.
20738 # On the NeXT, cc -E runs the code through the compiler's parser,
20739 # not just through cpp. "Syntax error" is here to catch this case.
20740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20741 /* end confdefs.h. */
20742 #include <limits.h>
20743 Syntax error
20744 _ACEOF
20745 if ac_fn_c_try_cpp "$LINENO"
20746 then :
20747
20748 else case e in #(
20749 e) # Broken: fails on valid input.
20750 continue ;;
20751 esac
20752 fi
20753 rm -f conftest.err conftest.i conftest.$ac_ext
20754
20755 # OK, works on sane cases. Now check whether nonexistent headers
20756 # can be detected and how.
20757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20758 /* end confdefs.h. */
20759 #include <ac_nonexistent.h>
20760 _ACEOF
20761 if ac_fn_c_try_cpp "$LINENO"
20762 then :
20763 # Broken: success on invalid input.
20764 continue
20765 else case e in #(
20766 e) # Passes both tests.
20767 ac_preproc_ok=:
20768 break ;;
20769 esac
20770 fi
20771 rm -f conftest.err conftest.i conftest.$ac_ext
20772
20773 done
20774 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20775 rm -f conftest.i conftest.err conftest.$ac_ext
20776 if $ac_preproc_ok
20777 then :
20778 break
20779 fi
20780
20781 done
20782 ac_cv_prog_CPP=$CPP
20783 ;;
20784 esac
20785 fi
20786 CPP=$ac_cv_prog_CPP
20787 else
20788 ac_cv_prog_CPP=$CPP
20789 fi
20790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
20791 printf "%s\n" "$CPP" >&6; }
20792 ac_preproc_ok=false
20793 for ac_c_preproc_warn_flag in '' yes
20794 do
20795 # Use a header file that comes with gcc, so configuring glibc
20796 # with a fresh cross-compiler works.
20797 # On the NeXT, cc -E runs the code through the compiler's parser,
20798 # not just through cpp. "Syntax error" is here to catch this case.
20799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20800 /* end confdefs.h. */
20801 #include <limits.h>
20802 Syntax error
20803 _ACEOF
20804 if ac_fn_c_try_cpp "$LINENO"
20805 then :
20806
20807 else case e in #(
20808 e) # Broken: fails on valid input.
20809 continue ;;
20810 esac
20811 fi
20812 rm -f conftest.err conftest.i conftest.$ac_ext
20813
20814 # OK, works on sane cases. Now check whether nonexistent headers
20815 # can be detected and how.
20816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20817 /* end confdefs.h. */
20818 #include <ac_nonexistent.h>
20819 _ACEOF
20820 if ac_fn_c_try_cpp "$LINENO"
20821 then :
20822 # Broken: success on invalid input.
20823 continue
20824 else case e in #(
20825 e) # Passes both tests.
20826 ac_preproc_ok=:
20827 break ;;
20828 esac
20829 fi
20830 rm -f conftest.err conftest.i conftest.$ac_ext
20831
20832 done
20833 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20834 rm -f conftest.i conftest.err conftest.$ac_ext
20835 if $ac_preproc_ok
20836 then :
20837
20838 else case e in #(
20839 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
20840 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
20841 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
20842 See 'config.log' for more details" "$LINENO" 5; } ;;
20843 esac
20844 fi
20845
20846 ac_ext=c
20847 ac_cpp='$CPP $CPPFLAGS'
20848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20851
20852
20853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5
20854 printf %s "checking for egrep -e... " >&6; }
20855 if test ${ac_cv_path_EGREP_TRADITIONAL+y}
20856 then :
20857 printf %s "(cached) " >&6
20858 else case e in #(
20859 e) if test -z "$EGREP_TRADITIONAL"; then
20860 ac_path_EGREP_TRADITIONAL_found=false
20861 # Loop through the user's path and test for each of PROGNAME-LIST
20862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20863 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
20864 do
20865 IFS=$as_save_IFS
20866 case $as_dir in #(((
20867 '') as_dir=./ ;;
20868 */) ;;
20869 *) as_dir=$as_dir/ ;;
20870 esac
20871 for ac_prog in grep ggrep
20872 do
20873 for ac_exec_ext in '' $ac_executable_extensions; do
20874 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
20875 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
20876 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
20877 # Check for GNU $ac_path_EGREP_TRADITIONAL
20878 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
20879 *GNU*)
20880 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
20881 #(
20882 *)
20883 ac_count=0
20884 printf %s 0123456789 >"conftest.in"
20885 while :
20886 do
20887 cat "conftest.in" "conftest.in" >"conftest.tmp"
20888 mv "conftest.tmp" "conftest.in"
20889 cp "conftest.in" "conftest.nl"
20890 printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
20891 "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
20892 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
20893 as_fn_arith $ac_count + 1 && ac_count=$as_val
20894 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
20895 # Best one so far, save it but keep looking for a better one
20896 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
20897 ac_path_EGREP_TRADITIONAL_max=$ac_count
20898 fi
20899 # 10*(2^10) chars as input seems more than enough
20900 test $ac_count -gt 10 && break
20901 done
20902 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
20903 esac
20904
20905 $ac_path_EGREP_TRADITIONAL_found && break 3
20906 done
20907 done
20908 done
20909 IFS=$as_save_IFS
20910 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
20911 :
20912 fi
20913 else
20914 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
20915 fi
20916
20917 if test "$ac_cv_path_EGREP_TRADITIONAL"
20918 then :
20919 ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E"
20920 else case e in #(
20921 e) if test -z "$EGREP_TRADITIONAL"; then
20922 ac_path_EGREP_TRADITIONAL_found=false
20923 # Loop through the user's path and test for each of PROGNAME-LIST
20924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20925 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
20926 do
20927 IFS=$as_save_IFS
20928 case $as_dir in #(((
20929 '') as_dir=./ ;;
20930 */) ;;
20931 *) as_dir=$as_dir/ ;;
20932 esac
20933 for ac_prog in egrep
20934 do
20935 for ac_exec_ext in '' $ac_executable_extensions; do
20936 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
20937 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
20938 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
20939 # Check for GNU $ac_path_EGREP_TRADITIONAL
20940 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
20941 *GNU*)
20942 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
20943 #(
20944 *)
20945 ac_count=0
20946 printf %s 0123456789 >"conftest.in"
20947 while :
20948 do
20949 cat "conftest.in" "conftest.in" >"conftest.tmp"
20950 mv "conftest.tmp" "conftest.in"
20951 cp "conftest.in" "conftest.nl"
20952 printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
20953 "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
20954 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
20955 as_fn_arith $ac_count + 1 && ac_count=$as_val
20956 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
20957 # Best one so far, save it but keep looking for a better one
20958 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
20959 ac_path_EGREP_TRADITIONAL_max=$ac_count
20960 fi
20961 # 10*(2^10) chars as input seems more than enough
20962 test $ac_count -gt 10 && break
20963 done
20964 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
20965 esac
20966
20967 $ac_path_EGREP_TRADITIONAL_found && break 3
20968 done
20969 done
20970 done
20971 IFS=$as_save_IFS
20972 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
20973 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
20974 fi
20975 else
20976 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
20977 fi
20978 ;;
20979 esac
20980 fi ;;
20981 esac
20982 fi
20983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5
20984 printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; }
20985 EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL
20986
20987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20988 /* end confdefs.h. */
20989
20990 # include <glob.h>
20991 # ifdef GLOB_ALTDIRFUNC
20992 yes
20993 # endif
20994
20995 _ACEOF
20996 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20997 $EGREP_TRADITIONAL "yes" >/dev/null 2>&1
20998 then :
20999
21000
21001 printf "%s\n" "#define HAVE_GLOB 1" >>confdefs.h
21002
21003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21004 printf "%s\n" "yes" >&6; }
21005
21006 else case e in #(
21007 e)
21008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21009 printf "%s\n" "no" >&6; }
21010 echo "Your system does not support extended glob, will use the internal routines"
21011 ;;
21012 esac
21013 fi
21014 rm -rf conftest*
21015
21016 fi
21017
21018 # Check whether --enable-ssl was given.
21019 if test ${enable_ssl+y}
21020 then :
21021 enableval=$enable_ssl;
21022 fi
21023
21024 if test "$enable_ssl" != "no"; then
21025
21026 pkg_failed=no
21027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openssl" >&5
21028 printf %s "checking for openssl... " >&6; }
21029
21030 if test -n "$SSL_CFLAGS"; then
21031 pkg_cv_SSL_CFLAGS="$SSL_CFLAGS"
21032 elif test -n "$PKG_CONFIG"; then
21033 if test -n "$PKG_CONFIG" && \
21034 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5
21035 ($PKG_CONFIG --exists --print-errors "openssl") 2>&5
21036 ac_status=$?
21037 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21038 test $ac_status = 0; }; then
21039 pkg_cv_SSL_CFLAGS=`$PKG_CONFIG --cflags "openssl" 2>/dev/null`
21040 test "x$?" != "x0" && pkg_failed=yes
21041 else
21042 pkg_failed=yes
21043 fi
21044 else
21045 pkg_failed=untried
21046 fi
21047 if test -n "$SSL_LIBS"; then
21048 pkg_cv_SSL_LIBS="$SSL_LIBS"
21049 elif test -n "$PKG_CONFIG"; then
21050 if test -n "$PKG_CONFIG" && \
21051 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5
21052 ($PKG_CONFIG --exists --print-errors "openssl") 2>&5
21053 ac_status=$?
21054 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21055 test $ac_status = 0; }; then
21056 pkg_cv_SSL_LIBS=`$PKG_CONFIG --libs "openssl" 2>/dev/null`
21057 test "x$?" != "x0" && pkg_failed=yes
21058 else
21059 pkg_failed=yes
21060 fi
21061 else
21062 pkg_failed=untried
21063 fi
21064
21065
21066
21067 if test $pkg_failed = yes; then
21068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21069 printf "%s\n" "no" >&6; }
21070
21071 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21072 _pkg_short_errors_supported=yes
21073 else
21074 _pkg_short_errors_supported=no
21075 fi
21076 if test $_pkg_short_errors_supported = yes; then
21077 SSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl" 2>&1`
21078 else
21079 SSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl" 2>&1`
21080 fi
21081 # Put the nasty error message in config.log where it belongs
21082 echo "$SSL_PKG_ERRORS" >&5
21083
21084
21085 found_ssl="no"
21086 if test "$enable_ssl" = "yes"; then
21087 as_fn_error $? "OpenSSL support requested, but not found" "$LINENO" 5
21088 fi
21089
21090 elif test $pkg_failed = untried; then
21091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21092 printf "%s\n" "no" >&6; }
21093
21094 found_ssl="no"
21095 if test "$enable_ssl" = "yes"; then
21096 as_fn_error $? "OpenSSL support requested, but not found" "$LINENO" 5
21097 fi
21098
21099 else
21100 SSL_CFLAGS=$pkg_cv_SSL_CFLAGS
21101 SSL_LIBS=$pkg_cv_SSL_LIBS
21102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21103 printf "%s\n" "yes" >&6; }
21104
21105 fi
21106 if test "$found_ssl" != "no"; then
21107
21108 printf "%s\n" "#define HAVE_OPENSSL 1" >>confdefs.h
21109
21110 fi
21111 fi
21112 if test "$ERMT" != "" -a -z "$SSL_LIBS"; then
21113 as_fn_error $? "You need to install the OpenSSL library (version 0.9.7a or later), or configure without --enable-ermt" "$LINENO" 5
21114 fi
21115
21116 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
21117 case $ac_cv_c_int64_t in #(
21118 no|yes) ;; #(
21119 *)
21120
21121 printf "%s\n" "#define int64_t $ac_cv_c_int64_t" >>confdefs.h
21122 ;;
21123 esac
21124
21125 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
21126 case $ac_cv_c_uint64_t in #(
21127 no|yes) ;; #(
21128 *)
21129
21130 printf "%s\n" "#define _UINT64_T 1" >>confdefs.h
21131
21132
21133 printf "%s\n" "#define uint64_t $ac_cv_c_uint64_t" >>confdefs.h
21134 ;;
21135 esac
21136
21137
21138 cat >confcache <<\_ACEOF
21139 # This file is a shell script that caches the results of configure
21140 # tests run on this system so they can be shared between configure
21141 # scripts and configure runs, see configure's option --config-cache.
21142 # It is not useful on other systems. If it contains results you don't
21143 # want to keep, you may remove or edit it.
21144 #
21145 # config.status only pays attention to the cache file if you give it
21146 # the --recheck option to rerun configure.
21147 #
21148 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
21149 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
21150 # following values.
21151
21152 _ACEOF
21153
21154 # The following way of writing the cache mishandles newlines in values,
21155 # but we know of no workaround that is simple, portable, and efficient.
21156 # So, we kill variables containing newlines.
21157 # Ultrix sh set writes to stderr and can't be redirected directly,
21158 # and sets the high bit in the cache file unless we assign to the vars.
21159 (
21160 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21161 eval ac_val=\$$ac_var
21162 case $ac_val in #(
21163 *${as_nl}*)
21164 case $ac_var in #(
21165 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21166 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21167 esac
21168 case $ac_var in #(
21169 _ | IFS | as_nl) ;; #(
21170 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21171 *) { eval $ac_var=; unset $ac_var;} ;;
21172 esac ;;
21173 esac
21174 done
21175
21176 (set) 2>&1 |
21177 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21178 *${as_nl}ac_space=\ *)
21179 # 'set' does not quote correctly, so add quotes: double-quote
21180 # substitution turns \\\\ into \\, and sed turns \\ into \.
21181 sed -n \
21182 "s/'/'\\\\''/g;
21183 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21184 ;; #(
21185 *)
21186 # 'set' quotes correctly as required by POSIX, so do not add quotes.
21187 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21188 ;;
21189 esac |
21190 sort
21191 ) |
21192 sed '
21193 /^ac_cv_env_/b end
21194 t clear
21195 :clear
21196 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
21197 t end
21198 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21199 :end' >>confcache
21200 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21201 if test -w "$cache_file"; then
21202 if test "x$cache_file" != "x/dev/null"; then
21203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21204 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
21205 if test ! -f "$cache_file" || test -h "$cache_file"; then
21206 cat confcache >"$cache_file"
21207 else
21208 case $cache_file in #(
21209 */* | ?:*)
21210 mv -f confcache "$cache_file"$$ &&
21211 mv -f "$cache_file"$$ "$cache_file" ;; #(
21212 *)
21213 mv -f confcache "$cache_file" ;;
21214 esac
21215 fi
21216 fi
21217 else
21218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21219 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
21220 fi
21221 fi
21222 rm -f confcache
21223
21224 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21225 # Let make expand exec_prefix.
21226 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21227
21228 DEFS=-DHAVE_CONFIG_H
21229
21230 ac_libobjs=
21231 ac_ltlibobjs=
21232 U=
21233 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21234 # 1. Remove the extension, and $U if already installed.
21235 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21236 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
21237 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21238 # will be set to the directory where LIBOBJS objects are built.
21239 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21240 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21241 done
21242 LIBOBJS=$ac_libobjs
21243
21244 LTLIBOBJS=$ac_ltlibobjs
21245
21246
21247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
21248 printf %s "checking that generated files are newer than configure... " >&6; }
21249 if test -n "$am_sleep_pid"; then
21250 # Hide warnings about reused PIDs.
21251 wait $am_sleep_pid 2>/dev/null
21252 fi
21253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
21254 printf "%s\n" "done" >&6; }
21255 case $enable_silent_rules in # (((
21256 yes) AM_DEFAULT_VERBOSITY=0;;
21257 no) AM_DEFAULT_VERBOSITY=1;;
21258 esac
21259 if test $am_cv_make_support_nested_variables = yes; then
21260 AM_V='$(V)'
21261 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
21262 else
21263 AM_V=$AM_DEFAULT_VERBOSITY
21264 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
21265 fi
21266
21267 if test -n "$EXEEXT"; then
21268 am__EXEEXT_TRUE=
21269 am__EXEEXT_FALSE='#'
21270 else
21271 am__EXEEXT_TRUE='#'
21272 am__EXEEXT_FALSE=
21273 fi
21274
21275 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21276 as_fn_error $? "conditional \"AMDEP\" was never defined.
21277 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21278 fi
21279 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21280 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21281 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21282 fi
21283 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21284 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
21285 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21286 fi
21287 # Check whether --enable-year2038 was given.
21288 if test ${enable_year2038+y}
21289 then :
21290 enableval=$enable_year2038;
21291 fi
21292
21293 if test -z "${BUILD_RMT_TRUE}" && test -z "${BUILD_RMT_FALSE}"; then
21294 as_fn_error $? "conditional \"BUILD_RMT\" was never defined.
21295 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21296 fi
21297 if test -z "${BUILD_ERMT_TRUE}" && test -z "${BUILD_ERMT_FALSE}"; then
21298 as_fn_error $? "conditional \"BUILD_ERMT\" was never defined.
21299 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21300 fi
21301
21302 : "${CONFIG_STATUS=./config.status}"
21303 ac_write_fail=0
21304 ac_clean_files_save=$ac_clean_files
21305 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21307 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
21308 as_write_fail=0
21309 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21310 #! $SHELL
21311 # Generated by $as_me.
21312 # Run this file to recreate the current configuration.
21313 # Compiler output produced by configure, useful for debugging
21314 # configure, is in config.log if it exists.
21315
21316 debug=false
21317 ac_cs_recheck=false
21318 ac_cs_silent=false
21319
21320 SHELL=\${CONFIG_SHELL-$SHELL}
21321 export SHELL
21322 _ASEOF
21323 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21324 ## -------------------- ##
21325 ## M4sh Initialization. ##
21326 ## -------------------- ##
21327
21328 # Be more Bourne compatible
21329 DUALCASE=1; export DUALCASE # for MKS sh
21330 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21331 then :
21332 emulate sh
21333 NULLCMD=:
21334 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21335 # is contrary to our usage. Disable this feature.
21336 alias -g '${1+"$@"}'='"$@"'
21337 setopt NO_GLOB_SUBST
21338 else case e in #(
21339 e) case `(set -o) 2>/dev/null` in #(
21340 *posix*) :
21341 set -o posix ;; #(
21342 *) :
21343 ;;
21344 esac ;;
21345 esac
21346 fi
21347
21348
21349
21350 # Reset variables that may have inherited troublesome values from
21351 # the environment.
21352
21353 # IFS needs to be set, to space, tab, and newline, in precisely that order.
21354 # (If _AS_PATH_WALK were called with IFS unset, it would have the
21355 # side effect of setting IFS to empty, thus disabling word splitting.)
21356 # Quoting is to prevent editors from complaining about space-tab.
21357 as_nl='
21358 '
21359 export as_nl
21360 IFS=" "" $as_nl"
21361
21362 PS1='$ '
21363 PS2='> '
21364 PS4='+ '
21365
21366 # Ensure predictable behavior from utilities with locale-dependent output.
21367 LC_ALL=C
21368 export LC_ALL
21369 LANGUAGE=C
21370 export LANGUAGE
21371
21372 # We cannot yet rely on "unset" to work, but we need these variables
21373 # to be unset--not just set to an empty or harmless value--now, to
21374 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
21375 # also avoids known problems related to "unset" and subshell syntax
21376 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
21377 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
21378 do eval test \${$as_var+y} \
21379 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21380 done
21381
21382 # Ensure that fds 0, 1, and 2 are open.
21383 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
21384 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
21385 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
21386
21387 # The user is always right.
21388 if ${PATH_SEPARATOR+false} :; then
21389 PATH_SEPARATOR=:
21390 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21391 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21392 PATH_SEPARATOR=';'
21393 }
21394 fi
21395
21396
21397 # Find who we are. Look in the path if we contain no directory separator.
21398 as_myself=
21399 case $0 in #((
21400 *[\\/]* ) as_myself=$0 ;;
21401 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21402 for as_dir in $PATH
21403 do
21404 IFS=$as_save_IFS
21405 case $as_dir in #(((
21406 '') as_dir=./ ;;
21407 */) ;;
21408 *) as_dir=$as_dir/ ;;
21409 esac
21410 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
21411 done
21412 IFS=$as_save_IFS
21413
21414 ;;
21415 esac
21416 # We did not find ourselves, most probably we were run as 'sh COMMAND'
21417 # in which case we are not to be found in the path.
21418 if test "x$as_myself" = x; then
21419 as_myself=$0
21420 fi
21421 if test ! -f "$as_myself"; then
21422 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21423 exit 1
21424 fi
21425
21426
21427
21428 # as_fn_error STATUS ERROR [LINENO LOG_FD]
21429 # ----------------------------------------
21430 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21431 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21432 # script with STATUS, using 1 if that was 0.
21433 as_fn_error ()
21434 {
21435 as_status=$1; test $as_status -eq 0 && as_status=1
21436 if test "$4"; then
21437 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21438 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21439 fi
21440 printf "%s\n" "$as_me: error: $2" >&2
21441 as_fn_exit $as_status
21442 } # as_fn_error
21443
21444
21445 # as_fn_set_status STATUS
21446 # -----------------------
21447 # Set $? to STATUS, without forking.
21448 as_fn_set_status ()
21449 {
21450 return $1
21451 } # as_fn_set_status
21452
21453 # as_fn_exit STATUS
21454 # -----------------
21455 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21456 as_fn_exit ()
21457 {
21458 set +e
21459 as_fn_set_status $1
21460 exit $1
21461 } # as_fn_exit
21462
21463 # as_fn_unset VAR
21464 # ---------------
21465 # Portably unset VAR.
21466 as_fn_unset ()
21467 {
21468 { eval $1=; unset $1;}
21469 }
21470 as_unset=as_fn_unset
21471
21472 # as_fn_append VAR VALUE
21473 # ----------------------
21474 # Append the text in VALUE to the end of the definition contained in VAR. Take
21475 # advantage of any shell optimizations that allow amortized linear growth over
21476 # repeated appends, instead of the typical quadratic growth present in naive
21477 # implementations.
21478 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
21479 then :
21480 eval 'as_fn_append ()
21481 {
21482 eval $1+=\$2
21483 }'
21484 else case e in #(
21485 e) as_fn_append ()
21486 {
21487 eval $1=\$$1\$2
21488 } ;;
21489 esac
21490 fi # as_fn_append
21491
21492 # as_fn_arith ARG...
21493 # ------------------
21494 # Perform arithmetic evaluation on the ARGs, and store the result in the
21495 # global $as_val. Take advantage of shells that can avoid forks. The arguments
21496 # must be portable across $(()) and expr.
21497 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
21498 then :
21499 eval 'as_fn_arith ()
21500 {
21501 as_val=$(( $* ))
21502 }'
21503 else case e in #(
21504 e) as_fn_arith ()
21505 {
21506 as_val=`expr "$@" || test $? -eq 1`
21507 } ;;
21508 esac
21509 fi # as_fn_arith
21510
21511
21512 if expr a : '\(a\)' >/dev/null 2>&1 &&
21513 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21514 as_expr=expr
21515 else
21516 as_expr=false
21517 fi
21518
21519 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21520 as_basename=basename
21521 else
21522 as_basename=false
21523 fi
21524
21525 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21526 as_dirname=dirname
21527 else
21528 as_dirname=false
21529 fi
21530
21531 as_me=`$as_basename -- "$0" ||
21532 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21533 X"$0" : 'X\(//\)$' \| \
21534 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21535 printf "%s\n" X/"$0" |
21536 sed '/^.*\/\([^/][^/]*\)\/*$/{
21537 s//\1/
21538 q
21539 }
21540 /^X\/\(\/\/\)$/{
21541 s//\1/
21542 q
21543 }
21544 /^X\/\(\/\).*/{
21545 s//\1/
21546 q
21547 }
21548 s/.*/./; q'`
21549
21550 # Avoid depending upon Character Ranges.
21551 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21552 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21553 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21554 as_cr_digits='0123456789'
21555 as_cr_alnum=$as_cr_Letters$as_cr_digits
21556
21557
21558 # Determine whether it's possible to make 'echo' print without a newline.
21559 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
21560 # for compatibility with existing Makefiles.
21561 ECHO_C= ECHO_N= ECHO_T=
21562 case `echo -n x` in #(((((
21563 -n*)
21564 case `echo 'xy\c'` in
21565 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21566 xy) ECHO_C='\c';;
21567 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
21568 ECHO_T=' ';;
21569 esac;;
21570 *)
21571 ECHO_N='-n';;
21572 esac
21573
21574 # For backward compatibility with old third-party macros, we provide
21575 # the shell variables $as_echo and $as_echo_n. New code should use
21576 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
21577 as_echo='printf %s\n'
21578 as_echo_n='printf %s'
21579
21580 rm -f conf$$ conf$$.exe conf$$.file
21581 if test -d conf$$.dir; then
21582 rm -f conf$$.dir/conf$$.file
21583 else
21584 rm -f conf$$.dir
21585 mkdir conf$$.dir 2>/dev/null
21586 fi
21587 if (echo >conf$$.file) 2>/dev/null; then
21588 if ln -s conf$$.file conf$$ 2>/dev/null; then
21589 as_ln_s='ln -s'
21590 # ... but there are two gotchas:
21591 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
21592 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
21593 # In both cases, we have to default to 'cp -pR'.
21594 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21595 as_ln_s='cp -pR'
21596 elif ln conf$$.file conf$$ 2>/dev/null; then
21597 as_ln_s=ln
21598 else
21599 as_ln_s='cp -pR'
21600 fi
21601 else
21602 as_ln_s='cp -pR'
21603 fi
21604 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21605 rmdir conf$$.dir 2>/dev/null
21606
21607
21608 # as_fn_mkdir_p
21609 # -------------
21610 # Create "$as_dir" as a directory, including parents if necessary.
21611 as_fn_mkdir_p ()
21612 {
21613
21614 case $as_dir in #(
21615 -*) as_dir=./$as_dir;;
21616 esac
21617 test -d "$as_dir" || eval $as_mkdir_p || {
21618 as_dirs=
21619 while :; do
21620 case $as_dir in #(
21621 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21622 *) as_qdir=$as_dir;;
21623 esac
21624 as_dirs="'$as_qdir' $as_dirs"
21625 as_dir=`$as_dirname -- "$as_dir" ||
21626 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21627 X"$as_dir" : 'X\(//\)[^/]' \| \
21628 X"$as_dir" : 'X\(//\)$' \| \
21629 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21630 printf "%s\n" X"$as_dir" |
21631 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21632 s//\1/
21633 q
21634 }
21635 /^X\(\/\/\)[^/].*/{
21636 s//\1/
21637 q
21638 }
21639 /^X\(\/\/\)$/{
21640 s//\1/
21641 q
21642 }
21643 /^X\(\/\).*/{
21644 s//\1/
21645 q
21646 }
21647 s/.*/./; q'`
21648 test -d "$as_dir" && break
21649 done
21650 test -z "$as_dirs" || eval "mkdir $as_dirs"
21651 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21652
21653
21654 } # as_fn_mkdir_p
21655 if mkdir -p . 2>/dev/null; then
21656 as_mkdir_p='mkdir -p "$as_dir"'
21657 else
21658 test -d ./-p && rmdir ./-p
21659 as_mkdir_p=false
21660 fi
21661
21662
21663 # as_fn_executable_p FILE
21664 # -----------------------
21665 # Test if FILE is an executable regular file.
21666 as_fn_executable_p ()
21667 {
21668 test -f "$1" && test -x "$1"
21669 } # as_fn_executable_p
21670 as_test_x='test -x'
21671 as_executable_p=as_fn_executable_p
21672
21673 # Sed expression to map a string onto a valid CPP name.
21674 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
21675 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
21676
21677 # Sed expression to map a string onto a valid variable name.
21678 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
21679 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
21680
21681
21682 exec 6>&1
21683 ## ----------------------------------- ##
21684 ## Main body of $CONFIG_STATUS script. ##
21685 ## ----------------------------------- ##
21686 _ASEOF
21687 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21688
21689 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21690 # Save the log message, to keep $0 and so on meaningful, and to
21691 # report actual input values of CONFIG_FILES etc. instead of their
21692 # values after options handling.
21693 ac_log="
21694 This file was extended by dump $as_me 0.4b55, which was
21695 generated by GNU Autoconf 2.72. Invocation command line was
21696
21697 CONFIG_FILES = $CONFIG_FILES
21698 CONFIG_HEADERS = $CONFIG_HEADERS
21699 CONFIG_LINKS = $CONFIG_LINKS
21700 CONFIG_COMMANDS = $CONFIG_COMMANDS
21701 $ $0 $@
21702
21703 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21704 "
21705
21706 _ACEOF
21707
21708 case $ac_config_files in *"
21709 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21710 esac
21711
21712 case $ac_config_headers in *"
21713 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21714 esac
21715
21716
21717 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21718 # Files that config.status was made for.
21719 config_files="$ac_config_files"
21720 config_headers="$ac_config_headers"
21721 config_commands="$ac_config_commands"
21722
21723 _ACEOF
21724
21725 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21726 ac_cs_usage="\
21727 '$as_me' instantiates files and other configuration actions
21728 from templates according to the current configuration. Unless the files
21729 and actions are specified as TAGs, all are instantiated by default.
21730
21731 Usage: $0 [OPTION]... [TAG]...
21732
21733 -h, --help print this help, then exit
21734 -V, --version print version number and configuration settings, then exit
21735 --config print configuration, then exit
21736 -q, --quiet, --silent
21737 do not print progress messages
21738 -d, --debug don't remove temporary files
21739 --recheck update $as_me by reconfiguring in the same conditions
21740 --file=FILE[:TEMPLATE]
21741 instantiate the configuration file FILE
21742 --header=FILE[:TEMPLATE]
21743 instantiate the configuration header FILE
21744
21745 Configuration files:
21746 $config_files
21747
21748 Configuration headers:
21749 $config_headers
21750
21751 Configuration commands:
21752 $config_commands
21753
21754 Report bugs to <https://dump.sourceforge.io>."
21755
21756 _ACEOF
21757 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
21758 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
21759 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21760 ac_cs_config='$ac_cs_config_escaped'
21761 ac_cs_version="\\
21762 dump config.status 0.4b55
21763 configured by $0, generated by GNU Autoconf 2.72,
21764 with options \\"\$ac_cs_config\\"
21765
21766 Copyright (C) 2023 Free Software Foundation, Inc.
21767 This config.status script is free software; the Free Software Foundation
21768 gives unlimited permission to copy, distribute and modify it."
21769
21770 ac_pwd='$ac_pwd'
21771 srcdir='$srcdir'
21772 INSTALL='$INSTALL'
21773 MKDIR_P='$MKDIR_P'
21774 AWK='$AWK'
21775 test -n "\$AWK" || AWK=awk
21776 _ACEOF
21777
21778 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21779 # The default lists apply if the user does not specify any file.
21780 ac_need_defaults=:
21781 while test $# != 0
21782 do
21783 case $1 in
21784 --*=?*)
21785 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21786 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21787 ac_shift=:
21788 ;;
21789 --*=)
21790 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21791 ac_optarg=
21792 ac_shift=:
21793 ;;
21794 *)
21795 ac_option=$1
21796 ac_optarg=$2
21797 ac_shift=shift
21798 ;;
21799 esac
21800
21801 case $ac_option in
21802 # Handling of the options.
21803 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21804 ac_cs_recheck=: ;;
21805 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21806 printf "%s\n" "$ac_cs_version"; exit ;;
21807 --config | --confi | --conf | --con | --co | --c )
21808 printf "%s\n" "$ac_cs_config"; exit ;;
21809 --debug | --debu | --deb | --de | --d | -d )
21810 debug=: ;;
21811 --file | --fil | --fi | --f )
21812 $ac_shift
21813 case $ac_optarg in
21814 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21815 '') as_fn_error $? "missing file argument" ;;
21816 esac
21817 as_fn_append CONFIG_FILES " '$ac_optarg'"
21818 ac_need_defaults=false;;
21819 --header | --heade | --head | --hea )
21820 $ac_shift
21821 case $ac_optarg in
21822 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21823 esac
21824 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21825 ac_need_defaults=false;;
21826 --he | --h)
21827 # Conflict between --help and --header
21828 as_fn_error $? "ambiguous option: '$1'
21829 Try '$0 --help' for more information.";;
21830 --help | --hel | -h )
21831 printf "%s\n" "$ac_cs_usage"; exit ;;
21832 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21833 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21834 ac_cs_silent=: ;;
21835
21836 # This is an error.
21837 -*) as_fn_error $? "unrecognized option: '$1'
21838 Try '$0 --help' for more information." ;;
21839
21840 *) as_fn_append ac_config_targets " $1"
21841 ac_need_defaults=false ;;
21842
21843 esac
21844 shift
21845 done
21846
21847 ac_configure_extra_args=
21848
21849 if $ac_cs_silent; then
21850 exec 6>/dev/null
21851 ac_configure_extra_args="$ac_configure_extra_args --silent"
21852 fi
21853
21854 _ACEOF
21855 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21856 if \$ac_cs_recheck; then
21857 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21858 shift
21859 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
21860 CONFIG_SHELL='$SHELL'
21861 export CONFIG_SHELL
21862 exec "\$@"
21863 fi
21864
21865 _ACEOF
21866 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21867 exec 5>>config.log
21868 {
21869 echo
21870 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21871 ## Running $as_me. ##
21872 _ASBOX
21873 printf "%s\n" "$ac_log"
21874 } >&5
21875
21876 _ACEOF
21877 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21878 #
21879 # INIT-COMMANDS
21880 #
21881 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
21882
21883
21884 # The HP-UX ksh and POSIX shell print the target directory to stdout
21885 # if CDPATH is set.
21886 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21887
21888 sed_quote_subst='$sed_quote_subst'
21889 double_quote_subst='$double_quote_subst'
21890 delay_variable_subst='$delay_variable_subst'
21891 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21892 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21893 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21894 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21895 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21896 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21897 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
21898 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21899 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21900 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
21901 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21902 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21903 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21904 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21905 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21906 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21907 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21908 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21909 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21910 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21911 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21912 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21913 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21914 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21915 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21916 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21917 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21918 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21919 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21920 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21921 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21922 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21923 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21924 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21925 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
21926 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21927 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21928 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21929 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21930 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21931 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21932 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21933 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21934 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
21935 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21936 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21937 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21938 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21939 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21940 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21941 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21942 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21943 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21944 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21945 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21946 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21947 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21948 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21949 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
21950 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21951 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"`'
21952 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
21953 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21954 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21955 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
21956 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21957 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21958 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21959 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21960 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21961 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21962 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21963 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21964 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21965 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21966 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21967 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21968 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21969 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21970 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21971 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21972 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21973 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21974 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21975 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21976 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21977 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21978 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21979 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21980 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21981 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21982 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21983 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21984 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21985 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21986 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21987 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21988 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21989 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21990 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21991 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21992 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21993 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21994 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21995 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21996 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21997 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21998 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21999 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22000 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22001 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22002 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22003 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22004 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22005 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
22006 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22007 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22008 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22009 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22010 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22011 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22012 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22013 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22014 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22015 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22016 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22017 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22018 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22019 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
22020 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
22021 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
22022 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22023 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22024 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22025 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22026 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22027 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22028 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
22029 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
22030 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
22031 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
22032 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
22033 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
22034 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
22035 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
22036 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22037 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22038 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
22039 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
22040 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
22041 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
22042 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
22043 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
22044 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
22045 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
22046 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
22047 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22048 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22049 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
22050 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22051 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22052 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22053 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22054 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22055 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22056 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
22057 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
22058 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
22059 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22060 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
22061 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
22062 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
22063 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
22064 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
22065 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
22066 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
22067 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
22068 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
22069 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22070 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
22071 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
22072 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22073 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22074 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
22075 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
22076 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
22077 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
22078 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
22079 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
22080 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
22081 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
22082
22083 LTCC='$LTCC'
22084 LTCFLAGS='$LTCFLAGS'
22085 compiler='$compiler_DEFAULT'
22086
22087 # A function that is used when there is no print builtin or printf.
22088 func_fallback_echo ()
22089 {
22090 eval 'cat <<_LTECHO_EOF
22091 \$1
22092 _LTECHO_EOF'
22093 }
22094
22095 # Quote evaled strings.
22096 for var in SHELL \
22097 ECHO \
22098 PATH_SEPARATOR \
22099 SED \
22100 GREP \
22101 EGREP \
22102 FGREP \
22103 LD \
22104 NM \
22105 LN_S \
22106 lt_SP2NL \
22107 lt_NL2SP \
22108 reload_flag \
22109 FILECMD \
22110 OBJDUMP \
22111 deplibs_check_method \
22112 file_magic_cmd \
22113 file_magic_glob \
22114 want_nocaseglob \
22115 DLLTOOL \
22116 sharedlib_from_linklib_cmd \
22117 AR \
22118 archiver_list_spec \
22119 STRIP \
22120 RANLIB \
22121 CC \
22122 CFLAGS \
22123 compiler \
22124 lt_cv_sys_global_symbol_pipe \
22125 lt_cv_sys_global_symbol_to_cdecl \
22126 lt_cv_sys_global_symbol_to_import \
22127 lt_cv_sys_global_symbol_to_c_name_address \
22128 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22129 lt_cv_nm_interface \
22130 nm_file_list_spec \
22131 lt_cv_truncate_bin \
22132 lt_prog_compiler_no_builtin_flag \
22133 lt_prog_compiler_pic \
22134 lt_prog_compiler_wl \
22135 lt_prog_compiler_static \
22136 lt_cv_prog_compiler_c_o \
22137 need_locks \
22138 MANIFEST_TOOL \
22139 DSYMUTIL \
22140 NMEDIT \
22141 LIPO \
22142 OTOOL \
22143 OTOOL64 \
22144 shrext_cmds \
22145 export_dynamic_flag_spec \
22146 whole_archive_flag_spec \
22147 compiler_needs_object \
22148 with_gnu_ld \
22149 allow_undefined_flag \
22150 no_undefined_flag \
22151 hardcode_libdir_flag_spec \
22152 hardcode_libdir_separator \
22153 exclude_expsyms \
22154 include_expsyms \
22155 file_list_spec \
22156 variables_saved_for_relink \
22157 libname_spec \
22158 library_names_spec \
22159 soname_spec \
22160 install_override_mode \
22161 finish_eval \
22162 old_striplib \
22163 striplib \
22164 compiler_lib_search_dirs \
22165 predep_objects \
22166 postdep_objects \
22167 predeps \
22168 postdeps \
22169 compiler_lib_search_path \
22170 LD_CXX \
22171 reload_flag_CXX \
22172 compiler_CXX \
22173 lt_prog_compiler_no_builtin_flag_CXX \
22174 lt_prog_compiler_pic_CXX \
22175 lt_prog_compiler_wl_CXX \
22176 lt_prog_compiler_static_CXX \
22177 lt_cv_prog_compiler_c_o_CXX \
22178 export_dynamic_flag_spec_CXX \
22179 whole_archive_flag_spec_CXX \
22180 compiler_needs_object_CXX \
22181 with_gnu_ld_CXX \
22182 allow_undefined_flag_CXX \
22183 no_undefined_flag_CXX \
22184 hardcode_libdir_flag_spec_CXX \
22185 hardcode_libdir_separator_CXX \
22186 exclude_expsyms_CXX \
22187 include_expsyms_CXX \
22188 file_list_spec_CXX \
22189 compiler_lib_search_dirs_CXX \
22190 predep_objects_CXX \
22191 postdep_objects_CXX \
22192 predeps_CXX \
22193 postdeps_CXX \
22194 compiler_lib_search_path_CXX; do
22195 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22196 *[\\\\\\\`\\"\\\$]*)
22197 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22198 ;;
22199 *)
22200 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22201 ;;
22202 esac
22203 done
22204
22205 # Double-quote double-evaled strings.
22206 for var in reload_cmds \
22207 old_postinstall_cmds \
22208 old_postuninstall_cmds \
22209 old_archive_cmds \
22210 extract_expsyms_cmds \
22211 old_archive_from_new_cmds \
22212 old_archive_from_expsyms_cmds \
22213 archive_cmds \
22214 archive_expsym_cmds \
22215 module_cmds \
22216 module_expsym_cmds \
22217 export_symbols_cmds \
22218 prelink_cmds \
22219 postlink_cmds \
22220 postinstall_cmds \
22221 postuninstall_cmds \
22222 finish_cmds \
22223 sys_lib_search_path_spec \
22224 configure_time_dlsearch_path \
22225 configure_time_lt_sys_library_path \
22226 reload_cmds_CXX \
22227 old_archive_cmds_CXX \
22228 old_archive_from_new_cmds_CXX \
22229 old_archive_from_expsyms_cmds_CXX \
22230 archive_cmds_CXX \
22231 archive_expsym_cmds_CXX \
22232 module_cmds_CXX \
22233 module_expsym_cmds_CXX \
22234 export_symbols_cmds_CXX \
22235 prelink_cmds_CXX \
22236 postlink_cmds_CXX; do
22237 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22238 *[\\\\\\\`\\"\\\$]*)
22239 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22240 ;;
22241 *)
22242 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22243 ;;
22244 esac
22245 done
22246
22247 ac_aux_dir='$ac_aux_dir'
22248
22249 # See if we are running on zsh, and set the options that allow our
22250 # commands through without removal of \ escapes INIT.
22251 if test -n "\${ZSH_VERSION+set}"; then
22252 setopt NO_GLOB_SUBST
22253 fi
22254
22255
22256 PACKAGE='$PACKAGE'
22257 VERSION='$VERSION'
22258 RM='$RM'
22259 ofile='$ofile'
22260
22261
22262
22263
22264
22265
22266 _ACEOF
22267
22268 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22269
22270 # Handling of arguments.
22271 for ac_config_target in $ac_config_targets
22272 do
22273 case $ac_config_target in
22274 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22275 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22276 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
22277 "dump.lsm") CONFIG_FILES="$CONFIG_FILES dump.lsm" ;;
22278 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22279 "common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;;
22280 "compat/lib/Makefile") CONFIG_FILES="$CONFIG_FILES compat/lib/Makefile" ;;
22281 "dump/Makefile") CONFIG_FILES="$CONFIG_FILES dump/Makefile" ;;
22282 "restore/Makefile") CONFIG_FILES="$CONFIG_FILES restore/Makefile" ;;
22283 "rmt/Makefile") CONFIG_FILES="$CONFIG_FILES rmt/Makefile" ;;
22284 "faketape/Makefile") CONFIG_FILES="$CONFIG_FILES faketape/Makefile" ;;
22285
22286 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
22287 esac
22288 done
22289
22290
22291 # If the user did not use the arguments to specify the items to instantiate,
22292 # then the envvar interface is used. Set only those that are not.
22293 # We use the long form for the default assignment because of an extremely
22294 # bizarre bug on SunOS 4.1.3.
22295 if $ac_need_defaults; then
22296 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
22297 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
22298 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
22299 fi
22300
22301 # Have a temporary directory for convenience. Make it in the build tree
22302 # simply because there is no reason against having it here, and in addition,
22303 # creating and moving files from /tmp can sometimes cause problems.
22304 # Hook for its removal unless debugging.
22305 # Note that there is a small window in which the directory will not be cleaned:
22306 # after its creation but before its name has been assigned to '$tmp'.
22307 $debug ||
22308 {
22309 tmp= ac_tmp=
22310 trap 'exit_status=$?
22311 : "${ac_tmp:=$tmp}"
22312 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
22313 ' 0
22314 trap 'as_fn_exit 1' 1 2 13 15
22315 }
22316 # Create a (secure) tmp directory for tmp files.
22317
22318 {
22319 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22320 test -d "$tmp"
22321 } ||
22322 {
22323 tmp=./conf$$-$RANDOM
22324 (umask 077 && mkdir "$tmp")
22325 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
22326 ac_tmp=$tmp
22327
22328 # Set up the scripts for CONFIG_FILES section.
22329 # No need to generate them if there are no CONFIG_FILES.
22330 # This happens for instance with './config.status config.h'.
22331 if test -n "$CONFIG_FILES"; then
22332
22333
22334 ac_cr=`echo X | tr X '\015'`
22335 # On cygwin, bash can eat \r inside `` if the user requested igncr.
22336 # But we know of no other shell where ac_cr would be empty at this
22337 # point, so we can use a bashism as a fallback.
22338 if test "x$ac_cr" = x; then
22339 eval ac_cr=\$\'\\r\'
22340 fi
22341 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22342 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22343 ac_cs_awk_cr='\\r'
22344 else
22345 ac_cs_awk_cr=$ac_cr
22346 fi
22347
22348 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
22349 _ACEOF
22350
22351
22352 {
22353 echo "cat >conf$$subs.awk <<_ACEOF" &&
22354 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22355 echo "_ACEOF"
22356 } >conf$$subs.sh ||
22357 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22358 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
22359 ac_delim='%!_!# '
22360 for ac_last_try in false false false false false :; do
22361 . ./conf$$subs.sh ||
22362 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22363
22364 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22365 if test $ac_delim_n = $ac_delim_num; then
22366 break
22367 elif $ac_last_try; then
22368 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22369 else
22370 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22371 fi
22372 done
22373 rm -f conf$$subs.sh
22374
22375 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22376 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
22377 _ACEOF
22378 sed -n '
22379 h
22380 s/^/S["/; s/!.*/"]=/
22381 p
22382 g
22383 s/^[^!]*!//
22384 :repl
22385 t repl
22386 s/'"$ac_delim"'$//
22387 t delim
22388 :nl
22389 h
22390 s/\(.\{148\}\)..*/\1/
22391 t more1
22392 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22393 p
22394 n
22395 b repl
22396 :more1
22397 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22398 p
22399 g
22400 s/.\{148\}//
22401 t nl
22402 :delim
22403 h
22404 s/\(.\{148\}\)..*/\1/
22405 t more2
22406 s/["\\]/\\&/g; s/^/"/; s/$/"/
22407 p
22408 b
22409 :more2
22410 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22411 p
22412 g
22413 s/.\{148\}//
22414 t delim
22415 ' <conf$$subs.awk | sed '
22416 /^[^""]/{
22417 N
22418 s/\n//
22419 }
22420 ' >>$CONFIG_STATUS || ac_write_fail=1
22421 rm -f conf$$subs.awk
22422 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22423 _ACAWK
22424 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
22425 for (key in S) S_is_set[key] = 1
22426 FS = ""
22427
22428 }
22429 {
22430 line = $ 0
22431 nfields = split(line, field, "@")
22432 substed = 0
22433 len = length(field[1])
22434 for (i = 2; i < nfields; i++) {
22435 key = field[i]
22436 keylen = length(key)
22437 if (S_is_set[key]) {
22438 value = S[key]
22439 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22440 len += length(value) + length(field[++i])
22441 substed = 1
22442 } else
22443 len += 1 + keylen
22444 }
22445
22446 print line
22447 }
22448
22449 _ACAWK
22450 _ACEOF
22451 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22452 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22453 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22454 else
22455 cat
22456 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
22457 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22458 _ACEOF
22459
22460 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22461 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
22462 # trailing colons and then remove the whole line if VPATH becomes empty
22463 # (actually we leave an empty line to preserve line numbers).
22464 if test "x$srcdir" = x.; then
22465 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
22466 h
22467 s///
22468 s/^/:/
22469 s/[ ]*$/:/
22470 s/:\$(srcdir):/:/g
22471 s/:\${srcdir}:/:/g
22472 s/:@srcdir@:/:/g
22473 s/^:*//
22474 s/:*$//
22475 x
22476 s/\(=[ ]*\).*/\1/
22477 G
22478 s/\n//
22479 s/^[^=]*=[ ]*$//
22480 }'
22481 fi
22482
22483 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22484 fi # test -n "$CONFIG_FILES"
22485
22486 # Set up the scripts for CONFIG_HEADERS section.
22487 # No need to generate them if there are no CONFIG_HEADERS.
22488 # This happens for instance with './config.status Makefile'.
22489 if test -n "$CONFIG_HEADERS"; then
22490 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
22491 BEGIN {
22492 _ACEOF
22493
22494 # Transform confdefs.h into an awk script 'defines.awk', embedded as
22495 # here-document in config.status, that substitutes the proper values into
22496 # config.h.in to produce config.h.
22497
22498 # Create a delimiter string that does not exist in confdefs.h, to ease
22499 # handling of long lines.
22500 ac_delim='%!_!# '
22501 for ac_last_try in false false :; do
22502 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22503 if test -z "$ac_tt"; then
22504 break
22505 elif $ac_last_try; then
22506 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22507 else
22508 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22509 fi
22510 done
22511
22512 # For the awk script, D is an array of macro values keyed by name,
22513 # likewise P contains macro parameters if any. Preserve backslash
22514 # newline sequences.
22515
22516 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22517 sed -n '
22518 s/.\{148\}/&'"$ac_delim"'/g
22519 t rset
22520 :rset
22521 s/^[ ]*#[ ]*define[ ][ ]*/ /
22522 t def
22523 d
22524 :def
22525 s/\\$//
22526 t bsnl
22527 s/["\\]/\\&/g
22528 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22529 D["\1"]=" \3"/p
22530 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
22531 d
22532 :bsnl
22533 s/["\\]/\\&/g
22534 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22535 D["\1"]=" \3\\\\\\n"\\/p
22536 t cont
22537 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22538 t cont
22539 d
22540 :cont
22541 n
22542 s/.\{148\}/&'"$ac_delim"'/g
22543 t clear
22544 :clear
22545 s/\\$//
22546 t bsnlc
22547 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22548 d
22549 :bsnlc
22550 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22551 b cont
22552 ' <confdefs.h | sed '
22553 s/'"$ac_delim"'/"\\\
22554 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22555
22556 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22557 for (key in D) D_is_set[key] = 1
22558 FS = ""
22559 }
22560 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22561 line = \$ 0
22562 split(line, arg, " ")
22563 if (arg[1] == "#") {
22564 defundef = arg[2]
22565 mac1 = arg[3]
22566 } else {
22567 defundef = substr(arg[1], 2)
22568 mac1 = arg[2]
22569 }
22570 split(mac1, mac2, "(") #)
22571 macro = mac2[1]
22572 prefix = substr(line, 1, index(line, defundef) - 1)
22573 if (D_is_set[macro]) {
22574 # Preserve the white space surrounding the "#".
22575 print prefix "define", macro P[macro] D[macro]
22576 next
22577 } else {
22578 # Replace #undef with comments. This is necessary, for example,
22579 # in the case of _POSIX_SOURCE, which is predefined and required
22580 # on some systems where configure will not decide to define it.
22581 if (defundef == "undef") {
22582 print "/*", prefix defundef, macro, "*/"
22583 next
22584 }
22585 }
22586 }
22587 { print }
22588 _ACAWK
22589 _ACEOF
22590 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22591 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22592 fi # test -n "$CONFIG_HEADERS"
22593
22594
22595 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
22596 shift
22597 for ac_tag
22598 do
22599 case $ac_tag in
22600 :[FHLC]) ac_mode=$ac_tag; continue;;
22601 esac
22602 case $ac_mode$ac_tag in
22603 :[FHL]*:*);;
22604 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
22605 :[FH]-) ac_tag=-:-;;
22606 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22607 esac
22608 ac_save_IFS=$IFS
22609 IFS=:
22610 set x $ac_tag
22611 IFS=$ac_save_IFS
22612 shift
22613 ac_file=$1
22614 shift
22615
22616 case $ac_mode in
22617 :L) ac_source=$1;;
22618 :[FH])
22619 ac_file_inputs=
22620 for ac_f
22621 do
22622 case $ac_f in
22623 -) ac_f="$ac_tmp/stdin";;
22624 *) # Look for the file first in the build tree, then in the source tree
22625 # (if the path is not absolute). The absolute path cannot be DOS-style,
22626 # because $ac_f cannot contain ':'.
22627 test -f "$ac_f" ||
22628 case $ac_f in
22629 [\\/$]*) false;;
22630 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22631 esac ||
22632 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
22633 esac
22634 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22635 as_fn_append ac_file_inputs " '$ac_f'"
22636 done
22637
22638 # Let's still pretend it is 'configure' which instantiates (i.e., don't
22639 # use $as_me), people would be surprised to read:
22640 # /* config.h. Generated by config.status. */
22641 configure_input='Generated from '`
22642 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22643 `' by configure.'
22644 if test x"$ac_file" != x-; then
22645 configure_input="$ac_file. $configure_input"
22646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22647 printf "%s\n" "$as_me: creating $ac_file" >&6;}
22648 fi
22649 # Neutralize special characters interpreted by sed in replacement strings.
22650 case $configure_input in #(
22651 *\&* | *\|* | *\\* )
22652 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
22653 sed 's/[\\\\&|]/\\\\&/g'`;; #(
22654 *) ac_sed_conf_input=$configure_input;;
22655 esac
22656
22657 case $ac_tag in
22658 *:-:* | *:-) cat >"$ac_tmp/stdin" \
22659 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22660 esac
22661 ;;
22662 esac
22663
22664 ac_dir=`$as_dirname -- "$ac_file" ||
22665 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22666 X"$ac_file" : 'X\(//\)[^/]' \| \
22667 X"$ac_file" : 'X\(//\)$' \| \
22668 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22669 printf "%s\n" X"$ac_file" |
22670 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22671 s//\1/
22672 q
22673 }
22674 /^X\(\/\/\)[^/].*/{
22675 s//\1/
22676 q
22677 }
22678 /^X\(\/\/\)$/{
22679 s//\1/
22680 q
22681 }
22682 /^X\(\/\).*/{
22683 s//\1/
22684 q
22685 }
22686 s/.*/./; q'`
22687 as_dir="$ac_dir"; as_fn_mkdir_p
22688 ac_builddir=.
22689
22690 case "$ac_dir" in
22691 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22692 *)
22693 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
22694 # A ".." for each directory in $ac_dir_suffix.
22695 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22696 case $ac_top_builddir_sub in
22697 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22698 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22699 esac ;;
22700 esac
22701 ac_abs_top_builddir=$ac_pwd
22702 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22703 # for backward compatibility:
22704 ac_top_builddir=$ac_top_build_prefix
22705
22706 case $srcdir in
22707 .) # We are building in place.
22708 ac_srcdir=.
22709 ac_top_srcdir=$ac_top_builddir_sub
22710 ac_abs_top_srcdir=$ac_pwd ;;
22711 [\\/]* | ?:[\\/]* ) # Absolute name.
22712 ac_srcdir=$srcdir$ac_dir_suffix;
22713 ac_top_srcdir=$srcdir
22714 ac_abs_top_srcdir=$srcdir ;;
22715 *) # Relative name.
22716 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22717 ac_top_srcdir=$ac_top_build_prefix$srcdir
22718 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22719 esac
22720 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22721
22722
22723 case $ac_mode in
22724 :F)
22725 #
22726 # CONFIG_FILE
22727 #
22728
22729 case $INSTALL in
22730 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22731 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22732 esac
22733 ac_MKDIR_P=$MKDIR_P
22734 case $MKDIR_P in
22735 [\\/$]* | ?:[\\/]* ) ;;
22736 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22737 esac
22738 _ACEOF
22739
22740 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22741 # If the template does not know about datarootdir, expand it.
22742 # FIXME: This hack should be removed a few years after 2.60.
22743 ac_datarootdir_hack=; ac_datarootdir_seen=
22744 ac_sed_dataroot='
22745 /datarootdir/ {
22746 p
22747 q
22748 }
22749 /@datadir@/p
22750 /@docdir@/p
22751 /@infodir@/p
22752 /@localedir@/p
22753 /@mandir@/p'
22754 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22755 *datarootdir*) ac_datarootdir_seen=yes;;
22756 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22758 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22759 _ACEOF
22760 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22761 ac_datarootdir_hack='
22762 s&@datadir@&$datadir&g
22763 s&@docdir@&$docdir&g
22764 s&@infodir@&$infodir&g
22765 s&@localedir@&$localedir&g
22766 s&@mandir@&$mandir&g
22767 s&\\\${datarootdir}&$datarootdir&g' ;;
22768 esac
22769 _ACEOF
22770
22771 # Neutralize VPATH when '$srcdir' = '.'.
22772 # Shell code in configure.ac might set extrasub.
22773 # FIXME: do we really want to maintain this feature?
22774 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22775 ac_sed_extra="$ac_vpsub
22776 $extrasub
22777 _ACEOF
22778 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22779 :t
22780 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22781 s|@configure_input@|$ac_sed_conf_input|;t t
22782 s&@top_builddir@&$ac_top_builddir_sub&;t t
22783 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22784 s&@srcdir@&$ac_srcdir&;t t
22785 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22786 s&@top_srcdir@&$ac_top_srcdir&;t t
22787 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22788 s&@builddir@&$ac_builddir&;t t
22789 s&@abs_builddir@&$ac_abs_builddir&;t t
22790 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22791 s&@INSTALL@&$ac_INSTALL&;t t
22792 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22793 $ac_datarootdir_hack
22794 "
22795 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22796 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22797
22798 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22799 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22800 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
22801 "$ac_tmp/out"`; test -z "$ac_out"; } &&
22802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
22803 which seems to be undefined. Please make sure it is defined" >&5
22804 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
22805 which seems to be undefined. Please make sure it is defined" >&2;}
22806
22807 rm -f "$ac_tmp/stdin"
22808 case $ac_file in
22809 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22810 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22811 esac \
22812 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22813 ;;
22814 :H)
22815 #
22816 # CONFIG_HEADER
22817 #
22818 if test x"$ac_file" != x-; then
22819 {
22820 printf "%s\n" "/* $configure_input */" >&1 \
22821 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22822 } >"$ac_tmp/config.h" \
22823 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22824 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22826 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
22827 else
22828 rm -f "$ac_file"
22829 mv "$ac_tmp/config.h" "$ac_file" \
22830 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22831 fi
22832 else
22833 printf "%s\n" "/* $configure_input */" >&1 \
22834 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22835 || as_fn_error $? "could not create -" "$LINENO" 5
22836 fi
22837 # Compute "$ac_file"'s index in $config_headers.
22838 _am_arg="$ac_file"
22839 _am_stamp_count=1
22840 for _am_header in $config_headers :; do
22841 case $_am_header in
22842 $_am_arg | $_am_arg:* )
22843 break ;;
22844 * )
22845 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22846 esac
22847 done
22848 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22849 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22850 X"$_am_arg" : 'X\(//\)[^/]' \| \
22851 X"$_am_arg" : 'X\(//\)$' \| \
22852 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22853 printf "%s\n" X"$_am_arg" |
22854 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22855 s//\1/
22856 q
22857 }
22858 /^X\(\/\/\)[^/].*/{
22859 s//\1/
22860 q
22861 }
22862 /^X\(\/\/\)$/{
22863 s//\1/
22864 q
22865 }
22866 /^X\(\/\).*/{
22867 s//\1/
22868 q
22869 }
22870 s/.*/./; q'`/stamp-h$_am_stamp_count
22871 ;;
22872
22873 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22874 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
22875 ;;
22876 esac
22877
22878
22879 case $ac_file$ac_mode in
22880 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22881 # Older Autoconf quotes --file arguments for eval, but not when files
22882 # are listed without --file. Let's play safe and only enable the eval
22883 # if we detect the quoting.
22884 # TODO: see whether this extra hack can be removed once we start
22885 # requiring Autoconf 2.70 or later.
22886 case $CONFIG_FILES in #(
22887 *\'*) :
22888 eval set x "$CONFIG_FILES" ;; #(
22889 *) :
22890 set x $CONFIG_FILES ;; #(
22891 *) :
22892 ;;
22893 esac
22894 shift
22895 # Used to flag and report bootstrapping failures.
22896 am_rc=0
22897 for am_mf
22898 do
22899 # Strip MF so we end up with the name of the file.
22900 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
22901 # Check whether this is an Automake generated Makefile which includes
22902 # dependency-tracking related rules and includes.
22903 # Grep'ing the whole file directly is not great: AIX grep has a line
22904 # limit of 2048, but all sed's we know have understand at least 4000.
22905 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
22906 || continue
22907 am_dirpart=`$as_dirname -- "$am_mf" ||
22908 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22909 X"$am_mf" : 'X\(//\)[^/]' \| \
22910 X"$am_mf" : 'X\(//\)$' \| \
22911 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22912 printf "%s\n" X"$am_mf" |
22913 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22914 s//\1/
22915 q
22916 }
22917 /^X\(\/\/\)[^/].*/{
22918 s//\1/
22919 q
22920 }
22921 /^X\(\/\/\)$/{
22922 s//\1/
22923 q
22924 }
22925 /^X\(\/\).*/{
22926 s//\1/
22927 q
22928 }
22929 s/.*/./; q'`
22930 am_filepart=`$as_basename -- "$am_mf" ||
22931 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
22932 X"$am_mf" : 'X\(//\)$' \| \
22933 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22934 printf "%s\n" X/"$am_mf" |
22935 sed '/^.*\/\([^/][^/]*\)\/*$/{
22936 s//\1/
22937 q
22938 }
22939 /^X\/\(\/\/\)$/{
22940 s//\1/
22941 q
22942 }
22943 /^X\/\(\/\).*/{
22944 s//\1/
22945 q
22946 }
22947 s/.*/./; q'`
22948 { echo "$as_me:$LINENO: cd "$am_dirpart" \
22949 && sed -e '/# am--include-marker/d' "$am_filepart" \
22950 | $MAKE -f - am--depfiles" >&5
22951 (cd "$am_dirpart" \
22952 && sed -e '/# am--include-marker/d' "$am_filepart" \
22953 | $MAKE -f - am--depfiles) >&5 2>&5
22954 ac_status=$?
22955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22956 (exit $ac_status); } || am_rc=$?
22957 done
22958 if test $am_rc -ne 0; then
22959 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
22960 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
22961 as_fn_error $? "Something went wrong bootstrapping makefile fragments
22962 for automatic dependency tracking. If GNU make was not used, consider
22963 re-running the configure script with MAKE=\"gmake\" (or whatever is
22964 necessary). You can also try re-running configure with the
22965 '--disable-dependency-tracking' option to at least be able to build
22966 the package (albeit without support for automatic dependency tracking).
22967 See 'config.log' for more details" "$LINENO" 5; }
22968 fi
22969 { am_dirpart=; unset am_dirpart;}
22970 { am_filepart=; unset am_filepart;}
22971 { am_mf=; unset am_mf;}
22972 { am_rc=; unset am_rc;}
22973 rm -f conftest-deps.mk
22974 }
22975 ;;
22976 "libtool":C)
22977
22978 # See if we are running on zsh, and set the options that allow our
22979 # commands through without removal of \ escapes.
22980 if test -n "${ZSH_VERSION+set}"; then
22981 setopt NO_GLOB_SUBST
22982 fi
22983
22984 cfgfile=${ofile}T
22985 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22986 $RM "$cfgfile"
22987
22988 cat <<_LT_EOF >> "$cfgfile"
22989 #! $SHELL
22990 # Generated automatically by $as_me ($PACKAGE) $VERSION
22991 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
22992
22993 # Provide generalized library-building support services.
22994 # Written by Gordon Matzigkeit, 1996
22995
22996 # Copyright (C) 2024 Free Software Foundation, Inc.
22997 # This is free software; see the source for copying conditions. There is NO
22998 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
22999
23000 # GNU Libtool is free software; you can redistribute it and/or modify
23001 # it under the terms of the GNU General Public License as published by
23002 # the Free Software Foundation; either version 2 of the License, or
23003 # (at your option) any later version.
23004 #
23005 # As a special exception to the GNU General Public License, if you
23006 # distribute this file as part of a program or library that is built
23007 # using GNU Libtool, you may include this file under the same
23008 # distribution terms that you use for the rest of that program.
23009 #
23010 # GNU Libtool is distributed in the hope that it will be useful, but
23011 # WITHOUT ANY WARRANTY; without even the implied warranty of
23012 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23013 # GNU General Public License for more details.
23014 #
23015 # You should have received a copy of the GNU General Public License
23016 # along with this program. If not, see <http://www.gnu.org/licenses/>.
23017
23018
23019 # The names of the tagged configurations supported by this script.
23020 available_tags='CXX '
23021
23022 # Configured defaults for sys_lib_dlsearch_path munging.
23023 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
23024
23025 # ### BEGIN LIBTOOL CONFIG
23026
23027 # Which release of libtool.m4 was used?
23028 macro_version=$macro_version
23029 macro_revision=$macro_revision
23030
23031 # Whether or not to build shared libraries.
23032 build_libtool_libs=$enable_shared
23033
23034 # Whether or not to build static libraries.
23035 build_old_libs=$enable_static
23036
23037 # What type of objects to build.
23038 pic_mode=$pic_mode
23039
23040 # Whether or not to optimize for fast installation.
23041 fast_install=$enable_fast_install
23042
23043 # Shared archive member basename,for filename based shared library versioning on AIX.
23044 shared_archive_member_spec=$shared_archive_member_spec
23045
23046 # Shell to use when invoking shell scripts.
23047 SHELL=$lt_SHELL
23048
23049 # An echo program that protects backslashes.
23050 ECHO=$lt_ECHO
23051
23052 # The PATH separator for the build system.
23053 PATH_SEPARATOR=$lt_PATH_SEPARATOR
23054
23055 # The host system.
23056 host_alias=$host_alias
23057 host=$host
23058 host_os=$host_os
23059
23060 # The build system.
23061 build_alias=$build_alias
23062 build=$build
23063 build_os=$build_os
23064
23065 # A sed program that does not truncate output.
23066 SED=$lt_SED
23067
23068 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
23069 Xsed="\$SED -e 1s/^X//"
23070
23071 # A grep program that handles long lines.
23072 GREP=$lt_GREP
23073
23074 # An ERE matcher.
23075 EGREP=$lt_EGREP
23076
23077 # A literal string matcher.
23078 FGREP=$lt_FGREP
23079
23080 # A BSD- or MS-compatible name lister.
23081 NM=$lt_NM
23082
23083 # Whether we need soft or hard links.
23084 LN_S=$lt_LN_S
23085
23086 # What is the maximum length of a command?
23087 max_cmd_len=$max_cmd_len
23088
23089 # Object file suffix (normally "o").
23090 objext=$ac_objext
23091
23092 # Executable file suffix (normally "").
23093 exeext=$exeext
23094
23095 # whether the shell understands "unset".
23096 lt_unset=$lt_unset
23097
23098 # turn spaces into newlines.
23099 SP2NL=$lt_lt_SP2NL
23100
23101 # turn newlines into spaces.
23102 NL2SP=$lt_lt_NL2SP
23103
23104 # convert \$build file names to \$host format.
23105 to_host_file_cmd=$lt_cv_to_host_file_cmd
23106
23107 # convert \$build files to toolchain format.
23108 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
23109
23110 # A file(cmd) program that detects file types.
23111 FILECMD=$lt_FILECMD
23112
23113 # An object symbol dumper.
23114 OBJDUMP=$lt_OBJDUMP
23115
23116 # Method to check whether dependent libraries are shared objects.
23117 deplibs_check_method=$lt_deplibs_check_method
23118
23119 # Command to use when deplibs_check_method = "file_magic".
23120 file_magic_cmd=$lt_file_magic_cmd
23121
23122 # How to find potential files when deplibs_check_method = "file_magic".
23123 file_magic_glob=$lt_file_magic_glob
23124
23125 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23126 want_nocaseglob=$lt_want_nocaseglob
23127
23128 # DLL creation program.
23129 DLLTOOL=$lt_DLLTOOL
23130
23131 # Command to associate shared and link libraries.
23132 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23133
23134 # The archiver.
23135 AR=$lt_AR
23136
23137 # Flags to create an archive (by configure).
23138 lt_ar_flags=$lt_ar_flags
23139
23140 # Flags to create an archive.
23141 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
23142
23143 # How to feed a file listing to the archiver.
23144 archiver_list_spec=$lt_archiver_list_spec
23145
23146 # A symbol stripping program.
23147 STRIP=$lt_STRIP
23148
23149 # Commands used to install an old-style archive.
23150 RANLIB=$lt_RANLIB
23151 old_postinstall_cmds=$lt_old_postinstall_cmds
23152 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23153
23154 # Whether to use a lock for old archive extraction.
23155 lock_old_archive_extraction=$lock_old_archive_extraction
23156
23157 # A C compiler.
23158 LTCC=$lt_CC
23159
23160 # LTCC compiler flags.
23161 LTCFLAGS=$lt_CFLAGS
23162
23163 # Take the output of nm and produce a listing of raw symbols and C names.
23164 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23165
23166 # Transform the output of nm in a proper C declaration.
23167 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23168
23169 # Transform the output of nm into a list of symbols to manually relocate.
23170 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
23171
23172 # Transform the output of nm in a C name address pair.
23173 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23174
23175 # Transform the output of nm in a C name address pair when lib prefix is needed.
23176 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23177
23178 # The name lister interface.
23179 nm_interface=$lt_lt_cv_nm_interface
23180
23181 # Specify filename containing input files for \$NM.
23182 nm_file_list_spec=$lt_nm_file_list_spec
23183
23184 # The root where to search for dependent libraries,and where our libraries should be installed.
23185 lt_sysroot=$lt_sysroot
23186
23187 # Command to truncate a binary pipe.
23188 lt_truncate_bin=$lt_lt_cv_truncate_bin
23189
23190 # The name of the directory that contains temporary libtool files.
23191 objdir=$objdir
23192
23193 # Used to examine libraries when file_magic_cmd begins with "file".
23194 MAGIC_CMD=$MAGIC_CMD
23195
23196 # Must we lock files when doing compilation?
23197 need_locks=$lt_need_locks
23198
23199 # Manifest tool.
23200 MANIFEST_TOOL=$lt_MANIFEST_TOOL
23201
23202 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23203 DSYMUTIL=$lt_DSYMUTIL
23204
23205 # Tool to change global to local symbols on Mac OS X.
23206 NMEDIT=$lt_NMEDIT
23207
23208 # Tool to manipulate fat objects and archives on Mac OS X.
23209 LIPO=$lt_LIPO
23210
23211 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
23212 OTOOL=$lt_OTOOL
23213
23214 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23215 OTOOL64=$lt_OTOOL64
23216
23217 # Old archive suffix (normally "a").
23218 libext=$libext
23219
23220 # Shared library suffix (normally ".so").
23221 shrext_cmds=$lt_shrext_cmds
23222
23223 # The commands to extract the exported symbol list from a shared archive.
23224 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23225
23226 # Variables whose values should be saved in libtool wrapper scripts and
23227 # restored at link time.
23228 variables_saved_for_relink=$lt_variables_saved_for_relink
23229
23230 # Do we need the "lib" prefix for modules?
23231 need_lib_prefix=$need_lib_prefix
23232
23233 # Do we need a version for libraries?
23234 need_version=$need_version
23235
23236 # Library versioning type.
23237 version_type=$version_type
23238
23239 # Shared library runtime path variable.
23240 runpath_var=$runpath_var
23241
23242 # Shared library path variable.
23243 shlibpath_var=$shlibpath_var
23244
23245 # Is shlibpath searched before the hard-coded library search path?
23246 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23247
23248 # Format of library name prefix.
23249 libname_spec=$lt_libname_spec
23250
23251 # List of archive names. First name is the real one, the rest are links.
23252 # The last name is the one that the linker finds with -lNAME
23253 library_names_spec=$lt_library_names_spec
23254
23255 # The coded name of the library, if different from the real name.
23256 soname_spec=$lt_soname_spec
23257
23258 # Permission mode override for installation of shared libraries.
23259 install_override_mode=$lt_install_override_mode
23260
23261 # Command to use after installation of a shared archive.
23262 postinstall_cmds=$lt_postinstall_cmds
23263
23264 # Command to use after uninstallation of a shared archive.
23265 postuninstall_cmds=$lt_postuninstall_cmds
23266
23267 # Commands used to finish a libtool library installation in a directory.
23268 finish_cmds=$lt_finish_cmds
23269
23270 # As "finish_cmds", except a single script fragment to be evaled but
23271 # not shown.
23272 finish_eval=$lt_finish_eval
23273
23274 # Whether we should hardcode library paths into libraries.
23275 hardcode_into_libs=$hardcode_into_libs
23276
23277 # Compile-time system search path for libraries.
23278 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23279
23280 # Detected run-time system search path for libraries.
23281 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
23282
23283 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
23284 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
23285
23286 # Whether dlopen is supported.
23287 dlopen_support=$enable_dlopen
23288
23289 # Whether dlopen of programs is supported.
23290 dlopen_self=$enable_dlopen_self
23291
23292 # Whether dlopen of statically linked programs is supported.
23293 dlopen_self_static=$enable_dlopen_self_static
23294
23295 # Commands to strip libraries.
23296 old_striplib=$lt_old_striplib
23297 striplib=$lt_striplib
23298
23299
23300 # The linker used to build libraries.
23301 LD=$lt_LD
23302
23303 # How to create reloadable object files.
23304 reload_flag=$lt_reload_flag
23305 reload_cmds=$lt_reload_cmds
23306
23307 # Commands used to build an old-style archive.
23308 old_archive_cmds=$lt_old_archive_cmds
23309
23310 # A language specific compiler.
23311 CC=$lt_compiler
23312
23313 # Is the compiler the GNU compiler?
23314 with_gcc=$GCC
23315
23316 # Compiler flag to turn off builtin functions.
23317 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23318
23319 # Additional compiler flags for building library objects.
23320 pic_flag=$lt_lt_prog_compiler_pic
23321
23322 # How to pass a linker flag through the compiler.
23323 wl=$lt_lt_prog_compiler_wl
23324
23325 # Compiler flag to prevent dynamic linking.
23326 link_static_flag=$lt_lt_prog_compiler_static
23327
23328 # Does compiler simultaneously support -c and -o options?
23329 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23330
23331 # Whether or not to add -lc for building shared libraries.
23332 build_libtool_need_lc=$archive_cmds_need_lc
23333
23334 # Whether or not to disallow shared libs when runtime libs are static.
23335 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23336
23337 # Compiler flag to allow reflexive dlopens.
23338 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23339
23340 # Compiler flag to generate shared objects directly from archives.
23341 whole_archive_flag_spec=$lt_whole_archive_flag_spec
23342
23343 # Whether the compiler copes with passing no objects directly.
23344 compiler_needs_object=$lt_compiler_needs_object
23345
23346 # Create an old-style archive from a shared archive.
23347 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23348
23349 # Create a temporary old-style archive to link instead of a shared archive.
23350 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23351
23352 # Commands used to build a shared archive.
23353 archive_cmds=$lt_archive_cmds
23354 archive_expsym_cmds=$lt_archive_expsym_cmds
23355
23356 # Commands used to build a loadable module if different from building
23357 # a shared archive.
23358 module_cmds=$lt_module_cmds
23359 module_expsym_cmds=$lt_module_expsym_cmds
23360
23361 # Whether we are building with GNU ld or not.
23362 with_gnu_ld=$lt_with_gnu_ld
23363
23364 # Flag that allows shared libraries with undefined symbols to be built.
23365 allow_undefined_flag=$lt_allow_undefined_flag
23366
23367 # Flag that enforces no undefined symbols.
23368 no_undefined_flag=$lt_no_undefined_flag
23369
23370 # Flag to hardcode \$libdir into a binary during linking.
23371 # This must work even if \$libdir does not exist
23372 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23373
23374 # Whether we need a single "-rpath" flag with a separated argument.
23375 hardcode_libdir_separator=$lt_hardcode_libdir_separator
23376
23377 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23378 # DIR into the resulting binary.
23379 hardcode_direct=$hardcode_direct
23380
23381 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23382 # DIR into the resulting binary and the resulting library dependency is
23383 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
23384 # library is relocated.
23385 hardcode_direct_absolute=$hardcode_direct_absolute
23386
23387 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23388 # into the resulting binary.
23389 hardcode_minus_L=$hardcode_minus_L
23390
23391 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23392 # into the resulting binary.
23393 hardcode_shlibpath_var=$hardcode_shlibpath_var
23394
23395 # Set to "yes" if building a shared library automatically hardcodes DIR
23396 # into the library and all subsequent libraries and executables linked
23397 # against it.
23398 hardcode_automatic=$hardcode_automatic
23399
23400 # Set to yes if linker adds runtime paths of dependent libraries
23401 # to runtime path list.
23402 inherit_rpath=$inherit_rpath
23403
23404 # Whether libtool must link a program against all its dependency libraries.
23405 link_all_deplibs=$link_all_deplibs
23406
23407 # Set to "yes" if exported symbols are required.
23408 always_export_symbols=$always_export_symbols
23409
23410 # The commands to list exported symbols.
23411 export_symbols_cmds=$lt_export_symbols_cmds
23412
23413 # Symbols that should not be listed in the preloaded symbols.
23414 exclude_expsyms=$lt_exclude_expsyms
23415
23416 # Symbols that must always be exported.
23417 include_expsyms=$lt_include_expsyms
23418
23419 # Commands necessary for linking programs (against libraries) with templates.
23420 prelink_cmds=$lt_prelink_cmds
23421
23422 # Commands necessary for finishing linking programs.
23423 postlink_cmds=$lt_postlink_cmds
23424
23425 # Specify filename containing input files.
23426 file_list_spec=$lt_file_list_spec
23427
23428 # How to hardcode a shared library path into an executable.
23429 hardcode_action=$hardcode_action
23430
23431 # The directories searched by this compiler when creating a shared library.
23432 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
23433
23434 # Dependencies to place before and after the objects being linked to
23435 # create a shared library.
23436 predep_objects=$lt_predep_objects
23437 postdep_objects=$lt_postdep_objects
23438 predeps=$lt_predeps
23439 postdeps=$lt_postdeps
23440
23441 # The library search path used internally by the compiler when linking
23442 # a shared library.
23443 compiler_lib_search_path=$lt_compiler_lib_search_path
23444
23445 # ### END LIBTOOL CONFIG
23446
23447 _LT_EOF
23448
23449 cat <<'_LT_EOF' >> "$cfgfile"
23450
23451 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
23452
23453 # func_munge_path_list VARIABLE PATH
23454 # -----------------------------------
23455 # VARIABLE is name of variable containing _space_ separated list of
23456 # directories to be munged by the contents of PATH, which is string
23457 # having a format:
23458 # "DIR[:DIR]:"
23459 # string "DIR[ DIR]" will be prepended to VARIABLE
23460 # ":DIR[:DIR]"
23461 # string "DIR[ DIR]" will be appended to VARIABLE
23462 # "DIRP[:DIRP]::[DIRA:]DIRA"
23463 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
23464 # "DIRA[ DIRA]" will be appended to VARIABLE
23465 # "DIR[:DIR]"
23466 # VARIABLE will be replaced by "DIR[ DIR]"
23467 func_munge_path_list ()
23468 {
23469 case x$2 in
23470 x)
23471 ;;
23472 *:)
23473 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
23474 ;;
23475 x:*)
23476 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
23477 ;;
23478 *::*)
23479 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
23480 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
23481 ;;
23482 *)
23483 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
23484 ;;
23485 esac
23486 }
23487
23488
23489 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
23490 func_cc_basename ()
23491 {
23492 for cc_temp in $*""; do
23493 case $cc_temp in
23494 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23495 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23496 \-*) ;;
23497 *) break;;
23498 esac
23499 done
23500 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
23501 }
23502
23503
23504 # ### END FUNCTIONS SHARED WITH CONFIGURE
23505
23506 _LT_EOF
23507
23508 case $host_os in
23509 aix3*)
23510 cat <<\_LT_EOF >> "$cfgfile"
23511 # AIX sometimes has problems with the GCC collect2 program. For some
23512 # reason, if we set the COLLECT_NAMES environment variable, the problems
23513 # vanish in a puff of smoke.
23514 if test set != "${COLLECT_NAMES+set}"; then
23515 COLLECT_NAMES=
23516 export COLLECT_NAMES
23517 fi
23518 _LT_EOF
23519 ;;
23520 esac
23521
23522
23523
23524 ltmain=$ac_aux_dir/ltmain.sh
23525
23526
23527 # We use sed instead of cat because bash on DJGPP gets confused if
23528 # if finds mixed CR/LF and LF-only lines. Since sed operates in
23529 # text mode, it properly converts lines to CR/LF. This bash problem
23530 # is reportedly fixed, but why not run on old versions too?
23531 $SED '$q' "$ltmain" >> "$cfgfile" \
23532 || (rm -f "$cfgfile"; exit 1)
23533
23534 mv -f "$cfgfile" "$ofile" ||
23535 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23536 chmod +x "$ofile"
23537
23538
23539 cat <<_LT_EOF >> "$ofile"
23540
23541 # ### BEGIN LIBTOOL TAG CONFIG: CXX
23542
23543 # The linker used to build libraries.
23544 LD=$lt_LD_CXX
23545
23546 # How to create reloadable object files.
23547 reload_flag=$lt_reload_flag_CXX
23548 reload_cmds=$lt_reload_cmds_CXX
23549
23550 # Commands used to build an old-style archive.
23551 old_archive_cmds=$lt_old_archive_cmds_CXX
23552
23553 # A language specific compiler.
23554 CC=$lt_compiler_CXX
23555
23556 # Is the compiler the GNU compiler?
23557 with_gcc=$GCC_CXX
23558
23559 # Compiler flag to turn off builtin functions.
23560 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
23561
23562 # Additional compiler flags for building library objects.
23563 pic_flag=$lt_lt_prog_compiler_pic_CXX
23564
23565 # How to pass a linker flag through the compiler.
23566 wl=$lt_lt_prog_compiler_wl_CXX
23567
23568 # Compiler flag to prevent dynamic linking.
23569 link_static_flag=$lt_lt_prog_compiler_static_CXX
23570
23571 # Does compiler simultaneously support -c and -o options?
23572 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
23573
23574 # Whether or not to add -lc for building shared libraries.
23575 build_libtool_need_lc=$archive_cmds_need_lc_CXX
23576
23577 # Whether or not to disallow shared libs when runtime libs are static.
23578 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
23579
23580 # Compiler flag to allow reflexive dlopens.
23581 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
23582
23583 # Compiler flag to generate shared objects directly from archives.
23584 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
23585
23586 # Whether the compiler copes with passing no objects directly.
23587 compiler_needs_object=$lt_compiler_needs_object_CXX
23588
23589 # Create an old-style archive from a shared archive.
23590 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
23591
23592 # Create a temporary old-style archive to link instead of a shared archive.
23593 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
23594
23595 # Commands used to build a shared archive.
23596 archive_cmds=$lt_archive_cmds_CXX
23597 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
23598
23599 # Commands used to build a loadable module if different from building
23600 # a shared archive.
23601 module_cmds=$lt_module_cmds_CXX
23602 module_expsym_cmds=$lt_module_expsym_cmds_CXX
23603
23604 # Whether we are building with GNU ld or not.
23605 with_gnu_ld=$lt_with_gnu_ld_CXX
23606
23607 # Flag that allows shared libraries with undefined symbols to be built.
23608 allow_undefined_flag=$lt_allow_undefined_flag_CXX
23609
23610 # Flag that enforces no undefined symbols.
23611 no_undefined_flag=$lt_no_undefined_flag_CXX
23612
23613 # Flag to hardcode \$libdir into a binary during linking.
23614 # This must work even if \$libdir does not exist
23615 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
23616
23617 # Whether we need a single "-rpath" flag with a separated argument.
23618 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
23619
23620 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23621 # DIR into the resulting binary.
23622 hardcode_direct=$hardcode_direct_CXX
23623
23624 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23625 # DIR into the resulting binary and the resulting library dependency is
23626 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
23627 # library is relocated.
23628 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
23629
23630 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23631 # into the resulting binary.
23632 hardcode_minus_L=$hardcode_minus_L_CXX
23633
23634 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23635 # into the resulting binary.
23636 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
23637
23638 # Set to "yes" if building a shared library automatically hardcodes DIR
23639 # into the library and all subsequent libraries and executables linked
23640 # against it.
23641 hardcode_automatic=$hardcode_automatic_CXX
23642
23643 # Set to yes if linker adds runtime paths of dependent libraries
23644 # to runtime path list.
23645 inherit_rpath=$inherit_rpath_CXX
23646
23647 # Whether libtool must link a program against all its dependency libraries.
23648 link_all_deplibs=$link_all_deplibs_CXX
23649
23650 # Set to "yes" if exported symbols are required.
23651 always_export_symbols=$always_export_symbols_CXX
23652
23653 # The commands to list exported symbols.
23654 export_symbols_cmds=$lt_export_symbols_cmds_CXX
23655
23656 # Symbols that should not be listed in the preloaded symbols.
23657 exclude_expsyms=$lt_exclude_expsyms_CXX
23658
23659 # Symbols that must always be exported.
23660 include_expsyms=$lt_include_expsyms_CXX
23661
23662 # Commands necessary for linking programs (against libraries) with templates.
23663 prelink_cmds=$lt_prelink_cmds_CXX
23664
23665 # Commands necessary for finishing linking programs.
23666 postlink_cmds=$lt_postlink_cmds_CXX
23667
23668 # Specify filename containing input files.
23669 file_list_spec=$lt_file_list_spec_CXX
23670
23671 # How to hardcode a shared library path into an executable.
23672 hardcode_action=$hardcode_action_CXX
23673
23674 # The directories searched by this compiler when creating a shared library.
23675 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
23676
23677 # Dependencies to place before and after the objects being linked to
23678 # create a shared library.
23679 predep_objects=$lt_predep_objects_CXX
23680 postdep_objects=$lt_postdep_objects_CXX
23681 predeps=$lt_predeps_CXX
23682 postdeps=$lt_postdeps_CXX
23683
23684 # The library search path used internally by the compiler when linking
23685 # a shared library.
23686 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
23687
23688 # ### END LIBTOOL TAG CONFIG: CXX
23689 _LT_EOF
23690
23691 ;;
23692
23693 esac
23694 done # for ac_tag
23695
23696
23697 as_fn_exit 0
23698 _ACEOF
23699 ac_clean_files=$ac_clean_files_save
23700
23701 test $ac_write_fail = 0 ||
23702 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23703
23704
23705 # configure is writing to config.log, and then calls config.status.
23706 # config.status does its own redirection, appending to config.log.
23707 # Unfortunately, on DOS this fails, as config.log is still kept open
23708 # by configure, so config.status won't be able to write to it; its
23709 # output is simply discarded. So we exec the FD to /dev/null,
23710 # effectively closing config.log, so it can be properly (re)opened and
23711 # appended to by config.status. When coming back to configure, we
23712 # need to make the FD available again.
23713 if test "$no_create" != yes; then
23714 ac_cs_success=:
23715 ac_config_status_args=
23716 test "$silent" = yes &&
23717 ac_config_status_args="$ac_config_status_args --quiet"
23718 exec 5>/dev/null
23719 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23720 exec 5>>config.log
23721 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23722 # would make configure fail if this is the last instruction.
23723 $ac_cs_success || as_fn_exit 1
23724 fi
23725 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23727 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23728 fi
23729
23730