Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for libHX 5.4.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
7 # Inc.
8 #
9 #
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## -------------------- ##
13 ## M4sh Initialization. ##
14 ## -------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
19 then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else case e in #(
27 e) case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac ;;
33 esac
34 fi
35
36
37
38 # Reset variables that may have inherited troublesome values from
39 # the environment.
40
41 # IFS needs to be set, to space, tab, and newline, in precisely that order.
42 # (If _AS_PATH_WALK were called with IFS unset, it would have the
43 # side effect of setting IFS to empty, thus disabling word splitting.)
44 # Quoting is to prevent editors from complaining about space-tab.
45 as_nl='
46 '
47 export as_nl
48 IFS=" "" $as_nl"
49
50 PS1='$ '
51 PS2='> '
52 PS4='+ '
53
54 # Ensure predictable behavior from utilities with locale-dependent output.
55 LC_ALL=C
56 export LC_ALL
57 LANGUAGE=C
58 export LANGUAGE
59
60 # We cannot yet rely on "unset" to work, but we need these variables
61 # to be unset--not just set to an empty or harmless value--now, to
62 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
63 # also avoids known problems related to "unset" and subshell syntax
64 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
65 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
66 do eval test \${$as_var+y} \
67 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
68 done
69
70 # Ensure that fds 0, 1, and 2 are open.
71 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
72 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
73 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
74
75 # The user is always right.
76 if ${PATH_SEPARATOR+false} :; then
77 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
81 }
82 fi
83
84
85 # Find who we are. Look in the path if we contain no directory separator.
86 as_myself=
87 case $0 in #((
88 *[\\/]* ) as_myself=$0 ;;
89 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
90 for as_dir in $PATH
91 do
92 IFS=$as_save_IFS
93 case $as_dir in #(((
94 '') as_dir=./ ;;
95 */) ;;
96 *) as_dir=$as_dir/ ;;
97 esac
98 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as 'sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114
115 # Use a proper internal environment variable to ensure we don't fall
116 # into an infinite loop, continuously re-executing ourselves.
117 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
118 _as_can_reexec=no; export _as_can_reexec;
119 # We cannot yet assume a decent shell, so we have to provide a
120 # neutralization value for shells without unset; and this also
121 # works around shells that cannot unset nonexistent variables.
122 # Preserve -v and -x to the replacement shell.
123 BASH_ENV=/dev/null
124 ENV=/dev/null
125 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
126 case $- in # ((((
127 *v*x* | *x*v* ) as_opts=-vx ;;
128 *v* ) as_opts=-v ;;
129 *x* ) as_opts=-x ;;
130 * ) as_opts= ;;
131 esac
132 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
133 # Admittedly, this is quite paranoid, since all the known shells bail
134 # out after a failed 'exec'.
135 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
136 exit 255
137 fi
138 # We don't want this to propagate to other subprocesses.
139 { _as_can_reexec=; unset _as_can_reexec;}
140 if test "x$CONFIG_SHELL" = x; then
141 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
142 then :
143 emulate sh
144 NULLCMD=:
145 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
146 # is contrary to our usage. Disable this feature.
147 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 setopt NO_GLOB_SUBST
149 else case e in #(
150 e) case \`(set -o) 2>/dev/null\` in #(
151 *posix*) :
152 set -o posix ;; #(
153 *) :
154 ;;
155 esac ;;
156 esac
157 fi
158 "
159 as_required="as_fn_return () { (exit \$1); }
160 as_fn_success () { as_fn_return 0; }
161 as_fn_failure () { as_fn_return 1; }
162 as_fn_ret_success () { return 0; }
163 as_fn_ret_failure () { return 1; }
164
165 exitcode=0
166 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
167 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
168 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
169 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
170 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
171 then :
172
173 else case e in #(
174 e) exitcode=1; echo positional parameters were not saved. ;;
175 esac
176 fi
177 test x\$exitcode = x0 || exit 1
178 blah=\$(echo \$(echo blah))
179 test x\"\$blah\" = xblah || exit 1
180 test -x / || exit 1"
181 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
182 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
183 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
184 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
185
186 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
187 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
188 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190 PATH=/empty FPATH=/empty; export PATH FPATH
191 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
192 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
193 test \$(( 1 + 1 )) = 2 || exit 1"
194 if (eval "$as_required") 2>/dev/null
195 then :
196 as_have_required=yes
197 else case e in #(
198 e) as_have_required=no ;;
199 esac
200 fi
201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202 then :
203
204 else case e in #(
205 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206 as_found=false
207 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208 do
209 IFS=$as_save_IFS
210 case $as_dir in #(((
211 '') as_dir=./ ;;
212 */) ;;
213 *) as_dir=$as_dir/ ;;
214 esac
215 as_found=:
216 case $as_dir in #(
217 /*)
218 for as_base in sh bash ksh sh5; do
219 # Try only shells that exist, to save several forks.
220 as_shell=$as_dir$as_base
221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223 then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226 then :
227 break 2
228 fi
229 fi
230 done;;
231 esac
232 as_found=false
233 done
234 IFS=$as_save_IFS
235 if $as_found
236 then :
237
238 else case e in #(
239 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241 then :
242 CONFIG_SHELL=$SHELL as_have_required=yes
243 fi ;;
244 esac
245 fi
246
247
248 if test "x$CONFIG_SHELL" != x
249 then :
250 export CONFIG_SHELL
251 # We cannot yet assume a decent shell, so we have to provide a
252 # neutralization value for shells without unset; and this also
253 # works around shells that cannot unset nonexistent variables.
254 # Preserve -v and -x to the replacement shell.
255 BASH_ENV=/dev/null
256 ENV=/dev/null
257 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 case $- in # ((((
259 *v*x* | *x*v* ) as_opts=-vx ;;
260 *v* ) as_opts=-v ;;
261 *x* ) as_opts=-x ;;
262 * ) as_opts= ;;
263 esac
264 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
265 # Admittedly, this is quite paranoid, since all the known shells bail
266 # out after a failed 'exec'.
267 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
268 exit 255
269 fi
270
271 if test x$as_have_required = xno
272 then :
273 printf "%s\n" "$0: This script requires a shell more modern than all"
274 printf "%s\n" "$0: the shells that I found on your system."
275 if test ${ZSH_VERSION+y} ; then
276 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
277 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
278 else
279 printf "%s\n" "$0: Please tell [email protected] about your system,
280 $0: including any error possibly output before this
281 $0: message. Then install a modern shell, or manually run
282 $0: the script under such a shell if you do have one."
283 fi
284 exit 1
285 fi ;;
286 esac
287 fi
288 fi
289 SHELL=${CONFIG_SHELL-/bin/sh}
290 export SHELL
291 # Unset more variables known to interfere with behavior of common tools.
292 CLICOLOR_FORCE= GREP_OPTIONS=
293 unset CLICOLOR_FORCE GREP_OPTIONS
294
295 ## --------------------- ##
296 ## M4sh Shell Functions. ##
297 ## --------------------- ##
298 # as_fn_unset VAR
299 # ---------------
300 # Portably unset VAR.
301 as_fn_unset ()
302 {
303 { eval $1=; unset $1;}
304 }
305 as_unset=as_fn_unset
306
307
308 # as_fn_set_status STATUS
309 # -----------------------
310 # Set $? to STATUS, without forking.
311 as_fn_set_status ()
312 {
313 return $1
314 } # as_fn_set_status
315
316 # as_fn_exit STATUS
317 # -----------------
318 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
319 as_fn_exit ()
320 {
321 set +e
322 as_fn_set_status $1
323 exit $1
324 } # as_fn_exit
325
326 # as_fn_mkdir_p
327 # -------------
328 # Create "$as_dir" as a directory, including parents if necessary.
329 as_fn_mkdir_p ()
330 {
331
332 case $as_dir in #(
333 -*) as_dir=./$as_dir;;
334 esac
335 test -d "$as_dir" || eval $as_mkdir_p || {
336 as_dirs=
337 while :; do
338 case $as_dir in #(
339 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
340 *) as_qdir=$as_dir;;
341 esac
342 as_dirs="'$as_qdir' $as_dirs"
343 as_dir=`$as_dirname -- "$as_dir" ||
344 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
345 X"$as_dir" : 'X\(//\)[^/]' \| \
346 X"$as_dir" : 'X\(//\)$' \| \
347 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
348 printf "%s\n" X"$as_dir" |
349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
350 s//\1/
351 q
352 }
353 /^X\(\/\/\)[^/].*/{
354 s//\1/
355 q
356 }
357 /^X\(\/\/\)$/{
358 s//\1/
359 q
360 }
361 /^X\(\/\).*/{
362 s//\1/
363 q
364 }
365 s/.*/./; q'`
366 test -d "$as_dir" && break
367 done
368 test -z "$as_dirs" || eval "mkdir $as_dirs"
369 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
370
371
372 } # as_fn_mkdir_p
373
374 # as_fn_executable_p FILE
375 # -----------------------
376 # Test if FILE is an executable regular file.
377 as_fn_executable_p ()
378 {
379 test -f "$1" && test -x "$1"
380 } # as_fn_executable_p
381 # as_fn_append VAR VALUE
382 # ----------------------
383 # Append the text in VALUE to the end of the definition contained in VAR. Take
384 # advantage of any shell optimizations that allow amortized linear growth over
385 # repeated appends, instead of the typical quadratic growth present in naive
386 # implementations.
387 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
388 then :
389 eval 'as_fn_append ()
390 {
391 eval $1+=\$2
392 }'
393 else case e in #(
394 e) as_fn_append ()
395 {
396 eval $1=\$$1\$2
397 } ;;
398 esac
399 fi # as_fn_append
400
401 # as_fn_arith ARG...
402 # ------------------
403 # Perform arithmetic evaluation on the ARGs, and store the result in the
404 # global $as_val. Take advantage of shells that can avoid forks. The arguments
405 # must be portable across $(()) and expr.
406 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
407 then :
408 eval 'as_fn_arith ()
409 {
410 as_val=$(( $* ))
411 }'
412 else case e in #(
413 e) as_fn_arith ()
414 {
415 as_val=`expr "$@" || test $? -eq 1`
416 } ;;
417 esac
418 fi # as_fn_arith
419
420
421 # as_fn_error STATUS ERROR [LINENO LOG_FD]
422 # ----------------------------------------
423 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
424 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
425 # script with STATUS, using 1 if that was 0.
426 as_fn_error ()
427 {
428 as_status=$1; test $as_status -eq 0 && as_status=1
429 if test "$4"; then
430 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
431 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
432 fi
433 printf "%s\n" "$as_me: error: $2" >&2
434 as_fn_exit $as_status
435 } # as_fn_error
436
437 if expr a : '\(a\)' >/dev/null 2>&1 &&
438 test "X`expr 00001 : '.*\(...\)'`" = X001; then
439 as_expr=expr
440 else
441 as_expr=false
442 fi
443
444 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
445 as_basename=basename
446 else
447 as_basename=false
448 fi
449
450 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
451 as_dirname=dirname
452 else
453 as_dirname=false
454 fi
455
456 as_me=`$as_basename -- "$0" ||
457 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
458 X"$0" : 'X\(//\)$' \| \
459 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
460 printf "%s\n" X/"$0" |
461 sed '/^.*\/\([^/][^/]*\)\/*$/{
462 s//\1/
463 q
464 }
465 /^X\/\(\/\/\)$/{
466 s//\1/
467 q
468 }
469 /^X\/\(\/\).*/{
470 s//\1/
471 q
472 }
473 s/.*/./; q'`
474
475 # Avoid depending upon Character Ranges.
476 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
477 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
478 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
479 as_cr_digits='0123456789'
480 as_cr_alnum=$as_cr_Letters$as_cr_digits
481
482
483 as_lineno_1=$LINENO as_lineno_1a=$LINENO
484 as_lineno_2=$LINENO as_lineno_2a=$LINENO
485 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
486 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
487 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
488 sed -n '
489 p
490 /[$]LINENO/=
491 ' <$as_myself |
492 sed '
493 t clear
494 :clear
495 s/[$]LINENO.*/&-/
496 t lineno
497 b
498 :lineno
499 N
500 :loop
501 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
502 t loop
503 s/-\n.*//
504 ' >$as_me.lineno &&
505 chmod +x "$as_me.lineno" ||
506 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
507
508 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
509 # already done that, so ensure we don't try to do so again and fall
510 # in an infinite loop. This has already happened in practice.
511 _as_can_reexec=no; export _as_can_reexec
512 # Don't try to exec as it changes $[0], causing all sort of problems
513 # (the dirname of $[0] is not the place where we might find the
514 # original and so on. Autoconf is especially sensitive to this).
515 . "./$as_me.lineno"
516 # Exit status is that of the last command.
517 exit
518 }
519
520
521 # Determine whether it's possible to make 'echo' print without a newline.
522 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
523 # for compatibility with existing Makefiles.
524 ECHO_C= ECHO_N= ECHO_T=
525 case `echo -n x` in #(((((
526 -n*)
527 case `echo 'xy\c'` in
528 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
529 xy) ECHO_C='\c';;
530 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
531 ECHO_T=' ';;
532 esac;;
533 *)
534 ECHO_N='-n';;
535 esac
536
537 # For backward compatibility with old third-party macros, we provide
538 # the shell variables $as_echo and $as_echo_n. New code should use
539 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
540 as_echo='printf %s\n'
541 as_echo_n='printf %s'
542
543 rm -f conf$$ conf$$.exe conf$$.file
544 if test -d conf$$.dir; then
545 rm -f conf$$.dir/conf$$.file
546 else
547 rm -f conf$$.dir
548 mkdir conf$$.dir 2>/dev/null
549 fi
550 if (echo >conf$$.file) 2>/dev/null; then
551 if ln -s conf$$.file conf$$ 2>/dev/null; then
552 as_ln_s='ln -s'
553 # ... but there are two gotchas:
554 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
555 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
556 # In both cases, we have to default to 'cp -pR'.
557 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
558 as_ln_s='cp -pR'
559 elif ln conf$$.file conf$$ 2>/dev/null; then
560 as_ln_s=ln
561 else
562 as_ln_s='cp -pR'
563 fi
564 else
565 as_ln_s='cp -pR'
566 fi
567 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
568 rmdir conf$$.dir 2>/dev/null
569
570 if mkdir -p . 2>/dev/null; then
571 as_mkdir_p='mkdir -p "$as_dir"'
572 else
573 test -d ./-p && rmdir ./-p
574 as_mkdir_p=false
575 fi
576
577 as_test_x='test -x'
578 as_executable_p=as_fn_executable_p
579
580 # Sed expression to map a string onto a valid CPP name.
581 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
582 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
583
584 # Sed expression to map a string onto a valid variable name.
585 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
586 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
587
588 SHELL=${CONFIG_SHELL-/bin/sh}
589
590
591 test -n "$DJDIR" || exec 7<&0 </dev/null
592 exec 6>&1
593
594 # Name of the host.
595 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
596 # so uname gets run too.
597 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
598
599 #
600 # Initializations.
601 #
602 ac_default_prefix=/usr/local
603 ac_clean_files=
604 ac_config_libobj_dir=.
605 LIBOBJS=
606 cross_compiling=no
607 subdirs=
608 MFLAGS=
609 MAKEFLAGS=
610
611 # Identity of this package.
612 PACKAGE_NAME='libHX'
613 PACKAGE_TARNAME='libhx'
614 PACKAGE_VERSION='5.4'
615 PACKAGE_STRING='libHX 5.4'
616 PACKAGE_BUGREPORT=''
617 PACKAGE_URL=''
618
619 # Factoring default headers for most tests.
620 ac_includes_default="\
621 #include <stddef.h>
622 #ifdef HAVE_STDIO_H
623 # include <stdio.h>
624 #endif
625 #ifdef HAVE_STDLIB_H
626 # include <stdlib.h>
627 #endif
628 #ifdef HAVE_STRING_H
629 # include <string.h>
630 #endif
631 #ifdef HAVE_INTTYPES_H
632 # include <inttypes.h>
633 #endif
634 #ifdef HAVE_STDINT_H
635 # include <stdint.h>
636 #endif
637 #ifdef HAVE_STRINGS_H
638 # include <strings.h>
639 #endif
640 #ifdef HAVE_SYS_TYPES_H
641 # include <sys/types.h>
642 #endif
643 #ifdef HAVE_SYS_STAT_H
644 # include <sys/stat.h>
645 #endif
646 #ifdef HAVE_UNISTD_H
647 # include <unistd.h>
648 #endif"
649
650 ac_header_c_list=
651 ac_subst_vars='am__EXEEXT_FALSE
652 am__EXEEXT_TRUE
653 LTLIBOBJS
654 LIBOBJS
655 regular_CXXFLAGS
656 regular_CFLAGS
657 regular_CPPFLAGS
658 libsocket_LIBS
659 libpthread_LIBS
660 librt_LIBS
661 libdl_LIBS
662 HAVE_DLFCN_H_FALSE
663 HAVE_DLFCN_H_TRUE
664 WITH_SUN_LD_FALSE
665 WITH_SUN_LD_TRUE
666 WITH_LDSYM_FALSE
667 WITH_LDSYM_TRUE
668 pkgconfigdir
669 MINGW32_FALSE
670 MINGW32_TRUE
671 HAVE_CXX_FALSE
672 HAVE_CXX_TRUE
673 CXXCPP
674 LT_SYS_LIBRARY_PATH
675 OTOOL64
676 OTOOL
677 LIPO
678 NMEDIT
679 DSYMUTIL
680 MANIFEST_TOOL
681 RANLIB
682 DLLTOOL
683 OBJDUMP
684 FILECMD
685 LN_S
686 NM
687 ac_ct_DUMPBIN
688 DUMPBIN
689 LD
690 FGREP
691 EGREP
692 GREP
693 SED
694 host_os
695 host_vendor
696 host_cpu
697 host
698 build_os
699 build_vendor
700 build_cpu
701 build
702 LIBTOOL
703 ac_ct_AR
704 AR
705 am__fastdepCXX_FALSE
706 am__fastdepCXX_TRUE
707 CXXDEPMODE
708 ac_ct_CXX
709 CXXFLAGS
710 CXX
711 am__fastdepCC_FALSE
712 am__fastdepCC_TRUE
713 CCDEPMODE
714 am__nodep
715 AMDEPBACKSLASH
716 AMDEP_FALSE
717 AMDEP_TRUE
718 am__include
719 DEPDIR
720 OBJEXT
721 EXEEXT
722 ac_ct_CC
723 CPPFLAGS
724 LDFLAGS
725 CFLAGS
726 CC
727 am__xargs_n
728 am__rm_f_notfound
729 AM_BACKSLASH
730 AM_DEFAULT_VERBOSITY
731 AM_DEFAULT_V
732 AM_V
733 CSCOPE
734 ETAGS
735 CTAGS
736 am__untar
737 am__tar
738 AMTAR
739 am__leading_dot
740 SET_MAKE
741 AWK
742 mkdir_p
743 MKDIR_P
744 INSTALL_STRIP_PROGRAM
745 STRIP
746 install_sh
747 MAKEINFO
748 AUTOHEADER
749 AUTOMAKE
750 AUTOCONF
751 ACLOCAL
752 VERSION
753 PACKAGE
754 CYGPATH_W
755 am__isrc
756 INSTALL_DATA
757 INSTALL_SCRIPT
758 INSTALL_PROGRAM
759 target_alias
760 host_alias
761 build_alias
762 LIBS
763 ECHO_T
764 ECHO_N
765 ECHO_C
766 DEFS
767 mandir
768 localedir
769 libdir
770 psdir
771 pdfdir
772 dvidir
773 htmldir
774 infodir
775 docdir
776 oldincludedir
777 includedir
778 runstatedir
779 localstatedir
780 sharedstatedir
781 sysconfdir
782 datadir
783 datarootdir
784 libexecdir
785 sbindir
786 bindir
787 program_transform_name
788 prefix
789 exec_prefix
790 PACKAGE_URL
791 PACKAGE_BUGREPORT
792 PACKAGE_STRING
793 PACKAGE_VERSION
794 PACKAGE_TARNAME
795 PACKAGE_NAME
796 PATH_SEPARATOR
797 SHELL
798 am__quote'
799 ac_subst_files=''
800 ac_user_opts='
801 enable_option_checking
802 enable_silent_rules
803 enable_dependency_tracking
804 enable_static
805 enable_shared
806 enable_pic
807 with_pic
808 enable_fast_install
809 enable_aix_soname
810 with_aix_soname
811 with_gnu_ld
812 with_sysroot
813 enable_libtool_lock
814 with_pkgconfigdir
815 '
816 ac_precious_vars='build_alias
817 host_alias
818 target_alias
819 CC
820 CFLAGS
821 LDFLAGS
822 LIBS
823 CPPFLAGS
824 CXX
825 CXXFLAGS
826 CCC
827 LT_SYS_LIBRARY_PATH
828 CXXCPP'
829
830
831 # Initialize some variables set by options.
832 ac_init_help=
833 ac_init_version=false
834 ac_unrecognized_opts=
835 ac_unrecognized_sep=
836 # The variables have the same names as the options, with
837 # dashes changed to underlines.
838 cache_file=/dev/null
839 exec_prefix=NONE
840 no_create=
841 no_recursion=
842 prefix=NONE
843 program_prefix=NONE
844 program_suffix=NONE
845 program_transform_name=s,x,x,
846 silent=
847 site=
848 srcdir=
849 verbose=
850 x_includes=NONE
851 x_libraries=NONE
852
853 # Installation directory options.
854 # These are left unexpanded so users can "make install exec_prefix=/foo"
855 # and all the variables that are supposed to be based on exec_prefix
856 # by default will actually change.
857 # Use braces instead of parens because sh, perl, etc. also accept them.
858 # (The list follows the same order as the GNU Coding Standards.)
859 bindir='${exec_prefix}/bin'
860 sbindir='${exec_prefix}/sbin'
861 libexecdir='${exec_prefix}/libexec'
862 datarootdir='${prefix}/share'
863 datadir='${datarootdir}'
864 sysconfdir='${prefix}/etc'
865 sharedstatedir='${prefix}/com'
866 localstatedir='${prefix}/var'
867 runstatedir='${localstatedir}/run'
868 includedir='${prefix}/include'
869 oldincludedir='/usr/include'
870 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
871 infodir='${datarootdir}/info'
872 htmldir='${docdir}'
873 dvidir='${docdir}'
874 pdfdir='${docdir}'
875 psdir='${docdir}'
876 libdir='${exec_prefix}/lib'
877 localedir='${datarootdir}/locale'
878 mandir='${datarootdir}/man'
879
880 ac_prev=
881 ac_dashdash=
882 for ac_option
883 do
884 # If the previous option needs an argument, assign it.
885 if test -n "$ac_prev"; then
886 eval $ac_prev=\$ac_option
887 ac_prev=
888 continue
889 fi
890
891 case $ac_option in
892 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
893 *=) ac_optarg= ;;
894 *) ac_optarg=yes ;;
895 esac
896
897 case $ac_dashdash$ac_option in
898 --)
899 ac_dashdash=yes ;;
900
901 -bindir | --bindir | --bindi | --bind | --bin | --bi)
902 ac_prev=bindir ;;
903 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
904 bindir=$ac_optarg ;;
905
906 -build | --build | --buil | --bui | --bu)
907 ac_prev=build_alias ;;
908 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
909 build_alias=$ac_optarg ;;
910
911 -cache-file | --cache-file | --cache-fil | --cache-fi \
912 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
913 ac_prev=cache_file ;;
914 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
915 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
916 cache_file=$ac_optarg ;;
917
918 --config-cache | -C)
919 cache_file=config.cache ;;
920
921 -datadir | --datadir | --datadi | --datad)
922 ac_prev=datadir ;;
923 -datadir=* | --datadir=* | --datadi=* | --datad=*)
924 datadir=$ac_optarg ;;
925
926 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
927 | --dataroo | --dataro | --datar)
928 ac_prev=datarootdir ;;
929 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
930 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
931 datarootdir=$ac_optarg ;;
932
933 -disable-* | --disable-*)
934 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
935 # Reject names that are not valid shell variable names.
936 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
937 as_fn_error $? "invalid feature name: '$ac_useropt'"
938 ac_useropt_orig=$ac_useropt
939 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
940 case $ac_user_opts in
941 *"
942 "enable_$ac_useropt"
943 "*) ;;
944 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
945 ac_unrecognized_sep=', ';;
946 esac
947 eval enable_$ac_useropt=no ;;
948
949 -docdir | --docdir | --docdi | --doc | --do)
950 ac_prev=docdir ;;
951 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
952 docdir=$ac_optarg ;;
953
954 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
955 ac_prev=dvidir ;;
956 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
957 dvidir=$ac_optarg ;;
958
959 -enable-* | --enable-*)
960 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
961 # Reject names that are not valid shell variable names.
962 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
963 as_fn_error $? "invalid feature name: '$ac_useropt'"
964 ac_useropt_orig=$ac_useropt
965 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
966 case $ac_user_opts in
967 *"
968 "enable_$ac_useropt"
969 "*) ;;
970 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
971 ac_unrecognized_sep=', ';;
972 esac
973 eval enable_$ac_useropt=\$ac_optarg ;;
974
975 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
976 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
977 | --exec | --exe | --ex)
978 ac_prev=exec_prefix ;;
979 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
980 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
981 | --exec=* | --exe=* | --ex=*)
982 exec_prefix=$ac_optarg ;;
983
984 -gas | --gas | --ga | --g)
985 # Obsolete; use --with-gas.
986 with_gas=yes ;;
987
988 -help | --help | --hel | --he | -h)
989 ac_init_help=long ;;
990 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
991 ac_init_help=recursive ;;
992 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
993 ac_init_help=short ;;
994
995 -host | --host | --hos | --ho)
996 ac_prev=host_alias ;;
997 -host=* | --host=* | --hos=* | --ho=*)
998 host_alias=$ac_optarg ;;
999
1000 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1001 ac_prev=htmldir ;;
1002 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1003 | --ht=*)
1004 htmldir=$ac_optarg ;;
1005
1006 -includedir | --includedir | --includedi | --included | --include \
1007 | --includ | --inclu | --incl | --inc)
1008 ac_prev=includedir ;;
1009 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1010 | --includ=* | --inclu=* | --incl=* | --inc=*)
1011 includedir=$ac_optarg ;;
1012
1013 -infodir | --infodir | --infodi | --infod | --info | --inf)
1014 ac_prev=infodir ;;
1015 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1016 infodir=$ac_optarg ;;
1017
1018 -libdir | --libdir | --libdi | --libd)
1019 ac_prev=libdir ;;
1020 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1021 libdir=$ac_optarg ;;
1022
1023 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1024 | --libexe | --libex | --libe)
1025 ac_prev=libexecdir ;;
1026 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1027 | --libexe=* | --libex=* | --libe=*)
1028 libexecdir=$ac_optarg ;;
1029
1030 -localedir | --localedir | --localedi | --localed | --locale)
1031 ac_prev=localedir ;;
1032 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1033 localedir=$ac_optarg ;;
1034
1035 -localstatedir | --localstatedir | --localstatedi | --localstated \
1036 | --localstate | --localstat | --localsta | --localst | --locals)
1037 ac_prev=localstatedir ;;
1038 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1039 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1040 localstatedir=$ac_optarg ;;
1041
1042 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1043 ac_prev=mandir ;;
1044 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1045 mandir=$ac_optarg ;;
1046
1047 -nfp | --nfp | --nf)
1048 # Obsolete; use --without-fp.
1049 with_fp=no ;;
1050
1051 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1052 | --no-cr | --no-c | -n)
1053 no_create=yes ;;
1054
1055 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1056 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1057 no_recursion=yes ;;
1058
1059 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1060 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1061 | --oldin | --oldi | --old | --ol | --o)
1062 ac_prev=oldincludedir ;;
1063 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1064 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1065 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1066 oldincludedir=$ac_optarg ;;
1067
1068 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1069 ac_prev=prefix ;;
1070 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1071 prefix=$ac_optarg ;;
1072
1073 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1074 | --program-pre | --program-pr | --program-p)
1075 ac_prev=program_prefix ;;
1076 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1077 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1078 program_prefix=$ac_optarg ;;
1079
1080 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1081 | --program-suf | --program-su | --program-s)
1082 ac_prev=program_suffix ;;
1083 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1084 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1085 program_suffix=$ac_optarg ;;
1086
1087 -program-transform-name | --program-transform-name \
1088 | --program-transform-nam | --program-transform-na \
1089 | --program-transform-n | --program-transform- \
1090 | --program-transform | --program-transfor \
1091 | --program-transfo | --program-transf \
1092 | --program-trans | --program-tran \
1093 | --progr-tra | --program-tr | --program-t)
1094 ac_prev=program_transform_name ;;
1095 -program-transform-name=* | --program-transform-name=* \
1096 | --program-transform-nam=* | --program-transform-na=* \
1097 | --program-transform-n=* | --program-transform-=* \
1098 | --program-transform=* | --program-transfor=* \
1099 | --program-transfo=* | --program-transf=* \
1100 | --program-trans=* | --program-tran=* \
1101 | --progr-tra=* | --program-tr=* | --program-t=*)
1102 program_transform_name=$ac_optarg ;;
1103
1104 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1105 ac_prev=pdfdir ;;
1106 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1107 pdfdir=$ac_optarg ;;
1108
1109 -psdir | --psdir | --psdi | --psd | --ps)
1110 ac_prev=psdir ;;
1111 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1112 psdir=$ac_optarg ;;
1113
1114 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1115 | -silent | --silent | --silen | --sile | --sil)
1116 silent=yes ;;
1117
1118 -runstatedir | --runstatedir | --runstatedi | --runstated \
1119 | --runstate | --runstat | --runsta | --runst | --runs \
1120 | --run | --ru | --r)
1121 ac_prev=runstatedir ;;
1122 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1123 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1124 | --run=* | --ru=* | --r=*)
1125 runstatedir=$ac_optarg ;;
1126
1127 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1128 ac_prev=sbindir ;;
1129 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1130 | --sbi=* | --sb=*)
1131 sbindir=$ac_optarg ;;
1132
1133 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1134 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1135 | --sharedst | --shareds | --shared | --share | --shar \
1136 | --sha | --sh)
1137 ac_prev=sharedstatedir ;;
1138 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1139 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1140 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1141 | --sha=* | --sh=*)
1142 sharedstatedir=$ac_optarg ;;
1143
1144 -site | --site | --sit)
1145 ac_prev=site ;;
1146 -site=* | --site=* | --sit=*)
1147 site=$ac_optarg ;;
1148
1149 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1150 ac_prev=srcdir ;;
1151 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1152 srcdir=$ac_optarg ;;
1153
1154 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1155 | --syscon | --sysco | --sysc | --sys | --sy)
1156 ac_prev=sysconfdir ;;
1157 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1158 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1159 sysconfdir=$ac_optarg ;;
1160
1161 -target | --target | --targe | --targ | --tar | --ta | --t)
1162 ac_prev=target_alias ;;
1163 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1164 target_alias=$ac_optarg ;;
1165
1166 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1167 verbose=yes ;;
1168
1169 -version | --version | --versio | --versi | --vers | -V)
1170 ac_init_version=: ;;
1171
1172 -with-* | --with-*)
1173 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1174 # Reject names that are not valid shell variable names.
1175 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1176 as_fn_error $? "invalid package name: '$ac_useropt'"
1177 ac_useropt_orig=$ac_useropt
1178 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1179 case $ac_user_opts in
1180 *"
1181 "with_$ac_useropt"
1182 "*) ;;
1183 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1184 ac_unrecognized_sep=', ';;
1185 esac
1186 eval with_$ac_useropt=\$ac_optarg ;;
1187
1188 -without-* | --without-*)
1189 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1190 # Reject names that are not valid shell variable names.
1191 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1192 as_fn_error $? "invalid package name: '$ac_useropt'"
1193 ac_useropt_orig=$ac_useropt
1194 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1195 case $ac_user_opts in
1196 *"
1197 "with_$ac_useropt"
1198 "*) ;;
1199 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1200 ac_unrecognized_sep=', ';;
1201 esac
1202 eval with_$ac_useropt=no ;;
1203
1204 --x)
1205 # Obsolete; use --with-x.
1206 with_x=yes ;;
1207
1208 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1209 | --x-incl | --x-inc | --x-in | --x-i)
1210 ac_prev=x_includes ;;
1211 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1212 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1213 x_includes=$ac_optarg ;;
1214
1215 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1216 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1217 ac_prev=x_libraries ;;
1218 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1219 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1220 x_libraries=$ac_optarg ;;
1221
1222 -*) as_fn_error $? "unrecognized option: '$ac_option'
1223 Try '$0 --help' for more information"
1224 ;;
1225
1226 *=*)
1227 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1228 # Reject names that are not valid shell variable names.
1229 case $ac_envvar in #(
1230 '' | [0-9]* | *[!_$as_cr_alnum]* )
1231 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1232 esac
1233 eval $ac_envvar=\$ac_optarg
1234 export $ac_envvar ;;
1235
1236 *)
1237 # FIXME: should be removed in autoconf 3.0.
1238 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1239 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1240 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1241 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1242 ;;
1243
1244 esac
1245 done
1246
1247 if test -n "$ac_prev"; then
1248 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1249 as_fn_error $? "missing argument to $ac_option"
1250 fi
1251
1252 if test -n "$ac_unrecognized_opts"; then
1253 case $enable_option_checking in
1254 no) ;;
1255 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1256 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1257 esac
1258 fi
1259
1260 # Check all directory arguments for consistency.
1261 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1262 datadir sysconfdir sharedstatedir localstatedir includedir \
1263 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1264 libdir localedir mandir runstatedir
1265 do
1266 eval ac_val=\$$ac_var
1267 # Remove trailing slashes.
1268 case $ac_val in
1269 */ )
1270 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1271 eval $ac_var=\$ac_val;;
1272 esac
1273 # Be sure to have absolute directory names.
1274 case $ac_val in
1275 [\\/$]* | ?:[\\/]* ) continue;;
1276 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1277 esac
1278 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1279 done
1280
1281 # There might be people who depend on the old broken behavior: '$host'
1282 # used to hold the argument of --host etc.
1283 # FIXME: To remove some day.
1284 build=$build_alias
1285 host=$host_alias
1286 target=$target_alias
1287
1288 # FIXME: To remove some day.
1289 if test "x$host_alias" != x; then
1290 if test "x$build_alias" = x; then
1291 cross_compiling=maybe
1292 elif test "x$build_alias" != "x$host_alias"; then
1293 cross_compiling=yes
1294 fi
1295 fi
1296
1297 ac_tool_prefix=
1298 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1299
1300 test "$silent" = yes && exec 6>/dev/null
1301
1302
1303 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1304 ac_ls_di=`ls -di .` &&
1305 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1306 as_fn_error $? "working directory cannot be determined"
1307 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1308 as_fn_error $? "pwd does not report name of working directory"
1309
1310
1311 # Find the source files, if location was not specified.
1312 if test -z "$srcdir"; then
1313 ac_srcdir_defaulted=yes
1314 # Try the directory containing this script, then the parent directory.
1315 ac_confdir=`$as_dirname -- "$as_myself" ||
1316 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1317 X"$as_myself" : 'X\(//\)[^/]' \| \
1318 X"$as_myself" : 'X\(//\)$' \| \
1319 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1320 printf "%s\n" X"$as_myself" |
1321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1322 s//\1/
1323 q
1324 }
1325 /^X\(\/\/\)[^/].*/{
1326 s//\1/
1327 q
1328 }
1329 /^X\(\/\/\)$/{
1330 s//\1/
1331 q
1332 }
1333 /^X\(\/\).*/{
1334 s//\1/
1335 q
1336 }
1337 s/.*/./; q'`
1338 srcdir=$ac_confdir
1339 if test ! -r "$srcdir/$ac_unique_file"; then
1340 srcdir=..
1341 fi
1342 else
1343 ac_srcdir_defaulted=no
1344 fi
1345 if test ! -r "$srcdir/$ac_unique_file"; then
1346 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1347 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1348 fi
1349 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1350 ac_abs_confdir=`(
1351 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1352 pwd)`
1353 # When building in place, set srcdir=.
1354 if test "$ac_abs_confdir" = "$ac_pwd"; then
1355 srcdir=.
1356 fi
1357 # Remove unnecessary trailing slashes from srcdir.
1358 # Double slashes in file names in object file debugging info
1359 # mess up M-x gdb in Emacs.
1360 case $srcdir in
1361 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1362 esac
1363 for ac_var in $ac_precious_vars; do
1364 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1365 eval ac_env_${ac_var}_value=\$${ac_var}
1366 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1367 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1368 done
1369
1370 #
1371 # Report the --help message.
1372 #
1373 if test "$ac_init_help" = "long"; then
1374 # Omit some internal or obsolete options to make the list less imposing.
1375 # This message is too long to be a string in the A/UX 3.1 sh.
1376 cat <<_ACEOF
1377 'configure' configures libHX 5.4 to adapt to many kinds of systems.
1378
1379 Usage: $0 [OPTION]... [VAR=VALUE]...
1380
1381 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1382 VAR=VALUE. See below for descriptions of some of the useful variables.
1383
1384 Defaults for the options are specified in brackets.
1385
1386 Configuration:
1387 -h, --help display this help and exit
1388 --help=short display options specific to this package
1389 --help=recursive display the short help of all the included packages
1390 -V, --version display version information and exit
1391 -q, --quiet, --silent do not print 'checking ...' messages
1392 --cache-file=FILE cache test results in FILE [disabled]
1393 -C, --config-cache alias for '--cache-file=config.cache'
1394 -n, --no-create do not create output files
1395 --srcdir=DIR find the sources in DIR [configure dir or '..']
1396
1397 Installation directories:
1398 --prefix=PREFIX install architecture-independent files in PREFIX
1399 [$ac_default_prefix]
1400 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1401 [PREFIX]
1402
1403 By default, 'make install' will install all the files in
1404 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1405 an installation prefix other than '$ac_default_prefix' using '--prefix',
1406 for instance '--prefix=\$HOME'.
1407
1408 For better control, use the options below.
1409
1410 Fine tuning of the installation directories:
1411 --bindir=DIR user executables [EPREFIX/bin]
1412 --sbindir=DIR system admin executables [EPREFIX/sbin]
1413 --libexecdir=DIR program executables [EPREFIX/libexec]
1414 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1415 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1416 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1417 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1418 --libdir=DIR object code libraries [EPREFIX/lib]
1419 --includedir=DIR C header files [PREFIX/include]
1420 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1421 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1422 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1423 --infodir=DIR info documentation [DATAROOTDIR/info]
1424 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1425 --mandir=DIR man documentation [DATAROOTDIR/man]
1426 --docdir=DIR documentation root [DATAROOTDIR/doc/libhx]
1427 --htmldir=DIR html documentation [DOCDIR]
1428 --dvidir=DIR dvi documentation [DOCDIR]
1429 --pdfdir=DIR pdf documentation [DOCDIR]
1430 --psdir=DIR ps documentation [DOCDIR]
1431 _ACEOF
1432
1433 cat <<\_ACEOF
1434
1435 Program names:
1436 --program-prefix=PREFIX prepend PREFIX to installed program names
1437 --program-suffix=SUFFIX append SUFFIX to installed program names
1438 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1439
1440 System types:
1441 --build=BUILD configure for building on BUILD [guessed]
1442 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1443 _ACEOF
1444 fi
1445
1446 if test -n "$ac_init_help"; then
1447 case $ac_init_help in
1448 short | recursive ) echo "Configuration of libHX 5.4:";;
1449 esac
1450 cat <<\_ACEOF
1451
1452 Optional Features:
1453 --disable-option-checking ignore unrecognized --enable/--with options
1454 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1455 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1456 --enable-silent-rules less verbose build output (undo: "make V=1")
1457 --disable-silent-rules verbose build output (undo: "make V=0")
1458 --enable-dependency-tracking
1459 do not reject slow dependency extractors
1460 --disable-dependency-tracking
1461 speeds up one-time build
1462 --enable-static[=PKGS] build static libraries [default=no]
1463 --enable-shared[=PKGS] build shared libraries [default=yes]
1464 --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1465 both]
1466 --enable-fast-install[=PKGS]
1467 optimize for fast installation [default=yes]
1468 --enable-aix-soname=aix|svr4|both
1469 shared library versioning (aka "SONAME") variant to
1470 provide on AIX, [default=aix].
1471 --disable-libtool-lock avoid locking (might break parallel builds)
1472
1473 Optional Packages:
1474 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1475 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1476 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1477 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1478 compiler's sysroot if not specified).
1479 --with-pkgconfigdir=PATH
1480 Path to the pkgconfig directory [[LIBDIR/pkgconfig]]
1481
1482 Some influential environment variables:
1483 CC C compiler command
1484 CFLAGS C compiler flags
1485 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1486 nonstandard directory <lib dir>
1487 LIBS libraries to pass to the linker, e.g. -l<library>
1488 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1489 you have headers in a nonstandard directory <include dir>
1490 CXX C++ compiler command
1491 CXXFLAGS C++ compiler flags
1492 LT_SYS_LIBRARY_PATH
1493 User-defined run-time library search path.
1494 CXXCPP C++ preprocessor
1495
1496 Use these variables to override the choices made by 'configure' or to help
1497 it to find libraries and programs with nonstandard names/locations.
1498
1499 Report bugs to the package provider.
1500 _ACEOF
1501 ac_status=$?
1502 fi
1503
1504 if test "$ac_init_help" = "recursive"; then
1505 # If there are subdirs, report their specific --help.
1506 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1507 test -d "$ac_dir" ||
1508 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1509 continue
1510 ac_builddir=.
1511
1512 case "$ac_dir" in
1513 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1514 *)
1515 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1516 # A ".." for each directory in $ac_dir_suffix.
1517 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1518 case $ac_top_builddir_sub in
1519 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1520 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1521 esac ;;
1522 esac
1523 ac_abs_top_builddir=$ac_pwd
1524 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1525 # for backward compatibility:
1526 ac_top_builddir=$ac_top_build_prefix
1527
1528 case $srcdir in
1529 .) # We are building in place.
1530 ac_srcdir=.
1531 ac_top_srcdir=$ac_top_builddir_sub
1532 ac_abs_top_srcdir=$ac_pwd ;;
1533 [\\/]* | ?:[\\/]* ) # Absolute name.
1534 ac_srcdir=$srcdir$ac_dir_suffix;
1535 ac_top_srcdir=$srcdir
1536 ac_abs_top_srcdir=$srcdir ;;
1537 *) # Relative name.
1538 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1539 ac_top_srcdir=$ac_top_build_prefix$srcdir
1540 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1541 esac
1542 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1543
1544 cd "$ac_dir" || { ac_status=$?; continue; }
1545 # Check for configure.gnu first; this name is used for a wrapper for
1546 # Metaconfig's "Configure" on case-insensitive file systems.
1547 if test -f "$ac_srcdir/configure.gnu"; then
1548 echo &&
1549 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1550 elif test -f "$ac_srcdir/configure"; then
1551 echo &&
1552 $SHELL "$ac_srcdir/configure" --help=recursive
1553 else
1554 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1555 fi || ac_status=$?
1556 cd "$ac_pwd" || { ac_status=$?; break; }
1557 done
1558 fi
1559
1560 test -n "$ac_init_help" && exit $ac_status
1561 if $ac_init_version; then
1562 cat <<\_ACEOF
1563 libHX configure 5.4
1564 generated by GNU Autoconf 2.72
1565
1566 Copyright (C) 2023 Free Software Foundation, Inc.
1567 This configure script is free software; the Free Software Foundation
1568 gives unlimited permission to copy, distribute and modify it.
1569 _ACEOF
1570 exit
1571 fi
1572
1573 ## ------------------------ ##
1574 ## Autoconf initialization. ##
1575 ## ------------------------ ##
1576
1577 # ac_fn_c_try_compile LINENO
1578 # --------------------------
1579 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1580 ac_fn_c_try_compile ()
1581 {
1582 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1583 rm -f conftest.$ac_objext conftest.beam
1584 if { { ac_try="$ac_compile"
1585 case "(($ac_try" in
1586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1587 *) ac_try_echo=$ac_try;;
1588 esac
1589 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1590 printf "%s\n" "$ac_try_echo"; } >&5
1591 (eval "$ac_compile") 2>conftest.err
1592 ac_status=$?
1593 if test -s conftest.err; then
1594 grep -v '^ *+' conftest.err >conftest.er1
1595 cat conftest.er1 >&5
1596 mv -f conftest.er1 conftest.err
1597 fi
1598 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1599 test $ac_status = 0; } && {
1600 test -z "$ac_c_werror_flag" ||
1601 test ! -s conftest.err
1602 } && test -s conftest.$ac_objext
1603 then :
1604 ac_retval=0
1605 else case e in #(
1606 e) printf "%s\n" "$as_me: failed program was:" >&5
1607 sed 's/^/| /' conftest.$ac_ext >&5
1608
1609 ac_retval=1 ;;
1610 esac
1611 fi
1612 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1613 as_fn_set_status $ac_retval
1614
1615 } # ac_fn_c_try_compile
1616
1617 # ac_fn_cxx_try_compile LINENO
1618 # ----------------------------
1619 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1620 ac_fn_cxx_try_compile ()
1621 {
1622 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1623 rm -f conftest.$ac_objext conftest.beam
1624 if { { ac_try="$ac_compile"
1625 case "(($ac_try" in
1626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1627 *) ac_try_echo=$ac_try;;
1628 esac
1629 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1630 printf "%s\n" "$ac_try_echo"; } >&5
1631 (eval "$ac_compile") 2>conftest.err
1632 ac_status=$?
1633 if test -s conftest.err; then
1634 grep -v '^ *+' conftest.err >conftest.er1
1635 cat conftest.er1 >&5
1636 mv -f conftest.er1 conftest.err
1637 fi
1638 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1639 test $ac_status = 0; } && {
1640 test -z "$ac_cxx_werror_flag" ||
1641 test ! -s conftest.err
1642 } && test -s conftest.$ac_objext
1643 then :
1644 ac_retval=0
1645 else case e in #(
1646 e) printf "%s\n" "$as_me: failed program was:" >&5
1647 sed 's/^/| /' conftest.$ac_ext >&5
1648
1649 ac_retval=1 ;;
1650 esac
1651 fi
1652 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1653 as_fn_set_status $ac_retval
1654
1655 } # ac_fn_cxx_try_compile
1656
1657 # ac_fn_c_try_link LINENO
1658 # -----------------------
1659 # Try to link conftest.$ac_ext, and return whether this succeeded.
1660 ac_fn_c_try_link ()
1661 {
1662 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1663 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1664 if { { ac_try="$ac_link"
1665 case "(($ac_try" in
1666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1667 *) ac_try_echo=$ac_try;;
1668 esac
1669 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1670 printf "%s\n" "$ac_try_echo"; } >&5
1671 (eval "$ac_link") 2>conftest.err
1672 ac_status=$?
1673 if test -s conftest.err; then
1674 grep -v '^ *+' conftest.err >conftest.er1
1675 cat conftest.er1 >&5
1676 mv -f conftest.er1 conftest.err
1677 fi
1678 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1679 test $ac_status = 0; } && {
1680 test -z "$ac_c_werror_flag" ||
1681 test ! -s conftest.err
1682 } && test -s conftest$ac_exeext && {
1683 test "$cross_compiling" = yes ||
1684 test -x conftest$ac_exeext
1685 }
1686 then :
1687 ac_retval=0
1688 else case e in #(
1689 e) printf "%s\n" "$as_me: failed program was:" >&5
1690 sed 's/^/| /' conftest.$ac_ext >&5
1691
1692 ac_retval=1 ;;
1693 esac
1694 fi
1695 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1696 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1697 # interfere with the next link command; also delete a directory that is
1698 # left behind by Apple's compiler. We do this before executing the actions.
1699 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1700 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1701 as_fn_set_status $ac_retval
1702
1703 } # ac_fn_c_try_link
1704
1705 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1706 # -------------------------------------------------------
1707 # Tests whether HEADER exists and can be compiled using the include files in
1708 # INCLUDES, setting the cache variable VAR accordingly.
1709 ac_fn_c_check_header_compile ()
1710 {
1711 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1713 printf %s "checking for $2... " >&6; }
1714 if eval test \${$3+y}
1715 then :
1716 printf %s "(cached) " >&6
1717 else case e in #(
1718 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1719 /* end confdefs.h. */
1720 $4
1721 #include <$2>
1722 _ACEOF
1723 if ac_fn_c_try_compile "$LINENO"
1724 then :
1725 eval "$3=yes"
1726 else case e in #(
1727 e) eval "$3=no" ;;
1728 esac
1729 fi
1730 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1731 esac
1732 fi
1733 eval ac_res=\$$3
1734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1735 printf "%s\n" "$ac_res" >&6; }
1736 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1737
1738 } # ac_fn_c_check_header_compile
1739
1740 # ac_fn_c_check_func LINENO FUNC VAR
1741 # ----------------------------------
1742 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1743 ac_fn_c_check_func ()
1744 {
1745 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1747 printf %s "checking for $2... " >&6; }
1748 if eval test \${$3+y}
1749 then :
1750 printf %s "(cached) " >&6
1751 else case e in #(
1752 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1753 /* end confdefs.h. */
1754 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1755 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1756 #define $2 innocuous_$2
1757
1758 /* System header to define __stub macros and hopefully few prototypes,
1759 which can conflict with char $2 (void); below. */
1760
1761 #include <limits.h>
1762 #undef $2
1763
1764 /* Override any GCC internal prototype to avoid an error.
1765 Use char because int might match the return type of a GCC
1766 builtin and then its argument prototype would still apply. */
1767 #ifdef __cplusplus
1768 extern "C"
1769 #endif
1770 char $2 (void);
1771 /* The GNU C library defines this for functions which it implements
1772 to always fail with ENOSYS. Some functions are actually named
1773 something starting with __ and the normal name is an alias. */
1774 #if defined __stub_$2 || defined __stub___$2
1775 choke me
1776 #endif
1777
1778 int
1779 main (void)
1780 {
1781 return $2 ();
1782 ;
1783 return 0;
1784 }
1785 _ACEOF
1786 if ac_fn_c_try_link "$LINENO"
1787 then :
1788 eval "$3=yes"
1789 else case e in #(
1790 e) eval "$3=no" ;;
1791 esac
1792 fi
1793 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1794 conftest$ac_exeext conftest.$ac_ext ;;
1795 esac
1796 fi
1797 eval ac_res=\$$3
1798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1799 printf "%s\n" "$ac_res" >&6; }
1800 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1801
1802 } # ac_fn_c_check_func
1803
1804 # ac_fn_cxx_try_cpp LINENO
1805 # ------------------------
1806 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1807 ac_fn_cxx_try_cpp ()
1808 {
1809 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1810 if { { ac_try="$ac_cpp conftest.$ac_ext"
1811 case "(($ac_try" in
1812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1813 *) ac_try_echo=$ac_try;;
1814 esac
1815 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1816 printf "%s\n" "$ac_try_echo"; } >&5
1817 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1818 ac_status=$?
1819 if test -s conftest.err; then
1820 grep -v '^ *+' conftest.err >conftest.er1
1821 cat conftest.er1 >&5
1822 mv -f conftest.er1 conftest.err
1823 fi
1824 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1825 test $ac_status = 0; } > conftest.i && {
1826 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1827 test ! -s conftest.err
1828 }
1829 then :
1830 ac_retval=0
1831 else case e in #(
1832 e) printf "%s\n" "$as_me: failed program was:" >&5
1833 sed 's/^/| /' conftest.$ac_ext >&5
1834
1835 ac_retval=1 ;;
1836 esac
1837 fi
1838 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1839 as_fn_set_status $ac_retval
1840
1841 } # ac_fn_cxx_try_cpp
1842
1843 # ac_fn_cxx_try_link LINENO
1844 # -------------------------
1845 # Try to link conftest.$ac_ext, and return whether this succeeded.
1846 ac_fn_cxx_try_link ()
1847 {
1848 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1849 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1850 if { { ac_try="$ac_link"
1851 case "(($ac_try" in
1852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1853 *) ac_try_echo=$ac_try;;
1854 esac
1855 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1856 printf "%s\n" "$ac_try_echo"; } >&5
1857 (eval "$ac_link") 2>conftest.err
1858 ac_status=$?
1859 if test -s conftest.err; then
1860 grep -v '^ *+' conftest.err >conftest.er1
1861 cat conftest.er1 >&5
1862 mv -f conftest.er1 conftest.err
1863 fi
1864 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1865 test $ac_status = 0; } && {
1866 test -z "$ac_cxx_werror_flag" ||
1867 test ! -s conftest.err
1868 } && test -s conftest$ac_exeext && {
1869 test "$cross_compiling" = yes ||
1870 test -x conftest$ac_exeext
1871 }
1872 then :
1873 ac_retval=0
1874 else case e in #(
1875 e) printf "%s\n" "$as_me: failed program was:" >&5
1876 sed 's/^/| /' conftest.$ac_ext >&5
1877
1878 ac_retval=1 ;;
1879 esac
1880 fi
1881 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1882 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1883 # interfere with the next link command; also delete a directory that is
1884 # left behind by Apple's compiler. We do this before executing the actions.
1885 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1886 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1887 as_fn_set_status $ac_retval
1888
1889 } # ac_fn_cxx_try_link
1890
1891 # ac_fn_c_try_run LINENO
1892 # ----------------------
1893 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1894 # executables *can* be run.
1895 ac_fn_c_try_run ()
1896 {
1897 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1898 if { { ac_try="$ac_link"
1899 case "(($ac_try" in
1900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1901 *) ac_try_echo=$ac_try;;
1902 esac
1903 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1904 printf "%s\n" "$ac_try_echo"; } >&5
1905 (eval "$ac_link") 2>&5
1906 ac_status=$?
1907 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1908 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1909 { { case "(($ac_try" in
1910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1911 *) ac_try_echo=$ac_try;;
1912 esac
1913 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1914 printf "%s\n" "$ac_try_echo"; } >&5
1915 (eval "$ac_try") 2>&5
1916 ac_status=$?
1917 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1918 test $ac_status = 0; }; }
1919 then :
1920 ac_retval=0
1921 else case e in #(
1922 e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1923 printf "%s\n" "$as_me: failed program was:" >&5
1924 sed 's/^/| /' conftest.$ac_ext >&5
1925
1926 ac_retval=$ac_status ;;
1927 esac
1928 fi
1929 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1930 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1931 as_fn_set_status $ac_retval
1932
1933 } # ac_fn_c_try_run
1934
1935 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1936 # --------------------------------------------
1937 # Tries to find the compile-time value of EXPR in a program that includes
1938 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1939 # computed
1940 ac_fn_c_compute_int ()
1941 {
1942 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1943 if test "$cross_compiling" = yes; then
1944 # Depending upon the size, compute the lo and hi bounds.
1945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1946 /* end confdefs.h. */
1947 $4
1948 int
1949 main (void)
1950 {
1951 static int test_array [1 - 2 * !(($2) >= 0)];
1952 test_array [0] = 0;
1953 return test_array [0];
1954
1955 ;
1956 return 0;
1957 }
1958 _ACEOF
1959 if ac_fn_c_try_compile "$LINENO"
1960 then :
1961 ac_lo=0 ac_mid=0
1962 while :; do
1963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1964 /* end confdefs.h. */
1965 $4
1966 int
1967 main (void)
1968 {
1969 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1970 test_array [0] = 0;
1971 return test_array [0];
1972
1973 ;
1974 return 0;
1975 }
1976 _ACEOF
1977 if ac_fn_c_try_compile "$LINENO"
1978 then :
1979 ac_hi=$ac_mid; break
1980 else case e in #(
1981 e) as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1982 if test $ac_lo -le $ac_mid; then
1983 ac_lo= ac_hi=
1984 break
1985 fi
1986 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val ;;
1987 esac
1988 fi
1989 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1990 done
1991 else case e in #(
1992 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1993 /* end confdefs.h. */
1994 $4
1995 int
1996 main (void)
1997 {
1998 static int test_array [1 - 2 * !(($2) < 0)];
1999 test_array [0] = 0;
2000 return test_array [0];
2001
2002 ;
2003 return 0;
2004 }
2005 _ACEOF
2006 if ac_fn_c_try_compile "$LINENO"
2007 then :
2008 ac_hi=-1 ac_mid=-1
2009 while :; do
2010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2011 /* end confdefs.h. */
2012 $4
2013 int
2014 main (void)
2015 {
2016 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2017 test_array [0] = 0;
2018 return test_array [0];
2019
2020 ;
2021 return 0;
2022 }
2023 _ACEOF
2024 if ac_fn_c_try_compile "$LINENO"
2025 then :
2026 ac_lo=$ac_mid; break
2027 else case e in #(
2028 e) as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2029 if test $ac_mid -le $ac_hi; then
2030 ac_lo= ac_hi=
2031 break
2032 fi
2033 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val ;;
2034 esac
2035 fi
2036 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2037 done
2038 else case e in #(
2039 e) ac_lo= ac_hi= ;;
2040 esac
2041 fi
2042 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2043 esac
2044 fi
2045 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2046 # Binary search between lo and hi bounds.
2047 while test "x$ac_lo" != "x$ac_hi"; do
2048 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2050 /* end confdefs.h. */
2051 $4
2052 int
2053 main (void)
2054 {
2055 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2056 test_array [0] = 0;
2057 return test_array [0];
2058
2059 ;
2060 return 0;
2061 }
2062 _ACEOF
2063 if ac_fn_c_try_compile "$LINENO"
2064 then :
2065 ac_hi=$ac_mid
2066 else case e in #(
2067 e) as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val ;;
2068 esac
2069 fi
2070 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2071 done
2072 case $ac_lo in #((
2073 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2074 '') ac_retval=1 ;;
2075 esac
2076 else
2077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2078 /* end confdefs.h. */
2079 $4
2080 static long int longval (void) { return $2; }
2081 static unsigned long int ulongval (void) { return $2; }
2082 #include <stdio.h>
2083 #include <stdlib.h>
2084 int
2085 main (void)
2086 {
2087
2088 FILE *f = fopen ("conftest.val", "w");
2089 if (! f)
2090 return 1;
2091 if (($2) < 0)
2092 {
2093 long int i = longval ();
2094 if (i != ($2))
2095 return 1;
2096 fprintf (f, "%ld", i);
2097 }
2098 else
2099 {
2100 unsigned long int i = ulongval ();
2101 if (i != ($2))
2102 return 1;
2103 fprintf (f, "%lu", i);
2104 }
2105 /* Do not output a trailing newline, as this causes \r\n confusion
2106 on some platforms. */
2107 return ferror (f) || fclose (f) != 0;
2108
2109 ;
2110 return 0;
2111 }
2112 _ACEOF
2113 if ac_fn_c_try_run "$LINENO"
2114 then :
2115 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2116 else case e in #(
2117 e) ac_retval=1 ;;
2118 esac
2119 fi
2120 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2121 conftest.$ac_objext conftest.beam conftest.$ac_ext
2122 rm -f conftest.val
2123
2124 fi
2125 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2126 as_fn_set_status $ac_retval
2127
2128 } # ac_fn_c_compute_int
2129
2130 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2131 # ----------------------------------------------------
2132 # Tries to find if the field MEMBER exists in type AGGR, after including
2133 # INCLUDES, setting cache variable VAR accordingly.
2134 ac_fn_c_check_member ()
2135 {
2136 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2138 printf %s "checking for $2.$3... " >&6; }
2139 if eval test \${$4+y}
2140 then :
2141 printf %s "(cached) " >&6
2142 else case e in #(
2143 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2144 /* end confdefs.h. */
2145 $5
2146 int
2147 main (void)
2148 {
2149 static $2 ac_aggr;
2150 if (ac_aggr.$3)
2151 return 0;
2152 ;
2153 return 0;
2154 }
2155 _ACEOF
2156 if ac_fn_c_try_compile "$LINENO"
2157 then :
2158 eval "$4=yes"
2159 else case e in #(
2160 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2161 /* end confdefs.h. */
2162 $5
2163 int
2164 main (void)
2165 {
2166 static $2 ac_aggr;
2167 if (sizeof ac_aggr.$3)
2168 return 0;
2169 ;
2170 return 0;
2171 }
2172 _ACEOF
2173 if ac_fn_c_try_compile "$LINENO"
2174 then :
2175 eval "$4=yes"
2176 else case e in #(
2177 e) eval "$4=no" ;;
2178 esac
2179 fi
2180 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2181 esac
2182 fi
2183 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2184 esac
2185 fi
2186 eval ac_res=\$$4
2187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2188 printf "%s\n" "$ac_res" >&6; }
2189 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2190
2191 } # ac_fn_c_check_member
2192 ac_configure_args_raw=
2193 for ac_arg
2194 do
2195 case $ac_arg in
2196 *\'*)
2197 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2198 esac
2199 as_fn_append ac_configure_args_raw " '$ac_arg'"
2200 done
2201
2202 case $ac_configure_args_raw in
2203 *$as_nl*)
2204 ac_safe_unquote= ;;
2205 *)
2206 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2207 ac_unsafe_a="$ac_unsafe_z#~"
2208 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2209 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2210 esac
2211
2212 cat >config.log <<_ACEOF
2213 This file contains any messages produced by compilers while
2214 running configure, to aid debugging if configure makes a mistake.
2215
2216 It was created by libHX $as_me 5.4, which was
2217 generated by GNU Autoconf 2.72. Invocation command line was
2218
2219 $ $0$ac_configure_args_raw
2220
2221 _ACEOF
2222 exec 5>>config.log
2223 {
2224 cat <<_ASUNAME
2225 ## --------- ##
2226 ## Platform. ##
2227 ## --------- ##
2228
2229 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2230 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2231 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2232 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2233 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2234
2235 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2236 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2237
2238 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2239 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2240 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2241 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2242 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2243 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2244 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2245
2246 _ASUNAME
2247
2248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2249 for as_dir in $PATH
2250 do
2251 IFS=$as_save_IFS
2252 case $as_dir in #(((
2253 '') as_dir=./ ;;
2254 */) ;;
2255 *) as_dir=$as_dir/ ;;
2256 esac
2257 printf "%s\n" "PATH: $as_dir"
2258 done
2259 IFS=$as_save_IFS
2260
2261 } >&5
2262
2263 cat >&5 <<_ACEOF
2264
2265
2266 ## ----------- ##
2267 ## Core tests. ##
2268 ## ----------- ##
2269
2270 _ACEOF
2271
2272
2273 # Keep a trace of the command line.
2274 # Strip out --no-create and --no-recursion so they do not pile up.
2275 # Strip out --silent because we don't want to record it for future runs.
2276 # Also quote any args containing shell meta-characters.
2277 # Make two passes to allow for proper duplicate-argument suppression.
2278 ac_configure_args=
2279 ac_configure_args0=
2280 ac_configure_args1=
2281 ac_must_keep_next=false
2282 for ac_pass in 1 2
2283 do
2284 for ac_arg
2285 do
2286 case $ac_arg in
2287 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2288 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2289 | -silent | --silent | --silen | --sile | --sil)
2290 continue ;;
2291 *\'*)
2292 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2293 esac
2294 case $ac_pass in
2295 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2296 2)
2297 as_fn_append ac_configure_args1 " '$ac_arg'"
2298 if test $ac_must_keep_next = true; then
2299 ac_must_keep_next=false # Got value, back to normal.
2300 else
2301 case $ac_arg in
2302 *=* | --config-cache | -C | -disable-* | --disable-* \
2303 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2304 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2305 | -with-* | --with-* | -without-* | --without-* | --x)
2306 case "$ac_configure_args0 " in
2307 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2308 esac
2309 ;;
2310 -* ) ac_must_keep_next=true ;;
2311 esac
2312 fi
2313 as_fn_append ac_configure_args " '$ac_arg'"
2314 ;;
2315 esac
2316 done
2317 done
2318 { ac_configure_args0=; unset ac_configure_args0;}
2319 { ac_configure_args1=; unset ac_configure_args1;}
2320
2321 # When interrupted or exit'd, cleanup temporary files, and complete
2322 # config.log. We remove comments because anyway the quotes in there
2323 # would cause problems or look ugly.
2324 # WARNING: Use '\'' to represent an apostrophe within the trap.
2325 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2326 trap 'exit_status=$?
2327 # Sanitize IFS.
2328 IFS=" "" $as_nl"
2329 # Save into config.log some information that might help in debugging.
2330 {
2331 echo
2332
2333 printf "%s\n" "## ---------------- ##
2334 ## Cache variables. ##
2335 ## ---------------- ##"
2336 echo
2337 # The following way of writing the cache mishandles newlines in values,
2338 (
2339 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2340 eval ac_val=\$$ac_var
2341 case $ac_val in #(
2342 *${as_nl}*)
2343 case $ac_var in #(
2344 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2345 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2346 esac
2347 case $ac_var in #(
2348 _ | IFS | as_nl) ;; #(
2349 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2350 *) { eval $ac_var=; unset $ac_var;} ;;
2351 esac ;;
2352 esac
2353 done
2354 (set) 2>&1 |
2355 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2356 *${as_nl}ac_space=\ *)
2357 sed -n \
2358 "s/'\''/'\''\\\\'\'''\''/g;
2359 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2360 ;; #(
2361 *)
2362 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2363 ;;
2364 esac |
2365 sort
2366 )
2367 echo
2368
2369 printf "%s\n" "## ----------------- ##
2370 ## Output variables. ##
2371 ## ----------------- ##"
2372 echo
2373 for ac_var in $ac_subst_vars
2374 do
2375 eval ac_val=\$$ac_var
2376 case $ac_val in
2377 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2378 esac
2379 printf "%s\n" "$ac_var='\''$ac_val'\''"
2380 done | sort
2381 echo
2382
2383 if test -n "$ac_subst_files"; then
2384 printf "%s\n" "## ------------------- ##
2385 ## File substitutions. ##
2386 ## ------------------- ##"
2387 echo
2388 for ac_var in $ac_subst_files
2389 do
2390 eval ac_val=\$$ac_var
2391 case $ac_val in
2392 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2393 esac
2394 printf "%s\n" "$ac_var='\''$ac_val'\''"
2395 done | sort
2396 echo
2397 fi
2398
2399 if test -s confdefs.h; then
2400 printf "%s\n" "## ----------- ##
2401 ## confdefs.h. ##
2402 ## ----------- ##"
2403 echo
2404 cat confdefs.h
2405 echo
2406 fi
2407 test "$ac_signal" != 0 &&
2408 printf "%s\n" "$as_me: caught signal $ac_signal"
2409 printf "%s\n" "$as_me: exit $exit_status"
2410 } >&5
2411 rm -f core *.core core.conftest.* &&
2412 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2413 exit $exit_status
2414 ' 0
2415 for ac_signal in 1 2 13 15; do
2416 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2417 done
2418 ac_signal=0
2419
2420 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2421 rm -f -r conftest* confdefs.h
2422
2423 printf "%s\n" "/* confdefs.h */" > confdefs.h
2424
2425 # Predefined preprocessor variables.
2426
2427 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2428
2429 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2430
2431 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2432
2433 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2434
2435 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2436
2437 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2438
2439
2440 # Let the site file select an alternate cache file if it wants to.
2441 # Prefer an explicitly selected file to automatically selected ones.
2442 if test -n "$CONFIG_SITE"; then
2443 ac_site_files="$CONFIG_SITE"
2444 elif test "x$prefix" != xNONE; then
2445 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2446 else
2447 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2448 fi
2449
2450 for ac_site_file in $ac_site_files
2451 do
2452 case $ac_site_file in #(
2453 */*) :
2454 ;; #(
2455 *) :
2456 ac_site_file=./$ac_site_file ;;
2457 esac
2458 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2460 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2461 sed 's/^/| /' "$ac_site_file" >&5
2462 . "$ac_site_file" \
2463 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2464 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2465 as_fn_error $? "failed to load site script $ac_site_file
2466 See 'config.log' for more details" "$LINENO" 5; }
2467 fi
2468 done
2469
2470 if test -r "$cache_file"; then
2471 # Some versions of bash will fail to source /dev/null (special files
2472 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2473 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2475 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2476 case $cache_file in
2477 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2478 *) . "./$cache_file";;
2479 esac
2480 fi
2481 else
2482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2483 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2484 >$cache_file
2485 fi
2486
2487 # Test code for whether the C compiler supports C89 (global declarations)
2488 ac_c_conftest_c89_globals='
2489 /* Does the compiler advertise C89 conformance?
2490 Do not test the value of __STDC__, because some compilers set it to 0
2491 while being otherwise adequately conformant. */
2492 #if !defined __STDC__
2493 # error "Compiler does not advertise C89 conformance"
2494 #endif
2495
2496 #include <stddef.h>
2497 #include <stdarg.h>
2498 struct stat;
2499 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2500 struct buf { int x; };
2501 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2502 static char *e (char **p, int i)
2503 {
2504 return p[i];
2505 }
2506 static char *f (char * (*g) (char **, int), char **p, ...)
2507 {
2508 char *s;
2509 va_list v;
2510 va_start (v,p);
2511 s = g (p, va_arg (v,int));
2512 va_end (v);
2513 return s;
2514 }
2515
2516 /* C89 style stringification. */
2517 #define noexpand_stringify(a) #a
2518 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2519
2520 /* C89 style token pasting. Exercises some of the corner cases that
2521 e.g. old MSVC gets wrong, but not very hard. */
2522 #define noexpand_concat(a,b) a##b
2523 #define expand_concat(a,b) noexpand_concat(a,b)
2524 extern int vA;
2525 extern int vbee;
2526 #define aye A
2527 #define bee B
2528 int *pvA = &expand_concat(v,aye);
2529 int *pvbee = &noexpand_concat(v,bee);
2530
2531 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2532 function prototypes and stuff, but not \xHH hex character constants.
2533 These do not provoke an error unfortunately, instead are silently treated
2534 as an "x". The following induces an error, until -std is added to get
2535 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2536 array size at least. It is necessary to write \x00 == 0 to get something
2537 that is true only with -std. */
2538 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2539
2540 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2541 inside strings and character constants. */
2542 #define FOO(x) '\''x'\''
2543 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2544
2545 int test (int i, double x);
2546 struct s1 {int (*f) (int a);};
2547 struct s2 {int (*f) (double a);};
2548 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2549 int, int);'
2550
2551 # Test code for whether the C compiler supports C89 (body of main).
2552 ac_c_conftest_c89_main='
2553 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2554 '
2555
2556 # Test code for whether the C compiler supports C99 (global declarations)
2557 ac_c_conftest_c99_globals='
2558 /* Does the compiler advertise C99 conformance? */
2559 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2560 # error "Compiler does not advertise C99 conformance"
2561 #endif
2562
2563 // See if C++-style comments work.
2564
2565 #include <stdbool.h>
2566 extern int puts (const char *);
2567 extern int printf (const char *, ...);
2568 extern int dprintf (int, const char *, ...);
2569 extern void *malloc (size_t);
2570 extern void free (void *);
2571
2572 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2573 // dprintf is used instead of fprintf to avoid needing to declare
2574 // FILE and stderr.
2575 #define debug(...) dprintf (2, __VA_ARGS__)
2576 #define showlist(...) puts (#__VA_ARGS__)
2577 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2578 static void
2579 test_varargs_macros (void)
2580 {
2581 int x = 1234;
2582 int y = 5678;
2583 debug ("Flag");
2584 debug ("X = %d\n", x);
2585 showlist (The first, second, and third items.);
2586 report (x>y, "x is %d but y is %d", x, y);
2587 }
2588
2589 // Check long long types.
2590 #define BIG64 18446744073709551615ull
2591 #define BIG32 4294967295ul
2592 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2593 #if !BIG_OK
2594 #error "your preprocessor is broken"
2595 #endif
2596 #if BIG_OK
2597 #else
2598 #error "your preprocessor is broken"
2599 #endif
2600 static long long int bignum = -9223372036854775807LL;
2601 static unsigned long long int ubignum = BIG64;
2602
2603 struct incomplete_array
2604 {
2605 int datasize;
2606 double data[];
2607 };
2608
2609 struct named_init {
2610 int number;
2611 const wchar_t *name;
2612 double average;
2613 };
2614
2615 typedef const char *ccp;
2616
2617 static inline int
2618 test_restrict (ccp restrict text)
2619 {
2620 // Iterate through items via the restricted pointer.
2621 // Also check for declarations in for loops.
2622 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2623 continue;
2624 return 0;
2625 }
2626
2627 // Check varargs and va_copy.
2628 static bool
2629 test_varargs (const char *format, ...)
2630 {
2631 va_list args;
2632 va_start (args, format);
2633 va_list args_copy;
2634 va_copy (args_copy, args);
2635
2636 const char *str = "";
2637 int number = 0;
2638 float fnumber = 0;
2639
2640 while (*format)
2641 {
2642 switch (*format++)
2643 {
2644 case '\''s'\'': // string
2645 str = va_arg (args_copy, const char *);
2646 break;
2647 case '\''d'\'': // int
2648 number = va_arg (args_copy, int);
2649 break;
2650 case '\''f'\'': // float
2651 fnumber = va_arg (args_copy, double);
2652 break;
2653 default:
2654 break;
2655 }
2656 }
2657 va_end (args_copy);
2658 va_end (args);
2659
2660 return *str && number && fnumber;
2661 }
2662 '
2663
2664 # Test code for whether the C compiler supports C99 (body of main).
2665 ac_c_conftest_c99_main='
2666 // Check bool.
2667 _Bool success = false;
2668 success |= (argc != 0);
2669
2670 // Check restrict.
2671 if (test_restrict ("String literal") == 0)
2672 success = true;
2673 char *restrict newvar = "Another string";
2674
2675 // Check varargs.
2676 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2677 test_varargs_macros ();
2678
2679 // Check flexible array members.
2680 struct incomplete_array *ia =
2681 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2682 ia->datasize = 10;
2683 for (int i = 0; i < ia->datasize; ++i)
2684 ia->data[i] = i * 1.234;
2685 // Work around memory leak warnings.
2686 free (ia);
2687
2688 // Check named initializers.
2689 struct named_init ni = {
2690 .number = 34,
2691 .name = L"Test wide string",
2692 .average = 543.34343,
2693 };
2694
2695 ni.number = 58;
2696
2697 int dynamic_array[ni.number];
2698 dynamic_array[0] = argv[0][0];
2699 dynamic_array[ni.number - 1] = 543;
2700
2701 // work around unused variable warnings
2702 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2703 || dynamic_array[ni.number - 1] != 543);
2704 '
2705
2706 # Test code for whether the C compiler supports C11 (global declarations)
2707 ac_c_conftest_c11_globals='
2708 /* Does the compiler advertise C11 conformance? */
2709 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2710 # error "Compiler does not advertise C11 conformance"
2711 #endif
2712
2713 // Check _Alignas.
2714 char _Alignas (double) aligned_as_double;
2715 char _Alignas (0) no_special_alignment;
2716 extern char aligned_as_int;
2717 char _Alignas (0) _Alignas (int) aligned_as_int;
2718
2719 // Check _Alignof.
2720 enum
2721 {
2722 int_alignment = _Alignof (int),
2723 int_array_alignment = _Alignof (int[100]),
2724 char_alignment = _Alignof (char)
2725 };
2726 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2727
2728 // Check _Noreturn.
2729 int _Noreturn does_not_return (void) { for (;;) continue; }
2730
2731 // Check _Static_assert.
2732 struct test_static_assert
2733 {
2734 int x;
2735 _Static_assert (sizeof (int) <= sizeof (long int),
2736 "_Static_assert does not work in struct");
2737 long int y;
2738 };
2739
2740 // Check UTF-8 literals.
2741 #define u8 syntax error!
2742 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2743
2744 // Check duplicate typedefs.
2745 typedef long *long_ptr;
2746 typedef long int *long_ptr;
2747 typedef long_ptr long_ptr;
2748
2749 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2750 struct anonymous
2751 {
2752 union {
2753 struct { int i; int j; };
2754 struct { int k; long int l; } w;
2755 };
2756 int m;
2757 } v1;
2758 '
2759
2760 # Test code for whether the C compiler supports C11 (body of main).
2761 ac_c_conftest_c11_main='
2762 _Static_assert ((offsetof (struct anonymous, i)
2763 == offsetof (struct anonymous, w.k)),
2764 "Anonymous union alignment botch");
2765 v1.i = 2;
2766 v1.w.k = 5;
2767 ok |= v1.i != 5;
2768 '
2769
2770 # Test code for whether the C compiler supports C11 (complete).
2771 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2772 ${ac_c_conftest_c99_globals}
2773 ${ac_c_conftest_c11_globals}
2774
2775 int
2776 main (int argc, char **argv)
2777 {
2778 int ok = 0;
2779 ${ac_c_conftest_c89_main}
2780 ${ac_c_conftest_c99_main}
2781 ${ac_c_conftest_c11_main}
2782 return ok;
2783 }
2784 "
2785
2786 # Test code for whether the C compiler supports C99 (complete).
2787 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2788 ${ac_c_conftest_c99_globals}
2789
2790 int
2791 main (int argc, char **argv)
2792 {
2793 int ok = 0;
2794 ${ac_c_conftest_c89_main}
2795 ${ac_c_conftest_c99_main}
2796 return ok;
2797 }
2798 "
2799
2800 # Test code for whether the C compiler supports C89 (complete).
2801 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2802
2803 int
2804 main (int argc, char **argv)
2805 {
2806 int ok = 0;
2807 ${ac_c_conftest_c89_main}
2808 return ok;
2809 }
2810 "
2811
2812 # Test code for whether the C++ compiler supports C++98 (global declarations)
2813 ac_cxx_conftest_cxx98_globals='
2814 // Does the compiler advertise C++98 conformance?
2815 #if !defined __cplusplus || __cplusplus < 199711L
2816 # error "Compiler does not advertise C++98 conformance"
2817 #endif
2818
2819 // These inclusions are to reject old compilers that
2820 // lack the unsuffixed header files.
2821 #include <cstdlib>
2822 #include <exception>
2823
2824 // <cassert> and <cstring> are *not* freestanding headers in C++98.
2825 extern void assert (int);
2826 namespace std {
2827 extern int strcmp (const char *, const char *);
2828 }
2829
2830 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
2831 using std::exception;
2832 using std::strcmp;
2833
2834 namespace {
2835
2836 void test_exception_syntax()
2837 {
2838 try {
2839 throw "test";
2840 } catch (const char *s) {
2841 // Extra parentheses suppress a warning when building autoconf itself,
2842 // due to lint rules shared with more typical C programs.
2843 assert (!(strcmp) (s, "test"));
2844 }
2845 }
2846
2847 template <typename T> struct test_template
2848 {
2849 T const val;
2850 explicit test_template(T t) : val(t) {}
2851 template <typename U> T add(U u) { return static_cast<T>(u) + val; }
2852 };
2853
2854 } // anonymous namespace
2855 '
2856
2857 # Test code for whether the C++ compiler supports C++98 (body of main)
2858 ac_cxx_conftest_cxx98_main='
2859 assert (argc);
2860 assert (! argv[0]);
2861 {
2862 test_exception_syntax ();
2863 test_template<double> tt (2.0);
2864 assert (tt.add (4) == 6.0);
2865 assert (true && !false);
2866 }
2867 '
2868
2869 # Test code for whether the C++ compiler supports C++11 (global declarations)
2870 ac_cxx_conftest_cxx11_globals='
2871 // Does the compiler advertise C++ 2011 conformance?
2872 #if !defined __cplusplus || __cplusplus < 201103L
2873 # error "Compiler does not advertise C++11 conformance"
2874 #endif
2875
2876 namespace cxx11test
2877 {
2878 constexpr int get_val() { return 20; }
2879
2880 struct testinit
2881 {
2882 int i;
2883 double d;
2884 };
2885
2886 class delegate
2887 {
2888 public:
2889 delegate(int n) : n(n) {}
2890 delegate(): delegate(2354) {}
2891
2892 virtual int getval() { return this->n; };
2893 protected:
2894 int n;
2895 };
2896
2897 class overridden : public delegate
2898 {
2899 public:
2900 overridden(int n): delegate(n) {}
2901 virtual int getval() override final { return this->n * 2; }
2902 };
2903
2904 class nocopy
2905 {
2906 public:
2907 nocopy(int i): i(i) {}
2908 nocopy() = default;
2909 nocopy(const nocopy&) = delete;
2910 nocopy & operator=(const nocopy&) = delete;
2911 private:
2912 int i;
2913 };
2914
2915 // for testing lambda expressions
2916 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
2917 {
2918 return f(v);
2919 }
2920
2921 // for testing variadic templates and trailing return types
2922 template <typename V> auto sum(V first) -> V
2923 {
2924 return first;
2925 }
2926 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
2927 {
2928 return first + sum(rest...);
2929 }
2930 }
2931 '
2932
2933 # Test code for whether the C++ compiler supports C++11 (body of main)
2934 ac_cxx_conftest_cxx11_main='
2935 {
2936 // Test auto and decltype
2937 auto a1 = 6538;
2938 auto a2 = 48573953.4;
2939 auto a3 = "String literal";
2940
2941 int total = 0;
2942 for (auto i = a3; *i; ++i) { total += *i; }
2943
2944 decltype(a2) a4 = 34895.034;
2945 }
2946 {
2947 // Test constexpr
2948 short sa[cxx11test::get_val()] = { 0 };
2949 }
2950 {
2951 // Test initializer lists
2952 cxx11test::testinit il = { 4323, 435234.23544 };
2953 }
2954 {
2955 // Test range-based for
2956 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
2957 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
2958 for (auto &x : array) { x += 23; }
2959 }
2960 {
2961 // Test lambda expressions
2962 using cxx11test::eval;
2963 assert (eval ([](int x) { return x*2; }, 21) == 42);
2964 double d = 2.0;
2965 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
2966 assert (d == 5.0);
2967 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
2968 assert (d == 5.0);
2969 }
2970 {
2971 // Test use of variadic templates
2972 using cxx11test::sum;
2973 auto a = sum(1);
2974 auto b = sum(1, 2);
2975 auto c = sum(1.0, 2.0, 3.0);
2976 }
2977 {
2978 // Test constructor delegation
2979 cxx11test::delegate d1;
2980 cxx11test::delegate d2();
2981 cxx11test::delegate d3(45);
2982 }
2983 {
2984 // Test override and final
2985 cxx11test::overridden o1(55464);
2986 }
2987 {
2988 // Test nullptr
2989 char *c = nullptr;
2990 }
2991 {
2992 // Test template brackets
2993 test_template<::test_template<int>> v(test_template<int>(12));
2994 }
2995 {
2996 // Unicode literals
2997 char const *utf8 = u8"UTF-8 string \u2500";
2998 char16_t const *utf16 = u"UTF-8 string \u2500";
2999 char32_t const *utf32 = U"UTF-32 string \u2500";
3000 }
3001 '
3002
3003 # Test code for whether the C compiler supports C++11 (complete).
3004 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
3005 ${ac_cxx_conftest_cxx11_globals}
3006
3007 int
3008 main (int argc, char **argv)
3009 {
3010 int ok = 0;
3011 ${ac_cxx_conftest_cxx98_main}
3012 ${ac_cxx_conftest_cxx11_main}
3013 return ok;
3014 }
3015 "
3016
3017 # Test code for whether the C compiler supports C++98 (complete).
3018 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
3019 int
3020 main (int argc, char **argv)
3021 {
3022 int ok = 0;
3023 ${ac_cxx_conftest_cxx98_main}
3024 return ok;
3025 }
3026 "
3027
3028 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
3029 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
3030 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
3031 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
3032 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
3033 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
3034 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
3035 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
3036 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
3037
3038 # Auxiliary files required by this configure script.
3039 ac_aux_files="config.guess config.sub ltmain.sh ar-lib compile missing install-sh"
3040
3041 # Locations in which to look for auxiliary files.
3042 ac_aux_dir_candidates="${srcdir}/build-aux"
3043
3044 # Search for a directory containing all of the required auxiliary files,
3045 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3046 # If we don't find one directory that contains all the files we need,
3047 # we report the set of missing files from the *first* directory in
3048 # $ac_aux_dir_candidates and give up.
3049 ac_missing_aux_files=""
3050 ac_first_candidate=:
3051 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3053 as_found=false
3054 for as_dir in $ac_aux_dir_candidates
3055 do
3056 IFS=$as_save_IFS
3057 case $as_dir in #(((
3058 '') as_dir=./ ;;
3059 */) ;;
3060 *) as_dir=$as_dir/ ;;
3061 esac
3062 as_found=:
3063
3064 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
3065 ac_aux_dir_found=yes
3066 ac_install_sh=
3067 for ac_aux in $ac_aux_files
3068 do
3069 # As a special case, if "install-sh" is required, that requirement
3070 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3071 # and $ac_install_sh is set appropriately for whichever one is found.
3072 if test x"$ac_aux" = x"install-sh"
3073 then
3074 if test -f "${as_dir}install-sh"; then
3075 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
3076 ac_install_sh="${as_dir}install-sh -c"
3077 elif test -f "${as_dir}install.sh"; then
3078 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
3079 ac_install_sh="${as_dir}install.sh -c"
3080 elif test -f "${as_dir}shtool"; then
3081 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
3082 ac_install_sh="${as_dir}shtool install -c"
3083 else
3084 ac_aux_dir_found=no
3085 if $ac_first_candidate; then
3086 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3087 else
3088 break
3089 fi
3090 fi
3091 else
3092 if test -f "${as_dir}${ac_aux}"; then
3093 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
3094 else
3095 ac_aux_dir_found=no
3096 if $ac_first_candidate; then
3097 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3098 else
3099 break
3100 fi
3101 fi
3102 fi
3103 done
3104 if test "$ac_aux_dir_found" = yes; then
3105 ac_aux_dir="$as_dir"
3106 break
3107 fi
3108 ac_first_candidate=false
3109
3110 as_found=false
3111 done
3112 IFS=$as_save_IFS
3113 if $as_found
3114 then :
3115
3116 else case e in #(
3117 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
3118 esac
3119 fi
3120
3121
3122 # These three variables are undocumented and unsupported,
3123 # and are intended to be withdrawn in a future Autoconf release.
3124 # They can cause serious problems if a builder's source tree is in a directory
3125 # whose full name contains unusual characters.
3126 if test -f "${ac_aux_dir}config.guess"; then
3127 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3128 fi
3129 if test -f "${ac_aux_dir}config.sub"; then
3130 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3131 fi
3132 if test -f "$ac_aux_dir/configure"; then
3133 ac_configure="$SHELL ${ac_aux_dir}configure"
3134 fi
3135
3136 # Check that the precious variables saved in the cache have kept the same
3137 # value.
3138 ac_cache_corrupted=false
3139 for ac_var in $ac_precious_vars; do
3140 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3141 eval ac_new_set=\$ac_env_${ac_var}_set
3142 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3143 eval ac_new_val=\$ac_env_${ac_var}_value
3144 case $ac_old_set,$ac_new_set in
3145 set,)
3146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
3147 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
3148 ac_cache_corrupted=: ;;
3149 ,set)
3150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
3151 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
3152 ac_cache_corrupted=: ;;
3153 ,);;
3154 *)
3155 if test "x$ac_old_val" != "x$ac_new_val"; then
3156 # differences in whitespace do not lead to failure.
3157 ac_old_val_w=`echo x $ac_old_val`
3158 ac_new_val_w=`echo x $ac_new_val`
3159 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
3161 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
3162 ac_cache_corrupted=:
3163 else
3164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
3165 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
3166 eval $ac_var=\$ac_old_val
3167 fi
3168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
3169 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
3170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
3171 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
3172 fi;;
3173 esac
3174 # Pass precious variables to config.status.
3175 if test "$ac_new_set" = set; then
3176 case $ac_new_val in
3177 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3178 *) ac_arg=$ac_var=$ac_new_val ;;
3179 esac
3180 case " $ac_configure_args " in
3181 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3182 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3183 esac
3184 fi
3185 done
3186 if $ac_cache_corrupted; then
3187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3188 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3190 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3191 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
3192 and start over" "$LINENO" 5
3193 fi
3194 ## -------------------- ##
3195 ## Main body of script. ##
3196 ## -------------------- ##
3197
3198 ac_ext=c
3199 ac_cpp='$CPP $CPPFLAGS'
3200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3203
3204
3205
3206 ac_config_headers="$ac_config_headers config.h"
3207
3208
3209
3210
3211 # Find a good install program. We prefer a C program (faster),
3212 # so one script is as good as another. But avoid the broken or
3213 # incompatible versions:
3214 # SysV /etc/install, /usr/sbin/install
3215 # SunOS /usr/etc/install
3216 # IRIX /sbin/install
3217 # AIX /bin/install
3218 # AmigaOS /C/install, which installs bootblocks on floppy discs
3219 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3220 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3221 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3222 # OS/2's system install, which has a completely different semantic
3223 # ./install, which can be erroneously created by make from ./install.sh.
3224 # Reject install programs that cannot install multiple files.
3225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3226 printf %s "checking for a BSD-compatible install... " >&6; }
3227 if test -z "$INSTALL"; then
3228 if test ${ac_cv_path_install+y}
3229 then :
3230 printf %s "(cached) " >&6
3231 else case e in #(
3232 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3233 for as_dir in $PATH
3234 do
3235 IFS=$as_save_IFS
3236 case $as_dir in #(((
3237 '') as_dir=./ ;;
3238 */) ;;
3239 *) as_dir=$as_dir/ ;;
3240 esac
3241 # Account for fact that we put trailing slashes in our PATH walk.
3242 case $as_dir in #((
3243 ./ | /[cC]/* | \
3244 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3245 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3246 /usr/ucb/* ) ;;
3247 *)
3248 # OSF1 and SCO ODT 3.0 have their own names for install.
3249 # Don't use installbsd from OSF since it installs stuff as root
3250 # by default.
3251 for ac_prog in ginstall scoinst install; do
3252 for ac_exec_ext in '' $ac_executable_extensions; do
3253 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3254 if test $ac_prog = install &&
3255 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3256 # AIX install. It has an incompatible calling convention.
3257 :
3258 elif test $ac_prog = install &&
3259 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3260 # program-specific install script used by HP pwplus--don't use.
3261 :
3262 else
3263 rm -rf conftest.one conftest.two conftest.dir
3264 echo one > conftest.one
3265 echo two > conftest.two
3266 mkdir conftest.dir
3267 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3268 test -s conftest.one && test -s conftest.two &&
3269 test -s conftest.dir/conftest.one &&
3270 test -s conftest.dir/conftest.two
3271 then
3272 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3273 break 3
3274 fi
3275 fi
3276 fi
3277 done
3278 done
3279 ;;
3280 esac
3281
3282 done
3283 IFS=$as_save_IFS
3284
3285 rm -rf conftest.one conftest.two conftest.dir
3286 ;;
3287 esac
3288 fi
3289 if test ${ac_cv_path_install+y}; then
3290 INSTALL=$ac_cv_path_install
3291 else
3292 # As a last resort, use the slow shell script. Don't cache a
3293 # value for INSTALL within a source directory, because that will
3294 # break other packages using the cache if that directory is
3295 # removed, or if the value is a relative name.
3296 INSTALL=$ac_install_sh
3297 fi
3298 fi
3299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3300 printf "%s\n" "$INSTALL" >&6; }
3301
3302 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3303 # It thinks the first close brace ends the variable substitution.
3304 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3305
3306 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3307
3308 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3309
3310 am__api_version='1.18'
3311
3312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
3313 printf %s "checking whether sleep supports fractional seconds... " >&6; }
3314 if test ${am_cv_sleep_fractional_seconds+y}
3315 then :
3316 printf %s "(cached) " >&6
3317 else case e in #(
3318 e) if sleep 0.001 2>/dev/null
3319 then :
3320 am_cv_sleep_fractional_seconds=yes
3321 else case e in #(
3322 e) am_cv_sleep_fractional_seconds=no ;;
3323 esac
3324 fi
3325 ;;
3326 esac
3327 fi
3328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
3329 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
3330
3331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
3332 printf %s "checking filesystem timestamp resolution... " >&6; }
3333 if test ${am_cv_filesystem_timestamp_resolution+y}
3334 then :
3335 printf %s "(cached) " >&6
3336 else case e in #(
3337 e) # Default to the worst case.
3338 am_cv_filesystem_timestamp_resolution=2
3339
3340 # Only try to go finer than 1 sec if sleep can do it.
3341 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
3342 # - 1 sec is not much of a win compared to 2 sec, and
3343 # - it takes 2 seconds to perform the test whether 1 sec works.
3344 #
3345 # Instead, just use the default 2s on platforms that have 1s resolution,
3346 # accept the extra 1s delay when using $sleep in the Automake tests, in
3347 # exchange for not incurring the 2s delay for running the test for all
3348 # packages.
3349 #
3350 am_try_resolutions=
3351 if test "$am_cv_sleep_fractional_seconds" = yes; then
3352 # Even a millisecond often causes a bunch of false positives,
3353 # so just try a hundredth of a second. The time saved between .001 and
3354 # .01 is not terribly consequential.
3355 am_try_resolutions="0.01 0.1 $am_try_resolutions"
3356 fi
3357
3358 # In order to catch current-generation FAT out, we must *modify* files
3359 # that already exist; the *creation* timestamp is finer. Use names
3360 # that make ls -t sort them differently when they have equal
3361 # timestamps than when they have distinct timestamps, keeping
3362 # in mind that ls -t prints the *newest* file first.
3363 rm -f conftest.ts?
3364 : > conftest.ts1
3365 : > conftest.ts2
3366 : > conftest.ts3
3367
3368 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
3369 # clobber the current shell's arguments. (Outer-level square brackets
3370 # are removed by m4; they're present so that m4 does not expand
3371 # <dollar><star>; be careful, easy to get confused.)
3372 if (
3373 set X `ls -t conftest.ts[12]` &&
3374 {
3375 test "$*" != "X conftest.ts1 conftest.ts2" ||
3376 test "$*" != "X conftest.ts2 conftest.ts1";
3377 }
3378 ); then :; else
3379 # If neither matched, then we have a broken ls. This can happen
3380 # if, for instance, CONFIG_SHELL is bash and it inherits a
3381 # broken ls alias from the environment. This has actually
3382 # happened. Such a system could not be considered "sane".
3383 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
3384 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3385 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3386 as_fn_error $? "ls -t produces unexpected output.
3387 Make sure there is not a broken ls alias in your environment.
3388 See 'config.log' for more details" "$LINENO" 5; }
3389 fi
3390
3391 for am_try_res in $am_try_resolutions; do
3392 # Any one fine-grained sleep might happen to cross the boundary
3393 # between two values of a coarser actual resolution, but if we do
3394 # two fine-grained sleeps in a row, at least one of them will fall
3395 # entirely within a coarse interval.
3396 echo alpha > conftest.ts1
3397 sleep $am_try_res
3398 echo beta > conftest.ts2
3399 sleep $am_try_res
3400 echo gamma > conftest.ts3
3401
3402 # We assume that 'ls -t' will make use of high-resolution
3403 # timestamps if the operating system supports them at all.
3404 if (set X `ls -t conftest.ts?` &&
3405 test "$2" = conftest.ts3 &&
3406 test "$3" = conftest.ts2 &&
3407 test "$4" = conftest.ts1); then
3408 #
3409 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
3410 # because we don't need to test make.
3411 make_ok=true
3412 if test $am_try_res != 1; then
3413 # But if we've succeeded so far with a subsecond resolution, we
3414 # have one more thing to check: make. It can happen that
3415 # everything else supports the subsecond mtimes, but make doesn't;
3416 # notably on macOS, which ships make 3.81 from 2006 (the last one
3417 # released under GPLv2). https://bugs.gnu.org/68808
3418 #
3419 # We test $MAKE if it is defined in the environment, else "make".
3420 # It might get overridden later, but our hope is that in practice
3421 # it does not matter: it is the system "make" which is (by far)
3422 # the most likely to be broken, whereas if the user overrides it,
3423 # probably they did so with a better, or at least not worse, make.
3424 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
3425 #
3426 # Create a Makefile (real tab character here):
3427 rm -f conftest.mk
3428 echo 'conftest.ts1: conftest.ts2' >conftest.mk
3429 echo ' touch conftest.ts2' >>conftest.mk
3430 #
3431 # Now, running
3432 # touch conftest.ts1; touch conftest.ts2; make
3433 # should touch ts1 because ts2 is newer. This could happen by luck,
3434 # but most often, it will fail if make's support is insufficient. So
3435 # test for several consecutive successes.
3436 #
3437 # (We reuse conftest.ts[12] because we still want to modify existing
3438 # files, not create new ones, per above.)
3439 n=0
3440 make=${MAKE-make}
3441 until test $n -eq 3; do
3442 echo one > conftest.ts1
3443 sleep $am_try_res
3444 echo two > conftest.ts2 # ts2 should now be newer than ts1
3445 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
3446 make_ok=false
3447 break # out of $n loop
3448 fi
3449 n=`expr $n + 1`
3450 done
3451 fi
3452 #
3453 if $make_ok; then
3454 # Everything we know to check worked out, so call this resolution good.
3455 am_cv_filesystem_timestamp_resolution=$am_try_res
3456 break # out of $am_try_res loop
3457 fi
3458 # Otherwise, we'll go on to check the next resolution.
3459 fi
3460 done
3461 rm -f conftest.ts?
3462 # (end _am_filesystem_timestamp_resolution)
3463 ;;
3464 esac
3465 fi
3466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
3467 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
3468
3469 # This check should not be cached, as it may vary across builds of
3470 # different projects.
3471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3472 printf %s "checking whether build environment is sane... " >&6; }
3473 # Reject unsafe characters in $srcdir or the absolute working directory
3474 # name. Accept space and tab only in the latter.
3475 am_lf='
3476 '
3477 case `pwd` in
3478 *[\\\"\#\$\&\'\`$am_lf]*)
3479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3480 printf "%s\n" "no" >&6; }
3481 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3482 esac
3483 case $srcdir in
3484 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3486 printf "%s\n" "no" >&6; }
3487 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3488 esac
3489
3490 # Do 'set' in a subshell so we don't clobber the current shell's
3491 # arguments. Must try -L first in case configure is actually a
3492 # symlink; some systems play weird games with the mod time of symlinks
3493 # (eg FreeBSD returns the mod time of the symlink's containing
3494 # directory).
3495 am_build_env_is_sane=no
3496 am_has_slept=no
3497 rm -f conftest.file
3498 for am_try in 1 2; do
3499 echo "timestamp, slept: $am_has_slept" > conftest.file
3500 if (
3501 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3502 if test "$*" = "X"; then
3503 # -L didn't work.
3504 set X `ls -t "$srcdir/configure" conftest.file`
3505 fi
3506 test "$2" = conftest.file
3507 ); then
3508 am_build_env_is_sane=yes
3509 break
3510 fi
3511 # Just in case.
3512 sleep "$am_cv_filesystem_timestamp_resolution"
3513 am_has_slept=yes
3514 done
3515
3516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
3517 printf "%s\n" "$am_build_env_is_sane" >&6; }
3518 if test "$am_build_env_is_sane" = no; then
3519 as_fn_error $? "newly created file is older than distributed files!
3520 Check your system clock" "$LINENO" 5
3521 fi
3522
3523 # If we didn't sleep, we still need to ensure time stamps of config.status and
3524 # generated files are strictly newer.
3525 am_sleep_pid=
3526 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
3527 then :
3528
3529 else case e in #(
3530 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
3531 am_sleep_pid=$!
3532 ;;
3533 esac
3534 fi
3535
3536 rm -f conftest.file
3537
3538 test "$program_prefix" != NONE &&
3539 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3540 # Use a double $ so make ignores it.
3541 test "$program_suffix" != NONE &&
3542 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3543 # Double any \ or $.
3544 # By default was 's,x,x', remove it if useless.
3545 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3546 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3547
3548
3549 # Expand $ac_aux_dir to an absolute path.
3550 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3551
3552
3553 if test x"${MISSING+set}" != xset; then
3554 MISSING="\${SHELL} '$am_aux_dir/missing'"
3555 fi
3556 # Use eval to expand $SHELL
3557 if eval "$MISSING --is-lightweight"; then
3558 am_missing_run="$MISSING "
3559 else
3560 am_missing_run=
3561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3562 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3563 fi
3564
3565 if test x"${install_sh+set}" != xset; then
3566 case $am_aux_dir in
3567 *\ * | *\ *)
3568 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3569 *)
3570 install_sh="\${SHELL} $am_aux_dir/install-sh"
3571 esac
3572 fi
3573
3574 # Installed binaries are usually stripped using 'strip' when the user
3575 # run "make install-strip". However 'strip' might not be the right
3576 # tool to use in cross-compilation environments, therefore Automake
3577 # will honor the 'STRIP' environment variable to overrule this program.
3578 if test "$cross_compiling" != no; then
3579 if test -n "$ac_tool_prefix"; then
3580 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3581 set dummy ${ac_tool_prefix}strip; ac_word=$2
3582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3583 printf %s "checking for $ac_word... " >&6; }
3584 if test ${ac_cv_prog_STRIP+y}
3585 then :
3586 printf %s "(cached) " >&6
3587 else case e in #(
3588 e) if test -n "$STRIP"; then
3589 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3590 else
3591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3592 for as_dir in $PATH
3593 do
3594 IFS=$as_save_IFS
3595 case $as_dir in #(((
3596 '') as_dir=./ ;;
3597 */) ;;
3598 *) as_dir=$as_dir/ ;;
3599 esac
3600 for ac_exec_ext in '' $ac_executable_extensions; do
3601 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3602 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3603 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3604 break 2
3605 fi
3606 done
3607 done
3608 IFS=$as_save_IFS
3609
3610 fi ;;
3611 esac
3612 fi
3613 STRIP=$ac_cv_prog_STRIP
3614 if test -n "$STRIP"; then
3615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3616 printf "%s\n" "$STRIP" >&6; }
3617 else
3618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3619 printf "%s\n" "no" >&6; }
3620 fi
3621
3622
3623 fi
3624 if test -z "$ac_cv_prog_STRIP"; then
3625 ac_ct_STRIP=$STRIP
3626 # Extract the first word of "strip", so it can be a program name with args.
3627 set dummy strip; ac_word=$2
3628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3629 printf %s "checking for $ac_word... " >&6; }
3630 if test ${ac_cv_prog_ac_ct_STRIP+y}
3631 then :
3632 printf %s "(cached) " >&6
3633 else case e in #(
3634 e) if test -n "$ac_ct_STRIP"; then
3635 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3636 else
3637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3638 for as_dir in $PATH
3639 do
3640 IFS=$as_save_IFS
3641 case $as_dir in #(((
3642 '') as_dir=./ ;;
3643 */) ;;
3644 *) as_dir=$as_dir/ ;;
3645 esac
3646 for ac_exec_ext in '' $ac_executable_extensions; do
3647 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3648 ac_cv_prog_ac_ct_STRIP="strip"
3649 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3650 break 2
3651 fi
3652 done
3653 done
3654 IFS=$as_save_IFS
3655
3656 fi ;;
3657 esac
3658 fi
3659 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3660 if test -n "$ac_ct_STRIP"; then
3661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3662 printf "%s\n" "$ac_ct_STRIP" >&6; }
3663 else
3664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3665 printf "%s\n" "no" >&6; }
3666 fi
3667
3668 if test "x$ac_ct_STRIP" = x; then
3669 STRIP=":"
3670 else
3671 case $cross_compiling:$ac_tool_warned in
3672 yes:)
3673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3674 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3675 ac_tool_warned=yes ;;
3676 esac
3677 STRIP=$ac_ct_STRIP
3678 fi
3679 else
3680 STRIP="$ac_cv_prog_STRIP"
3681 fi
3682
3683 fi
3684 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3685
3686
3687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3688 printf %s "checking for a race-free mkdir -p... " >&6; }
3689 if test -z "$MKDIR_P"; then
3690 if test ${ac_cv_path_mkdir+y}
3691 then :
3692 printf %s "(cached) " >&6
3693 else case e in #(
3694 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3695 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3696 do
3697 IFS=$as_save_IFS
3698 case $as_dir in #(((
3699 '') as_dir=./ ;;
3700 */) ;;
3701 *) as_dir=$as_dir/ ;;
3702 esac
3703 for ac_prog in mkdir gmkdir; do
3704 for ac_exec_ext in '' $ac_executable_extensions; do
3705 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3706 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3707 'mkdir ('*'coreutils) '* | \
3708 *'BusyBox '* | \
3709 'mkdir (fileutils) '4.1*)
3710 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3711 break 3;;
3712 esac
3713 done
3714 done
3715 done
3716 IFS=$as_save_IFS
3717 ;;
3718 esac
3719 fi
3720
3721 test -d ./--version && rmdir ./--version
3722 if test ${ac_cv_path_mkdir+y}; then
3723 MKDIR_P="$ac_cv_path_mkdir -p"
3724 else
3725 # As a last resort, use plain mkdir -p,
3726 # in the hope it doesn't have the bugs of ancient mkdir.
3727 MKDIR_P='mkdir -p'
3728 fi
3729 fi
3730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3731 printf "%s\n" "$MKDIR_P" >&6; }
3732
3733 for ac_prog in gawk mawk nawk awk
3734 do
3735 # Extract the first word of "$ac_prog", so it can be a program name with args.
3736 set dummy $ac_prog; ac_word=$2
3737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3738 printf %s "checking for $ac_word... " >&6; }
3739 if test ${ac_cv_prog_AWK+y}
3740 then :
3741 printf %s "(cached) " >&6
3742 else case e in #(
3743 e) if test -n "$AWK"; then
3744 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3745 else
3746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3747 for as_dir in $PATH
3748 do
3749 IFS=$as_save_IFS
3750 case $as_dir in #(((
3751 '') as_dir=./ ;;
3752 */) ;;
3753 *) as_dir=$as_dir/ ;;
3754 esac
3755 for ac_exec_ext in '' $ac_executable_extensions; do
3756 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3757 ac_cv_prog_AWK="$ac_prog"
3758 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3759 break 2
3760 fi
3761 done
3762 done
3763 IFS=$as_save_IFS
3764
3765 fi ;;
3766 esac
3767 fi
3768 AWK=$ac_cv_prog_AWK
3769 if test -n "$AWK"; then
3770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3771 printf "%s\n" "$AWK" >&6; }
3772 else
3773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3774 printf "%s\n" "no" >&6; }
3775 fi
3776
3777
3778 test -n "$AWK" && break
3779 done
3780
3781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3782 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3783 set x ${MAKE-make}
3784 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3785 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3786 then :
3787 printf %s "(cached) " >&6
3788 else case e in #(
3789 e) cat >conftest.make <<\_ACEOF
3790 SHELL = /bin/sh
3791 all:
3792 @echo '@@@%%%=$(MAKE)=@@@%%%'
3793 _ACEOF
3794 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3795 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3796 *@@@%%%=?*=@@@%%%*)
3797 eval ac_cv_prog_make_${ac_make}_set=yes;;
3798 *)
3799 eval ac_cv_prog_make_${ac_make}_set=no;;
3800 esac
3801 rm -f conftest.make ;;
3802 esac
3803 fi
3804 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3806 printf "%s\n" "yes" >&6; }
3807 SET_MAKE=
3808 else
3809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3810 printf "%s\n" "no" >&6; }
3811 SET_MAKE="MAKE=${MAKE-make}"
3812 fi
3813
3814 rm -rf .tst 2>/dev/null
3815 mkdir .tst 2>/dev/null
3816 if test -d .tst; then
3817 am__leading_dot=.
3818 else
3819 am__leading_dot=_
3820 fi
3821 rmdir .tst 2>/dev/null
3822
3823 AM_DEFAULT_VERBOSITY=1
3824 # Check whether --enable-silent-rules was given.
3825 if test ${enable_silent_rules+y}
3826 then :
3827 enableval=$enable_silent_rules;
3828 fi
3829
3830 am_make=${MAKE-make}
3831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3832 printf %s "checking whether $am_make supports nested variables... " >&6; }
3833 if test ${am_cv_make_support_nested_variables+y}
3834 then :
3835 printf %s "(cached) " >&6
3836 else case e in #(
3837 e) if printf "%s\n" 'TRUE=$(BAR$(V))
3838 BAR0=false
3839 BAR1=true
3840 V=1
3841 am__doit:
3842 @$(TRUE)
3843 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3844 am_cv_make_support_nested_variables=yes
3845 else
3846 am_cv_make_support_nested_variables=no
3847 fi ;;
3848 esac
3849 fi
3850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3851 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3852 AM_BACKSLASH='\'
3853
3854 am__rm_f_notfound=
3855 if (rm -f && rm -fr && rm -rf) 2>/dev/null
3856 then :
3857
3858 else case e in #(
3859 e) am__rm_f_notfound='""' ;;
3860 esac
3861 fi
3862
3863
3864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
3865 printf %s "checking xargs -n works... " >&6; }
3866 if test ${am_cv_xargs_n_works+y}
3867 then :
3868 printf %s "(cached) " >&6
3869 else case e in #(
3870 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
3871 3"
3872 then :
3873 am_cv_xargs_n_works=yes
3874 else case e in #(
3875 e) am_cv_xargs_n_works=no ;;
3876 esac
3877 fi ;;
3878 esac
3879 fi
3880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
3881 printf "%s\n" "$am_cv_xargs_n_works" >&6; }
3882 if test "$am_cv_xargs_n_works" = yes
3883 then :
3884 am__xargs_n='xargs -n'
3885 else case e in #(
3886 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
3887 ;;
3888 esac
3889 fi
3890
3891 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3892 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3893 # is not polluted with repeated "-I."
3894 am__isrc=' -I$(srcdir)'
3895 # test to see if srcdir already configured
3896 if test -f $srcdir/config.status; then
3897 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3898 fi
3899 fi
3900
3901 # test whether we have cygpath
3902 if test -z "$CYGPATH_W"; then
3903 if (cygpath --version) >/dev/null 2>/dev/null; then
3904 CYGPATH_W='cygpath -w'
3905 else
3906 CYGPATH_W=echo
3907 fi
3908 fi
3909
3910
3911 # Define the identity of the package.
3912 PACKAGE='libhx'
3913 VERSION='5.4'
3914
3915
3916 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3917
3918
3919 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3920
3921 # Some tools Automake needs.
3922
3923 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3924
3925
3926 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3927
3928
3929 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3930
3931
3932 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3933
3934
3935 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3936
3937 # For better backward compatibility. To be removed once Automake 1.9.x
3938 # dies out for good. For more background, see:
3939 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3940 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3941 mkdir_p='$(MKDIR_P)'
3942
3943 # We need awk for the "check" target (and possibly the TAP driver). The
3944 # system "awk" is bad on some platforms.
3945 # Always define AMTAR for backward compatibility. Yes, it's still used
3946 # in the wild :-( We should find a proper way to deprecate it ...
3947 AMTAR='$${TAR-tar}'
3948
3949
3950 # We'll loop over all known methods to create a tar archive until one works.
3951 _am_tools='gnutar pax cpio none'
3952
3953
3954
3955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a pax tar archive" >&5
3956 printf %s "checking how to create a pax tar archive... " >&6; }
3957
3958 # Go ahead even if we have the value already cached. We do so because we
3959 # need to set the values for the 'am__tar' and 'am__untar' variables.
3960 _am_tools=${am_cv_prog_tar_pax-$_am_tools}
3961
3962 for _am_tool in $_am_tools; do
3963 case $_am_tool in
3964 gnutar)
3965 for _am_tar in tar gnutar gtar; do
3966 { echo "$as_me:$LINENO: $_am_tar --version" >&5
3967 ($_am_tar --version) >&5 2>&5
3968 ac_status=$?
3969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3970 (exit $ac_status); } && break
3971 done
3972 am__tar="$_am_tar --format=posix -chf - "'"$$tardir"'
3973 am__tar_="$_am_tar --format=posix -chf - "'"$tardir"'
3974 am__untar="$_am_tar -xf -"
3975 ;;
3976 plaintar)
3977 # Must skip GNU tar: if it does not support --format= it doesn't create
3978 # ustar tarball either.
3979 (tar --version) >/dev/null 2>&1 && continue
3980 am__tar='tar chf - "$$tardir"'
3981 am__tar_='tar chf - "$tardir"'
3982 am__untar='tar xf -'
3983 ;;
3984 pax)
3985 am__tar='pax -L -x pax -w "$$tardir"'
3986 am__tar_='pax -L -x pax -w "$tardir"'
3987 am__untar='pax -r'
3988 ;;
3989 cpio)
3990 am__tar='find "$$tardir" -print | cpio -o -H pax -L'
3991 am__tar_='find "$tardir" -print | cpio -o -H pax -L'
3992 am__untar='cpio -i -H pax -d'
3993 ;;
3994 none)
3995 am__tar=false
3996 am__tar_=false
3997 am__untar=false
3998 ;;
3999 esac
4000
4001 # If the value was cached, stop now. We just wanted to have am__tar
4002 # and am__untar set.
4003 test -n "${am_cv_prog_tar_pax}" && break
4004
4005 # tar/untar a dummy directory, and stop if the command works.
4006 rm -rf conftest.dir
4007 mkdir conftest.dir
4008 echo GrepMe > conftest.dir/file
4009 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
4010 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
4011 ac_status=$?
4012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4013 (exit $ac_status); }
4014 rm -rf conftest.dir
4015 if test -s conftest.tar; then
4016 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
4017 ($am__untar <conftest.tar) >&5 2>&5
4018 ac_status=$?
4019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4020 (exit $ac_status); }
4021 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
4022 (cat conftest.dir/file) >&5 2>&5
4023 ac_status=$?
4024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025 (exit $ac_status); }
4026 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
4027 fi
4028 done
4029 rm -rf conftest.dir
4030
4031 if test ${am_cv_prog_tar_pax+y}
4032 then :
4033 printf %s "(cached) " >&6
4034 else case e in #(
4035 e) am_cv_prog_tar_pax=$_am_tool ;;
4036 esac
4037 fi
4038
4039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_pax" >&5
4040 printf "%s\n" "$am_cv_prog_tar_pax" >&6; }
4041
4042
4043
4044
4045
4046 # Variables for tags utilities; see am/tags.am
4047 if test -z "$CTAGS"; then
4048 CTAGS=ctags
4049 fi
4050
4051 if test -z "$ETAGS"; then
4052 ETAGS=etags
4053 fi
4054
4055 if test -z "$CSCOPE"; then
4056 CSCOPE=cscope
4057 fi
4058
4059
4060
4061 AM_DEFAULT_VERBOSITY=0
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077 ac_ext=c
4078 ac_cpp='$CPP $CPPFLAGS'
4079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4082 if test -n "$ac_tool_prefix"; then
4083 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4084 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4086 printf %s "checking for $ac_word... " >&6; }
4087 if test ${ac_cv_prog_CC+y}
4088 then :
4089 printf %s "(cached) " >&6
4090 else case e in #(
4091 e) if test -n "$CC"; then
4092 ac_cv_prog_CC="$CC" # Let the user override the test.
4093 else
4094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4095 for as_dir in $PATH
4096 do
4097 IFS=$as_save_IFS
4098 case $as_dir in #(((
4099 '') as_dir=./ ;;
4100 */) ;;
4101 *) as_dir=$as_dir/ ;;
4102 esac
4103 for ac_exec_ext in '' $ac_executable_extensions; do
4104 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4105 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4106 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4107 break 2
4108 fi
4109 done
4110 done
4111 IFS=$as_save_IFS
4112
4113 fi ;;
4114 esac
4115 fi
4116 CC=$ac_cv_prog_CC
4117 if test -n "$CC"; then
4118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4119 printf "%s\n" "$CC" >&6; }
4120 else
4121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4122 printf "%s\n" "no" >&6; }
4123 fi
4124
4125
4126 fi
4127 if test -z "$ac_cv_prog_CC"; then
4128 ac_ct_CC=$CC
4129 # Extract the first word of "gcc", so it can be a program name with args.
4130 set dummy gcc; ac_word=$2
4131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4132 printf %s "checking for $ac_word... " >&6; }
4133 if test ${ac_cv_prog_ac_ct_CC+y}
4134 then :
4135 printf %s "(cached) " >&6
4136 else case e in #(
4137 e) if test -n "$ac_ct_CC"; then
4138 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4139 else
4140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4141 for as_dir in $PATH
4142 do
4143 IFS=$as_save_IFS
4144 case $as_dir in #(((
4145 '') as_dir=./ ;;
4146 */) ;;
4147 *) as_dir=$as_dir/ ;;
4148 esac
4149 for ac_exec_ext in '' $ac_executable_extensions; do
4150 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4151 ac_cv_prog_ac_ct_CC="gcc"
4152 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4153 break 2
4154 fi
4155 done
4156 done
4157 IFS=$as_save_IFS
4158
4159 fi ;;
4160 esac
4161 fi
4162 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4163 if test -n "$ac_ct_CC"; then
4164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4165 printf "%s\n" "$ac_ct_CC" >&6; }
4166 else
4167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4168 printf "%s\n" "no" >&6; }
4169 fi
4170
4171 if test "x$ac_ct_CC" = x; then
4172 CC=""
4173 else
4174 case $cross_compiling:$ac_tool_warned in
4175 yes:)
4176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4177 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4178 ac_tool_warned=yes ;;
4179 esac
4180 CC=$ac_ct_CC
4181 fi
4182 else
4183 CC="$ac_cv_prog_CC"
4184 fi
4185
4186 if test -z "$CC"; then
4187 if test -n "$ac_tool_prefix"; then
4188 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4189 set dummy ${ac_tool_prefix}cc; ac_word=$2
4190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4191 printf %s "checking for $ac_word... " >&6; }
4192 if test ${ac_cv_prog_CC+y}
4193 then :
4194 printf %s "(cached) " >&6
4195 else case e in #(
4196 e) if test -n "$CC"; then
4197 ac_cv_prog_CC="$CC" # Let the user override the test.
4198 else
4199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4200 for as_dir in $PATH
4201 do
4202 IFS=$as_save_IFS
4203 case $as_dir in #(((
4204 '') as_dir=./ ;;
4205 */) ;;
4206 *) as_dir=$as_dir/ ;;
4207 esac
4208 for ac_exec_ext in '' $ac_executable_extensions; do
4209 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4210 ac_cv_prog_CC="${ac_tool_prefix}cc"
4211 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4212 break 2
4213 fi
4214 done
4215 done
4216 IFS=$as_save_IFS
4217
4218 fi ;;
4219 esac
4220 fi
4221 CC=$ac_cv_prog_CC
4222 if test -n "$CC"; then
4223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4224 printf "%s\n" "$CC" >&6; }
4225 else
4226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4227 printf "%s\n" "no" >&6; }
4228 fi
4229
4230
4231 fi
4232 fi
4233 if test -z "$CC"; then
4234 # Extract the first word of "cc", so it can be a program name with args.
4235 set dummy cc; ac_word=$2
4236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4237 printf %s "checking for $ac_word... " >&6; }
4238 if test ${ac_cv_prog_CC+y}
4239 then :
4240 printf %s "(cached) " >&6
4241 else case e in #(
4242 e) if test -n "$CC"; then
4243 ac_cv_prog_CC="$CC" # Let the user override the test.
4244 else
4245 ac_prog_rejected=no
4246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4247 for as_dir in $PATH
4248 do
4249 IFS=$as_save_IFS
4250 case $as_dir in #(((
4251 '') as_dir=./ ;;
4252 */) ;;
4253 *) as_dir=$as_dir/ ;;
4254 esac
4255 for ac_exec_ext in '' $ac_executable_extensions; do
4256 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4257 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4258 ac_prog_rejected=yes
4259 continue
4260 fi
4261 ac_cv_prog_CC="cc"
4262 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4263 break 2
4264 fi
4265 done
4266 done
4267 IFS=$as_save_IFS
4268
4269 if test $ac_prog_rejected = yes; then
4270 # We found a bogon in the path, so make sure we never use it.
4271 set dummy $ac_cv_prog_CC
4272 shift
4273 if test $# != 0; then
4274 # We chose a different compiler from the bogus one.
4275 # However, it has the same basename, so the bogon will be chosen
4276 # first if we set CC to just the basename; use the full file name.
4277 shift
4278 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4279 fi
4280 fi
4281 fi ;;
4282 esac
4283 fi
4284 CC=$ac_cv_prog_CC
4285 if test -n "$CC"; then
4286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4287 printf "%s\n" "$CC" >&6; }
4288 else
4289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4290 printf "%s\n" "no" >&6; }
4291 fi
4292
4293
4294 fi
4295 if test -z "$CC"; then
4296 if test -n "$ac_tool_prefix"; then
4297 for ac_prog in cl.exe
4298 do
4299 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4300 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4302 printf %s "checking for $ac_word... " >&6; }
4303 if test ${ac_cv_prog_CC+y}
4304 then :
4305 printf %s "(cached) " >&6
4306 else case e in #(
4307 e) if test -n "$CC"; then
4308 ac_cv_prog_CC="$CC" # Let the user override the test.
4309 else
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 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4322 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4323 break 2
4324 fi
4325 done
4326 done
4327 IFS=$as_save_IFS
4328
4329 fi ;;
4330 esac
4331 fi
4332 CC=$ac_cv_prog_CC
4333 if test -n "$CC"; then
4334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4335 printf "%s\n" "$CC" >&6; }
4336 else
4337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4338 printf "%s\n" "no" >&6; }
4339 fi
4340
4341
4342 test -n "$CC" && break
4343 done
4344 fi
4345 if test -z "$CC"; then
4346 ac_ct_CC=$CC
4347 for ac_prog in cl.exe
4348 do
4349 # Extract the first word of "$ac_prog", so it can be a program name with args.
4350 set dummy $ac_prog; ac_word=$2
4351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4352 printf %s "checking for $ac_word... " >&6; }
4353 if test ${ac_cv_prog_ac_ct_CC+y}
4354 then :
4355 printf %s "(cached) " >&6
4356 else case e in #(
4357 e) if test -n "$ac_ct_CC"; then
4358 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4359 else
4360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4361 for as_dir in $PATH
4362 do
4363 IFS=$as_save_IFS
4364 case $as_dir in #(((
4365 '') as_dir=./ ;;
4366 */) ;;
4367 *) as_dir=$as_dir/ ;;
4368 esac
4369 for ac_exec_ext in '' $ac_executable_extensions; do
4370 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4371 ac_cv_prog_ac_ct_CC="$ac_prog"
4372 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4373 break 2
4374 fi
4375 done
4376 done
4377 IFS=$as_save_IFS
4378
4379 fi ;;
4380 esac
4381 fi
4382 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4383 if test -n "$ac_ct_CC"; then
4384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4385 printf "%s\n" "$ac_ct_CC" >&6; }
4386 else
4387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4388 printf "%s\n" "no" >&6; }
4389 fi
4390
4391
4392 test -n "$ac_ct_CC" && break
4393 done
4394
4395 if test "x$ac_ct_CC" = x; then
4396 CC=""
4397 else
4398 case $cross_compiling:$ac_tool_warned in
4399 yes:)
4400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4401 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4402 ac_tool_warned=yes ;;
4403 esac
4404 CC=$ac_ct_CC
4405 fi
4406 fi
4407
4408 fi
4409 if test -z "$CC"; then
4410 if test -n "$ac_tool_prefix"; then
4411 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4412 set dummy ${ac_tool_prefix}clang; ac_word=$2
4413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4414 printf %s "checking for $ac_word... " >&6; }
4415 if test ${ac_cv_prog_CC+y}
4416 then :
4417 printf %s "(cached) " >&6
4418 else case e in #(
4419 e) if test -n "$CC"; then
4420 ac_cv_prog_CC="$CC" # Let the user override the test.
4421 else
4422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4423 for as_dir in $PATH
4424 do
4425 IFS=$as_save_IFS
4426 case $as_dir in #(((
4427 '') as_dir=./ ;;
4428 */) ;;
4429 *) as_dir=$as_dir/ ;;
4430 esac
4431 for ac_exec_ext in '' $ac_executable_extensions; do
4432 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4433 ac_cv_prog_CC="${ac_tool_prefix}clang"
4434 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4435 break 2
4436 fi
4437 done
4438 done
4439 IFS=$as_save_IFS
4440
4441 fi ;;
4442 esac
4443 fi
4444 CC=$ac_cv_prog_CC
4445 if test -n "$CC"; then
4446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4447 printf "%s\n" "$CC" >&6; }
4448 else
4449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4450 printf "%s\n" "no" >&6; }
4451 fi
4452
4453
4454 fi
4455 if test -z "$ac_cv_prog_CC"; then
4456 ac_ct_CC=$CC
4457 # Extract the first word of "clang", so it can be a program name with args.
4458 set dummy clang; ac_word=$2
4459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4460 printf %s "checking for $ac_word... " >&6; }
4461 if test ${ac_cv_prog_ac_ct_CC+y}
4462 then :
4463 printf %s "(cached) " >&6
4464 else case e in #(
4465 e) if test -n "$ac_ct_CC"; then
4466 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4467 else
4468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4469 for as_dir in $PATH
4470 do
4471 IFS=$as_save_IFS
4472 case $as_dir in #(((
4473 '') as_dir=./ ;;
4474 */) ;;
4475 *) as_dir=$as_dir/ ;;
4476 esac
4477 for ac_exec_ext in '' $ac_executable_extensions; do
4478 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4479 ac_cv_prog_ac_ct_CC="clang"
4480 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4481 break 2
4482 fi
4483 done
4484 done
4485 IFS=$as_save_IFS
4486
4487 fi ;;
4488 esac
4489 fi
4490 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4491 if test -n "$ac_ct_CC"; then
4492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4493 printf "%s\n" "$ac_ct_CC" >&6; }
4494 else
4495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4496 printf "%s\n" "no" >&6; }
4497 fi
4498
4499 if test "x$ac_ct_CC" = x; then
4500 CC=""
4501 else
4502 case $cross_compiling:$ac_tool_warned in
4503 yes:)
4504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4505 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4506 ac_tool_warned=yes ;;
4507 esac
4508 CC=$ac_ct_CC
4509 fi
4510 else
4511 CC="$ac_cv_prog_CC"
4512 fi
4513
4514 fi
4515
4516
4517 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4518 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4519 as_fn_error $? "no acceptable C compiler found in \$PATH
4520 See 'config.log' for more details" "$LINENO" 5; }
4521
4522 # Provide some information about the compiler.
4523 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4524 set X $ac_compile
4525 ac_compiler=$2
4526 for ac_option in --version -v -V -qversion -version; do
4527 { { ac_try="$ac_compiler $ac_option >&5"
4528 case "(($ac_try" in
4529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4530 *) ac_try_echo=$ac_try;;
4531 esac
4532 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4533 printf "%s\n" "$ac_try_echo"; } >&5
4534 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4535 ac_status=$?
4536 if test -s conftest.err; then
4537 sed '10a\
4538 ... rest of stderr output deleted ...
4539 10q' conftest.err >conftest.er1
4540 cat conftest.er1 >&5
4541 fi
4542 rm -f conftest.er1 conftest.err
4543 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4544 test $ac_status = 0; }
4545 done
4546
4547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4548 /* end confdefs.h. */
4549
4550 int
4551 main (void)
4552 {
4553
4554 ;
4555 return 0;
4556 }
4557 _ACEOF
4558 ac_clean_files_save=$ac_clean_files
4559 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4560 # Try to create an executable without -o first, disregard a.out.
4561 # It will help us diagnose broken compilers, and finding out an intuition
4562 # of exeext.
4563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4564 printf %s "checking whether the C compiler works... " >&6; }
4565 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4566
4567 # The possible output files:
4568 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4569
4570 ac_rmfiles=
4571 for ac_file in $ac_files
4572 do
4573 case $ac_file in
4574 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4575 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4576 esac
4577 done
4578 rm -f $ac_rmfiles
4579
4580 if { { ac_try="$ac_link_default"
4581 case "(($ac_try" in
4582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4583 *) ac_try_echo=$ac_try;;
4584 esac
4585 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4586 printf "%s\n" "$ac_try_echo"; } >&5
4587 (eval "$ac_link_default") 2>&5
4588 ac_status=$?
4589 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4590 test $ac_status = 0; }
4591 then :
4592 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
4593 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
4594 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4595 # so that the user can short-circuit this test for compilers unknown to
4596 # Autoconf.
4597 for ac_file in $ac_files ''
4598 do
4599 test -f "$ac_file" || continue
4600 case $ac_file in
4601 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4602 ;;
4603 [ab].out )
4604 # We found the default executable, but exeext='' is most
4605 # certainly right.
4606 break;;
4607 *.* )
4608 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4609 then :; else
4610 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4611 fi
4612 # We set ac_cv_exeext here because the later test for it is not
4613 # safe: cross compilers may not add the suffix if given an '-o'
4614 # argument, so we may need to know it at that point already.
4615 # Even if this section looks crufty: it has the advantage of
4616 # actually working.
4617 break;;
4618 * )
4619 break;;
4620 esac
4621 done
4622 test "$ac_cv_exeext" = no && ac_cv_exeext=
4623
4624 else case e in #(
4625 e) ac_file='' ;;
4626 esac
4627 fi
4628 if test -z "$ac_file"
4629 then :
4630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4631 printf "%s\n" "no" >&6; }
4632 printf "%s\n" "$as_me: failed program was:" >&5
4633 sed 's/^/| /' conftest.$ac_ext >&5
4634
4635 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4636 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4637 as_fn_error 77 "C compiler cannot create executables
4638 See 'config.log' for more details" "$LINENO" 5; }
4639 else case e in #(
4640 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4641 printf "%s\n" "yes" >&6; } ;;
4642 esac
4643 fi
4644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4645 printf %s "checking for C compiler default output file name... " >&6; }
4646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4647 printf "%s\n" "$ac_file" >&6; }
4648 ac_exeext=$ac_cv_exeext
4649
4650 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4651 ac_clean_files=$ac_clean_files_save
4652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4653 printf %s "checking for suffix of executables... " >&6; }
4654 if { { ac_try="$ac_link"
4655 case "(($ac_try" in
4656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4657 *) ac_try_echo=$ac_try;;
4658 esac
4659 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4660 printf "%s\n" "$ac_try_echo"; } >&5
4661 (eval "$ac_link") 2>&5
4662 ac_status=$?
4663 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4664 test $ac_status = 0; }
4665 then :
4666 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
4667 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
4668 # work properly (i.e., refer to 'conftest.exe'), while it won't with
4669 # 'rm'.
4670 for ac_file in conftest.exe conftest conftest.*; do
4671 test -f "$ac_file" || continue
4672 case $ac_file in
4673 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4674 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4675 break;;
4676 * ) break;;
4677 esac
4678 done
4679 else case e in #(
4680 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4681 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4682 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4683 See 'config.log' for more details" "$LINENO" 5; } ;;
4684 esac
4685 fi
4686 rm -f conftest conftest$ac_cv_exeext
4687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4688 printf "%s\n" "$ac_cv_exeext" >&6; }
4689
4690 rm -f conftest.$ac_ext
4691 EXEEXT=$ac_cv_exeext
4692 ac_exeext=$EXEEXT
4693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4694 /* end confdefs.h. */
4695 #include <stdio.h>
4696 int
4697 main (void)
4698 {
4699 FILE *f = fopen ("conftest.out", "w");
4700 if (!f)
4701 return 1;
4702 return ferror (f) || fclose (f) != 0;
4703
4704 ;
4705 return 0;
4706 }
4707 _ACEOF
4708 ac_clean_files="$ac_clean_files conftest.out"
4709 # Check that the compiler produces executables we can run. If not, either
4710 # the compiler is broken, or we cross compile.
4711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4712 printf %s "checking whether we are cross compiling... " >&6; }
4713 if test "$cross_compiling" != yes; then
4714 { { ac_try="$ac_link"
4715 case "(($ac_try" in
4716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4717 *) ac_try_echo=$ac_try;;
4718 esac
4719 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4720 printf "%s\n" "$ac_try_echo"; } >&5
4721 (eval "$ac_link") 2>&5
4722 ac_status=$?
4723 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4724 test $ac_status = 0; }
4725 if { ac_try='./conftest$ac_cv_exeext'
4726 { { case "(($ac_try" in
4727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4728 *) ac_try_echo=$ac_try;;
4729 esac
4730 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4731 printf "%s\n" "$ac_try_echo"; } >&5
4732 (eval "$ac_try") 2>&5
4733 ac_status=$?
4734 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4735 test $ac_status = 0; }; }; then
4736 cross_compiling=no
4737 else
4738 if test "$cross_compiling" = maybe; then
4739 cross_compiling=yes
4740 else
4741 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4742 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4743 as_fn_error 77 "cannot run C compiled programs.
4744 If you meant to cross compile, use '--host'.
4745 See 'config.log' for more details" "$LINENO" 5; }
4746 fi
4747 fi
4748 fi
4749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4750 printf "%s\n" "$cross_compiling" >&6; }
4751
4752 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4753 conftest.o conftest.obj conftest.out
4754 ac_clean_files=$ac_clean_files_save
4755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4756 printf %s "checking for suffix of object files... " >&6; }
4757 if test ${ac_cv_objext+y}
4758 then :
4759 printf %s "(cached) " >&6
4760 else case e in #(
4761 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4762 /* end confdefs.h. */
4763
4764 int
4765 main (void)
4766 {
4767
4768 ;
4769 return 0;
4770 }
4771 _ACEOF
4772 rm -f conftest.o conftest.obj
4773 if { { ac_try="$ac_compile"
4774 case "(($ac_try" in
4775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4776 *) ac_try_echo=$ac_try;;
4777 esac
4778 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4779 printf "%s\n" "$ac_try_echo"; } >&5
4780 (eval "$ac_compile") 2>&5
4781 ac_status=$?
4782 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4783 test $ac_status = 0; }
4784 then :
4785 for ac_file in conftest.o conftest.obj conftest.*; do
4786 test -f "$ac_file" || continue;
4787 case $ac_file in
4788 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4789 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4790 break;;
4791 esac
4792 done
4793 else case e in #(
4794 e) printf "%s\n" "$as_me: failed program was:" >&5
4795 sed 's/^/| /' conftest.$ac_ext >&5
4796
4797 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4798 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4799 as_fn_error $? "cannot compute suffix of object files: cannot compile
4800 See 'config.log' for more details" "$LINENO" 5; } ;;
4801 esac
4802 fi
4803 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4804 esac
4805 fi
4806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4807 printf "%s\n" "$ac_cv_objext" >&6; }
4808 OBJEXT=$ac_cv_objext
4809 ac_objext=$OBJEXT
4810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4811 printf %s "checking whether the compiler supports GNU C... " >&6; }
4812 if test ${ac_cv_c_compiler_gnu+y}
4813 then :
4814 printf %s "(cached) " >&6
4815 else case e in #(
4816 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4817 /* end confdefs.h. */
4818
4819 int
4820 main (void)
4821 {
4822 #ifndef __GNUC__
4823 choke me
4824 #endif
4825
4826 ;
4827 return 0;
4828 }
4829 _ACEOF
4830 if ac_fn_c_try_compile "$LINENO"
4831 then :
4832 ac_compiler_gnu=yes
4833 else case e in #(
4834 e) ac_compiler_gnu=no ;;
4835 esac
4836 fi
4837 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4838 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4839 ;;
4840 esac
4841 fi
4842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4843 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4845
4846 if test $ac_compiler_gnu = yes; then
4847 GCC=yes
4848 else
4849 GCC=
4850 fi
4851 ac_test_CFLAGS=${CFLAGS+y}
4852 ac_save_CFLAGS=$CFLAGS
4853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4854 printf %s "checking whether $CC accepts -g... " >&6; }
4855 if test ${ac_cv_prog_cc_g+y}
4856 then :
4857 printf %s "(cached) " >&6
4858 else case e in #(
4859 e) ac_save_c_werror_flag=$ac_c_werror_flag
4860 ac_c_werror_flag=yes
4861 ac_cv_prog_cc_g=no
4862 CFLAGS="-g"
4863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4864 /* end confdefs.h. */
4865
4866 int
4867 main (void)
4868 {
4869
4870 ;
4871 return 0;
4872 }
4873 _ACEOF
4874 if ac_fn_c_try_compile "$LINENO"
4875 then :
4876 ac_cv_prog_cc_g=yes
4877 else case e in #(
4878 e) CFLAGS=""
4879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4880 /* end confdefs.h. */
4881
4882 int
4883 main (void)
4884 {
4885
4886 ;
4887 return 0;
4888 }
4889 _ACEOF
4890 if ac_fn_c_try_compile "$LINENO"
4891 then :
4892
4893 else case e in #(
4894 e) ac_c_werror_flag=$ac_save_c_werror_flag
4895 CFLAGS="-g"
4896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4897 /* end confdefs.h. */
4898
4899 int
4900 main (void)
4901 {
4902
4903 ;
4904 return 0;
4905 }
4906 _ACEOF
4907 if ac_fn_c_try_compile "$LINENO"
4908 then :
4909 ac_cv_prog_cc_g=yes
4910 fi
4911 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4912 esac
4913 fi
4914 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4915 esac
4916 fi
4917 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4918 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4919 esac
4920 fi
4921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4922 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4923 if test $ac_test_CFLAGS; then
4924 CFLAGS=$ac_save_CFLAGS
4925 elif test $ac_cv_prog_cc_g = yes; then
4926 if test "$GCC" = yes; then
4927 CFLAGS="-g -O2"
4928 else
4929 CFLAGS="-g"
4930 fi
4931 else
4932 if test "$GCC" = yes; then
4933 CFLAGS="-O2"
4934 else
4935 CFLAGS=
4936 fi
4937 fi
4938 ac_prog_cc_stdc=no
4939 if test x$ac_prog_cc_stdc = xno
4940 then :
4941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4942 printf %s "checking for $CC option to enable C11 features... " >&6; }
4943 if test ${ac_cv_prog_cc_c11+y}
4944 then :
4945 printf %s "(cached) " >&6
4946 else case e in #(
4947 e) ac_cv_prog_cc_c11=no
4948 ac_save_CC=$CC
4949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4950 /* end confdefs.h. */
4951 $ac_c_conftest_c11_program
4952 _ACEOF
4953 for ac_arg in '' -std=gnu11
4954 do
4955 CC="$ac_save_CC $ac_arg"
4956 if ac_fn_c_try_compile "$LINENO"
4957 then :
4958 ac_cv_prog_cc_c11=$ac_arg
4959 fi
4960 rm -f core conftest.err conftest.$ac_objext conftest.beam
4961 test "x$ac_cv_prog_cc_c11" != "xno" && break
4962 done
4963 rm -f conftest.$ac_ext
4964 CC=$ac_save_CC ;;
4965 esac
4966 fi
4967
4968 if test "x$ac_cv_prog_cc_c11" = xno
4969 then :
4970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4971 printf "%s\n" "unsupported" >&6; }
4972 else case e in #(
4973 e) if test "x$ac_cv_prog_cc_c11" = x
4974 then :
4975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4976 printf "%s\n" "none needed" >&6; }
4977 else case e in #(
4978 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4979 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4980 CC="$CC $ac_cv_prog_cc_c11" ;;
4981 esac
4982 fi
4983 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4984 ac_prog_cc_stdc=c11 ;;
4985 esac
4986 fi
4987 fi
4988 if test x$ac_prog_cc_stdc = xno
4989 then :
4990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4991 printf %s "checking for $CC option to enable C99 features... " >&6; }
4992 if test ${ac_cv_prog_cc_c99+y}
4993 then :
4994 printf %s "(cached) " >&6
4995 else case e in #(
4996 e) ac_cv_prog_cc_c99=no
4997 ac_save_CC=$CC
4998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4999 /* end confdefs.h. */
5000 $ac_c_conftest_c99_program
5001 _ACEOF
5002 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5003 do
5004 CC="$ac_save_CC $ac_arg"
5005 if ac_fn_c_try_compile "$LINENO"
5006 then :
5007 ac_cv_prog_cc_c99=$ac_arg
5008 fi
5009 rm -f core conftest.err conftest.$ac_objext conftest.beam
5010 test "x$ac_cv_prog_cc_c99" != "xno" && break
5011 done
5012 rm -f conftest.$ac_ext
5013 CC=$ac_save_CC ;;
5014 esac
5015 fi
5016
5017 if test "x$ac_cv_prog_cc_c99" = xno
5018 then :
5019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5020 printf "%s\n" "unsupported" >&6; }
5021 else case e in #(
5022 e) if test "x$ac_cv_prog_cc_c99" = x
5023 then :
5024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5025 printf "%s\n" "none needed" >&6; }
5026 else case e in #(
5027 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5028 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5029 CC="$CC $ac_cv_prog_cc_c99" ;;
5030 esac
5031 fi
5032 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5033 ac_prog_cc_stdc=c99 ;;
5034 esac
5035 fi
5036 fi
5037 if test x$ac_prog_cc_stdc = xno
5038 then :
5039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5040 printf %s "checking for $CC option to enable C89 features... " >&6; }
5041 if test ${ac_cv_prog_cc_c89+y}
5042 then :
5043 printf %s "(cached) " >&6
5044 else case e in #(
5045 e) ac_cv_prog_cc_c89=no
5046 ac_save_CC=$CC
5047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5048 /* end confdefs.h. */
5049 $ac_c_conftest_c89_program
5050 _ACEOF
5051 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5052 do
5053 CC="$ac_save_CC $ac_arg"
5054 if ac_fn_c_try_compile "$LINENO"
5055 then :
5056 ac_cv_prog_cc_c89=$ac_arg
5057 fi
5058 rm -f core conftest.err conftest.$ac_objext conftest.beam
5059 test "x$ac_cv_prog_cc_c89" != "xno" && break
5060 done
5061 rm -f conftest.$ac_ext
5062 CC=$ac_save_CC ;;
5063 esac
5064 fi
5065
5066 if test "x$ac_cv_prog_cc_c89" = xno
5067 then :
5068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5069 printf "%s\n" "unsupported" >&6; }
5070 else case e in #(
5071 e) if test "x$ac_cv_prog_cc_c89" = x
5072 then :
5073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5074 printf "%s\n" "none needed" >&6; }
5075 else case e in #(
5076 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5077 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5078 CC="$CC $ac_cv_prog_cc_c89" ;;
5079 esac
5080 fi
5081 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5082 ac_prog_cc_stdc=c89 ;;
5083 esac
5084 fi
5085 fi
5086
5087 ac_ext=c
5088 ac_cpp='$CPP $CPPFLAGS'
5089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5092
5093
5094 ac_ext=c
5095 ac_cpp='$CPP $CPPFLAGS'
5096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5100 printf %s "checking whether $CC understands -c and -o together... " >&6; }
5101 if test ${am_cv_prog_cc_c_o+y}
5102 then :
5103 printf %s "(cached) " >&6
5104 else case e in #(
5105 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5106 /* end confdefs.h. */
5107
5108 int
5109 main (void)
5110 {
5111
5112 ;
5113 return 0;
5114 }
5115 _ACEOF
5116 # Make sure it works both with $CC and with simple cc.
5117 # Following AC_PROG_CC_C_O, we do the test twice because some
5118 # compilers refuse to overwrite an existing .o file with -o,
5119 # though they will create one.
5120 am_cv_prog_cc_c_o=yes
5121 for am_i in 1 2; do
5122 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5123 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5124 ac_status=$?
5125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5126 (exit $ac_status); } \
5127 && test -f conftest2.$ac_objext; then
5128 : OK
5129 else
5130 am_cv_prog_cc_c_o=no
5131 break
5132 fi
5133 done
5134 # aligned with autoconf, so not including core; see bug#72225.
5135 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \
5136 conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \
5137 conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM
5138 unset am_i ;;
5139 esac
5140 fi
5141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5142 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
5143 if test "$am_cv_prog_cc_c_o" != yes; then
5144 # Losing compiler, so override with the script.
5145 # FIXME: It is wrong to rewrite CC.
5146 # But if we don't then we get into trouble of one sort or another.
5147 # A longer-term fix would be to have automake use am__CC in this case,
5148 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5149 CC="$am_aux_dir/compile $CC"
5150 fi
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 DEPDIR="${am__leading_dot}deps"
5158
5159 ac_config_commands="$ac_config_commands depfiles"
5160
5161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
5162 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
5163 cat > confinc.mk << 'END'
5164 am__doit:
5165 @echo this is the am__doit target >confinc.out
5166 .PHONY: am__doit
5167 END
5168 am__include="#"
5169 am__quote=
5170 # BSD make does it like this.
5171 echo '.include "confinc.mk" # ignored' > confmf.BSD
5172 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
5173 echo 'include confinc.mk # ignored' > confmf.GNU
5174 _am_result=no
5175 for s in GNU BSD; do
5176 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
5177 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
5178 ac_status=$?
5179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5180 (exit $ac_status); }
5181 case $?:`cat confinc.out 2>/dev/null` in #(
5182 '0:this is the am__doit target') :
5183 case $s in #(
5184 BSD) :
5185 am__include='.include' am__quote='"' ;; #(
5186 *) :
5187 am__include='include' am__quote='' ;;
5188 esac ;; #(
5189 *) :
5190 ;;
5191 esac
5192 if test "$am__include" != "#"; then
5193 _am_result="yes ($s style)"
5194 break
5195 fi
5196 done
5197 rm -f confinc.* confmf.*
5198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
5199 printf "%s\n" "${_am_result}" >&6; }
5200
5201 # Check whether --enable-dependency-tracking was given.
5202 if test ${enable_dependency_tracking+y}
5203 then :
5204 enableval=$enable_dependency_tracking;
5205 fi
5206
5207 if test "x$enable_dependency_tracking" != xno; then
5208 am_depcomp="$ac_aux_dir/depcomp"
5209 AMDEPBACKSLASH='\'
5210 am__nodep='_no'
5211 fi
5212 if test "x$enable_dependency_tracking" != xno; then
5213 AMDEP_TRUE=
5214 AMDEP_FALSE='#'
5215 else
5216 AMDEP_TRUE='#'
5217 AMDEP_FALSE=
5218 fi
5219
5220
5221
5222 depcc="$CC" am_compiler_list=
5223
5224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5225 printf %s "checking dependency style of $depcc... " >&6; }
5226 if test ${am_cv_CC_dependencies_compiler_type+y}
5227 then :
5228 printf %s "(cached) " >&6
5229 else case e in #(
5230 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5231 # We make a subdir and do the tests there. Otherwise we can end up
5232 # making bogus files that we don't know about and never remove. For
5233 # instance it was reported that on HP-UX the gcc test will end up
5234 # making a dummy file named 'D' -- because '-MD' means "put the output
5235 # in D".
5236 rm -rf conftest.dir
5237 mkdir conftest.dir
5238 # Copy depcomp to subdir because otherwise we won't find it if we're
5239 # using a relative directory.
5240 cp "$am_depcomp" conftest.dir
5241 cd conftest.dir
5242 # We will build objects and dependencies in a subdirectory because
5243 # it helps to detect inapplicable dependency modes. For instance
5244 # both Tru64's cc and ICC support -MD to output dependencies as a
5245 # side effect of compilation, but ICC will put the dependencies in
5246 # the current directory while Tru64 will put them in the object
5247 # directory.
5248 mkdir sub
5249
5250 am_cv_CC_dependencies_compiler_type=none
5251 if test "$am_compiler_list" = ""; then
5252 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5253 fi
5254 am__universal=false
5255 case " $depcc " in #(
5256 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5257 esac
5258
5259 for depmode in $am_compiler_list; do
5260 # Setup a source with many dependencies, because some compilers
5261 # like to wrap large dependency lists on column 80 (with \), and
5262 # we should not choose a depcomp mode which is confused by this.
5263 #
5264 # We need to recreate these files for each test, as the compiler may
5265 # overwrite some of them when testing with obscure command lines.
5266 # This happens at least with the AIX C compiler.
5267 : > sub/conftest.c
5268 for i in 1 2 3 4 5 6; do
5269 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5270 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5271 # Solaris 10 /bin/sh.
5272 echo '/* dummy */' > sub/conftst$i.h
5273 done
5274 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5275
5276 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5277 # mode. It turns out that the SunPro C++ compiler does not properly
5278 # handle '-M -o', and we need to detect this. Also, some Intel
5279 # versions had trouble with output in subdirs.
5280 am__obj=sub/conftest.${OBJEXT-o}
5281 am__minus_obj="-o $am__obj"
5282 case $depmode in
5283 gcc)
5284 # This depmode causes a compiler race in universal mode.
5285 test "$am__universal" = false || continue
5286 ;;
5287 nosideeffect)
5288 # After this tag, mechanisms are not by side-effect, so they'll
5289 # only be used when explicitly requested.
5290 if test "x$enable_dependency_tracking" = xyes; then
5291 continue
5292 else
5293 break
5294 fi
5295 ;;
5296 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5297 # This compiler won't grok '-c -o', but also, the minuso test has
5298 # not run yet. These depmodes are late enough in the game, and
5299 # so weak that their functioning should not be impacted.
5300 am__obj=conftest.${OBJEXT-o}
5301 am__minus_obj=
5302 ;;
5303 none) break ;;
5304 esac
5305 if depmode=$depmode \
5306 source=sub/conftest.c object=$am__obj \
5307 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5308 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5309 >/dev/null 2>conftest.err &&
5310 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5311 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5312 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5313 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5314 # icc doesn't choke on unknown options, it will just issue warnings
5315 # or remarks (even with -Werror). So we grep stderr for any message
5316 # that says an option was ignored or not supported.
5317 # When given -MP, icc 7.0 and 7.1 complain thus:
5318 # icc: Command line warning: ignoring option '-M'; no argument required
5319 # The diagnosis changed in icc 8.0:
5320 # icc: Command line remark: option '-MP' not supported
5321 if (grep 'ignoring option' conftest.err ||
5322 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5323 am_cv_CC_dependencies_compiler_type=$depmode
5324 break
5325 fi
5326 fi
5327 done
5328
5329 cd ..
5330 rm -rf conftest.dir
5331 else
5332 am_cv_CC_dependencies_compiler_type=none
5333 fi
5334 ;;
5335 esac
5336 fi
5337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5338 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5339 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5340
5341 if
5342 test "x$enable_dependency_tracking" != xno \
5343 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5344 am__fastdepCC_TRUE=
5345 am__fastdepCC_FALSE='#'
5346 else
5347 am__fastdepCC_TRUE='#'
5348 am__fastdepCC_FALSE=
5349 fi
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359 ac_ext=cpp
5360 ac_cpp='$CXXCPP $CPPFLAGS'
5361 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5362 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5363 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5364 if test -z "$CXX"; then
5365 if test -n "$CCC"; then
5366 CXX=$CCC
5367 else
5368 if test -n "$ac_tool_prefix"; then
5369 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
5370 do
5371 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5372 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5374 printf %s "checking for $ac_word... " >&6; }
5375 if test ${ac_cv_prog_CXX+y}
5376 then :
5377 printf %s "(cached) " >&6
5378 else case e in #(
5379 e) if test -n "$CXX"; then
5380 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5381 else
5382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5383 for as_dir in $PATH
5384 do
5385 IFS=$as_save_IFS
5386 case $as_dir in #(((
5387 '') as_dir=./ ;;
5388 */) ;;
5389 *) as_dir=$as_dir/ ;;
5390 esac
5391 for ac_exec_ext in '' $ac_executable_extensions; do
5392 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5393 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5394 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5395 break 2
5396 fi
5397 done
5398 done
5399 IFS=$as_save_IFS
5400
5401 fi ;;
5402 esac
5403 fi
5404 CXX=$ac_cv_prog_CXX
5405 if test -n "$CXX"; then
5406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5407 printf "%s\n" "$CXX" >&6; }
5408 else
5409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5410 printf "%s\n" "no" >&6; }
5411 fi
5412
5413
5414 test -n "$CXX" && break
5415 done
5416 fi
5417 if test -z "$CXX"; then
5418 ac_ct_CXX=$CXX
5419 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
5420 do
5421 # Extract the first word of "$ac_prog", so it can be a program name with args.
5422 set dummy $ac_prog; ac_word=$2
5423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5424 printf %s "checking for $ac_word... " >&6; }
5425 if test ${ac_cv_prog_ac_ct_CXX+y}
5426 then :
5427 printf %s "(cached) " >&6
5428 else case e in #(
5429 e) if test -n "$ac_ct_CXX"; then
5430 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5431 else
5432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5433 for as_dir in $PATH
5434 do
5435 IFS=$as_save_IFS
5436 case $as_dir in #(((
5437 '') as_dir=./ ;;
5438 */) ;;
5439 *) as_dir=$as_dir/ ;;
5440 esac
5441 for ac_exec_ext in '' $ac_executable_extensions; do
5442 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5443 ac_cv_prog_ac_ct_CXX="$ac_prog"
5444 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5445 break 2
5446 fi
5447 done
5448 done
5449 IFS=$as_save_IFS
5450
5451 fi ;;
5452 esac
5453 fi
5454 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5455 if test -n "$ac_ct_CXX"; then
5456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5457 printf "%s\n" "$ac_ct_CXX" >&6; }
5458 else
5459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5460 printf "%s\n" "no" >&6; }
5461 fi
5462
5463
5464 test -n "$ac_ct_CXX" && break
5465 done
5466
5467 if test "x$ac_ct_CXX" = x; then
5468 CXX="g++"
5469 else
5470 case $cross_compiling:$ac_tool_warned in
5471 yes:)
5472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5473 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5474 ac_tool_warned=yes ;;
5475 esac
5476 CXX=$ac_ct_CXX
5477 fi
5478 fi
5479
5480 fi
5481 fi
5482 # Provide some information about the compiler.
5483 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5484 set X $ac_compile
5485 ac_compiler=$2
5486 for ac_option in --version -v -V -qversion; do
5487 { { ac_try="$ac_compiler $ac_option >&5"
5488 case "(($ac_try" in
5489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5490 *) ac_try_echo=$ac_try;;
5491 esac
5492 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5493 printf "%s\n" "$ac_try_echo"; } >&5
5494 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5495 ac_status=$?
5496 if test -s conftest.err; then
5497 sed '10a\
5498 ... rest of stderr output deleted ...
5499 10q' conftest.err >conftest.er1
5500 cat conftest.er1 >&5
5501 fi
5502 rm -f conftest.er1 conftest.err
5503 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5504 test $ac_status = 0; }
5505 done
5506
5507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
5508 printf %s "checking whether the compiler supports GNU C++... " >&6; }
5509 if test ${ac_cv_cxx_compiler_gnu+y}
5510 then :
5511 printf %s "(cached) " >&6
5512 else case e in #(
5513 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5514 /* end confdefs.h. */
5515
5516 int
5517 main (void)
5518 {
5519 #ifndef __GNUC__
5520 choke me
5521 #endif
5522
5523 ;
5524 return 0;
5525 }
5526 _ACEOF
5527 if ac_fn_cxx_try_compile "$LINENO"
5528 then :
5529 ac_compiler_gnu=yes
5530 else case e in #(
5531 e) ac_compiler_gnu=no ;;
5532 esac
5533 fi
5534 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5535 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5536 ;;
5537 esac
5538 fi
5539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5540 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
5541 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5542
5543 if test $ac_compiler_gnu = yes; then
5544 GXX=yes
5545 else
5546 GXX=
5547 fi
5548 ac_test_CXXFLAGS=${CXXFLAGS+y}
5549 ac_save_CXXFLAGS=$CXXFLAGS
5550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5551 printf %s "checking whether $CXX accepts -g... " >&6; }
5552 if test ${ac_cv_prog_cxx_g+y}
5553 then :
5554 printf %s "(cached) " >&6
5555 else case e in #(
5556 e) ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5557 ac_cxx_werror_flag=yes
5558 ac_cv_prog_cxx_g=no
5559 CXXFLAGS="-g"
5560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5561 /* end confdefs.h. */
5562
5563 int
5564 main (void)
5565 {
5566
5567 ;
5568 return 0;
5569 }
5570 _ACEOF
5571 if ac_fn_cxx_try_compile "$LINENO"
5572 then :
5573 ac_cv_prog_cxx_g=yes
5574 else case e in #(
5575 e) CXXFLAGS=""
5576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5577 /* end confdefs.h. */
5578
5579 int
5580 main (void)
5581 {
5582
5583 ;
5584 return 0;
5585 }
5586 _ACEOF
5587 if ac_fn_cxx_try_compile "$LINENO"
5588 then :
5589
5590 else case e in #(
5591 e) ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5592 CXXFLAGS="-g"
5593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5594 /* end confdefs.h. */
5595
5596 int
5597 main (void)
5598 {
5599
5600 ;
5601 return 0;
5602 }
5603 _ACEOF
5604 if ac_fn_cxx_try_compile "$LINENO"
5605 then :
5606 ac_cv_prog_cxx_g=yes
5607 fi
5608 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5609 esac
5610 fi
5611 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5612 esac
5613 fi
5614 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5615 ac_cxx_werror_flag=$ac_save_cxx_werror_flag ;;
5616 esac
5617 fi
5618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5619 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
5620 if test $ac_test_CXXFLAGS; then
5621 CXXFLAGS=$ac_save_CXXFLAGS
5622 elif test $ac_cv_prog_cxx_g = yes; then
5623 if test "$GXX" = yes; then
5624 CXXFLAGS="-g -O2"
5625 else
5626 CXXFLAGS="-g"
5627 fi
5628 else
5629 if test "$GXX" = yes; then
5630 CXXFLAGS="-O2"
5631 else
5632 CXXFLAGS=
5633 fi
5634 fi
5635 ac_prog_cxx_stdcxx=no
5636 if test x$ac_prog_cxx_stdcxx = xno
5637 then :
5638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
5639 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
5640 if test ${ac_cv_prog_cxx_cxx11+y}
5641 then :
5642 printf %s "(cached) " >&6
5643 else case e in #(
5644 e) ac_cv_prog_cxx_cxx11=no
5645 ac_save_CXX=$CXX
5646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5647 /* end confdefs.h. */
5648 $ac_cxx_conftest_cxx11_program
5649 _ACEOF
5650 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
5651 do
5652 CXX="$ac_save_CXX $ac_arg"
5653 if ac_fn_cxx_try_compile "$LINENO"
5654 then :
5655 ac_cv_prog_cxx_cxx11=$ac_arg
5656 fi
5657 rm -f core conftest.err conftest.$ac_objext conftest.beam
5658 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
5659 done
5660 rm -f conftest.$ac_ext
5661 CXX=$ac_save_CXX ;;
5662 esac
5663 fi
5664
5665 if test "x$ac_cv_prog_cxx_cxx11" = xno
5666 then :
5667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5668 printf "%s\n" "unsupported" >&6; }
5669 else case e in #(
5670 e) if test "x$ac_cv_prog_cxx_cxx11" = x
5671 then :
5672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5673 printf "%s\n" "none needed" >&6; }
5674 else case e in #(
5675 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
5676 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
5677 CXX="$CXX $ac_cv_prog_cxx_cxx11" ;;
5678 esac
5679 fi
5680 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
5681 ac_prog_cxx_stdcxx=cxx11 ;;
5682 esac
5683 fi
5684 fi
5685 if test x$ac_prog_cxx_stdcxx = xno
5686 then :
5687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
5688 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
5689 if test ${ac_cv_prog_cxx_cxx98+y}
5690 then :
5691 printf %s "(cached) " >&6
5692 else case e in #(
5693 e) ac_cv_prog_cxx_cxx98=no
5694 ac_save_CXX=$CXX
5695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5696 /* end confdefs.h. */
5697 $ac_cxx_conftest_cxx98_program
5698 _ACEOF
5699 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
5700 do
5701 CXX="$ac_save_CXX $ac_arg"
5702 if ac_fn_cxx_try_compile "$LINENO"
5703 then :
5704 ac_cv_prog_cxx_cxx98=$ac_arg
5705 fi
5706 rm -f core conftest.err conftest.$ac_objext conftest.beam
5707 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
5708 done
5709 rm -f conftest.$ac_ext
5710 CXX=$ac_save_CXX ;;
5711 esac
5712 fi
5713
5714 if test "x$ac_cv_prog_cxx_cxx98" = xno
5715 then :
5716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5717 printf "%s\n" "unsupported" >&6; }
5718 else case e in #(
5719 e) if test "x$ac_cv_prog_cxx_cxx98" = x
5720 then :
5721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5722 printf "%s\n" "none needed" >&6; }
5723 else case e in #(
5724 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
5725 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
5726 CXX="$CXX $ac_cv_prog_cxx_cxx98" ;;
5727 esac
5728 fi
5729 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
5730 ac_prog_cxx_stdcxx=cxx98 ;;
5731 esac
5732 fi
5733 fi
5734
5735 ac_ext=c
5736 ac_cpp='$CPP $CPPFLAGS'
5737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5739 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5740
5741 depcc="$CXX" am_compiler_list=
5742
5743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5744 printf %s "checking dependency style of $depcc... " >&6; }
5745 if test ${am_cv_CXX_dependencies_compiler_type+y}
5746 then :
5747 printf %s "(cached) " >&6
5748 else case e in #(
5749 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5750 # We make a subdir and do the tests there. Otherwise we can end up
5751 # making bogus files that we don't know about and never remove. For
5752 # instance it was reported that on HP-UX the gcc test will end up
5753 # making a dummy file named 'D' -- because '-MD' means "put the output
5754 # in D".
5755 rm -rf conftest.dir
5756 mkdir conftest.dir
5757 # Copy depcomp to subdir because otherwise we won't find it if we're
5758 # using a relative directory.
5759 cp "$am_depcomp" conftest.dir
5760 cd conftest.dir
5761 # We will build objects and dependencies in a subdirectory because
5762 # it helps to detect inapplicable dependency modes. For instance
5763 # both Tru64's cc and ICC support -MD to output dependencies as a
5764 # side effect of compilation, but ICC will put the dependencies in
5765 # the current directory while Tru64 will put them in the object
5766 # directory.
5767 mkdir sub
5768
5769 am_cv_CXX_dependencies_compiler_type=none
5770 if test "$am_compiler_list" = ""; then
5771 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5772 fi
5773 am__universal=false
5774 case " $depcc " in #(
5775 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5776 esac
5777
5778 for depmode in $am_compiler_list; do
5779 # Setup a source with many dependencies, because some compilers
5780 # like to wrap large dependency lists on column 80 (with \), and
5781 # we should not choose a depcomp mode which is confused by this.
5782 #
5783 # We need to recreate these files for each test, as the compiler may
5784 # overwrite some of them when testing with obscure command lines.
5785 # This happens at least with the AIX C compiler.
5786 : > sub/conftest.c
5787 for i in 1 2 3 4 5 6; do
5788 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5789 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5790 # Solaris 10 /bin/sh.
5791 echo '/* dummy */' > sub/conftst$i.h
5792 done
5793 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5794
5795 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5796 # mode. It turns out that the SunPro C++ compiler does not properly
5797 # handle '-M -o', and we need to detect this. Also, some Intel
5798 # versions had trouble with output in subdirs.
5799 am__obj=sub/conftest.${OBJEXT-o}
5800 am__minus_obj="-o $am__obj"
5801 case $depmode in
5802 gcc)
5803 # This depmode causes a compiler race in universal mode.
5804 test "$am__universal" = false || continue
5805 ;;
5806 nosideeffect)
5807 # After this tag, mechanisms are not by side-effect, so they'll
5808 # only be used when explicitly requested.
5809 if test "x$enable_dependency_tracking" = xyes; then
5810 continue
5811 else
5812 break
5813 fi
5814 ;;
5815 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5816 # This compiler won't grok '-c -o', but also, the minuso test has
5817 # not run yet. These depmodes are late enough in the game, and
5818 # so weak that their functioning should not be impacted.
5819 am__obj=conftest.${OBJEXT-o}
5820 am__minus_obj=
5821 ;;
5822 none) break ;;
5823 esac
5824 if depmode=$depmode \
5825 source=sub/conftest.c object=$am__obj \
5826 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5827 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5828 >/dev/null 2>conftest.err &&
5829 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5830 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5831 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5832 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5833 # icc doesn't choke on unknown options, it will just issue warnings
5834 # or remarks (even with -Werror). So we grep stderr for any message
5835 # that says an option was ignored or not supported.
5836 # When given -MP, icc 7.0 and 7.1 complain thus:
5837 # icc: Command line warning: ignoring option '-M'; no argument required
5838 # The diagnosis changed in icc 8.0:
5839 # icc: Command line remark: option '-MP' not supported
5840 if (grep 'ignoring option' conftest.err ||
5841 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5842 am_cv_CXX_dependencies_compiler_type=$depmode
5843 break
5844 fi
5845 fi
5846 done
5847
5848 cd ..
5849 rm -rf conftest.dir
5850 else
5851 am_cv_CXX_dependencies_compiler_type=none
5852 fi
5853 ;;
5854 esac
5855 fi
5856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5857 printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
5858 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5859
5860 if
5861 test "x$enable_dependency_tracking" != xno \
5862 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5863 am__fastdepCXX_TRUE=
5864 am__fastdepCXX_FALSE='#'
5865 else
5866 am__fastdepCXX_TRUE='#'
5867 am__fastdepCXX_FALSE=
5868 fi
5869
5870
5871
5872 AM_DEFAULT_VERBOSITY=0
5873
5874
5875
5876
5877 if test -n "$ac_tool_prefix"; then
5878 for ac_prog in ar lib "link -lib"
5879 do
5880 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5881 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5883 printf %s "checking for $ac_word... " >&6; }
5884 if test ${ac_cv_prog_AR+y}
5885 then :
5886 printf %s "(cached) " >&6
5887 else case e in #(
5888 e) if test -n "$AR"; then
5889 ac_cv_prog_AR="$AR" # Let the user override the test.
5890 else
5891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5892 for as_dir in $PATH
5893 do
5894 IFS=$as_save_IFS
5895 case $as_dir in #(((
5896 '') as_dir=./ ;;
5897 */) ;;
5898 *) as_dir=$as_dir/ ;;
5899 esac
5900 for ac_exec_ext in '' $ac_executable_extensions; do
5901 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5902 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5903 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5904 break 2
5905 fi
5906 done
5907 done
5908 IFS=$as_save_IFS
5909
5910 fi ;;
5911 esac
5912 fi
5913 AR=$ac_cv_prog_AR
5914 if test -n "$AR"; then
5915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5916 printf "%s\n" "$AR" >&6; }
5917 else
5918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5919 printf "%s\n" "no" >&6; }
5920 fi
5921
5922
5923 test -n "$AR" && break
5924 done
5925 fi
5926 if test -z "$AR"; then
5927 ac_ct_AR=$AR
5928 for ac_prog in ar lib "link -lib"
5929 do
5930 # Extract the first word of "$ac_prog", so it can be a program name with args.
5931 set dummy $ac_prog; ac_word=$2
5932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5933 printf %s "checking for $ac_word... " >&6; }
5934 if test ${ac_cv_prog_ac_ct_AR+y}
5935 then :
5936 printf %s "(cached) " >&6
5937 else case e in #(
5938 e) if test -n "$ac_ct_AR"; then
5939 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5940 else
5941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5942 for as_dir in $PATH
5943 do
5944 IFS=$as_save_IFS
5945 case $as_dir in #(((
5946 '') as_dir=./ ;;
5947 */) ;;
5948 *) as_dir=$as_dir/ ;;
5949 esac
5950 for ac_exec_ext in '' $ac_executable_extensions; do
5951 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5952 ac_cv_prog_ac_ct_AR="$ac_prog"
5953 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5954 break 2
5955 fi
5956 done
5957 done
5958 IFS=$as_save_IFS
5959
5960 fi ;;
5961 esac
5962 fi
5963 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5964 if test -n "$ac_ct_AR"; then
5965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5966 printf "%s\n" "$ac_ct_AR" >&6; }
5967 else
5968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5969 printf "%s\n" "no" >&6; }
5970 fi
5971
5972
5973 test -n "$ac_ct_AR" && break
5974 done
5975
5976 if test "x$ac_ct_AR" = x; then
5977 AR="false"
5978 else
5979 case $cross_compiling:$ac_tool_warned in
5980 yes:)
5981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5982 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5983 ac_tool_warned=yes ;;
5984 esac
5985 AR=$ac_ct_AR
5986 fi
5987 fi
5988
5989 : ${AR=ar}
5990 : ${ARFLAGS=cr}
5991
5992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5993 printf %s "checking the archiver ($AR) interface... " >&6; }
5994 if test ${am_cv_ar_interface+y}
5995 then :
5996 printf %s "(cached) " >&6
5997 else case e in #(
5998 e) ac_ext=c
5999 ac_cpp='$CPP $CPPFLAGS'
6000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6003
6004 am_cv_ar_interface=ar
6005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6006 /* end confdefs.h. */
6007 int some_variable = 0;
6008 _ACEOF
6009 if ac_fn_c_try_compile "$LINENO"
6010 then :
6011 am_ar_try='$AR $ARFLAGS libconftest.a conftest.$ac_objext >&5'
6012 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6013 (eval $am_ar_try) 2>&5
6014 ac_status=$?
6015 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6016 test $ac_status = 0; }
6017 if test "$ac_status" -eq 0; then
6018 am_cv_ar_interface=ar
6019 else
6020 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
6021 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6022 (eval $am_ar_try) 2>&5
6023 ac_status=$?
6024 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6025 test $ac_status = 0; }
6026 if test "$ac_status" -eq 0; then
6027 am_cv_ar_interface=lib
6028 else
6029 am_cv_ar_interface=unknown
6030 fi
6031 fi
6032 rm -f conftest.lib libconftest.a
6033
6034 fi
6035 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6036 ac_ext=c
6037 ac_cpp='$CPP $CPPFLAGS'
6038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6041 ;;
6042 esac
6043 fi
6044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
6045 printf "%s\n" "$am_cv_ar_interface" >&6; }
6046
6047 case $am_cv_ar_interface in
6048 ar)
6049 ;;
6050 lib)
6051 # Microsoft lib, so override with the ar-lib wrapper script.
6052 # FIXME: It is wrong to rewrite AR.
6053 # But if we don't then we get into trouble of one sort or another.
6054 # A longer-term fix would be to have automake use am__AR in this case,
6055 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
6056 # similar.
6057 AR="$am_aux_dir/ar-lib $AR"
6058 ;;
6059 unknown)
6060 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
6061 ;;
6062 esac
6063
6064 case `pwd` in
6065 *\ * | *\ *)
6066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6067 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6068 esac
6069
6070
6071
6072 macro_version='2.5.4'
6073 macro_revision='2.5.4'
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088 ltmain=$ac_aux_dir/ltmain.sh
6089
6090
6091
6092 # Make sure we can run config.sub.
6093 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
6094 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
6095
6096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6097 printf %s "checking build system type... " >&6; }
6098 if test ${ac_cv_build+y}
6099 then :
6100 printf %s "(cached) " >&6
6101 else case e in #(
6102 e) ac_build_alias=$build_alias
6103 test "x$ac_build_alias" = x &&
6104 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
6105 test "x$ac_build_alias" = x &&
6106 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6107 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
6108 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
6109 ;;
6110 esac
6111 fi
6112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6113 printf "%s\n" "$ac_cv_build" >&6; }
6114 case $ac_cv_build in
6115 *-*-*) ;;
6116 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6117 esac
6118 build=$ac_cv_build
6119 ac_save_IFS=$IFS; IFS='-'
6120 set x $ac_cv_build
6121 shift
6122 build_cpu=$1
6123 build_vendor=$2
6124 shift; shift
6125 # Remember, the first character of IFS is used to create $*,
6126 # except with old shells:
6127 build_os=$*
6128 IFS=$ac_save_IFS
6129 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6130
6131
6132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6133 printf %s "checking host system type... " >&6; }
6134 if test ${ac_cv_host+y}
6135 then :
6136 printf %s "(cached) " >&6
6137 else case e in #(
6138 e) if test "x$host_alias" = x; then
6139 ac_cv_host=$ac_cv_build
6140 else
6141 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
6142 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
6143 fi
6144 ;;
6145 esac
6146 fi
6147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6148 printf "%s\n" "$ac_cv_host" >&6; }
6149 case $ac_cv_host in
6150 *-*-*) ;;
6151 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6152 esac
6153 host=$ac_cv_host
6154 ac_save_IFS=$IFS; IFS='-'
6155 set x $ac_cv_host
6156 shift
6157 host_cpu=$1
6158 host_vendor=$2
6159 shift; shift
6160 # Remember, the first character of IFS is used to create $*,
6161 # except with old shells:
6162 host_os=$*
6163 IFS=$ac_save_IFS
6164 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6165
6166
6167 # Backslashify metacharacters that are still active within
6168 # double-quoted strings.
6169 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6170
6171 # Same as above, but do not quote variable references.
6172 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6173
6174 # Sed substitution to delay expansion of an escaped shell variable in a
6175 # double_quote_subst'ed string.
6176 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6177
6178 # Sed substitution to delay expansion of an escaped single quote.
6179 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6180
6181 # Sed substitution to avoid accidental globbing in evaled expressions
6182 no_glob_subst='s/\*/\\\*/g'
6183
6184 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6185 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6186 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6187
6188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6189 printf %s "checking how to print strings... " >&6; }
6190 # Test print first, because it will be a builtin if present.
6191 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6192 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6193 ECHO='print -r --'
6194 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6195 ECHO='printf %s\n'
6196 else
6197 # Use this function as a fallback that always works.
6198 func_fallback_echo ()
6199 {
6200 eval 'cat <<_LTECHO_EOF
6201 $1
6202 _LTECHO_EOF'
6203 }
6204 ECHO='func_fallback_echo'
6205 fi
6206
6207 # func_echo_all arg...
6208 # Invoke $ECHO with all args, space-separated.
6209 func_echo_all ()
6210 {
6211 $ECHO ""
6212 }
6213
6214 case $ECHO in
6215 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6216 printf "%s\n" "printf" >&6; } ;;
6217 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6218 printf "%s\n" "print -r" >&6; } ;;
6219 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6220 printf "%s\n" "cat" >&6; } ;;
6221 esac
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6237 printf %s "checking for a sed that does not truncate output... " >&6; }
6238 if test ${ac_cv_path_SED+y}
6239 then :
6240 printf %s "(cached) " >&6
6241 else case e in #(
6242 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6243 for ac_i in 1 2 3 4 5 6 7; do
6244 ac_script="$ac_script$as_nl$ac_script"
6245 done
6246 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6247 { ac_script=; unset ac_script;}
6248 if test -z "$SED"; then
6249 ac_path_SED_found=false
6250 # Loop through the user's path and test for each of PROGNAME-LIST
6251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6252 for as_dir in $PATH
6253 do
6254 IFS=$as_save_IFS
6255 case $as_dir in #(((
6256 '') as_dir=./ ;;
6257 */) ;;
6258 *) as_dir=$as_dir/ ;;
6259 esac
6260 for ac_prog in sed gsed
6261 do
6262 for ac_exec_ext in '' $ac_executable_extensions; do
6263 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
6264 as_fn_executable_p "$ac_path_SED" || continue
6265 # Check for GNU ac_path_SED and select it if it is found.
6266 # Check for GNU $ac_path_SED
6267 case `"$ac_path_SED" --version 2>&1` in #(
6268 *GNU*)
6269 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6270 #(
6271 *)
6272 ac_count=0
6273 printf %s 0123456789 >"conftest.in"
6274 while :
6275 do
6276 cat "conftest.in" "conftest.in" >"conftest.tmp"
6277 mv "conftest.tmp" "conftest.in"
6278 cp "conftest.in" "conftest.nl"
6279 printf "%s\n" '' >> "conftest.nl"
6280 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6281 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6282 as_fn_arith $ac_count + 1 && ac_count=$as_val
6283 if test $ac_count -gt ${ac_path_SED_max-0}; then
6284 # Best one so far, save it but keep looking for a better one
6285 ac_cv_path_SED="$ac_path_SED"
6286 ac_path_SED_max=$ac_count
6287 fi
6288 # 10*(2^10) chars as input seems more than enough
6289 test $ac_count -gt 10 && break
6290 done
6291 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6292 esac
6293
6294 $ac_path_SED_found && break 3
6295 done
6296 done
6297 done
6298 IFS=$as_save_IFS
6299 if test -z "$ac_cv_path_SED"; then
6300 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6301 fi
6302 else
6303 ac_cv_path_SED=$SED
6304 fi
6305 ;;
6306 esac
6307 fi
6308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6309 printf "%s\n" "$ac_cv_path_SED" >&6; }
6310 SED="$ac_cv_path_SED"
6311 rm -f conftest.sed
6312
6313 test -z "$SED" && SED=sed
6314 Xsed="$SED -e 1s/^X//"
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6327 printf %s "checking for grep that handles long lines and -e... " >&6; }
6328 if test ${ac_cv_path_GREP+y}
6329 then :
6330 printf %s "(cached) " >&6
6331 else case e in #(
6332 e) if test -z "$GREP"; then
6333 ac_path_GREP_found=false
6334 # Loop through the user's path and test for each of PROGNAME-LIST
6335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6336 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6337 do
6338 IFS=$as_save_IFS
6339 case $as_dir in #(((
6340 '') as_dir=./ ;;
6341 */) ;;
6342 *) as_dir=$as_dir/ ;;
6343 esac
6344 for ac_prog in grep ggrep
6345 do
6346 for ac_exec_ext in '' $ac_executable_extensions; do
6347 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
6348 as_fn_executable_p "$ac_path_GREP" || continue
6349 # Check for GNU ac_path_GREP and select it if it is found.
6350 # Check for GNU $ac_path_GREP
6351 case `"$ac_path_GREP" --version 2>&1` in #(
6352 *GNU*)
6353 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6354 #(
6355 *)
6356 ac_count=0
6357 printf %s 0123456789 >"conftest.in"
6358 while :
6359 do
6360 cat "conftest.in" "conftest.in" >"conftest.tmp"
6361 mv "conftest.tmp" "conftest.in"
6362 cp "conftest.in" "conftest.nl"
6363 printf "%s\n" 'GREP' >> "conftest.nl"
6364 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6365 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6366 as_fn_arith $ac_count + 1 && ac_count=$as_val
6367 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6368 # Best one so far, save it but keep looking for a better one
6369 ac_cv_path_GREP="$ac_path_GREP"
6370 ac_path_GREP_max=$ac_count
6371 fi
6372 # 10*(2^10) chars as input seems more than enough
6373 test $ac_count -gt 10 && break
6374 done
6375 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6376 esac
6377
6378 $ac_path_GREP_found && break 3
6379 done
6380 done
6381 done
6382 IFS=$as_save_IFS
6383 if test -z "$ac_cv_path_GREP"; then
6384 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6385 fi
6386 else
6387 ac_cv_path_GREP=$GREP
6388 fi
6389 ;;
6390 esac
6391 fi
6392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6393 printf "%s\n" "$ac_cv_path_GREP" >&6; }
6394 GREP="$ac_cv_path_GREP"
6395
6396
6397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6398 printf %s "checking for egrep... " >&6; }
6399 if test ${ac_cv_path_EGREP+y}
6400 then :
6401 printf %s "(cached) " >&6
6402 else case e in #(
6403 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6404 then ac_cv_path_EGREP="$GREP -E"
6405 else
6406 if test -z "$EGREP"; then
6407 ac_path_EGREP_found=false
6408 # Loop through the user's path and test for each of PROGNAME-LIST
6409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6410 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6411 do
6412 IFS=$as_save_IFS
6413 case $as_dir in #(((
6414 '') as_dir=./ ;;
6415 */) ;;
6416 *) as_dir=$as_dir/ ;;
6417 esac
6418 for ac_prog in egrep
6419 do
6420 for ac_exec_ext in '' $ac_executable_extensions; do
6421 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
6422 as_fn_executable_p "$ac_path_EGREP" || continue
6423 # Check for GNU ac_path_EGREP and select it if it is found.
6424 # Check for GNU $ac_path_EGREP
6425 case `"$ac_path_EGREP" --version 2>&1` in #(
6426 *GNU*)
6427 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6428 #(
6429 *)
6430 ac_count=0
6431 printf %s 0123456789 >"conftest.in"
6432 while :
6433 do
6434 cat "conftest.in" "conftest.in" >"conftest.tmp"
6435 mv "conftest.tmp" "conftest.in"
6436 cp "conftest.in" "conftest.nl"
6437 printf "%s\n" 'EGREP' >> "conftest.nl"
6438 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6439 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6440 as_fn_arith $ac_count + 1 && ac_count=$as_val
6441 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6442 # Best one so far, save it but keep looking for a better one
6443 ac_cv_path_EGREP="$ac_path_EGREP"
6444 ac_path_EGREP_max=$ac_count
6445 fi
6446 # 10*(2^10) chars as input seems more than enough
6447 test $ac_count -gt 10 && break
6448 done
6449 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6450 esac
6451
6452 $ac_path_EGREP_found && break 3
6453 done
6454 done
6455 done
6456 IFS=$as_save_IFS
6457 if test -z "$ac_cv_path_EGREP"; then
6458 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6459 fi
6460 else
6461 ac_cv_path_EGREP=$EGREP
6462 fi
6463
6464 fi ;;
6465 esac
6466 fi
6467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6468 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
6469 EGREP="$ac_cv_path_EGREP"
6470
6471 EGREP_TRADITIONAL=$EGREP
6472 ac_cv_path_EGREP_TRADITIONAL=$EGREP
6473
6474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6475 printf %s "checking for fgrep... " >&6; }
6476 if test ${ac_cv_path_FGREP+y}
6477 then :
6478 printf %s "(cached) " >&6
6479 else case e in #(
6480 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6481 then ac_cv_path_FGREP="$GREP -F"
6482 else
6483 if test -z "$FGREP"; then
6484 ac_path_FGREP_found=false
6485 # Loop through the user's path and test for each of PROGNAME-LIST
6486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6487 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6488 do
6489 IFS=$as_save_IFS
6490 case $as_dir in #(((
6491 '') as_dir=./ ;;
6492 */) ;;
6493 *) as_dir=$as_dir/ ;;
6494 esac
6495 for ac_prog in fgrep
6496 do
6497 for ac_exec_ext in '' $ac_executable_extensions; do
6498 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
6499 as_fn_executable_p "$ac_path_FGREP" || continue
6500 # Check for GNU ac_path_FGREP and select it if it is found.
6501 # Check for GNU $ac_path_FGREP
6502 case `"$ac_path_FGREP" --version 2>&1` in #(
6503 *GNU*)
6504 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6505 #(
6506 *)
6507 ac_count=0
6508 printf %s 0123456789 >"conftest.in"
6509 while :
6510 do
6511 cat "conftest.in" "conftest.in" >"conftest.tmp"
6512 mv "conftest.tmp" "conftest.in"
6513 cp "conftest.in" "conftest.nl"
6514 printf "%s\n" 'FGREP' >> "conftest.nl"
6515 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6516 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6517 as_fn_arith $ac_count + 1 && ac_count=$as_val
6518 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6519 # Best one so far, save it but keep looking for a better one
6520 ac_cv_path_FGREP="$ac_path_FGREP"
6521 ac_path_FGREP_max=$ac_count
6522 fi
6523 # 10*(2^10) chars as input seems more than enough
6524 test $ac_count -gt 10 && break
6525 done
6526 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6527 esac
6528
6529 $ac_path_FGREP_found && break 3
6530 done
6531 done
6532 done
6533 IFS=$as_save_IFS
6534 if test -z "$ac_cv_path_FGREP"; then
6535 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6536 fi
6537 else
6538 ac_cv_path_FGREP=$FGREP
6539 fi
6540
6541 fi ;;
6542 esac
6543 fi
6544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6545 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
6546 FGREP="$ac_cv_path_FGREP"
6547
6548
6549 test -z "$GREP" && GREP=grep
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569 # Check whether --with-gnu-ld was given.
6570 if test ${with_gnu_ld+y}
6571 then :
6572 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6573 else case e in #(
6574 e) with_gnu_ld=no ;;
6575 esac
6576 fi
6577
6578 ac_prog=ld
6579 if test yes = "$GCC"; then
6580 # Check if gcc -print-prog-name=ld gives a path.
6581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6582 printf %s "checking for ld used by $CC... " >&6; }
6583 case $host in
6584 *-*-mingw* | *-*-windows*)
6585 # gcc leaves a trailing carriage return, which upsets mingw
6586 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6587 *)
6588 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6589 esac
6590 case $ac_prog in
6591 # Accept absolute paths.
6592 [\\/]* | ?:[\\/]*)
6593 re_direlt='/[^/][^/]*/\.\./'
6594 # Canonicalize the pathname of ld
6595 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6596 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6597 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6598 done
6599 test -z "$LD" && LD=$ac_prog
6600 ;;
6601 "")
6602 # If it fails, then pretend we aren't using GCC.
6603 ac_prog=ld
6604 ;;
6605 *)
6606 # If it is relative, then search for the first ld in PATH.
6607 with_gnu_ld=unknown
6608 ;;
6609 esac
6610 elif test yes = "$with_gnu_ld"; then
6611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6612 printf %s "checking for GNU ld... " >&6; }
6613 else
6614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6615 printf %s "checking for non-GNU ld... " >&6; }
6616 fi
6617 if test ${lt_cv_path_LD+y}
6618 then :
6619 printf %s "(cached) " >&6
6620 else case e in #(
6621 e) if test -z "$LD"; then
6622 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6623 for ac_dir in $PATH; do
6624 IFS=$lt_save_ifs
6625 test -z "$ac_dir" && ac_dir=.
6626 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6627 lt_cv_path_LD=$ac_dir/$ac_prog
6628 # Check to see if the program is GNU ld. I'd rather use --version,
6629 # but apparently some variants of GNU ld only accept -v.
6630 # Break only if it was the GNU/non-GNU ld that we prefer.
6631 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6632 *GNU* | *'with BFD'*)
6633 test no != "$with_gnu_ld" && break
6634 ;;
6635 *)
6636 test yes != "$with_gnu_ld" && break
6637 ;;
6638 esac
6639 fi
6640 done
6641 IFS=$lt_save_ifs
6642 else
6643 lt_cv_path_LD=$LD # Let the user override the test with a path.
6644 fi ;;
6645 esac
6646 fi
6647
6648 LD=$lt_cv_path_LD
6649 if test -n "$LD"; then
6650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6651 printf "%s\n" "$LD" >&6; }
6652 else
6653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6654 printf "%s\n" "no" >&6; }
6655 fi
6656 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6658 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
6659 if test ${lt_cv_prog_gnu_ld+y}
6660 then :
6661 printf %s "(cached) " >&6
6662 else case e in #(
6663 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
6664 case `$LD -v 2>&1 </dev/null` in
6665 *GNU* | *'with BFD'*)
6666 lt_cv_prog_gnu_ld=yes
6667 ;;
6668 *)
6669 lt_cv_prog_gnu_ld=no
6670 ;;
6671 esac ;;
6672 esac
6673 fi
6674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6675 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
6676 with_gnu_ld=$lt_cv_prog_gnu_ld
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6687 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6688 if test ${lt_cv_path_NM+y}
6689 then :
6690 printf %s "(cached) " >&6
6691 else case e in #(
6692 e) if test -n "$NM"; then
6693 # Let the user override the test.
6694 lt_cv_path_NM=$NM
6695 else
6696 lt_nm_to_check=${ac_tool_prefix}nm
6697 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6698 lt_nm_to_check="$lt_nm_to_check nm"
6699 fi
6700 for lt_tmp_nm in $lt_nm_to_check; do
6701 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6702 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6703 IFS=$lt_save_ifs
6704 test -z "$ac_dir" && ac_dir=.
6705 tmp_nm=$ac_dir/$lt_tmp_nm
6706 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6707 # Check to see if the nm accepts a BSD-compat flag.
6708 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6709 # nm: unknown option "B" ignored
6710 # Tru64's nm complains that /dev/null is an invalid object file
6711 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6712 case $build_os in
6713 mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
6714 *) lt_bad_file=/dev/null ;;
6715 esac
6716 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
6717 *$lt_bad_file* | *'Invalid file or object type'*)
6718 lt_cv_path_NM="$tmp_nm -B"
6719 break 2
6720 ;;
6721 *)
6722 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
6723 */dev/null*)
6724 lt_cv_path_NM="$tmp_nm -p"
6725 break 2
6726 ;;
6727 *)
6728 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6729 continue # so that we can try to find one that supports BSD flags
6730 ;;
6731 esac
6732 ;;
6733 esac
6734 fi
6735 done
6736 IFS=$lt_save_ifs
6737 done
6738 : ${lt_cv_path_NM=no}
6739 fi ;;
6740 esac
6741 fi
6742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6743 printf "%s\n" "$lt_cv_path_NM" >&6; }
6744 if test no != "$lt_cv_path_NM"; then
6745 NM=$lt_cv_path_NM
6746 else
6747 # Didn't find any BSD compatible name lister, look for dumpbin.
6748 if test -n "$DUMPBIN"; then :
6749 # Let the user override the test.
6750 else
6751 if test -n "$ac_tool_prefix"; then
6752 for ac_prog in dumpbin "link -dump"
6753 do
6754 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6755 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6757 printf %s "checking for $ac_word... " >&6; }
6758 if test ${ac_cv_prog_DUMPBIN+y}
6759 then :
6760 printf %s "(cached) " >&6
6761 else case e in #(
6762 e) if test -n "$DUMPBIN"; then
6763 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6764 else
6765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6766 for as_dir in $PATH
6767 do
6768 IFS=$as_save_IFS
6769 case $as_dir in #(((
6770 '') as_dir=./ ;;
6771 */) ;;
6772 *) as_dir=$as_dir/ ;;
6773 esac
6774 for ac_exec_ext in '' $ac_executable_extensions; do
6775 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6776 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6777 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6778 break 2
6779 fi
6780 done
6781 done
6782 IFS=$as_save_IFS
6783
6784 fi ;;
6785 esac
6786 fi
6787 DUMPBIN=$ac_cv_prog_DUMPBIN
6788 if test -n "$DUMPBIN"; then
6789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6790 printf "%s\n" "$DUMPBIN" >&6; }
6791 else
6792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6793 printf "%s\n" "no" >&6; }
6794 fi
6795
6796
6797 test -n "$DUMPBIN" && break
6798 done
6799 fi
6800 if test -z "$DUMPBIN"; then
6801 ac_ct_DUMPBIN=$DUMPBIN
6802 for ac_prog in dumpbin "link -dump"
6803 do
6804 # Extract the first word of "$ac_prog", so it can be a program name with args.
6805 set dummy $ac_prog; ac_word=$2
6806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6807 printf %s "checking for $ac_word... " >&6; }
6808 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
6809 then :
6810 printf %s "(cached) " >&6
6811 else case e in #(
6812 e) if test -n "$ac_ct_DUMPBIN"; then
6813 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6814 else
6815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6816 for as_dir in $PATH
6817 do
6818 IFS=$as_save_IFS
6819 case $as_dir in #(((
6820 '') as_dir=./ ;;
6821 */) ;;
6822 *) as_dir=$as_dir/ ;;
6823 esac
6824 for ac_exec_ext in '' $ac_executable_extensions; do
6825 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6826 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6827 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6828 break 2
6829 fi
6830 done
6831 done
6832 IFS=$as_save_IFS
6833
6834 fi ;;
6835 esac
6836 fi
6837 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6838 if test -n "$ac_ct_DUMPBIN"; then
6839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6840 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
6841 else
6842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6843 printf "%s\n" "no" >&6; }
6844 fi
6845
6846
6847 test -n "$ac_ct_DUMPBIN" && break
6848 done
6849
6850 if test "x$ac_ct_DUMPBIN" = x; then
6851 DUMPBIN=":"
6852 else
6853 case $cross_compiling:$ac_tool_warned in
6854 yes:)
6855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6856 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6857 ac_tool_warned=yes ;;
6858 esac
6859 DUMPBIN=$ac_ct_DUMPBIN
6860 fi
6861 fi
6862
6863 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
6864 *COFF*)
6865 DUMPBIN="$DUMPBIN -symbols -headers"
6866 ;;
6867 *)
6868 DUMPBIN=:
6869 ;;
6870 esac
6871 fi
6872
6873 if test : != "$DUMPBIN"; then
6874 NM=$DUMPBIN
6875 fi
6876 fi
6877 test -z "$NM" && NM=nm
6878
6879
6880
6881
6882
6883
6884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6885 printf %s "checking the name lister ($NM) interface... " >&6; }
6886 if test ${lt_cv_nm_interface+y}
6887 then :
6888 printf %s "(cached) " >&6
6889 else case e in #(
6890 e) lt_cv_nm_interface="BSD nm"
6891 echo "int some_variable = 0;" > conftest.$ac_ext
6892 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6893 (eval "$ac_compile" 2>conftest.err)
6894 cat conftest.err >&5
6895 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6896 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6897 cat conftest.err >&5
6898 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6899 cat conftest.out >&5
6900 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6901 lt_cv_nm_interface="MS dumpbin"
6902 fi
6903 rm -f conftest* ;;
6904 esac
6905 fi
6906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6907 printf "%s\n" "$lt_cv_nm_interface" >&6; }
6908
6909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6910 printf %s "checking whether ln -s works... " >&6; }
6911 LN_S=$as_ln_s
6912 if test "$LN_S" = "ln -s"; then
6913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6914 printf "%s\n" "yes" >&6; }
6915 else
6916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6917 printf "%s\n" "no, using $LN_S" >&6; }
6918 fi
6919
6920 # find the maximum length of command line arguments
6921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6922 printf %s "checking the maximum length of command line arguments... " >&6; }
6923 if test ${lt_cv_sys_max_cmd_len+y}
6924 then :
6925 printf %s "(cached) " >&6
6926 else case e in #(
6927 e) i=0
6928 teststring=ABCD
6929
6930 case $build_os in
6931 msdosdjgpp*)
6932 # On DJGPP, this test can blow up pretty badly due to problems in libc
6933 # (any single argument exceeding 2000 bytes causes a buffer overrun
6934 # during glob expansion). Even if it were fixed, the result of this
6935 # check would be larger than it should be.
6936 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6937 ;;
6938
6939 gnu* | ironclad*)
6940 # Under GNU Hurd and Ironclad, this test is not required because there
6941 # is no limit to the length of command line arguments.
6942 # Libtool will interpret -1 as no limit whatsoever
6943 lt_cv_sys_max_cmd_len=-1;
6944 ;;
6945
6946 cygwin* | mingw* | windows* | cegcc*)
6947 # On Win9x/ME, this test blows up -- it succeeds, but takes
6948 # about 5 minutes as the teststring grows exponentially.
6949 # Worse, since 9x/ME are not pre-emptively multitasking,
6950 # you end up with a "frozen" computer, even though with patience
6951 # the test eventually succeeds (with a max line length of 256k).
6952 # Instead, let's just punt: use the minimum linelength reported by
6953 # all of the supported platforms: 8192 (on NT/2K/XP).
6954 lt_cv_sys_max_cmd_len=8192;
6955 ;;
6956
6957 mint*)
6958 # On MiNT this can take a long time and run out of memory.
6959 lt_cv_sys_max_cmd_len=8192;
6960 ;;
6961
6962 amigaos*)
6963 # On AmigaOS with pdksh, this test takes hours, literally.
6964 # So we just punt and use a minimum line length of 8192.
6965 lt_cv_sys_max_cmd_len=8192;
6966 ;;
6967
6968 darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
6969 # This has been around since 386BSD, at least. Likely further.
6970 if test -x /sbin/sysctl; then
6971 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6972 elif test -x /usr/sbin/sysctl; then
6973 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6974 else
6975 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6976 fi
6977 # And add a safety zone
6978 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6979 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6980 ;;
6981
6982 interix*)
6983 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6984 lt_cv_sys_max_cmd_len=196608
6985 ;;
6986
6987 os2*)
6988 # The test takes a long time on OS/2.
6989 lt_cv_sys_max_cmd_len=8192
6990 ;;
6991
6992 osf*)
6993 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6994 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6995 # nice to cause kernel panics so lets avoid the loop below.
6996 # First set a reasonable default.
6997 lt_cv_sys_max_cmd_len=16384
6998 #
6999 if test -x /sbin/sysconfig; then
7000 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7001 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7002 esac
7003 fi
7004 ;;
7005 sco3.2v5*)
7006 lt_cv_sys_max_cmd_len=102400
7007 ;;
7008 sysv5* | sco5v6* | sysv4.2uw2*)
7009 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7010 if test -n "$kargmax"; then
7011 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
7012 else
7013 lt_cv_sys_max_cmd_len=32768
7014 fi
7015 ;;
7016 *)
7017 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7018 if test -n "$lt_cv_sys_max_cmd_len" && \
7019 test undefined != "$lt_cv_sys_max_cmd_len"; then
7020 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7021 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7022 else
7023 # Make teststring a little bigger before we do anything with it.
7024 # a 1K string should be a reasonable start.
7025 for i in 1 2 3 4 5 6 7 8; do
7026 teststring=$teststring$teststring
7027 done
7028 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7029 # If test is not a shell built-in, we'll probably end up computing a
7030 # maximum length that is only half of the actual maximum length, but
7031 # we can't tell.
7032 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
7033 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7034 test 17 != "$i" # 1/2 MB should be enough
7035 do
7036 i=`expr $i + 1`
7037 teststring=$teststring$teststring
7038 done
7039 # Only check the string length outside the loop.
7040 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7041 teststring=
7042 # Add a significant safety factor because C++ compilers can tack on
7043 # massive amounts of additional arguments before passing them to the
7044 # linker. It appears as though 1/2 is a usable value.
7045 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7046 fi
7047 ;;
7048 esac
7049 ;;
7050 esac
7051 fi
7052
7053 if test -n "$lt_cv_sys_max_cmd_len"; then
7054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7055 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
7056 else
7057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
7058 printf "%s\n" "none" >&6; }
7059 fi
7060 max_cmd_len=$lt_cv_sys_max_cmd_len
7061
7062
7063
7064
7065
7066
7067 : ${CP="cp -f"}
7068 : ${MV="mv -f"}
7069 : ${RM="rm -f"}
7070
7071 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7072 lt_unset=unset
7073 else
7074 lt_unset=false
7075 fi
7076
7077
7078
7079
7080
7081 # test EBCDIC or ASCII
7082 case `echo X|tr X '\101'` in
7083 A) # ASCII based system
7084 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7085 lt_SP2NL='tr \040 \012'
7086 lt_NL2SP='tr \015\012 \040\040'
7087 ;;
7088 *) # EBCDIC based system
7089 lt_SP2NL='tr \100 \n'
7090 lt_NL2SP='tr \r\n \100\100'
7091 ;;
7092 esac
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7103 printf %s "checking how to convert $build file names to $host format... " >&6; }
7104 if test ${lt_cv_to_host_file_cmd+y}
7105 then :
7106 printf %s "(cached) " >&6
7107 else case e in #(
7108 e) case $host in
7109 *-*-mingw* )
7110 case $build in
7111 *-*-mingw* | *-*-windows* ) # actually msys
7112 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7113 ;;
7114 *-*-cygwin* )
7115 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7116 ;;
7117 * ) # otherwise, assume *nix
7118 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7119 ;;
7120 esac
7121 ;;
7122 *-*-cygwin* )
7123 case $build in
7124 *-*-mingw* | *-*-windows* ) # actually msys
7125 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7126 ;;
7127 *-*-cygwin* )
7128 lt_cv_to_host_file_cmd=func_convert_file_noop
7129 ;;
7130 * ) # otherwise, assume *nix
7131 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7132 ;;
7133 esac
7134 ;;
7135 * ) # unhandled hosts (and "normal" native builds)
7136 lt_cv_to_host_file_cmd=func_convert_file_noop
7137 ;;
7138 esac
7139 ;;
7140 esac
7141 fi
7142
7143 to_host_file_cmd=$lt_cv_to_host_file_cmd
7144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7145 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
7146
7147
7148
7149
7150
7151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7152 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
7153 if test ${lt_cv_to_tool_file_cmd+y}
7154 then :
7155 printf %s "(cached) " >&6
7156 else case e in #(
7157 e) #assume ordinary cross tools, or native build.
7158 lt_cv_to_tool_file_cmd=func_convert_file_noop
7159 case $host in
7160 *-*-mingw* | *-*-windows* )
7161 case $build in
7162 *-*-mingw* | *-*-windows* ) # actually msys
7163 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7164 ;;
7165 esac
7166 ;;
7167 esac
7168 ;;
7169 esac
7170 fi
7171
7172 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7174 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
7175
7176
7177
7178
7179
7180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7181 printf %s "checking for $LD option to reload object files... " >&6; }
7182 if test ${lt_cv_ld_reload_flag+y}
7183 then :
7184 printf %s "(cached) " >&6
7185 else case e in #(
7186 e) lt_cv_ld_reload_flag='-r' ;;
7187 esac
7188 fi
7189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7190 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
7191 reload_flag=$lt_cv_ld_reload_flag
7192 case $reload_flag in
7193 "" | " "*) ;;
7194 *) reload_flag=" $reload_flag" ;;
7195 esac
7196 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7197 case $host_os in
7198 cygwin* | mingw* | windows* | pw32* | cegcc*)
7199 if test yes != "$GCC"; then
7200 reload_cmds=false
7201 fi
7202 ;;
7203 darwin*)
7204 if test yes = "$GCC"; then
7205 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
7206 else
7207 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7208 fi
7209 ;;
7210 esac
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220 # Extract the first word of "file", so it can be a program name with args.
7221 set dummy file; ac_word=$2
7222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7223 printf %s "checking for $ac_word... " >&6; }
7224 if test ${ac_cv_prog_FILECMD+y}
7225 then :
7226 printf %s "(cached) " >&6
7227 else case e in #(
7228 e) if test -n "$FILECMD"; then
7229 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
7230 else
7231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7232 for as_dir in $PATH
7233 do
7234 IFS=$as_save_IFS
7235 case $as_dir in #(((
7236 '') as_dir=./ ;;
7237 */) ;;
7238 *) as_dir=$as_dir/ ;;
7239 esac
7240 for ac_exec_ext in '' $ac_executable_extensions; do
7241 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7242 ac_cv_prog_FILECMD="file"
7243 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7244 break 2
7245 fi
7246 done
7247 done
7248 IFS=$as_save_IFS
7249
7250 test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":"
7251 fi ;;
7252 esac
7253 fi
7254 FILECMD=$ac_cv_prog_FILECMD
7255 if test -n "$FILECMD"; then
7256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
7257 printf "%s\n" "$FILECMD" >&6; }
7258 else
7259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7260 printf "%s\n" "no" >&6; }
7261 fi
7262
7263
7264
7265
7266
7267
7268
7269
7270 if test -n "$ac_tool_prefix"; then
7271 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7272 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7274 printf %s "checking for $ac_word... " >&6; }
7275 if test ${ac_cv_prog_OBJDUMP+y}
7276 then :
7277 printf %s "(cached) " >&6
7278 else case e in #(
7279 e) if test -n "$OBJDUMP"; then
7280 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7281 else
7282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7283 for as_dir in $PATH
7284 do
7285 IFS=$as_save_IFS
7286 case $as_dir in #(((
7287 '') as_dir=./ ;;
7288 */) ;;
7289 *) as_dir=$as_dir/ ;;
7290 esac
7291 for ac_exec_ext in '' $ac_executable_extensions; do
7292 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7293 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7294 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7295 break 2
7296 fi
7297 done
7298 done
7299 IFS=$as_save_IFS
7300
7301 fi ;;
7302 esac
7303 fi
7304 OBJDUMP=$ac_cv_prog_OBJDUMP
7305 if test -n "$OBJDUMP"; then
7306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7307 printf "%s\n" "$OBJDUMP" >&6; }
7308 else
7309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7310 printf "%s\n" "no" >&6; }
7311 fi
7312
7313
7314 fi
7315 if test -z "$ac_cv_prog_OBJDUMP"; then
7316 ac_ct_OBJDUMP=$OBJDUMP
7317 # Extract the first word of "objdump", so it can be a program name with args.
7318 set dummy objdump; ac_word=$2
7319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7320 printf %s "checking for $ac_word... " >&6; }
7321 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
7322 then :
7323 printf %s "(cached) " >&6
7324 else case e in #(
7325 e) if test -n "$ac_ct_OBJDUMP"; then
7326 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7327 else
7328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7329 for as_dir in $PATH
7330 do
7331 IFS=$as_save_IFS
7332 case $as_dir in #(((
7333 '') as_dir=./ ;;
7334 */) ;;
7335 *) as_dir=$as_dir/ ;;
7336 esac
7337 for ac_exec_ext in '' $ac_executable_extensions; do
7338 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7339 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7340 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7341 break 2
7342 fi
7343 done
7344 done
7345 IFS=$as_save_IFS
7346
7347 fi ;;
7348 esac
7349 fi
7350 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7351 if test -n "$ac_ct_OBJDUMP"; then
7352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7353 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
7354 else
7355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7356 printf "%s\n" "no" >&6; }
7357 fi
7358
7359 if test "x$ac_ct_OBJDUMP" = x; then
7360 OBJDUMP="false"
7361 else
7362 case $cross_compiling:$ac_tool_warned in
7363 yes:)
7364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7365 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7366 ac_tool_warned=yes ;;
7367 esac
7368 OBJDUMP=$ac_ct_OBJDUMP
7369 fi
7370 else
7371 OBJDUMP="$ac_cv_prog_OBJDUMP"
7372 fi
7373
7374 test -z "$OBJDUMP" && OBJDUMP=objdump
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7385 printf %s "checking how to recognize dependent libraries... " >&6; }
7386 if test ${lt_cv_deplibs_check_method+y}
7387 then :
7388 printf %s "(cached) " >&6
7389 else case e in #(
7390 e) lt_cv_file_magic_cmd='$MAGIC_CMD'
7391 lt_cv_file_magic_test_file=
7392 lt_cv_deplibs_check_method='unknown'
7393 # Need to set the preceding variable on all platforms that support
7394 # interlibrary dependencies.
7395 # 'none' -- dependencies not supported.
7396 # 'unknown' -- same as none, but documents that we really don't know.
7397 # 'pass_all' -- all dependencies passed with no checks.
7398 # 'file_magic [[regex]]' -- check by looking for files in library path
7399 # that responds to the $file_magic_cmd with a given extended regex.
7400 # If you have 'file' or equivalent on your system and you're not sure
7401 # whether 'pass_all' will *always* work, you probably want this one.
7402
7403 case $host_os in
7404 aix[4-9]*)
7405 lt_cv_deplibs_check_method=pass_all
7406 ;;
7407
7408 beos*)
7409 lt_cv_deplibs_check_method=pass_all
7410 ;;
7411
7412 bsdi[45]*)
7413 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7414 lt_cv_file_magic_cmd='$FILECMD -L'
7415 lt_cv_file_magic_test_file=/shlib/libc.so
7416 ;;
7417
7418 cygwin*)
7419 # func_win32_libid is a shell function defined in ltmain.sh
7420 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7421 lt_cv_file_magic_cmd='func_win32_libid'
7422 ;;
7423
7424 mingw* | windows* | pw32*)
7425 # Base MSYS/MinGW do not provide the 'file' command needed by
7426 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7427 # unless we find 'file', for example because we are cross-compiling.
7428 if ( file / ) >/dev/null 2>&1; then
7429 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7430 lt_cv_file_magic_cmd='func_win32_libid'
7431 else
7432 # Keep this pattern in sync with the one in func_win32_libid.
7433 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
7434 lt_cv_file_magic_cmd='$OBJDUMP -f'
7435 fi
7436 ;;
7437
7438 cegcc*)
7439 # use the weaker test based on 'objdump'. See mingw*.
7440 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7441 lt_cv_file_magic_cmd='$OBJDUMP -f'
7442 ;;
7443
7444 darwin* | rhapsody*)
7445 lt_cv_deplibs_check_method=pass_all
7446 ;;
7447
7448 freebsd* | dragonfly* | midnightbsd*)
7449 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7450 case $host_cpu in
7451 i*86 )
7452 # Not sure whether the presence of OpenBSD here was a mistake.
7453 # Let's accept both of them until this is cleared up.
7454 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7455 lt_cv_file_magic_cmd=$FILECMD
7456 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7457 ;;
7458 esac
7459 else
7460 lt_cv_deplibs_check_method=pass_all
7461 fi
7462 ;;
7463
7464 haiku*)
7465 lt_cv_deplibs_check_method=pass_all
7466 ;;
7467
7468 hpux10.20* | hpux11*)
7469 lt_cv_file_magic_cmd=$FILECMD
7470 case $host_cpu in
7471 ia64*)
7472 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7473 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7474 ;;
7475 hppa*64*)
7476 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]'
7477 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7478 ;;
7479 *)
7480 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7481 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7482 ;;
7483 esac
7484 ;;
7485
7486 interix[3-9]*)
7487 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7488 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7489 ;;
7490
7491 irix5* | irix6* | nonstopux*)
7492 case $LD in
7493 *-32|*"-32 ") libmagic=32-bit;;
7494 *-n32|*"-n32 ") libmagic=N32;;
7495 *-64|*"-64 ") libmagic=64-bit;;
7496 *) libmagic=never-match;;
7497 esac
7498 lt_cv_deplibs_check_method=pass_all
7499 ;;
7500
7501 # This must be glibc/ELF.
7502 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7503 lt_cv_deplibs_check_method=pass_all
7504 ;;
7505
7506 *-mlibc)
7507 lt_cv_deplibs_check_method=pass_all
7508 ;;
7509
7510 netbsd* | netbsdelf*-gnu)
7511 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7512 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7513 else
7514 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7515 fi
7516 ;;
7517
7518 newos6*)
7519 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7520 lt_cv_file_magic_cmd=$FILECMD
7521 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7522 ;;
7523
7524 *nto* | *qnx*)
7525 lt_cv_deplibs_check_method=pass_all
7526 ;;
7527
7528 openbsd*)
7529 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7530 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7531 else
7532 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7533 fi
7534 ;;
7535
7536 osf3* | osf4* | osf5*)
7537 lt_cv_deplibs_check_method=pass_all
7538 ;;
7539
7540 rdos*)
7541 lt_cv_deplibs_check_method=pass_all
7542 ;;
7543
7544 serenity*)
7545 lt_cv_deplibs_check_method=pass_all
7546 ;;
7547
7548 solaris*)
7549 lt_cv_deplibs_check_method=pass_all
7550 ;;
7551
7552 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7553 lt_cv_deplibs_check_method=pass_all
7554 ;;
7555
7556 sysv4 | sysv4.3*)
7557 case $host_vendor in
7558 motorola)
7559 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]'
7560 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7561 ;;
7562 ncr)
7563 lt_cv_deplibs_check_method=pass_all
7564 ;;
7565 sequent)
7566 lt_cv_file_magic_cmd='/bin/file'
7567 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7568 ;;
7569 sni)
7570 lt_cv_file_magic_cmd='/bin/file'
7571 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7572 lt_cv_file_magic_test_file=/lib/libc.so
7573 ;;
7574 siemens)
7575 lt_cv_deplibs_check_method=pass_all
7576 ;;
7577 pc)
7578 lt_cv_deplibs_check_method=pass_all
7579 ;;
7580 esac
7581 ;;
7582
7583 tpf*)
7584 lt_cv_deplibs_check_method=pass_all
7585 ;;
7586 os2*)
7587 lt_cv_deplibs_check_method=pass_all
7588 ;;
7589 esac
7590 ;;
7591 esac
7592 fi
7593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7594 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
7595
7596 file_magic_glob=
7597 want_nocaseglob=no
7598 if test "$build" = "$host"; then
7599 case $host_os in
7600 mingw* | windows* | pw32*)
7601 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7602 want_nocaseglob=yes
7603 else
7604 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7605 fi
7606 ;;
7607 esac
7608 fi
7609
7610 file_magic_cmd=$lt_cv_file_magic_cmd
7611 deplibs_check_method=$lt_cv_deplibs_check_method
7612 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635 if test -n "$ac_tool_prefix"; then
7636 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7637 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7639 printf %s "checking for $ac_word... " >&6; }
7640 if test ${ac_cv_prog_DLLTOOL+y}
7641 then :
7642 printf %s "(cached) " >&6
7643 else case e in #(
7644 e) if test -n "$DLLTOOL"; then
7645 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7646 else
7647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7648 for as_dir in $PATH
7649 do
7650 IFS=$as_save_IFS
7651 case $as_dir in #(((
7652 '') as_dir=./ ;;
7653 */) ;;
7654 *) as_dir=$as_dir/ ;;
7655 esac
7656 for ac_exec_ext in '' $ac_executable_extensions; do
7657 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7658 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7659 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7660 break 2
7661 fi
7662 done
7663 done
7664 IFS=$as_save_IFS
7665
7666 fi ;;
7667 esac
7668 fi
7669 DLLTOOL=$ac_cv_prog_DLLTOOL
7670 if test -n "$DLLTOOL"; then
7671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7672 printf "%s\n" "$DLLTOOL" >&6; }
7673 else
7674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7675 printf "%s\n" "no" >&6; }
7676 fi
7677
7678
7679 fi
7680 if test -z "$ac_cv_prog_DLLTOOL"; then
7681 ac_ct_DLLTOOL=$DLLTOOL
7682 # Extract the first word of "dlltool", so it can be a program name with args.
7683 set dummy dlltool; ac_word=$2
7684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7685 printf %s "checking for $ac_word... " >&6; }
7686 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
7687 then :
7688 printf %s "(cached) " >&6
7689 else case e in #(
7690 e) if test -n "$ac_ct_DLLTOOL"; then
7691 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7692 else
7693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7694 for as_dir in $PATH
7695 do
7696 IFS=$as_save_IFS
7697 case $as_dir in #(((
7698 '') as_dir=./ ;;
7699 */) ;;
7700 *) as_dir=$as_dir/ ;;
7701 esac
7702 for ac_exec_ext in '' $ac_executable_extensions; do
7703 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7704 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7705 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7706 break 2
7707 fi
7708 done
7709 done
7710 IFS=$as_save_IFS
7711
7712 fi ;;
7713 esac
7714 fi
7715 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7716 if test -n "$ac_ct_DLLTOOL"; then
7717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7718 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
7719 else
7720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7721 printf "%s\n" "no" >&6; }
7722 fi
7723
7724 if test "x$ac_ct_DLLTOOL" = x; then
7725 DLLTOOL="false"
7726 else
7727 case $cross_compiling:$ac_tool_warned in
7728 yes:)
7729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7730 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7731 ac_tool_warned=yes ;;
7732 esac
7733 DLLTOOL=$ac_ct_DLLTOOL
7734 fi
7735 else
7736 DLLTOOL="$ac_cv_prog_DLLTOOL"
7737 fi
7738
7739 test -z "$DLLTOOL" && DLLTOOL=dlltool
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7751 printf %s "checking how to associate runtime and link libraries... " >&6; }
7752 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
7753 then :
7754 printf %s "(cached) " >&6
7755 else case e in #(
7756 e) lt_cv_sharedlib_from_linklib_cmd='unknown'
7757
7758 case $host_os in
7759 cygwin* | mingw* | windows* | pw32* | cegcc*)
7760 # two different shell functions defined in ltmain.sh;
7761 # decide which one to use based on capabilities of $DLLTOOL
7762 case `$DLLTOOL --help 2>&1` in
7763 *--identify-strict*)
7764 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7765 ;;
7766 *)
7767 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7768 ;;
7769 esac
7770 ;;
7771 *)
7772 # fallback: assume linklib IS sharedlib
7773 lt_cv_sharedlib_from_linklib_cmd=$ECHO
7774 ;;
7775 esac
7776 ;;
7777 esac
7778 fi
7779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7780 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7781 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7782 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7783
7784
7785
7786
7787
7788
7789
7790 if test -n "$ac_tool_prefix"; then
7791 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7792 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7794 printf %s "checking for $ac_word... " >&6; }
7795 if test ${ac_cv_prog_RANLIB+y}
7796 then :
7797 printf %s "(cached) " >&6
7798 else case e in #(
7799 e) if test -n "$RANLIB"; then
7800 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7801 else
7802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7803 for as_dir in $PATH
7804 do
7805 IFS=$as_save_IFS
7806 case $as_dir in #(((
7807 '') as_dir=./ ;;
7808 */) ;;
7809 *) as_dir=$as_dir/ ;;
7810 esac
7811 for ac_exec_ext in '' $ac_executable_extensions; do
7812 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7813 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7814 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7815 break 2
7816 fi
7817 done
7818 done
7819 IFS=$as_save_IFS
7820
7821 fi ;;
7822 esac
7823 fi
7824 RANLIB=$ac_cv_prog_RANLIB
7825 if test -n "$RANLIB"; then
7826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7827 printf "%s\n" "$RANLIB" >&6; }
7828 else
7829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7830 printf "%s\n" "no" >&6; }
7831 fi
7832
7833
7834 fi
7835 if test -z "$ac_cv_prog_RANLIB"; then
7836 ac_ct_RANLIB=$RANLIB
7837 # Extract the first word of "ranlib", so it can be a program name with args.
7838 set dummy ranlib; ac_word=$2
7839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7840 printf %s "checking for $ac_word... " >&6; }
7841 if test ${ac_cv_prog_ac_ct_RANLIB+y}
7842 then :
7843 printf %s "(cached) " >&6
7844 else case e in #(
7845 e) if test -n "$ac_ct_RANLIB"; then
7846 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7847 else
7848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7849 for as_dir in $PATH
7850 do
7851 IFS=$as_save_IFS
7852 case $as_dir in #(((
7853 '') as_dir=./ ;;
7854 */) ;;
7855 *) as_dir=$as_dir/ ;;
7856 esac
7857 for ac_exec_ext in '' $ac_executable_extensions; do
7858 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7859 ac_cv_prog_ac_ct_RANLIB="ranlib"
7860 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7861 break 2
7862 fi
7863 done
7864 done
7865 IFS=$as_save_IFS
7866
7867 fi ;;
7868 esac
7869 fi
7870 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7871 if test -n "$ac_ct_RANLIB"; then
7872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7873 printf "%s\n" "$ac_ct_RANLIB" >&6; }
7874 else
7875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7876 printf "%s\n" "no" >&6; }
7877 fi
7878
7879 if test "x$ac_ct_RANLIB" = x; then
7880 RANLIB=":"
7881 else
7882 case $cross_compiling:$ac_tool_warned in
7883 yes:)
7884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7885 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7886 ac_tool_warned=yes ;;
7887 esac
7888 RANLIB=$ac_ct_RANLIB
7889 fi
7890 else
7891 RANLIB="$ac_cv_prog_RANLIB"
7892 fi
7893
7894 if test -n "$ac_tool_prefix"; then
7895 for ac_prog in ar
7896 do
7897 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7898 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7900 printf %s "checking for $ac_word... " >&6; }
7901 if test ${ac_cv_prog_AR+y}
7902 then :
7903 printf %s "(cached) " >&6
7904 else case e in #(
7905 e) if test -n "$AR"; then
7906 ac_cv_prog_AR="$AR" # Let the user override the test.
7907 else
7908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7909 for as_dir in $PATH
7910 do
7911 IFS=$as_save_IFS
7912 case $as_dir in #(((
7913 '') as_dir=./ ;;
7914 */) ;;
7915 *) as_dir=$as_dir/ ;;
7916 esac
7917 for ac_exec_ext in '' $ac_executable_extensions; do
7918 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7919 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7920 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7921 break 2
7922 fi
7923 done
7924 done
7925 IFS=$as_save_IFS
7926
7927 fi ;;
7928 esac
7929 fi
7930 AR=$ac_cv_prog_AR
7931 if test -n "$AR"; then
7932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7933 printf "%s\n" "$AR" >&6; }
7934 else
7935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7936 printf "%s\n" "no" >&6; }
7937 fi
7938
7939
7940 test -n "$AR" && break
7941 done
7942 fi
7943 if test -z "$AR"; then
7944 ac_ct_AR=$AR
7945 for ac_prog in ar
7946 do
7947 # Extract the first word of "$ac_prog", so it can be a program name with args.
7948 set dummy $ac_prog; ac_word=$2
7949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7950 printf %s "checking for $ac_word... " >&6; }
7951 if test ${ac_cv_prog_ac_ct_AR+y}
7952 then :
7953 printf %s "(cached) " >&6
7954 else case e in #(
7955 e) if test -n "$ac_ct_AR"; then
7956 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7957 else
7958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7959 for as_dir in $PATH
7960 do
7961 IFS=$as_save_IFS
7962 case $as_dir in #(((
7963 '') as_dir=./ ;;
7964 */) ;;
7965 *) as_dir=$as_dir/ ;;
7966 esac
7967 for ac_exec_ext in '' $ac_executable_extensions; do
7968 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7969 ac_cv_prog_ac_ct_AR="$ac_prog"
7970 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7971 break 2
7972 fi
7973 done
7974 done
7975 IFS=$as_save_IFS
7976
7977 fi ;;
7978 esac
7979 fi
7980 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7981 if test -n "$ac_ct_AR"; then
7982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7983 printf "%s\n" "$ac_ct_AR" >&6; }
7984 else
7985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7986 printf "%s\n" "no" >&6; }
7987 fi
7988
7989
7990 test -n "$ac_ct_AR" && break
7991 done
7992
7993 if test "x$ac_ct_AR" = x; then
7994 AR="false"
7995 else
7996 case $cross_compiling:$ac_tool_warned in
7997 yes:)
7998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7999 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8000 ac_tool_warned=yes ;;
8001 esac
8002 AR=$ac_ct_AR
8003 fi
8004 fi
8005
8006 : ${AR=ar}
8007
8008
8009
8010
8011
8012
8013 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
8014 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
8015 # higher priority because that's what people were doing historically (setting
8016 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
8017 # variable obsoleted/removed.
8018
8019 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
8020 lt_ar_flags=$AR_FLAGS
8021
8022
8023
8024
8025
8026
8027 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
8028 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
8029
8030
8031
8032
8033
8034
8035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8036 printf %s "checking for archiver @FILE support... " >&6; }
8037 if test ${lt_cv_ar_at_file+y}
8038 then :
8039 printf %s "(cached) " >&6
8040 else case e in #(
8041 e) lt_cv_ar_at_file=no
8042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8043 /* end confdefs.h. */
8044
8045 int
8046 main (void)
8047 {
8048
8049 ;
8050 return 0;
8051 }
8052 _ACEOF
8053 if ac_fn_c_try_compile "$LINENO"
8054 then :
8055 echo conftest.$ac_objext > conftest.lst
8056 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8057 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8058 (eval $lt_ar_try) 2>&5
8059 ac_status=$?
8060 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8061 test $ac_status = 0; }
8062 if test 0 -eq "$ac_status"; then
8063 # Ensure the archiver fails upon bogus file names.
8064 rm -f conftest.$ac_objext libconftest.a
8065 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8066 (eval $lt_ar_try) 2>&5
8067 ac_status=$?
8068 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8069 test $ac_status = 0; }
8070 if test 0 -ne "$ac_status"; then
8071 lt_cv_ar_at_file=@
8072 fi
8073 fi
8074 rm -f conftest.* libconftest.a
8075
8076 fi
8077 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8078 ;;
8079 esac
8080 fi
8081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8082 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
8083
8084 if test no = "$lt_cv_ar_at_file"; then
8085 archiver_list_spec=
8086 else
8087 archiver_list_spec=$lt_cv_ar_at_file
8088 fi
8089
8090
8091
8092
8093
8094
8095
8096 if test -n "$ac_tool_prefix"; then
8097 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8098 set dummy ${ac_tool_prefix}strip; ac_word=$2
8099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8100 printf %s "checking for $ac_word... " >&6; }
8101 if test ${ac_cv_prog_STRIP+y}
8102 then :
8103 printf %s "(cached) " >&6
8104 else case e in #(
8105 e) if test -n "$STRIP"; then
8106 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8107 else
8108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8109 for as_dir in $PATH
8110 do
8111 IFS=$as_save_IFS
8112 case $as_dir in #(((
8113 '') as_dir=./ ;;
8114 */) ;;
8115 *) as_dir=$as_dir/ ;;
8116 esac
8117 for ac_exec_ext in '' $ac_executable_extensions; do
8118 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8119 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8120 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8121 break 2
8122 fi
8123 done
8124 done
8125 IFS=$as_save_IFS
8126
8127 fi ;;
8128 esac
8129 fi
8130 STRIP=$ac_cv_prog_STRIP
8131 if test -n "$STRIP"; then
8132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8133 printf "%s\n" "$STRIP" >&6; }
8134 else
8135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8136 printf "%s\n" "no" >&6; }
8137 fi
8138
8139
8140 fi
8141 if test -z "$ac_cv_prog_STRIP"; then
8142 ac_ct_STRIP=$STRIP
8143 # Extract the first word of "strip", so it can be a program name with args.
8144 set dummy strip; ac_word=$2
8145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8146 printf %s "checking for $ac_word... " >&6; }
8147 if test ${ac_cv_prog_ac_ct_STRIP+y}
8148 then :
8149 printf %s "(cached) " >&6
8150 else case e in #(
8151 e) if test -n "$ac_ct_STRIP"; then
8152 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8153 else
8154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8155 for as_dir in $PATH
8156 do
8157 IFS=$as_save_IFS
8158 case $as_dir in #(((
8159 '') as_dir=./ ;;
8160 */) ;;
8161 *) as_dir=$as_dir/ ;;
8162 esac
8163 for ac_exec_ext in '' $ac_executable_extensions; do
8164 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8165 ac_cv_prog_ac_ct_STRIP="strip"
8166 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8167 break 2
8168 fi
8169 done
8170 done
8171 IFS=$as_save_IFS
8172
8173 fi ;;
8174 esac
8175 fi
8176 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8177 if test -n "$ac_ct_STRIP"; then
8178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8179 printf "%s\n" "$ac_ct_STRIP" >&6; }
8180 else
8181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8182 printf "%s\n" "no" >&6; }
8183 fi
8184
8185 if test "x$ac_ct_STRIP" = x; then
8186 STRIP=":"
8187 else
8188 case $cross_compiling:$ac_tool_warned in
8189 yes:)
8190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8191 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8192 ac_tool_warned=yes ;;
8193 esac
8194 STRIP=$ac_ct_STRIP
8195 fi
8196 else
8197 STRIP="$ac_cv_prog_STRIP"
8198 fi
8199
8200 test -z "$STRIP" && STRIP=:
8201
8202
8203
8204
8205
8206
8207
8208 test -z "$RANLIB" && RANLIB=:
8209
8210
8211
8212
8213
8214
8215 # Determine commands to create old-style static archives.
8216 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8217 old_postinstall_cmds='chmod 644 $oldlib'
8218 old_postuninstall_cmds=
8219
8220 if test -n "$RANLIB"; then
8221 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8222 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8223 fi
8224
8225 case $host_os in
8226 darwin*)
8227 lock_old_archive_extraction=yes ;;
8228 *)
8229 lock_old_archive_extraction=no ;;
8230 esac
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270 # If no C compiler was specified, use CC.
8271 LTCC=${LTCC-"$CC"}
8272
8273 # If no C compiler flags were specified, use CFLAGS.
8274 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8275
8276 # Allow CC to be a program name with arguments.
8277 compiler=$CC
8278
8279
8280 # Check for command to grab the raw symbol name followed by C symbol from nm.
8281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8282 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
8283 if test ${lt_cv_sys_global_symbol_pipe+y}
8284 then :
8285 printf %s "(cached) " >&6
8286 else case e in #(
8287 e)
8288 # These are sane defaults that work on at least a few old systems.
8289 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8290
8291 # Character class describing NM global symbol codes.
8292 symcode='[BCDEGRST]'
8293
8294 # Regexp to match symbols that can be accessed directly from C.
8295 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8296
8297 # Define system-specific variables.
8298 case $host_os in
8299 aix*)
8300 symcode='[BCDT]'
8301 ;;
8302 cygwin* | mingw* | windows* | pw32* | cegcc*)
8303 symcode='[ABCDGISTW]'
8304 ;;
8305 hpux*)
8306 if test ia64 = "$host_cpu"; then
8307 symcode='[ABCDEGRST]'
8308 fi
8309 ;;
8310 irix* | nonstopux*)
8311 symcode='[BCDEGRST]'
8312 ;;
8313 osf*)
8314 symcode='[BCDEGQRST]'
8315 ;;
8316 solaris*)
8317 symcode='[BCDRT]'
8318 ;;
8319 sco3.2v5*)
8320 symcode='[DT]'
8321 ;;
8322 sysv4.2uw2*)
8323 symcode='[DT]'
8324 ;;
8325 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8326 symcode='[ABDT]'
8327 ;;
8328 sysv4)
8329 symcode='[DFNSTU]'
8330 ;;
8331 esac
8332
8333 # If we're using GNU nm, then use its standard symbol codes.
8334 case `$NM -V 2>&1` in
8335 *GNU* | *'with BFD'*)
8336 symcode='[ABCDGIRSTW]' ;;
8337 esac
8338
8339 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8340 # Gets list of data symbols to import.
8341 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
8342 # Adjust the below global symbol transforms to fixup imported variables.
8343 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
8344 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
8345 lt_c_name_lib_hook="\
8346 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
8347 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
8348 else
8349 # Disable hooks by default.
8350 lt_cv_sys_global_symbol_to_import=
8351 lt_cdecl_hook=
8352 lt_c_name_hook=
8353 lt_c_name_lib_hook=
8354 fi
8355
8356 # Transform an extracted symbol line into a proper C declaration.
8357 # Some systems (esp. on ia64) link data and code symbols differently,
8358 # so use this general approach.
8359 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
8360 $lt_cdecl_hook\
8361 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
8362 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
8363
8364 # Transform an extracted symbol line into symbol name and symbol address
8365 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
8366 $lt_c_name_hook\
8367 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8368 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
8369
8370 # Transform an extracted symbol line into symbol name with lib prefix and
8371 # symbol address.
8372 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
8373 $lt_c_name_lib_hook\
8374 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8375 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
8376 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
8377
8378 # Handle CRLF in mingw tool chain
8379 opt_cr=
8380 case $build_os in
8381 mingw* | windows*)
8382 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8383 ;;
8384 esac
8385
8386 # Try without a prefix underscore, then with it.
8387 for ac_symprfx in "" "_"; do
8388
8389 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8390 symxfrm="\\1 $ac_symprfx\\2 \\2"
8391
8392 # Write the raw and C identifiers.
8393 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8394 # Fake it for dumpbin and say T for any non-static function,
8395 # D for any global variable and I for any imported variable.
8396 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
8397 # which start with @ or ?.
8398 lt_cv_sys_global_symbol_pipe="$AWK '"\
8399 " {last_section=section; section=\$ 3};"\
8400 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8401 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8402 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8403 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8404 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8405 " \$ 0!~/External *\|/{next};"\
8406 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8407 " {if(hide[section]) next};"\
8408 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8409 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8410 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8411 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8412 " ' prfx=^$ac_symprfx"
8413 else
8414 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8415 fi
8416 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
8417
8418 # Check to see that the pipe works correctly.
8419 pipe_works=no
8420
8421 rm -f conftest*
8422 cat > conftest.$ac_ext <<_LT_EOF
8423 #ifdef __cplusplus
8424 extern "C" {
8425 #endif
8426 char nm_test_var;
8427 void nm_test_func(void);
8428 void nm_test_func(void){}
8429 #ifdef __cplusplus
8430 }
8431 #endif
8432 int main(void){nm_test_var='a';nm_test_func();return(0);}
8433 _LT_EOF
8434
8435 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8436 (eval $ac_compile) 2>&5
8437 ac_status=$?
8438 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8439 test $ac_status = 0; }; then
8440 # Now try to grab the symbols.
8441 nlist=conftest.nm
8442 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
8443 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
8444 # Try sorting and uniquifying the output.
8445 if sort "$nlist" | uniq > "$nlist"T; then
8446 mv -f "$nlist"T "$nlist"
8447 else
8448 rm -f "$nlist"T
8449 fi
8450
8451 # Make sure that we snagged all the symbols we need.
8452 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8453 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8454 cat <<_LT_EOF > conftest.$ac_ext
8455 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8456 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8457 /* DATA imports from DLLs on WIN32 can't be const, because runtime
8458 relocations are performed -- see ld's documentation on pseudo-relocs. */
8459 # define LT_DLSYM_CONST
8460 #elif defined __osf__
8461 /* This system does not cope well with relocations in const data. */
8462 # define LT_DLSYM_CONST
8463 #else
8464 # define LT_DLSYM_CONST const
8465 #endif
8466
8467 #ifdef __cplusplus
8468 extern "C" {
8469 #endif
8470
8471 _LT_EOF
8472 # Now generate the symbol file.
8473 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8474
8475 cat <<_LT_EOF >> conftest.$ac_ext
8476
8477 /* The mapping between symbol names and symbols. */
8478 LT_DLSYM_CONST struct {
8479 const char *name;
8480 void *address;
8481 }
8482 lt__PROGRAM__LTX_preloaded_symbols[] =
8483 {
8484 { "@PROGRAM@", (void *) 0 },
8485 _LT_EOF
8486 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8487 cat <<\_LT_EOF >> conftest.$ac_ext
8488 {0, (void *) 0}
8489 };
8490
8491 /* This works around a problem in FreeBSD linker */
8492 #ifdef FREEBSD_WORKAROUND
8493 static const void *lt_preloaded_setup() {
8494 return lt__PROGRAM__LTX_preloaded_symbols;
8495 }
8496 #endif
8497
8498 #ifdef __cplusplus
8499 }
8500 #endif
8501 _LT_EOF
8502 # Now try linking the two files.
8503 mv conftest.$ac_objext conftstm.$ac_objext
8504 lt_globsym_save_LIBS=$LIBS
8505 lt_globsym_save_CFLAGS=$CFLAGS
8506 LIBS=conftstm.$ac_objext
8507 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8508 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8509 (eval $ac_link) 2>&5
8510 ac_status=$?
8511 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8512 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8513 pipe_works=yes
8514 fi
8515 LIBS=$lt_globsym_save_LIBS
8516 CFLAGS=$lt_globsym_save_CFLAGS
8517 else
8518 echo "cannot find nm_test_func in $nlist" >&5
8519 fi
8520 else
8521 echo "cannot find nm_test_var in $nlist" >&5
8522 fi
8523 else
8524 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8525 fi
8526 else
8527 echo "$progname: failed program was:" >&5
8528 cat conftest.$ac_ext >&5
8529 fi
8530 rm -rf conftest* conftst*
8531
8532 # Do not use the global_symbol_pipe unless it works.
8533 if test yes = "$pipe_works"; then
8534 break
8535 else
8536 lt_cv_sys_global_symbol_pipe=
8537 fi
8538 done
8539 ;;
8540 esac
8541 fi
8542
8543 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8544 lt_cv_sys_global_symbol_to_cdecl=
8545 fi
8546 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8548 printf "%s\n" "failed" >&6; }
8549 else
8550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8551 printf "%s\n" "ok" >&6; }
8552 fi
8553
8554 # Response file support.
8555 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8556 nm_file_list_spec='@'
8557 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8558 nm_file_list_spec='@'
8559 fi
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8598 printf %s "checking for sysroot... " >&6; }
8599
8600 # Check whether --with-sysroot was given.
8601 if test ${with_sysroot+y}
8602 then :
8603 withval=$with_sysroot;
8604 else case e in #(
8605 e) with_sysroot=no ;;
8606 esac
8607 fi
8608
8609
8610 lt_sysroot=
8611 case $with_sysroot in #(
8612 yes)
8613 if test yes = "$GCC"; then
8614 # Trim trailing / since we'll always append absolute paths and we want
8615 # to avoid //, if only for less confusing output for the user.
8616 lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`
8617 fi
8618 ;; #(
8619 /*)
8620 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
8621 ;; #(
8622 no|'')
8623 ;; #(
8624 *)
8625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8626 printf "%s\n" "$with_sysroot" >&6; }
8627 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8628 ;;
8629 esac
8630
8631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8632 printf "%s\n" "${lt_sysroot:-no}" >&6; }
8633
8634
8635
8636
8637
8638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8639 printf %s "checking for a working dd... " >&6; }
8640 if test ${ac_cv_path_lt_DD+y}
8641 then :
8642 printf %s "(cached) " >&6
8643 else case e in #(
8644 e) printf 0123456789abcdef0123456789abcdef >conftest.i
8645 cat conftest.i conftest.i >conftest2.i
8646 : ${lt_DD:=$DD}
8647 if test -z "$lt_DD"; then
8648 ac_path_lt_DD_found=false
8649 # Loop through the user's path and test for each of PROGNAME-LIST
8650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8651 for as_dir in $PATH
8652 do
8653 IFS=$as_save_IFS
8654 case $as_dir in #(((
8655 '') as_dir=./ ;;
8656 */) ;;
8657 *) as_dir=$as_dir/ ;;
8658 esac
8659 for ac_prog in dd
8660 do
8661 for ac_exec_ext in '' $ac_executable_extensions; do
8662 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
8663 as_fn_executable_p "$ac_path_lt_DD" || continue
8664 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8665 cmp -s conftest.i conftest.out \
8666 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8667 fi
8668 $ac_path_lt_DD_found && break 3
8669 done
8670 done
8671 done
8672 IFS=$as_save_IFS
8673 if test -z "$ac_cv_path_lt_DD"; then
8674 :
8675 fi
8676 else
8677 ac_cv_path_lt_DD=$lt_DD
8678 fi
8679
8680 rm -f conftest.i conftest2.i conftest.out ;;
8681 esac
8682 fi
8683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8684 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
8685
8686
8687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8688 printf %s "checking how to truncate binary pipes... " >&6; }
8689 if test ${lt_cv_truncate_bin+y}
8690 then :
8691 printf %s "(cached) " >&6
8692 else case e in #(
8693 e) printf 0123456789abcdef0123456789abcdef >conftest.i
8694 cat conftest.i conftest.i >conftest2.i
8695 lt_cv_truncate_bin=
8696 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8697 cmp -s conftest.i conftest.out \
8698 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8699 fi
8700 rm -f conftest.i conftest2.i conftest.out
8701 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
8702 esac
8703 fi
8704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8705 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
8706
8707
8708
8709
8710
8711
8712
8713 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
8714 func_cc_basename ()
8715 {
8716 for cc_temp in $*""; do
8717 case $cc_temp in
8718 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8719 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8720 \-*) ;;
8721 *) break;;
8722 esac
8723 done
8724 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8725 }
8726
8727 # Check whether --enable-libtool-lock was given.
8728 if test ${enable_libtool_lock+y}
8729 then :
8730 enableval=$enable_libtool_lock;
8731 fi
8732
8733 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8734
8735 # Some flags need to be propagated to the compiler or linker for good
8736 # libtool support.
8737 case $host in
8738 ia64-*-hpux*)
8739 # Find out what ABI is being produced by ac_compile, and set mode
8740 # options accordingly.
8741 echo 'int i;' > conftest.$ac_ext
8742 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8743 (eval $ac_compile) 2>&5
8744 ac_status=$?
8745 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8746 test $ac_status = 0; }; then
8747 case `$FILECMD conftest.$ac_objext` in
8748 *ELF-32*)
8749 HPUX_IA64_MODE=32
8750 ;;
8751 *ELF-64*)
8752 HPUX_IA64_MODE=64
8753 ;;
8754 esac
8755 fi
8756 rm -rf conftest*
8757 ;;
8758 *-*-irix6*)
8759 # Find out what ABI is being produced by ac_compile, and set linker
8760 # options accordingly.
8761 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8762 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8763 (eval $ac_compile) 2>&5
8764 ac_status=$?
8765 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8766 test $ac_status = 0; }; then
8767 if test yes = "$lt_cv_prog_gnu_ld"; then
8768 case `$FILECMD conftest.$ac_objext` in
8769 *32-bit*)
8770 LD="${LD-ld} -melf32bsmip"
8771 ;;
8772 *N32*)
8773 LD="${LD-ld} -melf32bmipn32"
8774 ;;
8775 *64-bit*)
8776 LD="${LD-ld} -melf64bmip"
8777 ;;
8778 esac
8779 else
8780 case `$FILECMD conftest.$ac_objext` in
8781 *32-bit*)
8782 LD="${LD-ld} -32"
8783 ;;
8784 *N32*)
8785 LD="${LD-ld} -n32"
8786 ;;
8787 *64-bit*)
8788 LD="${LD-ld} -64"
8789 ;;
8790 esac
8791 fi
8792 fi
8793 rm -rf conftest*
8794 ;;
8795
8796 mips64*-*linux*)
8797 # Find out what ABI is being produced by ac_compile, and set linker
8798 # options accordingly.
8799 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8800 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8801 (eval $ac_compile) 2>&5
8802 ac_status=$?
8803 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8804 test $ac_status = 0; }; then
8805 emul=elf
8806 case `$FILECMD conftest.$ac_objext` in
8807 *32-bit*)
8808 emul="${emul}32"
8809 ;;
8810 *64-bit*)
8811 emul="${emul}64"
8812 ;;
8813 esac
8814 case `$FILECMD conftest.$ac_objext` in
8815 *MSB*)
8816 emul="${emul}btsmip"
8817 ;;
8818 *LSB*)
8819 emul="${emul}ltsmip"
8820 ;;
8821 esac
8822 case `$FILECMD conftest.$ac_objext` in
8823 *N32*)
8824 emul="${emul}n32"
8825 ;;
8826 esac
8827 LD="${LD-ld} -m $emul"
8828 fi
8829 rm -rf conftest*
8830 ;;
8831
8832 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8833 s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
8834 # Find out what ABI is being produced by ac_compile, and set linker
8835 # options accordingly. Note that the listed cases only cover the
8836 # situations where additional linker options are needed (such as when
8837 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8838 # vice versa); the common cases where no linker options are needed do
8839 # not appear in the list.
8840 echo 'int i;' > conftest.$ac_ext
8841 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8842 (eval $ac_compile) 2>&5
8843 ac_status=$?
8844 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8845 test $ac_status = 0; }; then
8846 case `$FILECMD conftest.o` in
8847 *32-bit*)
8848 case $host in
8849 x86_64-*kfreebsd*-gnu)
8850 LD="${LD-ld} -m elf_i386_fbsd"
8851 ;;
8852 x86_64-*linux*|x86_64-gnu*)
8853 case `$FILECMD conftest.o` in
8854 *x86-64*)
8855 LD="${LD-ld} -m elf32_x86_64"
8856 ;;
8857 *)
8858 LD="${LD-ld} -m elf_i386"
8859 ;;
8860 esac
8861 ;;
8862 powerpc64le-*linux*)
8863 LD="${LD-ld} -m elf32lppclinux"
8864 ;;
8865 powerpc64-*linux*)
8866 LD="${LD-ld} -m elf32ppclinux"
8867 ;;
8868 s390x-*linux*)
8869 LD="${LD-ld} -m elf_s390"
8870 ;;
8871 sparc64-*linux*)
8872 LD="${LD-ld} -m elf32_sparc"
8873 ;;
8874 esac
8875 ;;
8876 *64-bit*)
8877 case $host in
8878 x86_64-*kfreebsd*-gnu)
8879 LD="${LD-ld} -m elf_x86_64_fbsd"
8880 ;;
8881 x86_64-*linux*|x86_64-gnu*)
8882 LD="${LD-ld} -m elf_x86_64"
8883 ;;
8884 powerpcle-*linux*)
8885 LD="${LD-ld} -m elf64lppc"
8886 ;;
8887 powerpc-*linux*)
8888 LD="${LD-ld} -m elf64ppc"
8889 ;;
8890 s390*-*linux*|s390*-*tpf*)
8891 LD="${LD-ld} -m elf64_s390"
8892 ;;
8893 sparc*-*linux*)
8894 LD="${LD-ld} -m elf64_sparc"
8895 ;;
8896 esac
8897 ;;
8898 esac
8899 fi
8900 rm -rf conftest*
8901 ;;
8902
8903 *-*-sco3.2v5*)
8904 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8905 SAVE_CFLAGS=$CFLAGS
8906 CFLAGS="$CFLAGS -belf"
8907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8908 printf %s "checking whether the C compiler needs -belf... " >&6; }
8909 if test ${lt_cv_cc_needs_belf+y}
8910 then :
8911 printf %s "(cached) " >&6
8912 else case e in #(
8913 e) ac_ext=c
8914 ac_cpp='$CPP $CPPFLAGS'
8915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8918
8919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8920 /* end confdefs.h. */
8921
8922 int
8923 main (void)
8924 {
8925
8926 ;
8927 return 0;
8928 }
8929 _ACEOF
8930 if ac_fn_c_try_link "$LINENO"
8931 then :
8932 lt_cv_cc_needs_belf=yes
8933 else case e in #(
8934 e) lt_cv_cc_needs_belf=no ;;
8935 esac
8936 fi
8937 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8938 conftest$ac_exeext conftest.$ac_ext
8939 ac_ext=c
8940 ac_cpp='$CPP $CPPFLAGS'
8941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8944 ;;
8945 esac
8946 fi
8947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8948 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
8949 if test yes != "$lt_cv_cc_needs_belf"; then
8950 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8951 CFLAGS=$SAVE_CFLAGS
8952 fi
8953 ;;
8954 *-*solaris*)
8955 # Find out what ABI is being produced by ac_compile, and set linker
8956 # options accordingly.
8957 echo 'int i;' > conftest.$ac_ext
8958 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8959 (eval $ac_compile) 2>&5
8960 ac_status=$?
8961 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8962 test $ac_status = 0; }; then
8963 case `$FILECMD conftest.o` in
8964 *64-bit*)
8965 case $lt_cv_prog_gnu_ld in
8966 yes*)
8967 case $host in
8968 i?86-*-solaris*|x86_64-*-solaris*)
8969 LD="${LD-ld} -m elf_x86_64"
8970 ;;
8971 sparc*-*-solaris*)
8972 LD="${LD-ld} -m elf64_sparc"
8973 ;;
8974 esac
8975 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8976 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8977 LD=${LD-ld}_sol2
8978 fi
8979 ;;
8980 *)
8981 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8982 LD="${LD-ld} -64"
8983 fi
8984 ;;
8985 esac
8986 ;;
8987 esac
8988 fi
8989 rm -rf conftest*
8990 ;;
8991 esac
8992
8993 need_locks=$enable_libtool_lock
8994
8995 if test -n "$ac_tool_prefix"; then
8996 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8997 set dummy ${ac_tool_prefix}mt; ac_word=$2
8998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8999 printf %s "checking for $ac_word... " >&6; }
9000 if test ${ac_cv_prog_MANIFEST_TOOL+y}
9001 then :
9002 printf %s "(cached) " >&6
9003 else case e in #(
9004 e) if test -n "$MANIFEST_TOOL"; then
9005 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9006 else
9007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9008 for as_dir in $PATH
9009 do
9010 IFS=$as_save_IFS
9011 case $as_dir in #(((
9012 '') as_dir=./ ;;
9013 */) ;;
9014 *) as_dir=$as_dir/ ;;
9015 esac
9016 for ac_exec_ext in '' $ac_executable_extensions; do
9017 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9018 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9019 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9020 break 2
9021 fi
9022 done
9023 done
9024 IFS=$as_save_IFS
9025
9026 fi ;;
9027 esac
9028 fi
9029 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9030 if test -n "$MANIFEST_TOOL"; then
9031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9032 printf "%s\n" "$MANIFEST_TOOL" >&6; }
9033 else
9034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9035 printf "%s\n" "no" >&6; }
9036 fi
9037
9038
9039 fi
9040 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9041 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9042 # Extract the first word of "mt", so it can be a program name with args.
9043 set dummy mt; ac_word=$2
9044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9045 printf %s "checking for $ac_word... " >&6; }
9046 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
9047 then :
9048 printf %s "(cached) " >&6
9049 else case e in #(
9050 e) if test -n "$ac_ct_MANIFEST_TOOL"; then
9051 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9052 else
9053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9054 for as_dir in $PATH
9055 do
9056 IFS=$as_save_IFS
9057 case $as_dir in #(((
9058 '') as_dir=./ ;;
9059 */) ;;
9060 *) as_dir=$as_dir/ ;;
9061 esac
9062 for ac_exec_ext in '' $ac_executable_extensions; do
9063 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9064 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9065 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9066 break 2
9067 fi
9068 done
9069 done
9070 IFS=$as_save_IFS
9071
9072 fi ;;
9073 esac
9074 fi
9075 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9076 if test -n "$ac_ct_MANIFEST_TOOL"; then
9077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9078 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
9079 else
9080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9081 printf "%s\n" "no" >&6; }
9082 fi
9083
9084 if test "x$ac_ct_MANIFEST_TOOL" = x; then
9085 MANIFEST_TOOL=":"
9086 else
9087 case $cross_compiling:$ac_tool_warned in
9088 yes:)
9089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9090 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9091 ac_tool_warned=yes ;;
9092 esac
9093 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9094 fi
9095 else
9096 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9097 fi
9098
9099 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9101 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9102 if test ${lt_cv_path_manifest_tool+y}
9103 then :
9104 printf %s "(cached) " >&6
9105 else case e in #(
9106 e) lt_cv_path_manifest_tool=no
9107 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9108 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9109 cat conftest.err >&5
9110 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9111 lt_cv_path_manifest_tool=yes
9112 fi
9113 rm -f conftest* ;;
9114 esac
9115 fi
9116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5
9117 printf "%s\n" "$lt_cv_path_manifest_tool" >&6; }
9118 if test yes != "$lt_cv_path_manifest_tool"; then
9119 MANIFEST_TOOL=:
9120 fi
9121
9122
9123
9124
9125
9126
9127 case $host_os in
9128 rhapsody* | darwin*)
9129 if test -n "$ac_tool_prefix"; then
9130 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9131 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9133 printf %s "checking for $ac_word... " >&6; }
9134 if test ${ac_cv_prog_DSYMUTIL+y}
9135 then :
9136 printf %s "(cached) " >&6
9137 else case e in #(
9138 e) if test -n "$DSYMUTIL"; then
9139 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9140 else
9141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9142 for as_dir in $PATH
9143 do
9144 IFS=$as_save_IFS
9145 case $as_dir in #(((
9146 '') as_dir=./ ;;
9147 */) ;;
9148 *) as_dir=$as_dir/ ;;
9149 esac
9150 for ac_exec_ext in '' $ac_executable_extensions; do
9151 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9152 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9153 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9154 break 2
9155 fi
9156 done
9157 done
9158 IFS=$as_save_IFS
9159
9160 fi ;;
9161 esac
9162 fi
9163 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9164 if test -n "$DSYMUTIL"; then
9165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9166 printf "%s\n" "$DSYMUTIL" >&6; }
9167 else
9168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9169 printf "%s\n" "no" >&6; }
9170 fi
9171
9172
9173 fi
9174 if test -z "$ac_cv_prog_DSYMUTIL"; then
9175 ac_ct_DSYMUTIL=$DSYMUTIL
9176 # Extract the first word of "dsymutil", so it can be a program name with args.
9177 set dummy dsymutil; ac_word=$2
9178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9179 printf %s "checking for $ac_word... " >&6; }
9180 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
9181 then :
9182 printf %s "(cached) " >&6
9183 else case e in #(
9184 e) if test -n "$ac_ct_DSYMUTIL"; then
9185 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9186 else
9187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9188 for as_dir in $PATH
9189 do
9190 IFS=$as_save_IFS
9191 case $as_dir in #(((
9192 '') as_dir=./ ;;
9193 */) ;;
9194 *) as_dir=$as_dir/ ;;
9195 esac
9196 for ac_exec_ext in '' $ac_executable_extensions; do
9197 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9198 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9199 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9200 break 2
9201 fi
9202 done
9203 done
9204 IFS=$as_save_IFS
9205
9206 fi ;;
9207 esac
9208 fi
9209 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9210 if test -n "$ac_ct_DSYMUTIL"; then
9211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9212 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
9213 else
9214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9215 printf "%s\n" "no" >&6; }
9216 fi
9217
9218 if test "x$ac_ct_DSYMUTIL" = x; then
9219 DSYMUTIL=":"
9220 else
9221 case $cross_compiling:$ac_tool_warned in
9222 yes:)
9223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9224 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9225 ac_tool_warned=yes ;;
9226 esac
9227 DSYMUTIL=$ac_ct_DSYMUTIL
9228 fi
9229 else
9230 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9231 fi
9232
9233 if test -n "$ac_tool_prefix"; then
9234 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9235 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9237 printf %s "checking for $ac_word... " >&6; }
9238 if test ${ac_cv_prog_NMEDIT+y}
9239 then :
9240 printf %s "(cached) " >&6
9241 else case e in #(
9242 e) if test -n "$NMEDIT"; then
9243 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9244 else
9245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9246 for as_dir in $PATH
9247 do
9248 IFS=$as_save_IFS
9249 case $as_dir in #(((
9250 '') as_dir=./ ;;
9251 */) ;;
9252 *) as_dir=$as_dir/ ;;
9253 esac
9254 for ac_exec_ext in '' $ac_executable_extensions; do
9255 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9256 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9257 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9258 break 2
9259 fi
9260 done
9261 done
9262 IFS=$as_save_IFS
9263
9264 fi ;;
9265 esac
9266 fi
9267 NMEDIT=$ac_cv_prog_NMEDIT
9268 if test -n "$NMEDIT"; then
9269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9270 printf "%s\n" "$NMEDIT" >&6; }
9271 else
9272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9273 printf "%s\n" "no" >&6; }
9274 fi
9275
9276
9277 fi
9278 if test -z "$ac_cv_prog_NMEDIT"; then
9279 ac_ct_NMEDIT=$NMEDIT
9280 # Extract the first word of "nmedit", so it can be a program name with args.
9281 set dummy nmedit; ac_word=$2
9282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9283 printf %s "checking for $ac_word... " >&6; }
9284 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
9285 then :
9286 printf %s "(cached) " >&6
9287 else case e in #(
9288 e) if test -n "$ac_ct_NMEDIT"; then
9289 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9290 else
9291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9292 for as_dir in $PATH
9293 do
9294 IFS=$as_save_IFS
9295 case $as_dir in #(((
9296 '') as_dir=./ ;;
9297 */) ;;
9298 *) as_dir=$as_dir/ ;;
9299 esac
9300 for ac_exec_ext in '' $ac_executable_extensions; do
9301 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9302 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9303 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9304 break 2
9305 fi
9306 done
9307 done
9308 IFS=$as_save_IFS
9309
9310 fi ;;
9311 esac
9312 fi
9313 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9314 if test -n "$ac_ct_NMEDIT"; then
9315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9316 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
9317 else
9318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9319 printf "%s\n" "no" >&6; }
9320 fi
9321
9322 if test "x$ac_ct_NMEDIT" = x; then
9323 NMEDIT=":"
9324 else
9325 case $cross_compiling:$ac_tool_warned in
9326 yes:)
9327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9328 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9329 ac_tool_warned=yes ;;
9330 esac
9331 NMEDIT=$ac_ct_NMEDIT
9332 fi
9333 else
9334 NMEDIT="$ac_cv_prog_NMEDIT"
9335 fi
9336
9337 if test -n "$ac_tool_prefix"; then
9338 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9339 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9341 printf %s "checking for $ac_word... " >&6; }
9342 if test ${ac_cv_prog_LIPO+y}
9343 then :
9344 printf %s "(cached) " >&6
9345 else case e in #(
9346 e) if test -n "$LIPO"; then
9347 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9348 else
9349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9350 for as_dir in $PATH
9351 do
9352 IFS=$as_save_IFS
9353 case $as_dir in #(((
9354 '') as_dir=./ ;;
9355 */) ;;
9356 *) as_dir=$as_dir/ ;;
9357 esac
9358 for ac_exec_ext in '' $ac_executable_extensions; do
9359 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9360 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9361 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9362 break 2
9363 fi
9364 done
9365 done
9366 IFS=$as_save_IFS
9367
9368 fi ;;
9369 esac
9370 fi
9371 LIPO=$ac_cv_prog_LIPO
9372 if test -n "$LIPO"; then
9373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9374 printf "%s\n" "$LIPO" >&6; }
9375 else
9376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9377 printf "%s\n" "no" >&6; }
9378 fi
9379
9380
9381 fi
9382 if test -z "$ac_cv_prog_LIPO"; then
9383 ac_ct_LIPO=$LIPO
9384 # Extract the first word of "lipo", so it can be a program name with args.
9385 set dummy lipo; ac_word=$2
9386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9387 printf %s "checking for $ac_word... " >&6; }
9388 if test ${ac_cv_prog_ac_ct_LIPO+y}
9389 then :
9390 printf %s "(cached) " >&6
9391 else case e in #(
9392 e) if test -n "$ac_ct_LIPO"; then
9393 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9394 else
9395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9396 for as_dir in $PATH
9397 do
9398 IFS=$as_save_IFS
9399 case $as_dir in #(((
9400 '') as_dir=./ ;;
9401 */) ;;
9402 *) as_dir=$as_dir/ ;;
9403 esac
9404 for ac_exec_ext in '' $ac_executable_extensions; do
9405 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9406 ac_cv_prog_ac_ct_LIPO="lipo"
9407 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9408 break 2
9409 fi
9410 done
9411 done
9412 IFS=$as_save_IFS
9413
9414 fi ;;
9415 esac
9416 fi
9417 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9418 if test -n "$ac_ct_LIPO"; then
9419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9420 printf "%s\n" "$ac_ct_LIPO" >&6; }
9421 else
9422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9423 printf "%s\n" "no" >&6; }
9424 fi
9425
9426 if test "x$ac_ct_LIPO" = x; then
9427 LIPO=":"
9428 else
9429 case $cross_compiling:$ac_tool_warned in
9430 yes:)
9431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9432 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9433 ac_tool_warned=yes ;;
9434 esac
9435 LIPO=$ac_ct_LIPO
9436 fi
9437 else
9438 LIPO="$ac_cv_prog_LIPO"
9439 fi
9440
9441 if test -n "$ac_tool_prefix"; then
9442 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9443 set dummy ${ac_tool_prefix}otool; ac_word=$2
9444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9445 printf %s "checking for $ac_word... " >&6; }
9446 if test ${ac_cv_prog_OTOOL+y}
9447 then :
9448 printf %s "(cached) " >&6
9449 else case e in #(
9450 e) if test -n "$OTOOL"; then
9451 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9452 else
9453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9454 for as_dir in $PATH
9455 do
9456 IFS=$as_save_IFS
9457 case $as_dir in #(((
9458 '') as_dir=./ ;;
9459 */) ;;
9460 *) as_dir=$as_dir/ ;;
9461 esac
9462 for ac_exec_ext in '' $ac_executable_extensions; do
9463 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9464 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9465 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9466 break 2
9467 fi
9468 done
9469 done
9470 IFS=$as_save_IFS
9471
9472 fi ;;
9473 esac
9474 fi
9475 OTOOL=$ac_cv_prog_OTOOL
9476 if test -n "$OTOOL"; then
9477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9478 printf "%s\n" "$OTOOL" >&6; }
9479 else
9480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9481 printf "%s\n" "no" >&6; }
9482 fi
9483
9484
9485 fi
9486 if test -z "$ac_cv_prog_OTOOL"; then
9487 ac_ct_OTOOL=$OTOOL
9488 # Extract the first word of "otool", so it can be a program name with args.
9489 set dummy otool; ac_word=$2
9490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9491 printf %s "checking for $ac_word... " >&6; }
9492 if test ${ac_cv_prog_ac_ct_OTOOL+y}
9493 then :
9494 printf %s "(cached) " >&6
9495 else case e in #(
9496 e) if test -n "$ac_ct_OTOOL"; then
9497 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9498 else
9499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9500 for as_dir in $PATH
9501 do
9502 IFS=$as_save_IFS
9503 case $as_dir in #(((
9504 '') as_dir=./ ;;
9505 */) ;;
9506 *) as_dir=$as_dir/ ;;
9507 esac
9508 for ac_exec_ext in '' $ac_executable_extensions; do
9509 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9510 ac_cv_prog_ac_ct_OTOOL="otool"
9511 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9512 break 2
9513 fi
9514 done
9515 done
9516 IFS=$as_save_IFS
9517
9518 fi ;;
9519 esac
9520 fi
9521 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9522 if test -n "$ac_ct_OTOOL"; then
9523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9524 printf "%s\n" "$ac_ct_OTOOL" >&6; }
9525 else
9526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9527 printf "%s\n" "no" >&6; }
9528 fi
9529
9530 if test "x$ac_ct_OTOOL" = x; then
9531 OTOOL=":"
9532 else
9533 case $cross_compiling:$ac_tool_warned in
9534 yes:)
9535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9536 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9537 ac_tool_warned=yes ;;
9538 esac
9539 OTOOL=$ac_ct_OTOOL
9540 fi
9541 else
9542 OTOOL="$ac_cv_prog_OTOOL"
9543 fi
9544
9545 if test -n "$ac_tool_prefix"; then
9546 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9547 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9549 printf %s "checking for $ac_word... " >&6; }
9550 if test ${ac_cv_prog_OTOOL64+y}
9551 then :
9552 printf %s "(cached) " >&6
9553 else case e in #(
9554 e) if test -n "$OTOOL64"; then
9555 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9556 else
9557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9558 for as_dir in $PATH
9559 do
9560 IFS=$as_save_IFS
9561 case $as_dir in #(((
9562 '') as_dir=./ ;;
9563 */) ;;
9564 *) as_dir=$as_dir/ ;;
9565 esac
9566 for ac_exec_ext in '' $ac_executable_extensions; do
9567 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9568 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9569 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9570 break 2
9571 fi
9572 done
9573 done
9574 IFS=$as_save_IFS
9575
9576 fi ;;
9577 esac
9578 fi
9579 OTOOL64=$ac_cv_prog_OTOOL64
9580 if test -n "$OTOOL64"; then
9581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9582 printf "%s\n" "$OTOOL64" >&6; }
9583 else
9584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9585 printf "%s\n" "no" >&6; }
9586 fi
9587
9588
9589 fi
9590 if test -z "$ac_cv_prog_OTOOL64"; then
9591 ac_ct_OTOOL64=$OTOOL64
9592 # Extract the first word of "otool64", so it can be a program name with args.
9593 set dummy otool64; ac_word=$2
9594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9595 printf %s "checking for $ac_word... " >&6; }
9596 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
9597 then :
9598 printf %s "(cached) " >&6
9599 else case e in #(
9600 e) if test -n "$ac_ct_OTOOL64"; then
9601 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9602 else
9603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9604 for as_dir in $PATH
9605 do
9606 IFS=$as_save_IFS
9607 case $as_dir in #(((
9608 '') as_dir=./ ;;
9609 */) ;;
9610 *) as_dir=$as_dir/ ;;
9611 esac
9612 for ac_exec_ext in '' $ac_executable_extensions; do
9613 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9614 ac_cv_prog_ac_ct_OTOOL64="otool64"
9615 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9616 break 2
9617 fi
9618 done
9619 done
9620 IFS=$as_save_IFS
9621
9622 fi ;;
9623 esac
9624 fi
9625 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9626 if test -n "$ac_ct_OTOOL64"; then
9627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9628 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
9629 else
9630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9631 printf "%s\n" "no" >&6; }
9632 fi
9633
9634 if test "x$ac_ct_OTOOL64" = x; then
9635 OTOOL64=":"
9636 else
9637 case $cross_compiling:$ac_tool_warned in
9638 yes:)
9639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9640 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9641 ac_tool_warned=yes ;;
9642 esac
9643 OTOOL64=$ac_ct_OTOOL64
9644 fi
9645 else
9646 OTOOL64="$ac_cv_prog_OTOOL64"
9647 fi
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9676 printf %s "checking for -single_module linker flag... " >&6; }
9677 if test ${lt_cv_apple_cc_single_mod+y}
9678 then :
9679 printf %s "(cached) " >&6
9680 else case e in #(
9681 e) lt_cv_apple_cc_single_mod=no
9682 if test -z "$LT_MULTI_MODULE"; then
9683 # By default we will add the -single_module flag. You can override
9684 # by either setting the environment variable LT_MULTI_MODULE
9685 # non-empty at configure time, or by adding -multi_module to the
9686 # link flags.
9687 rm -rf libconftest.dylib*
9688 echo "int foo(void){return 1;}" > conftest.c
9689 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9690 -dynamiclib -Wl,-single_module conftest.c" >&5
9691 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9692 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9693 _lt_result=$?
9694 # If there is a non-empty error log, and "single_module"
9695 # appears in it, assume the flag caused a linker warning
9696 if test -s conftest.err && $GREP single_module conftest.err; then
9697 cat conftest.err >&5
9698 # Otherwise, if the output was created with a 0 exit code from
9699 # the compiler, it worked.
9700 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9701 lt_cv_apple_cc_single_mod=yes
9702 else
9703 cat conftest.err >&5
9704 fi
9705 rm -rf libconftest.dylib*
9706 rm -f conftest.*
9707 fi ;;
9708 esac
9709 fi
9710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9711 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
9712
9713 # Feature test to disable chained fixups since it is not
9714 # compatible with '-undefined dynamic_lookup'
9715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
9716 printf %s "checking for -no_fixup_chains linker flag... " >&6; }
9717 if test ${lt_cv_support_no_fixup_chains+y}
9718 then :
9719 printf %s "(cached) " >&6
9720 else case e in #(
9721 e) save_LDFLAGS=$LDFLAGS
9722 LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
9723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9724 /* end confdefs.h. */
9725
9726 int
9727 main (void)
9728 {
9729
9730 ;
9731 return 0;
9732 }
9733 _ACEOF
9734 if ac_fn_c_try_link "$LINENO"
9735 then :
9736 lt_cv_support_no_fixup_chains=yes
9737 else case e in #(
9738 e) lt_cv_support_no_fixup_chains=no
9739 ;;
9740 esac
9741 fi
9742 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9743 conftest$ac_exeext conftest.$ac_ext
9744 LDFLAGS=$save_LDFLAGS
9745
9746 ;;
9747 esac
9748 fi
9749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
9750 printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; }
9751
9752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9753 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
9754 if test ${lt_cv_ld_exported_symbols_list+y}
9755 then :
9756 printf %s "(cached) " >&6
9757 else case e in #(
9758 e) lt_cv_ld_exported_symbols_list=no
9759 save_LDFLAGS=$LDFLAGS
9760 echo "_main" > conftest.sym
9761 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9763 /* end confdefs.h. */
9764
9765 int
9766 main (void)
9767 {
9768
9769 ;
9770 return 0;
9771 }
9772 _ACEOF
9773 if ac_fn_c_try_link "$LINENO"
9774 then :
9775 lt_cv_ld_exported_symbols_list=yes
9776 else case e in #(
9777 e) lt_cv_ld_exported_symbols_list=no ;;
9778 esac
9779 fi
9780 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9781 conftest$ac_exeext conftest.$ac_ext
9782 LDFLAGS=$save_LDFLAGS
9783 ;;
9784 esac
9785 fi
9786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9787 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
9788
9789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9790 printf %s "checking for -force_load linker flag... " >&6; }
9791 if test ${lt_cv_ld_force_load+y}
9792 then :
9793 printf %s "(cached) " >&6
9794 else case e in #(
9795 e) lt_cv_ld_force_load=no
9796 cat > conftest.c << _LT_EOF
9797 int forced_loaded() { return 2;}
9798 _LT_EOF
9799 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9800 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9801 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
9802 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
9803 echo "$RANLIB libconftest.a" >&5
9804 $RANLIB libconftest.a 2>&5
9805 cat > conftest.c << _LT_EOF
9806 int main(void) { return 0;}
9807 _LT_EOF
9808 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9809 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9810 _lt_result=$?
9811 if test -s conftest.err && $GREP force_load conftest.err; then
9812 cat conftest.err >&5
9813 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9814 lt_cv_ld_force_load=yes
9815 else
9816 cat conftest.err >&5
9817 fi
9818 rm -f conftest.err libconftest.a conftest conftest.c
9819 rm -rf conftest.dSYM
9820 ;;
9821 esac
9822 fi
9823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9824 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
9825 case $host_os in
9826 rhapsody* | darwin1.[012])
9827 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9828 darwin1.*)
9829 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9830 darwin*)
9831 case $MACOSX_DEPLOYMENT_TARGET,$host in
9832 10.[012],*|,*powerpc*-darwin[5-8]*)
9833 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9834 *)
9835 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
9836 if test yes = "$lt_cv_support_no_fixup_chains"; then
9837 as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'
9838 fi
9839 ;;
9840 esac
9841 ;;
9842 esac
9843 if test yes = "$lt_cv_apple_cc_single_mod"; then
9844 _lt_dar_single_mod='$single_module'
9845 fi
9846 _lt_dar_needs_single_mod=no
9847 case $host_os in
9848 rhapsody* | darwin1.*)
9849 _lt_dar_needs_single_mod=yes ;;
9850 darwin*)
9851 # When targeting Mac OS X 10.4 (darwin 8) or later,
9852 # -single_module is the default and -multi_module is unsupported.
9853 # The toolchain on macOS 10.14 (darwin 18) and later cannot
9854 # target any OS version that needs -single_module.
9855 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9856 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*)
9857 _lt_dar_needs_single_mod=yes ;;
9858 esac
9859 ;;
9860 esac
9861 if test yes = "$lt_cv_ld_exported_symbols_list"; then
9862 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9863 else
9864 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9865 fi
9866 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9867 _lt_dsymutil='~$DSYMUTIL $lib || :'
9868 else
9869 _lt_dsymutil=
9870 fi
9871 ;;
9872 esac
9873
9874 # func_munge_path_list VARIABLE PATH
9875 # -----------------------------------
9876 # VARIABLE is name of variable containing _space_ separated list of
9877 # directories to be munged by the contents of PATH, which is string
9878 # having a format:
9879 # "DIR[:DIR]:"
9880 # string "DIR[ DIR]" will be prepended to VARIABLE
9881 # ":DIR[:DIR]"
9882 # string "DIR[ DIR]" will be appended to VARIABLE
9883 # "DIRP[:DIRP]::[DIRA:]DIRA"
9884 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9885 # "DIRA[ DIRA]" will be appended to VARIABLE
9886 # "DIR[:DIR]"
9887 # VARIABLE will be replaced by "DIR[ DIR]"
9888 func_munge_path_list ()
9889 {
9890 case x$2 in
9891 x)
9892 ;;
9893 *:)
9894 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9895 ;;
9896 x:*)
9897 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9898 ;;
9899 *::*)
9900 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9901 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9902 ;;
9903 *)
9904 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9905 ;;
9906 esac
9907 }
9908
9909 ac_header= ac_cache=
9910 for ac_item in $ac_header_c_list
9911 do
9912 if test $ac_cache; then
9913 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
9914 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
9915 printf "%s\n" "#define $ac_item 1" >> confdefs.h
9916 fi
9917 ac_header= ac_cache=
9918 elif test $ac_header; then
9919 ac_cache=$ac_item
9920 else
9921 ac_header=$ac_item
9922 fi
9923 done
9924
9925
9926
9927
9928
9929
9930
9931
9932 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
9933 then :
9934
9935 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
9936
9937 fi
9938 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9939 "
9940 if test "x$ac_cv_header_dlfcn_h" = xyes
9941 then :
9942 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
9943
9944 fi
9945
9946
9947
9948
9949 func_stripname_cnf ()
9950 {
9951 case $2 in
9952 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
9953 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
9954 esac
9955 } # func_stripname_cnf
9956
9957
9958
9959
9960
9961 # Set options
9962 # Check whether --enable-static was given.
9963 if test ${enable_static+y}
9964 then :
9965 enableval=$enable_static; p=${PACKAGE-default}
9966 case $enableval in
9967 yes) enable_static=yes ;;
9968 no) enable_static=no ;;
9969 *)
9970 enable_static=no
9971 # Look at the argument we got. We use all the common list separators.
9972 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9973 for pkg in $enableval; do
9974 IFS=$lt_save_ifs
9975 if test "X$pkg" = "X$p"; then
9976 enable_static=yes
9977 fi
9978 done
9979 IFS=$lt_save_ifs
9980 ;;
9981 esac
9982 else case e in #(
9983 e) enable_static=no ;;
9984 esac
9985 fi
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996 enable_dlopen=no
9997
9998
9999 enable_win32_dll=no
10000
10001
10002 # Check whether --enable-shared was given.
10003 if test ${enable_shared+y}
10004 then :
10005 enableval=$enable_shared; p=${PACKAGE-default}
10006 case $enableval in
10007 yes) enable_shared=yes ;;
10008 no) enable_shared=no ;;
10009 *)
10010 enable_shared=no
10011 # Look at the argument we got. We use all the common list separators.
10012 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10013 for pkg in $enableval; do
10014 IFS=$lt_save_ifs
10015 if test "X$pkg" = "X$p"; then
10016 enable_shared=yes
10017 fi
10018 done
10019 IFS=$lt_save_ifs
10020 ;;
10021 esac
10022 else case e in #(
10023 e) enable_shared=yes ;;
10024 esac
10025 fi
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036 # Check whether --enable-pic was given.
10037 if test ${enable_pic+y}
10038 then :
10039 enableval=$enable_pic; lt_p=${PACKAGE-default}
10040 case $enableval in
10041 yes|no) pic_mode=$enableval ;;
10042 *)
10043 pic_mode=default
10044 # Look at the argument we got. We use all the common list separators.
10045 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10046 for lt_pkg in $enableval; do
10047 IFS=$lt_save_ifs
10048 if test "X$lt_pkg" = "X$lt_p"; then
10049 pic_mode=yes
10050 fi
10051 done
10052 IFS=$lt_save_ifs
10053 ;;
10054 esac
10055 else case e in #(
10056 e) # Check whether --with-pic was given.
10057 if test ${with_pic+y}
10058 then :
10059 withval=$with_pic; lt_p=${PACKAGE-default}
10060 case $withval in
10061 yes|no) pic_mode=$withval ;;
10062 *)
10063 pic_mode=default
10064 # Look at the argument we got. We use all the common list separators.
10065 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10066 for lt_pkg in $withval; do
10067 IFS=$lt_save_ifs
10068 if test "X$lt_pkg" = "X$lt_p"; then
10069 pic_mode=yes
10070 fi
10071 done
10072 IFS=$lt_save_ifs
10073 ;;
10074 esac
10075 else case e in #(
10076 e) pic_mode=default ;;
10077 esac
10078 fi
10079
10080 ;;
10081 esac
10082 fi
10083
10084
10085
10086
10087
10088
10089
10090
10091 # Check whether --enable-fast-install was given.
10092 if test ${enable_fast_install+y}
10093 then :
10094 enableval=$enable_fast_install; p=${PACKAGE-default}
10095 case $enableval in
10096 yes) enable_fast_install=yes ;;
10097 no) enable_fast_install=no ;;
10098 *)
10099 enable_fast_install=no
10100 # Look at the argument we got. We use all the common list separators.
10101 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10102 for pkg in $enableval; do
10103 IFS=$lt_save_ifs
10104 if test "X$pkg" = "X$p"; then
10105 enable_fast_install=yes
10106 fi
10107 done
10108 IFS=$lt_save_ifs
10109 ;;
10110 esac
10111 else case e in #(
10112 e) enable_fast_install=yes ;;
10113 esac
10114 fi
10115
10116
10117
10118
10119
10120
10121
10122
10123 shared_archive_member_spec=
10124 case $host,$enable_shared in
10125 power*-*-aix[5-9]*,yes)
10126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
10127 printf %s "checking which variant of shared library versioning to provide... " >&6; }
10128 # Check whether --enable-aix-soname was given.
10129 if test ${enable_aix_soname+y}
10130 then :
10131 enableval=$enable_aix_soname; case $enableval in
10132 aix|svr4|both)
10133 ;;
10134 *)
10135 as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5
10136 ;;
10137 esac
10138 lt_cv_with_aix_soname=$enable_aix_soname
10139 else case e in #(
10140 e) # Check whether --with-aix-soname was given.
10141 if test ${with_aix_soname+y}
10142 then :
10143 withval=$with_aix_soname; case $withval in
10144 aix|svr4|both)
10145 ;;
10146 *)
10147 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
10148 ;;
10149 esac
10150 lt_cv_with_aix_soname=$with_aix_soname
10151 else case e in #(
10152 e) if test ${lt_cv_with_aix_soname+y}
10153 then :
10154 printf %s "(cached) " >&6
10155 else case e in #(
10156 e) lt_cv_with_aix_soname=aix ;;
10157 esac
10158 fi
10159 ;;
10160 esac
10161 fi
10162
10163 enable_aix_soname=$lt_cv_with_aix_soname ;;
10164 esac
10165 fi
10166
10167 with_aix_soname=$enable_aix_soname
10168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
10169 printf "%s\n" "$with_aix_soname" >&6; }
10170 if test aix != "$with_aix_soname"; then
10171 # For the AIX way of multilib, we name the shared archive member
10172 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10173 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10174 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10175 # the AIX toolchain works better with OBJECT_MODE set (default 32).
10176 if test 64 = "${OBJECT_MODE-32}"; then
10177 shared_archive_member_spec=shr_64
10178 else
10179 shared_archive_member_spec=shr
10180 fi
10181 fi
10182 ;;
10183 *)
10184 with_aix_soname=aix
10185 ;;
10186 esac
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197 # This can be used to rebuild libtool when needed
10198 LIBTOOL_DEPS=$ltmain
10199
10200 # Always use our own libtool.
10201 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232 test -z "$LN_S" && LN_S="ln -s"
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247 if test -n "${ZSH_VERSION+set}"; then
10248 setopt NO_GLOB_SUBST
10249 fi
10250
10251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10252 printf %s "checking for objdir... " >&6; }
10253 if test ${lt_cv_objdir+y}
10254 then :
10255 printf %s "(cached) " >&6
10256 else case e in #(
10257 e) rm -f .libs 2>/dev/null
10258 mkdir .libs 2>/dev/null
10259 if test -d .libs; then
10260 lt_cv_objdir=.libs
10261 else
10262 # MS-DOS does not allow filenames that begin with a dot.
10263 lt_cv_objdir=_libs
10264 fi
10265 rmdir .libs 2>/dev/null ;;
10266 esac
10267 fi
10268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10269 printf "%s\n" "$lt_cv_objdir" >&6; }
10270 objdir=$lt_cv_objdir
10271
10272
10273
10274
10275
10276 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
10277
10278
10279
10280
10281 case $host_os in
10282 aix3*)
10283 # AIX sometimes has problems with the GCC collect2 program. For some
10284 # reason, if we set the COLLECT_NAMES environment variable, the problems
10285 # vanish in a puff of smoke.
10286 if test set != "${COLLECT_NAMES+set}"; then
10287 COLLECT_NAMES=
10288 export COLLECT_NAMES
10289 fi
10290 ;;
10291 esac
10292
10293 # Global variables:
10294 ofile=libtool
10295 can_build_shared=yes
10296
10297 # All known linkers require a '.a' archive for static linking (except MSVC and
10298 # ICC, which need '.lib').
10299 libext=a
10300
10301 with_gnu_ld=$lt_cv_prog_gnu_ld
10302
10303 old_CC=$CC
10304 old_CFLAGS=$CFLAGS
10305
10306 # Set sane defaults for various variables
10307 test -z "$CC" && CC=cc
10308 test -z "$LTCC" && LTCC=$CC
10309 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10310 test -z "$LD" && LD=ld
10311 test -z "$ac_objext" && ac_objext=o
10312
10313 func_cc_basename $compiler
10314 cc_basename=$func_cc_basename_result
10315
10316
10317 # Only perform the check for file, if the check method requires it
10318 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10319 case $deplibs_check_method in
10320 file_magic*)
10321 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10323 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
10324 if test ${lt_cv_path_MAGIC_CMD+y}
10325 then :
10326 printf %s "(cached) " >&6
10327 else case e in #(
10328 e) case $MAGIC_CMD in
10329 [\\/*] | ?:[\\/]*)
10330 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10331 ;;
10332 *)
10333 lt_save_MAGIC_CMD=$MAGIC_CMD
10334 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10335 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10336 for ac_dir in $ac_dummy; do
10337 IFS=$lt_save_ifs
10338 test -z "$ac_dir" && ac_dir=.
10339 if test -f "$ac_dir/${ac_tool_prefix}file"; then
10340 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10341 if test -n "$file_magic_test_file"; then
10342 case $deplibs_check_method in
10343 "file_magic "*)
10344 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10345 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10346 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10347 $EGREP "$file_magic_regex" > /dev/null; then
10348 :
10349 else
10350 cat <<_LT_EOF 1>&2
10351
10352 *** Warning: the command libtool uses to detect shared libraries,
10353 *** $file_magic_cmd, produces output that libtool cannot recognize.
10354 *** The result is that libtool may fail to recognize shared libraries
10355 *** as such. This will affect the creation of libtool libraries that
10356 *** depend on shared libraries, but programs linked with such libtool
10357 *** libraries will work regardless of this problem. Nevertheless, you
10358 *** may want to report the problem to your system manager and/or to
10359 *** [email protected]
10360
10361 _LT_EOF
10362 fi ;;
10363 esac
10364 fi
10365 break
10366 fi
10367 done
10368 IFS=$lt_save_ifs
10369 MAGIC_CMD=$lt_save_MAGIC_CMD
10370 ;;
10371 esac ;;
10372 esac
10373 fi
10374
10375 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10376 if test -n "$MAGIC_CMD"; then
10377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10378 printf "%s\n" "$MAGIC_CMD" >&6; }
10379 else
10380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10381 printf "%s\n" "no" >&6; }
10382 fi
10383
10384
10385
10386
10387
10388 if test -z "$lt_cv_path_MAGIC_CMD"; then
10389 if test -n "$ac_tool_prefix"; then
10390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10391 printf %s "checking for file... " >&6; }
10392 if test ${lt_cv_path_MAGIC_CMD+y}
10393 then :
10394 printf %s "(cached) " >&6
10395 else case e in #(
10396 e) case $MAGIC_CMD in
10397 [\\/*] | ?:[\\/]*)
10398 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10399 ;;
10400 *)
10401 lt_save_MAGIC_CMD=$MAGIC_CMD
10402 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10403 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10404 for ac_dir in $ac_dummy; do
10405 IFS=$lt_save_ifs
10406 test -z "$ac_dir" && ac_dir=.
10407 if test -f "$ac_dir/file"; then
10408 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10409 if test -n "$file_magic_test_file"; then
10410 case $deplibs_check_method in
10411 "file_magic "*)
10412 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10413 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10414 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10415 $EGREP "$file_magic_regex" > /dev/null; then
10416 :
10417 else
10418 cat <<_LT_EOF 1>&2
10419
10420 *** Warning: the command libtool uses to detect shared libraries,
10421 *** $file_magic_cmd, produces output that libtool cannot recognize.
10422 *** The result is that libtool may fail to recognize shared libraries
10423 *** as such. This will affect the creation of libtool libraries that
10424 *** depend on shared libraries, but programs linked with such libtool
10425 *** libraries will work regardless of this problem. Nevertheless, you
10426 *** may want to report the problem to your system manager and/or to
10427 *** [email protected]
10428
10429 _LT_EOF
10430 fi ;;
10431 esac
10432 fi
10433 break
10434 fi
10435 done
10436 IFS=$lt_save_ifs
10437 MAGIC_CMD=$lt_save_MAGIC_CMD
10438 ;;
10439 esac ;;
10440 esac
10441 fi
10442
10443 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10444 if test -n "$MAGIC_CMD"; then
10445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10446 printf "%s\n" "$MAGIC_CMD" >&6; }
10447 else
10448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10449 printf "%s\n" "no" >&6; }
10450 fi
10451
10452
10453 else
10454 MAGIC_CMD=:
10455 fi
10456 fi
10457
10458 fi
10459 ;;
10460 esac
10461
10462 # Use C for the default configuration in the libtool script
10463
10464 lt_save_CC=$CC
10465 ac_ext=c
10466 ac_cpp='$CPP $CPPFLAGS'
10467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10470
10471
10472 # Source file extension for C test sources.
10473 ac_ext=c
10474
10475 # Object file extension for compiled C test sources.
10476 objext=o
10477 objext=$objext
10478
10479 # Code to be used in simple compile tests
10480 lt_simple_compile_test_code="int some_variable = 0;"
10481
10482 # Code to be used in simple link tests
10483 lt_simple_link_test_code='int main(void){return(0);}'
10484
10485
10486
10487
10488
10489
10490
10491 # If no C compiler was specified, use CC.
10492 LTCC=${LTCC-"$CC"}
10493
10494 # If no C compiler flags were specified, use CFLAGS.
10495 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10496
10497 # Allow CC to be a program name with arguments.
10498 compiler=$CC
10499
10500 # Save the default compiler, since it gets overwritten when the other
10501 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10502 compiler_DEFAULT=$CC
10503
10504 # save warnings/boilerplate of simple test code
10505 ac_outfile=conftest.$ac_objext
10506 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10507 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10508 _lt_compiler_boilerplate=`cat conftest.err`
10509 $RM conftest*
10510
10511 ac_outfile=conftest.$ac_objext
10512 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10513 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10514 _lt_linker_boilerplate=`cat conftest.err`
10515 $RM -r conftest*
10516
10517
10518 ## CAVEAT EMPTOR:
10519 ## There is no encapsulation within the following macros, do not change
10520 ## the running order or otherwise move them around unless you know exactly
10521 ## what you are doing...
10522 if test -n "$compiler"; then
10523
10524 lt_prog_compiler_no_builtin_flag=
10525
10526 if test yes = "$GCC"; then
10527 case $cc_basename in
10528 nvcc*)
10529 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10530 *)
10531 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10532 esac
10533
10534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10535 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10536 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
10537 then :
10538 printf %s "(cached) " >&6
10539 else case e in #(
10540 e) lt_cv_prog_compiler_rtti_exceptions=no
10541 ac_outfile=conftest.$ac_objext
10542 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10543 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
10544 # Insert the option either (1) after the last *FLAGS variable, or
10545 # (2) before a word containing "conftest.", or (3) at the end.
10546 # Note that $ac_compile itself does not contain backslashes and begins
10547 # with a dollar sign (not a hyphen), so the echo should work correctly.
10548 # The option is referenced via a variable to avoid confusing sed.
10549 lt_compile=`echo "$ac_compile" | $SED \
10550 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10551 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10552 -e 's:$: $lt_compiler_flag:'`
10553 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10554 (eval "$lt_compile" 2>conftest.err)
10555 ac_status=$?
10556 cat conftest.err >&5
10557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558 if (exit $ac_status) && test -s "$ac_outfile"; then
10559 # The compiler can only warn and ignore the option if not recognized
10560 # So say no if there are warnings other than the usual output.
10561 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10562 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10563 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10564 lt_cv_prog_compiler_rtti_exceptions=yes
10565 fi
10566 fi
10567 $RM conftest*
10568 ;;
10569 esac
10570 fi
10571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10572 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10573
10574 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10575 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10576 else
10577 :
10578 fi
10579
10580 fi
10581
10582
10583
10584
10585
10586
10587 lt_prog_compiler_wl=
10588 lt_prog_compiler_pic=
10589 lt_prog_compiler_static=
10590
10591
10592 if test yes = "$GCC"; then
10593 lt_prog_compiler_wl='-Wl,'
10594 lt_prog_compiler_static='-static'
10595
10596 case $host_os in
10597 aix*)
10598 # All AIX code is PIC.
10599 if test ia64 = "$host_cpu"; then
10600 # AIX 5 now supports IA64 processor
10601 lt_prog_compiler_static='-Bstatic'
10602 fi
10603 lt_prog_compiler_pic='-fPIC'
10604 ;;
10605
10606 amigaos*)
10607 case $host_cpu in
10608 powerpc)
10609 # see comment about AmigaOS4 .so support
10610 lt_prog_compiler_pic='-fPIC'
10611 ;;
10612 m68k)
10613 # FIXME: we need at least 68020 code to build shared libraries, but
10614 # adding the '-m68020' flag to GCC prevents building anything better,
10615 # like '-m68040'.
10616 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10617 ;;
10618 esac
10619 ;;
10620
10621 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10622 # PIC is the default for these OSes.
10623 ;;
10624
10625 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
10626 # This hack is so that the source file can tell whether it is being
10627 # built for inclusion in a dll (and should export symbols for example).
10628 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10629 # (--disable-auto-import) libraries
10630 lt_prog_compiler_pic='-DDLL_EXPORT'
10631 case $host_os in
10632 os2*)
10633 lt_prog_compiler_static='$wl-static'
10634 ;;
10635 esac
10636 ;;
10637
10638 darwin* | rhapsody*)
10639 # PIC is the default on this platform
10640 # Common symbols not allowed in MH_DYLIB files
10641 lt_prog_compiler_pic='-fno-common'
10642 ;;
10643
10644 haiku*)
10645 # PIC is the default for Haiku.
10646 # The "-static" flag exists, but is broken.
10647 lt_prog_compiler_static=
10648 ;;
10649
10650 hpux*)
10651 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10652 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10653 # sets the default TLS model and affects inlining.
10654 case $host_cpu in
10655 hppa*64*)
10656 # +Z the default
10657 ;;
10658 *)
10659 lt_prog_compiler_pic='-fPIC'
10660 ;;
10661 esac
10662 ;;
10663
10664 interix[3-9]*)
10665 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10666 # Instead, we relocate shared libraries at runtime.
10667 ;;
10668
10669 msdosdjgpp*)
10670 # Just because we use GCC doesn't mean we suddenly get shared libraries
10671 # on systems that don't support them.
10672 lt_prog_compiler_can_build_shared=no
10673 enable_shared=no
10674 ;;
10675
10676 *nto* | *qnx*)
10677 # QNX uses GNU C++, but need to define -shared option too, otherwise
10678 # it will coredump.
10679 lt_prog_compiler_pic='-fPIC -shared'
10680 ;;
10681
10682 sysv4*MP*)
10683 if test -d /usr/nec; then
10684 lt_prog_compiler_pic=-Kconform_pic
10685 fi
10686 ;;
10687
10688 *)
10689 lt_prog_compiler_pic='-fPIC'
10690 ;;
10691 esac
10692
10693 case $cc_basename in
10694 nvcc*) # Cuda Compiler Driver 2.2
10695 lt_prog_compiler_wl='-Xlinker '
10696 if test -n "$lt_prog_compiler_pic"; then
10697 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10698 fi
10699 ;;
10700 esac
10701 else
10702 # PORTME Check for flag to pass linker flags through the system compiler.
10703 case $host_os in
10704 aix*)
10705 lt_prog_compiler_wl='-Wl,'
10706 if test ia64 = "$host_cpu"; then
10707 # AIX 5 now supports IA64 processor
10708 lt_prog_compiler_static='-Bstatic'
10709 else
10710 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10711 fi
10712 ;;
10713
10714 darwin* | rhapsody*)
10715 # PIC is the default on this platform
10716 # Common symbols not allowed in MH_DYLIB files
10717 lt_prog_compiler_pic='-fno-common'
10718 case $cc_basename in
10719 nagfor*)
10720 # NAG Fortran compiler
10721 lt_prog_compiler_wl='-Wl,-Wl,,'
10722 lt_prog_compiler_pic='-PIC'
10723 lt_prog_compiler_static='-Bstatic'
10724 ;;
10725 esac
10726 ;;
10727
10728 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
10729 # This hack is so that the source file can tell whether it is being
10730 # built for inclusion in a dll (and should export symbols for example).
10731 lt_prog_compiler_pic='-DDLL_EXPORT'
10732 case $host_os in
10733 os2*)
10734 lt_prog_compiler_static='$wl-static'
10735 ;;
10736 esac
10737 ;;
10738
10739 hpux9* | hpux10* | hpux11*)
10740 lt_prog_compiler_wl='-Wl,'
10741 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10742 # not for PA HP-UX.
10743 case $host_cpu in
10744 hppa*64*|ia64*)
10745 # +Z the default
10746 ;;
10747 *)
10748 lt_prog_compiler_pic='+Z'
10749 ;;
10750 esac
10751 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10752 lt_prog_compiler_static='$wl-a ${wl}archive'
10753 ;;
10754
10755 irix5* | irix6* | nonstopux*)
10756 lt_prog_compiler_wl='-Wl,'
10757 # PIC (with -KPIC) is the default.
10758 lt_prog_compiler_static='-non_shared'
10759 ;;
10760
10761 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10762 case $cc_basename in
10763 # old Intel for x86_64, which still supported -KPIC.
10764 ecc*)
10765 lt_prog_compiler_wl='-Wl,'
10766 lt_prog_compiler_pic='-KPIC'
10767 lt_prog_compiler_static='-static'
10768 ;;
10769 *flang* | ftn | f18* | f95*)
10770 # Flang compiler.
10771 lt_prog_compiler_wl='-Wl,'
10772 lt_prog_compiler_pic='-fPIC'
10773 lt_prog_compiler_static='-static'
10774 ;;
10775 # icc used to be incompatible with GCC.
10776 # ICC 10 doesn't accept -KPIC any more.
10777 icc* | ifort*)
10778 lt_prog_compiler_wl='-Wl,'
10779 lt_prog_compiler_pic='-fPIC'
10780 lt_prog_compiler_static='-static'
10781 ;;
10782 # Lahey Fortran 8.1.
10783 lf95*)
10784 lt_prog_compiler_wl='-Wl,'
10785 lt_prog_compiler_pic='--shared'
10786 lt_prog_compiler_static='--static'
10787 ;;
10788 nagfor*)
10789 # NAG Fortran compiler
10790 lt_prog_compiler_wl='-Wl,-Wl,,'
10791 lt_prog_compiler_pic='-PIC'
10792 lt_prog_compiler_static='-Bstatic'
10793 ;;
10794 tcc*)
10795 # Fabrice Bellard et al's Tiny C Compiler
10796 lt_prog_compiler_wl='-Wl,'
10797 lt_prog_compiler_pic='-fPIC'
10798 lt_prog_compiler_static='-static'
10799 ;;
10800 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10801 # Portland Group compilers (*not* the Pentium gcc compiler,
10802 # which looks to be a dead project)
10803 lt_prog_compiler_wl='-Wl,'
10804 lt_prog_compiler_pic='-fpic'
10805 lt_prog_compiler_static='-Bstatic'
10806 ;;
10807 ccc*)
10808 lt_prog_compiler_wl='-Wl,'
10809 # All Alpha code is PIC.
10810 lt_prog_compiler_static='-non_shared'
10811 ;;
10812 xl* | bgxl* | bgf* | mpixl*)
10813 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10814 lt_prog_compiler_wl='-Wl,'
10815 lt_prog_compiler_pic='-qpic'
10816 lt_prog_compiler_static='-qstaticlink'
10817 ;;
10818 *)
10819 case `$CC -V 2>&1 | $SED 5q` in
10820 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10821 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10822 lt_prog_compiler_pic='-KPIC'
10823 lt_prog_compiler_static='-Bstatic'
10824 lt_prog_compiler_wl=''
10825 ;;
10826 *Sun\ F* | *Sun*Fortran*)
10827 lt_prog_compiler_pic='-KPIC'
10828 lt_prog_compiler_static='-Bstatic'
10829 lt_prog_compiler_wl='-Qoption ld '
10830 ;;
10831 *Sun\ C*)
10832 # Sun C 5.9
10833 lt_prog_compiler_pic='-KPIC'
10834 lt_prog_compiler_static='-Bstatic'
10835 lt_prog_compiler_wl='-Wl,'
10836 ;;
10837 *Intel*\ [CF]*Compiler*)
10838 lt_prog_compiler_wl='-Wl,'
10839 lt_prog_compiler_pic='-fPIC'
10840 lt_prog_compiler_static='-static'
10841 ;;
10842 *Portland\ Group*)
10843 lt_prog_compiler_wl='-Wl,'
10844 lt_prog_compiler_pic='-fpic'
10845 lt_prog_compiler_static='-Bstatic'
10846 ;;
10847 esac
10848 ;;
10849 esac
10850 ;;
10851
10852 newsos6)
10853 lt_prog_compiler_pic='-KPIC'
10854 lt_prog_compiler_static='-Bstatic'
10855 ;;
10856
10857 *-mlibc)
10858 lt_prog_compiler_wl='-Wl,'
10859 lt_prog_compiler_pic='-fPIC'
10860 lt_prog_compiler_static='-static'
10861 ;;
10862
10863 *nto* | *qnx*)
10864 # QNX uses GNU C++, but need to define -shared option too, otherwise
10865 # it will coredump.
10866 lt_prog_compiler_pic='-fPIC -shared'
10867 ;;
10868
10869 osf3* | osf4* | osf5*)
10870 lt_prog_compiler_wl='-Wl,'
10871 # All OSF/1 code is PIC.
10872 lt_prog_compiler_static='-non_shared'
10873 ;;
10874
10875 rdos*)
10876 lt_prog_compiler_static='-non_shared'
10877 ;;
10878
10879 serenity*)
10880 ;;
10881
10882 solaris*)
10883 lt_prog_compiler_pic='-KPIC'
10884 lt_prog_compiler_static='-Bstatic'
10885 case $cc_basename in
10886 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10887 lt_prog_compiler_wl='-Qoption ld ';;
10888 *)
10889 lt_prog_compiler_wl='-Wl,';;
10890 esac
10891 ;;
10892
10893 sunos4*)
10894 lt_prog_compiler_wl='-Qoption ld '
10895 lt_prog_compiler_pic='-PIC'
10896 lt_prog_compiler_static='-Bstatic'
10897 ;;
10898
10899 sysv4 | sysv4.2uw2* | sysv4.3*)
10900 lt_prog_compiler_wl='-Wl,'
10901 lt_prog_compiler_pic='-KPIC'
10902 lt_prog_compiler_static='-Bstatic'
10903 ;;
10904
10905 sysv4*MP*)
10906 if test -d /usr/nec; then
10907 lt_prog_compiler_pic='-Kconform_pic'
10908 lt_prog_compiler_static='-Bstatic'
10909 fi
10910 ;;
10911
10912 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10913 lt_prog_compiler_wl='-Wl,'
10914 lt_prog_compiler_pic='-KPIC'
10915 lt_prog_compiler_static='-Bstatic'
10916 ;;
10917
10918 unicos*)
10919 lt_prog_compiler_wl='-Wl,'
10920 lt_prog_compiler_can_build_shared=no
10921 ;;
10922
10923 uts4*)
10924 lt_prog_compiler_pic='-pic'
10925 lt_prog_compiler_static='-Bstatic'
10926 ;;
10927
10928 *)
10929 lt_prog_compiler_can_build_shared=no
10930 ;;
10931 esac
10932 fi
10933
10934 case $host_os in
10935 # For platforms that do not support PIC, -DPIC is meaningless:
10936 *djgpp*)
10937 lt_prog_compiler_pic=
10938 ;;
10939 *)
10940 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10941 ;;
10942 esac
10943
10944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10945 printf %s "checking for $compiler option to produce PIC... " >&6; }
10946 if test ${lt_cv_prog_compiler_pic+y}
10947 then :
10948 printf %s "(cached) " >&6
10949 else case e in #(
10950 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
10951 esac
10952 fi
10953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10954 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
10955 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10956
10957 #
10958 # Check to make sure the PIC flag actually works.
10959 #
10960 if test -n "$lt_prog_compiler_pic"; then
10961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10962 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10963 if test ${lt_cv_prog_compiler_pic_works+y}
10964 then :
10965 printf %s "(cached) " >&6
10966 else case e in #(
10967 e) lt_cv_prog_compiler_pic_works=no
10968 ac_outfile=conftest.$ac_objext
10969 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10970 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10971 # Insert the option either (1) after the last *FLAGS variable, or
10972 # (2) before a word containing "conftest.", or (3) at the end.
10973 # Note that $ac_compile itself does not contain backslashes and begins
10974 # with a dollar sign (not a hyphen), so the echo should work correctly.
10975 # The option is referenced via a variable to avoid confusing sed.
10976 lt_compile=`echo "$ac_compile" | $SED \
10977 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10978 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10979 -e 's:$: $lt_compiler_flag:'`
10980 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10981 (eval "$lt_compile" 2>conftest.err)
10982 ac_status=$?
10983 cat conftest.err >&5
10984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10985 if (exit $ac_status) && test -s "$ac_outfile"; then
10986 # The compiler can only warn and ignore the option if not recognized
10987 # So say no if there are warnings other than the usual output.
10988 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10989 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10990 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10991 lt_cv_prog_compiler_pic_works=yes
10992 fi
10993 fi
10994 $RM conftest*
10995 ;;
10996 esac
10997 fi
10998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10999 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
11000
11001 if test yes = "$lt_cv_prog_compiler_pic_works"; then
11002 case $lt_prog_compiler_pic in
11003 "" | " "*) ;;
11004 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11005 esac
11006 else
11007 lt_prog_compiler_pic=
11008 lt_prog_compiler_can_build_shared=no
11009 fi
11010
11011 fi
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023 #
11024 # Check to make sure the static flag actually works.
11025 #
11026 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11028 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11029 if test ${lt_cv_prog_compiler_static_works+y}
11030 then :
11031 printf %s "(cached) " >&6
11032 else case e in #(
11033 e) lt_cv_prog_compiler_static_works=no
11034 save_LDFLAGS=$LDFLAGS
11035 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11036 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11037 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11038 # The linker can only warn and ignore the option if not recognized
11039 # So say no if there are warnings
11040 if test -s conftest.err; then
11041 # Append any errors to the config.log.
11042 cat conftest.err 1>&5
11043 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11044 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11045 if diff conftest.exp conftest.er2 >/dev/null; then
11046 lt_cv_prog_compiler_static_works=yes
11047 fi
11048 else
11049 lt_cv_prog_compiler_static_works=yes
11050 fi
11051 fi
11052 $RM -r conftest*
11053 LDFLAGS=$save_LDFLAGS
11054 ;;
11055 esac
11056 fi
11057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11058 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
11059
11060 if test yes = "$lt_cv_prog_compiler_static_works"; then
11061 :
11062 else
11063 lt_prog_compiler_static=
11064 fi
11065
11066
11067
11068
11069
11070
11071
11072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11073 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11074 if test ${lt_cv_prog_compiler_c_o+y}
11075 then :
11076 printf %s "(cached) " >&6
11077 else case e in #(
11078 e) lt_cv_prog_compiler_c_o=no
11079 $RM -r conftest 2>/dev/null
11080 mkdir conftest
11081 cd conftest
11082 mkdir out
11083 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11084
11085 lt_compiler_flag="-o out/conftest2.$ac_objext"
11086 # Insert the option either (1) after the last *FLAGS variable, or
11087 # (2) before a word containing "conftest.", or (3) at the end.
11088 # Note that $ac_compile itself does not contain backslashes and begins
11089 # with a dollar sign (not a hyphen), so the echo should work correctly.
11090 lt_compile=`echo "$ac_compile" | $SED \
11091 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11092 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11093 -e 's:$: $lt_compiler_flag:'`
11094 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11095 (eval "$lt_compile" 2>out/conftest.err)
11096 ac_status=$?
11097 cat out/conftest.err >&5
11098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11099 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11100 then
11101 # The compiler can only warn and ignore the option if not recognized
11102 # So say no if there are warnings
11103 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11104 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11105 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11106 lt_cv_prog_compiler_c_o=yes
11107 fi
11108 fi
11109 chmod u+w . 2>&5
11110 $RM conftest*
11111 # SGI C++ compiler will create directory out/ii_files/ for
11112 # template instantiation
11113 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11114 $RM out/* && rmdir out
11115 cd ..
11116 $RM -r conftest
11117 $RM conftest*
11118 ;;
11119 esac
11120 fi
11121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11122 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
11123
11124
11125
11126
11127
11128
11129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11130 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11131 if test ${lt_cv_prog_compiler_c_o+y}
11132 then :
11133 printf %s "(cached) " >&6
11134 else case e in #(
11135 e) lt_cv_prog_compiler_c_o=no
11136 $RM -r conftest 2>/dev/null
11137 mkdir conftest
11138 cd conftest
11139 mkdir out
11140 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11141
11142 lt_compiler_flag="-o out/conftest2.$ac_objext"
11143 # Insert the option either (1) after the last *FLAGS variable, or
11144 # (2) before a word containing "conftest.", or (3) at the end.
11145 # Note that $ac_compile itself does not contain backslashes and begins
11146 # with a dollar sign (not a hyphen), so the echo should work correctly.
11147 lt_compile=`echo "$ac_compile" | $SED \
11148 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11149 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11150 -e 's:$: $lt_compiler_flag:'`
11151 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11152 (eval "$lt_compile" 2>out/conftest.err)
11153 ac_status=$?
11154 cat out/conftest.err >&5
11155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11156 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11157 then
11158 # The compiler can only warn and ignore the option if not recognized
11159 # So say no if there are warnings
11160 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11161 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11162 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11163 lt_cv_prog_compiler_c_o=yes
11164 fi
11165 fi
11166 chmod u+w . 2>&5
11167 $RM conftest*
11168 # SGI C++ compiler will create directory out/ii_files/ for
11169 # template instantiation
11170 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11171 $RM out/* && rmdir out
11172 cd ..
11173 $RM -r conftest
11174 $RM conftest*
11175 ;;
11176 esac
11177 fi
11178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11179 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
11180
11181
11182
11183
11184 hard_links=nottested
11185 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
11186 # do not overwrite the value of need_locks provided by the user
11187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11188 printf %s "checking if we can lock with hard links... " >&6; }
11189 hard_links=yes
11190 $RM conftest*
11191 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11192 touch conftest.a
11193 ln conftest.a conftest.b 2>&5 || hard_links=no
11194 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11196 printf "%s\n" "$hard_links" >&6; }
11197 if test no = "$hard_links"; then
11198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11199 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
11200 need_locks=warn
11201 fi
11202 else
11203 need_locks=no
11204 fi
11205
11206
11207
11208
11209
11210
11211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11212 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11213
11214 runpath_var=
11215 allow_undefined_flag=
11216 always_export_symbols=no
11217 archive_cmds=
11218 archive_expsym_cmds=
11219 compiler_needs_object=no
11220 enable_shared_with_static_runtimes=no
11221 export_dynamic_flag_spec=
11222 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11223 hardcode_automatic=no
11224 hardcode_direct=no
11225 hardcode_direct_absolute=no
11226 hardcode_libdir_flag_spec=
11227 hardcode_libdir_separator=
11228 hardcode_minus_L=no
11229 hardcode_shlibpath_var=unsupported
11230 inherit_rpath=no
11231 link_all_deplibs=unknown
11232 module_cmds=
11233 module_expsym_cmds=
11234 old_archive_from_new_cmds=
11235 old_archive_from_expsyms_cmds=
11236 thread_safe_flag_spec=
11237 whole_archive_flag_spec=
11238 # include_expsyms should be a list of space-separated symbols to be *always*
11239 # included in the symbol list
11240 include_expsyms=
11241 # exclude_expsyms can be an extended regexp of symbols to exclude
11242 # it will be wrapped by ' (' and ')$', so one must not match beginning or
11243 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11244 # as well as any symbol that contains 'd'.
11245 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11246 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11247 # platforms (ab)use it in PIC code, but their linkers get confused if
11248 # the symbol is explicitly referenced. Since portable code cannot
11249 # rely on this symbol name, it's probably fine to never include it in
11250 # preloaded symbol tables.
11251 # Exclude shared library initialization/finalization symbols.
11252 extract_expsyms_cmds=
11253
11254 case $host_os in
11255 cygwin* | mingw* | windows* | pw32* | cegcc*)
11256 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
11257 # When not using gcc, we currently assume that we are using
11258 # Microsoft Visual C++ or Intel C++ Compiler.
11259 if test yes != "$GCC"; then
11260 with_gnu_ld=no
11261 fi
11262 ;;
11263 interix*)
11264 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
11265 with_gnu_ld=yes
11266 ;;
11267 esac
11268
11269 ld_shlibs=yes
11270
11271 # On some targets, GNU ld is compatible enough with the native linker
11272 # that we're better off using the native interface for both.
11273 lt_use_gnu_ld_interface=no
11274 if test yes = "$with_gnu_ld"; then
11275 case $host_os in
11276 aix*)
11277 # The AIX port of GNU ld has always aspired to compatibility
11278 # with the native linker. However, as the warning in the GNU ld
11279 # block says, versions before 2.19.5* couldn't really create working
11280 # shared libraries, regardless of the interface used.
11281 case `$LD -v 2>&1` in
11282 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11283 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11284 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11285 *)
11286 lt_use_gnu_ld_interface=yes
11287 ;;
11288 esac
11289 ;;
11290 *)
11291 lt_use_gnu_ld_interface=yes
11292 ;;
11293 esac
11294 fi
11295
11296 if test yes = "$lt_use_gnu_ld_interface"; then
11297 # If archive_cmds runs LD, not CC, wlarc should be empty
11298 wlarc='$wl'
11299
11300 # Set some defaults for GNU ld with shared library support. These
11301 # are reset later if shared libraries are not supported. Putting them
11302 # here allows them to be overridden if necessary.
11303 runpath_var=LD_RUN_PATH
11304 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11305 export_dynamic_flag_spec='$wl--export-dynamic'
11306 # ancient GNU ld didn't support --whole-archive et. al.
11307 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11308 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11309 else
11310 whole_archive_flag_spec=
11311 fi
11312 supports_anon_versioning=no
11313 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
11314 *GNU\ gold*) supports_anon_versioning=yes ;;
11315 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11316 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11317 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11318 *\ 2.11.*) ;; # other 2.11 versions
11319 *) supports_anon_versioning=yes ;;
11320 esac
11321
11322 # See if GNU ld supports shared libraries.
11323 case $host_os in
11324 aix[3-9]*)
11325 # On AIX/PPC, the GNU linker is very broken
11326 if test ia64 != "$host_cpu"; then
11327 ld_shlibs=no
11328 cat <<_LT_EOF 1>&2
11329
11330 *** Warning: the GNU linker, at least up to release 2.19, is reported
11331 *** to be unable to reliably create shared libraries on AIX.
11332 *** Therefore, libtool is disabling shared libraries support. If you
11333 *** really care for shared libraries, you may want to install binutils
11334 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11335 *** You will then need to restart the configuration process.
11336
11337 _LT_EOF
11338 fi
11339 ;;
11340
11341 amigaos*)
11342 case $host_cpu in
11343 powerpc)
11344 # see comment about AmigaOS4 .so support
11345 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11346 archive_expsym_cmds=''
11347 ;;
11348 m68k)
11349 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)'
11350 hardcode_libdir_flag_spec='-L$libdir'
11351 hardcode_minus_L=yes
11352 ;;
11353 esac
11354 ;;
11355
11356 beos*)
11357 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11358 allow_undefined_flag=unsupported
11359 # Joseph Beckenbach <[email protected]> says some releases of gcc
11360 # support --undefined. This deserves some investigation. FIXME
11361 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11362 else
11363 ld_shlibs=no
11364 fi
11365 ;;
11366
11367 cygwin* | mingw* | windows* | pw32* | cegcc*)
11368 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11369 # as there is no search path for DLLs.
11370 hardcode_libdir_flag_spec='-L$libdir'
11371 export_dynamic_flag_spec='$wl--export-all-symbols'
11372 allow_undefined_flag=unsupported
11373 always_export_symbols=no
11374 enable_shared_with_static_runtimes=yes
11375 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'
11376 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11377 file_list_spec='@'
11378
11379 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11380 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11381 # If the export-symbols file already is a .def file, use it as
11382 # is; otherwise, prepend EXPORTS...
11383 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11384 cp $export_symbols $output_objdir/$soname.def;
11385 else
11386 echo EXPORTS > $output_objdir/$soname.def;
11387 cat $export_symbols >> $output_objdir/$soname.def;
11388 fi~
11389 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11390 else
11391 ld_shlibs=no
11392 fi
11393 ;;
11394
11395 haiku*)
11396 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11397 link_all_deplibs=no
11398 ;;
11399
11400 os2*)
11401 hardcode_libdir_flag_spec='-L$libdir'
11402 hardcode_minus_L=yes
11403 allow_undefined_flag=unsupported
11404 shrext_cmds=.dll
11405 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11406 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11407 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11408 $ECHO EXPORTS >> $output_objdir/$libname.def~
11409 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11410 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11411 emximp -o $lib $output_objdir/$libname.def'
11412 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11413 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11414 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11415 $ECHO EXPORTS >> $output_objdir/$libname.def~
11416 prefix_cmds="$SED"~
11417 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11418 prefix_cmds="$prefix_cmds -e 1d";
11419 fi~
11420 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11421 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11422 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11423 emximp -o $lib $output_objdir/$libname.def'
11424 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11425 enable_shared_with_static_runtimes=yes
11426 file_list_spec='@'
11427 ;;
11428
11429 interix[3-9]*)
11430 hardcode_direct=no
11431 hardcode_shlibpath_var=no
11432 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11433 export_dynamic_flag_spec='$wl-E'
11434 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11435 # Instead, shared libraries are loaded at an image base (0x10000000 by
11436 # default) and relocated if they conflict, which is a slow very memory
11437 # consuming and fragmenting process. To avoid this, we pick a random,
11438 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11439 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11440 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11441 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'
11442 ;;
11443
11444 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11445 tmp_diet=no
11446 if test linux-dietlibc = "$host_os"; then
11447 case $cc_basename in
11448 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11449 esac
11450 fi
11451 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11452 && test no = "$tmp_diet"
11453 then
11454 tmp_addflag=' $pic_flag'
11455 tmp_sharedflag='-shared'
11456 case $cc_basename,$host_cpu in
11457 pgcc*) # Portland Group C compiler
11458 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'
11459 tmp_addflag=' $pic_flag'
11460 ;;
11461 pgf77* | pgf90* | pgf95* | pgfortran*)
11462 # Portland Group f77 and f90 compilers
11463 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'
11464 tmp_addflag=' $pic_flag -Mnomain' ;;
11465 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11466 tmp_addflag=' -i_dynamic' ;;
11467 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11468 tmp_addflag=' -i_dynamic -nofor_main' ;;
11469 ifc* | ifort*) # Intel Fortran compiler
11470 tmp_addflag=' -nofor_main' ;;
11471 lf95*) # Lahey Fortran 8.1
11472 whole_archive_flag_spec=
11473 tmp_sharedflag='--shared' ;;
11474 nagfor*) # NAGFOR 5.3
11475 tmp_sharedflag='-Wl,-shared' ;;
11476 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11477 tmp_sharedflag='-qmkshrobj'
11478 tmp_addflag= ;;
11479 nvcc*) # Cuda Compiler Driver 2.2
11480 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'
11481 compiler_needs_object=yes
11482 ;;
11483 esac
11484 case `$CC -V 2>&1 | $SED 5q` in
11485 *Sun\ C*) # Sun C 5.9
11486 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'
11487 compiler_needs_object=yes
11488 tmp_sharedflag='-G' ;;
11489 *Sun\ F*) # Sun Fortran 8.3
11490 tmp_sharedflag='-G' ;;
11491 esac
11492 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11493
11494 if test yes = "$supports_anon_versioning"; then
11495 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11496 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11497 echo "local: *; };" >> $output_objdir/$libname.ver~
11498 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11499 fi
11500
11501 case $cc_basename in
11502 tcc*)
11503 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11504 export_dynamic_flag_spec='-rdynamic'
11505 ;;
11506 xlf* | bgf* | bgxlf* | mpixlf*)
11507 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11508 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11509 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11510 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11511 if test yes = "$supports_anon_versioning"; then
11512 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11513 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11514 echo "local: *; };" >> $output_objdir/$libname.ver~
11515 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11516 fi
11517 ;;
11518 esac
11519 else
11520 ld_shlibs=no
11521 fi
11522 ;;
11523
11524 *-mlibc)
11525 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11526 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11527 ;;
11528
11529 netbsd* | netbsdelf*-gnu)
11530 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11531 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11532 wlarc=
11533 else
11534 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11535 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11536 fi
11537 ;;
11538
11539 solaris*)
11540 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11541 ld_shlibs=no
11542 cat <<_LT_EOF 1>&2
11543
11544 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11545 *** create shared libraries on Solaris systems. Therefore, libtool
11546 *** is disabling shared libraries support. We urge you to upgrade GNU
11547 *** binutils to release 2.9.1 or newer. Another option is to modify
11548 *** your PATH or compiler configuration so that the native linker is
11549 *** used, and then restart.
11550
11551 _LT_EOF
11552 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11553 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11554 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11555 else
11556 ld_shlibs=no
11557 fi
11558 ;;
11559
11560 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11561 case `$LD -v 2>&1` in
11562 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11563 ld_shlibs=no
11564 cat <<_LT_EOF 1>&2
11565
11566 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11567 *** reliably create shared libraries on SCO systems. Therefore, libtool
11568 *** is disabling shared libraries support. We urge you to upgrade GNU
11569 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11570 *** your PATH or compiler configuration so that the native linker is
11571 *** used, and then restart.
11572
11573 _LT_EOF
11574 ;;
11575 *)
11576 # For security reasons, it is highly recommended that you always
11577 # use absolute paths for naming shared libraries, and exclude the
11578 # DT_RUNPATH tag from executables and libraries. But doing so
11579 # requires that you compile everything twice, which is a pain.
11580 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11581 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11582 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11583 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11584 else
11585 ld_shlibs=no
11586 fi
11587 ;;
11588 esac
11589 ;;
11590
11591 sunos4*)
11592 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11593 wlarc=
11594 hardcode_direct=yes
11595 hardcode_shlibpath_var=no
11596 ;;
11597
11598 *)
11599 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11600 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11601 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11602 else
11603 ld_shlibs=no
11604 fi
11605 ;;
11606 esac
11607
11608 if test no = "$ld_shlibs"; then
11609 runpath_var=
11610 hardcode_libdir_flag_spec=
11611 export_dynamic_flag_spec=
11612 whole_archive_flag_spec=
11613 fi
11614 else
11615 # PORTME fill in a description of your system's linker (not GNU ld)
11616 case $host_os in
11617 aix3*)
11618 allow_undefined_flag=unsupported
11619 always_export_symbols=yes
11620 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'
11621 # Note: this linker hardcodes the directories in LIBPATH if there
11622 # are no directories specified by -L.
11623 hardcode_minus_L=yes
11624 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11625 # Neither direct hardcoding nor static linking is supported with a
11626 # broken collect2.
11627 hardcode_direct=unsupported
11628 fi
11629 ;;
11630
11631 aix[4-9]*)
11632 if test ia64 = "$host_cpu"; then
11633 # On IA64, the linker does run time linking by default, so we don't
11634 # have to do anything special.
11635 aix_use_runtimelinking=no
11636 exp_sym_flag='-Bexport'
11637 no_entry_flag=
11638 else
11639 # If we're using GNU nm, then we don't want the "-C" option.
11640 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
11641 # Without the "-l" option, or with the "-B" option, AIX nm treats
11642 # weak defined symbols like other global defined symbols, whereas
11643 # GNU nm marks them as "W".
11644 # While the 'weak' keyword is ignored in the Export File, we need
11645 # it in the Import File for the 'aix-soname' feature, so we have
11646 # to replace the "-B" option with "-P" for AIX nm.
11647 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11648 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'
11649 else
11650 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'
11651 fi
11652 aix_use_runtimelinking=no
11653
11654 # Test if we are trying to use run time linking or normal
11655 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11656 # have runtime linking enabled, and use it for executables.
11657 # For shared libraries, we enable/disable runtime linking
11658 # depending on the kind of the shared library created -
11659 # when "with_aix_soname,aix_use_runtimelinking" is:
11660 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
11661 # "aix,yes" lib.so shared, rtl:yes, for executables
11662 # lib.a static archive
11663 # "both,no" lib.so.V(shr.o) shared, rtl:yes
11664 # lib.a(lib.so.V) shared, rtl:no, for executables
11665 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11666 # lib.a(lib.so.V) shared, rtl:no
11667 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
11668 # lib.a static archive
11669 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11670 for ld_flag in $LDFLAGS; do
11671 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11672 aix_use_runtimelinking=yes
11673 break
11674 fi
11675 done
11676 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11677 # With aix-soname=svr4, we create the lib.so.V shared archives only,
11678 # so we don't have lib.a shared libs to link our executables.
11679 # We have to force runtime linking in this case.
11680 aix_use_runtimelinking=yes
11681 LDFLAGS="$LDFLAGS -Wl,-brtl"
11682 fi
11683 ;;
11684 esac
11685
11686 exp_sym_flag='-bexport'
11687 no_entry_flag='-bnoentry'
11688 fi
11689
11690 # When large executables or shared objects are built, AIX ld can
11691 # have problems creating the table of contents. If linking a library
11692 # or program results in "error TOC overflow" add -mminimal-toc to
11693 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11694 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11695
11696 archive_cmds=''
11697 hardcode_direct=yes
11698 hardcode_direct_absolute=yes
11699 hardcode_libdir_separator=':'
11700 link_all_deplibs=yes
11701 file_list_spec='$wl-f,'
11702 case $with_aix_soname,$aix_use_runtimelinking in
11703 aix,*) ;; # traditional, no import file
11704 svr4,* | *,yes) # use import file
11705 # The Import File defines what to hardcode.
11706 hardcode_direct=no
11707 hardcode_direct_absolute=no
11708 ;;
11709 esac
11710
11711 if test yes = "$GCC"; then
11712 case $host_os in aix4.[012]|aix4.[012].*)
11713 # We only want to do this on AIX 4.2 and lower, the check
11714 # below for broken collect2 doesn't work under 4.3+
11715 collect2name=`$CC -print-prog-name=collect2`
11716 if test -f "$collect2name" &&
11717 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11718 then
11719 # We have reworked collect2
11720 :
11721 else
11722 # We have old collect2
11723 hardcode_direct=unsupported
11724 # It fails to find uninstalled libraries when the uninstalled
11725 # path is not listed in the libpath. Setting hardcode_minus_L
11726 # to unsupported forces relinking
11727 hardcode_minus_L=yes
11728 hardcode_libdir_flag_spec='-L$libdir'
11729 hardcode_libdir_separator=
11730 fi
11731 ;;
11732 esac
11733 shared_flag='-shared'
11734 if test yes = "$aix_use_runtimelinking"; then
11735 shared_flag="$shared_flag "'$wl-G'
11736 fi
11737 # Need to ensure runtime linking is disabled for the traditional
11738 # shared library, or the linker may eventually find shared libraries
11739 # /with/ Import File - we do not want to mix them.
11740 shared_flag_aix='-shared'
11741 shared_flag_svr4='-shared $wl-G'
11742 else
11743 # not using gcc
11744 if test ia64 = "$host_cpu"; then
11745 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11746 # chokes on -Wl,-G. The following line is correct:
11747 shared_flag='-G'
11748 else
11749 if test yes = "$aix_use_runtimelinking"; then
11750 shared_flag='$wl-G'
11751 else
11752 shared_flag='$wl-bM:SRE'
11753 fi
11754 shared_flag_aix='$wl-bM:SRE'
11755 shared_flag_svr4='$wl-G'
11756 fi
11757 fi
11758
11759 export_dynamic_flag_spec='$wl-bexpall'
11760 # It seems that -bexpall does not export symbols beginning with
11761 # underscore (_), so it is better to generate a list of symbols to export.
11762 always_export_symbols=yes
11763 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11764 # Warning - without using the other runtime loading flags (-brtl),
11765 # -berok will link without error, but may produce a broken library.
11766 allow_undefined_flag='-berok'
11767 # Determine the default libpath from the value encoded in an
11768 # empty executable.
11769 if test set = "${lt_cv_aix_libpath+set}"; then
11770 aix_libpath=$lt_cv_aix_libpath
11771 else
11772 if test ${lt_cv_aix_libpath_+y}
11773 then :
11774 printf %s "(cached) " >&6
11775 else case e in #(
11776 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11777 /* end confdefs.h. */
11778
11779 int
11780 main (void)
11781 {
11782
11783 ;
11784 return 0;
11785 }
11786 _ACEOF
11787 if ac_fn_c_try_link "$LINENO"
11788 then :
11789
11790 lt_aix_libpath_sed='
11791 /Import File Strings/,/^$/ {
11792 /^0/ {
11793 s/^0 *\([^ ]*\) *$/\1/
11794 p
11795 }
11796 }'
11797 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11798 # Check for a 64-bit object if we didn't find anything.
11799 if test -z "$lt_cv_aix_libpath_"; then
11800 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11801 fi
11802 fi
11803 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11804 conftest$ac_exeext conftest.$ac_ext
11805 if test -z "$lt_cv_aix_libpath_"; then
11806 lt_cv_aix_libpath_=/usr/lib:/lib
11807 fi
11808 ;;
11809 esac
11810 fi
11811
11812 aix_libpath=$lt_cv_aix_libpath_
11813 fi
11814
11815 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11816 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
11817 else
11818 if test ia64 = "$host_cpu"; then
11819 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11820 allow_undefined_flag="-z nodefs"
11821 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"
11822 else
11823 # Determine the default libpath from the value encoded in an
11824 # empty executable.
11825 if test set = "${lt_cv_aix_libpath+set}"; then
11826 aix_libpath=$lt_cv_aix_libpath
11827 else
11828 if test ${lt_cv_aix_libpath_+y}
11829 then :
11830 printf %s "(cached) " >&6
11831 else case e in #(
11832 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11833 /* end confdefs.h. */
11834
11835 int
11836 main (void)
11837 {
11838
11839 ;
11840 return 0;
11841 }
11842 _ACEOF
11843 if ac_fn_c_try_link "$LINENO"
11844 then :
11845
11846 lt_aix_libpath_sed='
11847 /Import File Strings/,/^$/ {
11848 /^0/ {
11849 s/^0 *\([^ ]*\) *$/\1/
11850 p
11851 }
11852 }'
11853 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11854 # Check for a 64-bit object if we didn't find anything.
11855 if test -z "$lt_cv_aix_libpath_"; then
11856 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11857 fi
11858 fi
11859 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11860 conftest$ac_exeext conftest.$ac_ext
11861 if test -z "$lt_cv_aix_libpath_"; then
11862 lt_cv_aix_libpath_=/usr/lib:/lib
11863 fi
11864 ;;
11865 esac
11866 fi
11867
11868 aix_libpath=$lt_cv_aix_libpath_
11869 fi
11870
11871 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11872 # Warning - without using the other run time loading flags,
11873 # -berok will link without error, but may produce a broken library.
11874 no_undefined_flag=' $wl-bernotok'
11875 allow_undefined_flag=' $wl-berok'
11876 if test yes = "$with_gnu_ld"; then
11877 # We only use this code for GNU lds that support --whole-archive.
11878 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11879 else
11880 # Exported symbols can be pulled into shared objects from archives
11881 whole_archive_flag_spec='$convenience'
11882 fi
11883 archive_cmds_need_lc=yes
11884 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11885 # -brtl affects multiple linker settings, -berok does not and is overridden later
11886 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11887 if test svr4 != "$with_aix_soname"; then
11888 # This is similar to how AIX traditionally builds its shared libraries.
11889 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'
11890 fi
11891 if test aix != "$with_aix_soname"; then
11892 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'
11893 else
11894 # used by -dlpreopen to get the symbols
11895 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
11896 fi
11897 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11898 fi
11899 fi
11900 ;;
11901
11902 amigaos*)
11903 case $host_cpu in
11904 powerpc)
11905 # see comment about AmigaOS4 .so support
11906 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11907 archive_expsym_cmds=''
11908 ;;
11909 m68k)
11910 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)'
11911 hardcode_libdir_flag_spec='-L$libdir'
11912 hardcode_minus_L=yes
11913 ;;
11914 esac
11915 ;;
11916
11917 bsdi[45]*)
11918 export_dynamic_flag_spec=-rdynamic
11919 ;;
11920
11921 cygwin* | mingw* | windows* | pw32* | cegcc*)
11922 # When not using gcc, we currently assume that we are using
11923 # Microsoft Visual C++ or Intel C++ Compiler.
11924 # hardcode_libdir_flag_spec is actually meaningless, as there is
11925 # no search path for DLLs.
11926 case $cc_basename in
11927 cl* | icl*)
11928 # Native MSVC or ICC
11929 hardcode_libdir_flag_spec=' '
11930 allow_undefined_flag=unsupported
11931 always_export_symbols=yes
11932 file_list_spec='@'
11933 # Tell ltmain to make .lib files, not .a files.
11934 libext=lib
11935 # Tell ltmain to make .dll files, not .so files.
11936 shrext_cmds=.dll
11937 # FIXME: Setting linknames here is a bad hack.
11938 archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11939 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11940 cp "$export_symbols" "$output_objdir/$soname.def";
11941 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11942 else
11943 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11944 fi~
11945 $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11946 linknames='
11947 # The linker will not automatically build a static lib if we build a DLL.
11948 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11949 enable_shared_with_static_runtimes=yes
11950 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11951 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11952 # Don't use ranlib
11953 old_postinstall_cmds='chmod 644 $oldlib'
11954 postlink_cmds='lt_outputfile="@OUTPUT@"~
11955 lt_tool_outputfile="@TOOL_OUTPUT@"~
11956 case $lt_outputfile in
11957 *.exe|*.EXE) ;;
11958 *)
11959 lt_outputfile=$lt_outputfile.exe
11960 lt_tool_outputfile=$lt_tool_outputfile.exe
11961 ;;
11962 esac~
11963 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11964 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11965 $RM "$lt_outputfile.manifest";
11966 fi'
11967 ;;
11968 *)
11969 # Assume MSVC and ICC wrapper
11970 hardcode_libdir_flag_spec=' '
11971 allow_undefined_flag=unsupported
11972 # Tell ltmain to make .lib files, not .a files.
11973 libext=lib
11974 # Tell ltmain to make .dll files, not .so files.
11975 shrext_cmds=.dll
11976 # FIXME: Setting linknames here is a bad hack.
11977 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11978 # The linker will automatically build a .lib file if we build a DLL.
11979 old_archive_from_new_cmds='true'
11980 # FIXME: Should let the user specify the lib program.
11981 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11982 enable_shared_with_static_runtimes=yes
11983 ;;
11984 esac
11985 ;;
11986
11987 darwin* | rhapsody*)
11988
11989
11990 archive_cmds_need_lc=no
11991 hardcode_direct=no
11992 hardcode_automatic=yes
11993 hardcode_shlibpath_var=unsupported
11994 if test yes = "$lt_cv_ld_force_load"; then
11995 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\"`'
11996
11997 else
11998 whole_archive_flag_spec=''
11999 fi
12000 link_all_deplibs=yes
12001 allow_undefined_flag=$_lt_dar_allow_undefined
12002 case $cc_basename in
12003 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
12004 *) _lt_dar_can_shared=$GCC ;;
12005 esac
12006 if test yes = "$_lt_dar_can_shared"; then
12007 output_verbose_link_cmd=func_echo_all
12008 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
12009 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
12010 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"
12011 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"
12012
12013 else
12014 ld_shlibs=no
12015 fi
12016
12017 ;;
12018
12019 dgux*)
12020 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12021 hardcode_libdir_flag_spec='-L$libdir'
12022 hardcode_shlibpath_var=no
12023 ;;
12024
12025 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12026 # support. Future versions do this automatically, but an explicit c++rt0.o
12027 # does not break anything, and helps significantly (at the cost of a little
12028 # extra space).
12029 freebsd2.2*)
12030 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12031 hardcode_libdir_flag_spec='-R$libdir'
12032 hardcode_direct=yes
12033 hardcode_shlibpath_var=no
12034 ;;
12035
12036 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12037 freebsd2.*)
12038 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12039 hardcode_direct=yes
12040 hardcode_minus_L=yes
12041 hardcode_shlibpath_var=no
12042 ;;
12043
12044 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12045 freebsd* | dragonfly* | midnightbsd*)
12046 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12047 hardcode_libdir_flag_spec='-R$libdir'
12048 hardcode_direct=yes
12049 hardcode_shlibpath_var=no
12050 ;;
12051
12052 hpux9*)
12053 if test yes = "$GCC"; then
12054 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'
12055 else
12056 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'
12057 fi
12058 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12059 hardcode_libdir_separator=:
12060 hardcode_direct=yes
12061
12062 # hardcode_minus_L: Not really in the search PATH,
12063 # but as the default location of the library.
12064 hardcode_minus_L=yes
12065 export_dynamic_flag_spec='$wl-E'
12066 ;;
12067
12068 hpux10*)
12069 if test yes,no = "$GCC,$with_gnu_ld"; then
12070 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12071 else
12072 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12073 fi
12074 if test no = "$with_gnu_ld"; then
12075 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12076 hardcode_libdir_separator=:
12077 hardcode_direct=yes
12078 hardcode_direct_absolute=yes
12079 export_dynamic_flag_spec='$wl-E'
12080 # hardcode_minus_L: Not really in the search PATH,
12081 # but as the default location of the library.
12082 hardcode_minus_L=yes
12083 fi
12084 ;;
12085
12086 hpux11*)
12087 if test yes,no = "$GCC,$with_gnu_ld"; then
12088 case $host_cpu in
12089 hppa*64*)
12090 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12091 ;;
12092 ia64*)
12093 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12094 ;;
12095 *)
12096 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12097 ;;
12098 esac
12099 else
12100 case $host_cpu in
12101 hppa*64*)
12102 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12103 ;;
12104 ia64*)
12105 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12106 ;;
12107 *)
12108
12109 # Older versions of the 11.00 compiler do not understand -b yet
12110 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12112 printf %s "checking if $CC understands -b... " >&6; }
12113 if test ${lt_cv_prog_compiler__b+y}
12114 then :
12115 printf %s "(cached) " >&6
12116 else case e in #(
12117 e) lt_cv_prog_compiler__b=no
12118 save_LDFLAGS=$LDFLAGS
12119 LDFLAGS="$LDFLAGS -b"
12120 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12121 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12122 # The linker can only warn and ignore the option if not recognized
12123 # So say no if there are warnings
12124 if test -s conftest.err; then
12125 # Append any errors to the config.log.
12126 cat conftest.err 1>&5
12127 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12128 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12129 if diff conftest.exp conftest.er2 >/dev/null; then
12130 lt_cv_prog_compiler__b=yes
12131 fi
12132 else
12133 lt_cv_prog_compiler__b=yes
12134 fi
12135 fi
12136 $RM -r conftest*
12137 LDFLAGS=$save_LDFLAGS
12138 ;;
12139 esac
12140 fi
12141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12142 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
12143
12144 if test yes = "$lt_cv_prog_compiler__b"; then
12145 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12146 else
12147 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12148 fi
12149
12150 ;;
12151 esac
12152 fi
12153 if test no = "$with_gnu_ld"; then
12154 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12155 hardcode_libdir_separator=:
12156
12157 case $host_cpu in
12158 hppa*64*|ia64*)
12159 hardcode_direct=no
12160 hardcode_shlibpath_var=no
12161 ;;
12162 *)
12163 hardcode_direct=yes
12164 hardcode_direct_absolute=yes
12165 export_dynamic_flag_spec='$wl-E'
12166
12167 # hardcode_minus_L: Not really in the search PATH,
12168 # but as the default location of the library.
12169 hardcode_minus_L=yes
12170 ;;
12171 esac
12172 fi
12173 ;;
12174
12175 irix5* | irix6* | nonstopux*)
12176 if test yes = "$GCC"; then
12177 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'
12178 # Try to use the -exported_symbol ld option, if it does not
12179 # work, assume that -exports_file does not work either and
12180 # implicitly export all symbols.
12181 # This should be the same for all languages, so no per-tag cache variable.
12182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12183 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12184 if test ${lt_cv_irix_exported_symbol+y}
12185 then :
12186 printf %s "(cached) " >&6
12187 else case e in #(
12188 e) save_LDFLAGS=$LDFLAGS
12189 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
12190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12191 /* end confdefs.h. */
12192 int foo (void) { return 0; }
12193 _ACEOF
12194 if ac_fn_c_try_link "$LINENO"
12195 then :
12196 lt_cv_irix_exported_symbol=yes
12197 else case e in #(
12198 e) lt_cv_irix_exported_symbol=no ;;
12199 esac
12200 fi
12201 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12202 conftest$ac_exeext conftest.$ac_ext
12203 LDFLAGS=$save_LDFLAGS ;;
12204 esac
12205 fi
12206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12207 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
12208 if test yes = "$lt_cv_irix_exported_symbol"; then
12209 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'
12210 fi
12211 else
12212 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'
12213 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'
12214 fi
12215 archive_cmds_need_lc='no'
12216 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12217 hardcode_libdir_separator=:
12218 inherit_rpath=yes
12219 link_all_deplibs=yes
12220 ;;
12221
12222 linux*)
12223 case $cc_basename in
12224 tcc*)
12225 # Fabrice Bellard et al's Tiny C Compiler
12226 ld_shlibs=yes
12227 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12228 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12229 ;;
12230 esac
12231 ;;
12232
12233 *-mlibc)
12234 ;;
12235
12236 netbsd* | netbsdelf*-gnu)
12237 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12238 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12239 else
12240 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12241 fi
12242 hardcode_libdir_flag_spec='-R$libdir'
12243 hardcode_direct=yes
12244 hardcode_shlibpath_var=no
12245 ;;
12246
12247 newsos6)
12248 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12249 hardcode_direct=yes
12250 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12251 hardcode_libdir_separator=:
12252 hardcode_shlibpath_var=no
12253 ;;
12254
12255 *nto* | *qnx*)
12256 ;;
12257
12258 openbsd*)
12259 if test -f /usr/libexec/ld.so; then
12260 hardcode_direct=yes
12261 hardcode_shlibpath_var=no
12262 hardcode_direct_absolute=yes
12263 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12264 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12265 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12266 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12267 export_dynamic_flag_spec='$wl-E'
12268 else
12269 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12270 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12271 fi
12272 else
12273 ld_shlibs=no
12274 fi
12275 ;;
12276
12277 os2*)
12278 hardcode_libdir_flag_spec='-L$libdir'
12279 hardcode_minus_L=yes
12280 allow_undefined_flag=unsupported
12281 shrext_cmds=.dll
12282 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12283 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12284 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12285 $ECHO EXPORTS >> $output_objdir/$libname.def~
12286 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12287 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12288 emximp -o $lib $output_objdir/$libname.def'
12289 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12290 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12291 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12292 $ECHO EXPORTS >> $output_objdir/$libname.def~
12293 prefix_cmds="$SED"~
12294 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12295 prefix_cmds="$prefix_cmds -e 1d";
12296 fi~
12297 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12298 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12299 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12300 emximp -o $lib $output_objdir/$libname.def'
12301 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12302 enable_shared_with_static_runtimes=yes
12303 file_list_spec='@'
12304 ;;
12305
12306 osf3*)
12307 if test yes = "$GCC"; then
12308 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12309 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'
12310 else
12311 allow_undefined_flag=' -expect_unresolved \*'
12312 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'
12313 fi
12314 archive_cmds_need_lc='no'
12315 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12316 hardcode_libdir_separator=:
12317 ;;
12318
12319 osf4* | osf5*) # as osf3* with the addition of -msym flag
12320 if test yes = "$GCC"; then
12321 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12322 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'
12323 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12324 else
12325 allow_undefined_flag=' -expect_unresolved \*'
12326 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'
12327 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~
12328 $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'
12329
12330 # Both c and cxx compiler support -rpath directly
12331 hardcode_libdir_flag_spec='-rpath $libdir'
12332 fi
12333 archive_cmds_need_lc='no'
12334 hardcode_libdir_separator=:
12335 ;;
12336
12337 serenity*)
12338 ;;
12339
12340 solaris*)
12341 no_undefined_flag=' -z defs'
12342 if test yes = "$GCC"; then
12343 wlarc='$wl'
12344 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12345 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12346 $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'
12347 else
12348 case `$CC -V 2>&1` in
12349 *"Compilers 5.0"*)
12350 wlarc=''
12351 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12352 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12353 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12354 ;;
12355 *)
12356 wlarc='$wl'
12357 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12358 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12359 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12360 ;;
12361 esac
12362 fi
12363 hardcode_libdir_flag_spec='-R$libdir'
12364 hardcode_shlibpath_var=no
12365 case $host_os in
12366 solaris2.[0-5] | solaris2.[0-5].*) ;;
12367 *)
12368 # The compiler driver will combine and reorder linker options,
12369 # but understands '-z linker_flag'. GCC discards it without '$wl',
12370 # but is careful enough not to reorder.
12371 # Supported since Solaris 2.6 (maybe 2.5.1?)
12372 if test yes = "$GCC"; then
12373 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12374 else
12375 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12376 fi
12377 ;;
12378 esac
12379 link_all_deplibs=yes
12380 ;;
12381
12382 sunos4*)
12383 if test sequent = "$host_vendor"; then
12384 # Use $CC to link under sequent, because it throws in some extra .o
12385 # files that make .init and .fini sections work.
12386 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12387 else
12388 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12389 fi
12390 hardcode_libdir_flag_spec='-L$libdir'
12391 hardcode_direct=yes
12392 hardcode_minus_L=yes
12393 hardcode_shlibpath_var=no
12394 ;;
12395
12396 sysv4)
12397 case $host_vendor in
12398 sni)
12399 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12400 hardcode_direct=yes # is this really true???
12401 ;;
12402 siemens)
12403 ## LD is ld it makes a PLAMLIB
12404 ## CC just makes a GrossModule.
12405 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12406 reload_cmds='$CC -r -o $output$reload_objs'
12407 hardcode_direct=no
12408 ;;
12409 motorola)
12410 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12411 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12412 ;;
12413 esac
12414 runpath_var='LD_RUN_PATH'
12415 hardcode_shlibpath_var=no
12416 ;;
12417
12418 sysv4.3*)
12419 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12420 hardcode_shlibpath_var=no
12421 export_dynamic_flag_spec='-Bexport'
12422 ;;
12423
12424 sysv4*MP*)
12425 if test -d /usr/nec; then
12426 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12427 hardcode_shlibpath_var=no
12428 runpath_var=LD_RUN_PATH
12429 hardcode_runpath_var=yes
12430 ld_shlibs=yes
12431 fi
12432 ;;
12433
12434 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12435 no_undefined_flag='$wl-z,text'
12436 archive_cmds_need_lc=no
12437 hardcode_shlibpath_var=no
12438 runpath_var='LD_RUN_PATH'
12439
12440 if test yes = "$GCC"; then
12441 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12442 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12443 else
12444 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12445 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12446 fi
12447 ;;
12448
12449 sysv5* | sco3.2v5* | sco5v6*)
12450 # Note: We CANNOT use -z defs as we might desire, because we do not
12451 # link with -lc, and that would cause any symbols used from libc to
12452 # always be unresolved, which means just about no library would
12453 # ever link correctly. If we're not using GNU ld we use -z text
12454 # though, which does catch some bad symbols but isn't as heavy-handed
12455 # as -z defs.
12456 no_undefined_flag='$wl-z,text'
12457 allow_undefined_flag='$wl-z,nodefs'
12458 archive_cmds_need_lc=no
12459 hardcode_shlibpath_var=no
12460 hardcode_libdir_flag_spec='$wl-R,$libdir'
12461 hardcode_libdir_separator=':'
12462 link_all_deplibs=yes
12463 export_dynamic_flag_spec='$wl-Bexport'
12464 runpath_var='LD_RUN_PATH'
12465
12466 if test yes = "$GCC"; then
12467 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12468 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12469 else
12470 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12471 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12472 fi
12473 ;;
12474
12475 uts4*)
12476 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12477 hardcode_libdir_flag_spec='-L$libdir'
12478 hardcode_shlibpath_var=no
12479 ;;
12480
12481 *)
12482 ld_shlibs=no
12483 ;;
12484 esac
12485
12486 if test sni = "$host_vendor"; then
12487 case $host in
12488 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12489 export_dynamic_flag_spec='$wl-Blargedynsym'
12490 ;;
12491 esac
12492 fi
12493 fi
12494
12495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12496 printf "%s\n" "$ld_shlibs" >&6; }
12497 test no = "$ld_shlibs" && can_build_shared=no
12498
12499 with_gnu_ld=$with_gnu_ld
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515 #
12516 # Do we need to explicitly link libc?
12517 #
12518 case "x$archive_cmds_need_lc" in
12519 x|xyes)
12520 # Assume -lc should be added
12521 archive_cmds_need_lc=yes
12522
12523 if test yes,yes = "$GCC,$enable_shared"; then
12524 case $archive_cmds in
12525 *'~'*)
12526 # FIXME: we may have to deal with multi-command sequences.
12527 ;;
12528 '$CC '*)
12529 # Test whether the compiler implicitly links with -lc since on some
12530 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12531 # to ld, don't add -lc before -lgcc.
12532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12533 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
12534 if test ${lt_cv_archive_cmds_need_lc+y}
12535 then :
12536 printf %s "(cached) " >&6
12537 else case e in #(
12538 e) $RM conftest*
12539 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12540
12541 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12542 (eval $ac_compile) 2>&5
12543 ac_status=$?
12544 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12545 test $ac_status = 0; } 2>conftest.err; then
12546 soname=conftest
12547 lib=conftest
12548 libobjs=conftest.$ac_objext
12549 deplibs=
12550 wl=$lt_prog_compiler_wl
12551 pic_flag=$lt_prog_compiler_pic
12552 compiler_flags=-v
12553 linker_flags=-v
12554 verstring=
12555 output_objdir=.
12556 libname=conftest
12557 lt_save_allow_undefined_flag=$allow_undefined_flag
12558 allow_undefined_flag=
12559 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12560 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12561 ac_status=$?
12562 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12563 test $ac_status = 0; }
12564 then
12565 lt_cv_archive_cmds_need_lc=no
12566 else
12567 lt_cv_archive_cmds_need_lc=yes
12568 fi
12569 allow_undefined_flag=$lt_save_allow_undefined_flag
12570 else
12571 cat conftest.err 1>&5
12572 fi
12573 $RM conftest*
12574 ;;
12575 esac
12576 fi
12577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12578 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
12579 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12580 ;;
12581 esac
12582 fi
12583 ;;
12584 esac
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616
12617
12618
12619
12620
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12738 printf %s "checking dynamic linker characteristics... " >&6; }
12739
12740 if test yes = "$GCC"; then
12741 case $host_os in
12742 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12743 *) lt_awk_arg='/^libraries:/' ;;
12744 esac
12745 case $host_os in
12746 mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12747 *) lt_sed_strip_eq='s|=/|/|g' ;;
12748 esac
12749 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12750 case $lt_search_path_spec in
12751 *\;*)
12752 # if the path contains ";" then we assume it to be the separator
12753 # otherwise default to the standard path separator (i.e. ":") - it is
12754 # assumed that no part of a normal pathname contains ";" but that should
12755 # okay in the real world where ";" in dirpaths is itself problematic.
12756 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12757 ;;
12758 *)
12759 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12760 ;;
12761 esac
12762 # Ok, now we have the path, separated by spaces, we can step through it
12763 # and add multilib dir if necessary...
12764 lt_tmp_lt_search_path_spec=
12765 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12766 # ...but if some path component already ends with the multilib dir we assume
12767 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12768 case "$lt_multi_os_dir; $lt_search_path_spec " in
12769 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12770 lt_multi_os_dir=
12771 ;;
12772 esac
12773 for lt_sys_path in $lt_search_path_spec; do
12774 if test -d "$lt_sys_path$lt_multi_os_dir"; then
12775 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12776 elif test -n "$lt_multi_os_dir"; then
12777 test -d "$lt_sys_path" && \
12778 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12779 fi
12780 done
12781 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12782 BEGIN {RS = " "; FS = "/|\n";} {
12783 lt_foo = "";
12784 lt_count = 0;
12785 for (lt_i = NF; lt_i > 0; lt_i--) {
12786 if ($lt_i != "" && $lt_i != ".") {
12787 if ($lt_i == "..") {
12788 lt_count++;
12789 } else {
12790 if (lt_count == 0) {
12791 lt_foo = "/" $lt_i lt_foo;
12792 } else {
12793 lt_count--;
12794 }
12795 }
12796 }
12797 }
12798 if (lt_foo != "") { lt_freq[lt_foo]++; }
12799 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12800 }'`
12801 # AWK program above erroneously prepends '/' to C:/dos/paths
12802 # for these hosts.
12803 case $host_os in
12804 mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12805 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12806 esac
12807 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12808 else
12809 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12810 fi
12811 library_names_spec=
12812 libname_spec='lib$name'
12813 soname_spec=
12814 shrext_cmds=.so
12815 postinstall_cmds=
12816 postuninstall_cmds=
12817 finish_cmds=
12818 finish_eval=
12819 shlibpath_var=
12820 shlibpath_overrides_runpath=unknown
12821 version_type=none
12822 dynamic_linker="$host_os ld.so"
12823 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12824 need_lib_prefix=unknown
12825 hardcode_into_libs=no
12826
12827 # when you set need_version to no, make sure it does not cause -set_version
12828 # flags to be left without arguments
12829 need_version=unknown
12830
12831
12832
12833 case $host_os in
12834 aix3*)
12835 version_type=linux # correct to gnu/linux during the next big refactor
12836 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12837 shlibpath_var=LIBPATH
12838
12839 # AIX 3 has no versioning support, so we append a major version to the name.
12840 soname_spec='$libname$release$shared_ext$major'
12841 ;;
12842
12843 aix[4-9]*)
12844 version_type=linux # correct to gnu/linux during the next big refactor
12845 need_lib_prefix=no
12846 need_version=no
12847 hardcode_into_libs=yes
12848 if test ia64 = "$host_cpu"; then
12849 # AIX 5 supports IA64
12850 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12851 shlibpath_var=LD_LIBRARY_PATH
12852 else
12853 # With GCC up to 2.95.x, collect2 would create an import file
12854 # for dependence libraries. The import file would start with
12855 # the line '#! .'. This would cause the generated library to
12856 # depend on '.', always an invalid library. This was fixed in
12857 # development snapshots of GCC prior to 3.0.
12858 case $host_os in
12859 aix4 | aix4.[01] | aix4.[01].*)
12860 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12861 echo ' yes '
12862 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12863 :
12864 else
12865 can_build_shared=no
12866 fi
12867 ;;
12868 esac
12869 # Using Import Files as archive members, it is possible to support
12870 # filename-based versioning of shared library archives on AIX. While
12871 # this would work for both with and without runtime linking, it will
12872 # prevent static linking of such archives. So we do filename-based
12873 # shared library versioning with .so extension only, which is used
12874 # when both runtime linking and shared linking is enabled.
12875 # Unfortunately, runtime linking may impact performance, so we do
12876 # not want this to be the default eventually. Also, we use the
12877 # versioned .so libs for executables only if there is the -brtl
12878 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
12879 # To allow for filename-based versioning support, we need to create
12880 # libNAME.so.V as an archive file, containing:
12881 # *) an Import File, referring to the versioned filename of the
12882 # archive as well as the shared archive member, telling the
12883 # bitwidth (32 or 64) of that shared object, and providing the
12884 # list of exported symbols of that shared object, eventually
12885 # decorated with the 'weak' keyword
12886 # *) the shared object with the F_LOADONLY flag set, to really avoid
12887 # it being seen by the linker.
12888 # At run time we better use the real file rather than another symlink,
12889 # but for link time we create the symlink libNAME.so -> libNAME.so.V
12890
12891 case $with_aix_soname,$aix_use_runtimelinking in
12892 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12893 # soname into executable. Probably we can add versioning support to
12894 # collect2, so additional links can be useful in future.
12895 aix,yes) # traditional libtool
12896 dynamic_linker='AIX unversionable lib.so'
12897 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12898 # instead of lib<name>.a to let people know that these are not
12899 # typical AIX shared libraries.
12900 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12901 ;;
12902 aix,no) # traditional AIX only
12903 dynamic_linker='AIX lib.a(lib.so.V)'
12904 # We preserve .a as extension for shared libraries through AIX4.2
12905 # and later when we are not doing run time linking.
12906 library_names_spec='$libname$release.a $libname.a'
12907 soname_spec='$libname$release$shared_ext$major'
12908 ;;
12909 svr4,*) # full svr4 only
12910 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12911 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12912 # We do not specify a path in Import Files, so LIBPATH fires.
12913 shlibpath_overrides_runpath=yes
12914 ;;
12915 *,yes) # both, prefer svr4
12916 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12917 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12918 # unpreferred sharedlib libNAME.a needs extra handling
12919 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"'
12920 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"'
12921 # We do not specify a path in Import Files, so LIBPATH fires.
12922 shlibpath_overrides_runpath=yes
12923 ;;
12924 *,no) # both, prefer aix
12925 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12926 library_names_spec='$libname$release.a $libname.a'
12927 soname_spec='$libname$release$shared_ext$major'
12928 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12929 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)'
12930 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"'
12931 ;;
12932 esac
12933 shlibpath_var=LIBPATH
12934 fi
12935 ;;
12936
12937 amigaos*)
12938 case $host_cpu in
12939 powerpc)
12940 # Since July 2007 AmigaOS4 officially supports .so libraries.
12941 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12942 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12943 ;;
12944 m68k)
12945 library_names_spec='$libname.ixlibrary $libname.a'
12946 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12947 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'
12948 ;;
12949 esac
12950 ;;
12951
12952 beos*)
12953 library_names_spec='$libname$shared_ext'
12954 dynamic_linker="$host_os ld.so"
12955 shlibpath_var=LIBRARY_PATH
12956 ;;
12957
12958 bsdi[45]*)
12959 version_type=linux # correct to gnu/linux during the next big refactor
12960 need_version=no
12961 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12962 soname_spec='$libname$release$shared_ext$major'
12963 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12964 shlibpath_var=LD_LIBRARY_PATH
12965 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12966 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12967 # the default ld.so.conf also contains /usr/contrib/lib and
12968 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12969 # libtool to hard-code these into programs
12970 ;;
12971
12972 cygwin* | mingw* | windows* | pw32* | cegcc*)
12973 version_type=windows
12974 shrext_cmds=.dll
12975 need_version=no
12976 need_lib_prefix=no
12977
12978 case $GCC,$cc_basename in
12979 yes,*)
12980 # gcc
12981 library_names_spec='$libname.dll.a'
12982 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12983 # If user builds GCC with multilib enabled,
12984 # it should just install on $(libdir)
12985 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
12986 if test xyes = x"$multilib"; then
12987 postinstall_cmds='base_file=`basename \$file`~
12988 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12989 dldir=$destdir/`dirname \$dlpath`~
12990 $install_prog $dir/$dlname $destdir/$dlname~
12991 chmod a+x $destdir/$dlname~
12992 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12993 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
12994 fi'
12995 else
12996 postinstall_cmds='base_file=`basename \$file`~
12997 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12998 dldir=$destdir/`dirname \$dlpath`~
12999 test -d \$dldir || mkdir -p \$dldir~
13000 $install_prog $dir/$dlname \$dldir/$dlname~
13001 chmod a+x \$dldir/$dlname~
13002 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13003 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13004 fi'
13005 fi
13006 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13007 dlpath=$dir/\$dldll~
13008 $RM \$dlpath'
13009 shlibpath_overrides_runpath=yes
13010
13011 case $host_os in
13012 cygwin*)
13013 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13014 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13015
13016 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13017 ;;
13018 mingw* | windows* | cegcc*)
13019 # MinGW DLLs use traditional 'lib' prefix
13020 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13021 ;;
13022 pw32*)
13023 # pw32 DLLs use 'pw' prefix rather than 'lib'
13024 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13025 ;;
13026 esac
13027 dynamic_linker='Win32 ld.exe'
13028 ;;
13029
13030 *,cl* | *,icl*)
13031 # Native MSVC or ICC
13032 libname_spec='$name'
13033 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13034 library_names_spec='$libname.dll.lib'
13035
13036 case $build_os in
13037 mingw* | windows*)
13038 sys_lib_search_path_spec=
13039 lt_save_ifs=$IFS
13040 IFS=';'
13041 for lt_path in $LIB
13042 do
13043 IFS=$lt_save_ifs
13044 # Let DOS variable expansion print the short 8.3 style file name.
13045 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13046 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13047 done
13048 IFS=$lt_save_ifs
13049 # Convert to MSYS style.
13050 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13051 ;;
13052 cygwin*)
13053 # Convert to unix form, then to dos form, then back to unix form
13054 # but this time dos style (no spaces!) so that the unix form looks
13055 # like /cygdrive/c/PROGRA~1:/cygdr...
13056 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13057 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13058 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13059 ;;
13060 *)
13061 sys_lib_search_path_spec=$LIB
13062 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13063 # It is most probably a Windows format PATH.
13064 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13065 else
13066 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13067 fi
13068 # FIXME: find the short name or the path components, as spaces are
13069 # common. (e.g. "Program Files" -> "PROGRA~1")
13070 ;;
13071 esac
13072
13073 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13074 postinstall_cmds='base_file=`basename \$file`~
13075 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13076 dldir=$destdir/`dirname \$dlpath`~
13077 test -d \$dldir || mkdir -p \$dldir~
13078 $install_prog $dir/$dlname \$dldir/$dlname'
13079 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13080 dlpath=$dir/\$dldll~
13081 $RM \$dlpath'
13082 shlibpath_overrides_runpath=yes
13083 dynamic_linker='Win32 link.exe'
13084 ;;
13085
13086 *)
13087 # Assume MSVC and ICC wrapper
13088 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
13089 dynamic_linker='Win32 ld.exe'
13090 ;;
13091 esac
13092 # FIXME: first we should search . and the directory the executable is in
13093 shlibpath_var=PATH
13094 ;;
13095
13096 darwin* | rhapsody*)
13097 dynamic_linker="$host_os dyld"
13098 version_type=darwin
13099 need_lib_prefix=no
13100 need_version=no
13101 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
13102 soname_spec='$libname$release$major$shared_ext'
13103 shlibpath_overrides_runpath=yes
13104 shlibpath_var=DYLD_LIBRARY_PATH
13105 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13106
13107 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13108 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13109 ;;
13110
13111 dgux*)
13112 version_type=linux # correct to gnu/linux during the next big refactor
13113 need_lib_prefix=no
13114 need_version=no
13115 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13116 soname_spec='$libname$release$shared_ext$major'
13117 shlibpath_var=LD_LIBRARY_PATH
13118 ;;
13119
13120 freebsd* | dragonfly* | midnightbsd*)
13121 # DragonFly does not have aout. When/if they implement a new
13122 # versioning mechanism, adjust this.
13123 if test -x /usr/bin/objformat; then
13124 objformat=`/usr/bin/objformat`
13125 else
13126 case $host_os in
13127 freebsd[23].*) objformat=aout ;;
13128 *) objformat=elf ;;
13129 esac
13130 fi
13131 version_type=freebsd-$objformat
13132 case $version_type in
13133 freebsd-elf*)
13134 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13135 soname_spec='$libname$release$shared_ext$major'
13136 need_version=no
13137 need_lib_prefix=no
13138 ;;
13139 freebsd-*)
13140 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13141 need_version=yes
13142 ;;
13143 esac
13144 case $host_cpu in
13145 powerpc64)
13146 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
13147 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
13148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13149 /* end confdefs.h. */
13150 int test_pointer_size[sizeof (void *) - 5];
13151
13152 _ACEOF
13153 if ac_fn_c_try_compile "$LINENO"
13154 then :
13155 shlibpath_var=LD_LIBRARY_PATH
13156 else case e in #(
13157 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
13158 esac
13159 fi
13160 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13161 ;;
13162 *)
13163 shlibpath_var=LD_LIBRARY_PATH
13164 ;;
13165 esac
13166 case $host_os in
13167 freebsd2.*)
13168 shlibpath_overrides_runpath=yes
13169 ;;
13170 freebsd3.[01]* | freebsdelf3.[01]*)
13171 shlibpath_overrides_runpath=yes
13172 hardcode_into_libs=yes
13173 ;;
13174 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13175 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13176 shlibpath_overrides_runpath=no
13177 hardcode_into_libs=yes
13178 ;;
13179 *) # from 4.6 on, and DragonFly
13180 shlibpath_overrides_runpath=yes
13181 hardcode_into_libs=yes
13182 ;;
13183 esac
13184 ;;
13185
13186 haiku*)
13187 version_type=linux # correct to gnu/linux during the next big refactor
13188 need_lib_prefix=no
13189 need_version=no
13190 dynamic_linker="$host_os runtime_loader"
13191 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13192 soname_spec='$libname$release$shared_ext$major'
13193 shlibpath_var=LIBRARY_PATH
13194 shlibpath_overrides_runpath=no
13195 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
13196 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
13197 hardcode_into_libs=no
13198 ;;
13199
13200 hpux9* | hpux10* | hpux11*)
13201 # Give a soname corresponding to the major version so that dld.sl refuses to
13202 # link against other versions.
13203 version_type=sunos
13204 need_lib_prefix=no
13205 need_version=no
13206 case $host_cpu in
13207 ia64*)
13208 shrext_cmds='.so'
13209 hardcode_into_libs=yes
13210 dynamic_linker="$host_os dld.so"
13211 shlibpath_var=LD_LIBRARY_PATH
13212 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13213 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13214 soname_spec='$libname$release$shared_ext$major'
13215 if test 32 = "$HPUX_IA64_MODE"; then
13216 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13217 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
13218 else
13219 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13220 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
13221 fi
13222 ;;
13223 hppa*64*)
13224 shrext_cmds='.sl'
13225 hardcode_into_libs=yes
13226 dynamic_linker="$host_os dld.sl"
13227 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13228 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13229 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13230 soname_spec='$libname$release$shared_ext$major'
13231 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13232 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13233 ;;
13234 *)
13235 shrext_cmds='.sl'
13236 dynamic_linker="$host_os dld.sl"
13237 shlibpath_var=SHLIB_PATH
13238 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13239 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13240 soname_spec='$libname$release$shared_ext$major'
13241 ;;
13242 esac
13243 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13244 postinstall_cmds='chmod 555 $lib'
13245 # or fails outright, so override atomically:
13246 install_override_mode=555
13247 ;;
13248
13249 interix[3-9]*)
13250 version_type=linux # correct to gnu/linux during the next big refactor
13251 need_lib_prefix=no
13252 need_version=no
13253 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13254 soname_spec='$libname$release$shared_ext$major'
13255 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13256 shlibpath_var=LD_LIBRARY_PATH
13257 shlibpath_overrides_runpath=no
13258 hardcode_into_libs=yes
13259 ;;
13260
13261 irix5* | irix6* | nonstopux*)
13262 case $host_os in
13263 nonstopux*) version_type=nonstopux ;;
13264 *)
13265 if test yes = "$lt_cv_prog_gnu_ld"; then
13266 version_type=linux # correct to gnu/linux during the next big refactor
13267 else
13268 version_type=irix
13269 fi ;;
13270 esac
13271 need_lib_prefix=no
13272 need_version=no
13273 soname_spec='$libname$release$shared_ext$major'
13274 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
13275 case $host_os in
13276 irix5* | nonstopux*)
13277 libsuff= shlibsuff=
13278 ;;
13279 *)
13280 case $LD in # libtool.m4 will add one of these switches to LD
13281 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13282 libsuff= shlibsuff= libmagic=32-bit;;
13283 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13284 libsuff=32 shlibsuff=N32 libmagic=N32;;
13285 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13286 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13287 *) libsuff= shlibsuff= libmagic=never-match;;
13288 esac
13289 ;;
13290 esac
13291 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13292 shlibpath_overrides_runpath=no
13293 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13294 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
13295 hardcode_into_libs=yes
13296 ;;
13297
13298 # No shared lib support for Linux oldld, aout, or coff.
13299 linux*oldld* | linux*aout* | linux*coff*)
13300 dynamic_linker=no
13301 ;;
13302
13303 linux*android*)
13304 version_type=none # Android doesn't support versioned libraries.
13305 need_lib_prefix=no
13306 need_version=no
13307 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
13308 soname_spec='$libname$release$shared_ext'
13309 finish_cmds=
13310 shlibpath_var=LD_LIBRARY_PATH
13311 shlibpath_overrides_runpath=yes
13312
13313 # This implies no fast_install, which is unacceptable.
13314 # Some rework will be needed to allow for fast_install
13315 # before this can be enabled.
13316 hardcode_into_libs=yes
13317
13318 dynamic_linker='Android linker'
13319 # -rpath works at least for libraries that are not overridden by
13320 # libraries installed in system locations.
13321 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13322 ;;
13323
13324 # This must be glibc/ELF.
13325 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13326 version_type=linux # correct to gnu/linux during the next big refactor
13327 need_lib_prefix=no
13328 need_version=no
13329 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13330 soname_spec='$libname$release$shared_ext$major'
13331 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13332 shlibpath_var=LD_LIBRARY_PATH
13333 shlibpath_overrides_runpath=no
13334
13335 # Some binutils ld are patched to set DT_RUNPATH
13336 if test ${lt_cv_shlibpath_overrides_runpath+y}
13337 then :
13338 printf %s "(cached) " >&6
13339 else case e in #(
13340 e) lt_cv_shlibpath_overrides_runpath=no
13341 save_LDFLAGS=$LDFLAGS
13342 save_libdir=$libdir
13343 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13344 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13346 /* end confdefs.h. */
13347
13348 int
13349 main (void)
13350 {
13351
13352 ;
13353 return 0;
13354 }
13355 _ACEOF
13356 if ac_fn_c_try_link "$LINENO"
13357 then :
13358 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
13359 then :
13360 lt_cv_shlibpath_overrides_runpath=yes
13361 fi
13362 fi
13363 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13364 conftest$ac_exeext conftest.$ac_ext
13365 LDFLAGS=$save_LDFLAGS
13366 libdir=$save_libdir
13367 ;;
13368 esac
13369 fi
13370
13371 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13372
13373 # This implies no fast_install, which is unacceptable.
13374 # Some rework will be needed to allow for fast_install
13375 # before this can be enabled.
13376 hardcode_into_libs=yes
13377
13378 # Ideally, we could use ldconfig to report *all* directories which are
13379 # searched for libraries, however this is still not possible. Aside from not
13380 # being certain /sbin/ldconfig is available, command
13381 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13382 # even though it is searched at run-time. Try to do the best guess by
13383 # appending ld.so.conf contents (and includes) to the search path.
13384 if test -f /etc/ld.so.conf; then
13385 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' ' '`
13386 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13387 fi
13388
13389 # We used to test for /lib/ld.so.1 and disable shared libraries on
13390 # powerpc, because MkLinux only supported shared libraries with the
13391 # GNU dynamic linker. Since this was broken with cross compilers,
13392 # most powerpc-linux boxes support dynamic linking these days and
13393 # people can always --disable-shared, the test was removed, and we
13394 # assume the GNU/Linux dynamic linker is in use.
13395 dynamic_linker='GNU/Linux ld.so'
13396 ;;
13397
13398 netbsdelf*-gnu)
13399 version_type=linux
13400 need_lib_prefix=no
13401 need_version=no
13402 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13403 soname_spec='$libname$release$shared_ext$major'
13404 shlibpath_var=LD_LIBRARY_PATH
13405 shlibpath_overrides_runpath=no
13406 hardcode_into_libs=yes
13407 dynamic_linker='NetBSD ld.elf_so'
13408 ;;
13409
13410 netbsd*)
13411 version_type=sunos
13412 need_lib_prefix=no
13413 need_version=no
13414 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13415 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13416 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13417 dynamic_linker='NetBSD (a.out) ld.so'
13418 else
13419 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13420 soname_spec='$libname$release$shared_ext$major'
13421 dynamic_linker='NetBSD ld.elf_so'
13422 fi
13423 shlibpath_var=LD_LIBRARY_PATH
13424 shlibpath_overrides_runpath=yes
13425 hardcode_into_libs=yes
13426 ;;
13427
13428 *-mlibc)
13429 version_type=linux # correct to gnu/linux during the next big refactor
13430 need_lib_prefix=no
13431 need_version=no
13432 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13433 soname_spec='$libname$release$shared_ext$major'
13434 dynamic_linker='mlibc ld.so'
13435 shlibpath_var=LD_LIBRARY_PATH
13436 shlibpath_overrides_runpath=no
13437 hardcode_into_libs=yes
13438 ;;
13439
13440 newsos6)
13441 version_type=linux # correct to gnu/linux during the next big refactor
13442 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13443 shlibpath_var=LD_LIBRARY_PATH
13444 shlibpath_overrides_runpath=yes
13445 ;;
13446
13447 *nto* | *qnx*)
13448 version_type=qnx
13449 need_lib_prefix=no
13450 need_version=no
13451 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13452 soname_spec='$libname$release$shared_ext$major'
13453 shlibpath_var=LD_LIBRARY_PATH
13454 shlibpath_overrides_runpath=no
13455 hardcode_into_libs=yes
13456 dynamic_linker='ldqnx.so'
13457 ;;
13458
13459 openbsd*)
13460 version_type=sunos
13461 sys_lib_dlsearch_path_spec=/usr/lib
13462 need_lib_prefix=no
13463 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13464 need_version=no
13465 else
13466 need_version=yes
13467 fi
13468 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13469 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13470 shlibpath_var=LD_LIBRARY_PATH
13471 shlibpath_overrides_runpath=yes
13472 ;;
13473
13474 os2*)
13475 libname_spec='$name'
13476 version_type=windows
13477 shrext_cmds=.dll
13478 need_version=no
13479 need_lib_prefix=no
13480 # OS/2 can only load a DLL with a base name of 8 characters or less.
13481 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13482 v=$($ECHO $release$versuffix | tr -d .-);
13483 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13484 $ECHO $n$v`$shared_ext'
13485 library_names_spec='${libname}_dll.$libext'
13486 dynamic_linker='OS/2 ld.exe'
13487 shlibpath_var=BEGINLIBPATH
13488 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13489 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13490 postinstall_cmds='base_file=`basename \$file`~
13491 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13492 dldir=$destdir/`dirname \$dlpath`~
13493 test -d \$dldir || mkdir -p \$dldir~
13494 $install_prog $dir/$dlname \$dldir/$dlname~
13495 chmod a+x \$dldir/$dlname~
13496 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13497 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13498 fi'
13499 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13500 dlpath=$dir/\$dldll~
13501 $RM \$dlpath'
13502 ;;
13503
13504 osf3* | osf4* | osf5*)
13505 version_type=osf
13506 need_lib_prefix=no
13507 need_version=no
13508 soname_spec='$libname$release$shared_ext$major'
13509 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13510 shlibpath_var=LD_LIBRARY_PATH
13511 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13512 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13513 ;;
13514
13515 rdos*)
13516 dynamic_linker=no
13517 ;;
13518
13519 serenity*)
13520 version_type=linux # correct to gnu/linux during the next big refactor
13521 need_lib_prefix=no
13522 need_version=no
13523 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13524 soname_spec='$libname$release$shared_ext$major'
13525 shlibpath_var=LD_LIBRARY_PATH
13526 shlibpath_overrides_runpath=no
13527 dynamic_linker='SerenityOS LibELF'
13528 ;;
13529
13530 solaris*)
13531 version_type=linux # correct to gnu/linux during the next big refactor
13532 need_lib_prefix=no
13533 need_version=no
13534 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13535 soname_spec='$libname$release$shared_ext$major'
13536 shlibpath_var=LD_LIBRARY_PATH
13537 shlibpath_overrides_runpath=yes
13538 hardcode_into_libs=yes
13539 # ldd complains unless libraries are executable
13540 postinstall_cmds='chmod +x $lib'
13541 ;;
13542
13543 sunos4*)
13544 version_type=sunos
13545 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13546 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13547 shlibpath_var=LD_LIBRARY_PATH
13548 shlibpath_overrides_runpath=yes
13549 if test yes = "$with_gnu_ld"; then
13550 need_lib_prefix=no
13551 fi
13552 need_version=yes
13553 ;;
13554
13555 sysv4 | sysv4.3*)
13556 version_type=linux # correct to gnu/linux during the next big refactor
13557 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13558 soname_spec='$libname$release$shared_ext$major'
13559 shlibpath_var=LD_LIBRARY_PATH
13560 case $host_vendor in
13561 sni)
13562 shlibpath_overrides_runpath=no
13563 need_lib_prefix=no
13564 runpath_var=LD_RUN_PATH
13565 ;;
13566 siemens)
13567 need_lib_prefix=no
13568 ;;
13569 motorola)
13570 need_lib_prefix=no
13571 need_version=no
13572 shlibpath_overrides_runpath=no
13573 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13574 ;;
13575 esac
13576 ;;
13577
13578 sysv4*MP*)
13579 if test -d /usr/nec; then
13580 version_type=linux # correct to gnu/linux during the next big refactor
13581 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13582 soname_spec='$libname$shared_ext.$major'
13583 shlibpath_var=LD_LIBRARY_PATH
13584 fi
13585 ;;
13586
13587 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13588 version_type=sco
13589 need_lib_prefix=no
13590 need_version=no
13591 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13592 soname_spec='$libname$release$shared_ext$major'
13593 shlibpath_var=LD_LIBRARY_PATH
13594 shlibpath_overrides_runpath=yes
13595 hardcode_into_libs=yes
13596 if test yes = "$with_gnu_ld"; then
13597 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13598 else
13599 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13600 case $host_os in
13601 sco3.2v5*)
13602 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13603 ;;
13604 esac
13605 fi
13606 sys_lib_dlsearch_path_spec='/usr/lib'
13607 ;;
13608
13609 tpf*)
13610 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13611 version_type=linux # correct to gnu/linux during the next big refactor
13612 need_lib_prefix=no
13613 need_version=no
13614 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13615 shlibpath_var=LD_LIBRARY_PATH
13616 shlibpath_overrides_runpath=no
13617 hardcode_into_libs=yes
13618 ;;
13619
13620 uts4*)
13621 version_type=linux # correct to gnu/linux during the next big refactor
13622 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13623 soname_spec='$libname$release$shared_ext$major'
13624 shlibpath_var=LD_LIBRARY_PATH
13625 ;;
13626
13627 emscripten*)
13628 version_type=none
13629 need_lib_prefix=no
13630 need_version=no
13631 library_names_spec='$libname$release$shared_ext'
13632 soname_spec='$libname$release$shared_ext'
13633 finish_cmds=
13634 dynamic_linker="Emscripten linker"
13635 lt_prog_compiler_wl=
13636 lt_prog_compiler_pic=
13637 lt_prog_compiler_static=
13638
13639
13640 if test yes = "$GCC"; then
13641 lt_prog_compiler_wl='-Wl,'
13642 lt_prog_compiler_static='-static'
13643
13644 case $host_os in
13645 aix*)
13646 # All AIX code is PIC.
13647 if test ia64 = "$host_cpu"; then
13648 # AIX 5 now supports IA64 processor
13649 lt_prog_compiler_static='-Bstatic'
13650 fi
13651 lt_prog_compiler_pic='-fPIC'
13652 ;;
13653
13654 amigaos*)
13655 case $host_cpu in
13656 powerpc)
13657 # see comment about AmigaOS4 .so support
13658 lt_prog_compiler_pic='-fPIC'
13659 ;;
13660 m68k)
13661 # FIXME: we need at least 68020 code to build shared libraries, but
13662 # adding the '-m68020' flag to GCC prevents building anything better,
13663 # like '-m68040'.
13664 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13665 ;;
13666 esac
13667 ;;
13668
13669 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13670 # PIC is the default for these OSes.
13671 ;;
13672
13673 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
13674 # This hack is so that the source file can tell whether it is being
13675 # built for inclusion in a dll (and should export symbols for example).
13676 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13677 # (--disable-auto-import) libraries
13678 lt_prog_compiler_pic='-DDLL_EXPORT'
13679 case $host_os in
13680 os2*)
13681 lt_prog_compiler_static='$wl-static'
13682 ;;
13683 esac
13684 ;;
13685
13686 darwin* | rhapsody*)
13687 # PIC is the default on this platform
13688 # Common symbols not allowed in MH_DYLIB files
13689 lt_prog_compiler_pic='-fno-common'
13690 ;;
13691
13692 haiku*)
13693 # PIC is the default for Haiku.
13694 # The "-static" flag exists, but is broken.
13695 lt_prog_compiler_static=
13696 ;;
13697
13698 hpux*)
13699 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13700 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13701 # sets the default TLS model and affects inlining.
13702 case $host_cpu in
13703 hppa*64*)
13704 # +Z the default
13705 ;;
13706 *)
13707 lt_prog_compiler_pic='-fPIC'
13708 ;;
13709 esac
13710 ;;
13711
13712 interix[3-9]*)
13713 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13714 # Instead, we relocate shared libraries at runtime.
13715 ;;
13716
13717 msdosdjgpp*)
13718 # Just because we use GCC doesn't mean we suddenly get shared libraries
13719 # on systems that don't support them.
13720 lt_prog_compiler_can_build_shared=no
13721 enable_shared=no
13722 ;;
13723
13724 *nto* | *qnx*)
13725 # QNX uses GNU C++, but need to define -shared option too, otherwise
13726 # it will coredump.
13727 lt_prog_compiler_pic='-fPIC -shared'
13728 ;;
13729
13730 sysv4*MP*)
13731 if test -d /usr/nec; then
13732 lt_prog_compiler_pic=-Kconform_pic
13733 fi
13734 ;;
13735
13736 *)
13737 lt_prog_compiler_pic='-fPIC'
13738 ;;
13739 esac
13740
13741 case $cc_basename in
13742 nvcc*) # Cuda Compiler Driver 2.2
13743 lt_prog_compiler_wl='-Xlinker '
13744 if test -n "$lt_prog_compiler_pic"; then
13745 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
13746 fi
13747 ;;
13748 esac
13749 else
13750 # PORTME Check for flag to pass linker flags through the system compiler.
13751 case $host_os in
13752 aix*)
13753 lt_prog_compiler_wl='-Wl,'
13754 if test ia64 = "$host_cpu"; then
13755 # AIX 5 now supports IA64 processor
13756 lt_prog_compiler_static='-Bstatic'
13757 else
13758 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13759 fi
13760 ;;
13761
13762 darwin* | rhapsody*)
13763 # PIC is the default on this platform
13764 # Common symbols not allowed in MH_DYLIB files
13765 lt_prog_compiler_pic='-fno-common'
13766 case $cc_basename in
13767 nagfor*)
13768 # NAG Fortran compiler
13769 lt_prog_compiler_wl='-Wl,-Wl,,'
13770 lt_prog_compiler_pic='-PIC'
13771 lt_prog_compiler_static='-Bstatic'
13772 ;;
13773 esac
13774 ;;
13775
13776 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
13777 # This hack is so that the source file can tell whether it is being
13778 # built for inclusion in a dll (and should export symbols for example).
13779 lt_prog_compiler_pic='-DDLL_EXPORT'
13780 case $host_os in
13781 os2*)
13782 lt_prog_compiler_static='$wl-static'
13783 ;;
13784 esac
13785 ;;
13786
13787 hpux9* | hpux10* | hpux11*)
13788 lt_prog_compiler_wl='-Wl,'
13789 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13790 # not for PA HP-UX.
13791 case $host_cpu in
13792 hppa*64*|ia64*)
13793 # +Z the default
13794 ;;
13795 *)
13796 lt_prog_compiler_pic='+Z'
13797 ;;
13798 esac
13799 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13800 lt_prog_compiler_static='$wl-a ${wl}archive'
13801 ;;
13802
13803 irix5* | irix6* | nonstopux*)
13804 lt_prog_compiler_wl='-Wl,'
13805 # PIC (with -KPIC) is the default.
13806 lt_prog_compiler_static='-non_shared'
13807 ;;
13808
13809 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13810 case $cc_basename in
13811 # old Intel for x86_64, which still supported -KPIC.
13812 ecc*)
13813 lt_prog_compiler_wl='-Wl,'
13814 lt_prog_compiler_pic='-KPIC'
13815 lt_prog_compiler_static='-static'
13816 ;;
13817 *flang* | ftn | f18* | f95*)
13818 # Flang compiler.
13819 lt_prog_compiler_wl='-Wl,'
13820 lt_prog_compiler_pic='-fPIC'
13821 lt_prog_compiler_static='-static'
13822 ;;
13823 # icc used to be incompatible with GCC.
13824 # ICC 10 doesn't accept -KPIC any more.
13825 icc* | ifort*)
13826 lt_prog_compiler_wl='-Wl,'
13827 lt_prog_compiler_pic='-fPIC'
13828 lt_prog_compiler_static='-static'
13829 ;;
13830 # Lahey Fortran 8.1.
13831 lf95*)
13832 lt_prog_compiler_wl='-Wl,'
13833 lt_prog_compiler_pic='--shared'
13834 lt_prog_compiler_static='--static'
13835 ;;
13836 nagfor*)
13837 # NAG Fortran compiler
13838 lt_prog_compiler_wl='-Wl,-Wl,,'
13839 lt_prog_compiler_pic='-PIC'
13840 lt_prog_compiler_static='-Bstatic'
13841 ;;
13842 tcc*)
13843 # Fabrice Bellard et al's Tiny C Compiler
13844 lt_prog_compiler_wl='-Wl,'
13845 lt_prog_compiler_pic='-fPIC'
13846 lt_prog_compiler_static='-static'
13847 ;;
13848 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
13849 # Portland Group compilers (*not* the Pentium gcc compiler,
13850 # which looks to be a dead project)
13851 lt_prog_compiler_wl='-Wl,'
13852 lt_prog_compiler_pic='-fpic'
13853 lt_prog_compiler_static='-Bstatic'
13854 ;;
13855 ccc*)
13856 lt_prog_compiler_wl='-Wl,'
13857 # All Alpha code is PIC.
13858 lt_prog_compiler_static='-non_shared'
13859 ;;
13860 xl* | bgxl* | bgf* | mpixl*)
13861 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
13862 lt_prog_compiler_wl='-Wl,'
13863 lt_prog_compiler_pic='-qpic'
13864 lt_prog_compiler_static='-qstaticlink'
13865 ;;
13866 *)
13867 case `$CC -V 2>&1 | $SED 5q` in
13868 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
13869 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13870 lt_prog_compiler_pic='-KPIC'
13871 lt_prog_compiler_static='-Bstatic'
13872 lt_prog_compiler_wl=''
13873 ;;
13874 *Sun\ F* | *Sun*Fortran*)
13875 lt_prog_compiler_pic='-KPIC'
13876 lt_prog_compiler_static='-Bstatic'
13877 lt_prog_compiler_wl='-Qoption ld '
13878 ;;
13879 *Sun\ C*)
13880 # Sun C 5.9
13881 lt_prog_compiler_pic='-KPIC'
13882 lt_prog_compiler_static='-Bstatic'
13883 lt_prog_compiler_wl='-Wl,'
13884 ;;
13885 *Intel*\ [CF]*Compiler*)
13886 lt_prog_compiler_wl='-Wl,'
13887 lt_prog_compiler_pic='-fPIC'
13888 lt_prog_compiler_static='-static'
13889 ;;
13890 *Portland\ Group*)
13891 lt_prog_compiler_wl='-Wl,'
13892 lt_prog_compiler_pic='-fpic'
13893 lt_prog_compiler_static='-Bstatic'
13894 ;;
13895 esac
13896 ;;
13897 esac
13898 ;;
13899
13900 newsos6)
13901 lt_prog_compiler_pic='-KPIC'
13902 lt_prog_compiler_static='-Bstatic'
13903 ;;
13904
13905 *-mlibc)
13906 lt_prog_compiler_wl='-Wl,'
13907 lt_prog_compiler_pic='-fPIC'
13908 lt_prog_compiler_static='-static'
13909 ;;
13910
13911 *nto* | *qnx*)
13912 # QNX uses GNU C++, but need to define -shared option too, otherwise
13913 # it will coredump.
13914 lt_prog_compiler_pic='-fPIC -shared'
13915 ;;
13916
13917 osf3* | osf4* | osf5*)
13918 lt_prog_compiler_wl='-Wl,'
13919 # All OSF/1 code is PIC.
13920 lt_prog_compiler_static='-non_shared'
13921 ;;
13922
13923 rdos*)
13924 lt_prog_compiler_static='-non_shared'
13925 ;;
13926
13927 serenity*)
13928 ;;
13929
13930 solaris*)
13931 lt_prog_compiler_pic='-KPIC'
13932 lt_prog_compiler_static='-Bstatic'
13933 case $cc_basename in
13934 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
13935 lt_prog_compiler_wl='-Qoption ld ';;
13936 *)
13937 lt_prog_compiler_wl='-Wl,';;
13938 esac
13939 ;;
13940
13941 sunos4*)
13942 lt_prog_compiler_wl='-Qoption ld '
13943 lt_prog_compiler_pic='-PIC'
13944 lt_prog_compiler_static='-Bstatic'
13945 ;;
13946
13947 sysv4 | sysv4.2uw2* | sysv4.3*)
13948 lt_prog_compiler_wl='-Wl,'
13949 lt_prog_compiler_pic='-KPIC'
13950 lt_prog_compiler_static='-Bstatic'
13951 ;;
13952
13953 sysv4*MP*)
13954 if test -d /usr/nec; then
13955 lt_prog_compiler_pic='-Kconform_pic'
13956 lt_prog_compiler_static='-Bstatic'
13957 fi
13958 ;;
13959
13960 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13961 lt_prog_compiler_wl='-Wl,'
13962 lt_prog_compiler_pic='-KPIC'
13963 lt_prog_compiler_static='-Bstatic'
13964 ;;
13965
13966 unicos*)
13967 lt_prog_compiler_wl='-Wl,'
13968 lt_prog_compiler_can_build_shared=no
13969 ;;
13970
13971 uts4*)
13972 lt_prog_compiler_pic='-pic'
13973 lt_prog_compiler_static='-Bstatic'
13974 ;;
13975
13976 *)
13977 lt_prog_compiler_can_build_shared=no
13978 ;;
13979 esac
13980 fi
13981
13982 case $host_os in
13983 # For platforms that do not support PIC, -DPIC is meaningless:
13984 *djgpp*)
13985 lt_prog_compiler_pic=
13986 ;;
13987 *)
13988 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13989 ;;
13990 esac
13991
13992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13993 printf %s "checking for $compiler option to produce PIC... " >&6; }
13994 if test ${lt_cv_prog_compiler_pic+y}
13995 then :
13996 printf %s "(cached) " >&6
13997 else case e in #(
13998 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
13999 esac
14000 fi
14001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14002 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
14003 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
14004
14005 #
14006 # Check to make sure the PIC flag actually works.
14007 #
14008 if test -n "$lt_prog_compiler_pic"; then
14009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14010 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14011 if test ${lt_cv_prog_compiler_pic_works+y}
14012 then :
14013 printf %s "(cached) " >&6
14014 else case e in #(
14015 e) lt_cv_prog_compiler_pic_works=no
14016 ac_outfile=conftest.$ac_objext
14017 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14018 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
14019 # Insert the option either (1) after the last *FLAGS variable, or
14020 # (2) before a word containing "conftest.", or (3) at the end.
14021 # Note that $ac_compile itself does not contain backslashes and begins
14022 # with a dollar sign (not a hyphen), so the echo should work correctly.
14023 # The option is referenced via a variable to avoid confusing sed.
14024 lt_compile=`echo "$ac_compile" | $SED \
14025 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14026 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14027 -e 's:$: $lt_compiler_flag:'`
14028 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14029 (eval "$lt_compile" 2>conftest.err)
14030 ac_status=$?
14031 cat conftest.err >&5
14032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14033 if (exit $ac_status) && test -s "$ac_outfile"; then
14034 # The compiler can only warn and ignore the option if not recognized
14035 # So say no if there are warnings other than the usual output.
14036 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14037 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14038 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14039 lt_cv_prog_compiler_pic_works=yes
14040 fi
14041 fi
14042 $RM conftest*
14043 ;;
14044 esac
14045 fi
14046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14047 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
14048
14049 if test yes = "$lt_cv_prog_compiler_pic_works"; then
14050 case $lt_prog_compiler_pic in
14051 "" | " "*) ;;
14052 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14053 esac
14054 else
14055 lt_prog_compiler_pic=
14056 lt_prog_compiler_can_build_shared=no
14057 fi
14058
14059 fi
14060
14061
14062
14063
14064
14065 #
14066 # Check to make sure the static flag actually works.
14067 #
14068 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14070 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14071 if test ${lt_cv_prog_compiler_static_works+y}
14072 then :
14073 printf %s "(cached) " >&6
14074 else case e in #(
14075 e) lt_cv_prog_compiler_static_works=no
14076 save_LDFLAGS=$LDFLAGS
14077 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14078 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14079 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14080 # The linker can only warn and ignore the option if not recognized
14081 # So say no if there are warnings
14082 if test -s conftest.err; then
14083 # Append any errors to the config.log.
14084 cat conftest.err 1>&5
14085 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14086 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14087 if diff conftest.exp conftest.er2 >/dev/null; then
14088 lt_cv_prog_compiler_static_works=yes
14089 fi
14090 else
14091 lt_cv_prog_compiler_static_works=yes
14092 fi
14093 fi
14094 $RM -r conftest*
14095 LDFLAGS=$save_LDFLAGS
14096 ;;
14097 esac
14098 fi
14099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14100 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
14101
14102 if test yes = "$lt_cv_prog_compiler_static_works"; then
14103 :
14104 else
14105 lt_prog_compiler_static=
14106 fi
14107
14108
14109
14110 ='-fPIC'
14111 archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
14112 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'
14113 archive_cmds_need_lc=no
14114 no_undefined_flag=
14115 ;;
14116
14117 *)
14118 dynamic_linker=no
14119 ;;
14120 esac
14121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14122 printf "%s\n" "$dynamic_linker" >&6; }
14123 test no = "$dynamic_linker" && can_build_shared=no
14124
14125 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14126 if test yes = "$GCC"; then
14127 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14128 fi
14129
14130 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14131 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
14132 fi
14133
14134 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14135 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
14136 fi
14137
14138 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14139 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14140
14141 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14142 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14143
14144 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14145 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
14146
14147
14148
14149
14150
14151
14152
14153
14154
14155
14156
14157
14158
14159
14160
14161
14162
14163
14164
14165
14166
14167
14168
14169
14170
14171
14172
14173
14174
14175
14176
14177
14178
14179
14180
14181
14182
14183
14184
14185
14186
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198
14199
14200
14201
14202
14203
14204
14205
14206
14207
14208
14209
14210
14211
14212
14213
14214
14215
14216
14217
14218
14219
14220
14221
14222
14223
14224
14225
14226
14227
14228
14229
14230
14231
14232
14233
14234
14235
14236
14237
14238
14239
14240
14241
14242
14243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14244 printf %s "checking how to hardcode library paths into programs... " >&6; }
14245 hardcode_action=
14246 if test -n "$hardcode_libdir_flag_spec" ||
14247 test -n "$runpath_var" ||
14248 test yes = "$hardcode_automatic"; then
14249
14250 # We can hardcode non-existent directories.
14251 if test no != "$hardcode_direct" &&
14252 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14253 # have to relink, otherwise we might link with an installed library
14254 # when we should be linking with a yet-to-be-installed one
14255 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
14256 test no != "$hardcode_minus_L"; then
14257 # Linking always hardcodes the temporary library directory.
14258 hardcode_action=relink
14259 else
14260 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14261 hardcode_action=immediate
14262 fi
14263 else
14264 # We cannot hardcode anything, or else we can only hardcode existing
14265 # directories.
14266 hardcode_action=unsupported
14267 fi
14268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14269 printf "%s\n" "$hardcode_action" >&6; }
14270
14271 if test relink = "$hardcode_action" ||
14272 test yes = "$inherit_rpath"; then
14273 # Fast installation is not supported
14274 enable_fast_install=no
14275 elif test yes = "$shlibpath_overrides_runpath" ||
14276 test no = "$enable_shared"; then
14277 # Fast installation is not necessary
14278 enable_fast_install=needless
14279 fi
14280
14281
14282
14283
14284
14285
14286 if test yes != "$enable_dlopen"; then
14287 enable_dlopen=unknown
14288 enable_dlopen_self=unknown
14289 enable_dlopen_self_static=unknown
14290 else
14291 lt_cv_dlopen=no
14292 lt_cv_dlopen_libs=
14293
14294 case $host_os in
14295 beos*)
14296 lt_cv_dlopen=load_add_on
14297 lt_cv_dlopen_libs=
14298 lt_cv_dlopen_self=yes
14299 ;;
14300
14301 mingw* | windows* | pw32* | cegcc*)
14302 lt_cv_dlopen=LoadLibrary
14303 lt_cv_dlopen_libs=
14304 ;;
14305
14306 cygwin*)
14307 lt_cv_dlopen=dlopen
14308 lt_cv_dlopen_libs=
14309 ;;
14310
14311 darwin*)
14312 # if libdl is installed we need to link against it
14313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14314 printf %s "checking for dlopen in -ldl... " >&6; }
14315 if test ${ac_cv_lib_dl_dlopen+y}
14316 then :
14317 printf %s "(cached) " >&6
14318 else case e in #(
14319 e) ac_check_lib_save_LIBS=$LIBS
14320 LIBS="-ldl $LIBS"
14321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14322 /* end confdefs.h. */
14323
14324 /* Override any GCC internal prototype to avoid an error.
14325 Use char because int might match the return type of a GCC
14326 builtin and then its argument prototype would still apply.
14327 The 'extern "C"' is for builds by C++ compilers;
14328 although this is not generally supported in C code supporting it here
14329 has little cost and some practical benefit (sr 110532). */
14330 #ifdef __cplusplus
14331 extern "C"
14332 #endif
14333 char dlopen (void);
14334 int
14335 main (void)
14336 {
14337 return dlopen ();
14338 ;
14339 return 0;
14340 }
14341 _ACEOF
14342 if ac_fn_c_try_link "$LINENO"
14343 then :
14344 ac_cv_lib_dl_dlopen=yes
14345 else case e in #(
14346 e) ac_cv_lib_dl_dlopen=no ;;
14347 esac
14348 fi
14349 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14350 conftest$ac_exeext conftest.$ac_ext
14351 LIBS=$ac_check_lib_save_LIBS ;;
14352 esac
14353 fi
14354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14355 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
14356 if test "x$ac_cv_lib_dl_dlopen" = xyes
14357 then :
14358 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14359 else case e in #(
14360 e)
14361 lt_cv_dlopen=dyld
14362 lt_cv_dlopen_libs=
14363 lt_cv_dlopen_self=yes
14364 ;;
14365 esac
14366 fi
14367
14368 ;;
14369
14370 tpf*)
14371 # Don't try to run any link tests for TPF. We know it's impossible
14372 # because TPF is a cross-compiler, and we know how we open DSOs.
14373 lt_cv_dlopen=dlopen
14374 lt_cv_dlopen_libs=
14375 lt_cv_dlopen_self=no
14376 ;;
14377
14378 *)
14379 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14380 if test "x$ac_cv_func_shl_load" = xyes
14381 then :
14382 lt_cv_dlopen=shl_load
14383 else case e in #(
14384 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14385 printf %s "checking for shl_load in -ldld... " >&6; }
14386 if test ${ac_cv_lib_dld_shl_load+y}
14387 then :
14388 printf %s "(cached) " >&6
14389 else case e in #(
14390 e) ac_check_lib_save_LIBS=$LIBS
14391 LIBS="-ldld $LIBS"
14392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14393 /* end confdefs.h. */
14394
14395 /* Override any GCC internal prototype to avoid an error.
14396 Use char because int might match the return type of a GCC
14397 builtin and then its argument prototype would still apply.
14398 The 'extern "C"' is for builds by C++ compilers;
14399 although this is not generally supported in C code supporting it here
14400 has little cost and some practical benefit (sr 110532). */
14401 #ifdef __cplusplus
14402 extern "C"
14403 #endif
14404 char shl_load (void);
14405 int
14406 main (void)
14407 {
14408 return shl_load ();
14409 ;
14410 return 0;
14411 }
14412 _ACEOF
14413 if ac_fn_c_try_link "$LINENO"
14414 then :
14415 ac_cv_lib_dld_shl_load=yes
14416 else case e in #(
14417 e) ac_cv_lib_dld_shl_load=no ;;
14418 esac
14419 fi
14420 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14421 conftest$ac_exeext conftest.$ac_ext
14422 LIBS=$ac_check_lib_save_LIBS ;;
14423 esac
14424 fi
14425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14426 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
14427 if test "x$ac_cv_lib_dld_shl_load" = xyes
14428 then :
14429 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
14430 else case e in #(
14431 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14432 if test "x$ac_cv_func_dlopen" = xyes
14433 then :
14434 lt_cv_dlopen=dlopen
14435 else case e in #(
14436 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14437 printf %s "checking for dlopen in -ldl... " >&6; }
14438 if test ${ac_cv_lib_dl_dlopen+y}
14439 then :
14440 printf %s "(cached) " >&6
14441 else case e in #(
14442 e) ac_check_lib_save_LIBS=$LIBS
14443 LIBS="-ldl $LIBS"
14444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14445 /* end confdefs.h. */
14446
14447 /* Override any GCC internal prototype to avoid an error.
14448 Use char because int might match the return type of a GCC
14449 builtin and then its argument prototype would still apply.
14450 The 'extern "C"' is for builds by C++ compilers;
14451 although this is not generally supported in C code supporting it here
14452 has little cost and some practical benefit (sr 110532). */
14453 #ifdef __cplusplus
14454 extern "C"
14455 #endif
14456 char dlopen (void);
14457 int
14458 main (void)
14459 {
14460 return dlopen ();
14461 ;
14462 return 0;
14463 }
14464 _ACEOF
14465 if ac_fn_c_try_link "$LINENO"
14466 then :
14467 ac_cv_lib_dl_dlopen=yes
14468 else case e in #(
14469 e) ac_cv_lib_dl_dlopen=no ;;
14470 esac
14471 fi
14472 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14473 conftest$ac_exeext conftest.$ac_ext
14474 LIBS=$ac_check_lib_save_LIBS ;;
14475 esac
14476 fi
14477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14478 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
14479 if test "x$ac_cv_lib_dl_dlopen" = xyes
14480 then :
14481 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14482 else case e in #(
14483 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14484 printf %s "checking for dlopen in -lsvld... " >&6; }
14485 if test ${ac_cv_lib_svld_dlopen+y}
14486 then :
14487 printf %s "(cached) " >&6
14488 else case e in #(
14489 e) ac_check_lib_save_LIBS=$LIBS
14490 LIBS="-lsvld $LIBS"
14491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14492 /* end confdefs.h. */
14493
14494 /* Override any GCC internal prototype to avoid an error.
14495 Use char because int might match the return type of a GCC
14496 builtin and then its argument prototype would still apply.
14497 The 'extern "C"' is for builds by C++ compilers;
14498 although this is not generally supported in C code supporting it here
14499 has little cost and some practical benefit (sr 110532). */
14500 #ifdef __cplusplus
14501 extern "C"
14502 #endif
14503 char dlopen (void);
14504 int
14505 main (void)
14506 {
14507 return dlopen ();
14508 ;
14509 return 0;
14510 }
14511 _ACEOF
14512 if ac_fn_c_try_link "$LINENO"
14513 then :
14514 ac_cv_lib_svld_dlopen=yes
14515 else case e in #(
14516 e) ac_cv_lib_svld_dlopen=no ;;
14517 esac
14518 fi
14519 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14520 conftest$ac_exeext conftest.$ac_ext
14521 LIBS=$ac_check_lib_save_LIBS ;;
14522 esac
14523 fi
14524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14525 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
14526 if test "x$ac_cv_lib_svld_dlopen" = xyes
14527 then :
14528 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
14529 else case e in #(
14530 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14531 printf %s "checking for dld_link in -ldld... " >&6; }
14532 if test ${ac_cv_lib_dld_dld_link+y}
14533 then :
14534 printf %s "(cached) " >&6
14535 else case e in #(
14536 e) ac_check_lib_save_LIBS=$LIBS
14537 LIBS="-ldld $LIBS"
14538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14539 /* end confdefs.h. */
14540
14541 /* Override any GCC internal prototype to avoid an error.
14542 Use char because int might match the return type of a GCC
14543 builtin and then its argument prototype would still apply.
14544 The 'extern "C"' is for builds by C++ compilers;
14545 although this is not generally supported in C code supporting it here
14546 has little cost and some practical benefit (sr 110532). */
14547 #ifdef __cplusplus
14548 extern "C"
14549 #endif
14550 char dld_link (void);
14551 int
14552 main (void)
14553 {
14554 return dld_link ();
14555 ;
14556 return 0;
14557 }
14558 _ACEOF
14559 if ac_fn_c_try_link "$LINENO"
14560 then :
14561 ac_cv_lib_dld_dld_link=yes
14562 else case e in #(
14563 e) ac_cv_lib_dld_dld_link=no ;;
14564 esac
14565 fi
14566 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14567 conftest$ac_exeext conftest.$ac_ext
14568 LIBS=$ac_check_lib_save_LIBS ;;
14569 esac
14570 fi
14571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14572 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
14573 if test "x$ac_cv_lib_dld_dld_link" = xyes
14574 then :
14575 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
14576 fi
14577
14578 ;;
14579 esac
14580 fi
14581
14582 ;;
14583 esac
14584 fi
14585
14586 ;;
14587 esac
14588 fi
14589
14590 ;;
14591 esac
14592 fi
14593
14594 ;;
14595 esac
14596 fi
14597
14598 ;;
14599 esac
14600
14601 if test no = "$lt_cv_dlopen"; then
14602 enable_dlopen=no
14603 else
14604 enable_dlopen=yes
14605 fi
14606
14607 case $lt_cv_dlopen in
14608 dlopen)
14609 save_CPPFLAGS=$CPPFLAGS
14610 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14611
14612 save_LDFLAGS=$LDFLAGS
14613 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14614
14615 save_LIBS=$LIBS
14616 LIBS="$lt_cv_dlopen_libs $LIBS"
14617
14618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14619 printf %s "checking whether a program can dlopen itself... " >&6; }
14620 if test ${lt_cv_dlopen_self+y}
14621 then :
14622 printf %s "(cached) " >&6
14623 else case e in #(
14624 e) if test yes = "$cross_compiling"; then :
14625 lt_cv_dlopen_self=cross
14626 else
14627 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14628 lt_status=$lt_dlunknown
14629 cat > conftest.$ac_ext <<_LT_EOF
14630 #line $LINENO "configure"
14631 #include "confdefs.h"
14632
14633 #if HAVE_DLFCN_H
14634 #include <dlfcn.h>
14635 #endif
14636
14637 #include <stdio.h>
14638
14639 #ifdef RTLD_GLOBAL
14640 # define LT_DLGLOBAL RTLD_GLOBAL
14641 #else
14642 # ifdef DL_GLOBAL
14643 # define LT_DLGLOBAL DL_GLOBAL
14644 # else
14645 # define LT_DLGLOBAL 0
14646 # endif
14647 #endif
14648
14649 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14650 find out it does not work in some platform. */
14651 #ifndef LT_DLLAZY_OR_NOW
14652 # ifdef RTLD_LAZY
14653 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14654 # else
14655 # ifdef DL_LAZY
14656 # define LT_DLLAZY_OR_NOW DL_LAZY
14657 # else
14658 # ifdef RTLD_NOW
14659 # define LT_DLLAZY_OR_NOW RTLD_NOW
14660 # else
14661 # ifdef DL_NOW
14662 # define LT_DLLAZY_OR_NOW DL_NOW
14663 # else
14664 # define LT_DLLAZY_OR_NOW 0
14665 # endif
14666 # endif
14667 # endif
14668 # endif
14669 #endif
14670
14671 /* When -fvisibility=hidden is used, assume the code has been annotated
14672 correspondingly for the symbols needed. */
14673 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14674 int fnord (void) __attribute__((visibility("default")));
14675 #endif
14676
14677 int fnord (void) { return 42; }
14678 int main (void)
14679 {
14680 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14681 int status = $lt_dlunknown;
14682
14683 if (self)
14684 {
14685 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14686 else
14687 {
14688 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14689 else puts (dlerror ());
14690 }
14691 /* dlclose (self); */
14692 }
14693 else
14694 puts (dlerror ());
14695
14696 return status;
14697 }
14698 _LT_EOF
14699 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14700 (eval $ac_link) 2>&5
14701 ac_status=$?
14702 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14703 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14704 (./conftest; exit; ) >&5 2>/dev/null
14705 lt_status=$?
14706 case x$lt_status in
14707 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14708 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14709 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14710 esac
14711 else :
14712 # compilation failed
14713 lt_cv_dlopen_self=no
14714 fi
14715 fi
14716 rm -fr conftest*
14717
14718 ;;
14719 esac
14720 fi
14721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14722 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
14723
14724 if test yes = "$lt_cv_dlopen_self"; then
14725 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14727 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
14728 if test ${lt_cv_dlopen_self_static+y}
14729 then :
14730 printf %s "(cached) " >&6
14731 else case e in #(
14732 e) if test yes = "$cross_compiling"; then :
14733 lt_cv_dlopen_self_static=cross
14734 else
14735 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14736 lt_status=$lt_dlunknown
14737 cat > conftest.$ac_ext <<_LT_EOF
14738 #line $LINENO "configure"
14739 #include "confdefs.h"
14740
14741 #if HAVE_DLFCN_H
14742 #include <dlfcn.h>
14743 #endif
14744
14745 #include <stdio.h>
14746
14747 #ifdef RTLD_GLOBAL
14748 # define LT_DLGLOBAL RTLD_GLOBAL
14749 #else
14750 # ifdef DL_GLOBAL
14751 # define LT_DLGLOBAL DL_GLOBAL
14752 # else
14753 # define LT_DLGLOBAL 0
14754 # endif
14755 #endif
14756
14757 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14758 find out it does not work in some platform. */
14759 #ifndef LT_DLLAZY_OR_NOW
14760 # ifdef RTLD_LAZY
14761 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14762 # else
14763 # ifdef DL_LAZY
14764 # define LT_DLLAZY_OR_NOW DL_LAZY
14765 # else
14766 # ifdef RTLD_NOW
14767 # define LT_DLLAZY_OR_NOW RTLD_NOW
14768 # else
14769 # ifdef DL_NOW
14770 # define LT_DLLAZY_OR_NOW DL_NOW
14771 # else
14772 # define LT_DLLAZY_OR_NOW 0
14773 # endif
14774 # endif
14775 # endif
14776 # endif
14777 #endif
14778
14779 /* When -fvisibility=hidden is used, assume the code has been annotated
14780 correspondingly for the symbols needed. */
14781 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14782 int fnord (void) __attribute__((visibility("default")));
14783 #endif
14784
14785 int fnord (void) { return 42; }
14786 int main (void)
14787 {
14788 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14789 int status = $lt_dlunknown;
14790
14791 if (self)
14792 {
14793 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14794 else
14795 {
14796 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14797 else puts (dlerror ());
14798 }
14799 /* dlclose (self); */
14800 }
14801 else
14802 puts (dlerror ());
14803
14804 return status;
14805 }
14806 _LT_EOF
14807 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14808 (eval $ac_link) 2>&5
14809 ac_status=$?
14810 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14811 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14812 (./conftest; exit; ) >&5 2>/dev/null
14813 lt_status=$?
14814 case x$lt_status in
14815 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14816 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14817 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14818 esac
14819 else :
14820 # compilation failed
14821 lt_cv_dlopen_self_static=no
14822 fi
14823 fi
14824 rm -fr conftest*
14825
14826 ;;
14827 esac
14828 fi
14829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14830 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
14831 fi
14832
14833 CPPFLAGS=$save_CPPFLAGS
14834 LDFLAGS=$save_LDFLAGS
14835 LIBS=$save_LIBS
14836 ;;
14837 esac
14838
14839 case $lt_cv_dlopen_self in
14840 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14841 *) enable_dlopen_self=unknown ;;
14842 esac
14843
14844 case $lt_cv_dlopen_self_static in
14845 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14846 *) enable_dlopen_self_static=unknown ;;
14847 esac
14848 fi
14849
14850
14851
14852
14853
14854
14855
14856
14857
14858
14859
14860
14861
14862
14863
14864
14865
14866 striplib=
14867 old_striplib=
14868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14869 printf %s "checking whether stripping libraries is possible... " >&6; }
14870 if test -z "$STRIP"; then
14871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14872 printf "%s\n" "no" >&6; }
14873 else
14874 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14875 old_striplib="$STRIP --strip-debug"
14876 striplib="$STRIP --strip-unneeded"
14877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14878 printf "%s\n" "yes" >&6; }
14879 else
14880 case $host_os in
14881 darwin*)
14882 # FIXME - insert some real tests, host_os isn't really good enough
14883 striplib="$STRIP -x"
14884 old_striplib="$STRIP -S"
14885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14886 printf "%s\n" "yes" >&6; }
14887 ;;
14888 freebsd*)
14889 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
14890 old_striplib="$STRIP --strip-debug"
14891 striplib="$STRIP --strip-unneeded"
14892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14893 printf "%s\n" "yes" >&6; }
14894 else
14895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14896 printf "%s\n" "no" >&6; }
14897 fi
14898 ;;
14899 *)
14900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14901 printf "%s\n" "no" >&6; }
14902 ;;
14903 esac
14904 fi
14905 fi
14906
14907
14908
14909
14910
14911
14912
14913
14914
14915
14916
14917
14918 # Report what library types will actually be built
14919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14920 printf %s "checking if libtool supports shared libraries... " >&6; }
14921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14922 printf "%s\n" "$can_build_shared" >&6; }
14923
14924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14925 printf %s "checking whether to build shared libraries... " >&6; }
14926 test no = "$can_build_shared" && enable_shared=no
14927
14928 # On AIX, shared libraries and static libraries use the same namespace, and
14929 # are all built from PIC.
14930 case $host_os in
14931 aix3*)
14932 test yes = "$enable_shared" && enable_static=no
14933 if test -n "$RANLIB"; then
14934 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14935 postinstall_cmds='$RANLIB $lib'
14936 fi
14937 ;;
14938
14939 aix[4-9]*)
14940 if test ia64 != "$host_cpu"; then
14941 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14942 yes,aix,yes) ;; # shared object as lib.so file only
14943 yes,svr4,*) ;; # shared object as lib.so archive member only
14944 yes,*) enable_static=no ;; # shared object in lib.a archive as well
14945 esac
14946 fi
14947 ;;
14948 esac
14949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14950 printf "%s\n" "$enable_shared" >&6; }
14951
14952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14953 printf %s "checking whether to build static libraries... " >&6; }
14954 # Make sure either enable_shared or enable_static is yes.
14955 test yes = "$enable_shared" || enable_static=yes
14956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14957 printf "%s\n" "$enable_static" >&6; }
14958
14959
14960
14961
14962 fi
14963 ac_ext=c
14964 ac_cpp='$CPP $CPPFLAGS'
14965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14968
14969 CC=$lt_save_CC
14970
14971 if test -n "$CXX" && ( test no != "$CXX" &&
14972 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
14973 (test g++ != "$CXX"))); then
14974 ac_ext=cpp
14975 ac_cpp='$CXXCPP $CPPFLAGS'
14976 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14977 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14978 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
14980 printf %s "checking how to run the C++ preprocessor... " >&6; }
14981 if test -z "$CXXCPP"; then
14982 if test ${ac_cv_prog_CXXCPP+y}
14983 then :
14984 printf %s "(cached) " >&6
14985 else case e in #(
14986 e) # Double quotes because $CXX needs to be expanded
14987 for CXXCPP in "$CXX -E" cpp /lib/cpp
14988 do
14989 ac_preproc_ok=false
14990 for ac_cxx_preproc_warn_flag in '' yes
14991 do
14992 # Use a header file that comes with gcc, so configuring glibc
14993 # with a fresh cross-compiler works.
14994 # On the NeXT, cc -E runs the code through the compiler's parser,
14995 # not just through cpp. "Syntax error" is here to catch this case.
14996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14997 /* end confdefs.h. */
14998 #include <limits.h>
14999 Syntax error
15000 _ACEOF
15001 if ac_fn_cxx_try_cpp "$LINENO"
15002 then :
15003
15004 else case e in #(
15005 e) # Broken: fails on valid input.
15006 continue ;;
15007 esac
15008 fi
15009 rm -f conftest.err conftest.i conftest.$ac_ext
15010
15011 # OK, works on sane cases. Now check whether nonexistent headers
15012 # can be detected and how.
15013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15014 /* end confdefs.h. */
15015 #include <ac_nonexistent.h>
15016 _ACEOF
15017 if ac_fn_cxx_try_cpp "$LINENO"
15018 then :
15019 # Broken: success on invalid input.
15020 continue
15021 else case e in #(
15022 e) # Passes both tests.
15023 ac_preproc_ok=:
15024 break ;;
15025 esac
15026 fi
15027 rm -f conftest.err conftest.i conftest.$ac_ext
15028
15029 done
15030 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15031 rm -f conftest.i conftest.err conftest.$ac_ext
15032 if $ac_preproc_ok
15033 then :
15034 break
15035 fi
15036
15037 done
15038 ac_cv_prog_CXXCPP=$CXXCPP
15039 ;;
15040 esac
15041 fi
15042 CXXCPP=$ac_cv_prog_CXXCPP
15043 else
15044 ac_cv_prog_CXXCPP=$CXXCPP
15045 fi
15046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
15047 printf "%s\n" "$CXXCPP" >&6; }
15048 ac_preproc_ok=false
15049 for ac_cxx_preproc_warn_flag in '' yes
15050 do
15051 # Use a header file that comes with gcc, so configuring glibc
15052 # with a fresh cross-compiler works.
15053 # On the NeXT, cc -E runs the code through the compiler's parser,
15054 # not just through cpp. "Syntax error" is here to catch this case.
15055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15056 /* end confdefs.h. */
15057 #include <limits.h>
15058 Syntax error
15059 _ACEOF
15060 if ac_fn_cxx_try_cpp "$LINENO"
15061 then :
15062
15063 else case e in #(
15064 e) # Broken: fails on valid input.
15065 continue ;;
15066 esac
15067 fi
15068 rm -f conftest.err conftest.i conftest.$ac_ext
15069
15070 # OK, works on sane cases. Now check whether nonexistent headers
15071 # can be detected and how.
15072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15073 /* end confdefs.h. */
15074 #include <ac_nonexistent.h>
15075 _ACEOF
15076 if ac_fn_cxx_try_cpp "$LINENO"
15077 then :
15078 # Broken: success on invalid input.
15079 continue
15080 else case e in #(
15081 e) # Passes both tests.
15082 ac_preproc_ok=:
15083 break ;;
15084 esac
15085 fi
15086 rm -f conftest.err conftest.i conftest.$ac_ext
15087
15088 done
15089 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15090 rm -f conftest.i conftest.err conftest.$ac_ext
15091 if $ac_preproc_ok
15092 then :
15093
15094 else case e in #(
15095 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
15096 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
15097 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
15098 See 'config.log' for more details" "$LINENO" 5; } ;;
15099 esac
15100 fi
15101
15102 ac_ext=c
15103 ac_cpp='$CPP $CPPFLAGS'
15104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15107
15108 else
15109 _lt_caught_CXX_error=yes
15110 fi
15111
15112 ac_ext=cpp
15113 ac_cpp='$CXXCPP $CPPFLAGS'
15114 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15115 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15116 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15117
15118 archive_cmds_need_lc_CXX=no
15119 allow_undefined_flag_CXX=
15120 always_export_symbols_CXX=no
15121 archive_expsym_cmds_CXX=
15122 compiler_needs_object_CXX=no
15123 export_dynamic_flag_spec_CXX=
15124 hardcode_direct_CXX=no
15125 hardcode_direct_absolute_CXX=no
15126 hardcode_libdir_flag_spec_CXX=
15127 hardcode_libdir_separator_CXX=
15128 hardcode_minus_L_CXX=no
15129 hardcode_shlibpath_var_CXX=unsupported
15130 hardcode_automatic_CXX=no
15131 inherit_rpath_CXX=no
15132 module_cmds_CXX=
15133 module_expsym_cmds_CXX=
15134 link_all_deplibs_CXX=unknown
15135 old_archive_cmds_CXX=$old_archive_cmds
15136 reload_flag_CXX=$reload_flag
15137 reload_cmds_CXX=$reload_cmds
15138 no_undefined_flag_CXX=
15139 whole_archive_flag_spec_CXX=
15140 enable_shared_with_static_runtimes_CXX=no
15141
15142 # Source file extension for C++ test sources.
15143 ac_ext=cpp
15144
15145 # Object file extension for compiled C++ test sources.
15146 objext=o
15147 objext_CXX=$objext
15148
15149 # No sense in running all these tests if we already determined that
15150 # the CXX compiler isn't working. Some variables (like enable_shared)
15151 # are currently assumed to apply to all compilers on this platform,
15152 # and will be corrupted by setting them based on a non-working compiler.
15153 if test yes != "$_lt_caught_CXX_error"; then
15154 # Code to be used in simple compile tests
15155 lt_simple_compile_test_code="int some_variable = 0;"
15156
15157 # Code to be used in simple link tests
15158 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
15159
15160 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15161
15162
15163
15164
15165
15166
15167 # If no C compiler was specified, use CC.
15168 LTCC=${LTCC-"$CC"}
15169
15170 # If no C compiler flags were specified, use CFLAGS.
15171 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15172
15173 # Allow CC to be a program name with arguments.
15174 compiler=$CC
15175
15176
15177 # save warnings/boilerplate of simple test code
15178 ac_outfile=conftest.$ac_objext
15179 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15180 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15181 _lt_compiler_boilerplate=`cat conftest.err`
15182 $RM conftest*
15183
15184 ac_outfile=conftest.$ac_objext
15185 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15186 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15187 _lt_linker_boilerplate=`cat conftest.err`
15188 $RM -r conftest*
15189
15190
15191 # Allow CC to be a program name with arguments.
15192 lt_save_CC=$CC
15193 lt_save_CFLAGS=$CFLAGS
15194 lt_save_LD=$LD
15195 lt_save_GCC=$GCC
15196 GCC=$GXX
15197 lt_save_with_gnu_ld=$with_gnu_ld
15198 lt_save_path_LD=$lt_cv_path_LD
15199 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15200 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15201 else
15202 $as_unset lt_cv_prog_gnu_ld
15203 fi
15204 if test -n "${lt_cv_path_LDCXX+set}"; then
15205 lt_cv_path_LD=$lt_cv_path_LDCXX
15206 else
15207 $as_unset lt_cv_path_LD
15208 fi
15209 test -z "${LDCXX+set}" || LD=$LDCXX
15210 CC=${CXX-"c++"}
15211 CFLAGS=$CXXFLAGS
15212 compiler=$CC
15213 compiler_CXX=$CC
15214 func_cc_basename $compiler
15215 cc_basename=$func_cc_basename_result
15216
15217
15218 if test -n "$compiler"; then
15219 # We don't want -fno-exception when compiling C++ code, so set the
15220 # no_builtin_flag separately
15221 if test yes = "$GXX"; then
15222 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15223 else
15224 lt_prog_compiler_no_builtin_flag_CXX=
15225 fi
15226
15227 if test yes = "$GXX"; then
15228 # Set up default GNU C++ configuration
15229
15230
15231
15232 # Check whether --with-gnu-ld was given.
15233 if test ${with_gnu_ld+y}
15234 then :
15235 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
15236 else case e in #(
15237 e) with_gnu_ld=no ;;
15238 esac
15239 fi
15240
15241 ac_prog=ld
15242 if test yes = "$GCC"; then
15243 # Check if gcc -print-prog-name=ld gives a path.
15244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15245 printf %s "checking for ld used by $CC... " >&6; }
15246 case $host in
15247 *-*-mingw* | *-*-windows*)
15248 # gcc leaves a trailing carriage return, which upsets mingw
15249 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15250 *)
15251 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15252 esac
15253 case $ac_prog in
15254 # Accept absolute paths.
15255 [\\/]* | ?:[\\/]*)
15256 re_direlt='/[^/][^/]*/\.\./'
15257 # Canonicalize the pathname of ld
15258 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15259 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15260 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15261 done
15262 test -z "$LD" && LD=$ac_prog
15263 ;;
15264 "")
15265 # If it fails, then pretend we aren't using GCC.
15266 ac_prog=ld
15267 ;;
15268 *)
15269 # If it is relative, then search for the first ld in PATH.
15270 with_gnu_ld=unknown
15271 ;;
15272 esac
15273 elif test yes = "$with_gnu_ld"; then
15274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15275 printf %s "checking for GNU ld... " >&6; }
15276 else
15277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15278 printf %s "checking for non-GNU ld... " >&6; }
15279 fi
15280 if test ${lt_cv_path_LD+y}
15281 then :
15282 printf %s "(cached) " >&6
15283 else case e in #(
15284 e) if test -z "$LD"; then
15285 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15286 for ac_dir in $PATH; do
15287 IFS=$lt_save_ifs
15288 test -z "$ac_dir" && ac_dir=.
15289 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15290 lt_cv_path_LD=$ac_dir/$ac_prog
15291 # Check to see if the program is GNU ld. I'd rather use --version,
15292 # but apparently some variants of GNU ld only accept -v.
15293 # Break only if it was the GNU/non-GNU ld that we prefer.
15294 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15295 *GNU* | *'with BFD'*)
15296 test no != "$with_gnu_ld" && break
15297 ;;
15298 *)
15299 test yes != "$with_gnu_ld" && break
15300 ;;
15301 esac
15302 fi
15303 done
15304 IFS=$lt_save_ifs
15305 else
15306 lt_cv_path_LD=$LD # Let the user override the test with a path.
15307 fi ;;
15308 esac
15309 fi
15310
15311 LD=$lt_cv_path_LD
15312 if test -n "$LD"; then
15313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15314 printf "%s\n" "$LD" >&6; }
15315 else
15316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15317 printf "%s\n" "no" >&6; }
15318 fi
15319 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15321 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
15322 if test ${lt_cv_prog_gnu_ld+y}
15323 then :
15324 printf %s "(cached) " >&6
15325 else case e in #(
15326 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
15327 case `$LD -v 2>&1 </dev/null` in
15328 *GNU* | *'with BFD'*)
15329 lt_cv_prog_gnu_ld=yes
15330 ;;
15331 *)
15332 lt_cv_prog_gnu_ld=no
15333 ;;
15334 esac ;;
15335 esac
15336 fi
15337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15338 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
15339 with_gnu_ld=$lt_cv_prog_gnu_ld
15340
15341
15342
15343
15344
15345
15346
15347 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15348 # archiving commands below assume that GNU ld is being used.
15349 if test yes = "$with_gnu_ld"; then
15350 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15351 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'
15352
15353 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15354 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15355
15356 # If archive_cmds runs LD, not CC, wlarc should be empty
15357 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15358 # investigate it a little bit more. (MM)
15359 wlarc='$wl'
15360
15361 # ancient GNU ld didn't support --whole-archive et. al.
15362 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15363 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15364 else
15365 whole_archive_flag_spec_CXX=
15366 fi
15367 else
15368 with_gnu_ld=no
15369 wlarc=
15370
15371 # A generic and very simple default shared library creation
15372 # command for GNU C++ for the case where it uses the native
15373 # linker, instead of GNU ld. If possible, this setting should
15374 # overridden to take advantage of the native linker features on
15375 # the platform it is being used on.
15376 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15377 fi
15378
15379 # Commands to make compiler produce verbose output that lists
15380 # what "hidden" libraries, object files and flags are used when
15381 # linking a shared library.
15382 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
15383
15384 else
15385 GXX=no
15386 with_gnu_ld=no
15387 wlarc=
15388 fi
15389
15390 # PORTME: fill in a description of your system's C++ link characteristics
15391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15392 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15393 ld_shlibs_CXX=yes
15394 case $host_os in
15395 aix3*)
15396 # FIXME: insert proper C++ library support
15397 ld_shlibs_CXX=no
15398 ;;
15399 aix[4-9]*)
15400 if test ia64 = "$host_cpu"; then
15401 # On IA64, the linker does run time linking by default, so we don't
15402 # have to do anything special.
15403 aix_use_runtimelinking=no
15404 exp_sym_flag='-Bexport'
15405 no_entry_flag=
15406 else
15407 aix_use_runtimelinking=no
15408
15409 # Test if we are trying to use run time linking or normal
15410 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15411 # have runtime linking enabled, and use it for executables.
15412 # For shared libraries, we enable/disable runtime linking
15413 # depending on the kind of the shared library created -
15414 # when "with_aix_soname,aix_use_runtimelinking" is:
15415 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
15416 # "aix,yes" lib.so shared, rtl:yes, for executables
15417 # lib.a static archive
15418 # "both,no" lib.so.V(shr.o) shared, rtl:yes
15419 # lib.a(lib.so.V) shared, rtl:no, for executables
15420 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
15421 # lib.a(lib.so.V) shared, rtl:no
15422 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
15423 # lib.a static archive
15424 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15425 for ld_flag in $LDFLAGS; do
15426 case $ld_flag in
15427 *-brtl*)
15428 aix_use_runtimelinking=yes
15429 break
15430 ;;
15431 esac
15432 done
15433 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
15434 # With aix-soname=svr4, we create the lib.so.V shared archives only,
15435 # so we don't have lib.a shared libs to link our executables.
15436 # We have to force runtime linking in this case.
15437 aix_use_runtimelinking=yes
15438 LDFLAGS="$LDFLAGS -Wl,-brtl"
15439 fi
15440 ;;
15441 esac
15442
15443 exp_sym_flag='-bexport'
15444 no_entry_flag='-bnoentry'
15445 fi
15446
15447 # When large executables or shared objects are built, AIX ld can
15448 # have problems creating the table of contents. If linking a library
15449 # or program results in "error TOC overflow" add -mminimal-toc to
15450 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15451 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15452
15453 archive_cmds_CXX=''
15454 hardcode_direct_CXX=yes
15455 hardcode_direct_absolute_CXX=yes
15456 hardcode_libdir_separator_CXX=':'
15457 link_all_deplibs_CXX=yes
15458 file_list_spec_CXX='$wl-f,'
15459 case $with_aix_soname,$aix_use_runtimelinking in
15460 aix,*) ;; # no import file
15461 svr4,* | *,yes) # use import file
15462 # The Import File defines what to hardcode.
15463 hardcode_direct_CXX=no
15464 hardcode_direct_absolute_CXX=no
15465 ;;
15466 esac
15467
15468 if test yes = "$GXX"; then
15469 case $host_os in aix4.[012]|aix4.[012].*)
15470 # We only want to do this on AIX 4.2 and lower, the check
15471 # below for broken collect2 doesn't work under 4.3+
15472 collect2name=`$CC -print-prog-name=collect2`
15473 if test -f "$collect2name" &&
15474 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15475 then
15476 # We have reworked collect2
15477 :
15478 else
15479 # We have old collect2
15480 hardcode_direct_CXX=unsupported
15481 # It fails to find uninstalled libraries when the uninstalled
15482 # path is not listed in the libpath. Setting hardcode_minus_L
15483 # to unsupported forces relinking
15484 hardcode_minus_L_CXX=yes
15485 hardcode_libdir_flag_spec_CXX='-L$libdir'
15486 hardcode_libdir_separator_CXX=
15487 fi
15488 esac
15489 shared_flag='-shared'
15490 if test yes = "$aix_use_runtimelinking"; then
15491 shared_flag=$shared_flag' $wl-G'
15492 fi
15493 # Need to ensure runtime linking is disabled for the traditional
15494 # shared library, or the linker may eventually find shared libraries
15495 # /with/ Import File - we do not want to mix them.
15496 shared_flag_aix='-shared'
15497 shared_flag_svr4='-shared $wl-G'
15498 else
15499 # not using gcc
15500 if test ia64 = "$host_cpu"; then
15501 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15502 # chokes on -Wl,-G. The following line is correct:
15503 shared_flag='-G'
15504 else
15505 if test yes = "$aix_use_runtimelinking"; then
15506 shared_flag='$wl-G'
15507 else
15508 shared_flag='$wl-bM:SRE'
15509 fi
15510 shared_flag_aix='$wl-bM:SRE'
15511 shared_flag_svr4='$wl-G'
15512 fi
15513 fi
15514
15515 export_dynamic_flag_spec_CXX='$wl-bexpall'
15516 # It seems that -bexpall does not export symbols beginning with
15517 # underscore (_), so it is better to generate a list of symbols to
15518 # export.
15519 always_export_symbols_CXX=yes
15520 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
15521 # Warning - without using the other runtime loading flags (-brtl),
15522 # -berok will link without error, but may produce a broken library.
15523 # The "-G" linker flag allows undefined symbols.
15524 no_undefined_flag_CXX='-bernotok'
15525 # Determine the default libpath from the value encoded in an empty
15526 # executable.
15527 if test set = "${lt_cv_aix_libpath+set}"; then
15528 aix_libpath=$lt_cv_aix_libpath
15529 else
15530 if test ${lt_cv_aix_libpath__CXX+y}
15531 then :
15532 printf %s "(cached) " >&6
15533 else case e in #(
15534 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15535 /* end confdefs.h. */
15536
15537 int
15538 main (void)
15539 {
15540
15541 ;
15542 return 0;
15543 }
15544 _ACEOF
15545 if ac_fn_cxx_try_link "$LINENO"
15546 then :
15547
15548 lt_aix_libpath_sed='
15549 /Import File Strings/,/^$/ {
15550 /^0/ {
15551 s/^0 *\([^ ]*\) *$/\1/
15552 p
15553 }
15554 }'
15555 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15556 # Check for a 64-bit object if we didn't find anything.
15557 if test -z "$lt_cv_aix_libpath__CXX"; then
15558 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15559 fi
15560 fi
15561 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15562 conftest$ac_exeext conftest.$ac_ext
15563 if test -z "$lt_cv_aix_libpath__CXX"; then
15564 lt_cv_aix_libpath__CXX=/usr/lib:/lib
15565 fi
15566 ;;
15567 esac
15568 fi
15569
15570 aix_libpath=$lt_cv_aix_libpath__CXX
15571 fi
15572
15573 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15574
15575 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
15576 else
15577 if test ia64 = "$host_cpu"; then
15578 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
15579 allow_undefined_flag_CXX="-z nodefs"
15580 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"
15581 else
15582 # Determine the default libpath from the value encoded in an
15583 # empty executable.
15584 if test set = "${lt_cv_aix_libpath+set}"; then
15585 aix_libpath=$lt_cv_aix_libpath
15586 else
15587 if test ${lt_cv_aix_libpath__CXX+y}
15588 then :
15589 printf %s "(cached) " >&6
15590 else case e in #(
15591 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15592 /* end confdefs.h. */
15593
15594 int
15595 main (void)
15596 {
15597
15598 ;
15599 return 0;
15600 }
15601 _ACEOF
15602 if ac_fn_cxx_try_link "$LINENO"
15603 then :
15604
15605 lt_aix_libpath_sed='
15606 /Import File Strings/,/^$/ {
15607 /^0/ {
15608 s/^0 *\([^ ]*\) *$/\1/
15609 p
15610 }
15611 }'
15612 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15613 # Check for a 64-bit object if we didn't find anything.
15614 if test -z "$lt_cv_aix_libpath__CXX"; then
15615 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15616 fi
15617 fi
15618 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15619 conftest$ac_exeext conftest.$ac_ext
15620 if test -z "$lt_cv_aix_libpath__CXX"; then
15621 lt_cv_aix_libpath__CXX=/usr/lib:/lib
15622 fi
15623 ;;
15624 esac
15625 fi
15626
15627 aix_libpath=$lt_cv_aix_libpath__CXX
15628 fi
15629
15630 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15631 # Warning - without using the other run time loading flags,
15632 # -berok will link without error, but may produce a broken library.
15633 no_undefined_flag_CXX=' $wl-bernotok'
15634 allow_undefined_flag_CXX=' $wl-berok'
15635 if test yes = "$with_gnu_ld"; then
15636 # We only use this code for GNU lds that support --whole-archive.
15637 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
15638 else
15639 # Exported symbols can be pulled into shared objects from archives
15640 whole_archive_flag_spec_CXX='$convenience'
15641 fi
15642 archive_cmds_need_lc_CXX=yes
15643 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
15644 # -brtl affects multiple linker settings, -berok does not and is overridden later
15645 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
15646 if test svr4 != "$with_aix_soname"; then
15647 # This is similar to how AIX traditionally builds its shared
15648 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
15649 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'
15650 fi
15651 if test aix != "$with_aix_soname"; then
15652 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'
15653 else
15654 # used by -dlpreopen to get the symbols
15655 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
15656 fi
15657 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
15658 fi
15659 fi
15660 ;;
15661
15662 beos*)
15663 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15664 allow_undefined_flag_CXX=unsupported
15665 # Joseph Beckenbach <[email protected]> says some releases of gcc
15666 # support --undefined. This deserves some investigation. FIXME
15667 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15668 else
15669 ld_shlibs_CXX=no
15670 fi
15671 ;;
15672
15673 chorus*)
15674 case $cc_basename in
15675 *)
15676 # FIXME: insert proper C++ library support
15677 ld_shlibs_CXX=no
15678 ;;
15679 esac
15680 ;;
15681
15682 cygwin* | mingw* | windows* | pw32* | cegcc*)
15683 case $GXX,$cc_basename in
15684 ,cl* | no,cl* | ,icl* | no,icl*)
15685 # Native MSVC or ICC
15686 # hardcode_libdir_flag_spec is actually meaningless, as there is
15687 # no search path for DLLs.
15688 hardcode_libdir_flag_spec_CXX=' '
15689 allow_undefined_flag_CXX=unsupported
15690 always_export_symbols_CXX=yes
15691 file_list_spec_CXX='@'
15692 # Tell ltmain to make .lib files, not .a files.
15693 libext=lib
15694 # Tell ltmain to make .dll files, not .so files.
15695 shrext_cmds=.dll
15696 # FIXME: Setting linknames here is a bad hack.
15697 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
15698 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
15699 cp "$export_symbols" "$output_objdir/$soname.def";
15700 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
15701 else
15702 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
15703 fi~
15704 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15705 linknames='
15706 # The linker will not automatically build a static lib if we build a DLL.
15707 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
15708 enable_shared_with_static_runtimes_CXX=yes
15709 # Don't use ranlib
15710 old_postinstall_cmds_CXX='chmod 644 $oldlib'
15711 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
15712 lt_tool_outputfile="@TOOL_OUTPUT@"~
15713 case $lt_outputfile in
15714 *.exe|*.EXE) ;;
15715 *)
15716 lt_outputfile=$lt_outputfile.exe
15717 lt_tool_outputfile=$lt_tool_outputfile.exe
15718 ;;
15719 esac~
15720 func_to_tool_file "$lt_outputfile"~
15721 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
15722 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15723 $RM "$lt_outputfile.manifest";
15724 fi'
15725 ;;
15726 *)
15727 # g++
15728 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15729 # as there is no search path for DLLs.
15730 hardcode_libdir_flag_spec_CXX='-L$libdir'
15731 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
15732 allow_undefined_flag_CXX=unsupported
15733 always_export_symbols_CXX=no
15734 enable_shared_with_static_runtimes_CXX=yes
15735 file_list_spec_CXX='@'
15736
15737 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15738 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'
15739 # If the export-symbols file already is a .def file, use it as
15740 # is; otherwise, prepend EXPORTS...
15741 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
15742 cp $export_symbols $output_objdir/$soname.def;
15743 else
15744 echo EXPORTS > $output_objdir/$soname.def;
15745 cat $export_symbols >> $output_objdir/$soname.def;
15746 fi~
15747 $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'
15748 else
15749 ld_shlibs_CXX=no
15750 fi
15751 ;;
15752 esac
15753 ;;
15754 darwin* | rhapsody*)
15755
15756
15757 archive_cmds_need_lc_CXX=no
15758 hardcode_direct_CXX=no
15759 hardcode_automatic_CXX=yes
15760 hardcode_shlibpath_var_CXX=unsupported
15761 if test yes = "$lt_cv_ld_force_load"; then
15762 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\"`'
15763
15764 else
15765 whole_archive_flag_spec_CXX=''
15766 fi
15767 link_all_deplibs_CXX=yes
15768 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
15769 case $cc_basename in
15770 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
15771 *) _lt_dar_can_shared=$GCC ;;
15772 esac
15773 if test yes = "$_lt_dar_can_shared"; then
15774 output_verbose_link_cmd=func_echo_all
15775 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"
15776 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
15777 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"
15778 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"
15779 if test yes = "$_lt_dar_needs_single_mod" -a yes != "$lt_cv_apple_cc_single_mod"; then
15780 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"
15781 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"
15782 fi
15783
15784 else
15785 ld_shlibs_CXX=no
15786 fi
15787
15788 ;;
15789
15790 os2*)
15791 hardcode_libdir_flag_spec_CXX='-L$libdir'
15792 hardcode_minus_L_CXX=yes
15793 allow_undefined_flag_CXX=unsupported
15794 shrext_cmds=.dll
15795 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15796 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15797 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15798 $ECHO EXPORTS >> $output_objdir/$libname.def~
15799 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
15800 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15801 emximp -o $lib $output_objdir/$libname.def'
15802 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15803 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15804 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15805 $ECHO EXPORTS >> $output_objdir/$libname.def~
15806 prefix_cmds="$SED"~
15807 if test EXPORTS = "`$SED 1q $export_symbols`"; then
15808 prefix_cmds="$prefix_cmds -e 1d";
15809 fi~
15810 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
15811 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
15812 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15813 emximp -o $lib $output_objdir/$libname.def'
15814 old_archive_from_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
15815 enable_shared_with_static_runtimes_CXX=yes
15816 file_list_spec_CXX='@'
15817 ;;
15818
15819 dgux*)
15820 case $cc_basename in
15821 ec++*)
15822 # FIXME: insert proper C++ library support
15823 ld_shlibs_CXX=no
15824 ;;
15825 ghcx*)
15826 # Green Hills C++ Compiler
15827 # FIXME: insert proper C++ library support
15828 ld_shlibs_CXX=no
15829 ;;
15830 *)
15831 # FIXME: insert proper C++ library support
15832 ld_shlibs_CXX=no
15833 ;;
15834 esac
15835 ;;
15836
15837 freebsd2.*)
15838 # C++ shared libraries reported to be fairly broken before
15839 # switch to ELF
15840 ld_shlibs_CXX=no
15841 ;;
15842
15843 freebsd-elf*)
15844 archive_cmds_need_lc_CXX=no
15845 ;;
15846
15847 freebsd* | dragonfly* | midnightbsd*)
15848 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15849 # conventions
15850 ld_shlibs_CXX=yes
15851 ;;
15852
15853 haiku*)
15854 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15855 link_all_deplibs_CXX=no
15856 ;;
15857
15858 hpux9*)
15859 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
15860 hardcode_libdir_separator_CXX=:
15861 export_dynamic_flag_spec_CXX='$wl-E'
15862 hardcode_direct_CXX=yes
15863 hardcode_minus_L_CXX=yes # Not in the search PATH,
15864 # but as the default
15865 # location of the library.
15866
15867 case $cc_basename in
15868 CC*)
15869 # FIXME: insert proper C++ library support
15870 ld_shlibs_CXX=no
15871 ;;
15872 aCC*)
15873 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'
15874 # Commands to make compiler produce verbose output that lists
15875 # what "hidden" libraries, object files and flags are used when
15876 # linking a shared library.
15877 #
15878 # There doesn't appear to be a way to prevent this compiler from
15879 # explicitly linking system object files so we need to strip them
15880 # from the output so that they don't get included in the library
15881 # dependencies.
15882 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"'
15883 ;;
15884 *)
15885 if test yes = "$GXX"; then
15886 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'
15887 else
15888 # FIXME: insert proper C++ library support
15889 ld_shlibs_CXX=no
15890 fi
15891 ;;
15892 esac
15893 ;;
15894
15895 hpux10*|hpux11*)
15896 if test no = "$with_gnu_ld"; then
15897 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
15898 hardcode_libdir_separator_CXX=:
15899
15900 case $host_cpu in
15901 hppa*64*|ia64*)
15902 ;;
15903 *)
15904 export_dynamic_flag_spec_CXX='$wl-E'
15905 ;;
15906 esac
15907 fi
15908 case $host_cpu in
15909 hppa*64*|ia64*)
15910 hardcode_direct_CXX=no
15911 hardcode_shlibpath_var_CXX=no
15912 ;;
15913 *)
15914 hardcode_direct_CXX=yes
15915 hardcode_direct_absolute_CXX=yes
15916 hardcode_minus_L_CXX=yes # Not in the search PATH,
15917 # but as the default
15918 # location of the library.
15919 ;;
15920 esac
15921
15922 case $cc_basename in
15923 CC*)
15924 # FIXME: insert proper C++ library support
15925 ld_shlibs_CXX=no
15926 ;;
15927 aCC*)
15928 case $host_cpu in
15929 hppa*64*)
15930 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15931 ;;
15932 ia64*)
15933 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15934 ;;
15935 *)
15936 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15937 ;;
15938 esac
15939 # Commands to make compiler produce verbose output that lists
15940 # what "hidden" libraries, object files and flags are used when
15941 # linking a shared library.
15942 #
15943 # There doesn't appear to be a way to prevent this compiler from
15944 # explicitly linking system object files so we need to strip them
15945 # from the output so that they don't get included in the library
15946 # dependencies.
15947 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"'
15948 ;;
15949 *)
15950 if test yes = "$GXX"; then
15951 if test no = "$with_gnu_ld"; then
15952 case $host_cpu in
15953 hppa*64*)
15954 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15955 ;;
15956 ia64*)
15957 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15958 ;;
15959 *)
15960 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'
15961 ;;
15962 esac
15963 fi
15964 else
15965 # FIXME: insert proper C++ library support
15966 ld_shlibs_CXX=no
15967 fi
15968 ;;
15969 esac
15970 ;;
15971
15972 interix[3-9]*)
15973 hardcode_direct_CXX=no
15974 hardcode_shlibpath_var_CXX=no
15975 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15976 export_dynamic_flag_spec_CXX='$wl-E'
15977 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15978 # Instead, shared libraries are loaded at an image base (0x10000000 by
15979 # default) and relocated if they conflict, which is a slow very memory
15980 # consuming and fragmenting process. To avoid this, we pick a random,
15981 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15982 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15983 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'
15984 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'
15985 ;;
15986 irix5* | irix6*)
15987 case $cc_basename in
15988 CC*)
15989 # SGI C++
15990 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'
15991
15992 # Archives containing C++ object files must be created using
15993 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15994 # necessary to make sure instantiated templates are included
15995 # in the archive.
15996 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15997 ;;
15998 *)
15999 if test yes = "$GXX"; then
16000 if test no = "$with_gnu_ld"; then
16001 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'
16002 else
16003 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'
16004 fi
16005 fi
16006 link_all_deplibs_CXX=yes
16007 ;;
16008 esac
16009 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16010 hardcode_libdir_separator_CXX=:
16011 inherit_rpath_CXX=yes
16012 ;;
16013
16014 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16015 case $cc_basename in
16016 KCC*)
16017 # Kuck and Associates, Inc. (KAI) C++ Compiler
16018
16019 # KCC will only create a shared library if the output file
16020 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16021 # to its proper name (with version) after linking.
16022 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'
16023 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'
16024 # Commands to make compiler produce verbose output that lists
16025 # what "hidden" libraries, object files and flags are used when
16026 # linking a shared library.
16027 #
16028 # There doesn't appear to be a way to prevent this compiler from
16029 # explicitly linking system object files so we need to strip them
16030 # from the output so that they don't get included in the library
16031 # dependencies.
16032 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"'
16033
16034 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16035 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16036
16037 # Archives containing C++ object files must be created using
16038 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16039 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16040 ;;
16041 icpc* | ecpc* )
16042 # Intel C++
16043 with_gnu_ld=yes
16044 # version 8.0 and above of icpc choke on multiply defined symbols
16045 # if we add $predep_objects and $postdep_objects, however 7.1 and
16046 # earlier do not add the objects themselves.
16047 case `$CC -V 2>&1` in
16048 *"Version 7."*)
16049 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16050 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'
16051 ;;
16052 *) # Version 8.0 or newer
16053 tmp_idyn=
16054 case $host_cpu in
16055 ia64*) tmp_idyn=' -i_dynamic';;
16056 esac
16057 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16058 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'
16059 ;;
16060 esac
16061 archive_cmds_need_lc_CXX=no
16062 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16063 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16064 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
16065 ;;
16066 pgCC* | pgcpp*)
16067 # Portland Group C++ compiler
16068 case `$CC -V` in
16069 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
16070 prelink_cmds_CXX='tpldir=Template.dir~
16071 rm -rf $tpldir~
16072 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
16073 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
16074 old_archive_cmds_CXX='tpldir=Template.dir~
16075 rm -rf $tpldir~
16076 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
16077 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
16078 $RANLIB $oldlib'
16079 archive_cmds_CXX='tpldir=Template.dir~
16080 rm -rf $tpldir~
16081 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16082 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16083 archive_expsym_cmds_CXX='tpldir=Template.dir~
16084 rm -rf $tpldir~
16085 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16086 $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'
16087 ;;
16088 *) # Version 6 and above use weak symbols
16089 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16090 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'
16091 ;;
16092 esac
16093
16094 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
16095 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16096 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'
16097 ;;
16098 cxx*)
16099 # Compaq C++
16100 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16101 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'
16102
16103 runpath_var=LD_RUN_PATH
16104 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16105 hardcode_libdir_separator_CXX=:
16106
16107 # Commands to make compiler produce verbose output that lists
16108 # what "hidden" libraries, object files and flags are used when
16109 # linking a shared library.
16110 #
16111 # There doesn't appear to be a way to prevent this compiler from
16112 # explicitly linking system object files so we need to strip them
16113 # from the output so that they don't get included in the library
16114 # dependencies.
16115 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'
16116 ;;
16117 xl* | mpixl* | bgxl*)
16118 # IBM XL 8.0 on PPC, with GNU ld
16119 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16120 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16121 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16122 if test yes = "$supports_anon_versioning"; then
16123 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
16124 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16125 echo "local: *; };" >> $output_objdir/$libname.ver~
16126 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
16127 fi
16128 ;;
16129 *)
16130 case `$CC -V 2>&1 | $SED 5q` in
16131 *Sun\ C*)
16132 # Sun C++ 5.9
16133 no_undefined_flag_CXX=' -zdefs'
16134 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16135 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'
16136 hardcode_libdir_flag_spec_CXX='-R$libdir'
16137 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'
16138 compiler_needs_object_CXX=yes
16139
16140 # Not sure whether something based on
16141 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
16142 # would be better.
16143 output_verbose_link_cmd='func_echo_all'
16144
16145 # Archives containing C++ object files must be created using
16146 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16147 # necessary to make sure instantiated templates are included
16148 # in the archive.
16149 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16150 ;;
16151 esac
16152 ;;
16153 esac
16154 ;;
16155
16156 lynxos*)
16157 # FIXME: insert proper C++ library support
16158 ld_shlibs_CXX=no
16159 ;;
16160
16161 m88k*)
16162 # FIXME: insert proper C++ library support
16163 ld_shlibs_CXX=no
16164 ;;
16165
16166 mvs*)
16167 case $cc_basename in
16168 cxx*)
16169 # FIXME: insert proper C++ library support
16170 ld_shlibs_CXX=no
16171 ;;
16172 *)
16173 # FIXME: insert proper C++ library support
16174 ld_shlibs_CXX=no
16175 ;;
16176 esac
16177 ;;
16178
16179 *-mlibc)
16180 ld_shlibs_CXX=yes
16181 ;;
16182
16183 netbsd*)
16184 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16185 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16186 wlarc=
16187 hardcode_libdir_flag_spec_CXX='-R$libdir'
16188 hardcode_direct_CXX=yes
16189 hardcode_shlibpath_var_CXX=no
16190 fi
16191 # Workaround some broken pre-1.5 toolchains
16192 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16193 ;;
16194
16195 *nto* | *qnx*)
16196 ld_shlibs_CXX=yes
16197 ;;
16198
16199 openbsd*)
16200 if test -f /usr/libexec/ld.so; then
16201 hardcode_direct_CXX=yes
16202 hardcode_shlibpath_var_CXX=no
16203 hardcode_direct_absolute_CXX=yes
16204 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16205 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16206 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
16207 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
16208 export_dynamic_flag_spec_CXX='$wl-E'
16209 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
16210 fi
16211 output_verbose_link_cmd=func_echo_all
16212 else
16213 ld_shlibs_CXX=no
16214 fi
16215 ;;
16216
16217 osf3* | osf4* | osf5*)
16218 case $cc_basename in
16219 KCC*)
16220 # Kuck and Associates, Inc. (KAI) C++ Compiler
16221
16222 # KCC will only create a shared library if the output file
16223 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16224 # to its proper name (with version) after linking.
16225 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'
16226
16227 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16228 hardcode_libdir_separator_CXX=:
16229
16230 # Archives containing C++ object files must be created using
16231 # the KAI C++ compiler.
16232 case $host in
16233 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
16234 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
16235 esac
16236 ;;
16237 RCC*)
16238 # Rational C++ 2.4.1
16239 # FIXME: insert proper C++ library support
16240 ld_shlibs_CXX=no
16241 ;;
16242 cxx*)
16243 case $host in
16244 osf3*)
16245 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
16246 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'
16247 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16248 ;;
16249 *)
16250 allow_undefined_flag_CXX=' -expect_unresolved \*'
16251 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'
16252 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16253 echo "-hidden">> $lib.exp~
16254 $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~
16255 $RM $lib.exp'
16256 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16257 ;;
16258 esac
16259
16260 hardcode_libdir_separator_CXX=:
16261
16262 # Commands to make compiler produce verbose output that lists
16263 # what "hidden" libraries, object files and flags are used when
16264 # linking a shared library.
16265 #
16266 # There doesn't appear to be a way to prevent this compiler from
16267 # explicitly linking system object files so we need to strip them
16268 # from the output so that they don't get included in the library
16269 # dependencies.
16270 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"'
16271 ;;
16272 *)
16273 if test yes,no = "$GXX,$with_gnu_ld"; then
16274 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
16275 case $host in
16276 osf3*)
16277 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'
16278 ;;
16279 *)
16280 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'
16281 ;;
16282 esac
16283
16284 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16285 hardcode_libdir_separator_CXX=:
16286
16287 # Commands to make compiler produce verbose output that lists
16288 # what "hidden" libraries, object files and flags are used when
16289 # linking a shared library.
16290 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
16291
16292 else
16293 # FIXME: insert proper C++ library support
16294 ld_shlibs_CXX=no
16295 fi
16296 ;;
16297 esac
16298 ;;
16299
16300 psos*)
16301 # FIXME: insert proper C++ library support
16302 ld_shlibs_CXX=no
16303 ;;
16304
16305 serenity*)
16306 ;;
16307
16308 sunos4*)
16309 case $cc_basename in
16310 CC*)
16311 # Sun C++ 4.x
16312 # FIXME: insert proper C++ library support
16313 ld_shlibs_CXX=no
16314 ;;
16315 lcc*)
16316 # Lucid
16317 # FIXME: insert proper C++ library support
16318 ld_shlibs_CXX=no
16319 ;;
16320 *)
16321 # FIXME: insert proper C++ library support
16322 ld_shlibs_CXX=no
16323 ;;
16324 esac
16325 ;;
16326
16327 solaris*)
16328 case $cc_basename in
16329 CC* | sunCC*)
16330 # Sun C++ 4.2, 5.x and Centerline C++
16331 archive_cmds_need_lc_CXX=yes
16332 no_undefined_flag_CXX=' -zdefs'
16333 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16334 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16335 $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'
16336
16337 hardcode_libdir_flag_spec_CXX='-R$libdir'
16338 hardcode_shlibpath_var_CXX=no
16339 case $host_os in
16340 solaris2.[0-5] | solaris2.[0-5].*) ;;
16341 *)
16342 # The compiler driver will combine and reorder linker options,
16343 # but understands '-z linker_flag'.
16344 # Supported since Solaris 2.6 (maybe 2.5.1?)
16345 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
16346 ;;
16347 esac
16348 link_all_deplibs_CXX=yes
16349
16350 output_verbose_link_cmd='func_echo_all'
16351
16352 # Archives containing C++ object files must be created using
16353 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16354 # necessary to make sure instantiated templates are included
16355 # in the archive.
16356 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16357 ;;
16358 gcx*)
16359 # Green Hills C++ Compiler
16360 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16361
16362 # The C++ compiler must be used to create the archive.
16363 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16364 ;;
16365 *)
16366 # GNU C++ compiler with Solaris linker
16367 if test yes,no = "$GXX,$with_gnu_ld"; then
16368 no_undefined_flag_CXX=' $wl-z ${wl}defs'
16369 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
16370 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16371 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16372 $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'
16373
16374 # Commands to make compiler produce verbose output that lists
16375 # what "hidden" libraries, object files and flags are used when
16376 # linking a shared library.
16377 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
16378 else
16379 # g++ 2.7 appears to require '-G' NOT '-shared' on this
16380 # platform.
16381 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16382 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16383 $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'
16384
16385 # Commands to make compiler produce verbose output that lists
16386 # what "hidden" libraries, object files and flags are used when
16387 # linking a shared library.
16388 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
16389 fi
16390
16391 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
16392 case $host_os in
16393 solaris2.[0-5] | solaris2.[0-5].*) ;;
16394 *)
16395 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
16396 ;;
16397 esac
16398 fi
16399 ;;
16400 esac
16401 ;;
16402
16403 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16404 no_undefined_flag_CXX='$wl-z,text'
16405 archive_cmds_need_lc_CXX=no
16406 hardcode_shlibpath_var_CXX=no
16407 runpath_var='LD_RUN_PATH'
16408
16409 case $cc_basename in
16410 CC*)
16411 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16412 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16413 ;;
16414 *)
16415 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16416 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16417 ;;
16418 esac
16419 ;;
16420
16421 sysv5* | sco3.2v5* | sco5v6*)
16422 # Note: We CANNOT use -z defs as we might desire, because we do not
16423 # link with -lc, and that would cause any symbols used from libc to
16424 # always be unresolved, which means just about no library would
16425 # ever link correctly. If we're not using GNU ld we use -z text
16426 # though, which does catch some bad symbols but isn't as heavy-handed
16427 # as -z defs.
16428 no_undefined_flag_CXX='$wl-z,text'
16429 allow_undefined_flag_CXX='$wl-z,nodefs'
16430 archive_cmds_need_lc_CXX=no
16431 hardcode_shlibpath_var_CXX=no
16432 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
16433 hardcode_libdir_separator_CXX=':'
16434 link_all_deplibs_CXX=yes
16435 export_dynamic_flag_spec_CXX='$wl-Bexport'
16436 runpath_var='LD_RUN_PATH'
16437
16438 case $cc_basename in
16439 CC*)
16440 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16441 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16442 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
16443 '"$old_archive_cmds_CXX"
16444 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
16445 '"$reload_cmds_CXX"
16446 ;;
16447 *)
16448 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16449 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16450 ;;
16451 esac
16452 ;;
16453
16454 tandem*)
16455 case $cc_basename in
16456 NCC*)
16457 # NonStop-UX NCC 3.20
16458 # FIXME: insert proper C++ library support
16459 ld_shlibs_CXX=no
16460 ;;
16461 *)
16462 # FIXME: insert proper C++ library support
16463 ld_shlibs_CXX=no
16464 ;;
16465 esac
16466 ;;
16467
16468 vxworks*)
16469 # FIXME: insert proper C++ library support
16470 ld_shlibs_CXX=no
16471 ;;
16472
16473 *)
16474 # FIXME: insert proper C++ library support
16475 ld_shlibs_CXX=no
16476 ;;
16477 esac
16478
16479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16480 printf "%s\n" "$ld_shlibs_CXX" >&6; }
16481 test no = "$ld_shlibs_CXX" && can_build_shared=no
16482
16483 GCC_CXX=$GXX
16484 LD_CXX=$LD
16485
16486 ## CAVEAT EMPTOR:
16487 ## There is no encapsulation within the following macros, do not change
16488 ## the running order or otherwise move them around unless you know exactly
16489 ## what you are doing...
16490 # Dependencies to place before and after the object being linked:
16491 predep_objects_CXX=
16492 postdep_objects_CXX=
16493 predeps_CXX=
16494 postdeps_CXX=
16495 compiler_lib_search_path_CXX=
16496
16497 cat > conftest.$ac_ext <<_LT_EOF
16498 class Foo
16499 {
16500 public:
16501 Foo (void) { a = 0; }
16502 private:
16503 int a;
16504 };
16505 _LT_EOF
16506
16507
16508 _lt_libdeps_save_CFLAGS=$CFLAGS
16509 case "$CC $CFLAGS " in #(
16510 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
16511 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
16512 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
16513 esac
16514
16515 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16516 (eval $ac_compile) 2>&5
16517 ac_status=$?
16518 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16519 test $ac_status = 0; }; then
16520 # Parse the compiler output and extract the necessary
16521 # objects, libraries and library flags.
16522
16523 # Sentinel used to keep track of whether or not we are before
16524 # the conftest object file.
16525 pre_test_object_deps_done=no
16526
16527 for p in `eval "$output_verbose_link_cmd"`; do
16528 case $prev$p in
16529
16530 -L* | -R* | -l*)
16531 # Some compilers place space between "-{L,R,l}" and the path.
16532 # Remove the space.
16533 if test x-L = x"$p" ||
16534 test x-R = x"$p" ||
16535 test x-l = x"$p"; then
16536 prev=$p
16537 continue
16538 fi
16539
16540 # Expand the sysroot to ease extracting the directories later.
16541 if test -z "$prev"; then
16542 case $p in
16543 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
16544 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
16545 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
16546 esac
16547 fi
16548 case $p in
16549 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
16550 esac
16551 if test no = "$pre_test_object_deps_done"; then
16552 case $prev in
16553 -L | -R)
16554 # Internal compiler library paths should come after those
16555 # provided the user. The postdeps already come after the
16556 # user supplied libs so there is no need to process them.
16557 if test -z "$compiler_lib_search_path_CXX"; then
16558 compiler_lib_search_path_CXX=$prev$p
16559 else
16560 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
16561 fi
16562 ;;
16563 # The "-l" case would never come before the object being
16564 # linked, so don't bother handling this case.
16565 esac
16566 else
16567 if test -z "$postdeps_CXX"; then
16568 postdeps_CXX=$prev$p
16569 else
16570 postdeps_CXX="${postdeps_CXX} $prev$p"
16571 fi
16572 fi
16573 prev=
16574 ;;
16575
16576 *.lto.$objext) ;; # Ignore GCC LTO objects
16577 *.$objext)
16578 # This assumes that the test object file only shows up
16579 # once in the compiler output.
16580 if test "$p" = "conftest.$objext"; then
16581 pre_test_object_deps_done=yes
16582 continue
16583 fi
16584
16585 if test no = "$pre_test_object_deps_done"; then
16586 if test -z "$predep_objects_CXX"; then
16587 predep_objects_CXX=$p
16588 else
16589 predep_objects_CXX="$predep_objects_CXX $p"
16590 fi
16591 else
16592 if test -z "$postdep_objects_CXX"; then
16593 postdep_objects_CXX=$p
16594 else
16595 postdep_objects_CXX="$postdep_objects_CXX $p"
16596 fi
16597 fi
16598 ;;
16599
16600 *) ;; # Ignore the rest.
16601
16602 esac
16603 done
16604
16605 # Clean up.
16606 rm -f a.out a.exe
16607 else
16608 echo "libtool.m4: error: problem compiling CXX test program"
16609 fi
16610
16611 $RM -f confest.$objext
16612 CFLAGS=$_lt_libdeps_save_CFLAGS
16613
16614 # PORTME: override above test on systems where it is broken
16615 case $host_os in
16616 interix[3-9]*)
16617 # Interix 3.5 installs completely hosed .la files for C++, so rather than
16618 # hack all around it, let's just trust "g++" to DTRT.
16619 predep_objects_CXX=
16620 postdep_objects_CXX=
16621 postdeps_CXX=
16622 ;;
16623 esac
16624
16625
16626 case " $postdeps_CXX " in
16627 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16628 esac
16629 compiler_lib_search_dirs_CXX=
16630 if test -n "${compiler_lib_search_path_CXX}"; then
16631 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
16632 fi
16633
16634
16635
16636
16637
16638
16639
16640
16641
16642
16643
16644
16645
16646
16647
16648
16649
16650
16651
16652
16653
16654
16655
16656
16657
16658
16659
16660
16661
16662
16663
16664 lt_prog_compiler_wl_CXX=
16665 lt_prog_compiler_pic_CXX=
16666 lt_prog_compiler_static_CXX=
16667
16668
16669 # C++ specific cases for pic, static, wl, etc.
16670 if test yes = "$GXX"; then
16671 lt_prog_compiler_wl_CXX='-Wl,'
16672 lt_prog_compiler_static_CXX='-static'
16673
16674 case $host_os in
16675 aix*)
16676 # All AIX code is PIC.
16677 if test ia64 = "$host_cpu"; then
16678 # AIX 5 now supports IA64 processor
16679 lt_prog_compiler_static_CXX='-Bstatic'
16680 fi
16681 lt_prog_compiler_pic_CXX='-fPIC'
16682 ;;
16683
16684 amigaos*)
16685 case $host_cpu in
16686 powerpc)
16687 # see comment about AmigaOS4 .so support
16688 lt_prog_compiler_pic_CXX='-fPIC'
16689 ;;
16690 m68k)
16691 # FIXME: we need at least 68020 code to build shared libraries, but
16692 # adding the '-m68020' flag to GCC prevents building anything better,
16693 # like '-m68040'.
16694 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16695 ;;
16696 esac
16697 ;;
16698
16699 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16700 # PIC is the default for these OSes.
16701 ;;
16702 mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
16703 # This hack is so that the source file can tell whether it is being
16704 # built for inclusion in a dll (and should export symbols for example).
16705 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16706 # (--disable-auto-import) libraries
16707 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16708 case $host_os in
16709 os2*)
16710 lt_prog_compiler_static_CXX='$wl-static'
16711 ;;
16712 esac
16713 ;;
16714 darwin* | rhapsody*)
16715 # PIC is the default on this platform
16716 # Common symbols not allowed in MH_DYLIB files
16717 lt_prog_compiler_pic_CXX='-fno-common'
16718 ;;
16719 *djgpp*)
16720 # DJGPP does not support shared libraries at all
16721 lt_prog_compiler_pic_CXX=
16722 ;;
16723 haiku*)
16724 # PIC is the default for Haiku.
16725 # The "-static" flag exists, but is broken.
16726 lt_prog_compiler_static_CXX=
16727 ;;
16728 interix[3-9]*)
16729 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16730 # Instead, we relocate shared libraries at runtime.
16731 ;;
16732 sysv4*MP*)
16733 if test -d /usr/nec; then
16734 lt_prog_compiler_pic_CXX=-Kconform_pic
16735 fi
16736 ;;
16737 hpux*)
16738 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16739 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16740 # sets the default TLS model and affects inlining.
16741 case $host_cpu in
16742 hppa*64*)
16743 ;;
16744 *)
16745 lt_prog_compiler_pic_CXX='-fPIC'
16746 ;;
16747 esac
16748 ;;
16749 *qnx* | *nto*)
16750 # QNX uses GNU C++, but need to define -shared option too, otherwise
16751 # it will coredump.
16752 lt_prog_compiler_pic_CXX='-fPIC -shared'
16753 ;;
16754 *)
16755 lt_prog_compiler_pic_CXX='-fPIC'
16756 ;;
16757 esac
16758 else
16759 case $host_os in
16760 aix[4-9]*)
16761 # All AIX code is PIC.
16762 if test ia64 = "$host_cpu"; then
16763 # AIX 5 now supports IA64 processor
16764 lt_prog_compiler_static_CXX='-Bstatic'
16765 else
16766 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16767 fi
16768 ;;
16769 chorus*)
16770 case $cc_basename in
16771 cxch68*)
16772 # Green Hills C++ Compiler
16773 # _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"
16774 ;;
16775 esac
16776 ;;
16777 mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
16778 # This hack is so that the source file can tell whether it is being
16779 # built for inclusion in a dll (and should export symbols for example).
16780 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16781 ;;
16782 dgux*)
16783 case $cc_basename in
16784 ec++*)
16785 lt_prog_compiler_pic_CXX='-KPIC'
16786 ;;
16787 ghcx*)
16788 # Green Hills C++ Compiler
16789 lt_prog_compiler_pic_CXX='-pic'
16790 ;;
16791 *)
16792 ;;
16793 esac
16794 ;;
16795 freebsd* | dragonfly* | midnightbsd*)
16796 # FreeBSD uses GNU C++
16797 ;;
16798 hpux9* | hpux10* | hpux11*)
16799 case $cc_basename in
16800 CC*)
16801 lt_prog_compiler_wl_CXX='-Wl,'
16802 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
16803 if test ia64 != "$host_cpu"; then
16804 lt_prog_compiler_pic_CXX='+Z'
16805 fi
16806 ;;
16807 aCC*)
16808 lt_prog_compiler_wl_CXX='-Wl,'
16809 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
16810 case $host_cpu in
16811 hppa*64*|ia64*)
16812 # +Z the default
16813 ;;
16814 *)
16815 lt_prog_compiler_pic_CXX='+Z'
16816 ;;
16817 esac
16818 ;;
16819 *)
16820 ;;
16821 esac
16822 ;;
16823 interix*)
16824 # This is c89, which is MS Visual C++ (no shared libs)
16825 # Anyone wants to do a port?
16826 ;;
16827 irix5* | irix6* | nonstopux*)
16828 case $cc_basename in
16829 CC*)
16830 lt_prog_compiler_wl_CXX='-Wl,'
16831 lt_prog_compiler_static_CXX='-non_shared'
16832 # CC pic flag -KPIC is the default.
16833 ;;
16834 *)
16835 ;;
16836 esac
16837 ;;
16838 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16839 case $cc_basename in
16840 KCC*)
16841 # KAI C++ Compiler
16842 lt_prog_compiler_wl_CXX='--backend -Wl,'
16843 lt_prog_compiler_pic_CXX='-fPIC'
16844 ;;
16845 ecpc* )
16846 # old Intel C++ for x86_64, which still supported -KPIC.
16847 lt_prog_compiler_wl_CXX='-Wl,'
16848 lt_prog_compiler_pic_CXX='-KPIC'
16849 lt_prog_compiler_static_CXX='-static'
16850 ;;
16851 icpc* )
16852 # Intel C++, used to be incompatible with GCC.
16853 # ICC 10 doesn't accept -KPIC any more.
16854 lt_prog_compiler_wl_CXX='-Wl,'
16855 lt_prog_compiler_pic_CXX='-fPIC'
16856 lt_prog_compiler_static_CXX='-static'
16857 ;;
16858 pgCC* | pgcpp*)
16859 # Portland Group C++ compiler
16860 lt_prog_compiler_wl_CXX='-Wl,'
16861 lt_prog_compiler_pic_CXX='-fpic'
16862 lt_prog_compiler_static_CXX='-Bstatic'
16863 ;;
16864 cxx*)
16865 # Compaq C++
16866 # Make sure the PIC flag is empty. It appears that all Alpha
16867 # Linux and Compaq Tru64 Unix objects are PIC.
16868 lt_prog_compiler_pic_CXX=
16869 lt_prog_compiler_static_CXX='-non_shared'
16870 ;;
16871 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
16872 # IBM XL 8.0, 9.0 on PPC and BlueGene
16873 lt_prog_compiler_wl_CXX='-Wl,'
16874 lt_prog_compiler_pic_CXX='-qpic'
16875 lt_prog_compiler_static_CXX='-qstaticlink'
16876 ;;
16877 *)
16878 case `$CC -V 2>&1 | $SED 5q` in
16879 *Sun\ C*)
16880 # Sun C++ 5.9
16881 lt_prog_compiler_pic_CXX='-KPIC'
16882 lt_prog_compiler_static_CXX='-Bstatic'
16883 lt_prog_compiler_wl_CXX='-Qoption ld '
16884 ;;
16885 esac
16886 ;;
16887 esac
16888 ;;
16889 lynxos*)
16890 ;;
16891 m88k*)
16892 ;;
16893 mvs*)
16894 case $cc_basename in
16895 cxx*)
16896 lt_prog_compiler_pic_CXX='-W c,exportall'
16897 ;;
16898 *)
16899 ;;
16900 esac
16901 ;;
16902 netbsd* | netbsdelf*-gnu)
16903 ;;
16904 *-mlibc)
16905 ;;
16906 *qnx* | *nto*)
16907 # QNX uses GNU C++, but need to define -shared option too, otherwise
16908 # it will coredump.
16909 lt_prog_compiler_pic_CXX='-fPIC -shared'
16910 ;;
16911 osf3* | osf4* | osf5*)
16912 case $cc_basename in
16913 KCC*)
16914 lt_prog_compiler_wl_CXX='--backend -Wl,'
16915 ;;
16916 RCC*)
16917 # Rational C++ 2.4.1
16918 lt_prog_compiler_pic_CXX='-pic'
16919 ;;
16920 cxx*)
16921 # Digital/Compaq C++
16922 lt_prog_compiler_wl_CXX='-Wl,'
16923 # Make sure the PIC flag is empty. It appears that all Alpha
16924 # Linux and Compaq Tru64 Unix objects are PIC.
16925 lt_prog_compiler_pic_CXX=
16926 lt_prog_compiler_static_CXX='-non_shared'
16927 ;;
16928 *)
16929 ;;
16930 esac
16931 ;;
16932 psos*)
16933 ;;
16934 serenity*)
16935 ;;
16936 solaris*)
16937 case $cc_basename in
16938 CC* | sunCC*)
16939 # Sun C++ 4.2, 5.x and Centerline C++
16940 lt_prog_compiler_pic_CXX='-KPIC'
16941 lt_prog_compiler_static_CXX='-Bstatic'
16942 lt_prog_compiler_wl_CXX='-Qoption ld '
16943 ;;
16944 gcx*)
16945 # Green Hills C++ Compiler
16946 lt_prog_compiler_pic_CXX='-PIC'
16947 ;;
16948 *)
16949 ;;
16950 esac
16951 ;;
16952 sunos4*)
16953 case $cc_basename in
16954 CC*)
16955 # Sun C++ 4.x
16956 lt_prog_compiler_pic_CXX='-pic'
16957 lt_prog_compiler_static_CXX='-Bstatic'
16958 ;;
16959 lcc*)
16960 # Lucid
16961 lt_prog_compiler_pic_CXX='-pic'
16962 ;;
16963 *)
16964 ;;
16965 esac
16966 ;;
16967 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16968 case $cc_basename in
16969 CC*)
16970 lt_prog_compiler_wl_CXX='-Wl,'
16971 lt_prog_compiler_pic_CXX='-KPIC'
16972 lt_prog_compiler_static_CXX='-Bstatic'
16973 ;;
16974 esac
16975 ;;
16976 tandem*)
16977 case $cc_basename in
16978 NCC*)
16979 # NonStop-UX NCC 3.20
16980 lt_prog_compiler_pic_CXX='-KPIC'
16981 ;;
16982 *)
16983 ;;
16984 esac
16985 ;;
16986 vxworks*)
16987 ;;
16988 *)
16989 lt_prog_compiler_can_build_shared_CXX=no
16990 ;;
16991 esac
16992 fi
16993
16994 case $host_os in
16995 # For platforms that do not support PIC, -DPIC is meaningless:
16996 *djgpp*)
16997 lt_prog_compiler_pic_CXX=
16998 ;;
16999 *)
17000 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17001 ;;
17002 esac
17003
17004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17005 printf %s "checking for $compiler option to produce PIC... " >&6; }
17006 if test ${lt_cv_prog_compiler_pic_CXX+y}
17007 then :
17008 printf %s "(cached) " >&6
17009 else case e in #(
17010 e) lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX ;;
17011 esac
17012 fi
17013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
17014 printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
17015 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
17016
17017 #
17018 # Check to make sure the PIC flag actually works.
17019 #
17020 if test -n "$lt_prog_compiler_pic_CXX"; then
17021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
17022 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
17023 if test ${lt_cv_prog_compiler_pic_works_CXX+y}
17024 then :
17025 printf %s "(cached) " >&6
17026 else case e in #(
17027 e) lt_cv_prog_compiler_pic_works_CXX=no
17028 ac_outfile=conftest.$ac_objext
17029 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17030 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
17031 # Insert the option either (1) after the last *FLAGS variable, or
17032 # (2) before a word containing "conftest.", or (3) at the end.
17033 # Note that $ac_compile itself does not contain backslashes and begins
17034 # with a dollar sign (not a hyphen), so the echo should work correctly.
17035 # The option is referenced via a variable to avoid confusing sed.
17036 lt_compile=`echo "$ac_compile" | $SED \
17037 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17038 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17039 -e 's:$: $lt_compiler_flag:'`
17040 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17041 (eval "$lt_compile" 2>conftest.err)
17042 ac_status=$?
17043 cat conftest.err >&5
17044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17045 if (exit $ac_status) && test -s "$ac_outfile"; then
17046 # The compiler can only warn and ignore the option if not recognized
17047 # So say no if there are warnings other than the usual output.
17048 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17049 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17050 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17051 lt_cv_prog_compiler_pic_works_CXX=yes
17052 fi
17053 fi
17054 $RM conftest*
17055 ;;
17056 esac
17057 fi
17058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
17059 printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
17060
17061 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
17062 case $lt_prog_compiler_pic_CXX in
17063 "" | " "*) ;;
17064 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17065 esac
17066 else
17067 lt_prog_compiler_pic_CXX=
17068 lt_prog_compiler_can_build_shared_CXX=no
17069 fi
17070
17071 fi
17072
17073
17074
17075
17076
17077 #
17078 # Check to make sure the static flag actually works.
17079 #
17080 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
17081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17082 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17083 if test ${lt_cv_prog_compiler_static_works_CXX+y}
17084 then :
17085 printf %s "(cached) " >&6
17086 else case e in #(
17087 e) lt_cv_prog_compiler_static_works_CXX=no
17088 save_LDFLAGS=$LDFLAGS
17089 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17090 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17091 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17092 # The linker can only warn and ignore the option if not recognized
17093 # So say no if there are warnings
17094 if test -s conftest.err; then
17095 # Append any errors to the config.log.
17096 cat conftest.err 1>&5
17097 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17098 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17099 if diff conftest.exp conftest.er2 >/dev/null; then
17100 lt_cv_prog_compiler_static_works_CXX=yes
17101 fi
17102 else
17103 lt_cv_prog_compiler_static_works_CXX=yes
17104 fi
17105 fi
17106 $RM -r conftest*
17107 LDFLAGS=$save_LDFLAGS
17108 ;;
17109 esac
17110 fi
17111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
17112 printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
17113
17114 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
17115 :
17116 else
17117 lt_prog_compiler_static_CXX=
17118 fi
17119
17120
17121
17122
17123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17124 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17125 if test ${lt_cv_prog_compiler_c_o_CXX+y}
17126 then :
17127 printf %s "(cached) " >&6
17128 else case e in #(
17129 e) lt_cv_prog_compiler_c_o_CXX=no
17130 $RM -r conftest 2>/dev/null
17131 mkdir conftest
17132 cd conftest
17133 mkdir out
17134 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17135
17136 lt_compiler_flag="-o out/conftest2.$ac_objext"
17137 # Insert the option either (1) after the last *FLAGS variable, or
17138 # (2) before a word containing "conftest.", or (3) at the end.
17139 # Note that $ac_compile itself does not contain backslashes and begins
17140 # with a dollar sign (not a hyphen), so the echo should work correctly.
17141 lt_compile=`echo "$ac_compile" | $SED \
17142 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17143 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17144 -e 's:$: $lt_compiler_flag:'`
17145 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17146 (eval "$lt_compile" 2>out/conftest.err)
17147 ac_status=$?
17148 cat out/conftest.err >&5
17149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17150 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17151 then
17152 # The compiler can only warn and ignore the option if not recognized
17153 # So say no if there are warnings
17154 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17155 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17156 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17157 lt_cv_prog_compiler_c_o_CXX=yes
17158 fi
17159 fi
17160 chmod u+w . 2>&5
17161 $RM conftest*
17162 # SGI C++ compiler will create directory out/ii_files/ for
17163 # template instantiation
17164 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17165 $RM out/* && rmdir out
17166 cd ..
17167 $RM -r conftest
17168 $RM conftest*
17169 ;;
17170 esac
17171 fi
17172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17173 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17174
17175
17176
17177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17178 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17179 if test ${lt_cv_prog_compiler_c_o_CXX+y}
17180 then :
17181 printf %s "(cached) " >&6
17182 else case e in #(
17183 e) lt_cv_prog_compiler_c_o_CXX=no
17184 $RM -r conftest 2>/dev/null
17185 mkdir conftest
17186 cd conftest
17187 mkdir out
17188 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17189
17190 lt_compiler_flag="-o out/conftest2.$ac_objext"
17191 # Insert the option either (1) after the last *FLAGS variable, or
17192 # (2) before a word containing "conftest.", or (3) at the end.
17193 # Note that $ac_compile itself does not contain backslashes and begins
17194 # with a dollar sign (not a hyphen), so the echo should work correctly.
17195 lt_compile=`echo "$ac_compile" | $SED \
17196 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17197 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17198 -e 's:$: $lt_compiler_flag:'`
17199 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17200 (eval "$lt_compile" 2>out/conftest.err)
17201 ac_status=$?
17202 cat out/conftest.err >&5
17203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17204 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17205 then
17206 # The compiler can only warn and ignore the option if not recognized
17207 # So say no if there are warnings
17208 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17209 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17210 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17211 lt_cv_prog_compiler_c_o_CXX=yes
17212 fi
17213 fi
17214 chmod u+w . 2>&5
17215 $RM conftest*
17216 # SGI C++ compiler will create directory out/ii_files/ for
17217 # template instantiation
17218 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17219 $RM out/* && rmdir out
17220 cd ..
17221 $RM -r conftest
17222 $RM conftest*
17223 ;;
17224 esac
17225 fi
17226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17227 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17228
17229
17230
17231
17232 hard_links=nottested
17233 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
17234 # do not overwrite the value of need_locks provided by the user
17235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17236 printf %s "checking if we can lock with hard links... " >&6; }
17237 hard_links=yes
17238 $RM conftest*
17239 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17240 touch conftest.a
17241 ln conftest.a conftest.b 2>&5 || hard_links=no
17242 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17244 printf "%s\n" "$hard_links" >&6; }
17245 if test no = "$hard_links"; then
17246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
17247 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
17248 need_locks=warn
17249 fi
17250 else
17251 need_locks=no
17252 fi
17253
17254
17255
17256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17257 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17258
17259 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17260 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17261 case $host_os in
17262 aix[4-9]*)
17263 # If we're using GNU nm, then we don't want the "-C" option.
17264 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
17265 # Without the "-l" option, or with the "-B" option, AIX nm treats
17266 # weak defined symbols like other global defined symbols, whereas
17267 # GNU nm marks them as "W".
17268 # While the 'weak' keyword is ignored in the Export File, we need
17269 # it in the Import File for the 'aix-soname' feature, so we have
17270 # to replace the "-B" option with "-P" for AIX nm.
17271 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17272 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'
17273 else
17274 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'
17275 fi
17276 ;;
17277 pw32*)
17278 export_symbols_cmds_CXX=$ltdll_cmds
17279 ;;
17280 cygwin* | mingw* | windows* | cegcc*)
17281 case $cc_basename in
17282 cl* | icl*)
17283 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
17284 ;;
17285 *)
17286 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'
17287 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
17288 ;;
17289 esac
17290 ;;
17291 *)
17292 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17293 ;;
17294 esac
17295
17296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17297 printf "%s\n" "$ld_shlibs_CXX" >&6; }
17298 test no = "$ld_shlibs_CXX" && can_build_shared=no
17299
17300 with_gnu_ld_CXX=$with_gnu_ld
17301
17302
17303
17304
17305
17306
17307 #
17308 # Do we need to explicitly link libc?
17309 #
17310 case "x$archive_cmds_need_lc_CXX" in
17311 x|xyes)
17312 # Assume -lc should be added
17313 archive_cmds_need_lc_CXX=yes
17314
17315 if test yes,yes = "$GCC,$enable_shared"; then
17316 case $archive_cmds_CXX in
17317 *'~'*)
17318 # FIXME: we may have to deal with multi-command sequences.
17319 ;;
17320 '$CC '*)
17321 # Test whether the compiler implicitly links with -lc since on some
17322 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17323 # to ld, don't add -lc before -lgcc.
17324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17325 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
17326 if test ${lt_cv_archive_cmds_need_lc_CXX+y}
17327 then :
17328 printf %s "(cached) " >&6
17329 else case e in #(
17330 e) $RM conftest*
17331 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17332
17333 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17334 (eval $ac_compile) 2>&5
17335 ac_status=$?
17336 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17337 test $ac_status = 0; } 2>conftest.err; then
17338 soname=conftest
17339 lib=conftest
17340 libobjs=conftest.$ac_objext
17341 deplibs=
17342 wl=$lt_prog_compiler_wl_CXX
17343 pic_flag=$lt_prog_compiler_pic_CXX
17344 compiler_flags=-v
17345 linker_flags=-v
17346 verstring=
17347 output_objdir=.
17348 libname=conftest
17349 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17350 allow_undefined_flag_CXX=
17351 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17352 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17353 ac_status=$?
17354 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17355 test $ac_status = 0; }
17356 then
17357 lt_cv_archive_cmds_need_lc_CXX=no
17358 else
17359 lt_cv_archive_cmds_need_lc_CXX=yes
17360 fi
17361 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17362 else
17363 cat conftest.err 1>&5
17364 fi
17365 $RM conftest*
17366 ;;
17367 esac
17368 fi
17369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
17370 printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
17371 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
17372 ;;
17373 esac
17374 fi
17375 ;;
17376 esac
17377
17378
17379
17380
17381
17382
17383
17384
17385
17386
17387
17388
17389
17390
17391
17392
17393
17394
17395
17396
17397
17398
17399
17400
17401
17402
17403
17404
17405
17406
17407
17408
17409
17410
17411
17412
17413
17414
17415
17416
17417
17418
17419
17420
17421
17422
17423
17424
17425
17426
17427
17428
17429
17430
17431
17432
17433
17434
17435
17436
17437
17438
17439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17440 printf %s "checking dynamic linker characteristics... " >&6; }
17441
17442 library_names_spec=
17443 libname_spec='lib$name'
17444 soname_spec=
17445 shrext_cmds=.so
17446 postinstall_cmds=
17447 postuninstall_cmds=
17448 finish_cmds=
17449 finish_eval=
17450 shlibpath_var=
17451 shlibpath_overrides_runpath=unknown
17452 version_type=none
17453 dynamic_linker="$host_os ld.so"
17454 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17455 need_lib_prefix=unknown
17456 hardcode_into_libs=no
17457
17458 # when you set need_version to no, make sure it does not cause -set_version
17459 # flags to be left without arguments
17460 need_version=unknown
17461
17462
17463
17464 case $host_os in
17465 aix3*)
17466 version_type=linux # correct to gnu/linux during the next big refactor
17467 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
17468 shlibpath_var=LIBPATH
17469
17470 # AIX 3 has no versioning support, so we append a major version to the name.
17471 soname_spec='$libname$release$shared_ext$major'
17472 ;;
17473
17474 aix[4-9]*)
17475 version_type=linux # correct to gnu/linux during the next big refactor
17476 need_lib_prefix=no
17477 need_version=no
17478 hardcode_into_libs=yes
17479 if test ia64 = "$host_cpu"; then
17480 # AIX 5 supports IA64
17481 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
17482 shlibpath_var=LD_LIBRARY_PATH
17483 else
17484 # With GCC up to 2.95.x, collect2 would create an import file
17485 # for dependence libraries. The import file would start with
17486 # the line '#! .'. This would cause the generated library to
17487 # depend on '.', always an invalid library. This was fixed in
17488 # development snapshots of GCC prior to 3.0.
17489 case $host_os in
17490 aix4 | aix4.[01] | aix4.[01].*)
17491 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17492 echo ' yes '
17493 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
17494 :
17495 else
17496 can_build_shared=no
17497 fi
17498 ;;
17499 esac
17500 # Using Import Files as archive members, it is possible to support
17501 # filename-based versioning of shared library archives on AIX. While
17502 # this would work for both with and without runtime linking, it will
17503 # prevent static linking of such archives. So we do filename-based
17504 # shared library versioning with .so extension only, which is used
17505 # when both runtime linking and shared linking is enabled.
17506 # Unfortunately, runtime linking may impact performance, so we do
17507 # not want this to be the default eventually. Also, we use the
17508 # versioned .so libs for executables only if there is the -brtl
17509 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
17510 # To allow for filename-based versioning support, we need to create
17511 # libNAME.so.V as an archive file, containing:
17512 # *) an Import File, referring to the versioned filename of the
17513 # archive as well as the shared archive member, telling the
17514 # bitwidth (32 or 64) of that shared object, and providing the
17515 # list of exported symbols of that shared object, eventually
17516 # decorated with the 'weak' keyword
17517 # *) the shared object with the F_LOADONLY flag set, to really avoid
17518 # it being seen by the linker.
17519 # At run time we better use the real file rather than another symlink,
17520 # but for link time we create the symlink libNAME.so -> libNAME.so.V
17521
17522 case $with_aix_soname,$aix_use_runtimelinking in
17523 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
17524 # soname into executable. Probably we can add versioning support to
17525 # collect2, so additional links can be useful in future.
17526 aix,yes) # traditional libtool
17527 dynamic_linker='AIX unversionable lib.so'
17528 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17529 # instead of lib<name>.a to let people know that these are not
17530 # typical AIX shared libraries.
17531 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17532 ;;
17533 aix,no) # traditional AIX only
17534 dynamic_linker='AIX lib.a(lib.so.V)'
17535 # We preserve .a as extension for shared libraries through AIX4.2
17536 # and later when we are not doing run time linking.
17537 library_names_spec='$libname$release.a $libname.a'
17538 soname_spec='$libname$release$shared_ext$major'
17539 ;;
17540 svr4,*) # full svr4 only
17541 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
17542 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17543 # We do not specify a path in Import Files, so LIBPATH fires.
17544 shlibpath_overrides_runpath=yes
17545 ;;
17546 *,yes) # both, prefer svr4
17547 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
17548 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17549 # unpreferred sharedlib libNAME.a needs extra handling
17550 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"'
17551 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"'
17552 # We do not specify a path in Import Files, so LIBPATH fires.
17553 shlibpath_overrides_runpath=yes
17554 ;;
17555 *,no) # both, prefer aix
17556 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
17557 library_names_spec='$libname$release.a $libname.a'
17558 soname_spec='$libname$release$shared_ext$major'
17559 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
17560 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)'
17561 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"'
17562 ;;
17563 esac
17564 shlibpath_var=LIBPATH
17565 fi
17566 ;;
17567
17568 amigaos*)
17569 case $host_cpu in
17570 powerpc)
17571 # Since July 2007 AmigaOS4 officially supports .so libraries.
17572 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17573 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17574 ;;
17575 m68k)
17576 library_names_spec='$libname.ixlibrary $libname.a'
17577 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17578 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'
17579 ;;
17580 esac
17581 ;;
17582
17583 beos*)
17584 library_names_spec='$libname$shared_ext'
17585 dynamic_linker="$host_os ld.so"
17586 shlibpath_var=LIBRARY_PATH
17587 ;;
17588
17589 bsdi[45]*)
17590 version_type=linux # correct to gnu/linux during the next big refactor
17591 need_version=no
17592 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17593 soname_spec='$libname$release$shared_ext$major'
17594 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17595 shlibpath_var=LD_LIBRARY_PATH
17596 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17597 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17598 # the default ld.so.conf also contains /usr/contrib/lib and
17599 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17600 # libtool to hard-code these into programs
17601 ;;
17602
17603 cygwin* | mingw* | windows* | pw32* | cegcc*)
17604 version_type=windows
17605 shrext_cmds=.dll
17606 need_version=no
17607 need_lib_prefix=no
17608
17609 case $GCC,$cc_basename in
17610 yes,*)
17611 # gcc
17612 library_names_spec='$libname.dll.a'
17613 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17614 # If user builds GCC with multilib enabled,
17615 # it should just install on $(libdir)
17616 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
17617 if test xyes = x"$multilib"; then
17618 postinstall_cmds='base_file=`basename \$file`~
17619 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17620 dldir=$destdir/`dirname \$dlpath`~
17621 $install_prog $dir/$dlname $destdir/$dlname~
17622 chmod a+x $destdir/$dlname~
17623 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17624 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
17625 fi'
17626 else
17627 postinstall_cmds='base_file=`basename \$file`~
17628 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17629 dldir=$destdir/`dirname \$dlpath`~
17630 test -d \$dldir || mkdir -p \$dldir~
17631 $install_prog $dir/$dlname \$dldir/$dlname~
17632 chmod a+x \$dldir/$dlname~
17633 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17634 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17635 fi'
17636 fi
17637 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17638 dlpath=$dir/\$dldll~
17639 $RM \$dlpath'
17640 shlibpath_overrides_runpath=yes
17641
17642 case $host_os in
17643 cygwin*)
17644 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17645 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17646
17647 ;;
17648 mingw* | windows* | cegcc*)
17649 # MinGW DLLs use traditional 'lib' prefix
17650 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17651 ;;
17652 pw32*)
17653 # pw32 DLLs use 'pw' prefix rather than 'lib'
17654 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17655 ;;
17656 esac
17657 dynamic_linker='Win32 ld.exe'
17658 ;;
17659
17660 *,cl* | *,icl*)
17661 # Native MSVC or ICC
17662 libname_spec='$name'
17663 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17664 library_names_spec='$libname.dll.lib'
17665
17666 case $build_os in
17667 mingw* | windows*)
17668 sys_lib_search_path_spec=
17669 lt_save_ifs=$IFS
17670 IFS=';'
17671 for lt_path in $LIB
17672 do
17673 IFS=$lt_save_ifs
17674 # Let DOS variable expansion print the short 8.3 style file name.
17675 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17676 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17677 done
17678 IFS=$lt_save_ifs
17679 # Convert to MSYS style.
17680 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17681 ;;
17682 cygwin*)
17683 # Convert to unix form, then to dos form, then back to unix form
17684 # but this time dos style (no spaces!) so that the unix form looks
17685 # like /cygdrive/c/PROGRA~1:/cygdr...
17686 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17687 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17688 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17689 ;;
17690 *)
17691 sys_lib_search_path_spec=$LIB
17692 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17693 # It is most probably a Windows format PATH.
17694 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17695 else
17696 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17697 fi
17698 # FIXME: find the short name or the path components, as spaces are
17699 # common. (e.g. "Program Files" -> "PROGRA~1")
17700 ;;
17701 esac
17702
17703 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17704 postinstall_cmds='base_file=`basename \$file`~
17705 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17706 dldir=$destdir/`dirname \$dlpath`~
17707 test -d \$dldir || mkdir -p \$dldir~
17708 $install_prog $dir/$dlname \$dldir/$dlname'
17709 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17710 dlpath=$dir/\$dldll~
17711 $RM \$dlpath'
17712 shlibpath_overrides_runpath=yes
17713 dynamic_linker='Win32 link.exe'
17714 ;;
17715
17716 *)
17717 # Assume MSVC and ICC wrapper
17718 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
17719 dynamic_linker='Win32 ld.exe'
17720 ;;
17721 esac
17722 # FIXME: first we should search . and the directory the executable is in
17723 shlibpath_var=PATH
17724 ;;
17725
17726 darwin* | rhapsody*)
17727 dynamic_linker="$host_os dyld"
17728 version_type=darwin
17729 need_lib_prefix=no
17730 need_version=no
17731 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
17732 soname_spec='$libname$release$major$shared_ext'
17733 shlibpath_overrides_runpath=yes
17734 shlibpath_var=DYLD_LIBRARY_PATH
17735 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17736
17737 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17738 ;;
17739
17740 dgux*)
17741 version_type=linux # correct to gnu/linux during the next big refactor
17742 need_lib_prefix=no
17743 need_version=no
17744 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17745 soname_spec='$libname$release$shared_ext$major'
17746 shlibpath_var=LD_LIBRARY_PATH
17747 ;;
17748
17749 freebsd* | dragonfly* | midnightbsd*)
17750 # DragonFly does not have aout. When/if they implement a new
17751 # versioning mechanism, adjust this.
17752 if test -x /usr/bin/objformat; then
17753 objformat=`/usr/bin/objformat`
17754 else
17755 case $host_os in
17756 freebsd[23].*) objformat=aout ;;
17757 *) objformat=elf ;;
17758 esac
17759 fi
17760 version_type=freebsd-$objformat
17761 case $version_type in
17762 freebsd-elf*)
17763 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17764 soname_spec='$libname$release$shared_ext$major'
17765 need_version=no
17766 need_lib_prefix=no
17767 ;;
17768 freebsd-*)
17769 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17770 need_version=yes
17771 ;;
17772 esac
17773 case $host_cpu in
17774 powerpc64)
17775 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
17776 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
17777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17778 /* end confdefs.h. */
17779 int test_pointer_size[sizeof (void *) - 5];
17780
17781 _ACEOF
17782 if ac_fn_cxx_try_compile "$LINENO"
17783 then :
17784 shlibpath_var=LD_LIBRARY_PATH
17785 else case e in #(
17786 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
17787 esac
17788 fi
17789 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17790 ;;
17791 *)
17792 shlibpath_var=LD_LIBRARY_PATH
17793 ;;
17794 esac
17795 case $host_os in
17796 freebsd2.*)
17797 shlibpath_overrides_runpath=yes
17798 ;;
17799 freebsd3.[01]* | freebsdelf3.[01]*)
17800 shlibpath_overrides_runpath=yes
17801 hardcode_into_libs=yes
17802 ;;
17803 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17804 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17805 shlibpath_overrides_runpath=no
17806 hardcode_into_libs=yes
17807 ;;
17808 *) # from 4.6 on, and DragonFly
17809 shlibpath_overrides_runpath=yes
17810 hardcode_into_libs=yes
17811 ;;
17812 esac
17813 ;;
17814
17815 haiku*)
17816 version_type=linux # correct to gnu/linux during the next big refactor
17817 need_lib_prefix=no
17818 need_version=no
17819 dynamic_linker="$host_os runtime_loader"
17820 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17821 soname_spec='$libname$release$shared_ext$major'
17822 shlibpath_var=LIBRARY_PATH
17823 shlibpath_overrides_runpath=no
17824 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
17825 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
17826 hardcode_into_libs=no
17827 ;;
17828
17829 hpux9* | hpux10* | hpux11*)
17830 # Give a soname corresponding to the major version so that dld.sl refuses to
17831 # link against other versions.
17832 version_type=sunos
17833 need_lib_prefix=no
17834 need_version=no
17835 case $host_cpu in
17836 ia64*)
17837 shrext_cmds='.so'
17838 hardcode_into_libs=yes
17839 dynamic_linker="$host_os dld.so"
17840 shlibpath_var=LD_LIBRARY_PATH
17841 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17842 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17843 soname_spec='$libname$release$shared_ext$major'
17844 if test 32 = "$HPUX_IA64_MODE"; then
17845 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17846 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
17847 else
17848 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17849 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
17850 fi
17851 ;;
17852 hppa*64*)
17853 shrext_cmds='.sl'
17854 hardcode_into_libs=yes
17855 dynamic_linker="$host_os dld.sl"
17856 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17857 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17858 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17859 soname_spec='$libname$release$shared_ext$major'
17860 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17861 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17862 ;;
17863 *)
17864 shrext_cmds='.sl'
17865 dynamic_linker="$host_os dld.sl"
17866 shlibpath_var=SHLIB_PATH
17867 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17868 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17869 soname_spec='$libname$release$shared_ext$major'
17870 ;;
17871 esac
17872 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17873 postinstall_cmds='chmod 555 $lib'
17874 # or fails outright, so override atomically:
17875 install_override_mode=555
17876 ;;
17877
17878 interix[3-9]*)
17879 version_type=linux # correct to gnu/linux during the next big refactor
17880 need_lib_prefix=no
17881 need_version=no
17882 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17883 soname_spec='$libname$release$shared_ext$major'
17884 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17885 shlibpath_var=LD_LIBRARY_PATH
17886 shlibpath_overrides_runpath=no
17887 hardcode_into_libs=yes
17888 ;;
17889
17890 irix5* | irix6* | nonstopux*)
17891 case $host_os in
17892 nonstopux*) version_type=nonstopux ;;
17893 *)
17894 if test yes = "$lt_cv_prog_gnu_ld"; then
17895 version_type=linux # correct to gnu/linux during the next big refactor
17896 else
17897 version_type=irix
17898 fi ;;
17899 esac
17900 need_lib_prefix=no
17901 need_version=no
17902 soname_spec='$libname$release$shared_ext$major'
17903 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
17904 case $host_os in
17905 irix5* | nonstopux*)
17906 libsuff= shlibsuff=
17907 ;;
17908 *)
17909 case $LD in # libtool.m4 will add one of these switches to LD
17910 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17911 libsuff= shlibsuff= libmagic=32-bit;;
17912 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17913 libsuff=32 shlibsuff=N32 libmagic=N32;;
17914 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17915 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17916 *) libsuff= shlibsuff= libmagic=never-match;;
17917 esac
17918 ;;
17919 esac
17920 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17921 shlibpath_overrides_runpath=no
17922 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
17923 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
17924 hardcode_into_libs=yes
17925 ;;
17926
17927 # No shared lib support for Linux oldld, aout, or coff.
17928 linux*oldld* | linux*aout* | linux*coff*)
17929 dynamic_linker=no
17930 ;;
17931
17932 linux*android*)
17933 version_type=none # Android doesn't support versioned libraries.
17934 need_lib_prefix=no
17935 need_version=no
17936 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
17937 soname_spec='$libname$release$shared_ext'
17938 finish_cmds=
17939 shlibpath_var=LD_LIBRARY_PATH
17940 shlibpath_overrides_runpath=yes
17941
17942 # This implies no fast_install, which is unacceptable.
17943 # Some rework will be needed to allow for fast_install
17944 # before this can be enabled.
17945 hardcode_into_libs=yes
17946
17947 dynamic_linker='Android linker'
17948 # -rpath works at least for libraries that are not overridden by
17949 # libraries installed in system locations.
17950 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
17951 ;;
17952
17953 # This must be glibc/ELF.
17954 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17955 version_type=linux # correct to gnu/linux during the next big refactor
17956 need_lib_prefix=no
17957 need_version=no
17958 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17959 soname_spec='$libname$release$shared_ext$major'
17960 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17961 shlibpath_var=LD_LIBRARY_PATH
17962 shlibpath_overrides_runpath=no
17963
17964 # Some binutils ld are patched to set DT_RUNPATH
17965 if test ${lt_cv_shlibpath_overrides_runpath+y}
17966 then :
17967 printf %s "(cached) " >&6
17968 else case e in #(
17969 e) lt_cv_shlibpath_overrides_runpath=no
17970 save_LDFLAGS=$LDFLAGS
17971 save_libdir=$libdir
17972 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17973 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17975 /* end confdefs.h. */
17976
17977 int
17978 main (void)
17979 {
17980
17981 ;
17982 return 0;
17983 }
17984 _ACEOF
17985 if ac_fn_cxx_try_link "$LINENO"
17986 then :
17987 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
17988 then :
17989 lt_cv_shlibpath_overrides_runpath=yes
17990 fi
17991 fi
17992 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17993 conftest$ac_exeext conftest.$ac_ext
17994 LDFLAGS=$save_LDFLAGS
17995 libdir=$save_libdir
17996 ;;
17997 esac
17998 fi
17999
18000 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18001
18002 # This implies no fast_install, which is unacceptable.
18003 # Some rework will be needed to allow for fast_install
18004 # before this can be enabled.
18005 hardcode_into_libs=yes
18006
18007 # Ideally, we could use ldconfig to report *all* directories which are
18008 # searched for libraries, however this is still not possible. Aside from not
18009 # being certain /sbin/ldconfig is available, command
18010 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
18011 # even though it is searched at run-time. Try to do the best guess by
18012 # appending ld.so.conf contents (and includes) to the search path.
18013 if test -f /etc/ld.so.conf; then
18014 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' ' '`
18015 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18016 fi
18017
18018 # We used to test for /lib/ld.so.1 and disable shared libraries on
18019 # powerpc, because MkLinux only supported shared libraries with the
18020 # GNU dynamic linker. Since this was broken with cross compilers,
18021 # most powerpc-linux boxes support dynamic linking these days and
18022 # people can always --disable-shared, the test was removed, and we
18023 # assume the GNU/Linux dynamic linker is in use.
18024 dynamic_linker='GNU/Linux ld.so'
18025 ;;
18026
18027 netbsdelf*-gnu)
18028 version_type=linux
18029 need_lib_prefix=no
18030 need_version=no
18031 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18032 soname_spec='$libname$release$shared_ext$major'
18033 shlibpath_var=LD_LIBRARY_PATH
18034 shlibpath_overrides_runpath=no
18035 hardcode_into_libs=yes
18036 dynamic_linker='NetBSD ld.elf_so'
18037 ;;
18038
18039 netbsd*)
18040 version_type=sunos
18041 need_lib_prefix=no
18042 need_version=no
18043 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18044 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18045 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18046 dynamic_linker='NetBSD (a.out) ld.so'
18047 else
18048 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18049 soname_spec='$libname$release$shared_ext$major'
18050 dynamic_linker='NetBSD ld.elf_so'
18051 fi
18052 shlibpath_var=LD_LIBRARY_PATH
18053 shlibpath_overrides_runpath=yes
18054 hardcode_into_libs=yes
18055 ;;
18056
18057 *-mlibc)
18058 version_type=linux # correct to gnu/linux during the next big refactor
18059 need_lib_prefix=no
18060 need_version=no
18061 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18062 soname_spec='$libname$release$shared_ext$major'
18063 dynamic_linker='mlibc ld.so'
18064 shlibpath_var=LD_LIBRARY_PATH
18065 shlibpath_overrides_runpath=no
18066 hardcode_into_libs=yes
18067 ;;
18068
18069 newsos6)
18070 version_type=linux # correct to gnu/linux during the next big refactor
18071 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18072 shlibpath_var=LD_LIBRARY_PATH
18073 shlibpath_overrides_runpath=yes
18074 ;;
18075
18076 *nto* | *qnx*)
18077 version_type=qnx
18078 need_lib_prefix=no
18079 need_version=no
18080 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18081 soname_spec='$libname$release$shared_ext$major'
18082 shlibpath_var=LD_LIBRARY_PATH
18083 shlibpath_overrides_runpath=no
18084 hardcode_into_libs=yes
18085 dynamic_linker='ldqnx.so'
18086 ;;
18087
18088 openbsd*)
18089 version_type=sunos
18090 sys_lib_dlsearch_path_spec=/usr/lib
18091 need_lib_prefix=no
18092 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
18093 need_version=no
18094 else
18095 need_version=yes
18096 fi
18097 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18098 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18099 shlibpath_var=LD_LIBRARY_PATH
18100 shlibpath_overrides_runpath=yes
18101 ;;
18102
18103 os2*)
18104 libname_spec='$name'
18105 version_type=windows
18106 shrext_cmds=.dll
18107 need_version=no
18108 need_lib_prefix=no
18109 # OS/2 can only load a DLL with a base name of 8 characters or less.
18110 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
18111 v=$($ECHO $release$versuffix | tr -d .-);
18112 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
18113 $ECHO $n$v`$shared_ext'
18114 library_names_spec='${libname}_dll.$libext'
18115 dynamic_linker='OS/2 ld.exe'
18116 shlibpath_var=BEGINLIBPATH
18117 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18118 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18119 postinstall_cmds='base_file=`basename \$file`~
18120 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
18121 dldir=$destdir/`dirname \$dlpath`~
18122 test -d \$dldir || mkdir -p \$dldir~
18123 $install_prog $dir/$dlname \$dldir/$dlname~
18124 chmod a+x \$dldir/$dlname~
18125 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18126 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18127 fi'
18128 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
18129 dlpath=$dir/\$dldll~
18130 $RM \$dlpath'
18131 ;;
18132
18133 osf3* | osf4* | osf5*)
18134 version_type=osf
18135 need_lib_prefix=no
18136 need_version=no
18137 soname_spec='$libname$release$shared_ext$major'
18138 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18139 shlibpath_var=LD_LIBRARY_PATH
18140 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18141 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18142 ;;
18143
18144 rdos*)
18145 dynamic_linker=no
18146 ;;
18147
18148 serenity*)
18149 version_type=linux # correct to gnu/linux during the next big refactor
18150 need_lib_prefix=no
18151 need_version=no
18152 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18153 soname_spec='$libname$release$shared_ext$major'
18154 shlibpath_var=LD_LIBRARY_PATH
18155 shlibpath_overrides_runpath=no
18156 dynamic_linker='SerenityOS LibELF'
18157 ;;
18158
18159 solaris*)
18160 version_type=linux # correct to gnu/linux during the next big refactor
18161 need_lib_prefix=no
18162 need_version=no
18163 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18164 soname_spec='$libname$release$shared_ext$major'
18165 shlibpath_var=LD_LIBRARY_PATH
18166 shlibpath_overrides_runpath=yes
18167 hardcode_into_libs=yes
18168 # ldd complains unless libraries are executable
18169 postinstall_cmds='chmod +x $lib'
18170 ;;
18171
18172 sunos4*)
18173 version_type=sunos
18174 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18175 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18176 shlibpath_var=LD_LIBRARY_PATH
18177 shlibpath_overrides_runpath=yes
18178 if test yes = "$with_gnu_ld"; then
18179 need_lib_prefix=no
18180 fi
18181 need_version=yes
18182 ;;
18183
18184 sysv4 | sysv4.3*)
18185 version_type=linux # correct to gnu/linux during the next big refactor
18186 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18187 soname_spec='$libname$release$shared_ext$major'
18188 shlibpath_var=LD_LIBRARY_PATH
18189 case $host_vendor in
18190 sni)
18191 shlibpath_overrides_runpath=no
18192 need_lib_prefix=no
18193 runpath_var=LD_RUN_PATH
18194 ;;
18195 siemens)
18196 need_lib_prefix=no
18197 ;;
18198 motorola)
18199 need_lib_prefix=no
18200 need_version=no
18201 shlibpath_overrides_runpath=no
18202 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18203 ;;
18204 esac
18205 ;;
18206
18207 sysv4*MP*)
18208 if test -d /usr/nec; then
18209 version_type=linux # correct to gnu/linux during the next big refactor
18210 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
18211 soname_spec='$libname$shared_ext.$major'
18212 shlibpath_var=LD_LIBRARY_PATH
18213 fi
18214 ;;
18215
18216 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18217 version_type=sco
18218 need_lib_prefix=no
18219 need_version=no
18220 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
18221 soname_spec='$libname$release$shared_ext$major'
18222 shlibpath_var=LD_LIBRARY_PATH
18223 shlibpath_overrides_runpath=yes
18224 hardcode_into_libs=yes
18225 if test yes = "$with_gnu_ld"; then
18226 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18227 else
18228 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18229 case $host_os in
18230 sco3.2v5*)
18231 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18232 ;;
18233 esac
18234 fi
18235 sys_lib_dlsearch_path_spec='/usr/lib'
18236 ;;
18237
18238 tpf*)
18239 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18240 version_type=linux # correct to gnu/linux during the next big refactor
18241 need_lib_prefix=no
18242 need_version=no
18243 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18244 shlibpath_var=LD_LIBRARY_PATH
18245 shlibpath_overrides_runpath=no
18246 hardcode_into_libs=yes
18247 ;;
18248
18249 uts4*)
18250 version_type=linux # correct to gnu/linux during the next big refactor
18251 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18252 soname_spec='$libname$release$shared_ext$major'
18253 shlibpath_var=LD_LIBRARY_PATH
18254 ;;
18255
18256 emscripten*)
18257 version_type=none
18258 need_lib_prefix=no
18259 need_version=no
18260 library_names_spec='$libname$release$shared_ext'
18261 soname_spec='$libname$release$shared_ext'
18262 finish_cmds=
18263 dynamic_linker="Emscripten linker"
18264 lt_prog_compiler_wl_CXX=
18265 lt_prog_compiler_pic_CXX=
18266 lt_prog_compiler_static_CXX=
18267
18268
18269 # C++ specific cases for pic, static, wl, etc.
18270 if test yes = "$GXX"; then
18271 lt_prog_compiler_wl_CXX='-Wl,'
18272 lt_prog_compiler_static_CXX='-static'
18273
18274 case $host_os in
18275 aix*)
18276 # All AIX code is PIC.
18277 if test ia64 = "$host_cpu"; then
18278 # AIX 5 now supports IA64 processor
18279 lt_prog_compiler_static_CXX='-Bstatic'
18280 fi
18281 lt_prog_compiler_pic_CXX='-fPIC'
18282 ;;
18283
18284 amigaos*)
18285 case $host_cpu in
18286 powerpc)
18287 # see comment about AmigaOS4 .so support
18288 lt_prog_compiler_pic_CXX='-fPIC'
18289 ;;
18290 m68k)
18291 # FIXME: we need at least 68020 code to build shared libraries, but
18292 # adding the '-m68020' flag to GCC prevents building anything better,
18293 # like '-m68040'.
18294 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
18295 ;;
18296 esac
18297 ;;
18298
18299 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18300 # PIC is the default for these OSes.
18301 ;;
18302 mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
18303 # This hack is so that the source file can tell whether it is being
18304 # built for inclusion in a dll (and should export symbols for example).
18305 # Although the cygwin gcc ignores -fPIC, still need this for old-style
18306 # (--disable-auto-import) libraries
18307 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18308 case $host_os in
18309 os2*)
18310 lt_prog_compiler_static_CXX='$wl-static'
18311 ;;
18312 esac
18313 ;;
18314 darwin* | rhapsody*)
18315 # PIC is the default on this platform
18316 # Common symbols not allowed in MH_DYLIB files
18317 lt_prog_compiler_pic_CXX='-fno-common'
18318 ;;
18319 *djgpp*)
18320 # DJGPP does not support shared libraries at all
18321 lt_prog_compiler_pic_CXX=
18322 ;;
18323 haiku*)
18324 # PIC is the default for Haiku.
18325 # The "-static" flag exists, but is broken.
18326 lt_prog_compiler_static_CXX=
18327 ;;
18328 interix[3-9]*)
18329 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18330 # Instead, we relocate shared libraries at runtime.
18331 ;;
18332 sysv4*MP*)
18333 if test -d /usr/nec; then
18334 lt_prog_compiler_pic_CXX=-Kconform_pic
18335 fi
18336 ;;
18337 hpux*)
18338 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
18339 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
18340 # sets the default TLS model and affects inlining.
18341 case $host_cpu in
18342 hppa*64*)
18343 ;;
18344 *)
18345 lt_prog_compiler_pic_CXX='-fPIC'
18346 ;;
18347 esac
18348 ;;
18349 *qnx* | *nto*)
18350 # QNX uses GNU C++, but need to define -shared option too, otherwise
18351 # it will coredump.
18352 lt_prog_compiler_pic_CXX='-fPIC -shared'
18353 ;;
18354 *)
18355 lt_prog_compiler_pic_CXX='-fPIC'
18356 ;;
18357 esac
18358 else
18359 case $host_os in
18360 aix[4-9]*)
18361 # All AIX code is PIC.
18362 if test ia64 = "$host_cpu"; then
18363 # AIX 5 now supports IA64 processor
18364 lt_prog_compiler_static_CXX='-Bstatic'
18365 else
18366 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
18367 fi
18368 ;;
18369 chorus*)
18370 case $cc_basename in
18371 cxch68*)
18372 # Green Hills C++ Compiler
18373 # _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"
18374 ;;
18375 esac
18376 ;;
18377 mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
18378 # This hack is so that the source file can tell whether it is being
18379 # built for inclusion in a dll (and should export symbols for example).
18380 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18381 ;;
18382 dgux*)
18383 case $cc_basename in
18384 ec++*)
18385 lt_prog_compiler_pic_CXX='-KPIC'
18386 ;;
18387 ghcx*)
18388 # Green Hills C++ Compiler
18389 lt_prog_compiler_pic_CXX='-pic'
18390 ;;
18391 *)
18392 ;;
18393 esac
18394 ;;
18395 freebsd* | dragonfly* | midnightbsd*)
18396 # FreeBSD uses GNU C++
18397 ;;
18398 hpux9* | hpux10* | hpux11*)
18399 case $cc_basename in
18400 CC*)
18401 lt_prog_compiler_wl_CXX='-Wl,'
18402 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
18403 if test ia64 != "$host_cpu"; then
18404 lt_prog_compiler_pic_CXX='+Z'
18405 fi
18406 ;;
18407 aCC*)
18408 lt_prog_compiler_wl_CXX='-Wl,'
18409 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
18410 case $host_cpu in
18411 hppa*64*|ia64*)
18412 # +Z the default
18413 ;;
18414 *)
18415 lt_prog_compiler_pic_CXX='+Z'
18416 ;;
18417 esac
18418 ;;
18419 *)
18420 ;;
18421 esac
18422 ;;
18423 interix*)
18424 # This is c89, which is MS Visual C++ (no shared libs)
18425 # Anyone wants to do a port?
18426 ;;
18427 irix5* | irix6* | nonstopux*)
18428 case $cc_basename in
18429 CC*)
18430 lt_prog_compiler_wl_CXX='-Wl,'
18431 lt_prog_compiler_static_CXX='-non_shared'
18432 # CC pic flag -KPIC is the default.
18433 ;;
18434 *)
18435 ;;
18436 esac
18437 ;;
18438 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
18439 case $cc_basename in
18440 KCC*)
18441 # KAI C++ Compiler
18442 lt_prog_compiler_wl_CXX='--backend -Wl,'
18443 lt_prog_compiler_pic_CXX='-fPIC'
18444 ;;
18445 ecpc* )
18446 # old Intel C++ for x86_64, which still supported -KPIC.
18447 lt_prog_compiler_wl_CXX='-Wl,'
18448 lt_prog_compiler_pic_CXX='-KPIC'
18449 lt_prog_compiler_static_CXX='-static'
18450 ;;
18451 icpc* )
18452 # Intel C++, used to be incompatible with GCC.
18453 # ICC 10 doesn't accept -KPIC any more.
18454 lt_prog_compiler_wl_CXX='-Wl,'
18455 lt_prog_compiler_pic_CXX='-fPIC'
18456 lt_prog_compiler_static_CXX='-static'
18457 ;;
18458 pgCC* | pgcpp*)
18459 # Portland Group C++ compiler
18460 lt_prog_compiler_wl_CXX='-Wl,'
18461 lt_prog_compiler_pic_CXX='-fpic'
18462 lt_prog_compiler_static_CXX='-Bstatic'
18463 ;;
18464 cxx*)
18465 # Compaq C++
18466 # Make sure the PIC flag is empty. It appears that all Alpha
18467 # Linux and Compaq Tru64 Unix objects are PIC.
18468 lt_prog_compiler_pic_CXX=
18469 lt_prog_compiler_static_CXX='-non_shared'
18470 ;;
18471 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
18472 # IBM XL 8.0, 9.0 on PPC and BlueGene
18473 lt_prog_compiler_wl_CXX='-Wl,'
18474 lt_prog_compiler_pic_CXX='-qpic'
18475 lt_prog_compiler_static_CXX='-qstaticlink'
18476 ;;
18477 *)
18478 case `$CC -V 2>&1 | $SED 5q` in
18479 *Sun\ C*)
18480 # Sun C++ 5.9
18481 lt_prog_compiler_pic_CXX='-KPIC'
18482 lt_prog_compiler_static_CXX='-Bstatic'
18483 lt_prog_compiler_wl_CXX='-Qoption ld '
18484 ;;
18485 esac
18486 ;;
18487 esac
18488 ;;
18489 lynxos*)
18490 ;;
18491 m88k*)
18492 ;;
18493 mvs*)
18494 case $cc_basename in
18495 cxx*)
18496 lt_prog_compiler_pic_CXX='-W c,exportall'
18497 ;;
18498 *)
18499 ;;
18500 esac
18501 ;;
18502 netbsd* | netbsdelf*-gnu)
18503 ;;
18504 *-mlibc)
18505 ;;
18506 *qnx* | *nto*)
18507 # QNX uses GNU C++, but need to define -shared option too, otherwise
18508 # it will coredump.
18509 lt_prog_compiler_pic_CXX='-fPIC -shared'
18510 ;;
18511 osf3* | osf4* | osf5*)
18512 case $cc_basename in
18513 KCC*)
18514 lt_prog_compiler_wl_CXX='--backend -Wl,'
18515 ;;
18516 RCC*)
18517 # Rational C++ 2.4.1
18518 lt_prog_compiler_pic_CXX='-pic'
18519 ;;
18520 cxx*)
18521 # Digital/Compaq C++
18522 lt_prog_compiler_wl_CXX='-Wl,'
18523 # Make sure the PIC flag is empty. It appears that all Alpha
18524 # Linux and Compaq Tru64 Unix objects are PIC.
18525 lt_prog_compiler_pic_CXX=
18526 lt_prog_compiler_static_CXX='-non_shared'
18527 ;;
18528 *)
18529 ;;
18530 esac
18531 ;;
18532 psos*)
18533 ;;
18534 serenity*)
18535 ;;
18536 solaris*)
18537 case $cc_basename in
18538 CC* | sunCC*)
18539 # Sun C++ 4.2, 5.x and Centerline C++
18540 lt_prog_compiler_pic_CXX='-KPIC'
18541 lt_prog_compiler_static_CXX='-Bstatic'
18542 lt_prog_compiler_wl_CXX='-Qoption ld '
18543 ;;
18544 gcx*)
18545 # Green Hills C++ Compiler
18546 lt_prog_compiler_pic_CXX='-PIC'
18547 ;;
18548 *)
18549 ;;
18550 esac
18551 ;;
18552 sunos4*)
18553 case $cc_basename in
18554 CC*)
18555 # Sun C++ 4.x
18556 lt_prog_compiler_pic_CXX='-pic'
18557 lt_prog_compiler_static_CXX='-Bstatic'
18558 ;;
18559 lcc*)
18560 # Lucid
18561 lt_prog_compiler_pic_CXX='-pic'
18562 ;;
18563 *)
18564 ;;
18565 esac
18566 ;;
18567 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18568 case $cc_basename in
18569 CC*)
18570 lt_prog_compiler_wl_CXX='-Wl,'
18571 lt_prog_compiler_pic_CXX='-KPIC'
18572 lt_prog_compiler_static_CXX='-Bstatic'
18573 ;;
18574 esac
18575 ;;
18576 tandem*)
18577 case $cc_basename in
18578 NCC*)
18579 # NonStop-UX NCC 3.20
18580 lt_prog_compiler_pic_CXX='-KPIC'
18581 ;;
18582 *)
18583 ;;
18584 esac
18585 ;;
18586 vxworks*)
18587 ;;
18588 *)
18589 lt_prog_compiler_can_build_shared_CXX=no
18590 ;;
18591 esac
18592 fi
18593
18594 case $host_os in
18595 # For platforms that do not support PIC, -DPIC is meaningless:
18596 *djgpp*)
18597 lt_prog_compiler_pic_CXX=
18598 ;;
18599 *)
18600 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
18601 ;;
18602 esac
18603
18604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
18605 printf %s "checking for $compiler option to produce PIC... " >&6; }
18606 if test ${lt_cv_prog_compiler_pic_CXX+y}
18607 then :
18608 printf %s "(cached) " >&6
18609 else case e in #(
18610 e) lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX ;;
18611 esac
18612 fi
18613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
18614 printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
18615 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
18616
18617 #
18618 # Check to make sure the PIC flag actually works.
18619 #
18620 if test -n "$lt_prog_compiler_pic_CXX"; then
18621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18622 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
18623 if test ${lt_cv_prog_compiler_pic_works_CXX+y}
18624 then :
18625 printf %s "(cached) " >&6
18626 else case e in #(
18627 e) lt_cv_prog_compiler_pic_works_CXX=no
18628 ac_outfile=conftest.$ac_objext
18629 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18630 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
18631 # Insert the option either (1) after the last *FLAGS variable, or
18632 # (2) before a word containing "conftest.", or (3) at the end.
18633 # Note that $ac_compile itself does not contain backslashes and begins
18634 # with a dollar sign (not a hyphen), so the echo should work correctly.
18635 # The option is referenced via a variable to avoid confusing sed.
18636 lt_compile=`echo "$ac_compile" | $SED \
18637 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18638 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18639 -e 's:$: $lt_compiler_flag:'`
18640 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18641 (eval "$lt_compile" 2>conftest.err)
18642 ac_status=$?
18643 cat conftest.err >&5
18644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18645 if (exit $ac_status) && test -s "$ac_outfile"; then
18646 # The compiler can only warn and ignore the option if not recognized
18647 # So say no if there are warnings other than the usual output.
18648 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
18649 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18650 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18651 lt_cv_prog_compiler_pic_works_CXX=yes
18652 fi
18653 fi
18654 $RM conftest*
18655 ;;
18656 esac
18657 fi
18658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
18659 printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
18660
18661 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
18662 case $lt_prog_compiler_pic_CXX in
18663 "" | " "*) ;;
18664 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18665 esac
18666 else
18667 lt_prog_compiler_pic_CXX=
18668 lt_prog_compiler_can_build_shared_CXX=no
18669 fi
18670
18671 fi
18672
18673
18674
18675
18676
18677 #
18678 # Check to make sure the static flag actually works.
18679 #
18680 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
18681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18682 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
18683 if test ${lt_cv_prog_compiler_static_works_CXX+y}
18684 then :
18685 printf %s "(cached) " >&6
18686 else case e in #(
18687 e) lt_cv_prog_compiler_static_works_CXX=no
18688 save_LDFLAGS=$LDFLAGS
18689 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18690 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18691 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18692 # The linker can only warn and ignore the option if not recognized
18693 # So say no if there are warnings
18694 if test -s conftest.err; then
18695 # Append any errors to the config.log.
18696 cat conftest.err 1>&5
18697 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
18698 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18699 if diff conftest.exp conftest.er2 >/dev/null; then
18700 lt_cv_prog_compiler_static_works_CXX=yes
18701 fi
18702 else
18703 lt_cv_prog_compiler_static_works_CXX=yes
18704 fi
18705 fi
18706 $RM -r conftest*
18707 LDFLAGS=$save_LDFLAGS
18708 ;;
18709 esac
18710 fi
18711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
18712 printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
18713
18714 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
18715 :
18716 else
18717 lt_prog_compiler_static_CXX=
18718 fi
18719
18720
18721
18722 ='-fPIC'
18723 archive_cmds_CXX='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
18724 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'
18725 archive_cmds_need_lc_CXX=no
18726 no_undefined_flag_CXX=
18727 ;;
18728
18729 *)
18730 dynamic_linker=no
18731 ;;
18732 esac
18733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18734 printf "%s\n" "$dynamic_linker" >&6; }
18735 test no = "$dynamic_linker" && can_build_shared=no
18736
18737 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18738 if test yes = "$GCC"; then
18739 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18740 fi
18741
18742 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
18743 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
18744 fi
18745
18746 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
18747 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
18748 fi
18749
18750 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
18751 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
18752
18753 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
18754 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
18755
18756 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
18757 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
18758
18759
18760
18761
18762
18763
18764
18765
18766
18767
18768
18769
18770
18771
18772
18773
18774
18775
18776
18777
18778
18779
18780
18781
18782
18783
18784
18785
18786
18787
18788
18789
18790
18791
18792
18793
18794
18795
18796
18797
18798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18799 printf %s "checking how to hardcode library paths into programs... " >&6; }
18800 hardcode_action_CXX=
18801 if test -n "$hardcode_libdir_flag_spec_CXX" ||
18802 test -n "$runpath_var_CXX" ||
18803 test yes = "$hardcode_automatic_CXX"; then
18804
18805 # We can hardcode non-existent directories.
18806 if test no != "$hardcode_direct_CXX" &&
18807 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18808 # have to relink, otherwise we might link with an installed library
18809 # when we should be linking with a yet-to-be-installed one
18810 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
18811 test no != "$hardcode_minus_L_CXX"; then
18812 # Linking always hardcodes the temporary library directory.
18813 hardcode_action_CXX=relink
18814 else
18815 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18816 hardcode_action_CXX=immediate
18817 fi
18818 else
18819 # We cannot hardcode anything, or else we can only hardcode existing
18820 # directories.
18821 hardcode_action_CXX=unsupported
18822 fi
18823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
18824 printf "%s\n" "$hardcode_action_CXX" >&6; }
18825
18826 if test relink = "$hardcode_action_CXX" ||
18827 test yes = "$inherit_rpath_CXX"; then
18828 # Fast installation is not supported
18829 enable_fast_install=no
18830 elif test yes = "$shlibpath_overrides_runpath" ||
18831 test no = "$enable_shared"; then
18832 # Fast installation is not necessary
18833 enable_fast_install=needless
18834 fi
18835
18836
18837
18838
18839
18840
18841
18842 fi # test -n "$compiler"
18843
18844 CC=$lt_save_CC
18845 CFLAGS=$lt_save_CFLAGS
18846 LDCXX=$LD
18847 LD=$lt_save_LD
18848 GCC=$lt_save_GCC
18849 with_gnu_ld=$lt_save_with_gnu_ld
18850 lt_cv_path_LDCXX=$lt_cv_path_LD
18851 lt_cv_path_LD=$lt_save_path_LD
18852 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18853 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18854 fi # test yes != "$_lt_caught_CXX_error"
18855
18856 ac_ext=c
18857 ac_cpp='$CPP $CPPFLAGS'
18858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18861
18862
18863
18864
18865
18866
18867
18868
18869
18870
18871
18872
18873
18874
18875
18876 ac_config_commands="$ac_config_commands libtool"
18877
18878
18879
18880
18881 # Only expand once:
18882
18883
18884
18885 saved_CXXFLAGS="$CXXFLAGS"
18886 regular_CPPFLAGS="-D_FILE_OFFSET_BITS=64 -D_REENTRANT"
18887 regular_CFLAGS="-Wall -Waggregate-return -Wmissing-declarations \
18888 -Wmissing-prototypes -Wredundant-decls -Wshadow -Wstrict-prototypes \
18889 -Wformat=2 -pipe $visibility_CFLAGS"
18890 regular_CXXFLAGS="-Wall -Wno-pointer-arith -Wredundant-decls -pipe \
18891 $visibility_CFLAGS"
18892 #
18893 # Check whether there really is a C++ compiler.
18894 # It is not mandatory to compile libHX, but we want to know.
18895 #
18896 ac_ext=cpp
18897 ac_cpp='$CXXCPP $CPPFLAGS'
18898 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18899 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18900 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18901
18902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18903 /* end confdefs.h. */
18904
18905 int
18906 main (void)
18907 {
18908 return 0;
18909 ;
18910 return 0;
18911 }
18912 _ACEOF
18913 if ac_fn_cxx_try_compile "$LINENO"
18914 then :
18915 ac_cv_cxx=yes
18916 else case e in #(
18917 e) ac_cv_cxx=no ;;
18918 esac
18919 fi
18920 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking available C++ standard" >&5
18922 printf %s "checking available C++ standard... " >&6; }
18923 cxxmode=""
18924 for i in "c++20" "c++17"; do
18925 if test "$i" = "c++20" && test -n "$COVERITY"
18926 then :
18927 continue
18928 fi
18929 CXXFLAGS="$saved_CXXFLAGS -std=$i"
18930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18931 /* end confdefs.h. */
18932
18933 _ACEOF
18934 if ac_fn_cxx_try_compile "$LINENO"
18935 then :
18936 cxxmode="$i"
18937 fi
18938 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18939 if test -n "$cxxmode"
18940 then :
18941 break
18942 fi
18943 done
18944 CXXFLAGS="$saved_CXXFLAGS"
18945 if test -n "$cxxmode"
18946 then :
18947
18948 regular_CXXFLAGS="$regular_CXXFLAGS -std=$cxxmode"
18949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cxxmode" >&5
18950 printf "%s\n" "$cxxmode" >&6; }
18951
18952 else case e in #(
18953 e)
18954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
18955 printf "%s\n" "none" >&6; }
18956 ;;
18957 esac
18958 fi
18959 ac_ext=c
18960 ac_cpp='$CPP $CPPFLAGS'
18961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18964
18965 if test "$ac_cv_cxx" = yes; then
18966 HAVE_CXX_TRUE=
18967 HAVE_CXX_FALSE='#'
18968 else
18969 HAVE_CXX_TRUE='#'
18970 HAVE_CXX_FALSE=
18971 fi
18972
18973
18974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mingw32" >&5
18975 printf %s "checking for mingw32... " >&6; }
18976 ac_ext=c
18977 ac_cpp='$CPP $CPPFLAGS'
18978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18981
18982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18983 /* end confdefs.h. */
18984
18985 int
18986 main (void)
18987 {
18988 return __MINGW32__;
18989 ;
18990 return 0;
18991 }
18992 _ACEOF
18993 if ac_fn_c_try_compile "$LINENO"
18994 then :
18995 ac_cv_mingw32=yes; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18996 printf "%s\n" "yes" >&6; }
18997 else case e in #(
18998 e) ac_cv_mingw32=no; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18999 printf "%s\n" "no" >&6; }
19000 ;;
19001 esac
19002 fi
19003 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19004 ac_ext=c
19005 ac_cpp='$CPP $CPPFLAGS'
19006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19009
19010 if test "$ac_cv_mingw32" = yes; then
19011 MINGW32_TRUE=
19012 MINGW32_FALSE='#'
19013 else
19014 MINGW32_TRUE='#'
19015 MINGW32_FALSE=
19016 fi
19017
19018
19019
19020 # Check whether --with-pkgconfigdir was given.
19021 if test ${with_pkgconfigdir+y}
19022 then :
19023 withval=$with_pkgconfigdir; pkgconfigdir="$withval"
19024 else case e in #(
19025 e) pkgconfigdir='${libdir}/pkgconfig' ;;
19026 esac
19027 fi
19028
19029
19030
19031
19032 ac_ext=c
19033 ac_cpp='$CPP $CPPFLAGS'
19034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19037
19038 saved_CFLAGS="$CFLAGS"
19039 CFLAGS="$saved_CFLAGS -fvisibility=hidden"
19040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler accepts -fvisibility=hidden" >&5
19041 printf %s "checking whether compiler accepts -fvisibility=hidden... " >&6; }
19042 if test ${ac_cv_fvisibility_hidden+y}
19043 then :
19044 printf %s "(cached) " >&6
19045 else case e in #(
19046 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19047 /* end confdefs.h. */
19048
19049 _ACEOF
19050 if ac_fn_c_try_compile "$LINENO"
19051 then :
19052 ac_cv_fvisibility_hidden=yes
19053 else case e in #(
19054 e) ac_cv_fvisibility_hidden=no
19055 ;;
19056 esac
19057 fi
19058 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19059 esac
19060 fi
19061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fvisibility_hidden" >&5
19062 printf "%s\n" "$ac_cv_fvisibility_hidden" >&6; }
19063 if test "$ac_cv_fvisibility_hidden" = "yes"; then
19064
19065 printf "%s\n" "#define HAVE_VISIBILITY_HIDDEN 1" >>confdefs.h
19066
19067 visibility_CFLAGS="-fvisibility=hidden"
19068 fi
19069 CFLAGS="$saved_CFLAGS"
19070 ac_ext=c
19071 ac_cpp='$CPP $CPPFLAGS'
19072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19075
19076
19077
19078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking linker support for symbol maps" >&5
19079 printf %s "checking linker support for symbol maps... " >&6; }
19080 echo '{global:*;};' >conftest.map
19081 saved_LDFLAGS="$LDFLAGS"
19082 LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
19083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19084 /* end confdefs.h. */
19085 int main() { return 0; }
19086 _ACEOF
19087 if ac_fn_c_try_link "$LINENO"
19088 then :
19089 with_ldsym=yes
19090 else case e in #(
19091 e) with_ldsym=no ;;
19092 esac
19093 fi
19094 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19095 conftest$ac_exeext conftest.$ac_ext
19096 LDFLAGS="$saved_LDFLAGS"
19097 rm conftest.map
19098 if test "$with_ldsym" = yes; then
19099 WITH_LDSYM_TRUE=
19100 WITH_LDSYM_FALSE='#'
19101 else
19102 WITH_LDSYM_TRUE='#'
19103 WITH_LDSYM_FALSE=
19104 fi
19105
19106 if test -n "$LD" && $LD -z help >/dev/null 2>/dev/null
19107 then :
19108 with_sun_ld=yes
19109 else case e in #(
19110 e) with_sun_ld=no ;;
19111 esac
19112 fi
19113 if test "$with_sun_ld" = yes; then
19114 WITH_SUN_LD_TRUE=
19115 WITH_SUN_LD_FALSE='#'
19116 else
19117 WITH_SUN_LD_TRUE='#'
19118 WITH_SUN_LD_FALSE=
19119 fi
19120
19121 if test "$with_ldsym" = yes
19122 then :
19123
19124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: -Wl,--version-script" >&5
19125 printf "%s\n" "-Wl,--version-script" >&6; }
19126
19127 elif test "$with_sun_ld" = yes
19128 then :
19129
19130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: -M" >&5
19131 printf "%s\n" "-M" >&6; }
19132
19133 else case e in #(
19134 e)
19135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19136 printf "%s\n" "no" >&6; }
19137 ;;
19138 esac
19139 fi
19140
19141 LIBS_system="$LIBS"
19142 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
19143 if test "x$ac_cv_header_dlfcn_h" = xyes
19144 then :
19145 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
19146
19147 fi
19148 ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
19149 if test "x$ac_cv_header_strings_h" = xyes
19150 then :
19151 printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h
19152
19153 fi
19154 ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "$ac_includes_default"
19155 if test "x$ac_cv_header_sys_resource_h" = xyes
19156 then :
19157 printf "%s\n" "#define HAVE_SYS_RESOURCE_H 1" >>confdefs.h
19158
19159 fi
19160 ac_fn_c_check_header_compile "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
19161 if test "x$ac_cv_header_sys_un_h" = xyes
19162 then :
19163 printf "%s\n" "#define HAVE_SYS_UN_H 1" >>confdefs.h
19164
19165 fi
19166
19167 if test "$ac_cv_header_dlfcn_h" = "yes"; then
19168 HAVE_DLFCN_H_TRUE=
19169 HAVE_DLFCN_H_FALSE='#'
19170 else
19171 HAVE_DLFCN_H_TRUE='#'
19172 HAVE_DLFCN_H_FALSE=
19173 fi
19174
19175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
19176 printf %s "checking for library containing dlopen... " >&6; }
19177 if test ${ac_cv_search_dlopen+y}
19178 then :
19179 printf %s "(cached) " >&6
19180 else case e in #(
19181 e) ac_func_search_save_LIBS=$LIBS
19182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19183 /* end confdefs.h. */
19184
19185 /* Override any GCC internal prototype to avoid an error.
19186 Use char because int might match the return type of a GCC
19187 builtin and then its argument prototype would still apply.
19188 The 'extern "C"' is for builds by C++ compilers;
19189 although this is not generally supported in C code supporting it here
19190 has little cost and some practical benefit (sr 110532). */
19191 #ifdef __cplusplus
19192 extern "C"
19193 #endif
19194 char dlopen (void);
19195 int
19196 main (void)
19197 {
19198 return dlopen ();
19199 ;
19200 return 0;
19201 }
19202 _ACEOF
19203 for ac_lib in '' dl
19204 do
19205 if test -z "$ac_lib"; then
19206 ac_res="none required"
19207 else
19208 ac_res=-l$ac_lib
19209 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19210 fi
19211 if ac_fn_c_try_link "$LINENO"
19212 then :
19213 ac_cv_search_dlopen=$ac_res
19214 fi
19215 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19216 conftest$ac_exeext
19217 if test ${ac_cv_search_dlopen+y}
19218 then :
19219 break
19220 fi
19221 done
19222 if test ${ac_cv_search_dlopen+y}
19223 then :
19224
19225 else case e in #(
19226 e) ac_cv_search_dlopen=no ;;
19227 esac
19228 fi
19229 rm conftest.$ac_ext
19230 LIBS=$ac_func_search_save_LIBS ;;
19231 esac
19232 fi
19233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
19234 printf "%s\n" "$ac_cv_search_dlopen" >&6; }
19235 ac_res=$ac_cv_search_dlopen
19236 if test "$ac_res" != no
19237 then :
19238 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19239 libdl_LIBS="$LIBS"; LIBS="$LIBS_system"
19240 fi
19241
19242
19243 # glibc < 2.17 has it in librt, mingw-w64 has it in libpthread
19244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
19245 printf %s "checking for library containing clock_gettime... " >&6; }
19246 if test ${ac_cv_search_clock_gettime+y}
19247 then :
19248 printf %s "(cached) " >&6
19249 else case e in #(
19250 e) ac_func_search_save_LIBS=$LIBS
19251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19252 /* end confdefs.h. */
19253
19254 /* Override any GCC internal prototype to avoid an error.
19255 Use char because int might match the return type of a GCC
19256 builtin and then its argument prototype would still apply.
19257 The 'extern "C"' is for builds by C++ compilers;
19258 although this is not generally supported in C code supporting it here
19259 has little cost and some practical benefit (sr 110532). */
19260 #ifdef __cplusplus
19261 extern "C"
19262 #endif
19263 char clock_gettime (void);
19264 int
19265 main (void)
19266 {
19267 return clock_gettime ();
19268 ;
19269 return 0;
19270 }
19271 _ACEOF
19272 for ac_lib in '' rt pthread
19273 do
19274 if test -z "$ac_lib"; then
19275 ac_res="none required"
19276 else
19277 ac_res=-l$ac_lib
19278 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19279 fi
19280 if ac_fn_c_try_link "$LINENO"
19281 then :
19282 ac_cv_search_clock_gettime=$ac_res
19283 fi
19284 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19285 conftest$ac_exeext
19286 if test ${ac_cv_search_clock_gettime+y}
19287 then :
19288 break
19289 fi
19290 done
19291 if test ${ac_cv_search_clock_gettime+y}
19292 then :
19293
19294 else case e in #(
19295 e) ac_cv_search_clock_gettime=no ;;
19296 esac
19297 fi
19298 rm conftest.$ac_ext
19299 LIBS=$ac_func_search_save_LIBS ;;
19300 esac
19301 fi
19302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
19303 printf "%s\n" "$ac_cv_search_clock_gettime" >&6; }
19304 ac_res=$ac_cv_search_clock_gettime
19305 if test "$ac_res" != no
19306 then :
19307 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19308 librt_LIBS="$LIBS"; LIBS="$LIBS_system"
19309 fi
19310
19311
19312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_mutex_lock" >&5
19313 printf %s "checking for library containing pthread_mutex_lock... " >&6; }
19314 if test ${ac_cv_search_pthread_mutex_lock+y}
19315 then :
19316 printf %s "(cached) " >&6
19317 else case e in #(
19318 e) ac_func_search_save_LIBS=$LIBS
19319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19320 /* end confdefs.h. */
19321
19322 /* Override any GCC internal prototype to avoid an error.
19323 Use char because int might match the return type of a GCC
19324 builtin and then its argument prototype would still apply.
19325 The 'extern "C"' is for builds by C++ compilers;
19326 although this is not generally supported in C code supporting it here
19327 has little cost and some practical benefit (sr 110532). */
19328 #ifdef __cplusplus
19329 extern "C"
19330 #endif
19331 char pthread_mutex_lock (void);
19332 int
19333 main (void)
19334 {
19335 return pthread_mutex_lock ();
19336 ;
19337 return 0;
19338 }
19339 _ACEOF
19340 for ac_lib in '' pthread
19341 do
19342 if test -z "$ac_lib"; then
19343 ac_res="none required"
19344 else
19345 ac_res=-l$ac_lib
19346 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19347 fi
19348 if ac_fn_c_try_link "$LINENO"
19349 then :
19350 ac_cv_search_pthread_mutex_lock=$ac_res
19351 fi
19352 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19353 conftest$ac_exeext
19354 if test ${ac_cv_search_pthread_mutex_lock+y}
19355 then :
19356 break
19357 fi
19358 done
19359 if test ${ac_cv_search_pthread_mutex_lock+y}
19360 then :
19361
19362 else case e in #(
19363 e) ac_cv_search_pthread_mutex_lock=no ;;
19364 esac
19365 fi
19366 rm conftest.$ac_ext
19367 LIBS=$ac_func_search_save_LIBS ;;
19368 esac
19369 fi
19370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_mutex_lock" >&5
19371 printf "%s\n" "$ac_cv_search_pthread_mutex_lock" >&6; }
19372 ac_res=$ac_cv_search_pthread_mutex_lock
19373 if test "$ac_res" != no
19374 then :
19375 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19376 libpthread_LIBS="$LIBS"; LIBS="$LIBS_system"
19377 fi
19378
19379
19380
19381 libsocket_ok=0
19382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
19383 printf %s "checking for library containing getaddrinfo... " >&6; }
19384 if test ${ac_cv_search_getaddrinfo+y}
19385 then :
19386 printf %s "(cached) " >&6
19387 else case e in #(
19388 e) ac_func_search_save_LIBS=$LIBS
19389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19390 /* end confdefs.h. */
19391
19392 /* Override any GCC internal prototype to avoid an error.
19393 Use char because int might match the return type of a GCC
19394 builtin and then its argument prototype would still apply.
19395 The 'extern "C"' is for builds by C++ compilers;
19396 although this is not generally supported in C code supporting it here
19397 has little cost and some practical benefit (sr 110532). */
19398 #ifdef __cplusplus
19399 extern "C"
19400 #endif
19401 char getaddrinfo (void);
19402 int
19403 main (void)
19404 {
19405 return getaddrinfo ();
19406 ;
19407 return 0;
19408 }
19409 _ACEOF
19410 for ac_lib in '' socket
19411 do
19412 if test -z "$ac_lib"; then
19413 ac_res="none required"
19414 else
19415 ac_res=-l$ac_lib
19416 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19417 fi
19418 if ac_fn_c_try_link "$LINENO"
19419 then :
19420 ac_cv_search_getaddrinfo=$ac_res
19421 fi
19422 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19423 conftest$ac_exeext
19424 if test ${ac_cv_search_getaddrinfo+y}
19425 then :
19426 break
19427 fi
19428 done
19429 if test ${ac_cv_search_getaddrinfo+y}
19430 then :
19431
19432 else case e in #(
19433 e) ac_cv_search_getaddrinfo=no ;;
19434 esac
19435 fi
19436 rm conftest.$ac_ext
19437 LIBS=$ac_func_search_save_LIBS ;;
19438 esac
19439 fi
19440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
19441 printf "%s\n" "$ac_cv_search_getaddrinfo" >&6; }
19442 ac_res=$ac_cv_search_getaddrinfo
19443 if test "$ac_res" != no
19444 then :
19445 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19446 libsocket_LIBS="$LIBS"; LIBS="$LIBS_system"; libsocket_ok=1
19447 fi
19448
19449 if test $libsocket_ok = 0; then
19450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking non-standard libraries containing getaddrinfo" >&5
19451 printf %s "checking non-standard libraries containing getaddrinfo... " >&6; }
19452 LIBS="$LIBS_system -lws2_32";
19453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19454 /* end confdefs.h. */
19455
19456 #include <winsock2.h>
19457 #include <ws2tcpip.h>
19458 int main(void) { return getaddrinfo(NULL, NULL, NULL, NULL); }
19459
19460 _ACEOF
19461 if ac_fn_c_try_link "$LINENO"
19462 then :
19463
19464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: -lws2_32" >&5
19465 printf "%s\n" "-lws2_32" >&6; }
19466 libsocket_LIBS="$libsocket_LIBS $LIBS";
19467
19468 else case e in #(
19469 e)
19470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19471 printf "%s\n" "no" >&6; }
19472 ;;
19473 esac
19474 fi
19475 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19476 conftest$ac_exeext conftest.$ac_ext
19477 LIBS="$LIBS_system";
19478 fi;
19479
19480
19481 # The cast to long int works around a bug in the HP C Compiler
19482 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19483 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
19484 # This bug is HP SR number 8606223364.
19485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
19486 printf %s "checking size of void *... " >&6; }
19487 if test ${ac_cv_sizeof_void_p+y}
19488 then :
19489 printf %s "(cached) " >&6
19490 else case e in #(
19491 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"
19492 then :
19493
19494 else case e in #(
19495 e) if test "$ac_cv_type_void_p" = yes; then
19496 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
19497 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
19498 as_fn_error 77 "cannot compute sizeof (void *)
19499 See 'config.log' for more details" "$LINENO" 5; }
19500 else
19501 ac_cv_sizeof_void_p=0
19502 fi ;;
19503 esac
19504 fi
19505 ;;
19506 esac
19507 fi
19508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
19509 printf "%s\n" "$ac_cv_sizeof_void_p" >&6; }
19510
19511
19512
19513 printf "%s\n" "#define SIZEOF_VOID_P $ac_cv_sizeof_void_p" >>confdefs.h
19514
19515
19516 # The cast to long int works around a bug in the HP C Compiler
19517 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19518 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
19519 # This bug is HP SR number 8606223364.
19520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of char *" >&5
19521 printf %s "checking size of char *... " >&6; }
19522 if test ${ac_cv_sizeof_char_p+y}
19523 then :
19524 printf %s "(cached) " >&6
19525 else case e in #(
19526 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char *))" "ac_cv_sizeof_char_p" "$ac_includes_default"
19527 then :
19528
19529 else case e in #(
19530 e) if test "$ac_cv_type_char_p" = yes; then
19531 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
19532 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
19533 as_fn_error 77 "cannot compute sizeof (char *)
19534 See 'config.log' for more details" "$LINENO" 5; }
19535 else
19536 ac_cv_sizeof_char_p=0
19537 fi ;;
19538 esac
19539 fi
19540 ;;
19541 esac
19542 fi
19543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char_p" >&5
19544 printf "%s\n" "$ac_cv_sizeof_char_p" >&6; }
19545
19546
19547
19548 printf "%s\n" "#define SIZEOF_CHAR_P $ac_cv_sizeof_char_p" >>confdefs.h
19549
19550
19551 # The cast to long int works around a bug in the HP C Compiler
19552 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19553 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
19554 # This bug is HP SR number 8606223364.
19555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of struct x *" >&5
19556 printf %s "checking size of struct x *... " >&6; }
19557 if test ${ac_cv_sizeof_struct_x_p+y}
19558 then :
19559 printf %s "(cached) " >&6
19560 else case e in #(
19561 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (struct x *))" "ac_cv_sizeof_struct_x_p" "$ac_includes_default"
19562 then :
19563
19564 else case e in #(
19565 e) if test "$ac_cv_type_struct_x_p" = yes; then
19566 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
19567 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
19568 as_fn_error 77 "cannot compute sizeof (struct x *)
19569 See 'config.log' for more details" "$LINENO" 5; }
19570 else
19571 ac_cv_sizeof_struct_x_p=0
19572 fi ;;
19573 esac
19574 fi
19575 ;;
19576 esac
19577 fi
19578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_struct_x_p" >&5
19579 printf "%s\n" "$ac_cv_sizeof_struct_x_p" >&6; }
19580
19581
19582
19583 printf "%s\n" "#define SIZEOF_STRUCT_X_P $ac_cv_sizeof_struct_x_p" >>confdefs.h
19584
19585
19586 # The cast to long int works around a bug in the HP C Compiler
19587 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19588 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
19589 # This bug is HP SR number 8606223364.
19590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of struct x **" >&5
19591 printf %s "checking size of struct x **... " >&6; }
19592 if test ${ac_cv_sizeof_struct_x_pp+y}
19593 then :
19594 printf %s "(cached) " >&6
19595 else case e in #(
19596 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (struct x **))" "ac_cv_sizeof_struct_x_pp" "$ac_includes_default"
19597 then :
19598
19599 else case e in #(
19600 e) if test "$ac_cv_type_struct_x_pp" = yes; then
19601 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
19602 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
19603 as_fn_error 77 "cannot compute sizeof (struct x **)
19604 See 'config.log' for more details" "$LINENO" 5; }
19605 else
19606 ac_cv_sizeof_struct_x_pp=0
19607 fi ;;
19608 esac
19609 fi
19610 ;;
19611 esac
19612 fi
19613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_struct_x_pp" >&5
19614 printf "%s\n" "$ac_cv_sizeof_struct_x_pp" >&6; }
19615
19616
19617
19618 printf "%s\n" "#define SIZEOF_STRUCT_X_PP $ac_cv_sizeof_struct_x_pp" >>confdefs.h
19619
19620
19621 if test "$ac_cv_sizeof_void_p" != "$ac_cv_sizeof_char_p" ||
19622 test "$ac_cv_sizeof_struct_x_p" != "$ac_cv_sizeof_struct_x_pp"; then
19623 # format.c: reinterpret_cast(hxmc_t **, HXdeque_to_vec(...))
19624 # map.c: reinterpret_cast(struct HXrbtree_node *, &btree->root);
19625 as_fn_error $? "The code currently relies on certain type sizes to take shortcuts." "$LINENO" 5
19626 fi;
19627
19628 ac_fn_c_check_member "$LINENO" "struct timespec" "tv_nsec" "ac_cv_member_struct_timespec_tv_nsec" "
19629 #include <sys/stat.h>
19630 #include <sys/time.h>
19631 #include <time.h>
19632
19633 "
19634 if test "x$ac_cv_member_struct_timespec_tv_nsec" = xyes
19635 then :
19636
19637 printf "%s\n" "#define HAVE_STRUCT_TIMESPEC_TV_NSEC 1" >>confdefs.h
19638
19639
19640 fi
19641 ac_fn_c_check_member "$LINENO" "struct timeval" "tv_usec" "ac_cv_member_struct_timeval_tv_usec" "
19642 #include <sys/stat.h>
19643 #include <sys/time.h>
19644 #include <time.h>
19645
19646 "
19647 if test "x$ac_cv_member_struct_timeval_tv_usec" = xyes
19648 then :
19649
19650 printf "%s\n" "#define HAVE_STRUCT_TIMEVAL_TV_USEC 1" >>confdefs.h
19651
19652
19653 fi
19654 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimensec" "ac_cv_member_struct_stat_st_mtimensec" "
19655 #include <sys/stat.h>
19656 #include <sys/time.h>
19657 #include <time.h>
19658
19659 "
19660 if test "x$ac_cv_member_struct_stat_st_mtimensec" = xyes
19661 then :
19662
19663 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_MTIMENSEC 1" >>confdefs.h
19664
19665
19666 fi
19667 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "
19668 #include <sys/stat.h>
19669 #include <sys/time.h>
19670 #include <time.h>
19671
19672 "
19673 if test "x$ac_cv_member_struct_stat_st_mtim" = xyes
19674 then :
19675
19676 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_MTIM 1" >>confdefs.h
19677
19678
19679 fi
19680 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimespec" "ac_cv_member_struct_stat_st_mtimespec" "
19681 #include <sys/stat.h>
19682 #include <sys/time.h>
19683 #include <time.h>
19684
19685 "
19686 if test "x$ac_cv_member_struct_stat_st_mtimespec" = xyes
19687 then :
19688
19689 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_MTIMESPEC 1" >>confdefs.h
19690
19691
19692 fi
19693 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtime" "ac_cv_member_struct_stat_st_mtime" "
19694 #include <sys/stat.h>
19695 #include <sys/time.h>
19696 #include <time.h>
19697
19698 "
19699 if test "x$ac_cv_member_struct_stat_st_mtime" = xyes
19700 then :
19701
19702 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_MTIME 1" >>confdefs.h
19703
19704
19705 fi
19706 ac_fn_c_check_member "$LINENO" "struct stat" "st_otimensec" "ac_cv_member_struct_stat_st_otimensec" "
19707 #include <sys/stat.h>
19708 #include <sys/time.h>
19709 #include <time.h>
19710
19711 "
19712 if test "x$ac_cv_member_struct_stat_st_otimensec" = xyes
19713 then :
19714
19715 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_OTIMENSEC 1" >>confdefs.h
19716
19717
19718 fi
19719 ac_fn_c_check_member "$LINENO" "struct stat" "st_otim" "ac_cv_member_struct_stat_st_otim" "
19720 #include <sys/stat.h>
19721 #include <sys/time.h>
19722 #include <time.h>
19723
19724 "
19725 if test "x$ac_cv_member_struct_stat_st_otim" = xyes
19726 then :
19727
19728 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_OTIM 1" >>confdefs.h
19729
19730
19731 fi
19732 ac_fn_c_check_member "$LINENO" "struct stat" "st_otimespec" "ac_cv_member_struct_stat_st_otimespec" "
19733 #include <sys/stat.h>
19734 #include <sys/time.h>
19735 #include <time.h>
19736
19737 "
19738 if test "x$ac_cv_member_struct_stat_st_otimespec" = xyes
19739 then :
19740
19741 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_OTIMESPEC 1" >>confdefs.h
19742
19743
19744 fi
19745 ac_fn_c_check_member "$LINENO" "struct stat" "st_otime" "ac_cv_member_struct_stat_st_otime" "
19746 #include <sys/stat.h>
19747 #include <sys/time.h>
19748 #include <time.h>
19749
19750 "
19751 if test "x$ac_cv_member_struct_stat_st_otime" = xyes
19752 then :
19753
19754 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_OTIME 1" >>confdefs.h
19755
19756
19757 fi
19758
19759 ac_fn_c_check_func "$LINENO" "copy_file_range" "ac_cv_func_copy_file_range"
19760 if test "x$ac_cv_func_copy_file_range" = xyes
19761 then :
19762 printf "%s\n" "#define HAVE_COPY_FILE_RANGE 1" >>confdefs.h
19763
19764 fi
19765 ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork"
19766 if test "x$ac_cv_func_fork" = xyes
19767 then :
19768 printf "%s\n" "#define HAVE_FORK 1" >>confdefs.h
19769
19770 fi
19771 ac_fn_c_check_func "$LINENO" "execv" "ac_cv_func_execv"
19772 if test "x$ac_cv_func_execv" = xyes
19773 then :
19774 printf "%s\n" "#define HAVE_EXECV 1" >>confdefs.h
19775
19776 fi
19777 ac_fn_c_check_func "$LINENO" "execvp" "ac_cv_func_execvp"
19778 if test "x$ac_cv_func_execvp" = xyes
19779 then :
19780 printf "%s\n" "#define HAVE_EXECVP 1" >>confdefs.h
19781
19782 fi
19783 ac_fn_c_check_func "$LINENO" "pipe" "ac_cv_func_pipe"
19784 if test "x$ac_cv_func_pipe" = xyes
19785 then :
19786 printf "%s\n" "#define HAVE_PIPE 1" >>confdefs.h
19787
19788 fi
19789 ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
19790 if test "x$ac_cv_func_posix_fadvise" = xyes
19791 then :
19792 printf "%s\n" "#define HAVE_POSIX_FADVISE 1" >>confdefs.h
19793
19794 fi
19795
19796 ac_fn_c_check_func "$LINENO" "getegid" "ac_cv_func_getegid"
19797 if test "x$ac_cv_func_getegid" = xyes
19798 then :
19799 printf "%s\n" "#define HAVE_GETEGID 1" >>confdefs.h
19800
19801 fi
19802 ac_fn_c_check_func "$LINENO" "geteuid" "ac_cv_func_geteuid"
19803 if test "x$ac_cv_func_geteuid" = xyes
19804 then :
19805 printf "%s\n" "#define HAVE_GETEUID 1" >>confdefs.h
19806
19807 fi
19808 ac_fn_c_check_func "$LINENO" "getpid" "ac_cv_func_getpid"
19809 if test "x$ac_cv_func_getpid" = xyes
19810 then :
19811 printf "%s\n" "#define HAVE_GETPID 1" >>confdefs.h
19812
19813 fi
19814 ac_fn_c_check_func "$LINENO" "getppid" "ac_cv_func_getppid"
19815 if test "x$ac_cv_func_getppid" = xyes
19816 then :
19817 printf "%s\n" "#define HAVE_GETPPID 1" >>confdefs.h
19818
19819 fi
19820
19821 ac_fn_c_check_func "$LINENO" "initgroups" "ac_cv_func_initgroups"
19822 if test "x$ac_cv_func_initgroups" = xyes
19823 then :
19824 printf "%s\n" "#define HAVE_INITGROUPS 1" >>confdefs.h
19825
19826 fi
19827 ac_fn_c_check_func "$LINENO" "setgid" "ac_cv_func_setgid"
19828 if test "x$ac_cv_func_setgid" = xyes
19829 then :
19830 printf "%s\n" "#define HAVE_SETGID 1" >>confdefs.h
19831
19832 fi
19833
19834
19835
19836
19837
19838 ac_config_files="$ac_config_files Makefile src/Makefile include/Makefile libHX.pc"
19839
19840 cat >confcache <<\_ACEOF
19841 # This file is a shell script that caches the results of configure
19842 # tests run on this system so they can be shared between configure
19843 # scripts and configure runs, see configure's option --config-cache.
19844 # It is not useful on other systems. If it contains results you don't
19845 # want to keep, you may remove or edit it.
19846 #
19847 # config.status only pays attention to the cache file if you give it
19848 # the --recheck option to rerun configure.
19849 #
19850 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
19851 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
19852 # following values.
19853
19854 _ACEOF
19855
19856 # The following way of writing the cache mishandles newlines in values,
19857 # but we know of no workaround that is simple, portable, and efficient.
19858 # So, we kill variables containing newlines.
19859 # Ultrix sh set writes to stderr and can't be redirected directly,
19860 # and sets the high bit in the cache file unless we assign to the vars.
19861 (
19862 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19863 eval ac_val=\$$ac_var
19864 case $ac_val in #(
19865 *${as_nl}*)
19866 case $ac_var in #(
19867 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19868 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19869 esac
19870 case $ac_var in #(
19871 _ | IFS | as_nl) ;; #(
19872 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19873 *) { eval $ac_var=; unset $ac_var;} ;;
19874 esac ;;
19875 esac
19876 done
19877
19878 (set) 2>&1 |
19879 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19880 *${as_nl}ac_space=\ *)
19881 # 'set' does not quote correctly, so add quotes: double-quote
19882 # substitution turns \\\\ into \\, and sed turns \\ into \.
19883 sed -n \
19884 "s/'/'\\\\''/g;
19885 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19886 ;; #(
19887 *)
19888 # 'set' quotes correctly as required by POSIX, so do not add quotes.
19889 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19890 ;;
19891 esac |
19892 sort
19893 ) |
19894 sed '
19895 /^ac_cv_env_/b end
19896 t clear
19897 :clear
19898 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
19899 t end
19900 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19901 :end' >>confcache
19902 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19903 if test -w "$cache_file"; then
19904 if test "x$cache_file" != "x/dev/null"; then
19905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19906 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
19907 if test ! -f "$cache_file" || test -h "$cache_file"; then
19908 cat confcache >"$cache_file"
19909 else
19910 case $cache_file in #(
19911 */* | ?:*)
19912 mv -f confcache "$cache_file"$$ &&
19913 mv -f "$cache_file"$$ "$cache_file" ;; #(
19914 *)
19915 mv -f confcache "$cache_file" ;;
19916 esac
19917 fi
19918 fi
19919 else
19920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19921 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
19922 fi
19923 fi
19924 rm -f confcache
19925
19926 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19927 # Let make expand exec_prefix.
19928 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19929
19930 DEFS=-DHAVE_CONFIG_H
19931
19932 ac_libobjs=
19933 ac_ltlibobjs=
19934 U=
19935 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19936 # 1. Remove the extension, and $U if already installed.
19937 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19938 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
19939 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19940 # will be set to the directory where LIBOBJS objects are built.
19941 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19942 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19943 done
19944 LIBOBJS=$ac_libobjs
19945
19946 LTLIBOBJS=$ac_ltlibobjs
19947
19948
19949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19950 printf %s "checking that generated files are newer than configure... " >&6; }
19951 if test -n "$am_sleep_pid"; then
19952 # Hide warnings about reused PIDs.
19953 wait $am_sleep_pid 2>/dev/null
19954 fi
19955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
19956 printf "%s\n" "done" >&6; }
19957 case $enable_silent_rules in # (((
19958 yes) AM_DEFAULT_VERBOSITY=0;;
19959 no) AM_DEFAULT_VERBOSITY=1;;
19960 esac
19961 if test $am_cv_make_support_nested_variables = yes; then
19962 AM_V='$(V)'
19963 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
19964 else
19965 AM_V=$AM_DEFAULT_VERBOSITY
19966 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
19967 fi
19968
19969 if test -n "$EXEEXT"; then
19970 am__EXEEXT_TRUE=
19971 am__EXEEXT_FALSE='#'
19972 else
19973 am__EXEEXT_TRUE='#'
19974 am__EXEEXT_FALSE=
19975 fi
19976
19977 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19978 as_fn_error $? "conditional \"AMDEP\" was never defined.
19979 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19980 fi
19981 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19982 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19983 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19984 fi
19985 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19986 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
19987 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19988 fi
19989 if test -z "${HAVE_CXX_TRUE}" && test -z "${HAVE_CXX_FALSE}"; then
19990 as_fn_error $? "conditional \"HAVE_CXX\" was never defined.
19991 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19992 fi
19993 if test -z "${MINGW32_TRUE}" && test -z "${MINGW32_FALSE}"; then
19994 as_fn_error $? "conditional \"MINGW32\" was never defined.
19995 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19996 fi
19997 if test -z "${WITH_LDSYM_TRUE}" && test -z "${WITH_LDSYM_FALSE}"; then
19998 as_fn_error $? "conditional \"WITH_LDSYM\" was never defined.
19999 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20000 fi
20001 if test -z "${WITH_SUN_LD_TRUE}" && test -z "${WITH_SUN_LD_FALSE}"; then
20002 as_fn_error $? "conditional \"WITH_SUN_LD\" was never defined.
20003 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20004 fi
20005 if test -z "${HAVE_DLFCN_H_TRUE}" && test -z "${HAVE_DLFCN_H_FALSE}"; then
20006 as_fn_error $? "conditional \"HAVE_DLFCN_H\" was never defined.
20007 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20008 fi
20009
20010 : "${CONFIG_STATUS=./config.status}"
20011 ac_write_fail=0
20012 ac_clean_files_save=$ac_clean_files
20013 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20015 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
20016 as_write_fail=0
20017 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20018 #! $SHELL
20019 # Generated by $as_me.
20020 # Run this file to recreate the current configuration.
20021 # Compiler output produced by configure, useful for debugging
20022 # configure, is in config.log if it exists.
20023
20024 debug=false
20025 ac_cs_recheck=false
20026 ac_cs_silent=false
20027
20028 SHELL=\${CONFIG_SHELL-$SHELL}
20029 export SHELL
20030 _ASEOF
20031 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20032 ## -------------------- ##
20033 ## M4sh Initialization. ##
20034 ## -------------------- ##
20035
20036 # Be more Bourne compatible
20037 DUALCASE=1; export DUALCASE # for MKS sh
20038 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20039 then :
20040 emulate sh
20041 NULLCMD=:
20042 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20043 # is contrary to our usage. Disable this feature.
20044 alias -g '${1+"$@"}'='"$@"'
20045 setopt NO_GLOB_SUBST
20046 else case e in #(
20047 e) case `(set -o) 2>/dev/null` in #(
20048 *posix*) :
20049 set -o posix ;; #(
20050 *) :
20051 ;;
20052 esac ;;
20053 esac
20054 fi
20055
20056
20057
20058 # Reset variables that may have inherited troublesome values from
20059 # the environment.
20060
20061 # IFS needs to be set, to space, tab, and newline, in precisely that order.
20062 # (If _AS_PATH_WALK were called with IFS unset, it would have the
20063 # side effect of setting IFS to empty, thus disabling word splitting.)
20064 # Quoting is to prevent editors from complaining about space-tab.
20065 as_nl='
20066 '
20067 export as_nl
20068 IFS=" "" $as_nl"
20069
20070 PS1='$ '
20071 PS2='> '
20072 PS4='+ '
20073
20074 # Ensure predictable behavior from utilities with locale-dependent output.
20075 LC_ALL=C
20076 export LC_ALL
20077 LANGUAGE=C
20078 export LANGUAGE
20079
20080 # We cannot yet rely on "unset" to work, but we need these variables
20081 # to be unset--not just set to an empty or harmless value--now, to
20082 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
20083 # also avoids known problems related to "unset" and subshell syntax
20084 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
20085 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
20086 do eval test \${$as_var+y} \
20087 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20088 done
20089
20090 # Ensure that fds 0, 1, and 2 are open.
20091 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
20092 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
20093 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
20094
20095 # The user is always right.
20096 if ${PATH_SEPARATOR+false} :; then
20097 PATH_SEPARATOR=:
20098 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20099 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20100 PATH_SEPARATOR=';'
20101 }
20102 fi
20103
20104
20105 # Find who we are. Look in the path if we contain no directory separator.
20106 as_myself=
20107 case $0 in #((
20108 *[\\/]* ) as_myself=$0 ;;
20109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20110 for as_dir in $PATH
20111 do
20112 IFS=$as_save_IFS
20113 case $as_dir in #(((
20114 '') as_dir=./ ;;
20115 */) ;;
20116 *) as_dir=$as_dir/ ;;
20117 esac
20118 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
20119 done
20120 IFS=$as_save_IFS
20121
20122 ;;
20123 esac
20124 # We did not find ourselves, most probably we were run as 'sh COMMAND'
20125 # in which case we are not to be found in the path.
20126 if test "x$as_myself" = x; then
20127 as_myself=$0
20128 fi
20129 if test ! -f "$as_myself"; then
20130 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20131 exit 1
20132 fi
20133
20134
20135
20136 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20137 # ----------------------------------------
20138 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20139 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20140 # script with STATUS, using 1 if that was 0.
20141 as_fn_error ()
20142 {
20143 as_status=$1; test $as_status -eq 0 && as_status=1
20144 if test "$4"; then
20145 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20146 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20147 fi
20148 printf "%s\n" "$as_me: error: $2" >&2
20149 as_fn_exit $as_status
20150 } # as_fn_error
20151
20152
20153 # as_fn_set_status STATUS
20154 # -----------------------
20155 # Set $? to STATUS, without forking.
20156 as_fn_set_status ()
20157 {
20158 return $1
20159 } # as_fn_set_status
20160
20161 # as_fn_exit STATUS
20162 # -----------------
20163 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20164 as_fn_exit ()
20165 {
20166 set +e
20167 as_fn_set_status $1
20168 exit $1
20169 } # as_fn_exit
20170
20171 # as_fn_unset VAR
20172 # ---------------
20173 # Portably unset VAR.
20174 as_fn_unset ()
20175 {
20176 { eval $1=; unset $1;}
20177 }
20178 as_unset=as_fn_unset
20179
20180 # as_fn_append VAR VALUE
20181 # ----------------------
20182 # Append the text in VALUE to the end of the definition contained in VAR. Take
20183 # advantage of any shell optimizations that allow amortized linear growth over
20184 # repeated appends, instead of the typical quadratic growth present in naive
20185 # implementations.
20186 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
20187 then :
20188 eval 'as_fn_append ()
20189 {
20190 eval $1+=\$2
20191 }'
20192 else case e in #(
20193 e) as_fn_append ()
20194 {
20195 eval $1=\$$1\$2
20196 } ;;
20197 esac
20198 fi # as_fn_append
20199
20200 # as_fn_arith ARG...
20201 # ------------------
20202 # Perform arithmetic evaluation on the ARGs, and store the result in the
20203 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20204 # must be portable across $(()) and expr.
20205 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
20206 then :
20207 eval 'as_fn_arith ()
20208 {
20209 as_val=$(( $* ))
20210 }'
20211 else case e in #(
20212 e) as_fn_arith ()
20213 {
20214 as_val=`expr "$@" || test $? -eq 1`
20215 } ;;
20216 esac
20217 fi # as_fn_arith
20218
20219
20220 if expr a : '\(a\)' >/dev/null 2>&1 &&
20221 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20222 as_expr=expr
20223 else
20224 as_expr=false
20225 fi
20226
20227 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20228 as_basename=basename
20229 else
20230 as_basename=false
20231 fi
20232
20233 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20234 as_dirname=dirname
20235 else
20236 as_dirname=false
20237 fi
20238
20239 as_me=`$as_basename -- "$0" ||
20240 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20241 X"$0" : 'X\(//\)$' \| \
20242 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20243 printf "%s\n" X/"$0" |
20244 sed '/^.*\/\([^/][^/]*\)\/*$/{
20245 s//\1/
20246 q
20247 }
20248 /^X\/\(\/\/\)$/{
20249 s//\1/
20250 q
20251 }
20252 /^X\/\(\/\).*/{
20253 s//\1/
20254 q
20255 }
20256 s/.*/./; q'`
20257
20258 # Avoid depending upon Character Ranges.
20259 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20260 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20261 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20262 as_cr_digits='0123456789'
20263 as_cr_alnum=$as_cr_Letters$as_cr_digits
20264
20265
20266 # Determine whether it's possible to make 'echo' print without a newline.
20267 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
20268 # for compatibility with existing Makefiles.
20269 ECHO_C= ECHO_N= ECHO_T=
20270 case `echo -n x` in #(((((
20271 -n*)
20272 case `echo 'xy\c'` in
20273 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20274 xy) ECHO_C='\c';;
20275 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20276 ECHO_T=' ';;
20277 esac;;
20278 *)
20279 ECHO_N='-n';;
20280 esac
20281
20282 # For backward compatibility with old third-party macros, we provide
20283 # the shell variables $as_echo and $as_echo_n. New code should use
20284 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
20285 as_echo='printf %s\n'
20286 as_echo_n='printf %s'
20287
20288 rm -f conf$$ conf$$.exe conf$$.file
20289 if test -d conf$$.dir; then
20290 rm -f conf$$.dir/conf$$.file
20291 else
20292 rm -f conf$$.dir
20293 mkdir conf$$.dir 2>/dev/null
20294 fi
20295 if (echo >conf$$.file) 2>/dev/null; then
20296 if ln -s conf$$.file conf$$ 2>/dev/null; then
20297 as_ln_s='ln -s'
20298 # ... but there are two gotchas:
20299 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
20300 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
20301 # In both cases, we have to default to 'cp -pR'.
20302 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20303 as_ln_s='cp -pR'
20304 elif ln conf$$.file conf$$ 2>/dev/null; then
20305 as_ln_s=ln
20306 else
20307 as_ln_s='cp -pR'
20308 fi
20309 else
20310 as_ln_s='cp -pR'
20311 fi
20312 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20313 rmdir conf$$.dir 2>/dev/null
20314
20315
20316 # as_fn_mkdir_p
20317 # -------------
20318 # Create "$as_dir" as a directory, including parents if necessary.
20319 as_fn_mkdir_p ()
20320 {
20321
20322 case $as_dir in #(
20323 -*) as_dir=./$as_dir;;
20324 esac
20325 test -d "$as_dir" || eval $as_mkdir_p || {
20326 as_dirs=
20327 while :; do
20328 case $as_dir in #(
20329 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20330 *) as_qdir=$as_dir;;
20331 esac
20332 as_dirs="'$as_qdir' $as_dirs"
20333 as_dir=`$as_dirname -- "$as_dir" ||
20334 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20335 X"$as_dir" : 'X\(//\)[^/]' \| \
20336 X"$as_dir" : 'X\(//\)$' \| \
20337 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20338 printf "%s\n" X"$as_dir" |
20339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20340 s//\1/
20341 q
20342 }
20343 /^X\(\/\/\)[^/].*/{
20344 s//\1/
20345 q
20346 }
20347 /^X\(\/\/\)$/{
20348 s//\1/
20349 q
20350 }
20351 /^X\(\/\).*/{
20352 s//\1/
20353 q
20354 }
20355 s/.*/./; q'`
20356 test -d "$as_dir" && break
20357 done
20358 test -z "$as_dirs" || eval "mkdir $as_dirs"
20359 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20360
20361
20362 } # as_fn_mkdir_p
20363 if mkdir -p . 2>/dev/null; then
20364 as_mkdir_p='mkdir -p "$as_dir"'
20365 else
20366 test -d ./-p && rmdir ./-p
20367 as_mkdir_p=false
20368 fi
20369
20370
20371 # as_fn_executable_p FILE
20372 # -----------------------
20373 # Test if FILE is an executable regular file.
20374 as_fn_executable_p ()
20375 {
20376 test -f "$1" && test -x "$1"
20377 } # as_fn_executable_p
20378 as_test_x='test -x'
20379 as_executable_p=as_fn_executable_p
20380
20381 # Sed expression to map a string onto a valid CPP name.
20382 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
20383 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
20384
20385 # Sed expression to map a string onto a valid variable name.
20386 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
20387 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
20388
20389
20390 exec 6>&1
20391 ## ----------------------------------- ##
20392 ## Main body of $CONFIG_STATUS script. ##
20393 ## ----------------------------------- ##
20394 _ASEOF
20395 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20396
20397 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20398 # Save the log message, to keep $0 and so on meaningful, and to
20399 # report actual input values of CONFIG_FILES etc. instead of their
20400 # values after options handling.
20401 ac_log="
20402 This file was extended by libHX $as_me 5.4, which was
20403 generated by GNU Autoconf 2.72. Invocation command line was
20404
20405 CONFIG_FILES = $CONFIG_FILES
20406 CONFIG_HEADERS = $CONFIG_HEADERS
20407 CONFIG_LINKS = $CONFIG_LINKS
20408 CONFIG_COMMANDS = $CONFIG_COMMANDS
20409 $ $0 $@
20410
20411 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20412 "
20413
20414 _ACEOF
20415
20416 case $ac_config_files in *"
20417 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20418 esac
20419
20420 case $ac_config_headers in *"
20421 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20422 esac
20423
20424
20425 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20426 # Files that config.status was made for.
20427 config_files="$ac_config_files"
20428 config_headers="$ac_config_headers"
20429 config_commands="$ac_config_commands"
20430
20431 _ACEOF
20432
20433 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20434 ac_cs_usage="\
20435 '$as_me' instantiates files and other configuration actions
20436 from templates according to the current configuration. Unless the files
20437 and actions are specified as TAGs, all are instantiated by default.
20438
20439 Usage: $0 [OPTION]... [TAG]...
20440
20441 -h, --help print this help, then exit
20442 -V, --version print version number and configuration settings, then exit
20443 --config print configuration, then exit
20444 -q, --quiet, --silent
20445 do not print progress messages
20446 -d, --debug don't remove temporary files
20447 --recheck update $as_me by reconfiguring in the same conditions
20448 --file=FILE[:TEMPLATE]
20449 instantiate the configuration file FILE
20450 --header=FILE[:TEMPLATE]
20451 instantiate the configuration header FILE
20452
20453 Configuration files:
20454 $config_files
20455
20456 Configuration headers:
20457 $config_headers
20458
20459 Configuration commands:
20460 $config_commands
20461
20462 Report bugs to the package provider."
20463
20464 _ACEOF
20465 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
20466 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
20467 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20468 ac_cs_config='$ac_cs_config_escaped'
20469 ac_cs_version="\\
20470 libHX config.status 5.4
20471 configured by $0, generated by GNU Autoconf 2.72,
20472 with options \\"\$ac_cs_config\\"
20473
20474 Copyright (C) 2023 Free Software Foundation, Inc.
20475 This config.status script is free software; the Free Software Foundation
20476 gives unlimited permission to copy, distribute and modify it."
20477
20478 ac_pwd='$ac_pwd'
20479 srcdir='$srcdir'
20480 INSTALL='$INSTALL'
20481 MKDIR_P='$MKDIR_P'
20482 AWK='$AWK'
20483 test -n "\$AWK" || AWK=awk
20484 _ACEOF
20485
20486 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20487 # The default lists apply if the user does not specify any file.
20488 ac_need_defaults=:
20489 while test $# != 0
20490 do
20491 case $1 in
20492 --*=?*)
20493 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20494 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20495 ac_shift=:
20496 ;;
20497 --*=)
20498 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20499 ac_optarg=
20500 ac_shift=:
20501 ;;
20502 *)
20503 ac_option=$1
20504 ac_optarg=$2
20505 ac_shift=shift
20506 ;;
20507 esac
20508
20509 case $ac_option in
20510 # Handling of the options.
20511 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20512 ac_cs_recheck=: ;;
20513 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20514 printf "%s\n" "$ac_cs_version"; exit ;;
20515 --config | --confi | --conf | --con | --co | --c )
20516 printf "%s\n" "$ac_cs_config"; exit ;;
20517 --debug | --debu | --deb | --de | --d | -d )
20518 debug=: ;;
20519 --file | --fil | --fi | --f )
20520 $ac_shift
20521 case $ac_optarg in
20522 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20523 '') as_fn_error $? "missing file argument" ;;
20524 esac
20525 as_fn_append CONFIG_FILES " '$ac_optarg'"
20526 ac_need_defaults=false;;
20527 --header | --heade | --head | --hea )
20528 $ac_shift
20529 case $ac_optarg in
20530 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20531 esac
20532 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20533 ac_need_defaults=false;;
20534 --he | --h)
20535 # Conflict between --help and --header
20536 as_fn_error $? "ambiguous option: '$1'
20537 Try '$0 --help' for more information.";;
20538 --help | --hel | -h )
20539 printf "%s\n" "$ac_cs_usage"; exit ;;
20540 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20541 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20542 ac_cs_silent=: ;;
20543
20544 # This is an error.
20545 -*) as_fn_error $? "unrecognized option: '$1'
20546 Try '$0 --help' for more information." ;;
20547
20548 *) as_fn_append ac_config_targets " $1"
20549 ac_need_defaults=false ;;
20550
20551 esac
20552 shift
20553 done
20554
20555 ac_configure_extra_args=
20556
20557 if $ac_cs_silent; then
20558 exec 6>/dev/null
20559 ac_configure_extra_args="$ac_configure_extra_args --silent"
20560 fi
20561
20562 _ACEOF
20563 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20564 if \$ac_cs_recheck; then
20565 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20566 shift
20567 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
20568 CONFIG_SHELL='$SHELL'
20569 export CONFIG_SHELL
20570 exec "\$@"
20571 fi
20572
20573 _ACEOF
20574 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20575 exec 5>>config.log
20576 {
20577 echo
20578 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20579 ## Running $as_me. ##
20580 _ASBOX
20581 printf "%s\n" "$ac_log"
20582 } >&5
20583
20584 _ACEOF
20585 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20586 #
20587 # INIT-COMMANDS
20588 #
20589 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
20590
20591
20592 # The HP-UX ksh and POSIX shell print the target directory to stdout
20593 # if CDPATH is set.
20594 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20595
20596 sed_quote_subst='$sed_quote_subst'
20597 double_quote_subst='$double_quote_subst'
20598 delay_variable_subst='$delay_variable_subst'
20599 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20600 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20601 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20602 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20603 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20604 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20605 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20606 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20607 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20608 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20609 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20610 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20611 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20612 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20613 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20614 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20615 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20616 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20617 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20618 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20619 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20620 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20621 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20622 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20623 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20624 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20625 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20626 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20627 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20628 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20629 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20630 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20631 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20632 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20633 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
20634 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20635 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20636 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20637 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20638 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20639 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20640 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20641 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20642 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
20643 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20644 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20645 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20646 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20647 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20648 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20649 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20650 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20651 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20652 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20653 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20654 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20655 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20656 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20657 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20658 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20659 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"`'
20660 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20661 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20662 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20663 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20664 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20665 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20666 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20667 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20668 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20669 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20670 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20671 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20672 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20673 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20674 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20675 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20676 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20677 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20678 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20679 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20680 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20681 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20682 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20683 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20684 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20685 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20686 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20687 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20688 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20689 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20690 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20691 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20692 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20693 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20694 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20695 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20696 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20697 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20698 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20699 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20700 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20701 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20702 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20703 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20704 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20705 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20706 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20707 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20708 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20709 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20710 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20711 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20712 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20713 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20714 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20715 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20716 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20717 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20718 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20719 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20720 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20721 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20722 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20723 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20724 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20725 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20726 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20727 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20728 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20729 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20730 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20731 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20732 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20733 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20734 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20735 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20736 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
20737 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
20738 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
20739 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
20740 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
20741 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
20742 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
20743 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
20744 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20745 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20746 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
20747 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
20748 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
20749 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
20750 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
20751 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
20752 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
20753 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
20754 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
20755 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20756 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20757 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
20758 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20759 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20760 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20761 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20762 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20763 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20764 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
20765 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20766 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20767 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20768 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
20769 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
20770 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
20771 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
20772 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
20773 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
20774 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
20775 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
20776 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
20777 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20778 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20779 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20780 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20781 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20782 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
20783 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
20784 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
20785 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20786 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20787 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
20788 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
20789 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
20790
20791 LTCC='$LTCC'
20792 LTCFLAGS='$LTCFLAGS'
20793 compiler='$compiler_DEFAULT'
20794
20795 # A function that is used when there is no print builtin or printf.
20796 func_fallback_echo ()
20797 {
20798 eval 'cat <<_LTECHO_EOF
20799 \$1
20800 _LTECHO_EOF'
20801 }
20802
20803 # Quote evaled strings.
20804 for var in SHELL \
20805 ECHO \
20806 PATH_SEPARATOR \
20807 SED \
20808 GREP \
20809 EGREP \
20810 FGREP \
20811 LD \
20812 NM \
20813 LN_S \
20814 lt_SP2NL \
20815 lt_NL2SP \
20816 reload_flag \
20817 FILECMD \
20818 OBJDUMP \
20819 deplibs_check_method \
20820 file_magic_cmd \
20821 file_magic_glob \
20822 want_nocaseglob \
20823 DLLTOOL \
20824 sharedlib_from_linklib_cmd \
20825 AR \
20826 archiver_list_spec \
20827 STRIP \
20828 RANLIB \
20829 CC \
20830 CFLAGS \
20831 compiler \
20832 lt_cv_sys_global_symbol_pipe \
20833 lt_cv_sys_global_symbol_to_cdecl \
20834 lt_cv_sys_global_symbol_to_import \
20835 lt_cv_sys_global_symbol_to_c_name_address \
20836 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20837 lt_cv_nm_interface \
20838 nm_file_list_spec \
20839 lt_cv_truncate_bin \
20840 lt_prog_compiler_no_builtin_flag \
20841 lt_prog_compiler_pic \
20842 lt_prog_compiler_wl \
20843 lt_prog_compiler_static \
20844 lt_cv_prog_compiler_c_o \
20845 need_locks \
20846 MANIFEST_TOOL \
20847 DSYMUTIL \
20848 NMEDIT \
20849 LIPO \
20850 OTOOL \
20851 OTOOL64 \
20852 shrext_cmds \
20853 export_dynamic_flag_spec \
20854 whole_archive_flag_spec \
20855 compiler_needs_object \
20856 with_gnu_ld \
20857 allow_undefined_flag \
20858 no_undefined_flag \
20859 hardcode_libdir_flag_spec \
20860 hardcode_libdir_separator \
20861 exclude_expsyms \
20862 include_expsyms \
20863 file_list_spec \
20864 variables_saved_for_relink \
20865 libname_spec \
20866 library_names_spec \
20867 soname_spec \
20868 install_override_mode \
20869 finish_eval \
20870 old_striplib \
20871 striplib \
20872 compiler_lib_search_dirs \
20873 predep_objects \
20874 postdep_objects \
20875 predeps \
20876 postdeps \
20877 compiler_lib_search_path \
20878 LD_CXX \
20879 reload_flag_CXX \
20880 compiler_CXX \
20881 lt_prog_compiler_no_builtin_flag_CXX \
20882 lt_prog_compiler_pic_CXX \
20883 lt_prog_compiler_wl_CXX \
20884 lt_prog_compiler_static_CXX \
20885 lt_cv_prog_compiler_c_o_CXX \
20886 export_dynamic_flag_spec_CXX \
20887 whole_archive_flag_spec_CXX \
20888 compiler_needs_object_CXX \
20889 with_gnu_ld_CXX \
20890 allow_undefined_flag_CXX \
20891 no_undefined_flag_CXX \
20892 hardcode_libdir_flag_spec_CXX \
20893 hardcode_libdir_separator_CXX \
20894 exclude_expsyms_CXX \
20895 include_expsyms_CXX \
20896 file_list_spec_CXX \
20897 compiler_lib_search_dirs_CXX \
20898 predep_objects_CXX \
20899 postdep_objects_CXX \
20900 predeps_CXX \
20901 postdeps_CXX \
20902 compiler_lib_search_path_CXX; do
20903 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20904 *[\\\\\\\`\\"\\\$]*)
20905 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20906 ;;
20907 *)
20908 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20909 ;;
20910 esac
20911 done
20912
20913 # Double-quote double-evaled strings.
20914 for var in reload_cmds \
20915 old_postinstall_cmds \
20916 old_postuninstall_cmds \
20917 old_archive_cmds \
20918 extract_expsyms_cmds \
20919 old_archive_from_new_cmds \
20920 old_archive_from_expsyms_cmds \
20921 archive_cmds \
20922 archive_expsym_cmds \
20923 module_cmds \
20924 module_expsym_cmds \
20925 export_symbols_cmds \
20926 prelink_cmds \
20927 postlink_cmds \
20928 postinstall_cmds \
20929 postuninstall_cmds \
20930 finish_cmds \
20931 sys_lib_search_path_spec \
20932 configure_time_dlsearch_path \
20933 configure_time_lt_sys_library_path \
20934 reload_cmds_CXX \
20935 old_archive_cmds_CXX \
20936 old_archive_from_new_cmds_CXX \
20937 old_archive_from_expsyms_cmds_CXX \
20938 archive_cmds_CXX \
20939 archive_expsym_cmds_CXX \
20940 module_cmds_CXX \
20941 module_expsym_cmds_CXX \
20942 export_symbols_cmds_CXX \
20943 prelink_cmds_CXX \
20944 postlink_cmds_CXX; do
20945 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20946 *[\\\\\\\`\\"\\\$]*)
20947 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20948 ;;
20949 *)
20950 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20951 ;;
20952 esac
20953 done
20954
20955 ac_aux_dir='$ac_aux_dir'
20956
20957 # See if we are running on zsh, and set the options that allow our
20958 # commands through without removal of \ escapes INIT.
20959 if test -n "\${ZSH_VERSION+set}"; then
20960 setopt NO_GLOB_SUBST
20961 fi
20962
20963
20964 PACKAGE='$PACKAGE'
20965 VERSION='$VERSION'
20966 RM='$RM'
20967 ofile='$ofile'
20968
20969
20970
20971
20972
20973
20974 _ACEOF
20975
20976 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20977
20978 # Handling of arguments.
20979 for ac_config_target in $ac_config_targets
20980 do
20981 case $ac_config_target in
20982 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20983 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20984 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20985 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20986 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20987 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
20988 "libHX.pc") CONFIG_FILES="$CONFIG_FILES libHX.pc" ;;
20989
20990 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
20991 esac
20992 done
20993
20994
20995 # If the user did not use the arguments to specify the items to instantiate,
20996 # then the envvar interface is used. Set only those that are not.
20997 # We use the long form for the default assignment because of an extremely
20998 # bizarre bug on SunOS 4.1.3.
20999 if $ac_need_defaults; then
21000 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
21001 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
21002 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
21003 fi
21004
21005 # Have a temporary directory for convenience. Make it in the build tree
21006 # simply because there is no reason against having it here, and in addition,
21007 # creating and moving files from /tmp can sometimes cause problems.
21008 # Hook for its removal unless debugging.
21009 # Note that there is a small window in which the directory will not be cleaned:
21010 # after its creation but before its name has been assigned to '$tmp'.
21011 $debug ||
21012 {
21013 tmp= ac_tmp=
21014 trap 'exit_status=$?
21015 : "${ac_tmp:=$tmp}"
21016 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21017 ' 0
21018 trap 'as_fn_exit 1' 1 2 13 15
21019 }
21020 # Create a (secure) tmp directory for tmp files.
21021
21022 {
21023 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21024 test -d "$tmp"
21025 } ||
21026 {
21027 tmp=./conf$$-$RANDOM
21028 (umask 077 && mkdir "$tmp")
21029 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21030 ac_tmp=$tmp
21031
21032 # Set up the scripts for CONFIG_FILES section.
21033 # No need to generate them if there are no CONFIG_FILES.
21034 # This happens for instance with './config.status config.h'.
21035 if test -n "$CONFIG_FILES"; then
21036
21037
21038 ac_cr=`echo X | tr X '\015'`
21039 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21040 # But we know of no other shell where ac_cr would be empty at this
21041 # point, so we can use a bashism as a fallback.
21042 if test "x$ac_cr" = x; then
21043 eval ac_cr=\$\'\\r\'
21044 fi
21045 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21046 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21047 ac_cs_awk_cr='\\r'
21048 else
21049 ac_cs_awk_cr=$ac_cr
21050 fi
21051
21052 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21053 _ACEOF
21054
21055
21056 {
21057 echo "cat >conf$$subs.awk <<_ACEOF" &&
21058 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21059 echo "_ACEOF"
21060 } >conf$$subs.sh ||
21061 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21062 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21063 ac_delim='%!_!# '
21064 for ac_last_try in false false false false false :; do
21065 . ./conf$$subs.sh ||
21066 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21067
21068 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21069 if test $ac_delim_n = $ac_delim_num; then
21070 break
21071 elif $ac_last_try; then
21072 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21073 else
21074 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21075 fi
21076 done
21077 rm -f conf$$subs.sh
21078
21079 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21080 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21081 _ACEOF
21082 sed -n '
21083 h
21084 s/^/S["/; s/!.*/"]=/
21085 p
21086 g
21087 s/^[^!]*!//
21088 :repl
21089 t repl
21090 s/'"$ac_delim"'$//
21091 t delim
21092 :nl
21093 h
21094 s/\(.\{148\}\)..*/\1/
21095 t more1
21096 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21097 p
21098 n
21099 b repl
21100 :more1
21101 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21102 p
21103 g
21104 s/.\{148\}//
21105 t nl
21106 :delim
21107 h
21108 s/\(.\{148\}\)..*/\1/
21109 t more2
21110 s/["\\]/\\&/g; s/^/"/; s/$/"/
21111 p
21112 b
21113 :more2
21114 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21115 p
21116 g
21117 s/.\{148\}//
21118 t delim
21119 ' <conf$$subs.awk | sed '
21120 /^[^""]/{
21121 N
21122 s/\n//
21123 }
21124 ' >>$CONFIG_STATUS || ac_write_fail=1
21125 rm -f conf$$subs.awk
21126 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21127 _ACAWK
21128 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21129 for (key in S) S_is_set[key] = 1
21130 FS = ""
21131
21132 }
21133 {
21134 line = $ 0
21135 nfields = split(line, field, "@")
21136 substed = 0
21137 len = length(field[1])
21138 for (i = 2; i < nfields; i++) {
21139 key = field[i]
21140 keylen = length(key)
21141 if (S_is_set[key]) {
21142 value = S[key]
21143 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21144 len += length(value) + length(field[++i])
21145 substed = 1
21146 } else
21147 len += 1 + keylen
21148 }
21149
21150 print line
21151 }
21152
21153 _ACAWK
21154 _ACEOF
21155 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21156 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21157 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21158 else
21159 cat
21160 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21161 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21162 _ACEOF
21163
21164 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21165 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21166 # trailing colons and then remove the whole line if VPATH becomes empty
21167 # (actually we leave an empty line to preserve line numbers).
21168 if test "x$srcdir" = x.; then
21169 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21170 h
21171 s///
21172 s/^/:/
21173 s/[ ]*$/:/
21174 s/:\$(srcdir):/:/g
21175 s/:\${srcdir}:/:/g
21176 s/:@srcdir@:/:/g
21177 s/^:*//
21178 s/:*$//
21179 x
21180 s/\(=[ ]*\).*/\1/
21181 G
21182 s/\n//
21183 s/^[^=]*=[ ]*$//
21184 }'
21185 fi
21186
21187 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21188 fi # test -n "$CONFIG_FILES"
21189
21190 # Set up the scripts for CONFIG_HEADERS section.
21191 # No need to generate them if there are no CONFIG_HEADERS.
21192 # This happens for instance with './config.status Makefile'.
21193 if test -n "$CONFIG_HEADERS"; then
21194 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21195 BEGIN {
21196 _ACEOF
21197
21198 # Transform confdefs.h into an awk script 'defines.awk', embedded as
21199 # here-document in config.status, that substitutes the proper values into
21200 # config.h.in to produce config.h.
21201
21202 # Create a delimiter string that does not exist in confdefs.h, to ease
21203 # handling of long lines.
21204 ac_delim='%!_!# '
21205 for ac_last_try in false false :; do
21206 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21207 if test -z "$ac_tt"; then
21208 break
21209 elif $ac_last_try; then
21210 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21211 else
21212 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21213 fi
21214 done
21215
21216 # For the awk script, D is an array of macro values keyed by name,
21217 # likewise P contains macro parameters if any. Preserve backslash
21218 # newline sequences.
21219
21220 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21221 sed -n '
21222 s/.\{148\}/&'"$ac_delim"'/g
21223 t rset
21224 :rset
21225 s/^[ ]*#[ ]*define[ ][ ]*/ /
21226 t def
21227 d
21228 :def
21229 s/\\$//
21230 t bsnl
21231 s/["\\]/\\&/g
21232 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21233 D["\1"]=" \3"/p
21234 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21235 d
21236 :bsnl
21237 s/["\\]/\\&/g
21238 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21239 D["\1"]=" \3\\\\\\n"\\/p
21240 t cont
21241 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21242 t cont
21243 d
21244 :cont
21245 n
21246 s/.\{148\}/&'"$ac_delim"'/g
21247 t clear
21248 :clear
21249 s/\\$//
21250 t bsnlc
21251 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21252 d
21253 :bsnlc
21254 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21255 b cont
21256 ' <confdefs.h | sed '
21257 s/'"$ac_delim"'/"\\\
21258 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21259
21260 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21261 for (key in D) D_is_set[key] = 1
21262 FS = ""
21263 }
21264 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21265 line = \$ 0
21266 split(line, arg, " ")
21267 if (arg[1] == "#") {
21268 defundef = arg[2]
21269 mac1 = arg[3]
21270 } else {
21271 defundef = substr(arg[1], 2)
21272 mac1 = arg[2]
21273 }
21274 split(mac1, mac2, "(") #)
21275 macro = mac2[1]
21276 prefix = substr(line, 1, index(line, defundef) - 1)
21277 if (D_is_set[macro]) {
21278 # Preserve the white space surrounding the "#".
21279 print prefix "define", macro P[macro] D[macro]
21280 next
21281 } else {
21282 # Replace #undef with comments. This is necessary, for example,
21283 # in the case of _POSIX_SOURCE, which is predefined and required
21284 # on some systems where configure will not decide to define it.
21285 if (defundef == "undef") {
21286 print "/*", prefix defundef, macro, "*/"
21287 next
21288 }
21289 }
21290 }
21291 { print }
21292 _ACAWK
21293 _ACEOF
21294 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21295 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21296 fi # test -n "$CONFIG_HEADERS"
21297
21298
21299 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21300 shift
21301 for ac_tag
21302 do
21303 case $ac_tag in
21304 :[FHLC]) ac_mode=$ac_tag; continue;;
21305 esac
21306 case $ac_mode$ac_tag in
21307 :[FHL]*:*);;
21308 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
21309 :[FH]-) ac_tag=-:-;;
21310 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21311 esac
21312 ac_save_IFS=$IFS
21313 IFS=:
21314 set x $ac_tag
21315 IFS=$ac_save_IFS
21316 shift
21317 ac_file=$1
21318 shift
21319
21320 case $ac_mode in
21321 :L) ac_source=$1;;
21322 :[FH])
21323 ac_file_inputs=
21324 for ac_f
21325 do
21326 case $ac_f in
21327 -) ac_f="$ac_tmp/stdin";;
21328 *) # Look for the file first in the build tree, then in the source tree
21329 # (if the path is not absolute). The absolute path cannot be DOS-style,
21330 # because $ac_f cannot contain ':'.
21331 test -f "$ac_f" ||
21332 case $ac_f in
21333 [\\/$]*) false;;
21334 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21335 esac ||
21336 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
21337 esac
21338 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21339 as_fn_append ac_file_inputs " '$ac_f'"
21340 done
21341
21342 # Let's still pretend it is 'configure' which instantiates (i.e., don't
21343 # use $as_me), people would be surprised to read:
21344 # /* config.h. Generated by config.status. */
21345 configure_input='Generated from '`
21346 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21347 `' by configure.'
21348 if test x"$ac_file" != x-; then
21349 configure_input="$ac_file. $configure_input"
21350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21351 printf "%s\n" "$as_me: creating $ac_file" >&6;}
21352 fi
21353 # Neutralize special characters interpreted by sed in replacement strings.
21354 case $configure_input in #(
21355 *\&* | *\|* | *\\* )
21356 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
21357 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21358 *) ac_sed_conf_input=$configure_input;;
21359 esac
21360
21361 case $ac_tag in
21362 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21363 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21364 esac
21365 ;;
21366 esac
21367
21368 ac_dir=`$as_dirname -- "$ac_file" ||
21369 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21370 X"$ac_file" : 'X\(//\)[^/]' \| \
21371 X"$ac_file" : 'X\(//\)$' \| \
21372 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21373 printf "%s\n" X"$ac_file" |
21374 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21375 s//\1/
21376 q
21377 }
21378 /^X\(\/\/\)[^/].*/{
21379 s//\1/
21380 q
21381 }
21382 /^X\(\/\/\)$/{
21383 s//\1/
21384 q
21385 }
21386 /^X\(\/\).*/{
21387 s//\1/
21388 q
21389 }
21390 s/.*/./; q'`
21391 as_dir="$ac_dir"; as_fn_mkdir_p
21392 ac_builddir=.
21393
21394 case "$ac_dir" in
21395 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21396 *)
21397 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
21398 # A ".." for each directory in $ac_dir_suffix.
21399 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21400 case $ac_top_builddir_sub in
21401 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21402 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21403 esac ;;
21404 esac
21405 ac_abs_top_builddir=$ac_pwd
21406 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21407 # for backward compatibility:
21408 ac_top_builddir=$ac_top_build_prefix
21409
21410 case $srcdir in
21411 .) # We are building in place.
21412 ac_srcdir=.
21413 ac_top_srcdir=$ac_top_builddir_sub
21414 ac_abs_top_srcdir=$ac_pwd ;;
21415 [\\/]* | ?:[\\/]* ) # Absolute name.
21416 ac_srcdir=$srcdir$ac_dir_suffix;
21417 ac_top_srcdir=$srcdir
21418 ac_abs_top_srcdir=$srcdir ;;
21419 *) # Relative name.
21420 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21421 ac_top_srcdir=$ac_top_build_prefix$srcdir
21422 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21423 esac
21424 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21425
21426
21427 case $ac_mode in
21428 :F)
21429 #
21430 # CONFIG_FILE
21431 #
21432
21433 case $INSTALL in
21434 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21435 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21436 esac
21437 ac_MKDIR_P=$MKDIR_P
21438 case $MKDIR_P in
21439 [\\/$]* | ?:[\\/]* ) ;;
21440 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21441 esac
21442 _ACEOF
21443
21444 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21445 # If the template does not know about datarootdir, expand it.
21446 # FIXME: This hack should be removed a few years after 2.60.
21447 ac_datarootdir_hack=; ac_datarootdir_seen=
21448 ac_sed_dataroot='
21449 /datarootdir/ {
21450 p
21451 q
21452 }
21453 /@datadir@/p
21454 /@docdir@/p
21455 /@infodir@/p
21456 /@localedir@/p
21457 /@mandir@/p'
21458 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21459 *datarootdir*) ac_datarootdir_seen=yes;;
21460 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21462 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21463 _ACEOF
21464 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21465 ac_datarootdir_hack='
21466 s&@datadir@&$datadir&g
21467 s&@docdir@&$docdir&g
21468 s&@infodir@&$infodir&g
21469 s&@localedir@&$localedir&g
21470 s&@mandir@&$mandir&g
21471 s&\\\${datarootdir}&$datarootdir&g' ;;
21472 esac
21473 _ACEOF
21474
21475 # Neutralize VPATH when '$srcdir' = '.'.
21476 # Shell code in configure.ac might set extrasub.
21477 # FIXME: do we really want to maintain this feature?
21478 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21479 ac_sed_extra="$ac_vpsub
21480 $extrasub
21481 _ACEOF
21482 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21483 :t
21484 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21485 s|@configure_input@|$ac_sed_conf_input|;t t
21486 s&@top_builddir@&$ac_top_builddir_sub&;t t
21487 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21488 s&@srcdir@&$ac_srcdir&;t t
21489 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21490 s&@top_srcdir@&$ac_top_srcdir&;t t
21491 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21492 s&@builddir@&$ac_builddir&;t t
21493 s&@abs_builddir@&$ac_abs_builddir&;t t
21494 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21495 s&@INSTALL@&$ac_INSTALL&;t t
21496 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21497 $ac_datarootdir_hack
21498 "
21499 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21500 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21501
21502 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21503 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21504 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21505 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
21507 which seems to be undefined. Please make sure it is defined" >&5
21508 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
21509 which seems to be undefined. Please make sure it is defined" >&2;}
21510
21511 rm -f "$ac_tmp/stdin"
21512 case $ac_file in
21513 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21514 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21515 esac \
21516 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21517 ;;
21518 :H)
21519 #
21520 # CONFIG_HEADER
21521 #
21522 if test x"$ac_file" != x-; then
21523 {
21524 printf "%s\n" "/* $configure_input */" >&1 \
21525 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21526 } >"$ac_tmp/config.h" \
21527 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21528 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21530 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
21531 else
21532 rm -f "$ac_file"
21533 mv "$ac_tmp/config.h" "$ac_file" \
21534 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21535 fi
21536 else
21537 printf "%s\n" "/* $configure_input */" >&1 \
21538 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21539 || as_fn_error $? "could not create -" "$LINENO" 5
21540 fi
21541 # Compute "$ac_file"'s index in $config_headers.
21542 _am_arg="$ac_file"
21543 _am_stamp_count=1
21544 for _am_header in $config_headers :; do
21545 case $_am_header in
21546 $_am_arg | $_am_arg:* )
21547 break ;;
21548 * )
21549 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21550 esac
21551 done
21552 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21553 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21554 X"$_am_arg" : 'X\(//\)[^/]' \| \
21555 X"$_am_arg" : 'X\(//\)$' \| \
21556 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21557 printf "%s\n" X"$_am_arg" |
21558 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21559 s//\1/
21560 q
21561 }
21562 /^X\(\/\/\)[^/].*/{
21563 s//\1/
21564 q
21565 }
21566 /^X\(\/\/\)$/{
21567 s//\1/
21568 q
21569 }
21570 /^X\(\/\).*/{
21571 s//\1/
21572 q
21573 }
21574 s/.*/./; q'`/stamp-h$_am_stamp_count
21575 ;;
21576
21577 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21578 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
21579 ;;
21580 esac
21581
21582
21583 case $ac_file$ac_mode in
21584 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21585 # Older Autoconf quotes --file arguments for eval, but not when files
21586 # are listed without --file. Let's play safe and only enable the eval
21587 # if we detect the quoting.
21588 # TODO: see whether this extra hack can be removed once we start
21589 # requiring Autoconf 2.70 or later.
21590 case $CONFIG_FILES in #(
21591 *\'*) :
21592 eval set x "$CONFIG_FILES" ;; #(
21593 *) :
21594 set x $CONFIG_FILES ;; #(
21595 *) :
21596 ;;
21597 esac
21598 shift
21599 # Used to flag and report bootstrapping failures.
21600 am_rc=0
21601 for am_mf
21602 do
21603 # Strip MF so we end up with the name of the file.
21604 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
21605 # Check whether this is an Automake generated Makefile which includes
21606 # dependency-tracking related rules and includes.
21607 # Grep'ing the whole file directly is not great: AIX grep has a line
21608 # limit of 2048, but all sed's we know have understand at least 4000.
21609 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
21610 || continue
21611 am_dirpart=`$as_dirname -- "$am_mf" ||
21612 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21613 X"$am_mf" : 'X\(//\)[^/]' \| \
21614 X"$am_mf" : 'X\(//\)$' \| \
21615 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21616 printf "%s\n" X"$am_mf" |
21617 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21618 s//\1/
21619 q
21620 }
21621 /^X\(\/\/\)[^/].*/{
21622 s//\1/
21623 q
21624 }
21625 /^X\(\/\/\)$/{
21626 s//\1/
21627 q
21628 }
21629 /^X\(\/\).*/{
21630 s//\1/
21631 q
21632 }
21633 s/.*/./; q'`
21634 am_filepart=`$as_basename -- "$am_mf" ||
21635 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
21636 X"$am_mf" : 'X\(//\)$' \| \
21637 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21638 printf "%s\n" X/"$am_mf" |
21639 sed '/^.*\/\([^/][^/]*\)\/*$/{
21640 s//\1/
21641 q
21642 }
21643 /^X\/\(\/\/\)$/{
21644 s//\1/
21645 q
21646 }
21647 /^X\/\(\/\).*/{
21648 s//\1/
21649 q
21650 }
21651 s/.*/./; q'`
21652 { echo "$as_me:$LINENO: cd "$am_dirpart" \
21653 && sed -e '/# am--include-marker/d' "$am_filepart" \
21654 | $MAKE -f - am--depfiles" >&5
21655 (cd "$am_dirpart" \
21656 && sed -e '/# am--include-marker/d' "$am_filepart" \
21657 | $MAKE -f - am--depfiles) >&5 2>&5
21658 ac_status=$?
21659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21660 (exit $ac_status); } || am_rc=$?
21661 done
21662 if test $am_rc -ne 0; then
21663 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
21664 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
21665 as_fn_error $? "Something went wrong bootstrapping makefile fragments
21666 for automatic dependency tracking. If GNU make was not used, consider
21667 re-running the configure script with MAKE=\"gmake\" (or whatever is
21668 necessary). You can also try re-running configure with the
21669 '--disable-dependency-tracking' option to at least be able to build
21670 the package (albeit without support for automatic dependency tracking).
21671 See 'config.log' for more details" "$LINENO" 5; }
21672 fi
21673 { am_dirpart=; unset am_dirpart;}
21674 { am_filepart=; unset am_filepart;}
21675 { am_mf=; unset am_mf;}
21676 { am_rc=; unset am_rc;}
21677 rm -f conftest-deps.mk
21678 }
21679 ;;
21680 "libtool":C)
21681
21682 # See if we are running on zsh, and set the options that allow our
21683 # commands through without removal of \ escapes.
21684 if test -n "${ZSH_VERSION+set}"; then
21685 setopt NO_GLOB_SUBST
21686 fi
21687
21688 cfgfile=${ofile}T
21689 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21690 $RM "$cfgfile"
21691
21692 cat <<_LT_EOF >> "$cfgfile"
21693 #! $SHELL
21694 # Generated automatically by $as_me ($PACKAGE) $VERSION
21695 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21696
21697 # Provide generalized library-building support services.
21698 # Written by Gordon Matzigkeit, 1996
21699
21700 # Copyright (C) 2024 Free Software Foundation, Inc.
21701 # This is free software; see the source for copying conditions. There is NO
21702 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21703
21704 # GNU Libtool is free software; you can redistribute it and/or modify
21705 # it under the terms of the GNU General Public License as published by
21706 # the Free Software Foundation; either version 2 of the License, or
21707 # (at your option) any later version.
21708 #
21709 # As a special exception to the GNU General Public License, if you
21710 # distribute this file as part of a program or library that is built
21711 # using GNU Libtool, you may include this file under the same
21712 # distribution terms that you use for the rest of that program.
21713 #
21714 # GNU Libtool is distributed in the hope that it will be useful, but
21715 # WITHOUT ANY WARRANTY; without even the implied warranty of
21716 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21717 # GNU General Public License for more details.
21718 #
21719 # You should have received a copy of the GNU General Public License
21720 # along with this program. If not, see <http://www.gnu.org/licenses/>.
21721
21722
21723 # The names of the tagged configurations supported by this script.
21724 available_tags='CXX '
21725
21726 # Configured defaults for sys_lib_dlsearch_path munging.
21727 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21728
21729 # ### BEGIN LIBTOOL CONFIG
21730
21731 # Which release of libtool.m4 was used?
21732 macro_version=$macro_version
21733 macro_revision=$macro_revision
21734
21735 # Whether or not to build static libraries.
21736 build_old_libs=$enable_static
21737
21738 # Whether or not to build shared libraries.
21739 build_libtool_libs=$enable_shared
21740
21741 # What type of objects to build.
21742 pic_mode=$pic_mode
21743
21744 # Whether or not to optimize for fast installation.
21745 fast_install=$enable_fast_install
21746
21747 # Shared archive member basename,for filename based shared library versioning on AIX.
21748 shared_archive_member_spec=$shared_archive_member_spec
21749
21750 # Shell to use when invoking shell scripts.
21751 SHELL=$lt_SHELL
21752
21753 # An echo program that protects backslashes.
21754 ECHO=$lt_ECHO
21755
21756 # The PATH separator for the build system.
21757 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21758
21759 # The host system.
21760 host_alias=$host_alias
21761 host=$host
21762 host_os=$host_os
21763
21764 # The build system.
21765 build_alias=$build_alias
21766 build=$build
21767 build_os=$build_os
21768
21769 # A sed program that does not truncate output.
21770 SED=$lt_SED
21771
21772 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21773 Xsed="\$SED -e 1s/^X//"
21774
21775 # A grep program that handles long lines.
21776 GREP=$lt_GREP
21777
21778 # An ERE matcher.
21779 EGREP=$lt_EGREP
21780
21781 # A literal string matcher.
21782 FGREP=$lt_FGREP
21783
21784 # A BSD- or MS-compatible name lister.
21785 NM=$lt_NM
21786
21787 # Whether we need soft or hard links.
21788 LN_S=$lt_LN_S
21789
21790 # What is the maximum length of a command?
21791 max_cmd_len=$max_cmd_len
21792
21793 # Object file suffix (normally "o").
21794 objext=$ac_objext
21795
21796 # Executable file suffix (normally "").
21797 exeext=$exeext
21798
21799 # whether the shell understands "unset".
21800 lt_unset=$lt_unset
21801
21802 # turn spaces into newlines.
21803 SP2NL=$lt_lt_SP2NL
21804
21805 # turn newlines into spaces.
21806 NL2SP=$lt_lt_NL2SP
21807
21808 # convert \$build file names to \$host format.
21809 to_host_file_cmd=$lt_cv_to_host_file_cmd
21810
21811 # convert \$build files to toolchain format.
21812 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21813
21814 # A file(cmd) program that detects file types.
21815 FILECMD=$lt_FILECMD
21816
21817 # An object symbol dumper.
21818 OBJDUMP=$lt_OBJDUMP
21819
21820 # Method to check whether dependent libraries are shared objects.
21821 deplibs_check_method=$lt_deplibs_check_method
21822
21823 # Command to use when deplibs_check_method = "file_magic".
21824 file_magic_cmd=$lt_file_magic_cmd
21825
21826 # How to find potential files when deplibs_check_method = "file_magic".
21827 file_magic_glob=$lt_file_magic_glob
21828
21829 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21830 want_nocaseglob=$lt_want_nocaseglob
21831
21832 # DLL creation program.
21833 DLLTOOL=$lt_DLLTOOL
21834
21835 # Command to associate shared and link libraries.
21836 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21837
21838 # The archiver.
21839 AR=$lt_AR
21840
21841 # Flags to create an archive (by configure).
21842 lt_ar_flags=$lt_ar_flags
21843
21844 # Flags to create an archive.
21845 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
21846
21847 # How to feed a file listing to the archiver.
21848 archiver_list_spec=$lt_archiver_list_spec
21849
21850 # A symbol stripping program.
21851 STRIP=$lt_STRIP
21852
21853 # Commands used to install an old-style archive.
21854 RANLIB=$lt_RANLIB
21855 old_postinstall_cmds=$lt_old_postinstall_cmds
21856 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21857
21858 # Whether to use a lock for old archive extraction.
21859 lock_old_archive_extraction=$lock_old_archive_extraction
21860
21861 # A C compiler.
21862 LTCC=$lt_CC
21863
21864 # LTCC compiler flags.
21865 LTCFLAGS=$lt_CFLAGS
21866
21867 # Take the output of nm and produce a listing of raw symbols and C names.
21868 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21869
21870 # Transform the output of nm in a proper C declaration.
21871 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21872
21873 # Transform the output of nm into a list of symbols to manually relocate.
21874 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21875
21876 # Transform the output of nm in a C name address pair.
21877 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21878
21879 # Transform the output of nm in a C name address pair when lib prefix is needed.
21880 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21881
21882 # The name lister interface.
21883 nm_interface=$lt_lt_cv_nm_interface
21884
21885 # Specify filename containing input files for \$NM.
21886 nm_file_list_spec=$lt_nm_file_list_spec
21887
21888 # The root where to search for dependent libraries,and where our libraries should be installed.
21889 lt_sysroot=$lt_sysroot
21890
21891 # Command to truncate a binary pipe.
21892 lt_truncate_bin=$lt_lt_cv_truncate_bin
21893
21894 # The name of the directory that contains temporary libtool files.
21895 objdir=$objdir
21896
21897 # Used to examine libraries when file_magic_cmd begins with "file".
21898 MAGIC_CMD=$MAGIC_CMD
21899
21900 # Must we lock files when doing compilation?
21901 need_locks=$lt_need_locks
21902
21903 # Manifest tool.
21904 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21905
21906 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21907 DSYMUTIL=$lt_DSYMUTIL
21908
21909 # Tool to change global to local symbols on Mac OS X.
21910 NMEDIT=$lt_NMEDIT
21911
21912 # Tool to manipulate fat objects and archives on Mac OS X.
21913 LIPO=$lt_LIPO
21914
21915 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21916 OTOOL=$lt_OTOOL
21917
21918 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21919 OTOOL64=$lt_OTOOL64
21920
21921 # Old archive suffix (normally "a").
21922 libext=$libext
21923
21924 # Shared library suffix (normally ".so").
21925 shrext_cmds=$lt_shrext_cmds
21926
21927 # The commands to extract the exported symbol list from a shared archive.
21928 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21929
21930 # Variables whose values should be saved in libtool wrapper scripts and
21931 # restored at link time.
21932 variables_saved_for_relink=$lt_variables_saved_for_relink
21933
21934 # Do we need the "lib" prefix for modules?
21935 need_lib_prefix=$need_lib_prefix
21936
21937 # Do we need a version for libraries?
21938 need_version=$need_version
21939
21940 # Library versioning type.
21941 version_type=$version_type
21942
21943 # Shared library runtime path variable.
21944 runpath_var=$runpath_var
21945
21946 # Shared library path variable.
21947 shlibpath_var=$shlibpath_var
21948
21949 # Is shlibpath searched before the hard-coded library search path?
21950 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21951
21952 # Format of library name prefix.
21953 libname_spec=$lt_libname_spec
21954
21955 # List of archive names. First name is the real one, the rest are links.
21956 # The last name is the one that the linker finds with -lNAME
21957 library_names_spec=$lt_library_names_spec
21958
21959 # The coded name of the library, if different from the real name.
21960 soname_spec=$lt_soname_spec
21961
21962 # Permission mode override for installation of shared libraries.
21963 install_override_mode=$lt_install_override_mode
21964
21965 # Command to use after installation of a shared archive.
21966 postinstall_cmds=$lt_postinstall_cmds
21967
21968 # Command to use after uninstallation of a shared archive.
21969 postuninstall_cmds=$lt_postuninstall_cmds
21970
21971 # Commands used to finish a libtool library installation in a directory.
21972 finish_cmds=$lt_finish_cmds
21973
21974 # As "finish_cmds", except a single script fragment to be evaled but
21975 # not shown.
21976 finish_eval=$lt_finish_eval
21977
21978 # Whether we should hardcode library paths into libraries.
21979 hardcode_into_libs=$hardcode_into_libs
21980
21981 # Compile-time system search path for libraries.
21982 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21983
21984 # Detected run-time system search path for libraries.
21985 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
21986
21987 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
21988 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
21989
21990 # Whether dlopen is supported.
21991 dlopen_support=$enable_dlopen
21992
21993 # Whether dlopen of programs is supported.
21994 dlopen_self=$enable_dlopen_self
21995
21996 # Whether dlopen of statically linked programs is supported.
21997 dlopen_self_static=$enable_dlopen_self_static
21998
21999 # Commands to strip libraries.
22000 old_striplib=$lt_old_striplib
22001 striplib=$lt_striplib
22002
22003
22004 # The linker used to build libraries.
22005 LD=$lt_LD
22006
22007 # How to create reloadable object files.
22008 reload_flag=$lt_reload_flag
22009 reload_cmds=$lt_reload_cmds
22010
22011 # Commands used to build an old-style archive.
22012 old_archive_cmds=$lt_old_archive_cmds
22013
22014 # A language specific compiler.
22015 CC=$lt_compiler
22016
22017 # Is the compiler the GNU compiler?
22018 with_gcc=$GCC
22019
22020 # Compiler flag to turn off builtin functions.
22021 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22022
22023 # Additional compiler flags for building library objects.
22024 pic_flag=$lt_lt_prog_compiler_pic
22025
22026 # How to pass a linker flag through the compiler.
22027 wl=$lt_lt_prog_compiler_wl
22028
22029 # Compiler flag to prevent dynamic linking.
22030 link_static_flag=$lt_lt_prog_compiler_static
22031
22032 # Does compiler simultaneously support -c and -o options?
22033 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22034
22035 # Whether or not to add -lc for building shared libraries.
22036 build_libtool_need_lc=$archive_cmds_need_lc
22037
22038 # Whether or not to disallow shared libs when runtime libs are static.
22039 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22040
22041 # Compiler flag to allow reflexive dlopens.
22042 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22043
22044 # Compiler flag to generate shared objects directly from archives.
22045 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22046
22047 # Whether the compiler copes with passing no objects directly.
22048 compiler_needs_object=$lt_compiler_needs_object
22049
22050 # Create an old-style archive from a shared archive.
22051 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22052
22053 # Create a temporary old-style archive to link instead of a shared archive.
22054 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22055
22056 # Commands used to build a shared archive.
22057 archive_cmds=$lt_archive_cmds
22058 archive_expsym_cmds=$lt_archive_expsym_cmds
22059
22060 # Commands used to build a loadable module if different from building
22061 # a shared archive.
22062 module_cmds=$lt_module_cmds
22063 module_expsym_cmds=$lt_module_expsym_cmds
22064
22065 # Whether we are building with GNU ld or not.
22066 with_gnu_ld=$lt_with_gnu_ld
22067
22068 # Flag that allows shared libraries with undefined symbols to be built.
22069 allow_undefined_flag=$lt_allow_undefined_flag
22070
22071 # Flag that enforces no undefined symbols.
22072 no_undefined_flag=$lt_no_undefined_flag
22073
22074 # Flag to hardcode \$libdir into a binary during linking.
22075 # This must work even if \$libdir does not exist
22076 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22077
22078 # Whether we need a single "-rpath" flag with a separated argument.
22079 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22080
22081 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22082 # DIR into the resulting binary.
22083 hardcode_direct=$hardcode_direct
22084
22085 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22086 # DIR into the resulting binary and the resulting library dependency is
22087 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
22088 # library is relocated.
22089 hardcode_direct_absolute=$hardcode_direct_absolute
22090
22091 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22092 # into the resulting binary.
22093 hardcode_minus_L=$hardcode_minus_L
22094
22095 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22096 # into the resulting binary.
22097 hardcode_shlibpath_var=$hardcode_shlibpath_var
22098
22099 # Set to "yes" if building a shared library automatically hardcodes DIR
22100 # into the library and all subsequent libraries and executables linked
22101 # against it.
22102 hardcode_automatic=$hardcode_automatic
22103
22104 # Set to yes if linker adds runtime paths of dependent libraries
22105 # to runtime path list.
22106 inherit_rpath=$inherit_rpath
22107
22108 # Whether libtool must link a program against all its dependency libraries.
22109 link_all_deplibs=$link_all_deplibs
22110
22111 # Set to "yes" if exported symbols are required.
22112 always_export_symbols=$always_export_symbols
22113
22114 # The commands to list exported symbols.
22115 export_symbols_cmds=$lt_export_symbols_cmds
22116
22117 # Symbols that should not be listed in the preloaded symbols.
22118 exclude_expsyms=$lt_exclude_expsyms
22119
22120 # Symbols that must always be exported.
22121 include_expsyms=$lt_include_expsyms
22122
22123 # Commands necessary for linking programs (against libraries) with templates.
22124 prelink_cmds=$lt_prelink_cmds
22125
22126 # Commands necessary for finishing linking programs.
22127 postlink_cmds=$lt_postlink_cmds
22128
22129 # Specify filename containing input files.
22130 file_list_spec=$lt_file_list_spec
22131
22132 # How to hardcode a shared library path into an executable.
22133 hardcode_action=$hardcode_action
22134
22135 # The directories searched by this compiler when creating a shared library.
22136 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
22137
22138 # Dependencies to place before and after the objects being linked to
22139 # create a shared library.
22140 predep_objects=$lt_predep_objects
22141 postdep_objects=$lt_postdep_objects
22142 predeps=$lt_predeps
22143 postdeps=$lt_postdeps
22144
22145 # The library search path used internally by the compiler when linking
22146 # a shared library.
22147 compiler_lib_search_path=$lt_compiler_lib_search_path
22148
22149 # ### END LIBTOOL CONFIG
22150
22151 _LT_EOF
22152
22153 cat <<'_LT_EOF' >> "$cfgfile"
22154
22155 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
22156
22157 # func_munge_path_list VARIABLE PATH
22158 # -----------------------------------
22159 # VARIABLE is name of variable containing _space_ separated list of
22160 # directories to be munged by the contents of PATH, which is string
22161 # having a format:
22162 # "DIR[:DIR]:"
22163 # string "DIR[ DIR]" will be prepended to VARIABLE
22164 # ":DIR[:DIR]"
22165 # string "DIR[ DIR]" will be appended to VARIABLE
22166 # "DIRP[:DIRP]::[DIRA:]DIRA"
22167 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
22168 # "DIRA[ DIRA]" will be appended to VARIABLE
22169 # "DIR[:DIR]"
22170 # VARIABLE will be replaced by "DIR[ DIR]"
22171 func_munge_path_list ()
22172 {
22173 case x$2 in
22174 x)
22175 ;;
22176 *:)
22177 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
22178 ;;
22179 x:*)
22180 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
22181 ;;
22182 *::*)
22183 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
22184 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
22185 ;;
22186 *)
22187 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
22188 ;;
22189 esac
22190 }
22191
22192
22193 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
22194 func_cc_basename ()
22195 {
22196 for cc_temp in $*""; do
22197 case $cc_temp in
22198 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22199 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22200 \-*) ;;
22201 *) break;;
22202 esac
22203 done
22204 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
22205 }
22206
22207
22208 # ### END FUNCTIONS SHARED WITH CONFIGURE
22209
22210 _LT_EOF
22211
22212 case $host_os in
22213 aix3*)
22214 cat <<\_LT_EOF >> "$cfgfile"
22215 # AIX sometimes has problems with the GCC collect2 program. For some
22216 # reason, if we set the COLLECT_NAMES environment variable, the problems
22217 # vanish in a puff of smoke.
22218 if test set != "${COLLECT_NAMES+set}"; then
22219 COLLECT_NAMES=
22220 export COLLECT_NAMES
22221 fi
22222 _LT_EOF
22223 ;;
22224 esac
22225
22226
22227
22228 ltmain=$ac_aux_dir/ltmain.sh
22229
22230
22231 # We use sed instead of cat because bash on DJGPP gets confused if
22232 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22233 # text mode, it properly converts lines to CR/LF. This bash problem
22234 # is reportedly fixed, but why not run on old versions too?
22235 $SED '$q' "$ltmain" >> "$cfgfile" \
22236 || (rm -f "$cfgfile"; exit 1)
22237
22238 mv -f "$cfgfile" "$ofile" ||
22239 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22240 chmod +x "$ofile"
22241
22242
22243 cat <<_LT_EOF >> "$ofile"
22244
22245 # ### BEGIN LIBTOOL TAG CONFIG: CXX
22246
22247 # The linker used to build libraries.
22248 LD=$lt_LD_CXX
22249
22250 # How to create reloadable object files.
22251 reload_flag=$lt_reload_flag_CXX
22252 reload_cmds=$lt_reload_cmds_CXX
22253
22254 # Commands used to build an old-style archive.
22255 old_archive_cmds=$lt_old_archive_cmds_CXX
22256
22257 # A language specific compiler.
22258 CC=$lt_compiler_CXX
22259
22260 # Is the compiler the GNU compiler?
22261 with_gcc=$GCC_CXX
22262
22263 # Compiler flag to turn off builtin functions.
22264 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
22265
22266 # Additional compiler flags for building library objects.
22267 pic_flag=$lt_lt_prog_compiler_pic_CXX
22268
22269 # How to pass a linker flag through the compiler.
22270 wl=$lt_lt_prog_compiler_wl_CXX
22271
22272 # Compiler flag to prevent dynamic linking.
22273 link_static_flag=$lt_lt_prog_compiler_static_CXX
22274
22275 # Does compiler simultaneously support -c and -o options?
22276 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
22277
22278 # Whether or not to add -lc for building shared libraries.
22279 build_libtool_need_lc=$archive_cmds_need_lc_CXX
22280
22281 # Whether or not to disallow shared libs when runtime libs are static.
22282 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
22283
22284 # Compiler flag to allow reflexive dlopens.
22285 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
22286
22287 # Compiler flag to generate shared objects directly from archives.
22288 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
22289
22290 # Whether the compiler copes with passing no objects directly.
22291 compiler_needs_object=$lt_compiler_needs_object_CXX
22292
22293 # Create an old-style archive from a shared archive.
22294 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
22295
22296 # Create a temporary old-style archive to link instead of a shared archive.
22297 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
22298
22299 # Commands used to build a shared archive.
22300 archive_cmds=$lt_archive_cmds_CXX
22301 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
22302
22303 # Commands used to build a loadable module if different from building
22304 # a shared archive.
22305 module_cmds=$lt_module_cmds_CXX
22306 module_expsym_cmds=$lt_module_expsym_cmds_CXX
22307
22308 # Whether we are building with GNU ld or not.
22309 with_gnu_ld=$lt_with_gnu_ld_CXX
22310
22311 # Flag that allows shared libraries with undefined symbols to be built.
22312 allow_undefined_flag=$lt_allow_undefined_flag_CXX
22313
22314 # Flag that enforces no undefined symbols.
22315 no_undefined_flag=$lt_no_undefined_flag_CXX
22316
22317 # Flag to hardcode \$libdir into a binary during linking.
22318 # This must work even if \$libdir does not exist
22319 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
22320
22321 # Whether we need a single "-rpath" flag with a separated argument.
22322 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
22323
22324 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22325 # DIR into the resulting binary.
22326 hardcode_direct=$hardcode_direct_CXX
22327
22328 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22329 # DIR into the resulting binary and the resulting library dependency is
22330 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
22331 # library is relocated.
22332 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
22333
22334 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22335 # into the resulting binary.
22336 hardcode_minus_L=$hardcode_minus_L_CXX
22337
22338 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22339 # into the resulting binary.
22340 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
22341
22342 # Set to "yes" if building a shared library automatically hardcodes DIR
22343 # into the library and all subsequent libraries and executables linked
22344 # against it.
22345 hardcode_automatic=$hardcode_automatic_CXX
22346
22347 # Set to yes if linker adds runtime paths of dependent libraries
22348 # to runtime path list.
22349 inherit_rpath=$inherit_rpath_CXX
22350
22351 # Whether libtool must link a program against all its dependency libraries.
22352 link_all_deplibs=$link_all_deplibs_CXX
22353
22354 # Set to "yes" if exported symbols are required.
22355 always_export_symbols=$always_export_symbols_CXX
22356
22357 # The commands to list exported symbols.
22358 export_symbols_cmds=$lt_export_symbols_cmds_CXX
22359
22360 # Symbols that should not be listed in the preloaded symbols.
22361 exclude_expsyms=$lt_exclude_expsyms_CXX
22362
22363 # Symbols that must always be exported.
22364 include_expsyms=$lt_include_expsyms_CXX
22365
22366 # Commands necessary for linking programs (against libraries) with templates.
22367 prelink_cmds=$lt_prelink_cmds_CXX
22368
22369 # Commands necessary for finishing linking programs.
22370 postlink_cmds=$lt_postlink_cmds_CXX
22371
22372 # Specify filename containing input files.
22373 file_list_spec=$lt_file_list_spec_CXX
22374
22375 # How to hardcode a shared library path into an executable.
22376 hardcode_action=$hardcode_action_CXX
22377
22378 # The directories searched by this compiler when creating a shared library.
22379 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
22380
22381 # Dependencies to place before and after the objects being linked to
22382 # create a shared library.
22383 predep_objects=$lt_predep_objects_CXX
22384 postdep_objects=$lt_postdep_objects_CXX
22385 predeps=$lt_predeps_CXX
22386 postdeps=$lt_postdeps_CXX
22387
22388 # The library search path used internally by the compiler when linking
22389 # a shared library.
22390 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
22391
22392 # ### END LIBTOOL TAG CONFIG: CXX
22393 _LT_EOF
22394
22395 ;;
22396
22397 esac
22398 done # for ac_tag
22399
22400
22401 as_fn_exit 0
22402 _ACEOF
22403 ac_clean_files=$ac_clean_files_save
22404
22405 test $ac_write_fail = 0 ||
22406 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22407
22408
22409 # configure is writing to config.log, and then calls config.status.
22410 # config.status does its own redirection, appending to config.log.
22411 # Unfortunately, on DOS this fails, as config.log is still kept open
22412 # by configure, so config.status won't be able to write to it; its
22413 # output is simply discarded. So we exec the FD to /dev/null,
22414 # effectively closing config.log, so it can be properly (re)opened and
22415 # appended to by config.status. When coming back to configure, we
22416 # need to make the FD available again.
22417 if test "$no_create" != yes; then
22418 ac_cs_success=:
22419 ac_config_status_args=
22420 test "$silent" = yes &&
22421 ac_config_status_args="$ac_config_status_args --quiet"
22422 exec 5>/dev/null
22423 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22424 exec 5>>config.log
22425 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22426 # would make configure fail if this is the last instruction.
22427 $ac_cs_success || as_fn_exit 1
22428 fi
22429 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22431 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22432 fi
22433
22434